]> git.ipfire.org Git - thirdparty/bash.git/blob - configure
commit bash-20100728 snapshot
[thirdparty/bash.git] / configure
1 #! /bin/sh
2 # From configure.in for Bash 4.2, version 4.032.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63 for bash 4.2-devel.
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.2-devel'
601 PACKAGE_STRING='bash 4.2-devel'
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.2-devel 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.2-devel:";;
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.2-devel
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.2-devel, 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.2
2083 RELSTATUS=devel
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
11508 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
11509 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
11510 stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h \
11511 syslog.h ulimit.h
11512 do
11513 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11515 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11516 $as_echo_n "checking for $ac_header... " >&6; }
11517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11518 $as_echo_n "(cached) " >&6
11519 fi
11520 ac_res=`eval 'as_val=${'$as_ac_Header'}
11521 $as_echo "$as_val"'`
11522 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11523 $as_echo "$ac_res" >&6; }
11524 else
11525 # Is the header compilable?
11526 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11527 $as_echo_n "checking $ac_header usability... " >&6; }
11528 cat >conftest.$ac_ext <<_ACEOF
11529 /* confdefs.h. */
11530 _ACEOF
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11534 $ac_includes_default
11535 #include <$ac_header>
11536 _ACEOF
11537 rm -f conftest.$ac_objext
11538 if { (ac_try="$ac_compile"
11539 case "(($ac_try" in
11540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541 *) ac_try_echo=$ac_try;;
11542 esac
11543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11544 $as_echo "$ac_try_echo") >&5
11545 (eval "$ac_compile") 2>conftest.er1
11546 ac_status=$?
11547 grep -v '^ *+' conftest.er1 >conftest.err
11548 rm -f conftest.er1
11549 cat conftest.err >&5
11550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } && {
11552 test -z "$ac_c_werror_flag" ||
11553 test ! -s conftest.err
11554 } && test -s conftest.$ac_objext; then
11555 ac_header_compiler=yes
11556 else
11557 $as_echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11559
11560 ac_header_compiler=no
11561 fi
11562
11563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11564 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11565 $as_echo "$ac_header_compiler" >&6; }
11566
11567 # Is the header present?
11568 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11569 $as_echo_n "checking $ac_header presence... " >&6; }
11570 cat >conftest.$ac_ext <<_ACEOF
11571 /* confdefs.h. */
11572 _ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h. */
11576 #include <$ac_header>
11577 _ACEOF
11578 if { (ac_try="$ac_cpp conftest.$ac_ext"
11579 case "(($ac_try" in
11580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11581 *) ac_try_echo=$ac_try;;
11582 esac
11583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11584 $as_echo "$ac_try_echo") >&5
11585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11586 ac_status=$?
11587 grep -v '^ *+' conftest.er1 >conftest.err
11588 rm -f conftest.er1
11589 cat conftest.err >&5
11590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } >/dev/null && {
11592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11593 test ! -s conftest.err
11594 }; then
11595 ac_header_preproc=yes
11596 else
11597 $as_echo "$as_me: failed program was:" >&5
11598 sed 's/^/| /' conftest.$ac_ext >&5
11599
11600 ac_header_preproc=no
11601 fi
11602
11603 rm -f conftest.err conftest.$ac_ext
11604 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11605 $as_echo "$ac_header_preproc" >&6; }
11606
11607 # So? What about this header?
11608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11609 yes:no: )
11610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11611 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11613 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11614 ac_header_preproc=yes
11615 ;;
11616 no:yes:* )
11617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11618 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11620 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11622 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11624 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11626 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11628 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11629 ( cat <<\_ASBOX
11630 ## ------------------------------- ##
11631 ## Report this to bug-bash@gnu.org ##
11632 ## ------------------------------- ##
11633 _ASBOX
11634 ) | sed "s/^/$as_me: WARNING: /" >&2
11635 ;;
11636 esac
11637 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11638 $as_echo_n "checking for $ac_header... " >&6; }
11639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11640 $as_echo_n "(cached) " >&6
11641 else
11642 eval "$as_ac_Header=\$ac_header_preproc"
11643 fi
11644 ac_res=`eval 'as_val=${'$as_ac_Header'}
11645 $as_echo "$as_val"'`
11646 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11647 $as_echo "$ac_res" >&6; }
11648
11649 fi
11650 as_val=`eval 'as_val=${'$as_ac_Header'}
11651 $as_echo "$as_val"'`
11652 if test "x$as_val" = x""yes; then
11653 cat >>confdefs.h <<_ACEOF
11654 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11655 _ACEOF
11656
11657 fi
11658
11659 done
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673 for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
11674 sys/resource.h sys/param.h sys/socket.h sys/stat.h \
11675 sys/time.h sys/times.h sys/types.h sys/wait.h
11676 do
11677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11679 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11680 $as_echo_n "checking for $ac_header... " >&6; }
11681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11682 $as_echo_n "(cached) " >&6
11683 fi
11684 ac_res=`eval 'as_val=${'$as_ac_Header'}
11685 $as_echo "$as_val"'`
11686 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11687 $as_echo "$ac_res" >&6; }
11688 else
11689 # Is the header compilable?
11690 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11691 $as_echo_n "checking $ac_header usability... " >&6; }
11692 cat >conftest.$ac_ext <<_ACEOF
11693 /* confdefs.h. */
11694 _ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11698 $ac_includes_default
11699 #include <$ac_header>
11700 _ACEOF
11701 rm -f conftest.$ac_objext
11702 if { (ac_try="$ac_compile"
11703 case "(($ac_try" in
11704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11705 *) ac_try_echo=$ac_try;;
11706 esac
11707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11708 $as_echo "$ac_try_echo") >&5
11709 (eval "$ac_compile") 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } && {
11716 test -z "$ac_c_werror_flag" ||
11717 test ! -s conftest.err
11718 } && test -s conftest.$ac_objext; then
11719 ac_header_compiler=yes
11720 else
11721 $as_echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.$ac_ext >&5
11723
11724 ac_header_compiler=no
11725 fi
11726
11727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11728 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11729 $as_echo "$ac_header_compiler" >&6; }
11730
11731 # Is the header present?
11732 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11733 $as_echo_n "checking $ac_header presence... " >&6; }
11734 cat >conftest.$ac_ext <<_ACEOF
11735 /* confdefs.h. */
11736 _ACEOF
11737 cat confdefs.h >>conftest.$ac_ext
11738 cat >>conftest.$ac_ext <<_ACEOF
11739 /* end confdefs.h. */
11740 #include <$ac_header>
11741 _ACEOF
11742 if { (ac_try="$ac_cpp conftest.$ac_ext"
11743 case "(($ac_try" in
11744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11745 *) ac_try_echo=$ac_try;;
11746 esac
11747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11748 $as_echo "$ac_try_echo") >&5
11749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11750 ac_status=$?
11751 grep -v '^ *+' conftest.er1 >conftest.err
11752 rm -f conftest.er1
11753 cat conftest.err >&5
11754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } >/dev/null && {
11756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11757 test ! -s conftest.err
11758 }; then
11759 ac_header_preproc=yes
11760 else
11761 $as_echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.$ac_ext >&5
11763
11764 ac_header_preproc=no
11765 fi
11766
11767 rm -f conftest.err conftest.$ac_ext
11768 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11769 $as_echo "$ac_header_preproc" >&6; }
11770
11771 # So? What about this header?
11772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11773 yes:no: )
11774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11775 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11777 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11778 ac_header_preproc=yes
11779 ;;
11780 no:yes:* )
11781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11782 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11784 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11786 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11788 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11790 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11792 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11793 ( cat <<\_ASBOX
11794 ## ------------------------------- ##
11795 ## Report this to bug-bash@gnu.org ##
11796 ## ------------------------------- ##
11797 _ASBOX
11798 ) | sed "s/^/$as_me: WARNING: /" >&2
11799 ;;
11800 esac
11801 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11802 $as_echo_n "checking for $ac_header... " >&6; }
11803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11804 $as_echo_n "(cached) " >&6
11805 else
11806 eval "$as_ac_Header=\$ac_header_preproc"
11807 fi
11808 ac_res=`eval 'as_val=${'$as_ac_Header'}
11809 $as_echo "$as_val"'`
11810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11811 $as_echo "$ac_res" >&6; }
11812
11813 fi
11814 as_val=`eval 'as_val=${'$as_ac_Header'}
11815 $as_echo "$as_val"'`
11816 if test "x$as_val" = x""yes; then
11817 cat >>confdefs.h <<_ACEOF
11818 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11819 _ACEOF
11820
11821 fi
11822
11823 done
11824
11825
11826
11827 for ac_header in netinet/in.h arpa/inet.h
11828 do
11829 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11831 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11832 $as_echo_n "checking for $ac_header... " >&6; }
11833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11834 $as_echo_n "(cached) " >&6
11835 fi
11836 ac_res=`eval 'as_val=${'$as_ac_Header'}
11837 $as_echo "$as_val"'`
11838 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11839 $as_echo "$ac_res" >&6; }
11840 else
11841 # Is the header compilable?
11842 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11843 $as_echo_n "checking $ac_header usability... " >&6; }
11844 cat >conftest.$ac_ext <<_ACEOF
11845 /* confdefs.h. */
11846 _ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h. */
11850 $ac_includes_default
11851 #include <$ac_header>
11852 _ACEOF
11853 rm -f conftest.$ac_objext
11854 if { (ac_try="$ac_compile"
11855 case "(($ac_try" in
11856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11857 *) ac_try_echo=$ac_try;;
11858 esac
11859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11860 $as_echo "$ac_try_echo") >&5
11861 (eval "$ac_compile") 2>conftest.er1
11862 ac_status=$?
11863 grep -v '^ *+' conftest.er1 >conftest.err
11864 rm -f conftest.er1
11865 cat conftest.err >&5
11866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } && {
11868 test -z "$ac_c_werror_flag" ||
11869 test ! -s conftest.err
11870 } && test -s conftest.$ac_objext; then
11871 ac_header_compiler=yes
11872 else
11873 $as_echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.$ac_ext >&5
11875
11876 ac_header_compiler=no
11877 fi
11878
11879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11880 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11881 $as_echo "$ac_header_compiler" >&6; }
11882
11883 # Is the header present?
11884 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11885 $as_echo_n "checking $ac_header presence... " >&6; }
11886 cat >conftest.$ac_ext <<_ACEOF
11887 /* confdefs.h. */
11888 _ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h. */
11892 #include <$ac_header>
11893 _ACEOF
11894 if { (ac_try="$ac_cpp conftest.$ac_ext"
11895 case "(($ac_try" in
11896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897 *) ac_try_echo=$ac_try;;
11898 esac
11899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11900 $as_echo "$ac_try_echo") >&5
11901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11902 ac_status=$?
11903 grep -v '^ *+' conftest.er1 >conftest.err
11904 rm -f conftest.er1
11905 cat conftest.err >&5
11906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } >/dev/null && {
11908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11909 test ! -s conftest.err
11910 }; then
11911 ac_header_preproc=yes
11912 else
11913 $as_echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11915
11916 ac_header_preproc=no
11917 fi
11918
11919 rm -f conftest.err conftest.$ac_ext
11920 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11921 $as_echo "$ac_header_preproc" >&6; }
11922
11923 # So? What about this header?
11924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11925 yes:no: )
11926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11927 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11929 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11930 ac_header_preproc=yes
11931 ;;
11932 no:yes:* )
11933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11934 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11936 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11938 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11940 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11942 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11944 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11945 ( cat <<\_ASBOX
11946 ## ------------------------------- ##
11947 ## Report this to bug-bash@gnu.org ##
11948 ## ------------------------------- ##
11949 _ASBOX
11950 ) | sed "s/^/$as_me: WARNING: /" >&2
11951 ;;
11952 esac
11953 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11954 $as_echo_n "checking for $ac_header... " >&6; }
11955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11956 $as_echo_n "(cached) " >&6
11957 else
11958 eval "$as_ac_Header=\$ac_header_preproc"
11959 fi
11960 ac_res=`eval 'as_val=${'$as_ac_Header'}
11961 $as_echo "$as_val"'`
11962 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11963 $as_echo "$ac_res" >&6; }
11964
11965 fi
11966 as_val=`eval 'as_val=${'$as_ac_Header'}
11967 $as_echo "$as_val"'`
11968 if test "x$as_val" = x""yes; then
11969 cat >>confdefs.h <<_ACEOF
11970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11971 _ACEOF
11972
11973 fi
11974
11975 done
11976
11977
11978 { $as_echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
11979 $as_echo_n "checking for sys/ptem.h... " >&6; }
11980 if test "${ac_cv_header_sys_ptem_h+set}" = set; then
11981 $as_echo_n "(cached) " >&6
11982 else
11983 cat >conftest.$ac_ext <<_ACEOF
11984 /* confdefs.h. */
11985 _ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11989
11990 #if HAVE_SYS_STREAM_H
11991 # include <sys/stream.h>
11992 #endif
11993
11994
11995 #include <sys/ptem.h>
11996 _ACEOF
11997 rm -f conftest.$ac_objext
11998 if { (ac_try="$ac_compile"
11999 case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12002 esac
12003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12004 $as_echo "$ac_try_echo") >&5
12005 (eval "$ac_compile") 2>conftest.er1
12006 ac_status=$?
12007 grep -v '^ *+' conftest.er1 >conftest.err
12008 rm -f conftest.er1
12009 cat conftest.err >&5
12010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } && {
12012 test -z "$ac_c_werror_flag" ||
12013 test ! -s conftest.err
12014 } && test -s conftest.$ac_objext; then
12015 ac_cv_header_sys_ptem_h=yes
12016 else
12017 $as_echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12019
12020 ac_cv_header_sys_ptem_h=no
12021 fi
12022
12023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12024 fi
12025 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
12026 $as_echo "$ac_cv_header_sys_ptem_h" >&6; }
12027
12028
12029
12030 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12031 # for constant arguments. Useless!
12032 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
12033 $as_echo_n "checking for working alloca.h... " >&6; }
12034 if test "${ac_cv_working_alloca_h+set}" = set; then
12035 $as_echo_n "(cached) " >&6
12036 else
12037 cat >conftest.$ac_ext <<_ACEOF
12038 /* confdefs.h. */
12039 _ACEOF
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h. */
12043 #include <alloca.h>
12044 int
12045 main ()
12046 {
12047 char *p = (char *) alloca (2 * sizeof (int));
12048 if (p) return 0;
12049 ;
12050 return 0;
12051 }
12052 _ACEOF
12053 rm -f conftest.$ac_objext conftest$ac_exeext
12054 if { (ac_try="$ac_link"
12055 case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12058 esac
12059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12060 $as_echo "$ac_try_echo") >&5
12061 (eval "$ac_link") 2>conftest.er1
12062 ac_status=$?
12063 grep -v '^ *+' conftest.er1 >conftest.err
12064 rm -f conftest.er1
12065 cat conftest.err >&5
12066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } && {
12068 test -z "$ac_c_werror_flag" ||
12069 test ! -s conftest.err
12070 } && test -s conftest$ac_exeext && {
12071 test "$cross_compiling" = yes ||
12072 $as_test_x conftest$ac_exeext
12073 }; then
12074 ac_cv_working_alloca_h=yes
12075 else
12076 $as_echo "$as_me: failed program was:" >&5
12077 sed 's/^/| /' conftest.$ac_ext >&5
12078
12079 ac_cv_working_alloca_h=no
12080 fi
12081
12082 rm -rf conftest.dSYM
12083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12084 conftest$ac_exeext conftest.$ac_ext
12085 fi
12086 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12087 $as_echo "$ac_cv_working_alloca_h" >&6; }
12088 if test $ac_cv_working_alloca_h = yes; then
12089
12090 cat >>confdefs.h <<\_ACEOF
12091 #define HAVE_ALLOCA_H 1
12092 _ACEOF
12093
12094 fi
12095
12096 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
12097 $as_echo_n "checking for alloca... " >&6; }
12098 if test "${ac_cv_func_alloca_works+set}" = set; then
12099 $as_echo_n "(cached) " >&6
12100 else
12101 cat >conftest.$ac_ext <<_ACEOF
12102 /* confdefs.h. */
12103 _ACEOF
12104 cat confdefs.h >>conftest.$ac_ext
12105 cat >>conftest.$ac_ext <<_ACEOF
12106 /* end confdefs.h. */
12107 #ifdef __GNUC__
12108 # define alloca __builtin_alloca
12109 #else
12110 # ifdef _MSC_VER
12111 # include <malloc.h>
12112 # define alloca _alloca
12113 # else
12114 # ifdef HAVE_ALLOCA_H
12115 # include <alloca.h>
12116 # else
12117 # ifdef _AIX
12118 #pragma alloca
12119 # else
12120 # ifndef alloca /* predefined by HP cc +Olibcalls */
12121 char *alloca ();
12122 # endif
12123 # endif
12124 # endif
12125 # endif
12126 #endif
12127
12128 int
12129 main ()
12130 {
12131 char *p = (char *) alloca (1);
12132 if (p) return 0;
12133 ;
12134 return 0;
12135 }
12136 _ACEOF
12137 rm -f conftest.$ac_objext conftest$ac_exeext
12138 if { (ac_try="$ac_link"
12139 case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12142 esac
12143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12144 $as_echo "$ac_try_echo") >&5
12145 (eval "$ac_link") 2>conftest.er1
12146 ac_status=$?
12147 grep -v '^ *+' conftest.er1 >conftest.err
12148 rm -f conftest.er1
12149 cat conftest.err >&5
12150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } && {
12152 test -z "$ac_c_werror_flag" ||
12153 test ! -s conftest.err
12154 } && test -s conftest$ac_exeext && {
12155 test "$cross_compiling" = yes ||
12156 $as_test_x conftest$ac_exeext
12157 }; then
12158 ac_cv_func_alloca_works=yes
12159 else
12160 $as_echo "$as_me: failed program was:" >&5
12161 sed 's/^/| /' conftest.$ac_ext >&5
12162
12163 ac_cv_func_alloca_works=no
12164 fi
12165
12166 rm -rf conftest.dSYM
12167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12168 conftest$ac_exeext conftest.$ac_ext
12169 fi
12170 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12171 $as_echo "$ac_cv_func_alloca_works" >&6; }
12172
12173 if test $ac_cv_func_alloca_works = yes; then
12174
12175 cat >>confdefs.h <<\_ACEOF
12176 #define HAVE_ALLOCA 1
12177 _ACEOF
12178
12179 else
12180 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12181 # that cause trouble. Some versions do not even contain alloca or
12182 # contain a buggy version. If you still want to use their alloca,
12183 # use ar to extract alloca.o from them instead of compiling alloca.c.
12184
12185 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12186
12187 cat >>confdefs.h <<\_ACEOF
12188 #define C_ALLOCA 1
12189 _ACEOF
12190
12191
12192 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12193 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12194 if test "${ac_cv_os_cray+set}" = set; then
12195 $as_echo_n "(cached) " >&6
12196 else
12197 cat >conftest.$ac_ext <<_ACEOF
12198 /* confdefs.h. */
12199 _ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h. */
12203 #if defined CRAY && ! defined CRAY2
12204 webecray
12205 #else
12206 wenotbecray
12207 #endif
12208
12209 _ACEOF
12210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12211 $EGREP "webecray" >/dev/null 2>&1; then
12212 ac_cv_os_cray=yes
12213 else
12214 ac_cv_os_cray=no
12215 fi
12216 rm -f conftest*
12217
12218 fi
12219 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12220 $as_echo "$ac_cv_os_cray" >&6; }
12221 if test $ac_cv_os_cray = yes; then
12222 for ac_func in _getb67 GETB67 getb67; do
12223 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12224 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12225 $as_echo_n "checking for $ac_func... " >&6; }
12226 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12227 $as_echo_n "(cached) " >&6
12228 else
12229 cat >conftest.$ac_ext <<_ACEOF
12230 /* confdefs.h. */
12231 _ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12237 #define $ac_func innocuous_$ac_func
12238
12239 /* System header to define __stub macros and hopefully few prototypes,
12240 which can conflict with char $ac_func (); below.
12241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12242 <limits.h> exists even on freestanding compilers. */
12243
12244 #ifdef __STDC__
12245 # include <limits.h>
12246 #else
12247 # include <assert.h>
12248 #endif
12249
12250 #undef $ac_func
12251
12252 /* Override any GCC internal prototype to avoid an error.
12253 Use char because int might match the return type of a GCC
12254 builtin and then its argument prototype would still apply. */
12255 #ifdef __cplusplus
12256 extern "C"
12257 #endif
12258 char $ac_func ();
12259 /* The GNU C library defines this for functions which it implements
12260 to always fail with ENOSYS. Some functions are actually named
12261 something starting with __ and the normal name is an alias. */
12262 #if defined __stub_$ac_func || defined __stub___$ac_func
12263 choke me
12264 #endif
12265
12266 int
12267 main ()
12268 {
12269 return $ac_func ();
12270 ;
12271 return 0;
12272 }
12273 _ACEOF
12274 rm -f conftest.$ac_objext conftest$ac_exeext
12275 if { (ac_try="$ac_link"
12276 case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12279 esac
12280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12281 $as_echo "$ac_try_echo") >&5
12282 (eval "$ac_link") 2>conftest.er1
12283 ac_status=$?
12284 grep -v '^ *+' conftest.er1 >conftest.err
12285 rm -f conftest.er1
12286 cat conftest.err >&5
12287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } && {
12289 test -z "$ac_c_werror_flag" ||
12290 test ! -s conftest.err
12291 } && test -s conftest$ac_exeext && {
12292 test "$cross_compiling" = yes ||
12293 $as_test_x conftest$ac_exeext
12294 }; then
12295 eval "$as_ac_var=yes"
12296 else
12297 $as_echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12299
12300 eval "$as_ac_var=no"
12301 fi
12302
12303 rm -rf conftest.dSYM
12304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12305 conftest$ac_exeext conftest.$ac_ext
12306 fi
12307 ac_res=`eval 'as_val=${'$as_ac_var'}
12308 $as_echo "$as_val"'`
12309 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12310 $as_echo "$ac_res" >&6; }
12311 as_val=`eval 'as_val=${'$as_ac_var'}
12312 $as_echo "$as_val"'`
12313 if test "x$as_val" = x""yes; then
12314
12315 cat >>confdefs.h <<_ACEOF
12316 #define CRAY_STACKSEG_END $ac_func
12317 _ACEOF
12318
12319 break
12320 fi
12321
12322 done
12323 fi
12324
12325 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12326 $as_echo_n "checking stack direction for C alloca... " >&6; }
12327 if test "${ac_cv_c_stack_direction+set}" = set; then
12328 $as_echo_n "(cached) " >&6
12329 else
12330 if test "$cross_compiling" = yes; then
12331 ac_cv_c_stack_direction=0
12332 else
12333 cat >conftest.$ac_ext <<_ACEOF
12334 /* confdefs.h. */
12335 _ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h. */
12339 $ac_includes_default
12340 int
12341 find_stack_direction ()
12342 {
12343 static char *addr = 0;
12344 auto char dummy;
12345 if (addr == 0)
12346 {
12347 addr = &dummy;
12348 return find_stack_direction ();
12349 }
12350 else
12351 return (&dummy > addr) ? 1 : -1;
12352 }
12353
12354 int
12355 main ()
12356 {
12357 return find_stack_direction () < 0;
12358 }
12359 _ACEOF
12360 rm -f conftest$ac_exeext
12361 if { (ac_try="$ac_link"
12362 case "(($ac_try" in
12363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364 *) ac_try_echo=$ac_try;;
12365 esac
12366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12367 $as_echo "$ac_try_echo") >&5
12368 (eval "$ac_link") 2>&5
12369 ac_status=$?
12370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12372 { (case "(($ac_try" in
12373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12374 *) ac_try_echo=$ac_try;;
12375 esac
12376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12377 $as_echo "$ac_try_echo") >&5
12378 (eval "$ac_try") 2>&5
12379 ac_status=$?
12380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; }; then
12382 ac_cv_c_stack_direction=1
12383 else
12384 $as_echo "$as_me: program exited with status $ac_status" >&5
12385 $as_echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12387
12388 ( exit $ac_status )
12389 ac_cv_c_stack_direction=-1
12390 fi
12391 rm -rf conftest.dSYM
12392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12393 fi
12394
12395
12396 fi
12397 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12398 $as_echo "$ac_cv_c_stack_direction" >&6; }
12399
12400 cat >>confdefs.h <<_ACEOF
12401 #define STACK_DIRECTION $ac_cv_c_stack_direction
12402 _ACEOF
12403
12404
12405 fi
12406
12407 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
12408 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12409 if test "${ac_cv_func_getpgrp_void+set}" = set; then
12410 $as_echo_n "(cached) " >&6
12411 else
12412 # Use it with a single arg.
12413 cat >conftest.$ac_ext <<_ACEOF
12414 /* confdefs.h. */
12415 _ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h. */
12419 $ac_includes_default
12420 int
12421 main ()
12422 {
12423 getpgrp (0);
12424 ;
12425 return 0;
12426 }
12427 _ACEOF
12428 rm -f conftest.$ac_objext
12429 if { (ac_try="$ac_compile"
12430 case "(($ac_try" in
12431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12432 *) ac_try_echo=$ac_try;;
12433 esac
12434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12435 $as_echo "$ac_try_echo") >&5
12436 (eval "$ac_compile") 2>conftest.er1
12437 ac_status=$?
12438 grep -v '^ *+' conftest.er1 >conftest.err
12439 rm -f conftest.er1
12440 cat conftest.err >&5
12441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); } && {
12443 test -z "$ac_c_werror_flag" ||
12444 test ! -s conftest.err
12445 } && test -s conftest.$ac_objext; then
12446 ac_cv_func_getpgrp_void=no
12447 else
12448 $as_echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12450
12451 ac_cv_func_getpgrp_void=yes
12452 fi
12453
12454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12455
12456 fi
12457 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
12458 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12459 if test $ac_cv_func_getpgrp_void = yes; then
12460
12461 cat >>confdefs.h <<\_ACEOF
12462 #define GETPGRP_VOID 1
12463 _ACEOF
12464
12465 fi
12466
12467 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12468 $as_echo_n "(cached) " >&6
12469 else
12470 ac_cv_func_setvbuf_reversed=no
12471 fi
12472
12473
12474
12475 for ac_func in vprintf
12476 do
12477 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12478 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12479 $as_echo_n "checking for $ac_func... " >&6; }
12480 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12481 $as_echo_n "(cached) " >&6
12482 else
12483 cat >conftest.$ac_ext <<_ACEOF
12484 /* confdefs.h. */
12485 _ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h. */
12489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12491 #define $ac_func innocuous_$ac_func
12492
12493 /* System header to define __stub macros and hopefully few prototypes,
12494 which can conflict with char $ac_func (); below.
12495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12496 <limits.h> exists even on freestanding compilers. */
12497
12498 #ifdef __STDC__
12499 # include <limits.h>
12500 #else
12501 # include <assert.h>
12502 #endif
12503
12504 #undef $ac_func
12505
12506 /* Override any GCC internal prototype to avoid an error.
12507 Use char because int might match the return type of a GCC
12508 builtin and then its argument prototype would still apply. */
12509 #ifdef __cplusplus
12510 extern "C"
12511 #endif
12512 char $ac_func ();
12513 /* The GNU C library defines this for functions which it implements
12514 to always fail with ENOSYS. Some functions are actually named
12515 something starting with __ and the normal name is an alias. */
12516 #if defined __stub_$ac_func || defined __stub___$ac_func
12517 choke me
12518 #endif
12519
12520 int
12521 main ()
12522 {
12523 return $ac_func ();
12524 ;
12525 return 0;
12526 }
12527 _ACEOF
12528 rm -f conftest.$ac_objext conftest$ac_exeext
12529 if { (ac_try="$ac_link"
12530 case "(($ac_try" in
12531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532 *) ac_try_echo=$ac_try;;
12533 esac
12534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12535 $as_echo "$ac_try_echo") >&5
12536 (eval "$ac_link") 2>conftest.er1
12537 ac_status=$?
12538 grep -v '^ *+' conftest.er1 >conftest.err
12539 rm -f conftest.er1
12540 cat conftest.err >&5
12541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } && {
12543 test -z "$ac_c_werror_flag" ||
12544 test ! -s conftest.err
12545 } && test -s conftest$ac_exeext && {
12546 test "$cross_compiling" = yes ||
12547 $as_test_x conftest$ac_exeext
12548 }; then
12549 eval "$as_ac_var=yes"
12550 else
12551 $as_echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12553
12554 eval "$as_ac_var=no"
12555 fi
12556
12557 rm -rf conftest.dSYM
12558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12559 conftest$ac_exeext conftest.$ac_ext
12560 fi
12561 ac_res=`eval 'as_val=${'$as_ac_var'}
12562 $as_echo "$as_val"'`
12563 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12564 $as_echo "$ac_res" >&6; }
12565 as_val=`eval 'as_val=${'$as_ac_var'}
12566 $as_echo "$as_val"'`
12567 if test "x$as_val" = x""yes; then
12568 cat >>confdefs.h <<_ACEOF
12569 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12570 _ACEOF
12571
12572 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
12573 $as_echo_n "checking for _doprnt... " >&6; }
12574 if test "${ac_cv_func__doprnt+set}" = set; then
12575 $as_echo_n "(cached) " >&6
12576 else
12577 cat >conftest.$ac_ext <<_ACEOF
12578 /* confdefs.h. */
12579 _ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12583 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12585 #define _doprnt innocuous__doprnt
12586
12587 /* System header to define __stub macros and hopefully few prototypes,
12588 which can conflict with char _doprnt (); below.
12589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12590 <limits.h> exists even on freestanding compilers. */
12591
12592 #ifdef __STDC__
12593 # include <limits.h>
12594 #else
12595 # include <assert.h>
12596 #endif
12597
12598 #undef _doprnt
12599
12600 /* Override any GCC internal prototype to avoid an error.
12601 Use char because int might match the return type of a GCC
12602 builtin and then its argument prototype would still apply. */
12603 #ifdef __cplusplus
12604 extern "C"
12605 #endif
12606 char _doprnt ();
12607 /* The GNU C library defines this for functions which it implements
12608 to always fail with ENOSYS. Some functions are actually named
12609 something starting with __ and the normal name is an alias. */
12610 #if defined __stub__doprnt || defined __stub____doprnt
12611 choke me
12612 #endif
12613
12614 int
12615 main ()
12616 {
12617 return _doprnt ();
12618 ;
12619 return 0;
12620 }
12621 _ACEOF
12622 rm -f conftest.$ac_objext conftest$ac_exeext
12623 if { (ac_try="$ac_link"
12624 case "(($ac_try" in
12625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626 *) ac_try_echo=$ac_try;;
12627 esac
12628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12629 $as_echo "$ac_try_echo") >&5
12630 (eval "$ac_link") 2>conftest.er1
12631 ac_status=$?
12632 grep -v '^ *+' conftest.er1 >conftest.err
12633 rm -f conftest.er1
12634 cat conftest.err >&5
12635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); } && {
12637 test -z "$ac_c_werror_flag" ||
12638 test ! -s conftest.err
12639 } && test -s conftest$ac_exeext && {
12640 test "$cross_compiling" = yes ||
12641 $as_test_x conftest$ac_exeext
12642 }; then
12643 ac_cv_func__doprnt=yes
12644 else
12645 $as_echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12647
12648 ac_cv_func__doprnt=no
12649 fi
12650
12651 rm -rf conftest.dSYM
12652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12653 conftest$ac_exeext conftest.$ac_ext
12654 fi
12655 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12656 $as_echo "$ac_cv_func__doprnt" >&6; }
12657 if test "x$ac_cv_func__doprnt" = x""yes; then
12658
12659 cat >>confdefs.h <<\_ACEOF
12660 #define HAVE_DOPRNT 1
12661 _ACEOF
12662
12663 fi
12664
12665 fi
12666 done
12667
12668
12669 { $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
12670 $as_echo_n "checking for working strcoll... " >&6; }
12671 if test "${ac_cv_func_strcoll_works+set}" = set; then
12672 $as_echo_n "(cached) " >&6
12673 else
12674 if test "$cross_compiling" = yes; then
12675 ac_cv_func_strcoll_works=no
12676 else
12677 cat >conftest.$ac_ext <<_ACEOF
12678 /* confdefs.h. */
12679 _ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12683 $ac_includes_default
12684 int
12685 main ()
12686 {
12687 return (strcoll ("abc", "def") >= 0 ||
12688 strcoll ("ABC", "DEF") >= 0 ||
12689 strcoll ("123", "456") >= 0)
12690 ;
12691 return 0;
12692 }
12693 _ACEOF
12694 rm -f conftest$ac_exeext
12695 if { (ac_try="$ac_link"
12696 case "(($ac_try" in
12697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12698 *) ac_try_echo=$ac_try;;
12699 esac
12700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12701 $as_echo "$ac_try_echo") >&5
12702 (eval "$ac_link") 2>&5
12703 ac_status=$?
12704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12706 { (case "(($ac_try" in
12707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12708 *) ac_try_echo=$ac_try;;
12709 esac
12710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12711 $as_echo "$ac_try_echo") >&5
12712 (eval "$ac_try") 2>&5
12713 ac_status=$?
12714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; }; then
12716 ac_cv_func_strcoll_works=yes
12717 else
12718 $as_echo "$as_me: program exited with status $ac_status" >&5
12719 $as_echo "$as_me: failed program was:" >&5
12720 sed 's/^/| /' conftest.$ac_ext >&5
12721
12722 ( exit $ac_status )
12723 ac_cv_func_strcoll_works=no
12724 fi
12725 rm -rf conftest.dSYM
12726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12727 fi
12728
12729
12730 fi
12731 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
12732 $as_echo "$ac_cv_func_strcoll_works" >&6; }
12733 if test $ac_cv_func_strcoll_works = yes; then
12734
12735 cat >>confdefs.h <<\_ACEOF
12736 #define HAVE_STRCOLL 1
12737 _ACEOF
12738
12739 fi
12740
12741
12742
12743 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
12744 MALLOC_TARGET=alloca
12745 MALLOC_SRC=alloca.c
12746
12747 MALLOC_LIB='-lmalloc'
12748 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
12749 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
12750 MALLOC_DEP='$(MALLOC_LIBRARY)'
12751 fi
12752
12753 if test "$ac_cv_func_vprintf" = no; then
12754 { $as_echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
12755 $as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; }
12756 cat >conftest.$ac_ext <<_ACEOF
12757 /* confdefs.h. */
12758 _ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h. */
12762 #include <stdio.h>
12763
12764 _ACEOF
12765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12766 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
12767 ac_cv_func_vprintf=yes
12768 fi
12769 rm -f conftest*
12770
12771 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
12772 $as_echo "$ac_cv_func_vprintf" >&6; }
12773 if test $ac_cv_func_vprintf = yes; then
12774 cat >>confdefs.h <<\_ACEOF
12775 #define HAVE_VPRINTF 1
12776 _ACEOF
12777
12778 fi
12779 fi
12780
12781 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
12782 case " $LIBOBJS " in
12783 *" vprint.$ac_objext "* ) ;;
12784 *) LIBOBJS="$LIBOBJS vprint.$ac_objext"
12785 ;;
12786 esac
12787
12788 fi
12789
12790 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12791 $as_echo_n "checking return type of signal handlers... " >&6; }
12792 if test "${ac_cv_type_signal+set}" = set; then
12793 $as_echo_n "(cached) " >&6
12794 else
12795 cat >conftest.$ac_ext <<_ACEOF
12796 /* confdefs.h. */
12797 _ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12801 #include <sys/types.h>
12802 #include <signal.h>
12803
12804 int
12805 main ()
12806 {
12807 return *(signal (0, 0)) (0) == 1;
12808 ;
12809 return 0;
12810 }
12811 _ACEOF
12812 rm -f conftest.$ac_objext
12813 if { (ac_try="$ac_compile"
12814 case "(($ac_try" in
12815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816 *) ac_try_echo=$ac_try;;
12817 esac
12818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12819 $as_echo "$ac_try_echo") >&5
12820 (eval "$ac_compile") 2>conftest.er1
12821 ac_status=$?
12822 grep -v '^ *+' conftest.er1 >conftest.err
12823 rm -f conftest.er1
12824 cat conftest.err >&5
12825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } && {
12827 test -z "$ac_c_werror_flag" ||
12828 test ! -s conftest.err
12829 } && test -s conftest.$ac_objext; then
12830 ac_cv_type_signal=int
12831 else
12832 $as_echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12834
12835 ac_cv_type_signal=void
12836 fi
12837
12838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12839 fi
12840 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12841 $as_echo "$ac_cv_type_signal" >&6; }
12842
12843 cat >>confdefs.h <<_ACEOF
12844 #define RETSIGTYPE $ac_cv_type_signal
12845 _ACEOF
12846
12847
12848
12849 { $as_echo "$as_me:$LINENO: checking for __setostype" >&5
12850 $as_echo_n "checking for __setostype... " >&6; }
12851 if test "${ac_cv_func___setostype+set}" = set; then
12852 $as_echo_n "(cached) " >&6
12853 else
12854 cat >conftest.$ac_ext <<_ACEOF
12855 /* confdefs.h. */
12856 _ACEOF
12857 cat confdefs.h >>conftest.$ac_ext
12858 cat >>conftest.$ac_ext <<_ACEOF
12859 /* end confdefs.h. */
12860 /* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype.
12861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12862 #define __setostype innocuous___setostype
12863
12864 /* System header to define __stub macros and hopefully few prototypes,
12865 which can conflict with char __setostype (); below.
12866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12867 <limits.h> exists even on freestanding compilers. */
12868
12869 #ifdef __STDC__
12870 # include <limits.h>
12871 #else
12872 # include <assert.h>
12873 #endif
12874
12875 #undef __setostype
12876
12877 /* Override any GCC internal prototype to avoid an error.
12878 Use char because int might match the return type of a GCC
12879 builtin and then its argument prototype would still apply. */
12880 #ifdef __cplusplus
12881 extern "C"
12882 #endif
12883 char __setostype ();
12884 /* The GNU C library defines this for functions which it implements
12885 to always fail with ENOSYS. Some functions are actually named
12886 something starting with __ and the normal name is an alias. */
12887 #if defined __stub___setostype || defined __stub_____setostype
12888 choke me
12889 #endif
12890
12891 int
12892 main ()
12893 {
12894 return __setostype ();
12895 ;
12896 return 0;
12897 }
12898 _ACEOF
12899 rm -f conftest.$ac_objext conftest$ac_exeext
12900 if { (ac_try="$ac_link"
12901 case "(($ac_try" in
12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12904 esac
12905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12906 $as_echo "$ac_try_echo") >&5
12907 (eval "$ac_link") 2>conftest.er1
12908 ac_status=$?
12909 grep -v '^ *+' conftest.er1 >conftest.err
12910 rm -f conftest.er1
12911 cat conftest.err >&5
12912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } && {
12914 test -z "$ac_c_werror_flag" ||
12915 test ! -s conftest.err
12916 } && test -s conftest$ac_exeext && {
12917 test "$cross_compiling" = yes ||
12918 $as_test_x conftest$ac_exeext
12919 }; then
12920 ac_cv_func___setostype=yes
12921 else
12922 $as_echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12924
12925 ac_cv_func___setostype=no
12926 fi
12927
12928 rm -rf conftest.dSYM
12929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12930 conftest$ac_exeext conftest.$ac_ext
12931 fi
12932 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
12933 $as_echo "$ac_cv_func___setostype" >&6; }
12934 if test "x$ac_cv_func___setostype" = x""yes; then
12935 cat >>confdefs.h <<\_ACEOF
12936 #define HAVE_SETOSTYPE 1
12937 _ACEOF
12938
12939 fi
12940
12941 { $as_echo "$as_me:$LINENO: checking for wait3" >&5
12942 $as_echo_n "checking for wait3... " >&6; }
12943 if test "${ac_cv_func_wait3+set}" = set; then
12944 $as_echo_n "(cached) " >&6
12945 else
12946 cat >conftest.$ac_ext <<_ACEOF
12947 /* confdefs.h. */
12948 _ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h. */
12952 /* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
12953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12954 #define wait3 innocuous_wait3
12955
12956 /* System header to define __stub macros and hopefully few prototypes,
12957 which can conflict with char wait3 (); below.
12958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12959 <limits.h> exists even on freestanding compilers. */
12960
12961 #ifdef __STDC__
12962 # include <limits.h>
12963 #else
12964 # include <assert.h>
12965 #endif
12966
12967 #undef wait3
12968
12969 /* Override any GCC internal prototype to avoid an error.
12970 Use char because int might match the return type of a GCC
12971 builtin and then its argument prototype would still apply. */
12972 #ifdef __cplusplus
12973 extern "C"
12974 #endif
12975 char wait3 ();
12976 /* The GNU C library defines this for functions which it implements
12977 to always fail with ENOSYS. Some functions are actually named
12978 something starting with __ and the normal name is an alias. */
12979 #if defined __stub_wait3 || defined __stub___wait3
12980 choke me
12981 #endif
12982
12983 int
12984 main ()
12985 {
12986 return wait3 ();
12987 ;
12988 return 0;
12989 }
12990 _ACEOF
12991 rm -f conftest.$ac_objext conftest$ac_exeext
12992 if { (ac_try="$ac_link"
12993 case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12996 esac
12997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12998 $as_echo "$ac_try_echo") >&5
12999 (eval "$ac_link") 2>conftest.er1
13000 ac_status=$?
13001 grep -v '^ *+' conftest.er1 >conftest.err
13002 rm -f conftest.er1
13003 cat conftest.err >&5
13004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } && {
13006 test -z "$ac_c_werror_flag" ||
13007 test ! -s conftest.err
13008 } && test -s conftest$ac_exeext && {
13009 test "$cross_compiling" = yes ||
13010 $as_test_x conftest$ac_exeext
13011 }; then
13012 ac_cv_func_wait3=yes
13013 else
13014 $as_echo "$as_me: failed program was:" >&5
13015 sed 's/^/| /' conftest.$ac_ext >&5
13016
13017 ac_cv_func_wait3=no
13018 fi
13019
13020 rm -rf conftest.dSYM
13021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13022 conftest$ac_exeext conftest.$ac_ext
13023 fi
13024 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
13025 $as_echo "$ac_cv_func_wait3" >&6; }
13026 if test "x$ac_cv_func_wait3" = x""yes; then
13027 cat >>confdefs.h <<\_ACEOF
13028 #define HAVE_WAIT3 1
13029 _ACEOF
13030
13031 fi
13032
13033 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
13034 $as_echo_n "checking for isinf... " >&6; }
13035 if test "${ac_cv_func_isinf+set}" = set; then
13036 $as_echo_n "(cached) " >&6
13037 else
13038 cat >conftest.$ac_ext <<_ACEOF
13039 /* confdefs.h. */
13040 _ACEOF
13041 cat confdefs.h >>conftest.$ac_ext
13042 cat >>conftest.$ac_ext <<_ACEOF
13043 /* end confdefs.h. */
13044 /* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
13045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13046 #define isinf innocuous_isinf
13047
13048 /* System header to define __stub macros and hopefully few prototypes,
13049 which can conflict with char isinf (); below.
13050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13051 <limits.h> exists even on freestanding compilers. */
13052
13053 #ifdef __STDC__
13054 # include <limits.h>
13055 #else
13056 # include <assert.h>
13057 #endif
13058
13059 #undef isinf
13060
13061 /* Override any GCC internal prototype to avoid an error.
13062 Use char because int might match the return type of a GCC
13063 builtin and then its argument prototype would still apply. */
13064 #ifdef __cplusplus
13065 extern "C"
13066 #endif
13067 char isinf ();
13068 /* The GNU C library defines this for functions which it implements
13069 to always fail with ENOSYS. Some functions are actually named
13070 something starting with __ and the normal name is an alias. */
13071 #if defined __stub_isinf || defined __stub___isinf
13072 choke me
13073 #endif
13074
13075 int
13076 main ()
13077 {
13078 return isinf ();
13079 ;
13080 return 0;
13081 }
13082 _ACEOF
13083 rm -f conftest.$ac_objext conftest$ac_exeext
13084 if { (ac_try="$ac_link"
13085 case "(($ac_try" in
13086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13088 esac
13089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13090 $as_echo "$ac_try_echo") >&5
13091 (eval "$ac_link") 2>conftest.er1
13092 ac_status=$?
13093 grep -v '^ *+' conftest.er1 >conftest.err
13094 rm -f conftest.er1
13095 cat conftest.err >&5
13096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); } && {
13098 test -z "$ac_c_werror_flag" ||
13099 test ! -s conftest.err
13100 } && test -s conftest$ac_exeext && {
13101 test "$cross_compiling" = yes ||
13102 $as_test_x conftest$ac_exeext
13103 }; then
13104 ac_cv_func_isinf=yes
13105 else
13106 $as_echo "$as_me: failed program was:" >&5
13107 sed 's/^/| /' conftest.$ac_ext >&5
13108
13109 ac_cv_func_isinf=no
13110 fi
13111
13112 rm -rf conftest.dSYM
13113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13114 conftest$ac_exeext conftest.$ac_ext
13115 fi
13116 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
13117 $as_echo "$ac_cv_func_isinf" >&6; }
13118 if test "x$ac_cv_func_isinf" = x""yes; then
13119 cat >>confdefs.h <<\_ACEOF
13120 #define HAVE_ISINF_IN_LIBC 1
13121 _ACEOF
13122
13123 fi
13124
13125 { $as_echo "$as_me:$LINENO: checking for isnan" >&5
13126 $as_echo_n "checking for isnan... " >&6; }
13127 if test "${ac_cv_func_isnan+set}" = set; then
13128 $as_echo_n "(cached) " >&6
13129 else
13130 cat >conftest.$ac_ext <<_ACEOF
13131 /* confdefs.h. */
13132 _ACEOF
13133 cat confdefs.h >>conftest.$ac_ext
13134 cat >>conftest.$ac_ext <<_ACEOF
13135 /* end confdefs.h. */
13136 /* Define isnan to an innocuous variant, in case <limits.h> declares isnan.
13137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13138 #define isnan innocuous_isnan
13139
13140 /* System header to define __stub macros and hopefully few prototypes,
13141 which can conflict with char isnan (); below.
13142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13143 <limits.h> exists even on freestanding compilers. */
13144
13145 #ifdef __STDC__
13146 # include <limits.h>
13147 #else
13148 # include <assert.h>
13149 #endif
13150
13151 #undef isnan
13152
13153 /* Override any GCC internal prototype to avoid an error.
13154 Use char because int might match the return type of a GCC
13155 builtin and then its argument prototype would still apply. */
13156 #ifdef __cplusplus
13157 extern "C"
13158 #endif
13159 char isnan ();
13160 /* The GNU C library defines this for functions which it implements
13161 to always fail with ENOSYS. Some functions are actually named
13162 something starting with __ and the normal name is an alias. */
13163 #if defined __stub_isnan || defined __stub___isnan
13164 choke me
13165 #endif
13166
13167 int
13168 main ()
13169 {
13170 return isnan ();
13171 ;
13172 return 0;
13173 }
13174 _ACEOF
13175 rm -f conftest.$ac_objext conftest$ac_exeext
13176 if { (ac_try="$ac_link"
13177 case "(($ac_try" in
13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13180 esac
13181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13182 $as_echo "$ac_try_echo") >&5
13183 (eval "$ac_link") 2>conftest.er1
13184 ac_status=$?
13185 grep -v '^ *+' conftest.er1 >conftest.err
13186 rm -f conftest.er1
13187 cat conftest.err >&5
13188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); } && {
13190 test -z "$ac_c_werror_flag" ||
13191 test ! -s conftest.err
13192 } && test -s conftest$ac_exeext && {
13193 test "$cross_compiling" = yes ||
13194 $as_test_x conftest$ac_exeext
13195 }; then
13196 ac_cv_func_isnan=yes
13197 else
13198 $as_echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13200
13201 ac_cv_func_isnan=no
13202 fi
13203
13204 rm -rf conftest.dSYM
13205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13206 conftest$ac_exeext conftest.$ac_ext
13207 fi
13208 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5
13209 $as_echo "$ac_cv_func_isnan" >&6; }
13210 if test "x$ac_cv_func_isnan" = x""yes; then
13211 cat >>confdefs.h <<\_ACEOF
13212 #define HAVE_ISNAN_IN_LIBC 1
13213 _ACEOF
13214
13215 fi
13216
13217
13218 { $as_echo "$as_me:$LINENO: checking for mkfifo" >&5
13219 $as_echo_n "checking for mkfifo... " >&6; }
13220 if test "${ac_cv_func_mkfifo+set}" = set; then
13221 $as_echo_n "(cached) " >&6
13222 else
13223 cat >conftest.$ac_ext <<_ACEOF
13224 /* confdefs.h. */
13225 _ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h. */
13229 /* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo.
13230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13231 #define mkfifo innocuous_mkfifo
13232
13233 /* System header to define __stub macros and hopefully few prototypes,
13234 which can conflict with char mkfifo (); below.
13235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13236 <limits.h> exists even on freestanding compilers. */
13237
13238 #ifdef __STDC__
13239 # include <limits.h>
13240 #else
13241 # include <assert.h>
13242 #endif
13243
13244 #undef mkfifo
13245
13246 /* Override any GCC internal prototype to avoid an error.
13247 Use char because int might match the return type of a GCC
13248 builtin and then its argument prototype would still apply. */
13249 #ifdef __cplusplus
13250 extern "C"
13251 #endif
13252 char mkfifo ();
13253 /* The GNU C library defines this for functions which it implements
13254 to always fail with ENOSYS. Some functions are actually named
13255 something starting with __ and the normal name is an alias. */
13256 #if defined __stub_mkfifo || defined __stub___mkfifo
13257 choke me
13258 #endif
13259
13260 int
13261 main ()
13262 {
13263 return mkfifo ();
13264 ;
13265 return 0;
13266 }
13267 _ACEOF
13268 rm -f conftest.$ac_objext conftest$ac_exeext
13269 if { (ac_try="$ac_link"
13270 case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13273 esac
13274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13275 $as_echo "$ac_try_echo") >&5
13276 (eval "$ac_link") 2>conftest.er1
13277 ac_status=$?
13278 grep -v '^ *+' conftest.er1 >conftest.err
13279 rm -f conftest.er1
13280 cat conftest.err >&5
13281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); } && {
13283 test -z "$ac_c_werror_flag" ||
13284 test ! -s conftest.err
13285 } && test -s conftest$ac_exeext && {
13286 test "$cross_compiling" = yes ||
13287 $as_test_x conftest$ac_exeext
13288 }; then
13289 ac_cv_func_mkfifo=yes
13290 else
13291 $as_echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13293
13294 ac_cv_func_mkfifo=no
13295 fi
13296
13297 rm -rf conftest.dSYM
13298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13299 conftest$ac_exeext conftest.$ac_ext
13300 fi
13301 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
13302 $as_echo "$ac_cv_func_mkfifo" >&6; }
13303 if test "x$ac_cv_func_mkfifo" = x""yes; then
13304 cat >>confdefs.h <<\_ACEOF
13305 #define HAVE_MKFIFO 1
13306 _ACEOF
13307
13308 else
13309 cat >>confdefs.h <<\_ACEOF
13310 #define MKFIFO_MISSING 1
13311 _ACEOF
13312
13313 fi
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
13339 for ac_func in dup2 eaccess fcntl getdtablesize getgroups gethostname \
13340 getpagesize getpeername getrlimit getrusage gettimeofday \
13341 kill killpg lstat readlink sbrk select setdtablesize \
13342 setitimer tcgetpgrp uname ulimit waitpid
13343 do
13344 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13345 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13346 $as_echo_n "checking for $ac_func... " >&6; }
13347 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13348 $as_echo_n "(cached) " >&6
13349 else
13350 cat >conftest.$ac_ext <<_ACEOF
13351 /* confdefs.h. */
13352 _ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h. */
13356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13358 #define $ac_func innocuous_$ac_func
13359
13360 /* System header to define __stub macros and hopefully few prototypes,
13361 which can conflict with char $ac_func (); below.
13362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13363 <limits.h> exists even on freestanding compilers. */
13364
13365 #ifdef __STDC__
13366 # include <limits.h>
13367 #else
13368 # include <assert.h>
13369 #endif
13370
13371 #undef $ac_func
13372
13373 /* Override any GCC internal prototype to avoid an error.
13374 Use char because int might match the return type of a GCC
13375 builtin and then its argument prototype would still apply. */
13376 #ifdef __cplusplus
13377 extern "C"
13378 #endif
13379 char $ac_func ();
13380 /* The GNU C library defines this for functions which it implements
13381 to always fail with ENOSYS. Some functions are actually named
13382 something starting with __ and the normal name is an alias. */
13383 #if defined __stub_$ac_func || defined __stub___$ac_func
13384 choke me
13385 #endif
13386
13387 int
13388 main ()
13389 {
13390 return $ac_func ();
13391 ;
13392 return 0;
13393 }
13394 _ACEOF
13395 rm -f conftest.$ac_objext conftest$ac_exeext
13396 if { (ac_try="$ac_link"
13397 case "(($ac_try" in
13398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399 *) ac_try_echo=$ac_try;;
13400 esac
13401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13402 $as_echo "$ac_try_echo") >&5
13403 (eval "$ac_link") 2>conftest.er1
13404 ac_status=$?
13405 grep -v '^ *+' conftest.er1 >conftest.err
13406 rm -f conftest.er1
13407 cat conftest.err >&5
13408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); } && {
13410 test -z "$ac_c_werror_flag" ||
13411 test ! -s conftest.err
13412 } && test -s conftest$ac_exeext && {
13413 test "$cross_compiling" = yes ||
13414 $as_test_x conftest$ac_exeext
13415 }; then
13416 eval "$as_ac_var=yes"
13417 else
13418 $as_echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.$ac_ext >&5
13420
13421 eval "$as_ac_var=no"
13422 fi
13423
13424 rm -rf conftest.dSYM
13425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13426 conftest$ac_exeext conftest.$ac_ext
13427 fi
13428 ac_res=`eval 'as_val=${'$as_ac_var'}
13429 $as_echo "$as_val"'`
13430 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13431 $as_echo "$ac_res" >&6; }
13432 as_val=`eval 'as_val=${'$as_ac_var'}
13433 $as_echo "$as_val"'`
13434 if test "x$as_val" = x""yes; then
13435 cat >>confdefs.h <<_ACEOF
13436 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13437 _ACEOF
13438
13439 fi
13440 done
13441
13442
13443 for ac_func in rename
13444 do
13445 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13446 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13447 $as_echo_n "checking for $ac_func... " >&6; }
13448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13449 $as_echo_n "(cached) " >&6
13450 else
13451 cat >conftest.$ac_ext <<_ACEOF
13452 /* confdefs.h. */
13453 _ACEOF
13454 cat confdefs.h >>conftest.$ac_ext
13455 cat >>conftest.$ac_ext <<_ACEOF
13456 /* end confdefs.h. */
13457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13459 #define $ac_func innocuous_$ac_func
13460
13461 /* System header to define __stub macros and hopefully few prototypes,
13462 which can conflict with char $ac_func (); below.
13463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13464 <limits.h> exists even on freestanding compilers. */
13465
13466 #ifdef __STDC__
13467 # include <limits.h>
13468 #else
13469 # include <assert.h>
13470 #endif
13471
13472 #undef $ac_func
13473
13474 /* Override any GCC internal prototype to avoid an error.
13475 Use char because int might match the return type of a GCC
13476 builtin and then its argument prototype would still apply. */
13477 #ifdef __cplusplus
13478 extern "C"
13479 #endif
13480 char $ac_func ();
13481 /* The GNU C library defines this for functions which it implements
13482 to always fail with ENOSYS. Some functions are actually named
13483 something starting with __ and the normal name is an alias. */
13484 #if defined __stub_$ac_func || defined __stub___$ac_func
13485 choke me
13486 #endif
13487
13488 int
13489 main ()
13490 {
13491 return $ac_func ();
13492 ;
13493 return 0;
13494 }
13495 _ACEOF
13496 rm -f conftest.$ac_objext conftest$ac_exeext
13497 if { (ac_try="$ac_link"
13498 case "(($ac_try" in
13499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500 *) ac_try_echo=$ac_try;;
13501 esac
13502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13503 $as_echo "$ac_try_echo") >&5
13504 (eval "$ac_link") 2>conftest.er1
13505 ac_status=$?
13506 grep -v '^ *+' conftest.er1 >conftest.err
13507 rm -f conftest.er1
13508 cat conftest.err >&5
13509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); } && {
13511 test -z "$ac_c_werror_flag" ||
13512 test ! -s conftest.err
13513 } && test -s conftest$ac_exeext && {
13514 test "$cross_compiling" = yes ||
13515 $as_test_x conftest$ac_exeext
13516 }; then
13517 eval "$as_ac_var=yes"
13518 else
13519 $as_echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13521
13522 eval "$as_ac_var=no"
13523 fi
13524
13525 rm -rf conftest.dSYM
13526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13527 conftest$ac_exeext conftest.$ac_ext
13528 fi
13529 ac_res=`eval 'as_val=${'$as_ac_var'}
13530 $as_echo "$as_val"'`
13531 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13532 $as_echo "$ac_res" >&6; }
13533 as_val=`eval 'as_val=${'$as_ac_var'}
13534 $as_echo "$as_val"'`
13535 if test "x$as_val" = x""yes; then
13536 cat >>confdefs.h <<_ACEOF
13537 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13538 _ACEOF
13539
13540 else
13541 case " $LIBOBJS " in
13542 *" $ac_func.$ac_objext "* ) ;;
13543 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13544 ;;
13545 esac
13546
13547 fi
13548 done
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
13580
13581 for ac_func in bcopy bzero confstr faccessat fnmatch \
13582 getaddrinfo gethostbyname getservbyname getservent inet_aton \
13583 memmove pathconf putenv raise regcomp regexec \
13584 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
13585 sysconf syslog tcgetattr times ttyname tzset unsetenv
13586 do
13587 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13588 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13589 $as_echo_n "checking for $ac_func... " >&6; }
13590 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13591 $as_echo_n "(cached) " >&6
13592 else
13593 cat >conftest.$ac_ext <<_ACEOF
13594 /* confdefs.h. */
13595 _ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h. */
13599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13601 #define $ac_func innocuous_$ac_func
13602
13603 /* System header to define __stub macros and hopefully few prototypes,
13604 which can conflict with char $ac_func (); below.
13605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13606 <limits.h> exists even on freestanding compilers. */
13607
13608 #ifdef __STDC__
13609 # include <limits.h>
13610 #else
13611 # include <assert.h>
13612 #endif
13613
13614 #undef $ac_func
13615
13616 /* Override any GCC internal prototype to avoid an error.
13617 Use char because int might match the return type of a GCC
13618 builtin and then its argument prototype would still apply. */
13619 #ifdef __cplusplus
13620 extern "C"
13621 #endif
13622 char $ac_func ();
13623 /* The GNU C library defines this for functions which it implements
13624 to always fail with ENOSYS. Some functions are actually named
13625 something starting with __ and the normal name is an alias. */
13626 #if defined __stub_$ac_func || defined __stub___$ac_func
13627 choke me
13628 #endif
13629
13630 int
13631 main ()
13632 {
13633 return $ac_func ();
13634 ;
13635 return 0;
13636 }
13637 _ACEOF
13638 rm -f conftest.$ac_objext conftest$ac_exeext
13639 if { (ac_try="$ac_link"
13640 case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13643 esac
13644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13645 $as_echo "$ac_try_echo") >&5
13646 (eval "$ac_link") 2>conftest.er1
13647 ac_status=$?
13648 grep -v '^ *+' conftest.er1 >conftest.err
13649 rm -f conftest.er1
13650 cat conftest.err >&5
13651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } && {
13653 test -z "$ac_c_werror_flag" ||
13654 test ! -s conftest.err
13655 } && test -s conftest$ac_exeext && {
13656 test "$cross_compiling" = yes ||
13657 $as_test_x conftest$ac_exeext
13658 }; then
13659 eval "$as_ac_var=yes"
13660 else
13661 $as_echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.$ac_ext >&5
13663
13664 eval "$as_ac_var=no"
13665 fi
13666
13667 rm -rf conftest.dSYM
13668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13669 conftest$ac_exeext conftest.$ac_ext
13670 fi
13671 ac_res=`eval 'as_val=${'$as_ac_var'}
13672 $as_echo "$as_val"'`
13673 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13674 $as_echo "$ac_res" >&6; }
13675 as_val=`eval 'as_val=${'$as_ac_var'}
13676 $as_echo "$as_val"'`
13677 if test "x$as_val" = x""yes; then
13678 cat >>confdefs.h <<_ACEOF
13679 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13680 _ACEOF
13681
13682 fi
13683 done
13684
13685
13686
13687
13688 for ac_func in vasprintf asprintf
13689 do
13690 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13691 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13692 $as_echo_n "checking for $ac_func... " >&6; }
13693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13694 $as_echo_n "(cached) " >&6
13695 else
13696 cat >conftest.$ac_ext <<_ACEOF
13697 /* confdefs.h. */
13698 _ACEOF
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h. */
13702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13704 #define $ac_func innocuous_$ac_func
13705
13706 /* System header to define __stub macros and hopefully few prototypes,
13707 which can conflict with char $ac_func (); below.
13708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13709 <limits.h> exists even on freestanding compilers. */
13710
13711 #ifdef __STDC__
13712 # include <limits.h>
13713 #else
13714 # include <assert.h>
13715 #endif
13716
13717 #undef $ac_func
13718
13719 /* Override any GCC internal prototype to avoid an error.
13720 Use char because int might match the return type of a GCC
13721 builtin and then its argument prototype would still apply. */
13722 #ifdef __cplusplus
13723 extern "C"
13724 #endif
13725 char $ac_func ();
13726 /* The GNU C library defines this for functions which it implements
13727 to always fail with ENOSYS. Some functions are actually named
13728 something starting with __ and the normal name is an alias. */
13729 #if defined __stub_$ac_func || defined __stub___$ac_func
13730 choke me
13731 #endif
13732
13733 int
13734 main ()
13735 {
13736 return $ac_func ();
13737 ;
13738 return 0;
13739 }
13740 _ACEOF
13741 rm -f conftest.$ac_objext conftest$ac_exeext
13742 if { (ac_try="$ac_link"
13743 case "(($ac_try" in
13744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13745 *) ac_try_echo=$ac_try;;
13746 esac
13747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13748 $as_echo "$ac_try_echo") >&5
13749 (eval "$ac_link") 2>conftest.er1
13750 ac_status=$?
13751 grep -v '^ *+' conftest.er1 >conftest.err
13752 rm -f conftest.er1
13753 cat conftest.err >&5
13754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } && {
13756 test -z "$ac_c_werror_flag" ||
13757 test ! -s conftest.err
13758 } && test -s conftest$ac_exeext && {
13759 test "$cross_compiling" = yes ||
13760 $as_test_x conftest$ac_exeext
13761 }; then
13762 eval "$as_ac_var=yes"
13763 else
13764 $as_echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13766
13767 eval "$as_ac_var=no"
13768 fi
13769
13770 rm -rf conftest.dSYM
13771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13772 conftest$ac_exeext conftest.$ac_ext
13773 fi
13774 ac_res=`eval 'as_val=${'$as_ac_var'}
13775 $as_echo "$as_val"'`
13776 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13777 $as_echo "$ac_res" >&6; }
13778 as_val=`eval 'as_val=${'$as_ac_var'}
13779 $as_echo "$as_val"'`
13780 if test "x$as_val" = x""yes; then
13781 cat >>confdefs.h <<_ACEOF
13782 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13783 _ACEOF
13784
13785 fi
13786 done
13787
13788
13789
13790
13791
13792
13793
13794 for ac_func in isascii isblank isgraph isprint isspace isxdigit
13795 do
13796 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13797 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13798 $as_echo_n "checking for $ac_func... " >&6; }
13799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13800 $as_echo_n "(cached) " >&6
13801 else
13802 cat >conftest.$ac_ext <<_ACEOF
13803 /* confdefs.h. */
13804 _ACEOF
13805 cat confdefs.h >>conftest.$ac_ext
13806 cat >>conftest.$ac_ext <<_ACEOF
13807 /* end confdefs.h. */
13808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13810 #define $ac_func innocuous_$ac_func
13811
13812 /* System header to define __stub macros and hopefully few prototypes,
13813 which can conflict with char $ac_func (); below.
13814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13815 <limits.h> exists even on freestanding compilers. */
13816
13817 #ifdef __STDC__
13818 # include <limits.h>
13819 #else
13820 # include <assert.h>
13821 #endif
13822
13823 #undef $ac_func
13824
13825 /* Override any GCC internal prototype to avoid an error.
13826 Use char because int might match the return type of a GCC
13827 builtin and then its argument prototype would still apply. */
13828 #ifdef __cplusplus
13829 extern "C"
13830 #endif
13831 char $ac_func ();
13832 /* The GNU C library defines this for functions which it implements
13833 to always fail with ENOSYS. Some functions are actually named
13834 something starting with __ and the normal name is an alias. */
13835 #if defined __stub_$ac_func || defined __stub___$ac_func
13836 choke me
13837 #endif
13838
13839 int
13840 main ()
13841 {
13842 return $ac_func ();
13843 ;
13844 return 0;
13845 }
13846 _ACEOF
13847 rm -f conftest.$ac_objext conftest$ac_exeext
13848 if { (ac_try="$ac_link"
13849 case "(($ac_try" in
13850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13851 *) ac_try_echo=$ac_try;;
13852 esac
13853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13854 $as_echo "$ac_try_echo") >&5
13855 (eval "$ac_link") 2>conftest.er1
13856 ac_status=$?
13857 grep -v '^ *+' conftest.er1 >conftest.err
13858 rm -f conftest.er1
13859 cat conftest.err >&5
13860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); } && {
13862 test -z "$ac_c_werror_flag" ||
13863 test ! -s conftest.err
13864 } && test -s conftest$ac_exeext && {
13865 test "$cross_compiling" = yes ||
13866 $as_test_x conftest$ac_exeext
13867 }; then
13868 eval "$as_ac_var=yes"
13869 else
13870 $as_echo "$as_me: failed program was:" >&5
13871 sed 's/^/| /' conftest.$ac_ext >&5
13872
13873 eval "$as_ac_var=no"
13874 fi
13875
13876 rm -rf conftest.dSYM
13877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13878 conftest$ac_exeext conftest.$ac_ext
13879 fi
13880 ac_res=`eval 'as_val=${'$as_ac_var'}
13881 $as_echo "$as_val"'`
13882 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13883 $as_echo "$ac_res" >&6; }
13884 as_val=`eval 'as_val=${'$as_ac_var'}
13885 $as_echo "$as_val"'`
13886 if test "x$as_val" = x""yes; then
13887 cat >>confdefs.h <<_ACEOF
13888 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13889 _ACEOF
13890
13891 fi
13892 done
13893
13894
13895
13896
13897 for ac_func in getpwent getpwnam getpwuid
13898 do
13899 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13900 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13901 $as_echo_n "checking for $ac_func... " >&6; }
13902 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13903 $as_echo_n "(cached) " >&6
13904 else
13905 cat >conftest.$ac_ext <<_ACEOF
13906 /* confdefs.h. */
13907 _ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13913 #define $ac_func innocuous_$ac_func
13914
13915 /* System header to define __stub macros and hopefully few prototypes,
13916 which can conflict with char $ac_func (); below.
13917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13918 <limits.h> exists even on freestanding compilers. */
13919
13920 #ifdef __STDC__
13921 # include <limits.h>
13922 #else
13923 # include <assert.h>
13924 #endif
13925
13926 #undef $ac_func
13927
13928 /* Override any GCC internal prototype to avoid an error.
13929 Use char because int might match the return type of a GCC
13930 builtin and then its argument prototype would still apply. */
13931 #ifdef __cplusplus
13932 extern "C"
13933 #endif
13934 char $ac_func ();
13935 /* The GNU C library defines this for functions which it implements
13936 to always fail with ENOSYS. Some functions are actually named
13937 something starting with __ and the normal name is an alias. */
13938 #if defined __stub_$ac_func || defined __stub___$ac_func
13939 choke me
13940 #endif
13941
13942 int
13943 main ()
13944 {
13945 return $ac_func ();
13946 ;
13947 return 0;
13948 }
13949 _ACEOF
13950 rm -f conftest.$ac_objext conftest$ac_exeext
13951 if { (ac_try="$ac_link"
13952 case "(($ac_try" in
13953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13954 *) ac_try_echo=$ac_try;;
13955 esac
13956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13957 $as_echo "$ac_try_echo") >&5
13958 (eval "$ac_link") 2>conftest.er1
13959 ac_status=$?
13960 grep -v '^ *+' conftest.er1 >conftest.err
13961 rm -f conftest.er1
13962 cat conftest.err >&5
13963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } && {
13965 test -z "$ac_c_werror_flag" ||
13966 test ! -s conftest.err
13967 } && test -s conftest$ac_exeext && {
13968 test "$cross_compiling" = yes ||
13969 $as_test_x conftest$ac_exeext
13970 }; then
13971 eval "$as_ac_var=yes"
13972 else
13973 $as_echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13975
13976 eval "$as_ac_var=no"
13977 fi
13978
13979 rm -rf conftest.dSYM
13980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13981 conftest$ac_exeext conftest.$ac_ext
13982 fi
13983 ac_res=`eval 'as_val=${'$as_ac_var'}
13984 $as_echo "$as_val"'`
13985 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13986 $as_echo "$ac_res" >&6; }
13987 as_val=`eval 'as_val=${'$as_ac_var'}
13988 $as_echo "$as_val"'`
13989 if test "x$as_val" = x""yes; then
13990 cat >>confdefs.h <<_ACEOF
13991 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13992 _ACEOF
13993
13994 fi
13995 done
13996
13997
13998
13999 for ac_func in getcwd memset
14000 do
14001 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14002 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14003 $as_echo_n "checking for $ac_func... " >&6; }
14004 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14005 $as_echo_n "(cached) " >&6
14006 else
14007 cat >conftest.$ac_ext <<_ACEOF
14008 /* confdefs.h. */
14009 _ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14015 #define $ac_func innocuous_$ac_func
14016
14017 /* System header to define __stub macros and hopefully few prototypes,
14018 which can conflict with char $ac_func (); below.
14019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14020 <limits.h> exists even on freestanding compilers. */
14021
14022 #ifdef __STDC__
14023 # include <limits.h>
14024 #else
14025 # include <assert.h>
14026 #endif
14027
14028 #undef $ac_func
14029
14030 /* Override any GCC internal prototype to avoid an error.
14031 Use char because int might match the return type of a GCC
14032 builtin and then its argument prototype would still apply. */
14033 #ifdef __cplusplus
14034 extern "C"
14035 #endif
14036 char $ac_func ();
14037 /* The GNU C library defines this for functions which it implements
14038 to always fail with ENOSYS. Some functions are actually named
14039 something starting with __ and the normal name is an alias. */
14040 #if defined __stub_$ac_func || defined __stub___$ac_func
14041 choke me
14042 #endif
14043
14044 int
14045 main ()
14046 {
14047 return $ac_func ();
14048 ;
14049 return 0;
14050 }
14051 _ACEOF
14052 rm -f conftest.$ac_objext conftest$ac_exeext
14053 if { (ac_try="$ac_link"
14054 case "(($ac_try" in
14055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056 *) ac_try_echo=$ac_try;;
14057 esac
14058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14059 $as_echo "$ac_try_echo") >&5
14060 (eval "$ac_link") 2>conftest.er1
14061 ac_status=$?
14062 grep -v '^ *+' conftest.er1 >conftest.err
14063 rm -f conftest.er1
14064 cat conftest.err >&5
14065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } && {
14067 test -z "$ac_c_werror_flag" ||
14068 test ! -s conftest.err
14069 } && test -s conftest$ac_exeext && {
14070 test "$cross_compiling" = yes ||
14071 $as_test_x conftest$ac_exeext
14072 }; then
14073 eval "$as_ac_var=yes"
14074 else
14075 $as_echo "$as_me: failed program was:" >&5
14076 sed 's/^/| /' conftest.$ac_ext >&5
14077
14078 eval "$as_ac_var=no"
14079 fi
14080
14081 rm -rf conftest.dSYM
14082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14083 conftest$ac_exeext conftest.$ac_ext
14084 fi
14085 ac_res=`eval 'as_val=${'$as_ac_var'}
14086 $as_echo "$as_val"'`
14087 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14088 $as_echo "$ac_res" >&6; }
14089 as_val=`eval 'as_val=${'$as_ac_var'}
14090 $as_echo "$as_val"'`
14091 if test "x$as_val" = x""yes; then
14092 cat >>confdefs.h <<_ACEOF
14093 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14094 _ACEOF
14095
14096 else
14097 case " $LIBOBJS " in
14098 *" $ac_func.$ac_objext "* ) ;;
14099 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14100 ;;
14101 esac
14102
14103 fi
14104 done
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114 for ac_func in strcasecmp strcasestr strerror strftime strnlen strpbrk strstr
14115 do
14116 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14117 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14118 $as_echo_n "checking for $ac_func... " >&6; }
14119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14120 $as_echo_n "(cached) " >&6
14121 else
14122 cat >conftest.$ac_ext <<_ACEOF
14123 /* confdefs.h. */
14124 _ACEOF
14125 cat confdefs.h >>conftest.$ac_ext
14126 cat >>conftest.$ac_ext <<_ACEOF
14127 /* end confdefs.h. */
14128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14130 #define $ac_func innocuous_$ac_func
14131
14132 /* System header to define __stub macros and hopefully few prototypes,
14133 which can conflict with char $ac_func (); below.
14134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14135 <limits.h> exists even on freestanding compilers. */
14136
14137 #ifdef __STDC__
14138 # include <limits.h>
14139 #else
14140 # include <assert.h>
14141 #endif
14142
14143 #undef $ac_func
14144
14145 /* Override any GCC internal prototype to avoid an error.
14146 Use char because int might match the return type of a GCC
14147 builtin and then its argument prototype would still apply. */
14148 #ifdef __cplusplus
14149 extern "C"
14150 #endif
14151 char $ac_func ();
14152 /* The GNU C library defines this for functions which it implements
14153 to always fail with ENOSYS. Some functions are actually named
14154 something starting with __ and the normal name is an alias. */
14155 #if defined __stub_$ac_func || defined __stub___$ac_func
14156 choke me
14157 #endif
14158
14159 int
14160 main ()
14161 {
14162 return $ac_func ();
14163 ;
14164 return 0;
14165 }
14166 _ACEOF
14167 rm -f conftest.$ac_objext conftest$ac_exeext
14168 if { (ac_try="$ac_link"
14169 case "(($ac_try" in
14170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14171 *) ac_try_echo=$ac_try;;
14172 esac
14173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14174 $as_echo "$ac_try_echo") >&5
14175 (eval "$ac_link") 2>conftest.er1
14176 ac_status=$?
14177 grep -v '^ *+' conftest.er1 >conftest.err
14178 rm -f conftest.er1
14179 cat conftest.err >&5
14180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } && {
14182 test -z "$ac_c_werror_flag" ||
14183 test ! -s conftest.err
14184 } && test -s conftest$ac_exeext && {
14185 test "$cross_compiling" = yes ||
14186 $as_test_x conftest$ac_exeext
14187 }; then
14188 eval "$as_ac_var=yes"
14189 else
14190 $as_echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14192
14193 eval "$as_ac_var=no"
14194 fi
14195
14196 rm -rf conftest.dSYM
14197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14198 conftest$ac_exeext conftest.$ac_ext
14199 fi
14200 ac_res=`eval 'as_val=${'$as_ac_var'}
14201 $as_echo "$as_val"'`
14202 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14203 $as_echo "$ac_res" >&6; }
14204 as_val=`eval 'as_val=${'$as_ac_var'}
14205 $as_echo "$as_val"'`
14206 if test "x$as_val" = x""yes; then
14207 cat >>confdefs.h <<_ACEOF
14208 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14209 _ACEOF
14210
14211 else
14212 case " $LIBOBJS " in
14213 *" $ac_func.$ac_objext "* ) ;;
14214 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14215 ;;
14216 esac
14217
14218 fi
14219 done
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229 for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
14230 do
14231 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14232 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14233 $as_echo_n "checking for $ac_func... " >&6; }
14234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14235 $as_echo_n "(cached) " >&6
14236 else
14237 cat >conftest.$ac_ext <<_ACEOF
14238 /* confdefs.h. */
14239 _ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h. */
14243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14245 #define $ac_func innocuous_$ac_func
14246
14247 /* System header to define __stub macros and hopefully few prototypes,
14248 which can conflict with char $ac_func (); below.
14249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14250 <limits.h> exists even on freestanding compilers. */
14251
14252 #ifdef __STDC__
14253 # include <limits.h>
14254 #else
14255 # include <assert.h>
14256 #endif
14257
14258 #undef $ac_func
14259
14260 /* Override any GCC internal prototype to avoid an error.
14261 Use char because int might match the return type of a GCC
14262 builtin and then its argument prototype would still apply. */
14263 #ifdef __cplusplus
14264 extern "C"
14265 #endif
14266 char $ac_func ();
14267 /* The GNU C library defines this for functions which it implements
14268 to always fail with ENOSYS. Some functions are actually named
14269 something starting with __ and the normal name is an alias. */
14270 #if defined __stub_$ac_func || defined __stub___$ac_func
14271 choke me
14272 #endif
14273
14274 int
14275 main ()
14276 {
14277 return $ac_func ();
14278 ;
14279 return 0;
14280 }
14281 _ACEOF
14282 rm -f conftest.$ac_objext conftest$ac_exeext
14283 if { (ac_try="$ac_link"
14284 case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14287 esac
14288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14289 $as_echo "$ac_try_echo") >&5
14290 (eval "$ac_link") 2>conftest.er1
14291 ac_status=$?
14292 grep -v '^ *+' conftest.er1 >conftest.err
14293 rm -f conftest.er1
14294 cat conftest.err >&5
14295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } && {
14297 test -z "$ac_c_werror_flag" ||
14298 test ! -s conftest.err
14299 } && test -s conftest$ac_exeext && {
14300 test "$cross_compiling" = yes ||
14301 $as_test_x conftest$ac_exeext
14302 }; then
14303 eval "$as_ac_var=yes"
14304 else
14305 $as_echo "$as_me: failed program was:" >&5
14306 sed 's/^/| /' conftest.$ac_ext >&5
14307
14308 eval "$as_ac_var=no"
14309 fi
14310
14311 rm -rf conftest.dSYM
14312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14313 conftest$ac_exeext conftest.$ac_ext
14314 fi
14315 ac_res=`eval 'as_val=${'$as_ac_var'}
14316 $as_echo "$as_val"'`
14317 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14318 $as_echo "$ac_res" >&6; }
14319 as_val=`eval 'as_val=${'$as_ac_var'}
14320 $as_echo "$as_val"'`
14321 if test "x$as_val" = x""yes; then
14322 cat >>confdefs.h <<_ACEOF
14323 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14324 _ACEOF
14325
14326 else
14327 case " $LIBOBJS " in
14328 *" $ac_func.$ac_objext "* ) ;;
14329 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14330 ;;
14331 esac
14332
14333 fi
14334 done
14335
14336
14337
14338 for ac_func in dprintf
14339 do
14340 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14341 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14342 $as_echo_n "checking for $ac_func... " >&6; }
14343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14344 $as_echo_n "(cached) " >&6
14345 else
14346 cat >conftest.$ac_ext <<_ACEOF
14347 /* confdefs.h. */
14348 _ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h. */
14352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14354 #define $ac_func innocuous_$ac_func
14355
14356 /* System header to define __stub macros and hopefully few prototypes,
14357 which can conflict with char $ac_func (); below.
14358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14359 <limits.h> exists even on freestanding compilers. */
14360
14361 #ifdef __STDC__
14362 # include <limits.h>
14363 #else
14364 # include <assert.h>
14365 #endif
14366
14367 #undef $ac_func
14368
14369 /* Override any GCC internal prototype to avoid an error.
14370 Use char because int might match the return type of a GCC
14371 builtin and then its argument prototype would still apply. */
14372 #ifdef __cplusplus
14373 extern "C"
14374 #endif
14375 char $ac_func ();
14376 /* The GNU C library defines this for functions which it implements
14377 to always fail with ENOSYS. Some functions are actually named
14378 something starting with __ and the normal name is an alias. */
14379 #if defined __stub_$ac_func || defined __stub___$ac_func
14380 choke me
14381 #endif
14382
14383 int
14384 main ()
14385 {
14386 return $ac_func ();
14387 ;
14388 return 0;
14389 }
14390 _ACEOF
14391 rm -f conftest.$ac_objext conftest$ac_exeext
14392 if { (ac_try="$ac_link"
14393 case "(($ac_try" in
14394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395 *) ac_try_echo=$ac_try;;
14396 esac
14397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14398 $as_echo "$ac_try_echo") >&5
14399 (eval "$ac_link") 2>conftest.er1
14400 ac_status=$?
14401 grep -v '^ *+' conftest.er1 >conftest.err
14402 rm -f conftest.er1
14403 cat conftest.err >&5
14404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); } && {
14406 test -z "$ac_c_werror_flag" ||
14407 test ! -s conftest.err
14408 } && test -s conftest$ac_exeext && {
14409 test "$cross_compiling" = yes ||
14410 $as_test_x conftest$ac_exeext
14411 }; then
14412 eval "$as_ac_var=yes"
14413 else
14414 $as_echo "$as_me: failed program was:" >&5
14415 sed 's/^/| /' conftest.$ac_ext >&5
14416
14417 eval "$as_ac_var=no"
14418 fi
14419
14420 rm -rf conftest.dSYM
14421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14422 conftest$ac_exeext conftest.$ac_ext
14423 fi
14424 ac_res=`eval 'as_val=${'$as_ac_var'}
14425 $as_echo "$as_val"'`
14426 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14427 $as_echo "$ac_res" >&6; }
14428 as_val=`eval 'as_val=${'$as_ac_var'}
14429 $as_echo "$as_val"'`
14430 if test "x$as_val" = x""yes; then
14431 cat >>confdefs.h <<_ACEOF
14432 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14433 _ACEOF
14434
14435 else
14436 case " $LIBOBJS " in
14437 *" $ac_func.$ac_objext "* ) ;;
14438 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14439 ;;
14440 esac
14441
14442 fi
14443 done
14444
14445
14446
14447 for ac_func in strchrnul
14448 do
14449 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14450 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14451 $as_echo_n "checking for $ac_func... " >&6; }
14452 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14453 $as_echo_n "(cached) " >&6
14454 else
14455 cat >conftest.$ac_ext <<_ACEOF
14456 /* confdefs.h. */
14457 _ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14463 #define $ac_func innocuous_$ac_func
14464
14465 /* System header to define __stub macros and hopefully few prototypes,
14466 which can conflict with char $ac_func (); below.
14467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14468 <limits.h> exists even on freestanding compilers. */
14469
14470 #ifdef __STDC__
14471 # include <limits.h>
14472 #else
14473 # include <assert.h>
14474 #endif
14475
14476 #undef $ac_func
14477
14478 /* Override any GCC internal prototype to avoid an error.
14479 Use char because int might match the return type of a GCC
14480 builtin and then its argument prototype would still apply. */
14481 #ifdef __cplusplus
14482 extern "C"
14483 #endif
14484 char $ac_func ();
14485 /* The GNU C library defines this for functions which it implements
14486 to always fail with ENOSYS. Some functions are actually named
14487 something starting with __ and the normal name is an alias. */
14488 #if defined __stub_$ac_func || defined __stub___$ac_func
14489 choke me
14490 #endif
14491
14492 int
14493 main ()
14494 {
14495 return $ac_func ();
14496 ;
14497 return 0;
14498 }
14499 _ACEOF
14500 rm -f conftest.$ac_objext conftest$ac_exeext
14501 if { (ac_try="$ac_link"
14502 case "(($ac_try" in
14503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14504 *) ac_try_echo=$ac_try;;
14505 esac
14506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14507 $as_echo "$ac_try_echo") >&5
14508 (eval "$ac_link") 2>conftest.er1
14509 ac_status=$?
14510 grep -v '^ *+' conftest.er1 >conftest.err
14511 rm -f conftest.er1
14512 cat conftest.err >&5
14513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); } && {
14515 test -z "$ac_c_werror_flag" ||
14516 test ! -s conftest.err
14517 } && test -s conftest$ac_exeext && {
14518 test "$cross_compiling" = yes ||
14519 $as_test_x conftest$ac_exeext
14520 }; then
14521 eval "$as_ac_var=yes"
14522 else
14523 $as_echo "$as_me: failed program was:" >&5
14524 sed 's/^/| /' conftest.$ac_ext >&5
14525
14526 eval "$as_ac_var=no"
14527 fi
14528
14529 rm -rf conftest.dSYM
14530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14531 conftest$ac_exeext conftest.$ac_ext
14532 fi
14533 ac_res=`eval 'as_val=${'$as_ac_var'}
14534 $as_echo "$as_val"'`
14535 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14536 $as_echo "$ac_res" >&6; }
14537 as_val=`eval 'as_val=${'$as_ac_var'}
14538 $as_echo "$as_val"'`
14539 if test "x$as_val" = x""yes; then
14540 cat >>confdefs.h <<_ACEOF
14541 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14542 _ACEOF
14543
14544 else
14545 case " $LIBOBJS " in
14546 *" $ac_func.$ac_objext "* ) ;;
14547 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14548 ;;
14549 esac
14550
14551 fi
14552 done
14553
14554
14555
14556 { $as_echo "$as_me:$LINENO: checking whether confstr is declared" >&5
14557 $as_echo_n "checking whether confstr is declared... " >&6; }
14558 if test "${ac_cv_have_decl_confstr+set}" = set; then
14559 $as_echo_n "(cached) " >&6
14560 else
14561 cat >conftest.$ac_ext <<_ACEOF
14562 /* confdefs.h. */
14563 _ACEOF
14564 cat confdefs.h >>conftest.$ac_ext
14565 cat >>conftest.$ac_ext <<_ACEOF
14566 /* end confdefs.h. */
14567 $ac_includes_default
14568 int
14569 main ()
14570 {
14571 #ifndef confstr
14572 (void) confstr;
14573 #endif
14574
14575 ;
14576 return 0;
14577 }
14578 _ACEOF
14579 rm -f conftest.$ac_objext
14580 if { (ac_try="$ac_compile"
14581 case "(($ac_try" in
14582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14583 *) ac_try_echo=$ac_try;;
14584 esac
14585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14586 $as_echo "$ac_try_echo") >&5
14587 (eval "$ac_compile") 2>conftest.er1
14588 ac_status=$?
14589 grep -v '^ *+' conftest.er1 >conftest.err
14590 rm -f conftest.er1
14591 cat conftest.err >&5
14592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); } && {
14594 test -z "$ac_c_werror_flag" ||
14595 test ! -s conftest.err
14596 } && test -s conftest.$ac_objext; then
14597 ac_cv_have_decl_confstr=yes
14598 else
14599 $as_echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.$ac_ext >&5
14601
14602 ac_cv_have_decl_confstr=no
14603 fi
14604
14605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14606 fi
14607 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
14608 $as_echo "$ac_cv_have_decl_confstr" >&6; }
14609 if test "x$ac_cv_have_decl_confstr" = x""yes; then
14610
14611 cat >>confdefs.h <<_ACEOF
14612 #define HAVE_DECL_CONFSTR 1
14613 _ACEOF
14614
14615
14616 else
14617 cat >>confdefs.h <<_ACEOF
14618 #define HAVE_DECL_CONFSTR 0
14619 _ACEOF
14620
14621
14622 fi
14623
14624
14625 { $as_echo "$as_me:$LINENO: checking whether printf is declared" >&5
14626 $as_echo_n "checking whether printf is declared... " >&6; }
14627 if test "${ac_cv_have_decl_printf+set}" = set; then
14628 $as_echo_n "(cached) " >&6
14629 else
14630 cat >conftest.$ac_ext <<_ACEOF
14631 /* confdefs.h. */
14632 _ACEOF
14633 cat confdefs.h >>conftest.$ac_ext
14634 cat >>conftest.$ac_ext <<_ACEOF
14635 /* end confdefs.h. */
14636 $ac_includes_default
14637 int
14638 main ()
14639 {
14640 #ifndef printf
14641 (void) printf;
14642 #endif
14643
14644 ;
14645 return 0;
14646 }
14647 _ACEOF
14648 rm -f conftest.$ac_objext
14649 if { (ac_try="$ac_compile"
14650 case "(($ac_try" in
14651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14652 *) ac_try_echo=$ac_try;;
14653 esac
14654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14655 $as_echo "$ac_try_echo") >&5
14656 (eval "$ac_compile") 2>conftest.er1
14657 ac_status=$?
14658 grep -v '^ *+' conftest.er1 >conftest.err
14659 rm -f conftest.er1
14660 cat conftest.err >&5
14661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); } && {
14663 test -z "$ac_c_werror_flag" ||
14664 test ! -s conftest.err
14665 } && test -s conftest.$ac_objext; then
14666 ac_cv_have_decl_printf=yes
14667 else
14668 $as_echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14670
14671 ac_cv_have_decl_printf=no
14672 fi
14673
14674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14675 fi
14676 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
14677 $as_echo "$ac_cv_have_decl_printf" >&6; }
14678 if test "x$ac_cv_have_decl_printf" = x""yes; then
14679
14680 cat >>confdefs.h <<_ACEOF
14681 #define HAVE_DECL_PRINTF 1
14682 _ACEOF
14683
14684
14685 else
14686 cat >>confdefs.h <<_ACEOF
14687 #define HAVE_DECL_PRINTF 0
14688 _ACEOF
14689
14690
14691 fi
14692
14693
14694 { $as_echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
14695 $as_echo_n "checking whether sbrk is declared... " >&6; }
14696 if test "${ac_cv_have_decl_sbrk+set}" = set; then
14697 $as_echo_n "(cached) " >&6
14698 else
14699 cat >conftest.$ac_ext <<_ACEOF
14700 /* confdefs.h. */
14701 _ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h. */
14705 $ac_includes_default
14706 int
14707 main ()
14708 {
14709 #ifndef sbrk
14710 (void) sbrk;
14711 #endif
14712
14713 ;
14714 return 0;
14715 }
14716 _ACEOF
14717 rm -f conftest.$ac_objext
14718 if { (ac_try="$ac_compile"
14719 case "(($ac_try" in
14720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14721 *) ac_try_echo=$ac_try;;
14722 esac
14723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14724 $as_echo "$ac_try_echo") >&5
14725 (eval "$ac_compile") 2>conftest.er1
14726 ac_status=$?
14727 grep -v '^ *+' conftest.er1 >conftest.err
14728 rm -f conftest.er1
14729 cat conftest.err >&5
14730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } && {
14732 test -z "$ac_c_werror_flag" ||
14733 test ! -s conftest.err
14734 } && test -s conftest.$ac_objext; then
14735 ac_cv_have_decl_sbrk=yes
14736 else
14737 $as_echo "$as_me: failed program was:" >&5
14738 sed 's/^/| /' conftest.$ac_ext >&5
14739
14740 ac_cv_have_decl_sbrk=no
14741 fi
14742
14743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14744 fi
14745 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
14746 $as_echo "$ac_cv_have_decl_sbrk" >&6; }
14747 if test "x$ac_cv_have_decl_sbrk" = x""yes; then
14748
14749 cat >>confdefs.h <<_ACEOF
14750 #define HAVE_DECL_SBRK 1
14751 _ACEOF
14752
14753
14754 else
14755 cat >>confdefs.h <<_ACEOF
14756 #define HAVE_DECL_SBRK 0
14757 _ACEOF
14758
14759
14760 fi
14761
14762
14763 { $as_echo "$as_me:$LINENO: checking whether setregid is declared" >&5
14764 $as_echo_n "checking whether setregid is declared... " >&6; }
14765 if test "${ac_cv_have_decl_setregid+set}" = set; then
14766 $as_echo_n "(cached) " >&6
14767 else
14768 cat >conftest.$ac_ext <<_ACEOF
14769 /* confdefs.h. */
14770 _ACEOF
14771 cat confdefs.h >>conftest.$ac_ext
14772 cat >>conftest.$ac_ext <<_ACEOF
14773 /* end confdefs.h. */
14774 $ac_includes_default
14775 int
14776 main ()
14777 {
14778 #ifndef setregid
14779 (void) setregid;
14780 #endif
14781
14782 ;
14783 return 0;
14784 }
14785 _ACEOF
14786 rm -f conftest.$ac_objext
14787 if { (ac_try="$ac_compile"
14788 case "(($ac_try" in
14789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790 *) ac_try_echo=$ac_try;;
14791 esac
14792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14793 $as_echo "$ac_try_echo") >&5
14794 (eval "$ac_compile") 2>conftest.er1
14795 ac_status=$?
14796 grep -v '^ *+' conftest.er1 >conftest.err
14797 rm -f conftest.er1
14798 cat conftest.err >&5
14799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } && {
14801 test -z "$ac_c_werror_flag" ||
14802 test ! -s conftest.err
14803 } && test -s conftest.$ac_objext; then
14804 ac_cv_have_decl_setregid=yes
14805 else
14806 $as_echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14808
14809 ac_cv_have_decl_setregid=no
14810 fi
14811
14812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14813 fi
14814 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
14815 $as_echo "$ac_cv_have_decl_setregid" >&6; }
14816 if test "x$ac_cv_have_decl_setregid" = x""yes; then
14817
14818 cat >>confdefs.h <<_ACEOF
14819 #define HAVE_DECL_SETREGID 1
14820 _ACEOF
14821
14822
14823 else
14824 cat >>confdefs.h <<_ACEOF
14825 #define HAVE_DECL_SETREGID 0
14826 _ACEOF
14827
14828
14829 fi
14830
14831
14832 { $as_echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
14833 $as_echo_n "checking whether strcpy is declared... " >&6; }
14834 if test "${ac_cv_have_decl_strcpy+set}" = set; then
14835 $as_echo_n "(cached) " >&6
14836 else
14837 cat >conftest.$ac_ext <<_ACEOF
14838 /* confdefs.h. */
14839 _ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h. */
14843 $ac_includes_default
14844 int
14845 main ()
14846 {
14847 #ifndef strcpy
14848 (void) strcpy;
14849 #endif
14850
14851 ;
14852 return 0;
14853 }
14854 _ACEOF
14855 rm -f conftest.$ac_objext
14856 if { (ac_try="$ac_compile"
14857 case "(($ac_try" in
14858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859 *) ac_try_echo=$ac_try;;
14860 esac
14861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14862 $as_echo "$ac_try_echo") >&5
14863 (eval "$ac_compile") 2>conftest.er1
14864 ac_status=$?
14865 grep -v '^ *+' conftest.er1 >conftest.err
14866 rm -f conftest.er1
14867 cat conftest.err >&5
14868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); } && {
14870 test -z "$ac_c_werror_flag" ||
14871 test ! -s conftest.err
14872 } && test -s conftest.$ac_objext; then
14873 ac_cv_have_decl_strcpy=yes
14874 else
14875 $as_echo "$as_me: failed program was:" >&5
14876 sed 's/^/| /' conftest.$ac_ext >&5
14877
14878 ac_cv_have_decl_strcpy=no
14879 fi
14880
14881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14882 fi
14883 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
14884 $as_echo "$ac_cv_have_decl_strcpy" >&6; }
14885 if test "x$ac_cv_have_decl_strcpy" = x""yes; then
14886
14887 cat >>confdefs.h <<_ACEOF
14888 #define HAVE_DECL_STRCPY 1
14889 _ACEOF
14890
14891
14892 else
14893 cat >>confdefs.h <<_ACEOF
14894 #define HAVE_DECL_STRCPY 0
14895 _ACEOF
14896
14897
14898 fi
14899
14900
14901 { $as_echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
14902 $as_echo_n "checking whether strsignal is declared... " >&6; }
14903 if test "${ac_cv_have_decl_strsignal+set}" = set; then
14904 $as_echo_n "(cached) " >&6
14905 else
14906 cat >conftest.$ac_ext <<_ACEOF
14907 /* confdefs.h. */
14908 _ACEOF
14909 cat confdefs.h >>conftest.$ac_ext
14910 cat >>conftest.$ac_ext <<_ACEOF
14911 /* end confdefs.h. */
14912 $ac_includes_default
14913 int
14914 main ()
14915 {
14916 #ifndef strsignal
14917 (void) strsignal;
14918 #endif
14919
14920 ;
14921 return 0;
14922 }
14923 _ACEOF
14924 rm -f conftest.$ac_objext
14925 if { (ac_try="$ac_compile"
14926 case "(($ac_try" in
14927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14928 *) ac_try_echo=$ac_try;;
14929 esac
14930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14931 $as_echo "$ac_try_echo") >&5
14932 (eval "$ac_compile") 2>conftest.er1
14933 ac_status=$?
14934 grep -v '^ *+' conftest.er1 >conftest.err
14935 rm -f conftest.er1
14936 cat conftest.err >&5
14937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } && {
14939 test -z "$ac_c_werror_flag" ||
14940 test ! -s conftest.err
14941 } && test -s conftest.$ac_objext; then
14942 ac_cv_have_decl_strsignal=yes
14943 else
14944 $as_echo "$as_me: failed program was:" >&5
14945 sed 's/^/| /' conftest.$ac_ext >&5
14946
14947 ac_cv_have_decl_strsignal=no
14948 fi
14949
14950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14951 fi
14952 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
14953 $as_echo "$ac_cv_have_decl_strsignal" >&6; }
14954 if test "x$ac_cv_have_decl_strsignal" = x""yes; then
14955
14956 cat >>confdefs.h <<_ACEOF
14957 #define HAVE_DECL_STRSIGNAL 1
14958 _ACEOF
14959
14960
14961 else
14962 cat >>confdefs.h <<_ACEOF
14963 #define HAVE_DECL_STRSIGNAL 0
14964 _ACEOF
14965
14966
14967 fi
14968
14969
14970
14971 { $as_echo "$as_me:$LINENO: checking whether strtold is declared" >&5
14972 $as_echo_n "checking whether strtold is declared... " >&6; }
14973 if test "${ac_cv_have_decl_strtold+set}" = set; then
14974 $as_echo_n "(cached) " >&6
14975 else
14976 cat >conftest.$ac_ext <<_ACEOF
14977 /* confdefs.h. */
14978 _ACEOF
14979 cat confdefs.h >>conftest.$ac_ext
14980 cat >>conftest.$ac_ext <<_ACEOF
14981 /* end confdefs.h. */
14982 $ac_includes_default
14983 int
14984 main ()
14985 {
14986 #ifndef strtold
14987 (void) strtold;
14988 #endif
14989
14990 ;
14991 return 0;
14992 }
14993 _ACEOF
14994 rm -f conftest.$ac_objext
14995 if { (ac_try="$ac_compile"
14996 case "(($ac_try" in
14997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14998 *) ac_try_echo=$ac_try;;
14999 esac
15000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15001 $as_echo "$ac_try_echo") >&5
15002 (eval "$ac_compile") 2>conftest.er1
15003 ac_status=$?
15004 grep -v '^ *+' conftest.er1 >conftest.err
15005 rm -f conftest.er1
15006 cat conftest.err >&5
15007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); } && {
15009 test -z "$ac_c_werror_flag" ||
15010 test ! -s conftest.err
15011 } && test -s conftest.$ac_objext; then
15012 ac_cv_have_decl_strtold=yes
15013 else
15014 $as_echo "$as_me: failed program was:" >&5
15015 sed 's/^/| /' conftest.$ac_ext >&5
15016
15017 ac_cv_have_decl_strtold=no
15018 fi
15019
15020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15021 fi
15022 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
15023 $as_echo "$ac_cv_have_decl_strtold" >&6; }
15024 if test "x$ac_cv_have_decl_strtold" = x""yes; then
15025
15026 cat >>confdefs.h <<_ACEOF
15027 #define HAVE_DECL_STRTOLD 1
15028 _ACEOF
15029
15030
15031 { $as_echo "$as_me:$LINENO: checking for broken strtold" >&5
15032 $as_echo_n "checking for broken strtold... " >&6; }
15033 if test "${bash_cv_strtold_broken+set}" = set; then
15034 $as_echo_n "(cached) " >&6
15035 else
15036 cat >conftest.$ac_ext <<_ACEOF
15037 /* confdefs.h. */
15038 _ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h. */
15042 #include <stdlib.h>
15043 int
15044 main ()
15045 {
15046 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
15047 ;
15048 return 0;
15049 }
15050 _ACEOF
15051 rm -f conftest.$ac_objext
15052 if { (ac_try="$ac_compile"
15053 case "(($ac_try" in
15054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055 *) ac_try_echo=$ac_try;;
15056 esac
15057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15058 $as_echo "$ac_try_echo") >&5
15059 (eval "$ac_compile") 2>conftest.er1
15060 ac_status=$?
15061 grep -v '^ *+' conftest.er1 >conftest.err
15062 rm -f conftest.er1
15063 cat conftest.err >&5
15064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); } && {
15066 test -z "$ac_c_werror_flag" ||
15067 test ! -s conftest.err
15068 } && test -s conftest.$ac_objext; then
15069 bash_cv_strtold_broken=no
15070 else
15071 $as_echo "$as_me: failed program was:" >&5
15072 sed 's/^/| /' conftest.$ac_ext >&5
15073
15074 bash_cv_strtold_broken=yes
15075 fi
15076
15077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15078
15079
15080 fi
15081
15082 { $as_echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
15083 $as_echo "$bash_cv_strtold_broken" >&6; }
15084 if test "$bash_cv_strtold_broken" = "yes" ; then
15085 cat >>confdefs.h <<\_ACEOF
15086 #define STRTOLD_BROKEN 1
15087 _ACEOF
15088
15089 fi
15090
15091 else
15092 cat >>confdefs.h <<_ACEOF
15093 #define HAVE_DECL_STRTOLD 0
15094 _ACEOF
15095
15096
15097 fi
15098
15099
15100
15101
15102
15103
15104
15105 { $as_echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
15106 $as_echo_n "checking for declaration of strtoimax... " >&6; }
15107 if test "${bash_cv_decl_strtoimax+set}" = set; then
15108 $as_echo_n "(cached) " >&6
15109 else
15110 cat >conftest.$ac_ext <<_ACEOF
15111 /* confdefs.h. */
15112 _ACEOF
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h. */
15116
15117 #if STDC_HEADERS
15118 # include <stdlib.h>
15119 #endif
15120 #if HAVE_INTTYPES_H
15121 # include <inttypes.h>
15122 #endif
15123
15124 int
15125 main ()
15126 {
15127 return !strtoimax;
15128 ;
15129 return 0;
15130 }
15131 _ACEOF
15132 rm -f conftest.$ac_objext conftest$ac_exeext
15133 if { (ac_try="$ac_link"
15134 case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15137 esac
15138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15139 $as_echo "$ac_try_echo") >&5
15140 (eval "$ac_link") 2>conftest.er1
15141 ac_status=$?
15142 grep -v '^ *+' conftest.er1 >conftest.err
15143 rm -f conftest.er1
15144 cat conftest.err >&5
15145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } && {
15147 test -z "$ac_c_werror_flag" ||
15148 test ! -s conftest.err
15149 } && test -s conftest$ac_exeext && {
15150 test "$cross_compiling" = yes ||
15151 $as_test_x conftest$ac_exeext
15152 }; then
15153 bash_cv_decl_strtoimax=yes
15154 else
15155 $as_echo "$as_me: failed program was:" >&5
15156 sed 's/^/| /' conftest.$ac_ext >&5
15157
15158 bash_cv_decl_strtoimax=no
15159 fi
15160
15161 rm -rf conftest.dSYM
15162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15163 conftest$ac_exeext conftest.$ac_ext
15164 fi
15165 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
15166 $as_echo "$bash_cv_decl_strtoimax" >&6; }
15167 bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15168 if test $bash_cv_decl_strtoimax = yes; then
15169 cat >>confdefs.h <<_ACEOF
15170 #define $bash_tr_func 1
15171 _ACEOF
15172
15173 else
15174 cat >>confdefs.h <<_ACEOF
15175 #define $bash_tr_func 0
15176 _ACEOF
15177
15178 fi
15179
15180
15181
15182
15183 { $as_echo "$as_me:$LINENO: checking for declaration of strtol" >&5
15184 $as_echo_n "checking for declaration of strtol... " >&6; }
15185 if test "${bash_cv_decl_strtol+set}" = set; then
15186 $as_echo_n "(cached) " >&6
15187 else
15188 cat >conftest.$ac_ext <<_ACEOF
15189 /* confdefs.h. */
15190 _ACEOF
15191 cat confdefs.h >>conftest.$ac_ext
15192 cat >>conftest.$ac_ext <<_ACEOF
15193 /* end confdefs.h. */
15194
15195 #if STDC_HEADERS
15196 # include <stdlib.h>
15197 #endif
15198 #if HAVE_INTTYPES_H
15199 # include <inttypes.h>
15200 #endif
15201
15202 int
15203 main ()
15204 {
15205 return !strtol;
15206 ;
15207 return 0;
15208 }
15209 _ACEOF
15210 rm -f conftest.$ac_objext conftest$ac_exeext
15211 if { (ac_try="$ac_link"
15212 case "(($ac_try" in
15213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15214 *) ac_try_echo=$ac_try;;
15215 esac
15216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15217 $as_echo "$ac_try_echo") >&5
15218 (eval "$ac_link") 2>conftest.er1
15219 ac_status=$?
15220 grep -v '^ *+' conftest.er1 >conftest.err
15221 rm -f conftest.er1
15222 cat conftest.err >&5
15223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } && {
15225 test -z "$ac_c_werror_flag" ||
15226 test ! -s conftest.err
15227 } && test -s conftest$ac_exeext && {
15228 test "$cross_compiling" = yes ||
15229 $as_test_x conftest$ac_exeext
15230 }; then
15231 bash_cv_decl_strtol=yes
15232 else
15233 $as_echo "$as_me: failed program was:" >&5
15234 sed 's/^/| /' conftest.$ac_ext >&5
15235
15236 bash_cv_decl_strtol=no
15237 fi
15238
15239 rm -rf conftest.dSYM
15240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15241 conftest$ac_exeext conftest.$ac_ext
15242 fi
15243 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
15244 $as_echo "$bash_cv_decl_strtol" >&6; }
15245 bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15246 if test $bash_cv_decl_strtol = yes; then
15247 cat >>confdefs.h <<_ACEOF
15248 #define $bash_tr_func 1
15249 _ACEOF
15250
15251 else
15252 cat >>confdefs.h <<_ACEOF
15253 #define $bash_tr_func 0
15254 _ACEOF
15255
15256 fi
15257
15258
15259
15260
15261 { $as_echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
15262 $as_echo_n "checking for declaration of strtoll... " >&6; }
15263 if test "${bash_cv_decl_strtoll+set}" = set; then
15264 $as_echo_n "(cached) " >&6
15265 else
15266 cat >conftest.$ac_ext <<_ACEOF
15267 /* confdefs.h. */
15268 _ACEOF
15269 cat confdefs.h >>conftest.$ac_ext
15270 cat >>conftest.$ac_ext <<_ACEOF
15271 /* end confdefs.h. */
15272
15273 #if STDC_HEADERS
15274 # include <stdlib.h>
15275 #endif
15276 #if HAVE_INTTYPES_H
15277 # include <inttypes.h>
15278 #endif
15279
15280 int
15281 main ()
15282 {
15283 return !strtoll;
15284 ;
15285 return 0;
15286 }
15287 _ACEOF
15288 rm -f conftest.$ac_objext conftest$ac_exeext
15289 if { (ac_try="$ac_link"
15290 case "(($ac_try" in
15291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15292 *) ac_try_echo=$ac_try;;
15293 esac
15294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15295 $as_echo "$ac_try_echo") >&5
15296 (eval "$ac_link") 2>conftest.er1
15297 ac_status=$?
15298 grep -v '^ *+' conftest.er1 >conftest.err
15299 rm -f conftest.er1
15300 cat conftest.err >&5
15301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); } && {
15303 test -z "$ac_c_werror_flag" ||
15304 test ! -s conftest.err
15305 } && test -s conftest$ac_exeext && {
15306 test "$cross_compiling" = yes ||
15307 $as_test_x conftest$ac_exeext
15308 }; then
15309 bash_cv_decl_strtoll=yes
15310 else
15311 $as_echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.$ac_ext >&5
15313
15314 bash_cv_decl_strtoll=no
15315 fi
15316
15317 rm -rf conftest.dSYM
15318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15319 conftest$ac_exeext conftest.$ac_ext
15320 fi
15321 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
15322 $as_echo "$bash_cv_decl_strtoll" >&6; }
15323 bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15324 if test $bash_cv_decl_strtoll = yes; then
15325 cat >>confdefs.h <<_ACEOF
15326 #define $bash_tr_func 1
15327 _ACEOF
15328
15329 else
15330 cat >>confdefs.h <<_ACEOF
15331 #define $bash_tr_func 0
15332 _ACEOF
15333
15334 fi
15335
15336
15337
15338
15339 { $as_echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
15340 $as_echo_n "checking for declaration of strtoul... " >&6; }
15341 if test "${bash_cv_decl_strtoul+set}" = set; then
15342 $as_echo_n "(cached) " >&6
15343 else
15344 cat >conftest.$ac_ext <<_ACEOF
15345 /* confdefs.h. */
15346 _ACEOF
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h. */
15350
15351 #if STDC_HEADERS
15352 # include <stdlib.h>
15353 #endif
15354 #if HAVE_INTTYPES_H
15355 # include <inttypes.h>
15356 #endif
15357
15358 int
15359 main ()
15360 {
15361 return !strtoul;
15362 ;
15363 return 0;
15364 }
15365 _ACEOF
15366 rm -f conftest.$ac_objext conftest$ac_exeext
15367 if { (ac_try="$ac_link"
15368 case "(($ac_try" in
15369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15370 *) ac_try_echo=$ac_try;;
15371 esac
15372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15373 $as_echo "$ac_try_echo") >&5
15374 (eval "$ac_link") 2>conftest.er1
15375 ac_status=$?
15376 grep -v '^ *+' conftest.er1 >conftest.err
15377 rm -f conftest.er1
15378 cat conftest.err >&5
15379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); } && {
15381 test -z "$ac_c_werror_flag" ||
15382 test ! -s conftest.err
15383 } && test -s conftest$ac_exeext && {
15384 test "$cross_compiling" = yes ||
15385 $as_test_x conftest$ac_exeext
15386 }; then
15387 bash_cv_decl_strtoul=yes
15388 else
15389 $as_echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15391
15392 bash_cv_decl_strtoul=no
15393 fi
15394
15395 rm -rf conftest.dSYM
15396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15397 conftest$ac_exeext conftest.$ac_ext
15398 fi
15399 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
15400 $as_echo "$bash_cv_decl_strtoul" >&6; }
15401 bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15402 if test $bash_cv_decl_strtoul = yes; then
15403 cat >>confdefs.h <<_ACEOF
15404 #define $bash_tr_func 1
15405 _ACEOF
15406
15407 else
15408 cat >>confdefs.h <<_ACEOF
15409 #define $bash_tr_func 0
15410 _ACEOF
15411
15412 fi
15413
15414
15415
15416
15417 { $as_echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
15418 $as_echo_n "checking for declaration of strtoull... " >&6; }
15419 if test "${bash_cv_decl_strtoull+set}" = set; then
15420 $as_echo_n "(cached) " >&6
15421 else
15422 cat >conftest.$ac_ext <<_ACEOF
15423 /* confdefs.h. */
15424 _ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h. */
15428
15429 #if STDC_HEADERS
15430 # include <stdlib.h>
15431 #endif
15432 #if HAVE_INTTYPES_H
15433 # include <inttypes.h>
15434 #endif
15435
15436 int
15437 main ()
15438 {
15439 return !strtoull;
15440 ;
15441 return 0;
15442 }
15443 _ACEOF
15444 rm -f conftest.$ac_objext conftest$ac_exeext
15445 if { (ac_try="$ac_link"
15446 case "(($ac_try" in
15447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15448 *) ac_try_echo=$ac_try;;
15449 esac
15450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15451 $as_echo "$ac_try_echo") >&5
15452 (eval "$ac_link") 2>conftest.er1
15453 ac_status=$?
15454 grep -v '^ *+' conftest.er1 >conftest.err
15455 rm -f conftest.er1
15456 cat conftest.err >&5
15457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } && {
15459 test -z "$ac_c_werror_flag" ||
15460 test ! -s conftest.err
15461 } && test -s conftest$ac_exeext && {
15462 test "$cross_compiling" = yes ||
15463 $as_test_x conftest$ac_exeext
15464 }; then
15465 bash_cv_decl_strtoull=yes
15466 else
15467 $as_echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.$ac_ext >&5
15469
15470 bash_cv_decl_strtoull=no
15471 fi
15472
15473 rm -rf conftest.dSYM
15474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15475 conftest$ac_exeext conftest.$ac_ext
15476 fi
15477 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
15478 $as_echo "$bash_cv_decl_strtoull" >&6; }
15479 bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15480 if test $bash_cv_decl_strtoull = yes; then
15481 cat >>confdefs.h <<_ACEOF
15482 #define $bash_tr_func 1
15483 _ACEOF
15484
15485 else
15486 cat >>confdefs.h <<_ACEOF
15487 #define $bash_tr_func 0
15488 _ACEOF
15489
15490 fi
15491
15492
15493
15494
15495 { $as_echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
15496 $as_echo_n "checking for declaration of strtoumax... " >&6; }
15497 if test "${bash_cv_decl_strtoumax+set}" = set; then
15498 $as_echo_n "(cached) " >&6
15499 else
15500 cat >conftest.$ac_ext <<_ACEOF
15501 /* confdefs.h. */
15502 _ACEOF
15503 cat confdefs.h >>conftest.$ac_ext
15504 cat >>conftest.$ac_ext <<_ACEOF
15505 /* end confdefs.h. */
15506
15507 #if STDC_HEADERS
15508 # include <stdlib.h>
15509 #endif
15510 #if HAVE_INTTYPES_H
15511 # include <inttypes.h>
15512 #endif
15513
15514 int
15515 main ()
15516 {
15517 return !strtoumax;
15518 ;
15519 return 0;
15520 }
15521 _ACEOF
15522 rm -f conftest.$ac_objext conftest$ac_exeext
15523 if { (ac_try="$ac_link"
15524 case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15527 esac
15528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15529 $as_echo "$ac_try_echo") >&5
15530 (eval "$ac_link") 2>conftest.er1
15531 ac_status=$?
15532 grep -v '^ *+' conftest.er1 >conftest.err
15533 rm -f conftest.er1
15534 cat conftest.err >&5
15535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } && {
15537 test -z "$ac_c_werror_flag" ||
15538 test ! -s conftest.err
15539 } && test -s conftest$ac_exeext && {
15540 test "$cross_compiling" = yes ||
15541 $as_test_x conftest$ac_exeext
15542 }; then
15543 bash_cv_decl_strtoumax=yes
15544 else
15545 $as_echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.$ac_ext >&5
15547
15548 bash_cv_decl_strtoumax=no
15549 fi
15550
15551 rm -rf conftest.dSYM
15552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15553 conftest$ac_exeext conftest.$ac_ext
15554 fi
15555 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
15556 $as_echo "$bash_cv_decl_strtoumax" >&6; }
15557 bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15558 if test $bash_cv_decl_strtoumax = yes; then
15559 cat >>confdefs.h <<_ACEOF
15560 #define $bash_tr_func 1
15561 _ACEOF
15562
15563 else
15564 cat >>confdefs.h <<_ACEOF
15565 #define $bash_tr_func 0
15566 _ACEOF
15567
15568 fi
15569
15570
15571
15572
15573
15574
15575 for ac_header in $ac_header_list
15576 do
15577 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15579 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15580 $as_echo_n "checking for $ac_header... " >&6; }
15581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15582 $as_echo_n "(cached) " >&6
15583 fi
15584 ac_res=`eval 'as_val=${'$as_ac_Header'}
15585 $as_echo "$as_val"'`
15586 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15587 $as_echo "$ac_res" >&6; }
15588 else
15589 # Is the header compilable?
15590 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15591 $as_echo_n "checking $ac_header usability... " >&6; }
15592 cat >conftest.$ac_ext <<_ACEOF
15593 /* confdefs.h. */
15594 _ACEOF
15595 cat confdefs.h >>conftest.$ac_ext
15596 cat >>conftest.$ac_ext <<_ACEOF
15597 /* end confdefs.h. */
15598 $ac_includes_default
15599 #include <$ac_header>
15600 _ACEOF
15601 rm -f conftest.$ac_objext
15602 if { (ac_try="$ac_compile"
15603 case "(($ac_try" in
15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15606 esac
15607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15608 $as_echo "$ac_try_echo") >&5
15609 (eval "$ac_compile") 2>conftest.er1
15610 ac_status=$?
15611 grep -v '^ *+' conftest.er1 >conftest.err
15612 rm -f conftest.er1
15613 cat conftest.err >&5
15614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); } && {
15616 test -z "$ac_c_werror_flag" ||
15617 test ! -s conftest.err
15618 } && test -s conftest.$ac_objext; then
15619 ac_header_compiler=yes
15620 else
15621 $as_echo "$as_me: failed program was:" >&5
15622 sed 's/^/| /' conftest.$ac_ext >&5
15623
15624 ac_header_compiler=no
15625 fi
15626
15627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15628 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15629 $as_echo "$ac_header_compiler" >&6; }
15630
15631 # Is the header present?
15632 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15633 $as_echo_n "checking $ac_header presence... " >&6; }
15634 cat >conftest.$ac_ext <<_ACEOF
15635 /* confdefs.h. */
15636 _ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15640 #include <$ac_header>
15641 _ACEOF
15642 if { (ac_try="$ac_cpp conftest.$ac_ext"
15643 case "(($ac_try" in
15644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15646 esac
15647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15648 $as_echo "$ac_try_echo") >&5
15649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15650 ac_status=$?
15651 grep -v '^ *+' conftest.er1 >conftest.err
15652 rm -f conftest.er1
15653 cat conftest.err >&5
15654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); } >/dev/null && {
15656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15657 test ! -s conftest.err
15658 }; then
15659 ac_header_preproc=yes
15660 else
15661 $as_echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15663
15664 ac_header_preproc=no
15665 fi
15666
15667 rm -f conftest.err conftest.$ac_ext
15668 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15669 $as_echo "$ac_header_preproc" >&6; }
15670
15671 # So? What about this header?
15672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15673 yes:no: )
15674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15675 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15677 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15678 ac_header_preproc=yes
15679 ;;
15680 no:yes:* )
15681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15682 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15684 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15686 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15688 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15690 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15692 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15693 ( cat <<\_ASBOX
15694 ## ------------------------------- ##
15695 ## Report this to bug-bash@gnu.org ##
15696 ## ------------------------------- ##
15697 _ASBOX
15698 ) | sed "s/^/$as_me: WARNING: /" >&2
15699 ;;
15700 esac
15701 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15702 $as_echo_n "checking for $ac_header... " >&6; }
15703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15704 $as_echo_n "(cached) " >&6
15705 else
15706 eval "$as_ac_Header=\$ac_header_preproc"
15707 fi
15708 ac_res=`eval 'as_val=${'$as_ac_Header'}
15709 $as_echo "$as_val"'`
15710 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15711 $as_echo "$ac_res" >&6; }
15712
15713 fi
15714 as_val=`eval 'as_val=${'$as_ac_Header'}
15715 $as_echo "$as_val"'`
15716 if test "x$as_val" = x""yes; then
15717 cat >>confdefs.h <<_ACEOF
15718 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15719 _ACEOF
15720
15721 fi
15722
15723 done
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733 for ac_func in $ac_func_list
15734 do
15735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15736 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15737 $as_echo_n "checking for $ac_func... " >&6; }
15738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15739 $as_echo_n "(cached) " >&6
15740 else
15741 cat >conftest.$ac_ext <<_ACEOF
15742 /* confdefs.h. */
15743 _ACEOF
15744 cat confdefs.h >>conftest.$ac_ext
15745 cat >>conftest.$ac_ext <<_ACEOF
15746 /* end confdefs.h. */
15747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15749 #define $ac_func innocuous_$ac_func
15750
15751 /* System header to define __stub macros and hopefully few prototypes,
15752 which can conflict with char $ac_func (); below.
15753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15754 <limits.h> exists even on freestanding compilers. */
15755
15756 #ifdef __STDC__
15757 # include <limits.h>
15758 #else
15759 # include <assert.h>
15760 #endif
15761
15762 #undef $ac_func
15763
15764 /* Override any GCC internal prototype to avoid an error.
15765 Use char because int might match the return type of a GCC
15766 builtin and then its argument prototype would still apply. */
15767 #ifdef __cplusplus
15768 extern "C"
15769 #endif
15770 char $ac_func ();
15771 /* The GNU C library defines this for functions which it implements
15772 to always fail with ENOSYS. Some functions are actually named
15773 something starting with __ and the normal name is an alias. */
15774 #if defined __stub_$ac_func || defined __stub___$ac_func
15775 choke me
15776 #endif
15777
15778 int
15779 main ()
15780 {
15781 return $ac_func ();
15782 ;
15783 return 0;
15784 }
15785 _ACEOF
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (ac_try="$ac_link"
15788 case "(($ac_try" in
15789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15791 esac
15792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15793 $as_echo "$ac_try_echo") >&5
15794 (eval "$ac_link") 2>conftest.er1
15795 ac_status=$?
15796 grep -v '^ *+' conftest.er1 >conftest.err
15797 rm -f conftest.er1
15798 cat conftest.err >&5
15799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } && {
15801 test -z "$ac_c_werror_flag" ||
15802 test ! -s conftest.err
15803 } && test -s conftest$ac_exeext && {
15804 test "$cross_compiling" = yes ||
15805 $as_test_x conftest$ac_exeext
15806 }; then
15807 eval "$as_ac_var=yes"
15808 else
15809 $as_echo "$as_me: failed program was:" >&5
15810 sed 's/^/| /' conftest.$ac_ext >&5
15811
15812 eval "$as_ac_var=no"
15813 fi
15814
15815 rm -rf conftest.dSYM
15816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15817 conftest$ac_exeext conftest.$ac_ext
15818 fi
15819 ac_res=`eval 'as_val=${'$as_ac_var'}
15820 $as_echo "$as_val"'`
15821 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15822 $as_echo "$ac_res" >&6; }
15823 as_val=`eval 'as_val=${'$as_ac_var'}
15824 $as_echo "$as_val"'`
15825 if test "x$as_val" = x""yes; then
15826 cat >>confdefs.h <<_ACEOF
15827 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15828 _ACEOF
15829
15830 fi
15831 done
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
15850 $as_echo_n "checking for working mktime... " >&6; }
15851 if test "${ac_cv_func_working_mktime+set}" = set; then
15852 $as_echo_n "(cached) " >&6
15853 else
15854 if test "$cross_compiling" = yes; then
15855 ac_cv_func_working_mktime=no
15856 else
15857 cat >conftest.$ac_ext <<_ACEOF
15858 /* confdefs.h. */
15859 _ACEOF
15860 cat confdefs.h >>conftest.$ac_ext
15861 cat >>conftest.$ac_ext <<_ACEOF
15862 /* end confdefs.h. */
15863 /* Test program from Paul Eggert and Tony Leneis. */
15864 #ifdef TIME_WITH_SYS_TIME
15865 # include <sys/time.h>
15866 # include <time.h>
15867 #else
15868 # ifdef HAVE_SYS_TIME_H
15869 # include <sys/time.h>
15870 # else
15871 # include <time.h>
15872 # endif
15873 #endif
15874
15875 #include <limits.h>
15876 #include <stdlib.h>
15877
15878 #ifdef HAVE_UNISTD_H
15879 # include <unistd.h>
15880 #endif
15881
15882 #ifndef HAVE_ALARM
15883 # define alarm(X) /* empty */
15884 #endif
15885
15886 /* Work around redefinition to rpl_putenv by other config tests. */
15887 #undef putenv
15888
15889 static time_t time_t_max;
15890 static time_t time_t_min;
15891
15892 /* Values we'll use to set the TZ environment variable. */
15893 static char *tz_strings[] = {
15894 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15895 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15896 };
15897 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15898
15899 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15900 Based on a problem report from Andreas Jaeger. */
15901 static int
15902 spring_forward_gap ()
15903 {
15904 /* glibc (up to about 1998-10-07) failed this test. */
15905 struct tm tm;
15906
15907 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15908 instead of "TZ=America/Vancouver" in order to detect the bug even
15909 on systems that don't support the Olson extension, or don't have the
15910 full zoneinfo tables installed. */
15911 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15912
15913 tm.tm_year = 98;
15914 tm.tm_mon = 3;
15915 tm.tm_mday = 5;
15916 tm.tm_hour = 2;
15917 tm.tm_min = 0;
15918 tm.tm_sec = 0;
15919 tm.tm_isdst = -1;
15920 return mktime (&tm) != (time_t) -1;
15921 }
15922
15923 static int
15924 mktime_test1 (now)
15925 time_t now;
15926 {
15927 struct tm *lt;
15928 return ! (lt = localtime (&now)) || mktime (lt) == now;
15929 }
15930
15931 static int
15932 mktime_test (now)
15933 time_t now;
15934 {
15935 return (mktime_test1 (now)
15936 && mktime_test1 ((time_t) (time_t_max - now))
15937 && mktime_test1 ((time_t) (time_t_min + now)));
15938 }
15939
15940 static int
15941 irix_6_4_bug ()
15942 {
15943 /* Based on code from Ariel Faigon. */
15944 struct tm tm;
15945 tm.tm_year = 96;
15946 tm.tm_mon = 3;
15947 tm.tm_mday = 0;
15948 tm.tm_hour = 0;
15949 tm.tm_min = 0;
15950 tm.tm_sec = 0;
15951 tm.tm_isdst = -1;
15952 mktime (&tm);
15953 return tm.tm_mon == 2 && tm.tm_mday == 31;
15954 }
15955
15956 static int
15957 bigtime_test (j)
15958 int j;
15959 {
15960 struct tm tm;
15961 time_t now;
15962 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15963 now = mktime (&tm);
15964 if (now != (time_t) -1)
15965 {
15966 struct tm *lt = localtime (&now);
15967 if (! (lt
15968 && lt->tm_year == tm.tm_year
15969 && lt->tm_mon == tm.tm_mon
15970 && lt->tm_mday == tm.tm_mday
15971 && lt->tm_hour == tm.tm_hour
15972 && lt->tm_min == tm.tm_min
15973 && lt->tm_sec == tm.tm_sec
15974 && lt->tm_yday == tm.tm_yday
15975 && lt->tm_wday == tm.tm_wday
15976 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15977 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15978 return 0;
15979 }
15980 return 1;
15981 }
15982
15983 static int
15984 year_2050_test ()
15985 {
15986 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15987 ignoring leap seconds. */
15988 unsigned long int answer = 2527315200UL;
15989
15990 struct tm tm;
15991 time_t t;
15992 tm.tm_year = 2050 - 1900;
15993 tm.tm_mon = 2 - 1;
15994 tm.tm_mday = 1;
15995 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15996 tm.tm_isdst = -1;
15997
15998 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15999 instead of "TZ=America/Vancouver" in order to detect the bug even
16000 on systems that don't support the Olson extension, or don't have the
16001 full zoneinfo tables installed. */
16002 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16003
16004 t = mktime (&tm);
16005
16006 /* Check that the result is either a failure, or close enough
16007 to the correct answer that we can assume the discrepancy is
16008 due to leap seconds. */
16009 return (t == (time_t) -1
16010 || (0 < t && answer - 120 <= t && t <= answer + 120));
16011 }
16012
16013 int
16014 main ()
16015 {
16016 time_t t, delta;
16017 int i, j;
16018
16019 /* This test makes some buggy mktime implementations loop.
16020 Give up after 60 seconds; a mktime slower than that
16021 isn't worth using anyway. */
16022 alarm (60);
16023
16024 for (;;)
16025 {
16026 t = (time_t_max << 1) + 1;
16027 if (t <= time_t_max)
16028 break;
16029 time_t_max = t;
16030 }
16031 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16032
16033 delta = time_t_max / 997; /* a suitable prime number */
16034 for (i = 0; i < N_STRINGS; i++)
16035 {
16036 if (tz_strings[i])
16037 putenv (tz_strings[i]);
16038
16039 for (t = 0; t <= time_t_max - delta; t += delta)
16040 if (! mktime_test (t))
16041 return 1;
16042 if (! (mktime_test ((time_t) 1)
16043 && mktime_test ((time_t) (60 * 60))
16044 && mktime_test ((time_t) (60 * 60 * 24))))
16045 return 1;
16046
16047 for (j = 1; ; j <<= 1)
16048 if (! bigtime_test (j))
16049 return 1;
16050 else if (INT_MAX / 2 < j)
16051 break;
16052 if (! bigtime_test (INT_MAX))
16053 return 1;
16054 }
16055 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16056 }
16057 _ACEOF
16058 rm -f conftest$ac_exeext
16059 if { (ac_try="$ac_link"
16060 case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16063 esac
16064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16065 $as_echo "$ac_try_echo") >&5
16066 (eval "$ac_link") 2>&5
16067 ac_status=$?
16068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
16077 ac_status=$?
16078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; }; then
16080 ac_cv_func_working_mktime=yes
16081 else
16082 $as_echo "$as_me: program exited with status $ac_status" >&5
16083 $as_echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16085
16086 ( exit $ac_status )
16087 ac_cv_func_working_mktime=no
16088 fi
16089 rm -rf conftest.dSYM
16090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16091 fi
16092
16093
16094 fi
16095 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16096 $as_echo "$ac_cv_func_working_mktime" >&6; }
16097 if test $ac_cv_func_working_mktime = no; then
16098 case " $LIBOBJS " in
16099 *" mktime.$ac_objext "* ) ;;
16100 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16101 ;;
16102 esac
16103
16104 fi
16105
16106
16107
16108
16109
16110
16111
16112
16113 for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
16114 do
16115 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16117 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16118 $as_echo_n "checking for $ac_header... " >&6; }
16119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16120 $as_echo_n "(cached) " >&6
16121 fi
16122 ac_res=`eval 'as_val=${'$as_ac_Header'}
16123 $as_echo "$as_val"'`
16124 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16125 $as_echo "$ac_res" >&6; }
16126 else
16127 # Is the header compilable?
16128 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16129 $as_echo_n "checking $ac_header usability... " >&6; }
16130 cat >conftest.$ac_ext <<_ACEOF
16131 /* confdefs.h. */
16132 _ACEOF
16133 cat confdefs.h >>conftest.$ac_ext
16134 cat >>conftest.$ac_ext <<_ACEOF
16135 /* end confdefs.h. */
16136 $ac_includes_default
16137 #include <$ac_header>
16138 _ACEOF
16139 rm -f conftest.$ac_objext
16140 if { (ac_try="$ac_compile"
16141 case "(($ac_try" in
16142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16143 *) ac_try_echo=$ac_try;;
16144 esac
16145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16146 $as_echo "$ac_try_echo") >&5
16147 (eval "$ac_compile") 2>conftest.er1
16148 ac_status=$?
16149 grep -v '^ *+' conftest.er1 >conftest.err
16150 rm -f conftest.er1
16151 cat conftest.err >&5
16152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); } && {
16154 test -z "$ac_c_werror_flag" ||
16155 test ! -s conftest.err
16156 } && test -s conftest.$ac_objext; then
16157 ac_header_compiler=yes
16158 else
16159 $as_echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16161
16162 ac_header_compiler=no
16163 fi
16164
16165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16166 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16167 $as_echo "$ac_header_compiler" >&6; }
16168
16169 # Is the header present?
16170 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16171 $as_echo_n "checking $ac_header presence... " >&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 #include <$ac_header>
16179 _ACEOF
16180 if { (ac_try="$ac_cpp conftest.$ac_ext"
16181 case "(($ac_try" in
16182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183 *) ac_try_echo=$ac_try;;
16184 esac
16185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16186 $as_echo "$ac_try_echo") >&5
16187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16188 ac_status=$?
16189 grep -v '^ *+' conftest.er1 >conftest.err
16190 rm -f conftest.er1
16191 cat conftest.err >&5
16192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } >/dev/null && {
16194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16195 test ! -s conftest.err
16196 }; then
16197 ac_header_preproc=yes
16198 else
16199 $as_echo "$as_me: failed program was:" >&5
16200 sed 's/^/| /' conftest.$ac_ext >&5
16201
16202 ac_header_preproc=no
16203 fi
16204
16205 rm -f conftest.err conftest.$ac_ext
16206 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16207 $as_echo "$ac_header_preproc" >&6; }
16208
16209 # So? What about this header?
16210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16211 yes:no: )
16212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16213 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16215 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16216 ac_header_preproc=yes
16217 ;;
16218 no:yes:* )
16219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16220 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16222 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16224 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16226 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16228 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16230 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16231 ( cat <<\_ASBOX
16232 ## ------------------------------- ##
16233 ## Report this to bug-bash@gnu.org ##
16234 ## ------------------------------- ##
16235 _ASBOX
16236 ) | sed "s/^/$as_me: WARNING: /" >&2
16237 ;;
16238 esac
16239 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16240 $as_echo_n "checking for $ac_header... " >&6; }
16241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16242 $as_echo_n "(cached) " >&6
16243 else
16244 eval "$as_ac_Header=\$ac_header_preproc"
16245 fi
16246 ac_res=`eval 'as_val=${'$as_ac_Header'}
16247 $as_echo "$as_val"'`
16248 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16249 $as_echo "$ac_res" >&6; }
16250
16251 fi
16252 as_val=`eval 'as_val=${'$as_ac_Header'}
16253 $as_echo "$as_val"'`
16254 if test "x$as_val" = x""yes; then
16255 cat >>confdefs.h <<_ACEOF
16256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16257 _ACEOF
16258
16259 fi
16260
16261 done
16262
16263
16264
16265
16266 for ac_header in stdlib.h unistd.h
16267 do
16268 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16270 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16271 $as_echo_n "checking for $ac_header... " >&6; }
16272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16273 $as_echo_n "(cached) " >&6
16274 fi
16275 ac_res=`eval 'as_val=${'$as_ac_Header'}
16276 $as_echo "$as_val"'`
16277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16278 $as_echo "$ac_res" >&6; }
16279 else
16280 # Is the header compilable?
16281 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16282 $as_echo_n "checking $ac_header usability... " >&6; }
16283 cat >conftest.$ac_ext <<_ACEOF
16284 /* confdefs.h. */
16285 _ACEOF
16286 cat confdefs.h >>conftest.$ac_ext
16287 cat >>conftest.$ac_ext <<_ACEOF
16288 /* end confdefs.h. */
16289 $ac_includes_default
16290 #include <$ac_header>
16291 _ACEOF
16292 rm -f conftest.$ac_objext
16293 if { (ac_try="$ac_compile"
16294 case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16297 esac
16298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16299 $as_echo "$ac_try_echo") >&5
16300 (eval "$ac_compile") 2>conftest.er1
16301 ac_status=$?
16302 grep -v '^ *+' conftest.er1 >conftest.err
16303 rm -f conftest.er1
16304 cat conftest.err >&5
16305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } && {
16307 test -z "$ac_c_werror_flag" ||
16308 test ! -s conftest.err
16309 } && test -s conftest.$ac_objext; then
16310 ac_header_compiler=yes
16311 else
16312 $as_echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.$ac_ext >&5
16314
16315 ac_header_compiler=no
16316 fi
16317
16318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16319 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16320 $as_echo "$ac_header_compiler" >&6; }
16321
16322 # Is the header present?
16323 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16324 $as_echo_n "checking $ac_header presence... " >&6; }
16325 cat >conftest.$ac_ext <<_ACEOF
16326 /* confdefs.h. */
16327 _ACEOF
16328 cat confdefs.h >>conftest.$ac_ext
16329 cat >>conftest.$ac_ext <<_ACEOF
16330 /* end confdefs.h. */
16331 #include <$ac_header>
16332 _ACEOF
16333 if { (ac_try="$ac_cpp conftest.$ac_ext"
16334 case "(($ac_try" in
16335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16336 *) ac_try_echo=$ac_try;;
16337 esac
16338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16339 $as_echo "$ac_try_echo") >&5
16340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16341 ac_status=$?
16342 grep -v '^ *+' conftest.er1 >conftest.err
16343 rm -f conftest.er1
16344 cat conftest.err >&5
16345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); } >/dev/null && {
16347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16348 test ! -s conftest.err
16349 }; then
16350 ac_header_preproc=yes
16351 else
16352 $as_echo "$as_me: failed program was:" >&5
16353 sed 's/^/| /' conftest.$ac_ext >&5
16354
16355 ac_header_preproc=no
16356 fi
16357
16358 rm -f conftest.err conftest.$ac_ext
16359 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16360 $as_echo "$ac_header_preproc" >&6; }
16361
16362 # So? What about this header?
16363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16364 yes:no: )
16365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16366 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16368 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16369 ac_header_preproc=yes
16370 ;;
16371 no:yes:* )
16372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16373 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16375 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16377 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16379 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16381 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16383 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16384 ( cat <<\_ASBOX
16385 ## ------------------------------- ##
16386 ## Report this to bug-bash@gnu.org ##
16387 ## ------------------------------- ##
16388 _ASBOX
16389 ) | sed "s/^/$as_me: WARNING: /" >&2
16390 ;;
16391 esac
16392 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16393 $as_echo_n "checking for $ac_header... " >&6; }
16394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16395 $as_echo_n "(cached) " >&6
16396 else
16397 eval "$as_ac_Header=\$ac_header_preproc"
16398 fi
16399 ac_res=`eval 'as_val=${'$as_ac_Header'}
16400 $as_echo "$as_val"'`
16401 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16402 $as_echo "$ac_res" >&6; }
16403
16404 fi
16405 as_val=`eval 'as_val=${'$as_ac_Header'}
16406 $as_echo "$as_val"'`
16407 if test "x$as_val" = x""yes; then
16408 cat >>confdefs.h <<_ACEOF
16409 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16410 _ACEOF
16411
16412 fi
16413
16414 done
16415
16416
16417 for ac_func in getpagesize
16418 do
16419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16420 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16421 $as_echo_n "checking for $ac_func... " >&6; }
16422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16423 $as_echo_n "(cached) " >&6
16424 else
16425 cat >conftest.$ac_ext <<_ACEOF
16426 /* confdefs.h. */
16427 _ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h. */
16431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16433 #define $ac_func innocuous_$ac_func
16434
16435 /* System header to define __stub macros and hopefully few prototypes,
16436 which can conflict with char $ac_func (); below.
16437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16438 <limits.h> exists even on freestanding compilers. */
16439
16440 #ifdef __STDC__
16441 # include <limits.h>
16442 #else
16443 # include <assert.h>
16444 #endif
16445
16446 #undef $ac_func
16447
16448 /* Override any GCC internal prototype to avoid an error.
16449 Use char because int might match the return type of a GCC
16450 builtin and then its argument prototype would still apply. */
16451 #ifdef __cplusplus
16452 extern "C"
16453 #endif
16454 char $ac_func ();
16455 /* The GNU C library defines this for functions which it implements
16456 to always fail with ENOSYS. Some functions are actually named
16457 something starting with __ and the normal name is an alias. */
16458 #if defined __stub_$ac_func || defined __stub___$ac_func
16459 choke me
16460 #endif
16461
16462 int
16463 main ()
16464 {
16465 return $ac_func ();
16466 ;
16467 return 0;
16468 }
16469 _ACEOF
16470 rm -f conftest.$ac_objext conftest$ac_exeext
16471 if { (ac_try="$ac_link"
16472 case "(($ac_try" in
16473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474 *) ac_try_echo=$ac_try;;
16475 esac
16476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16477 $as_echo "$ac_try_echo") >&5
16478 (eval "$ac_link") 2>conftest.er1
16479 ac_status=$?
16480 grep -v '^ *+' conftest.er1 >conftest.err
16481 rm -f conftest.er1
16482 cat conftest.err >&5
16483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); } && {
16485 test -z "$ac_c_werror_flag" ||
16486 test ! -s conftest.err
16487 } && test -s conftest$ac_exeext && {
16488 test "$cross_compiling" = yes ||
16489 $as_test_x conftest$ac_exeext
16490 }; then
16491 eval "$as_ac_var=yes"
16492 else
16493 $as_echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16495
16496 eval "$as_ac_var=no"
16497 fi
16498
16499 rm -rf conftest.dSYM
16500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16501 conftest$ac_exeext conftest.$ac_ext
16502 fi
16503 ac_res=`eval 'as_val=${'$as_ac_var'}
16504 $as_echo "$as_val"'`
16505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16506 $as_echo "$ac_res" >&6; }
16507 as_val=`eval 'as_val=${'$as_ac_var'}
16508 $as_echo "$as_val"'`
16509 if test "x$as_val" = x""yes; then
16510 cat >>confdefs.h <<_ACEOF
16511 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16512 _ACEOF
16513
16514 fi
16515 done
16516
16517 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
16518 $as_echo_n "checking for working mmap... " >&6; }
16519 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16520 $as_echo_n "(cached) " >&6
16521 else
16522 if test "$cross_compiling" = yes; then
16523 ac_cv_func_mmap_fixed_mapped=no
16524 else
16525 cat >conftest.$ac_ext <<_ACEOF
16526 /* confdefs.h. */
16527 _ACEOF
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h. */
16531 $ac_includes_default
16532 /* malloc might have been renamed as rpl_malloc. */
16533 #undef malloc
16534
16535 /* Thanks to Mike Haertel and Jim Avera for this test.
16536 Here is a matrix of mmap possibilities:
16537 mmap private not fixed
16538 mmap private fixed at somewhere currently unmapped
16539 mmap private fixed at somewhere already mapped
16540 mmap shared not fixed
16541 mmap shared fixed at somewhere currently unmapped
16542 mmap shared fixed at somewhere already mapped
16543 For private mappings, we should verify that changes cannot be read()
16544 back from the file, nor mmap's back from the file at a different
16545 address. (There have been systems where private was not correctly
16546 implemented like the infamous i386 svr4.0, and systems where the
16547 VM page cache was not coherent with the file system buffer cache
16548 like early versions of FreeBSD and possibly contemporary NetBSD.)
16549 For shared mappings, we should conversely verify that changes get
16550 propagated back to all the places they're supposed to be.
16551
16552 Grep wants private fixed already mapped.
16553 The main things grep needs to know about mmap are:
16554 * does it exist and is it safe to write into the mmap'd area
16555 * how to use it (BSD variants) */
16556
16557 #include <fcntl.h>
16558 #include <sys/mman.h>
16559
16560 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16561 char *malloc ();
16562 #endif
16563
16564 /* This mess was copied from the GNU getpagesize.h. */
16565 #ifndef HAVE_GETPAGESIZE
16566 /* Assume that all systems that can run configure have sys/param.h. */
16567 # ifndef HAVE_SYS_PARAM_H
16568 # define HAVE_SYS_PARAM_H 1
16569 # endif
16570
16571 # ifdef _SC_PAGESIZE
16572 # define getpagesize() sysconf(_SC_PAGESIZE)
16573 # else /* no _SC_PAGESIZE */
16574 # ifdef HAVE_SYS_PARAM_H
16575 # include <sys/param.h>
16576 # ifdef EXEC_PAGESIZE
16577 # define getpagesize() EXEC_PAGESIZE
16578 # else /* no EXEC_PAGESIZE */
16579 # ifdef NBPG
16580 # define getpagesize() NBPG * CLSIZE
16581 # ifndef CLSIZE
16582 # define CLSIZE 1
16583 # endif /* no CLSIZE */
16584 # else /* no NBPG */
16585 # ifdef NBPC
16586 # define getpagesize() NBPC
16587 # else /* no NBPC */
16588 # ifdef PAGESIZE
16589 # define getpagesize() PAGESIZE
16590 # endif /* PAGESIZE */
16591 # endif /* no NBPC */
16592 # endif /* no NBPG */
16593 # endif /* no EXEC_PAGESIZE */
16594 # else /* no HAVE_SYS_PARAM_H */
16595 # define getpagesize() 8192 /* punt totally */
16596 # endif /* no HAVE_SYS_PARAM_H */
16597 # endif /* no _SC_PAGESIZE */
16598
16599 #endif /* no HAVE_GETPAGESIZE */
16600
16601 int
16602 main ()
16603 {
16604 char *data, *data2, *data3;
16605 int i, pagesize;
16606 int fd;
16607
16608 pagesize = getpagesize ();
16609
16610 /* First, make a file with some known garbage in it. */
16611 data = (char *) malloc (pagesize);
16612 if (!data)
16613 return 1;
16614 for (i = 0; i < pagesize; ++i)
16615 *(data + i) = rand ();
16616 umask (0);
16617 fd = creat ("conftest.mmap", 0600);
16618 if (fd < 0)
16619 return 1;
16620 if (write (fd, data, pagesize) != pagesize)
16621 return 1;
16622 close (fd);
16623
16624 /* Next, try to mmap the file at a fixed address which already has
16625 something else allocated at it. If we can, also make sure that
16626 we see the same garbage. */
16627 fd = open ("conftest.mmap", O_RDWR);
16628 if (fd < 0)
16629 return 1;
16630 data2 = (char *) malloc (2 * pagesize);
16631 if (!data2)
16632 return 1;
16633 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16634 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16635 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16636 return 1;
16637 for (i = 0; i < pagesize; ++i)
16638 if (*(data + i) != *(data2 + i))
16639 return 1;
16640
16641 /* Finally, make sure that changes to the mapped area do not
16642 percolate back to the file as seen by read(). (This is a bug on
16643 some variants of i386 svr4.0.) */
16644 for (i = 0; i < pagesize; ++i)
16645 *(data2 + i) = *(data2 + i) + 1;
16646 data3 = (char *) malloc (pagesize);
16647 if (!data3)
16648 return 1;
16649 if (read (fd, data3, pagesize) != pagesize)
16650 return 1;
16651 for (i = 0; i < pagesize; ++i)
16652 if (*(data + i) != *(data3 + i))
16653 return 1;
16654 close (fd);
16655 return 0;
16656 }
16657 _ACEOF
16658 rm -f 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>&5
16667 ac_status=$?
16668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16670 { (case "(($ac_try" in
16671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672 *) ac_try_echo=$ac_try;;
16673 esac
16674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16675 $as_echo "$ac_try_echo") >&5
16676 (eval "$ac_try") 2>&5
16677 ac_status=$?
16678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); }; }; then
16680 ac_cv_func_mmap_fixed_mapped=yes
16681 else
16682 $as_echo "$as_me: program exited with status $ac_status" >&5
16683 $as_echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16685
16686 ( exit $ac_status )
16687 ac_cv_func_mmap_fixed_mapped=no
16688 fi
16689 rm -rf conftest.dSYM
16690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16691 fi
16692
16693
16694 fi
16695 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16696 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16697 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16698
16699 cat >>confdefs.h <<\_ACEOF
16700 #define HAVE_MMAP 1
16701 _ACEOF
16702
16703 fi
16704 rm -f conftest.mmap
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715 for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
16716 munmap stpcpy strcspn strdup
16717 do
16718 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16719 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16720 $as_echo_n "checking for $ac_func... " >&6; }
16721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16722 $as_echo_n "(cached) " >&6
16723 else
16724 cat >conftest.$ac_ext <<_ACEOF
16725 /* confdefs.h. */
16726 _ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h. */
16730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16732 #define $ac_func innocuous_$ac_func
16733
16734 /* System header to define __stub macros and hopefully few prototypes,
16735 which can conflict with char $ac_func (); below.
16736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16737 <limits.h> exists even on freestanding compilers. */
16738
16739 #ifdef __STDC__
16740 # include <limits.h>
16741 #else
16742 # include <assert.h>
16743 #endif
16744
16745 #undef $ac_func
16746
16747 /* Override any GCC internal prototype to avoid an error.
16748 Use char because int might match the return type of a GCC
16749 builtin and then its argument prototype would still apply. */
16750 #ifdef __cplusplus
16751 extern "C"
16752 #endif
16753 char $ac_func ();
16754 /* The GNU C library defines this for functions which it implements
16755 to always fail with ENOSYS. Some functions are actually named
16756 something starting with __ and the normal name is an alias. */
16757 #if defined __stub_$ac_func || defined __stub___$ac_func
16758 choke me
16759 #endif
16760
16761 int
16762 main ()
16763 {
16764 return $ac_func ();
16765 ;
16766 return 0;
16767 }
16768 _ACEOF
16769 rm -f conftest.$ac_objext conftest$ac_exeext
16770 if { (ac_try="$ac_link"
16771 case "(($ac_try" in
16772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773 *) ac_try_echo=$ac_try;;
16774 esac
16775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16776 $as_echo "$ac_try_echo") >&5
16777 (eval "$ac_link") 2>conftest.er1
16778 ac_status=$?
16779 grep -v '^ *+' conftest.er1 >conftest.err
16780 rm -f conftest.er1
16781 cat conftest.err >&5
16782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); } && {
16784 test -z "$ac_c_werror_flag" ||
16785 test ! -s conftest.err
16786 } && test -s conftest$ac_exeext && {
16787 test "$cross_compiling" = yes ||
16788 $as_test_x conftest$ac_exeext
16789 }; then
16790 eval "$as_ac_var=yes"
16791 else
16792 $as_echo "$as_me: failed program was:" >&5
16793 sed 's/^/| /' conftest.$ac_ext >&5
16794
16795 eval "$as_ac_var=no"
16796 fi
16797
16798 rm -rf conftest.dSYM
16799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16800 conftest$ac_exeext conftest.$ac_ext
16801 fi
16802 ac_res=`eval 'as_val=${'$as_ac_var'}
16803 $as_echo "$as_val"'`
16804 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16805 $as_echo "$ac_res" >&6; }
16806 as_val=`eval 'as_val=${'$as_ac_var'}
16807 $as_echo "$as_val"'`
16808 if test "x$as_val" = x""yes; then
16809 cat >>confdefs.h <<_ACEOF
16810 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16811 _ACEOF
16812
16813 fi
16814 done
16815
16816
16817 INTL_DEP= INTL_INC= LIBINTL_H=
16818 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
16819 INTL_DEP='${INTL_LIBDIR}/libintl.a'
16820 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
16821 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
16822 fi
16823
16824
16825
16826
16827
16828
16829
16830 for ac_header in wctype.h
16831 do
16832 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16834 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16835 $as_echo_n "checking for $ac_header... " >&6; }
16836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16837 $as_echo_n "(cached) " >&6
16838 fi
16839 ac_res=`eval 'as_val=${'$as_ac_Header'}
16840 $as_echo "$as_val"'`
16841 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16842 $as_echo "$ac_res" >&6; }
16843 else
16844 # Is the header compilable?
16845 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16846 $as_echo_n "checking $ac_header usability... " >&6; }
16847 cat >conftest.$ac_ext <<_ACEOF
16848 /* confdefs.h. */
16849 _ACEOF
16850 cat confdefs.h >>conftest.$ac_ext
16851 cat >>conftest.$ac_ext <<_ACEOF
16852 /* end confdefs.h. */
16853 $ac_includes_default
16854 #include <$ac_header>
16855 _ACEOF
16856 rm -f conftest.$ac_objext
16857 if { (ac_try="$ac_compile"
16858 case "(($ac_try" in
16859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860 *) ac_try_echo=$ac_try;;
16861 esac
16862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16863 $as_echo "$ac_try_echo") >&5
16864 (eval "$ac_compile") 2>conftest.er1
16865 ac_status=$?
16866 grep -v '^ *+' conftest.er1 >conftest.err
16867 rm -f conftest.er1
16868 cat conftest.err >&5
16869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } && {
16871 test -z "$ac_c_werror_flag" ||
16872 test ! -s conftest.err
16873 } && test -s conftest.$ac_objext; then
16874 ac_header_compiler=yes
16875 else
16876 $as_echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16878
16879 ac_header_compiler=no
16880 fi
16881
16882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16883 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16884 $as_echo "$ac_header_compiler" >&6; }
16885
16886 # Is the header present?
16887 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16888 $as_echo_n "checking $ac_header presence... " >&6; }
16889 cat >conftest.$ac_ext <<_ACEOF
16890 /* confdefs.h. */
16891 _ACEOF
16892 cat confdefs.h >>conftest.$ac_ext
16893 cat >>conftest.$ac_ext <<_ACEOF
16894 /* end confdefs.h. */
16895 #include <$ac_header>
16896 _ACEOF
16897 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
16911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16912 test ! -s conftest.err
16913 }; then
16914 ac_header_preproc=yes
16915 else
16916 $as_echo "$as_me: failed program was:" >&5
16917 sed 's/^/| /' conftest.$ac_ext >&5
16918
16919 ac_header_preproc=no
16920 fi
16921
16922 rm -f conftest.err conftest.$ac_ext
16923 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16924 $as_echo "$ac_header_preproc" >&6; }
16925
16926 # So? What about this header?
16927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16928 yes:no: )
16929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16930 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16932 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16933 ac_header_preproc=yes
16934 ;;
16935 no:yes:* )
16936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16937 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16939 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16941 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16943 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16945 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16947 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16948 ( cat <<\_ASBOX
16949 ## ------------------------------- ##
16950 ## Report this to bug-bash@gnu.org ##
16951 ## ------------------------------- ##
16952 _ASBOX
16953 ) | sed "s/^/$as_me: WARNING: /" >&2
16954 ;;
16955 esac
16956 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16957 $as_echo_n "checking for $ac_header... " >&6; }
16958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16959 $as_echo_n "(cached) " >&6
16960 else
16961 eval "$as_ac_Header=\$ac_header_preproc"
16962 fi
16963 ac_res=`eval 'as_val=${'$as_ac_Header'}
16964 $as_echo "$as_val"'`
16965 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16966 $as_echo "$ac_res" >&6; }
16967
16968 fi
16969 as_val=`eval 'as_val=${'$as_ac_Header'}
16970 $as_echo "$as_val"'`
16971 if test "x$as_val" = x""yes; then
16972 cat >>confdefs.h <<_ACEOF
16973 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16974 _ACEOF
16975
16976 fi
16977
16978 done
16979
16980
16981 for ac_header in wchar.h
16982 do
16983 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16985 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16986 $as_echo_n "checking for $ac_header... " >&6; }
16987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16988 $as_echo_n "(cached) " >&6
16989 fi
16990 ac_res=`eval 'as_val=${'$as_ac_Header'}
16991 $as_echo "$as_val"'`
16992 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16993 $as_echo "$ac_res" >&6; }
16994 else
16995 # Is the header compilable?
16996 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16997 $as_echo_n "checking $ac_header usability... " >&6; }
16998 cat >conftest.$ac_ext <<_ACEOF
16999 /* confdefs.h. */
17000 _ACEOF
17001 cat confdefs.h >>conftest.$ac_ext
17002 cat >>conftest.$ac_ext <<_ACEOF
17003 /* end confdefs.h. */
17004 $ac_includes_default
17005 #include <$ac_header>
17006 _ACEOF
17007 rm -f conftest.$ac_objext
17008 if { (ac_try="$ac_compile"
17009 case "(($ac_try" in
17010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17011 *) ac_try_echo=$ac_try;;
17012 esac
17013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17014 $as_echo "$ac_try_echo") >&5
17015 (eval "$ac_compile") 2>conftest.er1
17016 ac_status=$?
17017 grep -v '^ *+' conftest.er1 >conftest.err
17018 rm -f conftest.er1
17019 cat conftest.err >&5
17020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } && {
17022 test -z "$ac_c_werror_flag" ||
17023 test ! -s conftest.err
17024 } && test -s conftest.$ac_objext; then
17025 ac_header_compiler=yes
17026 else
17027 $as_echo "$as_me: failed program was:" >&5
17028 sed 's/^/| /' conftest.$ac_ext >&5
17029
17030 ac_header_compiler=no
17031 fi
17032
17033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17034 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17035 $as_echo "$ac_header_compiler" >&6; }
17036
17037 # Is the header present?
17038 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17039 $as_echo_n "checking $ac_header presence... " >&6; }
17040 cat >conftest.$ac_ext <<_ACEOF
17041 /* confdefs.h. */
17042 _ACEOF
17043 cat confdefs.h >>conftest.$ac_ext
17044 cat >>conftest.$ac_ext <<_ACEOF
17045 /* end confdefs.h. */
17046 #include <$ac_header>
17047 _ACEOF
17048 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
17062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17063 test ! -s conftest.err
17064 }; then
17065 ac_header_preproc=yes
17066 else
17067 $as_echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17069
17070 ac_header_preproc=no
17071 fi
17072
17073 rm -f conftest.err conftest.$ac_ext
17074 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17075 $as_echo "$ac_header_preproc" >&6; }
17076
17077 # So? What about this header?
17078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17079 yes:no: )
17080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17081 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17083 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17084 ac_header_preproc=yes
17085 ;;
17086 no:yes:* )
17087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17088 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17090 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17092 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17094 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17096 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17098 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17099 ( cat <<\_ASBOX
17100 ## ------------------------------- ##
17101 ## Report this to bug-bash@gnu.org ##
17102 ## ------------------------------- ##
17103 _ASBOX
17104 ) | sed "s/^/$as_me: WARNING: /" >&2
17105 ;;
17106 esac
17107 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17108 $as_echo_n "checking for $ac_header... " >&6; }
17109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17110 $as_echo_n "(cached) " >&6
17111 else
17112 eval "$as_ac_Header=\$ac_header_preproc"
17113 fi
17114 ac_res=`eval 'as_val=${'$as_ac_Header'}
17115 $as_echo "$as_val"'`
17116 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17117 $as_echo "$ac_res" >&6; }
17118
17119 fi
17120 as_val=`eval 'as_val=${'$as_ac_Header'}
17121 $as_echo "$as_val"'`
17122 if test "x$as_val" = x""yes; then
17123 cat >>confdefs.h <<_ACEOF
17124 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17125 _ACEOF
17126
17127 fi
17128
17129 done
17130
17131
17132 for ac_header in langinfo.h
17133 do
17134 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17136 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17137 $as_echo_n "checking for $ac_header... " >&6; }
17138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17139 $as_echo_n "(cached) " >&6
17140 fi
17141 ac_res=`eval 'as_val=${'$as_ac_Header'}
17142 $as_echo "$as_val"'`
17143 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17144 $as_echo "$ac_res" >&6; }
17145 else
17146 # Is the header compilable?
17147 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17148 $as_echo_n "checking $ac_header usability... " >&6; }
17149 cat >conftest.$ac_ext <<_ACEOF
17150 /* confdefs.h. */
17151 _ACEOF
17152 cat confdefs.h >>conftest.$ac_ext
17153 cat >>conftest.$ac_ext <<_ACEOF
17154 /* end confdefs.h. */
17155 $ac_includes_default
17156 #include <$ac_header>
17157 _ACEOF
17158 rm -f conftest.$ac_objext
17159 if { (ac_try="$ac_compile"
17160 case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17163 esac
17164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17165 $as_echo "$ac_try_echo") >&5
17166 (eval "$ac_compile") 2>conftest.er1
17167 ac_status=$?
17168 grep -v '^ *+' conftest.er1 >conftest.err
17169 rm -f conftest.er1
17170 cat conftest.err >&5
17171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } && {
17173 test -z "$ac_c_werror_flag" ||
17174 test ! -s conftest.err
17175 } && test -s conftest.$ac_objext; then
17176 ac_header_compiler=yes
17177 else
17178 $as_echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17180
17181 ac_header_compiler=no
17182 fi
17183
17184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17185 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17186 $as_echo "$ac_header_compiler" >&6; }
17187
17188 # Is the header present?
17189 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17190 $as_echo_n "checking $ac_header presence... " >&6; }
17191 cat >conftest.$ac_ext <<_ACEOF
17192 /* confdefs.h. */
17193 _ACEOF
17194 cat confdefs.h >>conftest.$ac_ext
17195 cat >>conftest.$ac_ext <<_ACEOF
17196 /* end confdefs.h. */
17197 #include <$ac_header>
17198 _ACEOF
17199 if { (ac_try="$ac_cpp conftest.$ac_ext"
17200 case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17203 esac
17204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17205 $as_echo "$ac_try_echo") >&5
17206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17207 ac_status=$?
17208 grep -v '^ *+' conftest.er1 >conftest.err
17209 rm -f conftest.er1
17210 cat conftest.err >&5
17211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); } >/dev/null && {
17213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17214 test ! -s conftest.err
17215 }; then
17216 ac_header_preproc=yes
17217 else
17218 $as_echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17220
17221 ac_header_preproc=no
17222 fi
17223
17224 rm -f conftest.err conftest.$ac_ext
17225 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17226 $as_echo "$ac_header_preproc" >&6; }
17227
17228 # So? What about this header?
17229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17230 yes:no: )
17231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17232 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17234 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17235 ac_header_preproc=yes
17236 ;;
17237 no:yes:* )
17238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17239 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17241 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17243 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17245 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17247 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17249 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17250 ( cat <<\_ASBOX
17251 ## ------------------------------- ##
17252 ## Report this to bug-bash@gnu.org ##
17253 ## ------------------------------- ##
17254 _ASBOX
17255 ) | sed "s/^/$as_me: WARNING: /" >&2
17256 ;;
17257 esac
17258 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17259 $as_echo_n "checking for $ac_header... " >&6; }
17260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17261 $as_echo_n "(cached) " >&6
17262 else
17263 eval "$as_ac_Header=\$ac_header_preproc"
17264 fi
17265 ac_res=`eval 'as_val=${'$as_ac_Header'}
17266 $as_echo "$as_val"'`
17267 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17268 $as_echo "$ac_res" >&6; }
17269
17270 fi
17271 as_val=`eval 'as_val=${'$as_ac_Header'}
17272 $as_echo "$as_val"'`
17273 if test "x$as_val" = x""yes; then
17274 cat >>confdefs.h <<_ACEOF
17275 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17276 _ACEOF
17277
17278 fi
17279
17280 done
17281
17282
17283 { $as_echo "$as_me:$LINENO: checking for mbrlen" >&5
17284 $as_echo_n "checking for mbrlen... " >&6; }
17285 if test "${ac_cv_func_mbrlen+set}" = set; then
17286 $as_echo_n "(cached) " >&6
17287 else
17288 cat >conftest.$ac_ext <<_ACEOF
17289 /* confdefs.h. */
17290 _ACEOF
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h. */
17294 /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
17295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17296 #define mbrlen innocuous_mbrlen
17297
17298 /* System header to define __stub macros and hopefully few prototypes,
17299 which can conflict with char mbrlen (); below.
17300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17301 <limits.h> exists even on freestanding compilers. */
17302
17303 #ifdef __STDC__
17304 # include <limits.h>
17305 #else
17306 # include <assert.h>
17307 #endif
17308
17309 #undef mbrlen
17310
17311 /* Override any GCC internal prototype to avoid an error.
17312 Use char because int might match the return type of a GCC
17313 builtin and then its argument prototype would still apply. */
17314 #ifdef __cplusplus
17315 extern "C"
17316 #endif
17317 char mbrlen ();
17318 /* The GNU C library defines this for functions which it implements
17319 to always fail with ENOSYS. Some functions are actually named
17320 something starting with __ and the normal name is an alias. */
17321 #if defined __stub_mbrlen || defined __stub___mbrlen
17322 choke me
17323 #endif
17324
17325 int
17326 main ()
17327 {
17328 return mbrlen ();
17329 ;
17330 return 0;
17331 }
17332 _ACEOF
17333 rm -f conftest.$ac_objext conftest$ac_exeext
17334 if { (ac_try="$ac_link"
17335 case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17338 esac
17339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17340 $as_echo "$ac_try_echo") >&5
17341 (eval "$ac_link") 2>conftest.er1
17342 ac_status=$?
17343 grep -v '^ *+' conftest.er1 >conftest.err
17344 rm -f conftest.er1
17345 cat conftest.err >&5
17346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); } && {
17348 test -z "$ac_c_werror_flag" ||
17349 test ! -s conftest.err
17350 } && test -s conftest$ac_exeext && {
17351 test "$cross_compiling" = yes ||
17352 $as_test_x conftest$ac_exeext
17353 }; then
17354 ac_cv_func_mbrlen=yes
17355 else
17356 $as_echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17358
17359 ac_cv_func_mbrlen=no
17360 fi
17361
17362 rm -rf conftest.dSYM
17363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17364 conftest$ac_exeext conftest.$ac_ext
17365 fi
17366 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
17367 $as_echo "$ac_cv_func_mbrlen" >&6; }
17368 if test "x$ac_cv_func_mbrlen" = x""yes; then
17369 cat >>confdefs.h <<\_ACEOF
17370 #define HAVE_MBRLEN 1
17371 _ACEOF
17372
17373 fi
17374
17375 { $as_echo "$as_me:$LINENO: checking for mbscasecmp" >&5
17376 $as_echo_n "checking for mbscasecmp... " >&6; }
17377 if test "${ac_cv_func_mbscasecmp+set}" = set; then
17378 $as_echo_n "(cached) " >&6
17379 else
17380 cat >conftest.$ac_ext <<_ACEOF
17381 /* confdefs.h. */
17382 _ACEOF
17383 cat confdefs.h >>conftest.$ac_ext
17384 cat >>conftest.$ac_ext <<_ACEOF
17385 /* end confdefs.h. */
17386 /* Define mbscasecmp to an innocuous variant, in case <limits.h> declares mbscasecmp.
17387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17388 #define mbscasecmp innocuous_mbscasecmp
17389
17390 /* System header to define __stub macros and hopefully few prototypes,
17391 which can conflict with char mbscasecmp (); below.
17392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17393 <limits.h> exists even on freestanding compilers. */
17394
17395 #ifdef __STDC__
17396 # include <limits.h>
17397 #else
17398 # include <assert.h>
17399 #endif
17400
17401 #undef mbscasecmp
17402
17403 /* Override any GCC internal prototype to avoid an error.
17404 Use char because int might match the return type of a GCC
17405 builtin and then its argument prototype would still apply. */
17406 #ifdef __cplusplus
17407 extern "C"
17408 #endif
17409 char mbscasecmp ();
17410 /* The GNU C library defines this for functions which it implements
17411 to always fail with ENOSYS. Some functions are actually named
17412 something starting with __ and the normal name is an alias. */
17413 #if defined __stub_mbscasecmp || defined __stub___mbscasecmp
17414 choke me
17415 #endif
17416
17417 int
17418 main ()
17419 {
17420 return mbscasecmp ();
17421 ;
17422 return 0;
17423 }
17424 _ACEOF
17425 rm -f conftest.$ac_objext conftest$ac_exeext
17426 if { (ac_try="$ac_link"
17427 case "(($ac_try" in
17428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429 *) ac_try_echo=$ac_try;;
17430 esac
17431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17432 $as_echo "$ac_try_echo") >&5
17433 (eval "$ac_link") 2>conftest.er1
17434 ac_status=$?
17435 grep -v '^ *+' conftest.er1 >conftest.err
17436 rm -f conftest.er1
17437 cat conftest.err >&5
17438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); } && {
17440 test -z "$ac_c_werror_flag" ||
17441 test ! -s conftest.err
17442 } && test -s conftest$ac_exeext && {
17443 test "$cross_compiling" = yes ||
17444 $as_test_x conftest$ac_exeext
17445 }; then
17446 ac_cv_func_mbscasecmp=yes
17447 else
17448 $as_echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17450
17451 ac_cv_func_mbscasecmp=no
17452 fi
17453
17454 rm -rf conftest.dSYM
17455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17456 conftest$ac_exeext conftest.$ac_ext
17457 fi
17458 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscasecmp" >&5
17459 $as_echo "$ac_cv_func_mbscasecmp" >&6; }
17460 if test "x$ac_cv_func_mbscasecmp" = x""yes; then
17461 cat >>confdefs.h <<\_ACEOF
17462 #define HAVE_MBSCMP 1
17463 _ACEOF
17464
17465 fi
17466
17467 { $as_echo "$as_me:$LINENO: checking for mbscmp" >&5
17468 $as_echo_n "checking for mbscmp... " >&6; }
17469 if test "${ac_cv_func_mbscmp+set}" = set; then
17470 $as_echo_n "(cached) " >&6
17471 else
17472 cat >conftest.$ac_ext <<_ACEOF
17473 /* confdefs.h. */
17474 _ACEOF
17475 cat confdefs.h >>conftest.$ac_ext
17476 cat >>conftest.$ac_ext <<_ACEOF
17477 /* end confdefs.h. */
17478 /* Define mbscmp to an innocuous variant, in case <limits.h> declares mbscmp.
17479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17480 #define mbscmp innocuous_mbscmp
17481
17482 /* System header to define __stub macros and hopefully few prototypes,
17483 which can conflict with char mbscmp (); below.
17484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17485 <limits.h> exists even on freestanding compilers. */
17486
17487 #ifdef __STDC__
17488 # include <limits.h>
17489 #else
17490 # include <assert.h>
17491 #endif
17492
17493 #undef mbscmp
17494
17495 /* Override any GCC internal prototype to avoid an error.
17496 Use char because int might match the return type of a GCC
17497 builtin and then its argument prototype would still apply. */
17498 #ifdef __cplusplus
17499 extern "C"
17500 #endif
17501 char mbscmp ();
17502 /* The GNU C library defines this for functions which it implements
17503 to always fail with ENOSYS. Some functions are actually named
17504 something starting with __ and the normal name is an alias. */
17505 #if defined __stub_mbscmp || defined __stub___mbscmp
17506 choke me
17507 #endif
17508
17509 int
17510 main ()
17511 {
17512 return mbscmp ();
17513 ;
17514 return 0;
17515 }
17516 _ACEOF
17517 rm -f conftest.$ac_objext conftest$ac_exeext
17518 if { (ac_try="$ac_link"
17519 case "(($ac_try" in
17520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17521 *) ac_try_echo=$ac_try;;
17522 esac
17523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17524 $as_echo "$ac_try_echo") >&5
17525 (eval "$ac_link") 2>conftest.er1
17526 ac_status=$?
17527 grep -v '^ *+' conftest.er1 >conftest.err
17528 rm -f conftest.er1
17529 cat conftest.err >&5
17530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } && {
17532 test -z "$ac_c_werror_flag" ||
17533 test ! -s conftest.err
17534 } && test -s conftest$ac_exeext && {
17535 test "$cross_compiling" = yes ||
17536 $as_test_x conftest$ac_exeext
17537 }; then
17538 ac_cv_func_mbscmp=yes
17539 else
17540 $as_echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17542
17543 ac_cv_func_mbscmp=no
17544 fi
17545
17546 rm -rf conftest.dSYM
17547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17548 conftest$ac_exeext conftest.$ac_ext
17549 fi
17550 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscmp" >&5
17551 $as_echo "$ac_cv_func_mbscmp" >&6; }
17552 if test "x$ac_cv_func_mbscmp" = x""yes; then
17553 cat >>confdefs.h <<\_ACEOF
17554 #define HAVE_MBSCMP 1
17555 _ACEOF
17556
17557 fi
17558
17559 { $as_echo "$as_me:$LINENO: checking for mbsnrtowcs" >&5
17560 $as_echo_n "checking for mbsnrtowcs... " >&6; }
17561 if test "${ac_cv_func_mbsnrtowcs+set}" = set; then
17562 $as_echo_n "(cached) " >&6
17563 else
17564 cat >conftest.$ac_ext <<_ACEOF
17565 /* confdefs.h. */
17566 _ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17570 /* Define mbsnrtowcs to an innocuous variant, in case <limits.h> declares mbsnrtowcs.
17571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17572 #define mbsnrtowcs innocuous_mbsnrtowcs
17573
17574 /* System header to define __stub macros and hopefully few prototypes,
17575 which can conflict with char mbsnrtowcs (); below.
17576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17577 <limits.h> exists even on freestanding compilers. */
17578
17579 #ifdef __STDC__
17580 # include <limits.h>
17581 #else
17582 # include <assert.h>
17583 #endif
17584
17585 #undef mbsnrtowcs
17586
17587 /* Override any GCC internal prototype to avoid an error.
17588 Use char because int might match the return type of a GCC
17589 builtin and then its argument prototype would still apply. */
17590 #ifdef __cplusplus
17591 extern "C"
17592 #endif
17593 char mbsnrtowcs ();
17594 /* The GNU C library defines this for functions which it implements
17595 to always fail with ENOSYS. Some functions are actually named
17596 something starting with __ and the normal name is an alias. */
17597 #if defined __stub_mbsnrtowcs || defined __stub___mbsnrtowcs
17598 choke me
17599 #endif
17600
17601 int
17602 main ()
17603 {
17604 return mbsnrtowcs ();
17605 ;
17606 return 0;
17607 }
17608 _ACEOF
17609 rm -f conftest.$ac_objext conftest$ac_exeext
17610 if { (ac_try="$ac_link"
17611 case "(($ac_try" in
17612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613 *) ac_try_echo=$ac_try;;
17614 esac
17615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17616 $as_echo "$ac_try_echo") >&5
17617 (eval "$ac_link") 2>conftest.er1
17618 ac_status=$?
17619 grep -v '^ *+' conftest.er1 >conftest.err
17620 rm -f conftest.er1
17621 cat conftest.err >&5
17622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); } && {
17624 test -z "$ac_c_werror_flag" ||
17625 test ! -s conftest.err
17626 } && test -s conftest$ac_exeext && {
17627 test "$cross_compiling" = yes ||
17628 $as_test_x conftest$ac_exeext
17629 }; then
17630 ac_cv_func_mbsnrtowcs=yes
17631 else
17632 $as_echo "$as_me: failed program was:" >&5
17633 sed 's/^/| /' conftest.$ac_ext >&5
17634
17635 ac_cv_func_mbsnrtowcs=no
17636 fi
17637
17638 rm -rf conftest.dSYM
17639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17640 conftest$ac_exeext conftest.$ac_ext
17641 fi
17642 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsnrtowcs" >&5
17643 $as_echo "$ac_cv_func_mbsnrtowcs" >&6; }
17644 if test "x$ac_cv_func_mbsnrtowcs" = x""yes; then
17645 cat >>confdefs.h <<\_ACEOF
17646 #define HAVE_MBSNRTOWCS 1
17647 _ACEOF
17648
17649 fi
17650
17651 { $as_echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
17652 $as_echo_n "checking for mbsrtowcs... " >&6; }
17653 if test "${ac_cv_func_mbsrtowcs+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 mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
17663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17664 #define mbsrtowcs innocuous_mbsrtowcs
17665
17666 /* System header to define __stub macros and hopefully few prototypes,
17667 which can conflict with char mbsrtowcs (); 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 mbsrtowcs
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 mbsrtowcs ();
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_mbsrtowcs || defined __stub___mbsrtowcs
17690 choke me
17691 #endif
17692
17693 int
17694 main ()
17695 {
17696 return mbsrtowcs ();
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_mbsrtowcs=yes
17723 else
17724 $as_echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17726
17727 ac_cv_func_mbsrtowcs=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_mbsrtowcs" >&5
17735 $as_echo "$ac_cv_func_mbsrtowcs" >&6; }
17736 if test "x$ac_cv_func_mbsrtowcs" = x""yes; then
17737 cat >>confdefs.h <<\_ACEOF
17738 #define HAVE_MBSRTOWCS 1
17739 _ACEOF
17740
17741 fi
17742
17743
17744
17745
17746 for ac_func in mbschr
17747 do
17748 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17749 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17750 $as_echo_n "checking for $ac_func... " >&6; }
17751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17752 $as_echo_n "(cached) " >&6
17753 else
17754 cat >conftest.$ac_ext <<_ACEOF
17755 /* confdefs.h. */
17756 _ACEOF
17757 cat confdefs.h >>conftest.$ac_ext
17758 cat >>conftest.$ac_ext <<_ACEOF
17759 /* end confdefs.h. */
17760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17762 #define $ac_func innocuous_$ac_func
17763
17764 /* System header to define __stub macros and hopefully few prototypes,
17765 which can conflict with char $ac_func (); below.
17766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17767 <limits.h> exists even on freestanding compilers. */
17768
17769 #ifdef __STDC__
17770 # include <limits.h>
17771 #else
17772 # include <assert.h>
17773 #endif
17774
17775 #undef $ac_func
17776
17777 /* Override any GCC internal prototype to avoid an error.
17778 Use char because int might match the return type of a GCC
17779 builtin and then its argument prototype would still apply. */
17780 #ifdef __cplusplus
17781 extern "C"
17782 #endif
17783 char $ac_func ();
17784 /* The GNU C library defines this for functions which it implements
17785 to always fail with ENOSYS. Some functions are actually named
17786 something starting with __ and the normal name is an alias. */
17787 #if defined __stub_$ac_func || defined __stub___$ac_func
17788 choke me
17789 #endif
17790
17791 int
17792 main ()
17793 {
17794 return $ac_func ();
17795 ;
17796 return 0;
17797 }
17798 _ACEOF
17799 rm -f conftest.$ac_objext conftest$ac_exeext
17800 if { (ac_try="$ac_link"
17801 case "(($ac_try" in
17802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17803 *) ac_try_echo=$ac_try;;
17804 esac
17805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17806 $as_echo "$ac_try_echo") >&5
17807 (eval "$ac_link") 2>conftest.er1
17808 ac_status=$?
17809 grep -v '^ *+' conftest.er1 >conftest.err
17810 rm -f conftest.er1
17811 cat conftest.err >&5
17812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } && {
17814 test -z "$ac_c_werror_flag" ||
17815 test ! -s conftest.err
17816 } && test -s conftest$ac_exeext && {
17817 test "$cross_compiling" = yes ||
17818 $as_test_x conftest$ac_exeext
17819 }; then
17820 eval "$as_ac_var=yes"
17821 else
17822 $as_echo "$as_me: failed program was:" >&5
17823 sed 's/^/| /' conftest.$ac_ext >&5
17824
17825 eval "$as_ac_var=no"
17826 fi
17827
17828 rm -rf conftest.dSYM
17829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17830 conftest$ac_exeext conftest.$ac_ext
17831 fi
17832 ac_res=`eval 'as_val=${'$as_ac_var'}
17833 $as_echo "$as_val"'`
17834 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17835 $as_echo "$ac_res" >&6; }
17836 as_val=`eval 'as_val=${'$as_ac_var'}
17837 $as_echo "$as_val"'`
17838 if test "x$as_val" = x""yes; then
17839 cat >>confdefs.h <<_ACEOF
17840 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17841 _ACEOF
17842
17843 else
17844 case " $LIBOBJS " in
17845 *" $ac_func.$ac_objext "* ) ;;
17846 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17847 ;;
17848 esac
17849
17850 fi
17851 done
17852
17853
17854
17855 { $as_echo "$as_me:$LINENO: checking for wcrtomb" >&5
17856 $as_echo_n "checking for wcrtomb... " >&6; }
17857 if test "${ac_cv_func_wcrtomb+set}" = set; then
17858 $as_echo_n "(cached) " >&6
17859 else
17860 cat >conftest.$ac_ext <<_ACEOF
17861 /* confdefs.h. */
17862 _ACEOF
17863 cat confdefs.h >>conftest.$ac_ext
17864 cat >>conftest.$ac_ext <<_ACEOF
17865 /* end confdefs.h. */
17866 /* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb.
17867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17868 #define wcrtomb innocuous_wcrtomb
17869
17870 /* System header to define __stub macros and hopefully few prototypes,
17871 which can conflict with char wcrtomb (); below.
17872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17873 <limits.h> exists even on freestanding compilers. */
17874
17875 #ifdef __STDC__
17876 # include <limits.h>
17877 #else
17878 # include <assert.h>
17879 #endif
17880
17881 #undef wcrtomb
17882
17883 /* Override any GCC internal prototype to avoid an error.
17884 Use char because int might match the return type of a GCC
17885 builtin and then its argument prototype would still apply. */
17886 #ifdef __cplusplus
17887 extern "C"
17888 #endif
17889 char wcrtomb ();
17890 /* The GNU C library defines this for functions which it implements
17891 to always fail with ENOSYS. Some functions are actually named
17892 something starting with __ and the normal name is an alias. */
17893 #if defined __stub_wcrtomb || defined __stub___wcrtomb
17894 choke me
17895 #endif
17896
17897 int
17898 main ()
17899 {
17900 return wcrtomb ();
17901 ;
17902 return 0;
17903 }
17904 _ACEOF
17905 rm -f conftest.$ac_objext conftest$ac_exeext
17906 if { (ac_try="$ac_link"
17907 case "(($ac_try" in
17908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909 *) ac_try_echo=$ac_try;;
17910 esac
17911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17912 $as_echo "$ac_try_echo") >&5
17913 (eval "$ac_link") 2>conftest.er1
17914 ac_status=$?
17915 grep -v '^ *+' conftest.er1 >conftest.err
17916 rm -f conftest.er1
17917 cat conftest.err >&5
17918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); } && {
17920 test -z "$ac_c_werror_flag" ||
17921 test ! -s conftest.err
17922 } && test -s conftest$ac_exeext && {
17923 test "$cross_compiling" = yes ||
17924 $as_test_x conftest$ac_exeext
17925 }; then
17926 ac_cv_func_wcrtomb=yes
17927 else
17928 $as_echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17930
17931 ac_cv_func_wcrtomb=no
17932 fi
17933
17934 rm -rf conftest.dSYM
17935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17936 conftest$ac_exeext conftest.$ac_ext
17937 fi
17938 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5
17939 $as_echo "$ac_cv_func_wcrtomb" >&6; }
17940 if test "x$ac_cv_func_wcrtomb" = x""yes; then
17941 cat >>confdefs.h <<\_ACEOF
17942 #define HAVE_WCRTOMB 1
17943 _ACEOF
17944
17945 fi
17946
17947 { $as_echo "$as_me:$LINENO: checking for wcscoll" >&5
17948 $as_echo_n "checking for wcscoll... " >&6; }
17949 if test "${ac_cv_func_wcscoll+set}" = set; then
17950 $as_echo_n "(cached) " >&6
17951 else
17952 cat >conftest.$ac_ext <<_ACEOF
17953 /* confdefs.h. */
17954 _ACEOF
17955 cat confdefs.h >>conftest.$ac_ext
17956 cat >>conftest.$ac_ext <<_ACEOF
17957 /* end confdefs.h. */
17958 /* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll.
17959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17960 #define wcscoll innocuous_wcscoll
17961
17962 /* System header to define __stub macros and hopefully few prototypes,
17963 which can conflict with char wcscoll (); below.
17964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17965 <limits.h> exists even on freestanding compilers. */
17966
17967 #ifdef __STDC__
17968 # include <limits.h>
17969 #else
17970 # include <assert.h>
17971 #endif
17972
17973 #undef wcscoll
17974
17975 /* Override any GCC internal prototype to avoid an error.
17976 Use char because int might match the return type of a GCC
17977 builtin and then its argument prototype would still apply. */
17978 #ifdef __cplusplus
17979 extern "C"
17980 #endif
17981 char wcscoll ();
17982 /* The GNU C library defines this for functions which it implements
17983 to always fail with ENOSYS. Some functions are actually named
17984 something starting with __ and the normal name is an alias. */
17985 #if defined __stub_wcscoll || defined __stub___wcscoll
17986 choke me
17987 #endif
17988
17989 int
17990 main ()
17991 {
17992 return wcscoll ();
17993 ;
17994 return 0;
17995 }
17996 _ACEOF
17997 rm -f conftest.$ac_objext conftest$ac_exeext
17998 if { (ac_try="$ac_link"
17999 case "(($ac_try" in
18000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001 *) ac_try_echo=$ac_try;;
18002 esac
18003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18004 $as_echo "$ac_try_echo") >&5
18005 (eval "$ac_link") 2>conftest.er1
18006 ac_status=$?
18007 grep -v '^ *+' conftest.er1 >conftest.err
18008 rm -f conftest.er1
18009 cat conftest.err >&5
18010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); } && {
18012 test -z "$ac_c_werror_flag" ||
18013 test ! -s conftest.err
18014 } && test -s conftest$ac_exeext && {
18015 test "$cross_compiling" = yes ||
18016 $as_test_x conftest$ac_exeext
18017 }; then
18018 ac_cv_func_wcscoll=yes
18019 else
18020 $as_echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18022
18023 ac_cv_func_wcscoll=no
18024 fi
18025
18026 rm -rf conftest.dSYM
18027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18028 conftest$ac_exeext conftest.$ac_ext
18029 fi
18030 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5
18031 $as_echo "$ac_cv_func_wcscoll" >&6; }
18032 if test "x$ac_cv_func_wcscoll" = x""yes; then
18033 cat >>confdefs.h <<\_ACEOF
18034 #define HAVE_WCSCOLL 1
18035 _ACEOF
18036
18037 fi
18038
18039 { $as_echo "$as_me:$LINENO: checking for wcsdup" >&5
18040 $as_echo_n "checking for wcsdup... " >&6; }
18041 if test "${ac_cv_func_wcsdup+set}" = set; then
18042 $as_echo_n "(cached) " >&6
18043 else
18044 cat >conftest.$ac_ext <<_ACEOF
18045 /* confdefs.h. */
18046 _ACEOF
18047 cat confdefs.h >>conftest.$ac_ext
18048 cat >>conftest.$ac_ext <<_ACEOF
18049 /* end confdefs.h. */
18050 /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
18051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18052 #define wcsdup innocuous_wcsdup
18053
18054 /* System header to define __stub macros and hopefully few prototypes,
18055 which can conflict with char wcsdup (); below.
18056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18057 <limits.h> exists even on freestanding compilers. */
18058
18059 #ifdef __STDC__
18060 # include <limits.h>
18061 #else
18062 # include <assert.h>
18063 #endif
18064
18065 #undef wcsdup
18066
18067 /* Override any GCC internal prototype to avoid an error.
18068 Use char because int might match the return type of a GCC
18069 builtin and then its argument prototype would still apply. */
18070 #ifdef __cplusplus
18071 extern "C"
18072 #endif
18073 char wcsdup ();
18074 /* The GNU C library defines this for functions which it implements
18075 to always fail with ENOSYS. Some functions are actually named
18076 something starting with __ and the normal name is an alias. */
18077 #if defined __stub_wcsdup || defined __stub___wcsdup
18078 choke me
18079 #endif
18080
18081 int
18082 main ()
18083 {
18084 return wcsdup ();
18085 ;
18086 return 0;
18087 }
18088 _ACEOF
18089 rm -f conftest.$ac_objext conftest$ac_exeext
18090 if { (ac_try="$ac_link"
18091 case "(($ac_try" in
18092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093 *) ac_try_echo=$ac_try;;
18094 esac
18095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18096 $as_echo "$ac_try_echo") >&5
18097 (eval "$ac_link") 2>conftest.er1
18098 ac_status=$?
18099 grep -v '^ *+' conftest.er1 >conftest.err
18100 rm -f conftest.er1
18101 cat conftest.err >&5
18102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); } && {
18104 test -z "$ac_c_werror_flag" ||
18105 test ! -s conftest.err
18106 } && test -s conftest$ac_exeext && {
18107 test "$cross_compiling" = yes ||
18108 $as_test_x conftest$ac_exeext
18109 }; then
18110 ac_cv_func_wcsdup=yes
18111 else
18112 $as_echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18114
18115 ac_cv_func_wcsdup=no
18116 fi
18117
18118 rm -rf conftest.dSYM
18119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18120 conftest$ac_exeext conftest.$ac_ext
18121 fi
18122 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
18123 $as_echo "$ac_cv_func_wcsdup" >&6; }
18124 if test "x$ac_cv_func_wcsdup" = x""yes; then
18125 cat >>confdefs.h <<\_ACEOF
18126 #define HAVE_WCSDUP 1
18127 _ACEOF
18128
18129 fi
18130
18131 { $as_echo "$as_me:$LINENO: checking for wcwidth" >&5
18132 $as_echo_n "checking for wcwidth... " >&6; }
18133 if test "${ac_cv_func_wcwidth+set}" = set; then
18134 $as_echo_n "(cached) " >&6
18135 else
18136 cat >conftest.$ac_ext <<_ACEOF
18137 /* confdefs.h. */
18138 _ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h. */
18142 /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
18143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18144 #define wcwidth innocuous_wcwidth
18145
18146 /* System header to define __stub macros and hopefully few prototypes,
18147 which can conflict with char wcwidth (); below.
18148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18149 <limits.h> exists even on freestanding compilers. */
18150
18151 #ifdef __STDC__
18152 # include <limits.h>
18153 #else
18154 # include <assert.h>
18155 #endif
18156
18157 #undef wcwidth
18158
18159 /* Override any GCC internal prototype to avoid an error.
18160 Use char because int might match the return type of a GCC
18161 builtin and then its argument prototype would still apply. */
18162 #ifdef __cplusplus
18163 extern "C"
18164 #endif
18165 char wcwidth ();
18166 /* The GNU C library defines this for functions which it implements
18167 to always fail with ENOSYS. Some functions are actually named
18168 something starting with __ and the normal name is an alias. */
18169 #if defined __stub_wcwidth || defined __stub___wcwidth
18170 choke me
18171 #endif
18172
18173 int
18174 main ()
18175 {
18176 return wcwidth ();
18177 ;
18178 return 0;
18179 }
18180 _ACEOF
18181 rm -f conftest.$ac_objext conftest$ac_exeext
18182 if { (ac_try="$ac_link"
18183 case "(($ac_try" in
18184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185 *) ac_try_echo=$ac_try;;
18186 esac
18187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18188 $as_echo "$ac_try_echo") >&5
18189 (eval "$ac_link") 2>conftest.er1
18190 ac_status=$?
18191 grep -v '^ *+' conftest.er1 >conftest.err
18192 rm -f conftest.er1
18193 cat conftest.err >&5
18194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); } && {
18196 test -z "$ac_c_werror_flag" ||
18197 test ! -s conftest.err
18198 } && test -s conftest$ac_exeext && {
18199 test "$cross_compiling" = yes ||
18200 $as_test_x conftest$ac_exeext
18201 }; then
18202 ac_cv_func_wcwidth=yes
18203 else
18204 $as_echo "$as_me: failed program was:" >&5
18205 sed 's/^/| /' conftest.$ac_ext >&5
18206
18207 ac_cv_func_wcwidth=no
18208 fi
18209
18210 rm -rf conftest.dSYM
18211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18212 conftest$ac_exeext conftest.$ac_ext
18213 fi
18214 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
18215 $as_echo "$ac_cv_func_wcwidth" >&6; }
18216 if test "x$ac_cv_func_wcwidth" = x""yes; then
18217 cat >>confdefs.h <<\_ACEOF
18218 #define HAVE_WCWIDTH 1
18219 _ACEOF
18220
18221 fi
18222
18223 { $as_echo "$as_me:$LINENO: checking for wctype" >&5
18224 $as_echo_n "checking for wctype... " >&6; }
18225 if test "${ac_cv_func_wctype+set}" = set; then
18226 $as_echo_n "(cached) " >&6
18227 else
18228 cat >conftest.$ac_ext <<_ACEOF
18229 /* confdefs.h. */
18230 _ACEOF
18231 cat confdefs.h >>conftest.$ac_ext
18232 cat >>conftest.$ac_ext <<_ACEOF
18233 /* end confdefs.h. */
18234 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
18235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18236 #define wctype innocuous_wctype
18237
18238 /* System header to define __stub macros and hopefully few prototypes,
18239 which can conflict with char wctype (); below.
18240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18241 <limits.h> exists even on freestanding compilers. */
18242
18243 #ifdef __STDC__
18244 # include <limits.h>
18245 #else
18246 # include <assert.h>
18247 #endif
18248
18249 #undef wctype
18250
18251 /* Override any GCC internal prototype to avoid an error.
18252 Use char because int might match the return type of a GCC
18253 builtin and then its argument prototype would still apply. */
18254 #ifdef __cplusplus
18255 extern "C"
18256 #endif
18257 char wctype ();
18258 /* The GNU C library defines this for functions which it implements
18259 to always fail with ENOSYS. Some functions are actually named
18260 something starting with __ and the normal name is an alias. */
18261 #if defined __stub_wctype || defined __stub___wctype
18262 choke me
18263 #endif
18264
18265 int
18266 main ()
18267 {
18268 return wctype ();
18269 ;
18270 return 0;
18271 }
18272 _ACEOF
18273 rm -f conftest.$ac_objext conftest$ac_exeext
18274 if { (ac_try="$ac_link"
18275 case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18278 esac
18279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18280 $as_echo "$ac_try_echo") >&5
18281 (eval "$ac_link") 2>conftest.er1
18282 ac_status=$?
18283 grep -v '^ *+' conftest.er1 >conftest.err
18284 rm -f conftest.er1
18285 cat conftest.err >&5
18286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); } && {
18288 test -z "$ac_c_werror_flag" ||
18289 test ! -s conftest.err
18290 } && test -s conftest$ac_exeext && {
18291 test "$cross_compiling" = yes ||
18292 $as_test_x conftest$ac_exeext
18293 }; then
18294 ac_cv_func_wctype=yes
18295 else
18296 $as_echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.$ac_ext >&5
18298
18299 ac_cv_func_wctype=no
18300 fi
18301
18302 rm -rf conftest.dSYM
18303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18304 conftest$ac_exeext conftest.$ac_ext
18305 fi
18306 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
18307 $as_echo "$ac_cv_func_wctype" >&6; }
18308 if test "x$ac_cv_func_wctype" = x""yes; then
18309 cat >>confdefs.h <<\_ACEOF
18310 #define HAVE_WCTYPE 1
18311 _ACEOF
18312
18313 fi
18314
18315
18316
18317 for ac_func in wcswidth
18318 do
18319 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18320 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18321 $as_echo_n "checking for $ac_func... " >&6; }
18322 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18323 $as_echo_n "(cached) " >&6
18324 else
18325 cat >conftest.$ac_ext <<_ACEOF
18326 /* confdefs.h. */
18327 _ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18333 #define $ac_func innocuous_$ac_func
18334
18335 /* System header to define __stub macros and hopefully few prototypes,
18336 which can conflict with char $ac_func (); below.
18337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18338 <limits.h> exists even on freestanding compilers. */
18339
18340 #ifdef __STDC__
18341 # include <limits.h>
18342 #else
18343 # include <assert.h>
18344 #endif
18345
18346 #undef $ac_func
18347
18348 /* Override any GCC internal prototype to avoid an error.
18349 Use char because int might match the return type of a GCC
18350 builtin and then its argument prototype would still apply. */
18351 #ifdef __cplusplus
18352 extern "C"
18353 #endif
18354 char $ac_func ();
18355 /* The GNU C library defines this for functions which it implements
18356 to always fail with ENOSYS. Some functions are actually named
18357 something starting with __ and the normal name is an alias. */
18358 #if defined __stub_$ac_func || defined __stub___$ac_func
18359 choke me
18360 #endif
18361
18362 int
18363 main ()
18364 {
18365 return $ac_func ();
18366 ;
18367 return 0;
18368 }
18369 _ACEOF
18370 rm -f conftest.$ac_objext conftest$ac_exeext
18371 if { (ac_try="$ac_link"
18372 case "(($ac_try" in
18373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18374 *) ac_try_echo=$ac_try;;
18375 esac
18376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18377 $as_echo "$ac_try_echo") >&5
18378 (eval "$ac_link") 2>conftest.er1
18379 ac_status=$?
18380 grep -v '^ *+' conftest.er1 >conftest.err
18381 rm -f conftest.er1
18382 cat conftest.err >&5
18383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); } && {
18385 test -z "$ac_c_werror_flag" ||
18386 test ! -s conftest.err
18387 } && test -s conftest$ac_exeext && {
18388 test "$cross_compiling" = yes ||
18389 $as_test_x conftest$ac_exeext
18390 }; then
18391 eval "$as_ac_var=yes"
18392 else
18393 $as_echo "$as_me: failed program was:" >&5
18394 sed 's/^/| /' conftest.$ac_ext >&5
18395
18396 eval "$as_ac_var=no"
18397 fi
18398
18399 rm -rf conftest.dSYM
18400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18401 conftest$ac_exeext conftest.$ac_ext
18402 fi
18403 ac_res=`eval 'as_val=${'$as_ac_var'}
18404 $as_echo "$as_val"'`
18405 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18406 $as_echo "$ac_res" >&6; }
18407 as_val=`eval 'as_val=${'$as_ac_var'}
18408 $as_echo "$as_val"'`
18409 if test "x$as_val" = x""yes; then
18410 cat >>confdefs.h <<_ACEOF
18411 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18412 _ACEOF
18413
18414 else
18415 case " $LIBOBJS " in
18416 *" $ac_func.$ac_objext "* ) ;;
18417 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18418 ;;
18419 esac
18420
18421 fi
18422 done
18423
18424
18425
18426
18427 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
18428 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
18429 if test "${ac_cv_func_mbrtowc+set}" = set; then
18430 $as_echo_n "(cached) " >&6
18431 else
18432 cat >conftest.$ac_ext <<_ACEOF
18433 /* confdefs.h. */
18434 _ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h. */
18438 #include <wchar.h>
18439 int
18440 main ()
18441 {
18442 wchar_t wc;
18443 char const s[] = "";
18444 size_t n = 1;
18445 mbstate_t state;
18446 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
18447 ;
18448 return 0;
18449 }
18450 _ACEOF
18451 rm -f conftest.$ac_objext conftest$ac_exeext
18452 if { (ac_try="$ac_link"
18453 case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18456 esac
18457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18458 $as_echo "$ac_try_echo") >&5
18459 (eval "$ac_link") 2>conftest.er1
18460 ac_status=$?
18461 grep -v '^ *+' conftest.er1 >conftest.err
18462 rm -f conftest.er1
18463 cat conftest.err >&5
18464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); } && {
18466 test -z "$ac_c_werror_flag" ||
18467 test ! -s conftest.err
18468 } && test -s conftest$ac_exeext && {
18469 test "$cross_compiling" = yes ||
18470 $as_test_x conftest$ac_exeext
18471 }; then
18472 ac_cv_func_mbrtowc=yes
18473 else
18474 $as_echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18476
18477 ac_cv_func_mbrtowc=no
18478 fi
18479
18480 rm -rf conftest.dSYM
18481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18482 conftest$ac_exeext conftest.$ac_ext
18483 fi
18484 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
18485 $as_echo "$ac_cv_func_mbrtowc" >&6; }
18486 if test $ac_cv_func_mbrtowc = yes; then
18487
18488 cat >>confdefs.h <<\_ACEOF
18489 #define HAVE_MBRTOWC 1
18490 _ACEOF
18491
18492 fi
18493
18494 if test $ac_cv_func_mbrtowc = yes; then
18495 cat >>confdefs.h <<\_ACEOF
18496 #define HAVE_MBSTATE_T 1
18497 _ACEOF
18498
18499 fi
18500
18501
18502
18503
18504
18505
18506 for ac_func in iswlower iswupper towlower towupper iswctype
18507 do
18508 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18509 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18510 $as_echo_n "checking for $ac_func... " >&6; }
18511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18512 $as_echo_n "(cached) " >&6
18513 else
18514 cat >conftest.$ac_ext <<_ACEOF
18515 /* confdefs.h. */
18516 _ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h. */
18520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18522 #define $ac_func innocuous_$ac_func
18523
18524 /* System header to define __stub macros and hopefully few prototypes,
18525 which can conflict with char $ac_func (); below.
18526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18527 <limits.h> exists even on freestanding compilers. */
18528
18529 #ifdef __STDC__
18530 # include <limits.h>
18531 #else
18532 # include <assert.h>
18533 #endif
18534
18535 #undef $ac_func
18536
18537 /* Override any GCC internal prototype to avoid an error.
18538 Use char because int might match the return type of a GCC
18539 builtin and then its argument prototype would still apply. */
18540 #ifdef __cplusplus
18541 extern "C"
18542 #endif
18543 char $ac_func ();
18544 /* The GNU C library defines this for functions which it implements
18545 to always fail with ENOSYS. Some functions are actually named
18546 something starting with __ and the normal name is an alias. */
18547 #if defined __stub_$ac_func || defined __stub___$ac_func
18548 choke me
18549 #endif
18550
18551 int
18552 main ()
18553 {
18554 return $ac_func ();
18555 ;
18556 return 0;
18557 }
18558 _ACEOF
18559 rm -f conftest.$ac_objext conftest$ac_exeext
18560 if { (ac_try="$ac_link"
18561 case "(($ac_try" in
18562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18563 *) ac_try_echo=$ac_try;;
18564 esac
18565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18566 $as_echo "$ac_try_echo") >&5
18567 (eval "$ac_link") 2>conftest.er1
18568 ac_status=$?
18569 grep -v '^ *+' conftest.er1 >conftest.err
18570 rm -f conftest.er1
18571 cat conftest.err >&5
18572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); } && {
18574 test -z "$ac_c_werror_flag" ||
18575 test ! -s conftest.err
18576 } && test -s conftest$ac_exeext && {
18577 test "$cross_compiling" = yes ||
18578 $as_test_x conftest$ac_exeext
18579 }; then
18580 eval "$as_ac_var=yes"
18581 else
18582 $as_echo "$as_me: failed program was:" >&5
18583 sed 's/^/| /' conftest.$ac_ext >&5
18584
18585 eval "$as_ac_var=no"
18586 fi
18587
18588 rm -rf conftest.dSYM
18589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18590 conftest$ac_exeext conftest.$ac_ext
18591 fi
18592 ac_res=`eval 'as_val=${'$as_ac_var'}
18593 $as_echo "$as_val"'`
18594 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18595 $as_echo "$ac_res" >&6; }
18596 as_val=`eval 'as_val=${'$as_ac_var'}
18597 $as_echo "$as_val"'`
18598 if test "x$as_val" = x""yes; then
18599 cat >>confdefs.h <<_ACEOF
18600 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18601 _ACEOF
18602
18603 fi
18604 done
18605
18606
18607 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
18608 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
18609 if test "${bash_cv_langinfo_codeset+set}" = set; then
18610 $as_echo_n "(cached) " >&6
18611 else
18612 cat >conftest.$ac_ext <<_ACEOF
18613 /* confdefs.h. */
18614 _ACEOF
18615 cat confdefs.h >>conftest.$ac_ext
18616 cat >>conftest.$ac_ext <<_ACEOF
18617 /* end confdefs.h. */
18618 #include <langinfo.h>
18619 int
18620 main ()
18621 {
18622 char* cs = nl_langinfo(CODESET);
18623 ;
18624 return 0;
18625 }
18626 _ACEOF
18627 rm -f conftest.$ac_objext conftest$ac_exeext
18628 if { (ac_try="$ac_link"
18629 case "(($ac_try" in
18630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18631 *) ac_try_echo=$ac_try;;
18632 esac
18633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18634 $as_echo "$ac_try_echo") >&5
18635 (eval "$ac_link") 2>conftest.er1
18636 ac_status=$?
18637 grep -v '^ *+' conftest.er1 >conftest.err
18638 rm -f conftest.er1
18639 cat conftest.err >&5
18640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); } && {
18642 test -z "$ac_c_werror_flag" ||
18643 test ! -s conftest.err
18644 } && test -s conftest$ac_exeext && {
18645 test "$cross_compiling" = yes ||
18646 $as_test_x conftest$ac_exeext
18647 }; then
18648 bash_cv_langinfo_codeset=yes
18649 else
18650 $as_echo "$as_me: failed program was:" >&5
18651 sed 's/^/| /' conftest.$ac_ext >&5
18652
18653 bash_cv_langinfo_codeset=no
18654 fi
18655
18656 rm -rf conftest.dSYM
18657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18658 conftest$ac_exeext conftest.$ac_ext
18659 fi
18660 { $as_echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
18661 $as_echo "$bash_cv_langinfo_codeset" >&6; }
18662 if test $bash_cv_langinfo_codeset = yes; then
18663 cat >>confdefs.h <<\_ACEOF
18664 #define HAVE_LANGINFO_CODESET 1
18665 _ACEOF
18666
18667 fi
18668
18669 { $as_echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5
18670 $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
18671 if test "${bash_cv_type_wchar_t+set}" = set; then
18672 $as_echo_n "(cached) " >&6
18673 else
18674 cat >conftest.$ac_ext <<_ACEOF
18675 /* confdefs.h. */
18676 _ACEOF
18677 cat confdefs.h >>conftest.$ac_ext
18678 cat >>conftest.$ac_ext <<_ACEOF
18679 /* end confdefs.h. */
18680 #include <wchar.h>
18681
18682 int
18683 main ()
18684 {
18685
18686 wchar_t foo;
18687 foo = 0;
18688
18689 ;
18690 return 0;
18691 }
18692 _ACEOF
18693 rm -f conftest.$ac_objext
18694 if { (ac_try="$ac_compile"
18695 case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18698 esac
18699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18700 $as_echo "$ac_try_echo") >&5
18701 (eval "$ac_compile") 2>conftest.er1
18702 ac_status=$?
18703 grep -v '^ *+' conftest.er1 >conftest.err
18704 rm -f conftest.er1
18705 cat conftest.err >&5
18706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); } && {
18708 test -z "$ac_c_werror_flag" ||
18709 test ! -s conftest.err
18710 } && test -s conftest.$ac_objext; then
18711 bash_cv_type_wchar_t=yes
18712 else
18713 $as_echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18715
18716 bash_cv_type_wchar_t=no
18717 fi
18718
18719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18720 fi
18721 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5
18722 $as_echo "$bash_cv_type_wchar_t" >&6; }
18723 if test $bash_cv_type_wchar_t = yes; then
18724
18725 cat >>confdefs.h <<\_ACEOF
18726 #define HAVE_WCHAR_T 1
18727 _ACEOF
18728
18729 fi
18730
18731 { $as_echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5
18732 $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
18733 if test "${bash_cv_type_wctype_t+set}" = set; then
18734 $as_echo_n "(cached) " >&6
18735 else
18736 cat >conftest.$ac_ext <<_ACEOF
18737 /* confdefs.h. */
18738 _ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h. */
18742 #include <wctype.h>
18743 int
18744 main ()
18745 {
18746
18747 wctype_t foo;
18748 foo = 0;
18749
18750 ;
18751 return 0;
18752 }
18753 _ACEOF
18754 rm -f conftest.$ac_objext
18755 if { (ac_try="$ac_compile"
18756 case "(($ac_try" in
18757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18758 *) ac_try_echo=$ac_try;;
18759 esac
18760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18761 $as_echo "$ac_try_echo") >&5
18762 (eval "$ac_compile") 2>conftest.er1
18763 ac_status=$?
18764 grep -v '^ *+' conftest.er1 >conftest.err
18765 rm -f conftest.er1
18766 cat conftest.err >&5
18767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); } && {
18769 test -z "$ac_c_werror_flag" ||
18770 test ! -s conftest.err
18771 } && test -s conftest.$ac_objext; then
18772 bash_cv_type_wctype_t=yes
18773 else
18774 $as_echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18776
18777 bash_cv_type_wctype_t=no
18778 fi
18779
18780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18781 fi
18782 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5
18783 $as_echo "$bash_cv_type_wctype_t" >&6; }
18784 if test $bash_cv_type_wctype_t = yes; then
18785
18786 cat >>confdefs.h <<\_ACEOF
18787 #define HAVE_WCTYPE_T 1
18788 _ACEOF
18789
18790 fi
18791
18792 { $as_echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5
18793 $as_echo_n "checking for wint_t in wctype.h... " >&6; }
18794 if test "${bash_cv_type_wint_t+set}" = set; then
18795 $as_echo_n "(cached) " >&6
18796 else
18797 cat >conftest.$ac_ext <<_ACEOF
18798 /* confdefs.h. */
18799 _ACEOF
18800 cat confdefs.h >>conftest.$ac_ext
18801 cat >>conftest.$ac_ext <<_ACEOF
18802 /* end confdefs.h. */
18803 #include <wctype.h>
18804 int
18805 main ()
18806 {
18807
18808 wint_t foo;
18809 foo = 0;
18810
18811 ;
18812 return 0;
18813 }
18814 _ACEOF
18815 rm -f conftest.$ac_objext
18816 if { (ac_try="$ac_compile"
18817 case "(($ac_try" in
18818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819 *) ac_try_echo=$ac_try;;
18820 esac
18821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18822 $as_echo "$ac_try_echo") >&5
18823 (eval "$ac_compile") 2>conftest.er1
18824 ac_status=$?
18825 grep -v '^ *+' conftest.er1 >conftest.err
18826 rm -f conftest.er1
18827 cat conftest.err >&5
18828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); } && {
18830 test -z "$ac_c_werror_flag" ||
18831 test ! -s conftest.err
18832 } && test -s conftest.$ac_objext; then
18833 bash_cv_type_wint_t=yes
18834 else
18835 $as_echo "$as_me: failed program was:" >&5
18836 sed 's/^/| /' conftest.$ac_ext >&5
18837
18838 bash_cv_type_wint_t=no
18839 fi
18840
18841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18842 fi
18843 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5
18844 $as_echo "$bash_cv_type_wint_t" >&6; }
18845 if test $bash_cv_type_wint_t = yes; then
18846
18847 cat >>confdefs.h <<\_ACEOF
18848 #define HAVE_WINT_T 1
18849 _ACEOF
18850
18851 fi
18852
18853 if test "$am_cv_func_iconv" = yes; then
18854 OLDLIBS="$LIBS"
18855 LIBS="$LIBS $LIBICONV"
18856
18857 for ac_func in locale_charset
18858 do
18859 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18860 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18861 $as_echo_n "checking for $ac_func... " >&6; }
18862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18863 $as_echo_n "(cached) " >&6
18864 else
18865 cat >conftest.$ac_ext <<_ACEOF
18866 /* confdefs.h. */
18867 _ACEOF
18868 cat confdefs.h >>conftest.$ac_ext
18869 cat >>conftest.$ac_ext <<_ACEOF
18870 /* end confdefs.h. */
18871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18873 #define $ac_func innocuous_$ac_func
18874
18875 /* System header to define __stub macros and hopefully few prototypes,
18876 which can conflict with char $ac_func (); below.
18877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18878 <limits.h> exists even on freestanding compilers. */
18879
18880 #ifdef __STDC__
18881 # include <limits.h>
18882 #else
18883 # include <assert.h>
18884 #endif
18885
18886 #undef $ac_func
18887
18888 /* Override any GCC internal prototype to avoid an error.
18889 Use char because int might match the return type of a GCC
18890 builtin and then its argument prototype would still apply. */
18891 #ifdef __cplusplus
18892 extern "C"
18893 #endif
18894 char $ac_func ();
18895 /* The GNU C library defines this for functions which it implements
18896 to always fail with ENOSYS. Some functions are actually named
18897 something starting with __ and the normal name is an alias. */
18898 #if defined __stub_$ac_func || defined __stub___$ac_func
18899 choke me
18900 #endif
18901
18902 int
18903 main ()
18904 {
18905 return $ac_func ();
18906 ;
18907 return 0;
18908 }
18909 _ACEOF
18910 rm -f conftest.$ac_objext conftest$ac_exeext
18911 if { (ac_try="$ac_link"
18912 case "(($ac_try" in
18913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914 *) ac_try_echo=$ac_try;;
18915 esac
18916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18917 $as_echo "$ac_try_echo") >&5
18918 (eval "$ac_link") 2>conftest.er1
18919 ac_status=$?
18920 grep -v '^ *+' conftest.er1 >conftest.err
18921 rm -f conftest.er1
18922 cat conftest.err >&5
18923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); } && {
18925 test -z "$ac_c_werror_flag" ||
18926 test ! -s conftest.err
18927 } && test -s conftest$ac_exeext && {
18928 test "$cross_compiling" = yes ||
18929 $as_test_x conftest$ac_exeext
18930 }; then
18931 eval "$as_ac_var=yes"
18932 else
18933 $as_echo "$as_me: failed program was:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18935
18936 eval "$as_ac_var=no"
18937 fi
18938
18939 rm -rf conftest.dSYM
18940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18941 conftest$ac_exeext conftest.$ac_ext
18942 fi
18943 ac_res=`eval 'as_val=${'$as_ac_var'}
18944 $as_echo "$as_val"'`
18945 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18946 $as_echo "$ac_res" >&6; }
18947 as_val=`eval 'as_val=${'$as_ac_var'}
18948 $as_echo "$as_val"'`
18949 if test "x$as_val" = x""yes; then
18950 cat >>confdefs.h <<_ACEOF
18951 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18952 _ACEOF
18953
18954 fi
18955 done
18956
18957 LIBS="$OLDLIBS"
18958 fi
18959
18960
18961
18962 if test "$opt_static_link" != yes; then
18963
18964 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18965 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18966 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18967 $as_echo_n "(cached) " >&6
18968 else
18969 ac_check_lib_save_LIBS=$LIBS
18970 LIBS="-ldl $LIBS"
18971 cat >conftest.$ac_ext <<_ACEOF
18972 /* confdefs.h. */
18973 _ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h. */
18977
18978 /* Override any GCC internal prototype to avoid an error.
18979 Use char because int might match the return type of a GCC
18980 builtin and then its argument prototype would still apply. */
18981 #ifdef __cplusplus
18982 extern "C"
18983 #endif
18984 char dlopen ();
18985 int
18986 main ()
18987 {
18988 return dlopen ();
18989 ;
18990 return 0;
18991 }
18992 _ACEOF
18993 rm -f conftest.$ac_objext conftest$ac_exeext
18994 if { (ac_try="$ac_link"
18995 case "(($ac_try" in
18996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18997 *) ac_try_echo=$ac_try;;
18998 esac
18999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19000 $as_echo "$ac_try_echo") >&5
19001 (eval "$ac_link") 2>conftest.er1
19002 ac_status=$?
19003 grep -v '^ *+' conftest.er1 >conftest.err
19004 rm -f conftest.er1
19005 cat conftest.err >&5
19006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); } && {
19008 test -z "$ac_c_werror_flag" ||
19009 test ! -s conftest.err
19010 } && test -s conftest$ac_exeext && {
19011 test "$cross_compiling" = yes ||
19012 $as_test_x conftest$ac_exeext
19013 }; then
19014 ac_cv_lib_dl_dlopen=yes
19015 else
19016 $as_echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19018
19019 ac_cv_lib_dl_dlopen=no
19020 fi
19021
19022 rm -rf conftest.dSYM
19023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19024 conftest$ac_exeext conftest.$ac_ext
19025 LIBS=$ac_check_lib_save_LIBS
19026 fi
19027 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19028 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19029 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
19030 cat >>confdefs.h <<_ACEOF
19031 #define HAVE_LIBDL 1
19032 _ACEOF
19033
19034 LIBS="-ldl $LIBS"
19035
19036 fi
19037
19038
19039
19040
19041 for ac_func in dlopen dlclose dlsym
19042 do
19043 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19044 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19045 $as_echo_n "checking for $ac_func... " >&6; }
19046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19047 $as_echo_n "(cached) " >&6
19048 else
19049 cat >conftest.$ac_ext <<_ACEOF
19050 /* confdefs.h. */
19051 _ACEOF
19052 cat confdefs.h >>conftest.$ac_ext
19053 cat >>conftest.$ac_ext <<_ACEOF
19054 /* end confdefs.h. */
19055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19057 #define $ac_func innocuous_$ac_func
19058
19059 /* System header to define __stub macros and hopefully few prototypes,
19060 which can conflict with char $ac_func (); below.
19061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19062 <limits.h> exists even on freestanding compilers. */
19063
19064 #ifdef __STDC__
19065 # include <limits.h>
19066 #else
19067 # include <assert.h>
19068 #endif
19069
19070 #undef $ac_func
19071
19072 /* Override any GCC internal prototype to avoid an error.
19073 Use char because int might match the return type of a GCC
19074 builtin and then its argument prototype would still apply. */
19075 #ifdef __cplusplus
19076 extern "C"
19077 #endif
19078 char $ac_func ();
19079 /* The GNU C library defines this for functions which it implements
19080 to always fail with ENOSYS. Some functions are actually named
19081 something starting with __ and the normal name is an alias. */
19082 #if defined __stub_$ac_func || defined __stub___$ac_func
19083 choke me
19084 #endif
19085
19086 int
19087 main ()
19088 {
19089 return $ac_func ();
19090 ;
19091 return 0;
19092 }
19093 _ACEOF
19094 rm -f conftest.$ac_objext conftest$ac_exeext
19095 if { (ac_try="$ac_link"
19096 case "(($ac_try" in
19097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098 *) ac_try_echo=$ac_try;;
19099 esac
19100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19101 $as_echo "$ac_try_echo") >&5
19102 (eval "$ac_link") 2>conftest.er1
19103 ac_status=$?
19104 grep -v '^ *+' conftest.er1 >conftest.err
19105 rm -f conftest.er1
19106 cat conftest.err >&5
19107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); } && {
19109 test -z "$ac_c_werror_flag" ||
19110 test ! -s conftest.err
19111 } && test -s conftest$ac_exeext && {
19112 test "$cross_compiling" = yes ||
19113 $as_test_x conftest$ac_exeext
19114 }; then
19115 eval "$as_ac_var=yes"
19116 else
19117 $as_echo "$as_me: failed program was:" >&5
19118 sed 's/^/| /' conftest.$ac_ext >&5
19119
19120 eval "$as_ac_var=no"
19121 fi
19122
19123 rm -rf conftest.dSYM
19124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19125 conftest$ac_exeext conftest.$ac_ext
19126 fi
19127 ac_res=`eval 'as_val=${'$as_ac_var'}
19128 $as_echo "$as_val"'`
19129 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19130 $as_echo "$ac_res" >&6; }
19131 as_val=`eval 'as_val=${'$as_ac_var'}
19132 $as_echo "$as_val"'`
19133 if test "x$as_val" = x""yes; then
19134 cat >>confdefs.h <<_ACEOF
19135 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19136 _ACEOF
19137
19138 fi
19139 done
19140
19141 fi
19142
19143 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
19144 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
19145 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
19146 $as_echo_n "(cached) " >&6
19147 else
19148 cat >conftest.$ac_ext <<_ACEOF
19149 /* confdefs.h. */
19150 _ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19154 #include <signal.h>
19155 /* NetBSD declares sys_siglist in unistd.h. */
19156 #ifdef HAVE_UNISTD_H
19157 # include <unistd.h>
19158 #endif
19159
19160
19161 int
19162 main ()
19163 {
19164 #ifndef sys_siglist
19165 (void) sys_siglist;
19166 #endif
19167
19168 ;
19169 return 0;
19170 }
19171 _ACEOF
19172 rm -f conftest.$ac_objext
19173 if { (ac_try="$ac_compile"
19174 case "(($ac_try" in
19175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19176 *) ac_try_echo=$ac_try;;
19177 esac
19178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19179 $as_echo "$ac_try_echo") >&5
19180 (eval "$ac_compile") 2>conftest.er1
19181 ac_status=$?
19182 grep -v '^ *+' conftest.er1 >conftest.err
19183 rm -f conftest.er1
19184 cat conftest.err >&5
19185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); } && {
19187 test -z "$ac_c_werror_flag" ||
19188 test ! -s conftest.err
19189 } && test -s conftest.$ac_objext; then
19190 ac_cv_have_decl_sys_siglist=yes
19191 else
19192 $as_echo "$as_me: failed program was:" >&5
19193 sed 's/^/| /' conftest.$ac_ext >&5
19194
19195 ac_cv_have_decl_sys_siglist=no
19196 fi
19197
19198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19199 fi
19200 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
19201 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
19202 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
19203
19204 cat >>confdefs.h <<_ACEOF
19205 #define HAVE_DECL_SYS_SIGLIST 1
19206 _ACEOF
19207
19208
19209 else
19210 cat >>confdefs.h <<_ACEOF
19211 #define HAVE_DECL_SYS_SIGLIST 0
19212 _ACEOF
19213
19214
19215 fi
19216
19217
19218
19219
19220 if test "$ac_cv_func_inet_aton" != 'yes'; then
19221
19222 { $as_echo "$as_me:$LINENO: checking for inet_aton" >&5
19223 $as_echo_n "checking for inet_aton... " >&6; }
19224 if test "${bash_cv_func_inet_aton+set}" = set; then
19225 $as_echo_n "(cached) " >&6
19226 else
19227 cat >conftest.$ac_ext <<_ACEOF
19228 /* confdefs.h. */
19229 _ACEOF
19230 cat confdefs.h >>conftest.$ac_ext
19231 cat >>conftest.$ac_ext <<_ACEOF
19232 /* end confdefs.h. */
19233
19234 #include <sys/types.h>
19235 #include <netinet/in.h>
19236 #include <arpa/inet.h>
19237 struct in_addr ap;
19238 int
19239 main ()
19240 {
19241 inet_aton("127.0.0.1", &ap);
19242 ;
19243 return 0;
19244 }
19245 _ACEOF
19246 rm -f conftest.$ac_objext conftest$ac_exeext
19247 if { (ac_try="$ac_link"
19248 case "(($ac_try" in
19249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19250 *) ac_try_echo=$ac_try;;
19251 esac
19252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19253 $as_echo "$ac_try_echo") >&5
19254 (eval "$ac_link") 2>conftest.er1
19255 ac_status=$?
19256 grep -v '^ *+' conftest.er1 >conftest.err
19257 rm -f conftest.er1
19258 cat conftest.err >&5
19259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); } && {
19261 test -z "$ac_c_werror_flag" ||
19262 test ! -s conftest.err
19263 } && test -s conftest$ac_exeext && {
19264 test "$cross_compiling" = yes ||
19265 $as_test_x conftest$ac_exeext
19266 }; then
19267 bash_cv_func_inet_aton=yes
19268 else
19269 $as_echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19271
19272 bash_cv_func_inet_aton=no
19273 fi
19274
19275 rm -rf conftest.dSYM
19276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19277 conftest$ac_exeext conftest.$ac_ext
19278 fi
19279 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
19280 $as_echo "$bash_cv_func_inet_aton" >&6; }
19281 if test $bash_cv_func_inet_aton = yes; then
19282 cat >>confdefs.h <<\_ACEOF
19283 #define HAVE_INET_ATON 1
19284 _ACEOF
19285
19286 else
19287 case " $LIBOBJS " in
19288 *" inet_aton.$ac_objext "* ) ;;
19289 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
19290 ;;
19291 esac
19292
19293 fi
19294
19295 fi
19296
19297 case "$host_os" in
19298 irix4*)
19299 { $as_echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
19300 $as_echo_n "checking for getpwent in -lsun... " >&6; }
19301 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
19302 $as_echo_n "(cached) " >&6
19303 else
19304 ac_check_lib_save_LIBS=$LIBS
19305 LIBS="-lsun $LIBS"
19306 cat >conftest.$ac_ext <<_ACEOF
19307 /* confdefs.h. */
19308 _ACEOF
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h. */
19312
19313 /* Override any GCC internal prototype to avoid an error.
19314 Use char because int might match the return type of a GCC
19315 builtin and then its argument prototype would still apply. */
19316 #ifdef __cplusplus
19317 extern "C"
19318 #endif
19319 char getpwent ();
19320 int
19321 main ()
19322 {
19323 return getpwent ();
19324 ;
19325 return 0;
19326 }
19327 _ACEOF
19328 rm -f conftest.$ac_objext conftest$ac_exeext
19329 if { (ac_try="$ac_link"
19330 case "(($ac_try" in
19331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19332 *) ac_try_echo=$ac_try;;
19333 esac
19334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19335 $as_echo "$ac_try_echo") >&5
19336 (eval "$ac_link") 2>conftest.er1
19337 ac_status=$?
19338 grep -v '^ *+' conftest.er1 >conftest.err
19339 rm -f conftest.er1
19340 cat conftest.err >&5
19341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); } && {
19343 test -z "$ac_c_werror_flag" ||
19344 test ! -s conftest.err
19345 } && test -s conftest$ac_exeext && {
19346 test "$cross_compiling" = yes ||
19347 $as_test_x conftest$ac_exeext
19348 }; then
19349 ac_cv_lib_sun_getpwent=yes
19350 else
19351 $as_echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.$ac_ext >&5
19353
19354 ac_cv_lib_sun_getpwent=no
19355 fi
19356
19357 rm -rf conftest.dSYM
19358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19359 conftest$ac_exeext conftest.$ac_ext
19360 LIBS=$ac_check_lib_save_LIBS
19361 fi
19362 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
19363 $as_echo "$ac_cv_lib_sun_getpwent" >&6; }
19364 if test "x$ac_cv_lib_sun_getpwent" = x""yes; then
19365 cat >>confdefs.h <<_ACEOF
19366 #define HAVE_LIBSUN 1
19367 _ACEOF
19368
19369 LIBS="-lsun $LIBS"
19370
19371 fi
19372 ;;
19373 esac
19374
19375 if test "$ac_cv_func_getpeername" = no; then
19376
19377 if test "X$bash_cv_have_socklib" = "X"; then
19378 _bash_needmsg=
19379 else
19380 { $as_echo "$as_me:$LINENO: checking for socket library" >&5
19381 $as_echo_n "checking for socket library... " >&6; }
19382 _bash_needmsg=yes
19383 fi
19384 if test "${bash_cv_have_socklib+set}" = set; then
19385 $as_echo_n "(cached) " >&6
19386 else
19387 { $as_echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
19388 $as_echo_n "checking for getpeername in -lsocket... " >&6; }
19389 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
19390 $as_echo_n "(cached) " >&6
19391 else
19392 ac_check_lib_save_LIBS=$LIBS
19393 LIBS="-lsocket -lnsl $LIBS"
19394 cat >conftest.$ac_ext <<_ACEOF
19395 /* confdefs.h. */
19396 _ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h. */
19400
19401 /* Override any GCC internal prototype to avoid an error.
19402 Use char because int might match the return type of a GCC
19403 builtin and then its argument prototype would still apply. */
19404 #ifdef __cplusplus
19405 extern "C"
19406 #endif
19407 char getpeername ();
19408 int
19409 main ()
19410 {
19411 return getpeername ();
19412 ;
19413 return 0;
19414 }
19415 _ACEOF
19416 rm -f conftest.$ac_objext conftest$ac_exeext
19417 if { (ac_try="$ac_link"
19418 case "(($ac_try" in
19419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19420 *) ac_try_echo=$ac_try;;
19421 esac
19422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19423 $as_echo "$ac_try_echo") >&5
19424 (eval "$ac_link") 2>conftest.er1
19425 ac_status=$?
19426 grep -v '^ *+' conftest.er1 >conftest.err
19427 rm -f conftest.er1
19428 cat conftest.err >&5
19429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } && {
19431 test -z "$ac_c_werror_flag" ||
19432 test ! -s conftest.err
19433 } && test -s conftest$ac_exeext && {
19434 test "$cross_compiling" = yes ||
19435 $as_test_x conftest$ac_exeext
19436 }; then
19437 ac_cv_lib_socket_getpeername=yes
19438 else
19439 $as_echo "$as_me: failed program was:" >&5
19440 sed 's/^/| /' conftest.$ac_ext >&5
19441
19442 ac_cv_lib_socket_getpeername=no
19443 fi
19444
19445 rm -rf conftest.dSYM
19446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19447 conftest$ac_exeext conftest.$ac_ext
19448 LIBS=$ac_check_lib_save_LIBS
19449 fi
19450 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
19451 $as_echo "$ac_cv_lib_socket_getpeername" >&6; }
19452 if test "x$ac_cv_lib_socket_getpeername" = x""yes; then
19453 bash_cv_have_socklib=yes
19454 else
19455 bash_cv_have_socklib=no
19456 fi
19457
19458 fi
19459
19460 if test "X$_bash_needmsg" = Xyes; then
19461 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
19462 $as_echo "$bash_cv_have_socklib" >&6; }
19463 _bash_needmsg=
19464 fi
19465 if test $bash_cv_have_socklib = yes; then
19466 # check for libnsl, add it to LIBS if present
19467 if test "X$bash_cv_have_libnsl" = "X"; then
19468 _bash_needmsg=
19469 else
19470 { $as_echo "$as_me:$LINENO: checking for libnsl" >&5
19471 $as_echo_n "checking for libnsl... " >&6; }
19472 _bash_needmsg=yes
19473 fi
19474 if test "${bash_cv_have_libnsl+set}" = set; then
19475 $as_echo_n "(cached) " >&6
19476 else
19477 { $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
19478 $as_echo_n "checking for t_open in -lnsl... " >&6; }
19479 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
19480 $as_echo_n "(cached) " >&6
19481 else
19482 ac_check_lib_save_LIBS=$LIBS
19483 LIBS="-lnsl $LIBS"
19484 cat >conftest.$ac_ext <<_ACEOF
19485 /* confdefs.h. */
19486 _ACEOF
19487 cat confdefs.h >>conftest.$ac_ext
19488 cat >>conftest.$ac_ext <<_ACEOF
19489 /* end confdefs.h. */
19490
19491 /* Override any GCC internal prototype to avoid an error.
19492 Use char because int might match the return type of a GCC
19493 builtin and then its argument prototype would still apply. */
19494 #ifdef __cplusplus
19495 extern "C"
19496 #endif
19497 char t_open ();
19498 int
19499 main ()
19500 {
19501 return t_open ();
19502 ;
19503 return 0;
19504 }
19505 _ACEOF
19506 rm -f conftest.$ac_objext conftest$ac_exeext
19507 if { (ac_try="$ac_link"
19508 case "(($ac_try" in
19509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510 *) ac_try_echo=$ac_try;;
19511 esac
19512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19513 $as_echo "$ac_try_echo") >&5
19514 (eval "$ac_link") 2>conftest.er1
19515 ac_status=$?
19516 grep -v '^ *+' conftest.er1 >conftest.err
19517 rm -f conftest.er1
19518 cat conftest.err >&5
19519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } && {
19521 test -z "$ac_c_werror_flag" ||
19522 test ! -s conftest.err
19523 } && test -s conftest$ac_exeext && {
19524 test "$cross_compiling" = yes ||
19525 $as_test_x conftest$ac_exeext
19526 }; then
19527 ac_cv_lib_nsl_t_open=yes
19528 else
19529 $as_echo "$as_me: failed program was:" >&5
19530 sed 's/^/| /' conftest.$ac_ext >&5
19531
19532 ac_cv_lib_nsl_t_open=no
19533 fi
19534
19535 rm -rf conftest.dSYM
19536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19537 conftest$ac_exeext conftest.$ac_ext
19538 LIBS=$ac_check_lib_save_LIBS
19539 fi
19540 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
19541 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
19542 if test "x$ac_cv_lib_nsl_t_open" = x""yes; then
19543 bash_cv_have_libnsl=yes
19544 else
19545 bash_cv_have_libnsl=no
19546 fi
19547
19548 fi
19549
19550 if test "X$_bash_needmsg" = Xyes; then
19551 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
19552 $as_echo "$bash_cv_have_libnsl" >&6; }
19553 _bash_needmsg=
19554 fi
19555 if test $bash_cv_have_libnsl = yes; then
19556 LIBS="-lsocket -lnsl $LIBS"
19557 else
19558 LIBS="-lsocket $LIBS"
19559 fi
19560 cat >>confdefs.h <<\_ACEOF
19561 #define HAVE_LIBSOCKET 1
19562 _ACEOF
19563
19564 cat >>confdefs.h <<\_ACEOF
19565 #define HAVE_GETPEERNAME 1
19566 _ACEOF
19567
19568 fi
19569
19570 fi
19571 if test "$ac_cv_func_gethostbyname" = no; then
19572 if test "X$bash_cv_have_gethostbyname" = "X"; then
19573 _bash_needmsg=yes
19574 else
19575 { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
19576 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
19577 _bash_needmsg=
19578 fi
19579 if test "${bash_cv_have_gethostbyname+set}" = set; then
19580 $as_echo_n "(cached) " >&6
19581 else
19582 cat >conftest.$ac_ext <<_ACEOF
19583 /* confdefs.h. */
19584 _ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h. */
19588 #include <netdb.h>
19589 int
19590 main ()
19591 {
19592 struct hostent *hp;
19593 hp = gethostbyname("localhost");
19594
19595 ;
19596 return 0;
19597 }
19598 _ACEOF
19599 rm -f conftest.$ac_objext conftest$ac_exeext
19600 if { (ac_try="$ac_link"
19601 case "(($ac_try" in
19602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19603 *) ac_try_echo=$ac_try;;
19604 esac
19605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19606 $as_echo "$ac_try_echo") >&5
19607 (eval "$ac_link") 2>conftest.er1
19608 ac_status=$?
19609 grep -v '^ *+' conftest.er1 >conftest.err
19610 rm -f conftest.er1
19611 cat conftest.err >&5
19612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); } && {
19614 test -z "$ac_c_werror_flag" ||
19615 test ! -s conftest.err
19616 } && test -s conftest$ac_exeext && {
19617 test "$cross_compiling" = yes ||
19618 $as_test_x conftest$ac_exeext
19619 }; then
19620 bash_cv_have_gethostbyname=yes
19621 else
19622 $as_echo "$as_me: failed program was:" >&5
19623 sed 's/^/| /' conftest.$ac_ext >&5
19624
19625 bash_cv_have_gethostbyname=no
19626 fi
19627
19628 rm -rf conftest.dSYM
19629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19630 conftest$ac_exeext conftest.$ac_ext
19631
19632 fi
19633
19634 if test "X$_bash_needmsg" = Xyes; then
19635 { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
19636 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
19637 fi
19638 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
19639 $as_echo "$bash_cv_have_gethostbyname" >&6; }
19640 if test "$bash_cv_have_gethostbyname" = yes; then
19641 cat >>confdefs.h <<\_ACEOF
19642 #define HAVE_GETHOSTBYNAME 1
19643 _ACEOF
19644
19645 fi
19646
19647 fi
19648
19649 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19650 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19651 if test "${ac_cv_type_uid_t+set}" = set; then
19652 $as_echo_n "(cached) " >&6
19653 else
19654 cat >conftest.$ac_ext <<_ACEOF
19655 /* confdefs.h. */
19656 _ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h. */
19660 #include <sys/types.h>
19661
19662 _ACEOF
19663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19664 $EGREP "uid_t" >/dev/null 2>&1; then
19665 ac_cv_type_uid_t=yes
19666 else
19667 ac_cv_type_uid_t=no
19668 fi
19669 rm -f conftest*
19670
19671 fi
19672 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19673 $as_echo "$ac_cv_type_uid_t" >&6; }
19674 if test $ac_cv_type_uid_t = no; then
19675
19676 cat >>confdefs.h <<\_ACEOF
19677 #define uid_t int
19678 _ACEOF
19679
19680
19681 cat >>confdefs.h <<\_ACEOF
19682 #define gid_t int
19683 _ACEOF
19684
19685 fi
19686
19687 { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
19688 $as_echo_n "checking type of array argument to getgroups... " >&6; }
19689 if test "${ac_cv_type_getgroups+set}" = set; then
19690 $as_echo_n "(cached) " >&6
19691 else
19692 if test "$cross_compiling" = yes; then
19693 ac_cv_type_getgroups=cross
19694 else
19695 cat >conftest.$ac_ext <<_ACEOF
19696 /* confdefs.h. */
19697 _ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h. */
19701 /* Thanks to Mike Rendell for this test. */
19702 $ac_includes_default
19703 #define NGID 256
19704 #undef MAX
19705 #define MAX(x, y) ((x) > (y) ? (x) : (y))
19706
19707 int
19708 main ()
19709 {
19710 gid_t gidset[NGID];
19711 int i, n;
19712 union { gid_t gval; long int lval; } val;
19713
19714 val.lval = -1;
19715 for (i = 0; i < NGID; i++)
19716 gidset[i] = val.gval;
19717 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
19718 gidset);
19719 /* Exit non-zero if getgroups seems to require an array of ints. This
19720 happens when gid_t is short int but getgroups modifies an array
19721 of ints. */
19722 return n > 0 && gidset[n] != val.gval;
19723 }
19724 _ACEOF
19725 rm -f conftest$ac_exeext
19726 if { (ac_try="$ac_link"
19727 case "(($ac_try" in
19728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729 *) ac_try_echo=$ac_try;;
19730 esac
19731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19732 $as_echo "$ac_try_echo") >&5
19733 (eval "$ac_link") 2>&5
19734 ac_status=$?
19735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19737 { (case "(($ac_try" in
19738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19739 *) ac_try_echo=$ac_try;;
19740 esac
19741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19742 $as_echo "$ac_try_echo") >&5
19743 (eval "$ac_try") 2>&5
19744 ac_status=$?
19745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; }; then
19747 ac_cv_type_getgroups=gid_t
19748 else
19749 $as_echo "$as_me: program exited with status $ac_status" >&5
19750 $as_echo "$as_me: failed program was:" >&5
19751 sed 's/^/| /' conftest.$ac_ext >&5
19752
19753 ( exit $ac_status )
19754 ac_cv_type_getgroups=int
19755 fi
19756 rm -rf conftest.dSYM
19757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19758 fi
19759
19760
19761 if test $ac_cv_type_getgroups = cross; then
19762 cat >conftest.$ac_ext <<_ACEOF
19763 /* confdefs.h. */
19764 _ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h. */
19768 #include <unistd.h>
19769
19770 _ACEOF
19771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19772 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
19773 ac_cv_type_getgroups=gid_t
19774 else
19775 ac_cv_type_getgroups=int
19776 fi
19777 rm -f conftest*
19778
19779 fi
19780 fi
19781 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
19782 $as_echo "$ac_cv_type_getgroups" >&6; }
19783
19784 cat >>confdefs.h <<_ACEOF
19785 #define GETGROUPS_T $ac_cv_type_getgroups
19786 _ACEOF
19787
19788
19789 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
19790 $as_echo_n "checking for off_t... " >&6; }
19791 if test "${ac_cv_type_off_t+set}" = set; then
19792 $as_echo_n "(cached) " >&6
19793 else
19794 ac_cv_type_off_t=no
19795 cat >conftest.$ac_ext <<_ACEOF
19796 /* confdefs.h. */
19797 _ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h. */
19801 $ac_includes_default
19802 int
19803 main ()
19804 {
19805 if (sizeof (off_t))
19806 return 0;
19807 ;
19808 return 0;
19809 }
19810 _ACEOF
19811 rm -f conftest.$ac_objext
19812 if { (ac_try="$ac_compile"
19813 case "(($ac_try" in
19814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815 *) ac_try_echo=$ac_try;;
19816 esac
19817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19818 $as_echo "$ac_try_echo") >&5
19819 (eval "$ac_compile") 2>conftest.er1
19820 ac_status=$?
19821 grep -v '^ *+' conftest.er1 >conftest.err
19822 rm -f conftest.er1
19823 cat conftest.err >&5
19824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); } && {
19826 test -z "$ac_c_werror_flag" ||
19827 test ! -s conftest.err
19828 } && test -s conftest.$ac_objext; then
19829 cat >conftest.$ac_ext <<_ACEOF
19830 /* confdefs.h. */
19831 _ACEOF
19832 cat confdefs.h >>conftest.$ac_ext
19833 cat >>conftest.$ac_ext <<_ACEOF
19834 /* end confdefs.h. */
19835 $ac_includes_default
19836 int
19837 main ()
19838 {
19839 if (sizeof ((off_t)))
19840 return 0;
19841 ;
19842 return 0;
19843 }
19844 _ACEOF
19845 rm -f conftest.$ac_objext
19846 if { (ac_try="$ac_compile"
19847 case "(($ac_try" in
19848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849 *) ac_try_echo=$ac_try;;
19850 esac
19851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19852 $as_echo "$ac_try_echo") >&5
19853 (eval "$ac_compile") 2>conftest.er1
19854 ac_status=$?
19855 grep -v '^ *+' conftest.er1 >conftest.err
19856 rm -f conftest.er1
19857 cat conftest.err >&5
19858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } && {
19860 test -z "$ac_c_werror_flag" ||
19861 test ! -s conftest.err
19862 } && test -s conftest.$ac_objext; then
19863 :
19864 else
19865 $as_echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19867
19868 ac_cv_type_off_t=yes
19869 fi
19870
19871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19872 else
19873 $as_echo "$as_me: failed program was:" >&5
19874 sed 's/^/| /' conftest.$ac_ext >&5
19875
19876
19877 fi
19878
19879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19880 fi
19881 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19882 $as_echo "$ac_cv_type_off_t" >&6; }
19883 if test "x$ac_cv_type_off_t" = x""yes; then
19884 :
19885 else
19886
19887 cat >>confdefs.h <<_ACEOF
19888 #define off_t long int
19889 _ACEOF
19890
19891 fi
19892
19893 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
19894 $as_echo_n "checking for mode_t... " >&6; }
19895 if test "${ac_cv_type_mode_t+set}" = set; then
19896 $as_echo_n "(cached) " >&6
19897 else
19898 ac_cv_type_mode_t=no
19899 cat >conftest.$ac_ext <<_ACEOF
19900 /* confdefs.h. */
19901 _ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h. */
19905 $ac_includes_default
19906 int
19907 main ()
19908 {
19909 if (sizeof (mode_t))
19910 return 0;
19911 ;
19912 return 0;
19913 }
19914 _ACEOF
19915 rm -f conftest.$ac_objext
19916 if { (ac_try="$ac_compile"
19917 case "(($ac_try" in
19918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19919 *) ac_try_echo=$ac_try;;
19920 esac
19921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19922 $as_echo "$ac_try_echo") >&5
19923 (eval "$ac_compile") 2>conftest.er1
19924 ac_status=$?
19925 grep -v '^ *+' conftest.er1 >conftest.err
19926 rm -f conftest.er1
19927 cat conftest.err >&5
19928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); } && {
19930 test -z "$ac_c_werror_flag" ||
19931 test ! -s conftest.err
19932 } && test -s conftest.$ac_objext; then
19933 cat >conftest.$ac_ext <<_ACEOF
19934 /* confdefs.h. */
19935 _ACEOF
19936 cat confdefs.h >>conftest.$ac_ext
19937 cat >>conftest.$ac_ext <<_ACEOF
19938 /* end confdefs.h. */
19939 $ac_includes_default
19940 int
19941 main ()
19942 {
19943 if (sizeof ((mode_t)))
19944 return 0;
19945 ;
19946 return 0;
19947 }
19948 _ACEOF
19949 rm -f conftest.$ac_objext
19950 if { (ac_try="$ac_compile"
19951 case "(($ac_try" in
19952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19954 esac
19955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19956 $as_echo "$ac_try_echo") >&5
19957 (eval "$ac_compile") 2>conftest.er1
19958 ac_status=$?
19959 grep -v '^ *+' conftest.er1 >conftest.err
19960 rm -f conftest.er1
19961 cat conftest.err >&5
19962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); } && {
19964 test -z "$ac_c_werror_flag" ||
19965 test ! -s conftest.err
19966 } && test -s conftest.$ac_objext; then
19967 :
19968 else
19969 $as_echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.$ac_ext >&5
19971
19972 ac_cv_type_mode_t=yes
19973 fi
19974
19975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19976 else
19977 $as_echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19979
19980
19981 fi
19982
19983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19984 fi
19985 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19986 $as_echo "$ac_cv_type_mode_t" >&6; }
19987 if test "x$ac_cv_type_mode_t" = x""yes; then
19988 :
19989 else
19990
19991 cat >>confdefs.h <<_ACEOF
19992 #define mode_t int
19993 _ACEOF
19994
19995 fi
19996
19997 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19998 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19999 if test "${ac_cv_type_uid_t+set}" = set; then
20000 $as_echo_n "(cached) " >&6
20001 else
20002 cat >conftest.$ac_ext <<_ACEOF
20003 /* confdefs.h. */
20004 _ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h. */
20008 #include <sys/types.h>
20009
20010 _ACEOF
20011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20012 $EGREP "uid_t" >/dev/null 2>&1; then
20013 ac_cv_type_uid_t=yes
20014 else
20015 ac_cv_type_uid_t=no
20016 fi
20017 rm -f conftest*
20018
20019 fi
20020 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20021 $as_echo "$ac_cv_type_uid_t" >&6; }
20022 if test $ac_cv_type_uid_t = no; then
20023
20024 cat >>confdefs.h <<\_ACEOF
20025 #define uid_t int
20026 _ACEOF
20027
20028
20029 cat >>confdefs.h <<\_ACEOF
20030 #define gid_t int
20031 _ACEOF
20032
20033 fi
20034
20035 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
20036 $as_echo_n "checking for pid_t... " >&6; }
20037 if test "${ac_cv_type_pid_t+set}" = set; then
20038 $as_echo_n "(cached) " >&6
20039 else
20040 ac_cv_type_pid_t=no
20041 cat >conftest.$ac_ext <<_ACEOF
20042 /* confdefs.h. */
20043 _ACEOF
20044 cat confdefs.h >>conftest.$ac_ext
20045 cat >>conftest.$ac_ext <<_ACEOF
20046 /* end confdefs.h. */
20047 $ac_includes_default
20048 int
20049 main ()
20050 {
20051 if (sizeof (pid_t))
20052 return 0;
20053 ;
20054 return 0;
20055 }
20056 _ACEOF
20057 rm -f conftest.$ac_objext
20058 if { (ac_try="$ac_compile"
20059 case "(($ac_try" in
20060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061 *) ac_try_echo=$ac_try;;
20062 esac
20063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20064 $as_echo "$ac_try_echo") >&5
20065 (eval "$ac_compile") 2>conftest.er1
20066 ac_status=$?
20067 grep -v '^ *+' conftest.er1 >conftest.err
20068 rm -f conftest.er1
20069 cat conftest.err >&5
20070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } && {
20072 test -z "$ac_c_werror_flag" ||
20073 test ! -s conftest.err
20074 } && test -s conftest.$ac_objext; then
20075 cat >conftest.$ac_ext <<_ACEOF
20076 /* confdefs.h. */
20077 _ACEOF
20078 cat confdefs.h >>conftest.$ac_ext
20079 cat >>conftest.$ac_ext <<_ACEOF
20080 /* end confdefs.h. */
20081 $ac_includes_default
20082 int
20083 main ()
20084 {
20085 if (sizeof ((pid_t)))
20086 return 0;
20087 ;
20088 return 0;
20089 }
20090 _ACEOF
20091 rm -f conftest.$ac_objext
20092 if { (ac_try="$ac_compile"
20093 case "(($ac_try" in
20094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20095 *) ac_try_echo=$ac_try;;
20096 esac
20097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20098 $as_echo "$ac_try_echo") >&5
20099 (eval "$ac_compile") 2>conftest.er1
20100 ac_status=$?
20101 grep -v '^ *+' conftest.er1 >conftest.err
20102 rm -f conftest.er1
20103 cat conftest.err >&5
20104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); } && {
20106 test -z "$ac_c_werror_flag" ||
20107 test ! -s conftest.err
20108 } && test -s conftest.$ac_objext; then
20109 :
20110 else
20111 $as_echo "$as_me: failed program was:" >&5
20112 sed 's/^/| /' conftest.$ac_ext >&5
20113
20114 ac_cv_type_pid_t=yes
20115 fi
20116
20117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20118 else
20119 $as_echo "$as_me: failed program was:" >&5
20120 sed 's/^/| /' conftest.$ac_ext >&5
20121
20122
20123 fi
20124
20125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20126 fi
20127 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20128 $as_echo "$ac_cv_type_pid_t" >&6; }
20129 if test "x$ac_cv_type_pid_t" = x""yes; then
20130 :
20131 else
20132
20133 cat >>confdefs.h <<_ACEOF
20134 #define pid_t int
20135 _ACEOF
20136
20137 fi
20138
20139 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
20140 $as_echo_n "checking for size_t... " >&6; }
20141 if test "${ac_cv_type_size_t+set}" = set; then
20142 $as_echo_n "(cached) " >&6
20143 else
20144 ac_cv_type_size_t=no
20145 cat >conftest.$ac_ext <<_ACEOF
20146 /* confdefs.h. */
20147 _ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h. */
20151 $ac_includes_default
20152 int
20153 main ()
20154 {
20155 if (sizeof (size_t))
20156 return 0;
20157 ;
20158 return 0;
20159 }
20160 _ACEOF
20161 rm -f conftest.$ac_objext
20162 if { (ac_try="$ac_compile"
20163 case "(($ac_try" in
20164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165 *) ac_try_echo=$ac_try;;
20166 esac
20167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20168 $as_echo "$ac_try_echo") >&5
20169 (eval "$ac_compile") 2>conftest.er1
20170 ac_status=$?
20171 grep -v '^ *+' conftest.er1 >conftest.err
20172 rm -f conftest.er1
20173 cat conftest.err >&5
20174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } && {
20176 test -z "$ac_c_werror_flag" ||
20177 test ! -s conftest.err
20178 } && test -s conftest.$ac_objext; then
20179 cat >conftest.$ac_ext <<_ACEOF
20180 /* confdefs.h. */
20181 _ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h. */
20185 $ac_includes_default
20186 int
20187 main ()
20188 {
20189 if (sizeof ((size_t)))
20190 return 0;
20191 ;
20192 return 0;
20193 }
20194 _ACEOF
20195 rm -f conftest.$ac_objext
20196 if { (ac_try="$ac_compile"
20197 case "(($ac_try" in
20198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20199 *) ac_try_echo=$ac_try;;
20200 esac
20201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20202 $as_echo "$ac_try_echo") >&5
20203 (eval "$ac_compile") 2>conftest.er1
20204 ac_status=$?
20205 grep -v '^ *+' conftest.er1 >conftest.err
20206 rm -f conftest.er1
20207 cat conftest.err >&5
20208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); } && {
20210 test -z "$ac_c_werror_flag" ||
20211 test ! -s conftest.err
20212 } && test -s conftest.$ac_objext; then
20213 :
20214 else
20215 $as_echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20217
20218 ac_cv_type_size_t=yes
20219 fi
20220
20221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20222 else
20223 $as_echo "$as_me: failed program was:" >&5
20224 sed 's/^/| /' conftest.$ac_ext >&5
20225
20226
20227 fi
20228
20229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20230 fi
20231 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20232 $as_echo "$ac_cv_type_size_t" >&6; }
20233 if test "x$ac_cv_type_size_t" = x""yes; then
20234 :
20235 else
20236
20237 cat >>confdefs.h <<_ACEOF
20238 #define size_t unsigned int
20239 _ACEOF
20240
20241 fi
20242
20243 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
20244 $as_echo_n "checking for ssize_t... " >&6; }
20245 if test "${ac_cv_type_ssize_t+set}" = set; then
20246 $as_echo_n "(cached) " >&6
20247 else
20248 ac_cv_type_ssize_t=no
20249 cat >conftest.$ac_ext <<_ACEOF
20250 /* confdefs.h. */
20251 _ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20255 $ac_includes_default
20256 int
20257 main ()
20258 {
20259 if (sizeof (ssize_t))
20260 return 0;
20261 ;
20262 return 0;
20263 }
20264 _ACEOF
20265 rm -f conftest.$ac_objext
20266 if { (ac_try="$ac_compile"
20267 case "(($ac_try" in
20268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20269 *) ac_try_echo=$ac_try;;
20270 esac
20271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20272 $as_echo "$ac_try_echo") >&5
20273 (eval "$ac_compile") 2>conftest.er1
20274 ac_status=$?
20275 grep -v '^ *+' conftest.er1 >conftest.err
20276 rm -f conftest.er1
20277 cat conftest.err >&5
20278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } && {
20280 test -z "$ac_c_werror_flag" ||
20281 test ! -s conftest.err
20282 } && test -s conftest.$ac_objext; then
20283 cat >conftest.$ac_ext <<_ACEOF
20284 /* confdefs.h. */
20285 _ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20289 $ac_includes_default
20290 int
20291 main ()
20292 {
20293 if (sizeof ((ssize_t)))
20294 return 0;
20295 ;
20296 return 0;
20297 }
20298 _ACEOF
20299 rm -f conftest.$ac_objext
20300 if { (ac_try="$ac_compile"
20301 case "(($ac_try" in
20302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303 *) ac_try_echo=$ac_try;;
20304 esac
20305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20306 $as_echo "$ac_try_echo") >&5
20307 (eval "$ac_compile") 2>conftest.er1
20308 ac_status=$?
20309 grep -v '^ *+' conftest.er1 >conftest.err
20310 rm -f conftest.er1
20311 cat conftest.err >&5
20312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); } && {
20314 test -z "$ac_c_werror_flag" ||
20315 test ! -s conftest.err
20316 } && test -s conftest.$ac_objext; then
20317 :
20318 else
20319 $as_echo "$as_me: failed program was:" >&5
20320 sed 's/^/| /' conftest.$ac_ext >&5
20321
20322 ac_cv_type_ssize_t=yes
20323 fi
20324
20325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20326 else
20327 $as_echo "$as_me: failed program was:" >&5
20328 sed 's/^/| /' conftest.$ac_ext >&5
20329
20330
20331 fi
20332
20333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20334 fi
20335 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
20336 $as_echo "$ac_cv_type_ssize_t" >&6; }
20337 if test "x$ac_cv_type_ssize_t" = x""yes; then
20338 :
20339 else
20340
20341 cat >>confdefs.h <<_ACEOF
20342 #define ssize_t int
20343 _ACEOF
20344
20345 fi
20346
20347 { $as_echo "$as_me:$LINENO: checking for time_t" >&5
20348 $as_echo_n "checking for time_t... " >&6; }
20349 if test "${ac_cv_type_time_t+set}" = set; then
20350 $as_echo_n "(cached) " >&6
20351 else
20352 ac_cv_type_time_t=no
20353 cat >conftest.$ac_ext <<_ACEOF
20354 /* confdefs.h. */
20355 _ACEOF
20356 cat confdefs.h >>conftest.$ac_ext
20357 cat >>conftest.$ac_ext <<_ACEOF
20358 /* end confdefs.h. */
20359 $ac_includes_default
20360 int
20361 main ()
20362 {
20363 if (sizeof (time_t))
20364 return 0;
20365 ;
20366 return 0;
20367 }
20368 _ACEOF
20369 rm -f conftest.$ac_objext
20370 if { (ac_try="$ac_compile"
20371 case "(($ac_try" in
20372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373 *) ac_try_echo=$ac_try;;
20374 esac
20375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20376 $as_echo "$ac_try_echo") >&5
20377 (eval "$ac_compile") 2>conftest.er1
20378 ac_status=$?
20379 grep -v '^ *+' conftest.er1 >conftest.err
20380 rm -f conftest.er1
20381 cat conftest.err >&5
20382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); } && {
20384 test -z "$ac_c_werror_flag" ||
20385 test ! -s conftest.err
20386 } && test -s conftest.$ac_objext; then
20387 cat >conftest.$ac_ext <<_ACEOF
20388 /* confdefs.h. */
20389 _ACEOF
20390 cat confdefs.h >>conftest.$ac_ext
20391 cat >>conftest.$ac_ext <<_ACEOF
20392 /* end confdefs.h. */
20393 $ac_includes_default
20394 int
20395 main ()
20396 {
20397 if (sizeof ((time_t)))
20398 return 0;
20399 ;
20400 return 0;
20401 }
20402 _ACEOF
20403 rm -f conftest.$ac_objext
20404 if { (ac_try="$ac_compile"
20405 case "(($ac_try" in
20406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407 *) ac_try_echo=$ac_try;;
20408 esac
20409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20410 $as_echo "$ac_try_echo") >&5
20411 (eval "$ac_compile") 2>conftest.er1
20412 ac_status=$?
20413 grep -v '^ *+' conftest.er1 >conftest.err
20414 rm -f conftest.er1
20415 cat conftest.err >&5
20416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } && {
20418 test -z "$ac_c_werror_flag" ||
20419 test ! -s conftest.err
20420 } && test -s conftest.$ac_objext; then
20421 :
20422 else
20423 $as_echo "$as_me: failed program was:" >&5
20424 sed 's/^/| /' conftest.$ac_ext >&5
20425
20426 ac_cv_type_time_t=yes
20427 fi
20428
20429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20430 else
20431 $as_echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20433
20434
20435 fi
20436
20437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20438 fi
20439 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
20440 $as_echo "$ac_cv_type_time_t" >&6; }
20441 if test "x$ac_cv_type_time_t" = x""yes; then
20442 :
20443 else
20444
20445 cat >>confdefs.h <<_ACEOF
20446 #define time_t long
20447 _ACEOF
20448
20449 fi
20450
20451
20452
20453 { $as_echo "$as_me:$LINENO: checking for long long" >&5
20454 $as_echo_n "checking for long long... " >&6; }
20455 if test "${bash_cv_type_long_long+set}" = set; then
20456 $as_echo_n "(cached) " >&6
20457 else
20458 cat >conftest.$ac_ext <<_ACEOF
20459 /* confdefs.h. */
20460 _ACEOF
20461 cat confdefs.h >>conftest.$ac_ext
20462 cat >>conftest.$ac_ext <<_ACEOF
20463 /* end confdefs.h. */
20464
20465 long long ll = 1; int i = 63;
20466 int
20467 main ()
20468 {
20469
20470 long long llm = (long long) -1;
20471 return ll << i | ll >> i | llm / ll | llm % ll;
20472
20473 ;
20474 return 0;
20475 }
20476 _ACEOF
20477 rm -f conftest.$ac_objext conftest$ac_exeext
20478 if { (ac_try="$ac_link"
20479 case "(($ac_try" in
20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481 *) ac_try_echo=$ac_try;;
20482 esac
20483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20484 $as_echo "$ac_try_echo") >&5
20485 (eval "$ac_link") 2>conftest.er1
20486 ac_status=$?
20487 grep -v '^ *+' conftest.er1 >conftest.err
20488 rm -f conftest.er1
20489 cat conftest.err >&5
20490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); } && {
20492 test -z "$ac_c_werror_flag" ||
20493 test ! -s conftest.err
20494 } && test -s conftest$ac_exeext && {
20495 test "$cross_compiling" = yes ||
20496 $as_test_x conftest$ac_exeext
20497 }; then
20498 bash_cv_type_long_long='long long'
20499 else
20500 $as_echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.$ac_ext >&5
20502
20503 bash_cv_type_long_long='long'
20504 fi
20505
20506 rm -rf conftest.dSYM
20507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20508 conftest$ac_exeext conftest.$ac_ext
20509 fi
20510 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
20511 $as_echo "$bash_cv_type_long_long" >&6; }
20512 if test "$bash_cv_type_long_long" = 'long long'; then
20513 cat >>confdefs.h <<\_ACEOF
20514 #define HAVE_LONG_LONG 1
20515 _ACEOF
20516
20517 fi
20518
20519
20520 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
20521 $as_echo_n "checking for unsigned long long... " >&6; }
20522 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
20523 $as_echo_n "(cached) " >&6
20524 else
20525 cat >conftest.$ac_ext <<_ACEOF
20526 /* confdefs.h. */
20527 _ACEOF
20528 cat confdefs.h >>conftest.$ac_ext
20529 cat >>conftest.$ac_ext <<_ACEOF
20530 /* end confdefs.h. */
20531
20532 unsigned long long ull = 1; int i = 63;
20533 int
20534 main ()
20535 {
20536
20537 unsigned long long ullmax = (unsigned long long) -1;
20538 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20539
20540 ;
20541 return 0;
20542 }
20543 _ACEOF
20544 rm -f conftest.$ac_objext conftest$ac_exeext
20545 if { (ac_try="$ac_link"
20546 case "(($ac_try" in
20547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20548 *) ac_try_echo=$ac_try;;
20549 esac
20550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20551 $as_echo "$ac_try_echo") >&5
20552 (eval "$ac_link") 2>conftest.er1
20553 ac_status=$?
20554 grep -v '^ *+' conftest.er1 >conftest.err
20555 rm -f conftest.er1
20556 cat conftest.err >&5
20557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); } && {
20559 test -z "$ac_c_werror_flag" ||
20560 test ! -s conftest.err
20561 } && test -s conftest$ac_exeext && {
20562 test "$cross_compiling" = yes ||
20563 $as_test_x conftest$ac_exeext
20564 }; then
20565 bash_cv_type_unsigned_long_long='unsigned long long'
20566 else
20567 $as_echo "$as_me: failed program was:" >&5
20568 sed 's/^/| /' conftest.$ac_ext >&5
20569
20570 bash_cv_type_unsigned_long_long='unsigned long'
20571 fi
20572
20573 rm -rf conftest.dSYM
20574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20575 conftest$ac_exeext conftest.$ac_ext
20576 fi
20577 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
20578 $as_echo "$bash_cv_type_unsigned_long_long" >&6; }
20579 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
20580 cat >>confdefs.h <<\_ACEOF
20581 #define HAVE_UNSIGNED_LONG_LONG 1
20582 _ACEOF
20583
20584 fi
20585
20586
20587 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20588 $as_echo_n "checking return type of signal handlers... " >&6; }
20589 if test "${ac_cv_type_signal+set}" = set; then
20590 $as_echo_n "(cached) " >&6
20591 else
20592 cat >conftest.$ac_ext <<_ACEOF
20593 /* confdefs.h. */
20594 _ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h. */
20598 #include <sys/types.h>
20599 #include <signal.h>
20600
20601 int
20602 main ()
20603 {
20604 return *(signal (0, 0)) (0) == 1;
20605 ;
20606 return 0;
20607 }
20608 _ACEOF
20609 rm -f conftest.$ac_objext
20610 if { (ac_try="$ac_compile"
20611 case "(($ac_try" in
20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613 *) ac_try_echo=$ac_try;;
20614 esac
20615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20616 $as_echo "$ac_try_echo") >&5
20617 (eval "$ac_compile") 2>conftest.er1
20618 ac_status=$?
20619 grep -v '^ *+' conftest.er1 >conftest.err
20620 rm -f conftest.er1
20621 cat conftest.err >&5
20622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } && {
20624 test -z "$ac_c_werror_flag" ||
20625 test ! -s conftest.err
20626 } && test -s conftest.$ac_objext; then
20627 ac_cv_type_signal=int
20628 else
20629 $as_echo "$as_me: failed program was:" >&5
20630 sed 's/^/| /' conftest.$ac_ext >&5
20631
20632 ac_cv_type_signal=void
20633 fi
20634
20635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20636 fi
20637 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20638 $as_echo "$ac_cv_type_signal" >&6; }
20639
20640 cat >>confdefs.h <<_ACEOF
20641 #define RETSIGTYPE $ac_cv_type_signal
20642 _ACEOF
20643
20644
20645 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
20646 $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
20647 if test "${ac_cv_have_sig_atomic_t+set}" = set; then
20648 $as_echo_n "(cached) " >&6
20649 else
20650 cat >conftest.$ac_ext <<_ACEOF
20651 /* confdefs.h. */
20652 _ACEOF
20653 cat confdefs.h >>conftest.$ac_ext
20654 cat >>conftest.$ac_ext <<_ACEOF
20655 /* end confdefs.h. */
20656
20657 #include <signal.h>
20658
20659 int
20660 main ()
20661 {
20662 sig_atomic_t x;
20663 ;
20664 return 0;
20665 }
20666 _ACEOF
20667 rm -f conftest.$ac_objext conftest$ac_exeext
20668 if { (ac_try="$ac_link"
20669 case "(($ac_try" in
20670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20671 *) ac_try_echo=$ac_try;;
20672 esac
20673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20674 $as_echo "$ac_try_echo") >&5
20675 (eval "$ac_link") 2>conftest.er1
20676 ac_status=$?
20677 grep -v '^ *+' conftest.er1 >conftest.err
20678 rm -f conftest.er1
20679 cat conftest.err >&5
20680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); } && {
20682 test -z "$ac_c_werror_flag" ||
20683 test ! -s conftest.err
20684 } && test -s conftest$ac_exeext && {
20685 test "$cross_compiling" = yes ||
20686 $as_test_x conftest$ac_exeext
20687 }; then
20688 ac_cv_have_sig_atomic_t=yes
20689 else
20690 $as_echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20692
20693 ac_cv_have_sig_atomic_t=no
20694 fi
20695
20696 rm -rf conftest.dSYM
20697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20698 conftest$ac_exeext conftest.$ac_ext
20699 fi
20700 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_sig_atomic_t" >&5
20701 $as_echo "$ac_cv_have_sig_atomic_t" >&6; }
20702 if test "$ac_cv_have_sig_atomic_t" = "no"
20703 then
20704 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
20705 $as_echo_n "checking for sig_atomic_t... " >&6; }
20706 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
20707 $as_echo_n "(cached) " >&6
20708 else
20709 ac_cv_type_sig_atomic_t=no
20710 cat >conftest.$ac_ext <<_ACEOF
20711 /* confdefs.h. */
20712 _ACEOF
20713 cat confdefs.h >>conftest.$ac_ext
20714 cat >>conftest.$ac_ext <<_ACEOF
20715 /* end confdefs.h. */
20716 $ac_includes_default
20717 int
20718 main ()
20719 {
20720 if (sizeof (sig_atomic_t))
20721 return 0;
20722 ;
20723 return 0;
20724 }
20725 _ACEOF
20726 rm -f conftest.$ac_objext
20727 if { (ac_try="$ac_compile"
20728 case "(($ac_try" in
20729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730 *) ac_try_echo=$ac_try;;
20731 esac
20732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20733 $as_echo "$ac_try_echo") >&5
20734 (eval "$ac_compile") 2>conftest.er1
20735 ac_status=$?
20736 grep -v '^ *+' conftest.er1 >conftest.err
20737 rm -f conftest.er1
20738 cat conftest.err >&5
20739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); } && {
20741 test -z "$ac_c_werror_flag" ||
20742 test ! -s conftest.err
20743 } && test -s conftest.$ac_objext; then
20744 cat >conftest.$ac_ext <<_ACEOF
20745 /* confdefs.h. */
20746 _ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h. */
20750 $ac_includes_default
20751 int
20752 main ()
20753 {
20754 if (sizeof ((sig_atomic_t)))
20755 return 0;
20756 ;
20757 return 0;
20758 }
20759 _ACEOF
20760 rm -f conftest.$ac_objext
20761 if { (ac_try="$ac_compile"
20762 case "(($ac_try" in
20763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764 *) ac_try_echo=$ac_try;;
20765 esac
20766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20767 $as_echo "$ac_try_echo") >&5
20768 (eval "$ac_compile") 2>conftest.er1
20769 ac_status=$?
20770 grep -v '^ *+' conftest.er1 >conftest.err
20771 rm -f conftest.er1
20772 cat conftest.err >&5
20773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); } && {
20775 test -z "$ac_c_werror_flag" ||
20776 test ! -s conftest.err
20777 } && test -s conftest.$ac_objext; then
20778 :
20779 else
20780 $as_echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20782
20783 ac_cv_type_sig_atomic_t=yes
20784 fi
20785
20786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20787 else
20788 $as_echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20790
20791
20792 fi
20793
20794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20795 fi
20796 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
20797 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
20798 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
20799 :
20800 else
20801
20802 cat >>confdefs.h <<_ACEOF
20803 #define sig_atomic_t int
20804 _ACEOF
20805
20806 fi
20807
20808 fi
20809
20810
20811 # The cast to long int works around a bug in the HP C Compiler
20812 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20813 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20814 # This bug is HP SR number 8606223364.
20815 { $as_echo "$as_me:$LINENO: checking size of char" >&5
20816 $as_echo_n "checking size of char... " >&6; }
20817 if test "${ac_cv_sizeof_char+set}" = set; then
20818 $as_echo_n "(cached) " >&6
20819 else
20820 if test "$cross_compiling" = yes; then
20821 # Depending upon the size, compute the lo and hi bounds.
20822 cat >conftest.$ac_ext <<_ACEOF
20823 /* confdefs.h. */
20824 _ACEOF
20825 cat confdefs.h >>conftest.$ac_ext
20826 cat >>conftest.$ac_ext <<_ACEOF
20827 /* end confdefs.h. */
20828 $ac_includes_default
20829 int
20830 main ()
20831 {
20832 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
20833 test_array [0] = 0
20834
20835 ;
20836 return 0;
20837 }
20838 _ACEOF
20839 rm -f conftest.$ac_objext
20840 if { (ac_try="$ac_compile"
20841 case "(($ac_try" in
20842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843 *) ac_try_echo=$ac_try;;
20844 esac
20845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20846 $as_echo "$ac_try_echo") >&5
20847 (eval "$ac_compile") 2>conftest.er1
20848 ac_status=$?
20849 grep -v '^ *+' conftest.er1 >conftest.err
20850 rm -f conftest.er1
20851 cat conftest.err >&5
20852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); } && {
20854 test -z "$ac_c_werror_flag" ||
20855 test ! -s conftest.err
20856 } && test -s conftest.$ac_objext; then
20857 ac_lo=0 ac_mid=0
20858 while :; do
20859 cat >conftest.$ac_ext <<_ACEOF
20860 /* confdefs.h. */
20861 _ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h. */
20865 $ac_includes_default
20866 int
20867 main ()
20868 {
20869 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
20870 test_array [0] = 0
20871
20872 ;
20873 return 0;
20874 }
20875 _ACEOF
20876 rm -f conftest.$ac_objext
20877 if { (ac_try="$ac_compile"
20878 case "(($ac_try" in
20879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20880 *) ac_try_echo=$ac_try;;
20881 esac
20882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20883 $as_echo "$ac_try_echo") >&5
20884 (eval "$ac_compile") 2>conftest.er1
20885 ac_status=$?
20886 grep -v '^ *+' conftest.er1 >conftest.err
20887 rm -f conftest.er1
20888 cat conftest.err >&5
20889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); } && {
20891 test -z "$ac_c_werror_flag" ||
20892 test ! -s conftest.err
20893 } && test -s conftest.$ac_objext; then
20894 ac_hi=$ac_mid; break
20895 else
20896 $as_echo "$as_me: failed program was:" >&5
20897 sed 's/^/| /' conftest.$ac_ext >&5
20898
20899 ac_lo=`expr $ac_mid + 1`
20900 if test $ac_lo -le $ac_mid; then
20901 ac_lo= ac_hi=
20902 break
20903 fi
20904 ac_mid=`expr 2 '*' $ac_mid + 1`
20905 fi
20906
20907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20908 done
20909 else
20910 $as_echo "$as_me: failed program was:" >&5
20911 sed 's/^/| /' conftest.$ac_ext >&5
20912
20913 cat >conftest.$ac_ext <<_ACEOF
20914 /* confdefs.h. */
20915 _ACEOF
20916 cat confdefs.h >>conftest.$ac_ext
20917 cat >>conftest.$ac_ext <<_ACEOF
20918 /* end confdefs.h. */
20919 $ac_includes_default
20920 int
20921 main ()
20922 {
20923 static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
20924 test_array [0] = 0
20925
20926 ;
20927 return 0;
20928 }
20929 _ACEOF
20930 rm -f conftest.$ac_objext
20931 if { (ac_try="$ac_compile"
20932 case "(($ac_try" in
20933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20934 *) ac_try_echo=$ac_try;;
20935 esac
20936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20937 $as_echo "$ac_try_echo") >&5
20938 (eval "$ac_compile") 2>conftest.er1
20939 ac_status=$?
20940 grep -v '^ *+' conftest.er1 >conftest.err
20941 rm -f conftest.er1
20942 cat conftest.err >&5
20943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); } && {
20945 test -z "$ac_c_werror_flag" ||
20946 test ! -s conftest.err
20947 } && test -s conftest.$ac_objext; then
20948 ac_hi=-1 ac_mid=-1
20949 while :; do
20950 cat >conftest.$ac_ext <<_ACEOF
20951 /* confdefs.h. */
20952 _ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h. */
20956 $ac_includes_default
20957 int
20958 main ()
20959 {
20960 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
20961 test_array [0] = 0
20962
20963 ;
20964 return 0;
20965 }
20966 _ACEOF
20967 rm -f conftest.$ac_objext
20968 if { (ac_try="$ac_compile"
20969 case "(($ac_try" in
20970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20971 *) ac_try_echo=$ac_try;;
20972 esac
20973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20974 $as_echo "$ac_try_echo") >&5
20975 (eval "$ac_compile") 2>conftest.er1
20976 ac_status=$?
20977 grep -v '^ *+' conftest.er1 >conftest.err
20978 rm -f conftest.er1
20979 cat conftest.err >&5
20980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } && {
20982 test -z "$ac_c_werror_flag" ||
20983 test ! -s conftest.err
20984 } && test -s conftest.$ac_objext; then
20985 ac_lo=$ac_mid; break
20986 else
20987 $as_echo "$as_me: failed program was:" >&5
20988 sed 's/^/| /' conftest.$ac_ext >&5
20989
20990 ac_hi=`expr '(' $ac_mid ')' - 1`
20991 if test $ac_mid -le $ac_hi; then
20992 ac_lo= ac_hi=
20993 break
20994 fi
20995 ac_mid=`expr 2 '*' $ac_mid`
20996 fi
20997
20998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20999 done
21000 else
21001 $as_echo "$as_me: failed program was:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21003
21004 ac_lo= ac_hi=
21005 fi
21006
21007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21008 fi
21009
21010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21011 # Binary search between lo and hi bounds.
21012 while test "x$ac_lo" != "x$ac_hi"; do
21013 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21014 cat >conftest.$ac_ext <<_ACEOF
21015 /* confdefs.h. */
21016 _ACEOF
21017 cat confdefs.h >>conftest.$ac_ext
21018 cat >>conftest.$ac_ext <<_ACEOF
21019 /* end confdefs.h. */
21020 $ac_includes_default
21021 int
21022 main ()
21023 {
21024 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
21025 test_array [0] = 0
21026
21027 ;
21028 return 0;
21029 }
21030 _ACEOF
21031 rm -f conftest.$ac_objext
21032 if { (ac_try="$ac_compile"
21033 case "(($ac_try" in
21034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21035 *) ac_try_echo=$ac_try;;
21036 esac
21037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21038 $as_echo "$ac_try_echo") >&5
21039 (eval "$ac_compile") 2>conftest.er1
21040 ac_status=$?
21041 grep -v '^ *+' conftest.er1 >conftest.err
21042 rm -f conftest.er1
21043 cat conftest.err >&5
21044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); } && {
21046 test -z "$ac_c_werror_flag" ||
21047 test ! -s conftest.err
21048 } && test -s conftest.$ac_objext; then
21049 ac_hi=$ac_mid
21050 else
21051 $as_echo "$as_me: failed program was:" >&5
21052 sed 's/^/| /' conftest.$ac_ext >&5
21053
21054 ac_lo=`expr '(' $ac_mid ')' + 1`
21055 fi
21056
21057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21058 done
21059 case $ac_lo in
21060 ?*) ac_cv_sizeof_char=$ac_lo;;
21061 '') if test "$ac_cv_type_char" = yes; then
21062 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21064 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
21065 See \`config.log' for more details." >&5
21066 $as_echo "$as_me: error: cannot compute sizeof (char)
21067 See \`config.log' for more details." >&2;}
21068 { (exit 77); exit 77; }; }; }
21069 else
21070 ac_cv_sizeof_char=0
21071 fi ;;
21072 esac
21073 else
21074 cat >conftest.$ac_ext <<_ACEOF
21075 /* confdefs.h. */
21076 _ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h. */
21080 $ac_includes_default
21081 static long int longval () { return (long int) (sizeof (char)); }
21082 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
21083 #include <stdio.h>
21084 #include <stdlib.h>
21085 int
21086 main ()
21087 {
21088
21089 FILE *f = fopen ("conftest.val", "w");
21090 if (! f)
21091 return 1;
21092 if (((long int) (sizeof (char))) < 0)
21093 {
21094 long int i = longval ();
21095 if (i != ((long int) (sizeof (char))))
21096 return 1;
21097 fprintf (f, "%ld", i);
21098 }
21099 else
21100 {
21101 unsigned long int i = ulongval ();
21102 if (i != ((long int) (sizeof (char))))
21103 return 1;
21104 fprintf (f, "%lu", i);
21105 }
21106 /* Do not output a trailing newline, as this causes \r\n confusion
21107 on some platforms. */
21108 return ferror (f) || fclose (f) != 0;
21109
21110 ;
21111 return 0;
21112 }
21113 _ACEOF
21114 rm -f conftest$ac_exeext
21115 if { (ac_try="$ac_link"
21116 case "(($ac_try" in
21117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118 *) ac_try_echo=$ac_try;;
21119 esac
21120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21121 $as_echo "$ac_try_echo") >&5
21122 (eval "$ac_link") 2>&5
21123 ac_status=$?
21124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21126 { (case "(($ac_try" in
21127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21129 esac
21130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21131 $as_echo "$ac_try_echo") >&5
21132 (eval "$ac_try") 2>&5
21133 ac_status=$?
21134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); }; }; then
21136 ac_cv_sizeof_char=`cat conftest.val`
21137 else
21138 $as_echo "$as_me: program exited with status $ac_status" >&5
21139 $as_echo "$as_me: failed program was:" >&5
21140 sed 's/^/| /' conftest.$ac_ext >&5
21141
21142 ( exit $ac_status )
21143 if test "$ac_cv_type_char" = yes; then
21144 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21146 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
21147 See \`config.log' for more details." >&5
21148 $as_echo "$as_me: error: cannot compute sizeof (char)
21149 See \`config.log' for more details." >&2;}
21150 { (exit 77); exit 77; }; }; }
21151 else
21152 ac_cv_sizeof_char=0
21153 fi
21154 fi
21155 rm -rf conftest.dSYM
21156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21157 fi
21158 rm -f conftest.val
21159 fi
21160 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
21161 $as_echo "$ac_cv_sizeof_char" >&6; }
21162
21163
21164
21165 cat >>confdefs.h <<_ACEOF
21166 #define SIZEOF_CHAR $ac_cv_sizeof_char
21167 _ACEOF
21168
21169
21170 # The cast to long int works around a bug in the HP C Compiler
21171 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21172 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21173 # This bug is HP SR number 8606223364.
21174 { $as_echo "$as_me:$LINENO: checking size of short" >&5
21175 $as_echo_n "checking size of short... " >&6; }
21176 if test "${ac_cv_sizeof_short+set}" = set; then
21177 $as_echo_n "(cached) " >&6
21178 else
21179 if test "$cross_compiling" = yes; then
21180 # Depending upon the size, compute the lo and hi bounds.
21181 cat >conftest.$ac_ext <<_ACEOF
21182 /* confdefs.h. */
21183 _ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187 $ac_includes_default
21188 int
21189 main ()
21190 {
21191 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
21192 test_array [0] = 0
21193
21194 ;
21195 return 0;
21196 }
21197 _ACEOF
21198 rm -f conftest.$ac_objext
21199 if { (ac_try="$ac_compile"
21200 case "(($ac_try" in
21201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202 *) ac_try_echo=$ac_try;;
21203 esac
21204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21205 $as_echo "$ac_try_echo") >&5
21206 (eval "$ac_compile") 2>conftest.er1
21207 ac_status=$?
21208 grep -v '^ *+' conftest.er1 >conftest.err
21209 rm -f conftest.er1
21210 cat conftest.err >&5
21211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); } && {
21213 test -z "$ac_c_werror_flag" ||
21214 test ! -s conftest.err
21215 } && test -s conftest.$ac_objext; then
21216 ac_lo=0 ac_mid=0
21217 while :; do
21218 cat >conftest.$ac_ext <<_ACEOF
21219 /* confdefs.h. */
21220 _ACEOF
21221 cat confdefs.h >>conftest.$ac_ext
21222 cat >>conftest.$ac_ext <<_ACEOF
21223 /* end confdefs.h. */
21224 $ac_includes_default
21225 int
21226 main ()
21227 {
21228 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
21229 test_array [0] = 0
21230
21231 ;
21232 return 0;
21233 }
21234 _ACEOF
21235 rm -f conftest.$ac_objext
21236 if { (ac_try="$ac_compile"
21237 case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21240 esac
21241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21242 $as_echo "$ac_try_echo") >&5
21243 (eval "$ac_compile") 2>conftest.er1
21244 ac_status=$?
21245 grep -v '^ *+' conftest.er1 >conftest.err
21246 rm -f conftest.er1
21247 cat conftest.err >&5
21248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); } && {
21250 test -z "$ac_c_werror_flag" ||
21251 test ! -s conftest.err
21252 } && test -s conftest.$ac_objext; then
21253 ac_hi=$ac_mid; break
21254 else
21255 $as_echo "$as_me: failed program was:" >&5
21256 sed 's/^/| /' conftest.$ac_ext >&5
21257
21258 ac_lo=`expr $ac_mid + 1`
21259 if test $ac_lo -le $ac_mid; then
21260 ac_lo= ac_hi=
21261 break
21262 fi
21263 ac_mid=`expr 2 '*' $ac_mid + 1`
21264 fi
21265
21266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21267 done
21268 else
21269 $as_echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21271
21272 cat >conftest.$ac_ext <<_ACEOF
21273 /* confdefs.h. */
21274 _ACEOF
21275 cat confdefs.h >>conftest.$ac_ext
21276 cat >>conftest.$ac_ext <<_ACEOF
21277 /* end confdefs.h. */
21278 $ac_includes_default
21279 int
21280 main ()
21281 {
21282 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
21283 test_array [0] = 0
21284
21285 ;
21286 return 0;
21287 }
21288 _ACEOF
21289 rm -f conftest.$ac_objext
21290 if { (ac_try="$ac_compile"
21291 case "(($ac_try" in
21292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21293 *) ac_try_echo=$ac_try;;
21294 esac
21295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21296 $as_echo "$ac_try_echo") >&5
21297 (eval "$ac_compile") 2>conftest.er1
21298 ac_status=$?
21299 grep -v '^ *+' conftest.er1 >conftest.err
21300 rm -f conftest.er1
21301 cat conftest.err >&5
21302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); } && {
21304 test -z "$ac_c_werror_flag" ||
21305 test ! -s conftest.err
21306 } && test -s conftest.$ac_objext; then
21307 ac_hi=-1 ac_mid=-1
21308 while :; do
21309 cat >conftest.$ac_ext <<_ACEOF
21310 /* confdefs.h. */
21311 _ACEOF
21312 cat confdefs.h >>conftest.$ac_ext
21313 cat >>conftest.$ac_ext <<_ACEOF
21314 /* end confdefs.h. */
21315 $ac_includes_default
21316 int
21317 main ()
21318 {
21319 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
21320 test_array [0] = 0
21321
21322 ;
21323 return 0;
21324 }
21325 _ACEOF
21326 rm -f conftest.$ac_objext
21327 if { (ac_try="$ac_compile"
21328 case "(($ac_try" in
21329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21330 *) ac_try_echo=$ac_try;;
21331 esac
21332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21333 $as_echo "$ac_try_echo") >&5
21334 (eval "$ac_compile") 2>conftest.er1
21335 ac_status=$?
21336 grep -v '^ *+' conftest.er1 >conftest.err
21337 rm -f conftest.er1
21338 cat conftest.err >&5
21339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); } && {
21341 test -z "$ac_c_werror_flag" ||
21342 test ! -s conftest.err
21343 } && test -s conftest.$ac_objext; then
21344 ac_lo=$ac_mid; break
21345 else
21346 $as_echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21348
21349 ac_hi=`expr '(' $ac_mid ')' - 1`
21350 if test $ac_mid -le $ac_hi; then
21351 ac_lo= ac_hi=
21352 break
21353 fi
21354 ac_mid=`expr 2 '*' $ac_mid`
21355 fi
21356
21357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21358 done
21359 else
21360 $as_echo "$as_me: failed program was:" >&5
21361 sed 's/^/| /' conftest.$ac_ext >&5
21362
21363 ac_lo= ac_hi=
21364 fi
21365
21366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21367 fi
21368
21369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21370 # Binary search between lo and hi bounds.
21371 while test "x$ac_lo" != "x$ac_hi"; do
21372 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21373 cat >conftest.$ac_ext <<_ACEOF
21374 /* confdefs.h. */
21375 _ACEOF
21376 cat confdefs.h >>conftest.$ac_ext
21377 cat >>conftest.$ac_ext <<_ACEOF
21378 /* end confdefs.h. */
21379 $ac_includes_default
21380 int
21381 main ()
21382 {
21383 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
21384 test_array [0] = 0
21385
21386 ;
21387 return 0;
21388 }
21389 _ACEOF
21390 rm -f conftest.$ac_objext
21391 if { (ac_try="$ac_compile"
21392 case "(($ac_try" in
21393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21394 *) ac_try_echo=$ac_try;;
21395 esac
21396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21397 $as_echo "$ac_try_echo") >&5
21398 (eval "$ac_compile") 2>conftest.er1
21399 ac_status=$?
21400 grep -v '^ *+' conftest.er1 >conftest.err
21401 rm -f conftest.er1
21402 cat conftest.err >&5
21403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); } && {
21405 test -z "$ac_c_werror_flag" ||
21406 test ! -s conftest.err
21407 } && test -s conftest.$ac_objext; then
21408 ac_hi=$ac_mid
21409 else
21410 $as_echo "$as_me: failed program was:" >&5
21411 sed 's/^/| /' conftest.$ac_ext >&5
21412
21413 ac_lo=`expr '(' $ac_mid ')' + 1`
21414 fi
21415
21416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21417 done
21418 case $ac_lo in
21419 ?*) ac_cv_sizeof_short=$ac_lo;;
21420 '') if test "$ac_cv_type_short" = yes; then
21421 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21423 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21424 See \`config.log' for more details." >&5
21425 $as_echo "$as_me: error: cannot compute sizeof (short)
21426 See \`config.log' for more details." >&2;}
21427 { (exit 77); exit 77; }; }; }
21428 else
21429 ac_cv_sizeof_short=0
21430 fi ;;
21431 esac
21432 else
21433 cat >conftest.$ac_ext <<_ACEOF
21434 /* confdefs.h. */
21435 _ACEOF
21436 cat confdefs.h >>conftest.$ac_ext
21437 cat >>conftest.$ac_ext <<_ACEOF
21438 /* end confdefs.h. */
21439 $ac_includes_default
21440 static long int longval () { return (long int) (sizeof (short)); }
21441 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
21442 #include <stdio.h>
21443 #include <stdlib.h>
21444 int
21445 main ()
21446 {
21447
21448 FILE *f = fopen ("conftest.val", "w");
21449 if (! f)
21450 return 1;
21451 if (((long int) (sizeof (short))) < 0)
21452 {
21453 long int i = longval ();
21454 if (i != ((long int) (sizeof (short))))
21455 return 1;
21456 fprintf (f, "%ld", i);
21457 }
21458 else
21459 {
21460 unsigned long int i = ulongval ();
21461 if (i != ((long int) (sizeof (short))))
21462 return 1;
21463 fprintf (f, "%lu", i);
21464 }
21465 /* Do not output a trailing newline, as this causes \r\n confusion
21466 on some platforms. */
21467 return ferror (f) || fclose (f) != 0;
21468
21469 ;
21470 return 0;
21471 }
21472 _ACEOF
21473 rm -f conftest$ac_exeext
21474 if { (ac_try="$ac_link"
21475 case "(($ac_try" in
21476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21477 *) ac_try_echo=$ac_try;;
21478 esac
21479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21480 $as_echo "$ac_try_echo") >&5
21481 (eval "$ac_link") 2>&5
21482 ac_status=$?
21483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21485 { (case "(($ac_try" in
21486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21487 *) ac_try_echo=$ac_try;;
21488 esac
21489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21490 $as_echo "$ac_try_echo") >&5
21491 (eval "$ac_try") 2>&5
21492 ac_status=$?
21493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); }; }; then
21495 ac_cv_sizeof_short=`cat conftest.val`
21496 else
21497 $as_echo "$as_me: program exited with status $ac_status" >&5
21498 $as_echo "$as_me: failed program was:" >&5
21499 sed 's/^/| /' conftest.$ac_ext >&5
21500
21501 ( exit $ac_status )
21502 if test "$ac_cv_type_short" = yes; then
21503 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21505 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21506 See \`config.log' for more details." >&5
21507 $as_echo "$as_me: error: cannot compute sizeof (short)
21508 See \`config.log' for more details." >&2;}
21509 { (exit 77); exit 77; }; }; }
21510 else
21511 ac_cv_sizeof_short=0
21512 fi
21513 fi
21514 rm -rf conftest.dSYM
21515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21516 fi
21517 rm -f conftest.val
21518 fi
21519 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21520 $as_echo "$ac_cv_sizeof_short" >&6; }
21521
21522
21523
21524 cat >>confdefs.h <<_ACEOF
21525 #define SIZEOF_SHORT $ac_cv_sizeof_short
21526 _ACEOF
21527
21528
21529 # The cast to long int works around a bug in the HP C Compiler
21530 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21531 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21532 # This bug is HP SR number 8606223364.
21533 { $as_echo "$as_me:$LINENO: checking size of int" >&5
21534 $as_echo_n "checking size of int... " >&6; }
21535 if test "${ac_cv_sizeof_int+set}" = set; then
21536 $as_echo_n "(cached) " >&6
21537 else
21538 if test "$cross_compiling" = yes; then
21539 # Depending upon the size, compute the lo and hi bounds.
21540 cat >conftest.$ac_ext <<_ACEOF
21541 /* confdefs.h. */
21542 _ACEOF
21543 cat confdefs.h >>conftest.$ac_ext
21544 cat >>conftest.$ac_ext <<_ACEOF
21545 /* end confdefs.h. */
21546 $ac_includes_default
21547 int
21548 main ()
21549 {
21550 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
21551 test_array [0] = 0
21552
21553 ;
21554 return 0;
21555 }
21556 _ACEOF
21557 rm -f conftest.$ac_objext
21558 if { (ac_try="$ac_compile"
21559 case "(($ac_try" in
21560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21561 *) ac_try_echo=$ac_try;;
21562 esac
21563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21564 $as_echo "$ac_try_echo") >&5
21565 (eval "$ac_compile") 2>conftest.er1
21566 ac_status=$?
21567 grep -v '^ *+' conftest.er1 >conftest.err
21568 rm -f conftest.er1
21569 cat conftest.err >&5
21570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); } && {
21572 test -z "$ac_c_werror_flag" ||
21573 test ! -s conftest.err
21574 } && test -s conftest.$ac_objext; then
21575 ac_lo=0 ac_mid=0
21576 while :; do
21577 cat >conftest.$ac_ext <<_ACEOF
21578 /* confdefs.h. */
21579 _ACEOF
21580 cat confdefs.h >>conftest.$ac_ext
21581 cat >>conftest.$ac_ext <<_ACEOF
21582 /* end confdefs.h. */
21583 $ac_includes_default
21584 int
21585 main ()
21586 {
21587 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
21588 test_array [0] = 0
21589
21590 ;
21591 return 0;
21592 }
21593 _ACEOF
21594 rm -f conftest.$ac_objext
21595 if { (ac_try="$ac_compile"
21596 case "(($ac_try" in
21597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21598 *) ac_try_echo=$ac_try;;
21599 esac
21600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21601 $as_echo "$ac_try_echo") >&5
21602 (eval "$ac_compile") 2>conftest.er1
21603 ac_status=$?
21604 grep -v '^ *+' conftest.er1 >conftest.err
21605 rm -f conftest.er1
21606 cat conftest.err >&5
21607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); } && {
21609 test -z "$ac_c_werror_flag" ||
21610 test ! -s conftest.err
21611 } && test -s conftest.$ac_objext; then
21612 ac_hi=$ac_mid; break
21613 else
21614 $as_echo "$as_me: failed program was:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21616
21617 ac_lo=`expr $ac_mid + 1`
21618 if test $ac_lo -le $ac_mid; then
21619 ac_lo= ac_hi=
21620 break
21621 fi
21622 ac_mid=`expr 2 '*' $ac_mid + 1`
21623 fi
21624
21625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21626 done
21627 else
21628 $as_echo "$as_me: failed program was:" >&5
21629 sed 's/^/| /' conftest.$ac_ext >&5
21630
21631 cat >conftest.$ac_ext <<_ACEOF
21632 /* confdefs.h. */
21633 _ACEOF
21634 cat confdefs.h >>conftest.$ac_ext
21635 cat >>conftest.$ac_ext <<_ACEOF
21636 /* end confdefs.h. */
21637 $ac_includes_default
21638 int
21639 main ()
21640 {
21641 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
21642 test_array [0] = 0
21643
21644 ;
21645 return 0;
21646 }
21647 _ACEOF
21648 rm -f conftest.$ac_objext
21649 if { (ac_try="$ac_compile"
21650 case "(($ac_try" in
21651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21652 *) ac_try_echo=$ac_try;;
21653 esac
21654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21655 $as_echo "$ac_try_echo") >&5
21656 (eval "$ac_compile") 2>conftest.er1
21657 ac_status=$?
21658 grep -v '^ *+' conftest.er1 >conftest.err
21659 rm -f conftest.er1
21660 cat conftest.err >&5
21661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); } && {
21663 test -z "$ac_c_werror_flag" ||
21664 test ! -s conftest.err
21665 } && test -s conftest.$ac_objext; then
21666 ac_hi=-1 ac_mid=-1
21667 while :; do
21668 cat >conftest.$ac_ext <<_ACEOF
21669 /* confdefs.h. */
21670 _ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h. */
21674 $ac_includes_default
21675 int
21676 main ()
21677 {
21678 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
21679 test_array [0] = 0
21680
21681 ;
21682 return 0;
21683 }
21684 _ACEOF
21685 rm -f conftest.$ac_objext
21686 if { (ac_try="$ac_compile"
21687 case "(($ac_try" in
21688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21689 *) ac_try_echo=$ac_try;;
21690 esac
21691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21692 $as_echo "$ac_try_echo") >&5
21693 (eval "$ac_compile") 2>conftest.er1
21694 ac_status=$?
21695 grep -v '^ *+' conftest.er1 >conftest.err
21696 rm -f conftest.er1
21697 cat conftest.err >&5
21698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); } && {
21700 test -z "$ac_c_werror_flag" ||
21701 test ! -s conftest.err
21702 } && test -s conftest.$ac_objext; then
21703 ac_lo=$ac_mid; break
21704 else
21705 $as_echo "$as_me: failed program was:" >&5
21706 sed 's/^/| /' conftest.$ac_ext >&5
21707
21708 ac_hi=`expr '(' $ac_mid ')' - 1`
21709 if test $ac_mid -le $ac_hi; then
21710 ac_lo= ac_hi=
21711 break
21712 fi
21713 ac_mid=`expr 2 '*' $ac_mid`
21714 fi
21715
21716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21717 done
21718 else
21719 $as_echo "$as_me: failed program was:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21721
21722 ac_lo= ac_hi=
21723 fi
21724
21725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21726 fi
21727
21728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21729 # Binary search between lo and hi bounds.
21730 while test "x$ac_lo" != "x$ac_hi"; do
21731 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21732 cat >conftest.$ac_ext <<_ACEOF
21733 /* confdefs.h. */
21734 _ACEOF
21735 cat confdefs.h >>conftest.$ac_ext
21736 cat >>conftest.$ac_ext <<_ACEOF
21737 /* end confdefs.h. */
21738 $ac_includes_default
21739 int
21740 main ()
21741 {
21742 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
21743 test_array [0] = 0
21744
21745 ;
21746 return 0;
21747 }
21748 _ACEOF
21749 rm -f conftest.$ac_objext
21750 if { (ac_try="$ac_compile"
21751 case "(($ac_try" in
21752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21753 *) ac_try_echo=$ac_try;;
21754 esac
21755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21756 $as_echo "$ac_try_echo") >&5
21757 (eval "$ac_compile") 2>conftest.er1
21758 ac_status=$?
21759 grep -v '^ *+' conftest.er1 >conftest.err
21760 rm -f conftest.er1
21761 cat conftest.err >&5
21762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); } && {
21764 test -z "$ac_c_werror_flag" ||
21765 test ! -s conftest.err
21766 } && test -s conftest.$ac_objext; then
21767 ac_hi=$ac_mid
21768 else
21769 $as_echo "$as_me: failed program was:" >&5
21770 sed 's/^/| /' conftest.$ac_ext >&5
21771
21772 ac_lo=`expr '(' $ac_mid ')' + 1`
21773 fi
21774
21775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21776 done
21777 case $ac_lo in
21778 ?*) ac_cv_sizeof_int=$ac_lo;;
21779 '') if test "$ac_cv_type_int" = yes; then
21780 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21782 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21783 See \`config.log' for more details." >&5
21784 $as_echo "$as_me: error: cannot compute sizeof (int)
21785 See \`config.log' for more details." >&2;}
21786 { (exit 77); exit 77; }; }; }
21787 else
21788 ac_cv_sizeof_int=0
21789 fi ;;
21790 esac
21791 else
21792 cat >conftest.$ac_ext <<_ACEOF
21793 /* confdefs.h. */
21794 _ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h. */
21798 $ac_includes_default
21799 static long int longval () { return (long int) (sizeof (int)); }
21800 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
21801 #include <stdio.h>
21802 #include <stdlib.h>
21803 int
21804 main ()
21805 {
21806
21807 FILE *f = fopen ("conftest.val", "w");
21808 if (! f)
21809 return 1;
21810 if (((long int) (sizeof (int))) < 0)
21811 {
21812 long int i = longval ();
21813 if (i != ((long int) (sizeof (int))))
21814 return 1;
21815 fprintf (f, "%ld", i);
21816 }
21817 else
21818 {
21819 unsigned long int i = ulongval ();
21820 if (i != ((long int) (sizeof (int))))
21821 return 1;
21822 fprintf (f, "%lu", i);
21823 }
21824 /* Do not output a trailing newline, as this causes \r\n confusion
21825 on some platforms. */
21826 return ferror (f) || fclose (f) != 0;
21827
21828 ;
21829 return 0;
21830 }
21831 _ACEOF
21832 rm -f conftest$ac_exeext
21833 if { (ac_try="$ac_link"
21834 case "(($ac_try" in
21835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21836 *) ac_try_echo=$ac_try;;
21837 esac
21838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21839 $as_echo "$ac_try_echo") >&5
21840 (eval "$ac_link") 2>&5
21841 ac_status=$?
21842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21844 { (case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21847 esac
21848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21849 $as_echo "$ac_try_echo") >&5
21850 (eval "$ac_try") 2>&5
21851 ac_status=$?
21852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); }; }; then
21854 ac_cv_sizeof_int=`cat conftest.val`
21855 else
21856 $as_echo "$as_me: program exited with status $ac_status" >&5
21857 $as_echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21859
21860 ( exit $ac_status )
21861 if test "$ac_cv_type_int" = yes; then
21862 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21864 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21865 See \`config.log' for more details." >&5
21866 $as_echo "$as_me: error: cannot compute sizeof (int)
21867 See \`config.log' for more details." >&2;}
21868 { (exit 77); exit 77; }; }; }
21869 else
21870 ac_cv_sizeof_int=0
21871 fi
21872 fi
21873 rm -rf conftest.dSYM
21874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21875 fi
21876 rm -f conftest.val
21877 fi
21878 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21879 $as_echo "$ac_cv_sizeof_int" >&6; }
21880
21881
21882
21883 cat >>confdefs.h <<_ACEOF
21884 #define SIZEOF_INT $ac_cv_sizeof_int
21885 _ACEOF
21886
21887
21888 # The cast to long int works around a bug in the HP C Compiler
21889 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21890 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21891 # This bug is HP SR number 8606223364.
21892 { $as_echo "$as_me:$LINENO: checking size of long" >&5
21893 $as_echo_n "checking size of long... " >&6; }
21894 if test "${ac_cv_sizeof_long+set}" = set; then
21895 $as_echo_n "(cached) " >&6
21896 else
21897 if test "$cross_compiling" = yes; then
21898 # Depending upon the size, compute the lo and hi bounds.
21899 cat >conftest.$ac_ext <<_ACEOF
21900 /* confdefs.h. */
21901 _ACEOF
21902 cat confdefs.h >>conftest.$ac_ext
21903 cat >>conftest.$ac_ext <<_ACEOF
21904 /* end confdefs.h. */
21905 $ac_includes_default
21906 int
21907 main ()
21908 {
21909 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
21910 test_array [0] = 0
21911
21912 ;
21913 return 0;
21914 }
21915 _ACEOF
21916 rm -f conftest.$ac_objext
21917 if { (ac_try="$ac_compile"
21918 case "(($ac_try" in
21919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21920 *) ac_try_echo=$ac_try;;
21921 esac
21922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21923 $as_echo "$ac_try_echo") >&5
21924 (eval "$ac_compile") 2>conftest.er1
21925 ac_status=$?
21926 grep -v '^ *+' conftest.er1 >conftest.err
21927 rm -f conftest.er1
21928 cat conftest.err >&5
21929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); } && {
21931 test -z "$ac_c_werror_flag" ||
21932 test ! -s conftest.err
21933 } && test -s conftest.$ac_objext; then
21934 ac_lo=0 ac_mid=0
21935 while :; do
21936 cat >conftest.$ac_ext <<_ACEOF
21937 /* confdefs.h. */
21938 _ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h. */
21942 $ac_includes_default
21943 int
21944 main ()
21945 {
21946 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
21947 test_array [0] = 0
21948
21949 ;
21950 return 0;
21951 }
21952 _ACEOF
21953 rm -f conftest.$ac_objext
21954 if { (ac_try="$ac_compile"
21955 case "(($ac_try" in
21956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21957 *) ac_try_echo=$ac_try;;
21958 esac
21959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21960 $as_echo "$ac_try_echo") >&5
21961 (eval "$ac_compile") 2>conftest.er1
21962 ac_status=$?
21963 grep -v '^ *+' conftest.er1 >conftest.err
21964 rm -f conftest.er1
21965 cat conftest.err >&5
21966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); } && {
21968 test -z "$ac_c_werror_flag" ||
21969 test ! -s conftest.err
21970 } && test -s conftest.$ac_objext; then
21971 ac_hi=$ac_mid; break
21972 else
21973 $as_echo "$as_me: failed program was:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21975
21976 ac_lo=`expr $ac_mid + 1`
21977 if test $ac_lo -le $ac_mid; then
21978 ac_lo= ac_hi=
21979 break
21980 fi
21981 ac_mid=`expr 2 '*' $ac_mid + 1`
21982 fi
21983
21984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21985 done
21986 else
21987 $as_echo "$as_me: failed program was:" >&5
21988 sed 's/^/| /' conftest.$ac_ext >&5
21989
21990 cat >conftest.$ac_ext <<_ACEOF
21991 /* confdefs.h. */
21992 _ACEOF
21993 cat confdefs.h >>conftest.$ac_ext
21994 cat >>conftest.$ac_ext <<_ACEOF
21995 /* end confdefs.h. */
21996 $ac_includes_default
21997 int
21998 main ()
21999 {
22000 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
22001 test_array [0] = 0
22002
22003 ;
22004 return 0;
22005 }
22006 _ACEOF
22007 rm -f conftest.$ac_objext
22008 if { (ac_try="$ac_compile"
22009 case "(($ac_try" in
22010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011 *) ac_try_echo=$ac_try;;
22012 esac
22013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22014 $as_echo "$ac_try_echo") >&5
22015 (eval "$ac_compile") 2>conftest.er1
22016 ac_status=$?
22017 grep -v '^ *+' conftest.er1 >conftest.err
22018 rm -f conftest.er1
22019 cat conftest.err >&5
22020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } && {
22022 test -z "$ac_c_werror_flag" ||
22023 test ! -s conftest.err
22024 } && test -s conftest.$ac_objext; then
22025 ac_hi=-1 ac_mid=-1
22026 while :; do
22027 cat >conftest.$ac_ext <<_ACEOF
22028 /* confdefs.h. */
22029 _ACEOF
22030 cat confdefs.h >>conftest.$ac_ext
22031 cat >>conftest.$ac_ext <<_ACEOF
22032 /* end confdefs.h. */
22033 $ac_includes_default
22034 int
22035 main ()
22036 {
22037 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
22038 test_array [0] = 0
22039
22040 ;
22041 return 0;
22042 }
22043 _ACEOF
22044 rm -f conftest.$ac_objext
22045 if { (ac_try="$ac_compile"
22046 case "(($ac_try" in
22047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22048 *) ac_try_echo=$ac_try;;
22049 esac
22050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22051 $as_echo "$ac_try_echo") >&5
22052 (eval "$ac_compile") 2>conftest.er1
22053 ac_status=$?
22054 grep -v '^ *+' conftest.er1 >conftest.err
22055 rm -f conftest.er1
22056 cat conftest.err >&5
22057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); } && {
22059 test -z "$ac_c_werror_flag" ||
22060 test ! -s conftest.err
22061 } && test -s conftest.$ac_objext; then
22062 ac_lo=$ac_mid; break
22063 else
22064 $as_echo "$as_me: failed program was:" >&5
22065 sed 's/^/| /' conftest.$ac_ext >&5
22066
22067 ac_hi=`expr '(' $ac_mid ')' - 1`
22068 if test $ac_mid -le $ac_hi; then
22069 ac_lo= ac_hi=
22070 break
22071 fi
22072 ac_mid=`expr 2 '*' $ac_mid`
22073 fi
22074
22075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22076 done
22077 else
22078 $as_echo "$as_me: failed program was:" >&5
22079 sed 's/^/| /' conftest.$ac_ext >&5
22080
22081 ac_lo= ac_hi=
22082 fi
22083
22084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22085 fi
22086
22087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22088 # Binary search between lo and hi bounds.
22089 while test "x$ac_lo" != "x$ac_hi"; do
22090 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22091 cat >conftest.$ac_ext <<_ACEOF
22092 /* confdefs.h. */
22093 _ACEOF
22094 cat confdefs.h >>conftest.$ac_ext
22095 cat >>conftest.$ac_ext <<_ACEOF
22096 /* end confdefs.h. */
22097 $ac_includes_default
22098 int
22099 main ()
22100 {
22101 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
22102 test_array [0] = 0
22103
22104 ;
22105 return 0;
22106 }
22107 _ACEOF
22108 rm -f conftest.$ac_objext
22109 if { (ac_try="$ac_compile"
22110 case "(($ac_try" in
22111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112 *) ac_try_echo=$ac_try;;
22113 esac
22114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22115 $as_echo "$ac_try_echo") >&5
22116 (eval "$ac_compile") 2>conftest.er1
22117 ac_status=$?
22118 grep -v '^ *+' conftest.er1 >conftest.err
22119 rm -f conftest.er1
22120 cat conftest.err >&5
22121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); } && {
22123 test -z "$ac_c_werror_flag" ||
22124 test ! -s conftest.err
22125 } && test -s conftest.$ac_objext; then
22126 ac_hi=$ac_mid
22127 else
22128 $as_echo "$as_me: failed program was:" >&5
22129 sed 's/^/| /' conftest.$ac_ext >&5
22130
22131 ac_lo=`expr '(' $ac_mid ')' + 1`
22132 fi
22133
22134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22135 done
22136 case $ac_lo in
22137 ?*) ac_cv_sizeof_long=$ac_lo;;
22138 '') if test "$ac_cv_type_long" = yes; then
22139 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22141 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22142 See \`config.log' for more details." >&5
22143 $as_echo "$as_me: error: cannot compute sizeof (long)
22144 See \`config.log' for more details." >&2;}
22145 { (exit 77); exit 77; }; }; }
22146 else
22147 ac_cv_sizeof_long=0
22148 fi ;;
22149 esac
22150 else
22151 cat >conftest.$ac_ext <<_ACEOF
22152 /* confdefs.h. */
22153 _ACEOF
22154 cat confdefs.h >>conftest.$ac_ext
22155 cat >>conftest.$ac_ext <<_ACEOF
22156 /* end confdefs.h. */
22157 $ac_includes_default
22158 static long int longval () { return (long int) (sizeof (long)); }
22159 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
22160 #include <stdio.h>
22161 #include <stdlib.h>
22162 int
22163 main ()
22164 {
22165
22166 FILE *f = fopen ("conftest.val", "w");
22167 if (! f)
22168 return 1;
22169 if (((long int) (sizeof (long))) < 0)
22170 {
22171 long int i = longval ();
22172 if (i != ((long int) (sizeof (long))))
22173 return 1;
22174 fprintf (f, "%ld", i);
22175 }
22176 else
22177 {
22178 unsigned long int i = ulongval ();
22179 if (i != ((long int) (sizeof (long))))
22180 return 1;
22181 fprintf (f, "%lu", i);
22182 }
22183 /* Do not output a trailing newline, as this causes \r\n confusion
22184 on some platforms. */
22185 return ferror (f) || fclose (f) != 0;
22186
22187 ;
22188 return 0;
22189 }
22190 _ACEOF
22191 rm -f conftest$ac_exeext
22192 if { (ac_try="$ac_link"
22193 case "(($ac_try" in
22194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22195 *) ac_try_echo=$ac_try;;
22196 esac
22197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22198 $as_echo "$ac_try_echo") >&5
22199 (eval "$ac_link") 2>&5
22200 ac_status=$?
22201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22203 { (case "(($ac_try" in
22204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22205 *) ac_try_echo=$ac_try;;
22206 esac
22207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22208 $as_echo "$ac_try_echo") >&5
22209 (eval "$ac_try") 2>&5
22210 ac_status=$?
22211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212 (exit $ac_status); }; }; then
22213 ac_cv_sizeof_long=`cat conftest.val`
22214 else
22215 $as_echo "$as_me: program exited with status $ac_status" >&5
22216 $as_echo "$as_me: failed program was:" >&5
22217 sed 's/^/| /' conftest.$ac_ext >&5
22218
22219 ( exit $ac_status )
22220 if test "$ac_cv_type_long" = yes; then
22221 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22223 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22224 See \`config.log' for more details." >&5
22225 $as_echo "$as_me: error: cannot compute sizeof (long)
22226 See \`config.log' for more details." >&2;}
22227 { (exit 77); exit 77; }; }; }
22228 else
22229 ac_cv_sizeof_long=0
22230 fi
22231 fi
22232 rm -rf conftest.dSYM
22233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22234 fi
22235 rm -f conftest.val
22236 fi
22237 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22238 $as_echo "$ac_cv_sizeof_long" >&6; }
22239
22240
22241
22242 cat >>confdefs.h <<_ACEOF
22243 #define SIZEOF_LONG $ac_cv_sizeof_long
22244 _ACEOF
22245
22246
22247 # The cast to long int works around a bug in the HP C Compiler
22248 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22249 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22250 # This bug is HP SR number 8606223364.
22251 { $as_echo "$as_me:$LINENO: checking size of char *" >&5
22252 $as_echo_n "checking size of char *... " >&6; }
22253 if test "${ac_cv_sizeof_char_p+set}" = set; then
22254 $as_echo_n "(cached) " >&6
22255 else
22256 if test "$cross_compiling" = yes; then
22257 # Depending upon the size, compute the lo and hi bounds.
22258 cat >conftest.$ac_ext <<_ACEOF
22259 /* confdefs.h. */
22260 _ACEOF
22261 cat confdefs.h >>conftest.$ac_ext
22262 cat >>conftest.$ac_ext <<_ACEOF
22263 /* end confdefs.h. */
22264 $ac_includes_default
22265 int
22266 main ()
22267 {
22268 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= 0)];
22269 test_array [0] = 0
22270
22271 ;
22272 return 0;
22273 }
22274 _ACEOF
22275 rm -f conftest.$ac_objext
22276 if { (ac_try="$ac_compile"
22277 case "(($ac_try" in
22278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22279 *) ac_try_echo=$ac_try;;
22280 esac
22281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22282 $as_echo "$ac_try_echo") >&5
22283 (eval "$ac_compile") 2>conftest.er1
22284 ac_status=$?
22285 grep -v '^ *+' conftest.er1 >conftest.err
22286 rm -f conftest.er1
22287 cat conftest.err >&5
22288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); } && {
22290 test -z "$ac_c_werror_flag" ||
22291 test ! -s conftest.err
22292 } && test -s conftest.$ac_objext; then
22293 ac_lo=0 ac_mid=0
22294 while :; do
22295 cat >conftest.$ac_ext <<_ACEOF
22296 /* confdefs.h. */
22297 _ACEOF
22298 cat confdefs.h >>conftest.$ac_ext
22299 cat >>conftest.$ac_ext <<_ACEOF
22300 /* end confdefs.h. */
22301 $ac_includes_default
22302 int
22303 main ()
22304 {
22305 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
22306 test_array [0] = 0
22307
22308 ;
22309 return 0;
22310 }
22311 _ACEOF
22312 rm -f conftest.$ac_objext
22313 if { (ac_try="$ac_compile"
22314 case "(($ac_try" in
22315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22316 *) ac_try_echo=$ac_try;;
22317 esac
22318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22319 $as_echo "$ac_try_echo") >&5
22320 (eval "$ac_compile") 2>conftest.er1
22321 ac_status=$?
22322 grep -v '^ *+' conftest.er1 >conftest.err
22323 rm -f conftest.er1
22324 cat conftest.err >&5
22325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } && {
22327 test -z "$ac_c_werror_flag" ||
22328 test ! -s conftest.err
22329 } && test -s conftest.$ac_objext; then
22330 ac_hi=$ac_mid; break
22331 else
22332 $as_echo "$as_me: failed program was:" >&5
22333 sed 's/^/| /' conftest.$ac_ext >&5
22334
22335 ac_lo=`expr $ac_mid + 1`
22336 if test $ac_lo -le $ac_mid; then
22337 ac_lo= ac_hi=
22338 break
22339 fi
22340 ac_mid=`expr 2 '*' $ac_mid + 1`
22341 fi
22342
22343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22344 done
22345 else
22346 $as_echo "$as_me: failed program was:" >&5
22347 sed 's/^/| /' conftest.$ac_ext >&5
22348
22349 cat >conftest.$ac_ext <<_ACEOF
22350 /* confdefs.h. */
22351 _ACEOF
22352 cat confdefs.h >>conftest.$ac_ext
22353 cat >>conftest.$ac_ext <<_ACEOF
22354 /* end confdefs.h. */
22355 $ac_includes_default
22356 int
22357 main ()
22358 {
22359 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) < 0)];
22360 test_array [0] = 0
22361
22362 ;
22363 return 0;
22364 }
22365 _ACEOF
22366 rm -f conftest.$ac_objext
22367 if { (ac_try="$ac_compile"
22368 case "(($ac_try" in
22369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22370 *) ac_try_echo=$ac_try;;
22371 esac
22372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22373 $as_echo "$ac_try_echo") >&5
22374 (eval "$ac_compile") 2>conftest.er1
22375 ac_status=$?
22376 grep -v '^ *+' conftest.er1 >conftest.err
22377 rm -f conftest.er1
22378 cat conftest.err >&5
22379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380 (exit $ac_status); } && {
22381 test -z "$ac_c_werror_flag" ||
22382 test ! -s conftest.err
22383 } && test -s conftest.$ac_objext; then
22384 ac_hi=-1 ac_mid=-1
22385 while :; do
22386 cat >conftest.$ac_ext <<_ACEOF
22387 /* confdefs.h. */
22388 _ACEOF
22389 cat confdefs.h >>conftest.$ac_ext
22390 cat >>conftest.$ac_ext <<_ACEOF
22391 /* end confdefs.h. */
22392 $ac_includes_default
22393 int
22394 main ()
22395 {
22396 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= $ac_mid)];
22397 test_array [0] = 0
22398
22399 ;
22400 return 0;
22401 }
22402 _ACEOF
22403 rm -f conftest.$ac_objext
22404 if { (ac_try="$ac_compile"
22405 case "(($ac_try" in
22406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22407 *) ac_try_echo=$ac_try;;
22408 esac
22409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22410 $as_echo "$ac_try_echo") >&5
22411 (eval "$ac_compile") 2>conftest.er1
22412 ac_status=$?
22413 grep -v '^ *+' conftest.er1 >conftest.err
22414 rm -f conftest.er1
22415 cat conftest.err >&5
22416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } && {
22418 test -z "$ac_c_werror_flag" ||
22419 test ! -s conftest.err
22420 } && test -s conftest.$ac_objext; then
22421 ac_lo=$ac_mid; break
22422 else
22423 $as_echo "$as_me: failed program was:" >&5
22424 sed 's/^/| /' conftest.$ac_ext >&5
22425
22426 ac_hi=`expr '(' $ac_mid ')' - 1`
22427 if test $ac_mid -le $ac_hi; then
22428 ac_lo= ac_hi=
22429 break
22430 fi
22431 ac_mid=`expr 2 '*' $ac_mid`
22432 fi
22433
22434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22435 done
22436 else
22437 $as_echo "$as_me: failed program was:" >&5
22438 sed 's/^/| /' conftest.$ac_ext >&5
22439
22440 ac_lo= ac_hi=
22441 fi
22442
22443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22444 fi
22445
22446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22447 # Binary search between lo and hi bounds.
22448 while test "x$ac_lo" != "x$ac_hi"; do
22449 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22450 cat >conftest.$ac_ext <<_ACEOF
22451 /* confdefs.h. */
22452 _ACEOF
22453 cat confdefs.h >>conftest.$ac_ext
22454 cat >>conftest.$ac_ext <<_ACEOF
22455 /* end confdefs.h. */
22456 $ac_includes_default
22457 int
22458 main ()
22459 {
22460 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
22461 test_array [0] = 0
22462
22463 ;
22464 return 0;
22465 }
22466 _ACEOF
22467 rm -f conftest.$ac_objext
22468 if { (ac_try="$ac_compile"
22469 case "(($ac_try" in
22470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471 *) ac_try_echo=$ac_try;;
22472 esac
22473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22474 $as_echo "$ac_try_echo") >&5
22475 (eval "$ac_compile") 2>conftest.er1
22476 ac_status=$?
22477 grep -v '^ *+' conftest.er1 >conftest.err
22478 rm -f conftest.er1
22479 cat conftest.err >&5
22480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); } && {
22482 test -z "$ac_c_werror_flag" ||
22483 test ! -s conftest.err
22484 } && test -s conftest.$ac_objext; then
22485 ac_hi=$ac_mid
22486 else
22487 $as_echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22489
22490 ac_lo=`expr '(' $ac_mid ')' + 1`
22491 fi
22492
22493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22494 done
22495 case $ac_lo in
22496 ?*) ac_cv_sizeof_char_p=$ac_lo;;
22497 '') if test "$ac_cv_type_char_p" = yes; then
22498 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22500 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
22501 See \`config.log' for more details." >&5
22502 $as_echo "$as_me: error: cannot compute sizeof (char *)
22503 See \`config.log' for more details." >&2;}
22504 { (exit 77); exit 77; }; }; }
22505 else
22506 ac_cv_sizeof_char_p=0
22507 fi ;;
22508 esac
22509 else
22510 cat >conftest.$ac_ext <<_ACEOF
22511 /* confdefs.h. */
22512 _ACEOF
22513 cat confdefs.h >>conftest.$ac_ext
22514 cat >>conftest.$ac_ext <<_ACEOF
22515 /* end confdefs.h. */
22516 $ac_includes_default
22517 static long int longval () { return (long int) (sizeof (char *)); }
22518 static unsigned long int ulongval () { return (long int) (sizeof (char *)); }
22519 #include <stdio.h>
22520 #include <stdlib.h>
22521 int
22522 main ()
22523 {
22524
22525 FILE *f = fopen ("conftest.val", "w");
22526 if (! f)
22527 return 1;
22528 if (((long int) (sizeof (char *))) < 0)
22529 {
22530 long int i = longval ();
22531 if (i != ((long int) (sizeof (char *))))
22532 return 1;
22533 fprintf (f, "%ld", i);
22534 }
22535 else
22536 {
22537 unsigned long int i = ulongval ();
22538 if (i != ((long int) (sizeof (char *))))
22539 return 1;
22540 fprintf (f, "%lu", i);
22541 }
22542 /* Do not output a trailing newline, as this causes \r\n confusion
22543 on some platforms. */
22544 return ferror (f) || fclose (f) != 0;
22545
22546 ;
22547 return 0;
22548 }
22549 _ACEOF
22550 rm -f conftest$ac_exeext
22551 if { (ac_try="$ac_link"
22552 case "(($ac_try" in
22553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22554 *) ac_try_echo=$ac_try;;
22555 esac
22556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22557 $as_echo "$ac_try_echo") >&5
22558 (eval "$ac_link") 2>&5
22559 ac_status=$?
22560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22562 { (case "(($ac_try" in
22563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22564 *) ac_try_echo=$ac_try;;
22565 esac
22566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22567 $as_echo "$ac_try_echo") >&5
22568 (eval "$ac_try") 2>&5
22569 ac_status=$?
22570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); }; }; then
22572 ac_cv_sizeof_char_p=`cat conftest.val`
22573 else
22574 $as_echo "$as_me: program exited with status $ac_status" >&5
22575 $as_echo "$as_me: failed program was:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22577
22578 ( exit $ac_status )
22579 if test "$ac_cv_type_char_p" = yes; then
22580 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22582 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
22583 See \`config.log' for more details." >&5
22584 $as_echo "$as_me: error: cannot compute sizeof (char *)
22585 See \`config.log' for more details." >&2;}
22586 { (exit 77); exit 77; }; }; }
22587 else
22588 ac_cv_sizeof_char_p=0
22589 fi
22590 fi
22591 rm -rf conftest.dSYM
22592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22593 fi
22594 rm -f conftest.val
22595 fi
22596 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
22597 $as_echo "$ac_cv_sizeof_char_p" >&6; }
22598
22599
22600
22601 cat >>confdefs.h <<_ACEOF
22602 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
22603 _ACEOF
22604
22605
22606 # The cast to long int works around a bug in the HP C Compiler
22607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22608 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22609 # This bug is HP SR number 8606223364.
22610 { $as_echo "$as_me:$LINENO: checking size of double" >&5
22611 $as_echo_n "checking size of double... " >&6; }
22612 if test "${ac_cv_sizeof_double+set}" = set; then
22613 $as_echo_n "(cached) " >&6
22614 else
22615 if test "$cross_compiling" = yes; then
22616 # Depending upon the size, compute the lo and hi bounds.
22617 cat >conftest.$ac_ext <<_ACEOF
22618 /* confdefs.h. */
22619 _ACEOF
22620 cat confdefs.h >>conftest.$ac_ext
22621 cat >>conftest.$ac_ext <<_ACEOF
22622 /* end confdefs.h. */
22623 $ac_includes_default
22624 int
22625 main ()
22626 {
22627 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
22628 test_array [0] = 0
22629
22630 ;
22631 return 0;
22632 }
22633 _ACEOF
22634 rm -f conftest.$ac_objext
22635 if { (ac_try="$ac_compile"
22636 case "(($ac_try" in
22637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22638 *) ac_try_echo=$ac_try;;
22639 esac
22640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22641 $as_echo "$ac_try_echo") >&5
22642 (eval "$ac_compile") 2>conftest.er1
22643 ac_status=$?
22644 grep -v '^ *+' conftest.er1 >conftest.err
22645 rm -f conftest.er1
22646 cat conftest.err >&5
22647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); } && {
22649 test -z "$ac_c_werror_flag" ||
22650 test ! -s conftest.err
22651 } && test -s conftest.$ac_objext; then
22652 ac_lo=0 ac_mid=0
22653 while :; do
22654 cat >conftest.$ac_ext <<_ACEOF
22655 /* confdefs.h. */
22656 _ACEOF
22657 cat confdefs.h >>conftest.$ac_ext
22658 cat >>conftest.$ac_ext <<_ACEOF
22659 /* end confdefs.h. */
22660 $ac_includes_default
22661 int
22662 main ()
22663 {
22664 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
22665 test_array [0] = 0
22666
22667 ;
22668 return 0;
22669 }
22670 _ACEOF
22671 rm -f conftest.$ac_objext
22672 if { (ac_try="$ac_compile"
22673 case "(($ac_try" in
22674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22675 *) ac_try_echo=$ac_try;;
22676 esac
22677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22678 $as_echo "$ac_try_echo") >&5
22679 (eval "$ac_compile") 2>conftest.er1
22680 ac_status=$?
22681 grep -v '^ *+' conftest.er1 >conftest.err
22682 rm -f conftest.er1
22683 cat conftest.err >&5
22684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); } && {
22686 test -z "$ac_c_werror_flag" ||
22687 test ! -s conftest.err
22688 } && test -s conftest.$ac_objext; then
22689 ac_hi=$ac_mid; break
22690 else
22691 $as_echo "$as_me: failed program was:" >&5
22692 sed 's/^/| /' conftest.$ac_ext >&5
22693
22694 ac_lo=`expr $ac_mid + 1`
22695 if test $ac_lo -le $ac_mid; then
22696 ac_lo= ac_hi=
22697 break
22698 fi
22699 ac_mid=`expr 2 '*' $ac_mid + 1`
22700 fi
22701
22702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22703 done
22704 else
22705 $as_echo "$as_me: failed program was:" >&5
22706 sed 's/^/| /' conftest.$ac_ext >&5
22707
22708 cat >conftest.$ac_ext <<_ACEOF
22709 /* confdefs.h. */
22710 _ACEOF
22711 cat confdefs.h >>conftest.$ac_ext
22712 cat >>conftest.$ac_ext <<_ACEOF
22713 /* end confdefs.h. */
22714 $ac_includes_default
22715 int
22716 main ()
22717 {
22718 static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
22719 test_array [0] = 0
22720
22721 ;
22722 return 0;
22723 }
22724 _ACEOF
22725 rm -f conftest.$ac_objext
22726 if { (ac_try="$ac_compile"
22727 case "(($ac_try" in
22728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22729 *) ac_try_echo=$ac_try;;
22730 esac
22731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22732 $as_echo "$ac_try_echo") >&5
22733 (eval "$ac_compile") 2>conftest.er1
22734 ac_status=$?
22735 grep -v '^ *+' conftest.er1 >conftest.err
22736 rm -f conftest.er1
22737 cat conftest.err >&5
22738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739 (exit $ac_status); } && {
22740 test -z "$ac_c_werror_flag" ||
22741 test ! -s conftest.err
22742 } && test -s conftest.$ac_objext; then
22743 ac_hi=-1 ac_mid=-1
22744 while :; do
22745 cat >conftest.$ac_ext <<_ACEOF
22746 /* confdefs.h. */
22747 _ACEOF
22748 cat confdefs.h >>conftest.$ac_ext
22749 cat >>conftest.$ac_ext <<_ACEOF
22750 /* end confdefs.h. */
22751 $ac_includes_default
22752 int
22753 main ()
22754 {
22755 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
22756 test_array [0] = 0
22757
22758 ;
22759 return 0;
22760 }
22761 _ACEOF
22762 rm -f conftest.$ac_objext
22763 if { (ac_try="$ac_compile"
22764 case "(($ac_try" in
22765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22766 *) ac_try_echo=$ac_try;;
22767 esac
22768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22769 $as_echo "$ac_try_echo") >&5
22770 (eval "$ac_compile") 2>conftest.er1
22771 ac_status=$?
22772 grep -v '^ *+' conftest.er1 >conftest.err
22773 rm -f conftest.er1
22774 cat conftest.err >&5
22775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); } && {
22777 test -z "$ac_c_werror_flag" ||
22778 test ! -s conftest.err
22779 } && test -s conftest.$ac_objext; then
22780 ac_lo=$ac_mid; break
22781 else
22782 $as_echo "$as_me: failed program was:" >&5
22783 sed 's/^/| /' conftest.$ac_ext >&5
22784
22785 ac_hi=`expr '(' $ac_mid ')' - 1`
22786 if test $ac_mid -le $ac_hi; then
22787 ac_lo= ac_hi=
22788 break
22789 fi
22790 ac_mid=`expr 2 '*' $ac_mid`
22791 fi
22792
22793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22794 done
22795 else
22796 $as_echo "$as_me: failed program was:" >&5
22797 sed 's/^/| /' conftest.$ac_ext >&5
22798
22799 ac_lo= ac_hi=
22800 fi
22801
22802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22803 fi
22804
22805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22806 # Binary search between lo and hi bounds.
22807 while test "x$ac_lo" != "x$ac_hi"; do
22808 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22809 cat >conftest.$ac_ext <<_ACEOF
22810 /* confdefs.h. */
22811 _ACEOF
22812 cat confdefs.h >>conftest.$ac_ext
22813 cat >>conftest.$ac_ext <<_ACEOF
22814 /* end confdefs.h. */
22815 $ac_includes_default
22816 int
22817 main ()
22818 {
22819 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
22820 test_array [0] = 0
22821
22822 ;
22823 return 0;
22824 }
22825 _ACEOF
22826 rm -f conftest.$ac_objext
22827 if { (ac_try="$ac_compile"
22828 case "(($ac_try" in
22829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22830 *) ac_try_echo=$ac_try;;
22831 esac
22832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22833 $as_echo "$ac_try_echo") >&5
22834 (eval "$ac_compile") 2>conftest.er1
22835 ac_status=$?
22836 grep -v '^ *+' conftest.er1 >conftest.err
22837 rm -f conftest.er1
22838 cat conftest.err >&5
22839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); } && {
22841 test -z "$ac_c_werror_flag" ||
22842 test ! -s conftest.err
22843 } && test -s conftest.$ac_objext; then
22844 ac_hi=$ac_mid
22845 else
22846 $as_echo "$as_me: failed program was:" >&5
22847 sed 's/^/| /' conftest.$ac_ext >&5
22848
22849 ac_lo=`expr '(' $ac_mid ')' + 1`
22850 fi
22851
22852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22853 done
22854 case $ac_lo in
22855 ?*) ac_cv_sizeof_double=$ac_lo;;
22856 '') if test "$ac_cv_type_double" = yes; then
22857 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22859 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
22860 See \`config.log' for more details." >&5
22861 $as_echo "$as_me: error: cannot compute sizeof (double)
22862 See \`config.log' for more details." >&2;}
22863 { (exit 77); exit 77; }; }; }
22864 else
22865 ac_cv_sizeof_double=0
22866 fi ;;
22867 esac
22868 else
22869 cat >conftest.$ac_ext <<_ACEOF
22870 /* confdefs.h. */
22871 _ACEOF
22872 cat confdefs.h >>conftest.$ac_ext
22873 cat >>conftest.$ac_ext <<_ACEOF
22874 /* end confdefs.h. */
22875 $ac_includes_default
22876 static long int longval () { return (long int) (sizeof (double)); }
22877 static unsigned long int ulongval () { return (long int) (sizeof (double)); }
22878 #include <stdio.h>
22879 #include <stdlib.h>
22880 int
22881 main ()
22882 {
22883
22884 FILE *f = fopen ("conftest.val", "w");
22885 if (! f)
22886 return 1;
22887 if (((long int) (sizeof (double))) < 0)
22888 {
22889 long int i = longval ();
22890 if (i != ((long int) (sizeof (double))))
22891 return 1;
22892 fprintf (f, "%ld", i);
22893 }
22894 else
22895 {
22896 unsigned long int i = ulongval ();
22897 if (i != ((long int) (sizeof (double))))
22898 return 1;
22899 fprintf (f, "%lu", i);
22900 }
22901 /* Do not output a trailing newline, as this causes \r\n confusion
22902 on some platforms. */
22903 return ferror (f) || fclose (f) != 0;
22904
22905 ;
22906 return 0;
22907 }
22908 _ACEOF
22909 rm -f conftest$ac_exeext
22910 if { (ac_try="$ac_link"
22911 case "(($ac_try" in
22912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22913 *) ac_try_echo=$ac_try;;
22914 esac
22915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22916 $as_echo "$ac_try_echo") >&5
22917 (eval "$ac_link") 2>&5
22918 ac_status=$?
22919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22921 { (case "(($ac_try" in
22922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22923 *) ac_try_echo=$ac_try;;
22924 esac
22925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22926 $as_echo "$ac_try_echo") >&5
22927 (eval "$ac_try") 2>&5
22928 ac_status=$?
22929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); }; }; then
22931 ac_cv_sizeof_double=`cat conftest.val`
22932 else
22933 $as_echo "$as_me: program exited with status $ac_status" >&5
22934 $as_echo "$as_me: failed program was:" >&5
22935 sed 's/^/| /' conftest.$ac_ext >&5
22936
22937 ( exit $ac_status )
22938 if test "$ac_cv_type_double" = yes; then
22939 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22941 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
22942 See \`config.log' for more details." >&5
22943 $as_echo "$as_me: error: cannot compute sizeof (double)
22944 See \`config.log' for more details." >&2;}
22945 { (exit 77); exit 77; }; }; }
22946 else
22947 ac_cv_sizeof_double=0
22948 fi
22949 fi
22950 rm -rf conftest.dSYM
22951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22952 fi
22953 rm -f conftest.val
22954 fi
22955 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
22956 $as_echo "$ac_cv_sizeof_double" >&6; }
22957
22958
22959
22960 cat >>confdefs.h <<_ACEOF
22961 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
22962 _ACEOF
22963
22964
22965 # The cast to long int works around a bug in the HP C Compiler
22966 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22967 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22968 # This bug is HP SR number 8606223364.
22969 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
22970 $as_echo_n "checking size of long long... " >&6; }
22971 if test "${ac_cv_sizeof_long_long+set}" = set; then
22972 $as_echo_n "(cached) " >&6
22973 else
22974 if test "$cross_compiling" = yes; then
22975 # Depending upon the size, compute the lo and hi bounds.
22976 cat >conftest.$ac_ext <<_ACEOF
22977 /* confdefs.h. */
22978 _ACEOF
22979 cat confdefs.h >>conftest.$ac_ext
22980 cat >>conftest.$ac_ext <<_ACEOF
22981 /* end confdefs.h. */
22982 $ac_includes_default
22983 int
22984 main ()
22985 {
22986 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
22987 test_array [0] = 0
22988
22989 ;
22990 return 0;
22991 }
22992 _ACEOF
22993 rm -f conftest.$ac_objext
22994 if { (ac_try="$ac_compile"
22995 case "(($ac_try" in
22996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22997 *) ac_try_echo=$ac_try;;
22998 esac
22999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23000 $as_echo "$ac_try_echo") >&5
23001 (eval "$ac_compile") 2>conftest.er1
23002 ac_status=$?
23003 grep -v '^ *+' conftest.er1 >conftest.err
23004 rm -f conftest.er1
23005 cat conftest.err >&5
23006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); } && {
23008 test -z "$ac_c_werror_flag" ||
23009 test ! -s conftest.err
23010 } && test -s conftest.$ac_objext; then
23011 ac_lo=0 ac_mid=0
23012 while :; do
23013 cat >conftest.$ac_ext <<_ACEOF
23014 /* confdefs.h. */
23015 _ACEOF
23016 cat confdefs.h >>conftest.$ac_ext
23017 cat >>conftest.$ac_ext <<_ACEOF
23018 /* end confdefs.h. */
23019 $ac_includes_default
23020 int
23021 main ()
23022 {
23023 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
23024 test_array [0] = 0
23025
23026 ;
23027 return 0;
23028 }
23029 _ACEOF
23030 rm -f conftest.$ac_objext
23031 if { (ac_try="$ac_compile"
23032 case "(($ac_try" in
23033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23034 *) ac_try_echo=$ac_try;;
23035 esac
23036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23037 $as_echo "$ac_try_echo") >&5
23038 (eval "$ac_compile") 2>conftest.er1
23039 ac_status=$?
23040 grep -v '^ *+' conftest.er1 >conftest.err
23041 rm -f conftest.er1
23042 cat conftest.err >&5
23043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); } && {
23045 test -z "$ac_c_werror_flag" ||
23046 test ! -s conftest.err
23047 } && test -s conftest.$ac_objext; then
23048 ac_hi=$ac_mid; break
23049 else
23050 $as_echo "$as_me: failed program was:" >&5
23051 sed 's/^/| /' conftest.$ac_ext >&5
23052
23053 ac_lo=`expr $ac_mid + 1`
23054 if test $ac_lo -le $ac_mid; then
23055 ac_lo= ac_hi=
23056 break
23057 fi
23058 ac_mid=`expr 2 '*' $ac_mid + 1`
23059 fi
23060
23061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23062 done
23063 else
23064 $as_echo "$as_me: failed program was:" >&5
23065 sed 's/^/| /' conftest.$ac_ext >&5
23066
23067 cat >conftest.$ac_ext <<_ACEOF
23068 /* confdefs.h. */
23069 _ACEOF
23070 cat confdefs.h >>conftest.$ac_ext
23071 cat >>conftest.$ac_ext <<_ACEOF
23072 /* end confdefs.h. */
23073 $ac_includes_default
23074 int
23075 main ()
23076 {
23077 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
23078 test_array [0] = 0
23079
23080 ;
23081 return 0;
23082 }
23083 _ACEOF
23084 rm -f conftest.$ac_objext
23085 if { (ac_try="$ac_compile"
23086 case "(($ac_try" in
23087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088 *) ac_try_echo=$ac_try;;
23089 esac
23090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23091 $as_echo "$ac_try_echo") >&5
23092 (eval "$ac_compile") 2>conftest.er1
23093 ac_status=$?
23094 grep -v '^ *+' conftest.er1 >conftest.err
23095 rm -f conftest.er1
23096 cat conftest.err >&5
23097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); } && {
23099 test -z "$ac_c_werror_flag" ||
23100 test ! -s conftest.err
23101 } && test -s conftest.$ac_objext; then
23102 ac_hi=-1 ac_mid=-1
23103 while :; do
23104 cat >conftest.$ac_ext <<_ACEOF
23105 /* confdefs.h. */
23106 _ACEOF
23107 cat confdefs.h >>conftest.$ac_ext
23108 cat >>conftest.$ac_ext <<_ACEOF
23109 /* end confdefs.h. */
23110 $ac_includes_default
23111 int
23112 main ()
23113 {
23114 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
23115 test_array [0] = 0
23116
23117 ;
23118 return 0;
23119 }
23120 _ACEOF
23121 rm -f conftest.$ac_objext
23122 if { (ac_try="$ac_compile"
23123 case "(($ac_try" in
23124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125 *) ac_try_echo=$ac_try;;
23126 esac
23127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23128 $as_echo "$ac_try_echo") >&5
23129 (eval "$ac_compile") 2>conftest.er1
23130 ac_status=$?
23131 grep -v '^ *+' conftest.er1 >conftest.err
23132 rm -f conftest.er1
23133 cat conftest.err >&5
23134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); } && {
23136 test -z "$ac_c_werror_flag" ||
23137 test ! -s conftest.err
23138 } && test -s conftest.$ac_objext; then
23139 ac_lo=$ac_mid; break
23140 else
23141 $as_echo "$as_me: failed program was:" >&5
23142 sed 's/^/| /' conftest.$ac_ext >&5
23143
23144 ac_hi=`expr '(' $ac_mid ')' - 1`
23145 if test $ac_mid -le $ac_hi; then
23146 ac_lo= ac_hi=
23147 break
23148 fi
23149 ac_mid=`expr 2 '*' $ac_mid`
23150 fi
23151
23152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23153 done
23154 else
23155 $as_echo "$as_me: failed program was:" >&5
23156 sed 's/^/| /' conftest.$ac_ext >&5
23157
23158 ac_lo= ac_hi=
23159 fi
23160
23161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23162 fi
23163
23164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23165 # Binary search between lo and hi bounds.
23166 while test "x$ac_lo" != "x$ac_hi"; do
23167 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23168 cat >conftest.$ac_ext <<_ACEOF
23169 /* confdefs.h. */
23170 _ACEOF
23171 cat confdefs.h >>conftest.$ac_ext
23172 cat >>conftest.$ac_ext <<_ACEOF
23173 /* end confdefs.h. */
23174 $ac_includes_default
23175 int
23176 main ()
23177 {
23178 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
23179 test_array [0] = 0
23180
23181 ;
23182 return 0;
23183 }
23184 _ACEOF
23185 rm -f conftest.$ac_objext
23186 if { (ac_try="$ac_compile"
23187 case "(($ac_try" in
23188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23189 *) ac_try_echo=$ac_try;;
23190 esac
23191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23192 $as_echo "$ac_try_echo") >&5
23193 (eval "$ac_compile") 2>conftest.er1
23194 ac_status=$?
23195 grep -v '^ *+' conftest.er1 >conftest.err
23196 rm -f conftest.er1
23197 cat conftest.err >&5
23198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199 (exit $ac_status); } && {
23200 test -z "$ac_c_werror_flag" ||
23201 test ! -s conftest.err
23202 } && test -s conftest.$ac_objext; then
23203 ac_hi=$ac_mid
23204 else
23205 $as_echo "$as_me: failed program was:" >&5
23206 sed 's/^/| /' conftest.$ac_ext >&5
23207
23208 ac_lo=`expr '(' $ac_mid ')' + 1`
23209 fi
23210
23211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23212 done
23213 case $ac_lo in
23214 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23215 '') if test "$ac_cv_type_long_long" = yes; then
23216 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23218 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23219 See \`config.log' for more details." >&5
23220 $as_echo "$as_me: error: cannot compute sizeof (long long)
23221 See \`config.log' for more details." >&2;}
23222 { (exit 77); exit 77; }; }; }
23223 else
23224 ac_cv_sizeof_long_long=0
23225 fi ;;
23226 esac
23227 else
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 static long int longval () { return (long int) (sizeof (long long)); }
23236 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
23237 #include <stdio.h>
23238 #include <stdlib.h>
23239 int
23240 main ()
23241 {
23242
23243 FILE *f = fopen ("conftest.val", "w");
23244 if (! f)
23245 return 1;
23246 if (((long int) (sizeof (long long))) < 0)
23247 {
23248 long int i = longval ();
23249 if (i != ((long int) (sizeof (long long))))
23250 return 1;
23251 fprintf (f, "%ld", i);
23252 }
23253 else
23254 {
23255 unsigned long int i = ulongval ();
23256 if (i != ((long int) (sizeof (long long))))
23257 return 1;
23258 fprintf (f, "%lu", i);
23259 }
23260 /* Do not output a trailing newline, as this causes \r\n confusion
23261 on some platforms. */
23262 return ferror (f) || fclose (f) != 0;
23263
23264 ;
23265 return 0;
23266 }
23267 _ACEOF
23268 rm -f conftest$ac_exeext
23269 if { (ac_try="$ac_link"
23270 case "(($ac_try" in
23271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23272 *) ac_try_echo=$ac_try;;
23273 esac
23274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23275 $as_echo "$ac_try_echo") >&5
23276 (eval "$ac_link") 2>&5
23277 ac_status=$?
23278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
23287 ac_status=$?
23288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); }; }; then
23290 ac_cv_sizeof_long_long=`cat conftest.val`
23291 else
23292 $as_echo "$as_me: program exited with status $ac_status" >&5
23293 $as_echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23295
23296 ( exit $ac_status )
23297 if test "$ac_cv_type_long_long" = yes; then
23298 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23300 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23301 See \`config.log' for more details." >&5
23302 $as_echo "$as_me: error: cannot compute sizeof (long long)
23303 See \`config.log' for more details." >&2;}
23304 { (exit 77); exit 77; }; }; }
23305 else
23306 ac_cv_sizeof_long_long=0
23307 fi
23308 fi
23309 rm -rf conftest.dSYM
23310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23311 fi
23312 rm -f conftest.val
23313 fi
23314 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23315 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23316
23317
23318
23319 cat >>confdefs.h <<_ACEOF
23320 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23321 _ACEOF
23322
23323
23324
23325 { $as_echo "$as_me:$LINENO: checking for u_int" >&5
23326 $as_echo_n "checking for u_int... " >&6; }
23327 if test "${ac_cv_type_u_int+set}" = set; then
23328 $as_echo_n "(cached) " >&6
23329 else
23330 ac_cv_type_u_int=no
23331 cat >conftest.$ac_ext <<_ACEOF
23332 /* confdefs.h. */
23333 _ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h. */
23337 $ac_includes_default
23338 int
23339 main ()
23340 {
23341 if (sizeof (u_int))
23342 return 0;
23343 ;
23344 return 0;
23345 }
23346 _ACEOF
23347 rm -f conftest.$ac_objext
23348 if { (ac_try="$ac_compile"
23349 case "(($ac_try" in
23350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23351 *) ac_try_echo=$ac_try;;
23352 esac
23353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23354 $as_echo "$ac_try_echo") >&5
23355 (eval "$ac_compile") 2>conftest.er1
23356 ac_status=$?
23357 grep -v '^ *+' conftest.er1 >conftest.err
23358 rm -f conftest.er1
23359 cat conftest.err >&5
23360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361 (exit $ac_status); } && {
23362 test -z "$ac_c_werror_flag" ||
23363 test ! -s conftest.err
23364 } && test -s conftest.$ac_objext; then
23365 cat >conftest.$ac_ext <<_ACEOF
23366 /* confdefs.h. */
23367 _ACEOF
23368 cat confdefs.h >>conftest.$ac_ext
23369 cat >>conftest.$ac_ext <<_ACEOF
23370 /* end confdefs.h. */
23371 $ac_includes_default
23372 int
23373 main ()
23374 {
23375 if (sizeof ((u_int)))
23376 return 0;
23377 ;
23378 return 0;
23379 }
23380 _ACEOF
23381 rm -f conftest.$ac_objext
23382 if { (ac_try="$ac_compile"
23383 case "(($ac_try" in
23384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23385 *) ac_try_echo=$ac_try;;
23386 esac
23387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23388 $as_echo "$ac_try_echo") >&5
23389 (eval "$ac_compile") 2>conftest.er1
23390 ac_status=$?
23391 grep -v '^ *+' conftest.er1 >conftest.err
23392 rm -f conftest.er1
23393 cat conftest.err >&5
23394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395 (exit $ac_status); } && {
23396 test -z "$ac_c_werror_flag" ||
23397 test ! -s conftest.err
23398 } && test -s conftest.$ac_objext; then
23399 :
23400 else
23401 $as_echo "$as_me: failed program was:" >&5
23402 sed 's/^/| /' conftest.$ac_ext >&5
23403
23404 ac_cv_type_u_int=yes
23405 fi
23406
23407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23408 else
23409 $as_echo "$as_me: failed program was:" >&5
23410 sed 's/^/| /' conftest.$ac_ext >&5
23411
23412
23413 fi
23414
23415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23416 fi
23417 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
23418 $as_echo "$ac_cv_type_u_int" >&6; }
23419 if test "x$ac_cv_type_u_int" = x""yes; then
23420 :
23421 else
23422
23423 cat >>confdefs.h <<_ACEOF
23424 #define u_int unsigned int
23425 _ACEOF
23426
23427 fi
23428
23429 { $as_echo "$as_me:$LINENO: checking for u_long" >&5
23430 $as_echo_n "checking for u_long... " >&6; }
23431 if test "${ac_cv_type_u_long+set}" = set; then
23432 $as_echo_n "(cached) " >&6
23433 else
23434 ac_cv_type_u_long=no
23435 cat >conftest.$ac_ext <<_ACEOF
23436 /* confdefs.h. */
23437 _ACEOF
23438 cat confdefs.h >>conftest.$ac_ext
23439 cat >>conftest.$ac_ext <<_ACEOF
23440 /* end confdefs.h. */
23441 $ac_includes_default
23442 int
23443 main ()
23444 {
23445 if (sizeof (u_long))
23446 return 0;
23447 ;
23448 return 0;
23449 }
23450 _ACEOF
23451 rm -f conftest.$ac_objext
23452 if { (ac_try="$ac_compile"
23453 case "(($ac_try" in
23454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23455 *) ac_try_echo=$ac_try;;
23456 esac
23457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23458 $as_echo "$ac_try_echo") >&5
23459 (eval "$ac_compile") 2>conftest.er1
23460 ac_status=$?
23461 grep -v '^ *+' conftest.er1 >conftest.err
23462 rm -f conftest.er1
23463 cat conftest.err >&5
23464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465 (exit $ac_status); } && {
23466 test -z "$ac_c_werror_flag" ||
23467 test ! -s conftest.err
23468 } && test -s conftest.$ac_objext; then
23469 cat >conftest.$ac_ext <<_ACEOF
23470 /* confdefs.h. */
23471 _ACEOF
23472 cat confdefs.h >>conftest.$ac_ext
23473 cat >>conftest.$ac_ext <<_ACEOF
23474 /* end confdefs.h. */
23475 $ac_includes_default
23476 int
23477 main ()
23478 {
23479 if (sizeof ((u_long)))
23480 return 0;
23481 ;
23482 return 0;
23483 }
23484 _ACEOF
23485 rm -f conftest.$ac_objext
23486 if { (ac_try="$ac_compile"
23487 case "(($ac_try" in
23488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23489 *) ac_try_echo=$ac_try;;
23490 esac
23491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23492 $as_echo "$ac_try_echo") >&5
23493 (eval "$ac_compile") 2>conftest.er1
23494 ac_status=$?
23495 grep -v '^ *+' conftest.er1 >conftest.err
23496 rm -f conftest.er1
23497 cat conftest.err >&5
23498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499 (exit $ac_status); } && {
23500 test -z "$ac_c_werror_flag" ||
23501 test ! -s conftest.err
23502 } && test -s conftest.$ac_objext; then
23503 :
23504 else
23505 $as_echo "$as_me: failed program was:" >&5
23506 sed 's/^/| /' conftest.$ac_ext >&5
23507
23508 ac_cv_type_u_long=yes
23509 fi
23510
23511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23512 else
23513 $as_echo "$as_me: failed program was:" >&5
23514 sed 's/^/| /' conftest.$ac_ext >&5
23515
23516
23517 fi
23518
23519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23520 fi
23521 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
23522 $as_echo "$ac_cv_type_u_long" >&6; }
23523 if test "x$ac_cv_type_u_long" = x""yes; then
23524 :
23525 else
23526
23527 cat >>confdefs.h <<_ACEOF
23528 #define u_long unsigned long
23529 _ACEOF
23530
23531 fi
23532
23533
23534
23535 if test "$ac_cv_sizeof_short" = 2; then
23536 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
23537 $as_echo_n "checking for bits16_t... " >&6; }
23538 if test "${ac_cv_type_bits16_t+set}" = set; then
23539 $as_echo_n "(cached) " >&6
23540 else
23541 ac_cv_type_bits16_t=no
23542 cat >conftest.$ac_ext <<_ACEOF
23543 /* confdefs.h. */
23544 _ACEOF
23545 cat confdefs.h >>conftest.$ac_ext
23546 cat >>conftest.$ac_ext <<_ACEOF
23547 /* end confdefs.h. */
23548 $ac_includes_default
23549 int
23550 main ()
23551 {
23552 if (sizeof (bits16_t))
23553 return 0;
23554 ;
23555 return 0;
23556 }
23557 _ACEOF
23558 rm -f conftest.$ac_objext
23559 if { (ac_try="$ac_compile"
23560 case "(($ac_try" in
23561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23562 *) ac_try_echo=$ac_try;;
23563 esac
23564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23565 $as_echo "$ac_try_echo") >&5
23566 (eval "$ac_compile") 2>conftest.er1
23567 ac_status=$?
23568 grep -v '^ *+' conftest.er1 >conftest.err
23569 rm -f conftest.er1
23570 cat conftest.err >&5
23571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); } && {
23573 test -z "$ac_c_werror_flag" ||
23574 test ! -s conftest.err
23575 } && test -s conftest.$ac_objext; then
23576 cat >conftest.$ac_ext <<_ACEOF
23577 /* confdefs.h. */
23578 _ACEOF
23579 cat confdefs.h >>conftest.$ac_ext
23580 cat >>conftest.$ac_ext <<_ACEOF
23581 /* end confdefs.h. */
23582 $ac_includes_default
23583 int
23584 main ()
23585 {
23586 if (sizeof ((bits16_t)))
23587 return 0;
23588 ;
23589 return 0;
23590 }
23591 _ACEOF
23592 rm -f conftest.$ac_objext
23593 if { (ac_try="$ac_compile"
23594 case "(($ac_try" in
23595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23596 *) ac_try_echo=$ac_try;;
23597 esac
23598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23599 $as_echo "$ac_try_echo") >&5
23600 (eval "$ac_compile") 2>conftest.er1
23601 ac_status=$?
23602 grep -v '^ *+' conftest.er1 >conftest.err
23603 rm -f conftest.er1
23604 cat conftest.err >&5
23605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); } && {
23607 test -z "$ac_c_werror_flag" ||
23608 test ! -s conftest.err
23609 } && test -s conftest.$ac_objext; then
23610 :
23611 else
23612 $as_echo "$as_me: failed program was:" >&5
23613 sed 's/^/| /' conftest.$ac_ext >&5
23614
23615 ac_cv_type_bits16_t=yes
23616 fi
23617
23618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23619 else
23620 $as_echo "$as_me: failed program was:" >&5
23621 sed 's/^/| /' conftest.$ac_ext >&5
23622
23623
23624 fi
23625
23626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23627 fi
23628 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23629 $as_echo "$ac_cv_type_bits16_t" >&6; }
23630 if test "x$ac_cv_type_bits16_t" = x""yes; then
23631 :
23632 else
23633
23634 cat >>confdefs.h <<_ACEOF
23635 #define bits16_t short
23636 _ACEOF
23637
23638 fi
23639
23640 elif test "$ac_cv_sizeof_char" = 2; then
23641 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
23642 $as_echo_n "checking for bits16_t... " >&6; }
23643 if test "${ac_cv_type_bits16_t+set}" = set; then
23644 $as_echo_n "(cached) " >&6
23645 else
23646 ac_cv_type_bits16_t=no
23647 cat >conftest.$ac_ext <<_ACEOF
23648 /* confdefs.h. */
23649 _ACEOF
23650 cat confdefs.h >>conftest.$ac_ext
23651 cat >>conftest.$ac_ext <<_ACEOF
23652 /* end confdefs.h. */
23653 $ac_includes_default
23654 int
23655 main ()
23656 {
23657 if (sizeof (bits16_t))
23658 return 0;
23659 ;
23660 return 0;
23661 }
23662 _ACEOF
23663 rm -f conftest.$ac_objext
23664 if { (ac_try="$ac_compile"
23665 case "(($ac_try" in
23666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23667 *) ac_try_echo=$ac_try;;
23668 esac
23669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23670 $as_echo "$ac_try_echo") >&5
23671 (eval "$ac_compile") 2>conftest.er1
23672 ac_status=$?
23673 grep -v '^ *+' conftest.er1 >conftest.err
23674 rm -f conftest.er1
23675 cat conftest.err >&5
23676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677 (exit $ac_status); } && {
23678 test -z "$ac_c_werror_flag" ||
23679 test ! -s conftest.err
23680 } && test -s conftest.$ac_objext; then
23681 cat >conftest.$ac_ext <<_ACEOF
23682 /* confdefs.h. */
23683 _ACEOF
23684 cat confdefs.h >>conftest.$ac_ext
23685 cat >>conftest.$ac_ext <<_ACEOF
23686 /* end confdefs.h. */
23687 $ac_includes_default
23688 int
23689 main ()
23690 {
23691 if (sizeof ((bits16_t)))
23692 return 0;
23693 ;
23694 return 0;
23695 }
23696 _ACEOF
23697 rm -f conftest.$ac_objext
23698 if { (ac_try="$ac_compile"
23699 case "(($ac_try" in
23700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23701 *) ac_try_echo=$ac_try;;
23702 esac
23703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23704 $as_echo "$ac_try_echo") >&5
23705 (eval "$ac_compile") 2>conftest.er1
23706 ac_status=$?
23707 grep -v '^ *+' conftest.er1 >conftest.err
23708 rm -f conftest.er1
23709 cat conftest.err >&5
23710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711 (exit $ac_status); } && {
23712 test -z "$ac_c_werror_flag" ||
23713 test ! -s conftest.err
23714 } && test -s conftest.$ac_objext; then
23715 :
23716 else
23717 $as_echo "$as_me: failed program was:" >&5
23718 sed 's/^/| /' conftest.$ac_ext >&5
23719
23720 ac_cv_type_bits16_t=yes
23721 fi
23722
23723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23724 else
23725 $as_echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23727
23728
23729 fi
23730
23731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23732 fi
23733 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23734 $as_echo "$ac_cv_type_bits16_t" >&6; }
23735 if test "x$ac_cv_type_bits16_t" = x""yes; then
23736 :
23737 else
23738
23739 cat >>confdefs.h <<_ACEOF
23740 #define bits16_t char
23741 _ACEOF
23742
23743 fi
23744
23745 else
23746 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
23747 $as_echo_n "checking for bits16_t... " >&6; }
23748 if test "${ac_cv_type_bits16_t+set}" = set; then
23749 $as_echo_n "(cached) " >&6
23750 else
23751 ac_cv_type_bits16_t=no
23752 cat >conftest.$ac_ext <<_ACEOF
23753 /* confdefs.h. */
23754 _ACEOF
23755 cat confdefs.h >>conftest.$ac_ext
23756 cat >>conftest.$ac_ext <<_ACEOF
23757 /* end confdefs.h. */
23758 $ac_includes_default
23759 int
23760 main ()
23761 {
23762 if (sizeof (bits16_t))
23763 return 0;
23764 ;
23765 return 0;
23766 }
23767 _ACEOF
23768 rm -f conftest.$ac_objext
23769 if { (ac_try="$ac_compile"
23770 case "(($ac_try" in
23771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23772 *) ac_try_echo=$ac_try;;
23773 esac
23774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23775 $as_echo "$ac_try_echo") >&5
23776 (eval "$ac_compile") 2>conftest.er1
23777 ac_status=$?
23778 grep -v '^ *+' conftest.er1 >conftest.err
23779 rm -f conftest.er1
23780 cat conftest.err >&5
23781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782 (exit $ac_status); } && {
23783 test -z "$ac_c_werror_flag" ||
23784 test ! -s conftest.err
23785 } && test -s conftest.$ac_objext; then
23786 cat >conftest.$ac_ext <<_ACEOF
23787 /* confdefs.h. */
23788 _ACEOF
23789 cat confdefs.h >>conftest.$ac_ext
23790 cat >>conftest.$ac_ext <<_ACEOF
23791 /* end confdefs.h. */
23792 $ac_includes_default
23793 int
23794 main ()
23795 {
23796 if (sizeof ((bits16_t)))
23797 return 0;
23798 ;
23799 return 0;
23800 }
23801 _ACEOF
23802 rm -f conftest.$ac_objext
23803 if { (ac_try="$ac_compile"
23804 case "(($ac_try" in
23805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23806 *) ac_try_echo=$ac_try;;
23807 esac
23808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23809 $as_echo "$ac_try_echo") >&5
23810 (eval "$ac_compile") 2>conftest.er1
23811 ac_status=$?
23812 grep -v '^ *+' conftest.er1 >conftest.err
23813 rm -f conftest.er1
23814 cat conftest.err >&5
23815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816 (exit $ac_status); } && {
23817 test -z "$ac_c_werror_flag" ||
23818 test ! -s conftest.err
23819 } && test -s conftest.$ac_objext; then
23820 :
23821 else
23822 $as_echo "$as_me: failed program was:" >&5
23823 sed 's/^/| /' conftest.$ac_ext >&5
23824
23825 ac_cv_type_bits16_t=yes
23826 fi
23827
23828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23829 else
23830 $as_echo "$as_me: failed program was:" >&5
23831 sed 's/^/| /' conftest.$ac_ext >&5
23832
23833
23834 fi
23835
23836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23837 fi
23838 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23839 $as_echo "$ac_cv_type_bits16_t" >&6; }
23840 if test "x$ac_cv_type_bits16_t" = x""yes; then
23841 :
23842 else
23843
23844 cat >>confdefs.h <<_ACEOF
23845 #define bits16_t short
23846 _ACEOF
23847
23848 fi
23849
23850 fi
23851
23852
23853 if test "$ac_cv_sizeof_short" = 2; then
23854 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23855 $as_echo_n "checking for u_bits16_t... " >&6; }
23856 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23857 $as_echo_n "(cached) " >&6
23858 else
23859 ac_cv_type_u_bits16_t=no
23860 cat >conftest.$ac_ext <<_ACEOF
23861 /* confdefs.h. */
23862 _ACEOF
23863 cat confdefs.h >>conftest.$ac_ext
23864 cat >>conftest.$ac_ext <<_ACEOF
23865 /* end confdefs.h. */
23866 $ac_includes_default
23867 int
23868 main ()
23869 {
23870 if (sizeof (u_bits16_t))
23871 return 0;
23872 ;
23873 return 0;
23874 }
23875 _ACEOF
23876 rm -f conftest.$ac_objext
23877 if { (ac_try="$ac_compile"
23878 case "(($ac_try" in
23879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23880 *) ac_try_echo=$ac_try;;
23881 esac
23882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23883 $as_echo "$ac_try_echo") >&5
23884 (eval "$ac_compile") 2>conftest.er1
23885 ac_status=$?
23886 grep -v '^ *+' conftest.er1 >conftest.err
23887 rm -f conftest.er1
23888 cat conftest.err >&5
23889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890 (exit $ac_status); } && {
23891 test -z "$ac_c_werror_flag" ||
23892 test ! -s conftest.err
23893 } && test -s conftest.$ac_objext; then
23894 cat >conftest.$ac_ext <<_ACEOF
23895 /* confdefs.h. */
23896 _ACEOF
23897 cat confdefs.h >>conftest.$ac_ext
23898 cat >>conftest.$ac_ext <<_ACEOF
23899 /* end confdefs.h. */
23900 $ac_includes_default
23901 int
23902 main ()
23903 {
23904 if (sizeof ((u_bits16_t)))
23905 return 0;
23906 ;
23907 return 0;
23908 }
23909 _ACEOF
23910 rm -f conftest.$ac_objext
23911 if { (ac_try="$ac_compile"
23912 case "(($ac_try" in
23913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23914 *) ac_try_echo=$ac_try;;
23915 esac
23916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23917 $as_echo "$ac_try_echo") >&5
23918 (eval "$ac_compile") 2>conftest.er1
23919 ac_status=$?
23920 grep -v '^ *+' conftest.er1 >conftest.err
23921 rm -f conftest.er1
23922 cat conftest.err >&5
23923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924 (exit $ac_status); } && {
23925 test -z "$ac_c_werror_flag" ||
23926 test ! -s conftest.err
23927 } && test -s conftest.$ac_objext; then
23928 :
23929 else
23930 $as_echo "$as_me: failed program was:" >&5
23931 sed 's/^/| /' conftest.$ac_ext >&5
23932
23933 ac_cv_type_u_bits16_t=yes
23934 fi
23935
23936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23937 else
23938 $as_echo "$as_me: failed program was:" >&5
23939 sed 's/^/| /' conftest.$ac_ext >&5
23940
23941
23942 fi
23943
23944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23945 fi
23946 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
23947 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
23948 if test "x$ac_cv_type_u_bits16_t" = x""yes; then
23949 :
23950 else
23951
23952 cat >>confdefs.h <<_ACEOF
23953 #define u_bits16_t unsigned short
23954 _ACEOF
23955
23956 fi
23957
23958 elif test "$ac_cv_sizeof_char" = 2; then
23959 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23960 $as_echo_n "checking for u_bits16_t... " >&6; }
23961 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23962 $as_echo_n "(cached) " >&6
23963 else
23964 ac_cv_type_u_bits16_t=no
23965 cat >conftest.$ac_ext <<_ACEOF
23966 /* confdefs.h. */
23967 _ACEOF
23968 cat confdefs.h >>conftest.$ac_ext
23969 cat >>conftest.$ac_ext <<_ACEOF
23970 /* end confdefs.h. */
23971 $ac_includes_default
23972 int
23973 main ()
23974 {
23975 if (sizeof (u_bits16_t))
23976 return 0;
23977 ;
23978 return 0;
23979 }
23980 _ACEOF
23981 rm -f conftest.$ac_objext
23982 if { (ac_try="$ac_compile"
23983 case "(($ac_try" in
23984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23985 *) ac_try_echo=$ac_try;;
23986 esac
23987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23988 $as_echo "$ac_try_echo") >&5
23989 (eval "$ac_compile") 2>conftest.er1
23990 ac_status=$?
23991 grep -v '^ *+' conftest.er1 >conftest.err
23992 rm -f conftest.er1
23993 cat conftest.err >&5
23994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); } && {
23996 test -z "$ac_c_werror_flag" ||
23997 test ! -s conftest.err
23998 } && test -s conftest.$ac_objext; then
23999 cat >conftest.$ac_ext <<_ACEOF
24000 /* confdefs.h. */
24001 _ACEOF
24002 cat confdefs.h >>conftest.$ac_ext
24003 cat >>conftest.$ac_ext <<_ACEOF
24004 /* end confdefs.h. */
24005 $ac_includes_default
24006 int
24007 main ()
24008 {
24009 if (sizeof ((u_bits16_t)))
24010 return 0;
24011 ;
24012 return 0;
24013 }
24014 _ACEOF
24015 rm -f conftest.$ac_objext
24016 if { (ac_try="$ac_compile"
24017 case "(($ac_try" in
24018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24019 *) ac_try_echo=$ac_try;;
24020 esac
24021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24022 $as_echo "$ac_try_echo") >&5
24023 (eval "$ac_compile") 2>conftest.er1
24024 ac_status=$?
24025 grep -v '^ *+' conftest.er1 >conftest.err
24026 rm -f conftest.er1
24027 cat conftest.err >&5
24028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029 (exit $ac_status); } && {
24030 test -z "$ac_c_werror_flag" ||
24031 test ! -s conftest.err
24032 } && test -s conftest.$ac_objext; then
24033 :
24034 else
24035 $as_echo "$as_me: failed program was:" >&5
24036 sed 's/^/| /' conftest.$ac_ext >&5
24037
24038 ac_cv_type_u_bits16_t=yes
24039 fi
24040
24041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24042 else
24043 $as_echo "$as_me: failed program was:" >&5
24044 sed 's/^/| /' conftest.$ac_ext >&5
24045
24046
24047 fi
24048
24049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24050 fi
24051 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
24052 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
24053 if test "x$ac_cv_type_u_bits16_t" = x""yes; then
24054 :
24055 else
24056
24057 cat >>confdefs.h <<_ACEOF
24058 #define u_bits16_t unsigned char
24059 _ACEOF
24060
24061 fi
24062
24063 else
24064 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
24065 $as_echo_n "checking for u_bits16_t... " >&6; }
24066 if test "${ac_cv_type_u_bits16_t+set}" = set; then
24067 $as_echo_n "(cached) " >&6
24068 else
24069 ac_cv_type_u_bits16_t=no
24070 cat >conftest.$ac_ext <<_ACEOF
24071 /* confdefs.h. */
24072 _ACEOF
24073 cat confdefs.h >>conftest.$ac_ext
24074 cat >>conftest.$ac_ext <<_ACEOF
24075 /* end confdefs.h. */
24076 $ac_includes_default
24077 int
24078 main ()
24079 {
24080 if (sizeof (u_bits16_t))
24081 return 0;
24082 ;
24083 return 0;
24084 }
24085 _ACEOF
24086 rm -f conftest.$ac_objext
24087 if { (ac_try="$ac_compile"
24088 case "(($ac_try" in
24089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24090 *) ac_try_echo=$ac_try;;
24091 esac
24092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24093 $as_echo "$ac_try_echo") >&5
24094 (eval "$ac_compile") 2>conftest.er1
24095 ac_status=$?
24096 grep -v '^ *+' conftest.er1 >conftest.err
24097 rm -f conftest.er1
24098 cat conftest.err >&5
24099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24100 (exit $ac_status); } && {
24101 test -z "$ac_c_werror_flag" ||
24102 test ! -s conftest.err
24103 } && test -s conftest.$ac_objext; then
24104 cat >conftest.$ac_ext <<_ACEOF
24105 /* confdefs.h. */
24106 _ACEOF
24107 cat confdefs.h >>conftest.$ac_ext
24108 cat >>conftest.$ac_ext <<_ACEOF
24109 /* end confdefs.h. */
24110 $ac_includes_default
24111 int
24112 main ()
24113 {
24114 if (sizeof ((u_bits16_t)))
24115 return 0;
24116 ;
24117 return 0;
24118 }
24119 _ACEOF
24120 rm -f conftest.$ac_objext
24121 if { (ac_try="$ac_compile"
24122 case "(($ac_try" in
24123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24124 *) ac_try_echo=$ac_try;;
24125 esac
24126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24127 $as_echo "$ac_try_echo") >&5
24128 (eval "$ac_compile") 2>conftest.er1
24129 ac_status=$?
24130 grep -v '^ *+' conftest.er1 >conftest.err
24131 rm -f conftest.er1
24132 cat conftest.err >&5
24133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24134 (exit $ac_status); } && {
24135 test -z "$ac_c_werror_flag" ||
24136 test ! -s conftest.err
24137 } && test -s conftest.$ac_objext; then
24138 :
24139 else
24140 $as_echo "$as_me: failed program was:" >&5
24141 sed 's/^/| /' conftest.$ac_ext >&5
24142
24143 ac_cv_type_u_bits16_t=yes
24144 fi
24145
24146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24147 else
24148 $as_echo "$as_me: failed program was:" >&5
24149 sed 's/^/| /' conftest.$ac_ext >&5
24150
24151
24152 fi
24153
24154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24155 fi
24156 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
24157 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
24158 if test "x$ac_cv_type_u_bits16_t" = x""yes; then
24159 :
24160 else
24161
24162 cat >>confdefs.h <<_ACEOF
24163 #define u_bits16_t unsigned short
24164 _ACEOF
24165
24166 fi
24167
24168 fi
24169
24170
24171 if test "$ac_cv_sizeof_int" = 4; then
24172 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
24173 $as_echo_n "checking for bits32_t... " >&6; }
24174 if test "${ac_cv_type_bits32_t+set}" = set; then
24175 $as_echo_n "(cached) " >&6
24176 else
24177 ac_cv_type_bits32_t=no
24178 cat >conftest.$ac_ext <<_ACEOF
24179 /* confdefs.h. */
24180 _ACEOF
24181 cat confdefs.h >>conftest.$ac_ext
24182 cat >>conftest.$ac_ext <<_ACEOF
24183 /* end confdefs.h. */
24184 $ac_includes_default
24185 int
24186 main ()
24187 {
24188 if (sizeof (bits32_t))
24189 return 0;
24190 ;
24191 return 0;
24192 }
24193 _ACEOF
24194 rm -f conftest.$ac_objext
24195 if { (ac_try="$ac_compile"
24196 case "(($ac_try" in
24197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24198 *) ac_try_echo=$ac_try;;
24199 esac
24200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24201 $as_echo "$ac_try_echo") >&5
24202 (eval "$ac_compile") 2>conftest.er1
24203 ac_status=$?
24204 grep -v '^ *+' conftest.er1 >conftest.err
24205 rm -f conftest.er1
24206 cat conftest.err >&5
24207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208 (exit $ac_status); } && {
24209 test -z "$ac_c_werror_flag" ||
24210 test ! -s conftest.err
24211 } && test -s conftest.$ac_objext; then
24212 cat >conftest.$ac_ext <<_ACEOF
24213 /* confdefs.h. */
24214 _ACEOF
24215 cat confdefs.h >>conftest.$ac_ext
24216 cat >>conftest.$ac_ext <<_ACEOF
24217 /* end confdefs.h. */
24218 $ac_includes_default
24219 int
24220 main ()
24221 {
24222 if (sizeof ((bits32_t)))
24223 return 0;
24224 ;
24225 return 0;
24226 }
24227 _ACEOF
24228 rm -f conftest.$ac_objext
24229 if { (ac_try="$ac_compile"
24230 case "(($ac_try" in
24231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24232 *) ac_try_echo=$ac_try;;
24233 esac
24234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24235 $as_echo "$ac_try_echo") >&5
24236 (eval "$ac_compile") 2>conftest.er1
24237 ac_status=$?
24238 grep -v '^ *+' conftest.er1 >conftest.err
24239 rm -f conftest.er1
24240 cat conftest.err >&5
24241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24242 (exit $ac_status); } && {
24243 test -z "$ac_c_werror_flag" ||
24244 test ! -s conftest.err
24245 } && test -s conftest.$ac_objext; then
24246 :
24247 else
24248 $as_echo "$as_me: failed program was:" >&5
24249 sed 's/^/| /' conftest.$ac_ext >&5
24250
24251 ac_cv_type_bits32_t=yes
24252 fi
24253
24254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24255 else
24256 $as_echo "$as_me: failed program was:" >&5
24257 sed 's/^/| /' conftest.$ac_ext >&5
24258
24259
24260 fi
24261
24262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24263 fi
24264 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
24265 $as_echo "$ac_cv_type_bits32_t" >&6; }
24266 if test "x$ac_cv_type_bits32_t" = x""yes; then
24267 :
24268 else
24269
24270 cat >>confdefs.h <<_ACEOF
24271 #define bits32_t int
24272 _ACEOF
24273
24274 fi
24275
24276 elif test "$ac_cv_sizeof_long" = 4; then
24277 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
24278 $as_echo_n "checking for bits32_t... " >&6; }
24279 if test "${ac_cv_type_bits32_t+set}" = set; then
24280 $as_echo_n "(cached) " >&6
24281 else
24282 ac_cv_type_bits32_t=no
24283 cat >conftest.$ac_ext <<_ACEOF
24284 /* confdefs.h. */
24285 _ACEOF
24286 cat confdefs.h >>conftest.$ac_ext
24287 cat >>conftest.$ac_ext <<_ACEOF
24288 /* end confdefs.h. */
24289 $ac_includes_default
24290 int
24291 main ()
24292 {
24293 if (sizeof (bits32_t))
24294 return 0;
24295 ;
24296 return 0;
24297 }
24298 _ACEOF
24299 rm -f conftest.$ac_objext
24300 if { (ac_try="$ac_compile"
24301 case "(($ac_try" in
24302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24303 *) ac_try_echo=$ac_try;;
24304 esac
24305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24306 $as_echo "$ac_try_echo") >&5
24307 (eval "$ac_compile") 2>conftest.er1
24308 ac_status=$?
24309 grep -v '^ *+' conftest.er1 >conftest.err
24310 rm -f conftest.er1
24311 cat conftest.err >&5
24312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313 (exit $ac_status); } && {
24314 test -z "$ac_c_werror_flag" ||
24315 test ! -s conftest.err
24316 } && test -s conftest.$ac_objext; then
24317 cat >conftest.$ac_ext <<_ACEOF
24318 /* confdefs.h. */
24319 _ACEOF
24320 cat confdefs.h >>conftest.$ac_ext
24321 cat >>conftest.$ac_ext <<_ACEOF
24322 /* end confdefs.h. */
24323 $ac_includes_default
24324 int
24325 main ()
24326 {
24327 if (sizeof ((bits32_t)))
24328 return 0;
24329 ;
24330 return 0;
24331 }
24332 _ACEOF
24333 rm -f conftest.$ac_objext
24334 if { (ac_try="$ac_compile"
24335 case "(($ac_try" in
24336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24337 *) ac_try_echo=$ac_try;;
24338 esac
24339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24340 $as_echo "$ac_try_echo") >&5
24341 (eval "$ac_compile") 2>conftest.er1
24342 ac_status=$?
24343 grep -v '^ *+' conftest.er1 >conftest.err
24344 rm -f conftest.er1
24345 cat conftest.err >&5
24346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347 (exit $ac_status); } && {
24348 test -z "$ac_c_werror_flag" ||
24349 test ! -s conftest.err
24350 } && test -s conftest.$ac_objext; then
24351 :
24352 else
24353 $as_echo "$as_me: failed program was:" >&5
24354 sed 's/^/| /' conftest.$ac_ext >&5
24355
24356 ac_cv_type_bits32_t=yes
24357 fi
24358
24359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24360 else
24361 $as_echo "$as_me: failed program was:" >&5
24362 sed 's/^/| /' conftest.$ac_ext >&5
24363
24364
24365 fi
24366
24367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24368 fi
24369 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
24370 $as_echo "$ac_cv_type_bits32_t" >&6; }
24371 if test "x$ac_cv_type_bits32_t" = x""yes; then
24372 :
24373 else
24374
24375 cat >>confdefs.h <<_ACEOF
24376 #define bits32_t long
24377 _ACEOF
24378
24379 fi
24380
24381 else
24382 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
24383 $as_echo_n "checking for bits32_t... " >&6; }
24384 if test "${ac_cv_type_bits32_t+set}" = set; then
24385 $as_echo_n "(cached) " >&6
24386 else
24387 ac_cv_type_bits32_t=no
24388 cat >conftest.$ac_ext <<_ACEOF
24389 /* confdefs.h. */
24390 _ACEOF
24391 cat confdefs.h >>conftest.$ac_ext
24392 cat >>conftest.$ac_ext <<_ACEOF
24393 /* end confdefs.h. */
24394 $ac_includes_default
24395 int
24396 main ()
24397 {
24398 if (sizeof (bits32_t))
24399 return 0;
24400 ;
24401 return 0;
24402 }
24403 _ACEOF
24404 rm -f conftest.$ac_objext
24405 if { (ac_try="$ac_compile"
24406 case "(($ac_try" in
24407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24408 *) ac_try_echo=$ac_try;;
24409 esac
24410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24411 $as_echo "$ac_try_echo") >&5
24412 (eval "$ac_compile") 2>conftest.er1
24413 ac_status=$?
24414 grep -v '^ *+' conftest.er1 >conftest.err
24415 rm -f conftest.er1
24416 cat conftest.err >&5
24417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418 (exit $ac_status); } && {
24419 test -z "$ac_c_werror_flag" ||
24420 test ! -s conftest.err
24421 } && test -s conftest.$ac_objext; then
24422 cat >conftest.$ac_ext <<_ACEOF
24423 /* confdefs.h. */
24424 _ACEOF
24425 cat confdefs.h >>conftest.$ac_ext
24426 cat >>conftest.$ac_ext <<_ACEOF
24427 /* end confdefs.h. */
24428 $ac_includes_default
24429 int
24430 main ()
24431 {
24432 if (sizeof ((bits32_t)))
24433 return 0;
24434 ;
24435 return 0;
24436 }
24437 _ACEOF
24438 rm -f conftest.$ac_objext
24439 if { (ac_try="$ac_compile"
24440 case "(($ac_try" in
24441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24442 *) ac_try_echo=$ac_try;;
24443 esac
24444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24445 $as_echo "$ac_try_echo") >&5
24446 (eval "$ac_compile") 2>conftest.er1
24447 ac_status=$?
24448 grep -v '^ *+' conftest.er1 >conftest.err
24449 rm -f conftest.er1
24450 cat conftest.err >&5
24451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452 (exit $ac_status); } && {
24453 test -z "$ac_c_werror_flag" ||
24454 test ! -s conftest.err
24455 } && test -s conftest.$ac_objext; then
24456 :
24457 else
24458 $as_echo "$as_me: failed program was:" >&5
24459 sed 's/^/| /' conftest.$ac_ext >&5
24460
24461 ac_cv_type_bits32_t=yes
24462 fi
24463
24464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24465 else
24466 $as_echo "$as_me: failed program was:" >&5
24467 sed 's/^/| /' conftest.$ac_ext >&5
24468
24469
24470 fi
24471
24472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24473 fi
24474 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
24475 $as_echo "$ac_cv_type_bits32_t" >&6; }
24476 if test "x$ac_cv_type_bits32_t" = x""yes; then
24477 :
24478 else
24479
24480 cat >>confdefs.h <<_ACEOF
24481 #define bits32_t int
24482 _ACEOF
24483
24484 fi
24485
24486 fi
24487
24488
24489 if test "$ac_cv_sizeof_int" = 4; then
24490 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
24491 $as_echo_n "checking for u_bits32_t... " >&6; }
24492 if test "${ac_cv_type_u_bits32_t+set}" = set; then
24493 $as_echo_n "(cached) " >&6
24494 else
24495 ac_cv_type_u_bits32_t=no
24496 cat >conftest.$ac_ext <<_ACEOF
24497 /* confdefs.h. */
24498 _ACEOF
24499 cat confdefs.h >>conftest.$ac_ext
24500 cat >>conftest.$ac_ext <<_ACEOF
24501 /* end confdefs.h. */
24502 $ac_includes_default
24503 int
24504 main ()
24505 {
24506 if (sizeof (u_bits32_t))
24507 return 0;
24508 ;
24509 return 0;
24510 }
24511 _ACEOF
24512 rm -f conftest.$ac_objext
24513 if { (ac_try="$ac_compile"
24514 case "(($ac_try" in
24515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24516 *) ac_try_echo=$ac_try;;
24517 esac
24518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24519 $as_echo "$ac_try_echo") >&5
24520 (eval "$ac_compile") 2>conftest.er1
24521 ac_status=$?
24522 grep -v '^ *+' conftest.er1 >conftest.err
24523 rm -f conftest.er1
24524 cat conftest.err >&5
24525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526 (exit $ac_status); } && {
24527 test -z "$ac_c_werror_flag" ||
24528 test ! -s conftest.err
24529 } && test -s conftest.$ac_objext; then
24530 cat >conftest.$ac_ext <<_ACEOF
24531 /* confdefs.h. */
24532 _ACEOF
24533 cat confdefs.h >>conftest.$ac_ext
24534 cat >>conftest.$ac_ext <<_ACEOF
24535 /* end confdefs.h. */
24536 $ac_includes_default
24537 int
24538 main ()
24539 {
24540 if (sizeof ((u_bits32_t)))
24541 return 0;
24542 ;
24543 return 0;
24544 }
24545 _ACEOF
24546 rm -f conftest.$ac_objext
24547 if { (ac_try="$ac_compile"
24548 case "(($ac_try" in
24549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24550 *) ac_try_echo=$ac_try;;
24551 esac
24552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24553 $as_echo "$ac_try_echo") >&5
24554 (eval "$ac_compile") 2>conftest.er1
24555 ac_status=$?
24556 grep -v '^ *+' conftest.er1 >conftest.err
24557 rm -f conftest.er1
24558 cat conftest.err >&5
24559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560 (exit $ac_status); } && {
24561 test -z "$ac_c_werror_flag" ||
24562 test ! -s conftest.err
24563 } && test -s conftest.$ac_objext; then
24564 :
24565 else
24566 $as_echo "$as_me: failed program was:" >&5
24567 sed 's/^/| /' conftest.$ac_ext >&5
24568
24569 ac_cv_type_u_bits32_t=yes
24570 fi
24571
24572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24573 else
24574 $as_echo "$as_me: failed program was:" >&5
24575 sed 's/^/| /' conftest.$ac_ext >&5
24576
24577
24578 fi
24579
24580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24581 fi
24582 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24583 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
24584 if test "x$ac_cv_type_u_bits32_t" = x""yes; then
24585 :
24586 else
24587
24588 cat >>confdefs.h <<_ACEOF
24589 #define u_bits32_t unsigned int
24590 _ACEOF
24591
24592 fi
24593
24594 elif test "$ac_cv_sizeof_long" = 4; then
24595 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
24596 $as_echo_n "checking for u_bits32_t... " >&6; }
24597 if test "${ac_cv_type_u_bits32_t+set}" = set; then
24598 $as_echo_n "(cached) " >&6
24599 else
24600 ac_cv_type_u_bits32_t=no
24601 cat >conftest.$ac_ext <<_ACEOF
24602 /* confdefs.h. */
24603 _ACEOF
24604 cat confdefs.h >>conftest.$ac_ext
24605 cat >>conftest.$ac_ext <<_ACEOF
24606 /* end confdefs.h. */
24607 $ac_includes_default
24608 int
24609 main ()
24610 {
24611 if (sizeof (u_bits32_t))
24612 return 0;
24613 ;
24614 return 0;
24615 }
24616 _ACEOF
24617 rm -f conftest.$ac_objext
24618 if { (ac_try="$ac_compile"
24619 case "(($ac_try" in
24620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24621 *) ac_try_echo=$ac_try;;
24622 esac
24623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24624 $as_echo "$ac_try_echo") >&5
24625 (eval "$ac_compile") 2>conftest.er1
24626 ac_status=$?
24627 grep -v '^ *+' conftest.er1 >conftest.err
24628 rm -f conftest.er1
24629 cat conftest.err >&5
24630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631 (exit $ac_status); } && {
24632 test -z "$ac_c_werror_flag" ||
24633 test ! -s conftest.err
24634 } && test -s conftest.$ac_objext; then
24635 cat >conftest.$ac_ext <<_ACEOF
24636 /* confdefs.h. */
24637 _ACEOF
24638 cat confdefs.h >>conftest.$ac_ext
24639 cat >>conftest.$ac_ext <<_ACEOF
24640 /* end confdefs.h. */
24641 $ac_includes_default
24642 int
24643 main ()
24644 {
24645 if (sizeof ((u_bits32_t)))
24646 return 0;
24647 ;
24648 return 0;
24649 }
24650 _ACEOF
24651 rm -f conftest.$ac_objext
24652 if { (ac_try="$ac_compile"
24653 case "(($ac_try" in
24654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24655 *) ac_try_echo=$ac_try;;
24656 esac
24657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24658 $as_echo "$ac_try_echo") >&5
24659 (eval "$ac_compile") 2>conftest.er1
24660 ac_status=$?
24661 grep -v '^ *+' conftest.er1 >conftest.err
24662 rm -f conftest.er1
24663 cat conftest.err >&5
24664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665 (exit $ac_status); } && {
24666 test -z "$ac_c_werror_flag" ||
24667 test ! -s conftest.err
24668 } && test -s conftest.$ac_objext; then
24669 :
24670 else
24671 $as_echo "$as_me: failed program was:" >&5
24672 sed 's/^/| /' conftest.$ac_ext >&5
24673
24674 ac_cv_type_u_bits32_t=yes
24675 fi
24676
24677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24678 else
24679 $as_echo "$as_me: failed program was:" >&5
24680 sed 's/^/| /' conftest.$ac_ext >&5
24681
24682
24683 fi
24684
24685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24686 fi
24687 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24688 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
24689 if test "x$ac_cv_type_u_bits32_t" = x""yes; then
24690 :
24691 else
24692
24693 cat >>confdefs.h <<_ACEOF
24694 #define u_bits32_t unsigned long
24695 _ACEOF
24696
24697 fi
24698
24699 else
24700 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
24701 $as_echo_n "checking for u_bits32_t... " >&6; }
24702 if test "${ac_cv_type_u_bits32_t+set}" = set; then
24703 $as_echo_n "(cached) " >&6
24704 else
24705 ac_cv_type_u_bits32_t=no
24706 cat >conftest.$ac_ext <<_ACEOF
24707 /* confdefs.h. */
24708 _ACEOF
24709 cat confdefs.h >>conftest.$ac_ext
24710 cat >>conftest.$ac_ext <<_ACEOF
24711 /* end confdefs.h. */
24712 $ac_includes_default
24713 int
24714 main ()
24715 {
24716 if (sizeof (u_bits32_t))
24717 return 0;
24718 ;
24719 return 0;
24720 }
24721 _ACEOF
24722 rm -f conftest.$ac_objext
24723 if { (ac_try="$ac_compile"
24724 case "(($ac_try" in
24725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24726 *) ac_try_echo=$ac_try;;
24727 esac
24728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24729 $as_echo "$ac_try_echo") >&5
24730 (eval "$ac_compile") 2>conftest.er1
24731 ac_status=$?
24732 grep -v '^ *+' conftest.er1 >conftest.err
24733 rm -f conftest.er1
24734 cat conftest.err >&5
24735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736 (exit $ac_status); } && {
24737 test -z "$ac_c_werror_flag" ||
24738 test ! -s conftest.err
24739 } && test -s conftest.$ac_objext; then
24740 cat >conftest.$ac_ext <<_ACEOF
24741 /* confdefs.h. */
24742 _ACEOF
24743 cat confdefs.h >>conftest.$ac_ext
24744 cat >>conftest.$ac_ext <<_ACEOF
24745 /* end confdefs.h. */
24746 $ac_includes_default
24747 int
24748 main ()
24749 {
24750 if (sizeof ((u_bits32_t)))
24751 return 0;
24752 ;
24753 return 0;
24754 }
24755 _ACEOF
24756 rm -f conftest.$ac_objext
24757 if { (ac_try="$ac_compile"
24758 case "(($ac_try" in
24759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24760 *) ac_try_echo=$ac_try;;
24761 esac
24762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24763 $as_echo "$ac_try_echo") >&5
24764 (eval "$ac_compile") 2>conftest.er1
24765 ac_status=$?
24766 grep -v '^ *+' conftest.er1 >conftest.err
24767 rm -f conftest.er1
24768 cat conftest.err >&5
24769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770 (exit $ac_status); } && {
24771 test -z "$ac_c_werror_flag" ||
24772 test ! -s conftest.err
24773 } && test -s conftest.$ac_objext; then
24774 :
24775 else
24776 $as_echo "$as_me: failed program was:" >&5
24777 sed 's/^/| /' conftest.$ac_ext >&5
24778
24779 ac_cv_type_u_bits32_t=yes
24780 fi
24781
24782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24783 else
24784 $as_echo "$as_me: failed program was:" >&5
24785 sed 's/^/| /' conftest.$ac_ext >&5
24786
24787
24788 fi
24789
24790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24791 fi
24792 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24793 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
24794 if test "x$ac_cv_type_u_bits32_t" = x""yes; then
24795 :
24796 else
24797
24798 cat >>confdefs.h <<_ACEOF
24799 #define u_bits32_t unsigned int
24800 _ACEOF
24801
24802 fi
24803
24804 fi
24805
24806
24807 if test "$ac_cv_sizeof_char_p" = 8; then
24808 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24809 $as_echo_n "checking for bits64_t... " >&6; }
24810 if test "${ac_cv_type_bits64_t+set}" = set; then
24811 $as_echo_n "(cached) " >&6
24812 else
24813 ac_cv_type_bits64_t=no
24814 cat >conftest.$ac_ext <<_ACEOF
24815 /* confdefs.h. */
24816 _ACEOF
24817 cat confdefs.h >>conftest.$ac_ext
24818 cat >>conftest.$ac_ext <<_ACEOF
24819 /* end confdefs.h. */
24820 $ac_includes_default
24821 int
24822 main ()
24823 {
24824 if (sizeof (bits64_t))
24825 return 0;
24826 ;
24827 return 0;
24828 }
24829 _ACEOF
24830 rm -f conftest.$ac_objext
24831 if { (ac_try="$ac_compile"
24832 case "(($ac_try" in
24833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24834 *) ac_try_echo=$ac_try;;
24835 esac
24836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24837 $as_echo "$ac_try_echo") >&5
24838 (eval "$ac_compile") 2>conftest.er1
24839 ac_status=$?
24840 grep -v '^ *+' conftest.er1 >conftest.err
24841 rm -f conftest.er1
24842 cat conftest.err >&5
24843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844 (exit $ac_status); } && {
24845 test -z "$ac_c_werror_flag" ||
24846 test ! -s conftest.err
24847 } && test -s conftest.$ac_objext; then
24848 cat >conftest.$ac_ext <<_ACEOF
24849 /* confdefs.h. */
24850 _ACEOF
24851 cat confdefs.h >>conftest.$ac_ext
24852 cat >>conftest.$ac_ext <<_ACEOF
24853 /* end confdefs.h. */
24854 $ac_includes_default
24855 int
24856 main ()
24857 {
24858 if (sizeof ((bits64_t)))
24859 return 0;
24860 ;
24861 return 0;
24862 }
24863 _ACEOF
24864 rm -f conftest.$ac_objext
24865 if { (ac_try="$ac_compile"
24866 case "(($ac_try" in
24867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24868 *) ac_try_echo=$ac_try;;
24869 esac
24870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24871 $as_echo "$ac_try_echo") >&5
24872 (eval "$ac_compile") 2>conftest.er1
24873 ac_status=$?
24874 grep -v '^ *+' conftest.er1 >conftest.err
24875 rm -f conftest.er1
24876 cat conftest.err >&5
24877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878 (exit $ac_status); } && {
24879 test -z "$ac_c_werror_flag" ||
24880 test ! -s conftest.err
24881 } && test -s conftest.$ac_objext; then
24882 :
24883 else
24884 $as_echo "$as_me: failed program was:" >&5
24885 sed 's/^/| /' conftest.$ac_ext >&5
24886
24887 ac_cv_type_bits64_t=yes
24888 fi
24889
24890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24891 else
24892 $as_echo "$as_me: failed program was:" >&5
24893 sed 's/^/| /' conftest.$ac_ext >&5
24894
24895
24896 fi
24897
24898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24899 fi
24900 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24901 $as_echo "$ac_cv_type_bits64_t" >&6; }
24902 if test "x$ac_cv_type_bits64_t" = x""yes; then
24903 :
24904 else
24905
24906 cat >>confdefs.h <<_ACEOF
24907 #define bits64_t char *
24908 _ACEOF
24909
24910 fi
24911
24912 elif test "$ac_cv_sizeof_double" = 8; then
24913 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24914 $as_echo_n "checking for bits64_t... " >&6; }
24915 if test "${ac_cv_type_bits64_t+set}" = set; then
24916 $as_echo_n "(cached) " >&6
24917 else
24918 ac_cv_type_bits64_t=no
24919 cat >conftest.$ac_ext <<_ACEOF
24920 /* confdefs.h. */
24921 _ACEOF
24922 cat confdefs.h >>conftest.$ac_ext
24923 cat >>conftest.$ac_ext <<_ACEOF
24924 /* end confdefs.h. */
24925 $ac_includes_default
24926 int
24927 main ()
24928 {
24929 if (sizeof (bits64_t))
24930 return 0;
24931 ;
24932 return 0;
24933 }
24934 _ACEOF
24935 rm -f conftest.$ac_objext
24936 if { (ac_try="$ac_compile"
24937 case "(($ac_try" in
24938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24939 *) ac_try_echo=$ac_try;;
24940 esac
24941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24942 $as_echo "$ac_try_echo") >&5
24943 (eval "$ac_compile") 2>conftest.er1
24944 ac_status=$?
24945 grep -v '^ *+' conftest.er1 >conftest.err
24946 rm -f conftest.er1
24947 cat conftest.err >&5
24948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); } && {
24950 test -z "$ac_c_werror_flag" ||
24951 test ! -s conftest.err
24952 } && test -s conftest.$ac_objext; then
24953 cat >conftest.$ac_ext <<_ACEOF
24954 /* confdefs.h. */
24955 _ACEOF
24956 cat confdefs.h >>conftest.$ac_ext
24957 cat >>conftest.$ac_ext <<_ACEOF
24958 /* end confdefs.h. */
24959 $ac_includes_default
24960 int
24961 main ()
24962 {
24963 if (sizeof ((bits64_t)))
24964 return 0;
24965 ;
24966 return 0;
24967 }
24968 _ACEOF
24969 rm -f conftest.$ac_objext
24970 if { (ac_try="$ac_compile"
24971 case "(($ac_try" in
24972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24973 *) ac_try_echo=$ac_try;;
24974 esac
24975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24976 $as_echo "$ac_try_echo") >&5
24977 (eval "$ac_compile") 2>conftest.er1
24978 ac_status=$?
24979 grep -v '^ *+' conftest.er1 >conftest.err
24980 rm -f conftest.er1
24981 cat conftest.err >&5
24982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983 (exit $ac_status); } && {
24984 test -z "$ac_c_werror_flag" ||
24985 test ! -s conftest.err
24986 } && test -s conftest.$ac_objext; then
24987 :
24988 else
24989 $as_echo "$as_me: failed program was:" >&5
24990 sed 's/^/| /' conftest.$ac_ext >&5
24991
24992 ac_cv_type_bits64_t=yes
24993 fi
24994
24995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24996 else
24997 $as_echo "$as_me: failed program was:" >&5
24998 sed 's/^/| /' conftest.$ac_ext >&5
24999
25000
25001 fi
25002
25003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25004 fi
25005 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25006 $as_echo "$ac_cv_type_bits64_t" >&6; }
25007 if test "x$ac_cv_type_bits64_t" = x""yes; then
25008 :
25009 else
25010
25011 cat >>confdefs.h <<_ACEOF
25012 #define bits64_t double
25013 _ACEOF
25014
25015 fi
25016
25017 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
25018 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
25019 $as_echo_n "checking for bits64_t... " >&6; }
25020 if test "${ac_cv_type_bits64_t+set}" = set; then
25021 $as_echo_n "(cached) " >&6
25022 else
25023 ac_cv_type_bits64_t=no
25024 cat >conftest.$ac_ext <<_ACEOF
25025 /* confdefs.h. */
25026 _ACEOF
25027 cat confdefs.h >>conftest.$ac_ext
25028 cat >>conftest.$ac_ext <<_ACEOF
25029 /* end confdefs.h. */
25030 $ac_includes_default
25031 int
25032 main ()
25033 {
25034 if (sizeof (bits64_t))
25035 return 0;
25036 ;
25037 return 0;
25038 }
25039 _ACEOF
25040 rm -f conftest.$ac_objext
25041 if { (ac_try="$ac_compile"
25042 case "(($ac_try" in
25043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25044 *) ac_try_echo=$ac_try;;
25045 esac
25046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25047 $as_echo "$ac_try_echo") >&5
25048 (eval "$ac_compile") 2>conftest.er1
25049 ac_status=$?
25050 grep -v '^ *+' conftest.er1 >conftest.err
25051 rm -f conftest.er1
25052 cat conftest.err >&5
25053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054 (exit $ac_status); } && {
25055 test -z "$ac_c_werror_flag" ||
25056 test ! -s conftest.err
25057 } && test -s conftest.$ac_objext; then
25058 cat >conftest.$ac_ext <<_ACEOF
25059 /* confdefs.h. */
25060 _ACEOF
25061 cat confdefs.h >>conftest.$ac_ext
25062 cat >>conftest.$ac_ext <<_ACEOF
25063 /* end confdefs.h. */
25064 $ac_includes_default
25065 int
25066 main ()
25067 {
25068 if (sizeof ((bits64_t)))
25069 return 0;
25070 ;
25071 return 0;
25072 }
25073 _ACEOF
25074 rm -f conftest.$ac_objext
25075 if { (ac_try="$ac_compile"
25076 case "(($ac_try" in
25077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25078 *) ac_try_echo=$ac_try;;
25079 esac
25080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25081 $as_echo "$ac_try_echo") >&5
25082 (eval "$ac_compile") 2>conftest.er1
25083 ac_status=$?
25084 grep -v '^ *+' conftest.er1 >conftest.err
25085 rm -f conftest.er1
25086 cat conftest.err >&5
25087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); } && {
25089 test -z "$ac_c_werror_flag" ||
25090 test ! -s conftest.err
25091 } && test -s conftest.$ac_objext; then
25092 :
25093 else
25094 $as_echo "$as_me: failed program was:" >&5
25095 sed 's/^/| /' conftest.$ac_ext >&5
25096
25097 ac_cv_type_bits64_t=yes
25098 fi
25099
25100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25101 else
25102 $as_echo "$as_me: failed program was:" >&5
25103 sed 's/^/| /' conftest.$ac_ext >&5
25104
25105
25106 fi
25107
25108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25109 fi
25110 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25111 $as_echo "$ac_cv_type_bits64_t" >&6; }
25112 if test "x$ac_cv_type_bits64_t" = x""yes; then
25113 :
25114 else
25115
25116 cat >>confdefs.h <<_ACEOF
25117 #define bits64_t long long
25118 _ACEOF
25119
25120 fi
25121
25122 elif test "$ac_cv_sizeof_long" = 8; then
25123 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
25124 $as_echo_n "checking for bits64_t... " >&6; }
25125 if test "${ac_cv_type_bits64_t+set}" = set; then
25126 $as_echo_n "(cached) " >&6
25127 else
25128 ac_cv_type_bits64_t=no
25129 cat >conftest.$ac_ext <<_ACEOF
25130 /* confdefs.h. */
25131 _ACEOF
25132 cat confdefs.h >>conftest.$ac_ext
25133 cat >>conftest.$ac_ext <<_ACEOF
25134 /* end confdefs.h. */
25135 $ac_includes_default
25136 int
25137 main ()
25138 {
25139 if (sizeof (bits64_t))
25140 return 0;
25141 ;
25142 return 0;
25143 }
25144 _ACEOF
25145 rm -f conftest.$ac_objext
25146 if { (ac_try="$ac_compile"
25147 case "(($ac_try" in
25148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25149 *) ac_try_echo=$ac_try;;
25150 esac
25151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25152 $as_echo "$ac_try_echo") >&5
25153 (eval "$ac_compile") 2>conftest.er1
25154 ac_status=$?
25155 grep -v '^ *+' conftest.er1 >conftest.err
25156 rm -f conftest.er1
25157 cat conftest.err >&5
25158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159 (exit $ac_status); } && {
25160 test -z "$ac_c_werror_flag" ||
25161 test ! -s conftest.err
25162 } && test -s conftest.$ac_objext; then
25163 cat >conftest.$ac_ext <<_ACEOF
25164 /* confdefs.h. */
25165 _ACEOF
25166 cat confdefs.h >>conftest.$ac_ext
25167 cat >>conftest.$ac_ext <<_ACEOF
25168 /* end confdefs.h. */
25169 $ac_includes_default
25170 int
25171 main ()
25172 {
25173 if (sizeof ((bits64_t)))
25174 return 0;
25175 ;
25176 return 0;
25177 }
25178 _ACEOF
25179 rm -f conftest.$ac_objext
25180 if { (ac_try="$ac_compile"
25181 case "(($ac_try" in
25182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25183 *) ac_try_echo=$ac_try;;
25184 esac
25185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25186 $as_echo "$ac_try_echo") >&5
25187 (eval "$ac_compile") 2>conftest.er1
25188 ac_status=$?
25189 grep -v '^ *+' conftest.er1 >conftest.err
25190 rm -f conftest.er1
25191 cat conftest.err >&5
25192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193 (exit $ac_status); } && {
25194 test -z "$ac_c_werror_flag" ||
25195 test ! -s conftest.err
25196 } && test -s conftest.$ac_objext; then
25197 :
25198 else
25199 $as_echo "$as_me: failed program was:" >&5
25200 sed 's/^/| /' conftest.$ac_ext >&5
25201
25202 ac_cv_type_bits64_t=yes
25203 fi
25204
25205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25206 else
25207 $as_echo "$as_me: failed program was:" >&5
25208 sed 's/^/| /' conftest.$ac_ext >&5
25209
25210
25211 fi
25212
25213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25214 fi
25215 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25216 $as_echo "$ac_cv_type_bits64_t" >&6; }
25217 if test "x$ac_cv_type_bits64_t" = x""yes; then
25218 :
25219 else
25220
25221 cat >>confdefs.h <<_ACEOF
25222 #define bits64_t long
25223 _ACEOF
25224
25225 fi
25226
25227 else
25228 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
25229 $as_echo_n "checking for bits64_t... " >&6; }
25230 if test "${ac_cv_type_bits64_t+set}" = set; then
25231 $as_echo_n "(cached) " >&6
25232 else
25233 ac_cv_type_bits64_t=no
25234 cat >conftest.$ac_ext <<_ACEOF
25235 /* confdefs.h. */
25236 _ACEOF
25237 cat confdefs.h >>conftest.$ac_ext
25238 cat >>conftest.$ac_ext <<_ACEOF
25239 /* end confdefs.h. */
25240 $ac_includes_default
25241 int
25242 main ()
25243 {
25244 if (sizeof (bits64_t))
25245 return 0;
25246 ;
25247 return 0;
25248 }
25249 _ACEOF
25250 rm -f conftest.$ac_objext
25251 if { (ac_try="$ac_compile"
25252 case "(($ac_try" in
25253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25254 *) ac_try_echo=$ac_try;;
25255 esac
25256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25257 $as_echo "$ac_try_echo") >&5
25258 (eval "$ac_compile") 2>conftest.er1
25259 ac_status=$?
25260 grep -v '^ *+' conftest.er1 >conftest.err
25261 rm -f conftest.er1
25262 cat conftest.err >&5
25263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264 (exit $ac_status); } && {
25265 test -z "$ac_c_werror_flag" ||
25266 test ! -s conftest.err
25267 } && test -s conftest.$ac_objext; then
25268 cat >conftest.$ac_ext <<_ACEOF
25269 /* confdefs.h. */
25270 _ACEOF
25271 cat confdefs.h >>conftest.$ac_ext
25272 cat >>conftest.$ac_ext <<_ACEOF
25273 /* end confdefs.h. */
25274 $ac_includes_default
25275 int
25276 main ()
25277 {
25278 if (sizeof ((bits64_t)))
25279 return 0;
25280 ;
25281 return 0;
25282 }
25283 _ACEOF
25284 rm -f conftest.$ac_objext
25285 if { (ac_try="$ac_compile"
25286 case "(($ac_try" in
25287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25288 *) ac_try_echo=$ac_try;;
25289 esac
25290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25291 $as_echo "$ac_try_echo") >&5
25292 (eval "$ac_compile") 2>conftest.er1
25293 ac_status=$?
25294 grep -v '^ *+' conftest.er1 >conftest.err
25295 rm -f conftest.er1
25296 cat conftest.err >&5
25297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25298 (exit $ac_status); } && {
25299 test -z "$ac_c_werror_flag" ||
25300 test ! -s conftest.err
25301 } && test -s conftest.$ac_objext; then
25302 :
25303 else
25304 $as_echo "$as_me: failed program was:" >&5
25305 sed 's/^/| /' conftest.$ac_ext >&5
25306
25307 ac_cv_type_bits64_t=yes
25308 fi
25309
25310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25311 else
25312 $as_echo "$as_me: failed program was:" >&5
25313 sed 's/^/| /' conftest.$ac_ext >&5
25314
25315
25316 fi
25317
25318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25319 fi
25320 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25321 $as_echo "$ac_cv_type_bits64_t" >&6; }
25322 if test "x$ac_cv_type_bits64_t" = x""yes; then
25323 :
25324 else
25325
25326 cat >>confdefs.h <<_ACEOF
25327 #define bits64_t double
25328 _ACEOF
25329
25330 fi
25331
25332 fi
25333
25334
25335
25336 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
25337 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25338 $as_echo_n "checking for ptrdiff_t... " >&6; }
25339 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25340 $as_echo_n "(cached) " >&6
25341 else
25342 ac_cv_type_ptrdiff_t=no
25343 cat >conftest.$ac_ext <<_ACEOF
25344 /* confdefs.h. */
25345 _ACEOF
25346 cat confdefs.h >>conftest.$ac_ext
25347 cat >>conftest.$ac_ext <<_ACEOF
25348 /* end confdefs.h. */
25349 $ac_includes_default
25350 int
25351 main ()
25352 {
25353 if (sizeof (ptrdiff_t))
25354 return 0;
25355 ;
25356 return 0;
25357 }
25358 _ACEOF
25359 rm -f conftest.$ac_objext
25360 if { (ac_try="$ac_compile"
25361 case "(($ac_try" in
25362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25363 *) ac_try_echo=$ac_try;;
25364 esac
25365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25366 $as_echo "$ac_try_echo") >&5
25367 (eval "$ac_compile") 2>conftest.er1
25368 ac_status=$?
25369 grep -v '^ *+' conftest.er1 >conftest.err
25370 rm -f conftest.er1
25371 cat conftest.err >&5
25372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373 (exit $ac_status); } && {
25374 test -z "$ac_c_werror_flag" ||
25375 test ! -s conftest.err
25376 } && test -s conftest.$ac_objext; then
25377 cat >conftest.$ac_ext <<_ACEOF
25378 /* confdefs.h. */
25379 _ACEOF
25380 cat confdefs.h >>conftest.$ac_ext
25381 cat >>conftest.$ac_ext <<_ACEOF
25382 /* end confdefs.h. */
25383 $ac_includes_default
25384 int
25385 main ()
25386 {
25387 if (sizeof ((ptrdiff_t)))
25388 return 0;
25389 ;
25390 return 0;
25391 }
25392 _ACEOF
25393 rm -f conftest.$ac_objext
25394 if { (ac_try="$ac_compile"
25395 case "(($ac_try" in
25396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25397 *) ac_try_echo=$ac_try;;
25398 esac
25399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25400 $as_echo "$ac_try_echo") >&5
25401 (eval "$ac_compile") 2>conftest.er1
25402 ac_status=$?
25403 grep -v '^ *+' conftest.er1 >conftest.err
25404 rm -f conftest.er1
25405 cat conftest.err >&5
25406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25407 (exit $ac_status); } && {
25408 test -z "$ac_c_werror_flag" ||
25409 test ! -s conftest.err
25410 } && test -s conftest.$ac_objext; then
25411 :
25412 else
25413 $as_echo "$as_me: failed program was:" >&5
25414 sed 's/^/| /' conftest.$ac_ext >&5
25415
25416 ac_cv_type_ptrdiff_t=yes
25417 fi
25418
25419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25420 else
25421 $as_echo "$as_me: failed program was:" >&5
25422 sed 's/^/| /' conftest.$ac_ext >&5
25423
25424
25425 fi
25426
25427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25428 fi
25429 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25430 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25431 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25432 :
25433 else
25434
25435 cat >>confdefs.h <<_ACEOF
25436 #define ptrdiff_t int
25437 _ACEOF
25438
25439 fi
25440
25441 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
25442 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25443 $as_echo_n "checking for ptrdiff_t... " >&6; }
25444 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25445 $as_echo_n "(cached) " >&6
25446 else
25447 ac_cv_type_ptrdiff_t=no
25448 cat >conftest.$ac_ext <<_ACEOF
25449 /* confdefs.h. */
25450 _ACEOF
25451 cat confdefs.h >>conftest.$ac_ext
25452 cat >>conftest.$ac_ext <<_ACEOF
25453 /* end confdefs.h. */
25454 $ac_includes_default
25455 int
25456 main ()
25457 {
25458 if (sizeof (ptrdiff_t))
25459 return 0;
25460 ;
25461 return 0;
25462 }
25463 _ACEOF
25464 rm -f conftest.$ac_objext
25465 if { (ac_try="$ac_compile"
25466 case "(($ac_try" in
25467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25468 *) ac_try_echo=$ac_try;;
25469 esac
25470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25471 $as_echo "$ac_try_echo") >&5
25472 (eval "$ac_compile") 2>conftest.er1
25473 ac_status=$?
25474 grep -v '^ *+' conftest.er1 >conftest.err
25475 rm -f conftest.er1
25476 cat conftest.err >&5
25477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); } && {
25479 test -z "$ac_c_werror_flag" ||
25480 test ! -s conftest.err
25481 } && test -s conftest.$ac_objext; then
25482 cat >conftest.$ac_ext <<_ACEOF
25483 /* confdefs.h. */
25484 _ACEOF
25485 cat confdefs.h >>conftest.$ac_ext
25486 cat >>conftest.$ac_ext <<_ACEOF
25487 /* end confdefs.h. */
25488 $ac_includes_default
25489 int
25490 main ()
25491 {
25492 if (sizeof ((ptrdiff_t)))
25493 return 0;
25494 ;
25495 return 0;
25496 }
25497 _ACEOF
25498 rm -f conftest.$ac_objext
25499 if { (ac_try="$ac_compile"
25500 case "(($ac_try" in
25501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25502 *) ac_try_echo=$ac_try;;
25503 esac
25504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25505 $as_echo "$ac_try_echo") >&5
25506 (eval "$ac_compile") 2>conftest.er1
25507 ac_status=$?
25508 grep -v '^ *+' conftest.er1 >conftest.err
25509 rm -f conftest.er1
25510 cat conftest.err >&5
25511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512 (exit $ac_status); } && {
25513 test -z "$ac_c_werror_flag" ||
25514 test ! -s conftest.err
25515 } && test -s conftest.$ac_objext; then
25516 :
25517 else
25518 $as_echo "$as_me: failed program was:" >&5
25519 sed 's/^/| /' conftest.$ac_ext >&5
25520
25521 ac_cv_type_ptrdiff_t=yes
25522 fi
25523
25524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25525 else
25526 $as_echo "$as_me: failed program was:" >&5
25527 sed 's/^/| /' conftest.$ac_ext >&5
25528
25529
25530 fi
25531
25532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25533 fi
25534 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25535 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25536 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25537 :
25538 else
25539
25540 cat >>confdefs.h <<_ACEOF
25541 #define ptrdiff_t long
25542 _ACEOF
25543
25544 fi
25545
25546 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
25547 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25548 $as_echo_n "checking for ptrdiff_t... " >&6; }
25549 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25550 $as_echo_n "(cached) " >&6
25551 else
25552 ac_cv_type_ptrdiff_t=no
25553 cat >conftest.$ac_ext <<_ACEOF
25554 /* confdefs.h. */
25555 _ACEOF
25556 cat confdefs.h >>conftest.$ac_ext
25557 cat >>conftest.$ac_ext <<_ACEOF
25558 /* end confdefs.h. */
25559 $ac_includes_default
25560 int
25561 main ()
25562 {
25563 if (sizeof (ptrdiff_t))
25564 return 0;
25565 ;
25566 return 0;
25567 }
25568 _ACEOF
25569 rm -f conftest.$ac_objext
25570 if { (ac_try="$ac_compile"
25571 case "(($ac_try" in
25572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25573 *) ac_try_echo=$ac_try;;
25574 esac
25575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25576 $as_echo "$ac_try_echo") >&5
25577 (eval "$ac_compile") 2>conftest.er1
25578 ac_status=$?
25579 grep -v '^ *+' conftest.er1 >conftest.err
25580 rm -f conftest.er1
25581 cat conftest.err >&5
25582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583 (exit $ac_status); } && {
25584 test -z "$ac_c_werror_flag" ||
25585 test ! -s conftest.err
25586 } && test -s conftest.$ac_objext; then
25587 cat >conftest.$ac_ext <<_ACEOF
25588 /* confdefs.h. */
25589 _ACEOF
25590 cat confdefs.h >>conftest.$ac_ext
25591 cat >>conftest.$ac_ext <<_ACEOF
25592 /* end confdefs.h. */
25593 $ac_includes_default
25594 int
25595 main ()
25596 {
25597 if (sizeof ((ptrdiff_t)))
25598 return 0;
25599 ;
25600 return 0;
25601 }
25602 _ACEOF
25603 rm -f conftest.$ac_objext
25604 if { (ac_try="$ac_compile"
25605 case "(($ac_try" in
25606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25607 *) ac_try_echo=$ac_try;;
25608 esac
25609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25610 $as_echo "$ac_try_echo") >&5
25611 (eval "$ac_compile") 2>conftest.er1
25612 ac_status=$?
25613 grep -v '^ *+' conftest.er1 >conftest.err
25614 rm -f conftest.er1
25615 cat conftest.err >&5
25616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617 (exit $ac_status); } && {
25618 test -z "$ac_c_werror_flag" ||
25619 test ! -s conftest.err
25620 } && test -s conftest.$ac_objext; then
25621 :
25622 else
25623 $as_echo "$as_me: failed program was:" >&5
25624 sed 's/^/| /' conftest.$ac_ext >&5
25625
25626 ac_cv_type_ptrdiff_t=yes
25627 fi
25628
25629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25630 else
25631 $as_echo "$as_me: failed program was:" >&5
25632 sed 's/^/| /' conftest.$ac_ext >&5
25633
25634
25635 fi
25636
25637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25638 fi
25639 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25640 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25641 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25642 :
25643 else
25644
25645 cat >>confdefs.h <<_ACEOF
25646 #define ptrdiff_t long long
25647 _ACEOF
25648
25649 fi
25650
25651 else
25652 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25653 $as_echo_n "checking for ptrdiff_t... " >&6; }
25654 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25655 $as_echo_n "(cached) " >&6
25656 else
25657 ac_cv_type_ptrdiff_t=no
25658 cat >conftest.$ac_ext <<_ACEOF
25659 /* confdefs.h. */
25660 _ACEOF
25661 cat confdefs.h >>conftest.$ac_ext
25662 cat >>conftest.$ac_ext <<_ACEOF
25663 /* end confdefs.h. */
25664 $ac_includes_default
25665 int
25666 main ()
25667 {
25668 if (sizeof (ptrdiff_t))
25669 return 0;
25670 ;
25671 return 0;
25672 }
25673 _ACEOF
25674 rm -f conftest.$ac_objext
25675 if { (ac_try="$ac_compile"
25676 case "(($ac_try" in
25677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25678 *) ac_try_echo=$ac_try;;
25679 esac
25680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25681 $as_echo "$ac_try_echo") >&5
25682 (eval "$ac_compile") 2>conftest.er1
25683 ac_status=$?
25684 grep -v '^ *+' conftest.er1 >conftest.err
25685 rm -f conftest.er1
25686 cat conftest.err >&5
25687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); } && {
25689 test -z "$ac_c_werror_flag" ||
25690 test ! -s conftest.err
25691 } && test -s conftest.$ac_objext; then
25692 cat >conftest.$ac_ext <<_ACEOF
25693 /* confdefs.h. */
25694 _ACEOF
25695 cat confdefs.h >>conftest.$ac_ext
25696 cat >>conftest.$ac_ext <<_ACEOF
25697 /* end confdefs.h. */
25698 $ac_includes_default
25699 int
25700 main ()
25701 {
25702 if (sizeof ((ptrdiff_t)))
25703 return 0;
25704 ;
25705 return 0;
25706 }
25707 _ACEOF
25708 rm -f conftest.$ac_objext
25709 if { (ac_try="$ac_compile"
25710 case "(($ac_try" in
25711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25712 *) ac_try_echo=$ac_try;;
25713 esac
25714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25715 $as_echo "$ac_try_echo") >&5
25716 (eval "$ac_compile") 2>conftest.er1
25717 ac_status=$?
25718 grep -v '^ *+' conftest.er1 >conftest.err
25719 rm -f conftest.er1
25720 cat conftest.err >&5
25721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722 (exit $ac_status); } && {
25723 test -z "$ac_c_werror_flag" ||
25724 test ! -s conftest.err
25725 } && test -s conftest.$ac_objext; then
25726 :
25727 else
25728 $as_echo "$as_me: failed program was:" >&5
25729 sed 's/^/| /' conftest.$ac_ext >&5
25730
25731 ac_cv_type_ptrdiff_t=yes
25732 fi
25733
25734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25735 else
25736 $as_echo "$as_me: failed program was:" >&5
25737 sed 's/^/| /' conftest.$ac_ext >&5
25738
25739
25740 fi
25741
25742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25743 fi
25744 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25745 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25746 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25747 :
25748 else
25749
25750 cat >>confdefs.h <<_ACEOF
25751 #define ptrdiff_t int
25752 _ACEOF
25753
25754 fi
25755
25756 fi
25757
25758
25759 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25760 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25761 if test "${ac_cv_header_stat_broken+set}" = set; then
25762 $as_echo_n "(cached) " >&6
25763 else
25764 cat >conftest.$ac_ext <<_ACEOF
25765 /* confdefs.h. */
25766 _ACEOF
25767 cat confdefs.h >>conftest.$ac_ext
25768 cat >>conftest.$ac_ext <<_ACEOF
25769 /* end confdefs.h. */
25770 #include <sys/types.h>
25771 #include <sys/stat.h>
25772
25773 #if defined S_ISBLK && defined S_IFDIR
25774 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25775 #endif
25776
25777 #if defined S_ISBLK && defined S_IFCHR
25778 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25779 #endif
25780
25781 #if defined S_ISLNK && defined S_IFREG
25782 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25783 #endif
25784
25785 #if defined S_ISSOCK && defined S_IFREG
25786 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25787 #endif
25788
25789 _ACEOF
25790 rm -f conftest.$ac_objext
25791 if { (ac_try="$ac_compile"
25792 case "(($ac_try" in
25793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25794 *) ac_try_echo=$ac_try;;
25795 esac
25796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25797 $as_echo "$ac_try_echo") >&5
25798 (eval "$ac_compile") 2>conftest.er1
25799 ac_status=$?
25800 grep -v '^ *+' conftest.er1 >conftest.err
25801 rm -f conftest.er1
25802 cat conftest.err >&5
25803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804 (exit $ac_status); } && {
25805 test -z "$ac_c_werror_flag" ||
25806 test ! -s conftest.err
25807 } && test -s conftest.$ac_objext; then
25808 ac_cv_header_stat_broken=no
25809 else
25810 $as_echo "$as_me: failed program was:" >&5
25811 sed 's/^/| /' conftest.$ac_ext >&5
25812
25813 ac_cv_header_stat_broken=yes
25814 fi
25815
25816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25817 fi
25818 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25819 $as_echo "$ac_cv_header_stat_broken" >&6; }
25820 if test $ac_cv_header_stat_broken = yes; then
25821
25822 cat >>confdefs.h <<\_ACEOF
25823 #define STAT_MACROS_BROKEN 1
25824 _ACEOF
25825
25826 fi
25827
25828
25829 { $as_echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
25830 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
25831 if test "${ac_cv_sys_interpreter+set}" = set; then
25832 $as_echo_n "(cached) " >&6
25833 else
25834 echo '#! /bin/cat
25835 exit 69
25836 ' >conftest
25837 chmod u+x conftest
25838 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
25839 if test $? -ne 69; then
25840 ac_cv_sys_interpreter=yes
25841 else
25842 ac_cv_sys_interpreter=no
25843 fi
25844 rm -f conftest
25845 fi
25846 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
25847 $as_echo "$ac_cv_sys_interpreter" >&6; }
25848 interpval=$ac_cv_sys_interpreter
25849
25850 if test $ac_cv_sys_interpreter = yes; then
25851 cat >>confdefs.h <<\_ACEOF
25852 #define HAVE_HASH_BANG_EXEC 1
25853 _ACEOF
25854
25855 fi
25856
25857 if test "$ac_cv_func_lstat" = "no"; then
25858 { $as_echo "$as_me:$LINENO: checking for lstat" >&5
25859 $as_echo_n "checking for lstat... " >&6; }
25860 if test "${bash_cv_func_lstat+set}" = set; then
25861 $as_echo_n "(cached) " >&6
25862 else
25863 cat >conftest.$ac_ext <<_ACEOF
25864 /* confdefs.h. */
25865 _ACEOF
25866 cat confdefs.h >>conftest.$ac_ext
25867 cat >>conftest.$ac_ext <<_ACEOF
25868 /* end confdefs.h. */
25869
25870 #include <sys/types.h>
25871 #include <sys/stat.h>
25872
25873 int
25874 main ()
25875 {
25876 lstat(".",(struct stat *)0);
25877 ;
25878 return 0;
25879 }
25880 _ACEOF
25881 rm -f conftest.$ac_objext conftest$ac_exeext
25882 if { (ac_try="$ac_link"
25883 case "(($ac_try" in
25884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25885 *) ac_try_echo=$ac_try;;
25886 esac
25887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25888 $as_echo "$ac_try_echo") >&5
25889 (eval "$ac_link") 2>conftest.er1
25890 ac_status=$?
25891 grep -v '^ *+' conftest.er1 >conftest.err
25892 rm -f conftest.er1
25893 cat conftest.err >&5
25894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895 (exit $ac_status); } && {
25896 test -z "$ac_c_werror_flag" ||
25897 test ! -s conftest.err
25898 } && test -s conftest$ac_exeext && {
25899 test "$cross_compiling" = yes ||
25900 $as_test_x conftest$ac_exeext
25901 }; then
25902 bash_cv_func_lstat=yes
25903 else
25904 $as_echo "$as_me: failed program was:" >&5
25905 sed 's/^/| /' conftest.$ac_ext >&5
25906
25907 bash_cv_func_lstat=no
25908 fi
25909
25910 rm -rf conftest.dSYM
25911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25912 conftest$ac_exeext conftest.$ac_ext
25913 fi
25914 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
25915 $as_echo "$bash_cv_func_lstat" >&6; }
25916 if test $bash_cv_func_lstat = yes; then
25917 cat >>confdefs.h <<\_ACEOF
25918 #define HAVE_LSTAT 1
25919 _ACEOF
25920
25921 fi
25922
25923 fi
25924
25925
25926 { $as_echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
25927 $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
25928 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
25929 $as_echo_n "(cached) " >&6
25930 else
25931 if test "$cross_compiling" = yes; then
25932 { $as_echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
25933 $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
25934 bash_cv_func_ctype_nonascii=no
25935
25936 else
25937 cat >conftest.$ac_ext <<_ACEOF
25938 /* confdefs.h. */
25939 _ACEOF
25940 cat confdefs.h >>conftest.$ac_ext
25941 cat >>conftest.$ac_ext <<_ACEOF
25942 /* end confdefs.h. */
25943
25944 #ifdef HAVE_LOCALE_H
25945 #include <locale.h>
25946 #endif
25947 #include <stdio.h>
25948 #include <ctype.h>
25949
25950 main(c, v)
25951 int c;
25952 char *v[];
25953 {
25954 char *deflocale;
25955 unsigned char x;
25956 int r1, r2;
25957
25958 #ifdef HAVE_SETLOCALE
25959 /* We take a shot here. If that locale is not known, try the
25960 system default. We try this one because '\342' (226) is
25961 known to be a printable character in that locale. */
25962 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
25963 if (deflocale == 0)
25964 deflocale = setlocale(LC_ALL, "");
25965 #endif
25966
25967 x = '\342';
25968 r1 = isprint(x);
25969 x -= 128;
25970 r2 = isprint(x);
25971 exit (r1 == 0 || r2 == 0);
25972 }
25973
25974 _ACEOF
25975 rm -f conftest$ac_exeext
25976 if { (ac_try="$ac_link"
25977 case "(($ac_try" in
25978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25979 *) ac_try_echo=$ac_try;;
25980 esac
25981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25982 $as_echo "$ac_try_echo") >&5
25983 (eval "$ac_link") 2>&5
25984 ac_status=$?
25985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25987 { (case "(($ac_try" in
25988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25989 *) ac_try_echo=$ac_try;;
25990 esac
25991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25992 $as_echo "$ac_try_echo") >&5
25993 (eval "$ac_try") 2>&5
25994 ac_status=$?
25995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25996 (exit $ac_status); }; }; then
25997 bash_cv_func_ctype_nonascii=yes
25998 else
25999 $as_echo "$as_me: program exited with status $ac_status" >&5
26000 $as_echo "$as_me: failed program was:" >&5
26001 sed 's/^/| /' conftest.$ac_ext >&5
26002
26003 ( exit $ac_status )
26004 bash_cv_func_ctype_nonascii=no
26005 fi
26006 rm -rf conftest.dSYM
26007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26008 fi
26009
26010
26011 fi
26012
26013 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
26014 $as_echo "$bash_cv_func_ctype_nonascii" >&6; }
26015 if test $bash_cv_func_ctype_nonascii = yes; then
26016 cat >>confdefs.h <<\_ACEOF
26017 #define CTYPE_NON_ASCII 1
26018 _ACEOF
26019
26020 fi
26021
26022 { $as_echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
26023 $as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; }
26024 if test "${bash_cv_dup2_broken+set}" = set; then
26025 $as_echo_n "(cached) " >&6
26026 else
26027 if test "$cross_compiling" = yes; then
26028 { $as_echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
26029 $as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
26030 bash_cv_dup2_broken=no
26031 else
26032 cat >conftest.$ac_ext <<_ACEOF
26033 /* confdefs.h. */
26034 _ACEOF
26035 cat confdefs.h >>conftest.$ac_ext
26036 cat >>conftest.$ac_ext <<_ACEOF
26037 /* end confdefs.h. */
26038
26039 #include <sys/types.h>
26040 #include <fcntl.h>
26041 main()
26042 {
26043 int fd1, fd2, fl;
26044 fd1 = open("/dev/null", 2);
26045 if (fcntl(fd1, 2, 1) < 0)
26046 exit(1);
26047 fd2 = dup2(fd1, 1);
26048 if (fd2 < 0)
26049 exit(2);
26050 fl = fcntl(fd2, 1, 0);
26051 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
26052 exit(fl != 1);
26053 }
26054
26055 _ACEOF
26056 rm -f conftest$ac_exeext
26057 if { (ac_try="$ac_link"
26058 case "(($ac_try" in
26059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26060 *) ac_try_echo=$ac_try;;
26061 esac
26062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26063 $as_echo "$ac_try_echo") >&5
26064 (eval "$ac_link") 2>&5
26065 ac_status=$?
26066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26068 { (case "(($ac_try" in
26069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26070 *) ac_try_echo=$ac_try;;
26071 esac
26072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26073 $as_echo "$ac_try_echo") >&5
26074 (eval "$ac_try") 2>&5
26075 ac_status=$?
26076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077 (exit $ac_status); }; }; then
26078 bash_cv_dup2_broken=yes
26079 else
26080 $as_echo "$as_me: program exited with status $ac_status" >&5
26081 $as_echo "$as_me: failed program was:" >&5
26082 sed 's/^/| /' conftest.$ac_ext >&5
26083
26084 ( exit $ac_status )
26085 bash_cv_dup2_broken=no
26086 fi
26087 rm -rf conftest.dSYM
26088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26089 fi
26090
26091
26092
26093 fi
26094
26095 { $as_echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
26096 $as_echo "$bash_cv_dup2_broken" >&6; }
26097 if test $bash_cv_dup2_broken = yes; then
26098 cat >>confdefs.h <<\_ACEOF
26099 #define DUP2_BROKEN 1
26100 _ACEOF
26101
26102 fi
26103
26104
26105 { $as_echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
26106 $as_echo_n "checking whether pgrps need synchronization... " >&6; }
26107 if test "${bash_cv_pgrp_pipe+set}" = set; then
26108 $as_echo_n "(cached) " >&6
26109 else
26110 if test "$cross_compiling" = yes; then
26111 { $as_echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
26112 $as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
26113 bash_cv_pgrp_pipe=no
26114 else
26115 cat >conftest.$ac_ext <<_ACEOF
26116 /* confdefs.h. */
26117 _ACEOF
26118 cat confdefs.h >>conftest.$ac_ext
26119 cat >>conftest.$ac_ext <<_ACEOF
26120 /* end confdefs.h. */
26121
26122 #ifdef HAVE_UNISTD_H
26123 # include <unistd.h>
26124 #endif
26125 main()
26126 {
26127 # ifdef GETPGRP_VOID
26128 # define getpgID() getpgrp()
26129 # else
26130 # define getpgID() getpgrp(0)
26131 # define setpgid(x,y) setpgrp(x,y)
26132 # endif
26133 int pid1, pid2, fds[2];
26134 int status;
26135 char ok;
26136
26137 switch (pid1 = fork()) {
26138 case -1:
26139 exit(1);
26140 case 0:
26141 setpgid(0, getpid());
26142 exit(0);
26143 }
26144 setpgid(pid1, pid1);
26145
26146 sleep(2); /* let first child die */
26147
26148 if (pipe(fds) < 0)
26149 exit(2);
26150
26151 switch (pid2 = fork()) {
26152 case -1:
26153 exit(3);
26154 case 0:
26155 setpgid(0, pid1);
26156 ok = getpgID() == pid1;
26157 write(fds[1], &ok, 1);
26158 exit(0);
26159 }
26160 setpgid(pid2, pid1);
26161
26162 close(fds[1]);
26163 if (read(fds[0], &ok, 1) != 1)
26164 exit(4);
26165 wait(&status);
26166 wait(&status);
26167 exit(ok ? 0 : 5);
26168 }
26169
26170 _ACEOF
26171 rm -f conftest$ac_exeext
26172 if { (ac_try="$ac_link"
26173 case "(($ac_try" in
26174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26175 *) ac_try_echo=$ac_try;;
26176 esac
26177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26178 $as_echo "$ac_try_echo") >&5
26179 (eval "$ac_link") 2>&5
26180 ac_status=$?
26181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26183 { (case "(($ac_try" in
26184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26185 *) ac_try_echo=$ac_try;;
26186 esac
26187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26188 $as_echo "$ac_try_echo") >&5
26189 (eval "$ac_try") 2>&5
26190 ac_status=$?
26191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192 (exit $ac_status); }; }; then
26193 bash_cv_pgrp_pipe=no
26194 else
26195 $as_echo "$as_me: program exited with status $ac_status" >&5
26196 $as_echo "$as_me: failed program was:" >&5
26197 sed 's/^/| /' conftest.$ac_ext >&5
26198
26199 ( exit $ac_status )
26200 bash_cv_pgrp_pipe=yes
26201 fi
26202 rm -rf conftest.dSYM
26203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26204 fi
26205
26206
26207
26208 fi
26209
26210 { $as_echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
26211 $as_echo "$bash_cv_pgrp_pipe" >&6; }
26212 if test $bash_cv_pgrp_pipe = yes; then
26213 cat >>confdefs.h <<\_ACEOF
26214 #define PGRP_PIPE 1
26215 _ACEOF
26216
26217 fi
26218
26219
26220 { $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5
26221 $as_echo_n "checking for type of signal functions... " >&6; }
26222 if test "${bash_cv_signal_vintage+set}" = set; then
26223 $as_echo_n "(cached) " >&6
26224 else
26225
26226 cat >conftest.$ac_ext <<_ACEOF
26227 /* confdefs.h. */
26228 _ACEOF
26229 cat confdefs.h >>conftest.$ac_ext
26230 cat >>conftest.$ac_ext <<_ACEOF
26231 /* end confdefs.h. */
26232 #include <signal.h>
26233 int
26234 main ()
26235 {
26236
26237 sigset_t ss;
26238 struct sigaction sa;
26239 sigemptyset(&ss); sigsuspend(&ss);
26240 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26241 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26242
26243 ;
26244 return 0;
26245 }
26246 _ACEOF
26247 rm -f conftest.$ac_objext conftest$ac_exeext
26248 if { (ac_try="$ac_link"
26249 case "(($ac_try" in
26250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26251 *) ac_try_echo=$ac_try;;
26252 esac
26253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26254 $as_echo "$ac_try_echo") >&5
26255 (eval "$ac_link") 2>conftest.er1
26256 ac_status=$?
26257 grep -v '^ *+' conftest.er1 >conftest.err
26258 rm -f conftest.er1
26259 cat conftest.err >&5
26260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26261 (exit $ac_status); } && {
26262 test -z "$ac_c_werror_flag" ||
26263 test ! -s conftest.err
26264 } && test -s conftest$ac_exeext && {
26265 test "$cross_compiling" = yes ||
26266 $as_test_x conftest$ac_exeext
26267 }; then
26268 bash_cv_signal_vintage=posix
26269 else
26270 $as_echo "$as_me: failed program was:" >&5
26271 sed 's/^/| /' conftest.$ac_ext >&5
26272
26273
26274 cat >conftest.$ac_ext <<_ACEOF
26275 /* confdefs.h. */
26276 _ACEOF
26277 cat confdefs.h >>conftest.$ac_ext
26278 cat >>conftest.$ac_ext <<_ACEOF
26279 /* end confdefs.h. */
26280 #include <signal.h>
26281 int
26282 main ()
26283 {
26284
26285 int mask = sigmask(SIGINT);
26286 sigsetmask(mask); sigblock(mask); sigpause(mask);
26287
26288 ;
26289 return 0;
26290 }
26291 _ACEOF
26292 rm -f conftest.$ac_objext conftest$ac_exeext
26293 if { (ac_try="$ac_link"
26294 case "(($ac_try" in
26295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26296 *) ac_try_echo=$ac_try;;
26297 esac
26298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26299 $as_echo "$ac_try_echo") >&5
26300 (eval "$ac_link") 2>conftest.er1
26301 ac_status=$?
26302 grep -v '^ *+' conftest.er1 >conftest.err
26303 rm -f conftest.er1
26304 cat conftest.err >&5
26305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306 (exit $ac_status); } && {
26307 test -z "$ac_c_werror_flag" ||
26308 test ! -s conftest.err
26309 } && test -s conftest$ac_exeext && {
26310 test "$cross_compiling" = yes ||
26311 $as_test_x conftest$ac_exeext
26312 }; then
26313 bash_cv_signal_vintage=4.2bsd
26314 else
26315 $as_echo "$as_me: failed program was:" >&5
26316 sed 's/^/| /' conftest.$ac_ext >&5
26317
26318
26319 cat >conftest.$ac_ext <<_ACEOF
26320 /* confdefs.h. */
26321 _ACEOF
26322 cat confdefs.h >>conftest.$ac_ext
26323 cat >>conftest.$ac_ext <<_ACEOF
26324 /* end confdefs.h. */
26325
26326 #include <signal.h>
26327 RETSIGTYPE foo() { }
26328 int
26329 main ()
26330 {
26331
26332 int mask = sigmask(SIGINT);
26333 sigset(SIGINT, foo); sigrelse(SIGINT);
26334 sighold(SIGINT); sigpause(SIGINT);
26335
26336 ;
26337 return 0;
26338 }
26339 _ACEOF
26340 rm -f conftest.$ac_objext conftest$ac_exeext
26341 if { (ac_try="$ac_link"
26342 case "(($ac_try" in
26343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26344 *) ac_try_echo=$ac_try;;
26345 esac
26346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26347 $as_echo "$ac_try_echo") >&5
26348 (eval "$ac_link") 2>conftest.er1
26349 ac_status=$?
26350 grep -v '^ *+' conftest.er1 >conftest.err
26351 rm -f conftest.er1
26352 cat conftest.err >&5
26353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354 (exit $ac_status); } && {
26355 test -z "$ac_c_werror_flag" ||
26356 test ! -s conftest.err
26357 } && test -s conftest$ac_exeext && {
26358 test "$cross_compiling" = yes ||
26359 $as_test_x conftest$ac_exeext
26360 }; then
26361 bash_cv_signal_vintage=svr3
26362 else
26363 $as_echo "$as_me: failed program was:" >&5
26364 sed 's/^/| /' conftest.$ac_ext >&5
26365
26366 bash_cv_signal_vintage=v7
26367
26368 fi
26369
26370 rm -rf conftest.dSYM
26371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26372 conftest$ac_exeext conftest.$ac_ext
26373
26374 fi
26375
26376 rm -rf conftest.dSYM
26377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26378 conftest$ac_exeext conftest.$ac_ext
26379
26380 fi
26381
26382 rm -rf conftest.dSYM
26383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26384 conftest$ac_exeext conftest.$ac_ext
26385
26386 fi
26387
26388 { $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
26389 $as_echo "$bash_cv_signal_vintage" >&6; }
26390 if test "$bash_cv_signal_vintage" = posix; then
26391 cat >>confdefs.h <<\_ACEOF
26392 #define HAVE_POSIX_SIGNALS 1
26393 _ACEOF
26394
26395 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26396 cat >>confdefs.h <<\_ACEOF
26397 #define HAVE_BSD_SIGNALS 1
26398 _ACEOF
26399
26400 elif test "$bash_cv_signal_vintage" = svr3; then
26401 cat >>confdefs.h <<\_ACEOF
26402 #define HAVE_USG_SIGHOLD 1
26403 _ACEOF
26404
26405 fi
26406
26407
26408 { $as_echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
26409 $as_echo_n "checking for sys_errlist and sys_nerr... " >&6; }
26410 if test "${bash_cv_sys_errlist+set}" = set; then
26411 $as_echo_n "(cached) " >&6
26412 else
26413 cat >conftest.$ac_ext <<_ACEOF
26414 /* confdefs.h. */
26415 _ACEOF
26416 cat confdefs.h >>conftest.$ac_ext
26417 cat >>conftest.$ac_ext <<_ACEOF
26418 /* end confdefs.h. */
26419 #include <errno.h>
26420 int
26421 main ()
26422 {
26423 extern char *sys_errlist[];
26424 extern int sys_nerr;
26425 char *msg = sys_errlist[sys_nerr - 1];
26426 ;
26427 return 0;
26428 }
26429 _ACEOF
26430 rm -f conftest.$ac_objext conftest$ac_exeext
26431 if { (ac_try="$ac_link"
26432 case "(($ac_try" in
26433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26434 *) ac_try_echo=$ac_try;;
26435 esac
26436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26437 $as_echo "$ac_try_echo") >&5
26438 (eval "$ac_link") 2>conftest.er1
26439 ac_status=$?
26440 grep -v '^ *+' conftest.er1 >conftest.err
26441 rm -f conftest.er1
26442 cat conftest.err >&5
26443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26444 (exit $ac_status); } && {
26445 test -z "$ac_c_werror_flag" ||
26446 test ! -s conftest.err
26447 } && test -s conftest$ac_exeext && {
26448 test "$cross_compiling" = yes ||
26449 $as_test_x conftest$ac_exeext
26450 }; then
26451 bash_cv_sys_errlist=yes
26452 else
26453 $as_echo "$as_me: failed program was:" >&5
26454 sed 's/^/| /' conftest.$ac_ext >&5
26455
26456 bash_cv_sys_errlist=no
26457 fi
26458
26459 rm -rf conftest.dSYM
26460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26461 conftest$ac_exeext conftest.$ac_ext
26462 fi
26463 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
26464 $as_echo "$bash_cv_sys_errlist" >&6; }
26465 if test $bash_cv_sys_errlist = yes; then
26466 cat >>confdefs.h <<\_ACEOF
26467 #define HAVE_SYS_ERRLIST 1
26468 _ACEOF
26469
26470 fi
26471
26472
26473 { $as_echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
26474 $as_echo_n "checking for sys_siglist in system C library... " >&6; }
26475 if test "${bash_cv_sys_siglist+set}" = set; then
26476 $as_echo_n "(cached) " >&6
26477 else
26478 if test "$cross_compiling" = yes; then
26479 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
26480 $as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
26481 bash_cv_sys_siglist=no
26482 else
26483 cat >conftest.$ac_ext <<_ACEOF
26484 /* confdefs.h. */
26485 _ACEOF
26486 cat confdefs.h >>conftest.$ac_ext
26487 cat >>conftest.$ac_ext <<_ACEOF
26488 /* end confdefs.h. */
26489
26490 #include <sys/types.h>
26491 #include <signal.h>
26492 #ifdef HAVE_UNISTD_H
26493 #include <unistd.h>
26494 #endif
26495 #if !HAVE_DECL_SYS_SIGLIST
26496 extern char *sys_siglist[];
26497 #endif
26498 main()
26499 {
26500 char *msg = sys_siglist[2];
26501 exit(msg == 0);
26502 }
26503 _ACEOF
26504 rm -f conftest$ac_exeext
26505 if { (ac_try="$ac_link"
26506 case "(($ac_try" in
26507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26508 *) ac_try_echo=$ac_try;;
26509 esac
26510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26511 $as_echo "$ac_try_echo") >&5
26512 (eval "$ac_link") 2>&5
26513 ac_status=$?
26514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26516 { (case "(($ac_try" in
26517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26518 *) ac_try_echo=$ac_try;;
26519 esac
26520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26521 $as_echo "$ac_try_echo") >&5
26522 (eval "$ac_try") 2>&5
26523 ac_status=$?
26524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525 (exit $ac_status); }; }; then
26526 bash_cv_sys_siglist=yes
26527 else
26528 $as_echo "$as_me: program exited with status $ac_status" >&5
26529 $as_echo "$as_me: failed program was:" >&5
26530 sed 's/^/| /' conftest.$ac_ext >&5
26531
26532 ( exit $ac_status )
26533 bash_cv_sys_siglist=no
26534 fi
26535 rm -rf conftest.dSYM
26536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26537 fi
26538
26539
26540 fi
26541
26542 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
26543 $as_echo "$bash_cv_sys_siglist" >&6; }
26544 if test $bash_cv_sys_siglist = yes; then
26545 cat >>confdefs.h <<\_ACEOF
26546 #define HAVE_SYS_SIGLIST 1
26547 _ACEOF
26548
26549 fi
26550
26551 { $as_echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
26552 $as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; }
26553 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
26554 $as_echo_n "(cached) " >&6
26555 else
26556 cat >conftest.$ac_ext <<_ACEOF
26557 /* confdefs.h. */
26558 _ACEOF
26559 cat confdefs.h >>conftest.$ac_ext
26560 cat >>conftest.$ac_ext <<_ACEOF
26561 /* end confdefs.h. */
26562
26563 #include <sys/types.h>
26564 #include <signal.h>
26565 #ifdef HAVE_UNISTD_H
26566 #include <unistd.h>
26567 #endif
26568 int
26569 main ()
26570 {
26571 char *msg = _sys_siglist[2];
26572 ;
26573 return 0;
26574 }
26575 _ACEOF
26576 rm -f conftest.$ac_objext
26577 if { (ac_try="$ac_compile"
26578 case "(($ac_try" in
26579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26580 *) ac_try_echo=$ac_try;;
26581 esac
26582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26583 $as_echo "$ac_try_echo") >&5
26584 (eval "$ac_compile") 2>conftest.er1
26585 ac_status=$?
26586 grep -v '^ *+' conftest.er1 >conftest.err
26587 rm -f conftest.er1
26588 cat conftest.err >&5
26589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590 (exit $ac_status); } && {
26591 test -z "$ac_c_werror_flag" ||
26592 test ! -s conftest.err
26593 } && test -s conftest.$ac_objext; then
26594 bash_cv_decl_under_sys_siglist=yes
26595 else
26596 $as_echo "$as_me: failed program was:" >&5
26597 sed 's/^/| /' conftest.$ac_ext >&5
26598
26599 bash_cv_decl_under_sys_siglist=no
26600 fi
26601
26602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26603 fi
26604 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
26605 $as_echo "$bash_cv_decl_under_sys_siglist" >&6; }
26606 if test $bash_cv_decl_under_sys_siglist = yes; then
26607 cat >>confdefs.h <<\_ACEOF
26608 #define UNDER_SYS_SIGLIST_DECLARED 1
26609 _ACEOF
26610
26611 fi
26612
26613
26614 { $as_echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
26615 $as_echo_n "checking for _sys_siglist in system C library... " >&6; }
26616 if test "${bash_cv_under_sys_siglist+set}" = set; then
26617 $as_echo_n "(cached) " >&6
26618 else
26619 if test "$cross_compiling" = yes; then
26620 { $as_echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
26621 $as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
26622 bash_cv_under_sys_siglist=no
26623 else
26624 cat >conftest.$ac_ext <<_ACEOF
26625 /* confdefs.h. */
26626 _ACEOF
26627 cat confdefs.h >>conftest.$ac_ext
26628 cat >>conftest.$ac_ext <<_ACEOF
26629 /* end confdefs.h. */
26630
26631 #include <sys/types.h>
26632 #include <signal.h>
26633 #ifdef HAVE_UNISTD_H
26634 #include <unistd.h>
26635 #endif
26636 #ifndef UNDER_SYS_SIGLIST_DECLARED
26637 extern char *_sys_siglist[];
26638 #endif
26639 main()
26640 {
26641 char *msg = (char *)_sys_siglist[2];
26642 exit(msg == 0);
26643 }
26644 _ACEOF
26645 rm -f conftest$ac_exeext
26646 if { (ac_try="$ac_link"
26647 case "(($ac_try" in
26648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26649 *) ac_try_echo=$ac_try;;
26650 esac
26651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26652 $as_echo "$ac_try_echo") >&5
26653 (eval "$ac_link") 2>&5
26654 ac_status=$?
26655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26657 { (case "(($ac_try" in
26658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26659 *) ac_try_echo=$ac_try;;
26660 esac
26661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26662 $as_echo "$ac_try_echo") >&5
26663 (eval "$ac_try") 2>&5
26664 ac_status=$?
26665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666 (exit $ac_status); }; }; then
26667 bash_cv_under_sys_siglist=yes
26668 else
26669 $as_echo "$as_me: program exited with status $ac_status" >&5
26670 $as_echo "$as_me: failed program was:" >&5
26671 sed 's/^/| /' conftest.$ac_ext >&5
26672
26673 ( exit $ac_status )
26674 bash_cv_under_sys_siglist=no
26675 fi
26676 rm -rf conftest.dSYM
26677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26678 fi
26679
26680
26681 fi
26682
26683 { $as_echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
26684 $as_echo "$bash_cv_under_sys_siglist" >&6; }
26685 if test $bash_cv_under_sys_siglist = yes; then
26686 cat >>confdefs.h <<\_ACEOF
26687 #define HAVE_UNDER_SYS_SIGLIST 1
26688 _ACEOF
26689
26690 fi
26691
26692
26693 { $as_echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
26694 $as_echo_n "checking whether signal handlers are of type void... " >&6; }
26695 if test "${bash_cv_void_sighandler+set}" = set; then
26696 $as_echo_n "(cached) " >&6
26697 else
26698 cat >conftest.$ac_ext <<_ACEOF
26699 /* confdefs.h. */
26700 _ACEOF
26701 cat confdefs.h >>conftest.$ac_ext
26702 cat >>conftest.$ac_ext <<_ACEOF
26703 /* end confdefs.h. */
26704 #include <sys/types.h>
26705 #include <signal.h>
26706 #ifdef signal
26707 #undef signal
26708 #endif
26709 #ifdef __cplusplus
26710 extern "C"
26711 #endif
26712 void (*signal ()) ();
26713 int
26714 main ()
26715 {
26716 int i;
26717 ;
26718 return 0;
26719 }
26720 _ACEOF
26721 rm -f conftest.$ac_objext
26722 if { (ac_try="$ac_compile"
26723 case "(($ac_try" in
26724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26725 *) ac_try_echo=$ac_try;;
26726 esac
26727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26728 $as_echo "$ac_try_echo") >&5
26729 (eval "$ac_compile") 2>conftest.er1
26730 ac_status=$?
26731 grep -v '^ *+' conftest.er1 >conftest.err
26732 rm -f conftest.er1
26733 cat conftest.err >&5
26734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735 (exit $ac_status); } && {
26736 test -z "$ac_c_werror_flag" ||
26737 test ! -s conftest.err
26738 } && test -s conftest.$ac_objext; then
26739 bash_cv_void_sighandler=yes
26740 else
26741 $as_echo "$as_me: failed program was:" >&5
26742 sed 's/^/| /' conftest.$ac_ext >&5
26743
26744 bash_cv_void_sighandler=no
26745 fi
26746
26747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26748 fi
26749 { $as_echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
26750 $as_echo "$bash_cv_void_sighandler" >&6; }
26751 if test $bash_cv_void_sighandler = yes; then
26752 cat >>confdefs.h <<\_ACEOF
26753 #define VOID_SIGHANDLER 1
26754 _ACEOF
26755
26756 fi
26757
26758
26759
26760 { $as_echo "$as_me:$LINENO: checking for clock_t" >&5
26761 $as_echo_n "checking for clock_t... " >&6; }
26762 if test "${bash_cv_type_clock_t+set}" = set; then
26763 $as_echo_n "(cached) " >&6
26764 else
26765 cat >conftest.$ac_ext <<_ACEOF
26766 /* confdefs.h. */
26767 _ACEOF
26768 cat confdefs.h >>conftest.$ac_ext
26769 cat >>conftest.$ac_ext <<_ACEOF
26770 /* end confdefs.h. */
26771 #include <sys/types.h>
26772 #if STDC_HEADERS
26773 #include <stdlib.h>
26774 #include <stddef.h>
26775 #endif
26776 #if HAVE_INTTYPES_H
26777 #include <inttypes.h>
26778 #endif
26779 #if HAVE_STDINT_H
26780 #include <stdint.h>
26781 #endif
26782 #include <sys/times.h>
26783
26784 _ACEOF
26785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26786 $EGREP "clock_t" >/dev/null 2>&1; then
26787 bash_cv_type_clock_t=yes
26788 else
26789 bash_cv_type_clock_t=no
26790 fi
26791 rm -f conftest*
26792
26793 fi
26794
26795 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
26796 $as_echo "$bash_cv_type_clock_t" >&6; }
26797
26798 if test $bash_cv_type_clock_t = no; then
26799 cat >>confdefs.h <<_ACEOF
26800 #define clock_t long
26801 _ACEOF
26802
26803 fi
26804
26805
26806
26807 { $as_echo "$as_me:$LINENO: checking for sigset_t" >&5
26808 $as_echo_n "checking for sigset_t... " >&6; }
26809 if test "${bash_cv_type_sigset_t+set}" = set; then
26810 $as_echo_n "(cached) " >&6
26811 else
26812 cat >conftest.$ac_ext <<_ACEOF
26813 /* confdefs.h. */
26814 _ACEOF
26815 cat confdefs.h >>conftest.$ac_ext
26816 cat >>conftest.$ac_ext <<_ACEOF
26817 /* end confdefs.h. */
26818 #include <sys/types.h>
26819 #if STDC_HEADERS
26820 #include <stdlib.h>
26821 #include <stddef.h>
26822 #endif
26823 #if HAVE_INTTYPES_H
26824 #include <inttypes.h>
26825 #endif
26826 #if HAVE_STDINT_H
26827 #include <stdint.h>
26828 #endif
26829 #include <signal.h>
26830
26831 _ACEOF
26832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26833 $EGREP "sigset_t" >/dev/null 2>&1; then
26834 bash_cv_type_sigset_t=yes
26835 else
26836 bash_cv_type_sigset_t=no
26837 fi
26838 rm -f conftest*
26839
26840 fi
26841
26842 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
26843 $as_echo "$bash_cv_type_sigset_t" >&6; }
26844
26845 if test $bash_cv_type_sigset_t = no; then
26846 cat >>confdefs.h <<_ACEOF
26847 #define sigset_t int
26848 _ACEOF
26849
26850 fi
26851
26852
26853
26854 { $as_echo "$as_me:$LINENO: checking for quad_t" >&5
26855 $as_echo_n "checking for quad_t... " >&6; }
26856 if test "${bash_cv_type_quad_t+set}" = set; then
26857 $as_echo_n "(cached) " >&6
26858 else
26859 cat >conftest.$ac_ext <<_ACEOF
26860 /* confdefs.h. */
26861 _ACEOF
26862 cat confdefs.h >>conftest.$ac_ext
26863 cat >>conftest.$ac_ext <<_ACEOF
26864 /* end confdefs.h. */
26865 #include <sys/types.h>
26866 #if STDC_HEADERS
26867 #include <stdlib.h>
26868 #include <stddef.h>
26869 #endif
26870 #if HAVE_INTTYPES_H
26871 #include <inttypes.h>
26872 #endif
26873 #if HAVE_STDINT_H
26874 #include <stdint.h>
26875 #endif
26876
26877
26878 _ACEOF
26879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26880 $EGREP "quad_t" >/dev/null 2>&1; then
26881 bash_cv_type_quad_t=yes
26882 else
26883 bash_cv_type_quad_t=no
26884 fi
26885 rm -f conftest*
26886
26887 fi
26888
26889 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
26890 $as_echo "$bash_cv_type_quad_t" >&6; }
26891 if test $bash_cv_type_quad_t = yes; then
26892 cat >>confdefs.h <<\_ACEOF
26893 #define HAVE_QUAD_T 1
26894 _ACEOF
26895
26896 fi
26897 if test $bash_cv_type_quad_t = no; then
26898 cat >>confdefs.h <<_ACEOF
26899 #define quad_t long
26900 _ACEOF
26901
26902 fi
26903
26904
26905
26906 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
26907 $as_echo_n "checking for intmax_t... " >&6; }
26908 if test "${bash_cv_type_intmax_t+set}" = set; then
26909 $as_echo_n "(cached) " >&6
26910 else
26911 cat >conftest.$ac_ext <<_ACEOF
26912 /* confdefs.h. */
26913 _ACEOF
26914 cat confdefs.h >>conftest.$ac_ext
26915 cat >>conftest.$ac_ext <<_ACEOF
26916 /* end confdefs.h. */
26917 #include <sys/types.h>
26918 #if STDC_HEADERS
26919 #include <stdlib.h>
26920 #include <stddef.h>
26921 #endif
26922 #if HAVE_INTTYPES_H
26923 #include <inttypes.h>
26924 #endif
26925 #if HAVE_STDINT_H
26926 #include <stdint.h>
26927 #endif
26928
26929
26930 _ACEOF
26931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26932 $EGREP "intmax_t" >/dev/null 2>&1; then
26933 bash_cv_type_intmax_t=yes
26934 else
26935 bash_cv_type_intmax_t=no
26936 fi
26937 rm -f conftest*
26938
26939 fi
26940
26941 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
26942 $as_echo "$bash_cv_type_intmax_t" >&6; }
26943
26944 if test $bash_cv_type_intmax_t = no; then
26945 cat >>confdefs.h <<_ACEOF
26946 #define intmax_t $bash_cv_type_long_long
26947 _ACEOF
26948
26949 fi
26950
26951
26952
26953 { $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5
26954 $as_echo_n "checking for uintmax_t... " >&6; }
26955 if test "${bash_cv_type_uintmax_t+set}" = set; then
26956 $as_echo_n "(cached) " >&6
26957 else
26958 cat >conftest.$ac_ext <<_ACEOF
26959 /* confdefs.h. */
26960 _ACEOF
26961 cat confdefs.h >>conftest.$ac_ext
26962 cat >>conftest.$ac_ext <<_ACEOF
26963 /* end confdefs.h. */
26964 #include <sys/types.h>
26965 #if STDC_HEADERS
26966 #include <stdlib.h>
26967 #include <stddef.h>
26968 #endif
26969 #if HAVE_INTTYPES_H
26970 #include <inttypes.h>
26971 #endif
26972 #if HAVE_STDINT_H
26973 #include <stdint.h>
26974 #endif
26975
26976
26977 _ACEOF
26978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26979 $EGREP "uintmax_t" >/dev/null 2>&1; then
26980 bash_cv_type_uintmax_t=yes
26981 else
26982 bash_cv_type_uintmax_t=no
26983 fi
26984 rm -f conftest*
26985
26986 fi
26987
26988 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
26989 $as_echo "$bash_cv_type_uintmax_t" >&6; }
26990
26991 if test $bash_cv_type_uintmax_t = no; then
26992 cat >>confdefs.h <<_ACEOF
26993 #define uintmax_t $bash_cv_type_unsigned_long_long
26994 _ACEOF
26995
26996 fi
26997
26998 if test "$ac_cv_header_sys_socket_h" = "yes"; then
26999
27000
27001 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
27002 $as_echo_n "checking for socklen_t... " >&6; }
27003 if test "${bash_cv_type_socklen_t+set}" = set; then
27004 $as_echo_n "(cached) " >&6
27005 else
27006 cat >conftest.$ac_ext <<_ACEOF
27007 /* confdefs.h. */
27008 _ACEOF
27009 cat confdefs.h >>conftest.$ac_ext
27010 cat >>conftest.$ac_ext <<_ACEOF
27011 /* end confdefs.h. */
27012 #include <sys/types.h>
27013 #if STDC_HEADERS
27014 #include <stdlib.h>
27015 #include <stddef.h>
27016 #endif
27017 #if HAVE_INTTYPES_H
27018 #include <inttypes.h>
27019 #endif
27020 #if HAVE_STDINT_H
27021 #include <stdint.h>
27022 #endif
27023 #include <sys/socket.h>
27024
27025 _ACEOF
27026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27027 $EGREP "socklen_t" >/dev/null 2>&1; then
27028 bash_cv_type_socklen_t=yes
27029 else
27030 bash_cv_type_socklen_t=no
27031 fi
27032 rm -f conftest*
27033
27034 fi
27035
27036 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
27037 $as_echo "$bash_cv_type_socklen_t" >&6; }
27038 if test $bash_cv_type_socklen_t = yes; then
27039 cat >>confdefs.h <<\_ACEOF
27040 #define HAVE_SOCKLEN_T 1
27041 _ACEOF
27042
27043 fi
27044 if test $bash_cv_type_socklen_t = no; then
27045 cat >>confdefs.h <<_ACEOF
27046 #define socklen_t int
27047 _ACEOF
27048
27049 fi
27050
27051 fi
27052 { $as_echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
27053 $as_echo_n "checking for size and type of struct rlimit fields... " >&6; }
27054 if test "${bash_cv_type_rlimit+set}" = set; then
27055 $as_echo_n "(cached) " >&6
27056 else
27057 cat >conftest.$ac_ext <<_ACEOF
27058 /* confdefs.h. */
27059 _ACEOF
27060 cat confdefs.h >>conftest.$ac_ext
27061 cat >>conftest.$ac_ext <<_ACEOF
27062 /* end confdefs.h. */
27063 #include <sys/types.h>
27064 #include <sys/resource.h>
27065 int
27066 main ()
27067 {
27068 rlim_t xxx;
27069 ;
27070 return 0;
27071 }
27072 _ACEOF
27073 rm -f conftest.$ac_objext
27074 if { (ac_try="$ac_compile"
27075 case "(($ac_try" in
27076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27077 *) ac_try_echo=$ac_try;;
27078 esac
27079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27080 $as_echo "$ac_try_echo") >&5
27081 (eval "$ac_compile") 2>conftest.er1
27082 ac_status=$?
27083 grep -v '^ *+' conftest.er1 >conftest.err
27084 rm -f conftest.er1
27085 cat conftest.err >&5
27086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087 (exit $ac_status); } && {
27088 test -z "$ac_c_werror_flag" ||
27089 test ! -s conftest.err
27090 } && test -s conftest.$ac_objext; then
27091 bash_cv_type_rlimit=rlim_t
27092 else
27093 $as_echo "$as_me: failed program was:" >&5
27094 sed 's/^/| /' conftest.$ac_ext >&5
27095
27096
27097 if test "$cross_compiling" = yes; then
27098 { $as_echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
27099 $as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
27100 bash_cv_type_rlimit=long
27101 else
27102 cat >conftest.$ac_ext <<_ACEOF
27103 /* confdefs.h. */
27104 _ACEOF
27105 cat confdefs.h >>conftest.$ac_ext
27106 cat >>conftest.$ac_ext <<_ACEOF
27107 /* end confdefs.h. */
27108
27109 #include <sys/types.h>
27110 #include <sys/time.h>
27111 #include <sys/resource.h>
27112 main()
27113 {
27114 #ifdef HAVE_QUAD_T
27115 struct rlimit rl;
27116 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
27117 exit(0);
27118 #endif
27119 exit(1);
27120 }
27121 _ACEOF
27122 rm -f conftest$ac_exeext
27123 if { (ac_try="$ac_link"
27124 case "(($ac_try" in
27125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27126 *) ac_try_echo=$ac_try;;
27127 esac
27128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27129 $as_echo "$ac_try_echo") >&5
27130 (eval "$ac_link") 2>&5
27131 ac_status=$?
27132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
27141 ac_status=$?
27142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143 (exit $ac_status); }; }; then
27144 bash_cv_type_rlimit=quad_t
27145 else
27146 $as_echo "$as_me: program exited with status $ac_status" >&5
27147 $as_echo "$as_me: failed program was:" >&5
27148 sed 's/^/| /' conftest.$ac_ext >&5
27149
27150 ( exit $ac_status )
27151 bash_cv_type_rlimit=long
27152 fi
27153 rm -rf conftest.dSYM
27154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27155 fi
27156
27157
27158 fi
27159
27160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27161
27162 fi
27163
27164 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
27165 $as_echo "$bash_cv_type_rlimit" >&6; }
27166 if test $bash_cv_type_rlimit = quad_t; then
27167 cat >>confdefs.h <<\_ACEOF
27168 #define RLIMTYPE quad_t
27169 _ACEOF
27170
27171 elif test $bash_cv_type_rlimit = rlim_t; then
27172 cat >>confdefs.h <<\_ACEOF
27173 #define RLIMTYPE rlim_t
27174 _ACEOF
27175
27176 fi
27177
27178
27179 # The cast to long int works around a bug in the HP C Compiler
27180 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27181 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27182 # This bug is HP SR number 8606223364.
27183 { $as_echo "$as_me:$LINENO: checking size of intmax_t" >&5
27184 $as_echo_n "checking size of intmax_t... " >&6; }
27185 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
27186 $as_echo_n "(cached) " >&6
27187 else
27188 if test "$cross_compiling" = yes; then
27189 # Depending upon the size, compute the lo and hi bounds.
27190 cat >conftest.$ac_ext <<_ACEOF
27191 /* confdefs.h. */
27192 _ACEOF
27193 cat confdefs.h >>conftest.$ac_ext
27194 cat >>conftest.$ac_ext <<_ACEOF
27195 /* end confdefs.h. */
27196 $ac_includes_default
27197 int
27198 main ()
27199 {
27200 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= 0)];
27201 test_array [0] = 0
27202
27203 ;
27204 return 0;
27205 }
27206 _ACEOF
27207 rm -f conftest.$ac_objext
27208 if { (ac_try="$ac_compile"
27209 case "(($ac_try" in
27210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27211 *) ac_try_echo=$ac_try;;
27212 esac
27213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27214 $as_echo "$ac_try_echo") >&5
27215 (eval "$ac_compile") 2>conftest.er1
27216 ac_status=$?
27217 grep -v '^ *+' conftest.er1 >conftest.err
27218 rm -f conftest.er1
27219 cat conftest.err >&5
27220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221 (exit $ac_status); } && {
27222 test -z "$ac_c_werror_flag" ||
27223 test ! -s conftest.err
27224 } && test -s conftest.$ac_objext; then
27225 ac_lo=0 ac_mid=0
27226 while :; do
27227 cat >conftest.$ac_ext <<_ACEOF
27228 /* confdefs.h. */
27229 _ACEOF
27230 cat confdefs.h >>conftest.$ac_ext
27231 cat >>conftest.$ac_ext <<_ACEOF
27232 /* end confdefs.h. */
27233 $ac_includes_default
27234 int
27235 main ()
27236 {
27237 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
27238 test_array [0] = 0
27239
27240 ;
27241 return 0;
27242 }
27243 _ACEOF
27244 rm -f conftest.$ac_objext
27245 if { (ac_try="$ac_compile"
27246 case "(($ac_try" in
27247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27248 *) ac_try_echo=$ac_try;;
27249 esac
27250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27251 $as_echo "$ac_try_echo") >&5
27252 (eval "$ac_compile") 2>conftest.er1
27253 ac_status=$?
27254 grep -v '^ *+' conftest.er1 >conftest.err
27255 rm -f conftest.er1
27256 cat conftest.err >&5
27257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258 (exit $ac_status); } && {
27259 test -z "$ac_c_werror_flag" ||
27260 test ! -s conftest.err
27261 } && test -s conftest.$ac_objext; then
27262 ac_hi=$ac_mid; break
27263 else
27264 $as_echo "$as_me: failed program was:" >&5
27265 sed 's/^/| /' conftest.$ac_ext >&5
27266
27267 ac_lo=`expr $ac_mid + 1`
27268 if test $ac_lo -le $ac_mid; then
27269 ac_lo= ac_hi=
27270 break
27271 fi
27272 ac_mid=`expr 2 '*' $ac_mid + 1`
27273 fi
27274
27275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27276 done
27277 else
27278 $as_echo "$as_me: failed program was:" >&5
27279 sed 's/^/| /' conftest.$ac_ext >&5
27280
27281 cat >conftest.$ac_ext <<_ACEOF
27282 /* confdefs.h. */
27283 _ACEOF
27284 cat confdefs.h >>conftest.$ac_ext
27285 cat >>conftest.$ac_ext <<_ACEOF
27286 /* end confdefs.h. */
27287 $ac_includes_default
27288 int
27289 main ()
27290 {
27291 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) < 0)];
27292 test_array [0] = 0
27293
27294 ;
27295 return 0;
27296 }
27297 _ACEOF
27298 rm -f conftest.$ac_objext
27299 if { (ac_try="$ac_compile"
27300 case "(($ac_try" in
27301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27302 *) ac_try_echo=$ac_try;;
27303 esac
27304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27305 $as_echo "$ac_try_echo") >&5
27306 (eval "$ac_compile") 2>conftest.er1
27307 ac_status=$?
27308 grep -v '^ *+' conftest.er1 >conftest.err
27309 rm -f conftest.er1
27310 cat conftest.err >&5
27311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); } && {
27313 test -z "$ac_c_werror_flag" ||
27314 test ! -s conftest.err
27315 } && test -s conftest.$ac_objext; then
27316 ac_hi=-1 ac_mid=-1
27317 while :; do
27318 cat >conftest.$ac_ext <<_ACEOF
27319 /* confdefs.h. */
27320 _ACEOF
27321 cat confdefs.h >>conftest.$ac_ext
27322 cat >>conftest.$ac_ext <<_ACEOF
27323 /* end confdefs.h. */
27324 $ac_includes_default
27325 int
27326 main ()
27327 {
27328 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= $ac_mid)];
27329 test_array [0] = 0
27330
27331 ;
27332 return 0;
27333 }
27334 _ACEOF
27335 rm -f conftest.$ac_objext
27336 if { (ac_try="$ac_compile"
27337 case "(($ac_try" in
27338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27339 *) ac_try_echo=$ac_try;;
27340 esac
27341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27342 $as_echo "$ac_try_echo") >&5
27343 (eval "$ac_compile") 2>conftest.er1
27344 ac_status=$?
27345 grep -v '^ *+' conftest.er1 >conftest.err
27346 rm -f conftest.er1
27347 cat conftest.err >&5
27348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27349 (exit $ac_status); } && {
27350 test -z "$ac_c_werror_flag" ||
27351 test ! -s conftest.err
27352 } && test -s conftest.$ac_objext; then
27353 ac_lo=$ac_mid; break
27354 else
27355 $as_echo "$as_me: failed program was:" >&5
27356 sed 's/^/| /' conftest.$ac_ext >&5
27357
27358 ac_hi=`expr '(' $ac_mid ')' - 1`
27359 if test $ac_mid -le $ac_hi; then
27360 ac_lo= ac_hi=
27361 break
27362 fi
27363 ac_mid=`expr 2 '*' $ac_mid`
27364 fi
27365
27366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27367 done
27368 else
27369 $as_echo "$as_me: failed program was:" >&5
27370 sed 's/^/| /' conftest.$ac_ext >&5
27371
27372 ac_lo= ac_hi=
27373 fi
27374
27375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27376 fi
27377
27378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27379 # Binary search between lo and hi bounds.
27380 while test "x$ac_lo" != "x$ac_hi"; do
27381 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27382 cat >conftest.$ac_ext <<_ACEOF
27383 /* confdefs.h. */
27384 _ACEOF
27385 cat confdefs.h >>conftest.$ac_ext
27386 cat >>conftest.$ac_ext <<_ACEOF
27387 /* end confdefs.h. */
27388 $ac_includes_default
27389 int
27390 main ()
27391 {
27392 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
27393 test_array [0] = 0
27394
27395 ;
27396 return 0;
27397 }
27398 _ACEOF
27399 rm -f conftest.$ac_objext
27400 if { (ac_try="$ac_compile"
27401 case "(($ac_try" in
27402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27403 *) ac_try_echo=$ac_try;;
27404 esac
27405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27406 $as_echo "$ac_try_echo") >&5
27407 (eval "$ac_compile") 2>conftest.er1
27408 ac_status=$?
27409 grep -v '^ *+' conftest.er1 >conftest.err
27410 rm -f conftest.er1
27411 cat conftest.err >&5
27412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413 (exit $ac_status); } && {
27414 test -z "$ac_c_werror_flag" ||
27415 test ! -s conftest.err
27416 } && test -s conftest.$ac_objext; then
27417 ac_hi=$ac_mid
27418 else
27419 $as_echo "$as_me: failed program was:" >&5
27420 sed 's/^/| /' conftest.$ac_ext >&5
27421
27422 ac_lo=`expr '(' $ac_mid ')' + 1`
27423 fi
27424
27425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27426 done
27427 case $ac_lo in
27428 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
27429 '') if test "$ac_cv_type_intmax_t" = yes; then
27430 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27432 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
27433 See \`config.log' for more details." >&5
27434 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
27435 See \`config.log' for more details." >&2;}
27436 { (exit 77); exit 77; }; }; }
27437 else
27438 ac_cv_sizeof_intmax_t=0
27439 fi ;;
27440 esac
27441 else
27442 cat >conftest.$ac_ext <<_ACEOF
27443 /* confdefs.h. */
27444 _ACEOF
27445 cat confdefs.h >>conftest.$ac_ext
27446 cat >>conftest.$ac_ext <<_ACEOF
27447 /* end confdefs.h. */
27448 $ac_includes_default
27449 static long int longval () { return (long int) (sizeof (intmax_t)); }
27450 static unsigned long int ulongval () { return (long int) (sizeof (intmax_t)); }
27451 #include <stdio.h>
27452 #include <stdlib.h>
27453 int
27454 main ()
27455 {
27456
27457 FILE *f = fopen ("conftest.val", "w");
27458 if (! f)
27459 return 1;
27460 if (((long int) (sizeof (intmax_t))) < 0)
27461 {
27462 long int i = longval ();
27463 if (i != ((long int) (sizeof (intmax_t))))
27464 return 1;
27465 fprintf (f, "%ld", i);
27466 }
27467 else
27468 {
27469 unsigned long int i = ulongval ();
27470 if (i != ((long int) (sizeof (intmax_t))))
27471 return 1;
27472 fprintf (f, "%lu", i);
27473 }
27474 /* Do not output a trailing newline, as this causes \r\n confusion
27475 on some platforms. */
27476 return ferror (f) || fclose (f) != 0;
27477
27478 ;
27479 return 0;
27480 }
27481 _ACEOF
27482 rm -f conftest$ac_exeext
27483 if { (ac_try="$ac_link"
27484 case "(($ac_try" in
27485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27486 *) ac_try_echo=$ac_try;;
27487 esac
27488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27489 $as_echo "$ac_try_echo") >&5
27490 (eval "$ac_link") 2>&5
27491 ac_status=$?
27492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27494 { (case "(($ac_try" in
27495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27496 *) ac_try_echo=$ac_try;;
27497 esac
27498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27499 $as_echo "$ac_try_echo") >&5
27500 (eval "$ac_try") 2>&5
27501 ac_status=$?
27502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503 (exit $ac_status); }; }; then
27504 ac_cv_sizeof_intmax_t=`cat conftest.val`
27505 else
27506 $as_echo "$as_me: program exited with status $ac_status" >&5
27507 $as_echo "$as_me: failed program was:" >&5
27508 sed 's/^/| /' conftest.$ac_ext >&5
27509
27510 ( exit $ac_status )
27511 if test "$ac_cv_type_intmax_t" = yes; then
27512 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27514 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
27515 See \`config.log' for more details." >&5
27516 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
27517 See \`config.log' for more details." >&2;}
27518 { (exit 77); exit 77; }; }; }
27519 else
27520 ac_cv_sizeof_intmax_t=0
27521 fi
27522 fi
27523 rm -rf conftest.dSYM
27524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27525 fi
27526 rm -f conftest.val
27527 fi
27528 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
27529 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
27530
27531
27532
27533 cat >>confdefs.h <<_ACEOF
27534 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
27535 _ACEOF
27536
27537
27538
27539
27540 { $as_echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
27541 $as_echo_n "checking for struct termios.c_line... " >&6; }
27542 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
27543 $as_echo_n "(cached) " >&6
27544 else
27545 cat >conftest.$ac_ext <<_ACEOF
27546 /* confdefs.h. */
27547 _ACEOF
27548 cat confdefs.h >>conftest.$ac_ext
27549 cat >>conftest.$ac_ext <<_ACEOF
27550 /* end confdefs.h. */
27551
27552 #include <sys/types.h>
27553 #include <termios.h>
27554
27555
27556 int
27557 main ()
27558 {
27559 static struct termios ac_aggr;
27560 if (ac_aggr.c_line)
27561 return 0;
27562 ;
27563 return 0;
27564 }
27565 _ACEOF
27566 rm -f conftest.$ac_objext
27567 if { (ac_try="$ac_compile"
27568 case "(($ac_try" in
27569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27570 *) ac_try_echo=$ac_try;;
27571 esac
27572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27573 $as_echo "$ac_try_echo") >&5
27574 (eval "$ac_compile") 2>conftest.er1
27575 ac_status=$?
27576 grep -v '^ *+' conftest.er1 >conftest.err
27577 rm -f conftest.er1
27578 cat conftest.err >&5
27579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580 (exit $ac_status); } && {
27581 test -z "$ac_c_werror_flag" ||
27582 test ! -s conftest.err
27583 } && test -s conftest.$ac_objext; then
27584 ac_cv_member_struct_termios_c_line=yes
27585 else
27586 $as_echo "$as_me: failed program was:" >&5
27587 sed 's/^/| /' conftest.$ac_ext >&5
27588
27589 cat >conftest.$ac_ext <<_ACEOF
27590 /* confdefs.h. */
27591 _ACEOF
27592 cat confdefs.h >>conftest.$ac_ext
27593 cat >>conftest.$ac_ext <<_ACEOF
27594 /* end confdefs.h. */
27595
27596 #include <sys/types.h>
27597 #include <termios.h>
27598
27599
27600 int
27601 main ()
27602 {
27603 static struct termios ac_aggr;
27604 if (sizeof ac_aggr.c_line)
27605 return 0;
27606 ;
27607 return 0;
27608 }
27609 _ACEOF
27610 rm -f conftest.$ac_objext
27611 if { (ac_try="$ac_compile"
27612 case "(($ac_try" in
27613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27614 *) ac_try_echo=$ac_try;;
27615 esac
27616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27617 $as_echo "$ac_try_echo") >&5
27618 (eval "$ac_compile") 2>conftest.er1
27619 ac_status=$?
27620 grep -v '^ *+' conftest.er1 >conftest.err
27621 rm -f conftest.er1
27622 cat conftest.err >&5
27623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624 (exit $ac_status); } && {
27625 test -z "$ac_c_werror_flag" ||
27626 test ! -s conftest.err
27627 } && test -s conftest.$ac_objext; then
27628 ac_cv_member_struct_termios_c_line=yes
27629 else
27630 $as_echo "$as_me: failed program was:" >&5
27631 sed 's/^/| /' conftest.$ac_ext >&5
27632
27633 ac_cv_member_struct_termios_c_line=no
27634 fi
27635
27636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27637 fi
27638
27639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27640 fi
27641 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
27642 $as_echo "$ac_cv_member_struct_termios_c_line" >&6; }
27643 if test "x$ac_cv_member_struct_termios_c_line" = x""yes; then
27644 cat >>confdefs.h <<\_ACEOF
27645 #define TERMIOS_LDISC 1
27646 _ACEOF
27647
27648 fi
27649
27650
27651
27652 { $as_echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
27653 $as_echo_n "checking for struct termio.c_line... " >&6; }
27654 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
27655 $as_echo_n "(cached) " >&6
27656 else
27657 cat >conftest.$ac_ext <<_ACEOF
27658 /* confdefs.h. */
27659 _ACEOF
27660 cat confdefs.h >>conftest.$ac_ext
27661 cat >>conftest.$ac_ext <<_ACEOF
27662 /* end confdefs.h. */
27663
27664 #include <sys/types.h>
27665 #include <termio.h>
27666
27667
27668 int
27669 main ()
27670 {
27671 static struct termio ac_aggr;
27672 if (ac_aggr.c_line)
27673 return 0;
27674 ;
27675 return 0;
27676 }
27677 _ACEOF
27678 rm -f conftest.$ac_objext
27679 if { (ac_try="$ac_compile"
27680 case "(($ac_try" in
27681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27682 *) ac_try_echo=$ac_try;;
27683 esac
27684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27685 $as_echo "$ac_try_echo") >&5
27686 (eval "$ac_compile") 2>conftest.er1
27687 ac_status=$?
27688 grep -v '^ *+' conftest.er1 >conftest.err
27689 rm -f conftest.er1
27690 cat conftest.err >&5
27691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692 (exit $ac_status); } && {
27693 test -z "$ac_c_werror_flag" ||
27694 test ! -s conftest.err
27695 } && test -s conftest.$ac_objext; then
27696 ac_cv_member_struct_termio_c_line=yes
27697 else
27698 $as_echo "$as_me: failed program was:" >&5
27699 sed 's/^/| /' conftest.$ac_ext >&5
27700
27701 cat >conftest.$ac_ext <<_ACEOF
27702 /* confdefs.h. */
27703 _ACEOF
27704 cat confdefs.h >>conftest.$ac_ext
27705 cat >>conftest.$ac_ext <<_ACEOF
27706 /* end confdefs.h. */
27707
27708 #include <sys/types.h>
27709 #include <termio.h>
27710
27711
27712 int
27713 main ()
27714 {
27715 static struct termio ac_aggr;
27716 if (sizeof ac_aggr.c_line)
27717 return 0;
27718 ;
27719 return 0;
27720 }
27721 _ACEOF
27722 rm -f conftest.$ac_objext
27723 if { (ac_try="$ac_compile"
27724 case "(($ac_try" in
27725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27726 *) ac_try_echo=$ac_try;;
27727 esac
27728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27729 $as_echo "$ac_try_echo") >&5
27730 (eval "$ac_compile") 2>conftest.er1
27731 ac_status=$?
27732 grep -v '^ *+' conftest.er1 >conftest.err
27733 rm -f conftest.er1
27734 cat conftest.err >&5
27735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27736 (exit $ac_status); } && {
27737 test -z "$ac_c_werror_flag" ||
27738 test ! -s conftest.err
27739 } && test -s conftest.$ac_objext; then
27740 ac_cv_member_struct_termio_c_line=yes
27741 else
27742 $as_echo "$as_me: failed program was:" >&5
27743 sed 's/^/| /' conftest.$ac_ext >&5
27744
27745 ac_cv_member_struct_termio_c_line=no
27746 fi
27747
27748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27749 fi
27750
27751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27752 fi
27753 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
27754 $as_echo "$ac_cv_member_struct_termio_c_line" >&6; }
27755 if test "x$ac_cv_member_struct_termio_c_line" = x""yes; then
27756 cat >>confdefs.h <<\_ACEOF
27757 #define TERMIO_LDISC 1
27758 _ACEOF
27759
27760 fi
27761
27762
27763
27764 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
27765 $as_echo_n "checking for struct dirent.d_ino... " >&6; }
27766 if test "${bash_cv_dirent_has_dino+set}" = set; then
27767 $as_echo_n "(cached) " >&6
27768 else
27769 cat >conftest.$ac_ext <<_ACEOF
27770 /* confdefs.h. */
27771 _ACEOF
27772 cat confdefs.h >>conftest.$ac_ext
27773 cat >>conftest.$ac_ext <<_ACEOF
27774 /* end confdefs.h. */
27775
27776 #include <stdio.h>
27777 #include <sys/types.h>
27778 #ifdef HAVE_UNISTD_H
27779 # include <unistd.h>
27780 #endif /* HAVE_UNISTD_H */
27781 #if defined(HAVE_DIRENT_H)
27782 # include <dirent.h>
27783 #else
27784 # define dirent direct
27785 # ifdef HAVE_SYS_NDIR_H
27786 # include <sys/ndir.h>
27787 # endif /* SYSNDIR */
27788 # ifdef HAVE_SYS_DIR_H
27789 # include <sys/dir.h>
27790 # endif /* SYSDIR */
27791 # ifdef HAVE_NDIR_H
27792 # include <ndir.h>
27793 # endif
27794 #endif /* HAVE_DIRENT_H */
27795
27796 int
27797 main ()
27798 {
27799
27800 struct dirent d; int z; z = d.d_ino;
27801
27802 ;
27803 return 0;
27804 }
27805 _ACEOF
27806 rm -f conftest.$ac_objext
27807 if { (ac_try="$ac_compile"
27808 case "(($ac_try" in
27809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27810 *) ac_try_echo=$ac_try;;
27811 esac
27812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27813 $as_echo "$ac_try_echo") >&5
27814 (eval "$ac_compile") 2>conftest.er1
27815 ac_status=$?
27816 grep -v '^ *+' conftest.er1 >conftest.err
27817 rm -f conftest.er1
27818 cat conftest.err >&5
27819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820 (exit $ac_status); } && {
27821 test -z "$ac_c_werror_flag" ||
27822 test ! -s conftest.err
27823 } && test -s conftest.$ac_objext; then
27824 bash_cv_dirent_has_dino=yes
27825 else
27826 $as_echo "$as_me: failed program was:" >&5
27827 sed 's/^/| /' conftest.$ac_ext >&5
27828
27829 bash_cv_dirent_has_dino=no
27830 fi
27831
27832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27833 fi
27834
27835 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
27836 $as_echo "$bash_cv_dirent_has_dino" >&6; }
27837 if test $bash_cv_dirent_has_dino = yes; then
27838 cat >>confdefs.h <<\_ACEOF
27839 #define HAVE_STRUCT_DIRENT_D_INO 1
27840 _ACEOF
27841
27842 fi
27843
27844
27845 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
27846 $as_echo_n "checking for struct dirent.d_fileno... " >&6; }
27847 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
27848 $as_echo_n "(cached) " >&6
27849 else
27850 cat >conftest.$ac_ext <<_ACEOF
27851 /* confdefs.h. */
27852 _ACEOF
27853 cat confdefs.h >>conftest.$ac_ext
27854 cat >>conftest.$ac_ext <<_ACEOF
27855 /* end confdefs.h. */
27856
27857 #include <stdio.h>
27858 #include <sys/types.h>
27859 #ifdef HAVE_UNISTD_H
27860 # include <unistd.h>
27861 #endif /* HAVE_UNISTD_H */
27862 #if defined(HAVE_DIRENT_H)
27863 # include <dirent.h>
27864 #else
27865 # define dirent direct
27866 # ifdef HAVE_SYS_NDIR_H
27867 # include <sys/ndir.h>
27868 # endif /* SYSNDIR */
27869 # ifdef HAVE_SYS_DIR_H
27870 # include <sys/dir.h>
27871 # endif /* SYSDIR */
27872 # ifdef HAVE_NDIR_H
27873 # include <ndir.h>
27874 # endif
27875 #endif /* HAVE_DIRENT_H */
27876
27877 int
27878 main ()
27879 {
27880
27881 struct dirent d; int z; z = d.d_fileno;
27882
27883 ;
27884 return 0;
27885 }
27886 _ACEOF
27887 rm -f conftest.$ac_objext
27888 if { (ac_try="$ac_compile"
27889 case "(($ac_try" in
27890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27891 *) ac_try_echo=$ac_try;;
27892 esac
27893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27894 $as_echo "$ac_try_echo") >&5
27895 (eval "$ac_compile") 2>conftest.er1
27896 ac_status=$?
27897 grep -v '^ *+' conftest.er1 >conftest.err
27898 rm -f conftest.er1
27899 cat conftest.err >&5
27900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901 (exit $ac_status); } && {
27902 test -z "$ac_c_werror_flag" ||
27903 test ! -s conftest.err
27904 } && test -s conftest.$ac_objext; then
27905 bash_cv_dirent_has_d_fileno=yes
27906 else
27907 $as_echo "$as_me: failed program was:" >&5
27908 sed 's/^/| /' conftest.$ac_ext >&5
27909
27910 bash_cv_dirent_has_d_fileno=no
27911 fi
27912
27913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27914 fi
27915
27916 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
27917 $as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
27918 if test $bash_cv_dirent_has_d_fileno = yes; then
27919 cat >>confdefs.h <<\_ACEOF
27920 #define HAVE_STRUCT_DIRENT_D_FILENO 1
27921 _ACEOF
27922
27923 fi
27924
27925
27926 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
27927 $as_echo_n "checking for struct dirent.d_namlen... " >&6; }
27928 if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
27929 $as_echo_n "(cached) " >&6
27930 else
27931 cat >conftest.$ac_ext <<_ACEOF
27932 /* confdefs.h. */
27933 _ACEOF
27934 cat confdefs.h >>conftest.$ac_ext
27935 cat >>conftest.$ac_ext <<_ACEOF
27936 /* end confdefs.h. */
27937
27938 #include <stdio.h>
27939 #include <sys/types.h>
27940 #ifdef HAVE_UNISTD_H
27941 # include <unistd.h>
27942 #endif /* HAVE_UNISTD_H */
27943 #if defined(HAVE_DIRENT_H)
27944 # include <dirent.h>
27945 #else
27946 # define dirent direct
27947 # ifdef HAVE_SYS_NDIR_H
27948 # include <sys/ndir.h>
27949 # endif /* SYSNDIR */
27950 # ifdef HAVE_SYS_DIR_H
27951 # include <sys/dir.h>
27952 # endif /* SYSDIR */
27953 # ifdef HAVE_NDIR_H
27954 # include <ndir.h>
27955 # endif
27956 #endif /* HAVE_DIRENT_H */
27957
27958 int
27959 main ()
27960 {
27961
27962 struct dirent d; int z; z = d.d_namlen;
27963
27964 ;
27965 return 0;
27966 }
27967 _ACEOF
27968 rm -f conftest.$ac_objext
27969 if { (ac_try="$ac_compile"
27970 case "(($ac_try" in
27971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27972 *) ac_try_echo=$ac_try;;
27973 esac
27974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27975 $as_echo "$ac_try_echo") >&5
27976 (eval "$ac_compile") 2>conftest.er1
27977 ac_status=$?
27978 grep -v '^ *+' conftest.er1 >conftest.err
27979 rm -f conftest.er1
27980 cat conftest.err >&5
27981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982 (exit $ac_status); } && {
27983 test -z "$ac_c_werror_flag" ||
27984 test ! -s conftest.err
27985 } && test -s conftest.$ac_objext; then
27986 bash_cv_dirent_has_d_namlen=yes
27987 else
27988 $as_echo "$as_me: failed program was:" >&5
27989 sed 's/^/| /' conftest.$ac_ext >&5
27990
27991 bash_cv_dirent_has_d_namlen=no
27992 fi
27993
27994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27995 fi
27996
27997 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
27998 $as_echo "$bash_cv_dirent_has_d_namlen" >&6; }
27999 if test $bash_cv_dirent_has_d_namlen = yes; then
28000 cat >>confdefs.h <<\_ACEOF
28001 #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
28002 _ACEOF
28003
28004 fi
28005
28006 { $as_echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
28007 $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
28008 if test "${bash_cv_struct_winsize_header+set}" = set; then
28009 $as_echo_n "(cached) " >&6
28010 else
28011 cat >conftest.$ac_ext <<_ACEOF
28012 /* confdefs.h. */
28013 _ACEOF
28014 cat confdefs.h >>conftest.$ac_ext
28015 cat >>conftest.$ac_ext <<_ACEOF
28016 /* end confdefs.h. */
28017 #include <sys/types.h>
28018 #include <sys/ioctl.h>
28019 int
28020 main ()
28021 {
28022 struct winsize x;
28023 ;
28024 return 0;
28025 }
28026 _ACEOF
28027 rm -f conftest.$ac_objext
28028 if { (ac_try="$ac_compile"
28029 case "(($ac_try" in
28030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28031 *) ac_try_echo=$ac_try;;
28032 esac
28033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28034 $as_echo "$ac_try_echo") >&5
28035 (eval "$ac_compile") 2>conftest.er1
28036 ac_status=$?
28037 grep -v '^ *+' conftest.er1 >conftest.err
28038 rm -f conftest.er1
28039 cat conftest.err >&5
28040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28041 (exit $ac_status); } && {
28042 test -z "$ac_c_werror_flag" ||
28043 test ! -s conftest.err
28044 } && test -s conftest.$ac_objext; then
28045 bash_cv_struct_winsize_header=ioctl_h
28046 else
28047 $as_echo "$as_me: failed program was:" >&5
28048 sed 's/^/| /' conftest.$ac_ext >&5
28049
28050 cat >conftest.$ac_ext <<_ACEOF
28051 /* confdefs.h. */
28052 _ACEOF
28053 cat confdefs.h >>conftest.$ac_ext
28054 cat >>conftest.$ac_ext <<_ACEOF
28055 /* end confdefs.h. */
28056 #include <sys/types.h>
28057 #include <termios.h>
28058 int
28059 main ()
28060 {
28061 struct winsize x;
28062 ;
28063 return 0;
28064 }
28065 _ACEOF
28066 rm -f conftest.$ac_objext
28067 if { (ac_try="$ac_compile"
28068 case "(($ac_try" in
28069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28070 *) ac_try_echo=$ac_try;;
28071 esac
28072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28073 $as_echo "$ac_try_echo") >&5
28074 (eval "$ac_compile") 2>conftest.er1
28075 ac_status=$?
28076 grep -v '^ *+' conftest.er1 >conftest.err
28077 rm -f conftest.er1
28078 cat conftest.err >&5
28079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080 (exit $ac_status); } && {
28081 test -z "$ac_c_werror_flag" ||
28082 test ! -s conftest.err
28083 } && test -s conftest.$ac_objext; then
28084 bash_cv_struct_winsize_header=termios_h
28085 else
28086 $as_echo "$as_me: failed program was:" >&5
28087 sed 's/^/| /' conftest.$ac_ext >&5
28088
28089 bash_cv_struct_winsize_header=other
28090 fi
28091
28092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28093
28094 fi
28095
28096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28097 fi
28098
28099 if test $bash_cv_struct_winsize_header = ioctl_h; then
28100 { $as_echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
28101 $as_echo "sys/ioctl.h" >&6; }
28102 cat >>confdefs.h <<\_ACEOF
28103 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
28104 _ACEOF
28105
28106 elif test $bash_cv_struct_winsize_header = termios_h; then
28107 { $as_echo "$as_me:$LINENO: result: termios.h" >&5
28108 $as_echo "termios.h" >&6; }
28109 cat >>confdefs.h <<\_ACEOF
28110 #define STRUCT_WINSIZE_IN_TERMIOS 1
28111 _ACEOF
28112
28113 else
28114 { $as_echo "$as_me:$LINENO: result: not found" >&5
28115 $as_echo "not found" >&6; }
28116 fi
28117
28118 { $as_echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
28119 $as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; }
28120 if test "${bash_cv_struct_timeval+set}" = set; then
28121 $as_echo_n "(cached) " >&6
28122 else
28123
28124 cat >conftest.$ac_ext <<_ACEOF
28125 /* confdefs.h. */
28126 _ACEOF
28127 cat confdefs.h >>conftest.$ac_ext
28128 cat >>conftest.$ac_ext <<_ACEOF
28129 /* end confdefs.h. */
28130 #include <sys/time.h>
28131
28132 _ACEOF
28133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28134 $EGREP "struct timeval" >/dev/null 2>&1; then
28135 bash_cv_struct_timeval=yes
28136 else
28137 cat >conftest.$ac_ext <<_ACEOF
28138 /* confdefs.h. */
28139 _ACEOF
28140 cat confdefs.h >>conftest.$ac_ext
28141 cat >>conftest.$ac_ext <<_ACEOF
28142 /* end confdefs.h. */
28143 #include <time.h>
28144
28145 _ACEOF
28146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28147 $EGREP "struct timeval" >/dev/null 2>&1; then
28148 bash_cv_struct_timeval=yes
28149 else
28150 bash_cv_struct_timeval=no
28151 fi
28152 rm -f conftest*
28153
28154 fi
28155 rm -f conftest*
28156
28157
28158 fi
28159
28160 { $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
28161 $as_echo "$bash_cv_struct_timeval" >&6; }
28162 if test $bash_cv_struct_timeval = yes; then
28163 cat >>confdefs.h <<\_ACEOF
28164 #define HAVE_TIMEVAL 1
28165 _ACEOF
28166
28167 fi
28168
28169 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
28170 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
28171 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
28172 $as_echo_n "(cached) " >&6
28173 else
28174 cat >conftest.$ac_ext <<_ACEOF
28175 /* confdefs.h. */
28176 _ACEOF
28177 cat confdefs.h >>conftest.$ac_ext
28178 cat >>conftest.$ac_ext <<_ACEOF
28179 /* end confdefs.h. */
28180 $ac_includes_default
28181 int
28182 main ()
28183 {
28184 static struct stat ac_aggr;
28185 if (ac_aggr.st_blocks)
28186 return 0;
28187 ;
28188 return 0;
28189 }
28190 _ACEOF
28191 rm -f conftest.$ac_objext
28192 if { (ac_try="$ac_compile"
28193 case "(($ac_try" in
28194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28195 *) ac_try_echo=$ac_try;;
28196 esac
28197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28198 $as_echo "$ac_try_echo") >&5
28199 (eval "$ac_compile") 2>conftest.er1
28200 ac_status=$?
28201 grep -v '^ *+' conftest.er1 >conftest.err
28202 rm -f conftest.er1
28203 cat conftest.err >&5
28204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205 (exit $ac_status); } && {
28206 test -z "$ac_c_werror_flag" ||
28207 test ! -s conftest.err
28208 } && test -s conftest.$ac_objext; then
28209 ac_cv_member_struct_stat_st_blocks=yes
28210 else
28211 $as_echo "$as_me: failed program was:" >&5
28212 sed 's/^/| /' conftest.$ac_ext >&5
28213
28214 cat >conftest.$ac_ext <<_ACEOF
28215 /* confdefs.h. */
28216 _ACEOF
28217 cat confdefs.h >>conftest.$ac_ext
28218 cat >>conftest.$ac_ext <<_ACEOF
28219 /* end confdefs.h. */
28220 $ac_includes_default
28221 int
28222 main ()
28223 {
28224 static struct stat ac_aggr;
28225 if (sizeof ac_aggr.st_blocks)
28226 return 0;
28227 ;
28228 return 0;
28229 }
28230 _ACEOF
28231 rm -f conftest.$ac_objext
28232 if { (ac_try="$ac_compile"
28233 case "(($ac_try" in
28234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28235 *) ac_try_echo=$ac_try;;
28236 esac
28237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28238 $as_echo "$ac_try_echo") >&5
28239 (eval "$ac_compile") 2>conftest.er1
28240 ac_status=$?
28241 grep -v '^ *+' conftest.er1 >conftest.err
28242 rm -f conftest.er1
28243 cat conftest.err >&5
28244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); } && {
28246 test -z "$ac_c_werror_flag" ||
28247 test ! -s conftest.err
28248 } && test -s conftest.$ac_objext; then
28249 ac_cv_member_struct_stat_st_blocks=yes
28250 else
28251 $as_echo "$as_me: failed program was:" >&5
28252 sed 's/^/| /' conftest.$ac_ext >&5
28253
28254 ac_cv_member_struct_stat_st_blocks=no
28255 fi
28256
28257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28258 fi
28259
28260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28261 fi
28262 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
28263 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
28264 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
28265
28266 cat >>confdefs.h <<_ACEOF
28267 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
28268 _ACEOF
28269
28270
28271 fi
28272
28273 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28274 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
28275 if test "${ac_cv_struct_tm+set}" = set; then
28276 $as_echo_n "(cached) " >&6
28277 else
28278 cat >conftest.$ac_ext <<_ACEOF
28279 /* confdefs.h. */
28280 _ACEOF
28281 cat confdefs.h >>conftest.$ac_ext
28282 cat >>conftest.$ac_ext <<_ACEOF
28283 /* end confdefs.h. */
28284 #include <sys/types.h>
28285 #include <time.h>
28286
28287 int
28288 main ()
28289 {
28290 struct tm tm;
28291 int *p = &tm.tm_sec;
28292 return !p;
28293 ;
28294 return 0;
28295 }
28296 _ACEOF
28297 rm -f conftest.$ac_objext
28298 if { (ac_try="$ac_compile"
28299 case "(($ac_try" in
28300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28301 *) ac_try_echo=$ac_try;;
28302 esac
28303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28304 $as_echo "$ac_try_echo") >&5
28305 (eval "$ac_compile") 2>conftest.er1
28306 ac_status=$?
28307 grep -v '^ *+' conftest.er1 >conftest.err
28308 rm -f conftest.er1
28309 cat conftest.err >&5
28310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311 (exit $ac_status); } && {
28312 test -z "$ac_c_werror_flag" ||
28313 test ! -s conftest.err
28314 } && test -s conftest.$ac_objext; then
28315 ac_cv_struct_tm=time.h
28316 else
28317 $as_echo "$as_me: failed program was:" >&5
28318 sed 's/^/| /' conftest.$ac_ext >&5
28319
28320 ac_cv_struct_tm=sys/time.h
28321 fi
28322
28323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28324 fi
28325 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28326 $as_echo "$ac_cv_struct_tm" >&6; }
28327 if test $ac_cv_struct_tm = sys/time.h; then
28328
28329 cat >>confdefs.h <<\_ACEOF
28330 #define TM_IN_SYS_TIME 1
28331 _ACEOF
28332
28333 fi
28334
28335 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
28336 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
28337 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
28338 $as_echo_n "(cached) " >&6
28339 else
28340 cat >conftest.$ac_ext <<_ACEOF
28341 /* confdefs.h. */
28342 _ACEOF
28343 cat confdefs.h >>conftest.$ac_ext
28344 cat >>conftest.$ac_ext <<_ACEOF
28345 /* end confdefs.h. */
28346 #include <sys/types.h>
28347 #include <$ac_cv_struct_tm>
28348
28349
28350 int
28351 main ()
28352 {
28353 static struct tm ac_aggr;
28354 if (ac_aggr.tm_zone)
28355 return 0;
28356 ;
28357 return 0;
28358 }
28359 _ACEOF
28360 rm -f conftest.$ac_objext
28361 if { (ac_try="$ac_compile"
28362 case "(($ac_try" in
28363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28364 *) ac_try_echo=$ac_try;;
28365 esac
28366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28367 $as_echo "$ac_try_echo") >&5
28368 (eval "$ac_compile") 2>conftest.er1
28369 ac_status=$?
28370 grep -v '^ *+' conftest.er1 >conftest.err
28371 rm -f conftest.er1
28372 cat conftest.err >&5
28373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28374 (exit $ac_status); } && {
28375 test -z "$ac_c_werror_flag" ||
28376 test ! -s conftest.err
28377 } && test -s conftest.$ac_objext; then
28378 ac_cv_member_struct_tm_tm_zone=yes
28379 else
28380 $as_echo "$as_me: failed program was:" >&5
28381 sed 's/^/| /' conftest.$ac_ext >&5
28382
28383 cat >conftest.$ac_ext <<_ACEOF
28384 /* confdefs.h. */
28385 _ACEOF
28386 cat confdefs.h >>conftest.$ac_ext
28387 cat >>conftest.$ac_ext <<_ACEOF
28388 /* end confdefs.h. */
28389 #include <sys/types.h>
28390 #include <$ac_cv_struct_tm>
28391
28392
28393 int
28394 main ()
28395 {
28396 static struct tm ac_aggr;
28397 if (sizeof ac_aggr.tm_zone)
28398 return 0;
28399 ;
28400 return 0;
28401 }
28402 _ACEOF
28403 rm -f conftest.$ac_objext
28404 if { (ac_try="$ac_compile"
28405 case "(($ac_try" in
28406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28407 *) ac_try_echo=$ac_try;;
28408 esac
28409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28410 $as_echo "$ac_try_echo") >&5
28411 (eval "$ac_compile") 2>conftest.er1
28412 ac_status=$?
28413 grep -v '^ *+' conftest.er1 >conftest.err
28414 rm -f conftest.er1
28415 cat conftest.err >&5
28416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417 (exit $ac_status); } && {
28418 test -z "$ac_c_werror_flag" ||
28419 test ! -s conftest.err
28420 } && test -s conftest.$ac_objext; then
28421 ac_cv_member_struct_tm_tm_zone=yes
28422 else
28423 $as_echo "$as_me: failed program was:" >&5
28424 sed 's/^/| /' conftest.$ac_ext >&5
28425
28426 ac_cv_member_struct_tm_tm_zone=no
28427 fi
28428
28429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28430 fi
28431
28432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28433 fi
28434 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
28435 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
28436 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
28437
28438 cat >>confdefs.h <<_ACEOF
28439 #define HAVE_STRUCT_TM_TM_ZONE 1
28440 _ACEOF
28441
28442
28443 fi
28444
28445 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
28446
28447 cat >>confdefs.h <<\_ACEOF
28448 #define HAVE_TM_ZONE 1
28449 _ACEOF
28450
28451 else
28452 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
28453 $as_echo_n "checking whether tzname is declared... " >&6; }
28454 if test "${ac_cv_have_decl_tzname+set}" = set; then
28455 $as_echo_n "(cached) " >&6
28456 else
28457 cat >conftest.$ac_ext <<_ACEOF
28458 /* confdefs.h. */
28459 _ACEOF
28460 cat confdefs.h >>conftest.$ac_ext
28461 cat >>conftest.$ac_ext <<_ACEOF
28462 /* end confdefs.h. */
28463 #include <time.h>
28464
28465 int
28466 main ()
28467 {
28468 #ifndef tzname
28469 (void) tzname;
28470 #endif
28471
28472 ;
28473 return 0;
28474 }
28475 _ACEOF
28476 rm -f conftest.$ac_objext
28477 if { (ac_try="$ac_compile"
28478 case "(($ac_try" in
28479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28480 *) ac_try_echo=$ac_try;;
28481 esac
28482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28483 $as_echo "$ac_try_echo") >&5
28484 (eval "$ac_compile") 2>conftest.er1
28485 ac_status=$?
28486 grep -v '^ *+' conftest.er1 >conftest.err
28487 rm -f conftest.er1
28488 cat conftest.err >&5
28489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490 (exit $ac_status); } && {
28491 test -z "$ac_c_werror_flag" ||
28492 test ! -s conftest.err
28493 } && test -s conftest.$ac_objext; then
28494 ac_cv_have_decl_tzname=yes
28495 else
28496 $as_echo "$as_me: failed program was:" >&5
28497 sed 's/^/| /' conftest.$ac_ext >&5
28498
28499 ac_cv_have_decl_tzname=no
28500 fi
28501
28502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28503 fi
28504 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
28505 $as_echo "$ac_cv_have_decl_tzname" >&6; }
28506 if test "x$ac_cv_have_decl_tzname" = x""yes; then
28507
28508 cat >>confdefs.h <<_ACEOF
28509 #define HAVE_DECL_TZNAME 1
28510 _ACEOF
28511
28512
28513 else
28514 cat >>confdefs.h <<_ACEOF
28515 #define HAVE_DECL_TZNAME 0
28516 _ACEOF
28517
28518
28519 fi
28520
28521
28522 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
28523 $as_echo_n "checking for tzname... " >&6; }
28524 if test "${ac_cv_var_tzname+set}" = set; then
28525 $as_echo_n "(cached) " >&6
28526 else
28527 cat >conftest.$ac_ext <<_ACEOF
28528 /* confdefs.h. */
28529 _ACEOF
28530 cat confdefs.h >>conftest.$ac_ext
28531 cat >>conftest.$ac_ext <<_ACEOF
28532 /* end confdefs.h. */
28533 #include <time.h>
28534 #if !HAVE_DECL_TZNAME
28535 extern char *tzname[];
28536 #endif
28537
28538 int
28539 main ()
28540 {
28541 return tzname[0][0];
28542 ;
28543 return 0;
28544 }
28545 _ACEOF
28546 rm -f conftest.$ac_objext conftest$ac_exeext
28547 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
28555 ac_status=$?
28556 grep -v '^ *+' conftest.er1 >conftest.err
28557 rm -f conftest.er1
28558 cat conftest.err >&5
28559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560 (exit $ac_status); } && {
28561 test -z "$ac_c_werror_flag" ||
28562 test ! -s conftest.err
28563 } && test -s conftest$ac_exeext && {
28564 test "$cross_compiling" = yes ||
28565 $as_test_x conftest$ac_exeext
28566 }; then
28567 ac_cv_var_tzname=yes
28568 else
28569 $as_echo "$as_me: failed program was:" >&5
28570 sed 's/^/| /' conftest.$ac_ext >&5
28571
28572 ac_cv_var_tzname=no
28573 fi
28574
28575 rm -rf conftest.dSYM
28576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28577 conftest$ac_exeext conftest.$ac_ext
28578 fi
28579 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
28580 $as_echo "$ac_cv_var_tzname" >&6; }
28581 if test $ac_cv_var_tzname = yes; then
28582
28583 cat >>confdefs.h <<\_ACEOF
28584 #define HAVE_TZNAME 1
28585 _ACEOF
28586
28587 fi
28588 fi
28589
28590 { $as_echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
28591 $as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; }
28592 if test "${bash_cv_struct_timezone+set}" = set; then
28593 $as_echo_n "(cached) " >&6
28594 else
28595
28596 cat >conftest.$ac_ext <<_ACEOF
28597 /* confdefs.h. */
28598 _ACEOF
28599 cat confdefs.h >>conftest.$ac_ext
28600 cat >>conftest.$ac_ext <<_ACEOF
28601 /* end confdefs.h. */
28602 #include <sys/time.h>
28603
28604 _ACEOF
28605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28606 $EGREP "struct timezone" >/dev/null 2>&1; then
28607 bash_cv_struct_timezone=yes
28608 else
28609 cat >conftest.$ac_ext <<_ACEOF
28610 /* confdefs.h. */
28611 _ACEOF
28612 cat confdefs.h >>conftest.$ac_ext
28613 cat >>conftest.$ac_ext <<_ACEOF
28614 /* end confdefs.h. */
28615 #include <time.h>
28616
28617 _ACEOF
28618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28619 $EGREP "struct timezone" >/dev/null 2>&1; then
28620 bash_cv_struct_timezone=yes
28621 else
28622 bash_cv_struct_timezone=no
28623 fi
28624 rm -f conftest*
28625
28626 fi
28627 rm -f conftest*
28628
28629
28630 fi
28631
28632 { $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
28633 $as_echo "$bash_cv_struct_timezone" >&6; }
28634 if test $bash_cv_struct_timezone = yes; then
28635 cat >>confdefs.h <<\_ACEOF
28636 #define HAVE_STRUCT_TIMEZONE 1
28637 _ACEOF
28638
28639 fi
28640
28641
28642 { $as_echo "$as_me:$LINENO: checking for offset of exit status in return status from wait" >&5
28643 $as_echo_n "checking for offset of exit status in return status from wait... " >&6; }
28644 if test "${bash_cv_wexitstatus_offset+set}" = set; then
28645 $as_echo_n "(cached) " >&6
28646 else
28647 if test "$cross_compiling" = yes; then
28648 { $as_echo "$as_me:$LINENO: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&5
28649 $as_echo "$as_me: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&2;}
28650 bash_cv_wexitstatus_offset=0
28651
28652 else
28653 cat >conftest.$ac_ext <<_ACEOF
28654
28655 #include <stdlib.h>
28656 #include <unistd.h>
28657
28658 #include <sys/wait.h>
28659
28660 main(c, v)
28661 int c;
28662 char **v;
28663 {
28664 pid_t pid, p;
28665 int s, i, n;
28666
28667 s = 0;
28668 pid = fork();
28669 if (pid == 0)
28670 exit (42);
28671
28672 /* wait for the process */
28673 p = wait(&s);
28674 if (p != pid)
28675 exit (255);
28676
28677 /* crack s */
28678 for (i = 0; i < (sizeof(s) - 8); i++)
28679 {
28680 n = (s >> i) & 0xff;
28681 if (n == 42)
28682 exit (i);
28683 }
28684
28685 exit (254);
28686 }
28687
28688 _ACEOF
28689 rm -f conftest$ac_exeext
28690 if { (ac_try="$ac_link"
28691 case "(($ac_try" in
28692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28693 *) ac_try_echo=$ac_try;;
28694 esac
28695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28696 $as_echo "$ac_try_echo") >&5
28697 (eval "$ac_link") 2>&5
28698 ac_status=$?
28699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28701 { (case "(($ac_try" in
28702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28703 *) ac_try_echo=$ac_try;;
28704 esac
28705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28706 $as_echo "$ac_try_echo") >&5
28707 (eval "$ac_try") 2>&5
28708 ac_status=$?
28709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28710 (exit $ac_status); }; }; then
28711 bash_cv_wexitstatus_offset=0
28712 else
28713 $as_echo "$as_me: program exited with status $ac_status" >&5
28714 $as_echo "$as_me: failed program was:" >&5
28715 sed 's/^/| /' conftest.$ac_ext >&5
28716
28717 ( exit $ac_status )
28718 bash_cv_wexitstatus_offset=$?
28719 fi
28720 rm -rf conftest.dSYM
28721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28722 fi
28723
28724
28725 fi
28726
28727 if test "$bash_cv_wexitstatus_offset" -gt 32 ; then
28728 { $as_echo "$as_me:$LINENO: WARNING: bad exit status from test program -- defaulting to 0" >&5
28729 $as_echo "$as_me: WARNING: bad exit status from test program -- defaulting to 0" >&2;}
28730 bash_cv_wexitstatus_offset=0
28731 fi
28732 { $as_echo "$as_me:$LINENO: result: $bash_cv_wexitstatus_offset" >&5
28733 $as_echo "$bash_cv_wexitstatus_offset" >&6; }
28734
28735 cat >>confdefs.h <<_ACEOF
28736 #define WEXITSTATUS_OFFSET $bash_cv_wexitstatus_offset
28737 _ACEOF
28738
28739
28740
28741 { $as_echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
28742 $as_echo_n "checking for the existence of strsignal... " >&6; }
28743 if test "${bash_cv_have_strsignal+set}" = set; then
28744 $as_echo_n "(cached) " >&6
28745 else
28746 cat >conftest.$ac_ext <<_ACEOF
28747 /* confdefs.h. */
28748 _ACEOF
28749 cat confdefs.h >>conftest.$ac_ext
28750 cat >>conftest.$ac_ext <<_ACEOF
28751 /* end confdefs.h. */
28752 #include <sys/types.h>
28753 #include <signal.h>
28754 int
28755 main ()
28756 {
28757 char *s = (char *)strsignal(2);
28758 ;
28759 return 0;
28760 }
28761 _ACEOF
28762 rm -f conftest.$ac_objext conftest$ac_exeext
28763 if { (ac_try="$ac_link"
28764 case "(($ac_try" in
28765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28766 *) ac_try_echo=$ac_try;;
28767 esac
28768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28769 $as_echo "$ac_try_echo") >&5
28770 (eval "$ac_link") 2>conftest.er1
28771 ac_status=$?
28772 grep -v '^ *+' conftest.er1 >conftest.err
28773 rm -f conftest.er1
28774 cat conftest.err >&5
28775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776 (exit $ac_status); } && {
28777 test -z "$ac_c_werror_flag" ||
28778 test ! -s conftest.err
28779 } && test -s conftest$ac_exeext && {
28780 test "$cross_compiling" = yes ||
28781 $as_test_x conftest$ac_exeext
28782 }; then
28783 bash_cv_have_strsignal=yes
28784 else
28785 $as_echo "$as_me: failed program was:" >&5
28786 sed 's/^/| /' conftest.$ac_ext >&5
28787
28788 bash_cv_have_strsignal=no
28789 fi
28790
28791 rm -rf conftest.dSYM
28792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28793 conftest$ac_exeext conftest.$ac_ext
28794 fi
28795
28796 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
28797 $as_echo "$bash_cv_have_strsignal" >&6; }
28798 if test $bash_cv_have_strsignal = yes; then
28799 cat >>confdefs.h <<\_ACEOF
28800 #define HAVE_STRSIGNAL 1
28801 _ACEOF
28802
28803 fi
28804
28805 { $as_echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
28806 $as_echo_n "checking if opendir() opens non-directories... " >&6; }
28807 if test "${bash_cv_opendir_not_robust+set}" = set; then
28808 $as_echo_n "(cached) " >&6
28809 else
28810 if test "$cross_compiling" = yes; then
28811 { $as_echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
28812 $as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
28813 bash_cv_opendir_not_robust=no
28814
28815 else
28816 cat >conftest.$ac_ext <<_ACEOF
28817 /* confdefs.h. */
28818 _ACEOF
28819 cat confdefs.h >>conftest.$ac_ext
28820 cat >>conftest.$ac_ext <<_ACEOF
28821 /* end confdefs.h. */
28822
28823 #include <stdio.h>
28824 #include <sys/types.h>
28825 #include <fcntl.h>
28826 #ifdef HAVE_UNISTD_H
28827 # include <unistd.h>
28828 #endif /* HAVE_UNISTD_H */
28829 #if defined(HAVE_DIRENT_H)
28830 # include <dirent.h>
28831 #else
28832 # define dirent direct
28833 # ifdef HAVE_SYS_NDIR_H
28834 # include <sys/ndir.h>
28835 # endif /* SYSNDIR */
28836 # ifdef HAVE_SYS_DIR_H
28837 # include <sys/dir.h>
28838 # endif /* SYSDIR */
28839 # ifdef HAVE_NDIR_H
28840 # include <ndir.h>
28841 # endif
28842 #endif /* HAVE_DIRENT_H */
28843 main()
28844 {
28845 DIR *dir;
28846 int fd, err;
28847 err = mkdir("bash-aclocal", 0700);
28848 if (err < 0) {
28849 perror("mkdir");
28850 exit(1);
28851 }
28852 unlink("bash-aclocal/not_a_directory");
28853 fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
28854 write(fd, "\n", 1);
28855 close(fd);
28856 dir = opendir("bash-aclocal/not_a_directory");
28857 unlink("bash-aclocal/not_a_directory");
28858 rmdir("bash-aclocal");
28859 exit (dir == 0);
28860 }
28861 _ACEOF
28862 rm -f conftest$ac_exeext
28863 if { (ac_try="$ac_link"
28864 case "(($ac_try" in
28865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28866 *) ac_try_echo=$ac_try;;
28867 esac
28868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28869 $as_echo "$ac_try_echo") >&5
28870 (eval "$ac_link") 2>&5
28871 ac_status=$?
28872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28874 { (case "(($ac_try" in
28875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28876 *) ac_try_echo=$ac_try;;
28877 esac
28878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28879 $as_echo "$ac_try_echo") >&5
28880 (eval "$ac_try") 2>&5
28881 ac_status=$?
28882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883 (exit $ac_status); }; }; then
28884 bash_cv_opendir_not_robust=yes
28885 else
28886 $as_echo "$as_me: program exited with status $ac_status" >&5
28887 $as_echo "$as_me: failed program was:" >&5
28888 sed 's/^/| /' conftest.$ac_ext >&5
28889
28890 ( exit $ac_status )
28891 bash_cv_opendir_not_robust=no
28892 fi
28893 rm -rf conftest.dSYM
28894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28895 fi
28896
28897
28898 fi
28899
28900 { $as_echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
28901 $as_echo "$bash_cv_opendir_not_robust" >&6; }
28902 if test $bash_cv_opendir_not_robust = yes; then
28903 cat >>confdefs.h <<\_ACEOF
28904 #define OPENDIR_NOT_ROBUST 1
28905 _ACEOF
28906
28907 fi
28908
28909 { $as_echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
28910 $as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; }
28911 if test "${bash_cv_ulimit_maxfds+set}" = set; then
28912 $as_echo_n "(cached) " >&6
28913 else
28914 if test "$cross_compiling" = yes; then
28915 { $as_echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
28916 $as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
28917 bash_cv_ulimit_maxfds=no
28918
28919 else
28920 cat >conftest.$ac_ext <<_ACEOF
28921 /* confdefs.h. */
28922 _ACEOF
28923 cat confdefs.h >>conftest.$ac_ext
28924 cat >>conftest.$ac_ext <<_ACEOF
28925 /* end confdefs.h. */
28926
28927 main()
28928 {
28929 long maxfds = ulimit(4, 0L);
28930 exit (maxfds == -1L);
28931 }
28932
28933 _ACEOF
28934 rm -f conftest$ac_exeext
28935 if { (ac_try="$ac_link"
28936 case "(($ac_try" in
28937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28938 *) ac_try_echo=$ac_try;;
28939 esac
28940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28941 $as_echo "$ac_try_echo") >&5
28942 (eval "$ac_link") 2>&5
28943 ac_status=$?
28944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28946 { (case "(($ac_try" in
28947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28948 *) ac_try_echo=$ac_try;;
28949 esac
28950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28951 $as_echo "$ac_try_echo") >&5
28952 (eval "$ac_try") 2>&5
28953 ac_status=$?
28954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28955 (exit $ac_status); }; }; then
28956 bash_cv_ulimit_maxfds=yes
28957 else
28958 $as_echo "$as_me: program exited with status $ac_status" >&5
28959 $as_echo "$as_me: failed program was:" >&5
28960 sed 's/^/| /' conftest.$ac_ext >&5
28961
28962 ( exit $ac_status )
28963 bash_cv_ulimit_maxfds=no
28964 fi
28965 rm -rf conftest.dSYM
28966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28967 fi
28968
28969
28970 fi
28971
28972 { $as_echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
28973 $as_echo "$bash_cv_ulimit_maxfds" >&6; }
28974 if test $bash_cv_ulimit_maxfds = yes; then
28975 cat >>confdefs.h <<\_ACEOF
28976 #define ULIMIT_MAXFDS 1
28977 _ACEOF
28978
28979 fi
28980
28981
28982
28983
28984
28985
28986
28987
28988
28989
28990
28991
28992
28993
28994
28995
28996
28997
28998 { $as_echo "$as_me:$LINENO: checking whether fpurge is declared" >&5
28999 $as_echo_n "checking whether fpurge is declared... " >&6; }
29000 if test "${ac_cv_have_decl_fpurge+set}" = set; then
29001 $as_echo_n "(cached) " >&6
29002 else
29003 cat >conftest.$ac_ext <<_ACEOF
29004 /* confdefs.h. */
29005 _ACEOF
29006 cat confdefs.h >>conftest.$ac_ext
29007 cat >>conftest.$ac_ext <<_ACEOF
29008 /* end confdefs.h. */
29009 #include <stdio.h>
29010
29011 int
29012 main ()
29013 {
29014 #ifndef fpurge
29015 (void) fpurge;
29016 #endif
29017
29018 ;
29019 return 0;
29020 }
29021 _ACEOF
29022 rm -f conftest.$ac_objext
29023 if { (ac_try="$ac_compile"
29024 case "(($ac_try" in
29025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29026 *) ac_try_echo=$ac_try;;
29027 esac
29028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29029 $as_echo "$ac_try_echo") >&5
29030 (eval "$ac_compile") 2>conftest.er1
29031 ac_status=$?
29032 grep -v '^ *+' conftest.er1 >conftest.err
29033 rm -f conftest.er1
29034 cat conftest.err >&5
29035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29036 (exit $ac_status); } && {
29037 test -z "$ac_c_werror_flag" ||
29038 test ! -s conftest.err
29039 } && test -s conftest.$ac_objext; then
29040 ac_cv_have_decl_fpurge=yes
29041 else
29042 $as_echo "$as_me: failed program was:" >&5
29043 sed 's/^/| /' conftest.$ac_ext >&5
29044
29045 ac_cv_have_decl_fpurge=no
29046 fi
29047
29048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29049 fi
29050 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fpurge" >&5
29051 $as_echo "$ac_cv_have_decl_fpurge" >&6; }
29052 if test "x$ac_cv_have_decl_fpurge" = x""yes; then
29053
29054 cat >>confdefs.h <<_ACEOF
29055 #define HAVE_DECL_FPURGE 1
29056 _ACEOF
29057
29058
29059 else
29060 cat >>confdefs.h <<_ACEOF
29061 #define HAVE_DECL_FPURGE 0
29062 _ACEOF
29063
29064
29065 fi
29066
29067
29068
29069 { $as_echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
29070 $as_echo_n "checking to see if getenv can be redefined... " >&6; }
29071 if test "${bash_cv_getenv_redef+set}" = set; then
29072 $as_echo_n "(cached) " >&6
29073 else
29074 if test "$cross_compiling" = yes; then
29075 { $as_echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
29076 $as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
29077 bash_cv_getenv_redef=yes
29078
29079 else
29080 cat >conftest.$ac_ext <<_ACEOF
29081 /* confdefs.h. */
29082 _ACEOF
29083 cat confdefs.h >>conftest.$ac_ext
29084 cat >>conftest.$ac_ext <<_ACEOF
29085 /* end confdefs.h. */
29086
29087 #ifdef HAVE_UNISTD_H
29088 # include <unistd.h>
29089 #endif
29090 #ifndef __STDC__
29091 # ifndef const
29092 # define const
29093 # endif
29094 #endif
29095 char *
29096 getenv (name)
29097 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
29098 const char *name;
29099 #else
29100 char const *name;
29101 #endif /* !__linux__ && !__bsdi__ && !convex */
29102 {
29103 return "42";
29104 }
29105 main()
29106 {
29107 char *s;
29108 /* The next allows this program to run, but does not allow bash to link
29109 when it redefines getenv. I'm not really interested in figuring out
29110 why not. */
29111 #if defined (NeXT)
29112 exit(1);
29113 #endif
29114 s = getenv("ABCDE");
29115 exit(s == 0); /* force optimizer to leave getenv in */
29116 }
29117
29118 _ACEOF
29119 rm -f conftest$ac_exeext
29120 if { (ac_try="$ac_link"
29121 case "(($ac_try" in
29122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29123 *) ac_try_echo=$ac_try;;
29124 esac
29125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29126 $as_echo "$ac_try_echo") >&5
29127 (eval "$ac_link") 2>&5
29128 ac_status=$?
29129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29131 { (case "(($ac_try" in
29132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29133 *) ac_try_echo=$ac_try;;
29134 esac
29135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29136 $as_echo "$ac_try_echo") >&5
29137 (eval "$ac_try") 2>&5
29138 ac_status=$?
29139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140 (exit $ac_status); }; }; then
29141 bash_cv_getenv_redef=yes
29142 else
29143 $as_echo "$as_me: program exited with status $ac_status" >&5
29144 $as_echo "$as_me: failed program was:" >&5
29145 sed 's/^/| /' conftest.$ac_ext >&5
29146
29147 ( exit $ac_status )
29148 bash_cv_getenv_redef=no
29149 fi
29150 rm -rf conftest.dSYM
29151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29152 fi
29153
29154
29155 fi
29156
29157 { $as_echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
29158 $as_echo "$bash_cv_getenv_redef" >&6; }
29159 if test $bash_cv_getenv_redef = yes; then
29160 cat >>confdefs.h <<\_ACEOF
29161 #define CAN_REDEFINE_GETENV 1
29162 _ACEOF
29163
29164 fi
29165
29166 if test "$ac_cv_func_getcwd" = "yes"; then
29167 { $as_echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory with 0 size" >&5
29168 $as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; }
29169 if test "${bash_cv_getcwd_malloc+set}" = set; then
29170 $as_echo_n "(cached) " >&6
29171 else
29172 if test "$cross_compiling" = yes; then
29173 { $as_echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
29174 $as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
29175 bash_cv_getcwd_malloc=no
29176
29177 else
29178 cat >conftest.$ac_ext <<_ACEOF
29179 /* confdefs.h. */
29180 _ACEOF
29181 cat confdefs.h >>conftest.$ac_ext
29182 cat >>conftest.$ac_ext <<_ACEOF
29183 /* end confdefs.h. */
29184
29185 #include <stdio.h>
29186 #ifdef HAVE_UNISTD_H
29187 #include <unistd.h>
29188 #endif
29189
29190 main()
29191 {
29192 char *xpwd;
29193 xpwd = getcwd(0, 0);
29194 exit (xpwd == 0);
29195 }
29196
29197 _ACEOF
29198 rm -f conftest$ac_exeext
29199 if { (ac_try="$ac_link"
29200 case "(($ac_try" in
29201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29202 *) ac_try_echo=$ac_try;;
29203 esac
29204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29205 $as_echo "$ac_try_echo") >&5
29206 (eval "$ac_link") 2>&5
29207 ac_status=$?
29208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29210 { (case "(($ac_try" in
29211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29212 *) ac_try_echo=$ac_try;;
29213 esac
29214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29215 $as_echo "$ac_try_echo") >&5
29216 (eval "$ac_try") 2>&5
29217 ac_status=$?
29218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); }; }; then
29220 bash_cv_getcwd_malloc=yes
29221 else
29222 $as_echo "$as_me: program exited with status $ac_status" >&5
29223 $as_echo "$as_me: failed program was:" >&5
29224 sed 's/^/| /' conftest.$ac_ext >&5
29225
29226 ( exit $ac_status )
29227 bash_cv_getcwd_malloc=no
29228 fi
29229 rm -rf conftest.dSYM
29230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29231 fi
29232
29233
29234 fi
29235
29236 { $as_echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
29237 $as_echo "$bash_cv_getcwd_malloc" >&6; }
29238 if test $bash_cv_getcwd_malloc = no; then
29239 cat >>confdefs.h <<\_ACEOF
29240 #define GETCWD_BROKEN 1
29241 _ACEOF
29242
29243 case " $LIBOBJS " in
29244 *" getcwd.$ac_objext "* ) ;;
29245 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
29246 ;;
29247 esac
29248
29249 fi
29250
29251 fi
29252
29253 { $as_echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
29254 $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
29255 if test "${bash_cv_func_sigsetjmp+set}" = set; then
29256 $as_echo_n "(cached) " >&6
29257 else
29258 if test "$cross_compiling" = yes; then
29259 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
29260 $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
29261 bash_cv_func_sigsetjmp=missing
29262
29263 else
29264 cat >conftest.$ac_ext <<_ACEOF
29265 /* confdefs.h. */
29266 _ACEOF
29267 cat confdefs.h >>conftest.$ac_ext
29268 cat >>conftest.$ac_ext <<_ACEOF
29269 /* end confdefs.h. */
29270
29271 #ifdef HAVE_UNISTD_H
29272 #include <unistd.h>
29273 #endif
29274 #include <sys/types.h>
29275 #include <signal.h>
29276 #include <setjmp.h>
29277
29278 main()
29279 {
29280 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
29281 exit (1);
29282 #else
29283
29284 int code;
29285 sigset_t set, oset;
29286 sigjmp_buf xx;
29287
29288 /* get the mask */
29289 sigemptyset(&set);
29290 sigemptyset(&oset);
29291 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
29292 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
29293
29294 /* save it */
29295 code = sigsetjmp(xx, 1);
29296 if (code)
29297 exit(0); /* could get sigmask and compare to oset here. */
29298
29299 /* change it */
29300 sigaddset(&set, SIGINT);
29301 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
29302
29303 /* and siglongjmp */
29304 siglongjmp(xx, 10);
29305 exit(1);
29306 #endif
29307 }
29308 _ACEOF
29309 rm -f conftest$ac_exeext
29310 if { (ac_try="$ac_link"
29311 case "(($ac_try" in
29312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29313 *) ac_try_echo=$ac_try;;
29314 esac
29315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29316 $as_echo "$ac_try_echo") >&5
29317 (eval "$ac_link") 2>&5
29318 ac_status=$?
29319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29321 { (case "(($ac_try" in
29322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29323 *) ac_try_echo=$ac_try;;
29324 esac
29325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29326 $as_echo "$ac_try_echo") >&5
29327 (eval "$ac_try") 2>&5
29328 ac_status=$?
29329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29330 (exit $ac_status); }; }; then
29331 bash_cv_func_sigsetjmp=present
29332 else
29333 $as_echo "$as_me: program exited with status $ac_status" >&5
29334 $as_echo "$as_me: failed program was:" >&5
29335 sed 's/^/| /' conftest.$ac_ext >&5
29336
29337 ( exit $ac_status )
29338 bash_cv_func_sigsetjmp=missing
29339 fi
29340 rm -rf conftest.dSYM
29341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29342 fi
29343
29344
29345 fi
29346
29347 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
29348 $as_echo "$bash_cv_func_sigsetjmp" >&6; }
29349 if test $bash_cv_func_sigsetjmp = present; then
29350 cat >>confdefs.h <<\_ACEOF
29351 #define HAVE_POSIX_SIGSETJMP 1
29352 _ACEOF
29353
29354 fi
29355
29356
29357 { $as_echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
29358 $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
29359 if test "${bash_cv_func_strcoll_broken+set}" = set; then
29360 $as_echo_n "(cached) " >&6
29361 else
29362 if test "$cross_compiling" = yes; then
29363 { $as_echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
29364 $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
29365 bash_cv_func_strcoll_broken=no
29366
29367 else
29368 cat >conftest.$ac_ext <<_ACEOF
29369 /* confdefs.h. */
29370 _ACEOF
29371 cat confdefs.h >>conftest.$ac_ext
29372 cat >>conftest.$ac_ext <<_ACEOF
29373 /* end confdefs.h. */
29374
29375 #include <stdio.h>
29376 #if defined (HAVE_LOCALE_H)
29377 #include <locale.h>
29378 #endif
29379
29380 main(c, v)
29381 int c;
29382 char *v[];
29383 {
29384 int r1, r2;
29385 char *deflocale, *defcoll;
29386
29387 #ifdef HAVE_SETLOCALE
29388 deflocale = setlocale(LC_ALL, "");
29389 defcoll = setlocale(LC_COLLATE, "");
29390 #endif
29391
29392 #ifdef HAVE_STRCOLL
29393 /* These two values are taken from tests/glob-test. */
29394 r1 = strcoll("abd", "aXd");
29395 #else
29396 r1 = 0;
29397 #endif
29398 r2 = strcmp("abd", "aXd");
29399
29400 /* These two should both be greater than 0. It is permissible for
29401 a system to return different values, as long as the sign is the
29402 same. */
29403
29404 /* Exit with 1 (failure) if these two values are both > 0, since
29405 this tests whether strcoll(3) is broken with respect to strcmp(3)
29406 in the default locale. */
29407 exit (r1 > 0 && r2 > 0);
29408 }
29409
29410 _ACEOF
29411 rm -f conftest$ac_exeext
29412 if { (ac_try="$ac_link"
29413 case "(($ac_try" in
29414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415 *) ac_try_echo=$ac_try;;
29416 esac
29417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29418 $as_echo "$ac_try_echo") >&5
29419 (eval "$ac_link") 2>&5
29420 ac_status=$?
29421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29423 { (case "(($ac_try" in
29424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29425 *) ac_try_echo=$ac_try;;
29426 esac
29427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29428 $as_echo "$ac_try_echo") >&5
29429 (eval "$ac_try") 2>&5
29430 ac_status=$?
29431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432 (exit $ac_status); }; }; then
29433 bash_cv_func_strcoll_broken=yes
29434 else
29435 $as_echo "$as_me: program exited with status $ac_status" >&5
29436 $as_echo "$as_me: failed program was:" >&5
29437 sed 's/^/| /' conftest.$ac_ext >&5
29438
29439 ( exit $ac_status )
29440 bash_cv_func_strcoll_broken=no
29441 fi
29442 rm -rf conftest.dSYM
29443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29444 fi
29445
29446
29447 fi
29448
29449 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
29450 $as_echo "$bash_cv_func_strcoll_broken" >&6; }
29451 if test $bash_cv_func_strcoll_broken = yes; then
29452 cat >>confdefs.h <<\_ACEOF
29453 #define STRCOLL_BROKEN 1
29454 _ACEOF
29455
29456 fi
29457
29458
29459
29460
29461
29462
29463
29464
29465
29466
29467 if test X$ac_cv_func_snprintf = Xyes; then
29468 { $as_echo "$as_me:$LINENO: checking for standard-conformant snprintf" >&5
29469 $as_echo_n "checking for standard-conformant snprintf... " >&6; }
29470 if test "${bash_cv_func_snprintf+set}" = set; then
29471 $as_echo_n "(cached) " >&6
29472 else
29473 if test "$cross_compiling" = yes; then
29474 { $as_echo "$as_me:$LINENO: WARNING: cannot check standard snprintf if cross-compiling" >&5
29475 $as_echo "$as_me: WARNING: cannot check standard snprintf if cross-compiling" >&2;}
29476 bash_cv_func_snprintf=yes
29477
29478 else
29479 cat >conftest.$ac_ext <<_ACEOF
29480 /* confdefs.h. */
29481 _ACEOF
29482 cat confdefs.h >>conftest.$ac_ext
29483 cat >>conftest.$ac_ext <<_ACEOF
29484 /* end confdefs.h. */
29485
29486 #include <stdio.h>
29487
29488 main()
29489 {
29490 int n;
29491 n = snprintf (0, 0, "%s", "0123456");
29492 exit(n != 7);
29493 }
29494
29495 _ACEOF
29496 rm -f conftest$ac_exeext
29497 if { (ac_try="$ac_link"
29498 case "(($ac_try" in
29499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29500 *) ac_try_echo=$ac_try;;
29501 esac
29502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29503 $as_echo "$ac_try_echo") >&5
29504 (eval "$ac_link") 2>&5
29505 ac_status=$?
29506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29508 { (case "(($ac_try" in
29509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29510 *) ac_try_echo=$ac_try;;
29511 esac
29512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29513 $as_echo "$ac_try_echo") >&5
29514 (eval "$ac_try") 2>&5
29515 ac_status=$?
29516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); }; }; then
29518 bash_cv_func_snprintf=yes
29519 else
29520 $as_echo "$as_me: program exited with status $ac_status" >&5
29521 $as_echo "$as_me: failed program was:" >&5
29522 sed 's/^/| /' conftest.$ac_ext >&5
29523
29524 ( exit $ac_status )
29525 bash_cv_func_snprintf=no
29526 fi
29527 rm -rf conftest.dSYM
29528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29529 fi
29530
29531
29532 fi
29533 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_snprintf" >&5
29534 $as_echo "$bash_cv_func_snprintf" >&6; }
29535 if test $bash_cv_func_snprintf = no; then
29536 ac_cv_func_snprintf=no
29537 fi
29538 fi
29539 if test $ac_cv_func_snprintf = no; then
29540
29541 cat >>confdefs.h <<\_ACEOF
29542 #define HAVE_SNPRINTF 0
29543 _ACEOF
29544
29545 fi
29546
29547
29548
29549
29550
29551
29552
29553
29554
29555
29556 if test X$ac_cv_func_vsnprintf = Xyes; then
29557 { $as_echo "$as_me:$LINENO: checking for standard-conformant vsnprintf" >&5
29558 $as_echo_n "checking for standard-conformant vsnprintf... " >&6; }
29559 if test "${bash_cv_func_vsnprintf+set}" = set; then
29560 $as_echo_n "(cached) " >&6
29561 else
29562 if test "$cross_compiling" = yes; then
29563 { $as_echo "$as_me:$LINENO: WARNING: cannot check standard vsnprintf if cross-compiling" >&5
29564 $as_echo "$as_me: WARNING: cannot check standard vsnprintf if cross-compiling" >&2;}
29565 bash_cv_func_vsnprintf=yes
29566
29567 else
29568 cat >conftest.$ac_ext <<_ACEOF
29569 /* confdefs.h. */
29570 _ACEOF
29571 cat confdefs.h >>conftest.$ac_ext
29572 cat >>conftest.$ac_ext <<_ACEOF
29573 /* end confdefs.h. */
29574
29575 #if HAVE_STDARG_H
29576 #include <stdarg.h>
29577 #else
29578 #include <varargs.h>
29579 #endif
29580 #include <stdio.h>
29581 #include <stdlib.h>
29582
29583 static int
29584 #if HAVE_STDARG_H
29585 foo(const char *fmt, ...)
29586 #else
29587 foo(format, va_alist)
29588 const char *format;
29589 va_dcl
29590 #endif
29591 {
29592 va_list args;
29593 int n;
29594
29595 #if HAVE_STDARG_H
29596 va_start(args, fmt);
29597 #else
29598 va_start(args);
29599 #endif
29600 n = vsnprintf(0, 0, fmt, args);
29601 va_end (args);
29602 return n;
29603 }
29604
29605 main()
29606 {
29607 int n;
29608 n = foo("%s", "0123456");
29609 exit(n != 7);
29610 }
29611
29612 _ACEOF
29613 rm -f conftest$ac_exeext
29614 if { (ac_try="$ac_link"
29615 case "(($ac_try" in
29616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29617 *) ac_try_echo=$ac_try;;
29618 esac
29619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29620 $as_echo "$ac_try_echo") >&5
29621 (eval "$ac_link") 2>&5
29622 ac_status=$?
29623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29625 { (case "(($ac_try" in
29626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29627 *) ac_try_echo=$ac_try;;
29628 esac
29629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29630 $as_echo "$ac_try_echo") >&5
29631 (eval "$ac_try") 2>&5
29632 ac_status=$?
29633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634 (exit $ac_status); }; }; then
29635 bash_cv_func_vsnprintf=yes
29636 else
29637 $as_echo "$as_me: program exited with status $ac_status" >&5
29638 $as_echo "$as_me: failed program was:" >&5
29639 sed 's/^/| /' conftest.$ac_ext >&5
29640
29641 ( exit $ac_status )
29642 bash_cv_func_vsnprintf=no
29643 fi
29644 rm -rf conftest.dSYM
29645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29646 fi
29647
29648
29649 fi
29650 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_vsnprintf" >&5
29651 $as_echo "$bash_cv_func_vsnprintf" >&6; }
29652 if test $bash_cv_func_vsnprintf = no; then
29653 ac_cv_func_vsnprintf=no
29654 fi
29655 fi
29656 if test $ac_cv_func_vsnprintf = no; then
29657
29658 cat >>confdefs.h <<\_ACEOF
29659 #define HAVE_VSNPRINTF 0
29660 _ACEOF
29661
29662 fi
29663
29664
29665
29666 if test "$ac_cv_func_putenv" = "yes"; then
29667
29668
29669
29670 { $as_echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
29671 $as_echo_n "checking for standard-conformant putenv declaration... " >&6; }
29672 if test "${bash_cv_std_putenv+set}" = set; then
29673 $as_echo_n "(cached) " >&6
29674 else
29675 cat >conftest.$ac_ext <<_ACEOF
29676 /* confdefs.h. */
29677 _ACEOF
29678 cat confdefs.h >>conftest.$ac_ext
29679 cat >>conftest.$ac_ext <<_ACEOF
29680 /* end confdefs.h. */
29681
29682 #if STDC_HEADERS
29683 #include <stdlib.h>
29684 #include <stddef.h>
29685 #endif
29686 #ifndef __STDC__
29687 # ifndef const
29688 # define const
29689 # endif
29690 #endif
29691 #ifdef PROTOTYPES
29692 extern int putenv (char *);
29693 #else
29694 extern int putenv ();
29695 #endif
29696
29697 int
29698 main ()
29699 {
29700 return (putenv == 0);
29701 ;
29702 return 0;
29703 }
29704 _ACEOF
29705 rm -f conftest.$ac_objext conftest$ac_exeext
29706 if { (ac_try="$ac_link"
29707 case "(($ac_try" in
29708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29709 *) ac_try_echo=$ac_try;;
29710 esac
29711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29712 $as_echo "$ac_try_echo") >&5
29713 (eval "$ac_link") 2>conftest.er1
29714 ac_status=$?
29715 grep -v '^ *+' conftest.er1 >conftest.err
29716 rm -f conftest.er1
29717 cat conftest.err >&5
29718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719 (exit $ac_status); } && {
29720 test -z "$ac_c_werror_flag" ||
29721 test ! -s conftest.err
29722 } && test -s conftest$ac_exeext && {
29723 test "$cross_compiling" = yes ||
29724 $as_test_x conftest$ac_exeext
29725 }; then
29726 bash_cv_std_putenv=yes
29727 else
29728 $as_echo "$as_me: failed program was:" >&5
29729 sed 's/^/| /' conftest.$ac_ext >&5
29730
29731 bash_cv_std_putenv=no
29732
29733 fi
29734
29735 rm -rf conftest.dSYM
29736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29737 conftest$ac_exeext conftest.$ac_ext
29738 fi
29739 { $as_echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
29740 $as_echo "$bash_cv_std_putenv" >&6; }
29741 if test $bash_cv_std_putenv = yes; then
29742 cat >>confdefs.h <<\_ACEOF
29743 #define HAVE_STD_PUTENV 1
29744 _ACEOF
29745
29746 fi
29747
29748 else
29749 cat >>confdefs.h <<\_ACEOF
29750 #define HAVE_STD_PUTENV 1
29751 _ACEOF
29752
29753 fi
29754 if test "$ac_cv_func_unsetenv" = "yes"; then
29755
29756
29757
29758 { $as_echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
29759 $as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; }
29760 if test "${bash_cv_std_unsetenv+set}" = set; then
29761 $as_echo_n "(cached) " >&6
29762 else
29763 cat >conftest.$ac_ext <<_ACEOF
29764 /* confdefs.h. */
29765 _ACEOF
29766 cat confdefs.h >>conftest.$ac_ext
29767 cat >>conftest.$ac_ext <<_ACEOF
29768 /* end confdefs.h. */
29769
29770 #if STDC_HEADERS
29771 #include <stdlib.h>
29772 #include <stddef.h>
29773 #endif
29774 #ifndef __STDC__
29775 # ifndef const
29776 # define const
29777 # endif
29778 #endif
29779 #ifdef PROTOTYPES
29780 extern int unsetenv (const char *);
29781 #else
29782 extern int unsetenv ();
29783 #endif
29784
29785 int
29786 main ()
29787 {
29788 return (unsetenv == 0);
29789 ;
29790 return 0;
29791 }
29792 _ACEOF
29793 rm -f conftest.$ac_objext conftest$ac_exeext
29794 if { (ac_try="$ac_link"
29795 case "(($ac_try" in
29796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29797 *) ac_try_echo=$ac_try;;
29798 esac
29799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29800 $as_echo "$ac_try_echo") >&5
29801 (eval "$ac_link") 2>conftest.er1
29802 ac_status=$?
29803 grep -v '^ *+' conftest.er1 >conftest.err
29804 rm -f conftest.er1
29805 cat conftest.err >&5
29806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807 (exit $ac_status); } && {
29808 test -z "$ac_c_werror_flag" ||
29809 test ! -s conftest.err
29810 } && test -s conftest$ac_exeext && {
29811 test "$cross_compiling" = yes ||
29812 $as_test_x conftest$ac_exeext
29813 }; then
29814 bash_cv_std_unsetenv=yes
29815 else
29816 $as_echo "$as_me: failed program was:" >&5
29817 sed 's/^/| /' conftest.$ac_ext >&5
29818
29819 bash_cv_std_unsetenv=no
29820
29821 fi
29822
29823 rm -rf conftest.dSYM
29824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29825 conftest$ac_exeext conftest.$ac_ext
29826 fi
29827 { $as_echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
29828 $as_echo "$bash_cv_std_unsetenv" >&6; }
29829 if test $bash_cv_std_unsetenv = yes; then
29830 cat >>confdefs.h <<\_ACEOF
29831 #define HAVE_STD_UNSETENV 1
29832 _ACEOF
29833
29834 fi
29835
29836 else
29837 cat >>confdefs.h <<\_ACEOF
29838 #define HAVE_STD_UNSETENV 1
29839 _ACEOF
29840
29841 fi
29842
29843 { $as_echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
29844 $as_echo_n "checking for printf floating point output in hex notation... " >&6; }
29845 if test "${bash_cv_printf_a_format+set}" = set; then
29846 $as_echo_n "(cached) " >&6
29847 else
29848 if test "$cross_compiling" = yes; then
29849 { $as_echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
29850 $as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
29851 bash_cv_printf_a_format=no
29852
29853 else
29854 cat >conftest.$ac_ext <<_ACEOF
29855 /* confdefs.h. */
29856 _ACEOF
29857 cat confdefs.h >>conftest.$ac_ext
29858 cat >>conftest.$ac_ext <<_ACEOF
29859 /* end confdefs.h. */
29860
29861 #include <stdio.h>
29862 #include <string.h>
29863
29864 int
29865 main()
29866 {
29867 double y = 0.0;
29868 char abuf[1024];
29869
29870 sprintf(abuf, "%A", y);
29871 exit(strchr(abuf, 'P') == (char *)0);
29872 }
29873
29874 _ACEOF
29875 rm -f conftest$ac_exeext
29876 if { (ac_try="$ac_link"
29877 case "(($ac_try" in
29878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29879 *) ac_try_echo=$ac_try;;
29880 esac
29881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29882 $as_echo "$ac_try_echo") >&5
29883 (eval "$ac_link") 2>&5
29884 ac_status=$?
29885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29887 { (case "(($ac_try" in
29888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29889 *) ac_try_echo=$ac_try;;
29890 esac
29891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29892 $as_echo "$ac_try_echo") >&5
29893 (eval "$ac_try") 2>&5
29894 ac_status=$?
29895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896 (exit $ac_status); }; }; then
29897 bash_cv_printf_a_format=yes
29898 else
29899 $as_echo "$as_me: program exited with status $ac_status" >&5
29900 $as_echo "$as_me: failed program was:" >&5
29901 sed 's/^/| /' conftest.$ac_ext >&5
29902
29903 ( exit $ac_status )
29904 bash_cv_printf_a_format=no
29905 fi
29906 rm -rf conftest.dSYM
29907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29908 fi
29909
29910
29911 fi
29912
29913 { $as_echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
29914 $as_echo "$bash_cv_printf_a_format" >&6; }
29915 if test $bash_cv_printf_a_format = yes; then
29916 cat >>confdefs.h <<\_ACEOF
29917 #define HAVE_PRINTF_A_FORMAT 1
29918 _ACEOF
29919
29920 fi
29921
29922
29923
29924
29925 { $as_echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
29926 $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
29927 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
29928 $as_echo_n "(cached) " >&6
29929 else
29930 if test "$cross_compiling" = yes; then
29931 { $as_echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
29932 $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
29933 bash_cv_must_reinstall_sighandlers=no
29934
29935 else
29936 cat >conftest.$ac_ext <<_ACEOF
29937 /* confdefs.h. */
29938 _ACEOF
29939 cat confdefs.h >>conftest.$ac_ext
29940 cat >>conftest.$ac_ext <<_ACEOF
29941 /* end confdefs.h. */
29942
29943 #include <signal.h>
29944 #ifdef HAVE_UNISTD_H
29945 #include <unistd.h>
29946 #endif
29947
29948 typedef RETSIGTYPE sigfunc();
29949
29950 int nsigint;
29951
29952 #ifdef HAVE_POSIX_SIGNALS
29953 sigfunc *
29954 set_signal_handler(sig, handler)
29955 int sig;
29956 sigfunc *handler;
29957 {
29958 struct sigaction act, oact;
29959 act.sa_handler = handler;
29960 act.sa_flags = 0;
29961 sigemptyset (&act.sa_mask);
29962 sigemptyset (&oact.sa_mask);
29963 sigaction (sig, &act, &oact);
29964 return (oact.sa_handler);
29965 }
29966 #else
29967 #define set_signal_handler(s, h) signal(s, h)
29968 #endif
29969
29970 RETSIGTYPE
29971 sigint(s)
29972 int s;
29973 {
29974 nsigint++;
29975 }
29976
29977 main()
29978 {
29979 nsigint = 0;
29980 set_signal_handler(SIGINT, sigint);
29981 kill((int)getpid(), SIGINT);
29982 kill((int)getpid(), SIGINT);
29983 exit(nsigint != 2);
29984 }
29985
29986 _ACEOF
29987 rm -f conftest$ac_exeext
29988 if { (ac_try="$ac_link"
29989 case "(($ac_try" in
29990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29991 *) ac_try_echo=$ac_try;;
29992 esac
29993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29994 $as_echo "$ac_try_echo") >&5
29995 (eval "$ac_link") 2>&5
29996 ac_status=$?
29997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29999 { (case "(($ac_try" in
30000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30001 *) ac_try_echo=$ac_try;;
30002 esac
30003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30004 $as_echo "$ac_try_echo") >&5
30005 (eval "$ac_try") 2>&5
30006 ac_status=$?
30007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008 (exit $ac_status); }; }; then
30009 bash_cv_must_reinstall_sighandlers=no
30010 else
30011 $as_echo "$as_me: program exited with status $ac_status" >&5
30012 $as_echo "$as_me: failed program was:" >&5
30013 sed 's/^/| /' conftest.$ac_ext >&5
30014
30015 ( exit $ac_status )
30016 bash_cv_must_reinstall_sighandlers=yes
30017 fi
30018 rm -rf conftest.dSYM
30019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30020 fi
30021
30022
30023 fi
30024
30025 { $as_echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
30026 $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
30027 if test $bash_cv_must_reinstall_sighandlers = yes; then
30028 cat >>confdefs.h <<\_ACEOF
30029 #define MUST_REINSTALL_SIGHANDLERS 1
30030 _ACEOF
30031
30032 fi
30033
30034
30035 { $as_echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
30036 $as_echo_n "checking for presence of necessary job control definitions... " >&6; }
30037 if test "${bash_cv_job_control_missing+set}" = set; then
30038 $as_echo_n "(cached) " >&6
30039 else
30040 if test "$cross_compiling" = yes; then
30041 { $as_echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
30042 $as_echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
30043 bash_cv_job_control_missing=missing
30044
30045 else
30046 cat >conftest.$ac_ext <<_ACEOF
30047 /* confdefs.h. */
30048 _ACEOF
30049 cat confdefs.h >>conftest.$ac_ext
30050 cat >>conftest.$ac_ext <<_ACEOF
30051 /* end confdefs.h. */
30052
30053 #include <sys/types.h>
30054 #ifdef HAVE_SYS_WAIT_H
30055 #include <sys/wait.h>
30056 #endif
30057 #ifdef HAVE_UNISTD_H
30058 #include <unistd.h>
30059 #endif
30060 #include <signal.h>
30061
30062 /* Add more tests in here as appropriate. */
30063 main()
30064 {
30065 /* signal type */
30066 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
30067 exit(1);
30068 #endif
30069
30070 /* signals and tty control. */
30071 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
30072 exit (1);
30073 #endif
30074
30075 /* process control */
30076 #if !defined (WNOHANG) || !defined (WUNTRACED)
30077 exit(1);
30078 #endif
30079
30080 /* Posix systems have tcgetpgrp and waitpid. */
30081 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
30082 exit(1);
30083 #endif
30084
30085 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
30086 exit(1);
30087 #endif
30088
30089 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
30090 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
30091 exit(1);
30092 #endif
30093
30094 exit(0);
30095 }
30096 _ACEOF
30097 rm -f conftest$ac_exeext
30098 if { (ac_try="$ac_link"
30099 case "(($ac_try" in
30100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30101 *) ac_try_echo=$ac_try;;
30102 esac
30103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30104 $as_echo "$ac_try_echo") >&5
30105 (eval "$ac_link") 2>&5
30106 ac_status=$?
30107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30109 { (case "(($ac_try" in
30110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30111 *) ac_try_echo=$ac_try;;
30112 esac
30113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30114 $as_echo "$ac_try_echo") >&5
30115 (eval "$ac_try") 2>&5
30116 ac_status=$?
30117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118 (exit $ac_status); }; }; then
30119 bash_cv_job_control_missing=present
30120 else
30121 $as_echo "$as_me: program exited with status $ac_status" >&5
30122 $as_echo "$as_me: failed program was:" >&5
30123 sed 's/^/| /' conftest.$ac_ext >&5
30124
30125 ( exit $ac_status )
30126 bash_cv_job_control_missing=missing
30127 fi
30128 rm -rf conftest.dSYM
30129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30130 fi
30131
30132
30133 fi
30134
30135 { $as_echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
30136 $as_echo "$bash_cv_job_control_missing" >&6; }
30137 if test $bash_cv_job_control_missing = missing; then
30138 cat >>confdefs.h <<\_ACEOF
30139 #define JOB_CONTROL_MISSING 1
30140 _ACEOF
30141
30142 fi
30143
30144 { $as_echo "$as_me:$LINENO: checking for presence of named pipes" >&5
30145 $as_echo_n "checking for presence of named pipes... " >&6; }
30146 if test "${bash_cv_sys_named_pipes+set}" = set; then
30147 $as_echo_n "(cached) " >&6
30148 else
30149 if test "$cross_compiling" = yes; then
30150 { $as_echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
30151 $as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
30152 bash_cv_sys_named_pipes=missing
30153
30154 else
30155 cat >conftest.$ac_ext <<_ACEOF
30156 /* confdefs.h. */
30157 _ACEOF
30158 cat confdefs.h >>conftest.$ac_ext
30159 cat >>conftest.$ac_ext <<_ACEOF
30160 /* end confdefs.h. */
30161
30162 #include <sys/types.h>
30163 #include <sys/stat.h>
30164 #ifdef HAVE_UNISTD_H
30165 #include <unistd.h>
30166 #endif
30167
30168 /* Add more tests in here as appropriate. */
30169 main()
30170 {
30171 int fd, err;
30172
30173 #if defined (HAVE_MKFIFO)
30174 exit (0);
30175 #endif
30176
30177 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
30178 exit (1);
30179 #endif
30180
30181 #if defined (NeXT)
30182 exit (1);
30183 #endif
30184 err = mkdir("bash-aclocal", 0700);
30185 if (err < 0) {
30186 perror ("mkdir");
30187 exit(1);
30188 }
30189 fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
30190 if (fd == -1) {
30191 rmdir ("bash-aclocal");
30192 exit (1);
30193 }
30194 close(fd);
30195 unlink ("bash-aclocal/sh-np-autoconf");
30196 rmdir ("bash-aclocal");
30197 exit(0);
30198 }
30199 _ACEOF
30200 rm -f conftest$ac_exeext
30201 if { (ac_try="$ac_link"
30202 case "(($ac_try" in
30203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30204 *) ac_try_echo=$ac_try;;
30205 esac
30206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30207 $as_echo "$ac_try_echo") >&5
30208 (eval "$ac_link") 2>&5
30209 ac_status=$?
30210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30212 { (case "(($ac_try" in
30213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30214 *) ac_try_echo=$ac_try;;
30215 esac
30216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30217 $as_echo "$ac_try_echo") >&5
30218 (eval "$ac_try") 2>&5
30219 ac_status=$?
30220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30221 (exit $ac_status); }; }; then
30222 bash_cv_sys_named_pipes=present
30223 else
30224 $as_echo "$as_me: program exited with status $ac_status" >&5
30225 $as_echo "$as_me: failed program was:" >&5
30226 sed 's/^/| /' conftest.$ac_ext >&5
30227
30228 ( exit $ac_status )
30229 bash_cv_sys_named_pipes=missing
30230 fi
30231 rm -rf conftest.dSYM
30232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30233 fi
30234
30235
30236 fi
30237
30238 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
30239 $as_echo "$bash_cv_sys_named_pipes" >&6; }
30240 if test $bash_cv_sys_named_pipes = missing; then
30241 cat >>confdefs.h <<\_ACEOF
30242 #define NAMED_PIPES_MISSING 1
30243 _ACEOF
30244
30245 fi
30246
30247
30248 { $as_echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
30249 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
30250 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
30251 $as_echo_n "(cached) " >&6
30252 else
30253 cat >conftest.$ac_ext <<_ACEOF
30254 /* confdefs.h. */
30255 _ACEOF
30256 cat confdefs.h >>conftest.$ac_ext
30257 cat >>conftest.$ac_ext <<_ACEOF
30258 /* end confdefs.h. */
30259 #include <sys/types.h>
30260 #include <termios.h>
30261 #ifdef TIOCGWINSZ
30262 yes
30263 #endif
30264
30265 _ACEOF
30266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30267 $EGREP "yes" >/dev/null 2>&1; then
30268 ac_cv_sys_tiocgwinsz_in_termios_h=yes
30269 else
30270 ac_cv_sys_tiocgwinsz_in_termios_h=no
30271 fi
30272 rm -f conftest*
30273
30274 fi
30275 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
30276 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
30277
30278 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
30279 { $as_echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
30280 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
30281 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
30282 $as_echo_n "(cached) " >&6
30283 else
30284 cat >conftest.$ac_ext <<_ACEOF
30285 /* confdefs.h. */
30286 _ACEOF
30287 cat confdefs.h >>conftest.$ac_ext
30288 cat >>conftest.$ac_ext <<_ACEOF
30289 /* end confdefs.h. */
30290 #include <sys/types.h>
30291 #include <sys/ioctl.h>
30292 #ifdef TIOCGWINSZ
30293 yes
30294 #endif
30295
30296 _ACEOF
30297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30298 $EGREP "yes" >/dev/null 2>&1; then
30299 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
30300 else
30301 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
30302 fi
30303 rm -f conftest*
30304
30305 fi
30306 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
30307 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
30308
30309 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
30310
30311 cat >>confdefs.h <<\_ACEOF
30312 #define GWINSZ_IN_SYS_IOCTL 1
30313 _ACEOF
30314
30315 fi
30316 fi
30317
30318 { $as_echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
30319 $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
30320 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
30321 $as_echo_n "(cached) " >&6
30322 else
30323 cat >conftest.$ac_ext <<_ACEOF
30324 /* confdefs.h. */
30325 _ACEOF
30326 cat confdefs.h >>conftest.$ac_ext
30327 cat >>conftest.$ac_ext <<_ACEOF
30328 /* end confdefs.h. */
30329 #include <sys/types.h>
30330 #include <sys/ioctl.h>
30331 int
30332 main ()
30333 {
30334 int x = TIOCSTAT;
30335 ;
30336 return 0;
30337 }
30338 _ACEOF
30339 rm -f conftest.$ac_objext
30340 if { (ac_try="$ac_compile"
30341 case "(($ac_try" in
30342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30343 *) ac_try_echo=$ac_try;;
30344 esac
30345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30346 $as_echo "$ac_try_echo") >&5
30347 (eval "$ac_compile") 2>conftest.er1
30348 ac_status=$?
30349 grep -v '^ *+' conftest.er1 >conftest.err
30350 rm -f conftest.er1
30351 cat conftest.err >&5
30352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30353 (exit $ac_status); } && {
30354 test -z "$ac_c_werror_flag" ||
30355 test ! -s conftest.err
30356 } && test -s conftest.$ac_objext; then
30357 bash_cv_tiocstat_in_ioctl=yes
30358 else
30359 $as_echo "$as_me: failed program was:" >&5
30360 sed 's/^/| /' conftest.$ac_ext >&5
30361
30362 bash_cv_tiocstat_in_ioctl=no
30363 fi
30364
30365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30366 fi
30367
30368 { $as_echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
30369 $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
30370 if test $bash_cv_tiocstat_in_ioctl = yes; then
30371 cat >>confdefs.h <<\_ACEOF
30372 #define TIOCSTAT_IN_SYS_IOCTL 1
30373 _ACEOF
30374
30375 fi
30376
30377 { $as_echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
30378 $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
30379 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
30380 $as_echo_n "(cached) " >&6
30381 else
30382 cat >conftest.$ac_ext <<_ACEOF
30383 /* confdefs.h. */
30384 _ACEOF
30385 cat confdefs.h >>conftest.$ac_ext
30386 cat >>conftest.$ac_ext <<_ACEOF
30387 /* end confdefs.h. */
30388 #include <sys/types.h>
30389 #include <sys/ioctl.h>
30390 int
30391 main ()
30392 {
30393 int x = FIONREAD;
30394 ;
30395 return 0;
30396 }
30397 _ACEOF
30398 rm -f conftest.$ac_objext
30399 if { (ac_try="$ac_compile"
30400 case "(($ac_try" in
30401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30402 *) ac_try_echo=$ac_try;;
30403 esac
30404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30405 $as_echo "$ac_try_echo") >&5
30406 (eval "$ac_compile") 2>conftest.er1
30407 ac_status=$?
30408 grep -v '^ *+' conftest.er1 >conftest.err
30409 rm -f conftest.er1
30410 cat conftest.err >&5
30411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30412 (exit $ac_status); } && {
30413 test -z "$ac_c_werror_flag" ||
30414 test ! -s conftest.err
30415 } && test -s conftest.$ac_objext; then
30416 bash_cv_fionread_in_ioctl=yes
30417 else
30418 $as_echo "$as_me: failed program was:" >&5
30419 sed 's/^/| /' conftest.$ac_ext >&5
30420
30421 bash_cv_fionread_in_ioctl=no
30422 fi
30423
30424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30425 fi
30426
30427 { $as_echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
30428 $as_echo "$bash_cv_fionread_in_ioctl" >&6; }
30429 if test $bash_cv_fionread_in_ioctl = yes; then
30430 cat >>confdefs.h <<\_ACEOF
30431 #define FIONREAD_IN_SYS_IOCTL 1
30432 _ACEOF
30433
30434 fi
30435
30436
30437
30438 { $as_echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
30439 $as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; }
30440 if test "${bash_cv_wcontinued_broken+set}" = set; then
30441 $as_echo_n "(cached) " >&6
30442 else
30443 if test "$cross_compiling" = yes; then
30444 { $as_echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
30445 $as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
30446 bash_cv_wcontinued_broken=no
30447
30448 else
30449 cat >conftest.$ac_ext <<_ACEOF
30450 /* confdefs.h. */
30451 _ACEOF
30452 cat confdefs.h >>conftest.$ac_ext
30453 cat >>conftest.$ac_ext <<_ACEOF
30454 /* end confdefs.h. */
30455
30456 #include <sys/types.h>
30457 #include <sys/wait.h>
30458 #include <unistd.h>
30459 #include <errno.h>
30460
30461 #ifndef errno
30462 extern int errno;
30463 #endif
30464 main()
30465 {
30466 int x;
30467
30468 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
30469 if (x == -1 && errno == EINVAL)
30470 exit (1);
30471 else
30472 exit (0);
30473 }
30474
30475 _ACEOF
30476 rm -f conftest$ac_exeext
30477 if { (ac_try="$ac_link"
30478 case "(($ac_try" in
30479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30480 *) ac_try_echo=$ac_try;;
30481 esac
30482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30483 $as_echo "$ac_try_echo") >&5
30484 (eval "$ac_link") 2>&5
30485 ac_status=$?
30486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30488 { (case "(($ac_try" in
30489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30490 *) ac_try_echo=$ac_try;;
30491 esac
30492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30493 $as_echo "$ac_try_echo") >&5
30494 (eval "$ac_try") 2>&5
30495 ac_status=$?
30496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); }; }; then
30498 bash_cv_wcontinued_broken=no
30499 else
30500 $as_echo "$as_me: program exited with status $ac_status" >&5
30501 $as_echo "$as_me: failed program was:" >&5
30502 sed 's/^/| /' conftest.$ac_ext >&5
30503
30504 ( exit $ac_status )
30505 bash_cv_wcontinued_broken=yes
30506 fi
30507 rm -rf conftest.dSYM
30508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30509 fi
30510
30511
30512 fi
30513
30514 { $as_echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
30515 $as_echo "$bash_cv_wcontinued_broken" >&6; }
30516 if test $bash_cv_wcontinued_broken = yes; then
30517 cat >>confdefs.h <<\_ACEOF
30518 #define WCONTINUED_BROKEN 1
30519 _ACEOF
30520
30521 fi
30522
30523
30524 { $as_echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
30525 $as_echo_n "checking for speed_t in sys/types.h... " >&6; }
30526 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
30527 $as_echo_n "(cached) " >&6
30528 else
30529 cat >conftest.$ac_ext <<_ACEOF
30530 /* confdefs.h. */
30531 _ACEOF
30532 cat confdefs.h >>conftest.$ac_ext
30533 cat >>conftest.$ac_ext <<_ACEOF
30534 /* end confdefs.h. */
30535 #include <sys/types.h>
30536 int
30537 main ()
30538 {
30539 speed_t x;
30540 ;
30541 return 0;
30542 }
30543 _ACEOF
30544 rm -f conftest.$ac_objext
30545 if { (ac_try="$ac_compile"
30546 case "(($ac_try" in
30547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30548 *) ac_try_echo=$ac_try;;
30549 esac
30550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30551 $as_echo "$ac_try_echo") >&5
30552 (eval "$ac_compile") 2>conftest.er1
30553 ac_status=$?
30554 grep -v '^ *+' conftest.er1 >conftest.err
30555 rm -f conftest.er1
30556 cat conftest.err >&5
30557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558 (exit $ac_status); } && {
30559 test -z "$ac_c_werror_flag" ||
30560 test ! -s conftest.err
30561 } && test -s conftest.$ac_objext; then
30562 bash_cv_speed_t_in_sys_types=yes
30563 else
30564 $as_echo "$as_me: failed program was:" >&5
30565 sed 's/^/| /' conftest.$ac_ext >&5
30566
30567 bash_cv_speed_t_in_sys_types=no
30568 fi
30569
30570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30571 fi
30572
30573 { $as_echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
30574 $as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
30575 if test $bash_cv_speed_t_in_sys_types = yes; then
30576 cat >>confdefs.h <<\_ACEOF
30577 #define SPEED_T_IN_SYS_TYPES 1
30578 _ACEOF
30579
30580 fi
30581
30582 { $as_echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
30583 $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
30584 if test "${bash_cv_getpw_declared+set}" = set; then
30585 $as_echo_n "(cached) " >&6
30586 else
30587 cat >conftest.$ac_ext <<_ACEOF
30588 /* confdefs.h. */
30589 _ACEOF
30590 cat confdefs.h >>conftest.$ac_ext
30591 cat >>conftest.$ac_ext <<_ACEOF
30592 /* end confdefs.h. */
30593
30594 #include <sys/types.h>
30595 #ifdef HAVE_UNISTD_H
30596 # include <unistd.h>
30597 #endif
30598 #include <pwd.h>
30599
30600 _ACEOF
30601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30602 $EGREP "getpwuid" >/dev/null 2>&1; then
30603 bash_cv_getpw_declared=yes
30604 else
30605 bash_cv_getpw_declared=no
30606 fi
30607 rm -f conftest*
30608
30609 fi
30610
30611 { $as_echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
30612 $as_echo "$bash_cv_getpw_declared" >&6; }
30613 if test $bash_cv_getpw_declared = yes; then
30614 cat >>confdefs.h <<\_ACEOF
30615 #define HAVE_GETPW_DECLS 1
30616 _ACEOF
30617
30618 fi
30619
30620 { $as_echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
30621 $as_echo_n "checking for unusable real-time signals due to large values... " >&6; }
30622 if test "${bash_cv_unusable_rtsigs+set}" = set; then
30623 $as_echo_n "(cached) " >&6
30624 else
30625 if test "$cross_compiling" = yes; then
30626 { $as_echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
30627 $as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
30628 bash_cv_unusable_rtsigs=yes
30629
30630 else
30631 cat >conftest.$ac_ext <<_ACEOF
30632 /* confdefs.h. */
30633 _ACEOF
30634 cat confdefs.h >>conftest.$ac_ext
30635 cat >>conftest.$ac_ext <<_ACEOF
30636 /* end confdefs.h. */
30637
30638 #include <sys/types.h>
30639 #include <signal.h>
30640
30641 #ifndef NSIG
30642 # define NSIG 64
30643 #endif
30644
30645 main ()
30646 {
30647 int n_sigs = 2 * NSIG;
30648 #ifdef SIGRTMIN
30649 int rtmin = SIGRTMIN;
30650 #else
30651 int rtmin = 0;
30652 #endif
30653
30654 exit(rtmin < n_sigs);
30655 }
30656 _ACEOF
30657 rm -f conftest$ac_exeext
30658 if { (ac_try="$ac_link"
30659 case "(($ac_try" in
30660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30661 *) ac_try_echo=$ac_try;;
30662 esac
30663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30664 $as_echo "$ac_try_echo") >&5
30665 (eval "$ac_link") 2>&5
30666 ac_status=$?
30667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30669 { (case "(($ac_try" in
30670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30671 *) ac_try_echo=$ac_try;;
30672 esac
30673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30674 $as_echo "$ac_try_echo") >&5
30675 (eval "$ac_try") 2>&5
30676 ac_status=$?
30677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30678 (exit $ac_status); }; }; then
30679 bash_cv_unusable_rtsigs=yes
30680 else
30681 $as_echo "$as_me: program exited with status $ac_status" >&5
30682 $as_echo "$as_me: failed program was:" >&5
30683 sed 's/^/| /' conftest.$ac_ext >&5
30684
30685 ( exit $ac_status )
30686 bash_cv_unusable_rtsigs=no
30687 fi
30688 rm -rf conftest.dSYM
30689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30690 fi
30691
30692
30693 fi
30694
30695 { $as_echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
30696 $as_echo "$bash_cv_unusable_rtsigs" >&6; }
30697 if test $bash_cv_unusable_rtsigs = yes; then
30698 cat >>confdefs.h <<\_ACEOF
30699 #define UNUSABLE_RT_SIGNALS 1
30700 _ACEOF
30701
30702 fi
30703
30704
30705
30706
30707
30708 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
30709 SIGLIST_O=siglist.o
30710 else
30711 SIGLIST_O=
30712 fi
30713
30714
30715
30716 case "$host_os" in
30717 hpux*) { $as_echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
30718 $as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; }
30719 if test "${bash_cv_kernel_rlimit+set}" = set; then
30720 $as_echo_n "(cached) " >&6
30721 else
30722 cat >conftest.$ac_ext <<_ACEOF
30723 /* confdefs.h. */
30724 _ACEOF
30725 cat confdefs.h >>conftest.$ac_ext
30726 cat >>conftest.$ac_ext <<_ACEOF
30727 /* end confdefs.h. */
30728
30729 #include <sys/types.h>
30730 #include <sys/resource.h>
30731
30732 int
30733 main ()
30734 {
30735
30736 int f;
30737 f = RLIMIT_DATA;
30738
30739 ;
30740 return 0;
30741 }
30742 _ACEOF
30743 rm -f conftest.$ac_objext
30744 if { (ac_try="$ac_compile"
30745 case "(($ac_try" in
30746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30747 *) ac_try_echo=$ac_try;;
30748 esac
30749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30750 $as_echo "$ac_try_echo") >&5
30751 (eval "$ac_compile") 2>conftest.er1
30752 ac_status=$?
30753 grep -v '^ *+' conftest.er1 >conftest.err
30754 rm -f conftest.er1
30755 cat conftest.err >&5
30756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757 (exit $ac_status); } && {
30758 test -z "$ac_c_werror_flag" ||
30759 test ! -s conftest.err
30760 } && test -s conftest.$ac_objext; then
30761 bash_cv_kernel_rlimit=no
30762 else
30763 $as_echo "$as_me: failed program was:" >&5
30764 sed 's/^/| /' conftest.$ac_ext >&5
30765
30766 cat >conftest.$ac_ext <<_ACEOF
30767 /* confdefs.h. */
30768 _ACEOF
30769 cat confdefs.h >>conftest.$ac_ext
30770 cat >>conftest.$ac_ext <<_ACEOF
30771 /* end confdefs.h. */
30772
30773 #include <sys/types.h>
30774 #define _KERNEL
30775 #include <sys/resource.h>
30776 #undef _KERNEL
30777
30778 int
30779 main ()
30780 {
30781
30782 int f;
30783 f = RLIMIT_DATA;
30784
30785 ;
30786 return 0;
30787 }
30788 _ACEOF
30789 rm -f conftest.$ac_objext
30790 if { (ac_try="$ac_compile"
30791 case "(($ac_try" in
30792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30793 *) ac_try_echo=$ac_try;;
30794 esac
30795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30796 $as_echo "$ac_try_echo") >&5
30797 (eval "$ac_compile") 2>conftest.er1
30798 ac_status=$?
30799 grep -v '^ *+' conftest.er1 >conftest.err
30800 rm -f conftest.er1
30801 cat conftest.err >&5
30802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30803 (exit $ac_status); } && {
30804 test -z "$ac_c_werror_flag" ||
30805 test ! -s conftest.err
30806 } && test -s conftest.$ac_objext; then
30807 bash_cv_kernel_rlimit=yes
30808 else
30809 $as_echo "$as_me: failed program was:" >&5
30810 sed 's/^/| /' conftest.$ac_ext >&5
30811
30812 bash_cv_kernel_rlimit=no
30813 fi
30814
30815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30816
30817 fi
30818
30819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30820 fi
30821
30822 { $as_echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
30823 $as_echo "$bash_cv_kernel_rlimit" >&6; }
30824 if test $bash_cv_kernel_rlimit = yes; then
30825 cat >>confdefs.h <<\_ACEOF
30826 #define RLIMIT_NEEDS_KERNEL 1
30827 _ACEOF
30828
30829 fi
30830 ;;
30831 esac
30832
30833 if test "$opt_readline" = yes; then
30834 case "$host_os" in
30835 aix*) prefer_curses=yes ;;
30836 esac
30837
30838 if test "X$bash_cv_termcap_lib" = "X"; then
30839 _bash_needmsg=yes
30840 else
30841 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
30842 $as_echo_n "checking which library has the termcap functions... " >&6; }
30843 _bash_needmsg=
30844 fi
30845 if test "${bash_cv_termcap_lib+set}" = set; then
30846 $as_echo_n "(cached) " >&6
30847 else
30848 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5
30849 $as_echo_n "checking for tgetent... " >&6; }
30850 if test "${ac_cv_func_tgetent+set}" = set; then
30851 $as_echo_n "(cached) " >&6
30852 else
30853 cat >conftest.$ac_ext <<_ACEOF
30854 /* confdefs.h. */
30855 _ACEOF
30856 cat confdefs.h >>conftest.$ac_ext
30857 cat >>conftest.$ac_ext <<_ACEOF
30858 /* end confdefs.h. */
30859 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
30860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30861 #define tgetent innocuous_tgetent
30862
30863 /* System header to define __stub macros and hopefully few prototypes,
30864 which can conflict with char tgetent (); below.
30865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30866 <limits.h> exists even on freestanding compilers. */
30867
30868 #ifdef __STDC__
30869 # include <limits.h>
30870 #else
30871 # include <assert.h>
30872 #endif
30873
30874 #undef tgetent
30875
30876 /* Override any GCC internal prototype to avoid an error.
30877 Use char because int might match the return type of a GCC
30878 builtin and then its argument prototype would still apply. */
30879 #ifdef __cplusplus
30880 extern "C"
30881 #endif
30882 char tgetent ();
30883 /* The GNU C library defines this for functions which it implements
30884 to always fail with ENOSYS. Some functions are actually named
30885 something starting with __ and the normal name is an alias. */
30886 #if defined __stub_tgetent || defined __stub___tgetent
30887 choke me
30888 #endif
30889
30890 int
30891 main ()
30892 {
30893 return tgetent ();
30894 ;
30895 return 0;
30896 }
30897 _ACEOF
30898 rm -f conftest.$ac_objext conftest$ac_exeext
30899 if { (ac_try="$ac_link"
30900 case "(($ac_try" in
30901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30902 *) ac_try_echo=$ac_try;;
30903 esac
30904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30905 $as_echo "$ac_try_echo") >&5
30906 (eval "$ac_link") 2>conftest.er1
30907 ac_status=$?
30908 grep -v '^ *+' conftest.er1 >conftest.err
30909 rm -f conftest.er1
30910 cat conftest.err >&5
30911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30912 (exit $ac_status); } && {
30913 test -z "$ac_c_werror_flag" ||
30914 test ! -s conftest.err
30915 } && test -s conftest$ac_exeext && {
30916 test "$cross_compiling" = yes ||
30917 $as_test_x conftest$ac_exeext
30918 }; then
30919 ac_cv_func_tgetent=yes
30920 else
30921 $as_echo "$as_me: failed program was:" >&5
30922 sed 's/^/| /' conftest.$ac_ext >&5
30923
30924 ac_cv_func_tgetent=no
30925 fi
30926
30927 rm -rf conftest.dSYM
30928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30929 conftest$ac_exeext conftest.$ac_ext
30930 fi
30931 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
30932 $as_echo "$ac_cv_func_tgetent" >&6; }
30933 if test "x$ac_cv_func_tgetent" = x""yes; then
30934 bash_cv_termcap_lib=libc
30935 else
30936 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
30937 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
30938 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
30939 $as_echo_n "(cached) " >&6
30940 else
30941 ac_check_lib_save_LIBS=$LIBS
30942 LIBS="-ltermcap $LIBS"
30943 cat >conftest.$ac_ext <<_ACEOF
30944 /* confdefs.h. */
30945 _ACEOF
30946 cat confdefs.h >>conftest.$ac_ext
30947 cat >>conftest.$ac_ext <<_ACEOF
30948 /* end confdefs.h. */
30949
30950 /* Override any GCC internal prototype to avoid an error.
30951 Use char because int might match the return type of a GCC
30952 builtin and then its argument prototype would still apply. */
30953 #ifdef __cplusplus
30954 extern "C"
30955 #endif
30956 char tgetent ();
30957 int
30958 main ()
30959 {
30960 return tgetent ();
30961 ;
30962 return 0;
30963 }
30964 _ACEOF
30965 rm -f conftest.$ac_objext conftest$ac_exeext
30966 if { (ac_try="$ac_link"
30967 case "(($ac_try" in
30968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30969 *) ac_try_echo=$ac_try;;
30970 esac
30971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30972 $as_echo "$ac_try_echo") >&5
30973 (eval "$ac_link") 2>conftest.er1
30974 ac_status=$?
30975 grep -v '^ *+' conftest.er1 >conftest.err
30976 rm -f conftest.er1
30977 cat conftest.err >&5
30978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30979 (exit $ac_status); } && {
30980 test -z "$ac_c_werror_flag" ||
30981 test ! -s conftest.err
30982 } && test -s conftest$ac_exeext && {
30983 test "$cross_compiling" = yes ||
30984 $as_test_x conftest$ac_exeext
30985 }; then
30986 ac_cv_lib_termcap_tgetent=yes
30987 else
30988 $as_echo "$as_me: failed program was:" >&5
30989 sed 's/^/| /' conftest.$ac_ext >&5
30990
30991 ac_cv_lib_termcap_tgetent=no
30992 fi
30993
30994 rm -rf conftest.dSYM
30995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30996 conftest$ac_exeext conftest.$ac_ext
30997 LIBS=$ac_check_lib_save_LIBS
30998 fi
30999 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
31000 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
31001 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
31002 bash_cv_termcap_lib=libtermcap
31003 else
31004 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
31005 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
31006 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
31007 $as_echo_n "(cached) " >&6
31008 else
31009 ac_check_lib_save_LIBS=$LIBS
31010 LIBS="-ltinfo $LIBS"
31011 cat >conftest.$ac_ext <<_ACEOF
31012 /* confdefs.h. */
31013 _ACEOF
31014 cat confdefs.h >>conftest.$ac_ext
31015 cat >>conftest.$ac_ext <<_ACEOF
31016 /* end confdefs.h. */
31017
31018 /* Override any GCC internal prototype to avoid an error.
31019 Use char because int might match the return type of a GCC
31020 builtin and then its argument prototype would still apply. */
31021 #ifdef __cplusplus
31022 extern "C"
31023 #endif
31024 char tgetent ();
31025 int
31026 main ()
31027 {
31028 return tgetent ();
31029 ;
31030 return 0;
31031 }
31032 _ACEOF
31033 rm -f conftest.$ac_objext conftest$ac_exeext
31034 if { (ac_try="$ac_link"
31035 case "(($ac_try" in
31036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31037 *) ac_try_echo=$ac_try;;
31038 esac
31039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31040 $as_echo "$ac_try_echo") >&5
31041 (eval "$ac_link") 2>conftest.er1
31042 ac_status=$?
31043 grep -v '^ *+' conftest.er1 >conftest.err
31044 rm -f conftest.er1
31045 cat conftest.err >&5
31046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31047 (exit $ac_status); } && {
31048 test -z "$ac_c_werror_flag" ||
31049 test ! -s conftest.err
31050 } && test -s conftest$ac_exeext && {
31051 test "$cross_compiling" = yes ||
31052 $as_test_x conftest$ac_exeext
31053 }; then
31054 ac_cv_lib_tinfo_tgetent=yes
31055 else
31056 $as_echo "$as_me: failed program was:" >&5
31057 sed 's/^/| /' conftest.$ac_ext >&5
31058
31059 ac_cv_lib_tinfo_tgetent=no
31060 fi
31061
31062 rm -rf conftest.dSYM
31063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31064 conftest$ac_exeext conftest.$ac_ext
31065 LIBS=$ac_check_lib_save_LIBS
31066 fi
31067 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
31068 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
31069 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
31070 bash_cv_termcap_lib=libtinfo
31071 else
31072 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
31073 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
31074 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
31075 $as_echo_n "(cached) " >&6
31076 else
31077 ac_check_lib_save_LIBS=$LIBS
31078 LIBS="-lcurses $LIBS"
31079 cat >conftest.$ac_ext <<_ACEOF
31080 /* confdefs.h. */
31081 _ACEOF
31082 cat confdefs.h >>conftest.$ac_ext
31083 cat >>conftest.$ac_ext <<_ACEOF
31084 /* end confdefs.h. */
31085
31086 /* Override any GCC internal prototype to avoid an error.
31087 Use char because int might match the return type of a GCC
31088 builtin and then its argument prototype would still apply. */
31089 #ifdef __cplusplus
31090 extern "C"
31091 #endif
31092 char tgetent ();
31093 int
31094 main ()
31095 {
31096 return tgetent ();
31097 ;
31098 return 0;
31099 }
31100 _ACEOF
31101 rm -f conftest.$ac_objext conftest$ac_exeext
31102 if { (ac_try="$ac_link"
31103 case "(($ac_try" in
31104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31105 *) ac_try_echo=$ac_try;;
31106 esac
31107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31108 $as_echo "$ac_try_echo") >&5
31109 (eval "$ac_link") 2>conftest.er1
31110 ac_status=$?
31111 grep -v '^ *+' conftest.er1 >conftest.err
31112 rm -f conftest.er1
31113 cat conftest.err >&5
31114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115 (exit $ac_status); } && {
31116 test -z "$ac_c_werror_flag" ||
31117 test ! -s conftest.err
31118 } && test -s conftest$ac_exeext && {
31119 test "$cross_compiling" = yes ||
31120 $as_test_x conftest$ac_exeext
31121 }; then
31122 ac_cv_lib_curses_tgetent=yes
31123 else
31124 $as_echo "$as_me: failed program was:" >&5
31125 sed 's/^/| /' conftest.$ac_ext >&5
31126
31127 ac_cv_lib_curses_tgetent=no
31128 fi
31129
31130 rm -rf conftest.dSYM
31131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31132 conftest$ac_exeext conftest.$ac_ext
31133 LIBS=$ac_check_lib_save_LIBS
31134 fi
31135 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
31136 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
31137 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
31138 bash_cv_termcap_lib=libcurses
31139 else
31140 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
31141 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
31142 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
31143 $as_echo_n "(cached) " >&6
31144 else
31145 ac_check_lib_save_LIBS=$LIBS
31146 LIBS="-lncurses $LIBS"
31147 cat >conftest.$ac_ext <<_ACEOF
31148 /* confdefs.h. */
31149 _ACEOF
31150 cat confdefs.h >>conftest.$ac_ext
31151 cat >>conftest.$ac_ext <<_ACEOF
31152 /* end confdefs.h. */
31153
31154 /* Override any GCC internal prototype to avoid an error.
31155 Use char because int might match the return type of a GCC
31156 builtin and then its argument prototype would still apply. */
31157 #ifdef __cplusplus
31158 extern "C"
31159 #endif
31160 char tgetent ();
31161 int
31162 main ()
31163 {
31164 return tgetent ();
31165 ;
31166 return 0;
31167 }
31168 _ACEOF
31169 rm -f conftest.$ac_objext conftest$ac_exeext
31170 if { (ac_try="$ac_link"
31171 case "(($ac_try" in
31172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31173 *) ac_try_echo=$ac_try;;
31174 esac
31175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31176 $as_echo "$ac_try_echo") >&5
31177 (eval "$ac_link") 2>conftest.er1
31178 ac_status=$?
31179 grep -v '^ *+' conftest.er1 >conftest.err
31180 rm -f conftest.er1
31181 cat conftest.err >&5
31182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183 (exit $ac_status); } && {
31184 test -z "$ac_c_werror_flag" ||
31185 test ! -s conftest.err
31186 } && test -s conftest$ac_exeext && {
31187 test "$cross_compiling" = yes ||
31188 $as_test_x conftest$ac_exeext
31189 }; then
31190 ac_cv_lib_ncurses_tgetent=yes
31191 else
31192 $as_echo "$as_me: failed program was:" >&5
31193 sed 's/^/| /' conftest.$ac_ext >&5
31194
31195 ac_cv_lib_ncurses_tgetent=no
31196 fi
31197
31198 rm -rf conftest.dSYM
31199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31200 conftest$ac_exeext conftest.$ac_ext
31201 LIBS=$ac_check_lib_save_LIBS
31202 fi
31203 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
31204 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
31205 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
31206 bash_cv_termcap_lib=libncurses
31207 else
31208 bash_cv_termcap_lib=gnutermcap
31209 fi
31210
31211 fi
31212
31213 fi
31214
31215 fi
31216
31217 fi
31218
31219 fi
31220
31221 if test "X$_bash_needmsg" = "Xyes"; then
31222 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
31223 $as_echo_n "checking which library has the termcap functions... " >&6; }
31224 fi
31225 { $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
31226 $as_echo "using $bash_cv_termcap_lib" >&6; }
31227 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
31228 LDFLAGS="$LDFLAGS -L./lib/termcap"
31229 TERMCAP_LIB="./lib/termcap/libtermcap.a"
31230 TERMCAP_DEP="./lib/termcap/libtermcap.a"
31231 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
31232 TERMCAP_LIB=-ltermcap
31233 TERMCAP_DEP=
31234 elif test $bash_cv_termcap_lib = libtinfo; then
31235 TERMCAP_LIB=-ltinfo
31236 TERMCAP_DEP=
31237 elif test $bash_cv_termcap_lib = libncurses; then
31238 TERMCAP_LIB=-lncurses
31239 TERMCAP_DEP=
31240 elif test $bash_cv_termcap_lib = libc; then
31241 TERMCAP_LIB=
31242 TERMCAP_DEP=
31243 else
31244 TERMCAP_LIB=-lcurses
31245 TERMCAP_DEP=
31246 fi
31247
31248 fi
31249
31250
31251
31252 { $as_echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
31253 $as_echo_n "checking whether /dev/fd is available... " >&6; }
31254 if test "${bash_cv_dev_fd+set}" = set; then
31255 $as_echo_n "(cached) " >&6
31256 else
31257 bash_cv_dev_fd=""
31258 if test -d /dev/fd && (exec test -r /dev/fd/0 < /dev/null) ; then
31259 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
31260 if (exec test -r /dev/fd/3 3</dev/null) ; then
31261 bash_cv_dev_fd=standard
31262 else
31263 bash_cv_dev_fd=absent
31264 fi
31265 fi
31266 if test -z "$bash_cv_dev_fd" ; then
31267 if test -d /proc/self/fd && (exec test -r /proc/self/fd/0 < /dev/null) ; then
31268 bash_cv_dev_fd=whacky
31269 else
31270 bash_cv_dev_fd=absent
31271 fi
31272 fi
31273
31274 fi
31275
31276 { $as_echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
31277 $as_echo "$bash_cv_dev_fd" >&6; }
31278 if test $bash_cv_dev_fd = "standard"; then
31279 cat >>confdefs.h <<\_ACEOF
31280 #define HAVE_DEV_FD 1
31281 _ACEOF
31282
31283 cat >>confdefs.h <<\_ACEOF
31284 #define DEV_FD_PREFIX "/dev/fd/"
31285 _ACEOF
31286
31287 elif test $bash_cv_dev_fd = "whacky"; then
31288 cat >>confdefs.h <<\_ACEOF
31289 #define HAVE_DEV_FD 1
31290 _ACEOF
31291
31292 cat >>confdefs.h <<\_ACEOF
31293 #define DEV_FD_PREFIX "/proc/self/fd/"
31294 _ACEOF
31295
31296 fi
31297
31298 { $as_echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
31299 $as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; }
31300 if test "${bash_cv_dev_stdin+set}" = set; then
31301 $as_echo_n "(cached) " >&6
31302 else
31303 if test -d /dev/fd && (exec test -r /dev/stdin < /dev/null) ; then
31304 bash_cv_dev_stdin=present
31305 elif test -d /proc/self/fd && (exec test -r /dev/stdin < /dev/null) ; then
31306 bash_cv_dev_stdin=present
31307 else
31308 bash_cv_dev_stdin=absent
31309 fi
31310
31311 fi
31312
31313 { $as_echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
31314 $as_echo "$bash_cv_dev_stdin" >&6; }
31315 if test $bash_cv_dev_stdin = "present"; then
31316 cat >>confdefs.h <<\_ACEOF
31317 #define HAVE_DEV_STDIN 1
31318 _ACEOF
31319
31320 fi
31321
31322 { $as_echo "$as_me:$LINENO: checking for default mail directory" >&5
31323 $as_echo_n "checking for default mail directory... " >&6; }
31324 if test "${bash_cv_mail_dir+set}" = set; then
31325 $as_echo_n "(cached) " >&6
31326 else
31327 if test -d /var/mail; then
31328 bash_cv_mail_dir=/var/mail
31329 elif test -d /var/spool/mail; then
31330 bash_cv_mail_dir=/var/spool/mail
31331 elif test -d /usr/mail; then
31332 bash_cv_mail_dir=/usr/mail
31333 elif test -d /usr/spool/mail; then
31334 bash_cv_mail_dir=/usr/spool/mail
31335 else
31336 bash_cv_mail_dir=unknown
31337 fi
31338
31339 fi
31340
31341 { $as_echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
31342 $as_echo "$bash_cv_mail_dir" >&6; }
31343 cat >>confdefs.h <<_ACEOF
31344 #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
31345 _ACEOF
31346
31347
31348
31349 if test "$bash_cv_job_control_missing" = missing; then
31350 opt_job_control=no
31351 fi
31352
31353 if test "$opt_job_control" = yes; then
31354 cat >>confdefs.h <<\_ACEOF
31355 #define JOB_CONTROL 1
31356 _ACEOF
31357
31358 JOBS_O=jobs.o
31359 else
31360 JOBS_O=nojobs.o
31361 fi
31362
31363
31364
31365
31366 LOCAL_DEFS=-DSHELL
31367
31368
31369 case "${host_os}" in
31370 sysv4.2*) cat >>confdefs.h <<\_ACEOF
31371 #define SVR4_2 1
31372 _ACEOF
31373
31374 cat >>confdefs.h <<\_ACEOF
31375 #define SVR4 1
31376 _ACEOF
31377 ;;
31378 sysv4*) cat >>confdefs.h <<\_ACEOF
31379 #define SVR4 1
31380 _ACEOF
31381 ;;
31382 sysv5*) cat >>confdefs.h <<\_ACEOF
31383 #define SVR5 1
31384 _ACEOF
31385 ;;
31386 hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
31387 hpux*) LOCAL_CFLAGS=-DHPUX ;;
31388 dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
31389 isc*) LOCAL_CFLAGS=-Disc386 ;;
31390 rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
31391 darwin*) LOCAL_CFLAGS=-DMACOSX ;;
31392 sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
31393 sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
31394 sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
31395 sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
31396 solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;;
31397 solaris2.8*) LOCAL_CFLAGS=-DSOLARIS ;;
31398 solaris2.9*) LOCAL_CFLAGS=-DSOLARIS ;;
31399 solaris2.10*) LOCAL_CFLAGS=-DSOLARIS ;;
31400 solaris2*) LOCAL_CFLAGS=-DSOLARIS ;;
31401 lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
31402 linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
31403 case "`uname -r`" in
31404 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF
31405 #define PGRP_PIPE 1
31406 _ACEOF
31407 ;;
31408 esac ;;
31409 *qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;;
31410 *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
31411 powerux*) LOCAL_LIBS="-lgen" ;;
31412 cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
31413 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE" ;;
31414 esac
31415
31416 case "${host_os}-${CC}" in
31417 aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
31418 aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
31419 bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
31420 esac
31421
31422 case "${host_os}" in
31423 freebsd[3-9]*)
31424 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
31425 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
31426 fi ;;
31427 freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
31428 dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
31429 esac
31430
31431 case "$host_cpu" in
31432 *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
31433 esac
31434
31435 case "$host_cpu-$host_os" in
31436 ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
31437 esac
31438
31439 case "$host_cpu-$host_vendor-$host_os" in
31440 m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
31441 mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
31442 esac
31443
31444 #
31445 # Shared object configuration section. These values are generated by
31446 # ${srcdir}/support/shobj-conf
31447 #
31448 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
31449 then
31450 { $as_echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
31451 $as_echo_n "checking shared object configuration for loadable builtins... " >&6; }
31452 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
31453
31454
31455
31456
31457
31458
31459
31460 { $as_echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
31461 $as_echo "$SHOBJ_STATUS" >&6; }
31462 fi
31463
31464 # try to create a directory tree if the source is elsewhere
31465 # this should be packaged into a script accessible via ${srcdir}/support
31466 case "$srcdir" in
31467 .) ;;
31468 *) for d in doc tests support lib examples; do # dirs
31469 test -d $d || mkdir $d
31470 done
31471 for ld in readline glob tilde malloc sh termcap; do # libdirs
31472 test -d lib/$ld || mkdir lib/$ld
31473 done
31474 test -d examples/loadables || mkdir examples/loadables # loadable builtins
31475 test -d examples/loadables/perl || mkdir examples/loadables/perl
31476 ;;
31477 esac
31478
31479 BUILD_DIR=`pwd`
31480 case "$BUILD_DIR" in
31481 *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
31482 *) ;;
31483 esac
31484
31485 if test -z "$localedir"; then
31486 localedir='${datarootdir}/locale'
31487 fi
31488 if test -z "$datarootdir"; then
31489 datarootdir='${prefix}/share'
31490 fi
31491
31492
31493
31494
31495
31496
31497 # Some versions of autoconf don't substitute these automatically
31498
31499
31500
31501
31502
31503
31504
31505
31506
31507
31508
31509
31510
31511
31512
31513
31514
31515
31516
31517
31518
31519 #AC_SUBST(ALLOCA_SOURCE)
31520 #AC_SUBST(ALLOCA_OBJECT)
31521
31522 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"
31523
31524 ac_config_commands="$ac_config_commands default"
31525
31526 cat >confcache <<\_ACEOF
31527 # This file is a shell script that caches the results of configure
31528 # tests run on this system so they can be shared between configure
31529 # scripts and configure runs, see configure's option --config-cache.
31530 # It is not useful on other systems. If it contains results you don't
31531 # want to keep, you may remove or edit it.
31532 #
31533 # config.status only pays attention to the cache file if you give it
31534 # the --recheck option to rerun configure.
31535 #
31536 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31537 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31538 # following values.
31539
31540 _ACEOF
31541
31542 # The following way of writing the cache mishandles newlines in values,
31543 # but we know of no workaround that is simple, portable, and efficient.
31544 # So, we kill variables containing newlines.
31545 # Ultrix sh set writes to stderr and can't be redirected directly,
31546 # and sets the high bit in the cache file unless we assign to the vars.
31547 (
31548 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31549 eval ac_val=\$$ac_var
31550 case $ac_val in #(
31551 *${as_nl}*)
31552 case $ac_var in #(
31553 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
31554 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31555 esac
31556 case $ac_var in #(
31557 _ | IFS | as_nl) ;; #(
31558 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31559 *) $as_unset $ac_var ;;
31560 esac ;;
31561 esac
31562 done
31563
31564 (set) 2>&1 |
31565 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31566 *${as_nl}ac_space=\ *)
31567 # `set' does not quote correctly, so add quotes (double-quote
31568 # substitution turns \\\\ into \\, and sed turns \\ into \).
31569 sed -n \
31570 "s/'/'\\\\''/g;
31571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31572 ;; #(
31573 *)
31574 # `set' quotes correctly as required by POSIX, so do not add quotes.
31575 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31576 ;;
31577 esac |
31578 sort
31579 ) |
31580 sed '
31581 /^ac_cv_env_/b end
31582 t clear
31583 :clear
31584 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31585 t end
31586 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31587 :end' >>confcache
31588 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31589 if test -w "$cache_file"; then
31590 test "x$cache_file" != "x/dev/null" &&
31591 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
31592 $as_echo "$as_me: updating cache $cache_file" >&6;}
31593 cat confcache >$cache_file
31594 else
31595 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
31596 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31597 fi
31598 fi
31599 rm -f confcache
31600
31601 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31602 # Let make expand exec_prefix.
31603 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31604
31605 DEFS=-DHAVE_CONFIG_H
31606
31607 ac_libobjs=
31608 ac_ltlibobjs=
31609 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31610 # 1. Remove the extension, and $U if already installed.
31611 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31612 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31613 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31614 # will be set to the directory where LIBOBJS objects are built.
31615 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31616 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
31617 done
31618 LIBOBJS=$ac_libobjs
31619
31620 LTLIBOBJS=$ac_ltlibobjs
31621
31622
31623
31624
31625 : ${CONFIG_STATUS=./config.status}
31626 ac_write_fail=0
31627 ac_clean_files_save=$ac_clean_files
31628 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31629 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31630 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31631 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31632 #! $SHELL
31633 # Generated by $as_me.
31634 # Run this file to recreate the current configuration.
31635 # Compiler output produced by configure, useful for debugging
31636 # configure, is in config.log if it exists.
31637
31638 debug=false
31639 ac_cs_recheck=false
31640 ac_cs_silent=false
31641 SHELL=\${CONFIG_SHELL-$SHELL}
31642 _ACEOF
31643
31644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31645 ## --------------------- ##
31646 ## M4sh Initialization. ##
31647 ## --------------------- ##
31648
31649 # Be more Bourne compatible
31650 DUALCASE=1; export DUALCASE # for MKS sh
31651 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31652 emulate sh
31653 NULLCMD=:
31654 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31655 # is contrary to our usage. Disable this feature.
31656 alias -g '${1+"$@"}'='"$@"'
31657 setopt NO_GLOB_SUBST
31658 else
31659 case `(set -o) 2>/dev/null` in
31660 *posix*) set -o posix ;;
31661 esac
31662
31663 fi
31664
31665
31666
31667
31668 # PATH needs CR
31669 # Avoid depending upon Character Ranges.
31670 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31671 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31672 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31673 as_cr_digits='0123456789'
31674 as_cr_alnum=$as_cr_Letters$as_cr_digits
31675
31676 as_nl='
31677 '
31678 export as_nl
31679 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31680 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31681 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31682 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31683 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31684 as_echo='printf %s\n'
31685 as_echo_n='printf %s'
31686 else
31687 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31688 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31689 as_echo_n='/usr/ucb/echo -n'
31690 else
31691 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31692 as_echo_n_body='eval
31693 arg=$1;
31694 case $arg in
31695 *"$as_nl"*)
31696 expr "X$arg" : "X\\(.*\\)$as_nl";
31697 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31698 esac;
31699 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31700 '
31701 export as_echo_n_body
31702 as_echo_n='sh -c $as_echo_n_body as_echo'
31703 fi
31704 export as_echo_body
31705 as_echo='sh -c $as_echo_body as_echo'
31706 fi
31707
31708 # The user is always right.
31709 if test "${PATH_SEPARATOR+set}" != set; then
31710 PATH_SEPARATOR=:
31711 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31712 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31713 PATH_SEPARATOR=';'
31714 }
31715 fi
31716
31717 # Support unset when possible.
31718 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31719 as_unset=unset
31720 else
31721 as_unset=false
31722 fi
31723
31724
31725 # IFS
31726 # We need space, tab and new line, in precisely that order. Quoting is
31727 # there to prevent editors from complaining about space-tab.
31728 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31729 # splitting by setting IFS to empty value.)
31730 IFS=" "" $as_nl"
31731
31732 # Find who we are. Look in the path if we contain no directory separator.
31733 case $0 in
31734 *[\\/]* ) as_myself=$0 ;;
31735 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31736 for as_dir in $PATH
31737 do
31738 IFS=$as_save_IFS
31739 test -z "$as_dir" && as_dir=.
31740 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31741 done
31742 IFS=$as_save_IFS
31743
31744 ;;
31745 esac
31746 # We did not find ourselves, most probably we were run as `sh COMMAND'
31747 # in which case we are not to be found in the path.
31748 if test "x$as_myself" = x; then
31749 as_myself=$0
31750 fi
31751 if test ! -f "$as_myself"; then
31752 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31753 { (exit 1); exit 1; }
31754 fi
31755
31756 # Work around bugs in pre-3.0 UWIN ksh.
31757 for as_var in ENV MAIL MAILPATH
31758 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
31759 done
31760 PS1='$ '
31761 PS2='> '
31762 PS4='+ '
31763
31764 # NLS nuisances.
31765 LC_ALL=C
31766 export LC_ALL
31767 LANGUAGE=C
31768 export LANGUAGE
31769
31770 # Required to use basename.
31771 if expr a : '\(a\)' >/dev/null 2>&1 &&
31772 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31773 as_expr=expr
31774 else
31775 as_expr=false
31776 fi
31777
31778 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31779 as_basename=basename
31780 else
31781 as_basename=false
31782 fi
31783
31784
31785 # Name of the executable.
31786 as_me=`$as_basename -- "$0" ||
31787 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31788 X"$0" : 'X\(//\)$' \| \
31789 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31790 $as_echo X/"$0" |
31791 sed '/^.*\/\([^/][^/]*\)\/*$/{
31792 s//\1/
31793 q
31794 }
31795 /^X\/\(\/\/\)$/{
31796 s//\1/
31797 q
31798 }
31799 /^X\/\(\/\).*/{
31800 s//\1/
31801 q
31802 }
31803 s/.*/./; q'`
31804
31805 # CDPATH.
31806 $as_unset CDPATH
31807
31808
31809
31810 as_lineno_1=$LINENO
31811 as_lineno_2=$LINENO
31812 test "x$as_lineno_1" != "x$as_lineno_2" &&
31813 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
31814
31815 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31816 # uniformly replaced by the line number. The first 'sed' inserts a
31817 # line-number line after each line using $LINENO; the second 'sed'
31818 # does the real work. The second script uses 'N' to pair each
31819 # line-number line with the line containing $LINENO, and appends
31820 # trailing '-' during substitution so that $LINENO is not a special
31821 # case at line end.
31822 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31823 # scripts with optimization help from Paolo Bonzini. Blame Lee
31824 # E. McMahon (1931-1989) for sed's syntax. :-)
31825 sed -n '
31826 p
31827 /[$]LINENO/=
31828 ' <$as_myself |
31829 sed '
31830 s/[$]LINENO.*/&-/
31831 t lineno
31832 b
31833 :lineno
31834 N
31835 :loop
31836 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
31837 t loop
31838 s/-\n.*//
31839 ' >$as_me.lineno &&
31840 chmod +x "$as_me.lineno" ||
31841 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
31842 { (exit 1); exit 1; }; }
31843
31844 # Don't try to exec as it changes $[0], causing all sort of problems
31845 # (the dirname of $[0] is not the place where we might find the
31846 # original and so on. Autoconf is especially sensitive to this).
31847 . "./$as_me.lineno"
31848 # Exit status is that of the last command.
31849 exit
31850 }
31851
31852
31853 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31854 as_dirname=dirname
31855 else
31856 as_dirname=false
31857 fi
31858
31859 ECHO_C= ECHO_N= ECHO_T=
31860 case `echo -n x` in
31861 -n*)
31862 case `echo 'x\c'` in
31863 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31864 *) ECHO_C='\c';;
31865 esac;;
31866 *)
31867 ECHO_N='-n';;
31868 esac
31869 if expr a : '\(a\)' >/dev/null 2>&1 &&
31870 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31871 as_expr=expr
31872 else
31873 as_expr=false
31874 fi
31875
31876 rm -f conf$$ conf$$.exe conf$$.file
31877 if test -d conf$$.dir; then
31878 rm -f conf$$.dir/conf$$.file
31879 else
31880 rm -f conf$$.dir
31881 mkdir conf$$.dir 2>/dev/null
31882 fi
31883 if (echo >conf$$.file) 2>/dev/null; then
31884 if ln -s conf$$.file conf$$ 2>/dev/null; then
31885 as_ln_s='ln -s'
31886 # ... but there are two gotchas:
31887 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31888 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31889 # In both cases, we have to default to `cp -p'.
31890 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31891 as_ln_s='cp -p'
31892 elif ln conf$$.file conf$$ 2>/dev/null; then
31893 as_ln_s=ln
31894 else
31895 as_ln_s='cp -p'
31896 fi
31897 else
31898 as_ln_s='cp -p'
31899 fi
31900 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31901 rmdir conf$$.dir 2>/dev/null
31902
31903 if mkdir -p . 2>/dev/null; then
31904 as_mkdir_p=:
31905 else
31906 test -d ./-p && rmdir ./-p
31907 as_mkdir_p=false
31908 fi
31909
31910 if test -x / >/dev/null 2>&1; then
31911 as_test_x='test -x'
31912 else
31913 if ls -dL / >/dev/null 2>&1; then
31914 as_ls_L_option=L
31915 else
31916 as_ls_L_option=
31917 fi
31918 as_test_x='
31919 eval sh -c '\''
31920 if test -d "$1"; then
31921 test -d "$1/.";
31922 else
31923 case $1 in
31924 -*)set "./$1";;
31925 esac;
31926 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31927 ???[sx]*):;;*)false;;esac;fi
31928 '\'' sh
31929 '
31930 fi
31931 as_executable_p=$as_test_x
31932
31933 # Sed expression to map a string onto a valid CPP name.
31934 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31935
31936 # Sed expression to map a string onto a valid variable name.
31937 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31938
31939
31940 exec 6>&1
31941
31942 # Save the log message, to keep $[0] and so on meaningful, and to
31943 # report actual input values of CONFIG_FILES etc. instead of their
31944 # values after options handling.
31945 ac_log="
31946 This file was extended by bash $as_me 4.2-devel, which was
31947 generated by GNU Autoconf 2.63. Invocation command line was
31948
31949 CONFIG_FILES = $CONFIG_FILES
31950 CONFIG_HEADERS = $CONFIG_HEADERS
31951 CONFIG_LINKS = $CONFIG_LINKS
31952 CONFIG_COMMANDS = $CONFIG_COMMANDS
31953 $ $0 $@
31954
31955 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31956 "
31957
31958 _ACEOF
31959
31960 case $ac_config_files in *"
31961 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31962 esac
31963
31964 case $ac_config_headers in *"
31965 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31966 esac
31967
31968
31969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31970 # Files that config.status was made for.
31971 config_files="$ac_config_files"
31972 config_headers="$ac_config_headers"
31973 config_commands="$ac_config_commands"
31974
31975 _ACEOF
31976
31977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31978 ac_cs_usage="\
31979 \`$as_me' instantiates files from templates according to the
31980 current configuration.
31981
31982 Usage: $0 [OPTION]... [FILE]...
31983
31984 -h, --help print this help, then exit
31985 -V, --version print version number and configuration settings, then exit
31986 -q, --quiet, --silent
31987 do not print progress messages
31988 -d, --debug don't remove temporary files
31989 --recheck update $as_me by reconfiguring in the same conditions
31990 --file=FILE[:TEMPLATE]
31991 instantiate the configuration file FILE
31992 --header=FILE[:TEMPLATE]
31993 instantiate the configuration header FILE
31994
31995 Configuration files:
31996 $config_files
31997
31998 Configuration headers:
31999 $config_headers
32000
32001 Configuration commands:
32002 $config_commands
32003
32004 Report bugs to <bug-autoconf@gnu.org>."
32005
32006 _ACEOF
32007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32008 ac_cs_version="\\
32009 bash config.status 4.2-devel
32010 configured by $0, generated by GNU Autoconf 2.63,
32011 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32012
32013 Copyright (C) 2008 Free Software Foundation, Inc.
32014 This config.status script is free software; the Free Software Foundation
32015 gives unlimited permission to copy, distribute and modify it."
32016
32017 ac_pwd='$ac_pwd'
32018 srcdir='$srcdir'
32019 INSTALL='$INSTALL'
32020 test -n "\$AWK" || AWK=awk
32021 _ACEOF
32022
32023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32024 # The default lists apply if the user does not specify any file.
32025 ac_need_defaults=:
32026 while test $# != 0
32027 do
32028 case $1 in
32029 --*=*)
32030 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32031 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32032 ac_shift=:
32033 ;;
32034 *)
32035 ac_option=$1
32036 ac_optarg=$2
32037 ac_shift=shift
32038 ;;
32039 esac
32040
32041 case $ac_option in
32042 # Handling of the options.
32043 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32044 ac_cs_recheck=: ;;
32045 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32046 $as_echo "$ac_cs_version"; exit ;;
32047 --debug | --debu | --deb | --de | --d | -d )
32048 debug=: ;;
32049 --file | --fil | --fi | --f )
32050 $ac_shift
32051 case $ac_optarg in
32052 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32053 esac
32054 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
32055 ac_need_defaults=false;;
32056 --header | --heade | --head | --hea )
32057 $ac_shift
32058 case $ac_optarg in
32059 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32060 esac
32061 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
32062 ac_need_defaults=false;;
32063 --he | --h)
32064 # Conflict between --help and --header
32065 { $as_echo "$as_me: error: ambiguous option: $1
32066 Try \`$0 --help' for more information." >&2
32067 { (exit 1); exit 1; }; };;
32068 --help | --hel | -h )
32069 $as_echo "$ac_cs_usage"; exit ;;
32070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32071 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32072 ac_cs_silent=: ;;
32073
32074 # This is an error.
32075 -*) { $as_echo "$as_me: error: unrecognized option: $1
32076 Try \`$0 --help' for more information." >&2
32077 { (exit 1); exit 1; }; } ;;
32078
32079 *) ac_config_targets="$ac_config_targets $1"
32080 ac_need_defaults=false ;;
32081
32082 esac
32083 shift
32084 done
32085
32086 ac_configure_extra_args=
32087
32088 if $ac_cs_silent; then
32089 exec 6>/dev/null
32090 ac_configure_extra_args="$ac_configure_extra_args --silent"
32091 fi
32092
32093 _ACEOF
32094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32095 if \$ac_cs_recheck; then
32096 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32097 shift
32098 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32099 CONFIG_SHELL='$SHELL'
32100 export CONFIG_SHELL
32101 exec "\$@"
32102 fi
32103
32104 _ACEOF
32105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32106 exec 5>>config.log
32107 {
32108 echo
32109 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32110 ## Running $as_me. ##
32111 _ASBOX
32112 $as_echo "$ac_log"
32113 } >&5
32114
32115 _ACEOF
32116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32117 #
32118 # INIT-COMMANDS
32119 #
32120 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32121 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
32122 # from automake.
32123 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32124 # Capture the value of LINGUAS because we need it to compute CATALOGS.
32125 LINGUAS="${LINGUAS-%UNSET%}"
32126
32127
32128 _ACEOF
32129
32130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32131
32132 # Handling of arguments.
32133 for ac_config_target in $ac_config_targets
32134 do
32135 case $ac_config_target in
32136 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32137 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32138 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32139 "builtins/Makefile") CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
32140 "lib/readline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
32141 "lib/glob/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
32142 "lib/intl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
32143 "lib/malloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
32144 "lib/sh/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
32145 "lib/termcap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
32146 "lib/tilde/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
32147 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
32148 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
32149 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32150 "examples/loadables/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
32151 "examples/loadables/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
32152 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32153
32154 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32155 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32156 { (exit 1); exit 1; }; };;
32157 esac
32158 done
32159
32160
32161 # If the user did not use the arguments to specify the items to instantiate,
32162 # then the envvar interface is used. Set only those that are not.
32163 # We use the long form for the default assignment because of an extremely
32164 # bizarre bug on SunOS 4.1.3.
32165 if $ac_need_defaults; then
32166 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32167 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32168 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32169 fi
32170
32171 # Have a temporary directory for convenience. Make it in the build tree
32172 # simply because there is no reason against having it here, and in addition,
32173 # creating and moving files from /tmp can sometimes cause problems.
32174 # Hook for its removal unless debugging.
32175 # Note that there is a small window in which the directory will not be cleaned:
32176 # after its creation but before its name has been assigned to `$tmp'.
32177 $debug ||
32178 {
32179 tmp=
32180 trap 'exit_status=$?
32181 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32182 ' 0
32183 trap '{ (exit 1); exit 1; }' 1 2 13 15
32184 }
32185 # Create a (secure) tmp directory for tmp files.
32186
32187 {
32188 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32189 test -n "$tmp" && test -d "$tmp"
32190 } ||
32191 {
32192 tmp=./conf$$-$RANDOM
32193 (umask 077 && mkdir "$tmp")
32194 } ||
32195 {
32196 $as_echo "$as_me: cannot create a temporary directory in ." >&2
32197 { (exit 1); exit 1; }
32198 }
32199
32200 # Set up the scripts for CONFIG_FILES section.
32201 # No need to generate them if there are no CONFIG_FILES.
32202 # This happens for instance with `./config.status config.h'.
32203 if test -n "$CONFIG_FILES"; then
32204
32205
32206 ac_cr=' '
32207 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32208 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32209 ac_cs_awk_cr='\\r'
32210 else
32211 ac_cs_awk_cr=$ac_cr
32212 fi
32213
32214 echo 'BEGIN {' >"$tmp/subs1.awk" &&
32215 _ACEOF
32216
32217
32218 {
32219 echo "cat >conf$$subs.awk <<_ACEOF" &&
32220 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32221 echo "_ACEOF"
32222 } >conf$$subs.sh ||
32223 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32224 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32225 { (exit 1); exit 1; }; }
32226 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
32227 ac_delim='%!_!# '
32228 for ac_last_try in false false false false false :; do
32229 . ./conf$$subs.sh ||
32230 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32231 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32232 { (exit 1); exit 1; }; }
32233
32234 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32235 if test $ac_delim_n = $ac_delim_num; then
32236 break
32237 elif $ac_last_try; then
32238 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32239 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32240 { (exit 1); exit 1; }; }
32241 else
32242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32243 fi
32244 done
32245 rm -f conf$$subs.sh
32246
32247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32248 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
32249 _ACEOF
32250 sed -n '
32251 h
32252 s/^/S["/; s/!.*/"]=/
32253 p
32254 g
32255 s/^[^!]*!//
32256 :repl
32257 t repl
32258 s/'"$ac_delim"'$//
32259 t delim
32260 :nl
32261 h
32262 s/\(.\{148\}\).*/\1/
32263 t more1
32264 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32265 p
32266 n
32267 b repl
32268 :more1
32269 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32270 p
32271 g
32272 s/.\{148\}//
32273 t nl
32274 :delim
32275 h
32276 s/\(.\{148\}\).*/\1/
32277 t more2
32278 s/["\\]/\\&/g; s/^/"/; s/$/"/
32279 p
32280 b
32281 :more2
32282 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32283 p
32284 g
32285 s/.\{148\}//
32286 t delim
32287 ' <conf$$subs.awk | sed '
32288 /^[^""]/{
32289 N
32290 s/\n//
32291 }
32292 ' >>$CONFIG_STATUS || ac_write_fail=1
32293 rm -f conf$$subs.awk
32294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32295 _ACAWK
32296 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
32297 for (key in S) S_is_set[key] = 1
32298 FS = "\a"
32299
32300 }
32301 {
32302 line = $ 0
32303 nfields = split(line, field, "@")
32304 substed = 0
32305 len = length(field[1])
32306 for (i = 2; i < nfields; i++) {
32307 key = field[i]
32308 keylen = length(key)
32309 if (S_is_set[key]) {
32310 value = S[key]
32311 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32312 len += length(value) + length(field[++i])
32313 substed = 1
32314 } else
32315 len += 1 + keylen
32316 }
32317
32318 print line
32319 }
32320
32321 _ACAWK
32322 _ACEOF
32323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32324 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32325 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32326 else
32327 cat
32328 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
32329 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
32330 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
32331 { (exit 1); exit 1; }; }
32332 _ACEOF
32333
32334 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32335 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32336 # trailing colons and then remove the whole line if VPATH becomes empty
32337 # (actually we leave an empty line to preserve line numbers).
32338 if test "x$srcdir" = x.; then
32339 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32340 s/:*\$(srcdir):*/:/
32341 s/:*\${srcdir}:*/:/
32342 s/:*@srcdir@:*/:/
32343 s/^\([^=]*=[ ]*\):*/\1/
32344 s/:*$//
32345 s/^[^=]*=[ ]*$//
32346 }'
32347 fi
32348
32349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32350 fi # test -n "$CONFIG_FILES"
32351
32352 # Set up the scripts for CONFIG_HEADERS section.
32353 # No need to generate them if there are no CONFIG_HEADERS.
32354 # This happens for instance with `./config.status Makefile'.
32355 if test -n "$CONFIG_HEADERS"; then
32356 cat >"$tmp/defines.awk" <<\_ACAWK ||
32357 BEGIN {
32358 _ACEOF
32359
32360 # Transform confdefs.h into an awk script `defines.awk', embedded as
32361 # here-document in config.status, that substitutes the proper values into
32362 # config.h.in to produce config.h.
32363
32364 # Create a delimiter string that does not exist in confdefs.h, to ease
32365 # handling of long lines.
32366 ac_delim='%!_!# '
32367 for ac_last_try in false false :; do
32368 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
32369 if test -z "$ac_t"; then
32370 break
32371 elif $ac_last_try; then
32372 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
32373 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
32374 { (exit 1); exit 1; }; }
32375 else
32376 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32377 fi
32378 done
32379
32380 # For the awk script, D is an array of macro values keyed by name,
32381 # likewise P contains macro parameters if any. Preserve backslash
32382 # newline sequences.
32383
32384 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32385 sed -n '
32386 s/.\{148\}/&'"$ac_delim"'/g
32387 t rset
32388 :rset
32389 s/^[ ]*#[ ]*define[ ][ ]*/ /
32390 t def
32391 d
32392 :def
32393 s/\\$//
32394 t bsnl
32395 s/["\\]/\\&/g
32396 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32397 D["\1"]=" \3"/p
32398 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32399 d
32400 :bsnl
32401 s/["\\]/\\&/g
32402 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32403 D["\1"]=" \3\\\\\\n"\\/p
32404 t cont
32405 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32406 t cont
32407 d
32408 :cont
32409 n
32410 s/.\{148\}/&'"$ac_delim"'/g
32411 t clear
32412 :clear
32413 s/\\$//
32414 t bsnlc
32415 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32416 d
32417 :bsnlc
32418 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32419 b cont
32420 ' <confdefs.h | sed '
32421 s/'"$ac_delim"'/"\\\
32422 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32423
32424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32425 for (key in D) D_is_set[key] = 1
32426 FS = "\a"
32427 }
32428 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32429 line = \$ 0
32430 split(line, arg, " ")
32431 if (arg[1] == "#") {
32432 defundef = arg[2]
32433 mac1 = arg[3]
32434 } else {
32435 defundef = substr(arg[1], 2)
32436 mac1 = arg[2]
32437 }
32438 split(mac1, mac2, "(") #)
32439 macro = mac2[1]
32440 prefix = substr(line, 1, index(line, defundef) - 1)
32441 if (D_is_set[macro]) {
32442 # Preserve the white space surrounding the "#".
32443 print prefix "define", macro P[macro] D[macro]
32444 next
32445 } else {
32446 # Replace #undef with comments. This is necessary, for example,
32447 # in the case of _POSIX_SOURCE, which is predefined and required
32448 # on some systems where configure will not decide to define it.
32449 if (defundef == "undef") {
32450 print "/*", prefix defundef, macro, "*/"
32451 next
32452 }
32453 }
32454 }
32455 { print }
32456 _ACAWK
32457 _ACEOF
32458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32459 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
32460 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
32461 { (exit 1); exit 1; }; }
32462 fi # test -n "$CONFIG_HEADERS"
32463
32464
32465 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32466 shift
32467 for ac_tag
32468 do
32469 case $ac_tag in
32470 :[FHLC]) ac_mode=$ac_tag; continue;;
32471 esac
32472 case $ac_mode$ac_tag in
32473 :[FHL]*:*);;
32474 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
32475 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
32476 { (exit 1); exit 1; }; };;
32477 :[FH]-) ac_tag=-:-;;
32478 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32479 esac
32480 ac_save_IFS=$IFS
32481 IFS=:
32482 set x $ac_tag
32483 IFS=$ac_save_IFS
32484 shift
32485 ac_file=$1
32486 shift
32487
32488 case $ac_mode in
32489 :L) ac_source=$1;;
32490 :[FH])
32491 ac_file_inputs=
32492 for ac_f
32493 do
32494 case $ac_f in
32495 -) ac_f="$tmp/stdin";;
32496 *) # Look for the file first in the build tree, then in the source tree
32497 # (if the path is not absolute). The absolute path cannot be DOS-style,
32498 # because $ac_f cannot contain `:'.
32499 test -f "$ac_f" ||
32500 case $ac_f in
32501 [\\/$]*) false;;
32502 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32503 esac ||
32504 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
32505 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
32506 { (exit 1); exit 1; }; };;
32507 esac
32508 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32509 ac_file_inputs="$ac_file_inputs '$ac_f'"
32510 done
32511
32512 # Let's still pretend it is `configure' which instantiates (i.e., don't
32513 # use $as_me), people would be surprised to read:
32514 # /* config.h. Generated by config.status. */
32515 configure_input='Generated from '`
32516 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32517 `' by configure.'
32518 if test x"$ac_file" != x-; then
32519 configure_input="$ac_file. $configure_input"
32520 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
32521 $as_echo "$as_me: creating $ac_file" >&6;}
32522 fi
32523 # Neutralize special characters interpreted by sed in replacement strings.
32524 case $configure_input in #(
32525 *\&* | *\|* | *\\* )
32526 ac_sed_conf_input=`$as_echo "$configure_input" |
32527 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32528 *) ac_sed_conf_input=$configure_input;;
32529 esac
32530
32531 case $ac_tag in
32532 *:-:* | *:-) cat >"$tmp/stdin" \
32533 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32534 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32535 { (exit 1); exit 1; }; } ;;
32536 esac
32537 ;;
32538 esac
32539
32540 ac_dir=`$as_dirname -- "$ac_file" ||
32541 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32542 X"$ac_file" : 'X\(//\)[^/]' \| \
32543 X"$ac_file" : 'X\(//\)$' \| \
32544 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32545 $as_echo X"$ac_file" |
32546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32547 s//\1/
32548 q
32549 }
32550 /^X\(\/\/\)[^/].*/{
32551 s//\1/
32552 q
32553 }
32554 /^X\(\/\/\)$/{
32555 s//\1/
32556 q
32557 }
32558 /^X\(\/\).*/{
32559 s//\1/
32560 q
32561 }
32562 s/.*/./; q'`
32563 { as_dir="$ac_dir"
32564 case $as_dir in #(
32565 -*) as_dir=./$as_dir;;
32566 esac
32567 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32568 as_dirs=
32569 while :; do
32570 case $as_dir in #(
32571 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32572 *) as_qdir=$as_dir;;
32573 esac
32574 as_dirs="'$as_qdir' $as_dirs"
32575 as_dir=`$as_dirname -- "$as_dir" ||
32576 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32577 X"$as_dir" : 'X\(//\)[^/]' \| \
32578 X"$as_dir" : 'X\(//\)$' \| \
32579 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32580 $as_echo X"$as_dir" |
32581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32582 s//\1/
32583 q
32584 }
32585 /^X\(\/\/\)[^/].*/{
32586 s//\1/
32587 q
32588 }
32589 /^X\(\/\/\)$/{
32590 s//\1/
32591 q
32592 }
32593 /^X\(\/\).*/{
32594 s//\1/
32595 q
32596 }
32597 s/.*/./; q'`
32598 test -d "$as_dir" && break
32599 done
32600 test -z "$as_dirs" || eval "mkdir $as_dirs"
32601 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32602 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
32603 { (exit 1); exit 1; }; }; }
32604 ac_builddir=.
32605
32606 case "$ac_dir" in
32607 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32608 *)
32609 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32610 # A ".." for each directory in $ac_dir_suffix.
32611 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32612 case $ac_top_builddir_sub in
32613 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32614 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32615 esac ;;
32616 esac
32617 ac_abs_top_builddir=$ac_pwd
32618 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32619 # for backward compatibility:
32620 ac_top_builddir=$ac_top_build_prefix
32621
32622 case $srcdir in
32623 .) # We are building in place.
32624 ac_srcdir=.
32625 ac_top_srcdir=$ac_top_builddir_sub
32626 ac_abs_top_srcdir=$ac_pwd ;;
32627 [\\/]* | ?:[\\/]* ) # Absolute name.
32628 ac_srcdir=$srcdir$ac_dir_suffix;
32629 ac_top_srcdir=$srcdir
32630 ac_abs_top_srcdir=$srcdir ;;
32631 *) # Relative name.
32632 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32633 ac_top_srcdir=$ac_top_build_prefix$srcdir
32634 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32635 esac
32636 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32637
32638
32639 case $ac_mode in
32640 :F)
32641 #
32642 # CONFIG_FILE
32643 #
32644
32645 case $INSTALL in
32646 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32647 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32648 esac
32649 _ACEOF
32650
32651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32652 # If the template does not know about datarootdir, expand it.
32653 # FIXME: This hack should be removed a few years after 2.60.
32654 ac_datarootdir_hack=; ac_datarootdir_seen=
32655
32656 ac_sed_dataroot='
32657 /datarootdir/ {
32658 p
32659 q
32660 }
32661 /@datadir@/p
32662 /@docdir@/p
32663 /@infodir@/p
32664 /@localedir@/p
32665 /@mandir@/p
32666 '
32667 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32668 *datarootdir*) ac_datarootdir_seen=yes;;
32669 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32670 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32671 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32672 _ACEOF
32673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32674 ac_datarootdir_hack='
32675 s&@datadir@&$datadir&g
32676 s&@docdir@&$docdir&g
32677 s&@infodir@&$infodir&g
32678 s&@localedir@&$localedir&g
32679 s&@mandir@&$mandir&g
32680 s&\\\${datarootdir}&$datarootdir&g' ;;
32681 esac
32682 _ACEOF
32683
32684 # Neutralize VPATH when `$srcdir' = `.'.
32685 # Shell code in configure.ac might set extrasub.
32686 # FIXME: do we really want to maintain this feature?
32687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32688 ac_sed_extra="$ac_vpsub
32689 $extrasub
32690 _ACEOF
32691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32692 :t
32693 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32694 s|@configure_input@|$ac_sed_conf_input|;t t
32695 s&@top_builddir@&$ac_top_builddir_sub&;t t
32696 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32697 s&@srcdir@&$ac_srcdir&;t t
32698 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32699 s&@top_srcdir@&$ac_top_srcdir&;t t
32700 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32701 s&@builddir@&$ac_builddir&;t t
32702 s&@abs_builddir@&$ac_abs_builddir&;t t
32703 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32704 s&@INSTALL@&$ac_INSTALL&;t t
32705 $ac_datarootdir_hack
32706 "
32707 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
32708 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32709 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32710 { (exit 1); exit 1; }; }
32711
32712 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32713 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32714 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32715 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32716 which seems to be undefined. Please make sure it is defined." >&5
32717 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32718 which seems to be undefined. Please make sure it is defined." >&2;}
32719
32720 rm -f "$tmp/stdin"
32721 case $ac_file in
32722 -) cat "$tmp/out" && rm -f "$tmp/out";;
32723 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32724 esac \
32725 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32726 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32727 { (exit 1); exit 1; }; }
32728 ;;
32729 :H)
32730 #
32731 # CONFIG_HEADER
32732 #
32733 if test x"$ac_file" != x-; then
32734 {
32735 $as_echo "/* $configure_input */" \
32736 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32737 } >"$tmp/config.h" \
32738 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32739 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32740 { (exit 1); exit 1; }; }
32741 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
32742 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32743 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32744 else
32745 rm -f "$ac_file"
32746 mv "$tmp/config.h" "$ac_file" \
32747 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32748 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32749 { (exit 1); exit 1; }; }
32750 fi
32751 else
32752 $as_echo "/* $configure_input */" \
32753 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
32754 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
32755 $as_echo "$as_me: error: could not create -" >&2;}
32756 { (exit 1); exit 1; }; }
32757 fi
32758 ;;
32759
32760 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
32761 $as_echo "$as_me: executing $ac_file commands" >&6;}
32762 ;;
32763 esac
32764
32765
32766 case $ac_file$ac_mode in
32767 "default-1":C)
32768 for ac_file in $CONFIG_FILES; do
32769 # Support "outfile[:infile[:infile...]]"
32770 case "$ac_file" in
32771 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32772 esac
32773 # PO directories have a Makefile.in generated from Makefile.in.in.
32774 case "$ac_file" in */Makefile.in)
32775 # Adjust a relative srcdir.
32776 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32777 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32778 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32779 # In autoconf-2.13 it is called $ac_given_srcdir.
32780 # In autoconf-2.50 it is called $srcdir.
32781 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32782 case "$ac_given_srcdir" in
32783 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32784 /*) top_srcdir="$ac_given_srcdir" ;;
32785 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32786 esac
32787 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32788 rm -f "$ac_dir/POTFILES"
32789 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32790 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32791 POMAKEFILEDEPS="POTFILES.in"
32792 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
32793 # on $ac_dir but don't depend on user-specified configuration
32794 # parameters.
32795 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32796 # The LINGUAS file contains the set of available languages.
32797 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32798 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32799 fi
32800 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32801 # Hide the ALL_LINGUAS assigment from automake.
32802 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32803 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32804 else
32805 # The set of available languages was given in configure.in.
32806 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32807 fi
32808 case "$ac_given_srcdir" in
32809 .) srcdirpre= ;;
32810 *) srcdirpre='$(srcdir)/' ;;
32811 esac
32812 POFILES=
32813 GMOFILES=
32814 UPDATEPOFILES=
32815 DUMMYPOFILES=
32816 for lang in $ALL_LINGUAS; do
32817 POFILES="$POFILES $srcdirpre$lang.po"
32818 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32819 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32820 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32821 done
32822 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32823 # environment variable.
32824 INST_LINGUAS=
32825 if test -n "$ALL_LINGUAS"; then
32826 for presentlang in $ALL_LINGUAS; do
32827 useit=no
32828 if test "%UNSET%" != "$LINGUAS"; then
32829 desiredlanguages="$LINGUAS"
32830 else
32831 desiredlanguages="$ALL_LINGUAS"
32832 fi
32833 for desiredlang in $desiredlanguages; do
32834 # Use the presentlang catalog if desiredlang is
32835 # a. equal to presentlang, or
32836 # b. a variant of presentlang (because in this case,
32837 # presentlang can be used as a fallback for messages
32838 # which are not translated in the desiredlang catalog).
32839 case "$desiredlang" in
32840 "$presentlang"*) useit=yes;;
32841 esac
32842 done
32843 if test $useit = yes; then
32844 INST_LINGUAS="$INST_LINGUAS $presentlang"
32845 fi
32846 done
32847 fi
32848 CATALOGS=
32849 if test -n "$INST_LINGUAS"; then
32850 for lang in $INST_LINGUAS; do
32851 CATALOGS="$CATALOGS $lang.gmo"
32852 done
32853 fi
32854 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32855 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"
32856 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32857 if test -f "$f"; then
32858 case "$f" in
32859 *.orig | *.bak | *~) ;;
32860 *) cat "$f" >> "$ac_dir/Makefile" ;;
32861 esac
32862 fi
32863 done
32864 fi
32865 ;;
32866 esac
32867 done ;;
32868 "default":C)
32869 # Makefile uses this timestamp file to record whether config.h is up to date.
32870 echo timestamp > stamp-h
32871 ;;
32872
32873 esac
32874 done # for ac_tag
32875
32876
32877 { (exit 0); exit 0; }
32878 _ACEOF
32879 chmod +x $CONFIG_STATUS
32880 ac_clean_files=$ac_clean_files_save
32881
32882 test $ac_write_fail = 0 ||
32883 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
32884 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
32885 { (exit 1); exit 1; }; }
32886
32887
32888 # configure is writing to config.log, and then calls config.status.
32889 # config.status does its own redirection, appending to config.log.
32890 # Unfortunately, on DOS this fails, as config.log is still kept open
32891 # by configure, so config.status won't be able to write to it; its
32892 # output is simply discarded. So we exec the FD to /dev/null,
32893 # effectively closing config.log, so it can be properly (re)opened and
32894 # appended to by config.status. When coming back to configure, we
32895 # need to make the FD available again.
32896 if test "$no_create" != yes; then
32897 ac_cs_success=:
32898 ac_config_status_args=
32899 test "$silent" = yes &&
32900 ac_config_status_args="$ac_config_status_args --quiet"
32901 exec 5>/dev/null
32902 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32903 exec 5>>config.log
32904 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32905 # would make configure fail if this is the last instruction.
32906 $ac_cs_success || { (exit 1); exit 1; }
32907 fi
32908 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32909 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32910 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32911 fi
32912