* configure.ac: Use GCC_HEADER_STDINT.
[deliverable/binutils-gdb.git] / gdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59d.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 setopt NO_GLOB_SUBST
21 else
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23 fi
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
40 chmod +x conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42 PATH_SEPARATOR=';'
43 else
44 PATH_SEPARATOR=:
45 fi
46 rm -f conf$$.sh
47 fi
48
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51 as_unset=unset
52 else
53 as_unset=false
54 fi
55
56
57 # IFS
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
62 as_nl='
63 '
64 IFS=" "" $as_nl"
65
66 # Find who we are. Look in the path if we contain no directory separator.
67 case $0 in
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70 for as_dir in $PATH
71 do
72 IFS=$as_save_IFS
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75 done
76 IFS=$as_save_IFS
77
78 ;;
79 esac
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
83 as_myself=$0
84 fi
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87 { (exit 1); exit 1; }
88 fi
89
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93 done
94 PS1='$ '
95 PS2='> '
96 PS4='+ '
97
98 # NLS nuisances.
99 for as_var in \
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102 LC_TELEPHONE LC_TIME
103 do
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
106 else
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108 fi
109 done
110
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
114 as_expr=expr
115 else
116 as_expr=false
117 fi
118
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120 as_basename=basename
121 else
122 as_basename=false
123 fi
124
125
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131 echo X/"$0" |
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
133 s//\1/
134 q
135 }
136 /^X\/\(\/\/\)$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\).*/{
141 s//\1/
142 q
143 }
144 s/.*/./; q'`
145
146 # CDPATH.
147 $as_unset CDPATH
148
149
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
152 as_have_required=yes
153 else
154 as_have_required=no
155 fi
156
157 if test $as_have_required = yes && (eval ":
158 (as_func_return () {
159 (exit \$1)
160 }
161 as_func_success () {
162 as_func_return 0
163 }
164 as_func_failure () {
165 as_func_return 1
166 }
167 as_func_ret_success () {
168 return 0
169 }
170 as_func_ret_failure () {
171 return 1
172 }
173
174 exitcode=0
175 if as_func_success; then
176 :
177 else
178 exitcode=1
179 echo as_func_success failed.
180 fi
181
182 if as_func_failure; then
183 exitcode=1
184 echo as_func_failure succeeded.
185 fi
186
187 if as_func_ret_success; then
188 :
189 else
190 exitcode=1
191 echo as_func_ret_success failed.
192 fi
193
194 if as_func_ret_failure; then
195 exitcode=1
196 echo as_func_ret_failure succeeded.
197 fi
198
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200 :
201 else
202 exitcode=1
203 echo positional parameters were not saved.
204 fi
205
206 test \$exitcode = 0) || { (exit 1); exit 1; }
207
208 (
209 as_lineno_1=\$LINENO
210 as_lineno_2=\$LINENO
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
214 :
215 else
216 as_candidate_shells=
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 case $as_dir in
223 /*)
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226 done;;
227 esac
228 done
229 IFS=$as_save_IFS
230
231
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells which exist, to save several forks.
234 if test -f $as_shell &&
235 { ($as_shell) 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238 emulate sh
239 NULLCMD=:
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
243 setopt NO_GLOB_SUBST
244 else
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246 fi
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
249
250 :
251 _ASEOF
252 }; then
253 CONFIG_SHELL=$as_shell
254 as_have_required=yes
255 if { $as_shell 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258 emulate sh
259 NULLCMD=:
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
263 setopt NO_GLOB_SUBST
264 else
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266 fi
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
269
270 :
271 (as_func_return () {
272 (exit $1)
273 }
274 as_func_success () {
275 as_func_return 0
276 }
277 as_func_failure () {
278 as_func_return 1
279 }
280 as_func_ret_success () {
281 return 0
282 }
283 as_func_ret_failure () {
284 return 1
285 }
286
287 exitcode=0
288 if as_func_success; then
289 :
290 else
291 exitcode=1
292 echo as_func_success failed.
293 fi
294
295 if as_func_failure; then
296 exitcode=1
297 echo as_func_failure succeeded.
298 fi
299
300 if as_func_ret_success; then
301 :
302 else
303 exitcode=1
304 echo as_func_ret_success failed.
305 fi
306
307 if as_func_ret_failure; then
308 exitcode=1
309 echo as_func_ret_failure succeeded.
310 fi
311
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
313 :
314 else
315 exitcode=1
316 echo positional parameters were not saved.
317 fi
318
319 test $exitcode = 0) || { (exit 1); exit 1; }
320
321 (
322 as_lineno_1=$LINENO
323 as_lineno_2=$LINENO
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327 _ASEOF
328 }; then
329 break
330 fi
331
332 fi
333
334 done
335
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339 done
340 export CONFIG_SHELL
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342 fi
343
344
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
351 fi
352
353
354 fi
355
356 fi
357
358
359
360 (eval "as_func_return () {
361 (exit \$1)
362 }
363 as_func_success () {
364 as_func_return 0
365 }
366 as_func_failure () {
367 as_func_return 1
368 }
369 as_func_ret_success () {
370 return 0
371 }
372 as_func_ret_failure () {
373 return 1
374 }
375
376 exitcode=0
377 if as_func_success; then
378 :
379 else
380 exitcode=1
381 echo as_func_success failed.
382 fi
383
384 if as_func_failure; then
385 exitcode=1
386 echo as_func_failure succeeded.
387 fi
388
389 if as_func_ret_success; then
390 :
391 else
392 exitcode=1
393 echo as_func_ret_success failed.
394 fi
395
396 if as_func_ret_failure; then
397 exitcode=1
398 echo as_func_ret_failure succeeded.
399 fi
400
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402 :
403 else
404 exitcode=1
405 echo positional parameters were not saved.
406 fi
407
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
412 echo message
413 }
414
415
416
417 as_lineno_1=$LINENO
418 as_lineno_2=$LINENO
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
428 # case at line end.
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
450
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
454 . "./$as_me.lineno"
455 # Exit status is that of the last command.
456 exit
457 }
458
459
460 if (dirname -- /) >/dev/null 2>&1; then
461 as_dirname=dirname
462 else
463 as_dirname=false
464 fi
465
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in
468 -n*)
469 case `echo 'x\c'` in
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
471 *) ECHO_C='\c';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
479 as_expr=expr
480 else
481 as_expr=false
482 fi
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir
490 fi
491 echo >conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p=:
510 else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513 fi
514
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
518 #! /bin/sh
519 exit 0
520 _ASEOF
521 chmod +x conf$$.file
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
524 else
525 as_executable_p=:
526 fi
527 rm -f conf$$.file
528
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555 SHELL=${CONFIG_SHELL-/bin/sh}
556
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563
564 ac_unique_file="main.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #if HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #if HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #if STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # if HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #if HAVE_STRING_H
583 # if !STDC_HEADERS && HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #if HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #if HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #if HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #if HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='SHELL
602 PATH_SEPARATOR
603 PACKAGE_NAME
604 PACKAGE_TARNAME
605 PACKAGE_VERSION
606 PACKAGE_STRING
607 PACKAGE_BUGREPORT
608 exec_prefix
609 prefix
610 program_transform_name
611 bindir
612 sbindir
613 libexecdir
614 datarootdir
615 datadir
616 sysconfdir
617 sharedstatedir
618 localstatedir
619 includedir
620 oldincludedir
621 docdir
622 infodir
623 htmldir
624 dvidir
625 pdfdir
626 psdir
627 libdir
628 localedir
629 mandir
630 DEFS
631 ECHO_C
632 ECHO_N
633 ECHO_T
634 LIBS
635 build_alias
636 host_alias
637 target_alias
638 MAINTAINER_MODE_TRUE
639 MAINTAINER_MODE_FALSE
640 MAINT
641 CC
642 CFLAGS
643 LDFLAGS
644 CPPFLAGS
645 ac_ct_CC
646 EXEEXT
647 OBJEXT
648 CPP
649 GREP
650 EGREP
651 build
652 build_cpu
653 build_vendor
654 build_os
655 host
656 host_cpu
657 host_vendor
658 host_os
659 target
660 target_cpu
661 target_vendor
662 target_os
663 SET_MAKE
664 RANLIB
665 ALLOCA
666 USE_NLS
667 MSGFMT
668 GMSGFMT
669 XGETTEXT
670 USE_INCLUDED_LIBINTL
671 CATALOGS
672 CATOBJEXT
673 DATADIRNAME
674 GMOFILES
675 INSTOBJEXT
676 INTLDEPS
677 INTLLIBS
678 INTLOBJS
679 POFILES
680 POSUB
681 INCLUDE_LOCALE_H
682 GT_NO
683 GT_YES
684 MKINSTALLDIRS
685 l
686 PACKAGE
687 subdirs
688 AWK
689 INSTALL_PROGRAM
690 INSTALL_SCRIPT
691 INSTALL_DATA
692 LN_S
693 YACC
694 YFLAGS
695 AR
696 DLLTOOL
697 WINDRES
698 MIG
699 CONFIG_LDFLAGS
700 TARGET_SYSTEM_ROOT
701 TARGET_SYSTEM_ROOT_DEFINE
702 WARN_CFLAGS
703 WERROR_CFLAGS
704 SER_HARDWIRE
705 WIN32LIBS
706 LIBGUI
707 GUI_CFLAGS_X
708 WIN32LDAPP
709 TCL_VERSION
710 TCL_MAJOR_VERSION
711 TCL_MINOR_VERSION
712 TCL_CC
713 TCL_DEFS
714 TCL_SHLIB_CFLAGS
715 TCL_SHLIB_LD
716 TCL_SHLIB_LD_LIBS
717 TCL_SHLIB_SUFFIX
718 TCL_DL_LIBS
719 TCL_LD_FLAGS
720 TCL_LD_SEARCH_FLAGS
721 TCL_CC_SEARCH_FLAGS
722 TCL_COMPAT_OBJS
723 TCL_RANLIB
724 TCL_BUILD_LIB_SPEC
725 TCL_LIB_SPEC
726 TCL_LIB_VERSIONS_OK
727 TK_VERSION
728 TK_DEFS
729 TK_BUILD_INCLUDES
730 TK_XINCLUDES
731 TK_XLIBSW
732 TK_BUILD_LIB_SPEC
733 TK_LIB_SPEC
734 TCLHDIR
735 TKHDIR
736 ITCLHDIR
737 ITKHDIR
738 ITCL_VERSION
739 ITCL_DEFS
740 ITCL_BUILD_INCLUDES
741 ITCL_BUILD_LIB_SPEC
742 ITCL_LIB_SPEC
743 ITK_VERSION
744 ITK_DEFS
745 ITK_BUILD_INCLUDES
746 ITK_BUILD_LIB_SPEC
747 ITK_LIB_SPEC
748 X_CFLAGS
749 X_LDFLAGS
750 X_LIBS
751 TCL_DEPS
752 TK_DEPS
753 ITCLLIB
754 ITCL_DEPS
755 ITKLIB
756 ITK_DEPS
757 GDBTKLIBS
758 GDBTK_CFLAGS
759 GDBTK_SRC_DIR
760 XMKMF
761 IGNORE_SIM
762 IGNORE_SIM_OBS
763 ENABLE_CFLAGS
764 PROFILE_CFLAGS
765 CONFIG_OBS
766 CONFIG_DEPS
767 CONFIG_SRCS
768 CONFIG_ALL
769 CONFIG_CLEAN
770 CONFIG_INSTALL
771 CONFIG_UNINSTALL
772 target_subdir
773 frags
774 xm_h
775 tm_h
776 nm_h
777 LIBICONV
778 LIBOBJS
779 LTLIBOBJS'
780 ac_subst_files='host_makefile_frag
781 target_makefile_frag'
782 ac_precious_vars='build_alias
783 host_alias
784 target_alias
785 CC
786 CFLAGS
787 LDFLAGS
788 CPPFLAGS
789 CPP
790 YACC
791 YFLAGS
792 XMKMF'
793 ac_subdirs_all='doc testsuite
794 gdbtk
795 multi-ice
796 gdbserver'
797
798 # Initialize some variables set by options.
799 ac_init_help=
800 ac_init_version=false
801 # The variables have the same names as the options, with
802 # dashes changed to underlines.
803 cache_file=/dev/null
804 exec_prefix=NONE
805 no_create=
806 no_recursion=
807 prefix=NONE
808 program_prefix=NONE
809 program_suffix=NONE
810 program_transform_name=s,x,x,
811 silent=
812 site=
813 srcdir=
814 verbose=
815 x_includes=NONE
816 x_libraries=NONE
817
818 # Installation directory options.
819 # These are left unexpanded so users can "make install exec_prefix=/foo"
820 # and all the variables that are supposed to be based on exec_prefix
821 # by default will actually change.
822 # Use braces instead of parens because sh, perl, etc. also accept them.
823 # (The list follows the same order as the GNU Coding Standards.)
824 bindir='${exec_prefix}/bin'
825 sbindir='${exec_prefix}/sbin'
826 libexecdir='${exec_prefix}/libexec'
827 datarootdir='${prefix}/share'
828 datadir='${datarootdir}'
829 sysconfdir='${prefix}/etc'
830 sharedstatedir='${prefix}/com'
831 localstatedir='${prefix}/var'
832 includedir='${prefix}/include'
833 oldincludedir='/usr/include'
834 docdir='${datarootdir}/doc/${PACKAGE}'
835 infodir='${datarootdir}/info'
836 htmldir='${docdir}'
837 dvidir='${docdir}'
838 pdfdir='${docdir}'
839 psdir='${docdir}'
840 libdir='${exec_prefix}/lib'
841 localedir='${datarootdir}/locale'
842 mandir='${datarootdir}/man'
843
844 ac_prev=
845 ac_dashdash=
846 for ac_option
847 do
848 # If the previous option needs an argument, assign it.
849 if test -n "$ac_prev"; then
850 eval $ac_prev=\$ac_option
851 ac_prev=
852 continue
853 fi
854
855 case $ac_option in
856 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 *) ac_optarg=yes ;;
858 esac
859
860 # Accept the important Cygnus configure options, so we can diagnose typos.
861
862 case $ac_dashdash$ac_option in
863 --)
864 ac_dashdash=yes ;;
865
866 -bindir | --bindir | --bindi | --bind | --bin | --bi)
867 ac_prev=bindir ;;
868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869 bindir=$ac_optarg ;;
870
871 -build | --build | --buil | --bui | --bu)
872 ac_prev=build_alias ;;
873 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874 build_alias=$ac_optarg ;;
875
876 -cache-file | --cache-file | --cache-fil | --cache-fi \
877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878 ac_prev=cache_file ;;
879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881 cache_file=$ac_optarg ;;
882
883 --config-cache | -C)
884 cache_file=config.cache ;;
885
886 -datadir | --datadir | --datadi | --datad)
887 ac_prev=datadir ;;
888 -datadir=* | --datadir=* | --datadi=* | --datad=*)
889 datadir=$ac_optarg ;;
890
891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892 | --dataroo | --dataro | --datar)
893 ac_prev=datarootdir ;;
894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896 datarootdir=$ac_optarg ;;
897
898 -disable-* | --disable-*)
899 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
902 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
903 { (exit 1); exit 1; }; }
904 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
905 eval enable_$ac_feature=no ;;
906
907 -docdir | --docdir | --docdi | --doc | --do)
908 ac_prev=docdir ;;
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910 docdir=$ac_optarg ;;
911
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913 ac_prev=dvidir ;;
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915 dvidir=$ac_optarg ;;
916
917 -enable-* | --enable-*)
918 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
921 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
922 { (exit 1); exit 1; }; }
923 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
924 eval enable_$ac_feature=\$ac_optarg ;;
925
926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928 | --exec | --exe | --ex)
929 ac_prev=exec_prefix ;;
930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932 | --exec=* | --exe=* | --ex=*)
933 exec_prefix=$ac_optarg ;;
934
935 -gas | --gas | --ga | --g)
936 # Obsolete; use --with-gas.
937 with_gas=yes ;;
938
939 -help | --help | --hel | --he | -h)
940 ac_init_help=long ;;
941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942 ac_init_help=recursive ;;
943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944 ac_init_help=short ;;
945
946 -host | --host | --hos | --ho)
947 ac_prev=host_alias ;;
948 -host=* | --host=* | --hos=* | --ho=*)
949 host_alias=$ac_optarg ;;
950
951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952 ac_prev=htmldir ;;
953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954 | --ht=*)
955 htmldir=$ac_optarg ;;
956
957 -includedir | --includedir | --includedi | --included | --include \
958 | --includ | --inclu | --incl | --inc)
959 ac_prev=includedir ;;
960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961 | --includ=* | --inclu=* | --incl=* | --inc=*)
962 includedir=$ac_optarg ;;
963
964 -infodir | --infodir | --infodi | --infod | --info | --inf)
965 ac_prev=infodir ;;
966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967 infodir=$ac_optarg ;;
968
969 -libdir | --libdir | --libdi | --libd)
970 ac_prev=libdir ;;
971 -libdir=* | --libdir=* | --libdi=* | --libd=*)
972 libdir=$ac_optarg ;;
973
974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975 | --libexe | --libex | --libe)
976 ac_prev=libexecdir ;;
977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978 | --libexe=* | --libex=* | --libe=*)
979 libexecdir=$ac_optarg ;;
980
981 -localedir | --localedir | --localedi | --localed | --locale)
982 ac_prev=localedir ;;
983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984 localedir=$ac_optarg ;;
985
986 -localstatedir | --localstatedir | --localstatedi | --localstated \
987 | --localstate | --localstat | --localsta | --localst | --locals)
988 ac_prev=localstatedir ;;
989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991 localstatedir=$ac_optarg ;;
992
993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994 ac_prev=mandir ;;
995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 mandir=$ac_optarg ;;
997
998 -nfp | --nfp | --nf)
999 # Obsolete; use --without-fp.
1000 with_fp=no ;;
1001
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003 | --no-cr | --no-c | -n)
1004 no_create=yes ;;
1005
1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008 no_recursion=yes ;;
1009
1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012 | --oldin | --oldi | --old | --ol | --o)
1013 ac_prev=oldincludedir ;;
1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017 oldincludedir=$ac_optarg ;;
1018
1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020 ac_prev=prefix ;;
1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022 prefix=$ac_optarg ;;
1023
1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025 | --program-pre | --program-pr | --program-p)
1026 ac_prev=program_prefix ;;
1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029 program_prefix=$ac_optarg ;;
1030
1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032 | --program-suf | --program-su | --program-s)
1033 ac_prev=program_suffix ;;
1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036 program_suffix=$ac_optarg ;;
1037
1038 -program-transform-name | --program-transform-name \
1039 | --program-transform-nam | --program-transform-na \
1040 | --program-transform-n | --program-transform- \
1041 | --program-transform | --program-transfor \
1042 | --program-transfo | --program-transf \
1043 | --program-trans | --program-tran \
1044 | --progr-tra | --program-tr | --program-t)
1045 ac_prev=program_transform_name ;;
1046 -program-transform-name=* | --program-transform-name=* \
1047 | --program-transform-nam=* | --program-transform-na=* \
1048 | --program-transform-n=* | --program-transform-=* \
1049 | --program-transform=* | --program-transfor=* \
1050 | --program-transfo=* | --program-transf=* \
1051 | --program-trans=* | --program-tran=* \
1052 | --progr-tra=* | --program-tr=* | --program-t=*)
1053 program_transform_name=$ac_optarg ;;
1054
1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056 ac_prev=pdfdir ;;
1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058 pdfdir=$ac_optarg ;;
1059
1060 -psdir | --psdir | --psdi | --psd | --ps)
1061 ac_prev=psdir ;;
1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063 psdir=$ac_optarg ;;
1064
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 silent=yes ;;
1068
1069 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070 ac_prev=sbindir ;;
1071 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072 | --sbi=* | --sb=*)
1073 sbindir=$ac_optarg ;;
1074
1075 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077 | --sharedst | --shareds | --shared | --share | --shar \
1078 | --sha | --sh)
1079 ac_prev=sharedstatedir ;;
1080 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083 | --sha=* | --sh=*)
1084 sharedstatedir=$ac_optarg ;;
1085
1086 -site | --site | --sit)
1087 ac_prev=site ;;
1088 -site=* | --site=* | --sit=*)
1089 site=$ac_optarg ;;
1090
1091 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092 ac_prev=srcdir ;;
1093 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094 srcdir=$ac_optarg ;;
1095
1096 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097 | --syscon | --sysco | --sysc | --sys | --sy)
1098 ac_prev=sysconfdir ;;
1099 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101 sysconfdir=$ac_optarg ;;
1102
1103 -target | --target | --targe | --targ | --tar | --ta | --t)
1104 ac_prev=target_alias ;;
1105 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106 target_alias=$ac_optarg ;;
1107
1108 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109 verbose=yes ;;
1110
1111 -version | --version | --versio | --versi | --vers | -V)
1112 ac_init_version=: ;;
1113
1114 -with-* | --with-*)
1115 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1118 { echo "$as_me: error: invalid package name: $ac_package" >&2
1119 { (exit 1); exit 1; }; }
1120 ac_package=`echo $ac_package| sed 's/-/_/g'`
1121 eval with_$ac_package=\$ac_optarg ;;
1122
1123 -without-* | --without-*)
1124 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1127 { echo "$as_me: error: invalid package name: $ac_package" >&2
1128 { (exit 1); exit 1; }; }
1129 ac_package=`echo $ac_package | sed 's/-/_/g'`
1130 eval with_$ac_package=no ;;
1131
1132 --x)
1133 # Obsolete; use --with-x.
1134 with_x=yes ;;
1135
1136 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1137 | --x-incl | --x-inc | --x-in | --x-i)
1138 ac_prev=x_includes ;;
1139 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1140 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1141 x_includes=$ac_optarg ;;
1142
1143 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1144 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1145 ac_prev=x_libraries ;;
1146 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1147 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1148 x_libraries=$ac_optarg ;;
1149
1150 -*) { echo "$as_me: error: unrecognized option: $ac_option
1151 Try \`$0 --help' for more information." >&2
1152 { (exit 1); exit 1; }; }
1153 ;;
1154
1155 *=*)
1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1159 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1160 { (exit 1); exit 1; }; }
1161 eval $ac_envvar=\$ac_optarg
1162 export $ac_envvar ;;
1163
1164 *)
1165 # FIXME: should be removed in autoconf 3.0.
1166 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1170 ;;
1171
1172 esac
1173 done
1174
1175 if test -n "$ac_prev"; then
1176 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1177 { echo "$as_me: error: missing argument to $ac_option" >&2
1178 { (exit 1); exit 1; }; }
1179 fi
1180
1181 # Be sure to have absolute directory names.
1182 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1183 datadir sysconfdir sharedstatedir localstatedir includedir \
1184 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1185 libdir localedir mandir
1186 do
1187 eval ac_val=\$$ac_var
1188 case $ac_val in
1189 [\\/$]* | ?:[\\/]* ) continue;;
1190 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1191 esac
1192 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1193 { (exit 1); exit 1; }; }
1194 done
1195
1196 # There might be people who depend on the old broken behavior: `$host'
1197 # used to hold the argument of --host etc.
1198 # FIXME: To remove some day.
1199 build=$build_alias
1200 host=$host_alias
1201 target=$target_alias
1202
1203 # FIXME: To remove some day.
1204 if test "x$host_alias" != x; then
1205 if test "x$build_alias" = x; then
1206 cross_compiling=maybe
1207 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1208 If a cross compiler is detected then cross compile mode will be used." >&2
1209 elif test "x$build_alias" != "x$host_alias"; then
1210 cross_compiling=yes
1211 fi
1212 fi
1213
1214 ac_tool_prefix=
1215 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1216
1217 test "$silent" = yes && exec 6>/dev/null
1218
1219
1220 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1221 ac_ls_di=`ls -di .` &&
1222 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1223 { echo "$as_me: error: Working directory cannot be determined" >&2
1224 { (exit 1); exit 1; }; }
1225 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1226 { echo "$as_me: error: pwd does not report name of working directory" >&2
1227 { (exit 1); exit 1; }; }
1228
1229
1230 # Find the source files, if location was not specified.
1231 if test -z "$srcdir"; then
1232 ac_srcdir_defaulted=yes
1233 # Try the directory containing this script, then the parent directory.
1234 ac_confdir=`$as_dirname -- "$0" ||
1235 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1236 X"$0" : 'X\(//\)[^/]' \| \
1237 X"$0" : 'X\(//\)$' \| \
1238 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1239 echo X"$0" |
1240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1241 s//\1/
1242 q
1243 }
1244 /^X\(\/\/\)[^/].*/{
1245 s//\1/
1246 q
1247 }
1248 /^X\(\/\/\)$/{
1249 s//\1/
1250 q
1251 }
1252 /^X\(\/\).*/{
1253 s//\1/
1254 q
1255 }
1256 s/.*/./; q'`
1257 srcdir=$ac_confdir
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259 srcdir=..
1260 fi
1261 else
1262 ac_srcdir_defaulted=no
1263 fi
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1266 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1267 { (exit 1); exit 1; }; }
1268 fi
1269 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1270 ac_abs_confdir=`(
1271 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1272 { (exit 1); exit 1; }; }
1273 pwd)`
1274 # When building in place, set srcdir=.
1275 if test "$ac_abs_confdir" = "$ac_pwd"; then
1276 srcdir=.
1277 fi
1278 # Remove unnecessary trailing slashes from srcdir.
1279 # Double slashes in file names in object file debugging info
1280 # mess up M-x gdb in Emacs.
1281 case $srcdir in
1282 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283 esac
1284 for ac_var in $ac_precious_vars; do
1285 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286 eval ac_env_${ac_var}_value=\$${ac_var}
1287 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289 done
1290
1291 #
1292 # Report the --help message.
1293 #
1294 if test "$ac_init_help" = "long"; then
1295 # Omit some internal or obsolete options to make the list less imposing.
1296 # This message is too long to be a string in the A/UX 3.1 sh.
1297 cat <<_ACEOF
1298 \`configure' configures this package to adapt to many kinds of systems.
1299
1300 Usage: $0 [OPTION]... [VAR=VALUE]...
1301
1302 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303 VAR=VALUE. See below for descriptions of some of the useful variables.
1304
1305 Defaults for the options are specified in brackets.
1306
1307 Configuration:
1308 -h, --help display this help and exit
1309 --help=short display options specific to this package
1310 --help=recursive display the short help of all the included packages
1311 -V, --version display version information and exit
1312 -q, --quiet, --silent do not print \`checking...' messages
1313 --cache-file=FILE cache test results in FILE [disabled]
1314 -C, --config-cache alias for \`--cache-file=config.cache'
1315 -n, --no-create do not create output files
1316 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1317
1318 Installation directories:
1319 --prefix=PREFIX install architecture-independent files in PREFIX
1320 [$ac_default_prefix]
1321 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1322 [PREFIX]
1323
1324 By default, \`make install' will install all the files in
1325 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1326 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327 for instance \`--prefix=\$HOME'.
1328
1329 For better control, use the options below.
1330
1331 Fine tuning of the installation directories:
1332 --bindir=DIR user executables [EPREFIX/bin]
1333 --sbindir=DIR system admin executables [EPREFIX/sbin]
1334 --libexecdir=DIR program executables [EPREFIX/libexec]
1335 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1336 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1337 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1338 --libdir=DIR object code libraries [EPREFIX/lib]
1339 --includedir=DIR C header files [PREFIX/include]
1340 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1341 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1342 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1343 --infodir=DIR info documentation [DATAROOTDIR/info]
1344 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1345 --mandir=DIR man documentation [DATAROOTDIR/man]
1346 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1347 --htmldir=DIR html documentation [DOCDIR]
1348 --dvidir=DIR dvi documentation [DOCDIR]
1349 --pdfdir=DIR pdf documentation [DOCDIR]
1350 --psdir=DIR ps documentation [DOCDIR]
1351 _ACEOF
1352
1353 cat <<\_ACEOF
1354
1355 Program names:
1356 --program-prefix=PREFIX prepend PREFIX to installed program names
1357 --program-suffix=SUFFIX append SUFFIX to installed program names
1358 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1359
1360 X features:
1361 --x-includes=DIR X include files are in DIR
1362 --x-libraries=DIR X library files are in DIR
1363
1364 System types:
1365 --build=BUILD configure for building on BUILD [guessed]
1366 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1367 --target=TARGET configure for building compilers for TARGET [HOST]
1368 _ACEOF
1369 fi
1370
1371 if test -n "$ac_init_help"; then
1372
1373 cat <<\_ACEOF
1374
1375 Optional Features:
1376 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1377 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1378 --enable-maintainer-mode enable make rules and dependencies not useful
1379 (and sometimes confusing) to the casual installer
1380 --disable-nls do not use Native Language Support
1381 --disable-gdbcli disable command-line interface (CLI)
1382 --disable-gdbmi disable machine-interface (MI)
1383 --enable-tui enable full-screen terminal user interface (TUI)
1384 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1385 --enable-profiling enable profiling of GDB
1386 --enable-werror treat compile warnings as errors
1387 --enable-build-warnings Enable build-time compiler warnings if gcc is used
1388 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
1389 --enable-sim Link gdb with simulator
1390 --enable-multi-ice build the multi-ice-gdb-server
1391
1392 Optional Packages:
1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1395 --with-included-gettext use the GNU gettext library included here
1396 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
1397 --with-libunwind Use libunwind frame unwinding support
1398 --without-included-regex don't use included regex; this is the default
1399 on systems with version 2 of the GNU C library
1400 (use with caution on other system)
1401 --with-sysroot=DIR Search for usr/lib et al within DIR.
1402 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
1403 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
1404 --with-tclinclude=DIR Directory where tcl private headers are
1405 --with-tkinclude=DIR Directory where tk private headers are
1406 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
1407 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
1408 --with-x use the X Window System
1409 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1410
1411 Some influential environment variables:
1412 CC C compiler command
1413 CFLAGS C compiler flags
1414 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1415 nonstandard directory <lib dir>
1416 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1417 you have headers in a nonstandard directory <include dir>
1418 CPP C preprocessor
1419 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1420 the first program found out of: `bison -y', `byacc', `yacc'.
1421 YFLAGS The list of arguments that will be passed by default to $YACC.
1422 This script will default YFLAGS to the empty string to avoid a
1423 default value of `-d' given by some make applications.
1424 XMKMF Path to xmkmf, Makefile generator for X Window System
1425
1426 Use these variables to override the choices made by `configure' or to help
1427 it to find libraries and programs with nonstandard names/locations.
1428
1429 _ACEOF
1430 ac_status=$?
1431 fi
1432
1433 if test "$ac_init_help" = "recursive"; then
1434 # If there are subdirs, report their specific --help.
1435 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1436 test -d $ac_dir || continue
1437 ac_builddir=.
1438
1439 case "$ac_dir" in
1440 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441 *)
1442 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1443 # A ".." for each directory in $ac_dir_suffix.
1444 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1445 case $ac_top_builddir_sub in
1446 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1448 esac ;;
1449 esac
1450 ac_abs_top_builddir=$ac_pwd
1451 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1452 # for backward compatibility:
1453 ac_top_builddir=$ac_top_build_prefix
1454
1455 case $srcdir in
1456 .) # We are building in place.
1457 ac_srcdir=.
1458 ac_top_srcdir=$ac_top_builddir_sub
1459 ac_abs_top_srcdir=$ac_pwd ;;
1460 [\\/]* | ?:[\\/]* ) # Absolute name.
1461 ac_srcdir=$srcdir$ac_dir_suffix;
1462 ac_top_srcdir=$srcdir
1463 ac_abs_top_srcdir=$srcdir ;;
1464 *) # Relative name.
1465 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1466 ac_top_srcdir=$ac_top_build_prefix$srcdir
1467 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1468 esac
1469 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1470
1471 cd "$ac_dir" || { ac_status=$?; continue; }
1472 # Check for guested configure.
1473 if test -f $ac_srcdir/configure.gnu; then
1474 echo &&
1475 $SHELL $ac_srcdir/configure.gnu --help=recursive
1476 elif test -f $ac_srcdir/configure; then
1477 echo &&
1478 $SHELL $ac_srcdir/configure --help=recursive
1479 else
1480 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1481 fi || ac_status=$?
1482 cd "$ac_pwd" || { ac_status=$?; break; }
1483 done
1484 fi
1485
1486 test -n "$ac_init_help" && exit $ac_status
1487 if $ac_init_version; then
1488 cat <<\_ACEOF
1489 configure
1490 generated by GNU Autoconf 2.59d
1491
1492 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1493 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1494 This configure script is free software; the Free Software Foundation
1495 gives unlimited permission to copy, distribute and modify it.
1496 _ACEOF
1497 exit
1498 fi
1499 cat >config.log <<_ACEOF
1500 This file contains any messages produced by compilers while
1501 running configure, to aid debugging if configure makes a mistake.
1502
1503 It was created by $as_me, which was
1504 generated by GNU Autoconf 2.59d. Invocation command line was
1505
1506 $ $0 $@
1507
1508 _ACEOF
1509 exec 5>>config.log
1510 {
1511 cat <<_ASUNAME
1512 ## --------- ##
1513 ## Platform. ##
1514 ## --------- ##
1515
1516 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1517 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1518 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1519 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1520 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1521
1522 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1523 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1524
1525 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1526 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1527 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1528 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1529 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1530 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1531 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1532
1533 _ASUNAME
1534
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 for as_dir in $PATH
1537 do
1538 IFS=$as_save_IFS
1539 test -z "$as_dir" && as_dir=.
1540 echo "PATH: $as_dir"
1541 done
1542 IFS=$as_save_IFS
1543
1544 } >&5
1545
1546 cat >&5 <<_ACEOF
1547
1548
1549 ## ----------- ##
1550 ## Core tests. ##
1551 ## ----------- ##
1552
1553 _ACEOF
1554
1555
1556 # Keep a trace of the command line.
1557 # Strip out --no-create and --no-recursion so they do not pile up.
1558 # Strip out --silent because we don't want to record it for future runs.
1559 # Also quote any args containing shell meta-characters.
1560 # Make two passes to allow for proper duplicate-argument suppression.
1561 ac_configure_args=
1562 ac_configure_args0=
1563 ac_configure_args1=
1564 ac_sep=
1565 ac_must_keep_next=false
1566 for ac_pass in 1 2
1567 do
1568 for ac_arg
1569 do
1570 case $ac_arg in
1571 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1572 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1573 | -silent | --silent | --silen | --sile | --sil)
1574 continue ;;
1575 *\'*)
1576 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1577 esac
1578 case $ac_pass in
1579 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1580 2)
1581 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1582 if test $ac_must_keep_next = true; then
1583 ac_must_keep_next=false # Got value, back to normal.
1584 else
1585 case $ac_arg in
1586 *=* | --config-cache | -C | -disable-* | --disable-* \
1587 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1588 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1589 | -with-* | --with-* | -without-* | --without-* | --x)
1590 case "$ac_configure_args0 " in
1591 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1592 esac
1593 ;;
1594 -* ) ac_must_keep_next=true ;;
1595 esac
1596 fi
1597 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1598 # Get rid of the leading space.
1599 ac_sep=" "
1600 ;;
1601 esac
1602 done
1603 done
1604 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1605 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1606
1607 # When interrupted or exit'd, cleanup temporary files, and complete
1608 # config.log. We remove comments because anyway the quotes in there
1609 # would cause problems or look ugly.
1610 # WARNING: Use '\'' to represent an apostrophe within the trap.
1611 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1612 trap 'exit_status=$?
1613 # Save into config.log some information that might help in debugging.
1614 {
1615 echo
1616
1617 cat <<\_ASBOX
1618 ## ---------------- ##
1619 ## Cache variables. ##
1620 ## ---------------- ##
1621 _ASBOX
1622 echo
1623 # The following way of writing the cache mishandles newlines in values,
1624 (
1625 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1626 eval ac_val=\$$ac_var
1627 case $ac_val in #(
1628 *${as_nl}*)
1629 case $ac_var in #(
1630 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1631 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1632 esac
1633 case $ac_var in #(
1634 _ | IFS | as_nl) ;; #(
1635 *) $as_unset $ac_var ;;
1636 esac ;;
1637 esac
1638 done
1639 (set) 2>&1 |
1640 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1641 *${as_nl}ac_space=\ *)
1642 sed -n \
1643 "s/'\''/'\''\\\\'\'''\''/g;
1644 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1645 ;; #(
1646 *)
1647 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1648 ;;
1649 esac |
1650 sort
1651 )
1652 echo
1653
1654 cat <<\_ASBOX
1655 ## ----------------- ##
1656 ## Output variables. ##
1657 ## ----------------- ##
1658 _ASBOX
1659 echo
1660 for ac_var in $ac_subst_vars
1661 do
1662 eval ac_val=\$$ac_var
1663 echo "$ac_var='\''$ac_val'\''"
1664 done | sort
1665 echo
1666
1667 if test -n "$ac_subst_files"; then
1668 cat <<\_ASBOX
1669 ## ------------------- ##
1670 ## File substitutions. ##
1671 ## ------------------- ##
1672 _ASBOX
1673 echo
1674 for ac_var in $ac_subst_files
1675 do
1676 eval ac_val=\$$ac_var
1677 echo "$ac_var='\''$ac_val'\''"
1678 done | sort
1679 echo
1680 fi
1681
1682 if test -s confdefs.h; then
1683 cat <<\_ASBOX
1684 ## ----------- ##
1685 ## confdefs.h. ##
1686 ## ----------- ##
1687 _ASBOX
1688 echo
1689 cat confdefs.h
1690 echo
1691 fi
1692 test "$ac_signal" != 0 &&
1693 echo "$as_me: caught signal $ac_signal"
1694 echo "$as_me: exit $exit_status"
1695 } >&5
1696 rm -f core *.core core.conftest.* &&
1697 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1698 exit $exit_status
1699 ' 0
1700 for ac_signal in 1 2 13 15; do
1701 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1702 done
1703 ac_signal=0
1704
1705 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1706 rm -f -r conftest* confdefs.h
1707
1708 # Predefined preprocessor variables.
1709
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_NAME "$PACKAGE_NAME"
1712 _ACEOF
1713
1714
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1717 _ACEOF
1718
1719
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1722 _ACEOF
1723
1724
1725 cat >>confdefs.h <<_ACEOF
1726 #define PACKAGE_STRING "$PACKAGE_STRING"
1727 _ACEOF
1728
1729
1730 cat >>confdefs.h <<_ACEOF
1731 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1732 _ACEOF
1733
1734
1735 # Let the site file select an alternate cache file if it wants to.
1736 # Prefer explicitly selected file to automatically selected ones.
1737 if test -n "$CONFIG_SITE"; then
1738 set x "$CONFIG_SITE"
1739 elif test "x$prefix" != xNONE; then
1740 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1741 else
1742 set x "$ac_default_prefix/share/config.site" \
1743 "$ac_default_prefix/etc/config.site"
1744 fi
1745 shift
1746 for ac_site_file
1747 do
1748 if test -r "$ac_site_file"; then
1749 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1750 echo "$as_me: loading site script $ac_site_file" >&6;}
1751 sed 's/^/| /' "$ac_site_file" >&5
1752 . "$ac_site_file"
1753 fi
1754 done
1755
1756 if test -r "$cache_file"; then
1757 # Some versions of bash will fail to source /dev/null (special
1758 # files actually), so we avoid doing that.
1759 if test -f "$cache_file"; then
1760 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1761 echo "$as_me: loading cache $cache_file" >&6;}
1762 case $cache_file in
1763 [\\/]* | ?:[\\/]* ) . $cache_file;;
1764 *) . ./$cache_file;;
1765 esac
1766 fi
1767 else
1768 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1769 echo "$as_me: creating cache $cache_file" >&6;}
1770 >$cache_file
1771 fi
1772
1773 # Check that the precious variables saved in the cache have kept the same
1774 # value.
1775 ac_cache_corrupted=false
1776 for ac_var in $ac_precious_vars; do
1777 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1778 eval ac_new_set=\$ac_env_${ac_var}_set
1779 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1780 eval ac_new_val=\$ac_env_${ac_var}_value
1781 case $ac_old_set,$ac_new_set in
1782 set,)
1783 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1784 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1785 ac_cache_corrupted=: ;;
1786 ,set)
1787 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1788 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1789 ac_cache_corrupted=: ;;
1790 ,);;
1791 *)
1792 if test "x$ac_old_val" != "x$ac_new_val"; then
1793 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1794 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1795 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1796 echo "$as_me: former value: $ac_old_val" >&2;}
1797 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1798 echo "$as_me: current value: $ac_new_val" >&2;}
1799 ac_cache_corrupted=:
1800 fi;;
1801 esac
1802 # Pass precious variables to config.status.
1803 if test "$ac_new_set" = set; then
1804 case $ac_new_val in
1805 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1806 *) ac_arg=$ac_var=$ac_new_val ;;
1807 esac
1808 case " $ac_configure_args " in
1809 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1810 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1811 esac
1812 fi
1813 done
1814 if $ac_cache_corrupted; then
1815 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1816 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1817 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1818 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1819 { (exit 1); exit 1; }; }
1820 fi
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838 ac_ext=c
1839 ac_cpp='$CPP $CPPFLAGS'
1840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1843
1844
1845 ac_config_headers="$ac_config_headers config.h:config.in"
1846
1847 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1848 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
1849 # Check whether --enable-maintainer-mode was given.
1850 if test "${enable_maintainer_mode+set}" = set; then
1851 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1852 else
1853 USE_MAINTAINER_MODE=no
1854 fi
1855
1856 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1857 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
1858
1859
1860 if test $USE_MAINTAINER_MODE = yes; then
1861 MAINTAINER_MODE_TRUE=
1862 MAINTAINER_MODE_FALSE='#'
1863 else
1864 MAINTAINER_MODE_TRUE='#'
1865 MAINTAINER_MODE_FALSE=
1866 fi
1867
1868 MAINT=$MAINTAINER_MODE_TRUE
1869
1870
1871
1872 ac_ext=c
1873 ac_cpp='$CPP $CPPFLAGS'
1874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1877 if test -n "$ac_tool_prefix"; then
1878 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1879 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1882 if test "${ac_cv_prog_CC+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885 if test -n "$CC"; then
1886 ac_cv_prog_CC="$CC" # Let the user override the test.
1887 else
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 for as_dir in $PATH
1890 do
1891 IFS=$as_save_IFS
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
1894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1895 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 break 2
1898 fi
1899 done
1900 done
1901 IFS=$as_save_IFS
1902
1903 fi
1904 fi
1905 CC=$ac_cv_prog_CC
1906 if test -n "$CC"; then
1907 { echo "$as_me:$LINENO: result: $CC" >&5
1908 echo "${ECHO_T}$CC" >&6; }
1909 else
1910 { echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6; }
1912 fi
1913
1914
1915 fi
1916 if test -z "$ac_cv_prog_CC"; then
1917 ac_ct_CC=$CC
1918 # Extract the first word of "gcc", so it can be a program name with args.
1919 set dummy gcc; ac_word=$2
1920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1922 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 else
1925 if test -n "$ac_ct_CC"; then
1926 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1927 else
1928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929 for as_dir in $PATH
1930 do
1931 IFS=$as_save_IFS
1932 test -z "$as_dir" && as_dir=.
1933 for ac_exec_ext in '' $ac_executable_extensions; do
1934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1935 ac_cv_prog_ac_ct_CC="gcc"
1936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1937 break 2
1938 fi
1939 done
1940 done
1941 IFS=$as_save_IFS
1942
1943 fi
1944 fi
1945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1946 if test -n "$ac_ct_CC"; then
1947 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1948 echo "${ECHO_T}$ac_ct_CC" >&6; }
1949 else
1950 { echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6; }
1952 fi
1953
1954 if test "x$ac_ct_CC" = x; then
1955 CC=""
1956 else
1957 case $cross_compiling:$ac_tool_warned in
1958 yes:)
1959 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1960 whose name does not start with the host triplet. If you think this
1961 configuration is useful to you, please write to autoconf@gnu.org." >&5
1962 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1963 whose name does not start with the host triplet. If you think this
1964 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1965 ac_tool_warned=yes ;;
1966 esac
1967 CC=$ac_ct_CC
1968 fi
1969 else
1970 CC="$ac_cv_prog_CC"
1971 fi
1972
1973 if test -z "$CC"; then
1974 if test -n "$ac_tool_prefix"; then
1975 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1976 set dummy ${ac_tool_prefix}cc; ac_word=$2
1977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1979 if test "${ac_cv_prog_CC+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982 if test -n "$CC"; then
1983 ac_cv_prog_CC="$CC" # Let the user override the test.
1984 else
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1987 do
1988 IFS=$as_save_IFS
1989 test -z "$as_dir" && as_dir=.
1990 for ac_exec_ext in '' $ac_executable_extensions; do
1991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1992 ac_cv_prog_CC="${ac_tool_prefix}cc"
1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994 break 2
1995 fi
1996 done
1997 done
1998 IFS=$as_save_IFS
1999
2000 fi
2001 fi
2002 CC=$ac_cv_prog_CC
2003 if test -n "$CC"; then
2004 { echo "$as_me:$LINENO: result: $CC" >&5
2005 echo "${ECHO_T}$CC" >&6; }
2006 else
2007 { echo "$as_me:$LINENO: result: no" >&5
2008 echo "${ECHO_T}no" >&6; }
2009 fi
2010
2011
2012 fi
2013 fi
2014 if test -z "$CC"; then
2015 # Extract the first word of "cc", so it can be a program name with args.
2016 set dummy cc; ac_word=$2
2017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2019 if test "${ac_cv_prog_CC+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 else
2022 if test -n "$CC"; then
2023 ac_cv_prog_CC="$CC" # Let the user override the test.
2024 else
2025 ac_prog_rejected=no
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 for as_dir in $PATH
2028 do
2029 IFS=$as_save_IFS
2030 test -z "$as_dir" && as_dir=.
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2033 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2034 ac_prog_rejected=yes
2035 continue
2036 fi
2037 ac_cv_prog_CC="cc"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 break 2
2040 fi
2041 done
2042 done
2043 IFS=$as_save_IFS
2044
2045 if test $ac_prog_rejected = yes; then
2046 # We found a bogon in the path, so make sure we never use it.
2047 set dummy $ac_cv_prog_CC
2048 shift
2049 if test $# != 0; then
2050 # We chose a different compiler from the bogus one.
2051 # However, it has the same basename, so the bogon will be chosen
2052 # first if we set CC to just the basename; use the full file name.
2053 shift
2054 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2055 fi
2056 fi
2057 fi
2058 fi
2059 CC=$ac_cv_prog_CC
2060 if test -n "$CC"; then
2061 { echo "$as_me:$LINENO: result: $CC" >&5
2062 echo "${ECHO_T}$CC" >&6; }
2063 else
2064 { echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6; }
2066 fi
2067
2068
2069 fi
2070 if test -z "$CC"; then
2071 if test -n "$ac_tool_prefix"; then
2072 for ac_prog in cl.exe
2073 do
2074 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2075 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2078 if test "${ac_cv_prog_CC+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 else
2081 if test -n "$CC"; then
2082 ac_cv_prog_CC="$CC" # Let the user override the test.
2083 else
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085 for as_dir in $PATH
2086 do
2087 IFS=$as_save_IFS
2088 test -z "$as_dir" && as_dir=.
2089 for ac_exec_ext in '' $ac_executable_extensions; do
2090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2091 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093 break 2
2094 fi
2095 done
2096 done
2097 IFS=$as_save_IFS
2098
2099 fi
2100 fi
2101 CC=$ac_cv_prog_CC
2102 if test -n "$CC"; then
2103 { echo "$as_me:$LINENO: result: $CC" >&5
2104 echo "${ECHO_T}$CC" >&6; }
2105 else
2106 { echo "$as_me:$LINENO: result: no" >&5
2107 echo "${ECHO_T}no" >&6; }
2108 fi
2109
2110
2111 test -n "$CC" && break
2112 done
2113 fi
2114 if test -z "$CC"; then
2115 ac_ct_CC=$CC
2116 for ac_prog in cl.exe
2117 do
2118 # Extract the first word of "$ac_prog", so it can be a program name with args.
2119 set dummy $ac_prog; ac_word=$2
2120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2122 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125 if test -n "$ac_ct_CC"; then
2126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2127 else
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 for as_dir in $PATH
2130 do
2131 IFS=$as_save_IFS
2132 test -z "$as_dir" && as_dir=.
2133 for ac_exec_ext in '' $ac_executable_extensions; do
2134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2135 ac_cv_prog_ac_ct_CC="$ac_prog"
2136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137 break 2
2138 fi
2139 done
2140 done
2141 IFS=$as_save_IFS
2142
2143 fi
2144 fi
2145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2146 if test -n "$ac_ct_CC"; then
2147 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2148 echo "${ECHO_T}$ac_ct_CC" >&6; }
2149 else
2150 { echo "$as_me:$LINENO: result: no" >&5
2151 echo "${ECHO_T}no" >&6; }
2152 fi
2153
2154
2155 test -n "$ac_ct_CC" && break
2156 done
2157
2158 if test "x$ac_ct_CC" = x; then
2159 CC=""
2160 else
2161 case $cross_compiling:$ac_tool_warned in
2162 yes:)
2163 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2164 whose name does not start with the host triplet. If you think this
2165 configuration is useful to you, please write to autoconf@gnu.org." >&5
2166 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2167 whose name does not start with the host triplet. If you think this
2168 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2169 ac_tool_warned=yes ;;
2170 esac
2171 CC=$ac_ct_CC
2172 fi
2173 fi
2174
2175 fi
2176
2177
2178 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2179 See \`config.log' for more details." >&5
2180 echo "$as_me: error: no acceptable C compiler found in \$PATH
2181 See \`config.log' for more details." >&2;}
2182 { (exit 1); exit 1; }; }
2183
2184 # Provide some information about the compiler.
2185 echo "$as_me:$LINENO: checking for C compiler version" >&5
2186 ac_compiler=`set X $ac_compile; echo $2`
2187 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
2188 (eval $ac_compiler --version >&5) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }
2192 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
2193 (eval $ac_compiler -v >&5) 2>&5
2194 ac_status=$?
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }
2197 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
2198 (eval $ac_compiler -V >&5) 2>&5
2199 ac_status=$?
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); }
2202
2203
2204 # List of possible output files. We want to start from the most likely,
2205 # but we have to check foo.exe before foo, because Cygwin `test -f' looks
2206 # also for foo.exe. b.out is created by i960 compilers.
2207 # As a last resort, we also try wildcards: `conftest.*' and `a.*'.
2208 # But we are not allowed to rm a.*, and we do not want always remove
2209 # conftest.*, so we will list them literally, when appropriate.
2210 ac_outfiles="a_out.exe a.out conftest.exe conftest a.exe b.out"
2211
2212 # The IRIX 6 linker writes into existing files which may not be
2213 # executable, retaining their permissions. Remove them first so a
2214 # subsequent execution test works.
2215 rm -f $ac_outfiles conftest.*
2216
2217 cat >conftest.$ac_ext <<_ACEOF
2218 /* confdefs.h. */
2219 _ACEOF
2220 cat confdefs.h >>conftest.$ac_ext
2221 cat >>conftest.$ac_ext <<_ACEOF
2222 /* end confdefs.h. */
2223
2224 int
2225 main ()
2226 {
2227
2228 ;
2229 return 0;
2230 }
2231 _ACEOF
2232
2233 ac_clean_files_save=$ac_clean_files
2234 ac_clean_files="$ac_clean_files $ac_outfiles"
2235
2236 # The following tests should remove their output except files matching conftest.*.
2237 # Try to create an executable without -o first, disregard a.out.
2238 # It will help us diagnose broken compilers, and finding out an intuition
2239 # of exeext.
2240 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2241 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2242 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2243
2244 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2245 (eval $ac_link_default) 2>&5
2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; then
2249 for ac_file in $ac_outfiles a.* conftest.* NO
2250 do
2251 test -f "$ac_file" || continue
2252 case $ac_file in
2253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2254 * ) break;;
2255 esac
2256 done
2257 if test "$ac_file" = NO; then
2258 { { echo "$as_me:$LINENO: error: no output file found
2259 See \`config.log' for more details." >&5
2260 echo "$as_me: error: no output file found
2261 See \`config.log' for more details." >&2;}
2262 { (exit 1); exit 1; }; }
2263 fi
2264
2265
2266 else
2267 echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2269
2270 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: C compiler cannot create executables
2273 See \`config.log' for more details." >&2;}
2274 { (exit 77); exit 77; }; }
2275 fi
2276
2277 { echo "$as_me:$LINENO: result: $ac_file" >&5
2278 echo "${ECHO_T}$ac_file" >&6; }
2279 # Check that the compiler produces executables we can run. If not, either
2280 # the compiler is broken, or we cross compile.
2281 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2282 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2283 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2284 # If not cross compiling, check that we can run a simple program.
2285 if test "$cross_compiling" != yes; then
2286 if { ac_try='./$ac_file'
2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 (eval $ac_try) 2>&5
2289 ac_status=$?
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; }; then
2292 cross_compiling=no
2293 else
2294 if test "$cross_compiling" = maybe; then
2295 cross_compiling=yes
2296 else
2297 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2298 If you meant to cross compile, use \`--host'.
2299 See \`config.log' for more details." >&5
2300 echo "$as_me: error: cannot run C compiled programs.
2301 If you meant to cross compile, use \`--host'.
2302 See \`config.log' for more details." >&2;}
2303 { (exit 1); exit 1; }; }
2304 fi
2305 fi
2306 fi
2307 { echo "$as_me:$LINENO: result: yes" >&5
2308 echo "${ECHO_T}yes" >&6; }
2309
2310 # Clean up; list also $ac_file, in case it matched a wildcard entry.
2311 rm -f $ac_outfiles $ac_file
2312
2313 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2314 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2315 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2316 echo "${ECHO_T}$cross_compiling" >&6; }
2317
2318 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2319 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2320 if test "${ac_cv_exeext+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 else
2323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2324 (eval $ac_link) 2>&5
2325 ac_status=$?
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; then
2328 # If both `conftest.exe' and `conftest' are `present' (well, observable),
2329 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2330 # work properly (i.e., refer to `conftest.exe'), while it won't with `rm'.
2331 for ac_file in conftest.exe conftest conftest.* NO; do
2332 test -f "$ac_file" || continue
2333 case $ac_file in
2334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2335 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2336 break;;
2337 * ) break;;
2338 esac
2339 done
2340 if test "$ac_file" = NO; then
2341 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: no output file found
2342 See \`config.log' for more details." >&5
2343 echo "$as_me: error: cannot compute suffix of executables: no output file found
2344 See \`config.log' for more details." >&2;}
2345 { (exit 1); exit 1; }; }
2346 fi
2347
2348 # Clean up; list also $ac_file, in case it matched conftest.*.
2349 rm -f $ac_outfiles $ac_file
2350
2351 else
2352 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2353 See \`config.log' for more details." >&5
2354 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2355 See \`config.log' for more details." >&2;}
2356 { (exit 1); exit 1; }; }
2357
2358 fi
2359
2360
2361 fi
2362 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2363 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2364 EXEEXT=$ac_cv_exeext
2365 ac_exeext=$EXEEXT
2366
2367
2368 ac_clean_files=$ac_clean_files_save
2369
2370 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2371 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2372 if test "${ac_cv_objext+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 else
2375 rm -f conftest.o conftest.obj
2376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377 (eval $ac_compile) 2>&5
2378 ac_status=$?
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; then
2381 for ac_file in conftest.o conftest.obj conftest.*; do
2382 test -f "$ac_file" || continue;
2383 case $ac_file in
2384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2385 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2386 break;;
2387 esac
2388 done
2389 else
2390 echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2392
2393 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2394 See \`config.log' for more details." >&5
2395 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2396 See \`config.log' for more details." >&2;}
2397 { (exit 1); exit 1; }; }
2398 fi
2399
2400 fi
2401 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2402 echo "${ECHO_T}$ac_cv_objext" >&6; }
2403 OBJEXT=$ac_cv_objext
2404 ac_objext=$OBJEXT
2405
2406
2407 rm -f conftest.*
2408 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2409 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2410 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2412 else
2413 cat >conftest.$ac_ext <<_ACEOF
2414 /* confdefs.h. */
2415 _ACEOF
2416 cat confdefs.h >>conftest.$ac_ext
2417 cat >>conftest.$ac_ext <<_ACEOF
2418 /* end confdefs.h. */
2419
2420 int
2421 main ()
2422 {
2423 #ifndef __GNUC__
2424 choke me
2425 #endif
2426
2427 ;
2428 return 0;
2429 }
2430 _ACEOF
2431 rm -f conftest.$ac_objext
2432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2433 (eval $ac_compile) 2>conftest.er1
2434 ac_status=$?
2435 grep -v '^ *+' conftest.er1 >conftest.err
2436 rm -f conftest.er1
2437 cat conftest.err >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); } &&
2440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 (eval $ac_try) 2>&5
2443 ac_status=$?
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; } &&
2446 { ac_try='test -s conftest.$ac_objext'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 (eval $ac_try) 2>&5
2449 ac_status=$?
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; }; then
2452 ac_compiler_gnu=yes
2453 else
2454 echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2456
2457 ac_compiler_gnu=no
2458 fi
2459
2460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2461 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2462
2463 fi
2464 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2465 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2466 GCC=`test $ac_compiler_gnu = yes && echo yes`
2467 ac_test_CFLAGS=${CFLAGS+set}
2468 ac_save_CFLAGS=$CFLAGS
2469 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2470 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2471 if test "${ac_cv_prog_cc_g+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2473 else
2474 ac_save_c_werror_flag=$ac_c_werror_flag
2475 ac_c_werror_flag=yes
2476 ac_cv_prog_cc_g=no
2477 CFLAGS="-g"
2478 cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h. */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2484
2485 int
2486 main ()
2487 {
2488
2489 ;
2490 return 0;
2491 }
2492 _ACEOF
2493 rm -f conftest.$ac_objext
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495 (eval $ac_compile) 2>conftest.er1
2496 ac_status=$?
2497 grep -v '^ *+' conftest.er1 >conftest.err
2498 rm -f conftest.er1
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } &&
2502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 (eval $ac_try) 2>&5
2505 ac_status=$?
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; } &&
2508 { ac_try='test -s conftest.$ac_objext'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 (eval $ac_try) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; }; then
2514 ac_cv_prog_cc_g=yes
2515 else
2516 echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2518
2519 CFLAGS=""
2520 cat >conftest.$ac_ext <<_ACEOF
2521 /* confdefs.h. */
2522 _ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2526
2527 int
2528 main ()
2529 {
2530
2531 ;
2532 return 0;
2533 }
2534 _ACEOF
2535 rm -f conftest.$ac_objext
2536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537 (eval $ac_compile) 2>conftest.er1
2538 ac_status=$?
2539 grep -v '^ *+' conftest.er1 >conftest.err
2540 rm -f conftest.er1
2541 cat conftest.err >&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); } &&
2544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 (eval $ac_try) 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; } &&
2550 { ac_try='test -s conftest.$ac_objext'
2551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552 (eval $ac_try) 2>&5
2553 ac_status=$?
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; }; then
2556 :
2557 else
2558 echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.$ac_ext >&5
2560
2561 ac_c_werror_flag=$ac_save_c_werror_flag
2562 CFLAGS="-g"
2563 cat >conftest.$ac_ext <<_ACEOF
2564 /* confdefs.h. */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2569
2570 int
2571 main ()
2572 {
2573
2574 ;
2575 return 0;
2576 }
2577 _ACEOF
2578 rm -f conftest.$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580 (eval $ac_compile) 2>conftest.er1
2581 ac_status=$?
2582 grep -v '^ *+' conftest.er1 >conftest.err
2583 rm -f conftest.er1
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
2587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 (eval $ac_try) 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; } &&
2593 { ac_try='test -s conftest.$ac_objext'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595 (eval $ac_try) 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2599 ac_cv_prog_cc_g=yes
2600 else
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2603
2604
2605 fi
2606
2607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2608 fi
2609
2610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2611 fi
2612
2613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2614 ac_c_werror_flag=$ac_save_c_werror_flag
2615 fi
2616 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2617 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2618 if test "$ac_test_CFLAGS" = set; then
2619 CFLAGS=$ac_save_CFLAGS
2620 elif test $ac_cv_prog_cc_g = yes; then
2621 if test "$GCC" = yes; then
2622 CFLAGS="-g -O2"
2623 else
2624 CFLAGS="-g"
2625 fi
2626 else
2627 if test "$GCC" = yes; then
2628 CFLAGS="-O2"
2629 else
2630 CFLAGS=
2631 fi
2632 fi
2633 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2634 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_cc_c89+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 else
2638 ac_cv_prog_cc_c89=no
2639 ac_save_CC=$CC
2640 cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h. */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2646 #include <stdarg.h>
2647 #include <stdio.h>
2648 #include <sys/types.h>
2649 #include <sys/stat.h>
2650 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2651 struct buf { int x; };
2652 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2653 static char *e (p, i)
2654 char **p;
2655 int i;
2656 {
2657 return p[i];
2658 }
2659 static char *f (char * (*g) (char **, int), char **p, ...)
2660 {
2661 char *s;
2662 va_list v;
2663 va_start (v,p);
2664 s = g (p, va_arg (v,int));
2665 va_end (v);
2666 return s;
2667 }
2668
2669 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2670 function prototypes and stuff, but not '\xHH' hex character constants.
2671 These don't provoke an error unfortunately, instead are silently treated
2672 as 'x'. The following induces an error, until -std is added to get
2673 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2674 array size at least. It's necessary to write '\x00'==0 to get something
2675 that's true only with -std. */
2676 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2677
2678 int test (int i, double x);
2679 struct s1 {int (*f) (int a);};
2680 struct s2 {int (*f) (double a);};
2681 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2682 int argc;
2683 char **argv;
2684 int
2685 main ()
2686 {
2687 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2688 ;
2689 return 0;
2690 }
2691 _ACEOF
2692 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2693 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2694 do
2695 CC="$ac_save_CC $ac_arg"
2696 rm -f conftest.$ac_objext
2697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2698 (eval $ac_compile) 2>conftest.er1
2699 ac_status=$?
2700 grep -v '^ *+' conftest.er1 >conftest.err
2701 rm -f conftest.er1
2702 cat conftest.err >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); } &&
2705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 (eval $ac_try) 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; } &&
2711 { ac_try='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 (eval $ac_try) 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2717 ac_cv_prog_cc_c89=$ac_arg
2718 else
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722
2723 fi
2724
2725 rm -f conftest.err conftest.$ac_objext
2726 test "x$ac_cv_prog_cc_c89" != "xno" && break
2727 done
2728 rm -f conftest.$ac_ext
2729 CC=$ac_save_CC
2730
2731 fi
2732 # AC_CACHE_VAL
2733 case "x$ac_cv_prog_cc_c89" in
2734 x)
2735 { echo "$as_me:$LINENO: result: none needed" >&5
2736 echo "${ECHO_T}none needed" >&6; } ;;
2737 xno)
2738 { echo "$as_me:$LINENO: result: unsupported" >&5
2739 echo "${ECHO_T}unsupported" >&6; } ;;
2740 *)
2741 CC="$CC $ac_cv_prog_cc_c89"
2742 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2743 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2744 esac
2745
2746
2747 ac_ext=c
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752
2753
2754 cat >>confdefs.h <<\_ACEOF
2755 #define _GNU_SOURCE 1
2756 _ACEOF
2757
2758
2759
2760 ac_ext=c
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2766 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2767 # On Suns, sometimes $CPP names a directory.
2768 if test -n "$CPP" && test -d "$CPP"; then
2769 CPP=
2770 fi
2771 if test -z "$CPP"; then
2772 if test "${ac_cv_prog_CPP+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 else
2775 # Double quotes because CPP needs to be expanded
2776 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2777 do
2778 ac_preproc_ok=false
2779 for ac_c_preproc_warn_flag in '' yes
2780 do
2781 # Use a header file that comes with gcc, so configuring glibc
2782 # with a fresh cross-compiler works.
2783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2784 # <limits.h> exists even on freestanding compilers.
2785 # On the NeXT, cc -E runs the code through the compiler's parser,
2786 # not just through cpp. "Syntax error" is here to catch this case.
2787 cat >conftest.$ac_ext <<_ACEOF
2788 /* confdefs.h. */
2789 _ACEOF
2790 cat confdefs.h >>conftest.$ac_ext
2791 cat >>conftest.$ac_ext <<_ACEOF
2792 /* end confdefs.h. */
2793 #ifdef __STDC__
2794 # include <limits.h>
2795 #else
2796 # include <assert.h>
2797 #endif
2798 Syntax error
2799 _ACEOF
2800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2802 ac_status=$?
2803 grep -v '^ *+' conftest.er1 >conftest.err
2804 rm -f conftest.er1
2805 cat conftest.err >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } >/dev/null; then
2808 if test -s conftest.err; then
2809 ac_cpp_err=$ac_c_preproc_warn_flag
2810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2811 else
2812 ac_cpp_err=
2813 fi
2814 else
2815 ac_cpp_err=yes
2816 fi
2817 if test -z "$ac_cpp_err"; then
2818 :
2819 else
2820 echo "$as_me: failed program was:" >&5
2821 sed 's/^/| /' conftest.$ac_ext >&5
2822
2823 # Broken: fails on valid input.
2824 continue
2825 fi
2826
2827 rm -f conftest.err conftest.$ac_ext
2828
2829 # OK, works on sane cases. Now check whether nonexistent headers
2830 # can be detected and how.
2831 cat >conftest.$ac_ext <<_ACEOF
2832 /* confdefs.h. */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2837 #include <ac_nonexistent.h>
2838 _ACEOF
2839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2841 ac_status=$?
2842 grep -v '^ *+' conftest.er1 >conftest.err
2843 rm -f conftest.er1
2844 cat conftest.err >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); } >/dev/null; then
2847 if test -s conftest.err; then
2848 ac_cpp_err=$ac_c_preproc_warn_flag
2849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2850 else
2851 ac_cpp_err=
2852 fi
2853 else
2854 ac_cpp_err=yes
2855 fi
2856 if test -z "$ac_cpp_err"; then
2857 # Broken: success on invalid input.
2858 continue
2859 else
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2862
2863 # Passes both tests.
2864 ac_preproc_ok=:
2865 break
2866 fi
2867
2868 rm -f conftest.err conftest.$ac_ext
2869
2870 done
2871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2872 rm -f conftest.err conftest.$ac_ext
2873 if $ac_preproc_ok; then
2874 break
2875 fi
2876
2877 done
2878 ac_cv_prog_CPP=$CPP
2879
2880 fi
2881 CPP=$ac_cv_prog_CPP
2882 else
2883 ac_cv_prog_CPP=$CPP
2884 fi
2885 { echo "$as_me:$LINENO: result: $CPP" >&5
2886 echo "${ECHO_T}$CPP" >&6; }
2887 ac_preproc_ok=false
2888 for ac_c_preproc_warn_flag in '' yes
2889 do
2890 # Use a header file that comes with gcc, so configuring glibc
2891 # with a fresh cross-compiler works.
2892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2893 # <limits.h> exists even on freestanding compilers.
2894 # On the NeXT, cc -E runs the code through the compiler's parser,
2895 # not just through cpp. "Syntax error" is here to catch this case.
2896 cat >conftest.$ac_ext <<_ACEOF
2897 /* confdefs.h. */
2898 _ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2902 #ifdef __STDC__
2903 # include <limits.h>
2904 #else
2905 # include <assert.h>
2906 #endif
2907 Syntax error
2908 _ACEOF
2909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2911 ac_status=$?
2912 grep -v '^ *+' conftest.er1 >conftest.err
2913 rm -f conftest.er1
2914 cat conftest.err >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); } >/dev/null; then
2917 if test -s conftest.err; then
2918 ac_cpp_err=$ac_c_preproc_warn_flag
2919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2920 else
2921 ac_cpp_err=
2922 fi
2923 else
2924 ac_cpp_err=yes
2925 fi
2926 if test -z "$ac_cpp_err"; then
2927 :
2928 else
2929 echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2931
2932 # Broken: fails on valid input.
2933 continue
2934 fi
2935
2936 rm -f conftest.err conftest.$ac_ext
2937
2938 # OK, works on sane cases. Now check whether nonexistent headers
2939 # can be detected and how.
2940 cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h. */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2946 #include <ac_nonexistent.h>
2947 _ACEOF
2948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950 ac_status=$?
2951 grep -v '^ *+' conftest.er1 >conftest.err
2952 rm -f conftest.er1
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } >/dev/null; then
2956 if test -s conftest.err; then
2957 ac_cpp_err=$ac_c_preproc_warn_flag
2958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2959 else
2960 ac_cpp_err=
2961 fi
2962 else
2963 ac_cpp_err=yes
2964 fi
2965 if test -z "$ac_cpp_err"; then
2966 # Broken: success on invalid input.
2967 continue
2968 else
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2971
2972 # Passes both tests.
2973 ac_preproc_ok=:
2974 break
2975 fi
2976
2977 rm -f conftest.err conftest.$ac_ext
2978
2979 done
2980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2981 rm -f conftest.err conftest.$ac_ext
2982 if $ac_preproc_ok; then
2983 :
2984 else
2985 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2986 See \`config.log' for more details." >&5
2987 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2988 See \`config.log' for more details." >&2;}
2989 { (exit 1); exit 1; }; }
2990 fi
2991
2992 ac_ext=c
2993 ac_cpp='$CPP $CPPFLAGS'
2994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2997
2998
2999 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3000 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3001 if test "${ac_cv_path_GREP+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 else
3004 # Extract the first word of "grep ggrep" to use in msg output
3005 if test -z "$GREP"; then
3006 set dummy grep ggrep; ac_prog_name=$2
3007 if test "${ac_cv_path_GREP+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3009 else
3010 ac_path_GREP_found=false
3011 # Loop through the user's path and test for each of PROGNAME-LIST
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3014 do
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 for ac_prog in grep ggrep; do
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3020 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3021 # Check for GNU ac_path_GREP and select it if it is found.
3022 # Check for GNU $ac_path_GREP
3023 case `"$ac_path_GREP" --version 2>&1` in
3024 *GNU*)
3025 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3026 *)
3027 ac_count=0
3028 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3029 while :
3030 do
3031 cat "conftest.in" "conftest.in" >"conftest.tmp"
3032 mv "conftest.tmp" "conftest.in"
3033 cp "conftest.in" "conftest.nl"
3034 echo 'GREP' >> "conftest.nl"
3035 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3037 ac_count=`expr $ac_count + 1`
3038 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3039 # Best one so far, save it but keep looking for a better one
3040 ac_cv_path_GREP="$ac_path_GREP"
3041 ac_path_GREP_max=$ac_count
3042 fi
3043 # 10*(2^10) chars as input seems more than enough
3044 test $ac_count -gt 10 && break
3045 done
3046 rm -f conftest.*;;
3047 esac
3048
3049
3050 $ac_path_GREP_found && break 3
3051 done
3052 done
3053
3054 done
3055 IFS=$as_save_IFS
3056
3057
3058 fi
3059
3060 GREP="$ac_cv_path_GREP"
3061 if test -z "$GREP"; then
3062 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3063 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3064 { (exit 1); exit 1; }; }
3065 fi
3066
3067 else
3068 ac_cv_path_GREP=$GREP
3069 fi
3070
3071
3072 fi
3073 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3074 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3075 GREP="$ac_cv_path_GREP"
3076
3077
3078 { echo "$as_me:$LINENO: checking for egrep" >&5
3079 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3080 if test "${ac_cv_path_EGREP+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3084 then ac_cv_path_EGREP="$GREP -E"
3085 else
3086 # Extract the first word of "egrep" to use in msg output
3087 if test -z "$EGREP"; then
3088 set dummy egrep; ac_prog_name=$2
3089 if test "${ac_cv_path_EGREP+set}" = set; then
3090 echo $ECHO_N "(cached) $ECHO_C" >&6
3091 else
3092 ac_path_EGREP_found=false
3093 # Loop through the user's path and test for each of PROGNAME-LIST
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3096 do
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
3099 for ac_prog in egrep; do
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3102 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3103 # Check for GNU ac_path_EGREP and select it if it is found.
3104 # Check for GNU $ac_path_EGREP
3105 case `"$ac_path_EGREP" --version 2>&1` in
3106 *GNU*)
3107 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3108 *)
3109 ac_count=0
3110 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3111 while :
3112 do
3113 cat "conftest.in" "conftest.in" >"conftest.tmp"
3114 mv "conftest.tmp" "conftest.in"
3115 cp "conftest.in" "conftest.nl"
3116 echo 'EGREP' >> "conftest.nl"
3117 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3119 ac_count=`expr $ac_count + 1`
3120 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3121 # Best one so far, save it but keep looking for a better one
3122 ac_cv_path_EGREP="$ac_path_EGREP"
3123 ac_path_EGREP_max=$ac_count
3124 fi
3125 # 10*(2^10) chars as input seems more than enough
3126 test $ac_count -gt 10 && break
3127 done
3128 rm -f conftest.*;;
3129 esac
3130
3131
3132 $ac_path_EGREP_found && break 3
3133 done
3134 done
3135
3136 done
3137 IFS=$as_save_IFS
3138
3139
3140 fi
3141
3142 EGREP="$ac_cv_path_EGREP"
3143 if test -z "$EGREP"; then
3144 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3145 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3146 { (exit 1); exit 1; }; }
3147 fi
3148
3149 else
3150 ac_cv_path_EGREP=$EGREP
3151 fi
3152
3153
3154 fi
3155 fi
3156 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3157 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3158 EGREP="$ac_cv_path_EGREP"
3159
3160
3161
3162 { echo "$as_me:$LINENO: checking for AIX" >&5
3163 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3164 cat >conftest.$ac_ext <<_ACEOF
3165 /* confdefs.h. */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3170 #ifdef _AIX
3171 yes
3172 #endif
3173
3174 _ACEOF
3175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3176 $EGREP "yes" >/dev/null 2>&1; then
3177 { echo "$as_me:$LINENO: result: yes" >&5
3178 echo "${ECHO_T}yes" >&6; }
3179 cat >>confdefs.h <<\_ACEOF
3180 #define _ALL_SOURCE 1
3181 _ACEOF
3182
3183 else
3184 { echo "$as_me:$LINENO: result: no" >&5
3185 echo "${ECHO_T}no" >&6; }
3186 fi
3187 rm -f conftest*
3188
3189
3190 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3191 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3192 if test "${ac_cv_search_strerror+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 else
3195 ac_func_search_save_LIBS=$LIBS
3196 cat >conftest.$ac_ext <<_ACEOF
3197 /* confdefs.h. */
3198 _ACEOF
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h. */
3202
3203 /* Override any GCC internal prototype to avoid an error.
3204 Use char because int might match the return type of a GCC
3205 builtin and then its argument prototype would still apply. */
3206 #ifdef __cplusplus
3207 extern "C"
3208 #endif
3209 char strerror ();
3210 int
3211 main ()
3212 {
3213 return strerror ();
3214 ;
3215 return 0;
3216 }
3217 _ACEOF
3218 for ac_lib in '' cposix; do
3219 if test -z "$ac_lib"; then
3220 ac_res="none required"
3221 else
3222 ac_res=-l$ac_lib
3223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3224 fi
3225 rm -f conftest.$ac_objext conftest$ac_exeext
3226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3227 (eval $ac_link) 2>conftest.er1
3228 ac_status=$?
3229 grep -v '^ *+' conftest.er1 >conftest.err
3230 rm -f conftest.er1
3231 cat conftest.err >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); } &&
3234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 (eval $ac_try) 2>&5
3237 ac_status=$?
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; } &&
3240 { ac_try='test -s conftest$ac_exeext'
3241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 (eval $ac_try) 2>&5
3243 ac_status=$?
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); }; }; then
3246 ac_cv_search_strerror=$ac_res
3247 else
3248 echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3250
3251
3252 fi
3253
3254 rm -f conftest.err conftest.$ac_objext \
3255 conftest$ac_exeext
3256 if test "${ac_cv_search_strerror+set}" = set; then
3257 break
3258 fi
3259 done
3260 if test "${ac_cv_search_strerror+set}" = set; then
3261 :
3262 else
3263 ac_cv_search_strerror=no
3264 fi
3265 rm conftest.$ac_ext
3266 LIBS=$ac_func_search_save_LIBS
3267 fi
3268 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3269 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3270 ac_res=$ac_cv_search_strerror
3271 if test "$ac_res" != no; then
3272 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3273
3274 fi
3275
3276
3277
3278
3279 { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3280 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
3281 if test "${am_cv_prog_cc_stdc+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284 am_cv_prog_cc_stdc=no
3285 ac_save_CC="$CC"
3286 # Don't try gcc -ansi; that turns off useful extensions and
3287 # breaks some systems' header files.
3288 # AIX -qlanglvl=ansi
3289 # Ultrix and OSF/1 -std1
3290 # HP-UX 10.20 and later -Ae
3291 # HP-UX older versions -Aa -D_HPUX_SOURCE
3292 # SVR4 -Xc -D__EXTENSIONS__
3293 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3294 do
3295 CC="$ac_save_CC $ac_arg"
3296 cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h. */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3302 #include <stdarg.h>
3303 #include <stdio.h>
3304 #include <sys/types.h>
3305 #include <sys/stat.h>
3306 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3307 struct buf { int x; };
3308 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3309 static char *e (p, i)
3310 char **p;
3311 int i;
3312 {
3313 return p[i];
3314 }
3315 static char *f (char * (*g) (char **, int), char **p, ...)
3316 {
3317 char *s;
3318 va_list v;
3319 va_start (v,p);
3320 s = g (p, va_arg (v,int));
3321 va_end (v);
3322 return s;
3323 }
3324 int test (int i, double x);
3325 struct s1 {int (*f) (int a);};
3326 struct s2 {int (*f) (double a);};
3327 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3328 int argc;
3329 char **argv;
3330
3331 int
3332 main ()
3333 {
3334
3335 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3336
3337 ;
3338 return 0;
3339 }
3340 _ACEOF
3341 rm -f conftest.$ac_objext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343 (eval $ac_compile) 2>conftest.er1
3344 ac_status=$?
3345 grep -v '^ *+' conftest.er1 >conftest.err
3346 rm -f conftest.er1
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } &&
3350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 (eval $ac_try) 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; } &&
3356 { ac_try='test -s conftest.$ac_objext'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 (eval $ac_try) 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3362 am_cv_prog_cc_stdc="$ac_arg"; break
3363 else
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367
3368 fi
3369
3370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3371 done
3372 CC="$ac_save_CC"
3373
3374 fi
3375
3376 if test -z "$am_cv_prog_cc_stdc"; then
3377 { echo "$as_me:$LINENO: result: none needed" >&5
3378 echo "${ECHO_T}none needed" >&6; }
3379 else
3380 { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3381 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
3382 fi
3383 case "x$am_cv_prog_cc_stdc" in
3384 x|xno) ;;
3385 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3386 esac
3387
3388
3389 ac_aux_dir=
3390 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
3391 if test -f $ac_dir/install-sh; then
3392 ac_aux_dir=$ac_dir
3393 ac_install_sh="$ac_aux_dir/install-sh -c"
3394 break
3395 elif test -f $ac_dir/install.sh; then
3396 ac_aux_dir=$ac_dir
3397 ac_install_sh="$ac_aux_dir/install.sh -c"
3398 break
3399 elif test -f $ac_dir/shtool; then
3400 ac_aux_dir=$ac_dir
3401 ac_install_sh="$ac_aux_dir/shtool install -c"
3402 break
3403 fi
3404 done
3405 if test -z "$ac_aux_dir"; then
3406 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
3407 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
3408 { (exit 1); exit 1; }; }
3409 fi
3410 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3411 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3412 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3413
3414 # Make sure we can run config.sub.
3415 $ac_config_sub sun4 >/dev/null 2>&1 ||
3416 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3417 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3418 { (exit 1); exit 1; }; }
3419
3420 { echo "$as_me:$LINENO: checking build system type" >&5
3421 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3422 if test "${ac_cv_build+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425 ac_build_alias=$build_alias
3426 test "x$ac_build_alias" = x &&
3427 ac_build_alias=`$ac_config_guess`
3428 test "x$ac_build_alias" = x &&
3429 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3430 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3431 { (exit 1); exit 1; }; }
3432 ac_cv_build=`$ac_config_sub $ac_build_alias` ||
3433 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_build_alias failed" >&5
3434 echo "$as_me: error: $ac_config_sub $ac_build_alias failed" >&2;}
3435 { (exit 1); exit 1; }; }
3436
3437 fi
3438 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3439 echo "${ECHO_T}$ac_cv_build" >&6; }
3440 case $ac_cv_build in
3441 *-*-*) ;;
3442 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3443 echo "$as_me: error: invalid value of canonical build" >&2;}
3444 { (exit 1); exit 1; }; };;
3445 esac
3446 build=$ac_cv_build
3447 ac_save_IFS=$IFS; IFS='-'
3448 set x $ac_cv_build
3449 shift
3450 build_cpu=$1
3451 build_vendor=$2
3452 shift; shift
3453 # Remember, the first character of IFS is used to create $*,
3454 # except with old shells:
3455 build_os=$*
3456 IFS=$ac_save_IFS
3457 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3458
3459
3460 { echo "$as_me:$LINENO: checking host system type" >&5
3461 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3462 if test "${ac_cv_host+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465 if test "x$host_alias" = x; then
3466 ac_cv_host=$ac_cv_build
3467 else
3468 ac_cv_host=`$ac_config_sub $host_alias` ||
3469 { { echo "$as_me:$LINENO: error: $ac_config_sub $host_alias failed" >&5
3470 echo "$as_me: error: $ac_config_sub $host_alias failed" >&2;}
3471 { (exit 1); exit 1; }; }
3472 fi
3473
3474 fi
3475 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3476 echo "${ECHO_T}$ac_cv_host" >&6; }
3477 case $ac_cv_host in
3478 *-*-*) ;;
3479 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3480 echo "$as_me: error: invalid value of canonical host" >&2;}
3481 { (exit 1); exit 1; }; };;
3482 esac
3483 host=$ac_cv_host
3484 ac_save_IFS=$IFS; IFS='-'
3485 set x $ac_cv_host
3486 shift
3487 host_cpu=$1
3488 host_vendor=$2
3489 shift; shift
3490 # Remember, the first character of IFS is used to create $*,
3491 # except with old shells:
3492 host_os=$*
3493 IFS=$ac_save_IFS
3494 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3495
3496
3497 { echo "$as_me:$LINENO: checking target system type" >&5
3498 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3499 if test "${ac_cv_target+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502 if test "x$target_alias" = x; then
3503 ac_cv_target=$ac_cv_host
3504 else
3505 ac_cv_target=`$ac_config_sub $target_alias` ||
3506 { { echo "$as_me:$LINENO: error: $ac_config_sub $target_alias failed" >&5
3507 echo "$as_me: error: $ac_config_sub $target_alias failed" >&2;}
3508 { (exit 1); exit 1; }; }
3509 fi
3510
3511 fi
3512 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3513 echo "${ECHO_T}$ac_cv_target" >&6; }
3514 case $ac_cv_target in
3515 *-*-*) ;;
3516 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3517 echo "$as_me: error: invalid value of canonical target" >&2;}
3518 { (exit 1); exit 1; }; };;
3519 esac
3520 target=$ac_cv_target
3521 ac_save_IFS=$IFS; IFS='-'
3522 set x $ac_cv_target
3523 shift
3524 target_cpu=$1
3525 target_vendor=$2
3526 shift; shift
3527 # Remember, the first character of IFS is used to create $*,
3528 # except with old shells:
3529 target_os=$*
3530 IFS=$ac_save_IFS
3531 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3532
3533
3534 # The aliases save the names the user supplied, while $host etc.
3535 # will get canonicalized.
3536 test -n "$target_alias" &&
3537 test "$program_prefix$program_suffix$program_transform_name" = \
3538 NONENONEs,x,x, &&
3539 program_prefix=${target_alias}-
3540
3541
3542 CONFIG_OBS=
3543 CONFIG_DEPS=
3544 CONFIG_SRCS=
3545 ENABLE_CFLAGS=
3546
3547 CONFIG_ALL=
3548 CONFIG_CLEAN=
3549 CONFIG_INSTALL=
3550 CONFIG_UNINSTALL=
3551
3552
3553 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3554 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3555 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3556 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 else
3559 cat >conftest.make <<\_ACEOF
3560 SHELL = /bin/sh
3561 all:
3562 @echo 'ac_maketemp=X"$(MAKE)"'
3563 _ACEOF
3564 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3565 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3566 if test "$ac_maketemp" != X ; then
3567 eval ac_cv_prog_make_${ac_make}_set=yes
3568 else
3569 eval ac_cv_prog_make_${ac_make}_set=no
3570 fi
3571 rm -f conftest.make
3572 fi
3573 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3574 { echo "$as_me:$LINENO: result: yes" >&5
3575 echo "${ECHO_T}yes" >&6; }
3576 SET_MAKE=
3577 else
3578 { echo "$as_me:$LINENO: result: no" >&5
3579 echo "${ECHO_T}no" >&6; }
3580 SET_MAKE="MAKE=${MAKE-make}"
3581 fi
3582
3583 if test -n "$ac_tool_prefix"; then
3584 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3585 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3588 if test "${ac_cv_prog_RANLIB+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3590 else
3591 if test -n "$RANLIB"; then
3592 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3596 do
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 break 2
3604 fi
3605 done
3606 done
3607 IFS=$as_save_IFS
3608
3609 fi
3610 fi
3611 RANLIB=$ac_cv_prog_RANLIB
3612 if test -n "$RANLIB"; then
3613 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3614 echo "${ECHO_T}$RANLIB" >&6; }
3615 else
3616 { echo "$as_me:$LINENO: result: no" >&5
3617 echo "${ECHO_T}no" >&6; }
3618 fi
3619
3620
3621 fi
3622 if test -z "$ac_cv_prog_RANLIB"; then
3623 ac_ct_RANLIB=$RANLIB
3624 # Extract the first word of "ranlib", so it can be a program name with args.
3625 set dummy ranlib; ac_word=$2
3626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3628 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631 if test -n "$ac_ct_RANLIB"; then
3632 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3633 else
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH
3636 do
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3641 ac_cv_prog_ac_ct_RANLIB="ranlib"
3642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3643 break 2
3644 fi
3645 done
3646 done
3647 IFS=$as_save_IFS
3648
3649 fi
3650 fi
3651 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3652 if test -n "$ac_ct_RANLIB"; then
3653 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3654 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3655 else
3656 { echo "$as_me:$LINENO: result: no" >&5
3657 echo "${ECHO_T}no" >&6; }
3658 fi
3659
3660 if test "x$ac_ct_RANLIB" = x; then
3661 RANLIB=":"
3662 else
3663 case $cross_compiling:$ac_tool_warned in
3664 yes:)
3665 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3666 whose name does not start with the host triplet. If you think this
3667 configuration is useful to you, please write to autoconf@gnu.org." >&5
3668 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3669 whose name does not start with the host triplet. If you think this
3670 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3671 ac_tool_warned=yes ;;
3672 esac
3673 RANLIB=$ac_ct_RANLIB
3674 fi
3675 else
3676 RANLIB="$ac_cv_prog_RANLIB"
3677 fi
3678
3679 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3680 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3681 if test "${ac_cv_header_stdc+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3683 else
3684 cat >conftest.$ac_ext <<_ACEOF
3685 /* confdefs.h. */
3686 _ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3690 #include <stdlib.h>
3691 #include <stdarg.h>
3692 #include <string.h>
3693 #include <float.h>
3694
3695 int
3696 main ()
3697 {
3698
3699 ;
3700 return 0;
3701 }
3702 _ACEOF
3703 rm -f conftest.$ac_objext
3704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3705 (eval $ac_compile) 2>conftest.er1
3706 ac_status=$?
3707 grep -v '^ *+' conftest.er1 >conftest.err
3708 rm -f conftest.er1
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 (eval $ac_try) 2>&5
3715 ac_status=$?
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; } &&
3718 { ac_try='test -s conftest.$ac_objext'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 (eval $ac_try) 2>&5
3721 ac_status=$?
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; }; then
3724 ac_cv_header_stdc=yes
3725 else
3726 echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3728
3729 ac_cv_header_stdc=no
3730 fi
3731
3732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3733
3734 if test $ac_cv_header_stdc = yes; then
3735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3736 cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h. */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3742 #include <string.h>
3743
3744 _ACEOF
3745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3746 $EGREP "memchr" >/dev/null 2>&1; then
3747 :
3748 else
3749 ac_cv_header_stdc=no
3750 fi
3751 rm -f conftest*
3752
3753 fi
3754
3755 if test $ac_cv_header_stdc = yes; then
3756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3757 cat >conftest.$ac_ext <<_ACEOF
3758 /* confdefs.h. */
3759 _ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h. */
3763 #include <stdlib.h>
3764
3765 _ACEOF
3766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3767 $EGREP "free" >/dev/null 2>&1; then
3768 :
3769 else
3770 ac_cv_header_stdc=no
3771 fi
3772 rm -f conftest*
3773
3774 fi
3775
3776 if test $ac_cv_header_stdc = yes; then
3777 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3778 if test "$cross_compiling" = yes; then
3779 :
3780 else
3781 cat >conftest.$ac_ext <<_ACEOF
3782 /* confdefs.h. */
3783 _ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h. */
3787 #include <ctype.h>
3788 #include <stdlib.h>
3789 #if ((' ' & 0x0FF) == 0x020)
3790 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3791 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3792 #else
3793 # define ISLOWER(c) \
3794 (('a' <= (c) && (c) <= 'i') \
3795 || ('j' <= (c) && (c) <= 'r') \
3796 || ('s' <= (c) && (c) <= 'z'))
3797 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3798 #endif
3799
3800 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3801 int
3802 main ()
3803 {
3804 int i;
3805 for (i = 0; i < 256; i++)
3806 if (XOR (islower (i), ISLOWER (i))
3807 || toupper (i) != TOUPPER (i))
3808 return 2;
3809 return 0;
3810 }
3811 _ACEOF
3812 rm -f conftest$ac_exeext
3813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3814 (eval $ac_link) 2>&5
3815 ac_status=$?
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 (eval $ac_try) 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3823 :
3824 else
3825 echo "$as_me: program exited with status $ac_status" >&5
3826 echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3828
3829 ( exit $ac_status )
3830 ac_cv_header_stdc=no
3831 fi
3832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3833 fi
3834
3835
3836 fi
3837 fi
3838 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3839 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3840 if test $ac_cv_header_stdc = yes; then
3841
3842 cat >>confdefs.h <<\_ACEOF
3843 #define STDC_HEADERS 1
3844 _ACEOF
3845
3846 fi
3847
3848 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3849 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3850 if test "${ac_cv_c_const+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853 cat >conftest.$ac_ext <<_ACEOF
3854 /* confdefs.h. */
3855 _ACEOF
3856 cat confdefs.h >>conftest.$ac_ext
3857 cat >>conftest.$ac_ext <<_ACEOF
3858 /* end confdefs.h. */
3859
3860 int
3861 main ()
3862 {
3863 /* FIXME: Include the comments suggested by Paul. */
3864 #ifndef __cplusplus
3865 /* Ultrix mips cc rejects this. */
3866 typedef int charset[2];
3867 const charset x;
3868 /* SunOS 4.1.1 cc rejects this. */
3869 char const *const *ccp;
3870 char **p;
3871 /* NEC SVR4.0.2 mips cc rejects this. */
3872 struct point {int x, y;};
3873 static struct point const zero = {0,0};
3874 /* AIX XL C 1.02.0.0 rejects this.
3875 It does not let you subtract one const X* pointer from another in
3876 an arm of an if-expression whose if-part is not a constant
3877 expression */
3878 const char *g = "string";
3879 ccp = &g + (g ? g-g : 0);
3880 /* HPUX 7.0 cc rejects these. */
3881 ++ccp;
3882 p = (char**) ccp;
3883 ccp = (char const *const *) p;
3884 { /* SCO 3.2v4 cc rejects this. */
3885 char *t;
3886 char const *s = 0 ? (char *) 0 : (char const *) 0;
3887
3888 *t++ = 0;
3889 if (s) return 0;
3890 }
3891 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3892 int x[] = {25, 17};
3893 const int *foo = &x[0];
3894 ++foo;
3895 }
3896 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3897 typedef const int *iptr;
3898 iptr p = 0;
3899 ++p;
3900 }
3901 { /* AIX XL C 1.02.0.0 rejects this saying
3902 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3903 struct s { int j; const int *ap[3]; };
3904 struct s *b; b->j = 5;
3905 }
3906 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3907 const int foo = 10;
3908 if (!foo) return 0;
3909 }
3910 return !x[0] && !zero.x;
3911 #endif
3912
3913 ;
3914 return 0;
3915 }
3916 _ACEOF
3917 rm -f conftest.$ac_objext
3918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3919 (eval $ac_compile) 2>conftest.er1
3920 ac_status=$?
3921 grep -v '^ *+' conftest.er1 >conftest.err
3922 rm -f conftest.er1
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } &&
3926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928 (eval $ac_try) 2>&5
3929 ac_status=$?
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; } &&
3932 { ac_try='test -s conftest.$ac_objext'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 (eval $ac_try) 2>&5
3935 ac_status=$?
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; }; then
3938 ac_cv_c_const=yes
3939 else
3940 echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3942
3943 ac_cv_c_const=no
3944 fi
3945
3946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3947 fi
3948 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3949 echo "${ECHO_T}$ac_cv_c_const" >&6; }
3950 if test $ac_cv_c_const = no; then
3951
3952 cat >>confdefs.h <<\_ACEOF
3953 #define const
3954 _ACEOF
3955
3956 fi
3957
3958 { echo "$as_me:$LINENO: checking for inline" >&5
3959 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3960 if test "${ac_cv_c_inline+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963 ac_cv_c_inline=no
3964 for ac_kw in inline __inline__ __inline; do
3965 cat >conftest.$ac_ext <<_ACEOF
3966 /* confdefs.h. */
3967 _ACEOF
3968 cat confdefs.h >>conftest.$ac_ext
3969 cat >>conftest.$ac_ext <<_ACEOF
3970 /* end confdefs.h. */
3971 #ifndef __cplusplus
3972 typedef int foo_t;
3973 static $ac_kw foo_t static_foo () {return 0; }
3974 $ac_kw foo_t foo () {return 0; }
3975 #endif
3976
3977 _ACEOF
3978 rm -f conftest.$ac_objext
3979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>conftest.er1
3981 ac_status=$?
3982 grep -v '^ *+' conftest.er1 >conftest.err
3983 rm -f conftest.er1
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 (eval $ac_try) 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; } &&
3993 { ac_try='test -s conftest.$ac_objext'
3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995 (eval $ac_try) 2>&5
3996 ac_status=$?
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
3999 ac_cv_c_inline=$ac_kw
4000 else
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4003
4004
4005 fi
4006
4007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4008 test "$ac_cv_c_inline" != no && break
4009 done
4010
4011 fi
4012 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4013 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4014
4015
4016 case $ac_cv_c_inline in
4017 inline | yes) ;;
4018 *)
4019 case $ac_cv_c_inline in
4020 no) ac_val=;;
4021 *) ac_val=$ac_cv_c_inline;;
4022 esac
4023 cat >>confdefs.h <<_ACEOF
4024 #ifndef __cplusplus
4025 #define inline $ac_val
4026 #endif
4027 _ACEOF
4028 ;;
4029 esac
4030
4031 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4042 inttypes.h stdint.h unistd.h
4043 do
4044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050 cat >conftest.$ac_ext <<_ACEOF
4051 /* confdefs.h. */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4056 $ac_includes_default
4057
4058 #include <$ac_header>
4059 _ACEOF
4060 rm -f conftest.$ac_objext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4062 (eval $ac_compile) 2>conftest.er1
4063 ac_status=$?
4064 grep -v '^ *+' conftest.er1 >conftest.err
4065 rm -f conftest.er1
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } &&
4069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 (eval $ac_try) 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; } &&
4075 { ac_try='test -s conftest.$ac_objext'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
4081 eval "$as_ac_Header=yes"
4082 else
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4085
4086 eval "$as_ac_Header=no"
4087 fi
4088
4089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4090 fi
4091 ac_res=`eval echo '${'$as_ac_Header'}'`
4092 { echo "$as_me:$LINENO: result: $ac_res" >&5
4093 echo "${ECHO_T}$ac_res" >&6; }
4094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4095 cat >>confdefs.h <<_ACEOF
4096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4097 _ACEOF
4098
4099 fi
4100
4101 done
4102
4103
4104 { echo "$as_me:$LINENO: checking for off_t" >&5
4105 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
4106 if test "${ac_cv_type_off_t+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 else
4109 cat >conftest.$ac_ext <<_ACEOF
4110 /* confdefs.h. */
4111 _ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4115 $ac_includes_default
4116 typedef off_t ac__type_new_;
4117 int
4118 main ()
4119 {
4120 if ((ac__type_new_ *) 0)
4121 return 0;
4122 if (sizeof (ac__type_new_))
4123 return 0;
4124 ;
4125 return 0;
4126 }
4127 _ACEOF
4128 rm -f conftest.$ac_objext
4129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4130 (eval $ac_compile) 2>conftest.er1
4131 ac_status=$?
4132 grep -v '^ *+' conftest.er1 >conftest.err
4133 rm -f conftest.er1
4134 cat conftest.err >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } &&
4137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 (eval $ac_try) 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; } &&
4143 { ac_try='test -s conftest.$ac_objext'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 (eval $ac_try) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; }; then
4149 ac_cv_type_off_t=yes
4150 else
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4153
4154 ac_cv_type_off_t=no
4155 fi
4156
4157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4158 fi
4159 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4160 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
4161 if test $ac_cv_type_off_t = yes; then
4162 :
4163 else
4164
4165 cat >>confdefs.h <<_ACEOF
4166 #define off_t long int
4167 _ACEOF
4168
4169 fi
4170
4171 { echo "$as_me:$LINENO: checking for size_t" >&5
4172 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4173 if test "${ac_cv_type_size_t+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 else
4176 cat >conftest.$ac_ext <<_ACEOF
4177 /* confdefs.h. */
4178 _ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h. */
4182 $ac_includes_default
4183 typedef size_t ac__type_new_;
4184 int
4185 main ()
4186 {
4187 if ((ac__type_new_ *) 0)
4188 return 0;
4189 if (sizeof (ac__type_new_))
4190 return 0;
4191 ;
4192 return 0;
4193 }
4194 _ACEOF
4195 rm -f conftest.$ac_objext
4196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4197 (eval $ac_compile) 2>conftest.er1
4198 ac_status=$?
4199 grep -v '^ *+' conftest.er1 >conftest.err
4200 rm -f conftest.er1
4201 cat conftest.err >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
4204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 (eval $ac_try) 2>&5
4207 ac_status=$?
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; } &&
4210 { ac_try='test -s conftest.$ac_objext'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 (eval $ac_try) 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; }; then
4216 ac_cv_type_size_t=yes
4217 else
4218 echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4220
4221 ac_cv_type_size_t=no
4222 fi
4223
4224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4225 fi
4226 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4227 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4228 if test $ac_cv_type_size_t = yes; then
4229 :
4230 else
4231
4232 cat >>confdefs.h <<_ACEOF
4233 #define size_t unsigned int
4234 _ACEOF
4235
4236 fi
4237
4238 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4239 # for constant arguments. Useless!
4240 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
4241 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
4242 if test "${ac_cv_working_alloca_h+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245 cat >conftest.$ac_ext <<_ACEOF
4246 /* confdefs.h. */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4251 #include <alloca.h>
4252 int
4253 main ()
4254 {
4255 char *p = (char *) alloca (2 * sizeof (int));
4256 ;
4257 return 0;
4258 }
4259 _ACEOF
4260 rm -f conftest.$ac_objext conftest$ac_exeext
4261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4262 (eval $ac_link) 2>conftest.er1
4263 ac_status=$?
4264 grep -v '^ *+' conftest.er1 >conftest.err
4265 rm -f conftest.er1
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 (eval $ac_try) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; } &&
4275 { ac_try='test -s conftest$ac_exeext'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277 (eval $ac_try) 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 ac_cv_working_alloca_h=yes
4282 else
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4285
4286 ac_cv_working_alloca_h=no
4287 fi
4288
4289 rm -f conftest.err conftest.$ac_objext \
4290 conftest$ac_exeext conftest.$ac_ext
4291 fi
4292 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4293 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
4294 if test $ac_cv_working_alloca_h = yes; then
4295
4296 cat >>confdefs.h <<\_ACEOF
4297 #define HAVE_ALLOCA_H 1
4298 _ACEOF
4299
4300 fi
4301
4302 { echo "$as_me:$LINENO: checking for alloca" >&5
4303 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
4304 if test "${ac_cv_func_alloca_works+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 else
4307 cat >conftest.$ac_ext <<_ACEOF
4308 /* confdefs.h. */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4313 #ifdef __GNUC__
4314 # define alloca __builtin_alloca
4315 #else
4316 # ifdef _MSC_VER
4317 # include <malloc.h>
4318 # define alloca _alloca
4319 # else
4320 # if HAVE_ALLOCA_H
4321 # include <alloca.h>
4322 # else
4323 # ifdef _AIX
4324 #pragma alloca
4325 # else
4326 # ifndef alloca /* predefined by HP cc +Olibcalls */
4327 char *alloca ();
4328 # endif
4329 # endif
4330 # endif
4331 # endif
4332 #endif
4333
4334 int
4335 main ()
4336 {
4337 char *p = (char *) alloca (1);
4338 ;
4339 return 0;
4340 }
4341 _ACEOF
4342 rm -f conftest.$ac_objext conftest$ac_exeext
4343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4344 (eval $ac_link) 2>conftest.er1
4345 ac_status=$?
4346 grep -v '^ *+' conftest.er1 >conftest.err
4347 rm -f conftest.er1
4348 cat conftest.err >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } &&
4351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 (eval $ac_try) 2>&5
4354 ac_status=$?
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; } &&
4357 { ac_try='test -s conftest$ac_exeext'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 (eval $ac_try) 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 ac_cv_func_alloca_works=yes
4364 else
4365 echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4367
4368 ac_cv_func_alloca_works=no
4369 fi
4370
4371 rm -f conftest.err conftest.$ac_objext \
4372 conftest$ac_exeext conftest.$ac_ext
4373 fi
4374 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4375 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
4376
4377 if test $ac_cv_func_alloca_works = yes; then
4378
4379 cat >>confdefs.h <<\_ACEOF
4380 #define HAVE_ALLOCA 1
4381 _ACEOF
4382
4383 else
4384 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4385 # that cause trouble. Some versions do not even contain alloca or
4386 # contain a buggy version. If you still want to use their alloca,
4387 # use ar to extract alloca.o from them instead of compiling alloca.c.
4388
4389 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4390
4391 cat >>confdefs.h <<\_ACEOF
4392 #define C_ALLOCA 1
4393 _ACEOF
4394
4395
4396 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4397 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
4398 if test "${ac_cv_os_cray+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401 cat >conftest.$ac_ext <<_ACEOF
4402 /* confdefs.h. */
4403 _ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h. */
4407 #if defined CRAY && ! defined CRAY2
4408 webecray
4409 #else
4410 wenotbecray
4411 #endif
4412
4413 _ACEOF
4414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415 $EGREP "webecray" >/dev/null 2>&1; then
4416 ac_cv_os_cray=yes
4417 else
4418 ac_cv_os_cray=no
4419 fi
4420 rm -f conftest*
4421
4422 fi
4423 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4424 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
4425 if test $ac_cv_os_cray = yes; then
4426 for ac_func in _getb67 GETB67 getb67; do
4427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4428 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4430 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 else
4433 cat >conftest.$ac_ext <<_ACEOF
4434 /* confdefs.h. */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4441 #define $ac_func innocuous_$ac_func
4442
4443 /* System header to define __stub macros and hopefully few prototypes,
4444 which can conflict with char $ac_func (); below.
4445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4446 <limits.h> exists even on freestanding compilers. */
4447
4448 #ifdef __STDC__
4449 # include <limits.h>
4450 #else
4451 # include <assert.h>
4452 #endif
4453
4454 #undef $ac_func
4455
4456 /* Override any GCC internal prototype to avoid an error.
4457 Use char because int might match the return type of a GCC
4458 builtin and then its argument prototype would still apply. */
4459 #ifdef __cplusplus
4460 extern "C"
4461 #endif
4462 char $ac_func ();
4463 /* The GNU C library defines this for functions which it implements
4464 to always fail with ENOSYS. Some functions are actually named
4465 something starting with __ and the normal name is an alias. */
4466 #if defined __stub_$ac_func || defined __stub___$ac_func
4467 choke me
4468 #endif
4469
4470 int
4471 main ()
4472 {
4473 return $ac_func ();
4474 ;
4475 return 0;
4476 }
4477 _ACEOF
4478 rm -f conftest.$ac_objext conftest$ac_exeext
4479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4480 (eval $ac_link) 2>conftest.er1
4481 ac_status=$?
4482 grep -v '^ *+' conftest.er1 >conftest.err
4483 rm -f conftest.er1
4484 cat conftest.err >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } &&
4487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 (eval $ac_try) 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; } &&
4493 { ac_try='test -s conftest$ac_exeext'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495 (eval $ac_try) 2>&5
4496 ac_status=$?
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 eval "$as_ac_var=yes"
4500 else
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4503
4504 eval "$as_ac_var=no"
4505 fi
4506
4507 rm -f conftest.err conftest.$ac_objext \
4508 conftest$ac_exeext conftest.$ac_ext
4509 fi
4510 ac_res=`eval echo '${'$as_ac_var'}'`
4511 { echo "$as_me:$LINENO: result: $ac_res" >&5
4512 echo "${ECHO_T}$ac_res" >&6; }
4513 if test `eval echo '${'$as_ac_var'}'` = yes; then
4514
4515 cat >>confdefs.h <<_ACEOF
4516 #define CRAY_STACKSEG_END $ac_func
4517 _ACEOF
4518
4519 break
4520 fi
4521
4522 done
4523 fi
4524
4525 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4526 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
4527 if test "${ac_cv_c_stack_direction+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 else
4530 if test "$cross_compiling" = yes; then
4531 ac_cv_c_stack_direction=0
4532 else
4533 cat >conftest.$ac_ext <<_ACEOF
4534 /* confdefs.h. */
4535 _ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4539 $ac_includes_default
4540 int
4541 find_stack_direction ()
4542 {
4543 static char *addr = 0;
4544 auto char dummy;
4545 if (addr == 0)
4546 {
4547 addr = &dummy;
4548 return find_stack_direction ();
4549 }
4550 else
4551 return (&dummy > addr) ? 1 : -1;
4552 }
4553
4554 int
4555 main ()
4556 {
4557 return find_stack_direction () < 0;
4558 }
4559 _ACEOF
4560 rm -f conftest$ac_exeext
4561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4562 (eval $ac_link) 2>&5
4563 ac_status=$?
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 (eval $ac_try) 2>&5
4568 ac_status=$?
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; }; then
4571 ac_cv_c_stack_direction=1
4572 else
4573 echo "$as_me: program exited with status $ac_status" >&5
4574 echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.$ac_ext >&5
4576
4577 ( exit $ac_status )
4578 ac_cv_c_stack_direction=-1
4579 fi
4580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4581 fi
4582
4583
4584 fi
4585 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4586 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
4587
4588 cat >>confdefs.h <<_ACEOF
4589 #define STACK_DIRECTION $ac_cv_c_stack_direction
4590 _ACEOF
4591
4592
4593 fi
4594
4595
4596
4597 for ac_header in stdlib.h unistd.h
4598 do
4599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 fi
4606 ac_res=`eval echo '${'$as_ac_Header'}'`
4607 { echo "$as_me:$LINENO: result: $ac_res" >&5
4608 echo "${ECHO_T}$ac_res" >&6; }
4609 else
4610 # Is the header compilable?
4611 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4613 cat >conftest.$ac_ext <<_ACEOF
4614 /* confdefs.h. */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4619 $ac_includes_default
4620 #include <$ac_header>
4621 _ACEOF
4622 rm -f conftest.$ac_objext
4623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4624 (eval $ac_compile) 2>conftest.er1
4625 ac_status=$?
4626 grep -v '^ *+' conftest.er1 >conftest.err
4627 rm -f conftest.er1
4628 cat conftest.err >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } &&
4631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 (eval $ac_try) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; } &&
4637 { ac_try='test -s conftest.$ac_objext'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 (eval $ac_try) 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; }; then
4643 ac_header_compiler=yes
4644 else
4645 echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.$ac_ext >&5
4647
4648 ac_header_compiler=no
4649 fi
4650
4651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4653 echo "${ECHO_T}$ac_header_compiler" >&6; }
4654
4655 # Is the header present?
4656 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4658 cat >conftest.$ac_ext <<_ACEOF
4659 /* confdefs.h. */
4660 _ACEOF
4661 cat confdefs.h >>conftest.$ac_ext
4662 cat >>conftest.$ac_ext <<_ACEOF
4663 /* end confdefs.h. */
4664 #include <$ac_header>
4665 _ACEOF
4666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4668 ac_status=$?
4669 grep -v '^ *+' conftest.er1 >conftest.err
4670 rm -f conftest.er1
4671 cat conftest.err >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } >/dev/null; then
4674 if test -s conftest.err; then
4675 ac_cpp_err=$ac_c_preproc_warn_flag
4676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4677 else
4678 ac_cpp_err=
4679 fi
4680 else
4681 ac_cpp_err=yes
4682 fi
4683 if test -z "$ac_cpp_err"; then
4684 ac_header_preproc=yes
4685 else
4686 echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4688
4689 ac_header_preproc=no
4690 fi
4691
4692 rm -f conftest.err conftest.$ac_ext
4693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4694 echo "${ECHO_T}$ac_header_preproc" >&6; }
4695
4696 # So? What about this header?
4697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4698 yes:no: )
4699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4703 ac_header_preproc=yes
4704 ;;
4705 no:yes:* )
4706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4713 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4718
4719 ;;
4720 esac
4721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 else
4726 eval "$as_ac_Header=\$ac_header_preproc"
4727 fi
4728 ac_res=`eval echo '${'$as_ac_Header'}'`
4729 { echo "$as_me:$LINENO: result: $ac_res" >&5
4730 echo "${ECHO_T}$ac_res" >&6; }
4731
4732 fi
4733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4734 cat >>confdefs.h <<_ACEOF
4735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4736 _ACEOF
4737
4738 fi
4739
4740 done
4741
4742
4743 for ac_func in getpagesize
4744 do
4745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4751 cat >conftest.$ac_ext <<_ACEOF
4752 /* confdefs.h. */
4753 _ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4759 #define $ac_func innocuous_$ac_func
4760
4761 /* System header to define __stub macros and hopefully few prototypes,
4762 which can conflict with char $ac_func (); below.
4763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4764 <limits.h> exists even on freestanding compilers. */
4765
4766 #ifdef __STDC__
4767 # include <limits.h>
4768 #else
4769 # include <assert.h>
4770 #endif
4771
4772 #undef $ac_func
4773
4774 /* Override any GCC internal prototype to avoid an error.
4775 Use char because int might match the return type of a GCC
4776 builtin and then its argument prototype would still apply. */
4777 #ifdef __cplusplus
4778 extern "C"
4779 #endif
4780 char $ac_func ();
4781 /* The GNU C library defines this for functions which it implements
4782 to always fail with ENOSYS. Some functions are actually named
4783 something starting with __ and the normal name is an alias. */
4784 #if defined __stub_$ac_func || defined __stub___$ac_func
4785 choke me
4786 #endif
4787
4788 int
4789 main ()
4790 {
4791 return $ac_func ();
4792 ;
4793 return 0;
4794 }
4795 _ACEOF
4796 rm -f conftest.$ac_objext conftest$ac_exeext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4798 (eval $ac_link) 2>conftest.er1
4799 ac_status=$?
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } &&
4805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807 (eval $ac_try) 2>&5
4808 ac_status=$?
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }; } &&
4811 { ac_try='test -s conftest$ac_exeext'
4812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813 (eval $ac_try) 2>&5
4814 ac_status=$?
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; }; then
4817 eval "$as_ac_var=yes"
4818 else
4819 echo "$as_me: failed program was:" >&5
4820 sed 's/^/| /' conftest.$ac_ext >&5
4821
4822 eval "$as_ac_var=no"
4823 fi
4824
4825 rm -f conftest.err conftest.$ac_objext \
4826 conftest$ac_exeext conftest.$ac_ext
4827 fi
4828 ac_res=`eval echo '${'$as_ac_var'}'`
4829 { echo "$as_me:$LINENO: result: $ac_res" >&5
4830 echo "${ECHO_T}$ac_res" >&6; }
4831 if test `eval echo '${'$as_ac_var'}'` = yes; then
4832 cat >>confdefs.h <<_ACEOF
4833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4834 _ACEOF
4835
4836 fi
4837 done
4838
4839 { echo "$as_me:$LINENO: checking for working mmap" >&5
4840 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
4841 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4843 else
4844 if test "$cross_compiling" = yes; then
4845 ac_cv_func_mmap_fixed_mapped=no
4846 else
4847 cat >conftest.$ac_ext <<_ACEOF
4848 /* confdefs.h. */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4853 $ac_includes_default
4854 /* malloc might have been renamed as rpl_malloc. */
4855 #undef malloc
4856
4857 /* Thanks to Mike Haertel and Jim Avera for this test.
4858 Here is a matrix of mmap possibilities:
4859 mmap private not fixed
4860 mmap private fixed at somewhere currently unmapped
4861 mmap private fixed at somewhere already mapped
4862 mmap shared not fixed
4863 mmap shared fixed at somewhere currently unmapped
4864 mmap shared fixed at somewhere already mapped
4865 For private mappings, we should verify that changes cannot be read()
4866 back from the file, nor mmap's back from the file at a different
4867 address. (There have been systems where private was not correctly
4868 implemented like the infamous i386 svr4.0, and systems where the
4869 VM page cache was not coherent with the file system buffer cache
4870 like early versions of FreeBSD and possibly contemporary NetBSD.)
4871 For shared mappings, we should conversely verify that changes get
4872 propagated back to all the places they're supposed to be.
4873
4874 Grep wants private fixed already mapped.
4875 The main things grep needs to know about mmap are:
4876 * does it exist and is it safe to write into the mmap'd area
4877 * how to use it (BSD variants) */
4878
4879 #include <fcntl.h>
4880 #include <sys/mman.h>
4881
4882 #if !STDC_HEADERS && !HAVE_STDLIB_H
4883 char *malloc ();
4884 #endif
4885
4886 /* This mess was copied from the GNU getpagesize.h. */
4887 #if !HAVE_GETPAGESIZE
4888 /* Assume that all systems that can run configure have sys/param.h. */
4889 # if !HAVE_SYS_PARAM_H
4890 # define HAVE_SYS_PARAM_H 1
4891 # endif
4892
4893 # ifdef _SC_PAGESIZE
4894 # define getpagesize() sysconf(_SC_PAGESIZE)
4895 # else /* no _SC_PAGESIZE */
4896 # if HAVE_SYS_PARAM_H
4897 # include <sys/param.h>
4898 # ifdef EXEC_PAGESIZE
4899 # define getpagesize() EXEC_PAGESIZE
4900 # else /* no EXEC_PAGESIZE */
4901 # ifdef NBPG
4902 # define getpagesize() NBPG * CLSIZE
4903 # ifndef CLSIZE
4904 # define CLSIZE 1
4905 # endif /* no CLSIZE */
4906 # else /* no NBPG */
4907 # ifdef NBPC
4908 # define getpagesize() NBPC
4909 # else /* no NBPC */
4910 # ifdef PAGESIZE
4911 # define getpagesize() PAGESIZE
4912 # endif /* PAGESIZE */
4913 # endif /* no NBPC */
4914 # endif /* no NBPG */
4915 # endif /* no EXEC_PAGESIZE */
4916 # else /* no HAVE_SYS_PARAM_H */
4917 # define getpagesize() 8192 /* punt totally */
4918 # endif /* no HAVE_SYS_PARAM_H */
4919 # endif /* no _SC_PAGESIZE */
4920
4921 #endif /* no HAVE_GETPAGESIZE */
4922
4923 int
4924 main ()
4925 {
4926 char *data, *data2, *data3;
4927 int i, pagesize;
4928 int fd;
4929
4930 pagesize = getpagesize ();
4931
4932 /* First, make a file with some known garbage in it. */
4933 data = (char *) malloc (pagesize);
4934 if (!data)
4935 return 1;
4936 for (i = 0; i < pagesize; ++i)
4937 *(data + i) = rand ();
4938 umask (0);
4939 fd = creat ("conftest.mmap", 0600);
4940 if (fd < 0)
4941 return 1;
4942 if (write (fd, data, pagesize) != pagesize)
4943 return 1;
4944 close (fd);
4945
4946 /* Next, try to mmap the file at a fixed address which already has
4947 something else allocated at it. If we can, also make sure that
4948 we see the same garbage. */
4949 fd = open ("conftest.mmap", O_RDWR);
4950 if (fd < 0)
4951 return 1;
4952 data2 = (char *) malloc (2 * pagesize);
4953 if (!data2)
4954 return 1;
4955 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
4956 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4957 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4958 return 1;
4959 for (i = 0; i < pagesize; ++i)
4960 if (*(data + i) != *(data2 + i))
4961 return 1;
4962
4963 /* Finally, make sure that changes to the mapped area do not
4964 percolate back to the file as seen by read(). (This is a bug on
4965 some variants of i386 svr4.0.) */
4966 for (i = 0; i < pagesize; ++i)
4967 *(data2 + i) = *(data2 + i) + 1;
4968 data3 = (char *) malloc (pagesize);
4969 if (!data3)
4970 return 1;
4971 if (read (fd, data3, pagesize) != pagesize)
4972 return 1;
4973 for (i = 0; i < pagesize; ++i)
4974 if (*(data + i) != *(data3 + i))
4975 return 1;
4976 close (fd);
4977 return 0;
4978 }
4979 _ACEOF
4980 rm -f conftest$ac_exeext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4982 (eval $ac_link) 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987 (eval $ac_try) 2>&5
4988 ac_status=$?
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; }; then
4991 ac_cv_func_mmap_fixed_mapped=yes
4992 else
4993 echo "$as_me: program exited with status $ac_status" >&5
4994 echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4996
4997 ( exit $ac_status )
4998 ac_cv_func_mmap_fixed_mapped=no
4999 fi
5000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5001 fi
5002
5003
5004 fi
5005 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5006 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
5007 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5008
5009 cat >>confdefs.h <<\_ACEOF
5010 #define HAVE_MMAP 1
5011 _ACEOF
5012
5013 fi
5014 rm -f conftest.mmap
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
5027 unistd.h values.h sys/param.h
5028 do
5029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 fi
5036 ac_res=`eval echo '${'$as_ac_Header'}'`
5037 { echo "$as_me:$LINENO: result: $ac_res" >&5
5038 echo "${ECHO_T}$ac_res" >&6; }
5039 else
5040 # Is the header compilable?
5041 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5043 cat >conftest.$ac_ext <<_ACEOF
5044 /* confdefs.h. */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5049 $ac_includes_default
5050 #include <$ac_header>
5051 _ACEOF
5052 rm -f conftest.$ac_objext
5053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5054 (eval $ac_compile) 2>conftest.er1
5055 ac_status=$?
5056 grep -v '^ *+' conftest.er1 >conftest.err
5057 rm -f conftest.er1
5058 cat conftest.err >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } &&
5061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 (eval $ac_try) 2>&5
5064 ac_status=$?
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; } &&
5067 { ac_try='test -s conftest.$ac_objext'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 (eval $ac_try) 2>&5
5070 ac_status=$?
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; }; then
5073 ac_header_compiler=yes
5074 else
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078 ac_header_compiler=no
5079 fi
5080
5081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5083 echo "${ECHO_T}$ac_header_compiler" >&6; }
5084
5085 # Is the header present?
5086 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5088 cat >conftest.$ac_ext <<_ACEOF
5089 /* confdefs.h. */
5090 _ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h. */
5094 #include <$ac_header>
5095 _ACEOF
5096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5098 ac_status=$?
5099 grep -v '^ *+' conftest.er1 >conftest.err
5100 rm -f conftest.er1
5101 cat conftest.err >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } >/dev/null; then
5104 if test -s conftest.err; then
5105 ac_cpp_err=$ac_c_preproc_warn_flag
5106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5107 else
5108 ac_cpp_err=
5109 fi
5110 else
5111 ac_cpp_err=yes
5112 fi
5113 if test -z "$ac_cpp_err"; then
5114 ac_header_preproc=yes
5115 else
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5118
5119 ac_header_preproc=no
5120 fi
5121
5122 rm -f conftest.err conftest.$ac_ext
5123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5124 echo "${ECHO_T}$ac_header_preproc" >&6; }
5125
5126 # So? What about this header?
5127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5128 yes:no: )
5129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5133 ac_header_preproc=yes
5134 ;;
5135 no:yes:* )
5136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5143 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5148
5149 ;;
5150 esac
5151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 eval "$as_ac_Header=\$ac_header_preproc"
5157 fi
5158 ac_res=`eval echo '${'$as_ac_Header'}'`
5159 { echo "$as_me:$LINENO: result: $ac_res" >&5
5160 echo "${ECHO_T}$ac_res" >&6; }
5161
5162 fi
5163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5164 cat >>confdefs.h <<_ACEOF
5165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5166 _ACEOF
5167
5168 fi
5169
5170 done
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
5183 __argz_count __argz_stringify __argz_next
5184 do
5185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 else
5191 cat >conftest.$ac_ext <<_ACEOF
5192 /* confdefs.h. */
5193 _ACEOF
5194 cat confdefs.h >>conftest.$ac_ext
5195 cat >>conftest.$ac_ext <<_ACEOF
5196 /* end confdefs.h. */
5197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5199 #define $ac_func innocuous_$ac_func
5200
5201 /* System header to define __stub macros and hopefully few prototypes,
5202 which can conflict with char $ac_func (); below.
5203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5204 <limits.h> exists even on freestanding compilers. */
5205
5206 #ifdef __STDC__
5207 # include <limits.h>
5208 #else
5209 # include <assert.h>
5210 #endif
5211
5212 #undef $ac_func
5213
5214 /* Override any GCC internal prototype to avoid an error.
5215 Use char because int might match the return type of a GCC
5216 builtin and then its argument prototype would still apply. */
5217 #ifdef __cplusplus
5218 extern "C"
5219 #endif
5220 char $ac_func ();
5221 /* The GNU C library defines this for functions which it implements
5222 to always fail with ENOSYS. Some functions are actually named
5223 something starting with __ and the normal name is an alias. */
5224 #if defined __stub_$ac_func || defined __stub___$ac_func
5225 choke me
5226 #endif
5227
5228 int
5229 main ()
5230 {
5231 return $ac_func ();
5232 ;
5233 return 0;
5234 }
5235 _ACEOF
5236 rm -f conftest.$ac_objext conftest$ac_exeext
5237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5238 (eval $ac_link) 2>conftest.er1
5239 ac_status=$?
5240 grep -v '^ *+' conftest.er1 >conftest.err
5241 rm -f conftest.er1
5242 cat conftest.err >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } &&
5245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247 (eval $ac_try) 2>&5
5248 ac_status=$?
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; } &&
5251 { ac_try='test -s conftest$ac_exeext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253 (eval $ac_try) 2>&5
5254 ac_status=$?
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 eval "$as_ac_var=yes"
5258 else
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262 eval "$as_ac_var=no"
5263 fi
5264
5265 rm -f conftest.err conftest.$ac_objext \
5266 conftest$ac_exeext conftest.$ac_ext
5267 fi
5268 ac_res=`eval echo '${'$as_ac_var'}'`
5269 { echo "$as_me:$LINENO: result: $ac_res" >&5
5270 echo "${ECHO_T}$ac_res" >&6; }
5271 if test `eval echo '${'$as_ac_var'}'` = yes; then
5272 cat >>confdefs.h <<_ACEOF
5273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5274 _ACEOF
5275
5276 fi
5277 done
5278
5279
5280 if test "${ac_cv_func_stpcpy+set}" != "set"; then
5281
5282 for ac_func in stpcpy
5283 do
5284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5285 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 else
5290 cat >conftest.$ac_ext <<_ACEOF
5291 /* confdefs.h. */
5292 _ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5298 #define $ac_func innocuous_$ac_func
5299
5300 /* System header to define __stub macros and hopefully few prototypes,
5301 which can conflict with char $ac_func (); below.
5302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5303 <limits.h> exists even on freestanding compilers. */
5304
5305 #ifdef __STDC__
5306 # include <limits.h>
5307 #else
5308 # include <assert.h>
5309 #endif
5310
5311 #undef $ac_func
5312
5313 /* Override any GCC internal prototype to avoid an error.
5314 Use char because int might match the return type of a GCC
5315 builtin and then its argument prototype would still apply. */
5316 #ifdef __cplusplus
5317 extern "C"
5318 #endif
5319 char $ac_func ();
5320 /* The GNU C library defines this for functions which it implements
5321 to always fail with ENOSYS. Some functions are actually named
5322 something starting with __ and the normal name is an alias. */
5323 #if defined __stub_$ac_func || defined __stub___$ac_func
5324 choke me
5325 #endif
5326
5327 int
5328 main ()
5329 {
5330 return $ac_func ();
5331 ;
5332 return 0;
5333 }
5334 _ACEOF
5335 rm -f conftest.$ac_objext conftest$ac_exeext
5336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5337 (eval $ac_link) 2>conftest.er1
5338 ac_status=$?
5339 grep -v '^ *+' conftest.er1 >conftest.err
5340 rm -f conftest.er1
5341 cat conftest.err >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); } &&
5344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 (eval $ac_try) 2>&5
5347 ac_status=$?
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; } &&
5350 { ac_try='test -s conftest$ac_exeext'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 (eval $ac_try) 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; }; then
5356 eval "$as_ac_var=yes"
5357 else
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5360
5361 eval "$as_ac_var=no"
5362 fi
5363
5364 rm -f conftest.err conftest.$ac_objext \
5365 conftest$ac_exeext conftest.$ac_ext
5366 fi
5367 ac_res=`eval echo '${'$as_ac_var'}'`
5368 { echo "$as_me:$LINENO: result: $ac_res" >&5
5369 echo "${ECHO_T}$ac_res" >&6; }
5370 if test `eval echo '${'$as_ac_var'}'` = yes; then
5371 cat >>confdefs.h <<_ACEOF
5372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5373 _ACEOF
5374
5375 fi
5376 done
5377
5378 fi
5379 if test "${ac_cv_func_stpcpy}" = "yes"; then
5380
5381 cat >>confdefs.h <<\_ACEOF
5382 #define HAVE_STPCPY 1
5383 _ACEOF
5384
5385 fi
5386
5387 if test $ac_cv_header_locale_h = yes; then
5388 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
5389 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
5390 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 else
5393 cat >conftest.$ac_ext <<_ACEOF
5394 /* confdefs.h. */
5395 _ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5399 #include <locale.h>
5400 int
5401 main ()
5402 {
5403 return LC_MESSAGES
5404 ;
5405 return 0;
5406 }
5407 _ACEOF
5408 rm -f conftest.$ac_objext conftest$ac_exeext
5409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5410 (eval $ac_link) 2>conftest.er1
5411 ac_status=$?
5412 grep -v '^ *+' conftest.er1 >conftest.err
5413 rm -f conftest.er1
5414 cat conftest.err >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } &&
5417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419 (eval $ac_try) 2>&5
5420 ac_status=$?
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; } &&
5423 { ac_try='test -s conftest$ac_exeext'
5424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5425 (eval $ac_try) 2>&5
5426 ac_status=$?
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); }; }; then
5429 am_cv_val_LC_MESSAGES=yes
5430 else
5431 echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5433
5434 am_cv_val_LC_MESSAGES=no
5435 fi
5436
5437 rm -f conftest.err conftest.$ac_objext \
5438 conftest$ac_exeext conftest.$ac_ext
5439 fi
5440 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
5441 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
5442 if test $am_cv_val_LC_MESSAGES = yes; then
5443
5444 cat >>confdefs.h <<\_ACEOF
5445 #define HAVE_LC_MESSAGES 1
5446 _ACEOF
5447
5448 fi
5449 fi
5450 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5451 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5452 # Check whether --enable-nls was given.
5453 if test "${enable_nls+set}" = set; then
5454 enableval=$enable_nls; USE_NLS=$enableval
5455 else
5456 USE_NLS=yes
5457 fi
5458
5459 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5460 echo "${ECHO_T}$USE_NLS" >&6; }
5461
5462
5463 USE_INCLUDED_LIBINTL=no
5464
5465 if test "$USE_NLS" = "yes"; then
5466 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
5467 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
5468
5469 # Check whether --with-included-gettext was given.
5470 if test "${with_included_gettext+set}" = set; then
5471 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
5472 else
5473 nls_cv_force_use_gnu_gettext=no
5474 fi
5475
5476 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
5477 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
5478
5479 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
5480 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5481 nls_cv_header_intl=
5482 nls_cv_header_libgt=
5483 CATOBJEXT=
5484
5485 if test "${ac_cv_header_libintl_h+set}" = set; then
5486 { echo "$as_me:$LINENO: checking for libintl.h" >&5
5487 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
5488 if test "${ac_cv_header_libintl_h+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5490 fi
5491 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5492 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
5493 else
5494 # Is the header compilable?
5495 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
5496 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
5497 cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 $ac_includes_default
5504 #include <libintl.h>
5505 _ACEOF
5506 rm -f conftest.$ac_objext
5507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5508 (eval $ac_compile) 2>conftest.er1
5509 ac_status=$?
5510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } &&
5515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517 (eval $ac_try) 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; } &&
5521 { ac_try='test -s conftest.$ac_objext'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 (eval $ac_try) 2>&5
5524 ac_status=$?
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; }; then
5527 ac_header_compiler=yes
5528 else
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5531
5532 ac_header_compiler=no
5533 fi
5534
5535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5537 echo "${ECHO_T}$ac_header_compiler" >&6; }
5538
5539 # Is the header present?
5540 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
5541 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
5542 cat >conftest.$ac_ext <<_ACEOF
5543 /* confdefs.h. */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548 #include <libintl.h>
5549 _ACEOF
5550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5552 ac_status=$?
5553 grep -v '^ *+' conftest.er1 >conftest.err
5554 rm -f conftest.er1
5555 cat conftest.err >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); } >/dev/null; then
5558 if test -s conftest.err; then
5559 ac_cpp_err=$ac_c_preproc_warn_flag
5560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5561 else
5562 ac_cpp_err=
5563 fi
5564 else
5565 ac_cpp_err=yes
5566 fi
5567 if test -z "$ac_cpp_err"; then
5568 ac_header_preproc=yes
5569 else
5570 echo "$as_me: failed program was:" >&5
5571 sed 's/^/| /' conftest.$ac_ext >&5
5572
5573 ac_header_preproc=no
5574 fi
5575
5576 rm -f conftest.err conftest.$ac_ext
5577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5578 echo "${ECHO_T}$ac_header_preproc" >&6; }
5579
5580 # So? What about this header?
5581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5582 yes:no: )
5583 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5584 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5585 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5586 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5587 ac_header_preproc=yes
5588 ;;
5589 no:yes:* )
5590 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5591 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5592 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5593 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5594 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5595 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5596 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5597 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5598 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5599 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5600 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5601 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5602
5603 ;;
5604 esac
5605 { echo "$as_me:$LINENO: checking for libintl.h" >&5
5606 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
5607 if test "${ac_cv_header_libintl_h+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 else
5610 ac_cv_header_libintl_h=$ac_header_preproc
5611 fi
5612 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5613 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
5614
5615 fi
5616 if test $ac_cv_header_libintl_h = yes; then
5617 { echo "$as_me:$LINENO: checking for gettext in libc" >&5
5618 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6; }
5619 if test "${gt_cv_func_gettext_libc+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5622 cat >conftest.$ac_ext <<_ACEOF
5623 /* confdefs.h. */
5624 _ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628 #include <libintl.h>
5629 int
5630 main ()
5631 {
5632 return (int) gettext ("")
5633 ;
5634 return 0;
5635 }
5636 _ACEOF
5637 rm -f conftest.$ac_objext conftest$ac_exeext
5638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5639 (eval $ac_link) 2>conftest.er1
5640 ac_status=$?
5641 grep -v '^ *+' conftest.er1 >conftest.err
5642 rm -f conftest.er1
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } &&
5646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 (eval $ac_try) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; } &&
5652 { ac_try='test -s conftest$ac_exeext'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5654 (eval $ac_try) 2>&5
5655 ac_status=$?
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; }; then
5658 gt_cv_func_gettext_libc=yes
5659 else
5660 echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.$ac_ext >&5
5662
5663 gt_cv_func_gettext_libc=no
5664 fi
5665
5666 rm -f conftest.err conftest.$ac_objext \
5667 conftest$ac_exeext conftest.$ac_ext
5668 fi
5669 { echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5670 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6; }
5671
5672 if test "$gt_cv_func_gettext_libc" != "yes"; then
5673 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5674 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
5675 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5677 else
5678 ac_check_lib_save_LIBS=$LIBS
5679 LIBS="-lintl $LIBS"
5680 cat >conftest.$ac_ext <<_ACEOF
5681 /* confdefs.h. */
5682 _ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686
5687 /* Override any GCC internal prototype to avoid an error.
5688 Use char because int might match the return type of a GCC
5689 builtin and then its argument prototype would still apply. */
5690 #ifdef __cplusplus
5691 extern "C"
5692 #endif
5693 char bindtextdomain ();
5694 int
5695 main ()
5696 {
5697 return bindtextdomain ();
5698 ;
5699 return 0;
5700 }
5701 _ACEOF
5702 rm -f conftest.$ac_objext conftest$ac_exeext
5703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5704 (eval $ac_link) 2>conftest.er1
5705 ac_status=$?
5706 grep -v '^ *+' conftest.er1 >conftest.err
5707 rm -f conftest.er1
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } &&
5711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try='test -s conftest$ac_exeext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 (eval $ac_try) 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_cv_lib_intl_bindtextdomain=yes
5724 else
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5727
5728 ac_cv_lib_intl_bindtextdomain=no
5729 fi
5730
5731 rm -f conftest.err conftest.$ac_objext \
5732 conftest$ac_exeext conftest.$ac_ext
5733 LIBS=$ac_check_lib_save_LIBS
5734 fi
5735 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5736 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
5737 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5738 { echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5739 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6; }
5740 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743 cat >conftest.$ac_ext <<_ACEOF
5744 /* confdefs.h. */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5749
5750 int
5751 main ()
5752 {
5753 return (int) gettext ("")
5754 ;
5755 return 0;
5756 }
5757 _ACEOF
5758 rm -f conftest.$ac_objext conftest$ac_exeext
5759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5760 (eval $ac_link) 2>conftest.er1
5761 ac_status=$?
5762 grep -v '^ *+' conftest.er1 >conftest.err
5763 rm -f conftest.er1
5764 cat conftest.err >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
5767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; } &&
5773 { ac_try='test -s conftest$ac_exeext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 (eval $ac_try) 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 gt_cv_func_gettext_libintl=yes
5780 else
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5783
5784 gt_cv_func_gettext_libintl=no
5785 fi
5786
5787 rm -f conftest.err conftest.$ac_objext \
5788 conftest$ac_exeext conftest.$ac_ext
5789 fi
5790 { echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5791 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6; }
5792 fi
5793
5794 fi
5795
5796 if test "$gt_cv_func_gettext_libc" = "yes" \
5797 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5798
5799 cat >>confdefs.h <<\_ACEOF
5800 #define HAVE_GETTEXT 1
5801 _ACEOF
5802
5803 # Extract the first word of "msgfmt", so it can be a program name with args.
5804 set dummy msgfmt; ac_word=$2
5805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5807 if test "${ac_cv_path_MSGFMT+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810 case "$MSGFMT" in
5811 /*)
5812 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5813 ;;
5814 *)
5815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5816 for ac_dir in $PATH; do
5817 test -z "$ac_dir" && ac_dir=.
5818 if test -f $ac_dir/$ac_word; then
5819 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5820 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5821 break
5822 fi
5823 fi
5824 done
5825 IFS="$ac_save_ifs"
5826 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5827 ;;
5828 esac
5829 fi
5830 MSGFMT="$ac_cv_path_MSGFMT"
5831 if test -n "$MSGFMT"; then
5832 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5833 echo "${ECHO_T}$MSGFMT" >&6; }
5834 else
5835 { echo "$as_me:$LINENO: result: no" >&5
5836 echo "${ECHO_T}no" >&6; }
5837 fi
5838 if test "$MSGFMT" != "no"; then
5839
5840 for ac_func in dcgettext
5841 do
5842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5843 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5845 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848 cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h. */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5856 #define $ac_func innocuous_$ac_func
5857
5858 /* System header to define __stub macros and hopefully few prototypes,
5859 which can conflict with char $ac_func (); below.
5860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5861 <limits.h> exists even on freestanding compilers. */
5862
5863 #ifdef __STDC__
5864 # include <limits.h>
5865 #else
5866 # include <assert.h>
5867 #endif
5868
5869 #undef $ac_func
5870
5871 /* Override any GCC internal prototype to avoid an error.
5872 Use char because int might match the return type of a GCC
5873 builtin and then its argument prototype would still apply. */
5874 #ifdef __cplusplus
5875 extern "C"
5876 #endif
5877 char $ac_func ();
5878 /* The GNU C library defines this for functions which it implements
5879 to always fail with ENOSYS. Some functions are actually named
5880 something starting with __ and the normal name is an alias. */
5881 #if defined __stub_$ac_func || defined __stub___$ac_func
5882 choke me
5883 #endif
5884
5885 int
5886 main ()
5887 {
5888 return $ac_func ();
5889 ;
5890 return 0;
5891 }
5892 _ACEOF
5893 rm -f conftest.$ac_objext conftest$ac_exeext
5894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5895 (eval $ac_link) 2>conftest.er1
5896 ac_status=$?
5897 grep -v '^ *+' conftest.er1 >conftest.err
5898 rm -f conftest.er1
5899 cat conftest.err >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } &&
5902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904 (eval $ac_try) 2>&5
5905 ac_status=$?
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; } &&
5908 { ac_try='test -s conftest$ac_exeext'
5909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910 (eval $ac_try) 2>&5
5911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; }; then
5914 eval "$as_ac_var=yes"
5915 else
5916 echo "$as_me: failed program was:" >&5
5917 sed 's/^/| /' conftest.$ac_ext >&5
5918
5919 eval "$as_ac_var=no"
5920 fi
5921
5922 rm -f conftest.err conftest.$ac_objext \
5923 conftest$ac_exeext conftest.$ac_ext
5924 fi
5925 ac_res=`eval echo '${'$as_ac_var'}'`
5926 { echo "$as_me:$LINENO: result: $ac_res" >&5
5927 echo "${ECHO_T}$ac_res" >&6; }
5928 if test `eval echo '${'$as_ac_var'}'` = yes; then
5929 cat >>confdefs.h <<_ACEOF
5930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5931 _ACEOF
5932
5933 fi
5934 done
5935
5936 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5937 set dummy gmsgfmt; ac_word=$2
5938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5940 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5942 else
5943 case $GMSGFMT in
5944 [\\/]* | ?:[\\/]*)
5945 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5946 ;;
5947 *)
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH
5950 do
5951 IFS=$as_save_IFS
5952 test -z "$as_dir" && as_dir=.
5953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5955 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 break 2
5958 fi
5959 done
5960 done
5961 IFS=$as_save_IFS
5962
5963 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5964 ;;
5965 esac
5966 fi
5967 GMSGFMT=$ac_cv_path_GMSGFMT
5968 if test -n "$GMSGFMT"; then
5969 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5970 echo "${ECHO_T}$GMSGFMT" >&6; }
5971 else
5972 { echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6; }
5974 fi
5975
5976
5977 # Extract the first word of "xgettext", so it can be a program name with args.
5978 set dummy xgettext; ac_word=$2
5979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5981 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984 case "$XGETTEXT" in
5985 /*)
5986 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5987 ;;
5988 *)
5989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5990 for ac_dir in $PATH; do
5991 test -z "$ac_dir" && ac_dir=.
5992 if test -f $ac_dir/$ac_word; then
5993 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5994 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5995 break
5996 fi
5997 fi
5998 done
5999 IFS="$ac_save_ifs"
6000 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6001 ;;
6002 esac
6003 fi
6004 XGETTEXT="$ac_cv_path_XGETTEXT"
6005 if test -n "$XGETTEXT"; then
6006 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6007 echo "${ECHO_T}$XGETTEXT" >&6; }
6008 else
6009 { echo "$as_me:$LINENO: result: no" >&5
6010 echo "${ECHO_T}no" >&6; }
6011 fi
6012
6013 cat >conftest.$ac_ext <<_ACEOF
6014 /* confdefs.h. */
6015 _ACEOF
6016 cat confdefs.h >>conftest.$ac_ext
6017 cat >>conftest.$ac_ext <<_ACEOF
6018 /* end confdefs.h. */
6019
6020 int
6021 main ()
6022 {
6023 extern int _nl_msg_cat_cntr;
6024 return _nl_msg_cat_cntr
6025 ;
6026 return 0;
6027 }
6028 _ACEOF
6029 rm -f conftest.$ac_objext conftest$ac_exeext
6030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6031 (eval $ac_link) 2>conftest.er1
6032 ac_status=$?
6033 grep -v '^ *+' conftest.er1 >conftest.err
6034 rm -f conftest.er1
6035 cat conftest.err >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); } &&
6038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 (eval $ac_try) 2>&5
6041 ac_status=$?
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; } &&
6044 { ac_try='test -s conftest$ac_exeext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 (eval $ac_try) 2>&5
6047 ac_status=$?
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6050 CATOBJEXT=.gmo
6051 DATADIRNAME=share
6052 else
6053 echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6055
6056 CATOBJEXT=.mo
6057 DATADIRNAME=lib
6058 fi
6059
6060 rm -f conftest.err conftest.$ac_objext \
6061 conftest$ac_exeext conftest.$ac_ext
6062 INSTOBJEXT=.mo
6063 fi
6064 fi
6065
6066 fi
6067
6068
6069
6070
6071 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
6072 # Neither gettext nor catgets in included in the C library.
6073 # Fall back on GNU gettext library (assuming it is present).
6074 nls_cv_use_gnu_gettext=yes
6075 fi
6076 fi
6077
6078 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6079 INTLOBJS="\$(GETTOBJS)"
6080 # Extract the first word of "msgfmt", so it can be a program name with args.
6081 set dummy msgfmt; ac_word=$2
6082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6084 if test "${ac_cv_path_MSGFMT+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 else
6087 case "$MSGFMT" in
6088 /*)
6089 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6090 ;;
6091 *)
6092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6093 for ac_dir in $PATH; do
6094 test -z "$ac_dir" && ac_dir=.
6095 if test -f $ac_dir/$ac_word; then
6096 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
6097 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
6098 break
6099 fi
6100 fi
6101 done
6102 IFS="$ac_save_ifs"
6103 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
6104 ;;
6105 esac
6106 fi
6107 MSGFMT="$ac_cv_path_MSGFMT"
6108 if test -n "$MSGFMT"; then
6109 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
6110 echo "${ECHO_T}$MSGFMT" >&6; }
6111 else
6112 { echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6; }
6114 fi
6115
6116 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6117 set dummy gmsgfmt; ac_word=$2
6118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6120 if test "${ac_cv_path_GMSGFMT+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123 case $GMSGFMT in
6124 [\\/]* | ?:[\\/]*)
6125 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6126 ;;
6127 *)
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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6135 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6136 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 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6144 ;;
6145 esac
6146 fi
6147 GMSGFMT=$ac_cv_path_GMSGFMT
6148 if test -n "$GMSGFMT"; then
6149 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
6150 echo "${ECHO_T}$GMSGFMT" >&6; }
6151 else
6152 { echo "$as_me:$LINENO: result: no" >&5
6153 echo "${ECHO_T}no" >&6; }
6154 fi
6155
6156
6157 # Extract the first word of "xgettext", so it can be a program name with args.
6158 set dummy xgettext; ac_word=$2
6159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6161 if test "${ac_cv_path_XGETTEXT+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164 case "$XGETTEXT" in
6165 /*)
6166 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6167 ;;
6168 *)
6169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6170 for ac_dir in $PATH; do
6171 test -z "$ac_dir" && ac_dir=.
6172 if test -f $ac_dir/$ac_word; then
6173 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
6174 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
6175 break
6176 fi
6177 fi
6178 done
6179 IFS="$ac_save_ifs"
6180 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6181 ;;
6182 esac
6183 fi
6184 XGETTEXT="$ac_cv_path_XGETTEXT"
6185 if test -n "$XGETTEXT"; then
6186 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6187 echo "${ECHO_T}$XGETTEXT" >&6; }
6188 else
6189 { echo "$as_me:$LINENO: result: no" >&5
6190 echo "${ECHO_T}no" >&6; }
6191 fi
6192
6193
6194 USE_INCLUDED_LIBINTL=yes
6195 CATOBJEXT=.gmo
6196 INSTOBJEXT=.mo
6197 DATADIRNAME=share
6198 INTLDEPS='$(top_builddir)/../intl/libintl.a'
6199 INTLLIBS=$INTLDEPS
6200 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
6201 nls_cv_header_intl=libintl.h
6202 nls_cv_header_libgt=libgettext.h
6203 fi
6204
6205 if test "$XGETTEXT" != ":"; then
6206 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
6207 : ;
6208 else
6209 { echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
6210 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6; }
6211 XGETTEXT=":"
6212 fi
6213 fi
6214
6215 # We need to process the po/ directory.
6216 POSUB=po
6217 else
6218 DATADIRNAME=share
6219 nls_cv_header_intl=libintl.h
6220 nls_cv_header_libgt=libgettext.h
6221 fi
6222
6223 # If this is used in GNU gettext we have to set USE_NLS to `yes'
6224 # because some of the sources are only built for this goal.
6225 if test "$PACKAGE" = gettext; then
6226 USE_NLS=yes
6227 USE_INCLUDED_LIBINTL=yes
6228 fi
6229
6230 for lang in $ALL_LINGUAS; do
6231 GMOFILES="$GMOFILES $lang.gmo"
6232 POFILES="$POFILES $lang.po"
6233 done
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246 if test "x$CATOBJEXT" != "x"; then
6247
6248 cat >>confdefs.h <<\_ACEOF
6249 #define ENABLE_NLS 1
6250 _ACEOF
6251
6252 fi
6253
6254
6255 if test "x$CATOBJEXT" != "x"; then
6256 if test "x$ALL_LINGUAS" = "x"; then
6257 LINGUAS=
6258 else
6259 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
6260 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
6261 NEW_LINGUAS=
6262 for lang in ${LINGUAS=$ALL_LINGUAS}; do
6263 case "$ALL_LINGUAS" in
6264 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
6265 esac
6266 done
6267 LINGUAS=$NEW_LINGUAS
6268 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
6269 echo "${ECHO_T}$LINGUAS" >&6; }
6270 fi
6271
6272 if test -n "$LINGUAS"; then
6273 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
6274 fi
6275 fi
6276
6277 if test $ac_cv_header_locale_h = yes; then
6278 INCLUDE_LOCALE_H="#include <locale.h>"
6279 else
6280 INCLUDE_LOCALE_H="\
6281 /* The system does not provide the header <locale.h>. Take care yourself. */"
6282 fi
6283
6284
6285 if test -f $srcdir/po2tbl.sed.in; then
6286 if test "$CATOBJEXT" = ".cat"; then
6287 if test "${ac_cv_header_linux_version_h+set}" = set; then
6288 { echo "$as_me:$LINENO: checking for linux/version.h" >&5
6289 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
6290 if test "${ac_cv_header_linux_version_h+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 fi
6293 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
6294 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
6295 else
6296 # Is the header compilable?
6297 { echo "$as_me:$LINENO: checking linux/version.h usability" >&5
6298 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6; }
6299 cat >conftest.$ac_ext <<_ACEOF
6300 /* confdefs.h. */
6301 _ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6305 $ac_includes_default
6306 #include <linux/version.h>
6307 _ACEOF
6308 rm -f conftest.$ac_objext
6309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6310 (eval $ac_compile) 2>conftest.er1
6311 ac_status=$?
6312 grep -v '^ *+' conftest.er1 >conftest.err
6313 rm -f conftest.er1
6314 cat conftest.err >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } &&
6317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 (eval $ac_try) 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; } &&
6323 { ac_try='test -s conftest.$ac_objext'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 (eval $ac_try) 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; }; then
6329 ac_header_compiler=yes
6330 else
6331 echo "$as_me: failed program was:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6333
6334 ac_header_compiler=no
6335 fi
6336
6337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6339 echo "${ECHO_T}$ac_header_compiler" >&6; }
6340
6341 # Is the header present?
6342 { echo "$as_me:$LINENO: checking linux/version.h presence" >&5
6343 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6; }
6344 cat >conftest.$ac_ext <<_ACEOF
6345 /* confdefs.h. */
6346 _ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h. */
6350 #include <linux/version.h>
6351 _ACEOF
6352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6354 ac_status=$?
6355 grep -v '^ *+' conftest.er1 >conftest.err
6356 rm -f conftest.er1
6357 cat conftest.err >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } >/dev/null; then
6360 if test -s conftest.err; then
6361 ac_cpp_err=$ac_c_preproc_warn_flag
6362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6363 else
6364 ac_cpp_err=
6365 fi
6366 else
6367 ac_cpp_err=yes
6368 fi
6369 if test -z "$ac_cpp_err"; then
6370 ac_header_preproc=yes
6371 else
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6374
6375 ac_header_preproc=no
6376 fi
6377
6378 rm -f conftest.err conftest.$ac_ext
6379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6380 echo "${ECHO_T}$ac_header_preproc" >&6; }
6381
6382 # So? What about this header?
6383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6384 yes:no: )
6385 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
6386 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6387 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
6388 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
6389 ac_header_preproc=yes
6390 ;;
6391 no:yes:* )
6392 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
6393 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
6394 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
6395 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
6396 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
6397 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
6398 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
6399 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
6400 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
6401 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
6402 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
6403 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
6404
6405 ;;
6406 esac
6407 { echo "$as_me:$LINENO: checking for linux/version.h" >&5
6408 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
6409 if test "${ac_cv_header_linux_version_h+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 else
6412 ac_cv_header_linux_version_h=$ac_header_preproc
6413 fi
6414 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
6415 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
6416
6417 fi
6418 if test $ac_cv_header_linux_version_h = yes; then
6419 msgformat=linux
6420 else
6421 msgformat=xopen
6422 fi
6423
6424
6425
6426 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
6427 fi
6428 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
6429 $srcdir/po2tbl.sed.in > po2tbl.sed
6430 fi
6431
6432 if test "$PACKAGE" = "gettext"; then
6433 GT_NO="#NO#"
6434 GT_YES=
6435 else
6436 GT_NO=
6437 GT_YES="#YES#"
6438 fi
6439
6440
6441
6442 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
6443
6444
6445 l=
6446
6447
6448 if test -f $srcdir/po/POTFILES.in; then
6449 test -d po || mkdir po
6450 if test "x$srcdir" != "x."; then
6451 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
6452 posrcprefix="$srcdir/"
6453 else
6454 posrcprefix="../$srcdir/"
6455 fi
6456 else
6457 posrcprefix="../"
6458 fi
6459 rm -f po/POTFILES
6460 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
6461 < $srcdir/po/POTFILES.in > po/POTFILES
6462 fi
6463
6464
6465 localedir='${datadir}/locale'
6466
6467
6468 if test "x$POSUB" != x; then
6469
6470 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
6471 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
6472 # Look for .po and .gmo files in the source directory.
6473 CATALOGS=
6474 XLINGUAS=
6475 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6476 # If there aren't any .gmo files the shell will give us the
6477 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6478 # weeded out.
6479 case "$cat" in *\**)
6480 continue;;
6481 esac
6482 # The quadruple backslash is collapsed to a double backslash
6483 # by the backticks, then collapsed again by the double quotes,
6484 # leaving us with one backslash in the sed expression (right
6485 # before the dot that mustn't act as a wildcard).
6486 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
6487 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
6488 # The user is allowed to set LINGUAS to a list of languages to
6489 # install catalogs for. If it's empty that means "all of them."
6490 if test "x$LINGUAS" = x; then
6491 CATALOGS="$CATALOGS $cat"
6492 XLINGUAS="$XLINGUAS $lang"
6493 else
6494 case "$LINGUAS" in *$lang*)
6495 CATALOGS="$CATALOGS $cat"
6496 XLINGUAS="$XLINGUAS $lang"
6497 ;;
6498 esac
6499 fi
6500 done
6501 LINGUAS="$XLINGUAS"
6502 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
6503 echo "${ECHO_T}$LINGUAS" >&6; }
6504
6505 CONFIG_ALL="$CONFIG_ALL all-po"
6506 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
6507 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
6508 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
6509 fi
6510
6511 PACKAGE=gdb
6512
6513 cat >>confdefs.h <<_ACEOF
6514 #define PACKAGE "$PACKAGE"
6515 _ACEOF
6516
6517
6518
6519 debugdir=${libdir}/debug
6520
6521
6522 # Check whether --with-separate-debug-dir was given.
6523 if test "${with_separate_debug_dir+set}" = set; then
6524 withval=$with_separate_debug_dir; debugdir="${withval}"
6525 fi
6526
6527
6528
6529 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6530 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6531 ac_define_dir=`eval echo $debugdir`
6532 ac_define_dir=`eval echo $ac_define_dir`
6533
6534 cat >>confdefs.h <<_ACEOF
6535 #define DEBUGDIR "$ac_define_dir"
6536 _ACEOF
6537
6538
6539 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
6540
6541 subdirs="$subdirs doc testsuite"
6542
6543
6544 # Provide defaults for some variables set by the per-host and per-target
6545 # configuration.
6546 gdb_host_obs=posix-hdep.o
6547
6548 . $srcdir/configure.host
6549
6550 . $srcdir/configure.tgt
6551
6552 # Fetch the default architecture and default target vector from BFD.
6553 targ=$target; . $srcdir/../bfd/config.bfd
6554
6555 # We only want the first architecture, so strip off the others if
6556 # there is more than one.
6557 targ_archs=`echo $targ_archs | sed 's/ .*//'`
6558
6559 if test "x$targ_archs" != x; then
6560
6561 cat >>confdefs.h <<_ACEOF
6562 #define DEFAULT_BFD_ARCH $targ_archs
6563 _ACEOF
6564
6565 fi
6566 if test "x$targ_defvec" != x; then
6567
6568 cat >>confdefs.h <<_ACEOF
6569 #define DEFAULT_BFD_VEC $targ_defvec
6570 _ACEOF
6571
6572 fi
6573
6574 test "$program_prefix" != NONE &&
6575 program_transform_name="s&^&$program_prefix&;$program_transform_name"
6576 # Use a double $ so make ignores it.
6577 test "$program_suffix" != NONE &&
6578 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6579 # Double any \ or $. echo might interpret backslashes.
6580 # By default was `s,x,x', remove it if useless.
6581 cat <<\_ACEOF >conftest.sed
6582 s/[\\$]/&&/g;s/;s,x,x,$//
6583 _ACEOF
6584 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6585 rm -f conftest.sed
6586
6587
6588 # The CLI cannot be disabled yet, but may be in the future.
6589
6590 # Enable CLI.
6591 # Check whether --enable-gdbcli was given.
6592 if test "${enable_gdbcli+set}" = set; then
6593 enableval=$enable_gdbcli; case $enableval in
6594 yes)
6595 ;;
6596 no)
6597 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
6598 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
6599 { (exit 1); exit 1; }; } ;;
6600 *)
6601 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
6602 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
6603 { (exit 1); exit 1; }; } ;;
6604 esac
6605 else
6606 enable_gdbcli=yes
6607 fi
6608
6609 if test x"$enable_gdbcli" = xyes; then
6610 if test -d $srcdir/cli; then
6611 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6612 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6613 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6614 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6615 fi
6616 fi
6617
6618 # Enable MI.
6619 # Check whether --enable-gdbmi was given.
6620 if test "${enable_gdbmi+set}" = set; then
6621 enableval=$enable_gdbmi; case $enableval in
6622 yes | no)
6623 ;;
6624 *)
6625 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
6626 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
6627 { (exit 1); exit 1; }; } ;;
6628 esac
6629 else
6630 enable_gdbmi=yes
6631 fi
6632
6633 if test x"$enable_gdbmi" = xyes; then
6634 if test -d $srcdir/mi; then
6635 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6636 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6637 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6638 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6639 fi
6640 fi
6641
6642 # Enable TUI.
6643 # Check whether --enable-tui was given.
6644 if test "${enable_tui+set}" = set; then
6645 enableval=$enable_tui; case $enableval in
6646 yes | no)
6647 ;;
6648 *)
6649 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6650 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6651 { (exit 1); exit 1; }; } ;;
6652 esac
6653 else
6654 enable_tui=yes
6655 fi
6656
6657
6658 # Enable gdbtk.
6659 # Check whether --enable-gdbtk was given.
6660 if test "${enable_gdbtk+set}" = set; then
6661 enableval=$enable_gdbtk; case $enableval in
6662 yes | no)
6663 ;;
6664 *)
6665 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6666 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6667 { (exit 1); exit 1; }; } ;;
6668 esac
6669 else
6670 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
6671 enable_gdbtk=yes
6672 else
6673 enable_gdbtk=no
6674 fi
6675 fi
6676
6677 # We unconditionally disable gdbtk tests on selected platforms.
6678 case $host_os in
6679 go32* | windows*)
6680 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6681 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6682 enable_gdbtk=no ;;
6683 esac
6684
6685 # Libunwind support.
6686
6687 # Check whether --with-libunwind was given.
6688 if test "${with_libunwind+set}" = set; then
6689 withval=$with_libunwind; case "${withval}" in
6690 yes) enable_libunwind=yes ;;
6691 no) enable_libunwind=no ;;
6692 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6693 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6694 { (exit 1); exit 1; }; } ;;
6695 esac
6696 else
6697
6698
6699 for ac_header in libunwind.h
6700 do
6701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 fi
6708 ac_res=`eval echo '${'$as_ac_Header'}'`
6709 { echo "$as_me:$LINENO: result: $ac_res" >&5
6710 echo "${ECHO_T}$ac_res" >&6; }
6711 else
6712 # Is the header compilable?
6713 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6715 cat >conftest.$ac_ext <<_ACEOF
6716 /* confdefs.h. */
6717 _ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h. */
6721 $ac_includes_default
6722 #include <$ac_header>
6723 _ACEOF
6724 rm -f conftest.$ac_objext
6725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6726 (eval $ac_compile) 2>conftest.er1
6727 ac_status=$?
6728 grep -v '^ *+' conftest.er1 >conftest.err
6729 rm -f conftest.er1
6730 cat conftest.err >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } &&
6733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 (eval $ac_try) 2>&5
6736 ac_status=$?
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; } &&
6739 { ac_try='test -s conftest.$ac_objext'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741 (eval $ac_try) 2>&5
6742 ac_status=$?
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; }; then
6745 ac_header_compiler=yes
6746 else
6747 echo "$as_me: failed program was:" >&5
6748 sed 's/^/| /' conftest.$ac_ext >&5
6749
6750 ac_header_compiler=no
6751 fi
6752
6753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6755 echo "${ECHO_T}$ac_header_compiler" >&6; }
6756
6757 # Is the header present?
6758 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6760 cat >conftest.$ac_ext <<_ACEOF
6761 /* confdefs.h. */
6762 _ACEOF
6763 cat confdefs.h >>conftest.$ac_ext
6764 cat >>conftest.$ac_ext <<_ACEOF
6765 /* end confdefs.h. */
6766 #include <$ac_header>
6767 _ACEOF
6768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6770 ac_status=$?
6771 grep -v '^ *+' conftest.er1 >conftest.err
6772 rm -f conftest.er1
6773 cat conftest.err >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } >/dev/null; then
6776 if test -s conftest.err; then
6777 ac_cpp_err=$ac_c_preproc_warn_flag
6778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6779 else
6780 ac_cpp_err=
6781 fi
6782 else
6783 ac_cpp_err=yes
6784 fi
6785 if test -z "$ac_cpp_err"; then
6786 ac_header_preproc=yes
6787 else
6788 echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6790
6791 ac_header_preproc=no
6792 fi
6793
6794 rm -f conftest.err conftest.$ac_ext
6795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6796 echo "${ECHO_T}$ac_header_preproc" >&6; }
6797
6798 # So? What about this header?
6799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6800 yes:no: )
6801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6805 ac_header_preproc=yes
6806 ;;
6807 no:yes:* )
6808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6811 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6815 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6820
6821 ;;
6822 esac
6823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 else
6828 eval "$as_ac_Header=\$ac_header_preproc"
6829 fi
6830 ac_res=`eval echo '${'$as_ac_Header'}'`
6831 { echo "$as_me:$LINENO: result: $ac_res" >&5
6832 echo "${ECHO_T}$ac_res" >&6; }
6833
6834 fi
6835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6836 cat >>confdefs.h <<_ACEOF
6837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6838 _ACEOF
6839
6840 fi
6841
6842 done
6843
6844
6845 for ac_header in libunwind-ia64.h
6846 do
6847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6853 fi
6854 ac_res=`eval echo '${'$as_ac_Header'}'`
6855 { echo "$as_me:$LINENO: result: $ac_res" >&5
6856 echo "${ECHO_T}$ac_res" >&6; }
6857 else
6858 # Is the header compilable?
6859 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6861 cat >conftest.$ac_ext <<_ACEOF
6862 /* confdefs.h. */
6863 _ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6867 $ac_includes_default
6868 #include <$ac_header>
6869 _ACEOF
6870 rm -f conftest.$ac_objext
6871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6872 (eval $ac_compile) 2>conftest.er1
6873 ac_status=$?
6874 grep -v '^ *+' conftest.er1 >conftest.err
6875 rm -f conftest.er1
6876 cat conftest.err >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } &&
6879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881 (eval $ac_try) 2>&5
6882 ac_status=$?
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; } &&
6885 { ac_try='test -s conftest.$ac_objext'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 (eval $ac_try) 2>&5
6888 ac_status=$?
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6891 ac_header_compiler=yes
6892 else
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6895
6896 ac_header_compiler=no
6897 fi
6898
6899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6901 echo "${ECHO_T}$ac_header_compiler" >&6; }
6902
6903 # Is the header present?
6904 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6906 cat >conftest.$ac_ext <<_ACEOF
6907 /* confdefs.h. */
6908 _ACEOF
6909 cat confdefs.h >>conftest.$ac_ext
6910 cat >>conftest.$ac_ext <<_ACEOF
6911 /* end confdefs.h. */
6912 #include <$ac_header>
6913 _ACEOF
6914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6916 ac_status=$?
6917 grep -v '^ *+' conftest.er1 >conftest.err
6918 rm -f conftest.er1
6919 cat conftest.err >&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } >/dev/null; then
6922 if test -s conftest.err; then
6923 ac_cpp_err=$ac_c_preproc_warn_flag
6924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6925 else
6926 ac_cpp_err=
6927 fi
6928 else
6929 ac_cpp_err=yes
6930 fi
6931 if test -z "$ac_cpp_err"; then
6932 ac_header_preproc=yes
6933 else
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6936
6937 ac_header_preproc=no
6938 fi
6939
6940 rm -f conftest.err conftest.$ac_ext
6941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6942 echo "${ECHO_T}$ac_header_preproc" >&6; }
6943
6944 # So? What about this header?
6945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6946 yes:no: )
6947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6951 ac_header_preproc=yes
6952 ;;
6953 no:yes:* )
6954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6966
6967 ;;
6968 esac
6969 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974 eval "$as_ac_Header=\$ac_header_preproc"
6975 fi
6976 ac_res=`eval echo '${'$as_ac_Header'}'`
6977 { echo "$as_me:$LINENO: result: $ac_res" >&5
6978 echo "${ECHO_T}$ac_res" >&6; }
6979
6980 fi
6981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6982 cat >>confdefs.h <<_ACEOF
6983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6984 _ACEOF
6985
6986 fi
6987
6988 done
6989
6990 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6991 enable_libunwind=yes;
6992 fi
6993
6994 fi
6995
6996
6997 if test x"$enable_libunwind" = xyes; then
6998
6999 for ac_header in libunwind.h
7000 do
7001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 fi
7008 ac_res=`eval echo '${'$as_ac_Header'}'`
7009 { echo "$as_me:$LINENO: result: $ac_res" >&5
7010 echo "${ECHO_T}$ac_res" >&6; }
7011 else
7012 # Is the header compilable?
7013 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7015 cat >conftest.$ac_ext <<_ACEOF
7016 /* confdefs.h. */
7017 _ACEOF
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h. */
7021 $ac_includes_default
7022 #include <$ac_header>
7023 _ACEOF
7024 rm -f conftest.$ac_objext
7025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7026 (eval $ac_compile) 2>conftest.er1
7027 ac_status=$?
7028 grep -v '^ *+' conftest.er1 >conftest.err
7029 rm -f conftest.er1
7030 cat conftest.err >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } &&
7033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 (eval $ac_try) 2>&5
7036 ac_status=$?
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); }; } &&
7039 { ac_try='test -s conftest.$ac_objext'
7040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041 (eval $ac_try) 2>&5
7042 ac_status=$?
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); }; }; then
7045 ac_header_compiler=yes
7046 else
7047 echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7049
7050 ac_header_compiler=no
7051 fi
7052
7053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7055 echo "${ECHO_T}$ac_header_compiler" >&6; }
7056
7057 # Is the header present?
7058 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7060 cat >conftest.$ac_ext <<_ACEOF
7061 /* confdefs.h. */
7062 _ACEOF
7063 cat confdefs.h >>conftest.$ac_ext
7064 cat >>conftest.$ac_ext <<_ACEOF
7065 /* end confdefs.h. */
7066 #include <$ac_header>
7067 _ACEOF
7068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7070 ac_status=$?
7071 grep -v '^ *+' conftest.er1 >conftest.err
7072 rm -f conftest.er1
7073 cat conftest.err >&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } >/dev/null; then
7076 if test -s conftest.err; then
7077 ac_cpp_err=$ac_c_preproc_warn_flag
7078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7079 else
7080 ac_cpp_err=
7081 fi
7082 else
7083 ac_cpp_err=yes
7084 fi
7085 if test -z "$ac_cpp_err"; then
7086 ac_header_preproc=yes
7087 else
7088 echo "$as_me: failed program was:" >&5
7089 sed 's/^/| /' conftest.$ac_ext >&5
7090
7091 ac_header_preproc=no
7092 fi
7093
7094 rm -f conftest.err conftest.$ac_ext
7095 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7096 echo "${ECHO_T}$ac_header_preproc" >&6; }
7097
7098 # So? What about this header?
7099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7100 yes:no: )
7101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7104 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7105 ac_header_preproc=yes
7106 ;;
7107 no:yes:* )
7108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7111 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7113 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7115 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7119 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7120
7121 ;;
7122 esac
7123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7127 else
7128 eval "$as_ac_Header=\$ac_header_preproc"
7129 fi
7130 ac_res=`eval echo '${'$as_ac_Header'}'`
7131 { echo "$as_me:$LINENO: result: $ac_res" >&5
7132 echo "${ECHO_T}$ac_res" >&6; }
7133
7134 fi
7135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7136 cat >>confdefs.h <<_ACEOF
7137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7138 _ACEOF
7139
7140 fi
7141
7142 done
7143
7144
7145 for ac_header in libunwind-ia64.h
7146 do
7147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 fi
7154 ac_res=`eval echo '${'$as_ac_Header'}'`
7155 { echo "$as_me:$LINENO: result: $ac_res" >&5
7156 echo "${ECHO_T}$ac_res" >&6; }
7157 else
7158 # Is the header compilable?
7159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7161 cat >conftest.$ac_ext <<_ACEOF
7162 /* confdefs.h. */
7163 _ACEOF
7164 cat confdefs.h >>conftest.$ac_ext
7165 cat >>conftest.$ac_ext <<_ACEOF
7166 /* end confdefs.h. */
7167 $ac_includes_default
7168 #include <$ac_header>
7169 _ACEOF
7170 rm -f conftest.$ac_objext
7171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7172 (eval $ac_compile) 2>conftest.er1
7173 ac_status=$?
7174 grep -v '^ *+' conftest.er1 >conftest.err
7175 rm -f conftest.er1
7176 cat conftest.err >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } &&
7179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181 (eval $ac_try) 2>&5
7182 ac_status=$?
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; } &&
7185 { ac_try='test -s conftest.$ac_objext'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187 (eval $ac_try) 2>&5
7188 ac_status=$?
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; }; then
7191 ac_header_compiler=yes
7192 else
7193 echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.$ac_ext >&5
7195
7196 ac_header_compiler=no
7197 fi
7198
7199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7201 echo "${ECHO_T}$ac_header_compiler" >&6; }
7202
7203 # Is the header present?
7204 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7206 cat >conftest.$ac_ext <<_ACEOF
7207 /* confdefs.h. */
7208 _ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7212 #include <$ac_header>
7213 _ACEOF
7214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7216 ac_status=$?
7217 grep -v '^ *+' conftest.er1 >conftest.err
7218 rm -f conftest.er1
7219 cat conftest.err >&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } >/dev/null; then
7222 if test -s conftest.err; then
7223 ac_cpp_err=$ac_c_preproc_warn_flag
7224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7225 else
7226 ac_cpp_err=
7227 fi
7228 else
7229 ac_cpp_err=yes
7230 fi
7231 if test -z "$ac_cpp_err"; then
7232 ac_header_preproc=yes
7233 else
7234 echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7236
7237 ac_header_preproc=no
7238 fi
7239
7240 rm -f conftest.err conftest.$ac_ext
7241 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7242 echo "${ECHO_T}$ac_header_preproc" >&6; }
7243
7244 # So? What about this header?
7245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7246 yes:no: )
7247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7250 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7251 ac_header_preproc=yes
7252 ;;
7253 no:yes:* )
7254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7257 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7258 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7259 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7260 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7261 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7264 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7265 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7266
7267 ;;
7268 esac
7269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274 eval "$as_ac_Header=\$ac_header_preproc"
7275 fi
7276 ac_res=`eval echo '${'$as_ac_Header'}'`
7277 { echo "$as_me:$LINENO: result: $ac_res" >&5
7278 echo "${ECHO_T}$ac_res" >&6; }
7279
7280 fi
7281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7282 cat >>confdefs.h <<_ACEOF
7283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7284 _ACEOF
7285
7286 fi
7287
7288 done
7289
7290
7291 cat >>confdefs.h <<\_ACEOF
7292 #define HAVE_LIBUNWIND 1
7293 _ACEOF
7294
7295 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
7296 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
7297 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
7298 fi
7299
7300 # Profiling support.
7301 # Check whether --enable-profiling was given.
7302 if test "${enable_profiling+set}" = set; then
7303 enableval=$enable_profiling; case $enableval in
7304 yes | no)
7305 ;;
7306 *)
7307 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
7308 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
7309 { (exit 1); exit 1; }; } ;;
7310 esac
7311 else
7312 enable_profiling=no
7313 fi
7314
7315
7316
7317
7318 for ac_func in monstartup _mcleanup
7319 do
7320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 else
7326 cat >conftest.$ac_ext <<_ACEOF
7327 /* confdefs.h. */
7328 _ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h. */
7332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7334 #define $ac_func innocuous_$ac_func
7335
7336 /* System header to define __stub macros and hopefully few prototypes,
7337 which can conflict with char $ac_func (); below.
7338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7339 <limits.h> exists even on freestanding compilers. */
7340
7341 #ifdef __STDC__
7342 # include <limits.h>
7343 #else
7344 # include <assert.h>
7345 #endif
7346
7347 #undef $ac_func
7348
7349 /* Override any GCC internal prototype to avoid an error.
7350 Use char because int might match the return type of a GCC
7351 builtin and then its argument prototype would still apply. */
7352 #ifdef __cplusplus
7353 extern "C"
7354 #endif
7355 char $ac_func ();
7356 /* The GNU C library defines this for functions which it implements
7357 to always fail with ENOSYS. Some functions are actually named
7358 something starting with __ and the normal name is an alias. */
7359 #if defined __stub_$ac_func || defined __stub___$ac_func
7360 choke me
7361 #endif
7362
7363 int
7364 main ()
7365 {
7366 return $ac_func ();
7367 ;
7368 return 0;
7369 }
7370 _ACEOF
7371 rm -f conftest.$ac_objext conftest$ac_exeext
7372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7373 (eval $ac_link) 2>conftest.er1
7374 ac_status=$?
7375 grep -v '^ *+' conftest.er1 >conftest.err
7376 rm -f conftest.er1
7377 cat conftest.err >&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } &&
7380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382 (eval $ac_try) 2>&5
7383 ac_status=$?
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); }; } &&
7386 { ac_try='test -s conftest$ac_exeext'
7387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7388 (eval $ac_try) 2>&5
7389 ac_status=$?
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); }; }; then
7392 eval "$as_ac_var=yes"
7393 else
7394 echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7396
7397 eval "$as_ac_var=no"
7398 fi
7399
7400 rm -f conftest.err conftest.$ac_objext \
7401 conftest$ac_exeext conftest.$ac_ext
7402 fi
7403 ac_res=`eval echo '${'$as_ac_var'}'`
7404 { echo "$as_me:$LINENO: result: $ac_res" >&5
7405 echo "${ECHO_T}$ac_res" >&6; }
7406 if test `eval echo '${'$as_ac_var'}'` = yes; then
7407 cat >>confdefs.h <<_ACEOF
7408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7409 _ACEOF
7410
7411 fi
7412 done
7413
7414 { echo "$as_me:$LINENO: checking for _etext" >&5
7415 echo $ECHO_N "checking for _etext... $ECHO_C" >&6; }
7416 if test "${ac_cv_var__etext+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419 cat >conftest.$ac_ext <<_ACEOF
7420 /* confdefs.h. */
7421 _ACEOF
7422 cat confdefs.h >>conftest.$ac_ext
7423 cat >>conftest.$ac_ext <<_ACEOF
7424 /* end confdefs.h. */
7425 #include <stdlib.h>
7426 extern char _etext;
7427
7428 int
7429 main ()
7430 {
7431 free (&_etext);
7432 ;
7433 return 0;
7434 }
7435 _ACEOF
7436 rm -f conftest.$ac_objext conftest$ac_exeext
7437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7438 (eval $ac_link) 2>conftest.er1
7439 ac_status=$?
7440 grep -v '^ *+' conftest.er1 >conftest.err
7441 rm -f conftest.er1
7442 cat conftest.err >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } &&
7445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 (eval $ac_try) 2>&5
7448 ac_status=$?
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; } &&
7451 { ac_try='test -s conftest$ac_exeext'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453 (eval $ac_try) 2>&5
7454 ac_status=$?
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; }; then
7457 ac_cv_var__etext=yes
7458 else
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7461
7462 ac_cv_var__etext=no
7463 fi
7464
7465 rm -f conftest.err conftest.$ac_objext \
7466 conftest$ac_exeext conftest.$ac_ext
7467 fi
7468 { echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
7469 echo "${ECHO_T}$ac_cv_var__etext" >&6; }
7470 if test $ac_cv_var__etext = yes; then
7471
7472 cat >>confdefs.h <<\_ACEOF
7473 #define HAVE__ETEXT 1
7474 _ACEOF
7475
7476 fi
7477 if test "$enable_profiling" = yes ; then
7478 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
7479 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
7480 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
7481 { (exit 1); exit 1; }; }
7482 fi
7483 PROFILE_CFLAGS=-pg
7484 OLD_CFLAGS="$CFLAGS"
7485 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
7486
7487 { echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
7488 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6; }
7489 if test "${ac_cv_cc_supports_pg+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 else
7492 cat >conftest.$ac_ext <<_ACEOF
7493 /* confdefs.h. */
7494 _ACEOF
7495 cat confdefs.h >>conftest.$ac_ext
7496 cat >>conftest.$ac_ext <<_ACEOF
7497 /* end confdefs.h. */
7498
7499 int
7500 main ()
7501 {
7502 int x;
7503 ;
7504 return 0;
7505 }
7506 _ACEOF
7507 rm -f conftest.$ac_objext
7508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7509 (eval $ac_compile) 2>conftest.er1
7510 ac_status=$?
7511 grep -v '^ *+' conftest.er1 >conftest.err
7512 rm -f conftest.er1
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } &&
7516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518 (eval $ac_try) 2>&5
7519 ac_status=$?
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }; } &&
7522 { ac_try='test -s conftest.$ac_objext'
7523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524 (eval $ac_try) 2>&5
7525 ac_status=$?
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); }; }; then
7528 ac_cv_cc_supports_pg=yes
7529 else
7530 echo "$as_me: failed program was:" >&5
7531 sed 's/^/| /' conftest.$ac_ext >&5
7532
7533 ac_cv_cc_supports_pg=no
7534 fi
7535
7536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7537 fi
7538 { echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
7539 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6; }
7540
7541 if test $ac_cv_cc_supports_pg = no; then
7542 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
7543 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
7544 { (exit 1); exit 1; }; }
7545 fi
7546
7547 CFLAGS="$OLD_CFLAGS"
7548 fi
7549
7550 # --------------------- #
7551 # Checks for programs. #
7552 # --------------------- #
7553
7554 for ac_prog in gawk mawk nawk awk
7555 do
7556 # Extract the first word of "$ac_prog", so it can be a program name with args.
7557 set dummy $ac_prog; ac_word=$2
7558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7560 if test "${ac_cv_prog_AWK+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 else
7563 if test -n "$AWK"; then
7564 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7565 else
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 for as_dir in $PATH
7568 do
7569 IFS=$as_save_IFS
7570 test -z "$as_dir" && as_dir=.
7571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7573 ac_cv_prog_AWK="$ac_prog"
7574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 break 2
7576 fi
7577 done
7578 done
7579 IFS=$as_save_IFS
7580
7581 fi
7582 fi
7583 AWK=$ac_cv_prog_AWK
7584 if test -n "$AWK"; then
7585 { echo "$as_me:$LINENO: result: $AWK" >&5
7586 echo "${ECHO_T}$AWK" >&6; }
7587 else
7588 { echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6; }
7590 fi
7591
7592
7593 test -n "$AWK" && break
7594 done
7595
7596 # Find a good install program. We prefer a C program (faster),
7597 # so one script is as good as another. But avoid the broken or
7598 # incompatible versions:
7599 # SysV /etc/install, /usr/sbin/install
7600 # SunOS /usr/etc/install
7601 # IRIX /sbin/install
7602 # AIX /bin/install
7603 # AmigaOS /C/install, which installs bootblocks on floppy discs
7604 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7605 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7606 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7607 # OS/2's system install, which has a completely different semantic
7608 # ./install, which can be erroneously created by make from ./install.sh.
7609 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7610 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7611 if test -z "$INSTALL"; then
7612 if test "${ac_cv_path_install+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 for as_dir in $PATH
7617 do
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
7620 # Account for people who put trailing slashes in PATH elements.
7621 case $as_dir/ in
7622 ./ | .// | /cC/* | \
7623 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7624 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7625 /usr/ucb/* ) ;;
7626 *)
7627 # OSF1 and SCO ODT 3.0 have their own names for install.
7628 # Don't use installbsd from OSF since it installs stuff as root
7629 # by default.
7630 for ac_prog in ginstall scoinst install; do
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7633 if test $ac_prog = install &&
7634 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7635 # AIX install. It has an incompatible calling convention.
7636 :
7637 elif test $ac_prog = install &&
7638 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7639 # program-specific install script used by HP pwplus--don't use.
7640 :
7641 else
7642 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7643 break 3
7644 fi
7645 fi
7646 done
7647 done
7648 ;;
7649 esac
7650 done
7651 IFS=$as_save_IFS
7652
7653
7654 fi
7655 if test "${ac_cv_path_install+set}" = set; then
7656 INSTALL=$ac_cv_path_install
7657 else
7658 # As a last resort, use the slow shell script. Don't cache a
7659 # value for INSTALL within a source directory, because that will
7660 # break other packages using the cache if that directory is
7661 # removed, or if the value is a relative name.
7662 INSTALL=$ac_install_sh
7663 fi
7664 fi
7665 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7666 echo "${ECHO_T}$INSTALL" >&6; }
7667
7668 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7669 # It thinks the first close brace ends the variable substitution.
7670 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7671
7672 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7673
7674 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7675
7676 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
7677 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
7678 LN_S=$as_ln_s
7679 if test "$LN_S" = "ln -s"; then
7680 { echo "$as_me:$LINENO: result: yes" >&5
7681 echo "${ECHO_T}yes" >&6; }
7682 else
7683 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7684 echo "${ECHO_T}no, using $LN_S" >&6; }
7685 fi
7686
7687 if test -n "$ac_tool_prefix"; then
7688 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7689 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7692 if test "${ac_cv_prog_RANLIB+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7694 else
7695 if test -n "$RANLIB"; then
7696 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7697 else
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH
7700 do
7701 IFS=$as_save_IFS
7702 test -z "$as_dir" && as_dir=.
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7705 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 break 2
7708 fi
7709 done
7710 done
7711 IFS=$as_save_IFS
7712
7713 fi
7714 fi
7715 RANLIB=$ac_cv_prog_RANLIB
7716 if test -n "$RANLIB"; then
7717 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7718 echo "${ECHO_T}$RANLIB" >&6; }
7719 else
7720 { echo "$as_me:$LINENO: result: no" >&5
7721 echo "${ECHO_T}no" >&6; }
7722 fi
7723
7724
7725 fi
7726 if test -z "$ac_cv_prog_RANLIB"; then
7727 ac_ct_RANLIB=$RANLIB
7728 # Extract the first word of "ranlib", so it can be a program name with args.
7729 set dummy ranlib; ac_word=$2
7730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7732 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 else
7735 if test -n "$ac_ct_RANLIB"; then
7736 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7737 else
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 for as_dir in $PATH
7740 do
7741 IFS=$as_save_IFS
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
7744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7745 ac_cv_prog_ac_ct_RANLIB="ranlib"
7746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 break 2
7748 fi
7749 done
7750 done
7751 IFS=$as_save_IFS
7752
7753 fi
7754 fi
7755 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7756 if test -n "$ac_ct_RANLIB"; then
7757 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7758 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7759 else
7760 { echo "$as_me:$LINENO: result: no" >&5
7761 echo "${ECHO_T}no" >&6; }
7762 fi
7763
7764 if test "x$ac_ct_RANLIB" = x; then
7765 RANLIB=":"
7766 else
7767 case $cross_compiling:$ac_tool_warned in
7768 yes:)
7769 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7770 whose name does not start with the host triplet. If you think this
7771 configuration is useful to you, please write to autoconf@gnu.org." >&5
7772 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7773 whose name does not start with the host triplet. If you think this
7774 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7775 ac_tool_warned=yes ;;
7776 esac
7777 RANLIB=$ac_ct_RANLIB
7778 fi
7779 else
7780 RANLIB="$ac_cv_prog_RANLIB"
7781 fi
7782
7783 for ac_prog in 'bison -y' byacc
7784 do
7785 # Extract the first word of "$ac_prog", so it can be a program name with args.
7786 set dummy $ac_prog; ac_word=$2
7787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7789 if test "${ac_cv_prog_YACC+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792 if test -n "$YACC"; then
7793 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7794 else
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 for as_dir in $PATH
7797 do
7798 IFS=$as_save_IFS
7799 test -z "$as_dir" && as_dir=.
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7802 ac_cv_prog_YACC="$ac_prog"
7803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 break 2
7805 fi
7806 done
7807 done
7808 IFS=$as_save_IFS
7809
7810 fi
7811 fi
7812 YACC=$ac_cv_prog_YACC
7813 if test -n "$YACC"; then
7814 { echo "$as_me:$LINENO: result: $YACC" >&5
7815 echo "${ECHO_T}$YACC" >&6; }
7816 else
7817 { echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6; }
7819 fi
7820
7821
7822 test -n "$YACC" && break
7823 done
7824 test -n "$YACC" || YACC="yacc"
7825
7826
7827 if test -n "$ac_tool_prefix"; then
7828 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7829 set dummy ${ac_tool_prefix}ar; ac_word=$2
7830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7832 if test "${ac_cv_prog_AR+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7834 else
7835 if test -n "$AR"; then
7836 ac_cv_prog_AR="$AR" # Let the user override the test.
7837 else
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 for as_dir in $PATH
7840 do
7841 IFS=$as_save_IFS
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7845 ac_cv_prog_AR="${ac_tool_prefix}ar"
7846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 break 2
7848 fi
7849 done
7850 done
7851 IFS=$as_save_IFS
7852
7853 fi
7854 fi
7855 AR=$ac_cv_prog_AR
7856 if test -n "$AR"; then
7857 { echo "$as_me:$LINENO: result: $AR" >&5
7858 echo "${ECHO_T}$AR" >&6; }
7859 else
7860 { echo "$as_me:$LINENO: result: no" >&5
7861 echo "${ECHO_T}no" >&6; }
7862 fi
7863
7864
7865 fi
7866 if test -z "$ac_cv_prog_AR"; then
7867 ac_ct_AR=$AR
7868 # Extract the first word of "ar", so it can be a program name with args.
7869 set dummy ar; ac_word=$2
7870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7872 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 else
7875 if test -n "$ac_ct_AR"; then
7876 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7877 else
7878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879 for as_dir in $PATH
7880 do
7881 IFS=$as_save_IFS
7882 test -z "$as_dir" && as_dir=.
7883 for ac_exec_ext in '' $ac_executable_extensions; do
7884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7885 ac_cv_prog_ac_ct_AR="ar"
7886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7887 break 2
7888 fi
7889 done
7890 done
7891 IFS=$as_save_IFS
7892
7893 fi
7894 fi
7895 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7896 if test -n "$ac_ct_AR"; then
7897 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7898 echo "${ECHO_T}$ac_ct_AR" >&6; }
7899 else
7900 { echo "$as_me:$LINENO: result: no" >&5
7901 echo "${ECHO_T}no" >&6; }
7902 fi
7903
7904 if test "x$ac_ct_AR" = x; then
7905 AR=""
7906 else
7907 case $cross_compiling:$ac_tool_warned in
7908 yes:)
7909 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7910 whose name does not start with the host triplet. If you think this
7911 configuration is useful to you, please write to autoconf@gnu.org." >&5
7912 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7913 whose name does not start with the host triplet. If you think this
7914 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7915 ac_tool_warned=yes ;;
7916 esac
7917 AR=$ac_ct_AR
7918 fi
7919 else
7920 AR="$ac_cv_prog_AR"
7921 fi
7922
7923 if test -n "$ac_tool_prefix"; then
7924 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7925 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7928 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 else
7931 if test -n "$DLLTOOL"; then
7932 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7933 else
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 for as_dir in $PATH
7936 do
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7941 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 break 2
7944 fi
7945 done
7946 done
7947 IFS=$as_save_IFS
7948
7949 fi
7950 fi
7951 DLLTOOL=$ac_cv_prog_DLLTOOL
7952 if test -n "$DLLTOOL"; then
7953 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7954 echo "${ECHO_T}$DLLTOOL" >&6; }
7955 else
7956 { echo "$as_me:$LINENO: result: no" >&5
7957 echo "${ECHO_T}no" >&6; }
7958 fi
7959
7960
7961 fi
7962 if test -z "$ac_cv_prog_DLLTOOL"; then
7963 ac_ct_DLLTOOL=$DLLTOOL
7964 # Extract the first word of "dlltool", so it can be a program name with args.
7965 set dummy dlltool; ac_word=$2
7966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7968 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7969 echo $ECHO_N "(cached) $ECHO_C" >&6
7970 else
7971 if test -n "$ac_ct_DLLTOOL"; then
7972 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7973 else
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 for as_dir in $PATH
7976 do
7977 IFS=$as_save_IFS
7978 test -z "$as_dir" && as_dir=.
7979 for ac_exec_ext in '' $ac_executable_extensions; do
7980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7981 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7983 break 2
7984 fi
7985 done
7986 done
7987 IFS=$as_save_IFS
7988
7989 fi
7990 fi
7991 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7992 if test -n "$ac_ct_DLLTOOL"; then
7993 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7994 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
7995 else
7996 { echo "$as_me:$LINENO: result: no" >&5
7997 echo "${ECHO_T}no" >&6; }
7998 fi
7999
8000 if test "x$ac_ct_DLLTOOL" = x; then
8001 DLLTOOL=""
8002 else
8003 case $cross_compiling:$ac_tool_warned in
8004 yes:)
8005 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8006 whose name does not start with the host triplet. If you think this
8007 configuration is useful to you, please write to autoconf@gnu.org." >&5
8008 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8009 whose name does not start with the host triplet. If you think this
8010 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8011 ac_tool_warned=yes ;;
8012 esac
8013 DLLTOOL=$ac_ct_DLLTOOL
8014 fi
8015 else
8016 DLLTOOL="$ac_cv_prog_DLLTOOL"
8017 fi
8018
8019 if test -n "$ac_tool_prefix"; then
8020 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8021 set dummy ${ac_tool_prefix}windres; ac_word=$2
8022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8024 if test "${ac_cv_prog_WINDRES+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8026 else
8027 if test -n "$WINDRES"; then
8028 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8029 else
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH
8032 do
8033 IFS=$as_save_IFS
8034 test -z "$as_dir" && as_dir=.
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8037 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8039 break 2
8040 fi
8041 done
8042 done
8043 IFS=$as_save_IFS
8044
8045 fi
8046 fi
8047 WINDRES=$ac_cv_prog_WINDRES
8048 if test -n "$WINDRES"; then
8049 { echo "$as_me:$LINENO: result: $WINDRES" >&5
8050 echo "${ECHO_T}$WINDRES" >&6; }
8051 else
8052 { echo "$as_me:$LINENO: result: no" >&5
8053 echo "${ECHO_T}no" >&6; }
8054 fi
8055
8056
8057 fi
8058 if test -z "$ac_cv_prog_WINDRES"; then
8059 ac_ct_WINDRES=$WINDRES
8060 # Extract the first word of "windres", so it can be a program name with args.
8061 set dummy windres; ac_word=$2
8062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8064 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8065 echo $ECHO_N "(cached) $ECHO_C" >&6
8066 else
8067 if test -n "$ac_ct_WINDRES"; then
8068 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8069 else
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 for as_dir in $PATH
8072 do
8073 IFS=$as_save_IFS
8074 test -z "$as_dir" && as_dir=.
8075 for ac_exec_ext in '' $ac_executable_extensions; do
8076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8077 ac_cv_prog_ac_ct_WINDRES="windres"
8078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8079 break 2
8080 fi
8081 done
8082 done
8083 IFS=$as_save_IFS
8084
8085 fi
8086 fi
8087 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8088 if test -n "$ac_ct_WINDRES"; then
8089 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
8090 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
8091 else
8092 { echo "$as_me:$LINENO: result: no" >&5
8093 echo "${ECHO_T}no" >&6; }
8094 fi
8095
8096 if test "x$ac_ct_WINDRES" = x; then
8097 WINDRES=""
8098 else
8099 case $cross_compiling:$ac_tool_warned in
8100 yes:)
8101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8102 whose name does not start with the host triplet. If you think this
8103 configuration is useful to you, please write to autoconf@gnu.org." >&5
8104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8105 whose name does not start with the host triplet. If you think this
8106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8107 ac_tool_warned=yes ;;
8108 esac
8109 WINDRES=$ac_ct_WINDRES
8110 fi
8111 else
8112 WINDRES="$ac_cv_prog_WINDRES"
8113 fi
8114
8115
8116 # Needed for GNU/Hurd.
8117 if test -n "$ac_tool_prefix"; then
8118 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8119 set dummy ${ac_tool_prefix}mig; ac_word=$2
8120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8122 if test "${ac_cv_prog_MIG+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8124 else
8125 if test -n "$MIG"; then
8126 ac_cv_prog_MIG="$MIG" # Let the user override the test.
8127 else
8128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 for as_dir in $PATH
8130 do
8131 IFS=$as_save_IFS
8132 test -z "$as_dir" && as_dir=.
8133 for ac_exec_ext in '' $ac_executable_extensions; do
8134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8135 ac_cv_prog_MIG="${ac_tool_prefix}mig"
8136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8137 break 2
8138 fi
8139 done
8140 done
8141 IFS=$as_save_IFS
8142
8143 fi
8144 fi
8145 MIG=$ac_cv_prog_MIG
8146 if test -n "$MIG"; then
8147 { echo "$as_me:$LINENO: result: $MIG" >&5
8148 echo "${ECHO_T}$MIG" >&6; }
8149 else
8150 { echo "$as_me:$LINENO: result: no" >&5
8151 echo "${ECHO_T}no" >&6; }
8152 fi
8153
8154
8155 fi
8156 if test -z "$ac_cv_prog_MIG"; then
8157 ac_ct_MIG=$MIG
8158 # Extract the first word of "mig", so it can be a program name with args.
8159 set dummy mig; ac_word=$2
8160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8162 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8164 else
8165 if test -n "$ac_ct_MIG"; then
8166 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
8167 else
8168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169 for as_dir in $PATH
8170 do
8171 IFS=$as_save_IFS
8172 test -z "$as_dir" && as_dir=.
8173 for ac_exec_ext in '' $ac_executable_extensions; do
8174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8175 ac_cv_prog_ac_ct_MIG="mig"
8176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8177 break 2
8178 fi
8179 done
8180 done
8181 IFS=$as_save_IFS
8182
8183 fi
8184 fi
8185 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
8186 if test -n "$ac_ct_MIG"; then
8187 { echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
8188 echo "${ECHO_T}$ac_ct_MIG" >&6; }
8189 else
8190 { echo "$as_me:$LINENO: result: no" >&5
8191 echo "${ECHO_T}no" >&6; }
8192 fi
8193
8194 if test "x$ac_ct_MIG" = x; then
8195 MIG=""
8196 else
8197 case $cross_compiling:$ac_tool_warned in
8198 yes:)
8199 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8200 whose name does not start with the host triplet. If you think this
8201 configuration is useful to you, please write to autoconf@gnu.org." >&5
8202 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8203 whose name does not start with the host triplet. If you think this
8204 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8205 ac_tool_warned=yes ;;
8206 esac
8207 MIG=$ac_ct_MIG
8208 fi
8209 else
8210 MIG="$ac_cv_prog_MIG"
8211 fi
8212
8213
8214 # ---------------------- #
8215 # Checks for libraries. #
8216 # ---------------------- #
8217
8218 # We might need to link with -lm; most simulators need it.
8219
8220 { echo "$as_me:$LINENO: checking for main in -lm" >&5
8221 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
8222 if test "${ac_cv_lib_m_main+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8224 else
8225 ac_check_lib_save_LIBS=$LIBS
8226 LIBS="-lm $LIBS"
8227 cat >conftest.$ac_ext <<_ACEOF
8228 /* confdefs.h. */
8229 _ACEOF
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h. */
8233
8234
8235 int
8236 main ()
8237 {
8238 return main ();
8239 ;
8240 return 0;
8241 }
8242 _ACEOF
8243 rm -f conftest.$ac_objext conftest$ac_exeext
8244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8245 (eval $ac_link) 2>conftest.er1
8246 ac_status=$?
8247 grep -v '^ *+' conftest.er1 >conftest.err
8248 rm -f conftest.er1
8249 cat conftest.err >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
8252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 (eval $ac_try) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try='test -s conftest$ac_exeext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 (eval $ac_try) 2>&5
8261 ac_status=$?
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 ac_cv_lib_m_main=yes
8265 else
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8268
8269 ac_cv_lib_m_main=no
8270 fi
8271
8272 rm -f conftest.err conftest.$ac_objext \
8273 conftest$ac_exeext conftest.$ac_ext
8274 LIBS=$ac_check_lib_save_LIBS
8275 fi
8276 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8277 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
8278 if test $ac_cv_lib_m_main = yes; then
8279 cat >>confdefs.h <<_ACEOF
8280 #define HAVE_LIBM 1
8281 _ACEOF
8282
8283 LIBS="-lm $LIBS"
8284
8285 fi
8286
8287
8288 # We need to link with -lw to get `wctype' on Solaris before Solaris
8289 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
8290 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
8291 # is known to have this problem). Therefore we avoid libw if we can.
8292 { echo "$as_me:$LINENO: checking for wctype" >&5
8293 echo $ECHO_N "checking for wctype... $ECHO_C" >&6; }
8294 if test "${ac_cv_func_wctype+set}" = set; then
8295 echo $ECHO_N "(cached) $ECHO_C" >&6
8296 else
8297 cat >conftest.$ac_ext <<_ACEOF
8298 /* confdefs.h. */
8299 _ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h. */
8303 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
8304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8305 #define wctype innocuous_wctype
8306
8307 /* System header to define __stub macros and hopefully few prototypes,
8308 which can conflict with char wctype (); below.
8309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8310 <limits.h> exists even on freestanding compilers. */
8311
8312 #ifdef __STDC__
8313 # include <limits.h>
8314 #else
8315 # include <assert.h>
8316 #endif
8317
8318 #undef wctype
8319
8320 /* Override any GCC internal prototype to avoid an error.
8321 Use char because int might match the return type of a GCC
8322 builtin and then its argument prototype would still apply. */
8323 #ifdef __cplusplus
8324 extern "C"
8325 #endif
8326 char wctype ();
8327 /* The GNU C library defines this for functions which it implements
8328 to always fail with ENOSYS. Some functions are actually named
8329 something starting with __ and the normal name is an alias. */
8330 #if defined __stub_wctype || defined __stub___wctype
8331 choke me
8332 #endif
8333
8334 int
8335 main ()
8336 {
8337 return wctype ();
8338 ;
8339 return 0;
8340 }
8341 _ACEOF
8342 rm -f conftest.$ac_objext conftest$ac_exeext
8343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8344 (eval $ac_link) 2>conftest.er1
8345 ac_status=$?
8346 grep -v '^ *+' conftest.er1 >conftest.err
8347 rm -f conftest.er1
8348 cat conftest.err >&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } &&
8351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8353 (eval $ac_try) 2>&5
8354 ac_status=$?
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; } &&
8357 { ac_try='test -s conftest$ac_exeext'
8358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359 (eval $ac_try) 2>&5
8360 ac_status=$?
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); }; }; then
8363 ac_cv_func_wctype=yes
8364 else
8365 echo "$as_me: failed program was:" >&5
8366 sed 's/^/| /' conftest.$ac_ext >&5
8367
8368 ac_cv_func_wctype=no
8369 fi
8370
8371 rm -f conftest.err conftest.$ac_objext \
8372 conftest$ac_exeext conftest.$ac_ext
8373 fi
8374 { echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
8375 echo "${ECHO_T}$ac_cv_func_wctype" >&6; }
8376 if test $ac_cv_func_wctype = yes; then
8377 :
8378 else
8379
8380 { echo "$as_me:$LINENO: checking for wctype in -lw" >&5
8381 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6; }
8382 if test "${ac_cv_lib_w_wctype+set}" = set; then
8383 echo $ECHO_N "(cached) $ECHO_C" >&6
8384 else
8385 ac_check_lib_save_LIBS=$LIBS
8386 LIBS="-lw $LIBS"
8387 cat >conftest.$ac_ext <<_ACEOF
8388 /* confdefs.h. */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393
8394 /* Override any GCC internal prototype to avoid an error.
8395 Use char because int might match the return type of a GCC
8396 builtin and then its argument prototype would still apply. */
8397 #ifdef __cplusplus
8398 extern "C"
8399 #endif
8400 char wctype ();
8401 int
8402 main ()
8403 {
8404 return wctype ();
8405 ;
8406 return 0;
8407 }
8408 _ACEOF
8409 rm -f conftest.$ac_objext conftest$ac_exeext
8410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8411 (eval $ac_link) 2>conftest.er1
8412 ac_status=$?
8413 grep -v '^ *+' conftest.er1 >conftest.err
8414 rm -f conftest.er1
8415 cat conftest.err >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } &&
8418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420 (eval $ac_try) 2>&5
8421 ac_status=$?
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; } &&
8424 { ac_try='test -s conftest$ac_exeext'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 (eval $ac_try) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; }; then
8430 ac_cv_lib_w_wctype=yes
8431 else
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8434
8435 ac_cv_lib_w_wctype=no
8436 fi
8437
8438 rm -f conftest.err conftest.$ac_objext \
8439 conftest$ac_exeext conftest.$ac_ext
8440 LIBS=$ac_check_lib_save_LIBS
8441 fi
8442 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
8443 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6; }
8444 if test $ac_cv_lib_w_wctype = yes; then
8445 cat >>confdefs.h <<_ACEOF
8446 #define HAVE_LIBW 1
8447 _ACEOF
8448
8449 LIBS="-lw $LIBS"
8450
8451 fi
8452
8453 fi
8454
8455
8456 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
8457 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8458 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
8459 if test "${ac_cv_search_gethostbyname+set}" = set; then
8460 echo $ECHO_N "(cached) $ECHO_C" >&6
8461 else
8462 ac_func_search_save_LIBS=$LIBS
8463 cat >conftest.$ac_ext <<_ACEOF
8464 /* confdefs.h. */
8465 _ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h. */
8469
8470 /* Override any GCC internal prototype to avoid an error.
8471 Use char because int might match the return type of a GCC
8472 builtin and then its argument prototype would still apply. */
8473 #ifdef __cplusplus
8474 extern "C"
8475 #endif
8476 char gethostbyname ();
8477 int
8478 main ()
8479 {
8480 return gethostbyname ();
8481 ;
8482 return 0;
8483 }
8484 _ACEOF
8485 for ac_lib in '' nsl; do
8486 if test -z "$ac_lib"; then
8487 ac_res="none required"
8488 else
8489 ac_res=-l$ac_lib
8490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8491 fi
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8494 (eval $ac_link) 2>conftest.er1
8495 ac_status=$?
8496 grep -v '^ *+' conftest.er1 >conftest.err
8497 rm -f conftest.er1
8498 cat conftest.err >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } &&
8501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503 (eval $ac_try) 2>&5
8504 ac_status=$?
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; } &&
8507 { ac_try='test -s conftest$ac_exeext'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509 (eval $ac_try) 2>&5
8510 ac_status=$?
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; }; then
8513 ac_cv_search_gethostbyname=$ac_res
8514 else
8515 echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8517
8518
8519 fi
8520
8521 rm -f conftest.err conftest.$ac_objext \
8522 conftest$ac_exeext
8523 if test "${ac_cv_search_gethostbyname+set}" = set; then
8524 break
8525 fi
8526 done
8527 if test "${ac_cv_search_gethostbyname+set}" = set; then
8528 :
8529 else
8530 ac_cv_search_gethostbyname=no
8531 fi
8532 rm conftest.$ac_ext
8533 LIBS=$ac_func_search_save_LIBS
8534 fi
8535 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8536 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
8537 ac_res=$ac_cv_search_gethostbyname
8538 if test "$ac_res" != no; then
8539 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8540
8541 fi
8542
8543
8544 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
8545 { echo "$as_me:$LINENO: checking for library containing socketpair" >&5
8546 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6; }
8547 if test "${ac_cv_search_socketpair+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8549 else
8550 ac_func_search_save_LIBS=$LIBS
8551 cat >conftest.$ac_ext <<_ACEOF
8552 /* confdefs.h. */
8553 _ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8557
8558 /* Override any GCC internal prototype to avoid an error.
8559 Use char because int might match the return type of a GCC
8560 builtin and then its argument prototype would still apply. */
8561 #ifdef __cplusplus
8562 extern "C"
8563 #endif
8564 char socketpair ();
8565 int
8566 main ()
8567 {
8568 return socketpair ();
8569 ;
8570 return 0;
8571 }
8572 _ACEOF
8573 for ac_lib in '' socket; do
8574 if test -z "$ac_lib"; then
8575 ac_res="none required"
8576 else
8577 ac_res=-l$ac_lib
8578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8579 fi
8580 rm -f conftest.$ac_objext conftest$ac_exeext
8581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8582 (eval $ac_link) 2>conftest.er1
8583 ac_status=$?
8584 grep -v '^ *+' conftest.er1 >conftest.err
8585 rm -f conftest.er1
8586 cat conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } &&
8589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 (eval $ac_try) 2>&5
8592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; } &&
8595 { ac_try='test -s conftest$ac_exeext'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 (eval $ac_try) 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
8601 ac_cv_search_socketpair=$ac_res
8602 else
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8605
8606
8607 fi
8608
8609 rm -f conftest.err conftest.$ac_objext \
8610 conftest$ac_exeext
8611 if test "${ac_cv_search_socketpair+set}" = set; then
8612 break
8613 fi
8614 done
8615 if test "${ac_cv_search_socketpair+set}" = set; then
8616 :
8617 else
8618 ac_cv_search_socketpair=no
8619 fi
8620 rm conftest.$ac_ext
8621 LIBS=$ac_func_search_save_LIBS
8622 fi
8623 { echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8624 echo "${ECHO_T}$ac_cv_search_socketpair" >&6; }
8625 ac_res=$ac_cv_search_socketpair
8626 if test "$ac_res" != no; then
8627 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8628
8629 fi
8630
8631
8632 # For the TUI, we need enhanced curses functionality.
8633 #
8634 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8635 # curses library because the latter might not provide all the
8636 # functionality we need. However, this leads to problems on systems
8637 # where the linker searches /usr/local/lib, but the compiler doesn't
8638 # search /usr/local/include, if ncurses is installed in /usr/local. A
8639 # default installation of ncurses on alpha*-dec-osf* will lead to such
8640 # a situation.
8641 { echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8642 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6; }
8643 if test "${ac_cv_search_waddstr+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 else
8646 ac_func_search_save_LIBS=$LIBS
8647 cat >conftest.$ac_ext <<_ACEOF
8648 /* confdefs.h. */
8649 _ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8653
8654 /* Override any GCC internal prototype to avoid an error.
8655 Use char because int might match the return type of a GCC
8656 builtin and then its argument prototype would still apply. */
8657 #ifdef __cplusplus
8658 extern "C"
8659 #endif
8660 char waddstr ();
8661 int
8662 main ()
8663 {
8664 return waddstr ();
8665 ;
8666 return 0;
8667 }
8668 _ACEOF
8669 for ac_lib in '' ncurses cursesX curses; do
8670 if test -z "$ac_lib"; then
8671 ac_res="none required"
8672 else
8673 ac_res=-l$ac_lib
8674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8675 fi
8676 rm -f conftest.$ac_objext conftest$ac_exeext
8677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678 (eval $ac_link) 2>conftest.er1
8679 ac_status=$?
8680 grep -v '^ *+' conftest.er1 >conftest.err
8681 rm -f conftest.er1
8682 cat conftest.err >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } &&
8685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 (eval $ac_try) 2>&5
8688 ac_status=$?
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; } &&
8691 { ac_try='test -s conftest$ac_exeext'
8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 (eval $ac_try) 2>&5
8694 ac_status=$?
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; }; then
8697 ac_cv_search_waddstr=$ac_res
8698 else
8699 echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8701
8702
8703 fi
8704
8705 rm -f conftest.err conftest.$ac_objext \
8706 conftest$ac_exeext
8707 if test "${ac_cv_search_waddstr+set}" = set; then
8708 break
8709 fi
8710 done
8711 if test "${ac_cv_search_waddstr+set}" = set; then
8712 :
8713 else
8714 ac_cv_search_waddstr=no
8715 fi
8716 rm conftest.$ac_ext
8717 LIBS=$ac_func_search_save_LIBS
8718 fi
8719 { echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8720 echo "${ECHO_T}$ac_cv_search_waddstr" >&6; }
8721 ac_res=$ac_cv_search_waddstr
8722 if test "$ac_res" != no; then
8723 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8724
8725 fi
8726
8727
8728 # Since GDB uses Readline, we need termcap functionality. In many
8729 # cases this will be provided by the curses library, but some systems
8730 # have a seperate termcap library, or no curses library at all.
8731
8732 case $host_os in
8733 cygwin*)
8734 if test -d $srcdir/libtermcap; then
8735 LIBS="../libtermcap/libtermcap.a $LIBS"
8736 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8737 fi ;;
8738 go32* | *djgpp*)
8739 ac_cv_search_tgetent="none required"
8740 ;;
8741 *mingw32*)
8742 ac_cv_search_tgetent="none required"
8743 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
8744 ;;
8745 esac
8746
8747 # These are the libraries checked by Readline.
8748 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8749 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
8750 if test "${ac_cv_search_tgetent+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 else
8753 ac_func_search_save_LIBS=$LIBS
8754 cat >conftest.$ac_ext <<_ACEOF
8755 /* confdefs.h. */
8756 _ACEOF
8757 cat confdefs.h >>conftest.$ac_ext
8758 cat >>conftest.$ac_ext <<_ACEOF
8759 /* end confdefs.h. */
8760
8761 /* Override any GCC internal prototype to avoid an error.
8762 Use char because int might match the return type of a GCC
8763 builtin and then its argument prototype would still apply. */
8764 #ifdef __cplusplus
8765 extern "C"
8766 #endif
8767 char tgetent ();
8768 int
8769 main ()
8770 {
8771 return tgetent ();
8772 ;
8773 return 0;
8774 }
8775 _ACEOF
8776 for ac_lib in '' termcap tinfo curses ncurses; do
8777 if test -z "$ac_lib"; then
8778 ac_res="none required"
8779 else
8780 ac_res=-l$ac_lib
8781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8782 fi
8783 rm -f conftest.$ac_objext conftest$ac_exeext
8784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8785 (eval $ac_link) 2>conftest.er1
8786 ac_status=$?
8787 grep -v '^ *+' conftest.er1 >conftest.err
8788 rm -f conftest.er1
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } &&
8792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794 (eval $ac_try) 2>&5
8795 ac_status=$?
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }; } &&
8798 { ac_try='test -s conftest$ac_exeext'
8799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800 (eval $ac_try) 2>&5
8801 ac_status=$?
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); }; }; then
8804 ac_cv_search_tgetent=$ac_res
8805 else
8806 echo "$as_me: failed program was:" >&5
8807 sed 's/^/| /' conftest.$ac_ext >&5
8808
8809
8810 fi
8811
8812 rm -f conftest.err conftest.$ac_objext \
8813 conftest$ac_exeext
8814 if test "${ac_cv_search_tgetent+set}" = set; then
8815 break
8816 fi
8817 done
8818 if test "${ac_cv_search_tgetent+set}" = set; then
8819 :
8820 else
8821 ac_cv_search_tgetent=no
8822 fi
8823 rm conftest.$ac_ext
8824 LIBS=$ac_func_search_save_LIBS
8825 fi
8826 { echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8827 echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
8828 ac_res=$ac_cv_search_tgetent
8829 if test "$ac_res" != no; then
8830 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8831
8832 fi
8833
8834
8835 if test "$ac_cv_search_tgetent" = no; then
8836 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8837 echo "$as_me: error: no termcap library found" >&2;}
8838 { (exit 1); exit 1; }; }
8839 fi
8840
8841 # ------------------------- #
8842 # Checks for header files. #
8843 # ------------------------- #
8844
8845
8846
8847
8848
8849
8850 ac_header_dirent=no
8851 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8852 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8853 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8854 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8857 else
8858 cat >conftest.$ac_ext <<_ACEOF
8859 /* confdefs.h. */
8860 _ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8864 #include <sys/types.h>
8865 #include <$ac_hdr>
8866
8867 int
8868 main ()
8869 {
8870 if ((DIR *) 0)
8871 return 0;
8872 ;
8873 return 0;
8874 }
8875 _ACEOF
8876 rm -f conftest.$ac_objext
8877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8878 (eval $ac_compile) 2>conftest.er1
8879 ac_status=$?
8880 grep -v '^ *+' conftest.er1 >conftest.err
8881 rm -f conftest.er1
8882 cat conftest.err >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); } &&
8885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 (eval $ac_try) 2>&5
8888 ac_status=$?
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); }; } &&
8891 { ac_try='test -s conftest.$ac_objext'
8892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893 (eval $ac_try) 2>&5
8894 ac_status=$?
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); }; }; then
8897 eval "$as_ac_Header=yes"
8898 else
8899 echo "$as_me: failed program was:" >&5
8900 sed 's/^/| /' conftest.$ac_ext >&5
8901
8902 eval "$as_ac_Header=no"
8903 fi
8904
8905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8906 fi
8907 ac_res=`eval echo '${'$as_ac_Header'}'`
8908 { echo "$as_me:$LINENO: result: $ac_res" >&5
8909 echo "${ECHO_T}$ac_res" >&6; }
8910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8911 cat >>confdefs.h <<_ACEOF
8912 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8913 _ACEOF
8914
8915 ac_header_dirent=$ac_hdr; break
8916 fi
8917
8918 done
8919 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8920 if test $ac_header_dirent = dirent.h; then
8921 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8922 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8923 if test "${ac_cv_search_opendir+set}" = set; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 else
8926 ac_func_search_save_LIBS=$LIBS
8927 cat >conftest.$ac_ext <<_ACEOF
8928 /* confdefs.h. */
8929 _ACEOF
8930 cat confdefs.h >>conftest.$ac_ext
8931 cat >>conftest.$ac_ext <<_ACEOF
8932 /* end confdefs.h. */
8933
8934 /* Override any GCC internal prototype to avoid an error.
8935 Use char because int might match the return type of a GCC
8936 builtin and then its argument prototype would still apply. */
8937 #ifdef __cplusplus
8938 extern "C"
8939 #endif
8940 char opendir ();
8941 int
8942 main ()
8943 {
8944 return opendir ();
8945 ;
8946 return 0;
8947 }
8948 _ACEOF
8949 for ac_lib in '' dir; do
8950 if test -z "$ac_lib"; then
8951 ac_res="none required"
8952 else
8953 ac_res=-l$ac_lib
8954 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8955 fi
8956 rm -f conftest.$ac_objext conftest$ac_exeext
8957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8958 (eval $ac_link) 2>conftest.er1
8959 ac_status=$?
8960 grep -v '^ *+' conftest.er1 >conftest.err
8961 rm -f conftest.er1
8962 cat conftest.err >&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } &&
8965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8967 (eval $ac_try) 2>&5
8968 ac_status=$?
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; } &&
8971 { ac_try='test -s conftest$ac_exeext'
8972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973 (eval $ac_try) 2>&5
8974 ac_status=$?
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; }; then
8977 ac_cv_search_opendir=$ac_res
8978 else
8979 echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8981
8982
8983 fi
8984
8985 rm -f conftest.err conftest.$ac_objext \
8986 conftest$ac_exeext
8987 if test "${ac_cv_search_opendir+set}" = set; then
8988 break
8989 fi
8990 done
8991 if test "${ac_cv_search_opendir+set}" = set; then
8992 :
8993 else
8994 ac_cv_search_opendir=no
8995 fi
8996 rm conftest.$ac_ext
8997 LIBS=$ac_func_search_save_LIBS
8998 fi
8999 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9000 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9001 ac_res=$ac_cv_search_opendir
9002 if test "$ac_res" != no; then
9003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9004
9005 fi
9006
9007 else
9008 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9009 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9010 if test "${ac_cv_search_opendir+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 else
9013 ac_func_search_save_LIBS=$LIBS
9014 cat >conftest.$ac_ext <<_ACEOF
9015 /* confdefs.h. */
9016 _ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h. */
9020
9021 /* Override any GCC internal prototype to avoid an error.
9022 Use char because int might match the return type of a GCC
9023 builtin and then its argument prototype would still apply. */
9024 #ifdef __cplusplus
9025 extern "C"
9026 #endif
9027 char opendir ();
9028 int
9029 main ()
9030 {
9031 return opendir ();
9032 ;
9033 return 0;
9034 }
9035 _ACEOF
9036 for ac_lib in '' x; do
9037 if test -z "$ac_lib"; then
9038 ac_res="none required"
9039 else
9040 ac_res=-l$ac_lib
9041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9042 fi
9043 rm -f conftest.$ac_objext conftest$ac_exeext
9044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9045 (eval $ac_link) 2>conftest.er1
9046 ac_status=$?
9047 grep -v '^ *+' conftest.er1 >conftest.err
9048 rm -f conftest.er1
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } &&
9052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054 (eval $ac_try) 2>&5
9055 ac_status=$?
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; } &&
9058 { ac_try='test -s conftest$ac_exeext'
9059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060 (eval $ac_try) 2>&5
9061 ac_status=$?
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; }; then
9064 ac_cv_search_opendir=$ac_res
9065 else
9066 echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9068
9069
9070 fi
9071
9072 rm -f conftest.err conftest.$ac_objext \
9073 conftest$ac_exeext
9074 if test "${ac_cv_search_opendir+set}" = set; then
9075 break
9076 fi
9077 done
9078 if test "${ac_cv_search_opendir+set}" = set; then
9079 :
9080 else
9081 ac_cv_search_opendir=no
9082 fi
9083 rm conftest.$ac_ext
9084 LIBS=$ac_func_search_save_LIBS
9085 fi
9086 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9087 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9088 ac_res=$ac_cv_search_opendir
9089 if test "$ac_res" != no; then
9090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9091
9092 fi
9093
9094 fi
9095
9096 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9097 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
9098 if test "${ac_cv_header_stat_broken+set}" = set; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
9100 else
9101 cat >conftest.$ac_ext <<_ACEOF
9102 /* confdefs.h. */
9103 _ACEOF
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h. */
9107 #include <sys/types.h>
9108 #include <sys/stat.h>
9109
9110 #if defined S_ISBLK && defined S_IFDIR
9111 # if S_ISBLK (S_IFDIR)
9112 You lose.
9113 # endif
9114 #endif
9115
9116 #if defined S_ISBLK && defined S_IFCHR
9117 # if S_ISBLK (S_IFCHR)
9118 You lose.
9119 # endif
9120 #endif
9121
9122 #if defined S_ISLNK && defined S_IFREG
9123 # if S_ISLNK (S_IFREG)
9124 You lose.
9125 # endif
9126 #endif
9127
9128 #if defined S_ISSOCK && defined S_IFREG
9129 # if S_ISSOCK (S_IFREG)
9130 You lose.
9131 # endif
9132 #endif
9133
9134 _ACEOF
9135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9136 $EGREP "You lose" >/dev/null 2>&1; then
9137 ac_cv_header_stat_broken=yes
9138 else
9139 ac_cv_header_stat_broken=no
9140 fi
9141 rm -f conftest*
9142
9143 fi
9144 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9145 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
9146 if test $ac_cv_header_stat_broken = yes; then
9147
9148 cat >>confdefs.h <<\_ACEOF
9149 #define STAT_MACROS_BROKEN 1
9150 _ACEOF
9151
9152 fi
9153
9154 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9155 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9156 if test "${ac_cv_header_stdc+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 else
9159 cat >conftest.$ac_ext <<_ACEOF
9160 /* confdefs.h. */
9161 _ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9165 #include <stdlib.h>
9166 #include <stdarg.h>
9167 #include <string.h>
9168 #include <float.h>
9169
9170 int
9171 main ()
9172 {
9173
9174 ;
9175 return 0;
9176 }
9177 _ACEOF
9178 rm -f conftest.$ac_objext
9179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9180 (eval $ac_compile) 2>conftest.er1
9181 ac_status=$?
9182 grep -v '^ *+' conftest.er1 >conftest.err
9183 rm -f conftest.er1
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } &&
9187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try='test -s conftest.$ac_objext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 (eval $ac_try) 2>&5
9196 ac_status=$?
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 ac_cv_header_stdc=yes
9200 else
9201 echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9203
9204 ac_cv_header_stdc=no
9205 fi
9206
9207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9208
9209 if test $ac_cv_header_stdc = yes; then
9210 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9211 cat >conftest.$ac_ext <<_ACEOF
9212 /* confdefs.h. */
9213 _ACEOF
9214 cat confdefs.h >>conftest.$ac_ext
9215 cat >>conftest.$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9217 #include <string.h>
9218
9219 _ACEOF
9220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9221 $EGREP "memchr" >/dev/null 2>&1; then
9222 :
9223 else
9224 ac_cv_header_stdc=no
9225 fi
9226 rm -f conftest*
9227
9228 fi
9229
9230 if test $ac_cv_header_stdc = yes; then
9231 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9232 cat >conftest.$ac_ext <<_ACEOF
9233 /* confdefs.h. */
9234 _ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h. */
9238 #include <stdlib.h>
9239
9240 _ACEOF
9241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9242 $EGREP "free" >/dev/null 2>&1; then
9243 :
9244 else
9245 ac_cv_header_stdc=no
9246 fi
9247 rm -f conftest*
9248
9249 fi
9250
9251 if test $ac_cv_header_stdc = yes; then
9252 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9253 if test "$cross_compiling" = yes; then
9254 :
9255 else
9256 cat >conftest.$ac_ext <<_ACEOF
9257 /* confdefs.h. */
9258 _ACEOF
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h. */
9262 #include <ctype.h>
9263 #include <stdlib.h>
9264 #if ((' ' & 0x0FF) == 0x020)
9265 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9266 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9267 #else
9268 # define ISLOWER(c) \
9269 (('a' <= (c) && (c) <= 'i') \
9270 || ('j' <= (c) && (c) <= 'r') \
9271 || ('s' <= (c) && (c) <= 'z'))
9272 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9273 #endif
9274
9275 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9276 int
9277 main ()
9278 {
9279 int i;
9280 for (i = 0; i < 256; i++)
9281 if (XOR (islower (i), ISLOWER (i))
9282 || toupper (i) != TOUPPER (i))
9283 return 2;
9284 return 0;
9285 }
9286 _ACEOF
9287 rm -f conftest$ac_exeext
9288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9289 (eval $ac_link) 2>&5
9290 ac_status=$?
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294 (eval $ac_try) 2>&5
9295 ac_status=$?
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); }; }; then
9298 :
9299 else
9300 echo "$as_me: program exited with status $ac_status" >&5
9301 echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9303
9304 ( exit $ac_status )
9305 ac_cv_header_stdc=no
9306 fi
9307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9308 fi
9309
9310
9311 fi
9312 fi
9313 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9314 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9315 if test $ac_cv_header_stdc = yes; then
9316
9317 cat >>confdefs.h <<\_ACEOF
9318 #define STDC_HEADERS 1
9319 _ACEOF
9320
9321 fi
9322
9323
9324 for ac_header in nlist.h
9325 do
9326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9332 fi
9333 ac_res=`eval echo '${'$as_ac_Header'}'`
9334 { echo "$as_me:$LINENO: result: $ac_res" >&5
9335 echo "${ECHO_T}$ac_res" >&6; }
9336 else
9337 # Is the header compilable?
9338 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9340 cat >conftest.$ac_ext <<_ACEOF
9341 /* confdefs.h. */
9342 _ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346 $ac_includes_default
9347 #include <$ac_header>
9348 _ACEOF
9349 rm -f conftest.$ac_objext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9351 (eval $ac_compile) 2>conftest.er1
9352 ac_status=$?
9353 grep -v '^ *+' conftest.er1 >conftest.err
9354 rm -f conftest.er1
9355 cat conftest.err >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } &&
9358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360 (eval $ac_try) 2>&5
9361 ac_status=$?
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); }; } &&
9364 { ac_try='test -s conftest.$ac_objext'
9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366 (eval $ac_try) 2>&5
9367 ac_status=$?
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }; }; then
9370 ac_header_compiler=yes
9371 else
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9374
9375 ac_header_compiler=no
9376 fi
9377
9378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9380 echo "${ECHO_T}$ac_header_compiler" >&6; }
9381
9382 # Is the header present?
9383 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9385 cat >conftest.$ac_ext <<_ACEOF
9386 /* confdefs.h. */
9387 _ACEOF
9388 cat confdefs.h >>conftest.$ac_ext
9389 cat >>conftest.$ac_ext <<_ACEOF
9390 /* end confdefs.h. */
9391 #include <$ac_header>
9392 _ACEOF
9393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9395 ac_status=$?
9396 grep -v '^ *+' conftest.er1 >conftest.err
9397 rm -f conftest.er1
9398 cat conftest.err >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } >/dev/null; then
9401 if test -s conftest.err; then
9402 ac_cpp_err=$ac_c_preproc_warn_flag
9403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9404 else
9405 ac_cpp_err=
9406 fi
9407 else
9408 ac_cpp_err=yes
9409 fi
9410 if test -z "$ac_cpp_err"; then
9411 ac_header_preproc=yes
9412 else
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9415
9416 ac_header_preproc=no
9417 fi
9418
9419 rm -f conftest.err conftest.$ac_ext
9420 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9421 echo "${ECHO_T}$ac_header_preproc" >&6; }
9422
9423 # So? What about this header?
9424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9425 yes:no: )
9426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9430 ac_header_preproc=yes
9431 ;;
9432 no:yes:* )
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9436 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9440 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9445
9446 ;;
9447 esac
9448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9452 else
9453 eval "$as_ac_Header=\$ac_header_preproc"
9454 fi
9455 ac_res=`eval echo '${'$as_ac_Header'}'`
9456 { echo "$as_me:$LINENO: result: $ac_res" >&5
9457 echo "${ECHO_T}$ac_res" >&6; }
9458
9459 fi
9460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9461 cat >>confdefs.h <<_ACEOF
9462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9463 _ACEOF
9464
9465 fi
9466
9467 done
9468
9469
9470 for ac_header in link.h
9471 do
9472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 else
9478 cat >conftest.$ac_ext <<_ACEOF
9479 /* confdefs.h. */
9480 _ACEOF
9481 cat confdefs.h >>conftest.$ac_ext
9482 cat >>conftest.$ac_ext <<_ACEOF
9483 /* end confdefs.h. */
9484 #if HAVE_SYS_TYPES_H
9485 # include <sys/types.h>
9486 #endif
9487 #if HAVE_NLIST_H
9488 # include <nlist.h>
9489 #endif
9490
9491
9492 #include <$ac_header>
9493 _ACEOF
9494 rm -f conftest.$ac_objext
9495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9496 (eval $ac_compile) 2>conftest.er1
9497 ac_status=$?
9498 grep -v '^ *+' conftest.er1 >conftest.err
9499 rm -f conftest.er1
9500 cat conftest.err >&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); } &&
9503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505 (eval $ac_try) 2>&5
9506 ac_status=$?
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; } &&
9509 { ac_try='test -s conftest.$ac_objext'
9510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511 (eval $ac_try) 2>&5
9512 ac_status=$?
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; }; then
9515 eval "$as_ac_Header=yes"
9516 else
9517 echo "$as_me: failed program was:" >&5
9518 sed 's/^/| /' conftest.$ac_ext >&5
9519
9520 eval "$as_ac_Header=no"
9521 fi
9522
9523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9524 fi
9525 ac_res=`eval echo '${'$as_ac_Header'}'`
9526 { echo "$as_me:$LINENO: result: $ac_res" >&5
9527 echo "${ECHO_T}$ac_res" >&6; }
9528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9529 cat >>confdefs.h <<_ACEOF
9530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9531 _ACEOF
9532
9533 fi
9534
9535 done
9536
9537
9538 for ac_header in machine/reg.h
9539 do
9540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 fi
9547 ac_res=`eval echo '${'$as_ac_Header'}'`
9548 { echo "$as_me:$LINENO: result: $ac_res" >&5
9549 echo "${ECHO_T}$ac_res" >&6; }
9550 else
9551 # Is the header compilable?
9552 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9554 cat >conftest.$ac_ext <<_ACEOF
9555 /* confdefs.h. */
9556 _ACEOF
9557 cat confdefs.h >>conftest.$ac_ext
9558 cat >>conftest.$ac_ext <<_ACEOF
9559 /* end confdefs.h. */
9560 $ac_includes_default
9561 #include <$ac_header>
9562 _ACEOF
9563 rm -f conftest.$ac_objext
9564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9565 (eval $ac_compile) 2>conftest.er1
9566 ac_status=$?
9567 grep -v '^ *+' conftest.er1 >conftest.err
9568 rm -f conftest.er1
9569 cat conftest.err >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } &&
9572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 (eval $ac_try) 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; } &&
9578 { ac_try='test -s conftest.$ac_objext'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 (eval $ac_try) 2>&5
9581 ac_status=$?
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 ac_header_compiler=yes
9585 else
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9588
9589 ac_header_compiler=no
9590 fi
9591
9592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9594 echo "${ECHO_T}$ac_header_compiler" >&6; }
9595
9596 # Is the header present?
9597 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9598 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9599 cat >conftest.$ac_ext <<_ACEOF
9600 /* confdefs.h. */
9601 _ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9605 #include <$ac_header>
9606 _ACEOF
9607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9609 ac_status=$?
9610 grep -v '^ *+' conftest.er1 >conftest.err
9611 rm -f conftest.er1
9612 cat conftest.err >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } >/dev/null; then
9615 if test -s conftest.err; then
9616 ac_cpp_err=$ac_c_preproc_warn_flag
9617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9618 else
9619 ac_cpp_err=
9620 fi
9621 else
9622 ac_cpp_err=yes
9623 fi
9624 if test -z "$ac_cpp_err"; then
9625 ac_header_preproc=yes
9626 else
9627 echo "$as_me: failed program was:" >&5
9628 sed 's/^/| /' conftest.$ac_ext >&5
9629
9630 ac_header_preproc=no
9631 fi
9632
9633 rm -f conftest.err conftest.$ac_ext
9634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9635 echo "${ECHO_T}$ac_header_preproc" >&6; }
9636
9637 # So? What about this header?
9638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9639 yes:no: )
9640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9644 ac_header_preproc=yes
9645 ;;
9646 no:yes:* )
9647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9659
9660 ;;
9661 esac
9662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9666 else
9667 eval "$as_ac_Header=\$ac_header_preproc"
9668 fi
9669 ac_res=`eval echo '${'$as_ac_Header'}'`
9670 { echo "$as_me:$LINENO: result: $ac_res" >&5
9671 echo "${ECHO_T}$ac_res" >&6; }
9672
9673 fi
9674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9675 cat >>confdefs.h <<_ACEOF
9676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9677 _ACEOF
9678
9679 fi
9680
9681 done
9682
9683
9684
9685 for ac_header in poll.h sys/poll.h
9686 do
9687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 fi
9694 ac_res=`eval echo '${'$as_ac_Header'}'`
9695 { echo "$as_me:$LINENO: result: $ac_res" >&5
9696 echo "${ECHO_T}$ac_res" >&6; }
9697 else
9698 # Is the header compilable?
9699 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9701 cat >conftest.$ac_ext <<_ACEOF
9702 /* confdefs.h. */
9703 _ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9707 $ac_includes_default
9708 #include <$ac_header>
9709 _ACEOF
9710 rm -f conftest.$ac_objext
9711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9712 (eval $ac_compile) 2>conftest.er1
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } &&
9719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721 (eval $ac_try) 2>&5
9722 ac_status=$?
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; } &&
9725 { ac_try='test -s conftest.$ac_objext'
9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 (eval $ac_try) 2>&5
9728 ac_status=$?
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; }; then
9731 ac_header_compiler=yes
9732 else
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9735
9736 ac_header_compiler=no
9737 fi
9738
9739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9740 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9741 echo "${ECHO_T}$ac_header_compiler" >&6; }
9742
9743 # Is the header present?
9744 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9746 cat >conftest.$ac_ext <<_ACEOF
9747 /* confdefs.h. */
9748 _ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9752 #include <$ac_header>
9753 _ACEOF
9754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9756 ac_status=$?
9757 grep -v '^ *+' conftest.er1 >conftest.err
9758 rm -f conftest.er1
9759 cat conftest.err >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } >/dev/null; then
9762 if test -s conftest.err; then
9763 ac_cpp_err=$ac_c_preproc_warn_flag
9764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9765 else
9766 ac_cpp_err=
9767 fi
9768 else
9769 ac_cpp_err=yes
9770 fi
9771 if test -z "$ac_cpp_err"; then
9772 ac_header_preproc=yes
9773 else
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9776
9777 ac_header_preproc=no
9778 fi
9779
9780 rm -f conftest.err conftest.$ac_ext
9781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9782 echo "${ECHO_T}$ac_header_preproc" >&6; }
9783
9784 # So? What about this header?
9785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9786 yes:no: )
9787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9791 ac_header_preproc=yes
9792 ;;
9793 no:yes:* )
9794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9806
9807 ;;
9808 esac
9809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 else
9814 eval "$as_ac_Header=\$ac_header_preproc"
9815 fi
9816 ac_res=`eval echo '${'$as_ac_Header'}'`
9817 { echo "$as_me:$LINENO: result: $ac_res" >&5
9818 echo "${ECHO_T}$ac_res" >&6; }
9819
9820 fi
9821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9822 cat >>confdefs.h <<_ACEOF
9823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9824 _ACEOF
9825
9826 fi
9827
9828 done
9829
9830
9831
9832
9833 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9834 do
9835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9841 fi
9842 ac_res=`eval echo '${'$as_ac_Header'}'`
9843 { echo "$as_me:$LINENO: result: $ac_res" >&5
9844 echo "${ECHO_T}$ac_res" >&6; }
9845 else
9846 # Is the header compilable?
9847 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9849 cat >conftest.$ac_ext <<_ACEOF
9850 /* confdefs.h. */
9851 _ACEOF
9852 cat confdefs.h >>conftest.$ac_ext
9853 cat >>conftest.$ac_ext <<_ACEOF
9854 /* end confdefs.h. */
9855 $ac_includes_default
9856 #include <$ac_header>
9857 _ACEOF
9858 rm -f conftest.$ac_objext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9860 (eval $ac_compile) 2>conftest.er1
9861 ac_status=$?
9862 grep -v '^ *+' conftest.er1 >conftest.err
9863 rm -f conftest.er1
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; } &&
9873 { ac_try='test -s conftest.$ac_objext'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 (eval $ac_try) 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 ac_header_compiler=yes
9880 else
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9883
9884 ac_header_compiler=no
9885 fi
9886
9887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9888 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9889 echo "${ECHO_T}$ac_header_compiler" >&6; }
9890
9891 # Is the header present?
9892 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9894 cat >conftest.$ac_ext <<_ACEOF
9895 /* confdefs.h. */
9896 _ACEOF
9897 cat confdefs.h >>conftest.$ac_ext
9898 cat >>conftest.$ac_ext <<_ACEOF
9899 /* end confdefs.h. */
9900 #include <$ac_header>
9901 _ACEOF
9902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9904 ac_status=$?
9905 grep -v '^ *+' conftest.er1 >conftest.err
9906 rm -f conftest.er1
9907 cat conftest.err >&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } >/dev/null; then
9910 if test -s conftest.err; then
9911 ac_cpp_err=$ac_c_preproc_warn_flag
9912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9913 else
9914 ac_cpp_err=
9915 fi
9916 else
9917 ac_cpp_err=yes
9918 fi
9919 if test -z "$ac_cpp_err"; then
9920 ac_header_preproc=yes
9921 else
9922 echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.$ac_ext >&5
9924
9925 ac_header_preproc=no
9926 fi
9927
9928 rm -f conftest.err conftest.$ac_ext
9929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9930 echo "${ECHO_T}$ac_header_preproc" >&6; }
9931
9932 # So? What about this header?
9933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9934 yes:no: )
9935 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9939 ac_header_preproc=yes
9940 ;;
9941 no:yes:* )
9942 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9944 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9945 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9946 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9947 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9948 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9949 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9952 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9953 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9954
9955 ;;
9956 esac
9957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 else
9962 eval "$as_ac_Header=\$ac_header_preproc"
9963 fi
9964 ac_res=`eval echo '${'$as_ac_Header'}'`
9965 { echo "$as_me:$LINENO: result: $ac_res" >&5
9966 echo "${ECHO_T}$ac_res" >&6; }
9967
9968 fi
9969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9970 cat >>confdefs.h <<_ACEOF
9971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9972 _ACEOF
9973
9974 fi
9975
9976 done
9977
9978
9979 for ac_header in stddef.h
9980 do
9981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9987 fi
9988 ac_res=`eval echo '${'$as_ac_Header'}'`
9989 { echo "$as_me:$LINENO: result: $ac_res" >&5
9990 echo "${ECHO_T}$ac_res" >&6; }
9991 else
9992 # Is the header compilable?
9993 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9995 cat >conftest.$ac_ext <<_ACEOF
9996 /* confdefs.h. */
9997 _ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10001 $ac_includes_default
10002 #include <$ac_header>
10003 _ACEOF
10004 rm -f conftest.$ac_objext
10005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10006 (eval $ac_compile) 2>conftest.er1
10007 ac_status=$?
10008 grep -v '^ *+' conftest.er1 >conftest.err
10009 rm -f conftest.er1
10010 cat conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } &&
10013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015 (eval $ac_try) 2>&5
10016 ac_status=$?
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); }; } &&
10019 { ac_try='test -s conftest.$ac_objext'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10022 ac_status=$?
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; }; then
10025 ac_header_compiler=yes
10026 else
10027 echo "$as_me: failed program was:" >&5
10028 sed 's/^/| /' conftest.$ac_ext >&5
10029
10030 ac_header_compiler=no
10031 fi
10032
10033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10035 echo "${ECHO_T}$ac_header_compiler" >&6; }
10036
10037 # Is the header present?
10038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10040 cat >conftest.$ac_ext <<_ACEOF
10041 /* confdefs.h. */
10042 _ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 #include <$ac_header>
10047 _ACEOF
10048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10050 ac_status=$?
10051 grep -v '^ *+' conftest.er1 >conftest.err
10052 rm -f conftest.er1
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } >/dev/null; then
10056 if test -s conftest.err; then
10057 ac_cpp_err=$ac_c_preproc_warn_flag
10058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10059 else
10060 ac_cpp_err=
10061 fi
10062 else
10063 ac_cpp_err=yes
10064 fi
10065 if test -z "$ac_cpp_err"; then
10066 ac_header_preproc=yes
10067 else
10068 echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10070
10071 ac_header_preproc=no
10072 fi
10073
10074 rm -f conftest.err conftest.$ac_ext
10075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10076 echo "${ECHO_T}$ac_header_preproc" >&6; }
10077
10078 # So? What about this header?
10079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10080 yes:no: )
10081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10085 ac_header_preproc=yes
10086 ;;
10087 no:yes:* )
10088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10095 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10100
10101 ;;
10102 esac
10103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 else
10108 eval "$as_ac_Header=\$ac_header_preproc"
10109 fi
10110 ac_res=`eval echo '${'$as_ac_Header'}'`
10111 { echo "$as_me:$LINENO: result: $ac_res" >&5
10112 echo "${ECHO_T}$ac_res" >&6; }
10113
10114 fi
10115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10116 cat >>confdefs.h <<_ACEOF
10117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10118 _ACEOF
10119
10120 fi
10121
10122 done
10123
10124
10125 for ac_header in stdlib.h
10126 do
10127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10133 fi
10134 ac_res=`eval echo '${'$as_ac_Header'}'`
10135 { echo "$as_me:$LINENO: result: $ac_res" >&5
10136 echo "${ECHO_T}$ac_res" >&6; }
10137 else
10138 # Is the header compilable?
10139 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10141 cat >conftest.$ac_ext <<_ACEOF
10142 /* confdefs.h. */
10143 _ACEOF
10144 cat confdefs.h >>conftest.$ac_ext
10145 cat >>conftest.$ac_ext <<_ACEOF
10146 /* end confdefs.h. */
10147 $ac_includes_default
10148 #include <$ac_header>
10149 _ACEOF
10150 rm -f conftest.$ac_objext
10151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10152 (eval $ac_compile) 2>conftest.er1
10153 ac_status=$?
10154 grep -v '^ *+' conftest.er1 >conftest.err
10155 rm -f conftest.er1
10156 cat conftest.err >&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); } &&
10159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10161 (eval $ac_try) 2>&5
10162 ac_status=$?
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; } &&
10165 { ac_try='test -s conftest.$ac_objext'
10166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167 (eval $ac_try) 2>&5
10168 ac_status=$?
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; }; then
10171 ac_header_compiler=yes
10172 else
10173 echo "$as_me: failed program was:" >&5
10174 sed 's/^/| /' conftest.$ac_ext >&5
10175
10176 ac_header_compiler=no
10177 fi
10178
10179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10181 echo "${ECHO_T}$ac_header_compiler" >&6; }
10182
10183 # Is the header present?
10184 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10186 cat >conftest.$ac_ext <<_ACEOF
10187 /* confdefs.h. */
10188 _ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h. */
10192 #include <$ac_header>
10193 _ACEOF
10194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10196 ac_status=$?
10197 grep -v '^ *+' conftest.er1 >conftest.err
10198 rm -f conftest.er1
10199 cat conftest.err >&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } >/dev/null; then
10202 if test -s conftest.err; then
10203 ac_cpp_err=$ac_c_preproc_warn_flag
10204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10205 else
10206 ac_cpp_err=
10207 fi
10208 else
10209 ac_cpp_err=yes
10210 fi
10211 if test -z "$ac_cpp_err"; then
10212 ac_header_preproc=yes
10213 else
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10216
10217 ac_header_preproc=no
10218 fi
10219
10220 rm -f conftest.err conftest.$ac_ext
10221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10222 echo "${ECHO_T}$ac_header_preproc" >&6; }
10223
10224 # So? What about this header?
10225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10226 yes:no: )
10227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10230 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10231 ac_header_preproc=yes
10232 ;;
10233 no:yes:* )
10234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10237 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10239 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10241 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10245 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10246
10247 ;;
10248 esac
10249 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
10253 else
10254 eval "$as_ac_Header=\$ac_header_preproc"
10255 fi
10256 ac_res=`eval echo '${'$as_ac_Header'}'`
10257 { echo "$as_me:$LINENO: result: $ac_res" >&5
10258 echo "${ECHO_T}$ac_res" >&6; }
10259
10260 fi
10261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10262 cat >>confdefs.h <<_ACEOF
10263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10264 _ACEOF
10265
10266 fi
10267
10268 done
10269
10270
10271 for ac_header in stdint.h
10272 do
10273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 fi
10280 ac_res=`eval echo '${'$as_ac_Header'}'`
10281 { echo "$as_me:$LINENO: result: $ac_res" >&5
10282 echo "${ECHO_T}$ac_res" >&6; }
10283 else
10284 # Is the header compilable?
10285 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10287 cat >conftest.$ac_ext <<_ACEOF
10288 /* confdefs.h. */
10289 _ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h. */
10293 $ac_includes_default
10294 #include <$ac_header>
10295 _ACEOF
10296 rm -f conftest.$ac_objext
10297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10298 (eval $ac_compile) 2>conftest.er1
10299 ac_status=$?
10300 grep -v '^ *+' conftest.er1 >conftest.err
10301 rm -f conftest.er1
10302 cat conftest.err >&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } &&
10305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307 (eval $ac_try) 2>&5
10308 ac_status=$?
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; } &&
10311 { ac_try='test -s conftest.$ac_objext'
10312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313 (eval $ac_try) 2>&5
10314 ac_status=$?
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; }; then
10317 ac_header_compiler=yes
10318 else
10319 echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10321
10322 ac_header_compiler=no
10323 fi
10324
10325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10326 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10327 echo "${ECHO_T}$ac_header_compiler" >&6; }
10328
10329 # Is the header present?
10330 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10332 cat >conftest.$ac_ext <<_ACEOF
10333 /* confdefs.h. */
10334 _ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10338 #include <$ac_header>
10339 _ACEOF
10340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10342 ac_status=$?
10343 grep -v '^ *+' conftest.er1 >conftest.err
10344 rm -f conftest.er1
10345 cat conftest.err >&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } >/dev/null; then
10348 if test -s conftest.err; then
10349 ac_cpp_err=$ac_c_preproc_warn_flag
10350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10351 else
10352 ac_cpp_err=
10353 fi
10354 else
10355 ac_cpp_err=yes
10356 fi
10357 if test -z "$ac_cpp_err"; then
10358 ac_header_preproc=yes
10359 else
10360 echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10362
10363 ac_header_preproc=no
10364 fi
10365
10366 rm -f conftest.err conftest.$ac_ext
10367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10368 echo "${ECHO_T}$ac_header_preproc" >&6; }
10369
10370 # So? What about this header?
10371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10372 yes:no: )
10373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10377 ac_header_preproc=yes
10378 ;;
10379 no:yes:* )
10380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10383 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10387 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10392
10393 ;;
10394 esac
10395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 else
10400 eval "$as_ac_Header=\$ac_header_preproc"
10401 fi
10402 ac_res=`eval echo '${'$as_ac_Header'}'`
10403 { echo "$as_me:$LINENO: result: $ac_res" >&5
10404 echo "${ECHO_T}$ac_res" >&6; }
10405
10406 fi
10407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10408 cat >>confdefs.h <<_ACEOF
10409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10410 _ACEOF
10411
10412 fi
10413
10414 done
10415
10416
10417
10418
10419 for ac_header in string.h memory.h strings.h
10420 do
10421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10426 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 fi
10428 ac_res=`eval echo '${'$as_ac_Header'}'`
10429 { echo "$as_me:$LINENO: result: $ac_res" >&5
10430 echo "${ECHO_T}$ac_res" >&6; }
10431 else
10432 # Is the header compilable?
10433 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10435 cat >conftest.$ac_ext <<_ACEOF
10436 /* confdefs.h. */
10437 _ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10441 $ac_includes_default
10442 #include <$ac_header>
10443 _ACEOF
10444 rm -f conftest.$ac_objext
10445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10446 (eval $ac_compile) 2>conftest.er1
10447 ac_status=$?
10448 grep -v '^ *+' conftest.er1 >conftest.err
10449 rm -f conftest.er1
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } &&
10453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455 (eval $ac_try) 2>&5
10456 ac_status=$?
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); }; } &&
10459 { ac_try='test -s conftest.$ac_objext'
10460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10461 (eval $ac_try) 2>&5
10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; }; then
10465 ac_header_compiler=yes
10466 else
10467 echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10469
10470 ac_header_compiler=no
10471 fi
10472
10473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10474 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10475 echo "${ECHO_T}$ac_header_compiler" >&6; }
10476
10477 # Is the header present?
10478 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10480 cat >conftest.$ac_ext <<_ACEOF
10481 /* confdefs.h. */
10482 _ACEOF
10483 cat confdefs.h >>conftest.$ac_ext
10484 cat >>conftest.$ac_ext <<_ACEOF
10485 /* end confdefs.h. */
10486 #include <$ac_header>
10487 _ACEOF
10488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10490 ac_status=$?
10491 grep -v '^ *+' conftest.er1 >conftest.err
10492 rm -f conftest.er1
10493 cat conftest.err >&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } >/dev/null; then
10496 if test -s conftest.err; then
10497 ac_cpp_err=$ac_c_preproc_warn_flag
10498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10499 else
10500 ac_cpp_err=
10501 fi
10502 else
10503 ac_cpp_err=yes
10504 fi
10505 if test -z "$ac_cpp_err"; then
10506 ac_header_preproc=yes
10507 else
10508 echo "$as_me: failed program was:" >&5
10509 sed 's/^/| /' conftest.$ac_ext >&5
10510
10511 ac_header_preproc=no
10512 fi
10513
10514 rm -f conftest.err conftest.$ac_ext
10515 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10516 echo "${ECHO_T}$ac_header_preproc" >&6; }
10517
10518 # So? What about this header?
10519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10520 yes:no: )
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10525 ac_header_preproc=yes
10526 ;;
10527 no:yes:* )
10528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10535 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10540
10541 ;;
10542 esac
10543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10547 else
10548 eval "$as_ac_Header=\$ac_header_preproc"
10549 fi
10550 ac_res=`eval echo '${'$as_ac_Header'}'`
10551 { echo "$as_me:$LINENO: result: $ac_res" >&5
10552 echo "${ECHO_T}$ac_res" >&6; }
10553
10554 fi
10555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10556 cat >>confdefs.h <<_ACEOF
10557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10558 _ACEOF
10559
10560 fi
10561
10562 done
10563
10564
10565 for ac_header in sys/fault.h
10566 do
10567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10573 fi
10574 ac_res=`eval echo '${'$as_ac_Header'}'`
10575 { echo "$as_me:$LINENO: result: $ac_res" >&5
10576 echo "${ECHO_T}$ac_res" >&6; }
10577 else
10578 # Is the header compilable?
10579 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10581 cat >conftest.$ac_ext <<_ACEOF
10582 /* confdefs.h. */
10583 _ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h. */
10587 $ac_includes_default
10588 #include <$ac_header>
10589 _ACEOF
10590 rm -f conftest.$ac_objext
10591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10592 (eval $ac_compile) 2>conftest.er1
10593 ac_status=$?
10594 grep -v '^ *+' conftest.er1 >conftest.err
10595 rm -f conftest.er1
10596 cat conftest.err >&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); } &&
10599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601 (eval $ac_try) 2>&5
10602 ac_status=$?
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); }; } &&
10605 { ac_try='test -s conftest.$ac_objext'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10608 ac_status=$?
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; }; then
10611 ac_header_compiler=yes
10612 else
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10615
10616 ac_header_compiler=no
10617 fi
10618
10619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10621 echo "${ECHO_T}$ac_header_compiler" >&6; }
10622
10623 # Is the header present?
10624 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10626 cat >conftest.$ac_ext <<_ACEOF
10627 /* confdefs.h. */
10628 _ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h. */
10632 #include <$ac_header>
10633 _ACEOF
10634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10636 ac_status=$?
10637 grep -v '^ *+' conftest.er1 >conftest.err
10638 rm -f conftest.er1
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } >/dev/null; then
10642 if test -s conftest.err; then
10643 ac_cpp_err=$ac_c_preproc_warn_flag
10644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10645 else
10646 ac_cpp_err=
10647 fi
10648 else
10649 ac_cpp_err=yes
10650 fi
10651 if test -z "$ac_cpp_err"; then
10652 ac_header_preproc=yes
10653 else
10654 echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10656
10657 ac_header_preproc=no
10658 fi
10659
10660 rm -f conftest.err conftest.$ac_ext
10661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10662 echo "${ECHO_T}$ac_header_preproc" >&6; }
10663
10664 # So? What about this header?
10665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10666 yes:no: )
10667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10671 ac_header_preproc=yes
10672 ;;
10673 no:yes:* )
10674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10681 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10686
10687 ;;
10688 esac
10689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10693 else
10694 eval "$as_ac_Header=\$ac_header_preproc"
10695 fi
10696 ac_res=`eval echo '${'$as_ac_Header'}'`
10697 { echo "$as_me:$LINENO: result: $ac_res" >&5
10698 echo "${ECHO_T}$ac_res" >&6; }
10699
10700 fi
10701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10702 cat >>confdefs.h <<_ACEOF
10703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10704 _ACEOF
10705
10706 fi
10707
10708 done
10709
10710
10711 for ac_header in sys/file.h
10712 do
10713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 fi
10720 ac_res=`eval echo '${'$as_ac_Header'}'`
10721 { echo "$as_me:$LINENO: result: $ac_res" >&5
10722 echo "${ECHO_T}$ac_res" >&6; }
10723 else
10724 # Is the header compilable?
10725 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10727 cat >conftest.$ac_ext <<_ACEOF
10728 /* confdefs.h. */
10729 _ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h. */
10733 $ac_includes_default
10734 #include <$ac_header>
10735 _ACEOF
10736 rm -f conftest.$ac_objext
10737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10738 (eval $ac_compile) 2>conftest.er1
10739 ac_status=$?
10740 grep -v '^ *+' conftest.er1 >conftest.err
10741 rm -f conftest.er1
10742 cat conftest.err >&5
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); } &&
10745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10747 (eval $ac_try) 2>&5
10748 ac_status=$?
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; } &&
10751 { ac_try='test -s conftest.$ac_objext'
10752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753 (eval $ac_try) 2>&5
10754 ac_status=$?
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); }; }; then
10757 ac_header_compiler=yes
10758 else
10759 echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10761
10762 ac_header_compiler=no
10763 fi
10764
10765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10767 echo "${ECHO_T}$ac_header_compiler" >&6; }
10768
10769 # Is the header present?
10770 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10772 cat >conftest.$ac_ext <<_ACEOF
10773 /* confdefs.h. */
10774 _ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h. */
10778 #include <$ac_header>
10779 _ACEOF
10780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10782 ac_status=$?
10783 grep -v '^ *+' conftest.er1 >conftest.err
10784 rm -f conftest.er1
10785 cat conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } >/dev/null; then
10788 if test -s conftest.err; then
10789 ac_cpp_err=$ac_c_preproc_warn_flag
10790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10791 else
10792 ac_cpp_err=
10793 fi
10794 else
10795 ac_cpp_err=yes
10796 fi
10797 if test -z "$ac_cpp_err"; then
10798 ac_header_preproc=yes
10799 else
10800 echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10802
10803 ac_header_preproc=no
10804 fi
10805
10806 rm -f conftest.err conftest.$ac_ext
10807 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10808 echo "${ECHO_T}$ac_header_preproc" >&6; }
10809
10810 # So? What about this header?
10811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10812 yes:no: )
10813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10817 ac_header_preproc=yes
10818 ;;
10819 no:yes:* )
10820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10827 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10832
10833 ;;
10834 esac
10835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10838 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 else
10840 eval "$as_ac_Header=\$ac_header_preproc"
10841 fi
10842 ac_res=`eval echo '${'$as_ac_Header'}'`
10843 { echo "$as_me:$LINENO: result: $ac_res" >&5
10844 echo "${ECHO_T}$ac_res" >&6; }
10845
10846 fi
10847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10848 cat >>confdefs.h <<_ACEOF
10849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10850 _ACEOF
10851
10852 fi
10853
10854 done
10855
10856
10857 for ac_header in sys/filio.h
10858 do
10859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10864 echo $ECHO_N "(cached) $ECHO_C" >&6
10865 fi
10866 ac_res=`eval echo '${'$as_ac_Header'}'`
10867 { echo "$as_me:$LINENO: result: $ac_res" >&5
10868 echo "${ECHO_T}$ac_res" >&6; }
10869 else
10870 # Is the header compilable?
10871 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10873 cat >conftest.$ac_ext <<_ACEOF
10874 /* confdefs.h. */
10875 _ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h. */
10879 $ac_includes_default
10880 #include <$ac_header>
10881 _ACEOF
10882 rm -f conftest.$ac_objext
10883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10884 (eval $ac_compile) 2>conftest.er1
10885 ac_status=$?
10886 grep -v '^ *+' conftest.er1 >conftest.err
10887 rm -f conftest.er1
10888 cat conftest.err >&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } &&
10891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893 (eval $ac_try) 2>&5
10894 ac_status=$?
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; } &&
10897 { ac_try='test -s conftest.$ac_objext'
10898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899 (eval $ac_try) 2>&5
10900 ac_status=$?
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; }; then
10903 ac_header_compiler=yes
10904 else
10905 echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10907
10908 ac_header_compiler=no
10909 fi
10910
10911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10912 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10913 echo "${ECHO_T}$ac_header_compiler" >&6; }
10914
10915 # Is the header present?
10916 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10918 cat >conftest.$ac_ext <<_ACEOF
10919 /* confdefs.h. */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 #include <$ac_header>
10925 _ACEOF
10926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10928 ac_status=$?
10929 grep -v '^ *+' conftest.er1 >conftest.err
10930 rm -f conftest.er1
10931 cat conftest.err >&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } >/dev/null; then
10934 if test -s conftest.err; then
10935 ac_cpp_err=$ac_c_preproc_warn_flag
10936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10937 else
10938 ac_cpp_err=
10939 fi
10940 else
10941 ac_cpp_err=yes
10942 fi
10943 if test -z "$ac_cpp_err"; then
10944 ac_header_preproc=yes
10945 else
10946 echo "$as_me: failed program was:" >&5
10947 sed 's/^/| /' conftest.$ac_ext >&5
10948
10949 ac_header_preproc=no
10950 fi
10951
10952 rm -f conftest.err conftest.$ac_ext
10953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10954 echo "${ECHO_T}$ac_header_preproc" >&6; }
10955
10956 # So? What about this header?
10957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10958 yes:no: )
10959 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10960 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10962 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10963 ac_header_preproc=yes
10964 ;;
10965 no:yes:* )
10966 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10967 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10968 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10969 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10970 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10971 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10972 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10973 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10976 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10977 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10978
10979 ;;
10980 esac
10981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
10985 else
10986 eval "$as_ac_Header=\$ac_header_preproc"
10987 fi
10988 ac_res=`eval echo '${'$as_ac_Header'}'`
10989 { echo "$as_me:$LINENO: result: $ac_res" >&5
10990 echo "${ECHO_T}$ac_res" >&6; }
10991
10992 fi
10993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10994 cat >>confdefs.h <<_ACEOF
10995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10996 _ACEOF
10997
10998 fi
10999
11000 done
11001
11002
11003 for ac_header in sys/ioctl.h
11004 do
11005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11010 echo $ECHO_N "(cached) $ECHO_C" >&6
11011 fi
11012 ac_res=`eval echo '${'$as_ac_Header'}'`
11013 { echo "$as_me:$LINENO: result: $ac_res" >&5
11014 echo "${ECHO_T}$ac_res" >&6; }
11015 else
11016 # Is the header compilable?
11017 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11019 cat >conftest.$ac_ext <<_ACEOF
11020 /* confdefs.h. */
11021 _ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 $ac_includes_default
11026 #include <$ac_header>
11027 _ACEOF
11028 rm -f conftest.$ac_objext
11029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11030 (eval $ac_compile) 2>conftest.er1
11031 ac_status=$?
11032 grep -v '^ *+' conftest.er1 >conftest.err
11033 rm -f conftest.er1
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } &&
11037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039 (eval $ac_try) 2>&5
11040 ac_status=$?
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; } &&
11043 { ac_try='test -s conftest.$ac_objext'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
11049 ac_header_compiler=yes
11050 else
11051 echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11053
11054 ac_header_compiler=no
11055 fi
11056
11057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11058 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11059 echo "${ECHO_T}$ac_header_compiler" >&6; }
11060
11061 # Is the header present?
11062 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11064 cat >conftest.$ac_ext <<_ACEOF
11065 /* confdefs.h. */
11066 _ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 #include <$ac_header>
11071 _ACEOF
11072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11074 ac_status=$?
11075 grep -v '^ *+' conftest.er1 >conftest.err
11076 rm -f conftest.er1
11077 cat conftest.err >&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } >/dev/null; then
11080 if test -s conftest.err; then
11081 ac_cpp_err=$ac_c_preproc_warn_flag
11082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11083 else
11084 ac_cpp_err=
11085 fi
11086 else
11087 ac_cpp_err=yes
11088 fi
11089 if test -z "$ac_cpp_err"; then
11090 ac_header_preproc=yes
11091 else
11092 echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11094
11095 ac_header_preproc=no
11096 fi
11097
11098 rm -f conftest.err conftest.$ac_ext
11099 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11100 echo "${ECHO_T}$ac_header_preproc" >&6; }
11101
11102 # So? What about this header?
11103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11104 yes:no: )
11105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11108 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11109 ac_header_preproc=yes
11110 ;;
11111 no:yes:* )
11112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11115 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11116 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11117 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11118 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11119 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11122 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11123 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11124
11125 ;;
11126 esac
11127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11131 else
11132 eval "$as_ac_Header=\$ac_header_preproc"
11133 fi
11134 ac_res=`eval echo '${'$as_ac_Header'}'`
11135 { echo "$as_me:$LINENO: result: $ac_res" >&5
11136 echo "${ECHO_T}$ac_res" >&6; }
11137
11138 fi
11139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11140 cat >>confdefs.h <<_ACEOF
11141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11142 _ACEOF
11143
11144 fi
11145
11146 done
11147
11148
11149 for ac_header in sys/param.h
11150 do
11151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11157 fi
11158 ac_res=`eval echo '${'$as_ac_Header'}'`
11159 { echo "$as_me:$LINENO: result: $ac_res" >&5
11160 echo "${ECHO_T}$ac_res" >&6; }
11161 else
11162 # Is the header compilable?
11163 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11165 cat >conftest.$ac_ext <<_ACEOF
11166 /* confdefs.h. */
11167 _ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h. */
11171 $ac_includes_default
11172 #include <$ac_header>
11173 _ACEOF
11174 rm -f conftest.$ac_objext
11175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11176 (eval $ac_compile) 2>conftest.er1
11177 ac_status=$?
11178 grep -v '^ *+' conftest.er1 >conftest.err
11179 rm -f conftest.er1
11180 cat conftest.err >&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
11183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; } &&
11189 { ac_try='test -s conftest.$ac_objext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_header_compiler=yes
11196 else
11197 echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11199
11200 ac_header_compiler=no
11201 fi
11202
11203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11205 echo "${ECHO_T}$ac_header_compiler" >&6; }
11206
11207 # Is the header present?
11208 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11210 cat >conftest.$ac_ext <<_ACEOF
11211 /* confdefs.h. */
11212 _ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11216 #include <$ac_header>
11217 _ACEOF
11218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11220 ac_status=$?
11221 grep -v '^ *+' conftest.er1 >conftest.err
11222 rm -f conftest.er1
11223 cat conftest.err >&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } >/dev/null; then
11226 if test -s conftest.err; then
11227 ac_cpp_err=$ac_c_preproc_warn_flag
11228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11229 else
11230 ac_cpp_err=
11231 fi
11232 else
11233 ac_cpp_err=yes
11234 fi
11235 if test -z "$ac_cpp_err"; then
11236 ac_header_preproc=yes
11237 else
11238 echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11240
11241 ac_header_preproc=no
11242 fi
11243
11244 rm -f conftest.err conftest.$ac_ext
11245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11246 echo "${ECHO_T}$ac_header_preproc" >&6; }
11247
11248 # So? What about this header?
11249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11250 yes:no: )
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11255 ac_header_preproc=yes
11256 ;;
11257 no:yes:* )
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11261 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11265 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11270
11271 ;;
11272 esac
11273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11277 else
11278 eval "$as_ac_Header=\$ac_header_preproc"
11279 fi
11280 ac_res=`eval echo '${'$as_ac_Header'}'`
11281 { echo "$as_me:$LINENO: result: $ac_res" >&5
11282 echo "${ECHO_T}$ac_res" >&6; }
11283
11284 fi
11285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11286 cat >>confdefs.h <<_ACEOF
11287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11288 _ACEOF
11289
11290 fi
11291
11292 done
11293
11294
11295 for ac_header in sys/proc.h
11296 do
11297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11302 else
11303 cat >conftest.$ac_ext <<_ACEOF
11304 /* confdefs.h. */
11305 _ACEOF
11306 cat confdefs.h >>conftest.$ac_ext
11307 cat >>conftest.$ac_ext <<_ACEOF
11308 /* end confdefs.h. */
11309 #if HAVE_SYS_PARAM_H
11310 # include <sys/param.h>
11311 #endif
11312
11313
11314 #include <$ac_header>
11315 _ACEOF
11316 rm -f conftest.$ac_objext
11317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11318 (eval $ac_compile) 2>conftest.er1
11319 ac_status=$?
11320 grep -v '^ *+' conftest.er1 >conftest.err
11321 rm -f conftest.er1
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } &&
11325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327 (eval $ac_try) 2>&5
11328 ac_status=$?
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); }; } &&
11331 { ac_try='test -s conftest.$ac_objext'
11332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333 (eval $ac_try) 2>&5
11334 ac_status=$?
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); }; }; then
11337 eval "$as_ac_Header=yes"
11338 else
11339 echo "$as_me: failed program was:" >&5
11340 sed 's/^/| /' conftest.$ac_ext >&5
11341
11342 eval "$as_ac_Header=no"
11343 fi
11344
11345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11346 fi
11347 ac_res=`eval echo '${'$as_ac_Header'}'`
11348 { echo "$as_me:$LINENO: result: $ac_res" >&5
11349 echo "${ECHO_T}$ac_res" >&6; }
11350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11351 cat >>confdefs.h <<_ACEOF
11352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11353 _ACEOF
11354
11355 fi
11356
11357 done
11358
11359
11360 for ac_header in sys/procfs.h
11361 do
11362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11368 fi
11369 ac_res=`eval echo '${'$as_ac_Header'}'`
11370 { echo "$as_me:$LINENO: result: $ac_res" >&5
11371 echo "${ECHO_T}$ac_res" >&6; }
11372 else
11373 # Is the header compilable?
11374 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11376 cat >conftest.$ac_ext <<_ACEOF
11377 /* confdefs.h. */
11378 _ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11382 $ac_includes_default
11383 #include <$ac_header>
11384 _ACEOF
11385 rm -f conftest.$ac_objext
11386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11387 (eval $ac_compile) 2>conftest.er1
11388 ac_status=$?
11389 grep -v '^ *+' conftest.er1 >conftest.err
11390 rm -f conftest.er1
11391 cat conftest.err >&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } &&
11394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396 (eval $ac_try) 2>&5
11397 ac_status=$?
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; } &&
11400 { ac_try='test -s conftest.$ac_objext'
11401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402 (eval $ac_try) 2>&5
11403 ac_status=$?
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; }; then
11406 ac_header_compiler=yes
11407 else
11408 echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11410
11411 ac_header_compiler=no
11412 fi
11413
11414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11415 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11416 echo "${ECHO_T}$ac_header_compiler" >&6; }
11417
11418 # Is the header present?
11419 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11421 cat >conftest.$ac_ext <<_ACEOF
11422 /* confdefs.h. */
11423 _ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11427 #include <$ac_header>
11428 _ACEOF
11429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11431 ac_status=$?
11432 grep -v '^ *+' conftest.er1 >conftest.err
11433 rm -f conftest.er1
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } >/dev/null; then
11437 if test -s conftest.err; then
11438 ac_cpp_err=$ac_c_preproc_warn_flag
11439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11440 else
11441 ac_cpp_err=
11442 fi
11443 else
11444 ac_cpp_err=yes
11445 fi
11446 if test -z "$ac_cpp_err"; then
11447 ac_header_preproc=yes
11448 else
11449 echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.$ac_ext >&5
11451
11452 ac_header_preproc=no
11453 fi
11454
11455 rm -f conftest.err conftest.$ac_ext
11456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11457 echo "${ECHO_T}$ac_header_preproc" >&6; }
11458
11459 # So? What about this header?
11460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11461 yes:no: )
11462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11466 ac_header_preproc=yes
11467 ;;
11468 no:yes:* )
11469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11481
11482 ;;
11483 esac
11484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 else
11489 eval "$as_ac_Header=\$ac_header_preproc"
11490 fi
11491 ac_res=`eval echo '${'$as_ac_Header'}'`
11492 { echo "$as_me:$LINENO: result: $ac_res" >&5
11493 echo "${ECHO_T}$ac_res" >&6; }
11494
11495 fi
11496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11497 cat >>confdefs.h <<_ACEOF
11498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11499 _ACEOF
11500
11501 fi
11502
11503 done
11504
11505
11506
11507 for ac_header in sys/ptrace.h ptrace.h
11508 do
11509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11515 fi
11516 ac_res=`eval echo '${'$as_ac_Header'}'`
11517 { echo "$as_me:$LINENO: result: $ac_res" >&5
11518 echo "${ECHO_T}$ac_res" >&6; }
11519 else
11520 # Is the header compilable?
11521 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11523 cat >conftest.$ac_ext <<_ACEOF
11524 /* confdefs.h. */
11525 _ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h. */
11529 $ac_includes_default
11530 #include <$ac_header>
11531 _ACEOF
11532 rm -f conftest.$ac_objext
11533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11534 (eval $ac_compile) 2>conftest.er1
11535 ac_status=$?
11536 grep -v '^ *+' conftest.er1 >conftest.err
11537 rm -f conftest.er1
11538 cat conftest.err >&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
11541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11544 ac_status=$?
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; } &&
11547 { ac_try='test -s conftest.$ac_objext'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11550 ac_status=$?
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; }; then
11553 ac_header_compiler=yes
11554 else
11555 echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11557
11558 ac_header_compiler=no
11559 fi
11560
11561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11563 echo "${ECHO_T}$ac_header_compiler" >&6; }
11564
11565 # Is the header present?
11566 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11568 cat >conftest.$ac_ext <<_ACEOF
11569 /* confdefs.h. */
11570 _ACEOF
11571 cat confdefs.h >>conftest.$ac_ext
11572 cat >>conftest.$ac_ext <<_ACEOF
11573 /* end confdefs.h. */
11574 #include <$ac_header>
11575 _ACEOF
11576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11578 ac_status=$?
11579 grep -v '^ *+' conftest.er1 >conftest.err
11580 rm -f conftest.er1
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } >/dev/null; then
11584 if test -s conftest.err; then
11585 ac_cpp_err=$ac_c_preproc_warn_flag
11586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11587 else
11588 ac_cpp_err=
11589 fi
11590 else
11591 ac_cpp_err=yes
11592 fi
11593 if test -z "$ac_cpp_err"; then
11594 ac_header_preproc=yes
11595 else
11596 echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11598
11599 ac_header_preproc=no
11600 fi
11601
11602 rm -f conftest.err conftest.$ac_ext
11603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11604 echo "${ECHO_T}$ac_header_preproc" >&6; }
11605
11606 # So? What about this header?
11607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11608 yes:no: )
11609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11613 ac_header_preproc=yes
11614 ;;
11615 no:yes:* )
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11619 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11623 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11628
11629 ;;
11630 esac
11631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 else
11636 eval "$as_ac_Header=\$ac_header_preproc"
11637 fi
11638 ac_res=`eval echo '${'$as_ac_Header'}'`
11639 { echo "$as_me:$LINENO: result: $ac_res" >&5
11640 echo "${ECHO_T}$ac_res" >&6; }
11641
11642 fi
11643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11644 cat >>confdefs.h <<_ACEOF
11645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11646 _ACEOF
11647
11648 fi
11649
11650 done
11651
11652
11653
11654 for ac_header in sys/reg.h sys/debugreg.h
11655 do
11656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11661 echo $ECHO_N "(cached) $ECHO_C" >&6
11662 fi
11663 ac_res=`eval echo '${'$as_ac_Header'}'`
11664 { echo "$as_me:$LINENO: result: $ac_res" >&5
11665 echo "${ECHO_T}$ac_res" >&6; }
11666 else
11667 # Is the header compilable?
11668 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11670 cat >conftest.$ac_ext <<_ACEOF
11671 /* confdefs.h. */
11672 _ACEOF
11673 cat confdefs.h >>conftest.$ac_ext
11674 cat >>conftest.$ac_ext <<_ACEOF
11675 /* end confdefs.h. */
11676 $ac_includes_default
11677 #include <$ac_header>
11678 _ACEOF
11679 rm -f conftest.$ac_objext
11680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11681 (eval $ac_compile) 2>conftest.er1
11682 ac_status=$?
11683 grep -v '^ *+' conftest.er1 >conftest.err
11684 rm -f conftest.er1
11685 cat conftest.err >&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); } &&
11688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690 (eval $ac_try) 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; } &&
11694 { ac_try='test -s conftest.$ac_objext'
11695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696 (eval $ac_try) 2>&5
11697 ac_status=$?
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; }; then
11700 ac_header_compiler=yes
11701 else
11702 echo "$as_me: failed program was:" >&5
11703 sed 's/^/| /' conftest.$ac_ext >&5
11704
11705 ac_header_compiler=no
11706 fi
11707
11708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11710 echo "${ECHO_T}$ac_header_compiler" >&6; }
11711
11712 # Is the header present?
11713 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11715 cat >conftest.$ac_ext <<_ACEOF
11716 /* confdefs.h. */
11717 _ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h. */
11721 #include <$ac_header>
11722 _ACEOF
11723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11725 ac_status=$?
11726 grep -v '^ *+' conftest.er1 >conftest.err
11727 rm -f conftest.er1
11728 cat conftest.err >&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); } >/dev/null; then
11731 if test -s conftest.err; then
11732 ac_cpp_err=$ac_c_preproc_warn_flag
11733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11734 else
11735 ac_cpp_err=
11736 fi
11737 else
11738 ac_cpp_err=yes
11739 fi
11740 if test -z "$ac_cpp_err"; then
11741 ac_header_preproc=yes
11742 else
11743 echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11745
11746 ac_header_preproc=no
11747 fi
11748
11749 rm -f conftest.err conftest.$ac_ext
11750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11751 echo "${ECHO_T}$ac_header_preproc" >&6; }
11752
11753 # So? What about this header?
11754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11755 yes:no: )
11756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11760 ac_header_preproc=yes
11761 ;;
11762 no:yes:* )
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11770 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11775
11776 ;;
11777 esac
11778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11782 else
11783 eval "$as_ac_Header=\$ac_header_preproc"
11784 fi
11785 ac_res=`eval echo '${'$as_ac_Header'}'`
11786 { echo "$as_me:$LINENO: result: $ac_res" >&5
11787 echo "${ECHO_T}$ac_res" >&6; }
11788
11789 fi
11790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11791 cat >>confdefs.h <<_ACEOF
11792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11793 _ACEOF
11794
11795 fi
11796
11797 done
11798
11799
11800 for ac_header in sys/select.h
11801 do
11802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11808 fi
11809 ac_res=`eval echo '${'$as_ac_Header'}'`
11810 { echo "$as_me:$LINENO: result: $ac_res" >&5
11811 echo "${ECHO_T}$ac_res" >&6; }
11812 else
11813 # Is the header compilable?
11814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11816 cat >conftest.$ac_ext <<_ACEOF
11817 /* confdefs.h. */
11818 _ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h. */
11822 $ac_includes_default
11823 #include <$ac_header>
11824 _ACEOF
11825 rm -f conftest.$ac_objext
11826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11827 (eval $ac_compile) 2>conftest.er1
11828 ac_status=$?
11829 grep -v '^ *+' conftest.er1 >conftest.err
11830 rm -f conftest.er1
11831 cat conftest.err >&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } &&
11834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11837 ac_status=$?
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; } &&
11840 { ac_try='test -s conftest.$ac_objext'
11841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842 (eval $ac_try) 2>&5
11843 ac_status=$?
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }; }; then
11846 ac_header_compiler=yes
11847 else
11848 echo "$as_me: failed program was:" >&5
11849 sed 's/^/| /' conftest.$ac_ext >&5
11850
11851 ac_header_compiler=no
11852 fi
11853
11854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11856 echo "${ECHO_T}$ac_header_compiler" >&6; }
11857
11858 # Is the header present?
11859 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11861 cat >conftest.$ac_ext <<_ACEOF
11862 /* confdefs.h. */
11863 _ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11867 #include <$ac_header>
11868 _ACEOF
11869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11871 ac_status=$?
11872 grep -v '^ *+' conftest.er1 >conftest.err
11873 rm -f conftest.er1
11874 cat conftest.err >&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } >/dev/null; then
11877 if test -s conftest.err; then
11878 ac_cpp_err=$ac_c_preproc_warn_flag
11879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11880 else
11881 ac_cpp_err=
11882 fi
11883 else
11884 ac_cpp_err=yes
11885 fi
11886 if test -z "$ac_cpp_err"; then
11887 ac_header_preproc=yes
11888 else
11889 echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11891
11892 ac_header_preproc=no
11893 fi
11894
11895 rm -f conftest.err conftest.$ac_ext
11896 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11897 echo "${ECHO_T}$ac_header_preproc" >&6; }
11898
11899 # So? What about this header?
11900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11901 yes:no: )
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11906 ac_header_preproc=yes
11907 ;;
11908 no:yes:* )
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11916 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11921
11922 ;;
11923 esac
11924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11928 else
11929 eval "$as_ac_Header=\$ac_header_preproc"
11930 fi
11931 ac_res=`eval echo '${'$as_ac_Header'}'`
11932 { echo "$as_me:$LINENO: result: $ac_res" >&5
11933 echo "${ECHO_T}$ac_res" >&6; }
11934
11935 fi
11936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11937 cat >>confdefs.h <<_ACEOF
11938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11939 _ACEOF
11940
11941 fi
11942
11943 done
11944
11945
11946 for ac_header in sys/syscall.h
11947 do
11948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11954 fi
11955 ac_res=`eval echo '${'$as_ac_Header'}'`
11956 { echo "$as_me:$LINENO: result: $ac_res" >&5
11957 echo "${ECHO_T}$ac_res" >&6; }
11958 else
11959 # Is the header compilable?
11960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11962 cat >conftest.$ac_ext <<_ACEOF
11963 /* confdefs.h. */
11964 _ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h. */
11968 $ac_includes_default
11969 #include <$ac_header>
11970 _ACEOF
11971 rm -f conftest.$ac_objext
11972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11973 (eval $ac_compile) 2>conftest.er1
11974 ac_status=$?
11975 grep -v '^ *+' conftest.er1 >conftest.err
11976 rm -f conftest.er1
11977 cat conftest.err >&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } &&
11980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11983 ac_status=$?
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; } &&
11986 { ac_try='test -s conftest.$ac_objext'
11987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988 (eval $ac_try) 2>&5
11989 ac_status=$?
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); }; }; then
11992 ac_header_compiler=yes
11993 else
11994 echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.$ac_ext >&5
11996
11997 ac_header_compiler=no
11998 fi
11999
12000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12001 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12002 echo "${ECHO_T}$ac_header_compiler" >&6; }
12003
12004 # Is the header present?
12005 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12007 cat >conftest.$ac_ext <<_ACEOF
12008 /* confdefs.h. */
12009 _ACEOF
12010 cat confdefs.h >>conftest.$ac_ext
12011 cat >>conftest.$ac_ext <<_ACEOF
12012 /* end confdefs.h. */
12013 #include <$ac_header>
12014 _ACEOF
12015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12017 ac_status=$?
12018 grep -v '^ *+' conftest.er1 >conftest.err
12019 rm -f conftest.er1
12020 cat conftest.err >&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } >/dev/null; then
12023 if test -s conftest.err; then
12024 ac_cpp_err=$ac_c_preproc_warn_flag
12025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12026 else
12027 ac_cpp_err=
12028 fi
12029 else
12030 ac_cpp_err=yes
12031 fi
12032 if test -z "$ac_cpp_err"; then
12033 ac_header_preproc=yes
12034 else
12035 echo "$as_me: failed program was:" >&5
12036 sed 's/^/| /' conftest.$ac_ext >&5
12037
12038 ac_header_preproc=no
12039 fi
12040
12041 rm -f conftest.err conftest.$ac_ext
12042 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12043 echo "${ECHO_T}$ac_header_preproc" >&6; }
12044
12045 # So? What about this header?
12046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12047 yes:no: )
12048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12049 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12051 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12052 ac_header_preproc=yes
12053 ;;
12054 no:yes:* )
12055 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12056 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12057 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12058 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12059 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12060 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12061 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12062 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12065 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12066 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12067
12068 ;;
12069 esac
12070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12074 else
12075 eval "$as_ac_Header=\$ac_header_preproc"
12076 fi
12077 ac_res=`eval echo '${'$as_ac_Header'}'`
12078 { echo "$as_me:$LINENO: result: $ac_res" >&5
12079 echo "${ECHO_T}$ac_res" >&6; }
12080
12081 fi
12082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12083 cat >>confdefs.h <<_ACEOF
12084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12085 _ACEOF
12086
12087 fi
12088
12089 done
12090
12091
12092 for ac_header in sys/types.h
12093 do
12094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12100 fi
12101 ac_res=`eval echo '${'$as_ac_Header'}'`
12102 { echo "$as_me:$LINENO: result: $ac_res" >&5
12103 echo "${ECHO_T}$ac_res" >&6; }
12104 else
12105 # Is the header compilable?
12106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12108 cat >conftest.$ac_ext <<_ACEOF
12109 /* confdefs.h. */
12110 _ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 $ac_includes_default
12115 #include <$ac_header>
12116 _ACEOF
12117 rm -f conftest.$ac_objext
12118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12119 (eval $ac_compile) 2>conftest.er1
12120 ac_status=$?
12121 grep -v '^ *+' conftest.er1 >conftest.err
12122 rm -f conftest.er1
12123 cat conftest.err >&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } &&
12126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128 (eval $ac_try) 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; } &&
12132 { ac_try='test -s conftest.$ac_objext'
12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134 (eval $ac_try) 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; }; then
12138 ac_header_compiler=yes
12139 else
12140 echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12142
12143 ac_header_compiler=no
12144 fi
12145
12146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12148 echo "${ECHO_T}$ac_header_compiler" >&6; }
12149
12150 # Is the header present?
12151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12153 cat >conftest.$ac_ext <<_ACEOF
12154 /* confdefs.h. */
12155 _ACEOF
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h. */
12159 #include <$ac_header>
12160 _ACEOF
12161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12163 ac_status=$?
12164 grep -v '^ *+' conftest.er1 >conftest.err
12165 rm -f conftest.er1
12166 cat conftest.err >&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } >/dev/null; then
12169 if test -s conftest.err; then
12170 ac_cpp_err=$ac_c_preproc_warn_flag
12171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12172 else
12173 ac_cpp_err=
12174 fi
12175 else
12176 ac_cpp_err=yes
12177 fi
12178 if test -z "$ac_cpp_err"; then
12179 ac_header_preproc=yes
12180 else
12181 echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12183
12184 ac_header_preproc=no
12185 fi
12186
12187 rm -f conftest.err conftest.$ac_ext
12188 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12189 echo "${ECHO_T}$ac_header_preproc" >&6; }
12190
12191 # So? What about this header?
12192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12193 yes:no: )
12194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12198 ac_header_preproc=yes
12199 ;;
12200 no:yes:* )
12201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12204 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12208 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12213
12214 ;;
12215 esac
12216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12220 else
12221 eval "$as_ac_Header=\$ac_header_preproc"
12222 fi
12223 ac_res=`eval echo '${'$as_ac_Header'}'`
12224 { echo "$as_me:$LINENO: result: $ac_res" >&5
12225 echo "${ECHO_T}$ac_res" >&6; }
12226
12227 fi
12228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12229 cat >>confdefs.h <<_ACEOF
12230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12231 _ACEOF
12232
12233 fi
12234
12235 done
12236
12237
12238 for ac_header in sys/user.h
12239 do
12240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12245 else
12246 cat >conftest.$ac_ext <<_ACEOF
12247 /* confdefs.h. */
12248 _ACEOF
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h. */
12252 #if HAVE_SYS_PARAM_H
12253 # include <sys/param.h>
12254 #endif
12255
12256
12257 #include <$ac_header>
12258 _ACEOF
12259 rm -f conftest.$ac_objext
12260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12261 (eval $ac_compile) 2>conftest.er1
12262 ac_status=$?
12263 grep -v '^ *+' conftest.er1 >conftest.err
12264 rm -f conftest.er1
12265 cat conftest.err >&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
12268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12271 ac_status=$?
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; } &&
12274 { ac_try='test -s conftest.$ac_objext'
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12277 ac_status=$?
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; }; then
12280 eval "$as_ac_Header=yes"
12281 else
12282 echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.$ac_ext >&5
12284
12285 eval "$as_ac_Header=no"
12286 fi
12287
12288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12289 fi
12290 ac_res=`eval echo '${'$as_ac_Header'}'`
12291 { echo "$as_me:$LINENO: result: $ac_res" >&5
12292 echo "${ECHO_T}$ac_res" >&6; }
12293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12294 cat >>confdefs.h <<_ACEOF
12295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12296 _ACEOF
12297
12298 fi
12299
12300 done
12301
12302
12303
12304 for ac_header in sys/wait.h wait.h
12305 do
12306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 fi
12313 ac_res=`eval echo '${'$as_ac_Header'}'`
12314 { echo "$as_me:$LINENO: result: $ac_res" >&5
12315 echo "${ECHO_T}$ac_res" >&6; }
12316 else
12317 # Is the header compilable?
12318 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12320 cat >conftest.$ac_ext <<_ACEOF
12321 /* confdefs.h. */
12322 _ACEOF
12323 cat confdefs.h >>conftest.$ac_ext
12324 cat >>conftest.$ac_ext <<_ACEOF
12325 /* end confdefs.h. */
12326 $ac_includes_default
12327 #include <$ac_header>
12328 _ACEOF
12329 rm -f conftest.$ac_objext
12330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12331 (eval $ac_compile) 2>conftest.er1
12332 ac_status=$?
12333 grep -v '^ *+' conftest.er1 >conftest.err
12334 rm -f conftest.er1
12335 cat conftest.err >&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } &&
12338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; } &&
12344 { ac_try='test -s conftest.$ac_objext'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; }; then
12350 ac_header_compiler=yes
12351 else
12352 echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12354
12355 ac_header_compiler=no
12356 fi
12357
12358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12360 echo "${ECHO_T}$ac_header_compiler" >&6; }
12361
12362 # Is the header present?
12363 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12365 cat >conftest.$ac_ext <<_ACEOF
12366 /* confdefs.h. */
12367 _ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h. */
12371 #include <$ac_header>
12372 _ACEOF
12373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12375 ac_status=$?
12376 grep -v '^ *+' conftest.er1 >conftest.err
12377 rm -f conftest.er1
12378 cat conftest.err >&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } >/dev/null; then
12381 if test -s conftest.err; then
12382 ac_cpp_err=$ac_c_preproc_warn_flag
12383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12384 else
12385 ac_cpp_err=
12386 fi
12387 else
12388 ac_cpp_err=yes
12389 fi
12390 if test -z "$ac_cpp_err"; then
12391 ac_header_preproc=yes
12392 else
12393 echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12395
12396 ac_header_preproc=no
12397 fi
12398
12399 rm -f conftest.err conftest.$ac_ext
12400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12401 echo "${ECHO_T}$ac_header_preproc" >&6; }
12402
12403 # So? What about this header?
12404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12405 yes:no: )
12406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12410 ac_header_preproc=yes
12411 ;;
12412 no:yes:* )
12413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12425
12426 ;;
12427 esac
12428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12431 echo $ECHO_N "(cached) $ECHO_C" >&6
12432 else
12433 eval "$as_ac_Header=\$ac_header_preproc"
12434 fi
12435 ac_res=`eval echo '${'$as_ac_Header'}'`
12436 { echo "$as_me:$LINENO: result: $ac_res" >&5
12437 echo "${ECHO_T}$ac_res" >&6; }
12438
12439 fi
12440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12441 cat >>confdefs.h <<_ACEOF
12442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12443 _ACEOF
12444
12445 fi
12446
12447 done
12448
12449
12450
12451
12452 for ac_header in termios.h termio.h sgtty.h
12453 do
12454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12459 echo $ECHO_N "(cached) $ECHO_C" >&6
12460 fi
12461 ac_res=`eval echo '${'$as_ac_Header'}'`
12462 { echo "$as_me:$LINENO: result: $ac_res" >&5
12463 echo "${ECHO_T}$ac_res" >&6; }
12464 else
12465 # Is the header compilable?
12466 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12468 cat >conftest.$ac_ext <<_ACEOF
12469 /* confdefs.h. */
12470 _ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12474 $ac_includes_default
12475 #include <$ac_header>
12476 _ACEOF
12477 rm -f conftest.$ac_objext
12478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12479 (eval $ac_compile) 2>conftest.er1
12480 ac_status=$?
12481 grep -v '^ *+' conftest.er1 >conftest.err
12482 rm -f conftest.er1
12483 cat conftest.err >&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } &&
12486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488 (eval $ac_try) 2>&5
12489 ac_status=$?
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }; } &&
12492 { ac_try='test -s conftest.$ac_objext'
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12495 ac_status=$?
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; }; then
12498 ac_header_compiler=yes
12499 else
12500 echo "$as_me: failed program was:" >&5
12501 sed 's/^/| /' conftest.$ac_ext >&5
12502
12503 ac_header_compiler=no
12504 fi
12505
12506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12508 echo "${ECHO_T}$ac_header_compiler" >&6; }
12509
12510 # Is the header present?
12511 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12513 cat >conftest.$ac_ext <<_ACEOF
12514 /* confdefs.h. */
12515 _ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12519 #include <$ac_header>
12520 _ACEOF
12521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12523 ac_status=$?
12524 grep -v '^ *+' conftest.er1 >conftest.err
12525 rm -f conftest.er1
12526 cat conftest.err >&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); } >/dev/null; then
12529 if test -s conftest.err; then
12530 ac_cpp_err=$ac_c_preproc_warn_flag
12531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12532 else
12533 ac_cpp_err=
12534 fi
12535 else
12536 ac_cpp_err=yes
12537 fi
12538 if test -z "$ac_cpp_err"; then
12539 ac_header_preproc=yes
12540 else
12541 echo "$as_me: failed program was:" >&5
12542 sed 's/^/| /' conftest.$ac_ext >&5
12543
12544 ac_header_preproc=no
12545 fi
12546
12547 rm -f conftest.err conftest.$ac_ext
12548 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12549 echo "${ECHO_T}$ac_header_preproc" >&6; }
12550
12551 # So? What about this header?
12552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12553 yes:no: )
12554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12558 ac_header_preproc=yes
12559 ;;
12560 no:yes:* )
12561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12568 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12573
12574 ;;
12575 esac
12576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12579 echo $ECHO_N "(cached) $ECHO_C" >&6
12580 else
12581 eval "$as_ac_Header=\$ac_header_preproc"
12582 fi
12583 ac_res=`eval echo '${'$as_ac_Header'}'`
12584 { echo "$as_me:$LINENO: result: $ac_res" >&5
12585 echo "${ECHO_T}$ac_res" >&6; }
12586
12587 fi
12588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12589 cat >>confdefs.h <<_ACEOF
12590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12591 _ACEOF
12592
12593 fi
12594
12595 done
12596
12597
12598 for ac_header in unistd.h
12599 do
12600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12605 echo $ECHO_N "(cached) $ECHO_C" >&6
12606 fi
12607 ac_res=`eval echo '${'$as_ac_Header'}'`
12608 { echo "$as_me:$LINENO: result: $ac_res" >&5
12609 echo "${ECHO_T}$ac_res" >&6; }
12610 else
12611 # Is the header compilable?
12612 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12614 cat >conftest.$ac_ext <<_ACEOF
12615 /* confdefs.h. */
12616 _ACEOF
12617 cat confdefs.h >>conftest.$ac_ext
12618 cat >>conftest.$ac_ext <<_ACEOF
12619 /* end confdefs.h. */
12620 $ac_includes_default
12621 #include <$ac_header>
12622 _ACEOF
12623 rm -f conftest.$ac_objext
12624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12625 (eval $ac_compile) 2>conftest.er1
12626 ac_status=$?
12627 grep -v '^ *+' conftest.er1 >conftest.err
12628 rm -f conftest.er1
12629 cat conftest.err >&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); } &&
12632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12635 ac_status=$?
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; } &&
12638 { ac_try='test -s conftest.$ac_objext'
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12641 ac_status=$?
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; }; then
12644 ac_header_compiler=yes
12645 else
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12648
12649 ac_header_compiler=no
12650 fi
12651
12652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12654 echo "${ECHO_T}$ac_header_compiler" >&6; }
12655
12656 # Is the header present?
12657 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12659 cat >conftest.$ac_ext <<_ACEOF
12660 /* confdefs.h. */
12661 _ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h. */
12665 #include <$ac_header>
12666 _ACEOF
12667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12669 ac_status=$?
12670 grep -v '^ *+' conftest.er1 >conftest.err
12671 rm -f conftest.er1
12672 cat conftest.err >&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } >/dev/null; then
12675 if test -s conftest.err; then
12676 ac_cpp_err=$ac_c_preproc_warn_flag
12677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12678 else
12679 ac_cpp_err=
12680 fi
12681 else
12682 ac_cpp_err=yes
12683 fi
12684 if test -z "$ac_cpp_err"; then
12685 ac_header_preproc=yes
12686 else
12687 echo "$as_me: failed program was:" >&5
12688 sed 's/^/| /' conftest.$ac_ext >&5
12689
12690 ac_header_preproc=no
12691 fi
12692
12693 rm -f conftest.err conftest.$ac_ext
12694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12695 echo "${ECHO_T}$ac_header_preproc" >&6; }
12696
12697 # So? What about this header?
12698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12699 yes:no: )
12700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12704 ac_header_preproc=yes
12705 ;;
12706 no:yes:* )
12707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12714 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12719
12720 ;;
12721 esac
12722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12726 else
12727 eval "$as_ac_Header=\$ac_header_preproc"
12728 fi
12729 ac_res=`eval echo '${'$as_ac_Header'}'`
12730 { echo "$as_me:$LINENO: result: $ac_res" >&5
12731 echo "${ECHO_T}$ac_res" >&6; }
12732
12733 fi
12734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12735 cat >>confdefs.h <<_ACEOF
12736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12737 _ACEOF
12738
12739 fi
12740
12741 done
12742
12743
12744 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12745 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12746 # think that we don't have <curses.h> if we're using GCC.
12747 case $host_os in
12748 solaris2.[789])
12749 if test "$GCC" = yes; then
12750
12751 cat >>confdefs.h <<\_ACEOF
12752 #define _MSE_INT_H 1
12753 _ACEOF
12754
12755 fi ;;
12756 esac
12757
12758
12759
12760
12761 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
12762 do
12763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12769 fi
12770 ac_res=`eval echo '${'$as_ac_Header'}'`
12771 { echo "$as_me:$LINENO: result: $ac_res" >&5
12772 echo "${ECHO_T}$ac_res" >&6; }
12773 else
12774 # Is the header compilable?
12775 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12777 cat >conftest.$ac_ext <<_ACEOF
12778 /* confdefs.h. */
12779 _ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h. */
12783 $ac_includes_default
12784 #include <$ac_header>
12785 _ACEOF
12786 rm -f conftest.$ac_objext
12787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12788 (eval $ac_compile) 2>conftest.er1
12789 ac_status=$?
12790 grep -v '^ *+' conftest.er1 >conftest.err
12791 rm -f conftest.er1
12792 cat conftest.err >&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } &&
12795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; } &&
12801 { ac_try='test -s conftest.$ac_objext'
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12804 ac_status=$?
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; }; then
12807 ac_header_compiler=yes
12808 else
12809 echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12811
12812 ac_header_compiler=no
12813 fi
12814
12815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12816 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12817 echo "${ECHO_T}$ac_header_compiler" >&6; }
12818
12819 # Is the header present?
12820 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12822 cat >conftest.$ac_ext <<_ACEOF
12823 /* confdefs.h. */
12824 _ACEOF
12825 cat confdefs.h >>conftest.$ac_ext
12826 cat >>conftest.$ac_ext <<_ACEOF
12827 /* end confdefs.h. */
12828 #include <$ac_header>
12829 _ACEOF
12830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12832 ac_status=$?
12833 grep -v '^ *+' conftest.er1 >conftest.err
12834 rm -f conftest.er1
12835 cat conftest.err >&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); } >/dev/null; then
12838 if test -s conftest.err; then
12839 ac_cpp_err=$ac_c_preproc_warn_flag
12840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12841 else
12842 ac_cpp_err=
12843 fi
12844 else
12845 ac_cpp_err=yes
12846 fi
12847 if test -z "$ac_cpp_err"; then
12848 ac_header_preproc=yes
12849 else
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12852
12853 ac_header_preproc=no
12854 fi
12855
12856 rm -f conftest.err conftest.$ac_ext
12857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12858 echo "${ECHO_T}$ac_header_preproc" >&6; }
12859
12860 # So? What about this header?
12861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12862 yes:no: )
12863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12867 ac_header_preproc=yes
12868 ;;
12869 no:yes:* )
12870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12873 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12877 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12882
12883 ;;
12884 esac
12885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
12889 else
12890 eval "$as_ac_Header=\$ac_header_preproc"
12891 fi
12892 ac_res=`eval echo '${'$as_ac_Header'}'`
12893 { echo "$as_me:$LINENO: result: $ac_res" >&5
12894 echo "${ECHO_T}$ac_res" >&6; }
12895
12896 fi
12897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12898 cat >>confdefs.h <<_ACEOF
12899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12900 _ACEOF
12901
12902 fi
12903
12904 done
12905
12906
12907 for ac_header in ncurses/term.h
12908 do
12909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12914 echo $ECHO_N "(cached) $ECHO_C" >&6
12915 fi
12916 ac_res=`eval echo '${'$as_ac_Header'}'`
12917 { echo "$as_me:$LINENO: result: $ac_res" >&5
12918 echo "${ECHO_T}$ac_res" >&6; }
12919 else
12920 # Is the header compilable?
12921 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12923 cat >conftest.$ac_ext <<_ACEOF
12924 /* confdefs.h. */
12925 _ACEOF
12926 cat confdefs.h >>conftest.$ac_ext
12927 cat >>conftest.$ac_ext <<_ACEOF
12928 /* end confdefs.h. */
12929 $ac_includes_default
12930 #include <$ac_header>
12931 _ACEOF
12932 rm -f conftest.$ac_objext
12933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12934 (eval $ac_compile) 2>conftest.er1
12935 ac_status=$?
12936 grep -v '^ *+' conftest.er1 >conftest.err
12937 rm -f conftest.er1
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } &&
12941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12944 ac_status=$?
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; } &&
12947 { ac_try='test -s conftest.$ac_objext'
12948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949 (eval $ac_try) 2>&5
12950 ac_status=$?
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; }; then
12953 ac_header_compiler=yes
12954 else
12955 echo "$as_me: failed program was:" >&5
12956 sed 's/^/| /' conftest.$ac_ext >&5
12957
12958 ac_header_compiler=no
12959 fi
12960
12961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12963 echo "${ECHO_T}$ac_header_compiler" >&6; }
12964
12965 # Is the header present?
12966 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12968 cat >conftest.$ac_ext <<_ACEOF
12969 /* confdefs.h. */
12970 _ACEOF
12971 cat confdefs.h >>conftest.$ac_ext
12972 cat >>conftest.$ac_ext <<_ACEOF
12973 /* end confdefs.h. */
12974 #include <$ac_header>
12975 _ACEOF
12976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12978 ac_status=$?
12979 grep -v '^ *+' conftest.er1 >conftest.err
12980 rm -f conftest.er1
12981 cat conftest.err >&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } >/dev/null; then
12984 if test -s conftest.err; then
12985 ac_cpp_err=$ac_c_preproc_warn_flag
12986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12987 else
12988 ac_cpp_err=
12989 fi
12990 else
12991 ac_cpp_err=yes
12992 fi
12993 if test -z "$ac_cpp_err"; then
12994 ac_header_preproc=yes
12995 else
12996 echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.$ac_ext >&5
12998
12999 ac_header_preproc=no
13000 fi
13001
13002 rm -f conftest.err conftest.$ac_ext
13003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13004 echo "${ECHO_T}$ac_header_preproc" >&6; }
13005
13006 # So? What about this header?
13007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13008 yes:no: )
13009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13013 ac_header_preproc=yes
13014 ;;
13015 no:yes:* )
13016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13023 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13028
13029 ;;
13030 esac
13031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13035 else
13036 eval "$as_ac_Header=\$ac_header_preproc"
13037 fi
13038 ac_res=`eval echo '${'$as_ac_Header'}'`
13039 { echo "$as_me:$LINENO: result: $ac_res" >&5
13040 echo "${ECHO_T}$ac_res" >&6; }
13041
13042 fi
13043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13044 cat >>confdefs.h <<_ACEOF
13045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13046 _ACEOF
13047
13048 fi
13049
13050 done
13051
13052
13053 for ac_header in term.h
13054 do
13055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13059 echo $ECHO_N "(cached) $ECHO_C" >&6
13060 else
13061 cat >conftest.$ac_ext <<_ACEOF
13062 /* confdefs.h. */
13063 _ACEOF
13064 cat confdefs.h >>conftest.$ac_ext
13065 cat >>conftest.$ac_ext <<_ACEOF
13066 /* end confdefs.h. */
13067 #if HAVE_CURSES_H
13068 # include <curses.h>
13069 #endif
13070
13071
13072 #include <$ac_header>
13073 _ACEOF
13074 rm -f conftest.$ac_objext
13075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13076 (eval $ac_compile) 2>conftest.er1
13077 ac_status=$?
13078 grep -v '^ *+' conftest.er1 >conftest.err
13079 rm -f conftest.er1
13080 cat conftest.err >&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); } &&
13083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13085 (eval $ac_try) 2>&5
13086 ac_status=$?
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; } &&
13089 { ac_try='test -s conftest.$ac_objext'
13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091 (eval $ac_try) 2>&5
13092 ac_status=$?
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; }; then
13095 eval "$as_ac_Header=yes"
13096 else
13097 echo "$as_me: failed program was:" >&5
13098 sed 's/^/| /' conftest.$ac_ext >&5
13099
13100 eval "$as_ac_Header=no"
13101 fi
13102
13103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13104 fi
13105 ac_res=`eval echo '${'$as_ac_Header'}'`
13106 { echo "$as_me:$LINENO: result: $ac_res" >&5
13107 echo "${ECHO_T}$ac_res" >&6; }
13108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13109 cat >>confdefs.h <<_ACEOF
13110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13111 _ACEOF
13112
13113 fi
13114
13115 done
13116
13117
13118 # FIXME: kettenis/20030102: In most cases we include these
13119 # unconditionally, so what's the point in checking these?
13120
13121
13122 for ac_header in ctype.h time.h
13123 do
13124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13130 fi
13131 ac_res=`eval echo '${'$as_ac_Header'}'`
13132 { echo "$as_me:$LINENO: result: $ac_res" >&5
13133 echo "${ECHO_T}$ac_res" >&6; }
13134 else
13135 # Is the header compilable?
13136 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13137 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13138 cat >conftest.$ac_ext <<_ACEOF
13139 /* confdefs.h. */
13140 _ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h. */
13144 $ac_includes_default
13145 #include <$ac_header>
13146 _ACEOF
13147 rm -f conftest.$ac_objext
13148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13149 (eval $ac_compile) 2>conftest.er1
13150 ac_status=$?
13151 grep -v '^ *+' conftest.er1 >conftest.err
13152 rm -f conftest.er1
13153 cat conftest.err >&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); } &&
13156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; } &&
13162 { ac_try='test -s conftest.$ac_objext'
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13165 ac_status=$?
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; }; then
13168 ac_header_compiler=yes
13169 else
13170 echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13172
13173 ac_header_compiler=no
13174 fi
13175
13176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13178 echo "${ECHO_T}$ac_header_compiler" >&6; }
13179
13180 # Is the header present?
13181 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13183 cat >conftest.$ac_ext <<_ACEOF
13184 /* confdefs.h. */
13185 _ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13189 #include <$ac_header>
13190 _ACEOF
13191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13193 ac_status=$?
13194 grep -v '^ *+' conftest.er1 >conftest.err
13195 rm -f conftest.er1
13196 cat conftest.err >&5
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); } >/dev/null; then
13199 if test -s conftest.err; then
13200 ac_cpp_err=$ac_c_preproc_warn_flag
13201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13202 else
13203 ac_cpp_err=
13204 fi
13205 else
13206 ac_cpp_err=yes
13207 fi
13208 if test -z "$ac_cpp_err"; then
13209 ac_header_preproc=yes
13210 else
13211 echo "$as_me: failed program was:" >&5
13212 sed 's/^/| /' conftest.$ac_ext >&5
13213
13214 ac_header_preproc=no
13215 fi
13216
13217 rm -f conftest.err conftest.$ac_ext
13218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13219 echo "${ECHO_T}$ac_header_preproc" >&6; }
13220
13221 # So? What about this header?
13222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13223 yes:no: )
13224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13228 ac_header_preproc=yes
13229 ;;
13230 no:yes:* )
13231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13238 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13243
13244 ;;
13245 esac
13246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13250 else
13251 eval "$as_ac_Header=\$ac_header_preproc"
13252 fi
13253 ac_res=`eval echo '${'$as_ac_Header'}'`
13254 { echo "$as_me:$LINENO: result: $ac_res" >&5
13255 echo "${ECHO_T}$ac_res" >&6; }
13256
13257 fi
13258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13259 cat >>confdefs.h <<_ACEOF
13260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13261 _ACEOF
13262
13263 fi
13264
13265 done
13266
13267
13268 # Create a header we can use portably to get the standard integer types.
13269
13270
13271 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
13272
13273 acx_cv_header_stdint=stddef.h
13274 acx_cv_header_stdint_kind="(already complete)"
13275 for i in stdint.h $inttype_headers; do
13276 unset ac_cv_type_uintptr_t
13277 unset ac_cv_type_uintmax_t
13278 unset ac_cv_type_int_least32_t
13279 unset ac_cv_type_int_fast32_t
13280 unset ac_cv_type_uint64_t
13281 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13282 { echo "$as_me:$LINENO: checking for uintmax_t" >&5
13283 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; }
13284 if test "${ac_cv_type_uintmax_t+set}" = set; then
13285 echo $ECHO_N "(cached) $ECHO_C" >&6
13286 else
13287 cat >conftest.$ac_ext <<_ACEOF
13288 /* confdefs.h. */
13289 _ACEOF
13290 cat confdefs.h >>conftest.$ac_ext
13291 cat >>conftest.$ac_ext <<_ACEOF
13292 /* end confdefs.h. */
13293 #include <sys/types.h>
13294 #include <$i>
13295
13296 typedef uintmax_t ac__type_new_;
13297 int
13298 main ()
13299 {
13300 if ((ac__type_new_ *) 0)
13301 return 0;
13302 if (sizeof (ac__type_new_))
13303 return 0;
13304 ;
13305 return 0;
13306 }
13307 _ACEOF
13308 rm -f conftest.$ac_objext
13309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13310 (eval $ac_compile) 2>conftest.er1
13311 ac_status=$?
13312 grep -v '^ *+' conftest.er1 >conftest.err
13313 rm -f conftest.er1
13314 cat conftest.err >&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } &&
13317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319 (eval $ac_try) 2>&5
13320 ac_status=$?
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; } &&
13323 { ac_try='test -s conftest.$ac_objext'
13324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13325 (eval $ac_try) 2>&5
13326 ac_status=$?
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); }; }; then
13329 ac_cv_type_uintmax_t=yes
13330 else
13331 echo "$as_me: failed program was:" >&5
13332 sed 's/^/| /' conftest.$ac_ext >&5
13333
13334 ac_cv_type_uintmax_t=no
13335 fi
13336
13337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13338 fi
13339 { echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13340 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; }
13341 if test $ac_cv_type_uintmax_t = yes; then
13342 acx_cv_header_stdint=$i
13343 else
13344 continue
13345 fi
13346
13347 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
13348 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
13349 if test "${ac_cv_type_uintptr_t+set}" = set; then
13350 echo $ECHO_N "(cached) $ECHO_C" >&6
13351 else
13352 cat >conftest.$ac_ext <<_ACEOF
13353 /* confdefs.h. */
13354 _ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h. */
13358 #include <sys/types.h>
13359 #include <$i>
13360
13361 typedef uintptr_t ac__type_new_;
13362 int
13363 main ()
13364 {
13365 if ((ac__type_new_ *) 0)
13366 return 0;
13367 if (sizeof (ac__type_new_))
13368 return 0;
13369 ;
13370 return 0;
13371 }
13372 _ACEOF
13373 rm -f conftest.$ac_objext
13374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13375 (eval $ac_compile) 2>conftest.er1
13376 ac_status=$?
13377 grep -v '^ *+' conftest.er1 >conftest.err
13378 rm -f conftest.er1
13379 cat conftest.err >&5
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); } &&
13382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13384 (eval $ac_try) 2>&5
13385 ac_status=$?
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; } &&
13388 { ac_try='test -s conftest.$ac_objext'
13389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13390 (eval $ac_try) 2>&5
13391 ac_status=$?
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); }; }; then
13394 ac_cv_type_uintptr_t=yes
13395 else
13396 echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.$ac_ext >&5
13398
13399 ac_cv_type_uintptr_t=no
13400 fi
13401
13402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13403 fi
13404 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13405 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
13406 if test $ac_cv_type_uintptr_t = yes; then
13407 :
13408 else
13409 acx_cv_header_stdint_kind="(mostly complete)"
13410 fi
13411
13412 { echo "$as_me:$LINENO: checking for int_least32_t" >&5
13413 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6; }
13414 if test "${ac_cv_type_int_least32_t+set}" = set; then
13415 echo $ECHO_N "(cached) $ECHO_C" >&6
13416 else
13417 cat >conftest.$ac_ext <<_ACEOF
13418 /* confdefs.h. */
13419 _ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13423 #include <sys/types.h>
13424 #include <$i>
13425
13426 typedef int_least32_t ac__type_new_;
13427 int
13428 main ()
13429 {
13430 if ((ac__type_new_ *) 0)
13431 return 0;
13432 if (sizeof (ac__type_new_))
13433 return 0;
13434 ;
13435 return 0;
13436 }
13437 _ACEOF
13438 rm -f conftest.$ac_objext
13439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13440 (eval $ac_compile) 2>conftest.er1
13441 ac_status=$?
13442 grep -v '^ *+' conftest.er1 >conftest.err
13443 rm -f conftest.er1
13444 cat conftest.err >&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } &&
13447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13450 ac_status=$?
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; } &&
13453 { ac_try='test -s conftest.$ac_objext'
13454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455 (eval $ac_try) 2>&5
13456 ac_status=$?
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; }; then
13459 ac_cv_type_int_least32_t=yes
13460 else
13461 echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13463
13464 ac_cv_type_int_least32_t=no
13465 fi
13466
13467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13468 fi
13469 { echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13470 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6; }
13471 if test $ac_cv_type_int_least32_t = yes; then
13472 :
13473 else
13474 acx_cv_header_stdint_kind="(mostly complete)"
13475 fi
13476
13477 { echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13478 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6; }
13479 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13481 else
13482 cat >conftest.$ac_ext <<_ACEOF
13483 /* confdefs.h. */
13484 _ACEOF
13485 cat confdefs.h >>conftest.$ac_ext
13486 cat >>conftest.$ac_ext <<_ACEOF
13487 /* end confdefs.h. */
13488 #include <sys/types.h>
13489 #include <$i>
13490
13491 typedef int_fast32_t ac__type_new_;
13492 int
13493 main ()
13494 {
13495 if ((ac__type_new_ *) 0)
13496 return 0;
13497 if (sizeof (ac__type_new_))
13498 return 0;
13499 ;
13500 return 0;
13501 }
13502 _ACEOF
13503 rm -f conftest.$ac_objext
13504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13505 (eval $ac_compile) 2>conftest.er1
13506 ac_status=$?
13507 grep -v '^ *+' conftest.er1 >conftest.err
13508 rm -f conftest.er1
13509 cat conftest.err >&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } &&
13512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514 (eval $ac_try) 2>&5
13515 ac_status=$?
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; } &&
13518 { ac_try='test -s conftest.$ac_objext'
13519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520 (eval $ac_try) 2>&5
13521 ac_status=$?
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; }; then
13524 ac_cv_type_int_fast32_t=yes
13525 else
13526 echo "$as_me: failed program was:" >&5
13527 sed 's/^/| /' conftest.$ac_ext >&5
13528
13529 ac_cv_type_int_fast32_t=no
13530 fi
13531
13532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13533 fi
13534 { echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13535 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6; }
13536 if test $ac_cv_type_int_fast32_t = yes; then
13537 :
13538 else
13539 acx_cv_header_stdint_kind="(mostly complete)"
13540 fi
13541
13542 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13543 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13544 if test "${ac_cv_type_uint64_t+set}" = set; then
13545 echo $ECHO_N "(cached) $ECHO_C" >&6
13546 else
13547 cat >conftest.$ac_ext <<_ACEOF
13548 /* confdefs.h. */
13549 _ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h. */
13553 #include <sys/types.h>
13554 #include <$i>
13555
13556 typedef uint64_t ac__type_new_;
13557 int
13558 main ()
13559 {
13560 if ((ac__type_new_ *) 0)
13561 return 0;
13562 if (sizeof (ac__type_new_))
13563 return 0;
13564 ;
13565 return 0;
13566 }
13567 _ACEOF
13568 rm -f conftest.$ac_objext
13569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13570 (eval $ac_compile) 2>conftest.er1
13571 ac_status=$?
13572 grep -v '^ *+' conftest.er1 >conftest.err
13573 rm -f conftest.er1
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } &&
13577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579 (eval $ac_try) 2>&5
13580 ac_status=$?
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; } &&
13583 { ac_try='test -s conftest.$ac_objext'
13584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585 (eval $ac_try) 2>&5
13586 ac_status=$?
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }; then
13589 ac_cv_type_uint64_t=yes
13590 else
13591 echo "$as_me: failed program was:" >&5
13592 sed 's/^/| /' conftest.$ac_ext >&5
13593
13594 ac_cv_type_uint64_t=no
13595 fi
13596
13597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13598 fi
13599 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13600 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13601 if test $ac_cv_type_uint64_t = yes; then
13602 :
13603 else
13604 acx_cv_header_stdint_kind="(lacks uint64_t)"
13605 fi
13606
13607 break
13608 done
13609 if test "$acx_cv_header_stdint" = stddef.h; then
13610 acx_cv_header_stdint_kind="(lacks uintptr_t)"
13611 for i in stdint.h $inttype_headers; do
13612 unset ac_cv_type_uint32_t
13613 unset ac_cv_type_uint64_t
13614 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13615 { echo "$as_me:$LINENO: checking for uint32_t" >&5
13616 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
13617 if test "${ac_cv_type_uint32_t+set}" = set; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 else
13620 cat >conftest.$ac_ext <<_ACEOF
13621 /* confdefs.h. */
13622 _ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h. */
13626 #include <sys/types.h>
13627 #include <$i>
13628
13629 typedef uint32_t ac__type_new_;
13630 int
13631 main ()
13632 {
13633 if ((ac__type_new_ *) 0)
13634 return 0;
13635 if (sizeof (ac__type_new_))
13636 return 0;
13637 ;
13638 return 0;
13639 }
13640 _ACEOF
13641 rm -f conftest.$ac_objext
13642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13643 (eval $ac_compile) 2>conftest.er1
13644 ac_status=$?
13645 grep -v '^ *+' conftest.er1 >conftest.err
13646 rm -f conftest.er1
13647 cat conftest.err >&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); } &&
13650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13653 ac_status=$?
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; } &&
13656 { ac_try='test -s conftest.$ac_objext'
13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658 (eval $ac_try) 2>&5
13659 ac_status=$?
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; }; then
13662 ac_cv_type_uint32_t=yes
13663 else
13664 echo "$as_me: failed program was:" >&5
13665 sed 's/^/| /' conftest.$ac_ext >&5
13666
13667 ac_cv_type_uint32_t=no
13668 fi
13669
13670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13671 fi
13672 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13673 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
13674 if test $ac_cv_type_uint32_t = yes; then
13675 acx_cv_header_stdint=$i
13676 else
13677 continue
13678 fi
13679
13680 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13681 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13682 if test "${ac_cv_type_uint64_t+set}" = set; then
13683 echo $ECHO_N "(cached) $ECHO_C" >&6
13684 else
13685 cat >conftest.$ac_ext <<_ACEOF
13686 /* confdefs.h. */
13687 _ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h. */
13691 #include <sys/types.h>
13692 #include <$i>
13693
13694 typedef uint64_t ac__type_new_;
13695 int
13696 main ()
13697 {
13698 if ((ac__type_new_ *) 0)
13699 return 0;
13700 if (sizeof (ac__type_new_))
13701 return 0;
13702 ;
13703 return 0;
13704 }
13705 _ACEOF
13706 rm -f conftest.$ac_objext
13707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13708 (eval $ac_compile) 2>conftest.er1
13709 ac_status=$?
13710 grep -v '^ *+' conftest.er1 >conftest.err
13711 rm -f conftest.er1
13712 cat conftest.err >&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); } &&
13715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13718 ac_status=$?
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; } &&
13721 { ac_try='test -s conftest.$ac_objext'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13724 ac_status=$?
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; }; then
13727 ac_cv_type_uint64_t=yes
13728 else
13729 echo "$as_me: failed program was:" >&5
13730 sed 's/^/| /' conftest.$ac_ext >&5
13731
13732 ac_cv_type_uint64_t=no
13733 fi
13734
13735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13736 fi
13737 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13738 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13739 if test $ac_cv_type_uint64_t = yes; then
13740 :
13741 else
13742 acx_cv_header_stdint_kind="(lacks uintptr_t and uint64_t)"
13743 fi
13744
13745 break
13746 done
13747 fi
13748 if test "$acx_cv_header_stdint" = stddef.h; then
13749 acx_cv_header_stdint_kind="(u_intXX_t style)"
13750 for i in sys/types.h $inttype_headers; do
13751 unset ac_cv_type_u_int32_t
13752 unset ac_cv_type_u_int64_t
13753 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
13754 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
13755 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
13756 if test "${ac_cv_type_u_int32_t+set}" = set; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13758 else
13759 cat >conftest.$ac_ext <<_ACEOF
13760 /* confdefs.h. */
13761 _ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13765 #include <sys/types.h>
13766 #include <$i>
13767
13768 typedef u_int32_t ac__type_new_;
13769 int
13770 main ()
13771 {
13772 if ((ac__type_new_ *) 0)
13773 return 0;
13774 if (sizeof (ac__type_new_))
13775 return 0;
13776 ;
13777 return 0;
13778 }
13779 _ACEOF
13780 rm -f conftest.$ac_objext
13781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13782 (eval $ac_compile) 2>conftest.er1
13783 ac_status=$?
13784 grep -v '^ *+' conftest.er1 >conftest.err
13785 rm -f conftest.er1
13786 cat conftest.err >&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); } &&
13789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791 (eval $ac_try) 2>&5
13792 ac_status=$?
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); }; } &&
13795 { ac_try='test -s conftest.$ac_objext'
13796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13797 (eval $ac_try) 2>&5
13798 ac_status=$?
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); }; }; then
13801 ac_cv_type_u_int32_t=yes
13802 else
13803 echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.$ac_ext >&5
13805
13806 ac_cv_type_u_int32_t=no
13807 fi
13808
13809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13810 fi
13811 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13812 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
13813 if test $ac_cv_type_u_int32_t = yes; then
13814 acx_cv_header_stdint=$i
13815 else
13816 continue
13817 fi
13818
13819 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13820 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13821 if test "${ac_cv_type_u_int64_t+set}" = set; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13823 else
13824 cat >conftest.$ac_ext <<_ACEOF
13825 /* confdefs.h. */
13826 _ACEOF
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h. */
13830 #include <sys/types.h>
13831 #include <$i>
13832
13833 typedef u_int64_t ac__type_new_;
13834 int
13835 main ()
13836 {
13837 if ((ac__type_new_ *) 0)
13838 return 0;
13839 if (sizeof (ac__type_new_))
13840 return 0;
13841 ;
13842 return 0;
13843 }
13844 _ACEOF
13845 rm -f conftest.$ac_objext
13846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13847 (eval $ac_compile) 2>conftest.er1
13848 ac_status=$?
13849 grep -v '^ *+' conftest.er1 >conftest.err
13850 rm -f conftest.er1
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } &&
13854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13857 ac_status=$?
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; } &&
13860 { ac_try='test -s conftest.$ac_objext'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13863 ac_status=$?
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
13866 ac_cv_type_u_int64_t=yes
13867 else
13868 echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13870
13871 ac_cv_type_u_int64_t=no
13872 fi
13873
13874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13875 fi
13876 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13877 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13878 if test $ac_cv_type_u_int64_t = yes; then
13879 :
13880 else
13881 acx_cv_header_stdint_kind="(u_intXX_t style, lacks u_int64_t)"
13882 fi
13883
13884 break
13885 done
13886 fi
13887 if test "$acx_cv_header_stdint" = stddef.h; then
13888 acx_cv_header_stdint_kind="(using manual detection)"
13889 fi
13890
13891 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13892 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13893 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13894 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13895 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13896
13897 # ----------------- Summarize what we found so far
13898
13899 { echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
13900 echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6; }
13901
13902 case `$as_basename -- gdb_stdint.h ||
13903 $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13904 Xgdb_stdint.h : 'X\(//\)$' \| \
13905 Xgdb_stdint.h : 'X\(/\)' \| . 2>/dev/null ||
13906 echo X/gdb_stdint.h |
13907 sed '/^.*\/\([^/][^/]*\)\/*$/{
13908 s//\1/
13909 q
13910 }
13911 /^X\/\(\/\/\)$/{
13912 s//\1/
13913 q
13914 }
13915 /^X\/\(\/\).*/{
13916 s//\1/
13917 q
13918 }
13919 s/.*/./; q'` in
13920 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13921 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13922 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13923 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13924 *) ;;
13925 esac
13926
13927 { echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13928 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
13929
13930 # ----------------- done included file, check C basic types --------
13931
13932 # Lacking an uintptr_t? Test size of void *
13933 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13934 stddef.h:* | *:no) { echo "$as_me:$LINENO: checking for void *" >&5
13935 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
13936 if test "${ac_cv_type_void_p+set}" = set; then
13937 echo $ECHO_N "(cached) $ECHO_C" >&6
13938 else
13939 cat >conftest.$ac_ext <<_ACEOF
13940 /* confdefs.h. */
13941 _ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h. */
13945 $ac_includes_default
13946 typedef void * ac__type_new_;
13947 int
13948 main ()
13949 {
13950 if ((ac__type_new_ *) 0)
13951 return 0;
13952 if (sizeof (ac__type_new_))
13953 return 0;
13954 ;
13955 return 0;
13956 }
13957 _ACEOF
13958 rm -f conftest.$ac_objext
13959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13960 (eval $ac_compile) 2>conftest.er1
13961 ac_status=$?
13962 grep -v '^ *+' conftest.er1 >conftest.err
13963 rm -f conftest.er1
13964 cat conftest.err >&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } &&
13967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969 (eval $ac_try) 2>&5
13970 ac_status=$?
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); }; } &&
13973 { ac_try='test -s conftest.$ac_objext'
13974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13975 (eval $ac_try) 2>&5
13976 ac_status=$?
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); }; }; then
13979 ac_cv_type_void_p=yes
13980 else
13981 echo "$as_me: failed program was:" >&5
13982 sed 's/^/| /' conftest.$ac_ext >&5
13983
13984 ac_cv_type_void_p=no
13985 fi
13986
13987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13988 fi
13989 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13990 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
13991
13992 { echo "$as_me:$LINENO: checking size of void *" >&5
13993 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
13994 if test "${ac_cv_sizeof_void_p+set}" = set; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13996 else
13997 if test "$ac_cv_type_void_p" = yes; then
13998 # The cast to long int works around a bug in the HP C Compiler
13999 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14000 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14001 # This bug is HP SR number 8606223364.
14002 if test "$cross_compiling" = yes; then
14003 # Depending upon the size, compute the lo and hi bounds.
14004 cat >conftest.$ac_ext <<_ACEOF
14005 /* confdefs.h. */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14010 $ac_includes_default
14011 typedef void * ac__type_sizeof_;
14012 int
14013 main ()
14014 {
14015 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14016 test_array [0] = 0
14017
14018 ;
14019 return 0;
14020 }
14021 _ACEOF
14022 rm -f conftest.$ac_objext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14024 (eval $ac_compile) 2>conftest.er1
14025 ac_status=$?
14026 grep -v '^ *+' conftest.er1 >conftest.err
14027 rm -f conftest.er1
14028 cat conftest.err >&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
14031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14034 ac_status=$?
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; } &&
14037 { ac_try='test -s conftest.$ac_objext'
14038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14040 ac_status=$?
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; }; then
14043 ac_lo=0 ac_mid=0
14044 while :; do
14045 cat >conftest.$ac_ext <<_ACEOF
14046 /* confdefs.h. */
14047 _ACEOF
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h. */
14051 $ac_includes_default
14052 typedef void * ac__type_sizeof_;
14053 int
14054 main ()
14055 {
14056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14057 test_array [0] = 0
14058
14059 ;
14060 return 0;
14061 }
14062 _ACEOF
14063 rm -f conftest.$ac_objext
14064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14065 (eval $ac_compile) 2>conftest.er1
14066 ac_status=$?
14067 grep -v '^ *+' conftest.er1 >conftest.err
14068 rm -f conftest.er1
14069 cat conftest.err >&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); } &&
14072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074 (eval $ac_try) 2>&5
14075 ac_status=$?
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; } &&
14078 { ac_try='test -s conftest.$ac_objext'
14079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080 (eval $ac_try) 2>&5
14081 ac_status=$?
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); }; }; then
14084 ac_hi=$ac_mid; break
14085 else
14086 echo "$as_me: failed program was:" >&5
14087 sed 's/^/| /' conftest.$ac_ext >&5
14088
14089 ac_lo=`expr $ac_mid + 1`
14090 if test $ac_lo -le $ac_mid; then
14091 ac_lo= ac_hi=
14092 break
14093 fi
14094 ac_mid=`expr 2 '*' $ac_mid + 1`
14095 fi
14096
14097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14098 done
14099 else
14100 echo "$as_me: failed program was:" >&5
14101 sed 's/^/| /' conftest.$ac_ext >&5
14102
14103 cat >conftest.$ac_ext <<_ACEOF
14104 /* confdefs.h. */
14105 _ACEOF
14106 cat confdefs.h >>conftest.$ac_ext
14107 cat >>conftest.$ac_ext <<_ACEOF
14108 /* end confdefs.h. */
14109 $ac_includes_default
14110 typedef void * ac__type_sizeof_;
14111 int
14112 main ()
14113 {
14114 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14115 test_array [0] = 0
14116
14117 ;
14118 return 0;
14119 }
14120 _ACEOF
14121 rm -f conftest.$ac_objext
14122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14123 (eval $ac_compile) 2>conftest.er1
14124 ac_status=$?
14125 grep -v '^ *+' conftest.er1 >conftest.err
14126 rm -f conftest.er1
14127 cat conftest.err >&5
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); } &&
14130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14133 ac_status=$?
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; } &&
14136 { ac_try='test -s conftest.$ac_objext'
14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14139 ac_status=$?
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }; then
14142 ac_hi=-1 ac_mid=-1
14143 while :; do
14144 cat >conftest.$ac_ext <<_ACEOF
14145 /* confdefs.h. */
14146 _ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h. */
14150 $ac_includes_default
14151 typedef void * ac__type_sizeof_;
14152 int
14153 main ()
14154 {
14155 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14156 test_array [0] = 0
14157
14158 ;
14159 return 0;
14160 }
14161 _ACEOF
14162 rm -f conftest.$ac_objext
14163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14164 (eval $ac_compile) 2>conftest.er1
14165 ac_status=$?
14166 grep -v '^ *+' conftest.er1 >conftest.err
14167 rm -f conftest.er1
14168 cat conftest.err >&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); } &&
14171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14174 ac_status=$?
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; } &&
14177 { ac_try='test -s conftest.$ac_objext'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14180 ac_status=$?
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
14183 ac_lo=$ac_mid; break
14184 else
14185 echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14187
14188 ac_hi=`expr '(' $ac_mid ')' - 1`
14189 if test $ac_mid -le $ac_hi; then
14190 ac_lo= ac_hi=
14191 break
14192 fi
14193 ac_mid=`expr 2 '*' $ac_mid`
14194 fi
14195
14196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14197 done
14198 else
14199 echo "$as_me: failed program was:" >&5
14200 sed 's/^/| /' conftest.$ac_ext >&5
14201
14202 ac_lo= ac_hi=
14203 fi
14204
14205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14206 fi
14207
14208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14209 # Binary search between lo and hi bounds.
14210 while test "x$ac_lo" != "x$ac_hi"; do
14211 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14212 cat >conftest.$ac_ext <<_ACEOF
14213 /* confdefs.h. */
14214 _ACEOF
14215 cat confdefs.h >>conftest.$ac_ext
14216 cat >>conftest.$ac_ext <<_ACEOF
14217 /* end confdefs.h. */
14218 $ac_includes_default
14219 typedef void * ac__type_sizeof_;
14220 int
14221 main ()
14222 {
14223 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14224 test_array [0] = 0
14225
14226 ;
14227 return 0;
14228 }
14229 _ACEOF
14230 rm -f conftest.$ac_objext
14231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14232 (eval $ac_compile) 2>conftest.er1
14233 ac_status=$?
14234 grep -v '^ *+' conftest.er1 >conftest.err
14235 rm -f conftest.er1
14236 cat conftest.err >&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); } &&
14239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241 (eval $ac_try) 2>&5
14242 ac_status=$?
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; } &&
14245 { ac_try='test -s conftest.$ac_objext'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14248 ac_status=$?
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; }; then
14251 ac_hi=$ac_mid
14252 else
14253 echo "$as_me: failed program was:" >&5
14254 sed 's/^/| /' conftest.$ac_ext >&5
14255
14256 ac_lo=`expr '(' $ac_mid ')' + 1`
14257 fi
14258
14259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14260 done
14261 case $ac_lo in
14262 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14263 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
14264 See \`config.log' for more details." >&5
14265 echo "$as_me: error: cannot compute sizeof (void *)
14266 See \`config.log' for more details." >&2;}
14267 { (exit 77); exit 77; }; } ;;
14268 esac
14269 else
14270 cat >conftest.$ac_ext <<_ACEOF
14271 /* confdefs.h. */
14272 _ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h. */
14276 $ac_includes_default
14277 typedef void * ac__type_sizeof_;
14278 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14279 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14280 #include <stdio.h>
14281 #include <stdlib.h>
14282 int
14283 main ()
14284 {
14285
14286 FILE *f = fopen ("conftest.val", "w");
14287 if (! f)
14288 return 1;
14289 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14290 {
14291 long int i = longval ();
14292 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14293 return 1;
14294 fprintf (f, "%ld\n", i);
14295 }
14296 else
14297 {
14298 unsigned long int i = ulongval ();
14299 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14300 return 1;
14301 fprintf (f, "%lu\n", i);
14302 }
14303 return ferror (f) || fclose (f) != 0;
14304
14305 ;
14306 return 0;
14307 }
14308 _ACEOF
14309 rm -f conftest$ac_exeext
14310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14311 (eval $ac_link) 2>&5
14312 ac_status=$?
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14317 ac_status=$?
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; }; then
14320 ac_cv_sizeof_void_p=`cat conftest.val`
14321 else
14322 echo "$as_me: program exited with status $ac_status" >&5
14323 echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14325
14326 ( exit $ac_status )
14327 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
14328 See \`config.log' for more details." >&5
14329 echo "$as_me: error: cannot compute sizeof (void *)
14330 See \`config.log' for more details." >&2;}
14331 { (exit 77); exit 77; }; }
14332 fi
14333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14334 fi
14335 rm -f conftest.val
14336 else
14337 ac_cv_sizeof_void_p=0
14338 fi
14339 fi
14340 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14341 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
14342 cat >>confdefs.h <<_ACEOF
14343 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14344 _ACEOF
14345
14346 ;;
14347 esac
14348
14349 # Lacking an uint64_t? Test size of long
14350 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14351 stddef.h:*:* | *:no:no) { echo "$as_me:$LINENO: checking for long" >&5
14352 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
14353 if test "${ac_cv_type_long+set}" = set; then
14354 echo $ECHO_N "(cached) $ECHO_C" >&6
14355 else
14356 cat >conftest.$ac_ext <<_ACEOF
14357 /* confdefs.h. */
14358 _ACEOF
14359 cat confdefs.h >>conftest.$ac_ext
14360 cat >>conftest.$ac_ext <<_ACEOF
14361 /* end confdefs.h. */
14362 $ac_includes_default
14363 typedef long ac__type_new_;
14364 int
14365 main ()
14366 {
14367 if ((ac__type_new_ *) 0)
14368 return 0;
14369 if (sizeof (ac__type_new_))
14370 return 0;
14371 ;
14372 return 0;
14373 }
14374 _ACEOF
14375 rm -f conftest.$ac_objext
14376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14377 (eval $ac_compile) 2>conftest.er1
14378 ac_status=$?
14379 grep -v '^ *+' conftest.er1 >conftest.err
14380 rm -f conftest.er1
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } &&
14384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14387 ac_status=$?
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; } &&
14390 { ac_try='test -s conftest.$ac_objext'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14393 ac_status=$?
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; }; then
14396 ac_cv_type_long=yes
14397 else
14398 echo "$as_me: failed program was:" >&5
14399 sed 's/^/| /' conftest.$ac_ext >&5
14400
14401 ac_cv_type_long=no
14402 fi
14403
14404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14405 fi
14406 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14407 echo "${ECHO_T}$ac_cv_type_long" >&6; }
14408
14409 { echo "$as_me:$LINENO: checking size of long" >&5
14410 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
14411 if test "${ac_cv_sizeof_long+set}" = set; then
14412 echo $ECHO_N "(cached) $ECHO_C" >&6
14413 else
14414 if test "$ac_cv_type_long" = yes; then
14415 # The cast to long int works around a bug in the HP C Compiler
14416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14418 # This bug is HP SR number 8606223364.
14419 if test "$cross_compiling" = yes; then
14420 # Depending upon the size, compute the lo and hi bounds.
14421 cat >conftest.$ac_ext <<_ACEOF
14422 /* confdefs.h. */
14423 _ACEOF
14424 cat confdefs.h >>conftest.$ac_ext
14425 cat >>conftest.$ac_ext <<_ACEOF
14426 /* end confdefs.h. */
14427 $ac_includes_default
14428 typedef long ac__type_sizeof_;
14429 int
14430 main ()
14431 {
14432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14433 test_array [0] = 0
14434
14435 ;
14436 return 0;
14437 }
14438 _ACEOF
14439 rm -f conftest.$ac_objext
14440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14441 (eval $ac_compile) 2>conftest.er1
14442 ac_status=$?
14443 grep -v '^ *+' conftest.er1 >conftest.err
14444 rm -f conftest.er1
14445 cat conftest.err >&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); } &&
14448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; } &&
14454 { ac_try='test -s conftest.$ac_objext'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
14457 ac_status=$?
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }; then
14460 ac_lo=0 ac_mid=0
14461 while :; do
14462 cat >conftest.$ac_ext <<_ACEOF
14463 /* confdefs.h. */
14464 _ACEOF
14465 cat confdefs.h >>conftest.$ac_ext
14466 cat >>conftest.$ac_ext <<_ACEOF
14467 /* end confdefs.h. */
14468 $ac_includes_default
14469 typedef long ac__type_sizeof_;
14470 int
14471 main ()
14472 {
14473 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14474 test_array [0] = 0
14475
14476 ;
14477 return 0;
14478 }
14479 _ACEOF
14480 rm -f conftest.$ac_objext
14481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14482 (eval $ac_compile) 2>conftest.er1
14483 ac_status=$?
14484 grep -v '^ *+' conftest.er1 >conftest.err
14485 rm -f conftest.er1
14486 cat conftest.err >&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); } &&
14489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14491 (eval $ac_try) 2>&5
14492 ac_status=$?
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); }; } &&
14495 { ac_try='test -s conftest.$ac_objext'
14496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497 (eval $ac_try) 2>&5
14498 ac_status=$?
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; }; then
14501 ac_hi=$ac_mid; break
14502 else
14503 echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.$ac_ext >&5
14505
14506 ac_lo=`expr $ac_mid + 1`
14507 if test $ac_lo -le $ac_mid; then
14508 ac_lo= ac_hi=
14509 break
14510 fi
14511 ac_mid=`expr 2 '*' $ac_mid + 1`
14512 fi
14513
14514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14515 done
14516 else
14517 echo "$as_me: failed program was:" >&5
14518 sed 's/^/| /' conftest.$ac_ext >&5
14519
14520 cat >conftest.$ac_ext <<_ACEOF
14521 /* confdefs.h. */
14522 _ACEOF
14523 cat confdefs.h >>conftest.$ac_ext
14524 cat >>conftest.$ac_ext <<_ACEOF
14525 /* end confdefs.h. */
14526 $ac_includes_default
14527 typedef long ac__type_sizeof_;
14528 int
14529 main ()
14530 {
14531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14532 test_array [0] = 0
14533
14534 ;
14535 return 0;
14536 }
14537 _ACEOF
14538 rm -f conftest.$ac_objext
14539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14540 (eval $ac_compile) 2>conftest.er1
14541 ac_status=$?
14542 grep -v '^ *+' conftest.er1 >conftest.err
14543 rm -f conftest.er1
14544 cat conftest.err >&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); } &&
14547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549 (eval $ac_try) 2>&5
14550 ac_status=$?
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; } &&
14553 { ac_try='test -s conftest.$ac_objext'
14554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14555 (eval $ac_try) 2>&5
14556 ac_status=$?
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); }; }; then
14559 ac_hi=-1 ac_mid=-1
14560 while :; do
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 typedef long ac__type_sizeof_;
14569 int
14570 main ()
14571 {
14572 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14573 test_array [0] = 0
14574
14575 ;
14576 return 0;
14577 }
14578 _ACEOF
14579 rm -f conftest.$ac_objext
14580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14581 (eval $ac_compile) 2>conftest.er1
14582 ac_status=$?
14583 grep -v '^ *+' conftest.er1 >conftest.err
14584 rm -f conftest.er1
14585 cat conftest.err >&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); } &&
14588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14591 ac_status=$?
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; } &&
14594 { ac_try='test -s conftest.$ac_objext'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14597 ac_status=$?
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; }; then
14600 ac_lo=$ac_mid; break
14601 else
14602 echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14604
14605 ac_hi=`expr '(' $ac_mid ')' - 1`
14606 if test $ac_mid -le $ac_hi; then
14607 ac_lo= ac_hi=
14608 break
14609 fi
14610 ac_mid=`expr 2 '*' $ac_mid`
14611 fi
14612
14613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14614 done
14615 else
14616 echo "$as_me: failed program was:" >&5
14617 sed 's/^/| /' conftest.$ac_ext >&5
14618
14619 ac_lo= ac_hi=
14620 fi
14621
14622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14623 fi
14624
14625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14626 # Binary search between lo and hi bounds.
14627 while test "x$ac_lo" != "x$ac_hi"; do
14628 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14629 cat >conftest.$ac_ext <<_ACEOF
14630 /* confdefs.h. */
14631 _ACEOF
14632 cat confdefs.h >>conftest.$ac_ext
14633 cat >>conftest.$ac_ext <<_ACEOF
14634 /* end confdefs.h. */
14635 $ac_includes_default
14636 typedef long ac__type_sizeof_;
14637 int
14638 main ()
14639 {
14640 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14641 test_array [0] = 0
14642
14643 ;
14644 return 0;
14645 }
14646 _ACEOF
14647 rm -f conftest.$ac_objext
14648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14649 (eval $ac_compile) 2>conftest.er1
14650 ac_status=$?
14651 grep -v '^ *+' conftest.er1 >conftest.err
14652 rm -f conftest.er1
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } &&
14656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658 (eval $ac_try) 2>&5
14659 ac_status=$?
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; } &&
14662 { ac_try='test -s conftest.$ac_objext'
14663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664 (eval $ac_try) 2>&5
14665 ac_status=$?
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; }; then
14668 ac_hi=$ac_mid
14669 else
14670 echo "$as_me: failed program was:" >&5
14671 sed 's/^/| /' conftest.$ac_ext >&5
14672
14673 ac_lo=`expr '(' $ac_mid ')' + 1`
14674 fi
14675
14676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14677 done
14678 case $ac_lo in
14679 ?*) ac_cv_sizeof_long=$ac_lo;;
14680 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14681 See \`config.log' for more details." >&5
14682 echo "$as_me: error: cannot compute sizeof (long)
14683 See \`config.log' for more details." >&2;}
14684 { (exit 77); exit 77; }; } ;;
14685 esac
14686 else
14687 cat >conftest.$ac_ext <<_ACEOF
14688 /* confdefs.h. */
14689 _ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h. */
14693 $ac_includes_default
14694 typedef long ac__type_sizeof_;
14695 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14696 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14697 #include <stdio.h>
14698 #include <stdlib.h>
14699 int
14700 main ()
14701 {
14702
14703 FILE *f = fopen ("conftest.val", "w");
14704 if (! f)
14705 return 1;
14706 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14707 {
14708 long int i = longval ();
14709 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14710 return 1;
14711 fprintf (f, "%ld\n", i);
14712 }
14713 else
14714 {
14715 unsigned long int i = ulongval ();
14716 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14717 return 1;
14718 fprintf (f, "%lu\n", i);
14719 }
14720 return ferror (f) || fclose (f) != 0;
14721
14722 ;
14723 return 0;
14724 }
14725 _ACEOF
14726 rm -f conftest$ac_exeext
14727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14728 (eval $ac_link) 2>&5
14729 ac_status=$?
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733 (eval $ac_try) 2>&5
14734 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; }; then
14737 ac_cv_sizeof_long=`cat conftest.val`
14738 else
14739 echo "$as_me: program exited with status $ac_status" >&5
14740 echo "$as_me: failed program was:" >&5
14741 sed 's/^/| /' conftest.$ac_ext >&5
14742
14743 ( exit $ac_status )
14744 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14745 See \`config.log' for more details." >&5
14746 echo "$as_me: error: cannot compute sizeof (long)
14747 See \`config.log' for more details." >&2;}
14748 { (exit 77); exit 77; }; }
14749 fi
14750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14751 fi
14752 rm -f conftest.val
14753 else
14754 ac_cv_sizeof_long=0
14755 fi
14756 fi
14757 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14758 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
14759 cat >>confdefs.h <<_ACEOF
14760 #define SIZEOF_LONG $ac_cv_sizeof_long
14761 _ACEOF
14762
14763 ;;
14764 esac
14765
14766 if test $acx_cv_header_stdint = stddef.h; then
14767 # Lacking a good header? Test size of everything and deduce all types.
14768 { echo "$as_me:$LINENO: checking for int" >&5
14769 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
14770 if test "${ac_cv_type_int+set}" = set; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 else
14773 cat >conftest.$ac_ext <<_ACEOF
14774 /* confdefs.h. */
14775 _ACEOF
14776 cat confdefs.h >>conftest.$ac_ext
14777 cat >>conftest.$ac_ext <<_ACEOF
14778 /* end confdefs.h. */
14779 $ac_includes_default
14780 typedef int ac__type_new_;
14781 int
14782 main ()
14783 {
14784 if ((ac__type_new_ *) 0)
14785 return 0;
14786 if (sizeof (ac__type_new_))
14787 return 0;
14788 ;
14789 return 0;
14790 }
14791 _ACEOF
14792 rm -f conftest.$ac_objext
14793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } &&
14801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; } &&
14807 { ac_try='test -s conftest.$ac_objext'
14808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; }; then
14813 ac_cv_type_int=yes
14814 else
14815 echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14817
14818 ac_cv_type_int=no
14819 fi
14820
14821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14822 fi
14823 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14824 echo "${ECHO_T}$ac_cv_type_int" >&6; }
14825
14826 { echo "$as_me:$LINENO: checking size of int" >&5
14827 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
14828 if test "${ac_cv_sizeof_int+set}" = set; then
14829 echo $ECHO_N "(cached) $ECHO_C" >&6
14830 else
14831 if test "$ac_cv_type_int" = yes; then
14832 # The cast to long int works around a bug in the HP C Compiler
14833 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14834 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14835 # This bug is HP SR number 8606223364.
14836 if test "$cross_compiling" = yes; then
14837 # Depending upon the size, compute the lo and hi bounds.
14838 cat >conftest.$ac_ext <<_ACEOF
14839 /* confdefs.h. */
14840 _ACEOF
14841 cat confdefs.h >>conftest.$ac_ext
14842 cat >>conftest.$ac_ext <<_ACEOF
14843 /* end confdefs.h. */
14844 $ac_includes_default
14845 typedef int ac__type_sizeof_;
14846 int
14847 main ()
14848 {
14849 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14850 test_array [0] = 0
14851
14852 ;
14853 return 0;
14854 }
14855 _ACEOF
14856 rm -f conftest.$ac_objext
14857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14858 (eval $ac_compile) 2>conftest.er1
14859 ac_status=$?
14860 grep -v '^ *+' conftest.er1 >conftest.err
14861 rm -f conftest.er1
14862 cat conftest.err >&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); } &&
14865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867 (eval $ac_try) 2>&5
14868 ac_status=$?
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); }; } &&
14871 { ac_try='test -s conftest.$ac_objext'
14872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873 (eval $ac_try) 2>&5
14874 ac_status=$?
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; }; then
14877 ac_lo=0 ac_mid=0
14878 while :; do
14879 cat >conftest.$ac_ext <<_ACEOF
14880 /* confdefs.h. */
14881 _ACEOF
14882 cat confdefs.h >>conftest.$ac_ext
14883 cat >>conftest.$ac_ext <<_ACEOF
14884 /* end confdefs.h. */
14885 $ac_includes_default
14886 typedef int ac__type_sizeof_;
14887 int
14888 main ()
14889 {
14890 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14891 test_array [0] = 0
14892
14893 ;
14894 return 0;
14895 }
14896 _ACEOF
14897 rm -f conftest.$ac_objext
14898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14899 (eval $ac_compile) 2>conftest.er1
14900 ac_status=$?
14901 grep -v '^ *+' conftest.er1 >conftest.err
14902 rm -f conftest.er1
14903 cat conftest.err >&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); } &&
14906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14908 (eval $ac_try) 2>&5
14909 ac_status=$?
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; } &&
14912 { ac_try='test -s conftest.$ac_objext'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14915 ac_status=$?
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; }; then
14918 ac_hi=$ac_mid; break
14919 else
14920 echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.$ac_ext >&5
14922
14923 ac_lo=`expr $ac_mid + 1`
14924 if test $ac_lo -le $ac_mid; then
14925 ac_lo= ac_hi=
14926 break
14927 fi
14928 ac_mid=`expr 2 '*' $ac_mid + 1`
14929 fi
14930
14931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14932 done
14933 else
14934 echo "$as_me: failed program was:" >&5
14935 sed 's/^/| /' conftest.$ac_ext >&5
14936
14937 cat >conftest.$ac_ext <<_ACEOF
14938 /* confdefs.h. */
14939 _ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h. */
14943 $ac_includes_default
14944 typedef int ac__type_sizeof_;
14945 int
14946 main ()
14947 {
14948 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14949 test_array [0] = 0
14950
14951 ;
14952 return 0;
14953 }
14954 _ACEOF
14955 rm -f conftest.$ac_objext
14956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14957 (eval $ac_compile) 2>conftest.er1
14958 ac_status=$?
14959 grep -v '^ *+' conftest.er1 >conftest.err
14960 rm -f conftest.er1
14961 cat conftest.err >&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); } &&
14964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14966 (eval $ac_try) 2>&5
14967 ac_status=$?
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); }; } &&
14970 { ac_try='test -s conftest.$ac_objext'
14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14973 ac_status=$?
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; }; then
14976 ac_hi=-1 ac_mid=-1
14977 while :; do
14978 cat >conftest.$ac_ext <<_ACEOF
14979 /* confdefs.h. */
14980 _ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h. */
14984 $ac_includes_default
14985 typedef int ac__type_sizeof_;
14986 int
14987 main ()
14988 {
14989 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14990 test_array [0] = 0
14991
14992 ;
14993 return 0;
14994 }
14995 _ACEOF
14996 rm -f conftest.$ac_objext
14997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14998 (eval $ac_compile) 2>conftest.er1
14999 ac_status=$?
15000 grep -v '^ *+' conftest.er1 >conftest.err
15001 rm -f conftest.er1
15002 cat conftest.err >&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); } &&
15005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5
15008 ac_status=$?
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; } &&
15011 { ac_try='test -s conftest.$ac_objext'
15012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013 (eval $ac_try) 2>&5
15014 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
15017 ac_lo=$ac_mid; break
15018 else
15019 echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15021
15022 ac_hi=`expr '(' $ac_mid ')' - 1`
15023 if test $ac_mid -le $ac_hi; then
15024 ac_lo= ac_hi=
15025 break
15026 fi
15027 ac_mid=`expr 2 '*' $ac_mid`
15028 fi
15029
15030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15031 done
15032 else
15033 echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15035
15036 ac_lo= ac_hi=
15037 fi
15038
15039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15040 fi
15041
15042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15043 # Binary search between lo and hi bounds.
15044 while test "x$ac_lo" != "x$ac_hi"; do
15045 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15046 cat >conftest.$ac_ext <<_ACEOF
15047 /* confdefs.h. */
15048 _ACEOF
15049 cat confdefs.h >>conftest.$ac_ext
15050 cat >>conftest.$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15052 $ac_includes_default
15053 typedef int ac__type_sizeof_;
15054 int
15055 main ()
15056 {
15057 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15058 test_array [0] = 0
15059
15060 ;
15061 return 0;
15062 }
15063 _ACEOF
15064 rm -f conftest.$ac_objext
15065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15066 (eval $ac_compile) 2>conftest.er1
15067 ac_status=$?
15068 grep -v '^ *+' conftest.er1 >conftest.err
15069 rm -f conftest.er1
15070 cat conftest.err >&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); } &&
15073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075 (eval $ac_try) 2>&5
15076 ac_status=$?
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; } &&
15079 { ac_try='test -s conftest.$ac_objext'
15080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081 (eval $ac_try) 2>&5
15082 ac_status=$?
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; }; then
15085 ac_hi=$ac_mid
15086 else
15087 echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15089
15090 ac_lo=`expr '(' $ac_mid ')' + 1`
15091 fi
15092
15093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15094 done
15095 case $ac_lo in
15096 ?*) ac_cv_sizeof_int=$ac_lo;;
15097 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15098 See \`config.log' for more details." >&5
15099 echo "$as_me: error: cannot compute sizeof (int)
15100 See \`config.log' for more details." >&2;}
15101 { (exit 77); exit 77; }; } ;;
15102 esac
15103 else
15104 cat >conftest.$ac_ext <<_ACEOF
15105 /* confdefs.h. */
15106 _ACEOF
15107 cat confdefs.h >>conftest.$ac_ext
15108 cat >>conftest.$ac_ext <<_ACEOF
15109 /* end confdefs.h. */
15110 $ac_includes_default
15111 typedef int ac__type_sizeof_;
15112 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15113 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15114 #include <stdio.h>
15115 #include <stdlib.h>
15116 int
15117 main ()
15118 {
15119
15120 FILE *f = fopen ("conftest.val", "w");
15121 if (! f)
15122 return 1;
15123 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15124 {
15125 long int i = longval ();
15126 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15127 return 1;
15128 fprintf (f, "%ld\n", i);
15129 }
15130 else
15131 {
15132 unsigned long int i = ulongval ();
15133 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15134 return 1;
15135 fprintf (f, "%lu\n", i);
15136 }
15137 return ferror (f) || fclose (f) != 0;
15138
15139 ;
15140 return 0;
15141 }
15142 _ACEOF
15143 rm -f conftest$ac_exeext
15144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15145 (eval $ac_link) 2>&5
15146 ac_status=$?
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15151 ac_status=$?
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; }; then
15154 ac_cv_sizeof_int=`cat conftest.val`
15155 else
15156 echo "$as_me: program exited with status $ac_status" >&5
15157 echo "$as_me: failed program was:" >&5
15158 sed 's/^/| /' conftest.$ac_ext >&5
15159
15160 ( exit $ac_status )
15161 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15162 See \`config.log' for more details." >&5
15163 echo "$as_me: error: cannot compute sizeof (int)
15164 See \`config.log' for more details." >&2;}
15165 { (exit 77); exit 77; }; }
15166 fi
15167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15168 fi
15169 rm -f conftest.val
15170 else
15171 ac_cv_sizeof_int=0
15172 fi
15173 fi
15174 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15175 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
15176 cat >>confdefs.h <<_ACEOF
15177 #define SIZEOF_INT $ac_cv_sizeof_int
15178 _ACEOF
15179
15180
15181 { echo "$as_me:$LINENO: checking for short" >&5
15182 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
15183 if test "${ac_cv_type_short+set}" = set; then
15184 echo $ECHO_N "(cached) $ECHO_C" >&6
15185 else
15186 cat >conftest.$ac_ext <<_ACEOF
15187 /* confdefs.h. */
15188 _ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15192 $ac_includes_default
15193 typedef short ac__type_new_;
15194 int
15195 main ()
15196 {
15197 if ((ac__type_new_ *) 0)
15198 return 0;
15199 if (sizeof (ac__type_new_))
15200 return 0;
15201 ;
15202 return 0;
15203 }
15204 _ACEOF
15205 rm -f conftest.$ac_objext
15206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15207 (eval $ac_compile) 2>conftest.er1
15208 ac_status=$?
15209 grep -v '^ *+' conftest.er1 >conftest.err
15210 rm -f conftest.er1
15211 cat conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } &&
15214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15216 (eval $ac_try) 2>&5
15217 ac_status=$?
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; } &&
15220 { ac_try='test -s conftest.$ac_objext'
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; }; then
15226 ac_cv_type_short=yes
15227 else
15228 echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15230
15231 ac_cv_type_short=no
15232 fi
15233
15234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15235 fi
15236 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15237 echo "${ECHO_T}$ac_cv_type_short" >&6; }
15238
15239 { echo "$as_me:$LINENO: checking size of short" >&5
15240 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
15241 if test "${ac_cv_sizeof_short+set}" = set; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15243 else
15244 if test "$ac_cv_type_short" = yes; then
15245 # The cast to long int works around a bug in the HP C Compiler
15246 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15247 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15248 # This bug is HP SR number 8606223364.
15249 if test "$cross_compiling" = yes; then
15250 # Depending upon the size, compute the lo and hi bounds.
15251 cat >conftest.$ac_ext <<_ACEOF
15252 /* confdefs.h. */
15253 _ACEOF
15254 cat confdefs.h >>conftest.$ac_ext
15255 cat >>conftest.$ac_ext <<_ACEOF
15256 /* end confdefs.h. */
15257 $ac_includes_default
15258 typedef short ac__type_sizeof_;
15259 int
15260 main ()
15261 {
15262 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15263 test_array [0] = 0
15264
15265 ;
15266 return 0;
15267 }
15268 _ACEOF
15269 rm -f conftest.$ac_objext
15270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15271 (eval $ac_compile) 2>conftest.er1
15272 ac_status=$?
15273 grep -v '^ *+' conftest.er1 >conftest.err
15274 rm -f conftest.er1
15275 cat conftest.err >&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } &&
15278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15280 (eval $ac_try) 2>&5
15281 ac_status=$?
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); }; } &&
15284 { ac_try='test -s conftest.$ac_objext'
15285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15286 (eval $ac_try) 2>&5
15287 ac_status=$?
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); }; }; then
15290 ac_lo=0 ac_mid=0
15291 while :; do
15292 cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h. */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15298 $ac_includes_default
15299 typedef short ac__type_sizeof_;
15300 int
15301 main ()
15302 {
15303 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15304 test_array [0] = 0
15305
15306 ;
15307 return 0;
15308 }
15309 _ACEOF
15310 rm -f conftest.$ac_objext
15311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15312 (eval $ac_compile) 2>conftest.er1
15313 ac_status=$?
15314 grep -v '^ *+' conftest.er1 >conftest.err
15315 rm -f conftest.er1
15316 cat conftest.err >&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } &&
15319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15322 ac_status=$?
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; } &&
15325 { ac_try='test -s conftest.$ac_objext'
15326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327 (eval $ac_try) 2>&5
15328 ac_status=$?
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; }; then
15331 ac_hi=$ac_mid; break
15332 else
15333 echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15335
15336 ac_lo=`expr $ac_mid + 1`
15337 if test $ac_lo -le $ac_mid; then
15338 ac_lo= ac_hi=
15339 break
15340 fi
15341 ac_mid=`expr 2 '*' $ac_mid + 1`
15342 fi
15343
15344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15345 done
15346 else
15347 echo "$as_me: failed program was:" >&5
15348 sed 's/^/| /' conftest.$ac_ext >&5
15349
15350 cat >conftest.$ac_ext <<_ACEOF
15351 /* confdefs.h. */
15352 _ACEOF
15353 cat confdefs.h >>conftest.$ac_ext
15354 cat >>conftest.$ac_ext <<_ACEOF
15355 /* end confdefs.h. */
15356 $ac_includes_default
15357 typedef short ac__type_sizeof_;
15358 int
15359 main ()
15360 {
15361 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15362 test_array [0] = 0
15363
15364 ;
15365 return 0;
15366 }
15367 _ACEOF
15368 rm -f conftest.$ac_objext
15369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15370 (eval $ac_compile) 2>conftest.er1
15371 ac_status=$?
15372 grep -v '^ *+' conftest.er1 >conftest.err
15373 rm -f conftest.er1
15374 cat conftest.err >&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } &&
15377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; } &&
15383 { ac_try='test -s conftest.$ac_objext'
15384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15386 ac_status=$?
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; }; then
15389 ac_hi=-1 ac_mid=-1
15390 while :; do
15391 cat >conftest.$ac_ext <<_ACEOF
15392 /* confdefs.h. */
15393 _ACEOF
15394 cat confdefs.h >>conftest.$ac_ext
15395 cat >>conftest.$ac_ext <<_ACEOF
15396 /* end confdefs.h. */
15397 $ac_includes_default
15398 typedef short ac__type_sizeof_;
15399 int
15400 main ()
15401 {
15402 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15403 test_array [0] = 0
15404
15405 ;
15406 return 0;
15407 }
15408 _ACEOF
15409 rm -f conftest.$ac_objext
15410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15411 (eval $ac_compile) 2>conftest.er1
15412 ac_status=$?
15413 grep -v '^ *+' conftest.er1 >conftest.err
15414 rm -f conftest.er1
15415 cat conftest.err >&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
15418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420 (eval $ac_try) 2>&5
15421 ac_status=$?
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; } &&
15424 { ac_try='test -s conftest.$ac_objext'
15425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15427 ac_status=$?
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; }; then
15430 ac_lo=$ac_mid; break
15431 else
15432 echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15434
15435 ac_hi=`expr '(' $ac_mid ')' - 1`
15436 if test $ac_mid -le $ac_hi; then
15437 ac_lo= ac_hi=
15438 break
15439 fi
15440 ac_mid=`expr 2 '*' $ac_mid`
15441 fi
15442
15443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15444 done
15445 else
15446 echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15448
15449 ac_lo= ac_hi=
15450 fi
15451
15452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15453 fi
15454
15455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15456 # Binary search between lo and hi bounds.
15457 while test "x$ac_lo" != "x$ac_hi"; do
15458 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15459 cat >conftest.$ac_ext <<_ACEOF
15460 /* confdefs.h. */
15461 _ACEOF
15462 cat confdefs.h >>conftest.$ac_ext
15463 cat >>conftest.$ac_ext <<_ACEOF
15464 /* end confdefs.h. */
15465 $ac_includes_default
15466 typedef short ac__type_sizeof_;
15467 int
15468 main ()
15469 {
15470 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15471 test_array [0] = 0
15472
15473 ;
15474 return 0;
15475 }
15476 _ACEOF
15477 rm -f conftest.$ac_objext
15478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15479 (eval $ac_compile) 2>conftest.er1
15480 ac_status=$?
15481 grep -v '^ *+' conftest.er1 >conftest.err
15482 rm -f conftest.er1
15483 cat conftest.err >&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); } &&
15486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488 (eval $ac_try) 2>&5
15489 ac_status=$?
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; } &&
15492 { ac_try='test -s conftest.$ac_objext'
15493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15495 ac_status=$?
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; }; then
15498 ac_hi=$ac_mid
15499 else
15500 echo "$as_me: failed program was:" >&5
15501 sed 's/^/| /' conftest.$ac_ext >&5
15502
15503 ac_lo=`expr '(' $ac_mid ')' + 1`
15504 fi
15505
15506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15507 done
15508 case $ac_lo in
15509 ?*) ac_cv_sizeof_short=$ac_lo;;
15510 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
15511 See \`config.log' for more details." >&5
15512 echo "$as_me: error: cannot compute sizeof (short)
15513 See \`config.log' for more details." >&2;}
15514 { (exit 77); exit 77; }; } ;;
15515 esac
15516 else
15517 cat >conftest.$ac_ext <<_ACEOF
15518 /* confdefs.h. */
15519 _ACEOF
15520 cat confdefs.h >>conftest.$ac_ext
15521 cat >>conftest.$ac_ext <<_ACEOF
15522 /* end confdefs.h. */
15523 $ac_includes_default
15524 typedef short ac__type_sizeof_;
15525 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15526 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15527 #include <stdio.h>
15528 #include <stdlib.h>
15529 int
15530 main ()
15531 {
15532
15533 FILE *f = fopen ("conftest.val", "w");
15534 if (! f)
15535 return 1;
15536 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15537 {
15538 long int i = longval ();
15539 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15540 return 1;
15541 fprintf (f, "%ld\n", i);
15542 }
15543 else
15544 {
15545 unsigned long int i = ulongval ();
15546 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15547 return 1;
15548 fprintf (f, "%lu\n", i);
15549 }
15550 return ferror (f) || fclose (f) != 0;
15551
15552 ;
15553 return 0;
15554 }
15555 _ACEOF
15556 rm -f conftest$ac_exeext
15557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15558 (eval $ac_link) 2>&5
15559 ac_status=$?
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563 (eval $ac_try) 2>&5
15564 ac_status=$?
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }; }; then
15567 ac_cv_sizeof_short=`cat conftest.val`
15568 else
15569 echo "$as_me: program exited with status $ac_status" >&5
15570 echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15572
15573 ( exit $ac_status )
15574 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
15575 See \`config.log' for more details." >&5
15576 echo "$as_me: error: cannot compute sizeof (short)
15577 See \`config.log' for more details." >&2;}
15578 { (exit 77); exit 77; }; }
15579 fi
15580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15581 fi
15582 rm -f conftest.val
15583 else
15584 ac_cv_sizeof_short=0
15585 fi
15586 fi
15587 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15588 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
15589 cat >>confdefs.h <<_ACEOF
15590 #define SIZEOF_SHORT $ac_cv_sizeof_short
15591 _ACEOF
15592
15593
15594 { echo "$as_me:$LINENO: checking for char" >&5
15595 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
15596 if test "${ac_cv_type_char+set}" = set; then
15597 echo $ECHO_N "(cached) $ECHO_C" >&6
15598 else
15599 cat >conftest.$ac_ext <<_ACEOF
15600 /* confdefs.h. */
15601 _ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h. */
15605 $ac_includes_default
15606 typedef char ac__type_new_;
15607 int
15608 main ()
15609 {
15610 if ((ac__type_new_ *) 0)
15611 return 0;
15612 if (sizeof (ac__type_new_))
15613 return 0;
15614 ;
15615 return 0;
15616 }
15617 _ACEOF
15618 rm -f conftest.$ac_objext
15619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15620 (eval $ac_compile) 2>conftest.er1
15621 ac_status=$?
15622 grep -v '^ *+' conftest.er1 >conftest.err
15623 rm -f conftest.er1
15624 cat conftest.err >&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); } &&
15627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629 (eval $ac_try) 2>&5
15630 ac_status=$?
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; } &&
15633 { ac_try='test -s conftest.$ac_objext'
15634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15635 (eval $ac_try) 2>&5
15636 ac_status=$?
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); }; }; then
15639 ac_cv_type_char=yes
15640 else
15641 echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.$ac_ext >&5
15643
15644 ac_cv_type_char=no
15645 fi
15646
15647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15648 fi
15649 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15650 echo "${ECHO_T}$ac_cv_type_char" >&6; }
15651
15652 { echo "$as_me:$LINENO: checking size of char" >&5
15653 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
15654 if test "${ac_cv_sizeof_char+set}" = set; then
15655 echo $ECHO_N "(cached) $ECHO_C" >&6
15656 else
15657 if test "$ac_cv_type_char" = yes; then
15658 # The cast to long int works around a bug in the HP C Compiler
15659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15661 # This bug is HP SR number 8606223364.
15662 if test "$cross_compiling" = yes; then
15663 # Depending upon the size, compute the lo and hi bounds.
15664 cat >conftest.$ac_ext <<_ACEOF
15665 /* confdefs.h. */
15666 _ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h. */
15670 $ac_includes_default
15671 typedef char ac__type_sizeof_;
15672 int
15673 main ()
15674 {
15675 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15676 test_array [0] = 0
15677
15678 ;
15679 return 0;
15680 }
15681 _ACEOF
15682 rm -f conftest.$ac_objext
15683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15684 (eval $ac_compile) 2>conftest.er1
15685 ac_status=$?
15686 grep -v '^ *+' conftest.er1 >conftest.err
15687 rm -f conftest.er1
15688 cat conftest.err >&5
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); } &&
15691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15693 (eval $ac_try) 2>&5
15694 ac_status=$?
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; } &&
15697 { ac_try='test -s conftest.$ac_objext'
15698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15699 (eval $ac_try) 2>&5
15700 ac_status=$?
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; }; then
15703 ac_lo=0 ac_mid=0
15704 while :; do
15705 cat >conftest.$ac_ext <<_ACEOF
15706 /* confdefs.h. */
15707 _ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h. */
15711 $ac_includes_default
15712 typedef char ac__type_sizeof_;
15713 int
15714 main ()
15715 {
15716 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15717 test_array [0] = 0
15718
15719 ;
15720 return 0;
15721 }
15722 _ACEOF
15723 rm -f conftest.$ac_objext
15724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15725 (eval $ac_compile) 2>conftest.er1
15726 ac_status=$?
15727 grep -v '^ *+' conftest.er1 >conftest.err
15728 rm -f conftest.er1
15729 cat conftest.err >&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } &&
15732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734 (eval $ac_try) 2>&5
15735 ac_status=$?
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; } &&
15738 { ac_try='test -s conftest.$ac_objext'
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15741 ac_status=$?
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; }; then
15744 ac_hi=$ac_mid; break
15745 else
15746 echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15748
15749 ac_lo=`expr $ac_mid + 1`
15750 if test $ac_lo -le $ac_mid; then
15751 ac_lo= ac_hi=
15752 break
15753 fi
15754 ac_mid=`expr 2 '*' $ac_mid + 1`
15755 fi
15756
15757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15758 done
15759 else
15760 echo "$as_me: failed program was:" >&5
15761 sed 's/^/| /' conftest.$ac_ext >&5
15762
15763 cat >conftest.$ac_ext <<_ACEOF
15764 /* confdefs.h. */
15765 _ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h. */
15769 $ac_includes_default
15770 typedef char ac__type_sizeof_;
15771 int
15772 main ()
15773 {
15774 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15775 test_array [0] = 0
15776
15777 ;
15778 return 0;
15779 }
15780 _ACEOF
15781 rm -f conftest.$ac_objext
15782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15783 (eval $ac_compile) 2>conftest.er1
15784 ac_status=$?
15785 grep -v '^ *+' conftest.er1 >conftest.err
15786 rm -f conftest.er1
15787 cat conftest.err >&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } &&
15790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15793 ac_status=$?
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; } &&
15796 { ac_try='test -s conftest.$ac_objext'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15799 ac_status=$?
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; }; then
15802 ac_hi=-1 ac_mid=-1
15803 while :; do
15804 cat >conftest.$ac_ext <<_ACEOF
15805 /* confdefs.h. */
15806 _ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h. */
15810 $ac_includes_default
15811 typedef char ac__type_sizeof_;
15812 int
15813 main ()
15814 {
15815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15816 test_array [0] = 0
15817
15818 ;
15819 return 0;
15820 }
15821 _ACEOF
15822 rm -f conftest.$ac_objext
15823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15824 (eval $ac_compile) 2>conftest.er1
15825 ac_status=$?
15826 grep -v '^ *+' conftest.er1 >conftest.err
15827 rm -f conftest.er1
15828 cat conftest.err >&5
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); } &&
15831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15834 ac_status=$?
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; } &&
15837 { ac_try='test -s conftest.$ac_objext'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15840 ac_status=$?
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; }; then
15843 ac_lo=$ac_mid; break
15844 else
15845 echo "$as_me: failed program was:" >&5
15846 sed 's/^/| /' conftest.$ac_ext >&5
15847
15848 ac_hi=`expr '(' $ac_mid ')' - 1`
15849 if test $ac_mid -le $ac_hi; then
15850 ac_lo= ac_hi=
15851 break
15852 fi
15853 ac_mid=`expr 2 '*' $ac_mid`
15854 fi
15855
15856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15857 done
15858 else
15859 echo "$as_me: failed program was:" >&5
15860 sed 's/^/| /' conftest.$ac_ext >&5
15861
15862 ac_lo= ac_hi=
15863 fi
15864
15865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15866 fi
15867
15868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15869 # Binary search between lo and hi bounds.
15870 while test "x$ac_lo" != "x$ac_hi"; do
15871 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15872 cat >conftest.$ac_ext <<_ACEOF
15873 /* confdefs.h. */
15874 _ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
15878 $ac_includes_default
15879 typedef char ac__type_sizeof_;
15880 int
15881 main ()
15882 {
15883 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15884 test_array [0] = 0
15885
15886 ;
15887 return 0;
15888 }
15889 _ACEOF
15890 rm -f conftest.$ac_objext
15891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15892 (eval $ac_compile) 2>conftest.er1
15893 ac_status=$?
15894 grep -v '^ *+' conftest.er1 >conftest.err
15895 rm -f conftest.er1
15896 cat conftest.err >&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } &&
15899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901 (eval $ac_try) 2>&5
15902 ac_status=$?
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); }; } &&
15905 { ac_try='test -s conftest.$ac_objext'
15906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15907 (eval $ac_try) 2>&5
15908 ac_status=$?
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); }; }; then
15911 ac_hi=$ac_mid
15912 else
15913 echo "$as_me: failed program was:" >&5
15914 sed 's/^/| /' conftest.$ac_ext >&5
15915
15916 ac_lo=`expr '(' $ac_mid ')' + 1`
15917 fi
15918
15919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15920 done
15921 case $ac_lo in
15922 ?*) ac_cv_sizeof_char=$ac_lo;;
15923 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
15924 See \`config.log' for more details." >&5
15925 echo "$as_me: error: cannot compute sizeof (char)
15926 See \`config.log' for more details." >&2;}
15927 { (exit 77); exit 77; }; } ;;
15928 esac
15929 else
15930 cat >conftest.$ac_ext <<_ACEOF
15931 /* confdefs.h. */
15932 _ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15936 $ac_includes_default
15937 typedef char ac__type_sizeof_;
15938 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15939 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15940 #include <stdio.h>
15941 #include <stdlib.h>
15942 int
15943 main ()
15944 {
15945
15946 FILE *f = fopen ("conftest.val", "w");
15947 if (! f)
15948 return 1;
15949 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15950 {
15951 long int i = longval ();
15952 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15953 return 1;
15954 fprintf (f, "%ld\n", i);
15955 }
15956 else
15957 {
15958 unsigned long int i = ulongval ();
15959 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15960 return 1;
15961 fprintf (f, "%lu\n", i);
15962 }
15963 return ferror (f) || fclose (f) != 0;
15964
15965 ;
15966 return 0;
15967 }
15968 _ACEOF
15969 rm -f conftest$ac_exeext
15970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15971 (eval $ac_link) 2>&5
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15976 (eval $ac_try) 2>&5
15977 ac_status=$?
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); }; }; then
15980 ac_cv_sizeof_char=`cat conftest.val`
15981 else
15982 echo "$as_me: program exited with status $ac_status" >&5
15983 echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15985
15986 ( exit $ac_status )
15987 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
15988 See \`config.log' for more details." >&5
15989 echo "$as_me: error: cannot compute sizeof (char)
15990 See \`config.log' for more details." >&2;}
15991 { (exit 77); exit 77; }; }
15992 fi
15993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15994 fi
15995 rm -f conftest.val
15996 else
15997 ac_cv_sizeof_char=0
15998 fi
15999 fi
16000 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16001 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
16002 cat >>confdefs.h <<_ACEOF
16003 #define SIZEOF_CHAR $ac_cv_sizeof_char
16004 _ACEOF
16005
16006
16007
16008 { echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
16009 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6; }
16010 case "$ac_cv_sizeof_char" in
16011 1) acx_cv_type_int8_t=char ;;
16012 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
16013 echo "$as_me: error: no 8-bit type" >&2;}
16014 { (exit please report a bug); exit please report a bug; }; }
16015 esac
16016 { echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
16017 echo "${ECHO_T}$acx_cv_type_int8_t" >&6; }
16018
16019 { echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
16020 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6; }
16021 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16022 2:*) acx_cv_type_int16_t=int ;;
16023 *:2) acx_cv_type_int16_t=short ;;
16024 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
16025 echo "$as_me: error: no 16-bit type" >&2;}
16026 { (exit please report a bug); exit please report a bug; }; }
16027 esac
16028 { echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16029 echo "${ECHO_T}$acx_cv_type_int16_t" >&6; }
16030
16031 { echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16032 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6; }
16033 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16034 4:*) acx_cv_type_int32_t=int ;;
16035 *:4) acx_cv_type_int32_t=long ;;
16036 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16037 echo "$as_me: error: no 32-bit type" >&2;}
16038 { (exit please report a bug); exit please report a bug; }; }
16039 esac
16040 { echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16041 echo "${ECHO_T}$acx_cv_type_int32_t" >&6; }
16042 fi
16043
16044 # These tests are here to make the output prettier
16045
16046 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16047 case "$ac_cv_sizeof_long" in
16048 8) acx_cv_type_int64_t=long ;;
16049 esac
16050 { echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16051 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6; }
16052 { echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16053 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16054 fi
16055
16056 # Now we can use the above types
16057
16058 if test "$ac_cv_type_uintptr_t" != yes; then
16059 { echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16060 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6; }
16061 case $ac_cv_sizeof_void_p in
16062 2) acx_cv_type_intptr_t=int16_t ;;
16063 4) acx_cv_type_intptr_t=int32_t ;;
16064 8) acx_cv_type_intptr_t=int64_t ;;
16065 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16066 echo "$as_me: error: no equivalent for intptr_t" >&2;}
16067 { (exit please report a bug); exit please report a bug; }; }
16068 esac
16069 { echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16070 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6; }
16071 fi
16072
16073 # ----------------- done all checks, emit header -------------
16074 ac_config_commands="$ac_config_commands gdb_stdint.h"
16075
16076
16077
16078
16079 # ------------------------- #
16080 # Checks for declarations. #
16081 # ------------------------- #
16082
16083 { echo "$as_me:$LINENO: checking whether free is declared" >&5
16084 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6; }
16085 if test "${ac_cv_have_decl_free+set}" = set; then
16086 echo $ECHO_N "(cached) $ECHO_C" >&6
16087 else
16088 cat >conftest.$ac_ext <<_ACEOF
16089 /* confdefs.h. */
16090 _ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h. */
16094 $ac_includes_default
16095 int
16096 main ()
16097 {
16098 #ifndef free
16099 char *p = (char *) free;
16100 return !p;
16101 #endif
16102
16103 ;
16104 return 0;
16105 }
16106 _ACEOF
16107 rm -f conftest.$ac_objext
16108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16109 (eval $ac_compile) 2>conftest.er1
16110 ac_status=$?
16111 grep -v '^ *+' conftest.er1 >conftest.err
16112 rm -f conftest.er1
16113 cat conftest.err >&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } &&
16116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118 (eval $ac_try) 2>&5
16119 ac_status=$?
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; } &&
16122 { ac_try='test -s conftest.$ac_objext'
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16125 ac_status=$?
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; }; then
16128 ac_cv_have_decl_free=yes
16129 else
16130 echo "$as_me: failed program was:" >&5
16131 sed 's/^/| /' conftest.$ac_ext >&5
16132
16133 ac_cv_have_decl_free=no
16134 fi
16135
16136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16137 fi
16138 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16139 echo "${ECHO_T}$ac_cv_have_decl_free" >&6; }
16140 if test $ac_cv_have_decl_free = yes; then
16141
16142 cat >>confdefs.h <<_ACEOF
16143 #define HAVE_DECL_FREE 1
16144 _ACEOF
16145
16146
16147 else
16148 cat >>confdefs.h <<_ACEOF
16149 #define HAVE_DECL_FREE 0
16150 _ACEOF
16151
16152
16153 fi
16154 { echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16155 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6; }
16156 if test "${ac_cv_have_decl_malloc+set}" = set; then
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16158 else
16159 cat >conftest.$ac_ext <<_ACEOF
16160 /* confdefs.h. */
16161 _ACEOF
16162 cat confdefs.h >>conftest.$ac_ext
16163 cat >>conftest.$ac_ext <<_ACEOF
16164 /* end confdefs.h. */
16165 $ac_includes_default
16166 int
16167 main ()
16168 {
16169 #ifndef malloc
16170 char *p = (char *) malloc;
16171 return !p;
16172 #endif
16173
16174 ;
16175 return 0;
16176 }
16177 _ACEOF
16178 rm -f conftest.$ac_objext
16179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16180 (eval $ac_compile) 2>conftest.er1
16181 ac_status=$?
16182 grep -v '^ *+' conftest.er1 >conftest.err
16183 rm -f conftest.er1
16184 cat conftest.err >&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } &&
16187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189 (eval $ac_try) 2>&5
16190 ac_status=$?
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; } &&
16193 { ac_try='test -s conftest.$ac_objext'
16194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195 (eval $ac_try) 2>&5
16196 ac_status=$?
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }; }; then
16199 ac_cv_have_decl_malloc=yes
16200 else
16201 echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16203
16204 ac_cv_have_decl_malloc=no
16205 fi
16206
16207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16208 fi
16209 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16210 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6; }
16211 if test $ac_cv_have_decl_malloc = yes; then
16212
16213 cat >>confdefs.h <<_ACEOF
16214 #define HAVE_DECL_MALLOC 1
16215 _ACEOF
16216
16217
16218 else
16219 cat >>confdefs.h <<_ACEOF
16220 #define HAVE_DECL_MALLOC 0
16221 _ACEOF
16222
16223
16224 fi
16225 { echo "$as_me:$LINENO: checking whether realloc is declared" >&5
16226 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6; }
16227 if test "${ac_cv_have_decl_realloc+set}" = set; then
16228 echo $ECHO_N "(cached) $ECHO_C" >&6
16229 else
16230 cat >conftest.$ac_ext <<_ACEOF
16231 /* confdefs.h. */
16232 _ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h. */
16236 $ac_includes_default
16237 int
16238 main ()
16239 {
16240 #ifndef realloc
16241 char *p = (char *) realloc;
16242 return !p;
16243 #endif
16244
16245 ;
16246 return 0;
16247 }
16248 _ACEOF
16249 rm -f conftest.$ac_objext
16250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16251 (eval $ac_compile) 2>conftest.er1
16252 ac_status=$?
16253 grep -v '^ *+' conftest.er1 >conftest.err
16254 rm -f conftest.er1
16255 cat conftest.err >&5
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); } &&
16258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16261 ac_status=$?
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; } &&
16264 { ac_try='test -s conftest.$ac_objext'
16265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266 (eval $ac_try) 2>&5
16267 ac_status=$?
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; }; then
16270 ac_cv_have_decl_realloc=yes
16271 else
16272 echo "$as_me: failed program was:" >&5
16273 sed 's/^/| /' conftest.$ac_ext >&5
16274
16275 ac_cv_have_decl_realloc=no
16276 fi
16277
16278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16279 fi
16280 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
16281 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6; }
16282 if test $ac_cv_have_decl_realloc = yes; then
16283
16284 cat >>confdefs.h <<_ACEOF
16285 #define HAVE_DECL_REALLOC 1
16286 _ACEOF
16287
16288
16289 else
16290 cat >>confdefs.h <<_ACEOF
16291 #define HAVE_DECL_REALLOC 0
16292 _ACEOF
16293
16294
16295 fi
16296
16297
16298 { echo "$as_me:$LINENO: checking whether strerror is declared" >&5
16299 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6; }
16300 if test "${ac_cv_have_decl_strerror+set}" = set; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16302 else
16303 cat >conftest.$ac_ext <<_ACEOF
16304 /* confdefs.h. */
16305 _ACEOF
16306 cat confdefs.h >>conftest.$ac_ext
16307 cat >>conftest.$ac_ext <<_ACEOF
16308 /* end confdefs.h. */
16309 $ac_includes_default
16310 int
16311 main ()
16312 {
16313 #ifndef strerror
16314 char *p = (char *) strerror;
16315 return !p;
16316 #endif
16317
16318 ;
16319 return 0;
16320 }
16321 _ACEOF
16322 rm -f conftest.$ac_objext
16323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16324 (eval $ac_compile) 2>conftest.er1
16325 ac_status=$?
16326 grep -v '^ *+' conftest.er1 >conftest.err
16327 rm -f conftest.er1
16328 cat conftest.err >&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); } &&
16331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333 (eval $ac_try) 2>&5
16334 ac_status=$?
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; } &&
16337 { ac_try='test -s conftest.$ac_objext'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16340 ac_status=$?
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; }; then
16343 ac_cv_have_decl_strerror=yes
16344 else
16345 echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16347
16348 ac_cv_have_decl_strerror=no
16349 fi
16350
16351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16352 fi
16353 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
16354 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6; }
16355 if test $ac_cv_have_decl_strerror = yes; then
16356
16357 cat >>confdefs.h <<_ACEOF
16358 #define HAVE_DECL_STRERROR 1
16359 _ACEOF
16360
16361
16362 else
16363 cat >>confdefs.h <<_ACEOF
16364 #define HAVE_DECL_STRERROR 0
16365 _ACEOF
16366
16367
16368 fi
16369 { echo "$as_me:$LINENO: checking whether strstr is declared" >&5
16370 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6; }
16371 if test "${ac_cv_have_decl_strstr+set}" = set; then
16372 echo $ECHO_N "(cached) $ECHO_C" >&6
16373 else
16374 cat >conftest.$ac_ext <<_ACEOF
16375 /* confdefs.h. */
16376 _ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h. */
16380 $ac_includes_default
16381 int
16382 main ()
16383 {
16384 #ifndef strstr
16385 char *p = (char *) strstr;
16386 return !p;
16387 #endif
16388
16389 ;
16390 return 0;
16391 }
16392 _ACEOF
16393 rm -f conftest.$ac_objext
16394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16395 (eval $ac_compile) 2>conftest.er1
16396 ac_status=$?
16397 grep -v '^ *+' conftest.er1 >conftest.err
16398 rm -f conftest.er1
16399 cat conftest.err >&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); } &&
16402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16404 (eval $ac_try) 2>&5
16405 ac_status=$?
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); }; } &&
16408 { ac_try='test -s conftest.$ac_objext'
16409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16410 (eval $ac_try) 2>&5
16411 ac_status=$?
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); }; }; then
16414 ac_cv_have_decl_strstr=yes
16415 else
16416 echo "$as_me: failed program was:" >&5
16417 sed 's/^/| /' conftest.$ac_ext >&5
16418
16419 ac_cv_have_decl_strstr=no
16420 fi
16421
16422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16423 fi
16424 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
16425 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6; }
16426 if test $ac_cv_have_decl_strstr = yes; then
16427
16428 cat >>confdefs.h <<_ACEOF
16429 #define HAVE_DECL_STRSTR 1
16430 _ACEOF
16431
16432
16433 else
16434 cat >>confdefs.h <<_ACEOF
16435 #define HAVE_DECL_STRSTR 0
16436 _ACEOF
16437
16438
16439 fi
16440
16441
16442 { echo "$as_me:$LINENO: checking whether getopt is declared" >&5
16443 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6; }
16444 if test "${ac_cv_have_decl_getopt+set}" = set; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16446 else
16447 cat >conftest.$ac_ext <<_ACEOF
16448 /* confdefs.h. */
16449 _ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h. */
16453 $ac_includes_default
16454 int
16455 main ()
16456 {
16457 #ifndef getopt
16458 char *p = (char *) getopt;
16459 return !p;
16460 #endif
16461
16462 ;
16463 return 0;
16464 }
16465 _ACEOF
16466 rm -f conftest.$ac_objext
16467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16468 (eval $ac_compile) 2>conftest.er1
16469 ac_status=$?
16470 grep -v '^ *+' conftest.er1 >conftest.err
16471 rm -f conftest.er1
16472 cat conftest.err >&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); } &&
16475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477 (eval $ac_try) 2>&5
16478 ac_status=$?
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; } &&
16481 { ac_try='test -s conftest.$ac_objext'
16482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483 (eval $ac_try) 2>&5
16484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
16487 ac_cv_have_decl_getopt=yes
16488 else
16489 echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16491
16492 ac_cv_have_decl_getopt=no
16493 fi
16494
16495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16496 fi
16497 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
16498 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6; }
16499 if test $ac_cv_have_decl_getopt = yes; then
16500
16501 cat >>confdefs.h <<_ACEOF
16502 #define HAVE_DECL_GETOPT 1
16503 _ACEOF
16504
16505
16506 else
16507 cat >>confdefs.h <<_ACEOF
16508 #define HAVE_DECL_GETOPT 0
16509 _ACEOF
16510
16511
16512 fi
16513 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16514 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
16515 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16516 echo $ECHO_N "(cached) $ECHO_C" >&6
16517 else
16518 cat >conftest.$ac_ext <<_ACEOF
16519 /* confdefs.h. */
16520 _ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h. */
16524 $ac_includes_default
16525 int
16526 main ()
16527 {
16528 #ifndef snprintf
16529 char *p = (char *) snprintf;
16530 return !p;
16531 #endif
16532
16533 ;
16534 return 0;
16535 }
16536 _ACEOF
16537 rm -f conftest.$ac_objext
16538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16539 (eval $ac_compile) 2>conftest.er1
16540 ac_status=$?
16541 grep -v '^ *+' conftest.er1 >conftest.err
16542 rm -f conftest.er1
16543 cat conftest.err >&5
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); } &&
16546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16548 (eval $ac_try) 2>&5
16549 ac_status=$?
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); }; } &&
16552 { ac_try='test -s conftest.$ac_objext'
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; }; then
16558 ac_cv_have_decl_snprintf=yes
16559 else
16560 echo "$as_me: failed program was:" >&5
16561 sed 's/^/| /' conftest.$ac_ext >&5
16562
16563 ac_cv_have_decl_snprintf=no
16564 fi
16565
16566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16567 fi
16568 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16569 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
16570 if test $ac_cv_have_decl_snprintf = yes; then
16571
16572 cat >>confdefs.h <<_ACEOF
16573 #define HAVE_DECL_SNPRINTF 1
16574 _ACEOF
16575
16576
16577 else
16578 cat >>confdefs.h <<_ACEOF
16579 #define HAVE_DECL_SNPRINTF 0
16580 _ACEOF
16581
16582
16583 fi
16584 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16585 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
16586 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16587 echo $ECHO_N "(cached) $ECHO_C" >&6
16588 else
16589 cat >conftest.$ac_ext <<_ACEOF
16590 /* confdefs.h. */
16591 _ACEOF
16592 cat confdefs.h >>conftest.$ac_ext
16593 cat >>conftest.$ac_ext <<_ACEOF
16594 /* end confdefs.h. */
16595 $ac_includes_default
16596 int
16597 main ()
16598 {
16599 #ifndef vsnprintf
16600 char *p = (char *) vsnprintf;
16601 return !p;
16602 #endif
16603
16604 ;
16605 return 0;
16606 }
16607 _ACEOF
16608 rm -f conftest.$ac_objext
16609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16610 (eval $ac_compile) 2>conftest.er1
16611 ac_status=$?
16612 grep -v '^ *+' conftest.er1 >conftest.err
16613 rm -f conftest.er1
16614 cat conftest.err >&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); } &&
16617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16619 (eval $ac_try) 2>&5
16620 ac_status=$?
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); }; } &&
16623 { ac_try='test -s conftest.$ac_objext'
16624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625 (eval $ac_try) 2>&5
16626 ac_status=$?
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); }; }; then
16629 ac_cv_have_decl_vsnprintf=yes
16630 else
16631 echo "$as_me: failed program was:" >&5
16632 sed 's/^/| /' conftest.$ac_ext >&5
16633
16634 ac_cv_have_decl_vsnprintf=no
16635 fi
16636
16637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16638 fi
16639 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16640 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
16641 if test $ac_cv_have_decl_vsnprintf = yes; then
16642
16643 cat >>confdefs.h <<_ACEOF
16644 #define HAVE_DECL_VSNPRINTF 1
16645 _ACEOF
16646
16647
16648 else
16649 cat >>confdefs.h <<_ACEOF
16650 #define HAVE_DECL_VSNPRINTF 0
16651 _ACEOF
16652
16653
16654 fi
16655
16656
16657
16658 # ----------------------- #
16659 # Checks for structures. #
16660 # ----------------------- #
16661
16662 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16663 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
16664 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16665 echo $ECHO_N "(cached) $ECHO_C" >&6
16666 else
16667 cat >conftest.$ac_ext <<_ACEOF
16668 /* confdefs.h. */
16669 _ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h. */
16673 $ac_includes_default
16674 int
16675 main ()
16676 {
16677 static struct stat ac_aggr;
16678 if (ac_aggr.st_blocks)
16679 return 0;
16680 ;
16681 return 0;
16682 }
16683 _ACEOF
16684 rm -f conftest.$ac_objext
16685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16686 (eval $ac_compile) 2>conftest.er1
16687 ac_status=$?
16688 grep -v '^ *+' conftest.er1 >conftest.err
16689 rm -f conftest.er1
16690 cat conftest.err >&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } &&
16693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695 (eval $ac_try) 2>&5
16696 ac_status=$?
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; } &&
16699 { ac_try='test -s conftest.$ac_objext'
16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16702 ac_status=$?
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; }; then
16705 ac_cv_member_struct_stat_st_blocks=yes
16706 else
16707 echo "$as_me: failed program was:" >&5
16708 sed 's/^/| /' conftest.$ac_ext >&5
16709
16710 cat >conftest.$ac_ext <<_ACEOF
16711 /* confdefs.h. */
16712 _ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16716 $ac_includes_default
16717 int
16718 main ()
16719 {
16720 static struct stat ac_aggr;
16721 if (sizeof ac_aggr.st_blocks)
16722 return 0;
16723 ;
16724 return 0;
16725 }
16726 _ACEOF
16727 rm -f conftest.$ac_objext
16728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16729 (eval $ac_compile) 2>conftest.er1
16730 ac_status=$?
16731 grep -v '^ *+' conftest.er1 >conftest.err
16732 rm -f conftest.er1
16733 cat conftest.err >&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } &&
16736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; } &&
16742 { ac_try='test -s conftest.$ac_objext'
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16745 ac_status=$?
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; }; then
16748 ac_cv_member_struct_stat_st_blocks=yes
16749 else
16750 echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16752
16753 ac_cv_member_struct_stat_st_blocks=no
16754 fi
16755
16756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16757 fi
16758
16759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16760 fi
16761 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16762 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
16763 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16764
16765 cat >>confdefs.h <<_ACEOF
16766 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16767 _ACEOF
16768
16769
16770 fi
16771
16772 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
16773 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
16774 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
16775 echo $ECHO_N "(cached) $ECHO_C" >&6
16776 else
16777 cat >conftest.$ac_ext <<_ACEOF
16778 /* confdefs.h. */
16779 _ACEOF
16780 cat confdefs.h >>conftest.$ac_ext
16781 cat >>conftest.$ac_ext <<_ACEOF
16782 /* end confdefs.h. */
16783 $ac_includes_default
16784 int
16785 main ()
16786 {
16787 static struct stat ac_aggr;
16788 if (ac_aggr.st_blksize)
16789 return 0;
16790 ;
16791 return 0;
16792 }
16793 _ACEOF
16794 rm -f conftest.$ac_objext
16795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16796 (eval $ac_compile) 2>conftest.er1
16797 ac_status=$?
16798 grep -v '^ *+' conftest.er1 >conftest.err
16799 rm -f conftest.er1
16800 cat conftest.err >&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); } &&
16803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16806 ac_status=$?
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; } &&
16809 { ac_try='test -s conftest.$ac_objext'
16810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811 (eval $ac_try) 2>&5
16812 ac_status=$?
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; }; then
16815 ac_cv_member_struct_stat_st_blksize=yes
16816 else
16817 echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16819
16820 cat >conftest.$ac_ext <<_ACEOF
16821 /* confdefs.h. */
16822 _ACEOF
16823 cat confdefs.h >>conftest.$ac_ext
16824 cat >>conftest.$ac_ext <<_ACEOF
16825 /* end confdefs.h. */
16826 $ac_includes_default
16827 int
16828 main ()
16829 {
16830 static struct stat ac_aggr;
16831 if (sizeof ac_aggr.st_blksize)
16832 return 0;
16833 ;
16834 return 0;
16835 }
16836 _ACEOF
16837 rm -f conftest.$ac_objext
16838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16839 (eval $ac_compile) 2>conftest.er1
16840 ac_status=$?
16841 grep -v '^ *+' conftest.er1 >conftest.err
16842 rm -f conftest.er1
16843 cat conftest.err >&5
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); } &&
16846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; } &&
16852 { ac_try='test -s conftest.$ac_objext'
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; }; then
16858 ac_cv_member_struct_stat_st_blksize=yes
16859 else
16860 echo "$as_me: failed program was:" >&5
16861 sed 's/^/| /' conftest.$ac_ext >&5
16862
16863 ac_cv_member_struct_stat_st_blksize=no
16864 fi
16865
16866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16867 fi
16868
16869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16870 fi
16871 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
16872 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
16873 if test $ac_cv_member_struct_stat_st_blksize = yes; then
16874
16875 cat >>confdefs.h <<_ACEOF
16876 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16877 _ACEOF
16878
16879
16880 fi
16881
16882
16883 # ------------------ #
16884 # Checks for types. #
16885 # ------------------ #
16886
16887 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
16888 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
16889 if test "${ac_cv_type_signal+set}" = set; then
16890 echo $ECHO_N "(cached) $ECHO_C" >&6
16891 else
16892 cat >conftest.$ac_ext <<_ACEOF
16893 /* confdefs.h. */
16894 _ACEOF
16895 cat confdefs.h >>conftest.$ac_ext
16896 cat >>conftest.$ac_ext <<_ACEOF
16897 /* end confdefs.h. */
16898 #include <sys/types.h>
16899 #include <signal.h>
16900
16901 int
16902 main ()
16903 {
16904 return *(signal (0, 0)) (0) == 1;
16905 ;
16906 return 0;
16907 }
16908 _ACEOF
16909 rm -f conftest.$ac_objext
16910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16911 (eval $ac_compile) 2>conftest.er1
16912 ac_status=$?
16913 grep -v '^ *+' conftest.er1 >conftest.err
16914 rm -f conftest.er1
16915 cat conftest.err >&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } &&
16918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920 (eval $ac_try) 2>&5
16921 ac_status=$?
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; } &&
16924 { ac_try='test -s conftest.$ac_objext'
16925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16930 ac_cv_type_signal=int
16931 else
16932 echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16934
16935 ac_cv_type_signal=void
16936 fi
16937
16938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16939 fi
16940 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
16941 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
16942
16943 cat >>confdefs.h <<_ACEOF
16944 #define RETSIGTYPE $ac_cv_type_signal
16945 _ACEOF
16946
16947
16948 { echo "$as_me:$LINENO: checking for socklen_t" >&5
16949 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
16950 if test "${ac_cv_type_socklen_t+set}" = set; then
16951 echo $ECHO_N "(cached) $ECHO_C" >&6
16952 else
16953 cat >conftest.$ac_ext <<_ACEOF
16954 /* confdefs.h. */
16955 _ACEOF
16956 cat confdefs.h >>conftest.$ac_ext
16957 cat >>conftest.$ac_ext <<_ACEOF
16958 /* end confdefs.h. */
16959 #include <sys/types.h>
16960 #include <sys/socket.h>
16961
16962
16963 typedef socklen_t ac__type_new_;
16964 int
16965 main ()
16966 {
16967 if ((ac__type_new_ *) 0)
16968 return 0;
16969 if (sizeof (ac__type_new_))
16970 return 0;
16971 ;
16972 return 0;
16973 }
16974 _ACEOF
16975 rm -f conftest.$ac_objext
16976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16977 (eval $ac_compile) 2>conftest.er1
16978 ac_status=$?
16979 grep -v '^ *+' conftest.er1 >conftest.err
16980 rm -f conftest.er1
16981 cat conftest.err >&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } &&
16984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16987 ac_status=$?
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; } &&
16990 { ac_try='test -s conftest.$ac_objext'
16991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992 (eval $ac_try) 2>&5
16993 ac_status=$?
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); }; }; then
16996 ac_cv_type_socklen_t=yes
16997 else
16998 echo "$as_me: failed program was:" >&5
16999 sed 's/^/| /' conftest.$ac_ext >&5
17000
17001 ac_cv_type_socklen_t=no
17002 fi
17003
17004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17005 fi
17006 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
17007 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
17008 if test $ac_cv_type_socklen_t = yes; then
17009
17010 cat >>confdefs.h <<_ACEOF
17011 #define HAVE_SOCKLEN_T 1
17012 _ACEOF
17013
17014
17015 fi
17016
17017 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
17018 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
17019 if test "${ac_cv_type_uintptr_t+set}" = set; then
17020 echo $ECHO_N "(cached) $ECHO_C" >&6
17021 else
17022 cat >conftest.$ac_ext <<_ACEOF
17023 /* confdefs.h. */
17024 _ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h. */
17028 #include <stdint.h>
17029
17030 typedef uintptr_t ac__type_new_;
17031 int
17032 main ()
17033 {
17034 if ((ac__type_new_ *) 0)
17035 return 0;
17036 if (sizeof (ac__type_new_))
17037 return 0;
17038 ;
17039 return 0;
17040 }
17041 _ACEOF
17042 rm -f conftest.$ac_objext
17043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17044 (eval $ac_compile) 2>conftest.er1
17045 ac_status=$?
17046 grep -v '^ *+' conftest.er1 >conftest.err
17047 rm -f conftest.er1
17048 cat conftest.err >&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); } &&
17051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; } &&
17057 { ac_try='test -s conftest.$ac_objext'
17058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17059 (eval $ac_try) 2>&5
17060 ac_status=$?
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; }; then
17063 ac_cv_type_uintptr_t=yes
17064 else
17065 echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17067
17068 ac_cv_type_uintptr_t=no
17069 fi
17070
17071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17072 fi
17073 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17074 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
17075 if test $ac_cv_type_uintptr_t = yes; then
17076
17077 cat >>confdefs.h <<_ACEOF
17078 #define HAVE_UINTPTR_T 1
17079 _ACEOF
17080
17081
17082 fi
17083
17084
17085 # ------------------------------------- #
17086 # Checks for compiler characteristics. #
17087 # ------------------------------------- #
17088
17089 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17090 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
17091 if test "${ac_cv_c_const+set}" = set; then
17092 echo $ECHO_N "(cached) $ECHO_C" >&6
17093 else
17094 cat >conftest.$ac_ext <<_ACEOF
17095 /* confdefs.h. */
17096 _ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h. */
17100
17101 int
17102 main ()
17103 {
17104 /* FIXME: Include the comments suggested by Paul. */
17105 #ifndef __cplusplus
17106 /* Ultrix mips cc rejects this. */
17107 typedef int charset[2];
17108 const charset x;
17109 /* SunOS 4.1.1 cc rejects this. */
17110 char const *const *ccp;
17111 char **p;
17112 /* NEC SVR4.0.2 mips cc rejects this. */
17113 struct point {int x, y;};
17114 static struct point const zero = {0,0};
17115 /* AIX XL C 1.02.0.0 rejects this.
17116 It does not let you subtract one const X* pointer from another in
17117 an arm of an if-expression whose if-part is not a constant
17118 expression */
17119 const char *g = "string";
17120 ccp = &g + (g ? g-g : 0);
17121 /* HPUX 7.0 cc rejects these. */
17122 ++ccp;
17123 p = (char**) ccp;
17124 ccp = (char const *const *) p;
17125 { /* SCO 3.2v4 cc rejects this. */
17126 char *t;
17127 char const *s = 0 ? (char *) 0 : (char const *) 0;
17128
17129 *t++ = 0;
17130 if (s) return 0;
17131 }
17132 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17133 int x[] = {25, 17};
17134 const int *foo = &x[0];
17135 ++foo;
17136 }
17137 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17138 typedef const int *iptr;
17139 iptr p = 0;
17140 ++p;
17141 }
17142 { /* AIX XL C 1.02.0.0 rejects this saying
17143 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17144 struct s { int j; const int *ap[3]; };
17145 struct s *b; b->j = 5;
17146 }
17147 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17148 const int foo = 10;
17149 if (!foo) return 0;
17150 }
17151 return !x[0] && !zero.x;
17152 #endif
17153
17154 ;
17155 return 0;
17156 }
17157 _ACEOF
17158 rm -f conftest.$ac_objext
17159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17160 (eval $ac_compile) 2>conftest.er1
17161 ac_status=$?
17162 grep -v '^ *+' conftest.er1 >conftest.err
17163 rm -f conftest.er1
17164 cat conftest.err >&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); } &&
17167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; } &&
17173 { ac_try='test -s conftest.$ac_objext'
17174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17175 (eval $ac_try) 2>&5
17176 ac_status=$?
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; }; then
17179 ac_cv_c_const=yes
17180 else
17181 echo "$as_me: failed program was:" >&5
17182 sed 's/^/| /' conftest.$ac_ext >&5
17183
17184 ac_cv_c_const=no
17185 fi
17186
17187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17188 fi
17189 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17190 echo "${ECHO_T}$ac_cv_c_const" >&6; }
17191 if test $ac_cv_c_const = no; then
17192
17193 cat >>confdefs.h <<\_ACEOF
17194 #define const
17195 _ACEOF
17196
17197 fi
17198
17199 { echo "$as_me:$LINENO: checking for inline" >&5
17200 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
17201 if test "${ac_cv_c_inline+set}" = set; then
17202 echo $ECHO_N "(cached) $ECHO_C" >&6
17203 else
17204 ac_cv_c_inline=no
17205 for ac_kw in inline __inline__ __inline; do
17206 cat >conftest.$ac_ext <<_ACEOF
17207 /* confdefs.h. */
17208 _ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h. */
17212 #ifndef __cplusplus
17213 typedef int foo_t;
17214 static $ac_kw foo_t static_foo () {return 0; }
17215 $ac_kw foo_t foo () {return 0; }
17216 #endif
17217
17218 _ACEOF
17219 rm -f conftest.$ac_objext
17220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17221 (eval $ac_compile) 2>conftest.er1
17222 ac_status=$?
17223 grep -v '^ *+' conftest.er1 >conftest.err
17224 rm -f conftest.er1
17225 cat conftest.err >&5
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); } &&
17228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17230 (eval $ac_try) 2>&5
17231 ac_status=$?
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); }; } &&
17234 { ac_try='test -s conftest.$ac_objext'
17235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17236 (eval $ac_try) 2>&5
17237 ac_status=$?
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); }; }; then
17240 ac_cv_c_inline=$ac_kw
17241 else
17242 echo "$as_me: failed program was:" >&5
17243 sed 's/^/| /' conftest.$ac_ext >&5
17244
17245
17246 fi
17247
17248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17249 test "$ac_cv_c_inline" != no && break
17250 done
17251
17252 fi
17253 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17254 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
17255
17256
17257 case $ac_cv_c_inline in
17258 inline | yes) ;;
17259 *)
17260 case $ac_cv_c_inline in
17261 no) ac_val=;;
17262 *) ac_val=$ac_cv_c_inline;;
17263 esac
17264 cat >>confdefs.h <<_ACEOF
17265 #ifndef __cplusplus
17266 #define inline $ac_val
17267 #endif
17268 _ACEOF
17269 ;;
17270 esac
17271
17272
17273 # ------------------------------ #
17274 # Checks for library functions. #
17275 # ------------------------------ #
17276
17277 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17278 # for constant arguments. Useless!
17279 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
17280 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
17281 if test "${ac_cv_working_alloca_h+set}" = set; then
17282 echo $ECHO_N "(cached) $ECHO_C" >&6
17283 else
17284 cat >conftest.$ac_ext <<_ACEOF
17285 /* confdefs.h. */
17286 _ACEOF
17287 cat confdefs.h >>conftest.$ac_ext
17288 cat >>conftest.$ac_ext <<_ACEOF
17289 /* end confdefs.h. */
17290 #include <alloca.h>
17291 int
17292 main ()
17293 {
17294 char *p = (char *) alloca (2 * sizeof (int));
17295 ;
17296 return 0;
17297 }
17298 _ACEOF
17299 rm -f conftest.$ac_objext conftest$ac_exeext
17300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17301 (eval $ac_link) 2>conftest.er1
17302 ac_status=$?
17303 grep -v '^ *+' conftest.er1 >conftest.err
17304 rm -f conftest.er1
17305 cat conftest.err >&5
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); } &&
17308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17311 ac_status=$?
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; } &&
17314 { ac_try='test -s conftest$ac_exeext'
17315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17316 (eval $ac_try) 2>&5
17317 ac_status=$?
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; }; then
17320 ac_cv_working_alloca_h=yes
17321 else
17322 echo "$as_me: failed program was:" >&5
17323 sed 's/^/| /' conftest.$ac_ext >&5
17324
17325 ac_cv_working_alloca_h=no
17326 fi
17327
17328 rm -f conftest.err conftest.$ac_objext \
17329 conftest$ac_exeext conftest.$ac_ext
17330 fi
17331 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17332 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
17333 if test $ac_cv_working_alloca_h = yes; then
17334
17335 cat >>confdefs.h <<\_ACEOF
17336 #define HAVE_ALLOCA_H 1
17337 _ACEOF
17338
17339 fi
17340
17341 { echo "$as_me:$LINENO: checking for alloca" >&5
17342 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
17343 if test "${ac_cv_func_alloca_works+set}" = set; then
17344 echo $ECHO_N "(cached) $ECHO_C" >&6
17345 else
17346 cat >conftest.$ac_ext <<_ACEOF
17347 /* confdefs.h. */
17348 _ACEOF
17349 cat confdefs.h >>conftest.$ac_ext
17350 cat >>conftest.$ac_ext <<_ACEOF
17351 /* end confdefs.h. */
17352 #ifdef __GNUC__
17353 # define alloca __builtin_alloca
17354 #else
17355 # ifdef _MSC_VER
17356 # include <malloc.h>
17357 # define alloca _alloca
17358 # else
17359 # if HAVE_ALLOCA_H
17360 # include <alloca.h>
17361 # else
17362 # ifdef _AIX
17363 #pragma alloca
17364 # else
17365 # ifndef alloca /* predefined by HP cc +Olibcalls */
17366 char *alloca ();
17367 # endif
17368 # endif
17369 # endif
17370 # endif
17371 #endif
17372
17373 int
17374 main ()
17375 {
17376 char *p = (char *) alloca (1);
17377 ;
17378 return 0;
17379 }
17380 _ACEOF
17381 rm -f conftest.$ac_objext conftest$ac_exeext
17382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17383 (eval $ac_link) 2>conftest.er1
17384 ac_status=$?
17385 grep -v '^ *+' conftest.er1 >conftest.err
17386 rm -f conftest.er1
17387 cat conftest.err >&5
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); } &&
17390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392 (eval $ac_try) 2>&5
17393 ac_status=$?
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; } &&
17396 { ac_try='test -s conftest$ac_exeext'
17397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; }; then
17402 ac_cv_func_alloca_works=yes
17403 else
17404 echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17406
17407 ac_cv_func_alloca_works=no
17408 fi
17409
17410 rm -f conftest.err conftest.$ac_objext \
17411 conftest$ac_exeext conftest.$ac_ext
17412 fi
17413 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17414 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
17415
17416 if test $ac_cv_func_alloca_works = yes; then
17417
17418 cat >>confdefs.h <<\_ACEOF
17419 #define HAVE_ALLOCA 1
17420 _ACEOF
17421
17422 else
17423 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17424 # that cause trouble. Some versions do not even contain alloca or
17425 # contain a buggy version. If you still want to use their alloca,
17426 # use ar to extract alloca.o from them instead of compiling alloca.c.
17427
17428 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17429
17430 cat >>confdefs.h <<\_ACEOF
17431 #define C_ALLOCA 1
17432 _ACEOF
17433
17434
17435 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17436 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
17437 if test "${ac_cv_os_cray+set}" = set; then
17438 echo $ECHO_N "(cached) $ECHO_C" >&6
17439 else
17440 cat >conftest.$ac_ext <<_ACEOF
17441 /* confdefs.h. */
17442 _ACEOF
17443 cat confdefs.h >>conftest.$ac_ext
17444 cat >>conftest.$ac_ext <<_ACEOF
17445 /* end confdefs.h. */
17446 #if defined CRAY && ! defined CRAY2
17447 webecray
17448 #else
17449 wenotbecray
17450 #endif
17451
17452 _ACEOF
17453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17454 $EGREP "webecray" >/dev/null 2>&1; then
17455 ac_cv_os_cray=yes
17456 else
17457 ac_cv_os_cray=no
17458 fi
17459 rm -f conftest*
17460
17461 fi
17462 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17463 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
17464 if test $ac_cv_os_cray = yes; then
17465 for ac_func in _getb67 GETB67 getb67; do
17466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17470 echo $ECHO_N "(cached) $ECHO_C" >&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 $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17480 #define $ac_func innocuous_$ac_func
17481
17482 /* System header to define __stub macros and hopefully few prototypes,
17483 which can conflict with char $ac_func (); 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 $ac_func
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 $ac_func ();
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_$ac_func || defined __stub___$ac_func
17506 choke me
17507 #endif
17508
17509 int
17510 main ()
17511 {
17512 return $ac_func ();
17513 ;
17514 return 0;
17515 }
17516 _ACEOF
17517 rm -f conftest.$ac_objext conftest$ac_exeext
17518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17519 (eval $ac_link) 2>conftest.er1
17520 ac_status=$?
17521 grep -v '^ *+' conftest.er1 >conftest.err
17522 rm -f conftest.er1
17523 cat conftest.err >&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } &&
17526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } &&
17532 { ac_try='test -s conftest$ac_exeext'
17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17535 ac_status=$?
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; }; then
17538 eval "$as_ac_var=yes"
17539 else
17540 echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17542
17543 eval "$as_ac_var=no"
17544 fi
17545
17546 rm -f conftest.err conftest.$ac_objext \
17547 conftest$ac_exeext conftest.$ac_ext
17548 fi
17549 ac_res=`eval echo '${'$as_ac_var'}'`
17550 { echo "$as_me:$LINENO: result: $ac_res" >&5
17551 echo "${ECHO_T}$ac_res" >&6; }
17552 if test `eval echo '${'$as_ac_var'}'` = yes; then
17553
17554 cat >>confdefs.h <<_ACEOF
17555 #define CRAY_STACKSEG_END $ac_func
17556 _ACEOF
17557
17558 break
17559 fi
17560
17561 done
17562 fi
17563
17564 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17565 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
17566 if test "${ac_cv_c_stack_direction+set}" = set; then
17567 echo $ECHO_N "(cached) $ECHO_C" >&6
17568 else
17569 if test "$cross_compiling" = yes; then
17570 ac_cv_c_stack_direction=0
17571 else
17572 cat >conftest.$ac_ext <<_ACEOF
17573 /* confdefs.h. */
17574 _ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h. */
17578 $ac_includes_default
17579 int
17580 find_stack_direction ()
17581 {
17582 static char *addr = 0;
17583 auto char dummy;
17584 if (addr == 0)
17585 {
17586 addr = &dummy;
17587 return find_stack_direction ();
17588 }
17589 else
17590 return (&dummy > addr) ? 1 : -1;
17591 }
17592
17593 int
17594 main ()
17595 {
17596 return find_stack_direction () < 0;
17597 }
17598 _ACEOF
17599 rm -f conftest$ac_exeext
17600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17601 (eval $ac_link) 2>&5
17602 ac_status=$?
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17606 (eval $ac_try) 2>&5
17607 ac_status=$?
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; }; then
17610 ac_cv_c_stack_direction=1
17611 else
17612 echo "$as_me: program exited with status $ac_status" >&5
17613 echo "$as_me: failed program was:" >&5
17614 sed 's/^/| /' conftest.$ac_ext >&5
17615
17616 ( exit $ac_status )
17617 ac_cv_c_stack_direction=-1
17618 fi
17619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17620 fi
17621
17622
17623 fi
17624 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17625 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
17626
17627 cat >>confdefs.h <<_ACEOF
17628 #define STACK_DIRECTION $ac_cv_c_stack_direction
17629 _ACEOF
17630
17631
17632 fi
17633
17634
17635
17636 for ac_header in stdlib.h unistd.h
17637 do
17638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17643 echo $ECHO_N "(cached) $ECHO_C" >&6
17644 fi
17645 ac_res=`eval echo '${'$as_ac_Header'}'`
17646 { echo "$as_me:$LINENO: result: $ac_res" >&5
17647 echo "${ECHO_T}$ac_res" >&6; }
17648 else
17649 # Is the header compilable?
17650 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17652 cat >conftest.$ac_ext <<_ACEOF
17653 /* confdefs.h. */
17654 _ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h. */
17658 $ac_includes_default
17659 #include <$ac_header>
17660 _ACEOF
17661 rm -f conftest.$ac_objext
17662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17663 (eval $ac_compile) 2>conftest.er1
17664 ac_status=$?
17665 grep -v '^ *+' conftest.er1 >conftest.err
17666 rm -f conftest.er1
17667 cat conftest.err >&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); } &&
17670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17673 ac_status=$?
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; } &&
17676 { ac_try='test -s conftest.$ac_objext'
17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17679 ac_status=$?
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
17682 ac_header_compiler=yes
17683 else
17684 echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17686
17687 ac_header_compiler=no
17688 fi
17689
17690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17692 echo "${ECHO_T}$ac_header_compiler" >&6; }
17693
17694 # Is the header present?
17695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17697 cat >conftest.$ac_ext <<_ACEOF
17698 /* confdefs.h. */
17699 _ACEOF
17700 cat confdefs.h >>conftest.$ac_ext
17701 cat >>conftest.$ac_ext <<_ACEOF
17702 /* end confdefs.h. */
17703 #include <$ac_header>
17704 _ACEOF
17705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17707 ac_status=$?
17708 grep -v '^ *+' conftest.er1 >conftest.err
17709 rm -f conftest.er1
17710 cat conftest.err >&5
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } >/dev/null; then
17713 if test -s conftest.err; then
17714 ac_cpp_err=$ac_c_preproc_warn_flag
17715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17716 else
17717 ac_cpp_err=
17718 fi
17719 else
17720 ac_cpp_err=yes
17721 fi
17722 if test -z "$ac_cpp_err"; then
17723 ac_header_preproc=yes
17724 else
17725 echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17727
17728 ac_header_preproc=no
17729 fi
17730
17731 rm -f conftest.err conftest.$ac_ext
17732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17733 echo "${ECHO_T}$ac_header_preproc" >&6; }
17734
17735 # So? What about this header?
17736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17737 yes:no: )
17738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17742 ac_header_preproc=yes
17743 ;;
17744 no:yes:* )
17745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17757
17758 ;;
17759 esac
17760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17763 echo $ECHO_N "(cached) $ECHO_C" >&6
17764 else
17765 eval "$as_ac_Header=\$ac_header_preproc"
17766 fi
17767 ac_res=`eval echo '${'$as_ac_Header'}'`
17768 { echo "$as_me:$LINENO: result: $ac_res" >&5
17769 echo "${ECHO_T}$ac_res" >&6; }
17770
17771 fi
17772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17773 cat >>confdefs.h <<_ACEOF
17774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17775 _ACEOF
17776
17777 fi
17778
17779 done
17780
17781
17782 for ac_func in getpagesize
17783 do
17784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17785 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17788 echo $ECHO_N "(cached) $ECHO_C" >&6
17789 else
17790 cat >conftest.$ac_ext <<_ACEOF
17791 /* confdefs.h. */
17792 _ACEOF
17793 cat confdefs.h >>conftest.$ac_ext
17794 cat >>conftest.$ac_ext <<_ACEOF
17795 /* end confdefs.h. */
17796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17798 #define $ac_func innocuous_$ac_func
17799
17800 /* System header to define __stub macros and hopefully few prototypes,
17801 which can conflict with char $ac_func (); below.
17802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17803 <limits.h> exists even on freestanding compilers. */
17804
17805 #ifdef __STDC__
17806 # include <limits.h>
17807 #else
17808 # include <assert.h>
17809 #endif
17810
17811 #undef $ac_func
17812
17813 /* Override any GCC internal prototype to avoid an error.
17814 Use char because int might match the return type of a GCC
17815 builtin and then its argument prototype would still apply. */
17816 #ifdef __cplusplus
17817 extern "C"
17818 #endif
17819 char $ac_func ();
17820 /* The GNU C library defines this for functions which it implements
17821 to always fail with ENOSYS. Some functions are actually named
17822 something starting with __ and the normal name is an alias. */
17823 #if defined __stub_$ac_func || defined __stub___$ac_func
17824 choke me
17825 #endif
17826
17827 int
17828 main ()
17829 {
17830 return $ac_func ();
17831 ;
17832 return 0;
17833 }
17834 _ACEOF
17835 rm -f conftest.$ac_objext conftest$ac_exeext
17836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17837 (eval $ac_link) 2>conftest.er1
17838 ac_status=$?
17839 grep -v '^ *+' conftest.er1 >conftest.err
17840 rm -f conftest.er1
17841 cat conftest.err >&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); } &&
17844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17847 ac_status=$?
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; } &&
17850 { ac_try='test -s conftest$ac_exeext'
17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17853 ac_status=$?
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; }; then
17856 eval "$as_ac_var=yes"
17857 else
17858 echo "$as_me: failed program was:" >&5
17859 sed 's/^/| /' conftest.$ac_ext >&5
17860
17861 eval "$as_ac_var=no"
17862 fi
17863
17864 rm -f conftest.err conftest.$ac_objext \
17865 conftest$ac_exeext conftest.$ac_ext
17866 fi
17867 ac_res=`eval echo '${'$as_ac_var'}'`
17868 { echo "$as_me:$LINENO: result: $ac_res" >&5
17869 echo "${ECHO_T}$ac_res" >&6; }
17870 if test `eval echo '${'$as_ac_var'}'` = yes; then
17871 cat >>confdefs.h <<_ACEOF
17872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17873 _ACEOF
17874
17875 fi
17876 done
17877
17878 { echo "$as_me:$LINENO: checking for working mmap" >&5
17879 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17880 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17881 echo $ECHO_N "(cached) $ECHO_C" >&6
17882 else
17883 if test "$cross_compiling" = yes; then
17884 ac_cv_func_mmap_fixed_mapped=no
17885 else
17886 cat >conftest.$ac_ext <<_ACEOF
17887 /* confdefs.h. */
17888 _ACEOF
17889 cat confdefs.h >>conftest.$ac_ext
17890 cat >>conftest.$ac_ext <<_ACEOF
17891 /* end confdefs.h. */
17892 $ac_includes_default
17893 /* malloc might have been renamed as rpl_malloc. */
17894 #undef malloc
17895
17896 /* Thanks to Mike Haertel and Jim Avera for this test.
17897 Here is a matrix of mmap possibilities:
17898 mmap private not fixed
17899 mmap private fixed at somewhere currently unmapped
17900 mmap private fixed at somewhere already mapped
17901 mmap shared not fixed
17902 mmap shared fixed at somewhere currently unmapped
17903 mmap shared fixed at somewhere already mapped
17904 For private mappings, we should verify that changes cannot be read()
17905 back from the file, nor mmap's back from the file at a different
17906 address. (There have been systems where private was not correctly
17907 implemented like the infamous i386 svr4.0, and systems where the
17908 VM page cache was not coherent with the file system buffer cache
17909 like early versions of FreeBSD and possibly contemporary NetBSD.)
17910 For shared mappings, we should conversely verify that changes get
17911 propagated back to all the places they're supposed to be.
17912
17913 Grep wants private fixed already mapped.
17914 The main things grep needs to know about mmap are:
17915 * does it exist and is it safe to write into the mmap'd area
17916 * how to use it (BSD variants) */
17917
17918 #include <fcntl.h>
17919 #include <sys/mman.h>
17920
17921 #if !STDC_HEADERS && !HAVE_STDLIB_H
17922 char *malloc ();
17923 #endif
17924
17925 /* This mess was copied from the GNU getpagesize.h. */
17926 #if !HAVE_GETPAGESIZE
17927 /* Assume that all systems that can run configure have sys/param.h. */
17928 # if !HAVE_SYS_PARAM_H
17929 # define HAVE_SYS_PARAM_H 1
17930 # endif
17931
17932 # ifdef _SC_PAGESIZE
17933 # define getpagesize() sysconf(_SC_PAGESIZE)
17934 # else /* no _SC_PAGESIZE */
17935 # if HAVE_SYS_PARAM_H
17936 # include <sys/param.h>
17937 # ifdef EXEC_PAGESIZE
17938 # define getpagesize() EXEC_PAGESIZE
17939 # else /* no EXEC_PAGESIZE */
17940 # ifdef NBPG
17941 # define getpagesize() NBPG * CLSIZE
17942 # ifndef CLSIZE
17943 # define CLSIZE 1
17944 # endif /* no CLSIZE */
17945 # else /* no NBPG */
17946 # ifdef NBPC
17947 # define getpagesize() NBPC
17948 # else /* no NBPC */
17949 # ifdef PAGESIZE
17950 # define getpagesize() PAGESIZE
17951 # endif /* PAGESIZE */
17952 # endif /* no NBPC */
17953 # endif /* no NBPG */
17954 # endif /* no EXEC_PAGESIZE */
17955 # else /* no HAVE_SYS_PARAM_H */
17956 # define getpagesize() 8192 /* punt totally */
17957 # endif /* no HAVE_SYS_PARAM_H */
17958 # endif /* no _SC_PAGESIZE */
17959
17960 #endif /* no HAVE_GETPAGESIZE */
17961
17962 int
17963 main ()
17964 {
17965 char *data, *data2, *data3;
17966 int i, pagesize;
17967 int fd;
17968
17969 pagesize = getpagesize ();
17970
17971 /* First, make a file with some known garbage in it. */
17972 data = (char *) malloc (pagesize);
17973 if (!data)
17974 return 1;
17975 for (i = 0; i < pagesize; ++i)
17976 *(data + i) = rand ();
17977 umask (0);
17978 fd = creat ("conftest.mmap", 0600);
17979 if (fd < 0)
17980 return 1;
17981 if (write (fd, data, pagesize) != pagesize)
17982 return 1;
17983 close (fd);
17984
17985 /* Next, try to mmap the file at a fixed address which already has
17986 something else allocated at it. If we can, also make sure that
17987 we see the same garbage. */
17988 fd = open ("conftest.mmap", O_RDWR);
17989 if (fd < 0)
17990 return 1;
17991 data2 = (char *) malloc (2 * pagesize);
17992 if (!data2)
17993 return 1;
17994 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17995 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17996 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17997 return 1;
17998 for (i = 0; i < pagesize; ++i)
17999 if (*(data + i) != *(data2 + i))
18000 return 1;
18001
18002 /* Finally, make sure that changes to the mapped area do not
18003 percolate back to the file as seen by read(). (This is a bug on
18004 some variants of i386 svr4.0.) */
18005 for (i = 0; i < pagesize; ++i)
18006 *(data2 + i) = *(data2 + i) + 1;
18007 data3 = (char *) malloc (pagesize);
18008 if (!data3)
18009 return 1;
18010 if (read (fd, data3, pagesize) != pagesize)
18011 return 1;
18012 for (i = 0; i < pagesize; ++i)
18013 if (*(data + i) != *(data3 + i))
18014 return 1;
18015 close (fd);
18016 return 0;
18017 }
18018 _ACEOF
18019 rm -f conftest$ac_exeext
18020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18021 (eval $ac_link) 2>&5
18022 ac_status=$?
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; }; then
18030 ac_cv_func_mmap_fixed_mapped=yes
18031 else
18032 echo "$as_me: program exited with status $ac_status" >&5
18033 echo "$as_me: failed program was:" >&5
18034 sed 's/^/| /' conftest.$ac_ext >&5
18035
18036 ( exit $ac_status )
18037 ac_cv_func_mmap_fixed_mapped=no
18038 fi
18039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18040 fi
18041
18042
18043 fi
18044 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18045 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
18046 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18047
18048 cat >>confdefs.h <<\_ACEOF
18049 #define HAVE_MMAP 1
18050 _ACEOF
18051
18052 fi
18053 rm -f conftest.mmap
18054
18055 { echo "$as_me:$LINENO: checking for pid_t" >&5
18056 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
18057 if test "${ac_cv_type_pid_t+set}" = set; then
18058 echo $ECHO_N "(cached) $ECHO_C" >&6
18059 else
18060 cat >conftest.$ac_ext <<_ACEOF
18061 /* confdefs.h. */
18062 _ACEOF
18063 cat confdefs.h >>conftest.$ac_ext
18064 cat >>conftest.$ac_ext <<_ACEOF
18065 /* end confdefs.h. */
18066 $ac_includes_default
18067 typedef pid_t ac__type_new_;
18068 int
18069 main ()
18070 {
18071 if ((ac__type_new_ *) 0)
18072 return 0;
18073 if (sizeof (ac__type_new_))
18074 return 0;
18075 ;
18076 return 0;
18077 }
18078 _ACEOF
18079 rm -f conftest.$ac_objext
18080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18081 (eval $ac_compile) 2>conftest.er1
18082 ac_status=$?
18083 grep -v '^ *+' conftest.er1 >conftest.err
18084 rm -f conftest.er1
18085 cat conftest.err >&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); } &&
18088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18091 ac_status=$?
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; } &&
18094 { ac_try='test -s conftest.$ac_objext'
18095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096 (eval $ac_try) 2>&5
18097 ac_status=$?
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; }; then
18100 ac_cv_type_pid_t=yes
18101 else
18102 echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18104
18105 ac_cv_type_pid_t=no
18106 fi
18107
18108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18109 fi
18110 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18111 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
18112 if test $ac_cv_type_pid_t = yes; then
18113 :
18114 else
18115
18116 cat >>confdefs.h <<_ACEOF
18117 #define pid_t int
18118 _ACEOF
18119
18120 fi
18121
18122
18123 for ac_header in vfork.h
18124 do
18125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18130 echo $ECHO_N "(cached) $ECHO_C" >&6
18131 fi
18132 ac_res=`eval echo '${'$as_ac_Header'}'`
18133 { echo "$as_me:$LINENO: result: $ac_res" >&5
18134 echo "${ECHO_T}$ac_res" >&6; }
18135 else
18136 # Is the header compilable?
18137 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18138 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18139 cat >conftest.$ac_ext <<_ACEOF
18140 /* confdefs.h. */
18141 _ACEOF
18142 cat confdefs.h >>conftest.$ac_ext
18143 cat >>conftest.$ac_ext <<_ACEOF
18144 /* end confdefs.h. */
18145 $ac_includes_default
18146 #include <$ac_header>
18147 _ACEOF
18148 rm -f conftest.$ac_objext
18149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18150 (eval $ac_compile) 2>conftest.er1
18151 ac_status=$?
18152 grep -v '^ *+' conftest.er1 >conftest.err
18153 rm -f conftest.er1
18154 cat conftest.err >&5
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); } &&
18157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18159 (eval $ac_try) 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; } &&
18163 { ac_try='test -s conftest.$ac_objext'
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18166 ac_status=$?
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; }; then
18169 ac_header_compiler=yes
18170 else
18171 echo "$as_me: failed program was:" >&5
18172 sed 's/^/| /' conftest.$ac_ext >&5
18173
18174 ac_header_compiler=no
18175 fi
18176
18177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18178 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18179 echo "${ECHO_T}$ac_header_compiler" >&6; }
18180
18181 # Is the header present?
18182 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18183 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18184 cat >conftest.$ac_ext <<_ACEOF
18185 /* confdefs.h. */
18186 _ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18190 #include <$ac_header>
18191 _ACEOF
18192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18194 ac_status=$?
18195 grep -v '^ *+' conftest.er1 >conftest.err
18196 rm -f conftest.er1
18197 cat conftest.err >&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); } >/dev/null; then
18200 if test -s conftest.err; then
18201 ac_cpp_err=$ac_c_preproc_warn_flag
18202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18203 else
18204 ac_cpp_err=
18205 fi
18206 else
18207 ac_cpp_err=yes
18208 fi
18209 if test -z "$ac_cpp_err"; then
18210 ac_header_preproc=yes
18211 else
18212 echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18214
18215 ac_header_preproc=no
18216 fi
18217
18218 rm -f conftest.err conftest.$ac_ext
18219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18220 echo "${ECHO_T}$ac_header_preproc" >&6; }
18221
18222 # So? What about this header?
18223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18224 yes:no: )
18225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18229 ac_header_preproc=yes
18230 ;;
18231 no:yes:* )
18232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18244
18245 ;;
18246 esac
18247 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18251 else
18252 eval "$as_ac_Header=\$ac_header_preproc"
18253 fi
18254 ac_res=`eval echo '${'$as_ac_Header'}'`
18255 { echo "$as_me:$LINENO: result: $ac_res" >&5
18256 echo "${ECHO_T}$ac_res" >&6; }
18257
18258 fi
18259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18260 cat >>confdefs.h <<_ACEOF
18261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18262 _ACEOF
18263
18264 fi
18265
18266 done
18267
18268
18269
18270 for ac_func in fork vfork
18271 do
18272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18273 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18275 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18276 echo $ECHO_N "(cached) $ECHO_C" >&6
18277 else
18278 cat >conftest.$ac_ext <<_ACEOF
18279 /* confdefs.h. */
18280 _ACEOF
18281 cat confdefs.h >>conftest.$ac_ext
18282 cat >>conftest.$ac_ext <<_ACEOF
18283 /* end confdefs.h. */
18284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18286 #define $ac_func innocuous_$ac_func
18287
18288 /* System header to define __stub macros and hopefully few prototypes,
18289 which can conflict with char $ac_func (); below.
18290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18291 <limits.h> exists even on freestanding compilers. */
18292
18293 #ifdef __STDC__
18294 # include <limits.h>
18295 #else
18296 # include <assert.h>
18297 #endif
18298
18299 #undef $ac_func
18300
18301 /* Override any GCC internal prototype to avoid an error.
18302 Use char because int might match the return type of a GCC
18303 builtin and then its argument prototype would still apply. */
18304 #ifdef __cplusplus
18305 extern "C"
18306 #endif
18307 char $ac_func ();
18308 /* The GNU C library defines this for functions which it implements
18309 to always fail with ENOSYS. Some functions are actually named
18310 something starting with __ and the normal name is an alias. */
18311 #if defined __stub_$ac_func || defined __stub___$ac_func
18312 choke me
18313 #endif
18314
18315 int
18316 main ()
18317 {
18318 return $ac_func ();
18319 ;
18320 return 0;
18321 }
18322 _ACEOF
18323 rm -f conftest.$ac_objext conftest$ac_exeext
18324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18325 (eval $ac_link) 2>conftest.er1
18326 ac_status=$?
18327 grep -v '^ *+' conftest.er1 >conftest.err
18328 rm -f conftest.er1
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
18332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334 (eval $ac_try) 2>&5
18335 ac_status=$?
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; } &&
18338 { ac_try='test -s conftest$ac_exeext'
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18341 ac_status=$?
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; }; then
18344 eval "$as_ac_var=yes"
18345 else
18346 echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.$ac_ext >&5
18348
18349 eval "$as_ac_var=no"
18350 fi
18351
18352 rm -f conftest.err conftest.$ac_objext \
18353 conftest$ac_exeext conftest.$ac_ext
18354 fi
18355 ac_res=`eval echo '${'$as_ac_var'}'`
18356 { echo "$as_me:$LINENO: result: $ac_res" >&5
18357 echo "${ECHO_T}$ac_res" >&6; }
18358 if test `eval echo '${'$as_ac_var'}'` = yes; then
18359 cat >>confdefs.h <<_ACEOF
18360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18361 _ACEOF
18362
18363 fi
18364 done
18365
18366 if test "x$ac_cv_func_fork" = xyes; then
18367 { echo "$as_me:$LINENO: checking for working fork" >&5
18368 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
18369 if test "${ac_cv_func_fork_works+set}" = set; then
18370 echo $ECHO_N "(cached) $ECHO_C" >&6
18371 else
18372 if test "$cross_compiling" = yes; then
18373 ac_cv_func_fork_works=cross
18374 else
18375 cat >conftest.$ac_ext <<_ACEOF
18376 /* confdefs.h. */
18377 _ACEOF
18378 cat confdefs.h >>conftest.$ac_ext
18379 cat >>conftest.$ac_ext <<_ACEOF
18380 /* end confdefs.h. */
18381 $ac_includes_default
18382 int
18383 main ()
18384 {
18385
18386 /* By Ruediger Kuhlmann. */
18387 return fork () < 0;
18388
18389 ;
18390 return 0;
18391 }
18392 _ACEOF
18393 rm -f conftest$ac_exeext
18394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18395 (eval $ac_link) 2>&5
18396 ac_status=$?
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18400 (eval $ac_try) 2>&5
18401 ac_status=$?
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); }; }; then
18404 ac_cv_func_fork_works=yes
18405 else
18406 echo "$as_me: program exited with status $ac_status" >&5
18407 echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18409
18410 ( exit $ac_status )
18411 ac_cv_func_fork_works=no
18412 fi
18413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18414 fi
18415
18416
18417 fi
18418 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18419 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
18420
18421 else
18422 ac_cv_func_fork_works=$ac_cv_func_fork
18423 fi
18424 if test "x$ac_cv_func_fork_works" = xcross; then
18425 case $host in
18426 *-*-amigaos* | *-*-msdosdjgpp*)
18427 # Override, as these systems have only a dummy fork() stub
18428 ac_cv_func_fork_works=no
18429 ;;
18430 *)
18431 ac_cv_func_fork_works=yes
18432 ;;
18433 esac
18434 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18435 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18436 fi
18437 ac_cv_func_vfork_works=$ac_cv_func_vfork
18438 if test "x$ac_cv_func_vfork" = xyes; then
18439 { echo "$as_me:$LINENO: checking for working vfork" >&5
18440 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
18441 if test "${ac_cv_func_vfork_works+set}" = set; then
18442 echo $ECHO_N "(cached) $ECHO_C" >&6
18443 else
18444 if test "$cross_compiling" = yes; then
18445 ac_cv_func_vfork_works=cross
18446 else
18447 cat >conftest.$ac_ext <<_ACEOF
18448 /* confdefs.h. */
18449 _ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h. */
18453 /* Thanks to Paul Eggert for this test. */
18454 $ac_includes_default
18455 #include <sys/wait.h>
18456 #if HAVE_VFORK_H
18457 # include <vfork.h>
18458 #endif
18459 /* On some sparc systems, changes by the child to local and incoming
18460 argument registers are propagated back to the parent. The compiler
18461 is told about this with #include <vfork.h>, but some compilers
18462 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18463 static variable whose address is put into a register that is
18464 clobbered by the vfork. */
18465 static void
18466 #ifdef __cplusplus
18467 sparc_address_test (int arg)
18468 # else
18469 sparc_address_test (arg) int arg;
18470 #endif
18471 {
18472 static pid_t child;
18473 if (!child) {
18474 child = vfork ();
18475 if (child < 0) {
18476 perror ("vfork");
18477 _exit(2);
18478 }
18479 if (!child) {
18480 arg = getpid();
18481 write(-1, "", 0);
18482 _exit (arg);
18483 }
18484 }
18485 }
18486
18487 int
18488 main ()
18489 {
18490 pid_t parent = getpid ();
18491 pid_t child;
18492
18493 sparc_address_test (0);
18494
18495 child = vfork ();
18496
18497 if (child == 0) {
18498 /* Here is another test for sparc vfork register problems. This
18499 test uses lots of local variables, at least as many local
18500 variables as main has allocated so far including compiler
18501 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18502 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18503 reuse the register of parent for one of the local variables,
18504 since it will think that parent can't possibly be used any more
18505 in this routine. Assigning to the local variable will thus
18506 munge parent in the parent process. */
18507 pid_t
18508 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18509 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18510 /* Convince the compiler that p..p7 are live; otherwise, it might
18511 use the same hardware register for all 8 local variables. */
18512 if (p != p1 || p != p2 || p != p3 || p != p4
18513 || p != p5 || p != p6 || p != p7)
18514 _exit(1);
18515
18516 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18517 from child file descriptors. If the child closes a descriptor
18518 before it execs or exits, this munges the parent's descriptor
18519 as well. Test for this by closing stdout in the child. */
18520 _exit(close(fileno(stdout)) != 0);
18521 } else {
18522 int status;
18523 struct stat st;
18524
18525 while (wait(&status) != child)
18526 ;
18527 return (
18528 /* Was there some problem with vforking? */
18529 child < 0
18530
18531 /* Did the child fail? (This shouldn't happen.) */
18532 || status
18533
18534 /* Did the vfork/compiler bug occur? */
18535 || parent != getpid()
18536
18537 /* Did the file descriptor bug occur? */
18538 || fstat(fileno(stdout), &st) != 0
18539 );
18540 }
18541 }
18542 _ACEOF
18543 rm -f conftest$ac_exeext
18544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18545 (eval $ac_link) 2>&5
18546 ac_status=$?
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550 (eval $ac_try) 2>&5
18551 ac_status=$?
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); }; }; then
18554 ac_cv_func_vfork_works=yes
18555 else
18556 echo "$as_me: program exited with status $ac_status" >&5
18557 echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.$ac_ext >&5
18559
18560 ( exit $ac_status )
18561 ac_cv_func_vfork_works=no
18562 fi
18563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18564 fi
18565
18566
18567 fi
18568 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18569 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
18570
18571 fi;
18572 if test "x$ac_cv_func_fork_works" = xcross; then
18573 ac_cv_func_vfork_works=$ac_cv_func_vfork
18574 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18575 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18576 fi
18577
18578 if test "x$ac_cv_func_vfork_works" = xyes; then
18579
18580 cat >>confdefs.h <<\_ACEOF
18581 #define HAVE_WORKING_VFORK 1
18582 _ACEOF
18583
18584 else
18585
18586 cat >>confdefs.h <<\_ACEOF
18587 #define vfork fork
18588 _ACEOF
18589
18590 fi
18591 if test "x$ac_cv_func_fork_works" = xyes; then
18592
18593 cat >>confdefs.h <<\_ACEOF
18594 #define HAVE_WORKING_FORK 1
18595 _ACEOF
18596
18597 fi
18598
18599
18600
18601 for ac_func in canonicalize_file_name realpath
18602 do
18603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18604 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18606 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
18608 else
18609 cat >conftest.$ac_ext <<_ACEOF
18610 /* confdefs.h. */
18611 _ACEOF
18612 cat confdefs.h >>conftest.$ac_ext
18613 cat >>conftest.$ac_ext <<_ACEOF
18614 /* end confdefs.h. */
18615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18617 #define $ac_func innocuous_$ac_func
18618
18619 /* System header to define __stub macros and hopefully few prototypes,
18620 which can conflict with char $ac_func (); below.
18621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18622 <limits.h> exists even on freestanding compilers. */
18623
18624 #ifdef __STDC__
18625 # include <limits.h>
18626 #else
18627 # include <assert.h>
18628 #endif
18629
18630 #undef $ac_func
18631
18632 /* Override any GCC internal prototype to avoid an error.
18633 Use char because int might match the return type of a GCC
18634 builtin and then its argument prototype would still apply. */
18635 #ifdef __cplusplus
18636 extern "C"
18637 #endif
18638 char $ac_func ();
18639 /* The GNU C library defines this for functions which it implements
18640 to always fail with ENOSYS. Some functions are actually named
18641 something starting with __ and the normal name is an alias. */
18642 #if defined __stub_$ac_func || defined __stub___$ac_func
18643 choke me
18644 #endif
18645
18646 int
18647 main ()
18648 {
18649 return $ac_func ();
18650 ;
18651 return 0;
18652 }
18653 _ACEOF
18654 rm -f conftest.$ac_objext conftest$ac_exeext
18655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18656 (eval $ac_link) 2>conftest.er1
18657 ac_status=$?
18658 grep -v '^ *+' conftest.er1 >conftest.err
18659 rm -f conftest.er1
18660 cat conftest.err >&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); } &&
18663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18665 (eval $ac_try) 2>&5
18666 ac_status=$?
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); }; } &&
18669 { ac_try='test -s conftest$ac_exeext'
18670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18671 (eval $ac_try) 2>&5
18672 ac_status=$?
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); }; }; then
18675 eval "$as_ac_var=yes"
18676 else
18677 echo "$as_me: failed program was:" >&5
18678 sed 's/^/| /' conftest.$ac_ext >&5
18679
18680 eval "$as_ac_var=no"
18681 fi
18682
18683 rm -f conftest.err conftest.$ac_objext \
18684 conftest$ac_exeext conftest.$ac_ext
18685 fi
18686 ac_res=`eval echo '${'$as_ac_var'}'`
18687 { echo "$as_me:$LINENO: result: $ac_res" >&5
18688 echo "${ECHO_T}$ac_res" >&6; }
18689 if test `eval echo '${'$as_ac_var'}'` = yes; then
18690 cat >>confdefs.h <<_ACEOF
18691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18692 _ACEOF
18693
18694 fi
18695 done
18696
18697
18698
18699 for ac_func in getuid getgid
18700 do
18701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18702 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18705 echo $ECHO_N "(cached) $ECHO_C" >&6
18706 else
18707 cat >conftest.$ac_ext <<_ACEOF
18708 /* confdefs.h. */
18709 _ACEOF
18710 cat confdefs.h >>conftest.$ac_ext
18711 cat >>conftest.$ac_ext <<_ACEOF
18712 /* end confdefs.h. */
18713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18715 #define $ac_func innocuous_$ac_func
18716
18717 /* System header to define __stub macros and hopefully few prototypes,
18718 which can conflict with char $ac_func (); below.
18719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18720 <limits.h> exists even on freestanding compilers. */
18721
18722 #ifdef __STDC__
18723 # include <limits.h>
18724 #else
18725 # include <assert.h>
18726 #endif
18727
18728 #undef $ac_func
18729
18730 /* Override any GCC internal prototype to avoid an error.
18731 Use char because int might match the return type of a GCC
18732 builtin and then its argument prototype would still apply. */
18733 #ifdef __cplusplus
18734 extern "C"
18735 #endif
18736 char $ac_func ();
18737 /* The GNU C library defines this for functions which it implements
18738 to always fail with ENOSYS. Some functions are actually named
18739 something starting with __ and the normal name is an alias. */
18740 #if defined __stub_$ac_func || defined __stub___$ac_func
18741 choke me
18742 #endif
18743
18744 int
18745 main ()
18746 {
18747 return $ac_func ();
18748 ;
18749 return 0;
18750 }
18751 _ACEOF
18752 rm -f conftest.$ac_objext conftest$ac_exeext
18753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18754 (eval $ac_link) 2>conftest.er1
18755 ac_status=$?
18756 grep -v '^ *+' conftest.er1 >conftest.err
18757 rm -f conftest.er1
18758 cat conftest.err >&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); } &&
18761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763 (eval $ac_try) 2>&5
18764 ac_status=$?
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; } &&
18767 { ac_try='test -s conftest$ac_exeext'
18768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18769 (eval $ac_try) 2>&5
18770 ac_status=$?
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; }; then
18773 eval "$as_ac_var=yes"
18774 else
18775 echo "$as_me: failed program was:" >&5
18776 sed 's/^/| /' conftest.$ac_ext >&5
18777
18778 eval "$as_ac_var=no"
18779 fi
18780
18781 rm -f conftest.err conftest.$ac_objext \
18782 conftest$ac_exeext conftest.$ac_ext
18783 fi
18784 ac_res=`eval echo '${'$as_ac_var'}'`
18785 { echo "$as_me:$LINENO: result: $ac_res" >&5
18786 echo "${ECHO_T}$ac_res" >&6; }
18787 if test `eval echo '${'$as_ac_var'}'` = yes; then
18788 cat >>confdefs.h <<_ACEOF
18789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18790 _ACEOF
18791
18792 fi
18793 done
18794
18795
18796 for ac_func in poll
18797 do
18798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18799 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18803 else
18804 cat >conftest.$ac_ext <<_ACEOF
18805 /* confdefs.h. */
18806 _ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18812 #define $ac_func innocuous_$ac_func
18813
18814 /* System header to define __stub macros and hopefully few prototypes,
18815 which can conflict with char $ac_func (); below.
18816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18817 <limits.h> exists even on freestanding compilers. */
18818
18819 #ifdef __STDC__
18820 # include <limits.h>
18821 #else
18822 # include <assert.h>
18823 #endif
18824
18825 #undef $ac_func
18826
18827 /* Override any GCC internal prototype to avoid an error.
18828 Use char because int might match the return type of a GCC
18829 builtin and then its argument prototype would still apply. */
18830 #ifdef __cplusplus
18831 extern "C"
18832 #endif
18833 char $ac_func ();
18834 /* The GNU C library defines this for functions which it implements
18835 to always fail with ENOSYS. Some functions are actually named
18836 something starting with __ and the normal name is an alias. */
18837 #if defined __stub_$ac_func || defined __stub___$ac_func
18838 choke me
18839 #endif
18840
18841 int
18842 main ()
18843 {
18844 return $ac_func ();
18845 ;
18846 return 0;
18847 }
18848 _ACEOF
18849 rm -f conftest.$ac_objext conftest$ac_exeext
18850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18851 (eval $ac_link) 2>conftest.er1
18852 ac_status=$?
18853 grep -v '^ *+' conftest.er1 >conftest.err
18854 rm -f conftest.er1
18855 cat conftest.err >&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } &&
18858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18860 (eval $ac_try) 2>&5
18861 ac_status=$?
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); }; } &&
18864 { ac_try='test -s conftest$ac_exeext'
18865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18866 (eval $ac_try) 2>&5
18867 ac_status=$?
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); }; }; then
18870 eval "$as_ac_var=yes"
18871 else
18872 echo "$as_me: failed program was:" >&5
18873 sed 's/^/| /' conftest.$ac_ext >&5
18874
18875 eval "$as_ac_var=no"
18876 fi
18877
18878 rm -f conftest.err conftest.$ac_objext \
18879 conftest$ac_exeext conftest.$ac_ext
18880 fi
18881 ac_res=`eval echo '${'$as_ac_var'}'`
18882 { echo "$as_me:$LINENO: result: $ac_res" >&5
18883 echo "${ECHO_T}$ac_res" >&6; }
18884 if test `eval echo '${'$as_ac_var'}'` = yes; then
18885 cat >>confdefs.h <<_ACEOF
18886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18887 _ACEOF
18888
18889 fi
18890 done
18891
18892
18893 for ac_func in pread64
18894 do
18895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18896 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18900 else
18901 cat >conftest.$ac_ext <<_ACEOF
18902 /* confdefs.h. */
18903 _ACEOF
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h. */
18907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18909 #define $ac_func innocuous_$ac_func
18910
18911 /* System header to define __stub macros and hopefully few prototypes,
18912 which can conflict with char $ac_func (); below.
18913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18914 <limits.h> exists even on freestanding compilers. */
18915
18916 #ifdef __STDC__
18917 # include <limits.h>
18918 #else
18919 # include <assert.h>
18920 #endif
18921
18922 #undef $ac_func
18923
18924 /* Override any GCC internal prototype to avoid an error.
18925 Use char because int might match the return type of a GCC
18926 builtin and then its argument prototype would still apply. */
18927 #ifdef __cplusplus
18928 extern "C"
18929 #endif
18930 char $ac_func ();
18931 /* The GNU C library defines this for functions which it implements
18932 to always fail with ENOSYS. Some functions are actually named
18933 something starting with __ and the normal name is an alias. */
18934 #if defined __stub_$ac_func || defined __stub___$ac_func
18935 choke me
18936 #endif
18937
18938 int
18939 main ()
18940 {
18941 return $ac_func ();
18942 ;
18943 return 0;
18944 }
18945 _ACEOF
18946 rm -f conftest.$ac_objext conftest$ac_exeext
18947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18948 (eval $ac_link) 2>conftest.er1
18949 ac_status=$?
18950 grep -v '^ *+' conftest.er1 >conftest.err
18951 rm -f conftest.er1
18952 cat conftest.err >&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } &&
18955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; } &&
18961 { ac_try='test -s conftest$ac_exeext'
18962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18964 ac_status=$?
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; }; then
18967 eval "$as_ac_var=yes"
18968 else
18969 echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18971
18972 eval "$as_ac_var=no"
18973 fi
18974
18975 rm -f conftest.err conftest.$ac_objext \
18976 conftest$ac_exeext conftest.$ac_ext
18977 fi
18978 ac_res=`eval echo '${'$as_ac_var'}'`
18979 { echo "$as_me:$LINENO: result: $ac_res" >&5
18980 echo "${ECHO_T}$ac_res" >&6; }
18981 if test `eval echo '${'$as_ac_var'}'` = yes; then
18982 cat >>confdefs.h <<_ACEOF
18983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18984 _ACEOF
18985
18986 fi
18987 done
18988
18989
18990 for ac_func in sbrk
18991 do
18992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18993 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18995 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18996 echo $ECHO_N "(cached) $ECHO_C" >&6
18997 else
18998 cat >conftest.$ac_ext <<_ACEOF
18999 /* confdefs.h. */
19000 _ACEOF
19001 cat confdefs.h >>conftest.$ac_ext
19002 cat >>conftest.$ac_ext <<_ACEOF
19003 /* end confdefs.h. */
19004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19006 #define $ac_func innocuous_$ac_func
19007
19008 /* System header to define __stub macros and hopefully few prototypes,
19009 which can conflict with char $ac_func (); below.
19010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19011 <limits.h> exists even on freestanding compilers. */
19012
19013 #ifdef __STDC__
19014 # include <limits.h>
19015 #else
19016 # include <assert.h>
19017 #endif
19018
19019 #undef $ac_func
19020
19021 /* Override any GCC internal prototype to avoid an error.
19022 Use char because int might match the return type of a GCC
19023 builtin and then its argument prototype would still apply. */
19024 #ifdef __cplusplus
19025 extern "C"
19026 #endif
19027 char $ac_func ();
19028 /* The GNU C library defines this for functions which it implements
19029 to always fail with ENOSYS. Some functions are actually named
19030 something starting with __ and the normal name is an alias. */
19031 #if defined __stub_$ac_func || defined __stub___$ac_func
19032 choke me
19033 #endif
19034
19035 int
19036 main ()
19037 {
19038 return $ac_func ();
19039 ;
19040 return 0;
19041 }
19042 _ACEOF
19043 rm -f conftest.$ac_objext conftest$ac_exeext
19044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19045 (eval $ac_link) 2>conftest.er1
19046 ac_status=$?
19047 grep -v '^ *+' conftest.er1 >conftest.err
19048 rm -f conftest.er1
19049 cat conftest.err >&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } &&
19052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19054 (eval $ac_try) 2>&5
19055 ac_status=$?
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); }; } &&
19058 { ac_try='test -s conftest$ac_exeext'
19059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19060 (eval $ac_try) 2>&5
19061 ac_status=$?
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); }; }; then
19064 eval "$as_ac_var=yes"
19065 else
19066 echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19068
19069 eval "$as_ac_var=no"
19070 fi
19071
19072 rm -f conftest.err conftest.$ac_objext \
19073 conftest$ac_exeext conftest.$ac_ext
19074 fi
19075 ac_res=`eval echo '${'$as_ac_var'}'`
19076 { echo "$as_me:$LINENO: result: $ac_res" >&5
19077 echo "${ECHO_T}$ac_res" >&6; }
19078 if test `eval echo '${'$as_ac_var'}'` = yes; then
19079 cat >>confdefs.h <<_ACEOF
19080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19081 _ACEOF
19082
19083 fi
19084 done
19085
19086
19087
19088 for ac_func in setpgid setpgrp
19089 do
19090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19094 echo $ECHO_N "(cached) $ECHO_C" >&6
19095 else
19096 cat >conftest.$ac_ext <<_ACEOF
19097 /* confdefs.h. */
19098 _ACEOF
19099 cat confdefs.h >>conftest.$ac_ext
19100 cat >>conftest.$ac_ext <<_ACEOF
19101 /* end confdefs.h. */
19102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19104 #define $ac_func innocuous_$ac_func
19105
19106 /* System header to define __stub macros and hopefully few prototypes,
19107 which can conflict with char $ac_func (); below.
19108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19109 <limits.h> exists even on freestanding compilers. */
19110
19111 #ifdef __STDC__
19112 # include <limits.h>
19113 #else
19114 # include <assert.h>
19115 #endif
19116
19117 #undef $ac_func
19118
19119 /* Override any GCC internal prototype to avoid an error.
19120 Use char because int might match the return type of a GCC
19121 builtin and then its argument prototype would still apply. */
19122 #ifdef __cplusplus
19123 extern "C"
19124 #endif
19125 char $ac_func ();
19126 /* The GNU C library defines this for functions which it implements
19127 to always fail with ENOSYS. Some functions are actually named
19128 something starting with __ and the normal name is an alias. */
19129 #if defined __stub_$ac_func || defined __stub___$ac_func
19130 choke me
19131 #endif
19132
19133 int
19134 main ()
19135 {
19136 return $ac_func ();
19137 ;
19138 return 0;
19139 }
19140 _ACEOF
19141 rm -f conftest.$ac_objext conftest$ac_exeext
19142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19143 (eval $ac_link) 2>conftest.er1
19144 ac_status=$?
19145 grep -v '^ *+' conftest.er1 >conftest.err
19146 rm -f conftest.er1
19147 cat conftest.err >&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); } &&
19150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19152 (eval $ac_try) 2>&5
19153 ac_status=$?
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); }; } &&
19156 { ac_try='test -s conftest$ac_exeext'
19157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19158 (eval $ac_try) 2>&5
19159 ac_status=$?
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); }; }; then
19162 eval "$as_ac_var=yes"
19163 else
19164 echo "$as_me: failed program was:" >&5
19165 sed 's/^/| /' conftest.$ac_ext >&5
19166
19167 eval "$as_ac_var=no"
19168 fi
19169
19170 rm -f conftest.err conftest.$ac_objext \
19171 conftest$ac_exeext conftest.$ac_ext
19172 fi
19173 ac_res=`eval echo '${'$as_ac_var'}'`
19174 { echo "$as_me:$LINENO: result: $ac_res" >&5
19175 echo "${ECHO_T}$ac_res" >&6; }
19176 if test `eval echo '${'$as_ac_var'}'` = yes; then
19177 cat >>confdefs.h <<_ACEOF
19178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19179 _ACEOF
19180
19181 fi
19182 done
19183
19184
19185
19186
19187 for ac_func in sigaction sigprocmask sigsetmask
19188 do
19189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19190 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19192 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19193 echo $ECHO_N "(cached) $ECHO_C" >&6
19194 else
19195 cat >conftest.$ac_ext <<_ACEOF
19196 /* confdefs.h. */
19197 _ACEOF
19198 cat confdefs.h >>conftest.$ac_ext
19199 cat >>conftest.$ac_ext <<_ACEOF
19200 /* end confdefs.h. */
19201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19203 #define $ac_func innocuous_$ac_func
19204
19205 /* System header to define __stub macros and hopefully few prototypes,
19206 which can conflict with char $ac_func (); below.
19207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19208 <limits.h> exists even on freestanding compilers. */
19209
19210 #ifdef __STDC__
19211 # include <limits.h>
19212 #else
19213 # include <assert.h>
19214 #endif
19215
19216 #undef $ac_func
19217
19218 /* Override any GCC internal prototype to avoid an error.
19219 Use char because int might match the return type of a GCC
19220 builtin and then its argument prototype would still apply. */
19221 #ifdef __cplusplus
19222 extern "C"
19223 #endif
19224 char $ac_func ();
19225 /* The GNU C library defines this for functions which it implements
19226 to always fail with ENOSYS. Some functions are actually named
19227 something starting with __ and the normal name is an alias. */
19228 #if defined __stub_$ac_func || defined __stub___$ac_func
19229 choke me
19230 #endif
19231
19232 int
19233 main ()
19234 {
19235 return $ac_func ();
19236 ;
19237 return 0;
19238 }
19239 _ACEOF
19240 rm -f conftest.$ac_objext conftest$ac_exeext
19241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19242 (eval $ac_link) 2>conftest.er1
19243 ac_status=$?
19244 grep -v '^ *+' conftest.er1 >conftest.err
19245 rm -f conftest.er1
19246 cat conftest.err >&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } &&
19249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251 (eval $ac_try) 2>&5
19252 ac_status=$?
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; } &&
19255 { ac_try='test -s conftest$ac_exeext'
19256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257 (eval $ac_try) 2>&5
19258 ac_status=$?
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; }; then
19261 eval "$as_ac_var=yes"
19262 else
19263 echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19265
19266 eval "$as_ac_var=no"
19267 fi
19268
19269 rm -f conftest.err conftest.$ac_objext \
19270 conftest$ac_exeext conftest.$ac_ext
19271 fi
19272 ac_res=`eval echo '${'$as_ac_var'}'`
19273 { echo "$as_me:$LINENO: result: $ac_res" >&5
19274 echo "${ECHO_T}$ac_res" >&6; }
19275 if test `eval echo '${'$as_ac_var'}'` = yes; then
19276 cat >>confdefs.h <<_ACEOF
19277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19278 _ACEOF
19279
19280 fi
19281 done
19282
19283
19284 for ac_func in socketpair
19285 do
19286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19287 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19289 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19290 echo $ECHO_N "(cached) $ECHO_C" >&6
19291 else
19292 cat >conftest.$ac_ext <<_ACEOF
19293 /* confdefs.h. */
19294 _ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h. */
19298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19300 #define $ac_func innocuous_$ac_func
19301
19302 /* System header to define __stub macros and hopefully few prototypes,
19303 which can conflict with char $ac_func (); below.
19304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19305 <limits.h> exists even on freestanding compilers. */
19306
19307 #ifdef __STDC__
19308 # include <limits.h>
19309 #else
19310 # include <assert.h>
19311 #endif
19312
19313 #undef $ac_func
19314
19315 /* Override any GCC internal prototype to avoid an error.
19316 Use char because int might match the return type of a GCC
19317 builtin and then its argument prototype would still apply. */
19318 #ifdef __cplusplus
19319 extern "C"
19320 #endif
19321 char $ac_func ();
19322 /* The GNU C library defines this for functions which it implements
19323 to always fail with ENOSYS. Some functions are actually named
19324 something starting with __ and the normal name is an alias. */
19325 #if defined __stub_$ac_func || defined __stub___$ac_func
19326 choke me
19327 #endif
19328
19329 int
19330 main ()
19331 {
19332 return $ac_func ();
19333 ;
19334 return 0;
19335 }
19336 _ACEOF
19337 rm -f conftest.$ac_objext conftest$ac_exeext
19338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19339 (eval $ac_link) 2>conftest.er1
19340 ac_status=$?
19341 grep -v '^ *+' conftest.er1 >conftest.err
19342 rm -f conftest.er1
19343 cat conftest.err >&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); } &&
19346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19348 (eval $ac_try) 2>&5
19349 ac_status=$?
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); }; } &&
19352 { ac_try='test -s conftest$ac_exeext'
19353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19354 (eval $ac_try) 2>&5
19355 ac_status=$?
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); }; }; then
19358 eval "$as_ac_var=yes"
19359 else
19360 echo "$as_me: failed program was:" >&5
19361 sed 's/^/| /' conftest.$ac_ext >&5
19362
19363 eval "$as_ac_var=no"
19364 fi
19365
19366 rm -f conftest.err conftest.$ac_objext \
19367 conftest$ac_exeext conftest.$ac_ext
19368 fi
19369 ac_res=`eval echo '${'$as_ac_var'}'`
19370 { echo "$as_me:$LINENO: result: $ac_res" >&5
19371 echo "${ECHO_T}$ac_res" >&6; }
19372 if test `eval echo '${'$as_ac_var'}'` = yes; then
19373 cat >>confdefs.h <<_ACEOF
19374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19375 _ACEOF
19376
19377 fi
19378 done
19379
19380
19381 for ac_func in syscall
19382 do
19383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19387 echo $ECHO_N "(cached) $ECHO_C" >&6
19388 else
19389 cat >conftest.$ac_ext <<_ACEOF
19390 /* confdefs.h. */
19391 _ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19397 #define $ac_func innocuous_$ac_func
19398
19399 /* System header to define __stub macros and hopefully few prototypes,
19400 which can conflict with char $ac_func (); below.
19401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19402 <limits.h> exists even on freestanding compilers. */
19403
19404 #ifdef __STDC__
19405 # include <limits.h>
19406 #else
19407 # include <assert.h>
19408 #endif
19409
19410 #undef $ac_func
19411
19412 /* Override any GCC internal prototype to avoid an error.
19413 Use char because int might match the return type of a GCC
19414 builtin and then its argument prototype would still apply. */
19415 #ifdef __cplusplus
19416 extern "C"
19417 #endif
19418 char $ac_func ();
19419 /* The GNU C library defines this for functions which it implements
19420 to always fail with ENOSYS. Some functions are actually named
19421 something starting with __ and the normal name is an alias. */
19422 #if defined __stub_$ac_func || defined __stub___$ac_func
19423 choke me
19424 #endif
19425
19426 int
19427 main ()
19428 {
19429 return $ac_func ();
19430 ;
19431 return 0;
19432 }
19433 _ACEOF
19434 rm -f conftest.$ac_objext conftest$ac_exeext
19435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19436 (eval $ac_link) 2>conftest.er1
19437 ac_status=$?
19438 grep -v '^ *+' conftest.er1 >conftest.err
19439 rm -f conftest.er1
19440 cat conftest.err >&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); } &&
19443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19445 (eval $ac_try) 2>&5
19446 ac_status=$?
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); }; } &&
19449 { ac_try='test -s conftest$ac_exeext'
19450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19451 (eval $ac_try) 2>&5
19452 ac_status=$?
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); }; }; then
19455 eval "$as_ac_var=yes"
19456 else
19457 echo "$as_me: failed program was:" >&5
19458 sed 's/^/| /' conftest.$ac_ext >&5
19459
19460 eval "$as_ac_var=no"
19461 fi
19462
19463 rm -f conftest.err conftest.$ac_objext \
19464 conftest$ac_exeext conftest.$ac_ext
19465 fi
19466 ac_res=`eval echo '${'$as_ac_var'}'`
19467 { echo "$as_me:$LINENO: result: $ac_res" >&5
19468 echo "${ECHO_T}$ac_res" >&6; }
19469 if test `eval echo '${'$as_ac_var'}'` = yes; then
19470 cat >>confdefs.h <<_ACEOF
19471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19472 _ACEOF
19473
19474 fi
19475 done
19476
19477
19478 for ac_func in ttrace
19479 do
19480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19481 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19483 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19484 echo $ECHO_N "(cached) $ECHO_C" >&6
19485 else
19486 cat >conftest.$ac_ext <<_ACEOF
19487 /* confdefs.h. */
19488 _ACEOF
19489 cat confdefs.h >>conftest.$ac_ext
19490 cat >>conftest.$ac_ext <<_ACEOF
19491 /* end confdefs.h. */
19492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19494 #define $ac_func innocuous_$ac_func
19495
19496 /* System header to define __stub macros and hopefully few prototypes,
19497 which can conflict with char $ac_func (); below.
19498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19499 <limits.h> exists even on freestanding compilers. */
19500
19501 #ifdef __STDC__
19502 # include <limits.h>
19503 #else
19504 # include <assert.h>
19505 #endif
19506
19507 #undef $ac_func
19508
19509 /* Override any GCC internal prototype to avoid an error.
19510 Use char because int might match the return type of a GCC
19511 builtin and then its argument prototype would still apply. */
19512 #ifdef __cplusplus
19513 extern "C"
19514 #endif
19515 char $ac_func ();
19516 /* The GNU C library defines this for functions which it implements
19517 to always fail with ENOSYS. Some functions are actually named
19518 something starting with __ and the normal name is an alias. */
19519 #if defined __stub_$ac_func || defined __stub___$ac_func
19520 choke me
19521 #endif
19522
19523 int
19524 main ()
19525 {
19526 return $ac_func ();
19527 ;
19528 return 0;
19529 }
19530 _ACEOF
19531 rm -f conftest.$ac_objext conftest$ac_exeext
19532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19533 (eval $ac_link) 2>conftest.er1
19534 ac_status=$?
19535 grep -v '^ *+' conftest.er1 >conftest.err
19536 rm -f conftest.er1
19537 cat conftest.err >&5
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); } &&
19540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19542 (eval $ac_try) 2>&5
19543 ac_status=$?
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); }; } &&
19546 { ac_try='test -s conftest$ac_exeext'
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19549 ac_status=$?
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; }; then
19552 eval "$as_ac_var=yes"
19553 else
19554 echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19556
19557 eval "$as_ac_var=no"
19558 fi
19559
19560 rm -f conftest.err conftest.$ac_objext \
19561 conftest$ac_exeext conftest.$ac_ext
19562 fi
19563 ac_res=`eval echo '${'$as_ac_var'}'`
19564 { echo "$as_me:$LINENO: result: $ac_res" >&5
19565 echo "${ECHO_T}$ac_res" >&6; }
19566 if test `eval echo '${'$as_ac_var'}'` = yes; then
19567 cat >>confdefs.h <<_ACEOF
19568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19569 _ACEOF
19570
19571 fi
19572 done
19573
19574
19575 for ac_func in wborder
19576 do
19577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19578 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19580 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19581 echo $ECHO_N "(cached) $ECHO_C" >&6
19582 else
19583 cat >conftest.$ac_ext <<_ACEOF
19584 /* confdefs.h. */
19585 _ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h. */
19589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19591 #define $ac_func innocuous_$ac_func
19592
19593 /* System header to define __stub macros and hopefully few prototypes,
19594 which can conflict with char $ac_func (); below.
19595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19596 <limits.h> exists even on freestanding compilers. */
19597
19598 #ifdef __STDC__
19599 # include <limits.h>
19600 #else
19601 # include <assert.h>
19602 #endif
19603
19604 #undef $ac_func
19605
19606 /* Override any GCC internal prototype to avoid an error.
19607 Use char because int might match the return type of a GCC
19608 builtin and then its argument prototype would still apply. */
19609 #ifdef __cplusplus
19610 extern "C"
19611 #endif
19612 char $ac_func ();
19613 /* The GNU C library defines this for functions which it implements
19614 to always fail with ENOSYS. Some functions are actually named
19615 something starting with __ and the normal name is an alias. */
19616 #if defined __stub_$ac_func || defined __stub___$ac_func
19617 choke me
19618 #endif
19619
19620 int
19621 main ()
19622 {
19623 return $ac_func ();
19624 ;
19625 return 0;
19626 }
19627 _ACEOF
19628 rm -f conftest.$ac_objext conftest$ac_exeext
19629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19630 (eval $ac_link) 2>conftest.er1
19631 ac_status=$?
19632 grep -v '^ *+' conftest.er1 >conftest.err
19633 rm -f conftest.er1
19634 cat conftest.err >&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } &&
19637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19639 (eval $ac_try) 2>&5
19640 ac_status=$?
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; } &&
19643 { ac_try='test -s conftest$ac_exeext'
19644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19645 (eval $ac_try) 2>&5
19646 ac_status=$?
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; }; then
19649 eval "$as_ac_var=yes"
19650 else
19651 echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19653
19654 eval "$as_ac_var=no"
19655 fi
19656
19657 rm -f conftest.err conftest.$ac_objext \
19658 conftest$ac_exeext conftest.$ac_ext
19659 fi
19660 ac_res=`eval echo '${'$as_ac_var'}'`
19661 { echo "$as_me:$LINENO: result: $ac_res" >&5
19662 echo "${ECHO_T}$ac_res" >&6; }
19663 if test `eval echo '${'$as_ac_var'}'` = yes; then
19664 cat >>confdefs.h <<_ACEOF
19665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19666 _ACEOF
19667
19668 fi
19669 done
19670
19671
19672 # Check the return and argument types of ptrace. No canned test for
19673 # this, so roll our own.
19674 gdb_ptrace_headers='
19675 #if HAVE_SYS_TYPES_H
19676 # include <sys/types.h>
19677 #endif
19678 #if HAVE_SYS_PTRACE_H
19679 # include <sys/ptrace.h>
19680 #endif
19681 #if HAVE_UNISTD_H
19682 # include <unistd.h>
19683 #endif
19684 '
19685 # There is no point in checking if we don't have a prototype.
19686 { echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
19687 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6; }
19688 if test "${ac_cv_have_decl_ptrace+set}" = set; then
19689 echo $ECHO_N "(cached) $ECHO_C" >&6
19690 else
19691 cat >conftest.$ac_ext <<_ACEOF
19692 /* confdefs.h. */
19693 _ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h. */
19697 $gdb_ptrace_headers
19698
19699 int
19700 main ()
19701 {
19702 #ifndef ptrace
19703 char *p = (char *) ptrace;
19704 return !p;
19705 #endif
19706
19707 ;
19708 return 0;
19709 }
19710 _ACEOF
19711 rm -f conftest.$ac_objext
19712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19713 (eval $ac_compile) 2>conftest.er1
19714 ac_status=$?
19715 grep -v '^ *+' conftest.er1 >conftest.err
19716 rm -f conftest.er1
19717 cat conftest.err >&5
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); } &&
19720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19723 ac_status=$?
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; } &&
19726 { ac_try='test -s conftest.$ac_objext'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19729 ac_status=$?
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; }; then
19732 ac_cv_have_decl_ptrace=yes
19733 else
19734 echo "$as_me: failed program was:" >&5
19735 sed 's/^/| /' conftest.$ac_ext >&5
19736
19737 ac_cv_have_decl_ptrace=no
19738 fi
19739
19740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19741 fi
19742 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
19743 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6; }
19744 if test $ac_cv_have_decl_ptrace = yes; then
19745
19746 cat >>confdefs.h <<_ACEOF
19747 #define HAVE_DECL_PTRACE 1
19748 _ACEOF
19749
19750
19751 else
19752 cat >>confdefs.h <<_ACEOF
19753 #define HAVE_DECL_PTRACE 0
19754 _ACEOF
19755
19756
19757 : ${gdb_cv_func_ptrace_ret='int'}
19758 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
19759
19760 fi
19761
19762
19763 # Check return type.
19764 { echo "$as_me:$LINENO: checking return type of ptrace" >&5
19765 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6; }
19766 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
19767 echo $ECHO_N "(cached) $ECHO_C" >&6
19768 else
19769 cat >conftest.$ac_ext <<_ACEOF
19770 /* confdefs.h. */
19771 _ACEOF
19772 cat confdefs.h >>conftest.$ac_ext
19773 cat >>conftest.$ac_ext <<_ACEOF
19774 /* end confdefs.h. */
19775 $gdb_ptrace_headers
19776 int
19777 main ()
19778 {
19779 extern int ptrace ();
19780 ;
19781 return 0;
19782 }
19783 _ACEOF
19784 rm -f conftest.$ac_objext
19785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19786 (eval $ac_compile) 2>conftest.er1
19787 ac_status=$?
19788 grep -v '^ *+' conftest.er1 >conftest.err
19789 rm -f conftest.er1
19790 cat conftest.err >&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); } &&
19793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19796 ac_status=$?
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; } &&
19799 { ac_try='test -s conftest.$ac_objext'
19800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801 (eval $ac_try) 2>&5
19802 ac_status=$?
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); }; }; then
19805 gdb_cv_func_ptrace_ret='int'
19806 else
19807 echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19809
19810 gdb_cv_func_ptrace_ret='long'
19811 fi
19812
19813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19814 fi
19815 { echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
19816 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6; }
19817
19818 cat >>confdefs.h <<_ACEOF
19819 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
19820 _ACEOF
19821
19822 # Check argument types.
19823 { echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
19824 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6; }
19825 if test "${gdb_cv_func_ptrace_args+set}" = set; then
19826 echo $ECHO_N "(cached) $ECHO_C" >&6
19827 else
19828
19829 for gdb_arg1 in 'int' 'long'; do
19830 for gdb_arg2 in 'pid_t' 'int' 'long'; do
19831 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
19832 for gdb_arg4 in 'int' 'long'; do
19833 cat >conftest.$ac_ext <<_ACEOF
19834 /* confdefs.h. */
19835 _ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h. */
19839 $gdb_ptrace_headers
19840 int
19841 main ()
19842 {
19843
19844 extern $gdb_cv_func_ptrace_ret
19845 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
19846
19847 ;
19848 return 0;
19849 }
19850 _ACEOF
19851 rm -f conftest.$ac_objext
19852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } &&
19860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862 (eval $ac_try) 2>&5
19863 ac_status=$?
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; } &&
19866 { ac_try='test -s conftest.$ac_objext'
19867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868 (eval $ac_try) 2>&5
19869 ac_status=$?
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; }; then
19872 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
19873 break 4;
19874 else
19875 echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19877
19878
19879 fi
19880
19881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19882 for gdb_arg5 in 'int *' 'int' 'long'; do
19883 cat >conftest.$ac_ext <<_ACEOF
19884 /* confdefs.h. */
19885 _ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h. */
19889 $gdb_ptrace_headers
19890 int
19891 main ()
19892 {
19893
19894 extern $gdb_cv_func_ptrace_ret
19895 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
19896
19897 ;
19898 return 0;
19899 }
19900 _ACEOF
19901 rm -f conftest.$ac_objext
19902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19903 (eval $ac_compile) 2>conftest.er1
19904 ac_status=$?
19905 grep -v '^ *+' conftest.er1 >conftest.err
19906 rm -f conftest.er1
19907 cat conftest.err >&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); } &&
19910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19913 ac_status=$?
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; } &&
19916 { ac_try='test -s conftest.$ac_objext'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19919 ac_status=$?
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; }; then
19922
19923 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
19924 break 5;
19925 else
19926 echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19928
19929
19930 fi
19931
19932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19933 done
19934 done
19935 done
19936 done
19937 done
19938 # Provide a safe default value.
19939 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
19940
19941 fi
19942 { echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
19943 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6; }
19944 ac_save_IFS=$IFS; IFS=','
19945 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
19946 IFS=$ac_save_IFS
19947 shift
19948
19949 cat >>confdefs.h <<_ACEOF
19950 #define PTRACE_TYPE_ARG3 $3
19951 _ACEOF
19952
19953 if test -n "$5"; then
19954
19955 cat >>confdefs.h <<_ACEOF
19956 #define PTRACE_TYPE_ARG5 $5
19957 _ACEOF
19958
19959 fi
19960
19961 if test "$cross_compiling" = no; then
19962 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19963 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
19964 if test "${ac_cv_func_setpgrp_void+set}" = set; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19966 else
19967 if test "$cross_compiling" = yes; then
19968 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
19969 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
19970 { (exit 1); exit 1; }; }
19971 else
19972 cat >conftest.$ac_ext <<_ACEOF
19973 /* confdefs.h. */
19974 _ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h. */
19978 $ac_includes_default
19979 int
19980 main ()
19981 {
19982 /* If this system has a BSD-style setpgrp which takes arguments,
19983 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
19984 exit successfully. */
19985 return setpgrp (1,1) != -1;
19986 ;
19987 return 0;
19988 }
19989 _ACEOF
19990 rm -f conftest$ac_exeext
19991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19992 (eval $ac_link) 2>&5
19993 ac_status=$?
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997 (eval $ac_try) 2>&5
19998 ac_status=$?
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; }; then
20001 ac_cv_func_setpgrp_void=no
20002 else
20003 echo "$as_me: program exited with status $ac_status" >&5
20004 echo "$as_me: failed program was:" >&5
20005 sed 's/^/| /' conftest.$ac_ext >&5
20006
20007 ( exit $ac_status )
20008 ac_cv_func_setpgrp_void=yes
20009 fi
20010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20011 fi
20012
20013
20014 fi
20015 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20016 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
20017 if test $ac_cv_func_setpgrp_void = yes; then
20018
20019 cat >>confdefs.h <<\_ACEOF
20020 #define SETPGRP_VOID 1
20021 _ACEOF
20022
20023 fi
20024
20025 else
20026 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20027 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
20028 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20029 echo $ECHO_N "(cached) $ECHO_C" >&6
20030 else
20031 cat >conftest.$ac_ext <<_ACEOF
20032 /* confdefs.h. */
20033 _ACEOF
20034 cat confdefs.h >>conftest.$ac_ext
20035 cat >>conftest.$ac_ext <<_ACEOF
20036 /* end confdefs.h. */
20037
20038 #include <unistd.h>
20039
20040 int
20041 main ()
20042 {
20043
20044 if (setpgrp(1,1) == -1)
20045 exit (0);
20046 else
20047 exit (1);
20048
20049 ;
20050 return 0;
20051 }
20052 _ACEOF
20053 rm -f conftest.$ac_objext
20054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20055 (eval $ac_compile) 2>conftest.er1
20056 ac_status=$?
20057 grep -v '^ *+' conftest.er1 >conftest.err
20058 rm -f conftest.er1
20059 cat conftest.err >&5
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); } &&
20062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20064 (eval $ac_try) 2>&5
20065 ac_status=$?
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); }; } &&
20068 { ac_try='test -s conftest.$ac_objext'
20069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20070 (eval $ac_try) 2>&5
20071 ac_status=$?
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }; }; then
20074 ac_cv_func_setpgrp_void=no
20075 else
20076 echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20078
20079 ac_cv_func_setpgrp_void=yes
20080 fi
20081
20082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20083 fi
20084 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20085 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
20086 if test $ac_cv_func_setpgrp_void = yes; then
20087 cat >>confdefs.h <<\_ACEOF
20088 #define SETPGRP_VOID 1
20089 _ACEOF
20090
20091 fi
20092 fi
20093
20094 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
20095 # since sigsetjmp might only be defined as a macro.
20096 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
20097 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
20098 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
20099 echo $ECHO_N "(cached) $ECHO_C" >&6
20100 else
20101 cat >conftest.$ac_ext <<_ACEOF
20102 /* confdefs.h. */
20103 _ACEOF
20104 cat confdefs.h >>conftest.$ac_ext
20105 cat >>conftest.$ac_ext <<_ACEOF
20106 /* end confdefs.h. */
20107
20108 #include <setjmp.h>
20109
20110 int
20111 main ()
20112 {
20113 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
20114 ;
20115 return 0;
20116 }
20117 _ACEOF
20118 rm -f conftest.$ac_objext
20119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20120 (eval $ac_compile) 2>conftest.er1
20121 ac_status=$?
20122 grep -v '^ *+' conftest.er1 >conftest.err
20123 rm -f conftest.er1
20124 cat conftest.err >&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); } &&
20127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129 (eval $ac_try) 2>&5
20130 ac_status=$?
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); }; } &&
20133 { ac_try='test -s conftest.$ac_objext'
20134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135 (eval $ac_try) 2>&5
20136 ac_status=$?
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); }; }; then
20139 gdb_cv_func_sigsetjmp=yes
20140 else
20141 echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20143
20144 gdb_cv_func_sigsetjmp=no
20145 fi
20146
20147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20148 fi
20149 { echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
20150 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6; }
20151 if test $gdb_cv_func_sigsetjmp = yes; then
20152
20153 cat >>confdefs.h <<\_ACEOF
20154 #define HAVE_SIGSETJMP 1
20155 _ACEOF
20156
20157 fi
20158
20159 # Assume we'll default to using the included libiberty regex.
20160 gdb_use_included_regex=yes
20161
20162 # However, if the system regex is GNU regex, then default to *not*
20163 # using the included regex.
20164 { echo "$as_me:$LINENO: checking for GNU regex" >&5
20165 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6; }
20166 if test "${gdb_cv_have_gnu_regex+set}" = set; then
20167 echo $ECHO_N "(cached) $ECHO_C" >&6
20168 else
20169 cat >conftest.$ac_ext <<_ACEOF
20170 /* confdefs.h. */
20171 _ACEOF
20172 cat confdefs.h >>conftest.$ac_ext
20173 cat >>conftest.$ac_ext <<_ACEOF
20174 /* end confdefs.h. */
20175 #include <gnu-versions.h>
20176 int
20177 main ()
20178 {
20179 #define REGEX_INTERFACE_VERSION 1
20180 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
20181 # error "Version mismatch"
20182 #endif
20183 ;
20184 return 0;
20185 }
20186 _ACEOF
20187 rm -f conftest.$ac_objext
20188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20189 (eval $ac_compile) 2>conftest.er1
20190 ac_status=$?
20191 grep -v '^ *+' conftest.er1 >conftest.err
20192 rm -f conftest.er1
20193 cat conftest.err >&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } &&
20196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20199 ac_status=$?
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; } &&
20202 { ac_try='test -s conftest.$ac_objext'
20203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204 (eval $ac_try) 2>&5
20205 ac_status=$?
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; }; then
20208 gdb_cv_have_gnu_regex=yes
20209 else
20210 echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20212
20213 gdb_cv_have_gnu_regex=no
20214 fi
20215
20216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20217 fi
20218 { echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
20219 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6; }
20220 if test $gdb_cv_have_gnu_regex = yes; then
20221 gdb_use_included_regex=no
20222 fi
20223
20224
20225 # Check whether --with-included-regex was given.
20226 if test "${with_included_regex+set}" = set; then
20227 withval=$with_included_regex; gdb_with_regex=$withval
20228 else
20229 gdb_with_regex=$gdb_use_included_regex
20230 fi
20231
20232 if test "$gdb_with_regex" = yes; then
20233
20234 cat >>confdefs.h <<\_ACEOF
20235 #define USE_INCLUDED_REGEX 1
20236 _ACEOF
20237
20238 fi
20239
20240 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
20241 { echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
20242 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6; }
20243 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
20244 echo $ECHO_N "(cached) $ECHO_C" >&6
20245 else
20246 cat >conftest.$ac_ext <<_ACEOF
20247 /* confdefs.h. */
20248 _ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h. */
20252 #include <sys/param.h>
20253 #include <sys/proc.h>
20254
20255
20256 int
20257 main ()
20258 {
20259 static struct thread ac_aggr;
20260 if (ac_aggr.td_pcb)
20261 return 0;
20262 ;
20263 return 0;
20264 }
20265 _ACEOF
20266 rm -f conftest.$ac_objext
20267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20268 (eval $ac_compile) 2>conftest.er1
20269 ac_status=$?
20270 grep -v '^ *+' conftest.er1 >conftest.err
20271 rm -f conftest.er1
20272 cat conftest.err >&5
20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); } &&
20275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277 (eval $ac_try) 2>&5
20278 ac_status=$?
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); }; } &&
20281 { ac_try='test -s conftest.$ac_objext'
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20284 ac_status=$?
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; }; then
20287 ac_cv_member_struct_thread_td_pcb=yes
20288 else
20289 echo "$as_me: failed program was:" >&5
20290 sed 's/^/| /' conftest.$ac_ext >&5
20291
20292 cat >conftest.$ac_ext <<_ACEOF
20293 /* confdefs.h. */
20294 _ACEOF
20295 cat confdefs.h >>conftest.$ac_ext
20296 cat >>conftest.$ac_ext <<_ACEOF
20297 /* end confdefs.h. */
20298 #include <sys/param.h>
20299 #include <sys/proc.h>
20300
20301
20302 int
20303 main ()
20304 {
20305 static struct thread ac_aggr;
20306 if (sizeof ac_aggr.td_pcb)
20307 return 0;
20308 ;
20309 return 0;
20310 }
20311 _ACEOF
20312 rm -f conftest.$ac_objext
20313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20314 (eval $ac_compile) 2>conftest.er1
20315 ac_status=$?
20316 grep -v '^ *+' conftest.er1 >conftest.err
20317 rm -f conftest.er1
20318 cat conftest.err >&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } &&
20321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20323 (eval $ac_try) 2>&5
20324 ac_status=$?
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); }; } &&
20327 { ac_try='test -s conftest.$ac_objext'
20328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20329 (eval $ac_try) 2>&5
20330 ac_status=$?
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; }; then
20333 ac_cv_member_struct_thread_td_pcb=yes
20334 else
20335 echo "$as_me: failed program was:" >&5
20336 sed 's/^/| /' conftest.$ac_ext >&5
20337
20338 ac_cv_member_struct_thread_td_pcb=no
20339 fi
20340
20341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20342 fi
20343
20344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20345 fi
20346 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
20347 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6; }
20348 if test $ac_cv_member_struct_thread_td_pcb = yes; then
20349
20350 cat >>confdefs.h <<_ACEOF
20351 #define HAVE_STRUCT_THREAD_TD_PCB 1
20352 _ACEOF
20353
20354
20355 fi
20356
20357
20358 # See if <sys/lwp.h> defines `struct lwp`.
20359 { echo "$as_me:$LINENO: checking for struct lwp" >&5
20360 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6; }
20361 if test "${gdb_cv_struct_lwp+set}" = set; then
20362 echo $ECHO_N "(cached) $ECHO_C" >&6
20363 else
20364 cat >conftest.$ac_ext <<_ACEOF
20365 /* confdefs.h. */
20366 _ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20370 #include <sys/param.h>
20371 #include <sys/lwp.h>
20372 int
20373 main ()
20374 {
20375 struct lwp l;
20376 ;
20377 return 0;
20378 }
20379 _ACEOF
20380 rm -f conftest.$ac_objext
20381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20382 (eval $ac_compile) 2>conftest.er1
20383 ac_status=$?
20384 grep -v '^ *+' conftest.er1 >conftest.err
20385 rm -f conftest.er1
20386 cat conftest.err >&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); } &&
20389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391 (eval $ac_try) 2>&5
20392 ac_status=$?
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; } &&
20395 { ac_try='test -s conftest.$ac_objext'
20396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397 (eval $ac_try) 2>&5
20398 ac_status=$?
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); }; }; then
20401 gdb_cv_struct_lwp=yes
20402 else
20403 echo "$as_me: failed program was:" >&5
20404 sed 's/^/| /' conftest.$ac_ext >&5
20405
20406 gdb_cv_struct_lwp=no
20407 fi
20408
20409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20410 fi
20411 { echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
20412 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6; }
20413 if test $gdb_cv_struct_lwp = yes; then
20414
20415 cat >>confdefs.h <<\_ACEOF
20416 #define HAVE_STRUCT_LWP 1
20417 _ACEOF
20418
20419 fi
20420
20421 # See if <machine/reg.h> degines `struct reg'.
20422 { echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
20423 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6; }
20424 if test "${gdb_cv_struct_reg+set}" = set; then
20425 echo $ECHO_N "(cached) $ECHO_C" >&6
20426 else
20427 cat >conftest.$ac_ext <<_ACEOF
20428 /* confdefs.h. */
20429 _ACEOF
20430 cat confdefs.h >>conftest.$ac_ext
20431 cat >>conftest.$ac_ext <<_ACEOF
20432 /* end confdefs.h. */
20433 #include <sys/types.h>
20434 #include <machine/reg.h>
20435 int
20436 main ()
20437 {
20438 struct reg r;
20439 ;
20440 return 0;
20441 }
20442 _ACEOF
20443 rm -f conftest.$ac_objext
20444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20445 (eval $ac_compile) 2>conftest.er1
20446 ac_status=$?
20447 grep -v '^ *+' conftest.er1 >conftest.err
20448 rm -f conftest.er1
20449 cat conftest.err >&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } &&
20452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20454 (eval $ac_try) 2>&5
20455 ac_status=$?
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; } &&
20458 { ac_try='test -s conftest.$ac_objext'
20459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460 (eval $ac_try) 2>&5
20461 ac_status=$?
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); }; }; then
20464 gdb_cv_struct_reg=yes
20465 else
20466 echo "$as_me: failed program was:" >&5
20467 sed 's/^/| /' conftest.$ac_ext >&5
20468
20469 gdb_cv_struct_reg=no
20470 fi
20471
20472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20473 fi
20474 { echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
20475 echo "${ECHO_T}$gdb_cv_struct_reg" >&6; }
20476 if test $gdb_cv_struct_reg = yes; then
20477
20478 cat >>confdefs.h <<\_ACEOF
20479 #define HAVE_STRUCT_REG 1
20480 _ACEOF
20481
20482 fi
20483
20484 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
20485 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
20486 { echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
20487 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6; }
20488 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
20489 echo $ECHO_N "(cached) $ECHO_C" >&6
20490 else
20491 cat >conftest.$ac_ext <<_ACEOF
20492 /* confdefs.h. */
20493 _ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h. */
20497 #include <machine/reg.h>
20498
20499 int
20500 main ()
20501 {
20502 static struct reg ac_aggr;
20503 if (ac_aggr.r_fs)
20504 return 0;
20505 ;
20506 return 0;
20507 }
20508 _ACEOF
20509 rm -f conftest.$ac_objext
20510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20511 (eval $ac_compile) 2>conftest.er1
20512 ac_status=$?
20513 grep -v '^ *+' conftest.er1 >conftest.err
20514 rm -f conftest.er1
20515 cat conftest.err >&5
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); } &&
20518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20520 (eval $ac_try) 2>&5
20521 ac_status=$?
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); }; } &&
20524 { ac_try='test -s conftest.$ac_objext'
20525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20526 (eval $ac_try) 2>&5
20527 ac_status=$?
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); }; }; then
20530 ac_cv_member_struct_reg_r_fs=yes
20531 else
20532 echo "$as_me: failed program was:" >&5
20533 sed 's/^/| /' conftest.$ac_ext >&5
20534
20535 cat >conftest.$ac_ext <<_ACEOF
20536 /* confdefs.h. */
20537 _ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20541 #include <machine/reg.h>
20542
20543 int
20544 main ()
20545 {
20546 static struct reg ac_aggr;
20547 if (sizeof ac_aggr.r_fs)
20548 return 0;
20549 ;
20550 return 0;
20551 }
20552 _ACEOF
20553 rm -f conftest.$ac_objext
20554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20555 (eval $ac_compile) 2>conftest.er1
20556 ac_status=$?
20557 grep -v '^ *+' conftest.er1 >conftest.err
20558 rm -f conftest.er1
20559 cat conftest.err >&5
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); } &&
20562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20565 ac_status=$?
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; } &&
20568 { ac_try='test -s conftest.$ac_objext'
20569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570 (eval $ac_try) 2>&5
20571 ac_status=$?
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; }; then
20574 ac_cv_member_struct_reg_r_fs=yes
20575 else
20576 echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20578
20579 ac_cv_member_struct_reg_r_fs=no
20580 fi
20581
20582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20583 fi
20584
20585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20586 fi
20587 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
20588 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6; }
20589 if test $ac_cv_member_struct_reg_r_fs = yes; then
20590
20591 cat >>confdefs.h <<_ACEOF
20592 #define HAVE_STRUCT_REG_R_FS 1
20593 _ACEOF
20594
20595
20596 fi
20597 { echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
20598 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6; }
20599 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
20600 echo $ECHO_N "(cached) $ECHO_C" >&6
20601 else
20602 cat >conftest.$ac_ext <<_ACEOF
20603 /* confdefs.h. */
20604 _ACEOF
20605 cat confdefs.h >>conftest.$ac_ext
20606 cat >>conftest.$ac_ext <<_ACEOF
20607 /* end confdefs.h. */
20608 #include <machine/reg.h>
20609
20610 int
20611 main ()
20612 {
20613 static struct reg ac_aggr;
20614 if (ac_aggr.r_gs)
20615 return 0;
20616 ;
20617 return 0;
20618 }
20619 _ACEOF
20620 rm -f conftest.$ac_objext
20621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20622 (eval $ac_compile) 2>conftest.er1
20623 ac_status=$?
20624 grep -v '^ *+' conftest.er1 >conftest.err
20625 rm -f conftest.er1
20626 cat conftest.err >&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } &&
20629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631 (eval $ac_try) 2>&5
20632 ac_status=$?
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; } &&
20635 { ac_try='test -s conftest.$ac_objext'
20636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20637 (eval $ac_try) 2>&5
20638 ac_status=$?
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); }; }; then
20641 ac_cv_member_struct_reg_r_gs=yes
20642 else
20643 echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20645
20646 cat >conftest.$ac_ext <<_ACEOF
20647 /* confdefs.h. */
20648 _ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20652 #include <machine/reg.h>
20653
20654 int
20655 main ()
20656 {
20657 static struct reg ac_aggr;
20658 if (sizeof ac_aggr.r_gs)
20659 return 0;
20660 ;
20661 return 0;
20662 }
20663 _ACEOF
20664 rm -f conftest.$ac_objext
20665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20666 (eval $ac_compile) 2>conftest.er1
20667 ac_status=$?
20668 grep -v '^ *+' conftest.er1 >conftest.err
20669 rm -f conftest.er1
20670 cat conftest.err >&5
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); } &&
20673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20675 (eval $ac_try) 2>&5
20676 ac_status=$?
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); }; } &&
20679 { ac_try='test -s conftest.$ac_objext'
20680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20681 (eval $ac_try) 2>&5
20682 ac_status=$?
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); }; }; then
20685 ac_cv_member_struct_reg_r_gs=yes
20686 else
20687 echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20689
20690 ac_cv_member_struct_reg_r_gs=no
20691 fi
20692
20693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20694 fi
20695
20696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20697 fi
20698 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
20699 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6; }
20700 if test $ac_cv_member_struct_reg_r_gs = yes; then
20701
20702 cat >>confdefs.h <<_ACEOF
20703 #define HAVE_STRUCT_REG_R_GS 1
20704 _ACEOF
20705
20706
20707 fi
20708
20709
20710 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
20711 { echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
20712 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6; }
20713 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
20714 echo $ECHO_N "(cached) $ECHO_C" >&6
20715 else
20716 cat >conftest.$ac_ext <<_ACEOF
20717 /* confdefs.h. */
20718 _ACEOF
20719 cat confdefs.h >>conftest.$ac_ext
20720 cat >>conftest.$ac_ext <<_ACEOF
20721 /* end confdefs.h. */
20722 #include <sys/ptrace.h>
20723 int
20724 main ()
20725 {
20726 PTRACE_GETREGS;
20727 ;
20728 return 0;
20729 }
20730 _ACEOF
20731 rm -f conftest.$ac_objext
20732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20733 (eval $ac_compile) 2>conftest.er1
20734 ac_status=$?
20735 grep -v '^ *+' conftest.er1 >conftest.err
20736 rm -f conftest.er1
20737 cat conftest.err >&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); } &&
20740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742 (eval $ac_try) 2>&5
20743 ac_status=$?
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; } &&
20746 { ac_try='test -s conftest.$ac_objext'
20747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20748 (eval $ac_try) 2>&5
20749 ac_status=$?
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); }; }; then
20752 gdb_cv_have_ptrace_getregs=yes
20753 else
20754 echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20756
20757 gdb_cv_have_ptrace_getregs=no
20758 fi
20759
20760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20761 fi
20762
20763 { echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
20764 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6; }
20765 if test $gdb_cv_have_ptrace_getregs = yes; then
20766
20767 cat >>confdefs.h <<\_ACEOF
20768 #define HAVE_PTRACE_GETREGS 1
20769 _ACEOF
20770
20771 fi
20772
20773 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
20774 { echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
20775 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6; }
20776 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
20777 echo $ECHO_N "(cached) $ECHO_C" >&6
20778 else
20779 cat >conftest.$ac_ext <<_ACEOF
20780 /* confdefs.h. */
20781 _ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h. */
20785 #include <sys/ptrace.h>
20786 int
20787 main ()
20788 {
20789 PTRACE_GETFPXREGS;
20790 ;
20791 return 0;
20792 }
20793 _ACEOF
20794 rm -f conftest.$ac_objext
20795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20796 (eval $ac_compile) 2>conftest.er1
20797 ac_status=$?
20798 grep -v '^ *+' conftest.er1 >conftest.err
20799 rm -f conftest.er1
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } &&
20803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20805 (eval $ac_try) 2>&5
20806 ac_status=$?
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); }; } &&
20809 { ac_try='test -s conftest.$ac_objext'
20810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20811 (eval $ac_try) 2>&5
20812 ac_status=$?
20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); }; }; then
20815 gdb_cv_have_ptrace_getfpxregs=yes
20816 else
20817 echo "$as_me: failed program was:" >&5
20818 sed 's/^/| /' conftest.$ac_ext >&5
20819
20820 gdb_cv_have_ptrace_getfpxregs=no
20821 fi
20822
20823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20824 fi
20825
20826 { echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
20827 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6; }
20828 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
20829
20830 cat >>confdefs.h <<\_ACEOF
20831 #define HAVE_PTRACE_GETFPXREGS 1
20832 _ACEOF
20833
20834 fi
20835
20836 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
20837 { echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
20838 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6; }
20839 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
20840 echo $ECHO_N "(cached) $ECHO_C" >&6
20841 else
20842 cat >conftest.$ac_ext <<_ACEOF
20843 /* confdefs.h. */
20844 _ACEOF
20845 cat confdefs.h >>conftest.$ac_ext
20846 cat >>conftest.$ac_ext <<_ACEOF
20847 /* end confdefs.h. */
20848 #include <sys/types.h>
20849 #include <sys/ptrace.h>
20850 int
20851 main ()
20852 {
20853 PT_GETDBREGS;
20854 ;
20855 return 0;
20856 }
20857 _ACEOF
20858 rm -f conftest.$ac_objext
20859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20860 (eval $ac_compile) 2>conftest.er1
20861 ac_status=$?
20862 grep -v '^ *+' conftest.er1 >conftest.err
20863 rm -f conftest.er1
20864 cat conftest.err >&5
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); } &&
20867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869 (eval $ac_try) 2>&5
20870 ac_status=$?
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); }; } &&
20873 { ac_try='test -s conftest.$ac_objext'
20874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20875 (eval $ac_try) 2>&5
20876 ac_status=$?
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); }; }; then
20879 gdb_cv_have_pt_getdbregs=yes
20880 else
20881 echo "$as_me: failed program was:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20883
20884 gdb_cv_have_pt_getdbregs=no
20885 fi
20886
20887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20888 fi
20889
20890 { echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
20891 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6; }
20892 if test $gdb_cv_have_pt_getdbregs = yes; then
20893
20894 cat >>confdefs.h <<\_ACEOF
20895 #define HAVE_PT_GETDBREGS 1
20896 _ACEOF
20897
20898 fi
20899
20900 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
20901 { echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
20902 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6; }
20903 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
20904 echo $ECHO_N "(cached) $ECHO_C" >&6
20905 else
20906 cat >conftest.$ac_ext <<_ACEOF
20907 /* confdefs.h. */
20908 _ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h. */
20912 #include <sys/types.h>
20913 #include <sys/ptrace.h>
20914 int
20915 main ()
20916 {
20917 PT_GETXMMREGS;
20918 ;
20919 return 0;
20920 }
20921 _ACEOF
20922 rm -f conftest.$ac_objext
20923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20924 (eval $ac_compile) 2>conftest.er1
20925 ac_status=$?
20926 grep -v '^ *+' conftest.er1 >conftest.err
20927 rm -f conftest.er1
20928 cat conftest.err >&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); } &&
20931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20933 (eval $ac_try) 2>&5
20934 ac_status=$?
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); }; } &&
20937 { ac_try='test -s conftest.$ac_objext'
20938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20939 (eval $ac_try) 2>&5
20940 ac_status=$?
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; }; then
20943 gdb_cv_have_pt_getxmmregs=yes
20944 else
20945 echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20947
20948 gdb_cv_have_pt_getxmmregs=no
20949 fi
20950
20951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20952 fi
20953
20954 { echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
20955 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6; }
20956 if test $gdb_cv_have_pt_getxmmregs = yes; then
20957
20958 cat >>confdefs.h <<\_ACEOF
20959 #define HAVE_PT_GETXMMREGS 1
20960 _ACEOF
20961
20962 fi
20963
20964 # If we are configured native on GNU/Linux, work around problems with
20965 # sys/procfs.h
20966 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
20967
20968 if test "${target}" = "${host}"; then
20969 case "${host}" in
20970 i[3456]86-*-linux*)
20971
20972 cat >>confdefs.h <<\_ACEOF
20973 #define START_INFERIOR_TRAPS_EXPECTED 2
20974 _ACEOF
20975
20976
20977 cat >>confdefs.h <<\_ACEOF
20978 #define sys_quotactl 1
20979 _ACEOF
20980
20981 ;;
20982 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
20983
20984 cat >>confdefs.h <<\_ACEOF
20985 #define NEW_PROC_API 1
20986 _ACEOF
20987
20988 ;;
20989 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
20990
20991 cat >>confdefs.h <<\_ACEOF
20992 #define NEW_PROC_API 1
20993 _ACEOF
20994
20995 ;;
20996 mips-sgi-irix5*)
20997 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
20998
20999 cat >>confdefs.h <<\_ACEOF
21000 #define _KMEMUSER 1
21001 _ACEOF
21002
21003 ;;
21004 esac
21005 fi
21006
21007 if test "$ac_cv_header_sys_procfs_h" = yes; then
21008 { echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
21009 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6; }
21010 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
21011 echo $ECHO_N "(cached) $ECHO_C" >&6
21012 else
21013 cat >conftest.$ac_ext <<_ACEOF
21014 /* confdefs.h. */
21015 _ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21019
21020 #define _SYSCALL32
21021 #include <sys/procfs.h>
21022 int
21023 main ()
21024 {
21025 pstatus_t avar
21026 ;
21027 return 0;
21028 }
21029 _ACEOF
21030 rm -f conftest.$ac_objext
21031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21032 (eval $ac_compile) 2>conftest.er1
21033 ac_status=$?
21034 grep -v '^ *+' conftest.er1 >conftest.err
21035 rm -f conftest.er1
21036 cat conftest.err >&5
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); } &&
21039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041 (eval $ac_try) 2>&5
21042 ac_status=$?
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; } &&
21045 { ac_try='test -s conftest.$ac_objext'
21046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047 (eval $ac_try) 2>&5
21048 ac_status=$?
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); }; }; then
21051 bfd_cv_have_sys_procfs_type_pstatus_t=yes
21052 else
21053 echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21055
21056 bfd_cv_have_sys_procfs_type_pstatus_t=no
21057
21058 fi
21059
21060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21061 fi
21062
21063 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
21064
21065 cat >>confdefs.h <<\_ACEOF
21066 #define HAVE_PSTATUS_T 1
21067 _ACEOF
21068
21069 fi
21070 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
21071 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
21072
21073 { echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
21074 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6; }
21075 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
21076 echo $ECHO_N "(cached) $ECHO_C" >&6
21077 else
21078 cat >conftest.$ac_ext <<_ACEOF
21079 /* confdefs.h. */
21080 _ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h. */
21084
21085 #define _SYSCALL32
21086 #include <sys/procfs.h>
21087 int
21088 main ()
21089 {
21090 prrun_t avar
21091 ;
21092 return 0;
21093 }
21094 _ACEOF
21095 rm -f conftest.$ac_objext
21096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21097 (eval $ac_compile) 2>conftest.er1
21098 ac_status=$?
21099 grep -v '^ *+' conftest.er1 >conftest.err
21100 rm -f conftest.er1
21101 cat conftest.err >&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } &&
21104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106 (eval $ac_try) 2>&5
21107 ac_status=$?
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); }; } &&
21110 { ac_try='test -s conftest.$ac_objext'
21111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112 (eval $ac_try) 2>&5
21113 ac_status=$?
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; }; then
21116 bfd_cv_have_sys_procfs_type_prrun_t=yes
21117 else
21118 echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21120
21121 bfd_cv_have_sys_procfs_type_prrun_t=no
21122
21123 fi
21124
21125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21126 fi
21127
21128 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
21129
21130 cat >>confdefs.h <<\_ACEOF
21131 #define HAVE_PRRUN_T 1
21132 _ACEOF
21133
21134 fi
21135 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
21136 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
21137
21138 { echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
21139 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6; }
21140 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
21141 echo $ECHO_N "(cached) $ECHO_C" >&6
21142 else
21143 cat >conftest.$ac_ext <<_ACEOF
21144 /* confdefs.h. */
21145 _ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h. */
21149
21150 #define _SYSCALL32
21151 #include <sys/procfs.h>
21152 int
21153 main ()
21154 {
21155 gregset_t avar
21156 ;
21157 return 0;
21158 }
21159 _ACEOF
21160 rm -f conftest.$ac_objext
21161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21162 (eval $ac_compile) 2>conftest.er1
21163 ac_status=$?
21164 grep -v '^ *+' conftest.er1 >conftest.err
21165 rm -f conftest.er1
21166 cat conftest.err >&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } &&
21169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21171 (eval $ac_try) 2>&5
21172 ac_status=$?
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); }; } &&
21175 { ac_try='test -s conftest.$ac_objext'
21176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21177 (eval $ac_try) 2>&5
21178 ac_status=$?
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); }; }; then
21181 bfd_cv_have_sys_procfs_type_gregset_t=yes
21182 else
21183 echo "$as_me: failed program was:" >&5
21184 sed 's/^/| /' conftest.$ac_ext >&5
21185
21186 bfd_cv_have_sys_procfs_type_gregset_t=no
21187
21188 fi
21189
21190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21191 fi
21192
21193 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
21194
21195 cat >>confdefs.h <<\_ACEOF
21196 #define HAVE_GREGSET_T 1
21197 _ACEOF
21198
21199 fi
21200 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
21201 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
21202
21203 { echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
21204 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6; }
21205 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
21206 echo $ECHO_N "(cached) $ECHO_C" >&6
21207 else
21208 cat >conftest.$ac_ext <<_ACEOF
21209 /* confdefs.h. */
21210 _ACEOF
21211 cat confdefs.h >>conftest.$ac_ext
21212 cat >>conftest.$ac_ext <<_ACEOF
21213 /* end confdefs.h. */
21214
21215 #define _SYSCALL32
21216 #include <sys/procfs.h>
21217 int
21218 main ()
21219 {
21220 fpregset_t avar
21221 ;
21222 return 0;
21223 }
21224 _ACEOF
21225 rm -f conftest.$ac_objext
21226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21227 (eval $ac_compile) 2>conftest.er1
21228 ac_status=$?
21229 grep -v '^ *+' conftest.er1 >conftest.err
21230 rm -f conftest.er1
21231 cat conftest.err >&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } &&
21234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21236 (eval $ac_try) 2>&5
21237 ac_status=$?
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); }; } &&
21240 { ac_try='test -s conftest.$ac_objext'
21241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21242 (eval $ac_try) 2>&5
21243 ac_status=$?
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); }; }; then
21246 bfd_cv_have_sys_procfs_type_fpregset_t=yes
21247 else
21248 echo "$as_me: failed program was:" >&5
21249 sed 's/^/| /' conftest.$ac_ext >&5
21250
21251 bfd_cv_have_sys_procfs_type_fpregset_t=no
21252
21253 fi
21254
21255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21256 fi
21257
21258 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
21259
21260 cat >>confdefs.h <<\_ACEOF
21261 #define HAVE_FPREGSET_T 1
21262 _ACEOF
21263
21264 fi
21265 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
21266 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
21267
21268 { echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
21269 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6; }
21270 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
21271 echo $ECHO_N "(cached) $ECHO_C" >&6
21272 else
21273 cat >conftest.$ac_ext <<_ACEOF
21274 /* confdefs.h. */
21275 _ACEOF
21276 cat confdefs.h >>conftest.$ac_ext
21277 cat >>conftest.$ac_ext <<_ACEOF
21278 /* end confdefs.h. */
21279
21280 #define _SYSCALL32
21281 #include <sys/procfs.h>
21282 int
21283 main ()
21284 {
21285 prgregset_t avar
21286 ;
21287 return 0;
21288 }
21289 _ACEOF
21290 rm -f conftest.$ac_objext
21291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21292 (eval $ac_compile) 2>conftest.er1
21293 ac_status=$?
21294 grep -v '^ *+' conftest.er1 >conftest.err
21295 rm -f conftest.er1
21296 cat conftest.err >&5
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } &&
21299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301 (eval $ac_try) 2>&5
21302 ac_status=$?
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); }; } &&
21305 { ac_try='test -s conftest.$ac_objext'
21306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21307 (eval $ac_try) 2>&5
21308 ac_status=$?
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); }; }; then
21311 bfd_cv_have_sys_procfs_type_prgregset_t=yes
21312 else
21313 echo "$as_me: failed program was:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21315
21316 bfd_cv_have_sys_procfs_type_prgregset_t=no
21317
21318 fi
21319
21320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21321 fi
21322
21323 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
21324
21325 cat >>confdefs.h <<\_ACEOF
21326 #define HAVE_PRGREGSET_T 1
21327 _ACEOF
21328
21329 fi
21330 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
21331 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
21332
21333 { echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
21334 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6; }
21335 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
21336 echo $ECHO_N "(cached) $ECHO_C" >&6
21337 else
21338 cat >conftest.$ac_ext <<_ACEOF
21339 /* confdefs.h. */
21340 _ACEOF
21341 cat confdefs.h >>conftest.$ac_ext
21342 cat >>conftest.$ac_ext <<_ACEOF
21343 /* end confdefs.h. */
21344
21345 #define _SYSCALL32
21346 #include <sys/procfs.h>
21347 int
21348 main ()
21349 {
21350 prfpregset_t avar
21351 ;
21352 return 0;
21353 }
21354 _ACEOF
21355 rm -f conftest.$ac_objext
21356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21357 (eval $ac_compile) 2>conftest.er1
21358 ac_status=$?
21359 grep -v '^ *+' conftest.er1 >conftest.err
21360 rm -f conftest.er1
21361 cat conftest.err >&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } &&
21364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21366 (eval $ac_try) 2>&5
21367 ac_status=$?
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); }; } &&
21370 { ac_try='test -s conftest.$ac_objext'
21371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21372 (eval $ac_try) 2>&5
21373 ac_status=$?
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); }; }; then
21376 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
21377 else
21378 echo "$as_me: failed program was:" >&5
21379 sed 's/^/| /' conftest.$ac_ext >&5
21380
21381 bfd_cv_have_sys_procfs_type_prfpregset_t=no
21382
21383 fi
21384
21385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21386 fi
21387
21388 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
21389
21390 cat >>confdefs.h <<\_ACEOF
21391 #define HAVE_PRFPREGSET_T 1
21392 _ACEOF
21393
21394 fi
21395 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
21396 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
21397
21398 { echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
21399 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6; }
21400 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
21401 echo $ECHO_N "(cached) $ECHO_C" >&6
21402 else
21403 cat >conftest.$ac_ext <<_ACEOF
21404 /* confdefs.h. */
21405 _ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h. */
21409
21410 #define _SYSCALL32
21411 #include <sys/procfs.h>
21412 int
21413 main ()
21414 {
21415 prgregset32_t avar
21416 ;
21417 return 0;
21418 }
21419 _ACEOF
21420 rm -f conftest.$ac_objext
21421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21422 (eval $ac_compile) 2>conftest.er1
21423 ac_status=$?
21424 grep -v '^ *+' conftest.er1 >conftest.err
21425 rm -f conftest.er1
21426 cat conftest.err >&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } &&
21429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431 (eval $ac_try) 2>&5
21432 ac_status=$?
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); }; } &&
21435 { ac_try='test -s conftest.$ac_objext'
21436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21437 (eval $ac_try) 2>&5
21438 ac_status=$?
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); }; }; then
21441 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
21442 else
21443 echo "$as_me: failed program was:" >&5
21444 sed 's/^/| /' conftest.$ac_ext >&5
21445
21446 bfd_cv_have_sys_procfs_type_prgregset32_t=no
21447
21448 fi
21449
21450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21451 fi
21452
21453 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
21454
21455 cat >>confdefs.h <<\_ACEOF
21456 #define HAVE_PRGREGSET32_T 1
21457 _ACEOF
21458
21459 fi
21460 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
21461 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
21462
21463 { echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
21464 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6; }
21465 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
21466 echo $ECHO_N "(cached) $ECHO_C" >&6
21467 else
21468 cat >conftest.$ac_ext <<_ACEOF
21469 /* confdefs.h. */
21470 _ACEOF
21471 cat confdefs.h >>conftest.$ac_ext
21472 cat >>conftest.$ac_ext <<_ACEOF
21473 /* end confdefs.h. */
21474
21475 #define _SYSCALL32
21476 #include <sys/procfs.h>
21477 int
21478 main ()
21479 {
21480 prfpregset32_t avar
21481 ;
21482 return 0;
21483 }
21484 _ACEOF
21485 rm -f conftest.$ac_objext
21486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21487 (eval $ac_compile) 2>conftest.er1
21488 ac_status=$?
21489 grep -v '^ *+' conftest.er1 >conftest.err
21490 rm -f conftest.er1
21491 cat conftest.err >&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } &&
21494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21496 (eval $ac_try) 2>&5
21497 ac_status=$?
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); }; } &&
21500 { ac_try='test -s conftest.$ac_objext'
21501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21502 (eval $ac_try) 2>&5
21503 ac_status=$?
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); }; }; then
21506 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
21507 else
21508 echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.$ac_ext >&5
21510
21511 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
21512
21513 fi
21514
21515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21516 fi
21517
21518 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
21519
21520 cat >>confdefs.h <<\_ACEOF
21521 #define HAVE_PRFPREGSET32_T 1
21522 _ACEOF
21523
21524 fi
21525 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
21526 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
21527
21528 { echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
21529 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6; }
21530 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
21531 echo $ECHO_N "(cached) $ECHO_C" >&6
21532 else
21533 cat >conftest.$ac_ext <<_ACEOF
21534 /* confdefs.h. */
21535 _ACEOF
21536 cat confdefs.h >>conftest.$ac_ext
21537 cat >>conftest.$ac_ext <<_ACEOF
21538 /* end confdefs.h. */
21539
21540 #define _SYSCALL32
21541 #include <sys/procfs.h>
21542 int
21543 main ()
21544 {
21545 lwpid_t avar
21546 ;
21547 return 0;
21548 }
21549 _ACEOF
21550 rm -f conftest.$ac_objext
21551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21552 (eval $ac_compile) 2>conftest.er1
21553 ac_status=$?
21554 grep -v '^ *+' conftest.er1 >conftest.err
21555 rm -f conftest.er1
21556 cat conftest.err >&5
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); } &&
21559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561 (eval $ac_try) 2>&5
21562 ac_status=$?
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; } &&
21565 { ac_try='test -s conftest.$ac_objext'
21566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567 (eval $ac_try) 2>&5
21568 ac_status=$?
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; }; then
21571 bfd_cv_have_sys_procfs_type_lwpid_t=yes
21572 else
21573 echo "$as_me: failed program was:" >&5
21574 sed 's/^/| /' conftest.$ac_ext >&5
21575
21576 bfd_cv_have_sys_procfs_type_lwpid_t=no
21577
21578 fi
21579
21580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21581 fi
21582
21583 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
21584
21585 cat >>confdefs.h <<\_ACEOF
21586 #define HAVE_LWPID_T 1
21587 _ACEOF
21588
21589 fi
21590 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
21591 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
21592
21593 { echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
21594 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6; }
21595 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
21596 echo $ECHO_N "(cached) $ECHO_C" >&6
21597 else
21598 cat >conftest.$ac_ext <<_ACEOF
21599 /* confdefs.h. */
21600 _ACEOF
21601 cat confdefs.h >>conftest.$ac_ext
21602 cat >>conftest.$ac_ext <<_ACEOF
21603 /* end confdefs.h. */
21604
21605 #define _SYSCALL32
21606 #include <sys/procfs.h>
21607 int
21608 main ()
21609 {
21610 psaddr_t avar
21611 ;
21612 return 0;
21613 }
21614 _ACEOF
21615 rm -f conftest.$ac_objext
21616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21617 (eval $ac_compile) 2>conftest.er1
21618 ac_status=$?
21619 grep -v '^ *+' conftest.er1 >conftest.err
21620 rm -f conftest.er1
21621 cat conftest.err >&5
21622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); } &&
21624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21626 (eval $ac_try) 2>&5
21627 ac_status=$?
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); }; } &&
21630 { ac_try='test -s conftest.$ac_objext'
21631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21632 (eval $ac_try) 2>&5
21633 ac_status=$?
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); }; }; then
21636 bfd_cv_have_sys_procfs_type_psaddr_t=yes
21637 else
21638 echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21640
21641 bfd_cv_have_sys_procfs_type_psaddr_t=no
21642
21643 fi
21644
21645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21646 fi
21647
21648 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
21649
21650 cat >>confdefs.h <<\_ACEOF
21651 #define HAVE_PSADDR_T 1
21652 _ACEOF
21653
21654 fi
21655 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
21656 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
21657
21658 { echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
21659 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6; }
21660 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
21661 echo $ECHO_N "(cached) $ECHO_C" >&6
21662 else
21663 cat >conftest.$ac_ext <<_ACEOF
21664 /* confdefs.h. */
21665 _ACEOF
21666 cat confdefs.h >>conftest.$ac_ext
21667 cat >>conftest.$ac_ext <<_ACEOF
21668 /* end confdefs.h. */
21669
21670 #define _SYSCALL32
21671 #include <sys/procfs.h>
21672 int
21673 main ()
21674 {
21675 prsysent_t avar
21676 ;
21677 return 0;
21678 }
21679 _ACEOF
21680 rm -f conftest.$ac_objext
21681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21682 (eval $ac_compile) 2>conftest.er1
21683 ac_status=$?
21684 grep -v '^ *+' conftest.er1 >conftest.err
21685 rm -f conftest.er1
21686 cat conftest.err >&5
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); } &&
21689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21691 (eval $ac_try) 2>&5
21692 ac_status=$?
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); }; } &&
21695 { ac_try='test -s conftest.$ac_objext'
21696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21697 (eval $ac_try) 2>&5
21698 ac_status=$?
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); }; }; then
21701 bfd_cv_have_sys_procfs_type_prsysent_t=yes
21702 else
21703 echo "$as_me: failed program was:" >&5
21704 sed 's/^/| /' conftest.$ac_ext >&5
21705
21706 bfd_cv_have_sys_procfs_type_prsysent_t=no
21707
21708 fi
21709
21710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21711 fi
21712
21713 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
21714
21715 cat >>confdefs.h <<\_ACEOF
21716 #define HAVE_PRSYSENT_T 1
21717 _ACEOF
21718
21719 fi
21720 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
21721 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
21722
21723 { echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
21724 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6; }
21725 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
21726 echo $ECHO_N "(cached) $ECHO_C" >&6
21727 else
21728 cat >conftest.$ac_ext <<_ACEOF
21729 /* confdefs.h. */
21730 _ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h. */
21734
21735 #define _SYSCALL32
21736 #include <sys/procfs.h>
21737 int
21738 main ()
21739 {
21740 pr_sigset_t avar
21741 ;
21742 return 0;
21743 }
21744 _ACEOF
21745 rm -f conftest.$ac_objext
21746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21747 (eval $ac_compile) 2>conftest.er1
21748 ac_status=$?
21749 grep -v '^ *+' conftest.er1 >conftest.err
21750 rm -f conftest.er1
21751 cat conftest.err >&5
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); } &&
21754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21756 (eval $ac_try) 2>&5
21757 ac_status=$?
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); }; } &&
21760 { ac_try='test -s conftest.$ac_objext'
21761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21762 (eval $ac_try) 2>&5
21763 ac_status=$?
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); }; }; then
21766 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
21767 else
21768 echo "$as_me: failed program was:" >&5
21769 sed 's/^/| /' conftest.$ac_ext >&5
21770
21771 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
21772
21773 fi
21774
21775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21776 fi
21777
21778 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
21779
21780 cat >>confdefs.h <<\_ACEOF
21781 #define HAVE_PR_SIGSET_T 1
21782 _ACEOF
21783
21784 fi
21785 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
21786 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
21787
21788 { echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
21789 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6; }
21790 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
21791 echo $ECHO_N "(cached) $ECHO_C" >&6
21792 else
21793 cat >conftest.$ac_ext <<_ACEOF
21794 /* confdefs.h. */
21795 _ACEOF
21796 cat confdefs.h >>conftest.$ac_ext
21797 cat >>conftest.$ac_ext <<_ACEOF
21798 /* end confdefs.h. */
21799
21800 #define _SYSCALL32
21801 #include <sys/procfs.h>
21802 int
21803 main ()
21804 {
21805 pr_sigaction64_t avar
21806 ;
21807 return 0;
21808 }
21809 _ACEOF
21810 rm -f conftest.$ac_objext
21811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21812 (eval $ac_compile) 2>conftest.er1
21813 ac_status=$?
21814 grep -v '^ *+' conftest.er1 >conftest.err
21815 rm -f conftest.er1
21816 cat conftest.err >&5
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); } &&
21819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21821 (eval $ac_try) 2>&5
21822 ac_status=$?
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); }; } &&
21825 { ac_try='test -s conftest.$ac_objext'
21826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21827 (eval $ac_try) 2>&5
21828 ac_status=$?
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); }; }; then
21831 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
21832 else
21833 echo "$as_me: failed program was:" >&5
21834 sed 's/^/| /' conftest.$ac_ext >&5
21835
21836 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
21837
21838 fi
21839
21840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21841 fi
21842
21843 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
21844
21845 cat >>confdefs.h <<\_ACEOF
21846 #define HAVE_PR_SIGACTION64_T 1
21847 _ACEOF
21848
21849 fi
21850 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
21851 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
21852
21853 { echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
21854 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6; }
21855 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
21856 echo $ECHO_N "(cached) $ECHO_C" >&6
21857 else
21858 cat >conftest.$ac_ext <<_ACEOF
21859 /* confdefs.h. */
21860 _ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h. */
21864
21865 #define _SYSCALL32
21866 #include <sys/procfs.h>
21867 int
21868 main ()
21869 {
21870 pr_siginfo64_t avar
21871 ;
21872 return 0;
21873 }
21874 _ACEOF
21875 rm -f conftest.$ac_objext
21876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21877 (eval $ac_compile) 2>conftest.er1
21878 ac_status=$?
21879 grep -v '^ *+' conftest.er1 >conftest.err
21880 rm -f conftest.er1
21881 cat conftest.err >&5
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); } &&
21884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5
21887 ac_status=$?
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; } &&
21890 { ac_try='test -s conftest.$ac_objext'
21891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892 (eval $ac_try) 2>&5
21893 ac_status=$?
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); }; }; then
21896 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
21897 else
21898 echo "$as_me: failed program was:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21900
21901 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
21902
21903 fi
21904
21905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21906 fi
21907
21908 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
21909
21910 cat >>confdefs.h <<\_ACEOF
21911 #define HAVE_PR_SIGINFO64_T 1
21912 _ACEOF
21913
21914 fi
21915 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
21916 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
21917
21918
21919
21920
21921
21922 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
21923 { echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
21924 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6; }
21925 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
21926 echo $ECHO_N "(cached) $ECHO_C" >&6
21927 else
21928 if test "$cross_compiling" = yes; then
21929 gdb_cv_prfpregset_t_broken=yes
21930 else
21931 cat >conftest.$ac_ext <<_ACEOF
21932 /* confdefs.h. */
21933 _ACEOF
21934 cat confdefs.h >>conftest.$ac_ext
21935 cat >>conftest.$ac_ext <<_ACEOF
21936 /* end confdefs.h. */
21937 #include <sys/procfs.h>
21938 int main ()
21939 {
21940 if (sizeof (prfpregset_t) == sizeof (void *))
21941 return 1;
21942 return 0;
21943 }
21944 _ACEOF
21945 rm -f conftest$ac_exeext
21946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21947 (eval $ac_link) 2>&5
21948 ac_status=$?
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21952 (eval $ac_try) 2>&5
21953 ac_status=$?
21954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); }; }; then
21956 gdb_cv_prfpregset_t_broken=no
21957 else
21958 echo "$as_me: program exited with status $ac_status" >&5
21959 echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21961
21962 ( exit $ac_status )
21963 gdb_cv_prfpregset_t_broken=yes
21964 fi
21965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21966 fi
21967
21968
21969 fi
21970
21971 { echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
21972 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6; }
21973 if test $gdb_cv_prfpregset_t_broken = yes; then
21974
21975 cat >>confdefs.h <<\_ACEOF
21976 #define PRFPREGSET_T_BROKEN 1
21977 _ACEOF
21978
21979 fi
21980 fi
21981
21982
21983 { echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
21984 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6; }
21985 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
21986 echo $ECHO_N "(cached) $ECHO_C" >&6
21987 else
21988 cat >conftest.$ac_ext <<_ACEOF
21989 /* confdefs.h. */
21990 _ACEOF
21991 cat confdefs.h >>conftest.$ac_ext
21992 cat >>conftest.$ac_ext <<_ACEOF
21993 /* end confdefs.h. */
21994 #include <unistd.h>
21995 #include <sys/types.h>
21996 #include <sys/procfs.h>
21997
21998 int
21999 main ()
22000 {
22001
22002 int dummy;;
22003 dummy = ioctl(0, PIOCSET, &dummy);
22004
22005 ;
22006 return 0;
22007 }
22008 _ACEOF
22009 rm -f conftest.$ac_objext
22010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22011 (eval $ac_compile) 2>conftest.er1
22012 ac_status=$?
22013 grep -v '^ *+' conftest.er1 >conftest.err
22014 rm -f conftest.er1
22015 cat conftest.err >&5
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); } &&
22018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22020 (eval $ac_try) 2>&5
22021 ac_status=$?
22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); }; } &&
22024 { ac_try='test -s conftest.$ac_objext'
22025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22026 (eval $ac_try) 2>&5
22027 ac_status=$?
22028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029 (exit $ac_status); }; }; then
22030 gdb_cv_have_procfs_piocset=yes
22031 else
22032 echo "$as_me: failed program was:" >&5
22033 sed 's/^/| /' conftest.$ac_ext >&5
22034
22035 gdb_cv_have_procfs_piocset=no
22036 fi
22037
22038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22039 fi
22040
22041 { echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
22042 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6; }
22043 if test $gdb_cv_have_procfs_piocset = yes; then
22044
22045 cat >>confdefs.h <<\_ACEOF
22046 #define HAVE_PROCFS_PIOCSET 1
22047 _ACEOF
22048
22049 fi
22050 fi
22051
22052 if test ${host} = ${target} ; then
22053
22054 { echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
22055 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6; }
22056 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
22057 echo $ECHO_N "(cached) $ECHO_C" >&6
22058 else
22059 cat >conftest.$ac_ext <<_ACEOF
22060 /* confdefs.h. */
22061 _ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h. */
22065 #include <link.h>
22066 int
22067 main ()
22068 {
22069 struct link_map lm; (void) lm.l_addr;
22070 ;
22071 return 0;
22072 }
22073 _ACEOF
22074 rm -f conftest.$ac_objext
22075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22076 (eval $ac_compile) 2>conftest.er1
22077 ac_status=$?
22078 grep -v '^ *+' conftest.er1 >conftest.err
22079 rm -f conftest.er1
22080 cat conftest.err >&5
22081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); } &&
22083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22085 (eval $ac_try) 2>&5
22086 ac_status=$?
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); }; } &&
22089 { ac_try='test -s conftest.$ac_objext'
22090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22091 (eval $ac_try) 2>&5
22092 ac_status=$?
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); }; }; then
22095 gdb_cv_have_struct_link_map_with_l_members=yes
22096 else
22097 echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22099
22100 gdb_cv_have_struct_link_map_with_l_members=no
22101 fi
22102
22103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22104 fi
22105
22106 { echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
22107 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6; }
22108 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
22109
22110 cat >>confdefs.h <<\_ACEOF
22111 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
22112 _ACEOF
22113
22114 fi
22115
22116
22117 { echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
22118 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6; }
22119 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
22120 echo $ECHO_N "(cached) $ECHO_C" >&6
22121 else
22122 cat >conftest.$ac_ext <<_ACEOF
22123 /* confdefs.h. */
22124 _ACEOF
22125 cat confdefs.h >>conftest.$ac_ext
22126 cat >>conftest.$ac_ext <<_ACEOF
22127 /* end confdefs.h. */
22128 #include <sys/types.h>
22129 #include <link.h>
22130 int
22131 main ()
22132 {
22133 struct link_map lm; (void) lm.lm_addr;
22134 ;
22135 return 0;
22136 }
22137 _ACEOF
22138 rm -f conftest.$ac_objext
22139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22140 (eval $ac_compile) 2>conftest.er1
22141 ac_status=$?
22142 grep -v '^ *+' conftest.er1 >conftest.err
22143 rm -f conftest.er1
22144 cat conftest.err >&5
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); } &&
22147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22149 (eval $ac_try) 2>&5
22150 ac_status=$?
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); }; } &&
22153 { ac_try='test -s conftest.$ac_objext'
22154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22155 (eval $ac_try) 2>&5
22156 ac_status=$?
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); }; }; then
22159 gdb_cv_have_struct_link_map_with_lm_members=yes
22160 else
22161 echo "$as_me: failed program was:" >&5
22162 sed 's/^/| /' conftest.$ac_ext >&5
22163
22164 gdb_cv_have_struct_link_map_with_lm_members=no
22165 fi
22166
22167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22168 fi
22169
22170 { echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
22171 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
22172 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
22173
22174 cat >>confdefs.h <<\_ACEOF
22175 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
22176 _ACEOF
22177
22178 fi
22179
22180
22181 { echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
22182 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6; }
22183 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
22184 echo $ECHO_N "(cached) $ECHO_C" >&6
22185 else
22186 cat >conftest.$ac_ext <<_ACEOF
22187 /* confdefs.h. */
22188 _ACEOF
22189 cat confdefs.h >>conftest.$ac_ext
22190 cat >>conftest.$ac_ext <<_ACEOF
22191 /* end confdefs.h. */
22192 #include <sys/types.h>
22193 #ifdef HAVE_NLIST_H
22194 #include <nlist.h>
22195 #endif
22196 #include <link.h>
22197 int
22198 main ()
22199 {
22200 struct so_map lm; (void) lm.som_addr;
22201 ;
22202 return 0;
22203 }
22204 _ACEOF
22205 rm -f conftest.$ac_objext
22206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22207 (eval $ac_compile) 2>conftest.er1
22208 ac_status=$?
22209 grep -v '^ *+' conftest.er1 >conftest.err
22210 rm -f conftest.er1
22211 cat conftest.err >&5
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); } &&
22214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22216 (eval $ac_try) 2>&5
22217 ac_status=$?
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); }; } &&
22220 { ac_try='test -s conftest.$ac_objext'
22221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222 (eval $ac_try) 2>&5
22223 ac_status=$?
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); }; }; then
22226 gdb_cv_have_struct_so_map_with_som_members=yes
22227 else
22228 echo "$as_me: failed program was:" >&5
22229 sed 's/^/| /' conftest.$ac_ext >&5
22230
22231 gdb_cv_have_struct_so_map_with_som_members=no
22232 fi
22233
22234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22235 fi
22236
22237 { echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
22238 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6; }
22239 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
22240
22241 cat >>confdefs.h <<\_ACEOF
22242 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
22243 _ACEOF
22244
22245 fi
22246
22247
22248 { echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
22249 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6; }
22250 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
22251 echo $ECHO_N "(cached) $ECHO_C" >&6
22252 else
22253 cat >conftest.$ac_ext <<_ACEOF
22254 /* confdefs.h. */
22255 _ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h. */
22259 #define _SYSCALL32
22260 #include <sys/link.h>
22261 int
22262 main ()
22263 {
22264 struct link_map32 l;
22265 ;
22266 return 0;
22267 }
22268 _ACEOF
22269 rm -f conftest.$ac_objext
22270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22271 (eval $ac_compile) 2>conftest.er1
22272 ac_status=$?
22273 grep -v '^ *+' conftest.er1 >conftest.err
22274 rm -f conftest.er1
22275 cat conftest.err >&5
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); } &&
22278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280 (eval $ac_try) 2>&5
22281 ac_status=$?
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); }; } &&
22284 { ac_try='test -s conftest.$ac_objext'
22285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22286 (eval $ac_try) 2>&5
22287 ac_status=$?
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); }; }; then
22290 gdb_cv_have_struct_link_map32=yes
22291 else
22292 echo "$as_me: failed program was:" >&5
22293 sed 's/^/| /' conftest.$ac_ext >&5
22294
22295 gdb_cv_have_struct_link_map32=no
22296 fi
22297
22298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22299 fi
22300
22301 { echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
22302 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6; }
22303 if test $gdb_cv_have_struct_link_map32 = yes; then
22304
22305 cat >>confdefs.h <<\_ACEOF
22306 #define HAVE_STRUCT_LINK_MAP32 1
22307 _ACEOF
22308
22309
22310 cat >>confdefs.h <<\_ACEOF
22311 #define _SYSCALL32 1
22312 _ACEOF
22313
22314 fi
22315 fi
22316
22317 # Check if the compiler supports the `long long' type.
22318
22319 { echo "$as_me:$LINENO: checking for long long support in compiler" >&5
22320 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6; }
22321 if test "${gdb_cv_c_long_long+set}" = set; then
22322 echo $ECHO_N "(cached) $ECHO_C" >&6
22323 else
22324 cat >conftest.$ac_ext <<_ACEOF
22325 /* confdefs.h. */
22326 _ACEOF
22327 cat confdefs.h >>conftest.$ac_ext
22328 cat >>conftest.$ac_ext <<_ACEOF
22329 /* end confdefs.h. */
22330 extern long long foo;
22331 int
22332 main ()
22333 {
22334 switch (foo & 2) { case 0: return 1; }
22335 ;
22336 return 0;
22337 }
22338 _ACEOF
22339 rm -f conftest.$ac_objext
22340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22341 (eval $ac_compile) 2>conftest.er1
22342 ac_status=$?
22343 grep -v '^ *+' conftest.er1 >conftest.err
22344 rm -f conftest.er1
22345 cat conftest.err >&5
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); } &&
22348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22350 (eval $ac_try) 2>&5
22351 ac_status=$?
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); }; } &&
22354 { ac_try='test -s conftest.$ac_objext'
22355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22356 (eval $ac_try) 2>&5
22357 ac_status=$?
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); }; }; then
22360 gdb_cv_c_long_long=yes
22361 else
22362 echo "$as_me: failed program was:" >&5
22363 sed 's/^/| /' conftest.$ac_ext >&5
22364
22365 gdb_cv_c_long_long=no
22366 fi
22367
22368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22369 fi
22370 { echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
22371 echo "${ECHO_T}$gdb_cv_c_long_long" >&6; }
22372 if test $gdb_cv_c_long_long = yes; then
22373
22374 cat >>confdefs.h <<\_ACEOF
22375 #define CC_HAS_LONG_LONG 1
22376 _ACEOF
22377
22378 fi
22379
22380 # Check if the compiler and runtime support printing long longs.
22381
22382 { echo "$as_me:$LINENO: checking for long long support in printf" >&5
22383 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6; }
22384 if test "${gdb_cv_printf_has_long_long+set}" = set; then
22385 echo $ECHO_N "(cached) $ECHO_C" >&6
22386 else
22387 if test "$cross_compiling" = yes; then
22388 gdb_cv_printf_has_long_long=no
22389 else
22390 cat >conftest.$ac_ext <<_ACEOF
22391 /* confdefs.h. */
22392 _ACEOF
22393 cat confdefs.h >>conftest.$ac_ext
22394 cat >>conftest.$ac_ext <<_ACEOF
22395 /* end confdefs.h. */
22396 $ac_includes_default
22397 int
22398 main ()
22399 {
22400 char buf[32];
22401 long long l = 0;
22402 l = (l << 16) + 0x0123;
22403 l = (l << 16) + 0x4567;
22404 l = (l << 16) + 0x89ab;
22405 l = (l << 16) + 0xcdef;
22406 sprintf (buf, "0x%016llx", l);
22407 return (strcmp ("0x0123456789abcdef", buf));
22408 ;
22409 return 0;
22410 }
22411 _ACEOF
22412 rm -f conftest$ac_exeext
22413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22414 (eval $ac_link) 2>&5
22415 ac_status=$?
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22419 (eval $ac_try) 2>&5
22420 ac_status=$?
22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); }; }; then
22423 gdb_cv_printf_has_long_long=yes
22424 else
22425 echo "$as_me: program exited with status $ac_status" >&5
22426 echo "$as_me: failed program was:" >&5
22427 sed 's/^/| /' conftest.$ac_ext >&5
22428
22429 ( exit $ac_status )
22430 gdb_cv_printf_has_long_long=no
22431 fi
22432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22433 fi
22434
22435
22436 fi
22437 { echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
22438 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6; }
22439 if test $gdb_cv_printf_has_long_long = yes; then
22440
22441 cat >>confdefs.h <<\_ACEOF
22442 #define PRINTF_HAS_LONG_LONG 1
22443 _ACEOF
22444
22445 fi
22446
22447 # Check if the compiler supports the `long double' type. We can't use
22448 # AC_C_LONG_DOUBLE because that one does additional checks on the
22449 # constants defined in <float.h> that fail on some systems,
22450 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
22451
22452 { echo "$as_me:$LINENO: checking for long double support in compiler" >&5
22453 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6; }
22454 if test "${gdb_cv_c_long_double+set}" = set; then
22455 echo $ECHO_N "(cached) $ECHO_C" >&6
22456 else
22457 cat >conftest.$ac_ext <<_ACEOF
22458 /* confdefs.h. */
22459 _ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h. */
22463 long double foo;
22464 _ACEOF
22465 rm -f conftest.$ac_objext
22466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22467 (eval $ac_compile) 2>conftest.er1
22468 ac_status=$?
22469 grep -v '^ *+' conftest.er1 >conftest.err
22470 rm -f conftest.er1
22471 cat conftest.err >&5
22472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473 (exit $ac_status); } &&
22474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22476 (eval $ac_try) 2>&5
22477 ac_status=$?
22478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); }; } &&
22480 { ac_try='test -s conftest.$ac_objext'
22481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22482 (eval $ac_try) 2>&5
22483 ac_status=$?
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); }; }; then
22486 gdb_cv_c_long_double=yes
22487 else
22488 echo "$as_me: failed program was:" >&5
22489 sed 's/^/| /' conftest.$ac_ext >&5
22490
22491 gdb_cv_c_long_double=no
22492 fi
22493
22494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22495 fi
22496 { echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
22497 echo "${ECHO_T}$gdb_cv_c_long_double" >&6; }
22498 if test $gdb_cv_c_long_double = yes; then
22499
22500 cat >>confdefs.h <<\_ACEOF
22501 #define HAVE_LONG_DOUBLE 1
22502 _ACEOF
22503
22504 fi
22505
22506 # Check if the compiler and runtime support printing long doubles.
22507
22508 { echo "$as_me:$LINENO: checking for long double support in printf" >&5
22509 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6; }
22510 if test "${gdb_cv_printf_has_long_double+set}" = set; then
22511 echo $ECHO_N "(cached) $ECHO_C" >&6
22512 else
22513 if test "$cross_compiling" = yes; then
22514 gdb_cv_printf_has_long_double=no
22515 else
22516 cat >conftest.$ac_ext <<_ACEOF
22517 /* confdefs.h. */
22518 _ACEOF
22519 cat confdefs.h >>conftest.$ac_ext
22520 cat >>conftest.$ac_ext <<_ACEOF
22521 /* end confdefs.h. */
22522 $ac_includes_default
22523 int
22524 main ()
22525 {
22526 char buf[16];
22527 long double f = 3.141592653;
22528 sprintf (buf, "%Lg", f);
22529 return (strncmp ("3.14159", buf, 7));
22530 ;
22531 return 0;
22532 }
22533 _ACEOF
22534 rm -f conftest$ac_exeext
22535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22536 (eval $ac_link) 2>&5
22537 ac_status=$?
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22541 (eval $ac_try) 2>&5
22542 ac_status=$?
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); }; }; then
22545 gdb_cv_printf_has_long_double=yes
22546 else
22547 echo "$as_me: program exited with status $ac_status" >&5
22548 echo "$as_me: failed program was:" >&5
22549 sed 's/^/| /' conftest.$ac_ext >&5
22550
22551 ( exit $ac_status )
22552 gdb_cv_printf_has_long_double=no
22553 fi
22554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22555 fi
22556
22557
22558 fi
22559 { echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
22560 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6; }
22561 if test $gdb_cv_printf_has_long_double = yes; then
22562
22563 cat >>confdefs.h <<\_ACEOF
22564 #define PRINTF_HAS_LONG_DOUBLE 1
22565 _ACEOF
22566
22567 fi
22568
22569 # Check if the compiler and runtime support scanning long doubles.
22570
22571 { echo "$as_me:$LINENO: checking for long double support in scanf" >&5
22572 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6; }
22573 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
22574 echo $ECHO_N "(cached) $ECHO_C" >&6
22575 else
22576 if test "$cross_compiling" = yes; then
22577 gdb_cv_scanf_has_long_double=no
22578 else
22579 cat >conftest.$ac_ext <<_ACEOF
22580 /* confdefs.h. */
22581 _ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h. */
22585 #include <stdio.h>
22586 int
22587 main ()
22588 {
22589 char *buf = "3.141592653";
22590 long double f = 0;
22591 sscanf (buf, "%Lg", &f);
22592 return !(f > 3.14159 && f < 3.14160);
22593 ;
22594 return 0;
22595 }
22596 _ACEOF
22597 rm -f conftest$ac_exeext
22598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22599 (eval $ac_link) 2>&5
22600 ac_status=$?
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22604 (eval $ac_try) 2>&5
22605 ac_status=$?
22606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); }; }; then
22608 gdb_cv_scanf_has_long_double=yes
22609 else
22610 echo "$as_me: program exited with status $ac_status" >&5
22611 echo "$as_me: failed program was:" >&5
22612 sed 's/^/| /' conftest.$ac_ext >&5
22613
22614 ( exit $ac_status )
22615 gdb_cv_scanf_has_long_double=no
22616 fi
22617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22618 fi
22619
22620
22621 fi
22622 { echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
22623 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6; }
22624 if test $gdb_cv_scanf_has_long_double = yes; then
22625
22626 cat >>confdefs.h <<\_ACEOF
22627 #define SCANF_HAS_LONG_DOUBLE 1
22628 _ACEOF
22629
22630 fi
22631
22632 case ${host_os} in
22633 aix*)
22634 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
22635 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
22636 if test "${gdb_cv_bigtoc+set}" = set; then
22637 echo $ECHO_N "(cached) $ECHO_C" >&6
22638 else
22639
22640 SAVE_LDFLAGS=$LDFLAGS
22641
22642 case $GCC in
22643 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
22644 *) gdb_cv_bigtoc=-bbigtoc ;;
22645 esac
22646
22647 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
22648 cat >conftest.$ac_ext <<_ACEOF
22649 /* confdefs.h. */
22650 _ACEOF
22651 cat confdefs.h >>conftest.$ac_ext
22652 cat >>conftest.$ac_ext <<_ACEOF
22653 /* end confdefs.h. */
22654
22655 int
22656 main ()
22657 {
22658 int i;
22659 ;
22660 return 0;
22661 }
22662 _ACEOF
22663 rm -f conftest.$ac_objext conftest$ac_exeext
22664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22665 (eval $ac_link) 2>conftest.er1
22666 ac_status=$?
22667 grep -v '^ *+' conftest.er1 >conftest.err
22668 rm -f conftest.er1
22669 cat conftest.err >&5
22670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671 (exit $ac_status); } &&
22672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674 (eval $ac_try) 2>&5
22675 ac_status=$?
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); }; } &&
22678 { ac_try='test -s conftest$ac_exeext'
22679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22680 (eval $ac_try) 2>&5
22681 ac_status=$?
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); }; }; then
22684 :
22685 else
22686 echo "$as_me: failed program was:" >&5
22687 sed 's/^/| /' conftest.$ac_ext >&5
22688
22689 gdb_cv_bigtoc=
22690 fi
22691
22692 rm -f conftest.err conftest.$ac_objext \
22693 conftest$ac_exeext conftest.$ac_ext
22694 LDFLAGS="${SAVE_LDFLAGS}"
22695
22696 fi
22697 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
22698 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
22699 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
22700 ;;
22701 esac
22702
22703
22704
22705 if test ${build} = ${host} -a ${host} = ${target} ; then
22706 case ${host_os} in
22707 hpux*)
22708 { echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
22709 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6; }
22710 if test -f /usr/include/dce/cma_config.h ; then
22711 if test "$GCC" = "yes" ; then
22712 { echo "$as_me:$LINENO: result: yes" >&5
22713 echo "${ECHO_T}yes" >&6; }
22714
22715 cat >>confdefs.h <<\_ACEOF
22716 #define HAVE_HPUX_THREAD_SUPPORT 1
22717 _ACEOF
22718
22719 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
22720 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
22721 else
22722 { echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
22723 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6; }
22724 fi
22725 else
22726 { echo "$as_me:$LINENO: result: no" >&5
22727 echo "${ECHO_T}no" >&6; }
22728 fi
22729 ;;
22730 solaris*)
22731 # See if thread_db library is around for Solaris thread debugging.
22732 # Note that we must explicitly test for version 1 of the library
22733 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
22734 # the same API.
22735 { echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
22736 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6; }
22737 if test -f /usr/lib/libthread_db.so.1 ; then
22738 { echo "$as_me:$LINENO: result: yes" >&5
22739 echo "${ECHO_T}yes" >&6; }
22740
22741 cat >>confdefs.h <<\_ACEOF
22742 #define HAVE_THREAD_DB_LIB 1
22743 _ACEOF
22744
22745 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
22746 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
22747
22748 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22749 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
22750 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22751 echo $ECHO_N "(cached) $ECHO_C" >&6
22752 else
22753 ac_check_lib_save_LIBS=$LIBS
22754 LIBS="-ldl $LIBS"
22755 cat >conftest.$ac_ext <<_ACEOF
22756 /* confdefs.h. */
22757 _ACEOF
22758 cat confdefs.h >>conftest.$ac_ext
22759 cat >>conftest.$ac_ext <<_ACEOF
22760 /* end confdefs.h. */
22761
22762 /* Override any GCC internal prototype to avoid an error.
22763 Use char because int might match the return type of a GCC
22764 builtin and then its argument prototype would still apply. */
22765 #ifdef __cplusplus
22766 extern "C"
22767 #endif
22768 char dlopen ();
22769 int
22770 main ()
22771 {
22772 return dlopen ();
22773 ;
22774 return 0;
22775 }
22776 _ACEOF
22777 rm -f conftest.$ac_objext conftest$ac_exeext
22778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22779 (eval $ac_link) 2>conftest.er1
22780 ac_status=$?
22781 grep -v '^ *+' conftest.er1 >conftest.err
22782 rm -f conftest.er1
22783 cat conftest.err >&5
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); } &&
22786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22788 (eval $ac_try) 2>&5
22789 ac_status=$?
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); }; } &&
22792 { ac_try='test -s conftest$ac_exeext'
22793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22794 (eval $ac_try) 2>&5
22795 ac_status=$?
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); }; }; then
22798 ac_cv_lib_dl_dlopen=yes
22799 else
22800 echo "$as_me: failed program was:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22802
22803 ac_cv_lib_dl_dlopen=no
22804 fi
22805
22806 rm -f conftest.err conftest.$ac_objext \
22807 conftest$ac_exeext conftest.$ac_ext
22808 LIBS=$ac_check_lib_save_LIBS
22809 fi
22810 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22811 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
22812 if test $ac_cv_lib_dl_dlopen = yes; then
22813 cat >>confdefs.h <<_ACEOF
22814 #define HAVE_LIBDL 1
22815 _ACEOF
22816
22817 LIBS="-ldl $LIBS"
22818
22819 fi
22820
22821 if test "$GCC" = "yes" ; then
22822 # The GNU linker requires the -export-dynamic option to make
22823 # all symbols visible in the dynamic symbol table.
22824 hold_ldflags=$LDFLAGS
22825 { echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
22826 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; }
22827 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
22828 cat >conftest.$ac_ext <<_ACEOF
22829 /* confdefs.h. */
22830 _ACEOF
22831 cat confdefs.h >>conftest.$ac_ext
22832 cat >>conftest.$ac_ext <<_ACEOF
22833 /* end confdefs.h. */
22834
22835 int
22836 main ()
22837 {
22838 int i;
22839 ;
22840 return 0;
22841 }
22842 _ACEOF
22843 rm -f conftest.$ac_objext conftest$ac_exeext
22844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22845 (eval $ac_link) 2>conftest.er1
22846 ac_status=$?
22847 grep -v '^ *+' conftest.er1 >conftest.err
22848 rm -f conftest.er1
22849 cat conftest.err >&5
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); } &&
22852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22854 (eval $ac_try) 2>&5
22855 ac_status=$?
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); }; } &&
22858 { ac_try='test -s conftest$ac_exeext'
22859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22860 (eval $ac_try) 2>&5
22861 ac_status=$?
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); }; }; then
22864 found=yes
22865 else
22866 echo "$as_me: failed program was:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22868
22869 found=no
22870 fi
22871
22872 rm -f conftest.err conftest.$ac_objext \
22873 conftest$ac_exeext conftest.$ac_ext
22874 LDFLAGS=$hold_ldflags
22875 { echo "$as_me:$LINENO: result: $found" >&5
22876 echo "${ECHO_T}$found" >&6; }
22877 if test $found = yes; then
22878 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
22879 fi
22880 fi
22881 # Sun randomly tweaked the prototypes in <proc_service.h>
22882 # at one point.
22883 { echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
22884 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6; }
22885 if test "${gdb_cv_proc_service_is_old+set}" = set; then
22886 echo $ECHO_N "(cached) $ECHO_C" >&6
22887 else
22888
22889 cat >conftest.$ac_ext <<_ACEOF
22890 /* confdefs.h. */
22891 _ACEOF
22892 cat confdefs.h >>conftest.$ac_ext
22893 cat >>conftest.$ac_ext <<_ACEOF
22894 /* end confdefs.h. */
22895
22896 #include <proc_service.h>
22897 ps_err_e ps_pdwrite
22898 (struct ps_prochandle*, psaddr_t, const void*, size_t);
22899
22900 int
22901 main ()
22902 {
22903
22904 ;
22905 return 0;
22906 }
22907 _ACEOF
22908 rm -f conftest.$ac_objext
22909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22910 (eval $ac_compile) 2>conftest.er1
22911 ac_status=$?
22912 grep -v '^ *+' conftest.er1 >conftest.err
22913 rm -f conftest.er1
22914 cat conftest.err >&5
22915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916 (exit $ac_status); } &&
22917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22919 (eval $ac_try) 2>&5
22920 ac_status=$?
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); }; } &&
22923 { ac_try='test -s conftest.$ac_objext'
22924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925 (eval $ac_try) 2>&5
22926 ac_status=$?
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); }; }; then
22929 gdb_cv_proc_service_is_old=no
22930 else
22931 echo "$as_me: failed program was:" >&5
22932 sed 's/^/| /' conftest.$ac_ext >&5
22933
22934 gdb_cv_proc_service_is_old=yes
22935 fi
22936
22937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22938
22939 fi
22940
22941 { echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
22942 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6; }
22943 if test $gdb_cv_proc_service_is_old = yes; then
22944
22945 cat >>confdefs.h <<\_ACEOF
22946 #define PROC_SERVICE_IS_OLD 1
22947 _ACEOF
22948
22949 fi
22950 else
22951 { echo "$as_me:$LINENO: result: no" >&5
22952 echo "${ECHO_T}no" >&6; }
22953 fi
22954 ;;
22955 aix*)
22956 { echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
22957 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6; }
22958 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
22959 echo $ECHO_N "(cached) $ECHO_C" >&6
22960 else
22961 cat >conftest.$ac_ext <<_ACEOF
22962 /* confdefs.h. */
22963 _ACEOF
22964 cat confdefs.h >>conftest.$ac_ext
22965 cat >>conftest.$ac_ext <<_ACEOF
22966 /* end confdefs.h. */
22967 #include <sys/pthdebug.h>
22968 int
22969 main ()
22970 {
22971 #ifndef PTHDB_VERSION_3
22972 #error
22973 #endif
22974 ;
22975 return 0;
22976 }
22977 _ACEOF
22978 rm -f conftest.$ac_objext
22979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22980 (eval $ac_compile) 2>conftest.er1
22981 ac_status=$?
22982 grep -v '^ *+' conftest.er1 >conftest.err
22983 rm -f conftest.er1
22984 cat conftest.err >&5
22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); } &&
22987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22989 (eval $ac_try) 2>&5
22990 ac_status=$?
22991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992 (exit $ac_status); }; } &&
22993 { ac_try='test -s conftest.$ac_objext'
22994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22995 (eval $ac_try) 2>&5
22996 ac_status=$?
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); }; }; then
22999 gdb_cv_have_aix_thread_debug=yes
23000 else
23001 echo "$as_me: failed program was:" >&5
23002 sed 's/^/| /' conftest.$ac_ext >&5
23003
23004 gdb_cv_have_aix_thread_debug=no
23005 fi
23006
23007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23008 fi
23009
23010 { echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
23011 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6; }
23012 if test $gdb_cv_have_aix_thread_debug = yes; then
23013 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
23014 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
23015 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
23016 fi
23017 ;;
23018 esac
23019
23020 fi
23021
23022 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
23023 { echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
23024 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6; }
23025 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
23026 echo $ECHO_N "(cached) $ECHO_C" >&6
23027 else
23028 cat >conftest.$ac_ext <<_ACEOF
23029 /* confdefs.h. */
23030 _ACEOF
23031 cat confdefs.h >>conftest.$ac_ext
23032 cat >>conftest.$ac_ext <<_ACEOF
23033 /* end confdefs.h. */
23034 #include <thread_db.h>
23035 int
23036 main ()
23037 {
23038 int i = TD_NOTALLOC;
23039 ;
23040 return 0;
23041 }
23042 _ACEOF
23043 rm -f conftest.$ac_objext
23044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23045 (eval $ac_compile) 2>conftest.er1
23046 ac_status=$?
23047 grep -v '^ *+' conftest.er1 >conftest.err
23048 rm -f conftest.er1
23049 cat conftest.err >&5
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); } &&
23052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054 (eval $ac_try) 2>&5
23055 ac_status=$?
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); }; } &&
23058 { ac_try='test -s conftest.$ac_objext'
23059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060 (eval $ac_try) 2>&5
23061 ac_status=$?
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); }; }; then
23064 gdb_cv_thread_db_h_has_td_notalloc=yes
23065 else
23066 echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23068
23069 gdb_cv_thread_db_h_has_td_notalloc=no
23070
23071 fi
23072
23073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23074
23075 fi
23076 { echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
23077 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
23078 fi
23079 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
23080
23081 cat >>confdefs.h <<\_ACEOF
23082 #define THREAD_DB_HAS_TD_NOTALLOC 1
23083 _ACEOF
23084
23085 fi
23086
23087 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
23088 { echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
23089 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6; }
23090 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
23091 echo $ECHO_N "(cached) $ECHO_C" >&6
23092 else
23093 cat >conftest.$ac_ext <<_ACEOF
23094 /* confdefs.h. */
23095 _ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h. */
23099 #include <sys/syscall.h>
23100 int
23101 main ()
23102 {
23103 int i = __NR_tkill;
23104 ;
23105 return 0;
23106 }
23107 _ACEOF
23108 rm -f conftest.$ac_objext
23109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23110 (eval $ac_compile) 2>conftest.er1
23111 ac_status=$?
23112 grep -v '^ *+' conftest.er1 >conftest.err
23113 rm -f conftest.er1
23114 cat conftest.err >&5
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); } &&
23117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23119 (eval $ac_try) 2>&5
23120 ac_status=$?
23121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122 (exit $ac_status); }; } &&
23123 { ac_try='test -s conftest.$ac_objext'
23124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23125 (eval $ac_try) 2>&5
23126 ac_status=$?
23127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); }; }; then
23129 gdb_cv_sys_syscall_h_has_tkill=yes
23130 else
23131 echo "$as_me: failed program was:" >&5
23132 sed 's/^/| /' conftest.$ac_ext >&5
23133
23134 gdb_cv_sys_syscall_h_has_tkill=no
23135
23136 fi
23137
23138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23139
23140 fi
23141 { echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
23142 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6; }
23143 fi
23144 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
23145
23146 cat >>confdefs.h <<\_ACEOF
23147 #define HAVE_TKILL_SYSCALL 1
23148 _ACEOF
23149
23150 fi
23151
23152
23153
23154 # Check whether --with-sysroot was given.
23155 if test "${with_sysroot+set}" = set; then
23156 withval=$with_sysroot;
23157 case ${with_sysroot} in
23158 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
23159 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
23160 esac
23161
23162 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
23163
23164 if test "x$exec_prefix" = xNONE; then
23165 if test "x$prefix" = xNONE; then
23166 test_prefix=/usr/local
23167 else
23168 test_prefix=$prefix
23169 fi
23170 else
23171 test_prefix=$exec_prefix
23172 fi
23173 case ${TARGET_SYSTEM_ROOT} in
23174 "${test_prefix}"|"${test_prefix}/"*|\
23175 '${exec_prefix}'|'${exec_prefix}/'*)
23176 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
23177 TARGET_SYSTEM_ROOT_DEFINE="$t"
23178 ;;
23179 esac
23180
23181 else
23182
23183 TARGET_SYSTEM_ROOT=
23184 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
23185
23186 fi
23187
23188
23189
23190
23191 # Check whether --enable-werror was given.
23192 if test "${enable_werror+set}" = set; then
23193 enableval=$enable_werror; case "${enableval}" in
23194 yes | y) ERROR_ON_WARNING="yes" ;;
23195 no | n) ERROR_ON_WARNING="no" ;;
23196 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
23197 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
23198 { (exit 1); exit 1; }; } ;;
23199 esac
23200 fi
23201
23202
23203 # Enable -Werror by default when using gcc
23204 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
23205 ERROR_ON_WARNING=yes
23206 fi
23207
23208 WERROR_CFLAGS=""
23209 if test "${ERROR_ON_WARNING}" = yes ; then
23210 WERROR_CFLAGS="-Werror"
23211 fi
23212
23213 # NOTE: Don't add -Wall or -Wunused, they both include
23214 # -Wunused-parameter which reports bogus warnings.
23215 # NOTE: If you add to this list, remember to update
23216 # gdb/doc/gdbint.texinfo.
23217 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
23218 -Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
23219 -Wunused-label -Wunused-function -Wno-pointer-sign"
23220
23221 # GCC supports -Wuninitialized only with -O or -On, n != 0.
23222 if test x${CFLAGS+set} = xset; then
23223 case "${CFLAGS}" in
23224 *"-O0"* ) ;;
23225 *"-O"* )
23226 build_warnings="${build_warnings} -Wuninitialized"
23227 ;;
23228 esac
23229 else
23230 build_warnings="${build_warnings} -Wuninitialized"
23231 fi
23232
23233 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
23234 # -Wunused-function -Wunused-variable -Wunused-value
23235 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
23236 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
23237 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
23238 # -Woverloaded-virtual -Winline -Werror"
23239 # Check whether --enable-build-warnings was given.
23240 if test "${enable_build_warnings+set}" = set; then
23241 enableval=$enable_build_warnings; case "${enableval}" in
23242 yes) ;;
23243 no) build_warnings="-w";;
23244 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23245 build_warnings="${build_warnings} ${t}";;
23246 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23247 build_warnings="${t} ${build_warnings}";;
23248 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
23249 esac
23250 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
23251 echo "Setting compiler warning flags = $build_warnings" 6>&1
23252 fi
23253 fi
23254 # Check whether --enable-gdb-build-warnings was given.
23255 if test "${enable_gdb_build_warnings+set}" = set; then
23256 enableval=$enable_gdb_build_warnings; case "${enableval}" in
23257 yes) ;;
23258 no) build_warnings="-w";;
23259 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23260 build_warnings="${build_warnings} ${t}";;
23261 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23262 build_warnings="${t} ${build_warnings}";;
23263 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
23264 esac
23265 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
23266 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
23267 fi
23268 fi
23269 WARN_CFLAGS=""
23270 if test "x${build_warnings}" != x -a "x$GCC" = xyes
23271 then
23272 { echo "$as_me:$LINENO: checking compiler warning flags" >&5
23273 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6; }
23274 # Separate out the -Werror flag as some files just cannot be
23275 # compiled with it enabled.
23276 for w in ${build_warnings}; do
23277 case $w in
23278 -Werr*) WERROR_CFLAGS=-Werror ;;
23279 *) # Check that GCC accepts it
23280 saved_CFLAGS="$CFLAGS"
23281 CFLAGS="$CFLAGS $w"
23282 cat >conftest.$ac_ext <<_ACEOF
23283 /* confdefs.h. */
23284 _ACEOF
23285 cat confdefs.h >>conftest.$ac_ext
23286 cat >>conftest.$ac_ext <<_ACEOF
23287 /* end confdefs.h. */
23288
23289 int
23290 main ()
23291 {
23292
23293 ;
23294 return 0;
23295 }
23296 _ACEOF
23297 rm -f conftest.$ac_objext
23298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23299 (eval $ac_compile) 2>conftest.er1
23300 ac_status=$?
23301 grep -v '^ *+' conftest.er1 >conftest.err
23302 rm -f conftest.er1
23303 cat conftest.err >&5
23304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305 (exit $ac_status); } &&
23306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23308 (eval $ac_try) 2>&5
23309 ac_status=$?
23310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); }; } &&
23312 { ac_try='test -s conftest.$ac_objext'
23313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23314 (eval $ac_try) 2>&5
23315 ac_status=$?
23316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317 (exit $ac_status); }; }; then
23318 WARN_CFLAGS="${WARN_CFLAGS} $w"
23319 else
23320 echo "$as_me: failed program was:" >&5
23321 sed 's/^/| /' conftest.$ac_ext >&5
23322
23323
23324 fi
23325
23326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23327 CFLAGS="$saved_CFLAGS"
23328 esac
23329 done
23330 { echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
23331 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6; }
23332 fi
23333
23334
23335
23336 # In the Cygwin environment, we need some additional flags.
23337 { echo "$as_me:$LINENO: checking for cygwin" >&5
23338 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6; }
23339 if test "${gdb_cv_os_cygwin+set}" = set; then
23340 echo $ECHO_N "(cached) $ECHO_C" >&6
23341 else
23342 cat >conftest.$ac_ext <<_ACEOF
23343 /* confdefs.h. */
23344 _ACEOF
23345 cat confdefs.h >>conftest.$ac_ext
23346 cat >>conftest.$ac_ext <<_ACEOF
23347 /* end confdefs.h. */
23348
23349 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
23350 lose
23351 #endif
23352 _ACEOF
23353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23354 $EGREP "lose" >/dev/null 2>&1; then
23355 gdb_cv_os_cygwin=yes
23356 else
23357 gdb_cv_os_cygwin=no
23358 fi
23359 rm -f conftest*
23360
23361 fi
23362 { echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
23363 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6; }
23364
23365
23366 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
23367 case ${host} in
23368 *go32* ) SER_HARDWIRE=ser-go32.o ;;
23369 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
23370 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
23371 esac
23372
23373
23374 # libreadline needs libuser32.a in a cygwin environment
23375 WIN32LIBS=
23376 if test x$gdb_cv_os_cygwin = xyes; then
23377 WIN32LIBS="-luser32"
23378 case "${target}" in
23379 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
23380 ;;
23381 esac
23382 fi
23383
23384 # The ser-tcp.c module requires sockets.
23385 case ${host} in
23386 *mingw32*)
23387
23388 cat >>confdefs.h <<\_ACEOF
23389 #define USE_WIN32API 1
23390 _ACEOF
23391
23392 WIN32LIBS="$WIN32LIBS -lws2_32"
23393 ;;
23394 esac
23395
23396
23397 # Add any host-specific objects to GDB.
23398 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
23399
23400 LIBGUI="../libgui/src/libgui.a"
23401 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
23402
23403
23404
23405 WIN32LDAPP=
23406
23407
23408
23409 case "${host}" in
23410 *-*-cygwin*)
23411 configdir="win"
23412 ;;
23413 *)
23414 configdir="unix"
23415 ;;
23416 esac
23417
23418 GDBTKLIBS=
23419 if test "${enable_gdbtk}" = "yes"; then
23420
23421 # Gdbtk must have an absolute path to srcdir in order to run
23422 # properly when not installed.
23423 here=`pwd`
23424 cd ${srcdir}
23425 GDBTK_SRC_DIR=`pwd`
23426 cd $here
23427
23428
23429 #
23430 # Ok, lets find the tcl configuration
23431 # First, look for one uninstalled.
23432 # the alternative search directory is invoked by --with-tclconfig
23433 #
23434
23435 if test x"${no_tcl}" = x ; then
23436 # we reset no_tcl in case something fails here
23437 no_tcl=true
23438
23439 # Check whether --with-tclconfig was given.
23440 if test "${with_tclconfig+set}" = set; then
23441 withval=$with_tclconfig; with_tclconfig=${withval}
23442 fi
23443
23444 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5
23445 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; }
23446 if test "${ac_cv_c_tclconfig+set}" = set; then
23447 echo $ECHO_N "(cached) $ECHO_C" >&6
23448 else
23449
23450
23451 # First check to see if --with-tclconfig was specified.
23452 if test x"${with_tclconfig}" != x ; then
23453 if test -f "${with_tclconfig}/tclConfig.sh" ; then
23454 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
23455 else
23456 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
23457 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
23458 { (exit 1); exit 1; }; }
23459 fi
23460 fi
23461
23462 # then check for a private Tcl installation
23463 if test x"${ac_cv_c_tclconfig}" = x ; then
23464 for i in \
23465 ../tcl \
23466 `ls -dr ../tcl[7-9]* 2>/dev/null` \
23467 ../../tcl \
23468 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
23469 ../../../tcl \
23470 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
23471 if test -f "$i/${configdir}/tclConfig.sh" ; then
23472 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
23473 break
23474 fi
23475 done
23476 fi
23477 # check in a few common install locations
23478 if test x"${ac_cv_c_tclconfig}" = x ; then
23479 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23480 if test -f "$i/tclConfig.sh" ; then
23481 ac_cv_c_tclconfig=`(cd $i; pwd)`
23482 break
23483 fi
23484 done
23485 fi
23486 # check in a few other private locations
23487 if test x"${ac_cv_c_tclconfig}" = x ; then
23488 for i in \
23489 ${srcdir}/../tcl \
23490 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
23491 if test -f "$i/${configdir}/tclConfig.sh" ; then
23492 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
23493 break
23494 fi
23495 done
23496 fi
23497
23498 fi
23499
23500 if test x"${ac_cv_c_tclconfig}" = x ; then
23501 TCLCONFIG="# no Tcl configs found"
23502 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
23503 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
23504 else
23505 no_tcl=
23506 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
23507 { echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
23508 echo "${ECHO_T}found $TCLCONFIG" >&6; }
23509 fi
23510 fi
23511
23512 if test -z "${no_tcl}"; then
23513
23514 . $TCLCONFIG
23515
23516
23517
23518
23519
23520
23521
23522
23523
23524
23525
23526
23527
23528
23529
23530
23531
23532
23533
23534
23535
23536
23537
23538
23539
23540
23541
23542 #
23543 # Ok, lets find the tk configuration
23544 # First, look for one uninstalled.
23545 # the alternative search directory is invoked by --with-tkconfig
23546 #
23547
23548 if test x"${no_tk}" = x ; then
23549 # we reset no_tk in case something fails here
23550 no_tk=true
23551
23552 # Check whether --with-tkconfig was given.
23553 if test "${with_tkconfig+set}" = set; then
23554 withval=$with_tkconfig; with_tkconfig=${withval}
23555 fi
23556
23557 { echo "$as_me:$LINENO: checking for Tk configuration" >&5
23558 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6; }
23559 if test "${ac_cv_c_tkconfig+set}" = set; then
23560 echo $ECHO_N "(cached) $ECHO_C" >&6
23561 else
23562
23563
23564 # First check to see if --with-tkconfig was specified.
23565 if test x"${with_tkconfig}" != x ; then
23566 if test -f "${with_tkconfig}/tkConfig.sh" ; then
23567 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
23568 else
23569 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
23570 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
23571 { (exit 1); exit 1; }; }
23572 fi
23573 fi
23574
23575 # then check for a private Tk library
23576 if test x"${ac_cv_c_tkconfig}" = x ; then
23577 for i in \
23578 ../tk \
23579 `ls -dr ../tk[4-9]* 2>/dev/null` \
23580 ../../tk \
23581 `ls -dr ../../tk[4-9]* 2>/dev/null` \
23582 ../../../tk \
23583 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
23584 if test -f "$i/${configdir}/tkConfig.sh" ; then
23585 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
23586 break
23587 fi
23588 done
23589 fi
23590 # check in a few common install locations
23591 if test x"${ac_cv_c_tkconfig}" = x ; then
23592 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23593 if test -f "$i/tkConfig.sh" ; then
23594 ac_cv_c_tkconfig=`(cd $i; pwd)`
23595 break
23596 fi
23597 done
23598 fi
23599 # check in a few other private locations
23600 if test x"${ac_cv_c_tkconfig}" = x ; then
23601 for i in \
23602 ${srcdir}/../tk \
23603 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
23604 if test -f "$i/${configdir}/tkConfig.sh" ; then
23605 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
23606 break
23607 fi
23608 done
23609 fi
23610
23611 fi
23612
23613 if test x"${ac_cv_c_tkconfig}" = x ; then
23614 TKCONFIG="# no Tk configs found"
23615 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
23616 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
23617 else
23618 no_tk=
23619 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
23620 { echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
23621 echo "${ECHO_T}found $TKCONFIG" >&6; }
23622 fi
23623 fi
23624
23625
23626
23627 # now look for Tcl library stuff
23628
23629 tcldir="../tcl/${configdir}/"
23630
23631 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
23632
23633 # If $no_tk is nonempty, then we can't do Tk, and there is no
23634 # point to doing Tcl.
23635 if test -z "${no_tk}"; then
23636
23637 if test -f "$TKCONFIG" ; then
23638 . $TKCONFIG
23639 fi
23640
23641
23642
23643
23644
23645
23646
23647
23648
23649
23650
23651
23652
23653
23654 #
23655 # Ok, lets find the tcl source trees so we can use the headers
23656 # Warning: transition of version 9 to 10 will break this algorithm
23657 # because 10 sorts before 9. We also look for just tcl. We have to
23658 # be careful that we don't match stuff like tclX by accident.
23659 # the alternative search directory is involked by --with-tclinclude
23660 #
23661
23662 no_tcl=true
23663 { echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
23664 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6; }
23665
23666 # Check whether --with-tclinclude was given.
23667 if test "${with_tclinclude+set}" = set; then
23668 withval=$with_tclinclude; with_tclinclude=${withval}
23669 fi
23670
23671 if test "${ac_cv_c_tclh+set}" = set; then
23672 echo $ECHO_N "(cached) $ECHO_C" >&6
23673 else
23674
23675 # first check to see if --with-tclinclude was specified
23676 if test x"${with_tclinclude}" != x ; then
23677 if test -f ${with_tclinclude}/tclInt.h ; then
23678 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
23679 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
23680 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
23681 else
23682 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
23683 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
23684 { (exit 1); exit 1; }; }
23685 fi
23686 fi
23687
23688 # next check if it came with Tcl configuration file
23689 if test x"${ac_cv_c_tclconfig}" = x ; then
23690 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
23691 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
23692 fi
23693 fi
23694
23695 # next check in private source directory
23696 #
23697 # since ls returns lowest version numbers first, reverse its output
23698 if test x"${ac_cv_c_tclh}" = x ; then
23699 for i in \
23700 ${srcdir}/../tcl \
23701 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
23702 ${srcdir}/../../tcl \
23703 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
23704 ${srcdir}/../../../tcl \
23705 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
23706 if test -f $i/generic/tclInt.h ; then
23707 ac_cv_c_tclh=`(cd $i/generic; pwd)`
23708 break
23709 fi
23710 done
23711 fi
23712 # finally check in a few common install locations
23713 #
23714 # since ls returns lowest version numbers first, reverse its output
23715 if test x"${ac_cv_c_tclh}" = x ; then
23716 for i in \
23717 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
23718 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
23719 /usr/local/src/tcl \
23720 /usr/local/lib/tcl \
23721 ${prefix}/include ; do
23722 if test -f $i/generic/tclInt.h ; then
23723 ac_cv_c_tclh=`(cd $i/generic; pwd)`
23724 break
23725 fi
23726 done
23727 fi
23728 # see if one is installed
23729 if test x"${ac_cv_c_tclh}" = x ; then
23730 if test "${ac_cv_header_tclInt_h+set}" = set; then
23731 { echo "$as_me:$LINENO: checking for tclInt.h" >&5
23732 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6; }
23733 if test "${ac_cv_header_tclInt_h+set}" = set; then
23734 echo $ECHO_N "(cached) $ECHO_C" >&6
23735 fi
23736 { echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
23737 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6; }
23738 else
23739 # Is the header compilable?
23740 { echo "$as_me:$LINENO: checking tclInt.h usability" >&5
23741 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6; }
23742 cat >conftest.$ac_ext <<_ACEOF
23743 /* confdefs.h. */
23744 _ACEOF
23745 cat confdefs.h >>conftest.$ac_ext
23746 cat >>conftest.$ac_ext <<_ACEOF
23747 /* end confdefs.h. */
23748 $ac_includes_default
23749 #include <tclInt.h>
23750 _ACEOF
23751 rm -f conftest.$ac_objext
23752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23753 (eval $ac_compile) 2>conftest.er1
23754 ac_status=$?
23755 grep -v '^ *+' conftest.er1 >conftest.err
23756 rm -f conftest.er1
23757 cat conftest.err >&5
23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); } &&
23760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23762 (eval $ac_try) 2>&5
23763 ac_status=$?
23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); }; } &&
23766 { ac_try='test -s conftest.$ac_objext'
23767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23768 (eval $ac_try) 2>&5
23769 ac_status=$?
23770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771 (exit $ac_status); }; }; then
23772 ac_header_compiler=yes
23773 else
23774 echo "$as_me: failed program was:" >&5
23775 sed 's/^/| /' conftest.$ac_ext >&5
23776
23777 ac_header_compiler=no
23778 fi
23779
23780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23782 echo "${ECHO_T}$ac_header_compiler" >&6; }
23783
23784 # Is the header present?
23785 { echo "$as_me:$LINENO: checking tclInt.h presence" >&5
23786 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6; }
23787 cat >conftest.$ac_ext <<_ACEOF
23788 /* confdefs.h. */
23789 _ACEOF
23790 cat confdefs.h >>conftest.$ac_ext
23791 cat >>conftest.$ac_ext <<_ACEOF
23792 /* end confdefs.h. */
23793 #include <tclInt.h>
23794 _ACEOF
23795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23797 ac_status=$?
23798 grep -v '^ *+' conftest.er1 >conftest.err
23799 rm -f conftest.er1
23800 cat conftest.err >&5
23801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802 (exit $ac_status); } >/dev/null; then
23803 if test -s conftest.err; then
23804 ac_cpp_err=$ac_c_preproc_warn_flag
23805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23806 else
23807 ac_cpp_err=
23808 fi
23809 else
23810 ac_cpp_err=yes
23811 fi
23812 if test -z "$ac_cpp_err"; then
23813 ac_header_preproc=yes
23814 else
23815 echo "$as_me: failed program was:" >&5
23816 sed 's/^/| /' conftest.$ac_ext >&5
23817
23818 ac_header_preproc=no
23819 fi
23820
23821 rm -f conftest.err conftest.$ac_ext
23822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23823 echo "${ECHO_T}$ac_header_preproc" >&6; }
23824
23825 # So? What about this header?
23826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23827 yes:no: )
23828 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23829 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23830 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
23831 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
23832 ac_header_preproc=yes
23833 ;;
23834 no:yes:* )
23835 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
23836 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
23837 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
23838 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
23839 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
23840 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
23841 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
23842 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23843 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
23844 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
23845 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
23846 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
23847
23848 ;;
23849 esac
23850 { echo "$as_me:$LINENO: checking for tclInt.h" >&5
23851 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6; }
23852 if test "${ac_cv_header_tclInt_h+set}" = set; then
23853 echo $ECHO_N "(cached) $ECHO_C" >&6
23854 else
23855 ac_cv_header_tclInt_h=$ac_header_preproc
23856 fi
23857 { echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
23858 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6; }
23859
23860 fi
23861 if test $ac_cv_header_tclInt_h = yes; then
23862 ac_cv_c_tclh=installed
23863 else
23864 ac_cv_c_tclh=""
23865 fi
23866
23867
23868 fi
23869
23870 fi
23871
23872 if test x"${ac_cv_c_tclh}" = x ; then
23873 TCLHDIR="# no Tcl private headers found"
23874 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
23875 echo "$as_me: error: Can't find Tcl private headers" >&2;}
23876 { (exit 1); exit 1; }; }
23877 fi
23878 if test x"${ac_cv_c_tclh}" != x ; then
23879 no_tcl=""
23880 if test x"${ac_cv_c_tclh}" = x"installed" ; then
23881 { echo "$as_me:$LINENO: result: is installed" >&5
23882 echo "${ECHO_T}is installed" >&6; }
23883 TCLHDIR=""
23884 else
23885 { echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
23886 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6; }
23887 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
23888 TCLHDIR="-I${ac_cv_c_tclh}"
23889 fi
23890 fi
23891
23892
23893
23894
23895 #
23896 # Ok, lets find the tk source trees so we can use the headers
23897 # If the directory (presumably symlink) named "tk" exists, use that one
23898 # in preference to any others. Same logic is used when choosing library
23899 # and again with Tcl. The search order is the best place to look first, then in
23900 # decreasing significance. The loop breaks if the trigger file is found.
23901 # Note the gross little conversion here of srcdir by cd'ing to the found
23902 # directory. This converts the path from a relative to an absolute, so
23903 # recursive cache variables for the path will work right. We check all
23904 # the possible paths in one loop rather than many seperate loops to speed
23905 # things up.
23906 # the alternative search directory is involked by --with-tkinclude
23907 #
23908 no_tk=true
23909 { echo "$as_me:$LINENO: checking for Tk private headers" >&5
23910 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6; }
23911
23912 # Check whether --with-tkinclude was given.
23913 if test "${with_tkinclude+set}" = set; then
23914 withval=$with_tkinclude; with_tkinclude=${withval}
23915 fi
23916
23917 if test "${ac_cv_c_tkh+set}" = set; then
23918 echo $ECHO_N "(cached) $ECHO_C" >&6
23919 else
23920
23921 # first check to see if --with-tkinclude was specified
23922 if test x"${with_tkinclude}" != x ; then
23923 if test -f ${with_tkinclude}/tk.h ; then
23924 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
23925 elif test -f ${with_tkinclude}/generic/tk.h ; then
23926 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
23927 else
23928 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
23929 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
23930 { (exit 1); exit 1; }; }
23931 fi
23932 fi
23933
23934 # next check if it came with Tk configuration file
23935 if test x"${ac_cv_c_tkconfig}" = x ; then
23936 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
23937 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
23938 fi
23939 fi
23940
23941 # next check in private source directory
23942 #
23943 # since ls returns lowest version numbers first, reverse its output
23944 if test x"${ac_cv_c_tkh}" = x ; then
23945 for i in \
23946 ${srcdir}/../tk \
23947 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
23948 ${srcdir}/../../tk \
23949 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
23950 ${srcdir}/../../../tk \
23951 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
23952 if test -f $i/generic/tk.h ; then
23953 ac_cv_c_tkh=`(cd $i/generic; pwd)`
23954 break
23955 fi
23956 done
23957 fi
23958 # finally check in a few common install locations
23959 #
23960 # since ls returns lowest version numbers first, reverse its output
23961 if test x"${ac_cv_c_tkh}" = x ; then
23962 for i in \
23963 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
23964 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
23965 /usr/local/src/tk \
23966 /usr/local/lib/tk \
23967 ${prefix}/include ; do
23968 if test -f $i/generic/tk.h ; then
23969 ac_cv_c_tkh=`(cd $i/generic; pwd)`
23970 break
23971 fi
23972 done
23973 fi
23974 # see if one is installed
23975 if test x"${ac_cv_c_tkh}" = x ; then
23976 if test "${ac_cv_header_tk_h+set}" = set; then
23977 { echo "$as_me:$LINENO: checking for tk.h" >&5
23978 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6; }
23979 if test "${ac_cv_header_tk_h+set}" = set; then
23980 echo $ECHO_N "(cached) $ECHO_C" >&6
23981 fi
23982 { echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
23983 echo "${ECHO_T}$ac_cv_header_tk_h" >&6; }
23984 else
23985 # Is the header compilable?
23986 { echo "$as_me:$LINENO: checking tk.h usability" >&5
23987 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6; }
23988 cat >conftest.$ac_ext <<_ACEOF
23989 /* confdefs.h. */
23990 _ACEOF
23991 cat confdefs.h >>conftest.$ac_ext
23992 cat >>conftest.$ac_ext <<_ACEOF
23993 /* end confdefs.h. */
23994 $ac_includes_default
23995 #include <tk.h>
23996 _ACEOF
23997 rm -f conftest.$ac_objext
23998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23999 (eval $ac_compile) 2>conftest.er1
24000 ac_status=$?
24001 grep -v '^ *+' conftest.er1 >conftest.err
24002 rm -f conftest.er1
24003 cat conftest.err >&5
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); } &&
24006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008 (eval $ac_try) 2>&5
24009 ac_status=$?
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; } &&
24012 { ac_try='test -s conftest.$ac_objext'
24013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24014 (eval $ac_try) 2>&5
24015 ac_status=$?
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); }; }; then
24018 ac_header_compiler=yes
24019 else
24020 echo "$as_me: failed program was:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24022
24023 ac_header_compiler=no
24024 fi
24025
24026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24028 echo "${ECHO_T}$ac_header_compiler" >&6; }
24029
24030 # Is the header present?
24031 { echo "$as_me:$LINENO: checking tk.h presence" >&5
24032 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6; }
24033 cat >conftest.$ac_ext <<_ACEOF
24034 /* confdefs.h. */
24035 _ACEOF
24036 cat confdefs.h >>conftest.$ac_ext
24037 cat >>conftest.$ac_ext <<_ACEOF
24038 /* end confdefs.h. */
24039 #include <tk.h>
24040 _ACEOF
24041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24043 ac_status=$?
24044 grep -v '^ *+' conftest.er1 >conftest.err
24045 rm -f conftest.er1
24046 cat conftest.err >&5
24047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048 (exit $ac_status); } >/dev/null; then
24049 if test -s conftest.err; then
24050 ac_cpp_err=$ac_c_preproc_warn_flag
24051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24052 else
24053 ac_cpp_err=
24054 fi
24055 else
24056 ac_cpp_err=yes
24057 fi
24058 if test -z "$ac_cpp_err"; then
24059 ac_header_preproc=yes
24060 else
24061 echo "$as_me: failed program was:" >&5
24062 sed 's/^/| /' conftest.$ac_ext >&5
24063
24064 ac_header_preproc=no
24065 fi
24066
24067 rm -f conftest.err conftest.$ac_ext
24068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24069 echo "${ECHO_T}$ac_header_preproc" >&6; }
24070
24071 # So? What about this header?
24072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24073 yes:no: )
24074 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
24075 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24076 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
24077 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
24078 ac_header_preproc=yes
24079 ;;
24080 no:yes:* )
24081 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
24082 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
24083 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
24084 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
24085 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
24086 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
24087 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
24088 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
24089 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
24090 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
24091 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
24092 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
24093
24094 ;;
24095 esac
24096 { echo "$as_me:$LINENO: checking for tk.h" >&5
24097 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6; }
24098 if test "${ac_cv_header_tk_h+set}" = set; then
24099 echo $ECHO_N "(cached) $ECHO_C" >&6
24100 else
24101 ac_cv_header_tk_h=$ac_header_preproc
24102 fi
24103 { echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
24104 echo "${ECHO_T}$ac_cv_header_tk_h" >&6; }
24105
24106 fi
24107 if test $ac_cv_header_tk_h = yes; then
24108 ac_cv_c_tkh=installed
24109 else
24110 ac_cv_c_tkh=""
24111 fi
24112
24113
24114 fi
24115
24116 fi
24117
24118 if test x"${ac_cv_c_tkh}" != x ; then
24119 no_tk=""
24120 if test x"${ac_cv_c_tkh}" = x"installed" ; then
24121 { echo "$as_me:$LINENO: result: is installed" >&5
24122 echo "${ECHO_T}is installed" >&6; }
24123 TKHDIR=""
24124 else
24125 { echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
24126 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6; }
24127 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
24128 TKHDIR="-I${ac_cv_c_tkh}"
24129 fi
24130 else
24131 TKHDIR="# no Tk directory found"
24132 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
24133 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
24134 no_tk=true
24135 fi
24136
24137
24138
24139
24140 { echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
24141 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6; }
24142 if test x"${ac_cv_c_itclh}" = x ; then
24143 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
24144 if test -f $i/generic/itcl.h ; then
24145 ac_cv_c_itclh=`(cd $i/generic; pwd)`
24146 break
24147 fi
24148 done
24149 fi
24150 if test x"${ac_cv_c_itclh}" = x ; then
24151 ITCLHDIR="# no Itcl private headers found"
24152 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
24153 echo "$as_me: error: Can't find Itcl private headers" >&2;}
24154 { (exit 1); exit 1; }; }
24155 fi
24156 if test x"${ac_cv_c_itclh}" != x ; then
24157 ITCLHDIR="-I${ac_cv_c_itclh}"
24158 fi
24159 # should always be here
24160 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
24161
24162 #AC_SUBST(ITCLLIB)
24163
24164
24165 { echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
24166 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6; }
24167 if test x"${ac_cv_c_itkh}" = x ; then
24168 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
24169 if test -f $i/generic/itk.h ; then
24170 ac_cv_c_itkh=`(cd $i/generic; pwd)`
24171 break
24172 fi
24173 done
24174 fi
24175 if test x"${ac_cv_c_itkh}" = x ; then
24176 ITKHDIR="# no Itk private headers found"
24177 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
24178 echo "$as_me: error: Can't find Itk private headers" >&2;}
24179 { (exit 1); exit 1; }; }
24180 fi
24181 if test x"${ac_cv_c_itkh}" != x ; then
24182 ITKHDIR="-I${ac_cv_c_itkh}"
24183 fi
24184 # should always be here
24185 # ITKLIB="../itcl/itk/unix/libitk.a"
24186
24187 #AC_SUBST(ITKLIB)
24188
24189
24190
24191 # now look for Tk library stuff
24192
24193 tkdir="../tk/${configdir}/"
24194
24195 TK_DEPS="${tkdir}${TK_LIB_FILE}"
24196
24197 # now look for Itcl library stuff
24198
24199
24200 #
24201 # Ok, lets find the itcl configuration
24202 # First, look for one uninstalled.
24203 # the alternative search directory is invoked by --with-itclconfig
24204 #
24205
24206 if test x"${no_itcl}" = x ; then
24207 # we reset no_itcl in case something fails here
24208 no_itcl=true
24209
24210 # Check whether --with-itclconfig was given.
24211 if test "${with_itclconfig+set}" = set; then
24212 withval=$with_itclconfig; with_itclconfig=${withval}
24213 fi
24214
24215 { echo "$as_me:$LINENO: checking for Itcl configuration" >&5
24216 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6; }
24217 if test "${ac_cv_c_itclconfig+set}" = set; then
24218 echo $ECHO_N "(cached) $ECHO_C" >&6
24219 else
24220
24221
24222 # First check to see if --with-itclconfig was specified.
24223 if test x"${with_itclconfig}" != x ; then
24224 if test -f "${with_itclconfig}/itclConfig.sh" ; then
24225 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
24226 else
24227 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
24228 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
24229 { (exit 1); exit 1; }; }
24230 fi
24231 fi
24232
24233 # then check for a private Itcl library
24234 if test x"${ac_cv_c_itclconfig}" = x ; then
24235 for i in \
24236 ../itcl/itcl \
24237 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
24238 ../../itcl \
24239 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
24240 ../../../itcl \
24241 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
24242 if test -f "$i/itclConfig.sh" ; then
24243 ac_cv_c_itclconfig=`(cd $i; pwd)`
24244 break
24245 fi
24246 done
24247 fi
24248 # check in a few common install locations
24249 if test x"${ac_cv_c_itclconfig}" = x ; then
24250 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24251 if test -f "$i/itclConfig.sh" ; then
24252 ac_cv_c_itclconfig=`(cd $i; pwd)`
24253 break
24254 fi
24255 done
24256 fi
24257 # check in a few other private locations
24258 if test x"${ac_cv_c_itclconfig}" = x ; then
24259 for i in \
24260 ${srcdir}/../itcl/itcl \
24261 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
24262 if test -f "$i/itclConfig.sh" ; then
24263 ac_cv_c_itclconfig=`(cd $i; pwd)`
24264 break
24265 fi
24266 done
24267 fi
24268
24269 fi
24270
24271 if test x"${ac_cv_c_itclconfig}" = x ; then
24272 ITCLCONFIG="# no Itcl configs found"
24273 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
24274 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
24275 else
24276 no_itcl=
24277 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
24278 { echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
24279 echo "${ECHO_T}found $ITCLCONFIG" >&6; }
24280 fi
24281 fi
24282
24283 if test -z "${no_itcl}"; then
24284
24285 if test -f "$ITCLCONFIG" ; then
24286 . $ITCLCONFIG
24287 fi
24288
24289
24290
24291
24292
24293
24294
24295
24296
24297
24298
24299
24300 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
24301 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
24302 fi
24303
24304
24305 # now look for Itk library stuff
24306
24307 #
24308 # Ok, lets find the itk configuration
24309 # First, look for one uninstalled.
24310 # the alternative search directory is invoked by --with-itkconfig
24311 #
24312
24313 if test x"${no_itk}" = x ; then
24314 # we reset no_itk in case something fails here
24315 no_itk=true
24316
24317 # Check whether --with-itkconfig was given.
24318 if test "${with_itkconfig+set}" = set; then
24319 withval=$with_itkconfig; with_itkconfig=${withval}
24320 fi
24321
24322 { echo "$as_me:$LINENO: checking for Itk configuration" >&5
24323 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6; }
24324 if test "${ac_cv_c_itkconfig+set}" = set; then
24325 echo $ECHO_N "(cached) $ECHO_C" >&6
24326 else
24327
24328
24329 # First check to see if --with-itkconfig was specified.
24330 if test x"${with_itkconfig}" != x ; then
24331 if test -f "${with_itkconfig}/itkConfig.sh" ; then
24332 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
24333 else
24334 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
24335 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
24336 { (exit 1); exit 1; }; }
24337 fi
24338 fi
24339
24340 # then check for a private Itk library
24341 if test x"${ac_cv_c_itkconfig}" = x ; then
24342 for i in \
24343 ../itcl/itk \
24344 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
24345 ../../itk \
24346 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
24347 ../../../itk \
24348 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
24349 if test -f "$i/itkConfig.sh" ; then
24350 ac_cv_c_itkconfig=`(cd $i; pwd)`
24351 break
24352 fi
24353 done
24354 fi
24355 # check in a few common install locations
24356 if test x"${ac_cv_c_itkconfig}" = x ; then
24357 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24358 if test -f "$i/itkConfig.sh" ; then
24359 ac_cv_c_itkconfig=`(cd $i; pwd)`
24360 break
24361 fi
24362 done
24363 fi
24364 # check in a few other private locations
24365 if test x"${ac_cv_c_itkconfig}" = x ; then
24366 for i in \
24367 ${srcdir}/../itcl/itk \
24368 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
24369 if test -f "$i/itkConfig.sh" ; then
24370 ac_cv_c_itkconfig=`(cd $i; pwd)`
24371 break
24372 fi
24373 done
24374 fi
24375
24376 fi
24377
24378 if test x"${ac_cv_c_itkconfig}" = x ; then
24379 ITKCONFIG="# no Itk configs found"
24380 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
24381 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
24382 else
24383 no_itk=
24384 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
24385 { echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
24386 echo "${ECHO_T}found $ITKCONFIG" >&6; }
24387 fi
24388 fi
24389
24390
24391 if test -z "${no_itcl}"; then
24392
24393 if test -f "$ITKCONFIG" ; then
24394 . $ITKCONFIG
24395 fi
24396
24397
24398
24399
24400
24401
24402
24403
24404
24405
24406
24407
24408 ITKLIB="${ITK_BUILD_LIB_SPEC}"
24409 ITK_DEPS="${ITK_LIB_FULL_PATH}"
24410 fi
24411
24412 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
24413
24414 # Include some libraries that Tcl and Tk want.
24415 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
24416 # Yes, the ordering seems wrong here. But it isn't.
24417 # TK_LIBS is the list of libraries that need to be linked
24418 # after Tcl/Tk. Note that this isn't put into LIBS. If it
24419 # were in LIBS then any link tests after this point would
24420 # try to include things like `$(LIBGUI)', which wouldn't work.
24421 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
24422
24423 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
24424 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
24425 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
24426 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
24427 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
24428 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
24429 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
24430
24431 if test x$gdb_cv_os_cygwin = xyes; then
24432 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
24433 WIN32LDAPP="-Wl,--subsystem,console"
24434 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
24435 fi
24436 fi
24437 fi
24438
24439 subdirs="$subdirs gdbtk"
24440
24441 fi
24442
24443
24444
24445
24446
24447
24448
24449
24450
24451
24452
24453
24454
24455
24456 { echo "$as_me:$LINENO: checking for X" >&5
24457 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
24458
24459 ac_path_x_has_been_run=yes
24460
24461 # Check whether --with-x was given.
24462 if test "${with_x+set}" = set; then
24463 withval=$with_x;
24464 fi
24465
24466 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24467 if test "x$with_x" = xno; then
24468 # The user explicitly disabled X.
24469 have_x=disabled
24470 else
24471 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24472 # Both variables are already set.
24473 have_x=yes
24474 else
24475 if test "${ac_cv_have_x+set}" = set; then
24476 echo $ECHO_N "(cached) $ECHO_C" >&6
24477 else
24478 # One or both of the vars are not set, and there is no cached value.
24479 ac_x_includes=no ac_x_libraries=no
24480 rm -f -r conftest.dir
24481 if mkdir conftest.dir; then
24482 cd conftest.dir
24483 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24484 cat >Imakefile <<'_ACEOF'
24485 acfindx:
24486 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24487 _ACEOF
24488 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24489 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24490 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24491 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24492 for ac_extension in a so sl; do
24493 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
24494 test -f $ac_im_libdir/libX11.$ac_extension; then
24495 ac_im_usrlibdir=$ac_im_libdir; break
24496 fi
24497 done
24498 # Screen out bogus values from the imake configuration. They are
24499 # bogus both because they are the default anyway, and because
24500 # using them would break gcc on systems where it needs fixed includes.
24501 case $ac_im_incroot in
24502 /usr/include) ac_x_includes= ;;
24503 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24504 esac
24505 case $ac_im_usrlibdir in
24506 /usr/lib | /lib) ;;
24507 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24508 esac
24509 fi
24510 cd ..
24511 rm -f -r conftest.dir
24512 fi
24513
24514 # Standard set of common directories for X headers.
24515 # Check X11 before X11Rn because it is often a symlink to the current release.
24516 ac_x_header_dirs='
24517 /usr/X11/include
24518 /usr/X11R6/include
24519 /usr/X11R5/include
24520 /usr/X11R4/include
24521
24522 /usr/include/X11
24523 /usr/include/X11R6
24524 /usr/include/X11R5
24525 /usr/include/X11R4
24526
24527 /usr/local/X11/include
24528 /usr/local/X11R6/include
24529 /usr/local/X11R5/include
24530 /usr/local/X11R4/include
24531
24532 /usr/local/include/X11
24533 /usr/local/include/X11R6
24534 /usr/local/include/X11R5
24535 /usr/local/include/X11R4
24536
24537 /usr/X386/include
24538 /usr/x386/include
24539 /usr/XFree86/include/X11
24540
24541 /usr/include
24542 /usr/local/include
24543 /usr/unsupported/include
24544 /usr/athena/include
24545 /usr/local/x11r5/include
24546 /usr/lpp/Xamples/include
24547
24548 /usr/openwin/include
24549 /usr/openwin/share/include'
24550
24551 if test "$ac_x_includes" = no; then
24552 # Guess where to find include files, by looking for Xlib.h.
24553 # First, try using that file with no special directory specified.
24554 cat >conftest.$ac_ext <<_ACEOF
24555 /* confdefs.h. */
24556 _ACEOF
24557 cat confdefs.h >>conftest.$ac_ext
24558 cat >>conftest.$ac_ext <<_ACEOF
24559 /* end confdefs.h. */
24560 #include <X11/Xlib.h.h>
24561 _ACEOF
24562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24564 ac_status=$?
24565 grep -v '^ *+' conftest.er1 >conftest.err
24566 rm -f conftest.er1
24567 cat conftest.err >&5
24568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569 (exit $ac_status); } >/dev/null; then
24570 if test -s conftest.err; then
24571 ac_cpp_err=$ac_c_preproc_warn_flag
24572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24573 else
24574 ac_cpp_err=
24575 fi
24576 else
24577 ac_cpp_err=yes
24578 fi
24579 if test -z "$ac_cpp_err"; then
24580 # We can compile using X headers with no special include directory.
24581 ac_x_includes=
24582 else
24583 echo "$as_me: failed program was:" >&5
24584 sed 's/^/| /' conftest.$ac_ext >&5
24585
24586 for ac_dir in $ac_x_header_dirs; do
24587 if test -r "$ac_dir/X11/Xlib.h"; then
24588 ac_x_includes=$ac_dir
24589 break
24590 fi
24591 done
24592 fi
24593
24594 rm -f conftest.err conftest.$ac_ext
24595 fi # $ac_x_includes = no
24596
24597 if test "$ac_x_libraries" = no; then
24598 # Check for the libraries.
24599 # See if we find them without any special options.
24600 # Don't add to $LIBS permanently.
24601 ac_save_LIBS=$LIBS
24602 LIBS="-lXt $LIBS"
24603 cat >conftest.$ac_ext <<_ACEOF
24604 /* confdefs.h. */
24605 _ACEOF
24606 cat confdefs.h >>conftest.$ac_ext
24607 cat >>conftest.$ac_ext <<_ACEOF
24608 /* end confdefs.h. */
24609 #include <X11/Xlib.h>
24610 int
24611 main ()
24612 {
24613 XrmInitialize ()
24614 ;
24615 return 0;
24616 }
24617 _ACEOF
24618 rm -f conftest.$ac_objext conftest$ac_exeext
24619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24620 (eval $ac_link) 2>conftest.er1
24621 ac_status=$?
24622 grep -v '^ *+' conftest.er1 >conftest.err
24623 rm -f conftest.er1
24624 cat conftest.err >&5
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); } &&
24627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24629 (eval $ac_try) 2>&5
24630 ac_status=$?
24631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632 (exit $ac_status); }; } &&
24633 { ac_try='test -s conftest$ac_exeext'
24634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24635 (eval $ac_try) 2>&5
24636 ac_status=$?
24637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24638 (exit $ac_status); }; }; then
24639 LIBS=$ac_save_LIBS
24640 # We can link X programs with no special library path.
24641 ac_x_libraries=
24642 else
24643 echo "$as_me: failed program was:" >&5
24644 sed 's/^/| /' conftest.$ac_ext >&5
24645
24646 LIBS=$ac_save_LIBS
24647 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24648 do
24649 # Don't even attempt the hair of trying to link an X program!
24650 for ac_extension in a so sl; do
24651 if test -r $ac_dir/libX11.$ac_extension; then
24652 ac_x_libraries=$ac_dir
24653 break 2
24654 fi
24655 done
24656 done
24657 fi
24658
24659 rm -f conftest.err conftest.$ac_objext \
24660 conftest$ac_exeext conftest.$ac_ext
24661 fi # $ac_x_libraries = no
24662
24663 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24664 # Didn't find X anywhere. Cache the known absence of X.
24665 ac_cv_have_x="have_x=no"
24666 else
24667 # Record where we found X for the cache.
24668 ac_cv_have_x="have_x=yes \
24669 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
24670 fi
24671 fi
24672
24673 fi
24674 eval "$ac_cv_have_x"
24675 fi # $with_x != no
24676
24677 if test "$have_x" != yes; then
24678 { echo "$as_me:$LINENO: result: $have_x" >&5
24679 echo "${ECHO_T}$have_x" >&6; }
24680 no_x=yes
24681 else
24682 # If each of the values was on the command line, it overrides each guess.
24683 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24684 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24685 # Update the cache value to reflect the command line values.
24686 ac_cv_have_x="have_x=yes \
24687 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
24688 # It might be that x_includes is empty (headers are found in the
24689 # standard search path. Then output the corresponding message
24690 ac_out_x_includes=$x_includes
24691 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
24692 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
24693 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6; }
24694 fi
24695
24696
24697 # Check whether we should enable the TUI, but only do so if we really
24698 # can.
24699 if test x"$enable_tui" = xyes; then
24700 if test -d $srcdir/tui; then
24701 if test "$ac_cv_search_waddstr" != no; then
24702 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
24703 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
24704 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
24705 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
24706 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
24707 CONFIG_ALL="${CONFIG_ALL} all-tui"
24708 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
24709 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
24710 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
24711 else
24712 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
24713 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
24714 fi
24715 fi
24716 fi
24717
24718 # Unlike the sim directory, whether a simulator is linked is controlled by
24719 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
24720 # This code just checks for a few cases where we'd like to ignore those
24721 # definitions, even when they're present in the '.mt' file. These cases
24722 # are when --disable-sim is specified, or if the simulator directory is
24723 # not part of the source tree.
24724 #
24725 # Check whether --enable-sim was given.
24726 if test "${enable_sim+set}" = set; then
24727 enableval=$enable_sim; echo "enable_sim = $enable_sim";
24728 echo "enableval = ${enableval}";
24729 case "${enableval}" in
24730 yes) ignore_sim=false ;;
24731 no) ignore_sim=true ;;
24732 *) ignore_sim=false ;;
24733 esac
24734 else
24735 ignore_sim=false
24736 fi
24737
24738
24739 if test ! -d "${srcdir}/../sim"; then
24740 ignore_sim=true
24741 fi
24742
24743 if test "${ignore_sim}" = "true"; then
24744 IGNORE_SIM="SIM="
24745 IGNORE_SIM_OBS="SIM_OBS="
24746 else
24747 IGNORE_SIM=""
24748 IGNORE_SIM_OBS=""
24749
24750 cat >>confdefs.h <<\_ACEOF
24751 #define WITH_SIM 1
24752 _ACEOF
24753
24754 fi
24755
24756
24757
24758
24759
24760
24761
24762
24763
24764
24765
24766
24767
24768
24769 # List of host floatformats.
24770
24771 cat >>confdefs.h <<_ACEOF
24772 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
24773 _ACEOF
24774
24775
24776 cat >>confdefs.h <<_ACEOF
24777 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
24778 _ACEOF
24779
24780
24781 cat >>confdefs.h <<_ACEOF
24782 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
24783 _ACEOF
24784
24785
24786 # target_subdir is used by the testsuite to find the target libraries.
24787 target_subdir=
24788 if test "${host}" != "${target}"; then
24789 target_subdir="${target_alias}/"
24790 fi
24791
24792
24793 frags=
24794 if test "${target}" = "${host}"; then
24795 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
24796 if test ! -f ${host_makefile_frag}; then
24797 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
24798 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
24799 { (exit 1); exit 1; }; }
24800 fi
24801 frags="$frags $host_makefile_frag"
24802 else
24803 host_makefile_frag=/dev/null
24804 fi
24805
24806 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
24807 if test ! -f ${target_makefile_frag}; then
24808 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
24809 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
24810 { (exit 1); exit 1; }; }
24811 fi
24812 frags="$frags $target_makefile_frag"
24813
24814
24815
24816
24817
24818 hostfile=`sed -n '
24819 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
24820 ' ${host_makefile_frag}`
24821
24822 targetfile=`sed -n '
24823 s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
24824 ' ${target_makefile_frag}`
24825
24826 if test "${target}" = "${host}"; then
24827 # We pick this up from the host configuration file (.mh) because we
24828 # do not have a native configuration Makefile fragment.
24829 nativefile=`sed -n '
24830 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
24831 ' ${host_makefile_frag}`
24832 fi
24833
24834
24835 if test x"${gdb_osabi}" != x ; then
24836
24837 cat >>confdefs.h <<_ACEOF
24838 #define GDB_OSABI_DEFAULT $gdb_osabi
24839 _ACEOF
24840
24841 fi
24842
24843 # Enable multi-ice-gdb-server.
24844 # Check whether --enable-multi-ice was given.
24845 if test "${enable_multi_ice+set}" = set; then
24846 enableval=$enable_multi_ice; case $enableval in
24847 yes | no)
24848 ;;
24849 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
24850 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
24851 { (exit 1); exit 1; }; } ;;
24852 esac
24853 fi
24854
24855 if test "x$enable_multi_ice" = xyes; then
24856 subdirs="$subdirs multi-ice"
24857
24858 fi
24859
24860 # We only build gdbserver automatically if host and target are the same.
24861 if test "x$target" = "x$host"; then
24862 { echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
24863 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6; }
24864 if test "x$build_gdbserver" = xyes; then
24865 { echo "$as_me:$LINENO: result: yes" >&5
24866 echo "${ECHO_T}yes" >&6; }
24867 subdirs="$subdirs gdbserver"
24868
24869 else
24870 { echo "$as_me:$LINENO: result: no" >&5
24871 echo "${ECHO_T}no" >&6; }
24872 fi
24873 fi
24874
24875 # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
24876 # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
24877 # to an empty version.
24878
24879 files=
24880 links=
24881
24882 rm -f xm.h
24883 xm_h=""
24884 if test "${hostfile}" != ""; then
24885 xm_h=xm.h
24886 case "${hostfile}" in
24887 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
24888 * ) GDB_XM_FILE="${hostfile}"
24889 esac
24890 files="${files} ${GDB_XM_FILE}"
24891 links="${links} xm.h"
24892
24893 cat >>confdefs.h <<_ACEOF
24894 #define GDB_XM_FILE "${GDB_XM_FILE}"
24895 _ACEOF
24896
24897 fi
24898
24899
24900 rm -f tm.h
24901 tm_h=""
24902 if test "${targetfile}" != ""; then
24903 tm_h=tm.h
24904 case "${targetfile}" in
24905 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
24906 * ) GDB_TM_FILE="${targetfile}"
24907 esac
24908 files="${files} ${GDB_TM_FILE}"
24909 links="${links} tm.h"
24910
24911 cat >>confdefs.h <<_ACEOF
24912 #define GDB_TM_FILE "${GDB_TM_FILE}"
24913 _ACEOF
24914
24915 fi
24916
24917
24918 rm -f nm.h
24919 nm_h=""
24920 if test "${nativefile}" != ""; then
24921 nm_h=nm.h
24922 case "${nativefile}" in
24923 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
24924 * ) GDB_NM_FILE="${nativefile}"
24925 esac
24926 files="${files} ${GDB_NM_FILE}"
24927 links="${links} nm.h"
24928
24929 cat >>confdefs.h <<_ACEOF
24930 #define GDB_NM_FILE "${GDB_NM_FILE}"
24931 _ACEOF
24932
24933 fi
24934
24935
24936 ac_sources="$files"
24937 ac_dests="$links"
24938 while test -n "$ac_sources"; do
24939 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
24940 set $ac_sources; ac_source=$1; shift; ac_sources=$*
24941 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
24942 done
24943 ac_config_links="$ac_config_links $ac_config_links_1"
24944
24945
24946
24947
24948
24949
24950 cat >>confdefs.h <<\_ACEOF
24951 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
24952 _ACEOF
24953
24954
24955
24956
24957
24958 # Check whether --with-libiconv-prefix was given.
24959 if test "${with_libiconv_prefix+set}" = set; then
24960 withval=$with_libiconv_prefix;
24961 for dir in `echo "$withval" | tr : ' '`; do
24962 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
24963 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
24964 done
24965
24966 fi
24967
24968
24969 { echo "$as_me:$LINENO: checking for iconv" >&5
24970 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
24971 if test "${am_cv_func_iconv+set}" = set; then
24972 echo $ECHO_N "(cached) $ECHO_C" >&6
24973 else
24974
24975 am_cv_func_iconv="no, consider installing GNU libiconv"
24976 am_cv_lib_iconv=no
24977 cat >conftest.$ac_ext <<_ACEOF
24978 /* confdefs.h. */
24979 _ACEOF
24980 cat confdefs.h >>conftest.$ac_ext
24981 cat >>conftest.$ac_ext <<_ACEOF
24982 /* end confdefs.h. */
24983 #include <stdlib.h>
24984 #include <iconv.h>
24985 int
24986 main ()
24987 {
24988 iconv_t cd = iconv_open("","");
24989 iconv(cd,NULL,NULL,NULL,NULL);
24990 iconv_close(cd);
24991 ;
24992 return 0;
24993 }
24994 _ACEOF
24995 rm -f conftest.$ac_objext conftest$ac_exeext
24996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24997 (eval $ac_link) 2>conftest.er1
24998 ac_status=$?
24999 grep -v '^ *+' conftest.er1 >conftest.err
25000 rm -f conftest.er1
25001 cat conftest.err >&5
25002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003 (exit $ac_status); } &&
25004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25006 (eval $ac_try) 2>&5
25007 ac_status=$?
25008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); }; } &&
25010 { ac_try='test -s conftest$ac_exeext'
25011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25012 (eval $ac_try) 2>&5
25013 ac_status=$?
25014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015 (exit $ac_status); }; }; then
25016 am_cv_func_iconv=yes
25017 else
25018 echo "$as_me: failed program was:" >&5
25019 sed 's/^/| /' conftest.$ac_ext >&5
25020
25021
25022 fi
25023
25024 rm -f conftest.err conftest.$ac_objext \
25025 conftest$ac_exeext conftest.$ac_ext
25026 if test "$am_cv_func_iconv" != yes; then
25027 am_save_LIBS="$LIBS"
25028 LIBS="$LIBS -liconv"
25029 cat >conftest.$ac_ext <<_ACEOF
25030 /* confdefs.h. */
25031 _ACEOF
25032 cat confdefs.h >>conftest.$ac_ext
25033 cat >>conftest.$ac_ext <<_ACEOF
25034 /* end confdefs.h. */
25035 #include <stdlib.h>
25036 #include <iconv.h>
25037 int
25038 main ()
25039 {
25040 iconv_t cd = iconv_open("","");
25041 iconv(cd,NULL,NULL,NULL,NULL);
25042 iconv_close(cd);
25043 ;
25044 return 0;
25045 }
25046 _ACEOF
25047 rm -f conftest.$ac_objext conftest$ac_exeext
25048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25049 (eval $ac_link) 2>conftest.er1
25050 ac_status=$?
25051 grep -v '^ *+' conftest.er1 >conftest.err
25052 rm -f conftest.er1
25053 cat conftest.err >&5
25054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055 (exit $ac_status); } &&
25056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25058 (eval $ac_try) 2>&5
25059 ac_status=$?
25060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); }; } &&
25062 { ac_try='test -s conftest$ac_exeext'
25063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25064 (eval $ac_try) 2>&5
25065 ac_status=$?
25066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067 (exit $ac_status); }; }; then
25068 am_cv_lib_iconv=yes
25069 am_cv_func_iconv=yes
25070 else
25071 echo "$as_me: failed program was:" >&5
25072 sed 's/^/| /' conftest.$ac_ext >&5
25073
25074
25075 fi
25076
25077 rm -f conftest.err conftest.$ac_objext \
25078 conftest$ac_exeext conftest.$ac_ext
25079 LIBS="$am_save_LIBS"
25080 fi
25081
25082 fi
25083 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25084 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
25085 if test "$am_cv_func_iconv" = yes; then
25086
25087 cat >>confdefs.h <<\_ACEOF
25088 #define HAVE_ICONV 1
25089 _ACEOF
25090
25091 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
25092 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
25093 if test "${am_cv_proto_iconv+set}" = set; then
25094 echo $ECHO_N "(cached) $ECHO_C" >&6
25095 else
25096
25097 cat >conftest.$ac_ext <<_ACEOF
25098 /* confdefs.h. */
25099 _ACEOF
25100 cat confdefs.h >>conftest.$ac_ext
25101 cat >>conftest.$ac_ext <<_ACEOF
25102 /* end confdefs.h. */
25103
25104 #include <stdlib.h>
25105 #include <iconv.h>
25106 extern
25107 #ifdef __cplusplus
25108 "C"
25109 #endif
25110 #if defined(__STDC__) || defined(__cplusplus)
25111 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25112 #else
25113 size_t iconv();
25114 #endif
25115
25116 int
25117 main ()
25118 {
25119
25120 ;
25121 return 0;
25122 }
25123 _ACEOF
25124 rm -f conftest.$ac_objext
25125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25126 (eval $ac_compile) 2>conftest.er1
25127 ac_status=$?
25128 grep -v '^ *+' conftest.er1 >conftest.err
25129 rm -f conftest.er1
25130 cat conftest.err >&5
25131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132 (exit $ac_status); } &&
25133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25135 (eval $ac_try) 2>&5
25136 ac_status=$?
25137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138 (exit $ac_status); }; } &&
25139 { ac_try='test -s conftest.$ac_objext'
25140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25141 (eval $ac_try) 2>&5
25142 ac_status=$?
25143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); }; }; then
25145 am_cv_proto_iconv_arg1=""
25146 else
25147 echo "$as_me: failed program was:" >&5
25148 sed 's/^/| /' conftest.$ac_ext >&5
25149
25150 am_cv_proto_iconv_arg1="const"
25151 fi
25152
25153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25154 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);"
25155 fi
25156
25157 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
25158 { echo "$as_me:$LINENO: result: ${ac_t:-
25159 }$am_cv_proto_iconv" >&5
25160 echo "${ECHO_T}${ac_t:-
25161 }$am_cv_proto_iconv" >&6; }
25162
25163 cat >>confdefs.h <<_ACEOF
25164 #define ICONV_CONST $am_cv_proto_iconv_arg1
25165 _ACEOF
25166
25167 fi
25168 LIBICONV=
25169 if test "$am_cv_lib_iconv" = yes; then
25170 LIBICONV="-liconv"
25171 fi
25172
25173
25174
25175 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
25176
25177 ac_config_commands="$ac_config_commands default"
25178
25179 cat >confcache <<\_ACEOF
25180 # This file is a shell script that caches the results of configure
25181 # tests run on this system so they can be shared between configure
25182 # scripts and configure runs, see configure's option --config-cache.
25183 # It is not useful on other systems. If it contains results you don't
25184 # want to keep, you may remove or edit it.
25185 #
25186 # config.status only pays attention to the cache file if you give it
25187 # the --recheck option to rerun configure.
25188 #
25189 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25190 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25191 # following values.
25192
25193 _ACEOF
25194
25195 # The following way of writing the cache mishandles newlines in values,
25196 # but we know of no workaround that is simple, portable, and efficient.
25197 # So, we kill variables containing newlines.
25198 # Ultrix sh set writes to stderr and can't be redirected directly,
25199 # and sets the high bit in the cache file unless we assign to the vars.
25200 (
25201 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25202 eval ac_val=\$$ac_var
25203 case $ac_val in #(
25204 *${as_nl}*)
25205 case $ac_var in #(
25206 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25207 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25208 esac
25209 case $ac_var in #(
25210 _ | IFS | as_nl) ;; #(
25211 *) $as_unset $ac_var ;;
25212 esac ;;
25213 esac
25214 done
25215
25216 (set) 2>&1 |
25217 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25218 *${as_nl}ac_space=\ *)
25219 # `set' does not quote correctly, so add quotes (double-quote
25220 # substitution turns \\\\ into \\, and sed turns \\ into \).
25221 sed -n \
25222 "s/'/'\\\\''/g;
25223 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25224 ;; #(
25225 *)
25226 # `set' quotes correctly as required by POSIX, so do not add quotes.
25227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25228 ;;
25229 esac |
25230 sort
25231 ) |
25232 sed '
25233 /^ac_cv_env_/b end
25234 t clear
25235 :clear
25236 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25237 t end
25238 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25239 :end' >>confcache
25240 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25241 if test -w $cache_file; then
25242 test "x$cache_file" != "x/dev/null" &&
25243 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25244 echo "$as_me: updating cache $cache_file" >&6;}
25245 cat confcache >$cache_file
25246 else
25247 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25248 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25249 fi
25250 fi
25251 rm -f confcache
25252
25253 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25254 # Let make expand exec_prefix.
25255 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25256
25257 DEFS=-DHAVE_CONFIG_H
25258
25259 ac_libobjs=
25260 ac_ltlibobjs=
25261 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25262 # 1. Remove the extension, and $U if already installed.
25263 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25264 ac_i=`echo "$ac_i" | sed "$ac_script"`
25265 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25266 # will be set to the directory where LIBOBJS objects are built.
25267 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25268 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25269 done
25270 LIBOBJS=$ac_libobjs
25271
25272 LTLIBOBJS=$ac_ltlibobjs
25273
25274
25275 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25276 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25277 Usually this means the macro was only invoked conditionally." >&5
25278 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25279 Usually this means the macro was only invoked conditionally." >&2;}
25280 { (exit 1); exit 1; }; }
25281 fi
25282
25283 : ${CONFIG_STATUS=./config.status}
25284 ac_clean_files_save=$ac_clean_files
25285 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25286 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25287 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25288 cat >$CONFIG_STATUS <<_ACEOF
25289 #! $SHELL
25290 # Generated by $as_me.
25291 # Run this file to recreate the current configuration.
25292 # Compiler output produced by configure, useful for debugging
25293 # configure, is in config.log if it exists.
25294
25295 debug=false
25296 ac_cs_recheck=false
25297 ac_cs_silent=false
25298 SHELL=\${CONFIG_SHELL-$SHELL}
25299 _ACEOF
25300
25301 cat >>$CONFIG_STATUS <<\_ACEOF
25302 ## --------------------- ##
25303 ## M4sh Initialization. ##
25304 ## --------------------- ##
25305
25306 # Be Bourne compatible
25307 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25308 emulate sh
25309 NULLCMD=:
25310 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25311 # is contrary to our usage. Disable this feature.
25312 alias -g '${1+"$@"}'='"$@"'
25313 setopt NO_GLOB_SUBST
25314 else
25315 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25316 fi
25317 BIN_SH=xpg4; export BIN_SH # for Tru64
25318 DUALCASE=1; export DUALCASE # for MKS sh
25319
25320
25321 # PATH needs CR
25322 # Avoid depending upon Character Ranges.
25323 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25324 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25325 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25326 as_cr_digits='0123456789'
25327 as_cr_alnum=$as_cr_Letters$as_cr_digits
25328
25329 # The user is always right.
25330 if test "${PATH_SEPARATOR+set}" != set; then
25331 echo "#! /bin/sh" >conf$$.sh
25332 echo "exit 0" >>conf$$.sh
25333 chmod +x conf$$.sh
25334 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25335 PATH_SEPARATOR=';'
25336 else
25337 PATH_SEPARATOR=:
25338 fi
25339 rm -f conf$$.sh
25340 fi
25341
25342 # Support unset when possible.
25343 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25344 as_unset=unset
25345 else
25346 as_unset=false
25347 fi
25348
25349
25350 # IFS
25351 # We need space, tab and new line, in precisely that order. Quoting is
25352 # there to prevent editors from complaining about space-tab.
25353 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25354 # splitting by setting IFS to empty value.)
25355 as_nl='
25356 '
25357 IFS=" "" $as_nl"
25358
25359 # Find who we are. Look in the path if we contain no directory separator.
25360 case $0 in
25361 *[\\/]* ) as_myself=$0 ;;
25362 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25363 for as_dir in $PATH
25364 do
25365 IFS=$as_save_IFS
25366 test -z "$as_dir" && as_dir=.
25367 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25368 done
25369 IFS=$as_save_IFS
25370
25371 ;;
25372 esac
25373 # We did not find ourselves, most probably we were run as `sh COMMAND'
25374 # in which case we are not to be found in the path.
25375 if test "x$as_myself" = x; then
25376 as_myself=$0
25377 fi
25378 if test ! -f "$as_myself"; then
25379 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25380 { (exit 1); exit 1; }
25381 fi
25382
25383 # Work around bugs in pre-3.0 UWIN ksh.
25384 for as_var in ENV MAIL MAILPATH
25385 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25386 done
25387 PS1='$ '
25388 PS2='> '
25389 PS4='+ '
25390
25391 # NLS nuisances.
25392 for as_var in \
25393 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25394 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25395 LC_TELEPHONE LC_TIME
25396 do
25397 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25398 eval $as_var=C; export $as_var
25399 else
25400 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25401 fi
25402 done
25403
25404 # Required to use basename.
25405 if expr a : '\(a\)' >/dev/null 2>&1 &&
25406 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25407 as_expr=expr
25408 else
25409 as_expr=false
25410 fi
25411
25412 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25413 as_basename=basename
25414 else
25415 as_basename=false
25416 fi
25417
25418
25419 # Name of the executable.
25420 as_me=`$as_basename -- "$0" ||
25421 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25422 X"$0" : 'X\(//\)$' \| \
25423 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25424 echo X/"$0" |
25425 sed '/^.*\/\([^/][^/]*\)\/*$/{
25426 s//\1/
25427 q
25428 }
25429 /^X\/\(\/\/\)$/{
25430 s//\1/
25431 q
25432 }
25433 /^X\/\(\/\).*/{
25434 s//\1/
25435 q
25436 }
25437 s/.*/./; q'`
25438
25439 # CDPATH.
25440 $as_unset CDPATH
25441
25442
25443
25444 as_lineno_1=$LINENO
25445 as_lineno_2=$LINENO
25446 test "x$as_lineno_1" != "x$as_lineno_2" &&
25447 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25448
25449 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25450 # uniformly replaced by the line number. The first 'sed' inserts a
25451 # line-number line after each line using $LINENO; the second 'sed'
25452 # does the real work. The second script uses 'N' to pair each
25453 # line-number line with the line containing $LINENO, and appends
25454 # trailing '-' during substitution so that $LINENO is not a special
25455 # case at line end.
25456 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25457 # scripts with optimization help from Paolo Bonzini. Blame Lee
25458 # E. McMahon (1931-1989) for sed's syntax. :-)
25459 sed -n '
25460 p
25461 /[$]LINENO/=
25462 ' <$as_myself |
25463 sed '
25464 s/[$]LINENO.*/&-/
25465 t lineno
25466 b
25467 :lineno
25468 N
25469 :loop
25470 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25471 t loop
25472 s/-\n.*//
25473 ' >$as_me.lineno &&
25474 chmod +x "$as_me.lineno" ||
25475 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25476 { (exit 1); exit 1; }; }
25477
25478 # Don't try to exec as it changes $[0], causing all sort of problems
25479 # (the dirname of $[0] is not the place where we might find the
25480 # original and so on. Autoconf is especially sensitive to this).
25481 . "./$as_me.lineno"
25482 # Exit status is that of the last command.
25483 exit
25484 }
25485
25486
25487 if (dirname -- /) >/dev/null 2>&1; then
25488 as_dirname=dirname
25489 else
25490 as_dirname=false
25491 fi
25492
25493 ECHO_C= ECHO_N= ECHO_T=
25494 case `echo -n x` in
25495 -n*)
25496 case `echo 'x\c'` in
25497 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25498 *) ECHO_C='\c';;
25499 esac;;
25500 *)
25501 ECHO_N='-n';;
25502 esac
25503
25504 if expr a : '\(a\)' >/dev/null 2>&1 &&
25505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25506 as_expr=expr
25507 else
25508 as_expr=false
25509 fi
25510
25511 rm -f conf$$ conf$$.exe conf$$.file
25512 if test -d conf$$.dir; then
25513 rm -f conf$$.dir/conf$$.file
25514 else
25515 rm -f conf$$.dir
25516 mkdir conf$$.dir
25517 fi
25518 echo >conf$$.file
25519 if ln -s conf$$.file conf$$ 2>/dev/null; then
25520 as_ln_s='ln -s'
25521 # ... but there are two gotchas:
25522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25524 # In both cases, we have to default to `cp -p'.
25525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25526 as_ln_s='cp -p'
25527 elif ln conf$$.file conf$$ 2>/dev/null; then
25528 as_ln_s=ln
25529 else
25530 as_ln_s='cp -p'
25531 fi
25532 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25533 rmdir conf$$.dir 2>/dev/null
25534
25535 if mkdir -p . 2>/dev/null; then
25536 as_mkdir_p=:
25537 else
25538 test -d ./-p && rmdir ./-p
25539 as_mkdir_p=false
25540 fi
25541
25542 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
25543 # systems may use methods other than mode bits to determine executability.
25544 cat >conf$$.file <<_ASEOF
25545 #! /bin/sh
25546 exit 0
25547 _ASEOF
25548 chmod +x conf$$.file
25549 if test -x conf$$.file >/dev/null 2>&1; then
25550 as_executable_p="test -x"
25551 else
25552 as_executable_p=:
25553 fi
25554 rm -f conf$$.file
25555
25556 # Sed expression to map a string onto a valid CPP name.
25557 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25558
25559 # Sed expression to map a string onto a valid variable name.
25560 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25561
25562
25563 exec 6>&1
25564
25565 # Save the log message, to keep $[0] and so on meaningful, and to
25566 # report actual input values of CONFIG_FILES etc. instead of their
25567 # values after options handling.
25568 ac_log="
25569 This file was extended by $as_me, which was
25570 generated by GNU Autoconf 2.59d. Invocation command line was
25571
25572 CONFIG_FILES = $CONFIG_FILES
25573 CONFIG_HEADERS = $CONFIG_HEADERS
25574 CONFIG_LINKS = $CONFIG_LINKS
25575 CONFIG_COMMANDS = $CONFIG_COMMANDS
25576 $ $0 $@
25577
25578 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25579 "
25580
25581 _ACEOF
25582
25583 cat >>$CONFIG_STATUS <<_ACEOF
25584 # Files that config.status was made for.
25585 config_files="$ac_config_files"
25586 config_headers="$ac_config_headers"
25587 config_links="$ac_config_links"
25588 config_commands="$ac_config_commands"
25589
25590 _ACEOF
25591
25592 cat >>$CONFIG_STATUS <<\_ACEOF
25593 ac_cs_usage="\
25594 \`$as_me' instantiates files from templates according to the
25595 current configuration.
25596
25597 Usage: $0 [OPTIONS] [FILE]...
25598
25599 -h, --help print this help, then exit
25600 -V, --version print version number, then exit
25601 -q, --quiet do not print progress messages
25602 -d, --debug don't remove temporary files
25603 --recheck update $as_me by reconfiguring in the same conditions
25604 --file=FILE[:TEMPLATE]
25605 instantiate the configuration file FILE
25606 --header=FILE[:TEMPLATE]
25607 instantiate the configuration header FILE
25608
25609 Configuration files:
25610 $config_files
25611
25612 Configuration headers:
25613 $config_headers
25614
25615 Configuration links:
25616 $config_links
25617
25618 Configuration commands:
25619 $config_commands
25620
25621 Report bugs to <bug-autoconf@gnu.org>."
25622
25623 _ACEOF
25624 cat >>$CONFIG_STATUS <<_ACEOF
25625 ac_cs_version="\\
25626 config.status
25627 configured by $0, generated by GNU Autoconf 2.59d,
25628 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25629
25630 Copyright (C) 2006 Free Software Foundation, Inc.
25631 This config.status script is free software; the Free Software Foundation
25632 gives unlimited permission to copy, distribute and modify it."
25633
25634 ac_pwd='$ac_pwd'
25635 srcdir='$srcdir'
25636 INSTALL='$INSTALL'
25637 _ACEOF
25638
25639 cat >>$CONFIG_STATUS <<\_ACEOF
25640 # If no file are specified by the user, then we need to provide default
25641 # value. By we need to know if files were specified by the user.
25642 ac_need_defaults=:
25643 while test $# != 0
25644 do
25645 case $1 in
25646 --*=*)
25647 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25648 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25649 ac_shift=:
25650 ;;
25651 *)
25652 ac_option=$1
25653 ac_optarg=$2
25654 ac_shift=shift
25655 ;;
25656 esac
25657
25658 case $ac_option in
25659 # Handling of the options.
25660 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25661 ac_cs_recheck=: ;;
25662 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25663 echo "$ac_cs_version"; exit ;;
25664 --debug | --debu | --deb | --de | --d | -d )
25665 debug=: ;;
25666 --file | --fil | --fi | --f )
25667 $ac_shift
25668 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25669 ac_need_defaults=false;;
25670 --header | --heade | --head | --hea )
25671 $ac_shift
25672 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25673 ac_need_defaults=false;;
25674 --he | --h)
25675 # Conflict between --help and --header
25676 { echo "$as_me: error: ambiguous option: $1
25677 Try \`$0 --help' for more information." >&2
25678 { (exit 1); exit 1; }; };;
25679 --help | --hel | -h )
25680 echo "$ac_cs_usage"; exit ;;
25681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25682 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25683 ac_cs_silent=: ;;
25684
25685 # This is an error.
25686 -*) { echo "$as_me: error: unrecognized option: $1
25687 Try \`$0 --help' for more information." >&2
25688 { (exit 1); exit 1; }; } ;;
25689
25690 *) ac_config_targets="$ac_config_targets $1"
25691 ac_need_defaults=false ;;
25692
25693 esac
25694 shift
25695 done
25696
25697 ac_configure_extra_args=
25698
25699 if $ac_cs_silent; then
25700 exec 6>/dev/null
25701 ac_configure_extra_args="$ac_configure_extra_args --silent"
25702 fi
25703
25704 _ACEOF
25705 cat >>$CONFIG_STATUS <<_ACEOF
25706 if \$ac_cs_recheck; then
25707 echo "running CONFIG_SHELL=$SHELL $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25708 CONFIG_SHELL=$SHELL
25709 export CONFIG_SHELL
25710 exec $SHELL "$0" $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25711 fi
25712
25713 _ACEOF
25714 cat >>$CONFIG_STATUS <<\_ACEOF
25715 exec 5>>config.log
25716 {
25717 echo
25718 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25719 ## Running $as_me. ##
25720 _ASBOX
25721 echo "$ac_log"
25722 } >&5
25723
25724 _ACEOF
25725 cat >>$CONFIG_STATUS <<_ACEOF
25726 #
25727 # INIT-COMMANDS
25728 #
25729
25730 GCC="$GCC"
25731 CC="$CC"
25732 acx_cv_header_stdint="$acx_cv_header_stdint"
25733 acx_cv_type_int8_t="$acx_cv_type_int8_t"
25734 acx_cv_type_int16_t="$acx_cv_type_int16_t"
25735 acx_cv_type_int32_t="$acx_cv_type_int32_t"
25736 acx_cv_type_int64_t="$acx_cv_type_int64_t"
25737 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
25738 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
25739 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
25740 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
25741 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
25742 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
25743 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
25744 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
25745 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
25746
25747
25748 gdb_host_cpu=$gdb_host_cpu
25749 gdb_target_cpu=$gdb_target_cpu
25750 nativefile=$nativefile
25751
25752
25753 _ACEOF
25754
25755 cat >>$CONFIG_STATUS <<\_ACEOF
25756
25757 # Handling of arguments.
25758 for ac_config_target in $ac_config_targets
25759 do
25760 case $ac_config_target in
25761 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
25762 "gdb_stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
25763 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
25764 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25765 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
25766 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25767
25768 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25769 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25770 { (exit 1); exit 1; }; };;
25771 esac
25772 done
25773
25774
25775 # If the user did not use the arguments to specify the items to instantiate,
25776 # then the envvar interface is used. Set only those that are not.
25777 # We use the long form for the default assignment because of an extremely
25778 # bizarre bug on SunOS 4.1.3.
25779 if $ac_need_defaults; then
25780 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25781 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25782 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25783 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25784 fi
25785
25786 # Have a temporary directory for convenience. Make it in the build tree
25787 # simply because there is no reason against having it here, and in addition,
25788 # creating and moving files from /tmp can sometimes cause problems.
25789 # Hook for its removal unless debugging.
25790 # Note that there is a small window in which the directory will not be cleaned:
25791 # after its creation but before its name has been assigned to `$tmp'.
25792 $debug ||
25793 {
25794 tmp=
25795 trap 'exit_status=$?
25796 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25797 ' 0
25798 trap '{ (exit 1); exit 1; }' 1 2 13 15
25799 }
25800 # Create a (secure) tmp directory for tmp files.
25801
25802 {
25803 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25804 test -n "$tmp" && test -d "$tmp"
25805 } ||
25806 {
25807 tmp=./conf$$-$RANDOM
25808 (umask 077 && mkdir "$tmp")
25809 } ||
25810 {
25811 echo "$me: cannot create a temporary directory in ." >&2
25812 { (exit 1); exit 1; }
25813 }
25814
25815 #
25816 # Set up the sed scripts for CONFIG_FILES section.
25817 #
25818
25819 # No need to generate the scripts if there are no CONFIG_FILES.
25820 # This happens for instance when ./config.status config.h
25821 if test -n "$CONFIG_FILES"; then
25822
25823 _ACEOF
25824
25825 # Create sed commands to just substitute file output variables.
25826
25827 # Remaining file output variables are in a fragment that also has non-file
25828 # output varibles.
25829
25830
25831
25832 ac_delim='%!_!# '
25833 for ac_last_try in false false false false false :; do
25834 cat >conf$$subs.sed <<_ACEOF
25835 SHELL!$SHELL$ac_delim
25836 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25837 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25838 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25839 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25840 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25841 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25842 exec_prefix!$exec_prefix$ac_delim
25843 prefix!$prefix$ac_delim
25844 program_transform_name!$program_transform_name$ac_delim
25845 bindir!$bindir$ac_delim
25846 sbindir!$sbindir$ac_delim
25847 libexecdir!$libexecdir$ac_delim
25848 datarootdir!$datarootdir$ac_delim
25849 datadir!$datadir$ac_delim
25850 sysconfdir!$sysconfdir$ac_delim
25851 sharedstatedir!$sharedstatedir$ac_delim
25852 localstatedir!$localstatedir$ac_delim
25853 includedir!$includedir$ac_delim
25854 oldincludedir!$oldincludedir$ac_delim
25855 docdir!$docdir$ac_delim
25856 infodir!$infodir$ac_delim
25857 htmldir!$htmldir$ac_delim
25858 dvidir!$dvidir$ac_delim
25859 pdfdir!$pdfdir$ac_delim
25860 psdir!$psdir$ac_delim
25861 libdir!$libdir$ac_delim
25862 localedir!$localedir$ac_delim
25863 mandir!$mandir$ac_delim
25864 DEFS!$DEFS$ac_delim
25865 ECHO_C!$ECHO_C$ac_delim
25866 ECHO_N!$ECHO_N$ac_delim
25867 ECHO_T!$ECHO_T$ac_delim
25868 LIBS!$LIBS$ac_delim
25869 build_alias!$build_alias$ac_delim
25870 host_alias!$host_alias$ac_delim
25871 target_alias!$target_alias$ac_delim
25872 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
25873 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
25874 MAINT!$MAINT$ac_delim
25875 CC!$CC$ac_delim
25876 CFLAGS!$CFLAGS$ac_delim
25877 LDFLAGS!$LDFLAGS$ac_delim
25878 CPPFLAGS!$CPPFLAGS$ac_delim
25879 ac_ct_CC!$ac_ct_CC$ac_delim
25880 EXEEXT!$EXEEXT$ac_delim
25881 OBJEXT!$OBJEXT$ac_delim
25882 CPP!$CPP$ac_delim
25883 GREP!$GREP$ac_delim
25884 EGREP!$EGREP$ac_delim
25885 build!$build$ac_delim
25886 build_cpu!$build_cpu$ac_delim
25887 build_vendor!$build_vendor$ac_delim
25888 build_os!$build_os$ac_delim
25889 host!$host$ac_delim
25890 host_cpu!$host_cpu$ac_delim
25891 host_vendor!$host_vendor$ac_delim
25892 host_os!$host_os$ac_delim
25893 target!$target$ac_delim
25894 target_cpu!$target_cpu$ac_delim
25895 target_vendor!$target_vendor$ac_delim
25896 target_os!$target_os$ac_delim
25897 SET_MAKE!$SET_MAKE$ac_delim
25898 RANLIB!$RANLIB$ac_delim
25899 ALLOCA!$ALLOCA$ac_delim
25900 USE_NLS!$USE_NLS$ac_delim
25901 MSGFMT!$MSGFMT$ac_delim
25902 GMSGFMT!$GMSGFMT$ac_delim
25903 XGETTEXT!$XGETTEXT$ac_delim
25904 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
25905 CATALOGS!$CATALOGS$ac_delim
25906 CATOBJEXT!$CATOBJEXT$ac_delim
25907 DATADIRNAME!$DATADIRNAME$ac_delim
25908 GMOFILES!$GMOFILES$ac_delim
25909 INSTOBJEXT!$INSTOBJEXT$ac_delim
25910 INTLDEPS!$INTLDEPS$ac_delim
25911 INTLLIBS!$INTLLIBS$ac_delim
25912 INTLOBJS!$INTLOBJS$ac_delim
25913 POFILES!$POFILES$ac_delim
25914 POSUB!$POSUB$ac_delim
25915 INCLUDE_LOCALE_H!$INCLUDE_LOCALE_H$ac_delim
25916 GT_NO!$GT_NO$ac_delim
25917 GT_YES!$GT_YES$ac_delim
25918 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
25919 l!$l$ac_delim
25920 PACKAGE!$PACKAGE$ac_delim
25921 subdirs!$subdirs$ac_delim
25922 AWK!$AWK$ac_delim
25923 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25924 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25925 INSTALL_DATA!$INSTALL_DATA$ac_delim
25926 _ACEOF
25927
25928 if test `grep -c "$ac_delim\$" conf$$subs.sed` = 91; then
25929 break
25930 elif $ac_last_try; then
25931 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25932 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25933 { (exit 1); exit 1; }; }
25934 else
25935 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25936 fi
25937 done
25938
25939 ac_eof=
25940 if grep '^CEOF$' conf$$subs.sed >/dev/null; then
25941 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
25942 ac_eof=`expr 0$ac_eof + 1`
25943 fi
25944
25945 cat >>$CONFIG_STATUS <<_ACEOF
25946 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25947 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25948 /^[ ]*@host_makefile_frag@[ ]*$/{
25949 r $host_makefile_frag
25950 d
25951 }
25952 /^[ ]*@target_makefile_frag@[ ]*$/{
25953 r $target_makefile_frag
25954 d
25955 }
25956 _ACEOF
25957 sed '
25958 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25959 s/^/s,@/; s/!/@,|#_!!_#|/
25960 :n
25961 t n
25962 s/'"$ac_delim"'$/,g/; t
25963 s/$/\\/; p
25964 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25965 ' >>$CONFIG_STATUS <conf$$subs.sed
25966 rm -f conf$$subs.sed
25967 cat >>$CONFIG_STATUS <<_ACEOF
25968 CEOF$ac_eof
25969 _ACEOF
25970
25971
25972 ac_delim='%!_!# '
25973 for ac_last_try in false false false false false :; do
25974 cat >conf$$subs.sed <<_ACEOF
25975 LN_S!$LN_S$ac_delim
25976 YACC!$YACC$ac_delim
25977 YFLAGS!$YFLAGS$ac_delim
25978 AR!$AR$ac_delim
25979 DLLTOOL!$DLLTOOL$ac_delim
25980 WINDRES!$WINDRES$ac_delim
25981 MIG!$MIG$ac_delim
25982 CONFIG_LDFLAGS!$CONFIG_LDFLAGS$ac_delim
25983 TARGET_SYSTEM_ROOT!$TARGET_SYSTEM_ROOT$ac_delim
25984 TARGET_SYSTEM_ROOT_DEFINE!$TARGET_SYSTEM_ROOT_DEFINE$ac_delim
25985 WARN_CFLAGS!$WARN_CFLAGS$ac_delim
25986 WERROR_CFLAGS!$WERROR_CFLAGS$ac_delim
25987 SER_HARDWIRE!$SER_HARDWIRE$ac_delim
25988 WIN32LIBS!$WIN32LIBS$ac_delim
25989 LIBGUI!$LIBGUI$ac_delim
25990 GUI_CFLAGS_X!$GUI_CFLAGS_X$ac_delim
25991 WIN32LDAPP!$WIN32LDAPP$ac_delim
25992 TCL_VERSION!$TCL_VERSION$ac_delim
25993 TCL_MAJOR_VERSION!$TCL_MAJOR_VERSION$ac_delim
25994 TCL_MINOR_VERSION!$TCL_MINOR_VERSION$ac_delim
25995 TCL_CC!$TCL_CC$ac_delim
25996 TCL_DEFS!$TCL_DEFS$ac_delim
25997 TCL_SHLIB_CFLAGS!$TCL_SHLIB_CFLAGS$ac_delim
25998 TCL_SHLIB_LD!$TCL_SHLIB_LD$ac_delim
25999 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
26000 TCL_SHLIB_SUFFIX!$TCL_SHLIB_SUFFIX$ac_delim
26001 TCL_DL_LIBS!$TCL_DL_LIBS$ac_delim
26002 TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim
26003 TCL_LD_SEARCH_FLAGS!$TCL_LD_SEARCH_FLAGS$ac_delim
26004 TCL_CC_SEARCH_FLAGS!$TCL_CC_SEARCH_FLAGS$ac_delim
26005 TCL_COMPAT_OBJS!$TCL_COMPAT_OBJS$ac_delim
26006 TCL_RANLIB!$TCL_RANLIB$ac_delim
26007 TCL_BUILD_LIB_SPEC!$TCL_BUILD_LIB_SPEC$ac_delim
26008 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
26009 TCL_LIB_VERSIONS_OK!$TCL_LIB_VERSIONS_OK$ac_delim
26010 TK_VERSION!$TK_VERSION$ac_delim
26011 TK_DEFS!$TK_DEFS$ac_delim
26012 TK_BUILD_INCLUDES!$TK_BUILD_INCLUDES$ac_delim
26013 TK_XINCLUDES!$TK_XINCLUDES$ac_delim
26014 TK_XLIBSW!$TK_XLIBSW$ac_delim
26015 TK_BUILD_LIB_SPEC!$TK_BUILD_LIB_SPEC$ac_delim
26016 TK_LIB_SPEC!$TK_LIB_SPEC$ac_delim
26017 TCLHDIR!$TCLHDIR$ac_delim
26018 TKHDIR!$TKHDIR$ac_delim
26019 ITCLHDIR!$ITCLHDIR$ac_delim
26020 ITKHDIR!$ITKHDIR$ac_delim
26021 ITCL_VERSION!$ITCL_VERSION$ac_delim
26022 ITCL_DEFS!$ITCL_DEFS$ac_delim
26023 ITCL_BUILD_INCLUDES!$ITCL_BUILD_INCLUDES$ac_delim
26024 ITCL_BUILD_LIB_SPEC!$ITCL_BUILD_LIB_SPEC$ac_delim
26025 ITCL_LIB_SPEC!$ITCL_LIB_SPEC$ac_delim
26026 ITK_VERSION!$ITK_VERSION$ac_delim
26027 ITK_DEFS!$ITK_DEFS$ac_delim
26028 ITK_BUILD_INCLUDES!$ITK_BUILD_INCLUDES$ac_delim
26029 ITK_BUILD_LIB_SPEC!$ITK_BUILD_LIB_SPEC$ac_delim
26030 ITK_LIB_SPEC!$ITK_LIB_SPEC$ac_delim
26031 X_CFLAGS!$X_CFLAGS$ac_delim
26032 X_LDFLAGS!$X_LDFLAGS$ac_delim
26033 X_LIBS!$X_LIBS$ac_delim
26034 TCL_DEPS!$TCL_DEPS$ac_delim
26035 TK_DEPS!$TK_DEPS$ac_delim
26036 ITCLLIB!$ITCLLIB$ac_delim
26037 ITCL_DEPS!$ITCL_DEPS$ac_delim
26038 ITKLIB!$ITKLIB$ac_delim
26039 ITK_DEPS!$ITK_DEPS$ac_delim
26040 GDBTKLIBS!$GDBTKLIBS$ac_delim
26041 GDBTK_CFLAGS!$GDBTK_CFLAGS$ac_delim
26042 GDBTK_SRC_DIR!$GDBTK_SRC_DIR$ac_delim
26043 XMKMF!$XMKMF$ac_delim
26044 IGNORE_SIM!$IGNORE_SIM$ac_delim
26045 IGNORE_SIM_OBS!$IGNORE_SIM_OBS$ac_delim
26046 ENABLE_CFLAGS!$ENABLE_CFLAGS$ac_delim
26047 PROFILE_CFLAGS!$PROFILE_CFLAGS$ac_delim
26048 CONFIG_OBS!$CONFIG_OBS$ac_delim
26049 CONFIG_DEPS!$CONFIG_DEPS$ac_delim
26050 CONFIG_SRCS!$CONFIG_SRCS$ac_delim
26051 CONFIG_ALL!$CONFIG_ALL$ac_delim
26052 CONFIG_CLEAN!$CONFIG_CLEAN$ac_delim
26053 CONFIG_INSTALL!$CONFIG_INSTALL$ac_delim
26054 CONFIG_UNINSTALL!$CONFIG_UNINSTALL$ac_delim
26055 target_subdir!$target_subdir$ac_delim
26056 frags!$frags$ac_delim
26057 xm_h!$xm_h$ac_delim
26058 tm_h!$tm_h$ac_delim
26059 nm_h!$nm_h$ac_delim
26060 LIBICONV!$LIBICONV$ac_delim
26061 LIBOBJS!$LIBOBJS$ac_delim
26062 LTLIBOBJS!$LTLIBOBJS$ac_delim
26063 _ACEOF
26064
26065 if test `grep -c "$ac_delim\$" conf$$subs.sed` = 88; then
26066 break
26067 elif $ac_last_try; then
26068 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26069 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26070 { (exit 1); exit 1; }; }
26071 else
26072 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26073 fi
26074 done
26075
26076 ac_eof=
26077 if grep '^CEOF$' conf$$subs.sed >/dev/null; then
26078 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
26079 ac_eof=`expr 0$ac_eof + 1`
26080 fi
26081
26082 cat >>$CONFIG_STATUS <<_ACEOF
26083 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26084 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26085 _ACEOF
26086 sed '
26087 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26088 s/^/s,@/; s/!/@,|#_!!_#|/
26089 :n
26090 t n
26091 s/'"$ac_delim"'$/,g/; t
26092 s/$/\\/; p
26093 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26094 ' >>$CONFIG_STATUS <conf$$subs.sed
26095 rm -f conf$$subs.sed
26096 cat >>$CONFIG_STATUS <<_ACEOF
26097 :end
26098 s/|#_!!_#|//g
26099 CEOF$ac_eof
26100 _ACEOF
26101
26102
26103 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26104 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26105 # trailing colons and then remove the whole line if VPATH becomes empty
26106 # (actually we leave an empty line to preserve line numbers).
26107 if test "x$srcdir" = x.; then
26108 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26109 s/:*\$(srcdir):*/:/
26110 s/:*\${srcdir}:*/:/
26111 s/:*@srcdir@:*/:/
26112 s/^\([^=]*=[ ]*\):*/\1/
26113 s/:*$//
26114 s/^[^=]*=[ ]*$//
26115 }'
26116 fi
26117
26118 cat >>$CONFIG_STATUS <<\_ACEOF
26119 fi # test -n "$CONFIG_FILES"
26120
26121
26122 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
26123 do
26124 case $ac_tag in
26125 :[FHLC]) ac_mode=$ac_tag; continue;;
26126 esac
26127 case $ac_mode$ac_tag in
26128 :[FHL]*:*);;
26129 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26130 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26131 { (exit 1); exit 1; }; };;
26132 :[FH]-) ac_tag=-:-;;
26133 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26134 esac
26135 ac_save_IFS=$IFS
26136 IFS=:
26137 set x $ac_tag
26138 IFS=$ac_save_IFS
26139 shift
26140 ac_file=$1
26141 shift
26142
26143 case $ac_mode in
26144 :L) ac_source=$1;;
26145 :[FH])
26146 ac_file_inputs=
26147 for ac_f
26148 do
26149 case $ac_f in
26150 -) ac_f="$tmp/stdin";;
26151 *) # Look for the file first in the build tree, then in the source tree
26152 # (if the path is not absolute). The absolute path cannot be DOS-style,
26153 # because $ac_f cannot contain `:'.
26154 test -f "$ac_f" ||
26155 case $ac_f in
26156 [\\/$]*) false;;
26157 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26158 esac ||
26159 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26160 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26161 { (exit 1); exit 1; }; };;
26162 esac
26163 ac_file_inputs="$ac_file_inputs $ac_f"
26164 done
26165
26166 # Let's still pretend it is `configure' which instantiates (i.e., don't
26167 # use $as_me), people would be surprised to read:
26168 # /* config.h. Generated by config.status. */
26169 configure_input="Generated from "`IFS=:
26170 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26171 if test x"$ac_file" != x-; then
26172 configure_input="$ac_file. $configure_input"
26173 { echo "$as_me:$LINENO: creating $ac_file" >&5
26174 echo "$as_me: creating $ac_file" >&6;}
26175 fi
26176
26177 case $ac_tag in
26178 *:-:* | *:-) cat >"$tmp/stdin";;
26179 esac
26180 ;;
26181 esac
26182
26183 ac_dir=`$as_dirname -- "$ac_file" ||
26184 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26185 X"$ac_file" : 'X\(//\)[^/]' \| \
26186 X"$ac_file" : 'X\(//\)$' \| \
26187 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26188 echo X"$ac_file" |
26189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26190 s//\1/
26191 q
26192 }
26193 /^X\(\/\/\)[^/].*/{
26194 s//\1/
26195 q
26196 }
26197 /^X\(\/\/\)$/{
26198 s//\1/
26199 q
26200 }
26201 /^X\(\/\).*/{
26202 s//\1/
26203 q
26204 }
26205 s/.*/./; q'`
26206 { as_dir="$ac_dir"
26207 case $as_dir in #(
26208 -*) as_dir=./$as_dir;;
26209 esac
26210 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26211 as_dirs=
26212 while :; do
26213 case $as_dir in #(
26214 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26215 *) as_qdir=$as_dir;;
26216 esac
26217 as_dirs="'$as_qdir' $as_dirs"
26218 as_dir=`$as_dirname -- "$as_dir" ||
26219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26220 X"$as_dir" : 'X\(//\)[^/]' \| \
26221 X"$as_dir" : 'X\(//\)$' \| \
26222 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26223 echo X"$as_dir" |
26224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26225 s//\1/
26226 q
26227 }
26228 /^X\(\/\/\)[^/].*/{
26229 s//\1/
26230 q
26231 }
26232 /^X\(\/\/\)$/{
26233 s//\1/
26234 q
26235 }
26236 /^X\(\/\).*/{
26237 s//\1/
26238 q
26239 }
26240 s/.*/./; q'`
26241 test -d "$as_dir" && break
26242 done
26243 test -z "$as_dirs" || eval "mkdir $as_dirs"
26244 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26245 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26246 { (exit 1); exit 1; }; }; }
26247 ac_builddir=.
26248
26249 case "$ac_dir" in
26250 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26251 *)
26252 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26253 # A ".." for each directory in $ac_dir_suffix.
26254 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26255 case $ac_top_builddir_sub in
26256 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26257 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26258 esac ;;
26259 esac
26260 ac_abs_top_builddir=$ac_pwd
26261 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26262 # for backward compatibility:
26263 ac_top_builddir=$ac_top_build_prefix
26264
26265 case $srcdir in
26266 .) # We are building in place.
26267 ac_srcdir=.
26268 ac_top_srcdir=$ac_top_builddir_sub
26269 ac_abs_top_srcdir=$ac_pwd ;;
26270 [\\/]* | ?:[\\/]* ) # Absolute name.
26271 ac_srcdir=$srcdir$ac_dir_suffix;
26272 ac_top_srcdir=$srcdir
26273 ac_abs_top_srcdir=$srcdir ;;
26274 *) # Relative name.
26275 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26276 ac_top_srcdir=$ac_top_build_prefix$srcdir
26277 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26278 esac
26279 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26280
26281
26282 case $ac_mode in
26283 :F)
26284 #
26285 # CONFIG_FILE
26286 #
26287
26288 case $INSTALL in
26289 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26290 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26291 esac
26292 _ACEOF
26293
26294 cat >>$CONFIG_STATUS <<\_ACEOF
26295 # If the template does not know about datarootdir, expand it.
26296 # FIXME: This hack should be removed a few years after 2.60.
26297 ac_datarootdir_hack=
26298
26299 case `sed -n '/datarootdir/ {
26300 p
26301 q
26302 }
26303 /@datadir@/p
26304 /@docdir@/p
26305 /@infodir@/p
26306 /@localedir@/p
26307 /@mandir@/p
26308 ' $ac_file_inputs` in
26309 *datarootdir*) ;;
26310 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26311 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26312 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26313 _ACEOF
26314 cat >>$CONFIG_STATUS <<_ACEOF
26315 ac_datarootdir_hack='
26316 s&@datadir@&$datadir&g
26317 s&@docdir@&$docdir&g
26318 s&@infodir@&$infodir&g
26319 s&@localedir@&$localedir&g
26320 s&@mandir@&$mandir&g
26321 s&\\\${datarootdir}&$datarootdir&g' ;;
26322 esac
26323 _ACEOF
26324
26325 # Neutralize VPATH when `$srcdir' = `.'.
26326 # Shell code in configure.ac might set extrasub.
26327 # FIXME: do we really want to maintain this feature?
26328 cat >>$CONFIG_STATUS <<_ACEOF
26329 sed "$ac_vpsub
26330 $extrasub
26331 _ACEOF
26332 cat >>$CONFIG_STATUS <<\_ACEOF
26333 :t
26334 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26335 s&@configure_input@&$configure_input&;t t
26336 s&@top_builddir@&$ac_top_builddir_sub&;t t
26337 s&@srcdir@&$ac_srcdir&;t t
26338 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26339 s&@top_srcdir@&$ac_top_srcdir&;t t
26340 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26341 s&@builddir@&$ac_builddir&;t t
26342 s&@abs_builddir@&$ac_abs_builddir&;t t
26343 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26344 s&@INSTALL@&$ac_INSTALL&;t t
26345 $ac_datarootdir_hack
26346 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26347
26348 rm -f "$tmp/stdin"
26349 case $ac_file in
26350 -) cat "$tmp/out"; rm -f "$tmp/out";;
26351 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26352 esac
26353 ;;
26354 :H)
26355 #
26356 # CONFIG_HEADER
26357 #
26358
26359 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26360 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26361 # PARAMS is the parameter list in the macro definition--in most cases, it's
26362 # just an empty string.
26363 #
26364 ac_dA='s,^\([ ]*#[ ]*\)[^ ]*\([ ][ ]*'
26365 ac_dB='\)[ (].*$,\1define\2'
26366 ac_dC=' '
26367 ac_dD=' ,'
26368
26369 ac_word_regexp=[_$as_cr_Letters][_$as_cr_alnum]*
26370 _ACEOF
26371
26372 # Transform confdefs.h into a sed script `conftest.defines', that
26373 # substitutes the proper values into config.h.in to produce config.h.
26374 rm -f conftest.defines conftest.tail
26375 # First, append a space to every undef/define line, to ease matching.
26376 echo 's/$/ /' >conftest.defines
26377 # Then, protect against being on the right side of a sed subst, or in
26378 # an unquoted here document, in config.status. If some macros were
26379 # called several times there might be several #defines for the same
26380 # symbol, which is useless. But do not sort them, since the last
26381 # AC_DEFINE must be honored.
26382 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26383 uniq confdefs.h |
26384 sed -n '
26385 t rset
26386 :rset
26387 s/^[ ]*#[ ]*define[ ][ ]*//
26388 t ok
26389 d
26390 :ok
26391 s/[\\&,]/\\&/g
26392 s/[\\$`]/\\&/g
26393 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/${ac_dA}\1$ac_dB\2${ac_dC}\3$ac_dD/p
26394 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/${ac_dA}\1$ac_dB${ac_dC}\2$ac_dD/p
26395 ' >>conftest.defines
26396
26397 # Remove the space that was appended to ease matching.
26398 # Then replace #undef with comments. This is necessary, for
26399 # example, in the case of _POSIX_SOURCE, which is predefined and required
26400 # on some systems where configure will not decide to define it.
26401 # (The regexp can be short, since the line contains either #define or #undef.)
26402 echo 's/ $//
26403 s,^[ #]*u.*,/* & */,' >>conftest.defines
26404
26405 # Break up conftest.defines:
26406 ac_max_sed_lines=96
26407
26408 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26409 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26410 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26411 # et cetera.
26412 ac_in='$ac_file_inputs'
26413 ac_out='"$tmp/out1"'
26414 ac_nxt='"$tmp/out2"'
26415
26416 while :
26417 do
26418 # Write a here document:
26419 echo ' # First, check the format of the line:
26420 cat >"$tmp/defines.sed" <<CEOF
26421 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_regexp[ ]*$/b def
26422 /^[ ]*#[ ]*define[ ][ ]*$ac_word_regexp[( ]/b def
26423 b
26424 :def' >>$CONFIG_STATUS
26425 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26426 echo 'CEOF
26427 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26428 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26429 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26430 grep . conftest.tail >/dev/null || break
26431 rm -f conftest.defines
26432 mv conftest.tail conftest.defines
26433 done
26434 rm -f conftest.defines conftest.tail
26435
26436 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26437 cat >>$CONFIG_STATUS <<\_ACEOF
26438 if test x"$ac_file" != x-; then
26439 echo "/* $configure_input */" >"$tmp/config.h"
26440 cat "$ac_result" >>"$tmp/config.h"
26441 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26442 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26443 echo "$as_me: $ac_file is unchanged" >&6;}
26444 else
26445 rm -f $ac_file
26446 mv "$tmp/config.h" $ac_file
26447 fi
26448 else
26449 echo "/* $configure_input */"
26450 cat "$ac_result"
26451 fi
26452 rm -f "$tmp/out12"
26453 ;;
26454 :L)
26455 #
26456 # CONFIG_LINK
26457 #
26458
26459 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
26460 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
26461
26462 if test ! -r $srcdir/$ac_source; then
26463 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
26464 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
26465 { (exit 1); exit 1; }; }
26466 fi
26467 rm -f $ac_file
26468
26469 # Try a relative symlink, then a hard link, then a copy.
26470 case $srcdir in
26471 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
26472 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
26473 esac
26474 ln -s $ac_rel_source $ac_file 2>/dev/null ||
26475 ln $srcdir/$ac_source $ac_file 2>/dev/null ||
26476 cp -p $srcdir/$ac_source $ac_file ||
26477 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
26478 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
26479 { (exit 1); exit 1; }; }
26480 ;;
26481 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26482 echo "$as_me: executing $ac_file commands" >&6;}
26483 ;;
26484 esac
26485
26486
26487 case $ac_file$ac_mode in
26488 "gdb_stdint.h":C)
26489 if test "$GCC" = yes; then
26490 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
26491 else
26492 echo "/* generated for $CC */" > tmp-stdint.h
26493 fi
26494
26495 sed 's/^ *//' >> tmp-stdint.h <<EOF
26496
26497 #ifndef GCC_GENERATED_STDINT_H
26498 #define GCC_GENERATED_STDINT_H 1
26499
26500 #include <sys/types.h>
26501 EOF
26502
26503 if test "$acx_cv_header_stdint" != stdint.h; then
26504 echo "#include <stddef.h>" >> tmp-stdint.h
26505 fi
26506 if test "$acx_cv_header_stdint" != stddef.h; then
26507 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
26508 fi
26509
26510 sed 's/^ *//' >> tmp-stdint.h <<EOF
26511 /* glibc uses these symbols as guards to prevent redefinitions. */
26512 #ifdef __int8_t_defined
26513 #define _INT8_T
26514 #define _INT16_T
26515 #define _INT32_T
26516 #endif
26517 #ifdef __uint32_t_defined
26518 #define _UINT32_T
26519 #endif
26520
26521 EOF
26522
26523 # ----------------- done header, emit basic int types -------------
26524 if test "$acx_cv_header_stdint" = stddef.h; then
26525 sed 's/^ *//' >> tmp-stdint.h <<EOF
26526
26527 #ifndef _UINT8_T
26528 #define _UINT8_T
26529 typedef unsigned $acx_cv_type_int8_t uint8_t;
26530 #endif
26531
26532 #ifndef _UINT16_T
26533 #define _UINT16_T
26534 typedef unsigned $acx_cv_type_int16_t uint16_t;
26535 #endif
26536
26537 #ifndef _UINT32_T
26538 #define _UINT32_T
26539 typedef unsigned $acx_cv_type_int32_t uint32_t;
26540 #endif
26541
26542 #ifndef _INT8_T
26543 #define _INT8_T
26544 typedef $acx_cv_type_int8_t int8_t;
26545 #endif
26546
26547 #ifndef _INT16_T
26548 #define _INT16_T
26549 typedef $acx_cv_type_int16_t int16_t;
26550 #endif
26551
26552 #ifndef _INT32_T
26553 #define _INT32_T
26554 typedef $acx_cv_type_int32_t int32_t;
26555 #endif
26556 EOF
26557 elif test "$ac_cv_type_u_int32_t" = yes; then
26558 sed 's/^ *//' >> tmp-stdint.h <<EOF
26559
26560 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
26561 #ifndef _INT8_T
26562 #define _INT8_T
26563 #endif
26564 #ifndef _INT16_T
26565 #define _INT16_T
26566 #endif
26567 #ifndef _INT32_T
26568 #define _INT32_T
26569 #endif
26570
26571 #ifndef _UINT8_T
26572 #define _UINT8_T
26573 typedef u_int8_t uint8_t;
26574 #endif
26575
26576 #ifndef _UINT16_T
26577 #define _UINT16_T
26578 typedef u_int16_t uint16_t;
26579 #endif
26580
26581 #ifndef _UINT32_T
26582 #define _UINT32_T
26583 typedef u_int32_t uint32_t;
26584 #endif
26585 EOF
26586 else
26587 sed 's/^ *//' >> tmp-stdint.h <<EOF
26588
26589 /* Some systems have guard macros to prevent redefinitions, define them. */
26590 #ifndef _INT8_T
26591 #define _INT8_T
26592 #endif
26593 #ifndef _INT16_T
26594 #define _INT16_T
26595 #endif
26596 #ifndef _INT32_T
26597 #define _INT32_T
26598 #endif
26599 #ifndef _UINT8_T
26600 #define _UINT8_T
26601 #endif
26602 #ifndef _UINT16_T
26603 #define _UINT16_T
26604 #endif
26605 #ifndef _UINT32_T
26606 #define _UINT32_T
26607 #endif
26608 EOF
26609 fi
26610
26611 # ------------- done basic int types, emit int64_t types ------------
26612 if test "$ac_cv_type_uint64_t" = yes; then
26613 sed 's/^ *//' >> tmp-stdint.h <<EOF
26614
26615 /* system headers have good uint64_t and int64_t */
26616 #ifndef _INT64_T
26617 #define _INT64_T
26618 #endif
26619 #ifndef _UINT64_T
26620 #define _UINT64_T
26621 #endif
26622 EOF
26623 elif test "$ac_cv_type_u_int64_t" = yes; then
26624 sed 's/^ *//' >> tmp-stdint.h <<EOF
26625
26626 /* system headers have an u_int64_t (and int64_t) */
26627 #ifndef _INT64_T
26628 #define _INT64_T
26629 #endif
26630 #ifndef _UINT64_T
26631 #define _UINT64_T
26632 typedef u_int64_t uint64_t;
26633 #endif
26634 EOF
26635 elif test -n "$acx_cv_type_int64_t"; then
26636 sed 's/^ *//' >> tmp-stdint.h <<EOF
26637
26638 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
26639 #ifndef _INT64_T
26640 #define _INT64_T
26641 typedef $acx_cv_type_int64_t int64_t;
26642 #endif
26643 #ifndef _UINT64_T
26644 #define _UINT64_T
26645 typedef unsigned $acx_cv_type_int64_t uint64_t;
26646 #endif
26647 EOF
26648 else
26649 sed 's/^ *//' >> tmp-stdint.h <<EOF
26650
26651 /* some common heuristics for int64_t, using compiler-specific tests */
26652 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
26653 #ifndef _INT64_T
26654 #define _INT64_T
26655 typedef long long int64_t;
26656 #endif
26657 #ifndef _UINT64_T
26658 #define _UINT64_T
26659 typedef unsigned long long uint64_t;
26660 #endif
26661
26662 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
26663 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
26664 does not implement __extension__. But that compiler doesn't define
26665 __GNUC_MINOR__. */
26666 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
26667 # define __extension__
26668 # endif
26669
26670 # ifndef _INT64_T
26671 # define _INT64_T
26672 __extension__ typedef long long int64_t;
26673 # endif
26674 # ifndef _UINT64_T
26675 # define _UINT64_T
26676 __extension__ typedef unsigned long long uint64_t;
26677 # endif
26678
26679 #elif !defined __STRICT_ANSI__
26680 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
26681
26682 # ifndef _INT64_T
26683 # define _INT64_T
26684 typedef __int64 int64_t;
26685 # endif
26686 # ifndef _UINT64_T
26687 # define _UINT64_T
26688 typedef unsigned __int64 uint64_t;
26689 # endif
26690 # endif /* compiler */
26691
26692 #endif /* ANSI version */
26693 EOF
26694 fi
26695
26696 # ------------- done int64_t types, emit intptr types ------------
26697 if test "$ac_cv_type_uintptr_t" != yes; then
26698 sed 's/^ *//' >> tmp-stdint.h <<EOF
26699
26700 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
26701 typedef u$acx_cv_type_intptr_t uintptr_t;
26702 typedef $acx_cv_type_intptr_t intptr_t;
26703 EOF
26704 fi
26705
26706 # ------------- done intptr types, emit int_least types ------------
26707 if test "$ac_cv_type_int_least32_t" != yes; then
26708 sed 's/^ *//' >> tmp-stdint.h <<EOF
26709
26710 /* Define int_least types */
26711 typedef int8_t int_least8_t;
26712 typedef int16_t int_least16_t;
26713 typedef int32_t int_least32_t;
26714 #ifdef _INT64_T
26715 typedef int64_t int_least64_t;
26716 #endif
26717
26718 typedef uint8_t uint_least8_t;
26719 typedef uint16_t uint_least16_t;
26720 typedef uint32_t uint_least32_t;
26721 #ifdef _UINT64_T
26722 typedef uint64_t uint_least64_t;
26723 #endif
26724 EOF
26725 fi
26726
26727 # ------------- done intptr types, emit int_fast types ------------
26728 if test "$ac_cv_type_int_fast32_t" != yes; then
26729 sed 's/^ *//' >> tmp-stdint.h <<EOF
26730
26731 /* Define int_fast types. short is often slow */
26732 typedef int8_t int_fast8_t;
26733 typedef int int_fast16_t;
26734 typedef int32_t int_fast32_t;
26735 #ifdef _INT64_T
26736 typedef int64_t int_fast64_t;
26737 #endif
26738
26739 typedef uint8_t uint_fast8_t;
26740 typedef unsigned int uint_fast16_t;
26741 typedef uint32_t uint_fast32_t;
26742 #ifdef _UINT64_T
26743 typedef uint64_t uint_fast64_t;
26744 #endif
26745 EOF
26746 fi
26747
26748 if test "$ac_cv_type_uintmax_t" != yes; then
26749 sed 's/^ *//' >> tmp-stdint.h <<EOF
26750
26751 /* Define intmax based on what we found */
26752 #ifdef _INT64_T
26753 typedef int64_t intmax_t;
26754 #else
26755 typedef long intmax_t;
26756 #endif
26757 #ifdef _UINT64_T
26758 typedef uint64_t uintmax_t;
26759 #else
26760 typedef unsigned long uintmax_t;
26761 #endif
26762 EOF
26763 fi
26764
26765 sed 's/^ *//' >> tmp-stdint.h <<EOF
26766
26767 #endif /* GCC_GENERATED_STDINT_H */
26768 EOF
26769
26770 if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
26771 rm -f tmp-stdint.h
26772 else
26773 mv -f tmp-stdint.h gdb_stdint.h
26774 fi
26775
26776 ;;
26777 "default":C)
26778
26779 sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
26780 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
26781 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
26782 mv -f Makefile.tmp Makefile
26783
26784
26785 case x$CONFIG_HEADERS in
26786 xconfig.h:config.in)
26787 echo > stamp-h ;;
26788 esac
26789 ;;
26790
26791 esac
26792 done # for ac_tag
26793
26794
26795 { (exit 0); exit 0; }
26796 _ACEOF
26797 chmod +x $CONFIG_STATUS
26798 ac_clean_files=$ac_clean_files_save
26799
26800
26801 # configure is writing to config.log, and then calls config.status.
26802 # config.status does its own redirection, appending to config.log.
26803 # Unfortunately, on DOS this fails, as config.log is still kept open
26804 # by configure, so config.status won't be able to write to it; its
26805 # output is simply discarded. So we exec the FD to /dev/null,
26806 # effectively closing config.log, so it can be properly (re)opened and
26807 # appended to by config.status. When coming back to configure, we
26808 # need to make the FD available again.
26809 if test "$no_create" != yes; then
26810 ac_cs_success=:
26811 ac_config_status_args=
26812 test "$silent" = yes &&
26813 ac_config_status_args="$ac_config_status_args --quiet"
26814 exec 5>/dev/null
26815 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26816 exec 5>>config.log
26817 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26818 # would make configure fail if this is the last instruction.
26819 $ac_cs_success || { (exit 1); exit 1; }
26820 fi
26821
26822 #
26823 # CONFIG_SUBDIRS section.
26824 #
26825 if test "$no_recursion" != yes; then
26826
26827 # Remove --cache-file and --srcdir arguments so they do not pile up.
26828 ac_sub_configure_args=
26829 ac_prev=
26830 eval set x "$ac_configure_args"
26831 shift
26832 for ac_arg
26833 do
26834 if test -n "$ac_prev"; then
26835 ac_prev=
26836 continue
26837 fi
26838 case $ac_arg in
26839 -cache-file | --cache-file | --cache-fil | --cache-fi \
26840 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26841 ac_prev=cache_file ;;
26842 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26843 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26844 | --c=*)
26845 ;;
26846 --config-cache | -C)
26847 ;;
26848 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26849 ac_prev=srcdir ;;
26850 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26851 ;;
26852 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26853 ac_prev=prefix ;;
26854 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26855 ;;
26856 *)
26857 case $ac_arg in
26858 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26859 esac
26860 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
26861 esac
26862 done
26863
26864 # Always prepend --prefix to ensure using the same prefix
26865 # in subdir configurations.
26866 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26867
26868 ac_popdir="`pwd`"
26869 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26870
26871 # Do not complain, so a configure script can configure whichever
26872 # parts of a large source tree are present.
26873 test -d $srcdir/$ac_dir || continue
26874
26875 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
26876 echo "$as_me:$LINENO: $ac_msg" >&5
26877 echo "$ac_msg" >&6
26878 { as_dir="$ac_dir"
26879 case $as_dir in #(
26880 -*) as_dir=./$as_dir;;
26881 esac
26882 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26883 as_dirs=
26884 while :; do
26885 case $as_dir in #(
26886 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26887 *) as_qdir=$as_dir;;
26888 esac
26889 as_dirs="'$as_qdir' $as_dirs"
26890 as_dir=`$as_dirname -- "$as_dir" ||
26891 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26892 X"$as_dir" : 'X\(//\)[^/]' \| \
26893 X"$as_dir" : 'X\(//\)$' \| \
26894 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26895 echo X"$as_dir" |
26896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26897 s//\1/
26898 q
26899 }
26900 /^X\(\/\/\)[^/].*/{
26901 s//\1/
26902 q
26903 }
26904 /^X\(\/\/\)$/{
26905 s//\1/
26906 q
26907 }
26908 /^X\(\/\).*/{
26909 s//\1/
26910 q
26911 }
26912 s/.*/./; q'`
26913 test -d "$as_dir" && break
26914 done
26915 test -z "$as_dirs" || eval "mkdir $as_dirs"
26916 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26917 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26918 { (exit 1); exit 1; }; }; }
26919 ac_builddir=.
26920
26921 case "$ac_dir" in
26922 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26923 *)
26924 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26925 # A ".." for each directory in $ac_dir_suffix.
26926 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26927 case $ac_top_builddir_sub in
26928 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26929 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26930 esac ;;
26931 esac
26932 ac_abs_top_builddir=$ac_pwd
26933 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26934 # for backward compatibility:
26935 ac_top_builddir=$ac_top_build_prefix
26936
26937 case $srcdir in
26938 .) # We are building in place.
26939 ac_srcdir=.
26940 ac_top_srcdir=$ac_top_builddir_sub
26941 ac_abs_top_srcdir=$ac_pwd ;;
26942 [\\/]* | ?:[\\/]* ) # Absolute name.
26943 ac_srcdir=$srcdir$ac_dir_suffix;
26944 ac_top_srcdir=$srcdir
26945 ac_abs_top_srcdir=$srcdir ;;
26946 *) # Relative name.
26947 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26948 ac_top_srcdir=$ac_top_build_prefix$srcdir
26949 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26950 esac
26951 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26952
26953
26954 cd "$ac_dir"
26955
26956 # Check for guested configure; otherwise get Cygnus style configure.
26957 if test -f $ac_srcdir/configure.gnu; then
26958 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26959 elif test -f $ac_srcdir/configure; then
26960 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26961 elif test -f $ac_srcdir/configure.in; then
26962 ac_sub_configure=$ac_configure
26963 else
26964 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26965 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26966 ac_sub_configure=
26967 fi
26968
26969 # The recursion is here.
26970 if test -n "$ac_sub_configure"; then
26971 # Make the cache file name correct relative to the subdirectory.
26972 case $cache_file in
26973 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26974 *) # Relative name.
26975 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
26976 esac
26977
26978 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26979 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26980 # The eval makes quoting arguments work.
26981 eval "$ac_sub_configure $ac_sub_configure_args \
26982 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" ||
26983 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26984 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26985 { (exit 1); exit 1; }; }
26986 fi
26987
26988 cd "$ac_popdir"
26989 done
26990 fi
26991
26992
26993 exit 0
This page took 0.652899 seconds and 5 git commands to generate.