2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="main.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subdirs_all
="$ac_subdirs_all doc testsuite"
313 ac_subdirs_all
="$ac_subdirs_all gdbtk"
314 ac_subdirs_all
="$ac_subdirs_all multi-ice"
315 ac_subdirs_all
="$ac_subdirs_all gdbserver"
316 ac_subdirs_all
="$ac_subdirs_all nlm"
317 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SET_MAKE RANLIB ac_ct_RANLIB ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags xm_h tm_h nm_h LIBICONV LIBOBJS LTLIBOBJS'
318 ac_subst_files
='host_makefile_frag target_makefile_frag'
320 # Initialize some variables set by options.
322 ac_init_version
=false
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
332 program_transform_name
=s
,x
,x
,
340 # Installation directory options.
341 # These are left unexpanded so users can "make install exec_prefix=/foo"
342 # and all the variables that are supposed to be based on exec_prefix
343 # by default will actually change.
344 # Use braces instead of parens because sh, perl, etc. also accept them.
345 bindir
='${exec_prefix}/bin'
346 sbindir
='${exec_prefix}/sbin'
347 libexecdir
='${exec_prefix}/libexec'
348 datadir
='${prefix}/share'
349 sysconfdir
='${prefix}/etc'
350 sharedstatedir
='${prefix}/com'
351 localstatedir
='${prefix}/var'
352 libdir
='${exec_prefix}/lib'
353 includedir
='${prefix}/include'
354 oldincludedir
='/usr/include'
355 infodir
='${prefix}/info'
356 mandir
='${prefix}/man'
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
363 eval "$ac_prev=\$ac_option"
368 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370 # Accept the important Cygnus configure options, so we can diagnose typos.
374 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
376 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
379 -build |
--build |
--buil |
--bui |
--bu)
380 ac_prev
=build_alias
;;
381 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
382 build_alias
=$ac_optarg ;;
384 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
385 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
386 ac_prev
=cache_file
;;
387 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
388 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
389 cache_file
=$ac_optarg ;;
392 cache_file
=config.cache
;;
394 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
396 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
398 datadir
=$ac_optarg ;;
400 -disable-* |
--disable-*)
401 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
407 eval "enable_$ac_feature=no" ;;
409 -enable-* |
--enable-*)
410 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
417 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
420 eval "enable_$ac_feature='$ac_optarg'" ;;
422 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
423 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
424 |
--exec |
--exe |
--ex)
425 ac_prev
=exec_prefix
;;
426 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
427 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
428 |
--exec=* |
--exe=* |
--ex=*)
429 exec_prefix
=$ac_optarg ;;
431 -gas |
--gas |
--ga |
--g)
432 # Obsolete; use --with-gas.
435 -help |
--help |
--hel |
--he |
-h)
437 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
438 ac_init_help
=recursive
;;
439 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
440 ac_init_help
=short
;;
442 -host |
--host |
--hos |
--ho)
443 ac_prev
=host_alias
;;
444 -host=* |
--host=* |
--hos=* |
--ho=*)
445 host_alias
=$ac_optarg ;;
447 -includedir |
--includedir |
--includedi |
--included |
--include \
448 |
--includ |
--inclu |
--incl |
--inc)
449 ac_prev
=includedir
;;
450 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
451 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
452 includedir
=$ac_optarg ;;
454 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
456 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
457 infodir
=$ac_optarg ;;
459 -libdir |
--libdir |
--libdi |
--libd)
461 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
464 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
465 |
--libexe |
--libex |
--libe)
466 ac_prev
=libexecdir
;;
467 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
468 |
--libexe=* |
--libex=* |
--libe=*)
469 libexecdir
=$ac_optarg ;;
471 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
472 |
--localstate |
--localstat |
--localsta |
--localst \
473 |
--locals |
--local |
--loca |
--loc |
--lo)
474 ac_prev
=localstatedir
;;
475 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
476 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
477 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
478 localstatedir
=$ac_optarg ;;
480 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
482 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
486 # Obsolete; use --without-fp.
489 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
490 |
--no-cr |
--no-c |
-n)
493 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
494 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
497 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
498 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
499 |
--oldin |
--oldi |
--old |
--ol |
--o)
500 ac_prev
=oldincludedir
;;
501 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
502 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
503 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
504 oldincludedir
=$ac_optarg ;;
506 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
508 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
511 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
512 |
--program-pre |
--program-pr |
--program-p)
513 ac_prev
=program_prefix
;;
514 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
515 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
516 program_prefix
=$ac_optarg ;;
518 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
519 |
--program-suf |
--program-su |
--program-s)
520 ac_prev
=program_suffix
;;
521 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
522 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
523 program_suffix
=$ac_optarg ;;
525 -program-transform-name |
--program-transform-name \
526 |
--program-transform-nam |
--program-transform-na \
527 |
--program-transform-n |
--program-transform- \
528 |
--program-transform |
--program-transfor \
529 |
--program-transfo |
--program-transf \
530 |
--program-trans |
--program-tran \
531 |
--progr-tra |
--program-tr |
--program-t)
532 ac_prev
=program_transform_name
;;
533 -program-transform-name=* |
--program-transform-name=* \
534 |
--program-transform-nam=* |
--program-transform-na=* \
535 |
--program-transform-n=* |
--program-transform-=* \
536 |
--program-transform=* |
--program-transfor=* \
537 |
--program-transfo=* |
--program-transf=* \
538 |
--program-trans=* |
--program-tran=* \
539 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
540 program_transform_name
=$ac_optarg ;;
542 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
543 |
-silent |
--silent |
--silen |
--sile |
--sil)
546 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
548 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
550 sbindir
=$ac_optarg ;;
552 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
553 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
554 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
556 ac_prev
=sharedstatedir
;;
557 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
558 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
559 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
561 sharedstatedir
=$ac_optarg ;;
563 -site |
--site |
--sit)
565 -site=* |
--site=* |
--sit=*)
568 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
570 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
573 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
574 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
575 ac_prev
=sysconfdir
;;
576 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
577 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
578 sysconfdir
=$ac_optarg ;;
580 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
581 ac_prev
=target_alias
;;
582 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
583 target_alias
=$ac_optarg ;;
585 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
588 -version |
--version |
--versio |
--versi |
--vers |
-V)
592 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593 # Reject names that are not valid shell variable names.
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
597 ac_package
=`echo $ac_package| sed 's/-/_/g'`
599 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
602 eval "with_$ac_package='$ac_optarg'" ;;
604 -without-* |
--without-*)
605 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606 # Reject names that are not valid shell variable names.
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package
=`echo $ac_package | sed 's/-/_/g'`
611 eval "with_$ac_package=no" ;;
614 # Obsolete; use --with-x.
617 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
618 |
--x-incl |
--x-inc |
--x-in |
--x-i)
619 ac_prev
=x_includes
;;
620 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
621 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
622 x_includes
=$ac_optarg ;;
624 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
625 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
626 ac_prev
=x_libraries
;;
627 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
628 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
629 x_libraries
=$ac_optarg ;;
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632 Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
637 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
642 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
657 if test -n "$ac_prev"; then
658 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
663 # Be sure to have absolute paths.
664 for ac_var
in exec_prefix prefix
666 eval ac_val
=$
`echo $ac_var`
668 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
674 # Be sure to have absolute paths.
675 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
678 eval ac_val
=$
`echo $ac_var`
680 [\\/$
]* | ?
:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
686 # There might be people who depend on the old broken behavior: `$host'
687 # used to hold the argument of --host etc.
688 # FIXME: To remove some day.
693 # FIXME: To remove some day.
694 if test "x$host_alias" != x
; then
695 if test "x$build_alias" = x
; then
696 cross_compiling
=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
705 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
707 test "$silent" = yes && exec 6>/dev
/null
710 # Find the source files, if location was not specified.
711 if test -z "$srcdir"; then
712 ac_srcdir_defaulted
=yes
713 # Try the directory containing this script, then its parent.
714 ac_confdir
=`(dirname "$0") 2>/dev/null ||
715 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
727 if test ! -r $srcdir/$ac_unique_file; then
731 ac_srcdir_defaulted
=no
733 if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739 { (exit 1); exit 1; }; }
742 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
743 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744 { (exit 1); exit 1; }; }
745 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746 ac_env_build_alias_set
=${build_alias+set}
747 ac_env_build_alias_value
=$build_alias
748 ac_cv_env_build_alias_set
=${build_alias+set}
749 ac_cv_env_build_alias_value
=$build_alias
750 ac_env_host_alias_set
=${host_alias+set}
751 ac_env_host_alias_value
=$host_alias
752 ac_cv_env_host_alias_set
=${host_alias+set}
753 ac_cv_env_host_alias_value
=$host_alias
754 ac_env_target_alias_set
=${target_alias+set}
755 ac_env_target_alias_value
=$target_alias
756 ac_cv_env_target_alias_set
=${target_alias+set}
757 ac_cv_env_target_alias_value
=$target_alias
758 ac_env_CC_set
=${CC+set}
760 ac_cv_env_CC_set
=${CC+set}
761 ac_cv_env_CC_value
=$CC
762 ac_env_CFLAGS_set
=${CFLAGS+set}
763 ac_env_CFLAGS_value
=$CFLAGS
764 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
765 ac_cv_env_CFLAGS_value
=$CFLAGS
766 ac_env_LDFLAGS_set
=${LDFLAGS+set}
767 ac_env_LDFLAGS_value
=$LDFLAGS
768 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
769 ac_cv_env_LDFLAGS_value
=$LDFLAGS
770 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
771 ac_env_CPPFLAGS_value
=$CPPFLAGS
772 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
773 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
774 ac_env_CPP_set
=${CPP+set}
775 ac_env_CPP_value
=$CPP
776 ac_cv_env_CPP_set
=${CPP+set}
777 ac_cv_env_CPP_value
=$CPP
780 # Report the --help message.
782 if test "$ac_init_help" = "long"; then
783 # Omit some internal or obsolete options to make the list less imposing.
784 # This message is too long to be a string in the A/UX 3.1 sh.
786 \`configure' configures this package to adapt to many kinds of systems.
788 Usage: $0 [OPTION]... [VAR=VALUE]...
790 To assign environment variables (e.g., CC, CFLAGS...), specify them as
791 VAR=VALUE. See below for descriptions of some of the useful variables.
793 Defaults for the options are specified in brackets.
796 -h, --help display this help and exit
797 --help=short display options specific to this package
798 --help=recursive display the short help of all the included packages
799 -V, --version display version information and exit
800 -q, --quiet, --silent do not print \`checking...' messages
801 --cache-file=FILE cache test results in FILE [disabled]
802 -C, --config-cache alias for \`--cache-file=config.cache'
803 -n, --no-create do not create output files
804 --srcdir=DIR find the sources in DIR [configure dir or \`..']
809 Installation directories:
810 --prefix=PREFIX install architecture-independent files in PREFIX
812 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
815 By default, \`make install' will install all the files in
816 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
817 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
818 for instance \`--prefix=\$HOME'.
820 For better control, use the options below.
822 Fine tuning of the installation directories:
823 --bindir=DIR user executables [EPREFIX/bin]
824 --sbindir=DIR system admin executables [EPREFIX/sbin]
825 --libexecdir=DIR program executables [EPREFIX/libexec]
826 --datadir=DIR read-only architecture-independent data [PREFIX/share]
827 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
828 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
829 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
830 --libdir=DIR object code libraries [EPREFIX/lib]
831 --includedir=DIR C header files [PREFIX/include]
832 --oldincludedir=DIR C header files for non-gcc [/usr/include]
833 --infodir=DIR info documentation [PREFIX/info]
834 --mandir=DIR man documentation [PREFIX/man]
840 --program-prefix=PREFIX prepend PREFIX to installed program names
841 --program-suffix=SUFFIX append SUFFIX to installed program names
842 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
845 --x-includes=DIR X include files are
in DIR
846 --x-libraries=DIR X library files are
in DIR
849 --build=BUILD configure
for building on BUILD
[guessed
]
850 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
851 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
855 if test -n "$ac_init_help"; then
860 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
861 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
862 --enable-maintainer-mode enable make rules and dependencies not useful
863 (and sometimes confusing
) to the casual installer
864 --disable-nls do not use Native Language Support
865 --disable-gdbcli disable command-line interface
(CLI
)
866 --disable-gdbmi disable machine-interface
(MI
)
867 --enable-tui enable full-screen terminal user interface
(TUI
)
868 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
869 --enable-profiling enable profiling of GDB
870 --enable-build-warnings Enable build-time compiler warnings
if gcc is used
871 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings
if gcc is used
872 --enable-sim Link gdb with simulator
873 --enable-multi-ice build the multi-ice-gdb-server
876 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
877 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
878 --with-included-gettext use the GNU
gettext library included here
879 --with-separate-debug-dir=path Look
for global separate debug info
in this path LIBDIR
/debug
880 --with-libunwind Use libunwind frame unwinding support
881 --without-included-regex don
't use included regex; this is the default
882 on systems with version 2 of the GNU C library
883 (use with caution on other system)
884 --with-sysroot=DIR Search for usr/lib et al within DIR.
885 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
886 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
887 --with-tclinclude=DIR Directory where tcl private headers are
888 --with-tkinclude=DIR Directory where tk private headers are
889 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
890 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
891 --with-x use the X Window System
892 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
894 Some influential environment variables:
895 CC C compiler command
896 CFLAGS C compiler flags
897 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
898 nonstandard directory <lib dir>
899 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
900 headers in a nonstandard directory <include dir>
903 Use these variables to override the choices made by `configure' or to
help
904 it to
find libraries and programs with nonstandard names
/locations.
909 if test "$ac_init_help" = "recursive"; then
910 # If there are subdirs, report their specific --help.
912 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
913 test -d $ac_dir ||
continue
916 if test "$ac_dir" != .
; then
917 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
918 # A "../" for each directory in $ac_dir_suffix.
919 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
921 ac_dir_suffix
= ac_top_builddir
=
925 .
) # No --srcdir option. We are building in place.
927 if test -z "$ac_top_builddir"; then
930 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
932 [\\/]* | ?
:[\\/]* ) # Absolute path.
933 ac_srcdir
=$srcdir$ac_dir_suffix;
934 ac_top_srcdir
=$srcdir ;;
936 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
937 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
940 # Do not use `cd foo && pwd` to compute absolute paths, because
941 # the directories may not exist.
943 .
) ac_abs_builddir
="$ac_dir";;
946 .
) ac_abs_builddir
=`pwd`;;
947 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
948 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
951 case $ac_abs_builddir in
952 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
954 case ${ac_top_builddir}.
in
955 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
956 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
957 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
960 case $ac_abs_builddir in
961 .
) ac_abs_srcdir
=$ac_srcdir;;
964 .
) ac_abs_srcdir
=$ac_abs_builddir;;
965 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
966 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
969 case $ac_abs_builddir in
970 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
972 case $ac_top_srcdir in
973 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
974 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
975 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
980 # Check for guested configure; otherwise get Cygnus style configure.
981 if test -f $ac_srcdir/configure.gnu
; then
983 $SHELL $ac_srcdir/configure.gnu
--help=recursive
984 elif test -f $ac_srcdir/configure
; then
986 $SHELL $ac_srcdir/configure
--help=recursive
987 elif test -f $ac_srcdir/configure.ac ||
988 test -f $ac_srcdir/configure.
in; then
992 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
998 test -n "$ac_init_help" && exit 0
999 if $ac_init_version; then
1002 Copyright
(C
) 2003 Free Software Foundation
, Inc.
1003 This configure
script is free software
; the Free Software Foundation
1004 gives unlimited permission to copy
, distribute and modify it.
1010 This file contains any messages produced by compilers while
1011 running configure, to aid debugging if configure makes a mistake.
1013 It was created by $as_me, which was
1014 generated by GNU Autoconf 2.59. Invocation command line was
1025 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1026 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1027 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1028 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1029 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1031 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1032 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1034 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1035 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1036 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1037 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1038 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1039 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1040 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1044 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1048 test -z "$as_dir" && as_dir
=.
1049 echo "PATH: $as_dir"
1064 # Keep a trace of the command line.
1065 # Strip out --no-create and --no-recursion so they do not pile up.
1066 # Strip out --silent because we don't want to record it for future runs.
1067 # Also quote any args containing shell meta-characters.
1068 # Make two passes to allow for proper duplicate-argument suppression.
1073 ac_must_keep_next
=false
1079 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1080 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1081 |
-silent |
--silent |
--silen |
--sile |
--sil)
1083 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1084 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1087 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1089 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1090 if test $ac_must_keep_next = true
; then
1091 ac_must_keep_next
=false
# Got value, back to normal.
1094 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1095 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1096 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1097 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1098 case "$ac_configure_args0 " in
1099 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1102 -* ) ac_must_keep_next
=true
;;
1105 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1106 # Get rid of the leading space.
1112 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1113 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1115 # When interrupted or exit'd, cleanup temporary files, and complete
1116 # config.log. We remove comments because anyway the quotes in there
1117 # would cause problems or look ugly.
1118 # WARNING: Be sure not to use single quotes in there, as some shells,
1119 # such as our DU 5.0 friend, will then `close' the trap.
1120 trap 'exit_status=$?
1121 # Save into config.log some information that might help in debugging.
1126 ## ---------------- ##
1127 ## Cache variables. ##
1128 ## ---------------- ##
1131 # The following way of writing the cache mishandles newlines in values,
1134 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1137 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1142 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1149 ## ----------------- ##
1150 ## Output variables. ##
1151 ## ----------------- ##
1154 for ac_var in $ac_subst_vars
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1161 if test -n "$ac_subst_files"; then
1168 for ac_var in $ac_subst_files
1170 eval ac_val=$`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1176 if test -s confdefs.h; then
1183 sed "/^$/d" confdefs.h | sort
1186 test "$ac_signal" != 0 &&
1187 echo "$as_me: caught signal $ac_signal"
1188 echo "$as_me: exit $exit_status"
1190 rm -f core *.core &&
1191 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1194 for ac_signal
in 1 2 13 15; do
1195 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1200 rm -rf conftest
* confdefs.h
1201 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1204 # Predefined preprocessor variables.
1206 cat >>confdefs.h
<<_ACEOF
1207 #define PACKAGE_NAME "$PACKAGE_NAME"
1211 cat >>confdefs.h
<<_ACEOF
1212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1216 cat >>confdefs.h
<<_ACEOF
1217 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1221 cat >>confdefs.h
<<_ACEOF
1222 #define PACKAGE_STRING "$PACKAGE_STRING"
1226 cat >>confdefs.h
<<_ACEOF
1227 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1231 # Let the site file select an alternate cache file if it wants to.
1232 # Prefer explicitly selected file to automatically selected ones.
1233 if test -z "$CONFIG_SITE"; then
1234 if test "x$prefix" != xNONE
; then
1235 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1237 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1240 for ac_site_file
in $CONFIG_SITE; do
1241 if test -r "$ac_site_file"; then
1242 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1243 echo "$as_me: loading site script $ac_site_file" >&6;}
1244 sed 's/^/| /' "$ac_site_file" >&5
1249 if test -r "$cache_file"; then
1250 # Some versions of bash will fail to source /dev/null (special
1251 # files actually), so we avoid doing that.
1252 if test -f "$cache_file"; then
1253 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1254 echo "$as_me: loading cache $cache_file" >&6;}
1256 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1257 *) . .
/$cache_file;;
1261 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1262 echo "$as_me: creating cache $cache_file" >&6;}
1266 # Check that the precious variables saved in the cache have kept the same
1268 ac_cache_corrupted
=false
1269 for ac_var
in `(set) 2>&1 |
1270 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1271 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1272 eval ac_new_set
=\
$ac_env_${ac_var}_set
1273 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1274 eval ac_new_val
="\$ac_env_${ac_var}_value"
1275 case $ac_old_set,$ac_new_set in
1277 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1278 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1279 ac_cache_corrupted
=: ;;
1281 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1282 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1283 ac_cache_corrupted
=: ;;
1286 if test "x$ac_old_val" != "x$ac_new_val"; then
1287 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1288 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1289 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1290 echo "$as_me: former value: $ac_old_val" >&2;}
1291 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1292 echo "$as_me: current value: $ac_new_val" >&2;}
1293 ac_cache_corrupted
=:
1296 # Pass precious variables to config.status.
1297 if test "$ac_new_set" = set; then
1299 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1300 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1301 *) ac_arg
=$ac_var=$ac_new_val ;;
1303 case " $ac_configure_args " in
1304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1305 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1309 if $ac_cache_corrupted; then
1310 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1311 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1312 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1313 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1314 { (exit 1); exit 1; }; }
1318 ac_cpp
='$CPP $CPPFLAGS'
1319 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1320 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1321 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1341 ac_config_headers
="$ac_config_headers config.h:config.in"
1343 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1344 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1345 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1346 if test "${enable_maintainer_mode+set}" = set; then
1347 enableval
="$enable_maintainer_mode"
1348 USE_MAINTAINER_MODE
=$enableval
1350 USE_MAINTAINER_MODE
=no
1352 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1353 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1356 if test $USE_MAINTAINER_MODE = yes; then
1357 MAINTAINER_MODE_TRUE
=
1358 MAINTAINER_MODE_FALSE
='#'
1360 MAINTAINER_MODE_TRUE
='#'
1361 MAINTAINER_MODE_FALSE
=
1364 MAINT
=$MAINTAINER_MODE_TRUE
1369 ac_cpp
='$CPP $CPPFLAGS'
1370 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1371 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1372 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1373 if test -n "$ac_tool_prefix"; then
1374 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1375 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1376 echo "$as_me:$LINENO: checking for $ac_word" >&5
1377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1378 if test "${ac_cv_prog_CC+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1381 if test -n "$CC"; then
1382 ac_cv_prog_CC
="$CC" # Let the user override the test.
1384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1388 test -z "$as_dir" && as_dir
=.
1389 for ac_exec_ext
in '' $ac_executable_extensions; do
1390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1391 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1401 if test -n "$CC"; then
1402 echo "$as_me:$LINENO: result: $CC" >&5
1403 echo "${ECHO_T}$CC" >&6
1405 echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1410 if test -z "$ac_cv_prog_CC"; then
1412 # Extract the first word of "gcc", so it can be a program name with args.
1413 set dummy gcc
; ac_word
=$2
1414 echo "$as_me:$LINENO: checking for $ac_word" >&5
1415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1416 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1419 if test -n "$ac_ct_CC"; then
1420 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1426 test -z "$as_dir" && as_dir
=.
1427 for ac_exec_ext
in '' $ac_executable_extensions; do
1428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1429 ac_cv_prog_ac_ct_CC
="gcc"
1430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1438 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1439 if test -n "$ac_ct_CC"; then
1440 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1441 echo "${ECHO_T}$ac_ct_CC" >&6
1443 echo "$as_me:$LINENO: result: no" >&5
1444 echo "${ECHO_T}no" >&6
1452 if test -z "$CC"; then
1453 if test -n "$ac_tool_prefix"; then
1454 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1455 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1456 echo "$as_me:$LINENO: checking for $ac_word" >&5
1457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1458 if test "${ac_cv_prog_CC+set}" = set; then
1459 echo $ECHO_N "(cached) $ECHO_C" >&6
1461 if test -n "$CC"; then
1462 ac_cv_prog_CC
="$CC" # Let the user override the test.
1464 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1468 test -z "$as_dir" && as_dir
=.
1469 for ac_exec_ext
in '' $ac_executable_extensions; do
1470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1471 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481 if test -n "$CC"; then
1482 echo "$as_me:$LINENO: result: $CC" >&5
1483 echo "${ECHO_T}$CC" >&6
1485 echo "$as_me:$LINENO: result: no" >&5
1486 echo "${ECHO_T}no" >&6
1490 if test -z "$ac_cv_prog_CC"; then
1492 # Extract the first word of "cc", so it can be a program name with args.
1493 set dummy cc
; ac_word
=$2
1494 echo "$as_me:$LINENO: checking for $ac_word" >&5
1495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1499 if test -n "$ac_ct_CC"; then
1500 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1506 test -z "$as_dir" && as_dir
=.
1507 for ac_exec_ext
in '' $ac_executable_extensions; do
1508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1509 ac_cv_prog_ac_ct_CC
="cc"
1510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1518 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1519 if test -n "$ac_ct_CC"; then
1520 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1521 echo "${ECHO_T}$ac_ct_CC" >&6
1523 echo "$as_me:$LINENO: result: no" >&5
1524 echo "${ECHO_T}no" >&6
1533 if test -z "$CC"; then
1534 # Extract the first word of "cc", so it can be a program name with args.
1535 set dummy cc
; ac_word
=$2
1536 echo "$as_me:$LINENO: checking for $ac_word" >&5
1537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1538 if test "${ac_cv_prog_CC+set}" = set; then
1539 echo $ECHO_N "(cached) $ECHO_C" >&6
1541 if test -n "$CC"; then
1542 ac_cv_prog_CC
="$CC" # Let the user override the test.
1545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1549 test -z "$as_dir" && as_dir
=.
1550 for ac_exec_ext
in '' $ac_executable_extensions; do
1551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1552 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1553 ac_prog_rejected
=yes
1557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563 if test $ac_prog_rejected = yes; then
1564 # We found a bogon in the path, so make sure we never use it.
1565 set dummy
$ac_cv_prog_CC
1567 if test $# != 0; then
1568 # We chose a different compiler from the bogus one.
1569 # However, it has the same basename, so the bogon will be chosen
1570 # first if we set CC to just the basename; use the full file name.
1572 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1578 if test -n "$CC"; then
1579 echo "$as_me:$LINENO: result: $CC" >&5
1580 echo "${ECHO_T}$CC" >&6
1582 echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1587 if test -z "$CC"; then
1588 if test -n "$ac_tool_prefix"; then
1591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1592 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC
="$CC" # Let the user override the test.
1601 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1605 test -z "$as_dir" && as_dir
=.
1606 for ac_exec_ext
in '' $ac_executable_extensions; do
1607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 if test -n "$CC"; then
1619 echo "$as_me:$LINENO: result: $CC" >&5
1620 echo "${ECHO_T}$CC" >&6
1622 echo "$as_me:$LINENO: result: no" >&5
1623 echo "${ECHO_T}no" >&6
1626 test -n "$CC" && break
1629 if test -z "$CC"; then
1633 # Extract the first word of "$ac_prog", so it can be a program name with args.
1634 set dummy
$ac_prog; ac_word
=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 if test -n "$ac_ct_CC"; then
1641 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1647 test -z "$as_dir" && as_dir
=.
1648 for ac_exec_ext
in '' $ac_executable_extensions; do
1649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650 ac_cv_prog_ac_ct_CC
="$ac_prog"
1651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1659 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1660 if test -n "$ac_ct_CC"; then
1661 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1662 echo "${ECHO_T}$ac_ct_CC" >&6
1664 echo "$as_me:$LINENO: result: no" >&5
1665 echo "${ECHO_T}no" >&6
1668 test -n "$ac_ct_CC" && break
1677 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1678 See \`config.log' for more details." >&5
1679 echo "$as_me: error: no acceptable C compiler found in \$PATH
1680 See \`config.log' for more details." >&2;}
1681 { (exit 1); exit 1; }; }
1683 # Provide some information about the compiler.
1684 echo "$as_me:$LINENO:" \
1685 "checking for C compiler version" >&5
1686 ac_compiler
=`set X $ac_compile; echo $2`
1687 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1688 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1691 (exit $ac_status); }
1692 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1693 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1696 (exit $ac_status); }
1697 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1698 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1701 (exit $ac_status); }
1703 cat >conftest.
$ac_ext <<_ACEOF
1706 cat confdefs.h
>>conftest.
$ac_ext
1707 cat >>conftest.
$ac_ext <<_ACEOF
1708 /* end confdefs.h. */
1718 ac_clean_files_save
=$ac_clean_files
1719 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1720 # Try to create an executable without -o first, disregard a.out.
1721 # It will help us diagnose broken compilers, and finding out an intuition
1723 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1724 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1725 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1726 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1727 (eval $ac_link_default) 2>&5
1729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1730 (exit $ac_status); }; then
1731 # Find the output, starting from the most likely. This scheme is
1732 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1735 # Be careful to initialize this variable, since it used to be cached.
1736 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1738 # b.out is created by i960 compilers.
1739 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1741 test -f "$ac_file" ||
continue
1743 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1746 # This is the source file.
1749 # We found the default executable, but exeext='' is most
1753 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1754 # FIXME: I believe we export ac_cv_exeext for Libtool,
1755 # but it would be cool to find out if it's true. Does anybody
1756 # maintain Libtool? --akim.
1764 echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.
$ac_ext >&5
1767 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1768 See \`config.log' for more details." >&5
1769 echo "$as_me: error: C compiler cannot create executables
1770 See \`config.log' for more details." >&2;}
1771 { (exit 77); exit 77; }; }
1774 ac_exeext
=$ac_cv_exeext
1775 echo "$as_me:$LINENO: result: $ac_file" >&5
1776 echo "${ECHO_T}$ac_file" >&6
1778 # Check the compiler produces executables we can run. If not, either
1779 # the compiler is broken, or we cross compile.
1780 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1781 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1782 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1783 # If not cross compiling, check that we can run a simple program.
1784 if test "$cross_compiling" != yes; then
1785 if { ac_try
='./$ac_file'
1786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }; }; then
1793 if test "$cross_compiling" = maybe
; then
1796 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1797 If you meant to cross compile, use \`--host'.
1798 See \`config.log' for more details." >&5
1799 echo "$as_me: error: cannot run C compiled programs.
1800 If you meant to cross compile, use \`--host'.
1801 See \`config.log' for more details." >&2;}
1802 { (exit 1); exit 1; }; }
1806 echo "$as_me:$LINENO: result: yes" >&5
1807 echo "${ECHO_T}yes" >&6
1809 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1810 ac_clean_files
=$ac_clean_files_save
1811 # Check the compiler produces executables we can run. If not, either
1812 # the compiler is broken, or we cross compile.
1813 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1814 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1815 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1816 echo "${ECHO_T}$cross_compiling" >&6
1818 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1819 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1821 (eval $ac_link) 2>&5
1823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824 (exit $ac_status); }; then
1825 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1826 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1827 # work properly (i.e., refer to `conftest.exe'), while it won't with
1829 for ac_file
in conftest.exe conftest conftest.
*; do
1830 test -f "$ac_file" ||
continue
1832 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1833 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1840 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1841 See \`config.log' for more details." >&5
1842 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1843 See \`config.log' for more details." >&2;}
1844 { (exit 1); exit 1; }; }
1847 rm -f conftest
$ac_cv_exeext
1848 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1849 echo "${ECHO_T}$ac_cv_exeext" >&6
1851 rm -f conftest.
$ac_ext
1852 EXEEXT
=$ac_cv_exeext
1854 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1855 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1856 if test "${ac_cv_objext+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1859 cat >conftest.
$ac_ext <<_ACEOF
1862 cat confdefs.h
>>conftest.
$ac_ext
1863 cat >>conftest.
$ac_ext <<_ACEOF
1864 /* end confdefs.h. */
1874 rm -f conftest.o conftest.obj
1875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1876 (eval $ac_compile) 2>&5
1878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879 (exit $ac_status); }; then
1880 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1882 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1883 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1888 echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.
$ac_ext >&5
1891 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1892 See \`config.log' for more details." >&5
1893 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1894 See \`config.log' for more details." >&2;}
1895 { (exit 1); exit 1; }; }
1898 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1900 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1901 echo "${ECHO_T}$ac_cv_objext" >&6
1902 OBJEXT
=$ac_cv_objext
1904 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1905 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1906 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 cat >conftest.
$ac_ext <<_ACEOF
1912 cat confdefs.h
>>conftest.
$ac_ext
1913 cat >>conftest.
$ac_ext <<_ACEOF
1914 /* end confdefs.h. */
1927 rm -f conftest.
$ac_objext
1928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1929 (eval $ac_compile) 2>conftest.er1
1931 grep -v '^ *+' conftest.er1
>conftest.err
1933 cat conftest.err
>&5
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); } &&
1936 { ac_try
='test -z "$ac_c_werror_flag"
1937 || test ! -s conftest.err'
1938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; } &&
1943 { ac_try
='test -s conftest.$ac_objext'
1944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 (exit $ac_status); }; }; then
1951 echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.
$ac_ext >&5
1956 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1957 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1960 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1961 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1962 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1963 ac_test_CFLAGS
=${CFLAGS+set}
1964 ac_save_CFLAGS
=$CFLAGS
1966 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1967 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1968 if test "${ac_cv_prog_cc_g+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 cat >conftest.
$ac_ext <<_ACEOF
1974 cat confdefs.h
>>conftest.
$ac_ext
1975 cat >>conftest.
$ac_ext <<_ACEOF
1976 /* end confdefs.h. */
1986 rm -f conftest.
$ac_objext
1987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1988 (eval $ac_compile) 2>conftest.er1
1990 grep -v '^ *+' conftest.er1
>conftest.err
1992 cat conftest.err
>&5
1993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994 (exit $ac_status); } &&
1995 { ac_try
='test -z "$ac_c_werror_flag"
1996 || test ! -s conftest.err'
1997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }; } &&
2002 { ac_try
='test -s conftest.$ac_objext'
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; }; then
2010 echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.
$ac_ext >&5
2015 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2017 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2018 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2019 if test "$ac_test_CFLAGS" = set; then
2020 CFLAGS
=$ac_save_CFLAGS
2021 elif test $ac_cv_prog_cc_g = yes; then
2022 if test "$GCC" = yes; then
2028 if test "$GCC" = yes; then
2034 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2035 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2036 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 ac_cv_prog_cc_stdc
=no
2041 cat >conftest.
$ac_ext <<_ACEOF
2044 cat confdefs.h
>>conftest.
$ac_ext
2045 cat >>conftest.
$ac_ext <<_ACEOF
2046 /* end confdefs.h. */
2049 #include <sys/types.h>
2050 #include <sys/stat.h>
2051 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2052 struct buf { int x; };
2053 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2054 static char *e (p, i)
2060 static char *f (char * (*g) (char **, int), char **p, ...)
2065 s = g (p, va_arg (v,int));
2070 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2071 function prototypes and stuff, but not '\xHH' hex character constants.
2072 These don't provoke an error unfortunately, instead are silently treated
2073 as 'x'. The following induces an error, until -std1 is added to get
2074 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2075 array size at least. It's necessary to write '\x00'==0 to get something
2076 that's true only with -std1. */
2077 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2079 int test (int i, double x);
2080 struct s1 {int (*f) (int a);};
2081 struct s2 {int (*f) (double a);};
2082 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2088 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2093 # Don't try gcc -ansi; that turns off useful extensions and
2094 # breaks some systems' header files.
2095 # AIX -qlanglvl=ansi
2096 # Ultrix and OSF/1 -std1
2097 # HP-UX 10.20 and later -Ae
2098 # HP-UX older versions -Aa -D_HPUX_SOURCE
2099 # SVR4 -Xc -D__EXTENSIONS__
2100 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2102 CC
="$ac_save_CC $ac_arg"
2103 rm -f conftest.
$ac_objext
2104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2105 (eval $ac_compile) 2>conftest.er1
2107 grep -v '^ *+' conftest.er1
>conftest.err
2109 cat conftest.err
>&5
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); } &&
2112 { ac_try
='test -z "$ac_c_werror_flag"
2113 || test ! -s conftest.err'
2114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; } &&
2119 { ac_try
='test -s conftest.$ac_objext'
2120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; }; then
2125 ac_cv_prog_cc_stdc
=$ac_arg
2128 echo "$as_me: failed program was:" >&5
2129 sed 's/^/| /' conftest.
$ac_ext >&5
2132 rm -f conftest.err conftest.
$ac_objext
2134 rm -f conftest.
$ac_ext conftest.
$ac_objext
2139 case "x$ac_cv_prog_cc_stdc" in
2141 echo "$as_me:$LINENO: result: none needed" >&5
2142 echo "${ECHO_T}none needed" >&6 ;;
2144 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2145 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2146 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2149 # Some people use a C++ compiler to compile C. Since we use `exit',
2150 # in C++ we need to declare it. In case someone uses the same compiler
2151 # for both compiling C and C++ we need to have the C++ compiler decide
2152 # the declaration of exit, since it's the most demanding environment.
2153 cat >conftest.
$ac_ext <<_ACEOF
2158 rm -f conftest.
$ac_objext
2159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2160 (eval $ac_compile) 2>conftest.er1
2162 grep -v '^ *+' conftest.er1
>conftest.err
2164 cat conftest.err
>&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); } &&
2167 { ac_try
='test -z "$ac_c_werror_flag"
2168 || test ! -s conftest.err'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; } &&
2174 { ac_try
='test -s conftest.$ac_objext'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; }; then
2180 for ac_declaration
in \
2182 'extern "C" void std::exit (int) throw (); using std::exit;' \
2183 'extern "C" void std::exit (int); using std::exit;' \
2184 'extern "C" void exit (int) throw ();' \
2185 'extern "C" void exit (int);' \
2188 cat >conftest.
$ac_ext <<_ACEOF
2191 cat confdefs.h
>>conftest.
$ac_ext
2192 cat >>conftest.
$ac_ext <<_ACEOF
2193 /* end confdefs.h. */
2204 rm -f conftest.
$ac_objext
2205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2206 (eval $ac_compile) 2>conftest.er1
2208 grep -v '^ *+' conftest.er1
>conftest.err
2210 cat conftest.err
>&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); } &&
2213 { ac_try
='test -z "$ac_c_werror_flag"
2214 || test ! -s conftest.err'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; } &&
2220 { ac_try
='test -s conftest.$ac_objext'
2221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; }; then
2228 echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.
$ac_ext >&5
2233 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2234 cat >conftest.
$ac_ext <<_ACEOF
2237 cat confdefs.h
>>conftest.
$ac_ext
2238 cat >>conftest.
$ac_ext <<_ACEOF
2239 /* end confdefs.h. */
2249 rm -f conftest.
$ac_objext
2250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2251 (eval $ac_compile) 2>conftest.er1
2253 grep -v '^ *+' conftest.er1
>conftest.err
2255 cat conftest.err
>&5
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); } &&
2258 { ac_try
='test -z "$ac_c_werror_flag"
2259 || test ! -s conftest.err'
2260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; } &&
2265 { ac_try
='test -s conftest.$ac_objext'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; }; then
2273 echo "$as_me: failed program was:" >&5
2274 sed 's/^/| /' conftest.
$ac_ext >&5
2277 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2280 if test -n "$ac_declaration"; then
2281 echo '#ifdef __cplusplus' >>confdefs.h
2282 echo $ac_declaration >>confdefs.h
2283 echo '#endif' >>confdefs.h
2287 echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.
$ac_ext >&5
2291 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2293 ac_cpp
='$CPP $CPPFLAGS'
2294 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2295 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2296 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2299 cat >>confdefs.h
<<\_ACEOF
2300 #define _GNU_SOURCE 1
2306 ac_cpp
='$CPP $CPPFLAGS'
2307 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2310 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2311 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2312 # On Suns, sometimes $CPP names a directory.
2313 if test -n "$CPP" && test -d "$CPP"; then
2316 if test -z "$CPP"; then
2317 if test "${ac_cv_prog_CPP+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 # Double quotes because CPP needs to be expanded
2321 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2324 for ac_c_preproc_warn_flag
in '' yes
2326 # Use a header file that comes with gcc, so configuring glibc
2327 # with a fresh cross-compiler works.
2328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2329 # <limits.h> exists even on freestanding compilers.
2330 # On the NeXT, cc -E runs the code through the compiler's parser,
2331 # not just through cpp. "Syntax error" is here to catch this case.
2332 cat >conftest.
$ac_ext <<_ACEOF
2335 cat confdefs.h
>>conftest.
$ac_ext
2336 cat >>conftest.
$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2339 # include <limits.h>
2341 # include <assert.h>
2345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2346 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2348 grep -v '^ *+' conftest.er1
>conftest.err
2350 cat conftest.err
>&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } >/dev
/null
; then
2353 if test -s conftest.err
; then
2354 ac_cpp_err
=$ac_c_preproc_warn_flag
2355 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2362 if test -z "$ac_cpp_err"; then
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.
$ac_ext >&5
2368 # Broken: fails on valid input.
2371 rm -f conftest.err conftest.
$ac_ext
2373 # OK, works on sane cases. Now check whether non-existent headers
2374 # can be detected and how.
2375 cat >conftest.
$ac_ext <<_ACEOF
2378 cat confdefs.h
>>conftest.
$ac_ext
2379 cat >>conftest.
$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2381 #include <ac_nonexistent.h>
2383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2384 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2386 grep -v '^ *+' conftest.er1
>conftest.err
2388 cat conftest.err
>&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } >/dev
/null
; then
2391 if test -s conftest.err
; then
2392 ac_cpp_err
=$ac_c_preproc_warn_flag
2393 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2400 if test -z "$ac_cpp_err"; then
2401 # Broken: success on invalid input.
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.
$ac_ext >&5
2407 # Passes both tests.
2411 rm -f conftest.err conftest.
$ac_ext
2414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2415 rm -f conftest.err conftest.
$ac_ext
2416 if $ac_preproc_ok; then
2428 echo "$as_me:$LINENO: result: $CPP" >&5
2429 echo "${ECHO_T}$CPP" >&6
2431 for ac_c_preproc_warn_flag
in '' yes
2433 # Use a header file that comes with gcc, so configuring glibc
2434 # with a fresh cross-compiler works.
2435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2436 # <limits.h> exists even on freestanding compilers.
2437 # On the NeXT, cc -E runs the code through the compiler's parser,
2438 # not just through cpp. "Syntax error" is here to catch this case.
2439 cat >conftest.
$ac_ext <<_ACEOF
2442 cat confdefs.h
>>conftest.
$ac_ext
2443 cat >>conftest.
$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2446 # include <limits.h>
2448 # include <assert.h>
2452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2453 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2455 grep -v '^ *+' conftest.er1
>conftest.err
2457 cat conftest.err
>&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } >/dev
/null
; then
2460 if test -s conftest.err
; then
2461 ac_cpp_err
=$ac_c_preproc_warn_flag
2462 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2469 if test -z "$ac_cpp_err"; then
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.
$ac_ext >&5
2475 # Broken: fails on valid input.
2478 rm -f conftest.err conftest.
$ac_ext
2480 # OK, works on sane cases. Now check whether non-existent headers
2481 # can be detected and how.
2482 cat >conftest.
$ac_ext <<_ACEOF
2485 cat confdefs.h
>>conftest.
$ac_ext
2486 cat >>conftest.
$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2488 #include <ac_nonexistent.h>
2490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2491 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2493 grep -v '^ *+' conftest.er1
>conftest.err
2495 cat conftest.err
>&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } >/dev
/null
; then
2498 if test -s conftest.err
; then
2499 ac_cpp_err
=$ac_c_preproc_warn_flag
2500 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2507 if test -z "$ac_cpp_err"; then
2508 # Broken: success on invalid input.
2511 echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.
$ac_ext >&5
2514 # Passes both tests.
2518 rm -f conftest.err conftest.
$ac_ext
2521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2522 rm -f conftest.err conftest.
$ac_ext
2523 if $ac_preproc_ok; then
2526 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2527 See \`config.log' for more details." >&5
2528 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2529 See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }
2534 ac_cpp
='$CPP $CPPFLAGS'
2535 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2540 echo "$as_me:$LINENO: checking for egrep" >&5
2541 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2542 if test "${ac_cv_prog_egrep+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2546 then ac_cv_prog_egrep
='grep -E'
2547 else ac_cv_prog_egrep
='egrep'
2550 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2551 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2552 EGREP
=$ac_cv_prog_egrep
2556 echo "$as_me:$LINENO: checking for AIX" >&5
2557 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2558 cat >conftest.
$ac_ext <<_ACEOF
2561 cat confdefs.h
>>conftest.
$ac_ext
2562 cat >>conftest.
$ac_ext <<_ACEOF
2563 /* end confdefs.h. */
2569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2570 $EGREP "yes" >/dev
/null
2>&1; then
2571 echo "$as_me:$LINENO: result: yes" >&5
2572 echo "${ECHO_T}yes" >&6
2573 cat >>confdefs.h
<<\_ACEOF
2574 #define _ALL_SOURCE 1
2578 echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6
2584 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2585 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2586 if test "${ac_cv_search_strerror+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 ac_func_search_save_LIBS
=$LIBS
2590 ac_cv_search_strerror
=no
2591 cat >conftest.
$ac_ext <<_ACEOF
2594 cat confdefs.h
>>conftest.
$ac_ext
2595 cat >>conftest.
$ac_ext <<_ACEOF
2596 /* end confdefs.h. */
2598 /* Override any gcc2 internal prototype to avoid an error. */
2602 /* We use char because int might match the return type of a gcc2
2603 builtin and then its argument prototype would still apply. */
2613 rm -f conftest.
$ac_objext conftest
$ac_exeext
2614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2615 (eval $ac_link) 2>conftest.er1
2617 grep -v '^ *+' conftest.er1
>conftest.err
2619 cat conftest.err
>&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try
='test -z "$ac_c_werror_flag"
2623 || test ! -s conftest.err'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; } &&
2629 { ac_try
='test -s conftest$ac_exeext'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2635 ac_cv_search_strerror
="none required"
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.
$ac_ext >&5
2641 rm -f conftest.err conftest.
$ac_objext \
2642 conftest
$ac_exeext conftest.
$ac_ext
2643 if test "$ac_cv_search_strerror" = no
; then
2644 for ac_lib
in cposix
; do
2645 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
2646 cat >conftest.
$ac_ext <<_ACEOF
2649 cat confdefs.h
>>conftest.
$ac_ext
2650 cat >>conftest.
$ac_ext <<_ACEOF
2651 /* end confdefs.h. */
2653 /* Override any gcc2 internal prototype to avoid an error. */
2657 /* We use char because int might match the return type of a gcc2
2658 builtin and then its argument prototype would still apply. */
2668 rm -f conftest.
$ac_objext conftest
$ac_exeext
2669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2670 (eval $ac_link) 2>conftest.er1
2672 grep -v '^ *+' conftest.er1
>conftest.err
2674 cat conftest.err
>&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); } &&
2677 { ac_try
='test -z "$ac_c_werror_flag"
2678 || test ! -s conftest.err'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; } &&
2684 { ac_try
='test -s conftest$ac_exeext'
2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; }; then
2690 ac_cv_search_strerror
="-l$ac_lib"
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.
$ac_ext >&5
2697 rm -f conftest.err conftest.
$ac_objext \
2698 conftest
$ac_exeext conftest.
$ac_ext
2701 LIBS
=$ac_func_search_save_LIBS
2703 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2704 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2705 if test "$ac_cv_search_strerror" != no
; then
2706 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
2713 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2714 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2715 if test "${am_cv_prog_cc_stdc+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 am_cv_prog_cc_stdc
=no
2720 # Don't try gcc -ansi; that turns off useful extensions and
2721 # breaks some systems' header files.
2722 # AIX -qlanglvl=ansi
2723 # Ultrix and OSF/1 -std1
2724 # HP-UX 10.20 and later -Ae
2725 # HP-UX older versions -Aa -D_HPUX_SOURCE
2726 # SVR4 -Xc -D__EXTENSIONS__
2727 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2729 CC
="$ac_save_CC $ac_arg"
2730 cat >conftest.
$ac_ext <<_ACEOF
2733 cat confdefs.h
>>conftest.
$ac_ext
2734 cat >>conftest.
$ac_ext <<_ACEOF
2735 /* end confdefs.h. */
2738 #include <sys/types.h>
2739 #include <sys/stat.h>
2740 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2741 struct buf { int x; };
2742 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2743 static char *e (p, i)
2749 static char *f (char * (*g) (char **, int), char **p, ...)
2754 s = g (p, va_arg (v,int));
2758 int test (int i, double x);
2759 struct s1 {int (*f) (int a);};
2760 struct s2 {int (*f) (double a);};
2761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2769 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2775 rm -f conftest.
$ac_objext
2776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777 (eval $ac_compile) 2>conftest.er1
2779 grep -v '^ *+' conftest.er1
>conftest.err
2781 cat conftest.err
>&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } &&
2784 { ac_try
='test -z "$ac_c_werror_flag"
2785 || test ! -s conftest.err'
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; } &&
2791 { ac_try
='test -s conftest.$ac_objext'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2797 am_cv_prog_cc_stdc
="$ac_arg"; break
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.
$ac_ext >&5
2803 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2809 if test -z "$am_cv_prog_cc_stdc"; then
2810 echo "$as_me:$LINENO: result: none needed" >&5
2811 echo "${ECHO_T}none needed" >&6
2813 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2814 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2816 case "x$am_cv_prog_cc_stdc" in
2818 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
2823 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
2824 if test -f $ac_dir/install-sh
; then
2826 ac_install_sh
="$ac_aux_dir/install-sh -c"
2828 elif test -f $ac_dir/install.sh
; then
2830 ac_install_sh
="$ac_aux_dir/install.sh -c"
2832 elif test -f $ac_dir/shtool
; then
2834 ac_install_sh
="$ac_aux_dir/shtool install -c"
2838 if test -z "$ac_aux_dir"; then
2839 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2840 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2841 { (exit 1); exit 1; }; }
2843 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
2844 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
2845 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2847 # Make sure we can run config.sub.
2848 $ac_config_sub sun4
>/dev
/null
2>&1 ||
2849 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2850 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2851 { (exit 1); exit 1; }; }
2853 echo "$as_me:$LINENO: checking build system type" >&5
2854 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2855 if test "${ac_cv_build+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 ac_cv_build_alias
=$build_alias
2859 test -z "$ac_cv_build_alias" &&
2860 ac_cv_build_alias
=`$ac_config_guess`
2861 test -z "$ac_cv_build_alias" &&
2862 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2863 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2864 { (exit 1); exit 1; }; }
2865 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
2866 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2867 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2868 { (exit 1); exit 1; }; }
2871 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2872 echo "${ECHO_T}$ac_cv_build" >&6
2874 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2875 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2876 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2879 echo "$as_me:$LINENO: checking host system type" >&5
2880 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2881 if test "${ac_cv_host+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 ac_cv_host_alias
=$host_alias
2885 test -z "$ac_cv_host_alias" &&
2886 ac_cv_host_alias
=$ac_cv_build_alias
2887 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
2888 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2889 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2890 { (exit 1); exit 1; }; }
2893 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2894 echo "${ECHO_T}$ac_cv_host" >&6
2896 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2897 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2898 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2901 echo "$as_me:$LINENO: checking target system type" >&5
2902 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2903 if test "${ac_cv_target+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2906 ac_cv_target_alias
=$target_alias
2907 test "x$ac_cv_target_alias" = "x" &&
2908 ac_cv_target_alias
=$ac_cv_host_alias
2909 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
2910 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2911 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2912 { (exit 1); exit 1; }; }
2915 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2916 echo "${ECHO_T}$ac_cv_target" >&6
2917 target
=$ac_cv_target
2918 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2919 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2920 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2923 # The aliases save the names the user supplied, while $host etc.
2924 # will get canonicalized.
2925 test -n "$target_alias" &&
2926 test "$program_prefix$program_suffix$program_transform_name" = \
2928 program_prefix
=${target_alias}-
2942 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2943 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2944 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
2945 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 cat >conftest.
make <<\_ACEOF
2950 @
echo 'ac_maketemp="$(MAKE)"'
2952 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2953 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2954 if test -n "$ac_maketemp"; then
2955 eval ac_cv_prog_make_
${ac_make}_set
=yes
2957 eval ac_cv_prog_make_
${ac_make}_set
=no
2961 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2962 echo "$as_me:$LINENO: result: yes" >&5
2963 echo "${ECHO_T}yes" >&6
2966 echo "$as_me:$LINENO: result: no" >&5
2967 echo "${ECHO_T}no" >&6
2968 SET_MAKE
="MAKE=${MAKE-make}"
2971 if test -n "$ac_tool_prefix"; then
2972 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2973 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2974 echo "$as_me:$LINENO: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976 if test "${ac_cv_prog_RANLIB+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 if test -n "$RANLIB"; then
2980 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2986 test -z "$as_dir" && as_dir
=.
2987 for ac_exec_ext
in '' $ac_executable_extensions; do
2988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 RANLIB
=$ac_cv_prog_RANLIB
2999 if test -n "$RANLIB"; then
3000 echo "$as_me:$LINENO: result: $RANLIB" >&5
3001 echo "${ECHO_T}$RANLIB" >&6
3003 echo "$as_me:$LINENO: result: no" >&5
3004 echo "${ECHO_T}no" >&6
3008 if test -z "$ac_cv_prog_RANLIB"; then
3009 ac_ct_RANLIB
=$RANLIB
3010 # Extract the first word of "ranlib", so it can be a program name with args.
3011 set dummy ranlib
; ac_word
=$2
3012 echo "$as_me:$LINENO: checking for $ac_word" >&5
3013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3014 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 if test -n "$ac_ct_RANLIB"; then
3018 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3024 test -z "$as_dir" && as_dir
=.
3025 for ac_exec_ext
in '' $ac_executable_extensions; do
3026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3027 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3037 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3038 if test -n "$ac_ct_RANLIB"; then
3039 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3040 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3042 echo "$as_me:$LINENO: result: no" >&5
3043 echo "${ECHO_T}no" >&6
3046 RANLIB
=$ac_ct_RANLIB
3048 RANLIB
="$ac_cv_prog_RANLIB"
3051 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3052 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3053 if test "${ac_cv_header_stdc+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3056 cat >conftest.
$ac_ext <<_ACEOF
3059 cat confdefs.h
>>conftest.
$ac_ext
3060 cat >>conftest.
$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3075 rm -f conftest.
$ac_objext
3076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3077 (eval $ac_compile) 2>conftest.er1
3079 grep -v '^ *+' conftest.er1
>conftest.err
3081 cat conftest.err
>&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try
='test -z "$ac_c_werror_flag"
3085 || test ! -s conftest.err'
3086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; } &&
3091 { ac_try
='test -s conftest.$ac_objext'
3092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3097 ac_cv_header_stdc
=yes
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.
$ac_ext >&5
3102 ac_cv_header_stdc
=no
3104 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3106 if test $ac_cv_header_stdc = yes; then
3107 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3108 cat >conftest.
$ac_ext <<_ACEOF
3111 cat confdefs.h
>>conftest.
$ac_ext
3112 cat >>conftest.
$ac_ext <<_ACEOF
3113 /* end confdefs.h. */
3117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3118 $EGREP "memchr" >/dev
/null
2>&1; then
3121 ac_cv_header_stdc
=no
3127 if test $ac_cv_header_stdc = yes; then
3128 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3129 cat >conftest.
$ac_ext <<_ACEOF
3132 cat confdefs.h
>>conftest.
$ac_ext
3133 cat >>conftest.
$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139 $EGREP "free" >/dev
/null
2>&1; then
3142 ac_cv_header_stdc
=no
3148 if test $ac_cv_header_stdc = yes; then
3149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3150 if test "$cross_compiling" = yes; then
3153 cat >conftest.
$ac_ext <<_ACEOF
3156 cat confdefs.h
>>conftest.
$ac_ext
3157 cat >>conftest.
$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3160 #if ((' ' & 0x0FF) == 0x020)
3161 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3162 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3164 # define ISLOWER(c) \
3165 (('a' <= (c) && (c) <= 'i') \
3166 || ('j' <= (c) && (c) <= 'r') \
3167 || ('s' <= (c) && (c) <= 'z'))
3168 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3171 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3176 for (i = 0; i < 256; i++)
3177 if (XOR (islower (i), ISLOWER (i))
3178 || toupper (i) != TOUPPER (i))
3183 rm -f conftest
$ac_exeext
3184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3185 (eval $ac_link) 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3196 echo "$as_me: program exited with status $ac_status" >&5
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.
$ac_ext >&5
3201 ac_cv_header_stdc
=no
3203 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3207 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3208 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3209 if test $ac_cv_header_stdc = yes; then
3211 cat >>confdefs.h
<<\_ACEOF
3212 #define STDC_HEADERS 1
3217 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3218 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3219 if test "${ac_cv_c_const+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 cat >conftest.
$ac_ext <<_ACEOF
3225 cat confdefs.h
>>conftest.
$ac_ext
3226 cat >>conftest.
$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3232 /* FIXME: Include the comments suggested by Paul. */
3234 /* Ultrix mips cc rejects this. */
3235 typedef int charset[2];
3237 /* SunOS 4.1.1 cc rejects this. */
3238 char const *const *ccp;
3240 /* NEC SVR4.0.2 mips cc rejects this. */
3241 struct point {int x, y;};
3242 static struct point const zero = {0,0};
3243 /* AIX XL C 1.02.0.0 rejects this.
3244 It does not let you subtract one const X* pointer from another in
3245 an arm of an if-expression whose if-part is not a constant
3247 const char *g = "string";
3248 ccp = &g + (g ? g-g : 0);
3249 /* HPUX 7.0 cc rejects these. */
3252 ccp = (char const *const *) p;
3253 { /* SCO 3.2v4 cc rejects this. */
3255 char const *s = 0 ? (char *) 0 : (char const *) 0;
3259 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3261 const int *foo = &x[0];
3264 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3265 typedef const int *iptr;
3269 { /* AIX XL C 1.02.0.0 rejects this saying
3270 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3271 struct s { int j; const int *ap[3]; };
3272 struct s *b; b->j = 5;
3274 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3283 rm -f conftest.
$ac_objext
3284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3285 (eval $ac_compile) 2>conftest.er1
3287 grep -v '^ *+' conftest.er1
>conftest.err
3289 cat conftest.err
>&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } &&
3292 { ac_try
='test -z "$ac_c_werror_flag"
3293 || test ! -s conftest.err'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; } &&
3299 { ac_try
='test -s conftest.$ac_objext'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.
$ac_ext >&5
3312 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3314 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3315 echo "${ECHO_T}$ac_cv_c_const" >&6
3316 if test $ac_cv_c_const = no
; then
3318 cat >>confdefs.h
<<\_ACEOF
3324 echo "$as_me:$LINENO: checking for inline" >&5
3325 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3326 if test "${ac_cv_c_inline+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 for ac_kw
in inline __inline__ __inline
; do
3331 cat >conftest.
$ac_ext <<_ACEOF
3334 cat confdefs.h
>>conftest.
$ac_ext
3335 cat >>conftest.
$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3339 static $ac_kw foo_t static_foo () {return 0; }
3340 $ac_kw foo_t foo () {return 0; }
3344 rm -f conftest.
$ac_objext
3345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3346 (eval $ac_compile) 2>conftest.er1
3348 grep -v '^ *+' conftest.er1
>conftest.err
3350 cat conftest.err
>&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } &&
3353 { ac_try
='test -z "$ac_c_werror_flag"
3354 || test ! -s conftest.err'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; } &&
3360 { ac_try
='test -s conftest.$ac_objext'
3361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; }; then
3366 ac_cv_c_inline
=$ac_kw; break
3368 echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.
$ac_ext >&5
3372 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3376 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3377 echo "${ECHO_T}$ac_cv_c_inline" >&6
3380 case $ac_cv_c_inline in
3383 case $ac_cv_c_inline in
3385 *) ac_val
=$ac_cv_c_inline;;
3387 cat >>confdefs.h
<<_ACEOF
3389 #define inline $ac_val
3395 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3405 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3406 inttypes.h stdint.h unistd.h
3408 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3409 echo "$as_me:$LINENO: checking for $ac_header" >&5
3410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 cat >conftest.
$ac_ext <<_ACEOF
3417 cat confdefs.h
>>conftest.
$ac_ext
3418 cat >>conftest.
$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420 $ac_includes_default
3422 #include <$ac_header>
3424 rm -f conftest.
$ac_objext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>conftest.er1
3428 grep -v '^ *+' conftest.er1
>conftest.err
3430 cat conftest.err
>&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try
='test -z "$ac_c_werror_flag"
3434 || test ! -s conftest.err'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; } &&
3440 { ac_try
='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3446 eval "$as_ac_Header=yes"
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.
$ac_ext >&5
3451 eval "$as_ac_Header=no"
3453 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3458 cat >>confdefs.h
<<_ACEOF
3459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3467 echo "$as_me:$LINENO: checking for off_t" >&5
3468 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3469 if test "${ac_cv_type_off_t+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 cat >conftest.
$ac_ext <<_ACEOF
3475 cat confdefs.h
>>conftest.
$ac_ext
3476 cat >>conftest.
$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3478 $ac_includes_default
3490 rm -f conftest.
$ac_objext
3491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492 (eval $ac_compile) 2>conftest.er1
3494 grep -v '^ *+' conftest.er1
>conftest.err
3496 cat conftest.err
>&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } &&
3499 { ac_try
='test -z "$ac_c_werror_flag"
3500 || test ! -s conftest.err'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; } &&
3506 { ac_try
='test -s conftest.$ac_objext'
3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; }; then
3512 ac_cv_type_off_t
=yes
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.
$ac_ext >&5
3519 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3521 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3522 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3523 if test $ac_cv_type_off_t = yes; then
3527 cat >>confdefs.h
<<_ACEOF
3533 echo "$as_me:$LINENO: checking for size_t" >&5
3534 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3535 if test "${ac_cv_type_size_t+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 cat >conftest.
$ac_ext <<_ACEOF
3541 cat confdefs.h
>>conftest.
$ac_ext
3542 cat >>conftest.
$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3544 $ac_includes_default
3550 if (sizeof (size_t))
3556 rm -f conftest.
$ac_objext
3557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3558 (eval $ac_compile) 2>conftest.er1
3560 grep -v '^ *+' conftest.er1
>conftest.err
3562 cat conftest.err
>&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } &&
3565 { ac_try
='test -z "$ac_c_werror_flag"
3566 || test ! -s conftest.err'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; } &&
3572 { ac_try
='test -s conftest.$ac_objext'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3578 ac_cv_type_size_t
=yes
3580 echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.
$ac_ext >&5
3583 ac_cv_type_size_t
=no
3585 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3587 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3588 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3589 if test $ac_cv_type_size_t = yes; then
3593 cat >>confdefs.h
<<_ACEOF
3594 #define size_t unsigned
3599 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3600 # for constant arguments. Useless!
3601 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3602 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3603 if test "${ac_cv_working_alloca_h+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 cat >conftest.
$ac_ext <<_ACEOF
3609 cat confdefs.h
>>conftest.
$ac_ext
3610 cat >>conftest.
$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3616 char *p = (char *) alloca (2 * sizeof (int));
3621 rm -f conftest.
$ac_objext conftest
$ac_exeext
3622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3623 (eval $ac_link) 2>conftest.er1
3625 grep -v '^ *+' conftest.er1
>conftest.err
3627 cat conftest.err
>&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } &&
3630 { ac_try
='test -z "$ac_c_werror_flag"
3631 || test ! -s conftest.err'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; } &&
3637 { ac_try
='test -s conftest$ac_exeext'
3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; }; then
3643 ac_cv_working_alloca_h
=yes
3645 echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.
$ac_ext >&5
3648 ac_cv_working_alloca_h
=no
3650 rm -f conftest.err conftest.
$ac_objext \
3651 conftest
$ac_exeext conftest.
$ac_ext
3653 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3654 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3655 if test $ac_cv_working_alloca_h = yes; then
3657 cat >>confdefs.h
<<\_ACEOF
3658 #define HAVE_ALLOCA_H 1
3663 echo "$as_me:$LINENO: checking for alloca" >&5
3664 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3665 if test "${ac_cv_func_alloca_works+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 cat >conftest.
$ac_ext <<_ACEOF
3671 cat confdefs.h
>>conftest.
$ac_ext
3672 cat >>conftest.
$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3675 # define alloca __builtin_alloca
3678 # include <malloc.h>
3679 # define alloca _alloca
3682 # include <alloca.h>
3687 # ifndef alloca /* predefined by HP cc +Olibcalls */
3698 char *p = (char *) alloca (1);
3703 rm -f conftest.
$ac_objext conftest
$ac_exeext
3704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705 (eval $ac_link) 2>conftest.er1
3707 grep -v '^ *+' conftest.er1
>conftest.err
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"
3713 || test ! -s conftest.err'
3714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; } &&
3719 { ac_try
='test -s conftest$ac_exeext'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; }; then
3725 ac_cv_func_alloca_works
=yes
3727 echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.
$ac_ext >&5
3730 ac_cv_func_alloca_works
=no
3732 rm -f conftest.err conftest.
$ac_objext \
3733 conftest
$ac_exeext conftest.
$ac_ext
3735 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3736 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3738 if test $ac_cv_func_alloca_works = yes; then
3740 cat >>confdefs.h
<<\_ACEOF
3741 #define HAVE_ALLOCA 1
3745 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3746 # that cause trouble. Some versions do not even contain alloca or
3747 # contain a buggy version. If you still want to use their alloca,
3748 # use ar to extract alloca.o from them instead of compiling alloca.c.
3750 ALLOCA
=alloca.
$ac_objext
3752 cat >>confdefs.h
<<\_ACEOF
3757 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3758 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3759 if test "${ac_cv_os_cray+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 cat >conftest.
$ac_ext <<_ACEOF
3765 cat confdefs.h
>>conftest.
$ac_ext
3766 cat >>conftest.
$ac_ext <<_ACEOF
3767 /* end confdefs.h. */
3768 #if defined(CRAY) && ! defined(CRAY2)
3775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3776 $EGREP "webecray" >/dev
/null
2>&1; then
3784 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3785 echo "${ECHO_T}$ac_cv_os_cray" >&6
3786 if test $ac_cv_os_cray = yes; then
3787 for ac_func
in _getb67 GETB67 getb67
; do
3788 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3789 echo "$as_me:$LINENO: checking for $ac_func" >&5
3790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3791 if eval "test \"\${$as_ac_var+set}\" = set"; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 cat >conftest.
$ac_ext <<_ACEOF
3797 cat confdefs.h
>>conftest.
$ac_ext
3798 cat >>conftest.
$ac_ext <<_ACEOF
3799 /* end confdefs.h. */
3800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3802 #define $ac_func innocuous_$ac_func
3804 /* System header to define __stub macros and hopefully few prototypes,
3805 which can conflict with char $ac_func (); below.
3806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3807 <limits.h> exists even on freestanding compilers. */
3810 # include <limits.h>
3812 # include <assert.h>
3817 /* Override any gcc2 internal prototype to avoid an error. */
3822 /* We use char because int might match the return type of a gcc2
3823 builtin and then its argument prototype would still apply. */
3825 /* The GNU C library defines this for functions which it implements
3826 to always fail with ENOSYS. Some functions are actually named
3827 something starting with __ and the normal name is an alias. */
3828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3831 char (*f) () = $ac_func;
3840 return f != $ac_func;
3845 rm -f conftest.
$ac_objext conftest
$ac_exeext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3847 (eval $ac_link) 2>conftest.er1
3849 grep -v '^ *+' conftest.er1
>conftest.err
3851 cat conftest.err
>&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try
='test -z "$ac_c_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try
='test -s conftest$ac_exeext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 eval "$as_ac_var=yes"
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.
$ac_ext >&5
3872 eval "$as_ac_var=no"
3874 rm -f conftest.err conftest.
$ac_objext \
3875 conftest
$ac_exeext conftest.
$ac_ext
3877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3879 if test `eval echo '${'$as_ac_var'}'` = yes; then
3881 cat >>confdefs.h
<<_ACEOF
3882 #define CRAY_STACKSEG_END $ac_func
3891 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3892 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3893 if test "${ac_cv_c_stack_direction+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 if test "$cross_compiling" = yes; then
3897 ac_cv_c_stack_direction
=0
3899 cat >conftest.
$ac_ext <<_ACEOF
3902 cat confdefs.h
>>conftest.
$ac_ext
3903 cat >>conftest.
$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3906 find_stack_direction ()
3908 static char *addr = 0;
3913 return find_stack_direction ();
3916 return (&dummy > addr) ? 1 : -1;
3922 exit (find_stack_direction () < 0);
3925 rm -f conftest
$ac_exeext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927 (eval $ac_link) 2>&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 ac_cv_c_stack_direction
=1
3938 echo "$as_me: program exited with status $ac_status" >&5
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.
$ac_ext >&5
3943 ac_cv_c_stack_direction
=-1
3945 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3948 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3949 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3951 cat >>confdefs.h
<<_ACEOF
3952 #define STACK_DIRECTION $ac_cv_c_stack_direction
3960 for ac_header
in stdlib.h unistd.h
3962 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3964 echo "$as_me:$LINENO: checking for $ac_header" >&5
3965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3972 # Is the header compilable?
3973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3975 cat >conftest.
$ac_ext <<_ACEOF
3978 cat confdefs.h
>>conftest.
$ac_ext
3979 cat >>conftest.
$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981 $ac_includes_default
3982 #include <$ac_header>
3984 rm -f conftest.
$ac_objext
3985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986 (eval $ac_compile) 2>conftest.er1
3988 grep -v '^ *+' conftest.er1
>conftest.err
3990 cat conftest.err
>&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } &&
3993 { ac_try
='test -z "$ac_c_werror_flag"
3994 || test ! -s conftest.err'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; } &&
4000 { ac_try
='test -s conftest.$ac_objext'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4006 ac_header_compiler
=yes
4008 echo "$as_me: failed program was:" >&5
4009 sed 's/^/| /' conftest.
$ac_ext >&5
4011 ac_header_compiler
=no
4013 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4015 echo "${ECHO_T}$ac_header_compiler" >&6
4017 # Is the header present?
4018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4020 cat >conftest.
$ac_ext <<_ACEOF
4023 cat confdefs.h
>>conftest.
$ac_ext
4024 cat >>conftest.
$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4026 #include <$ac_header>
4028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4029 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4031 grep -v '^ *+' conftest.er1
>conftest.err
4033 cat conftest.err
>&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } >/dev
/null
; then
4036 if test -s conftest.err
; then
4037 ac_cpp_err
=$ac_c_preproc_warn_flag
4038 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4045 if test -z "$ac_cpp_err"; then
4046 ac_header_preproc
=yes
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.
$ac_ext >&5
4051 ac_header_preproc
=no
4053 rm -f conftest.err conftest.
$ac_ext
4054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4055 echo "${ECHO_T}$ac_header_preproc" >&6
4057 # So? What about this header?
4058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4064 ac_header_preproc
=yes
4067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4074 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4081 ## ------------------------------------------ ##
4082 ## Report this to the AC_PACKAGE_NAME lists. ##
4083 ## ------------------------------------------ ##
4086 sed "s/^/$as_me: WARNING: /" >&2
4089 echo "$as_me:$LINENO: checking for $ac_header" >&5
4090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 eval "$as_ac_Header=\$ac_header_preproc"
4096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4101 cat >>confdefs.h
<<_ACEOF
4102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4110 for ac_func
in getpagesize
4112 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4113 echo "$as_me:$LINENO: checking for $ac_func" >&5
4114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4115 if eval "test \"\${$as_ac_var+set}\" = set"; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 cat >conftest.
$ac_ext <<_ACEOF
4121 cat confdefs.h
>>conftest.
$ac_ext
4122 cat >>conftest.
$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4126 #define $ac_func innocuous_$ac_func
4128 /* System header to define __stub macros and hopefully few prototypes,
4129 which can conflict with char $ac_func (); below.
4130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4131 <limits.h> exists even on freestanding compilers. */
4134 # include <limits.h>
4136 # include <assert.h>
4141 /* Override any gcc2 internal prototype to avoid an error. */
4146 /* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4149 /* The GNU C library defines this for functions which it implements
4150 to always fail with ENOSYS. Some functions are actually named
4151 something starting with __ and the normal name is an alias. */
4152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4155 char (*f) () = $ac_func;
4164 return f != $ac_func;
4169 rm -f conftest.
$ac_objext conftest
$ac_exeext
4170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4171 (eval $ac_link) 2>conftest.er1
4173 grep -v '^ *+' conftest.er1
>conftest.err
4175 cat conftest.err
>&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } &&
4178 { ac_try
='test -z "$ac_c_werror_flag"
4179 || test ! -s conftest.err'
4180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; } &&
4185 { ac_try
='test -s conftest$ac_exeext'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
4191 eval "$as_ac_var=yes"
4193 echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.
$ac_ext >&5
4196 eval "$as_ac_var=no"
4198 rm -f conftest.err conftest.
$ac_objext \
4199 conftest
$ac_exeext conftest.
$ac_ext
4201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4203 if test `eval echo '${'$as_ac_var'}'` = yes; then
4204 cat >>confdefs.h
<<_ACEOF
4205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4211 echo "$as_me:$LINENO: checking for working mmap" >&5
4212 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4213 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 if test "$cross_compiling" = yes; then
4217 ac_cv_func_mmap_fixed_mapped
=no
4219 cat >conftest.
$ac_ext <<_ACEOF
4222 cat confdefs.h
>>conftest.
$ac_ext
4223 cat >>conftest.
$ac_ext <<_ACEOF
4224 /* end confdefs.h. */
4225 $ac_includes_default
4226 /* malloc might have been renamed as rpl_malloc. */
4229 /* Thanks to Mike Haertel and Jim Avera for this test.
4230 Here is a matrix of mmap possibilities:
4231 mmap private not fixed
4232 mmap private fixed at somewhere currently unmapped
4233 mmap private fixed at somewhere already mapped
4234 mmap shared not fixed
4235 mmap shared fixed at somewhere currently unmapped
4236 mmap shared fixed at somewhere already mapped
4237 For private mappings, we should verify that changes cannot be read()
4238 back from the file, nor mmap's back from the file at a different
4239 address. (There have been systems where private was not correctly
4240 implemented like the infamous i386 svr4.0, and systems where the
4241 VM page cache was not coherent with the file system buffer cache
4242 like early versions of FreeBSD and possibly contemporary NetBSD.)
4243 For shared mappings, we should conversely verify that changes get
4244 propagated back to all the places they're supposed to be.
4246 Grep wants private fixed already mapped.
4247 The main things grep needs to know about mmap are:
4248 * does it exist and is it safe to write into the mmap'd area
4249 * how to use it (BSD variants) */
4252 #include <sys/mman.h>
4254 #if !STDC_HEADERS && !HAVE_STDLIB_H
4258 /* This mess was copied from the GNU getpagesize.h. */
4259 #if !HAVE_GETPAGESIZE
4260 /* Assume that all systems that can run configure have sys/param.h. */
4261 # if !HAVE_SYS_PARAM_H
4262 # define HAVE_SYS_PARAM_H 1
4265 # ifdef _SC_PAGESIZE
4266 # define getpagesize() sysconf(_SC_PAGESIZE)
4267 # else /* no _SC_PAGESIZE */
4268 # if HAVE_SYS_PARAM_H
4269 # include <sys/param.h>
4270 # ifdef EXEC_PAGESIZE
4271 # define getpagesize() EXEC_PAGESIZE
4272 # else /* no EXEC_PAGESIZE */
4274 # define getpagesize() NBPG * CLSIZE
4277 # endif /* no CLSIZE */
4278 # else /* no NBPG */
4280 # define getpagesize() NBPC
4281 # else /* no NBPC */
4283 # define getpagesize() PAGESIZE
4284 # endif /* PAGESIZE */
4285 # endif /* no NBPC */
4286 # endif /* no NBPG */
4287 # endif /* no EXEC_PAGESIZE */
4288 # else /* no HAVE_SYS_PARAM_H */
4289 # define getpagesize() 8192 /* punt totally */
4290 # endif /* no HAVE_SYS_PARAM_H */
4291 # endif /* no _SC_PAGESIZE */
4293 #endif /* no HAVE_GETPAGESIZE */
4298 char *data, *data2, *data3;
4302 pagesize = getpagesize ();
4304 /* First, make a file with some known garbage in it. */
4305 data = (char *) malloc (pagesize);
4308 for (i = 0; i < pagesize; ++i)
4309 *(data + i) = rand ();
4311 fd = creat ("conftest.mmap", 0600);
4314 if (write (fd, data, pagesize) != pagesize)
4318 /* Next, try to mmap the file at a fixed address which already has
4319 something else allocated at it. If we can, also make sure that
4320 we see the same garbage. */
4321 fd = open ("conftest.mmap", O_RDWR);
4324 data2 = (char *) malloc (2 * pagesize);
4327 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4328 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4329 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4331 for (i = 0; i < pagesize; ++i)
4332 if (*(data + i) != *(data2 + i))
4335 /* Finally, make sure that changes to the mapped area do not
4336 percolate back to the file as seen by read(). (This is a bug on
4337 some variants of i386 svr4.0.) */
4338 for (i = 0; i < pagesize; ++i)
4339 *(data2 + i) = *(data2 + i) + 1;
4340 data3 = (char *) malloc (pagesize);
4343 if (read (fd, data3, pagesize) != pagesize)
4345 for (i = 0; i < pagesize; ++i)
4346 if (*(data + i) != *(data3 + i))
4352 rm -f conftest
$ac_exeext
4353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4354 (eval $ac_link) 2>&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 ac_cv_func_mmap_fixed_mapped
=yes
4365 echo "$as_me: program exited with status $ac_status" >&5
4366 echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.
$ac_ext >&5
4370 ac_cv_func_mmap_fixed_mapped
=no
4372 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4375 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4376 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4377 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4379 cat >>confdefs.h
<<\_ACEOF
4396 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4397 unistd.h values.h sys
/param.h
4399 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4401 echo "$as_me:$LINENO: checking for $ac_header" >&5
4402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4409 # Is the header compilable?
4410 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4412 cat >conftest.
$ac_ext <<_ACEOF
4415 cat confdefs.h
>>conftest.
$ac_ext
4416 cat >>conftest.
$ac_ext <<_ACEOF
4417 /* end confdefs.h. */
4418 $ac_includes_default
4419 #include <$ac_header>
4421 rm -f conftest.
$ac_objext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>conftest.er1
4425 grep -v '^ *+' conftest.er1
>conftest.err
4427 cat conftest.err
>&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } &&
4430 { ac_try
='test -z "$ac_c_werror_flag"
4431 || test ! -s conftest.err'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; } &&
4437 { ac_try
='test -s conftest.$ac_objext'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; }; then
4443 ac_header_compiler
=yes
4445 echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.
$ac_ext >&5
4448 ac_header_compiler
=no
4450 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4452 echo "${ECHO_T}$ac_header_compiler" >&6
4454 # Is the header present?
4455 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4457 cat >conftest.
$ac_ext <<_ACEOF
4460 cat confdefs.h
>>conftest.
$ac_ext
4461 cat >>conftest.
$ac_ext <<_ACEOF
4462 /* end confdefs.h. */
4463 #include <$ac_header>
4465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4466 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4468 grep -v '^ *+' conftest.er1
>conftest.err
4470 cat conftest.err
>&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } >/dev
/null
; then
4473 if test -s conftest.err
; then
4474 ac_cpp_err
=$ac_c_preproc_warn_flag
4475 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4482 if test -z "$ac_cpp_err"; then
4483 ac_header_preproc
=yes
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.
$ac_ext >&5
4488 ac_header_preproc
=no
4490 rm -f conftest.err conftest.
$ac_ext
4491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4492 echo "${ECHO_T}$ac_header_preproc" >&6
4494 # So? What about this header?
4495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4501 ac_header_preproc
=yes
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4518 ## ------------------------------------------ ##
4519 ## Report this to the AC_PACKAGE_NAME lists. ##
4520 ## ------------------------------------------ ##
4523 sed "s/^/$as_me: WARNING: /" >&2
4526 echo "$as_me:$LINENO: checking for $ac_header" >&5
4527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 eval "$as_ac_Header=\$ac_header_preproc"
4533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4538 cat >>confdefs.h
<<_ACEOF
4539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4556 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4557 __argz_count __argz_stringify __argz_next
4559 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4560 echo "$as_me:$LINENO: checking for $ac_func" >&5
4561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4562 if eval "test \"\${$as_ac_var+set}\" = set"; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4565 cat >conftest.
$ac_ext <<_ACEOF
4568 cat confdefs.h
>>conftest.
$ac_ext
4569 cat >>conftest.
$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4573 #define $ac_func innocuous_$ac_func
4575 /* System header to define __stub macros and hopefully few prototypes,
4576 which can conflict with char $ac_func (); below.
4577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4578 <limits.h> exists even on freestanding compilers. */
4581 # include <limits.h>
4583 # include <assert.h>
4588 /* Override any gcc2 internal prototype to avoid an error. */
4593 /* We use char because int might match the return type of a gcc2
4594 builtin and then its argument prototype would still apply. */
4596 /* The GNU C library defines this for functions which it implements
4597 to always fail with ENOSYS. Some functions are actually named
4598 something starting with __ and the normal name is an alias. */
4599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4602 char (*f) () = $ac_func;
4611 return f != $ac_func;
4616 rm -f conftest.
$ac_objext conftest
$ac_exeext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618 (eval $ac_link) 2>conftest.er1
4620 grep -v '^ *+' conftest.er1
>conftest.err
4622 cat conftest.err
>&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try
='test -z "$ac_c_werror_flag"
4626 || test ! -s conftest.err'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; } &&
4632 { ac_try
='test -s conftest$ac_exeext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 eval "$as_ac_var=yes"
4640 echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.
$ac_ext >&5
4643 eval "$as_ac_var=no"
4645 rm -f conftest.err conftest.
$ac_objext \
4646 conftest
$ac_exeext conftest.
$ac_ext
4648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4650 if test `eval echo '${'$as_ac_var'}'` = yes; then
4651 cat >>confdefs.h
<<_ACEOF
4652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4659 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4661 for ac_func
in stpcpy
4663 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4664 echo "$as_me:$LINENO: checking for $ac_func" >&5
4665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4666 if eval "test \"\${$as_ac_var+set}\" = set"; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 cat >conftest.
$ac_ext <<_ACEOF
4672 cat confdefs.h
>>conftest.
$ac_ext
4673 cat >>conftest.
$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4677 #define $ac_func innocuous_$ac_func
4679 /* System header to define __stub macros and hopefully few prototypes,
4680 which can conflict with char $ac_func (); below.
4681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4682 <limits.h> exists even on freestanding compilers. */
4685 # include <limits.h>
4687 # include <assert.h>
4692 /* Override any gcc2 internal prototype to avoid an error. */
4697 /* We use char because int might match the return type of a gcc2
4698 builtin and then its argument prototype would still apply. */
4700 /* The GNU C library defines this for functions which it implements
4701 to always fail with ENOSYS. Some functions are actually named
4702 something starting with __ and the normal name is an alias. */
4703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4706 char (*f) () = $ac_func;
4715 return f != $ac_func;
4720 rm -f conftest.
$ac_objext conftest
$ac_exeext
4721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4722 (eval $ac_link) 2>conftest.er1
4724 grep -v '^ *+' conftest.er1
>conftest.err
4726 cat conftest.err
>&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } &&
4729 { ac_try
='test -z "$ac_c_werror_flag"
4730 || test ! -s conftest.err'
4731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; } &&
4736 { ac_try
='test -s conftest$ac_exeext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 eval "$as_ac_var=yes"
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.
$ac_ext >&5
4747 eval "$as_ac_var=no"
4749 rm -f conftest.err conftest.
$ac_objext \
4750 conftest
$ac_exeext conftest.
$ac_ext
4752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4754 if test `eval echo '${'$as_ac_var'}'` = yes; then
4755 cat >>confdefs.h
<<_ACEOF
4756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4763 if test "${ac_cv_func_stpcpy}" = "yes"; then
4765 cat >>confdefs.h
<<\_ACEOF
4766 #define HAVE_STPCPY 1
4771 if test $ac_cv_header_locale_h = yes; then
4772 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4773 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4774 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 cat >conftest.
$ac_ext <<_ACEOF
4780 cat confdefs.h
>>conftest.
$ac_ext
4781 cat >>conftest.
$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4792 rm -f conftest.
$ac_objext conftest
$ac_exeext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4794 (eval $ac_link) 2>conftest.er1
4796 grep -v '^ *+' conftest.er1
>conftest.err
4798 cat conftest.err
>&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try
='test -z "$ac_c_werror_flag"
4802 || test ! -s conftest.err'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; } &&
4808 { ac_try
='test -s conftest$ac_exeext'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4814 am_cv_val_LC_MESSAGES
=yes
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.
$ac_ext >&5
4819 am_cv_val_LC_MESSAGES
=no
4821 rm -f conftest.err conftest.
$ac_objext \
4822 conftest
$ac_exeext conftest.
$ac_ext
4824 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4825 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4826 if test $am_cv_val_LC_MESSAGES = yes; then
4828 cat >>confdefs.h
<<\_ACEOF
4829 #define HAVE_LC_MESSAGES 1
4834 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4835 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4836 # Check whether --enable-nls or --disable-nls was given.
4837 if test "${enable_nls+set}" = set; then
4838 enableval
="$enable_nls"
4843 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4844 echo "${ECHO_T}$USE_NLS" >&6
4847 USE_INCLUDED_LIBINTL
=no
4849 if test "$USE_NLS" = "yes"; then
4850 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4851 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4853 # Check whether --with-included-gettext or --without-included-gettext was given.
4854 if test "${with_included_gettext+set}" = set; then
4855 withval
="$with_included_gettext"
4856 nls_cv_force_use_gnu_gettext
=$withval
4858 nls_cv_force_use_gnu_gettext
=no
4860 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4861 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4863 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
4864 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4866 nls_cv_header_libgt
=
4869 if test "${ac_cv_header_libintl_h+set}" = set; then
4870 echo "$as_me:$LINENO: checking for libintl.h" >&5
4871 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4872 if test "${ac_cv_header_libintl_h+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4876 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4878 # Is the header compilable?
4879 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4880 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4881 cat >conftest.
$ac_ext <<_ACEOF
4884 cat confdefs.h
>>conftest.
$ac_ext
4885 cat >>conftest.
$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4887 $ac_includes_default
4888 #include <libintl.h>
4890 rm -f conftest.
$ac_objext
4891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4892 (eval $ac_compile) 2>conftest.er1
4894 grep -v '^ *+' conftest.er1
>conftest.err
4896 cat conftest.err
>&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } &&
4899 { ac_try
='test -z "$ac_c_werror_flag"
4900 || test ! -s conftest.err'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; } &&
4906 { ac_try
='test -s conftest.$ac_objext'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; }; then
4912 ac_header_compiler
=yes
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.
$ac_ext >&5
4917 ac_header_compiler
=no
4919 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4920 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4921 echo "${ECHO_T}$ac_header_compiler" >&6
4923 # Is the header present?
4924 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4925 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4926 cat >conftest.
$ac_ext <<_ACEOF
4929 cat confdefs.h
>>conftest.
$ac_ext
4930 cat >>conftest.
$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 #include <libintl.h>
4934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4935 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4937 grep -v '^ *+' conftest.er1
>conftest.err
4939 cat conftest.err
>&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } >/dev
/null
; then
4942 if test -s conftest.err
; then
4943 ac_cpp_err
=$ac_c_preproc_warn_flag
4944 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4951 if test -z "$ac_cpp_err"; then
4952 ac_header_preproc
=yes
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.
$ac_ext >&5
4957 ac_header_preproc
=no
4959 rm -f conftest.err conftest.
$ac_ext
4960 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4961 echo "${ECHO_T}$ac_header_preproc" >&6
4963 # So? What about this header?
4964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4966 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4967 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4968 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4969 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4970 ac_header_preproc
=yes
4973 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4974 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4975 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4976 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4977 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4978 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4979 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4980 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4981 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4982 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4983 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4984 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4987 ## ------------------------------------------ ##
4988 ## Report this to the AC_PACKAGE_NAME lists. ##
4989 ## ------------------------------------------ ##
4992 sed "s/^/$as_me: WARNING: /" >&2
4995 echo "$as_me:$LINENO: checking for libintl.h" >&5
4996 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4997 if test "${ac_cv_header_libintl_h+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 ac_cv_header_libintl_h
=$ac_header_preproc
5002 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5003 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5006 if test $ac_cv_header_libintl_h = yes; then
5007 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5008 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5009 if test "${gt_cv_func_gettext_libc+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 cat >conftest.
$ac_ext <<_ACEOF
5015 cat confdefs.h
>>conftest.
$ac_ext
5016 cat >>conftest.
$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 #include <libintl.h>
5022 return (int) gettext ("")
5027 rm -f conftest.
$ac_objext conftest
$ac_exeext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5029 (eval $ac_link) 2>conftest.er1
5031 grep -v '^ *+' conftest.er1
>conftest.err
5033 cat conftest.err
>&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try
='test -z "$ac_c_werror_flag"
5037 || test ! -s conftest.err'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; } &&
5043 { ac_try
='test -s conftest$ac_exeext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 gt_cv_func_gettext_libc
=yes
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.
$ac_ext >&5
5054 gt_cv_func_gettext_libc
=no
5056 rm -f conftest.err conftest.
$ac_objext \
5057 conftest
$ac_exeext conftest.
$ac_ext
5059 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5060 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5062 if test "$gt_cv_func_gettext_libc" != "yes"; then
5063 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5064 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5065 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 ac_check_lib_save_LIBS
=$LIBS
5070 cat >conftest.
$ac_ext <<_ACEOF
5073 cat confdefs.h
>>conftest.
$ac_ext
5074 cat >>conftest.
$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5077 /* Override any gcc2 internal prototype to avoid an error. */
5081 /* We use char because int might match the return type of a gcc2
5082 builtin and then its argument prototype would still apply. */
5083 char bindtextdomain ();
5092 rm -f conftest.
$ac_objext conftest
$ac_exeext
5093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5094 (eval $ac_link) 2>conftest.er1
5096 grep -v '^ *+' conftest.er1
>conftest.err
5098 cat conftest.err
>&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } &&
5101 { ac_try
='test -z "$ac_c_werror_flag"
5102 || test ! -s conftest.err'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; } &&
5108 { ac_try
='test -s conftest$ac_exeext'
5109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; }; then
5114 ac_cv_lib_intl_bindtextdomain
=yes
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.
$ac_ext >&5
5119 ac_cv_lib_intl_bindtextdomain
=no
5121 rm -f conftest.err conftest.
$ac_objext \
5122 conftest
$ac_exeext conftest.
$ac_ext
5123 LIBS
=$ac_check_lib_save_LIBS
5125 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5126 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5127 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5128 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5129 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5130 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 cat >conftest.
$ac_ext <<_ACEOF
5136 cat confdefs.h
>>conftest.
$ac_ext
5137 cat >>conftest.
$ac_ext <<_ACEOF
5138 /* end confdefs.h. */
5143 return (int) gettext ("")
5148 rm -f conftest.
$ac_objext conftest
$ac_exeext
5149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5150 (eval $ac_link) 2>conftest.er1
5152 grep -v '^ *+' conftest.er1
>conftest.err
5154 cat conftest.err
>&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } &&
5157 { ac_try
='test -z "$ac_c_werror_flag"
5158 || test ! -s conftest.err'
5159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); }; } &&
5164 { ac_try
='test -s conftest$ac_exeext'
5165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }; }; then
5170 gt_cv_func_gettext_libintl
=yes
5172 echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.
$ac_ext >&5
5175 gt_cv_func_gettext_libintl
=no
5177 rm -f conftest.err conftest.
$ac_objext \
5178 conftest
$ac_exeext conftest.
$ac_ext
5180 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5181 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5186 if test "$gt_cv_func_gettext_libc" = "yes" \
5187 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
5189 cat >>confdefs.h
<<\_ACEOF
5190 #define HAVE_GETTEXT 1
5193 # Extract the first word of "msgfmt", so it can be a program name with args.
5194 set dummy msgfmt
; ac_word
=$2
5195 echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197 if test "${ac_cv_path_MSGFMT+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5205 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5206 for ac_dir
in $PATH; do
5207 test -z "$ac_dir" && ac_dir
=.
5208 if test -f $ac_dir/$ac_word; then
5209 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5210 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5216 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
5220 MSGFMT
="$ac_cv_path_MSGFMT"
5221 if test -n "$MSGFMT"; then
5222 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5223 echo "${ECHO_T}$MSGFMT" >&6
5225 echo "$as_me:$LINENO: result: no" >&5
5226 echo "${ECHO_T}no" >&6
5228 if test "$MSGFMT" != "no"; then
5230 for ac_func
in dcgettext
5232 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5233 echo "$as_me:$LINENO: checking for $ac_func" >&5
5234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5235 if eval "test \"\${$as_ac_var+set}\" = set"; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 cat >conftest.
$ac_ext <<_ACEOF
5241 cat confdefs.h
>>conftest.
$ac_ext
5242 cat >>conftest.
$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5246 #define $ac_func innocuous_$ac_func
5248 /* System header to define __stub macros and hopefully few prototypes,
5249 which can conflict with char $ac_func (); below.
5250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5251 <limits.h> exists even on freestanding compilers. */
5254 # include <limits.h>
5256 # include <assert.h>
5261 /* Override any gcc2 internal prototype to avoid an error. */
5266 /* We use char because int might match the return type of a gcc2
5267 builtin and then its argument prototype would still apply. */
5269 /* The GNU C library defines this for functions which it implements
5270 to always fail with ENOSYS. Some functions are actually named
5271 something starting with __ and the normal name is an alias. */
5272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5275 char (*f) () = $ac_func;
5284 return f != $ac_func;
5289 rm -f conftest.
$ac_objext conftest
$ac_exeext
5290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5291 (eval $ac_link) 2>conftest.er1
5293 grep -v '^ *+' conftest.er1
>conftest.err
5295 cat conftest.err
>&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } &&
5298 { ac_try
='test -z "$ac_c_werror_flag"
5299 || test ! -s conftest.err'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; } &&
5305 { ac_try
='test -s conftest$ac_exeext'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; }; then
5311 eval "$as_ac_var=yes"
5313 echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.
$ac_ext >&5
5316 eval "$as_ac_var=no"
5318 rm -f conftest.err conftest.
$ac_objext \
5319 conftest
$ac_exeext conftest.
$ac_ext
5321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5323 if test `eval echo '${'$as_ac_var'}'` = yes; then
5324 cat >>confdefs.h
<<_ACEOF
5325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5331 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5332 set dummy gmsgfmt
; ac_word
=$2
5333 echo "$as_me:$LINENO: checking for $ac_word" >&5
5334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5335 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5347 test -z "$as_dir" && as_dir
=.
5348 for ac_exec_ext
in '' $ac_executable_extensions; do
5349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5361 GMSGFMT
=$ac_cv_path_GMSGFMT
5363 if test -n "$GMSGFMT"; then
5364 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5365 echo "${ECHO_T}$GMSGFMT" >&6
5367 echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6
5371 # Extract the first word of "xgettext", so it can be a program name with args.
5372 set dummy xgettext
; ac_word
=$2
5373 echo "$as_me:$LINENO: checking for $ac_word" >&5
5374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5375 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5380 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5383 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5384 for ac_dir
in $PATH; do
5385 test -z "$ac_dir" && ac_dir
=.
5386 if test -f $ac_dir/$ac_word; then
5387 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5388 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5394 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5398 XGETTEXT
="$ac_cv_path_XGETTEXT"
5399 if test -n "$XGETTEXT"; then
5400 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5401 echo "${ECHO_T}$XGETTEXT" >&6
5403 echo "$as_me:$LINENO: result: no" >&5
5404 echo "${ECHO_T}no" >&6
5407 cat >conftest.
$ac_ext <<_ACEOF
5410 cat confdefs.h
>>conftest.
$ac_ext
5411 cat >>conftest.
$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5417 extern int _nl_msg_cat_cntr;
5418 return _nl_msg_cat_cntr
5423 rm -f conftest.
$ac_objext conftest
$ac_exeext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5425 (eval $ac_link) 2>conftest.er1
5427 grep -v '^ *+' conftest.er1
>conftest.err
5429 cat conftest.err
>&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try
='test -z "$ac_c_werror_flag"
5433 || test ! -s conftest.err'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; } &&
5439 { ac_try
='test -s conftest$ac_exeext'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5448 echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.
$ac_ext >&5
5454 rm -f conftest.err conftest.
$ac_objext \
5455 conftest
$ac_exeext conftest.
$ac_ext
5465 if test x
"$CATOBJEXT" = x
&& test -d $srcdir/..
/intl
; then
5466 # Neither gettext nor catgets in included in the C library.
5467 # Fall back on GNU gettext library (assuming it is present).
5468 nls_cv_use_gnu_gettext
=yes
5472 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5473 INTLOBJS
="\$(GETTOBJS)"
5474 # Extract the first word of "msgfmt", so it can be a program name with args.
5475 set dummy msgfmt
; ac_word
=$2
5476 echo "$as_me:$LINENO: checking for $ac_word" >&5
5477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5478 if test "${ac_cv_path_MSGFMT+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5483 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5486 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5487 for ac_dir
in $PATH; do
5488 test -z "$ac_dir" && ac_dir
=.
5489 if test -f $ac_dir/$ac_word; then
5490 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5491 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5497 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
5501 MSGFMT
="$ac_cv_path_MSGFMT"
5502 if test -n "$MSGFMT"; then
5503 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5504 echo "${ECHO_T}$MSGFMT" >&6
5506 echo "$as_me:$LINENO: result: no" >&5
5507 echo "${ECHO_T}no" >&6
5510 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5511 set dummy gmsgfmt
; ac_word
=$2
5512 echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5519 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5526 test -z "$as_dir" && as_dir
=.
5527 for ac_exec_ext
in '' $ac_executable_extensions; do
5528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5540 GMSGFMT
=$ac_cv_path_GMSGFMT
5542 if test -n "$GMSGFMT"; then
5543 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5544 echo "${ECHO_T}$GMSGFMT" >&6
5546 echo "$as_me:$LINENO: result: no" >&5
5547 echo "${ECHO_T}no" >&6
5550 # Extract the first word of "xgettext", so it can be a program name with args.
5551 set dummy xgettext
; ac_word
=$2
5552 echo "$as_me:$LINENO: checking for $ac_word" >&5
5553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5554 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5562 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5563 for ac_dir
in $PATH; do
5564 test -z "$ac_dir" && ac_dir
=.
5565 if test -f $ac_dir/$ac_word; then
5566 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5567 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5573 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5577 XGETTEXT
="$ac_cv_path_XGETTEXT"
5578 if test -n "$XGETTEXT"; then
5579 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5580 echo "${ECHO_T}$XGETTEXT" >&6
5582 echo "$as_me:$LINENO: result: no" >&5
5583 echo "${ECHO_T}no" >&6
5587 USE_INCLUDED_LIBINTL
=yes
5591 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
5593 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
5594 nls_cv_header_intl
=libintl.h
5595 nls_cv_header_libgt
=libgettext.h
5598 if test "$XGETTEXT" != ":"; then
5599 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
5602 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5603 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5608 # We need to process the po/ directory.
5612 nls_cv_header_intl
=libintl.h
5613 nls_cv_header_libgt
=libgettext.h
5616 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5617 # because some of the sources are only built for this goal.
5618 if test "$PACKAGE" = gettext; then
5620 USE_INCLUDED_LIBINTL
=yes
5623 for lang
in $ALL_LINGUAS; do
5624 GMOFILES
="$GMOFILES $lang.gmo"
5625 POFILES
="$POFILES $lang.po"
5639 if test "x$CATOBJEXT" != "x"; then
5641 cat >>confdefs.h
<<\_ACEOF
5642 #define ENABLE_NLS 1
5648 if test "x$CATOBJEXT" != "x"; then
5649 if test "x$ALL_LINGUAS" = "x"; then
5652 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5653 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5655 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
5656 case "$ALL_LINGUAS" in
5657 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
5660 LINGUAS
=$NEW_LINGUAS
5661 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5662 echo "${ECHO_T}$LINGUAS" >&6
5665 if test -n "$LINGUAS"; then
5666 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
5670 if test $ac_cv_header_locale_h = yes; then
5671 INCLUDE_LOCALE_H
="#include <locale.h>"
5674 /* The system does not provide the header <locale.h>. Take care yourself. */"
5678 if test -f $srcdir/po2tbl.
sed.
in; then
5679 if test "$CATOBJEXT" = ".cat"; then
5680 if test "${ac_cv_header_linux_version_h+set}" = set; then
5681 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5682 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5683 if test "${ac_cv_header_linux_version_h+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5687 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5689 # Is the header compilable?
5690 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5691 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5692 cat >conftest.
$ac_ext <<_ACEOF
5695 cat confdefs.h
>>conftest.
$ac_ext
5696 cat >>conftest.
$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5698 $ac_includes_default
5699 #include <linux/version.h>
5701 rm -f conftest.
$ac_objext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703 (eval $ac_compile) 2>conftest.er1
5705 grep -v '^ *+' conftest.er1
>conftest.err
5707 cat conftest.err
>&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try
='test -z "$ac_c_werror_flag"
5711 || test ! -s conftest.err'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try
='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_header_compiler
=yes
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.
$ac_ext >&5
5728 ac_header_compiler
=no
5730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5732 echo "${ECHO_T}$ac_header_compiler" >&6
5734 # Is the header present?
5735 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5736 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5737 cat >conftest.
$ac_ext <<_ACEOF
5740 cat confdefs.h
>>conftest.
$ac_ext
5741 cat >>conftest.
$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5743 #include <linux/version.h>
5745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5746 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5748 grep -v '^ *+' conftest.er1
>conftest.err
5750 cat conftest.err
>&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } >/dev
/null
; then
5753 if test -s conftest.err
; then
5754 ac_cpp_err
=$ac_c_preproc_warn_flag
5755 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5762 if test -z "$ac_cpp_err"; then
5763 ac_header_preproc
=yes
5765 echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.
$ac_ext >&5
5768 ac_header_preproc
=no
5770 rm -f conftest.err conftest.
$ac_ext
5771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5772 echo "${ECHO_T}$ac_header_preproc" >&6
5774 # So? What about this header?
5775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5777 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5778 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5779 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5780 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5781 ac_header_preproc
=yes
5784 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5785 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5786 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5787 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5788 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5789 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5790 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5791 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5792 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5793 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5794 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5795 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5798 ## ------------------------------------------ ##
5799 ## Report this to the AC_PACKAGE_NAME lists. ##
5800 ## ------------------------------------------ ##
5803 sed "s/^/$as_me: WARNING: /" >&2
5806 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5807 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5808 if test "${ac_cv_header_linux_version_h+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 ac_cv_header_linux_version_h
=$ac_header_preproc
5813 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5814 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5817 if test $ac_cv_header_linux_version_h = yes; then
5825 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
5827 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5828 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
5831 if test "$PACKAGE" = "gettext"; then
5841 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
5847 if test -f $srcdir/po
/POTFILES.
in; then
5848 test -d po || mkdir po
5849 if test "x$srcdir" != "x."; then
5850 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5851 posrcprefix
="$srcdir/"
5853 posrcprefix
="../$srcdir/"
5859 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5860 < $srcdir/po
/POTFILES.
in > po
/POTFILES
5864 localedir
='${datadir}/locale'
5867 if test "x$POSUB" != x
; then
5869 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5870 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5871 # Look for .po and .gmo files in the source directory.
5874 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
5875 # If there aren't any .gmo files the shell will give us the
5876 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5878 case "$cat" in *\
**)
5881 # The quadruple backslash is collapsed to a double backslash
5882 # by the backticks, then collapsed again by the double quotes,
5883 # leaving us with one backslash in the sed expression (right
5884 # before the dot that mustn't act as a wildcard).
5885 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5886 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5887 # The user is allowed to set LINGUAS to a list of languages to
5888 # install catalogs for. If it's empty that means "all of them."
5889 if test "x$LINGUAS" = x
; then
5890 CATALOGS
="$CATALOGS $cat"
5891 XLINGUAS
="$XLINGUAS $lang"
5893 case "$LINGUAS" in *$lang*)
5894 CATALOGS
="$CATALOGS $cat"
5895 XLINGUAS
="$XLINGUAS $lang"
5901 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5902 echo "${ECHO_T}$LINGUAS" >&6
5904 CONFIG_ALL
="$CONFIG_ALL all-po"
5905 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
5906 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
5907 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
5912 cat >>confdefs.h
<<_ACEOF
5913 #define PACKAGE "$PACKAGE"
5918 debugdir
=${libdir}/debug
5921 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
5922 if test "${with_separate_debug_dir+set}" = set; then
5923 withval
="$with_separate_debug_dir"
5924 debugdir
="${withval}"
5928 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5929 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5930 ac_define_dir
=`eval echo $debugdir`
5931 ac_define_dir
=`eval echo $ac_define_dir`
5933 cat >>confdefs.h
<<_ACEOF
5934 #define DEBUGDIR "$ac_define_dir"
5938 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
5942 subdirs
="$subdirs doc testsuite"
5945 .
$srcdir/configure.
host
5947 .
$srcdir/configure.tgt
5949 # Fetch the default architecture and default target vector from BFD.
5950 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
5952 # We only want the first architecture, so strip off the others if
5953 # there is more than one.
5954 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
5956 if test "x$targ_archs" != x
; then
5958 cat >>confdefs.h
<<_ACEOF
5959 #define DEFAULT_BFD_ARCH $targ_archs
5963 if test "x$targ_defvec" != x
; then
5965 cat >>confdefs.h
<<_ACEOF
5966 #define DEFAULT_BFD_VEC $targ_defvec
5971 test "$program_prefix" != NONE
&&
5972 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
5973 # Use a double $ so make ignores it.
5974 test "$program_suffix" != NONE
&&
5975 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
5976 # Double any \ or $. echo might interpret backslashes.
5977 # By default was `s,x,x', remove it if useless.
5978 cat <<\_ACEOF
>conftest.
sed
5979 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
5981 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
5985 # The CLI cannot be disabled yet, but may be in the future.
5988 # Check whether --enable-gdbcli or --disable-gdbcli was given.
5989 if test "${enable_gdbcli+set}" = set; then
5990 enableval
="$enable_gdbcli"
5995 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
5996 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
5997 { (exit 1); exit 1; }; } ;;
5999 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
6000 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
6001 { (exit 1); exit 1; }; } ;;
6006 if test x
"$enable_gdbcli" = xyes
; then
6007 if test -d $srcdir/cli
; then
6008 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6009 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6010 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6011 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6016 # Check whether --enable-gdbmi or --disable-gdbmi was given.
6017 if test "${enable_gdbmi+set}" = set; then
6018 enableval
="$enable_gdbmi"
6023 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
6024 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
6025 { (exit 1); exit 1; }; } ;;
6030 if test x
"$enable_gdbmi" = xyes
; then
6031 if test -d $srcdir/mi
; then
6032 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6033 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6034 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6035 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6040 # Check whether --enable-tui or --disable-tui was given.
6041 if test "${enable_tui+set}" = set; then
6042 enableval
="$enable_tui"
6047 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6048 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6049 { (exit 1); exit 1; }; } ;;
6056 # Check whether --enable-gdbtk or --disable-gdbtk was given.
6057 if test "${enable_gdbtk+set}" = set; then
6058 enableval
="$enable_gdbtk"
6063 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6064 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6065 { (exit 1); exit 1; }; } ;;
6068 if test -d $srcdir/gdbtk
-a -d $srcdir/..
/itcl
; then
6074 # We unconditionally disable gdbtk tests on selected platforms.
6077 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6078 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6082 # Libunwind support.
6084 # Check whether --with-libunwind or --without-libunwind was given.
6085 if test "${with_libunwind+set}" = set; then
6086 withval
="$with_libunwind"
6087 case "${withval}" in
6088 yes) enable_libunwind
=yes ;;
6089 no
) enable_libunwind
=no
;;
6090 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6091 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6092 { (exit 1); exit 1; }; } ;;
6097 for ac_header
in libunwind.h
6099 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6101 echo "$as_me:$LINENO: checking for $ac_header" >&5
6102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6109 # Is the header compilable?
6110 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6112 cat >conftest.
$ac_ext <<_ACEOF
6115 cat confdefs.h
>>conftest.
$ac_ext
6116 cat >>conftest.
$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6118 $ac_includes_default
6119 #include <$ac_header>
6121 rm -f conftest.
$ac_objext
6122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6123 (eval $ac_compile) 2>conftest.er1
6125 grep -v '^ *+' conftest.er1
>conftest.err
6127 cat conftest.err
>&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } &&
6130 { ac_try
='test -z "$ac_c_werror_flag"
6131 || test ! -s conftest.err'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; } &&
6137 { ac_try
='test -s conftest.$ac_objext'
6138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; }; then
6143 ac_header_compiler
=yes
6145 echo "$as_me: failed program was:" >&5
6146 sed 's/^/| /' conftest.
$ac_ext >&5
6148 ac_header_compiler
=no
6150 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6152 echo "${ECHO_T}$ac_header_compiler" >&6
6154 # Is the header present?
6155 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6157 cat >conftest.
$ac_ext <<_ACEOF
6160 cat confdefs.h
>>conftest.
$ac_ext
6161 cat >>conftest.
$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6163 #include <$ac_header>
6165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6166 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6168 grep -v '^ *+' conftest.er1
>conftest.err
6170 cat conftest.err
>&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } >/dev
/null
; then
6173 if test -s conftest.err
; then
6174 ac_cpp_err
=$ac_c_preproc_warn_flag
6175 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6182 if test -z "$ac_cpp_err"; then
6183 ac_header_preproc
=yes
6185 echo "$as_me: failed program was:" >&5
6186 sed 's/^/| /' conftest.
$ac_ext >&5
6188 ac_header_preproc
=no
6190 rm -f conftest.err conftest.
$ac_ext
6191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6192 echo "${ECHO_T}$ac_header_preproc" >&6
6194 # So? What about this header?
6195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6200 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6201 ac_header_preproc
=yes
6204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6207 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6209 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6211 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6218 ## ------------------------------------------ ##
6219 ## Report this to the AC_PACKAGE_NAME lists. ##
6220 ## ------------------------------------------ ##
6223 sed "s/^/$as_me: WARNING: /" >&2
6226 echo "$as_me:$LINENO: checking for $ac_header" >&5
6227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 eval "$as_ac_Header=\$ac_header_preproc"
6233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6238 cat >>confdefs.h
<<_ACEOF
6239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6247 for ac_header
in libunwind-ia64.h
6249 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6251 echo "$as_me:$LINENO: checking for $ac_header" >&5
6252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6259 # Is the header compilable?
6260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6262 cat >conftest.
$ac_ext <<_ACEOF
6265 cat confdefs.h
>>conftest.
$ac_ext
6266 cat >>conftest.
$ac_ext <<_ACEOF
6267 /* end confdefs.h. */
6268 $ac_includes_default
6269 #include <$ac_header>
6271 rm -f conftest.
$ac_objext
6272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6273 (eval $ac_compile) 2>conftest.er1
6275 grep -v '^ *+' conftest.er1
>conftest.err
6277 cat conftest.err
>&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } &&
6280 { ac_try
='test -z "$ac_c_werror_flag"
6281 || test ! -s conftest.err'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; } &&
6287 { ac_try
='test -s conftest.$ac_objext'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
6293 ac_header_compiler
=yes
6295 echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.
$ac_ext >&5
6298 ac_header_compiler
=no
6300 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6302 echo "${ECHO_T}$ac_header_compiler" >&6
6304 # Is the header present?
6305 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6307 cat >conftest.
$ac_ext <<_ACEOF
6310 cat confdefs.h
>>conftest.
$ac_ext
6311 cat >>conftest.
$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6313 #include <$ac_header>
6315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6316 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6318 grep -v '^ *+' conftest.er1
>conftest.err
6320 cat conftest.err
>&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } >/dev
/null
; then
6323 if test -s conftest.err
; then
6324 ac_cpp_err
=$ac_c_preproc_warn_flag
6325 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6332 if test -z "$ac_cpp_err"; then
6333 ac_header_preproc
=yes
6335 echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.
$ac_ext >&5
6338 ac_header_preproc
=no
6340 rm -f conftest.err conftest.
$ac_ext
6341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6342 echo "${ECHO_T}$ac_header_preproc" >&6
6344 # So? What about this header?
6345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6351 ac_header_preproc
=yes
6354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6368 ## ------------------------------------------ ##
6369 ## Report this to the AC_PACKAGE_NAME lists. ##
6370 ## ------------------------------------------ ##
6373 sed "s/^/$as_me: WARNING: /" >&2
6376 echo "$as_me:$LINENO: checking for $ac_header" >&5
6377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6381 eval "$as_ac_Header=\$ac_header_preproc"
6383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6388 cat >>confdefs.h
<<_ACEOF
6389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6396 if test x
"$ac_cv_header_libunwind_h" = xyes
-a x
"$ac_cv_header_libunwind_ia64_h" = xyes
; then
6397 enable_libunwind
=yes;
6402 if test x
"$enable_libunwind" = xyes
; then
6404 for ac_header
in libunwind.h
6406 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6408 echo "$as_me:$LINENO: checking for $ac_header" >&5
6409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6416 # Is the header compilable?
6417 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6419 cat >conftest.
$ac_ext <<_ACEOF
6422 cat confdefs.h
>>conftest.
$ac_ext
6423 cat >>conftest.
$ac_ext <<_ACEOF
6424 /* end confdefs.h. */
6425 $ac_includes_default
6426 #include <$ac_header>
6428 rm -f conftest.
$ac_objext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430 (eval $ac_compile) 2>conftest.er1
6432 grep -v '^ *+' conftest.er1
>conftest.err
6434 cat conftest.err
>&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try
='test -z "$ac_c_werror_flag"
6438 || test ! -s conftest.err'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; } &&
6444 { ac_try
='test -s conftest.$ac_objext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 ac_header_compiler
=yes
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.
$ac_ext >&5
6455 ac_header_compiler
=no
6457 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6459 echo "${ECHO_T}$ac_header_compiler" >&6
6461 # Is the header present?
6462 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6464 cat >conftest.
$ac_ext <<_ACEOF
6467 cat confdefs.h
>>conftest.
$ac_ext
6468 cat >>conftest.
$ac_ext <<_ACEOF
6469 /* end confdefs.h. */
6470 #include <$ac_header>
6472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6473 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6475 grep -v '^ *+' conftest.er1
>conftest.err
6477 cat conftest.err
>&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } >/dev
/null
; then
6480 if test -s conftest.err
; then
6481 ac_cpp_err
=$ac_c_preproc_warn_flag
6482 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6489 if test -z "$ac_cpp_err"; then
6490 ac_header_preproc
=yes
6492 echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.
$ac_ext >&5
6495 ac_header_preproc
=no
6497 rm -f conftest.err conftest.
$ac_ext
6498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6499 echo "${ECHO_T}$ac_header_preproc" >&6
6501 # So? What about this header?
6502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6508 ac_header_preproc
=yes
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6518 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6525 ## ------------------------------------------ ##
6526 ## Report this to the AC_PACKAGE_NAME lists. ##
6527 ## ------------------------------------------ ##
6530 sed "s/^/$as_me: WARNING: /" >&2
6533 echo "$as_me:$LINENO: checking for $ac_header" >&5
6534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 eval "$as_ac_Header=\$ac_header_preproc"
6540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6545 cat >>confdefs.h
<<_ACEOF
6546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6554 for ac_header
in libunwind-ia64.h
6556 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6558 echo "$as_me:$LINENO: checking for $ac_header" >&5
6559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6566 # Is the header compilable?
6567 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6569 cat >conftest.
$ac_ext <<_ACEOF
6572 cat confdefs.h
>>conftest.
$ac_ext
6573 cat >>conftest.
$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6575 $ac_includes_default
6576 #include <$ac_header>
6578 rm -f conftest.
$ac_objext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6580 (eval $ac_compile) 2>conftest.er1
6582 grep -v '^ *+' conftest.er1
>conftest.err
6584 cat conftest.err
>&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try
='test -z "$ac_c_werror_flag"
6588 || test ! -s conftest.err'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; } &&
6594 { ac_try
='test -s conftest.$ac_objext'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6600 ac_header_compiler
=yes
6602 echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.
$ac_ext >&5
6605 ac_header_compiler
=no
6607 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6609 echo "${ECHO_T}$ac_header_compiler" >&6
6611 # Is the header present?
6612 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6614 cat >conftest.
$ac_ext <<_ACEOF
6617 cat confdefs.h
>>conftest.
$ac_ext
6618 cat >>conftest.
$ac_ext <<_ACEOF
6619 /* end confdefs.h. */
6620 #include <$ac_header>
6622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6623 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6625 grep -v '^ *+' conftest.er1
>conftest.err
6627 cat conftest.err
>&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); } >/dev
/null
; then
6630 if test -s conftest.err
; then
6631 ac_cpp_err
=$ac_c_preproc_warn_flag
6632 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6639 if test -z "$ac_cpp_err"; then
6640 ac_header_preproc
=yes
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.
$ac_ext >&5
6645 ac_header_preproc
=no
6647 rm -f conftest.err conftest.
$ac_ext
6648 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6649 echo "${ECHO_T}$ac_header_preproc" >&6
6651 # So? What about this header?
6652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6658 ac_header_preproc
=yes
6661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6675 ## ------------------------------------------ ##
6676 ## Report this to the AC_PACKAGE_NAME lists. ##
6677 ## ------------------------------------------ ##
6680 sed "s/^/$as_me: WARNING: /" >&2
6683 echo "$as_me:$LINENO: checking for $ac_header" >&5
6684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6688 eval "$as_ac_Header=\$ac_header_preproc"
6690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6695 cat >>confdefs.h
<<_ACEOF
6696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6704 cat >>confdefs.h
<<\_ACEOF
6705 #define HAVE_LIBUNWIND 1
6708 CONFIG_OBS
="$CONFIG_OBS libunwind-frame.o"
6709 CONFIG_DEPS
="$CONFIG_DEPS libunwind-frame.o"
6710 CONFIG_SRCS
="$CONFIG_SRCS libunwind-frame.c"
6713 # Profiling support.
6714 # Check whether --enable-profiling or --disable-profiling was given.
6715 if test "${enable_profiling+set}" = set; then
6716 enableval
="$enable_profiling"
6721 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6722 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6723 { (exit 1); exit 1; }; } ;;
6731 for ac_func
in monstartup _mcleanup
6733 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6734 echo "$as_me:$LINENO: checking for $ac_func" >&5
6735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6736 if eval "test \"\${$as_ac_var+set}\" = set"; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 cat >conftest.
$ac_ext <<_ACEOF
6742 cat confdefs.h
>>conftest.
$ac_ext
6743 cat >>conftest.
$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6747 #define $ac_func innocuous_$ac_func
6749 /* System header to define __stub macros and hopefully few prototypes,
6750 which can conflict with char $ac_func (); below.
6751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6752 <limits.h> exists even on freestanding compilers. */
6755 # include <limits.h>
6757 # include <assert.h>
6762 /* Override any gcc2 internal prototype to avoid an error. */
6767 /* We use char because int might match the return type of a gcc2
6768 builtin and then its argument prototype would still apply. */
6770 /* The GNU C library defines this for functions which it implements
6771 to always fail with ENOSYS. Some functions are actually named
6772 something starting with __ and the normal name is an alias. */
6773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6776 char (*f) () = $ac_func;
6785 return f != $ac_func;
6790 rm -f conftest.
$ac_objext conftest
$ac_exeext
6791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6792 (eval $ac_link) 2>conftest.er1
6794 grep -v '^ *+' conftest.er1
>conftest.err
6796 cat conftest.err
>&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } &&
6799 { ac_try
='test -z "$ac_c_werror_flag"
6800 || test ! -s conftest.err'
6801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; } &&
6806 { ac_try
='test -s conftest$ac_exeext'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; }; then
6812 eval "$as_ac_var=yes"
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.
$ac_ext >&5
6817 eval "$as_ac_var=no"
6819 rm -f conftest.err conftest.
$ac_objext \
6820 conftest
$ac_exeext conftest.
$ac_ext
6822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6824 if test `eval echo '${'$as_ac_var'}'` = yes; then
6825 cat >>confdefs.h
<<_ACEOF
6826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6832 echo "$as_me:$LINENO: checking for _etext" >&5
6833 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6834 if test "${ac_cv_var__etext+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 cat >conftest.
$ac_ext <<_ACEOF
6840 cat confdefs.h
>>conftest.
$ac_ext
6841 cat >>conftest.
$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6854 rm -f conftest.
$ac_objext conftest
$ac_exeext
6855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6856 (eval $ac_link) 2>conftest.er1
6858 grep -v '^ *+' conftest.er1
>conftest.err
6860 cat conftest.err
>&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } &&
6863 { ac_try
='test -z "$ac_c_werror_flag"
6864 || test ! -s conftest.err'
6865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; } &&
6870 { ac_try
='test -s conftest$ac_exeext'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; }; then
6876 ac_cv_var__etext
=yes
6878 echo "$as_me: failed program was:" >&5
6879 sed 's/^/| /' conftest.
$ac_ext >&5
6883 rm -f conftest.err conftest.
$ac_objext \
6884 conftest
$ac_exeext conftest.
$ac_ext
6886 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6887 echo "${ECHO_T}$ac_cv_var__etext" >&6
6888 if test $ac_cv_var__etext = yes; then
6890 cat >>confdefs.h
<<\_ACEOF
6891 #define HAVE__ETEXT 1
6895 if test "$enable_profiling" = yes ; then
6896 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
6897 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6898 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6899 { (exit 1); exit 1; }; }
6902 OLD_CFLAGS
="$CFLAGS"
6903 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
6905 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6906 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6907 if test "${ac_cv_cc_supports_pg+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6910 cat >conftest.
$ac_ext <<_ACEOF
6913 cat confdefs.h
>>conftest.
$ac_ext
6914 cat >>conftest.
$ac_ext <<_ACEOF
6915 /* end confdefs.h. */
6925 rm -f conftest.
$ac_objext
6926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6927 (eval $ac_compile) 2>conftest.er1
6929 grep -v '^ *+' conftest.er1
>conftest.err
6931 cat conftest.err
>&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); } &&
6934 { ac_try
='test -z "$ac_c_werror_flag"
6935 || test ! -s conftest.err'
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; } &&
6941 { ac_try
='test -s conftest.$ac_objext'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6947 ac_cv_cc_supports_pg
=yes
6949 echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.
$ac_ext >&5
6952 ac_cv_cc_supports_pg
=no
6954 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6956 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
6957 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
6959 if test $ac_cv_cc_supports_pg = no
; then
6960 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
6961 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
6962 { (exit 1); exit 1; }; }
6965 CFLAGS
="$OLD_CFLAGS"
6968 # --------------------- #
6969 # Checks for programs. #
6970 # --------------------- #
6972 for ac_prog
in gawk mawk nawk
awk
6974 # Extract the first word of "$ac_prog", so it can be a program name with args.
6975 set dummy
$ac_prog; ac_word
=$2
6976 echo "$as_me:$LINENO: checking for $ac_word" >&5
6977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6978 if test "${ac_cv_prog_AWK+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 if test -n "$AWK"; then
6982 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6984 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6988 test -z "$as_dir" && as_dir
=.
6989 for ac_exec_ext
in '' $ac_executable_extensions; do
6990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6991 ac_cv_prog_AWK
="$ac_prog"
6992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 if test -n "$AWK"; then
7002 echo "$as_me:$LINENO: result: $AWK" >&5
7003 echo "${ECHO_T}$AWK" >&6
7005 echo "$as_me:$LINENO: result: no" >&5
7006 echo "${ECHO_T}no" >&6
7009 test -n "$AWK" && break
7012 # Find a good install program. We prefer a C program (faster),
7013 # so one script is as good as another. But avoid the broken or
7014 # incompatible versions:
7015 # SysV /etc/install, /usr/sbin/install
7016 # SunOS /usr/etc/install
7017 # IRIX /sbin/install
7019 # AmigaOS /C/install, which installs bootblocks on floppy discs
7020 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7021 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7022 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7023 # OS/2's system install, which has a completely different semantic
7024 # ./install, which can be erroneously created by make from ./install.sh.
7025 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7026 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7027 if test -z "$INSTALL"; then
7028 if test "${ac_cv_path_install+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7035 test -z "$as_dir" && as_dir
=.
7036 # Account for people who put trailing slashes in PATH elements.
7038 .
/ | .
// |
/cC
/* | \
7039 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7040 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
7043 # OSF1 and SCO ODT 3.0 have their own names for install.
7044 # Don't use installbsd from OSF since it installs stuff as root
7046 for ac_prog
in ginstall scoinst
install; do
7047 for ac_exec_ext
in '' $ac_executable_extensions; do
7048 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7049 if test $ac_prog = install &&
7050 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7051 # AIX install. It has an incompatible calling convention.
7053 elif test $ac_prog = install &&
7054 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7055 # program-specific install script used by HP pwplus--don't use.
7058 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7070 if test "${ac_cv_path_install+set}" = set; then
7071 INSTALL
=$ac_cv_path_install
7073 # As a last resort, use the slow shell script. We don't cache a
7074 # path for INSTALL within a source directory, because that will
7075 # break other packages using the cache if that directory is
7076 # removed, or if the path is relative.
7077 INSTALL
=$ac_install_sh
7080 echo "$as_me:$LINENO: result: $INSTALL" >&5
7081 echo "${ECHO_T}$INSTALL" >&6
7083 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7084 # It thinks the first close brace ends the variable substitution.
7085 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7087 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7089 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7091 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7092 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7094 if test "$LN_S" = "ln -s"; then
7095 echo "$as_me:$LINENO: result: yes" >&5
7096 echo "${ECHO_T}yes" >&6
7098 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7099 echo "${ECHO_T}no, using $LN_S" >&6
7102 if test -n "$ac_tool_prefix"; then
7103 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7104 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7105 echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7107 if test "${ac_cv_prog_RANLIB+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 if test -n "$RANLIB"; then
7111 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7117 test -z "$as_dir" && as_dir
=.
7118 for ac_exec_ext
in '' $ac_executable_extensions; do
7119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7120 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 RANLIB
=$ac_cv_prog_RANLIB
7130 if test -n "$RANLIB"; then
7131 echo "$as_me:$LINENO: result: $RANLIB" >&5
7132 echo "${ECHO_T}$RANLIB" >&6
7134 echo "$as_me:$LINENO: result: no" >&5
7135 echo "${ECHO_T}no" >&6
7139 if test -z "$ac_cv_prog_RANLIB"; then
7140 ac_ct_RANLIB
=$RANLIB
7141 # Extract the first word of "ranlib", so it can be a program name with args.
7142 set dummy ranlib
; ac_word
=$2
7143 echo "$as_me:$LINENO: checking for $ac_word" >&5
7144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7145 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 if test -n "$ac_ct_RANLIB"; then
7149 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7155 test -z "$as_dir" && as_dir
=.
7156 for ac_exec_ext
in '' $ac_executable_extensions; do
7157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7168 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7169 if test -n "$ac_ct_RANLIB"; then
7170 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7171 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7173 echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6
7177 RANLIB
=$ac_ct_RANLIB
7179 RANLIB
="$ac_cv_prog_RANLIB"
7182 for ac_prog
in 'bison -y' byacc
7184 # Extract the first word of "$ac_prog", so it can be a program name with args.
7185 set dummy
$ac_prog; ac_word
=$2
7186 echo "$as_me:$LINENO: checking for $ac_word" >&5
7187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7188 if test "${ac_cv_prog_YACC+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 if test -n "$YACC"; then
7192 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7198 test -z "$as_dir" && as_dir
=.
7199 for ac_exec_ext
in '' $ac_executable_extensions; do
7200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7201 ac_cv_prog_YACC
="$ac_prog"
7202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 YACC
=$ac_cv_prog_YACC
7211 if test -n "$YACC"; then
7212 echo "$as_me:$LINENO: result: $YACC" >&5
7213 echo "${ECHO_T}$YACC" >&6
7215 echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6
7219 test -n "$YACC" && break
7221 test -n "$YACC" || YACC
="yacc"
7224 if test -n "$ac_tool_prefix"; then
7225 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7226 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7227 echo "$as_me:$LINENO: checking for $ac_word" >&5
7228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7229 if test "${ac_cv_prog_AR+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 if test -n "$AR"; then
7233 ac_cv_prog_AR
="$AR" # Let the user override the test.
7235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7239 test -z "$as_dir" && as_dir
=.
7240 for ac_exec_ext
in '' $ac_executable_extensions; do
7241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 if test -n "$AR"; then
7253 echo "$as_me:$LINENO: result: $AR" >&5
7254 echo "${ECHO_T}$AR" >&6
7256 echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6
7261 if test -z "$ac_cv_prog_AR"; then
7263 # Extract the first word of "ar", so it can be a program name with args.
7264 set dummy
ar; ac_word
=$2
7265 echo "$as_me:$LINENO: checking for $ac_word" >&5
7266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7267 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 if test -n "$ac_ct_AR"; then
7271 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7277 test -z "$as_dir" && as_dir
=.
7278 for ac_exec_ext
in '' $ac_executable_extensions; do
7279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7280 ac_cv_prog_ac_ct_AR
="ar"
7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7290 if test -n "$ac_ct_AR"; then
7291 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7292 echo "${ECHO_T}$ac_ct_AR" >&6
7294 echo "$as_me:$LINENO: result: no" >&5
7295 echo "${ECHO_T}no" >&6
7303 if test -n "$ac_tool_prefix"; then
7304 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7305 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7306 echo "$as_me:$LINENO: checking for $ac_word" >&5
7307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7308 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 if test -n "$DLLTOOL"; then
7312 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7314 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7318 test -z "$as_dir" && as_dir
=.
7319 for ac_exec_ext
in '' $ac_executable_extensions; do
7320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7321 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 DLLTOOL
=$ac_cv_prog_DLLTOOL
7331 if test -n "$DLLTOOL"; then
7332 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7333 echo "${ECHO_T}$DLLTOOL" >&6
7335 echo "$as_me:$LINENO: result: no" >&5
7336 echo "${ECHO_T}no" >&6
7340 if test -z "$ac_cv_prog_DLLTOOL"; then
7341 ac_ct_DLLTOOL
=$DLLTOOL
7342 # Extract the first word of "dlltool", so it can be a program name with args.
7343 set dummy dlltool
; ac_word
=$2
7344 echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7346 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 if test -n "$ac_ct_DLLTOOL"; then
7350 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7356 test -z "$as_dir" && as_dir
=.
7357 for ac_exec_ext
in '' $ac_executable_extensions; do
7358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7359 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7369 if test -n "$ac_ct_DLLTOOL"; then
7370 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7371 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7373 echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6
7377 DLLTOOL
=$ac_ct_DLLTOOL
7379 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7382 if test -n "$ac_tool_prefix"; then
7383 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7384 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7385 echo "$as_me:$LINENO: checking for $ac_word" >&5
7386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7387 if test "${ac_cv_prog_WINDRES+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 if test -n "$WINDRES"; then
7391 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7393 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7397 test -z "$as_dir" && as_dir
=.
7398 for ac_exec_ext
in '' $ac_executable_extensions; do
7399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7400 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 WINDRES
=$ac_cv_prog_WINDRES
7410 if test -n "$WINDRES"; then
7411 echo "$as_me:$LINENO: result: $WINDRES" >&5
7412 echo "${ECHO_T}$WINDRES" >&6
7414 echo "$as_me:$LINENO: result: no" >&5
7415 echo "${ECHO_T}no" >&6
7419 if test -z "$ac_cv_prog_WINDRES"; then
7420 ac_ct_WINDRES
=$WINDRES
7421 # Extract the first word of "windres", so it can be a program name with args.
7422 set dummy windres
; ac_word
=$2
7423 echo "$as_me:$LINENO: checking for $ac_word" >&5
7424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7425 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 if test -n "$ac_ct_WINDRES"; then
7429 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7431 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7435 test -z "$as_dir" && as_dir
=.
7436 for ac_exec_ext
in '' $ac_executable_extensions; do
7437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7438 ac_cv_prog_ac_ct_WINDRES
="windres"
7439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7448 if test -n "$ac_ct_WINDRES"; then
7449 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7450 echo "${ECHO_T}$ac_ct_WINDRES" >&6
7452 echo "$as_me:$LINENO: result: no" >&5
7453 echo "${ECHO_T}no" >&6
7456 WINDRES
=$ac_ct_WINDRES
7458 WINDRES
="$ac_cv_prog_WINDRES"
7462 # Needed for GNU/Hurd.
7463 if test -n "$ac_tool_prefix"; then
7464 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7465 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7466 echo "$as_me:$LINENO: checking for $ac_word" >&5
7467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7468 if test "${ac_cv_prog_MIG+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 if test -n "$MIG"; then
7472 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7478 test -z "$as_dir" && as_dir
=.
7479 for ac_exec_ext
in '' $ac_executable_extensions; do
7480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7481 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7491 if test -n "$MIG"; then
7492 echo "$as_me:$LINENO: result: $MIG" >&5
7493 echo "${ECHO_T}$MIG" >&6
7495 echo "$as_me:$LINENO: result: no" >&5
7496 echo "${ECHO_T}no" >&6
7500 if test -z "$ac_cv_prog_MIG"; then
7502 # Extract the first word of "mig", so it can be a program name with args.
7503 set dummy mig
; ac_word
=$2
7504 echo "$as_me:$LINENO: checking for $ac_word" >&5
7505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7506 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 if test -n "$ac_ct_MIG"; then
7510 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
7512 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7516 test -z "$as_dir" && as_dir
=.
7517 for ac_exec_ext
in '' $ac_executable_extensions; do
7518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7519 ac_cv_prog_ac_ct_MIG
="mig"
7520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
7529 if test -n "$ac_ct_MIG"; then
7530 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7531 echo "${ECHO_T}$ac_ct_MIG" >&6
7533 echo "$as_me:$LINENO: result: no" >&5
7534 echo "${ECHO_T}no" >&6
7539 MIG
="$ac_cv_prog_MIG"
7543 # ---------------------- #
7544 # Checks for libraries. #
7545 # ---------------------- #
7547 # We might need to link with -lm; most simulators need it.
7549 echo "$as_me:$LINENO: checking for main in -lm" >&5
7550 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7551 if test "${ac_cv_lib_m_main+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 ac_check_lib_save_LIBS
=$LIBS
7556 cat >conftest.
$ac_ext <<_ACEOF
7559 cat confdefs.h
>>conftest.
$ac_ext
7560 cat >>conftest.
$ac_ext <<_ACEOF
7561 /* end confdefs.h. */
7572 rm -f conftest.
$ac_objext conftest
$ac_exeext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7574 (eval $ac_link) 2>conftest.er1
7576 grep -v '^ *+' conftest.er1
>conftest.err
7578 cat conftest.err
>&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } &&
7581 { ac_try
='test -z "$ac_c_werror_flag"
7582 || test ! -s conftest.err'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; } &&
7588 { ac_try
='test -s conftest$ac_exeext'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; }; then
7594 ac_cv_lib_m_main
=yes
7596 echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.
$ac_ext >&5
7601 rm -f conftest.err conftest.
$ac_objext \
7602 conftest
$ac_exeext conftest.
$ac_ext
7603 LIBS
=$ac_check_lib_save_LIBS
7605 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7606 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7607 if test $ac_cv_lib_m_main = yes; then
7608 cat >>confdefs.h
<<_ACEOF
7617 # We need to link with -lw to get `wctype' on Solaris before Solaris
7618 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7619 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7620 # is known to have this problem). Therefore we avoid libw if we can.
7621 echo "$as_me:$LINENO: checking for wctype" >&5
7622 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7623 if test "${ac_cv_func_wctype+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 cat >conftest.
$ac_ext <<_ACEOF
7629 cat confdefs.h
>>conftest.
$ac_ext
7630 cat >>conftest.
$ac_ext <<_ACEOF
7631 /* end confdefs.h. */
7632 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7634 #define wctype innocuous_wctype
7636 /* System header to define __stub macros and hopefully few prototypes,
7637 which can conflict with char wctype (); below.
7638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7639 <limits.h> exists even on freestanding compilers. */
7642 # include <limits.h>
7644 # include <assert.h>
7649 /* Override any gcc2 internal prototype to avoid an error. */
7654 /* We use char because int might match the return type of a gcc2
7655 builtin and then its argument prototype would still apply. */
7657 /* The GNU C library defines this for functions which it implements
7658 to always fail with ENOSYS. Some functions are actually named
7659 something starting with __ and the normal name is an alias. */
7660 #if defined (__stub_wctype) || defined (__stub___wctype)
7663 char (*f) () = wctype;
7677 rm -f conftest.
$ac_objext conftest
$ac_exeext
7678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7679 (eval $ac_link) 2>conftest.er1
7681 grep -v '^ *+' conftest.er1
>conftest.err
7683 cat conftest.err
>&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); } &&
7686 { ac_try
='test -z "$ac_c_werror_flag"
7687 || test ! -s conftest.err'
7688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); }; } &&
7693 { ac_try
='test -s conftest$ac_exeext'
7694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); }; }; then
7699 ac_cv_func_wctype
=yes
7701 echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.
$ac_ext >&5
7704 ac_cv_func_wctype
=no
7706 rm -f conftest.err conftest.
$ac_objext \
7707 conftest
$ac_exeext conftest.
$ac_ext
7709 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7710 echo "${ECHO_T}$ac_cv_func_wctype" >&6
7711 if test $ac_cv_func_wctype = yes; then
7715 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7716 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7717 if test "${ac_cv_lib_w_wctype+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 ac_check_lib_save_LIBS
=$LIBS
7722 cat >conftest.
$ac_ext <<_ACEOF
7725 cat confdefs.h
>>conftest.
$ac_ext
7726 cat >>conftest.
$ac_ext <<_ACEOF
7727 /* end confdefs.h. */
7729 /* Override any gcc2 internal prototype to avoid an error. */
7733 /* We use char because int might match the return type of a gcc2
7734 builtin and then its argument prototype would still apply. */
7744 rm -f conftest.
$ac_objext conftest
$ac_exeext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7746 (eval $ac_link) 2>conftest.er1
7748 grep -v '^ *+' conftest.er1
>conftest.err
7750 cat conftest.err
>&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try
='test -z "$ac_c_werror_flag"
7754 || test ! -s conftest.err'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; } &&
7760 { ac_try
='test -s conftest$ac_exeext'
7761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766 ac_cv_lib_w_wctype
=yes
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.
$ac_ext >&5
7771 ac_cv_lib_w_wctype
=no
7773 rm -f conftest.err conftest.
$ac_objext \
7774 conftest
$ac_exeext conftest.
$ac_ext
7775 LIBS
=$ac_check_lib_save_LIBS
7777 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7778 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7779 if test $ac_cv_lib_w_wctype = yes; then
7780 cat >>confdefs.h
<<_ACEOF
7791 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7792 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7793 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7794 if test "${ac_cv_search_gethostbyname+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7797 ac_func_search_save_LIBS
=$LIBS
7798 ac_cv_search_gethostbyname
=no
7799 cat >conftest.
$ac_ext <<_ACEOF
7802 cat confdefs.h
>>conftest.
$ac_ext
7803 cat >>conftest.
$ac_ext <<_ACEOF
7804 /* end confdefs.h. */
7806 /* Override any gcc2 internal prototype to avoid an error. */
7810 /* We use char because int might match the return type of a gcc2
7811 builtin and then its argument prototype would still apply. */
7812 char gethostbyname ();
7821 rm -f conftest.
$ac_objext conftest
$ac_exeext
7822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7823 (eval $ac_link) 2>conftest.er1
7825 grep -v '^ *+' conftest.er1
>conftest.err
7827 cat conftest.err
>&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } &&
7830 { ac_try
='test -z "$ac_c_werror_flag"
7831 || test ! -s conftest.err'
7832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); }; } &&
7837 { ac_try
='test -s conftest$ac_exeext'
7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; }; then
7843 ac_cv_search_gethostbyname
="none required"
7845 echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.
$ac_ext >&5
7849 rm -f conftest.err conftest.
$ac_objext \
7850 conftest
$ac_exeext conftest.
$ac_ext
7851 if test "$ac_cv_search_gethostbyname" = no
; then
7852 for ac_lib
in nsl
; do
7853 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7854 cat >conftest.
$ac_ext <<_ACEOF
7857 cat confdefs.h
>>conftest.
$ac_ext
7858 cat >>conftest.
$ac_ext <<_ACEOF
7859 /* end confdefs.h. */
7861 /* Override any gcc2 internal prototype to avoid an error. */
7865 /* We use char because int might match the return type of a gcc2
7866 builtin and then its argument prototype would still apply. */
7867 char gethostbyname ();
7876 rm -f conftest.
$ac_objext conftest
$ac_exeext
7877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7878 (eval $ac_link) 2>conftest.er1
7880 grep -v '^ *+' conftest.er1
>conftest.err
7882 cat conftest.err
>&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } &&
7885 { ac_try
='test -z "$ac_c_werror_flag"
7886 || test ! -s conftest.err'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; } &&
7892 { ac_try
='test -s conftest$ac_exeext'
7893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); }; }; then
7898 ac_cv_search_gethostbyname
="-l$ac_lib"
7901 echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.
$ac_ext >&5
7905 rm -f conftest.err conftest.
$ac_objext \
7906 conftest
$ac_exeext conftest.
$ac_ext
7909 LIBS
=$ac_func_search_save_LIBS
7911 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7912 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7913 if test "$ac_cv_search_gethostbyname" != no
; then
7914 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
7919 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7920 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
7921 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
7922 if test "${ac_cv_search_socketpair+set}" = set; then
7923 echo $ECHO_N "(cached) $ECHO_C" >&6
7925 ac_func_search_save_LIBS
=$LIBS
7926 ac_cv_search_socketpair
=no
7927 cat >conftest.
$ac_ext <<_ACEOF
7930 cat confdefs.h
>>conftest.
$ac_ext
7931 cat >>conftest.
$ac_ext <<_ACEOF
7932 /* end confdefs.h. */
7934 /* Override any gcc2 internal prototype to avoid an error. */
7938 /* We use char because int might match the return type of a gcc2
7939 builtin and then its argument prototype would still apply. */
7949 rm -f conftest.
$ac_objext conftest
$ac_exeext
7950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7951 (eval $ac_link) 2>conftest.er1
7953 grep -v '^ *+' conftest.er1
>conftest.err
7955 cat conftest.err
>&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } &&
7958 { ac_try
='test -z "$ac_c_werror_flag"
7959 || test ! -s conftest.err'
7960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); }; } &&
7965 { ac_try
='test -s conftest$ac_exeext'
7966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); }; }; then
7971 ac_cv_search_socketpair
="none required"
7973 echo "$as_me: failed program was:" >&5
7974 sed 's/^/| /' conftest.
$ac_ext >&5
7977 rm -f conftest.err conftest.
$ac_objext \
7978 conftest
$ac_exeext conftest.
$ac_ext
7979 if test "$ac_cv_search_socketpair" = no
; then
7980 for ac_lib
in socket
; do
7981 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7982 cat >conftest.
$ac_ext <<_ACEOF
7985 cat confdefs.h
>>conftest.
$ac_ext
7986 cat >>conftest.
$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7989 /* Override any gcc2 internal prototype to avoid an error. */
7993 /* We use char because int might match the return type of a gcc2
7994 builtin and then its argument prototype would still apply. */
8004 rm -f conftest.
$ac_objext conftest
$ac_exeext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8006 (eval $ac_link) 2>conftest.er1
8008 grep -v '^ *+' conftest.er1
>conftest.err
8010 cat conftest.err
>&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } &&
8013 { ac_try
='test -z "$ac_c_werror_flag"
8014 || test ! -s conftest.err'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; } &&
8020 { ac_try
='test -s conftest$ac_exeext'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 ac_cv_search_socketpair
="-l$ac_lib"
8029 echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.
$ac_ext >&5
8033 rm -f conftest.err conftest.
$ac_objext \
8034 conftest
$ac_exeext conftest.
$ac_ext
8037 LIBS
=$ac_func_search_save_LIBS
8039 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8040 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8041 if test "$ac_cv_search_socketpair" != no
; then
8042 test "$ac_cv_search_socketpair" = "none required" || LIBS
="$ac_cv_search_socketpair $LIBS"
8047 # For the TUI, we need enhanced curses functionality.
8049 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8050 # curses library because the latter might not provide all the
8051 # functionality we need. However, this leads to problems on systems
8052 # where the linker searches /usr/local/lib, but the compiler doesn't
8053 # search /usr/local/include, if ncurses is installed in /usr/local. A
8054 # default installation of ncurses on alpha*-dec-osf* will lead to such
8056 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8057 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8058 if test "${ac_cv_search_waddstr+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 ac_func_search_save_LIBS
=$LIBS
8062 ac_cv_search_waddstr
=no
8063 cat >conftest.
$ac_ext <<_ACEOF
8066 cat confdefs.h
>>conftest.
$ac_ext
8067 cat >>conftest.
$ac_ext <<_ACEOF
8068 /* end confdefs.h. */
8070 /* Override any gcc2 internal prototype to avoid an error. */
8074 /* We use char because int might match the return type of a gcc2
8075 builtin and then its argument prototype would still apply. */
8085 rm -f conftest.
$ac_objext conftest
$ac_exeext
8086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8087 (eval $ac_link) 2>conftest.er1
8089 grep -v '^ *+' conftest.er1
>conftest.err
8091 cat conftest.err
>&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } &&
8094 { ac_try
='test -z "$ac_c_werror_flag"
8095 || test ! -s conftest.err'
8096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; } &&
8101 { ac_try
='test -s conftest$ac_exeext'
8102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); }; }; then
8107 ac_cv_search_waddstr
="none required"
8109 echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.
$ac_ext >&5
8113 rm -f conftest.err conftest.
$ac_objext \
8114 conftest
$ac_exeext conftest.
$ac_ext
8115 if test "$ac_cv_search_waddstr" = no
; then
8116 for ac_lib
in ncurses cursesX curses
; do
8117 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8118 cat >conftest.
$ac_ext <<_ACEOF
8121 cat confdefs.h
>>conftest.
$ac_ext
8122 cat >>conftest.
$ac_ext <<_ACEOF
8123 /* end confdefs.h. */
8125 /* Override any gcc2 internal prototype to avoid an error. */
8129 /* We use char because int might match the return type of a gcc2
8130 builtin and then its argument prototype would still apply. */
8140 rm -f conftest.
$ac_objext conftest
$ac_exeext
8141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8142 (eval $ac_link) 2>conftest.er1
8144 grep -v '^ *+' conftest.er1
>conftest.err
8146 cat conftest.err
>&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } &&
8149 { ac_try
='test -z "$ac_c_werror_flag"
8150 || test ! -s conftest.err'
8151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); }; } &&
8156 { ac_try
='test -s conftest$ac_exeext'
8157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; }; then
8162 ac_cv_search_waddstr
="-l$ac_lib"
8165 echo "$as_me: failed program was:" >&5
8166 sed 's/^/| /' conftest.
$ac_ext >&5
8169 rm -f conftest.err conftest.
$ac_objext \
8170 conftest
$ac_exeext conftest.
$ac_ext
8173 LIBS
=$ac_func_search_save_LIBS
8175 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8176 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8177 if test "$ac_cv_search_waddstr" != no
; then
8178 test "$ac_cv_search_waddstr" = "none required" || LIBS
="$ac_cv_search_waddstr $LIBS"
8183 # Since GDB uses Readline, we need termcap functionality. In many
8184 # cases this will be provided by the curses library, but some systems
8185 # have a seperate termcap library, or no curses library at all.
8189 if test -d $srcdir/libtermcap
; then
8190 LIBS
="../libtermcap/libtermcap.a $LIBS"
8191 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
8194 ac_cv_search_tgetent
="none required"
8197 ac_cv_search_tgetent
="none required"
8198 CONFIG_OBS
="$CONFIG_OBS win32-termcap.o"
8202 # These are the libraries checked by Readline.
8203 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8204 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8205 if test "${ac_cv_search_tgetent+set}" = set; then
8206 echo $ECHO_N "(cached) $ECHO_C" >&6
8208 ac_func_search_save_LIBS
=$LIBS
8209 ac_cv_search_tgetent
=no
8210 cat >conftest.
$ac_ext <<_ACEOF
8213 cat confdefs.h
>>conftest.
$ac_ext
8214 cat >>conftest.
$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8217 /* Override any gcc2 internal prototype to avoid an error. */
8221 /* We use char because int might match the return type of a gcc2
8222 builtin and then its argument prototype would still apply. */
8232 rm -f conftest.
$ac_objext conftest
$ac_exeext
8233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8234 (eval $ac_link) 2>conftest.er1
8236 grep -v '^ *+' conftest.er1
>conftest.err
8238 cat conftest.err
>&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); } &&
8241 { ac_try
='test -z "$ac_c_werror_flag"
8242 || test ! -s conftest.err'
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; } &&
8248 { ac_try
='test -s conftest$ac_exeext'
8249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); }; }; then
8254 ac_cv_search_tgetent
="none required"
8256 echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.
$ac_ext >&5
8260 rm -f conftest.err conftest.
$ac_objext \
8261 conftest
$ac_exeext conftest.
$ac_ext
8262 if test "$ac_cv_search_tgetent" = no
; then
8263 for ac_lib
in termcap tinfo curses ncurses
; do
8264 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8265 cat >conftest.
$ac_ext <<_ACEOF
8268 cat confdefs.h
>>conftest.
$ac_ext
8269 cat >>conftest.
$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8272 /* Override any gcc2 internal prototype to avoid an error. */
8276 /* We use char because int might match the return type of a gcc2
8277 builtin and then its argument prototype would still apply. */
8287 rm -f conftest.
$ac_objext conftest
$ac_exeext
8288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8289 (eval $ac_link) 2>conftest.er1
8291 grep -v '^ *+' conftest.er1
>conftest.err
8293 cat conftest.err
>&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } &&
8296 { ac_try
='test -z "$ac_c_werror_flag"
8297 || test ! -s conftest.err'
8298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; } &&
8303 { ac_try
='test -s conftest$ac_exeext'
8304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; }; then
8309 ac_cv_search_tgetent
="-l$ac_lib"
8312 echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.
$ac_ext >&5
8316 rm -f conftest.err conftest.
$ac_objext \
8317 conftest
$ac_exeext conftest.
$ac_ext
8320 LIBS
=$ac_func_search_save_LIBS
8322 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8323 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8324 if test "$ac_cv_search_tgetent" != no
; then
8325 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
8330 if test "$ac_cv_search_tgetent" = no
; then
8331 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8332 echo "$as_me: error: no termcap library found" >&2;}
8333 { (exit 1); exit 1; }; }
8336 # ------------------------- #
8337 # Checks for header files. #
8338 # ------------------------- #
8346 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
8347 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8348 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8349 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 cat >conftest.
$ac_ext <<_ACEOF
8356 cat confdefs.h
>>conftest.
$ac_ext
8357 cat >>conftest.
$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8359 #include <sys/types.h>
8371 rm -f conftest.
$ac_objext
8372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8373 (eval $ac_compile) 2>conftest.er1
8375 grep -v '^ *+' conftest.er1
>conftest.err
8377 cat conftest.err
>&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } &&
8380 { ac_try
='test -z "$ac_c_werror_flag"
8381 || test ! -s conftest.err'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; } &&
8387 { ac_try
='test -s conftest.$ac_objext'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; }; then
8393 eval "$as_ac_Header=yes"
8395 echo "$as_me: failed program was:" >&5
8396 sed 's/^/| /' conftest.
$ac_ext >&5
8398 eval "$as_ac_Header=no"
8400 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8405 cat >>confdefs.h
<<_ACEOF
8406 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8409 ac_header_dirent
=$ac_hdr; break
8413 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8414 if test $ac_header_dirent = dirent.h
; then
8415 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8416 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8417 if test "${ac_cv_search_opendir+set}" = set; then
8418 echo $ECHO_N "(cached) $ECHO_C" >&6
8420 ac_func_search_save_LIBS
=$LIBS
8421 ac_cv_search_opendir
=no
8422 cat >conftest.
$ac_ext <<_ACEOF
8425 cat confdefs.h
>>conftest.
$ac_ext
8426 cat >>conftest.
$ac_ext <<_ACEOF
8427 /* end confdefs.h. */
8429 /* Override any gcc2 internal prototype to avoid an error. */
8433 /* We use char because int might match the return type of a gcc2
8434 builtin and then its argument prototype would still apply. */
8444 rm -f conftest.
$ac_objext conftest
$ac_exeext
8445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8446 (eval $ac_link) 2>conftest.er1
8448 grep -v '^ *+' conftest.er1
>conftest.err
8450 cat conftest.err
>&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } &&
8453 { ac_try
='test -z "$ac_c_werror_flag"
8454 || test ! -s conftest.err'
8455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; } &&
8460 { ac_try
='test -s conftest$ac_exeext'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 ac_cv_search_opendir
="none required"
8468 echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.
$ac_ext >&5
8472 rm -f conftest.err conftest.
$ac_objext \
8473 conftest
$ac_exeext conftest.
$ac_ext
8474 if test "$ac_cv_search_opendir" = no
; then
8475 for ac_lib
in dir
; do
8476 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8477 cat >conftest.
$ac_ext <<_ACEOF
8480 cat confdefs.h
>>conftest.
$ac_ext
8481 cat >>conftest.
$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8484 /* Override any gcc2 internal prototype to avoid an error. */
8488 /* We use char because int might match the return type of a gcc2
8489 builtin and then its argument prototype would still apply. */
8499 rm -f conftest.
$ac_objext conftest
$ac_exeext
8500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501 (eval $ac_link) 2>conftest.er1
8503 grep -v '^ *+' conftest.er1
>conftest.err
8505 cat conftest.err
>&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } &&
8508 { ac_try
='test -z "$ac_c_werror_flag"
8509 || test ! -s conftest.err'
8510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; } &&
8515 { ac_try
='test -s conftest$ac_exeext'
8516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); }; }; then
8521 ac_cv_search_opendir
="-l$ac_lib"
8524 echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.
$ac_ext >&5
8528 rm -f conftest.err conftest.
$ac_objext \
8529 conftest
$ac_exeext conftest.
$ac_ext
8532 LIBS
=$ac_func_search_save_LIBS
8534 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8535 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8536 if test "$ac_cv_search_opendir" != no
; then
8537 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
8542 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8543 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8544 if test "${ac_cv_search_opendir+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 ac_func_search_save_LIBS
=$LIBS
8548 ac_cv_search_opendir
=no
8549 cat >conftest.
$ac_ext <<_ACEOF
8552 cat confdefs.h
>>conftest.
$ac_ext
8553 cat >>conftest.
$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8556 /* Override any gcc2 internal prototype to avoid an error. */
8560 /* We use char because int might match the return type of a gcc2
8561 builtin and then its argument prototype would still apply. */
8571 rm -f conftest.
$ac_objext conftest
$ac_exeext
8572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8573 (eval $ac_link) 2>conftest.er1
8575 grep -v '^ *+' conftest.er1
>conftest.err
8577 cat conftest.err
>&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); } &&
8580 { ac_try
='test -z "$ac_c_werror_flag"
8581 || test ! -s conftest.err'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; } &&
8587 { ac_try
='test -s conftest$ac_exeext'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 ac_cv_search_opendir
="none required"
8595 echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.
$ac_ext >&5
8599 rm -f conftest.err conftest.
$ac_objext \
8600 conftest
$ac_exeext conftest.
$ac_ext
8601 if test "$ac_cv_search_opendir" = no
; then
8603 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8604 cat >conftest.
$ac_ext <<_ACEOF
8607 cat confdefs.h
>>conftest.
$ac_ext
8608 cat >>conftest.
$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8611 /* Override any gcc2 internal prototype to avoid an error. */
8615 /* We use char because int might match the return type of a gcc2
8616 builtin and then its argument prototype would still apply. */
8626 rm -f conftest.
$ac_objext conftest
$ac_exeext
8627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8628 (eval $ac_link) 2>conftest.er1
8630 grep -v '^ *+' conftest.er1
>conftest.err
8632 cat conftest.err
>&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); } &&
8635 { ac_try
='test -z "$ac_c_werror_flag"
8636 || test ! -s conftest.err'
8637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; } &&
8642 { ac_try
='test -s conftest$ac_exeext'
8643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; }; then
8648 ac_cv_search_opendir
="-l$ac_lib"
8651 echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.
$ac_ext >&5
8655 rm -f conftest.err conftest.
$ac_objext \
8656 conftest
$ac_exeext conftest.
$ac_ext
8659 LIBS
=$ac_func_search_save_LIBS
8661 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8662 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8663 if test "$ac_cv_search_opendir" != no
; then
8664 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
8670 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8671 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8672 if test "${ac_cv_header_stat_broken+set}" = set; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
8675 cat >conftest.
$ac_ext <<_ACEOF
8678 cat confdefs.h
>>conftest.
$ac_ext
8679 cat >>conftest.
$ac_ext <<_ACEOF
8680 /* end confdefs.h. */
8681 #include <sys/types.h>
8682 #include <sys/stat.h>
8684 #if defined(S_ISBLK) && defined(S_IFDIR)
8685 # if S_ISBLK (S_IFDIR)
8690 #if defined(S_ISBLK) && defined(S_IFCHR)
8691 # if S_ISBLK (S_IFCHR)
8696 #if defined(S_ISLNK) && defined(S_IFREG)
8697 # if S_ISLNK (S_IFREG)
8702 #if defined(S_ISSOCK) && defined(S_IFREG)
8703 # if S_ISSOCK (S_IFREG)
8709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8710 $EGREP "You lose" >/dev
/null
2>&1; then
8711 ac_cv_header_stat_broken
=yes
8713 ac_cv_header_stat_broken
=no
8718 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8719 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8720 if test $ac_cv_header_stat_broken = yes; then
8722 cat >>confdefs.h
<<\_ACEOF
8723 #define STAT_MACROS_BROKEN 1
8728 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8729 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8730 if test "${ac_cv_header_stdc+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8733 cat >conftest.
$ac_ext <<_ACEOF
8736 cat confdefs.h
>>conftest.
$ac_ext
8737 cat >>conftest.
$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8752 rm -f conftest.
$ac_objext
8753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8754 (eval $ac_compile) 2>conftest.er1
8756 grep -v '^ *+' conftest.er1
>conftest.err
8758 cat conftest.err
>&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } &&
8761 { ac_try
='test -z "$ac_c_werror_flag"
8762 || test ! -s conftest.err'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; } &&
8768 { ac_try
='test -s conftest.$ac_objext'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8774 ac_cv_header_stdc
=yes
8776 echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.
$ac_ext >&5
8779 ac_cv_header_stdc
=no
8781 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8783 if test $ac_cv_header_stdc = yes; then
8784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8785 cat >conftest.
$ac_ext <<_ACEOF
8788 cat confdefs.h
>>conftest.
$ac_ext
8789 cat >>conftest.
$ac_ext <<_ACEOF
8790 /* end confdefs.h. */
8794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8795 $EGREP "memchr" >/dev
/null
2>&1; then
8798 ac_cv_header_stdc
=no
8804 if test $ac_cv_header_stdc = yes; then
8805 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8806 cat >conftest.
$ac_ext <<_ACEOF
8809 cat confdefs.h
>>conftest.
$ac_ext
8810 cat >>conftest.
$ac_ext <<_ACEOF
8811 /* end confdefs.h. */
8815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8816 $EGREP "free" >/dev
/null
2>&1; then
8819 ac_cv_header_stdc
=no
8825 if test $ac_cv_header_stdc = yes; then
8826 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8827 if test "$cross_compiling" = yes; then
8830 cat >conftest.
$ac_ext <<_ACEOF
8833 cat confdefs.h
>>conftest.
$ac_ext
8834 cat >>conftest.
$ac_ext <<_ACEOF
8835 /* end confdefs.h. */
8837 #if ((' ' & 0x0FF) == 0x020)
8838 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8839 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8841 # define ISLOWER(c) \
8842 (('a' <= (c) && (c) <= 'i') \
8843 || ('j' <= (c) && (c) <= 'r') \
8844 || ('s' <= (c) && (c) <= 'z'))
8845 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8848 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8853 for (i = 0; i < 256; i++)
8854 if (XOR (islower (i), ISLOWER (i))
8855 || toupper (i) != TOUPPER (i))
8860 rm -f conftest
$ac_exeext
8861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8862 (eval $ac_link) 2>&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; }; then
8873 echo "$as_me: program exited with status $ac_status" >&5
8874 echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.
$ac_ext >&5
8878 ac_cv_header_stdc
=no
8880 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8884 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8885 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8886 if test $ac_cv_header_stdc = yes; then
8888 cat >>confdefs.h
<<\_ACEOF
8889 #define STDC_HEADERS 1
8895 for ac_header
in nlist.h
8897 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8899 echo "$as_me:$LINENO: checking for $ac_header" >&5
8900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8902 echo $ECHO_N "(cached) $ECHO_C" >&6
8904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8907 # Is the header compilable?
8908 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8910 cat >conftest.
$ac_ext <<_ACEOF
8913 cat confdefs.h
>>conftest.
$ac_ext
8914 cat >>conftest.
$ac_ext <<_ACEOF
8915 /* end confdefs.h. */
8916 $ac_includes_default
8917 #include <$ac_header>
8919 rm -f conftest.
$ac_objext
8920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8921 (eval $ac_compile) 2>conftest.er1
8923 grep -v '^ *+' conftest.er1
>conftest.err
8925 cat conftest.err
>&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } &&
8928 { ac_try
='test -z "$ac_c_werror_flag"
8929 || test ! -s conftest.err'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; } &&
8935 { ac_try
='test -s conftest.$ac_objext'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; }; then
8941 ac_header_compiler
=yes
8943 echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.
$ac_ext >&5
8946 ac_header_compiler
=no
8948 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8949 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8950 echo "${ECHO_T}$ac_header_compiler" >&6
8952 # Is the header present?
8953 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8955 cat >conftest.
$ac_ext <<_ACEOF
8958 cat confdefs.h
>>conftest.
$ac_ext
8959 cat >>conftest.
$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8961 #include <$ac_header>
8963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8964 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8966 grep -v '^ *+' conftest.er1
>conftest.err
8968 cat conftest.err
>&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } >/dev
/null
; then
8971 if test -s conftest.err
; then
8972 ac_cpp_err
=$ac_c_preproc_warn_flag
8973 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8980 if test -z "$ac_cpp_err"; then
8981 ac_header_preproc
=yes
8983 echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.
$ac_ext >&5
8986 ac_header_preproc
=no
8988 rm -f conftest.err conftest.
$ac_ext
8989 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8990 echo "${ECHO_T}$ac_header_preproc" >&6
8992 # So? What about this header?
8993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8995 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8996 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8998 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8999 ac_header_preproc
=yes
9002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9003 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9005 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9006 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9007 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9008 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9009 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9012 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9013 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9016 ## ------------------------------------------ ##
9017 ## Report this to the AC_PACKAGE_NAME lists. ##
9018 ## ------------------------------------------ ##
9021 sed "s/^/$as_me: WARNING: /" >&2
9024 echo "$as_me:$LINENO: checking for $ac_header" >&5
9025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9029 eval "$as_ac_Header=\$ac_header_preproc"
9031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9036 cat >>confdefs.h
<<_ACEOF
9037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9045 for ac_header
in link.h
9047 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9048 echo "$as_me:$LINENO: checking for $ac_header" >&5
9049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9051 echo $ECHO_N "(cached) $ECHO_C" >&6
9053 cat >conftest.
$ac_ext <<_ACEOF
9056 cat confdefs.h
>>conftest.
$ac_ext
9057 cat >>conftest.
$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9059 #if HAVE_SYS_TYPES_H
9060 # include <sys/types.h>
9067 #include <$ac_header>
9069 rm -f conftest.
$ac_objext
9070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9071 (eval $ac_compile) 2>conftest.er1
9073 grep -v '^ *+' conftest.er1
>conftest.err
9075 cat conftest.err
>&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } &&
9078 { ac_try
='test -z "$ac_c_werror_flag"
9079 || test ! -s conftest.err'
9080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; } &&
9085 { ac_try
='test -s conftest.$ac_objext'
9086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); }; }; then
9091 eval "$as_ac_Header=yes"
9093 echo "$as_me: failed program was:" >&5
9094 sed 's/^/| /' conftest.
$ac_ext >&5
9096 eval "$as_ac_Header=no"
9098 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9103 cat >>confdefs.h
<<_ACEOF
9104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9112 for ac_header
in machine
/reg.h
9114 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9116 echo "$as_me:$LINENO: checking for $ac_header" >&5
9117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9124 # Is the header compilable?
9125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9127 cat >conftest.
$ac_ext <<_ACEOF
9130 cat confdefs.h
>>conftest.
$ac_ext
9131 cat >>conftest.
$ac_ext <<_ACEOF
9132 /* end confdefs.h. */
9133 $ac_includes_default
9134 #include <$ac_header>
9136 rm -f conftest.
$ac_objext
9137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9138 (eval $ac_compile) 2>conftest.er1
9140 grep -v '^ *+' conftest.er1
>conftest.err
9142 cat conftest.err
>&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } &&
9145 { ac_try
='test -z "$ac_c_werror_flag"
9146 || test ! -s conftest.err'
9147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); }; } &&
9152 { ac_try
='test -s conftest.$ac_objext'
9153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }; }; then
9158 ac_header_compiler
=yes
9160 echo "$as_me: failed program was:" >&5
9161 sed 's/^/| /' conftest.
$ac_ext >&5
9163 ac_header_compiler
=no
9165 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9166 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9167 echo "${ECHO_T}$ac_header_compiler" >&6
9169 # Is the header present?
9170 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9172 cat >conftest.
$ac_ext <<_ACEOF
9175 cat confdefs.h
>>conftest.
$ac_ext
9176 cat >>conftest.
$ac_ext <<_ACEOF
9177 /* end confdefs.h. */
9178 #include <$ac_header>
9180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9181 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9183 grep -v '^ *+' conftest.er1
>conftest.err
9185 cat conftest.err
>&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); } >/dev
/null
; then
9188 if test -s conftest.err
; then
9189 ac_cpp_err
=$ac_c_preproc_warn_flag
9190 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9197 if test -z "$ac_cpp_err"; then
9198 ac_header_preproc
=yes
9200 echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.
$ac_ext >&5
9203 ac_header_preproc
=no
9205 rm -f conftest.err conftest.
$ac_ext
9206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9207 echo "${ECHO_T}$ac_header_preproc" >&6
9209 # So? What about this header?
9210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9216 ac_header_preproc
=yes
9219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9222 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9226 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9233 ## ------------------------------------------ ##
9234 ## Report this to the AC_PACKAGE_NAME lists. ##
9235 ## ------------------------------------------ ##
9238 sed "s/^/$as_me: WARNING: /" >&2
9241 echo "$as_me:$LINENO: checking for $ac_header" >&5
9242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9244 echo $ECHO_N "(cached) $ECHO_C" >&6
9246 eval "$as_ac_Header=\$ac_header_preproc"
9248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9253 cat >>confdefs.h
<<_ACEOF
9254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9263 for ac_header
in poll.h sys
/poll.h
9265 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9267 echo "$as_me:$LINENO: checking for $ac_header" >&5
9268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9275 # Is the header compilable?
9276 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9278 cat >conftest.
$ac_ext <<_ACEOF
9281 cat confdefs.h
>>conftest.
$ac_ext
9282 cat >>conftest.
$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9284 $ac_includes_default
9285 #include <$ac_header>
9287 rm -f conftest.
$ac_objext
9288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9289 (eval $ac_compile) 2>conftest.er1
9291 grep -v '^ *+' conftest.er1
>conftest.err
9293 cat conftest.err
>&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } &&
9296 { ac_try
='test -z "$ac_c_werror_flag"
9297 || test ! -s conftest.err'
9298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); }; } &&
9303 { ac_try
='test -s conftest.$ac_objext'
9304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); }; }; then
9309 ac_header_compiler
=yes
9311 echo "$as_me: failed program was:" >&5
9312 sed 's/^/| /' conftest.
$ac_ext >&5
9314 ac_header_compiler
=no
9316 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9317 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9318 echo "${ECHO_T}$ac_header_compiler" >&6
9320 # Is the header present?
9321 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9323 cat >conftest.
$ac_ext <<_ACEOF
9326 cat confdefs.h
>>conftest.
$ac_ext
9327 cat >>conftest.
$ac_ext <<_ACEOF
9328 /* end confdefs.h. */
9329 #include <$ac_header>
9331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9332 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9334 grep -v '^ *+' conftest.er1
>conftest.err
9336 cat conftest.err
>&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); } >/dev
/null
; then
9339 if test -s conftest.err
; then
9340 ac_cpp_err
=$ac_c_preproc_warn_flag
9341 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9348 if test -z "$ac_cpp_err"; then
9349 ac_header_preproc
=yes
9351 echo "$as_me: failed program was:" >&5
9352 sed 's/^/| /' conftest.
$ac_ext >&5
9354 ac_header_preproc
=no
9356 rm -f conftest.err conftest.
$ac_ext
9357 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9358 echo "${ECHO_T}$ac_header_preproc" >&6
9360 # So? What about this header?
9361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9363 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9367 ac_header_preproc
=yes
9370 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9372 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9373 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9374 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9375 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9376 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9377 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9380 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9381 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9384 ## ------------------------------------------ ##
9385 ## Report this to the AC_PACKAGE_NAME lists. ##
9386 ## ------------------------------------------ ##
9389 sed "s/^/$as_me: WARNING: /" >&2
9392 echo "$as_me:$LINENO: checking for $ac_header" >&5
9393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9395 echo $ECHO_N "(cached) $ECHO_C" >&6
9397 eval "$as_ac_Header=\$ac_header_preproc"
9399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9404 cat >>confdefs.h
<<_ACEOF
9405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9415 for ac_header
in proc_service.h thread_db.h gnu
/libc-version.h
9417 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9419 echo "$as_me:$LINENO: checking for $ac_header" >&5
9420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9427 # Is the header compilable?
9428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9430 cat >conftest.
$ac_ext <<_ACEOF
9433 cat confdefs.h
>>conftest.
$ac_ext
9434 cat >>conftest.
$ac_ext <<_ACEOF
9435 /* end confdefs.h. */
9436 $ac_includes_default
9437 #include <$ac_header>
9439 rm -f conftest.
$ac_objext
9440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9441 (eval $ac_compile) 2>conftest.er1
9443 grep -v '^ *+' conftest.er1
>conftest.err
9445 cat conftest.err
>&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); } &&
9448 { ac_try
='test -z "$ac_c_werror_flag"
9449 || test ! -s conftest.err'
9450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); }; } &&
9455 { ac_try
='test -s conftest.$ac_objext'
9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; }; then
9461 ac_header_compiler
=yes
9463 echo "$as_me: failed program was:" >&5
9464 sed 's/^/| /' conftest.
$ac_ext >&5
9466 ac_header_compiler
=no
9468 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9470 echo "${ECHO_T}$ac_header_compiler" >&6
9472 # Is the header present?
9473 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9475 cat >conftest.
$ac_ext <<_ACEOF
9478 cat confdefs.h
>>conftest.
$ac_ext
9479 cat >>conftest.
$ac_ext <<_ACEOF
9480 /* end confdefs.h. */
9481 #include <$ac_header>
9483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9484 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9486 grep -v '^ *+' conftest.er1
>conftest.err
9488 cat conftest.err
>&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } >/dev
/null
; then
9491 if test -s conftest.err
; then
9492 ac_cpp_err
=$ac_c_preproc_warn_flag
9493 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9500 if test -z "$ac_cpp_err"; then
9501 ac_header_preproc
=yes
9503 echo "$as_me: failed program was:" >&5
9504 sed 's/^/| /' conftest.
$ac_ext >&5
9506 ac_header_preproc
=no
9508 rm -f conftest.err conftest.
$ac_ext
9509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9510 echo "${ECHO_T}$ac_header_preproc" >&6
9512 # So? What about this header?
9513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9519 ac_header_preproc
=yes
9522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9529 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9536 ## ------------------------------------------ ##
9537 ## Report this to the AC_PACKAGE_NAME lists. ##
9538 ## ------------------------------------------ ##
9541 sed "s/^/$as_me: WARNING: /" >&2
9544 echo "$as_me:$LINENO: checking for $ac_header" >&5
9545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9549 eval "$as_ac_Header=\$ac_header_preproc"
9551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9556 cat >>confdefs.h
<<_ACEOF
9557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9565 for ac_header
in stddef.h
9567 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9569 echo "$as_me:$LINENO: checking for $ac_header" >&5
9570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9577 # Is the header compilable?
9578 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9579 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9580 cat >conftest.
$ac_ext <<_ACEOF
9583 cat confdefs.h
>>conftest.
$ac_ext
9584 cat >>conftest.
$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9586 $ac_includes_default
9587 #include <$ac_header>
9589 rm -f conftest.
$ac_objext
9590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9591 (eval $ac_compile) 2>conftest.er1
9593 grep -v '^ *+' conftest.er1
>conftest.err
9595 cat conftest.err
>&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try
='test -z "$ac_c_werror_flag"
9599 || test ! -s conftest.err'
9600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); }; } &&
9605 { ac_try
='test -s conftest.$ac_objext'
9606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; }; then
9611 ac_header_compiler
=yes
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.
$ac_ext >&5
9616 ac_header_compiler
=no
9618 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9620 echo "${ECHO_T}$ac_header_compiler" >&6
9622 # Is the header present?
9623 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9625 cat >conftest.
$ac_ext <<_ACEOF
9628 cat confdefs.h
>>conftest.
$ac_ext
9629 cat >>conftest.
$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9631 #include <$ac_header>
9633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9634 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9636 grep -v '^ *+' conftest.er1
>conftest.err
9638 cat conftest.err
>&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); } >/dev
/null
; then
9641 if test -s conftest.err
; then
9642 ac_cpp_err
=$ac_c_preproc_warn_flag
9643 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9650 if test -z "$ac_cpp_err"; then
9651 ac_header_preproc
=yes
9653 echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.
$ac_ext >&5
9656 ac_header_preproc
=no
9658 rm -f conftest.err conftest.
$ac_ext
9659 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9660 echo "${ECHO_T}$ac_header_preproc" >&6
9662 # So? What about this header?
9663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9669 ac_header_preproc
=yes
9672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9675 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9676 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9678 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9679 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9682 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9686 ## ------------------------------------------ ##
9687 ## Report this to the AC_PACKAGE_NAME lists. ##
9688 ## ------------------------------------------ ##
9691 sed "s/^/$as_me: WARNING: /" >&2
9694 echo "$as_me:$LINENO: checking for $ac_header" >&5
9695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9699 eval "$as_ac_Header=\$ac_header_preproc"
9701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9706 cat >>confdefs.h
<<_ACEOF
9707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9715 for ac_header
in stdlib.h
9717 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9719 echo "$as_me:$LINENO: checking for $ac_header" >&5
9720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9727 # Is the header compilable?
9728 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9730 cat >conftest.
$ac_ext <<_ACEOF
9733 cat confdefs.h
>>conftest.
$ac_ext
9734 cat >>conftest.
$ac_ext <<_ACEOF
9735 /* end confdefs.h. */
9736 $ac_includes_default
9737 #include <$ac_header>
9739 rm -f conftest.
$ac_objext
9740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9741 (eval $ac_compile) 2>conftest.er1
9743 grep -v '^ *+' conftest.er1
>conftest.err
9745 cat conftest.err
>&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } &&
9748 { ac_try
='test -z "$ac_c_werror_flag"
9749 || test ! -s conftest.err'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; } &&
9755 { ac_try
='test -s conftest.$ac_objext'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; }; then
9761 ac_header_compiler
=yes
9763 echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.
$ac_ext >&5
9766 ac_header_compiler
=no
9768 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9769 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9770 echo "${ECHO_T}$ac_header_compiler" >&6
9772 # Is the header present?
9773 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9775 cat >conftest.
$ac_ext <<_ACEOF
9778 cat confdefs.h
>>conftest.
$ac_ext
9779 cat >>conftest.
$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9781 #include <$ac_header>
9783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9784 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9786 grep -v '^ *+' conftest.er1
>conftest.err
9788 cat conftest.err
>&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } >/dev
/null
; then
9791 if test -s conftest.err
; then
9792 ac_cpp_err
=$ac_c_preproc_warn_flag
9793 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9800 if test -z "$ac_cpp_err"; then
9801 ac_header_preproc
=yes
9803 echo "$as_me: failed program was:" >&5
9804 sed 's/^/| /' conftest.
$ac_ext >&5
9806 ac_header_preproc
=no
9808 rm -f conftest.err conftest.
$ac_ext
9809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9810 echo "${ECHO_T}$ac_header_preproc" >&6
9812 # So? What about this header?
9813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9819 ac_header_preproc
=yes
9822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9829 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9836 ## ------------------------------------------ ##
9837 ## Report this to the AC_PACKAGE_NAME lists. ##
9838 ## ------------------------------------------ ##
9841 sed "s/^/$as_me: WARNING: /" >&2
9844 echo "$as_me:$LINENO: checking for $ac_header" >&5
9845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9849 eval "$as_ac_Header=\$ac_header_preproc"
9851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9856 cat >>confdefs.h
<<_ACEOF
9857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9865 for ac_header
in stdint.h
9867 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9869 echo "$as_me:$LINENO: checking for $ac_header" >&5
9870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9877 # Is the header compilable?
9878 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9880 cat >conftest.
$ac_ext <<_ACEOF
9883 cat confdefs.h
>>conftest.
$ac_ext
9884 cat >>conftest.
$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9886 $ac_includes_default
9887 #include <$ac_header>
9889 rm -f conftest.
$ac_objext
9890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9891 (eval $ac_compile) 2>conftest.er1
9893 grep -v '^ *+' conftest.er1
>conftest.err
9895 cat conftest.err
>&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } &&
9898 { ac_try
='test -z "$ac_c_werror_flag"
9899 || test ! -s conftest.err'
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; } &&
9905 { ac_try
='test -s conftest.$ac_objext'
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; }; then
9911 ac_header_compiler
=yes
9913 echo "$as_me: failed program was:" >&5
9914 sed 's/^/| /' conftest.
$ac_ext >&5
9916 ac_header_compiler
=no
9918 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9919 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9920 echo "${ECHO_T}$ac_header_compiler" >&6
9922 # Is the header present?
9923 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9925 cat >conftest.
$ac_ext <<_ACEOF
9928 cat confdefs.h
>>conftest.
$ac_ext
9929 cat >>conftest.
$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9931 #include <$ac_header>
9933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9934 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9936 grep -v '^ *+' conftest.er1
>conftest.err
9938 cat conftest.err
>&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } >/dev
/null
; then
9941 if test -s conftest.err
; then
9942 ac_cpp_err
=$ac_c_preproc_warn_flag
9943 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9950 if test -z "$ac_cpp_err"; then
9951 ac_header_preproc
=yes
9953 echo "$as_me: failed program was:" >&5
9954 sed 's/^/| /' conftest.
$ac_ext >&5
9956 ac_header_preproc
=no
9958 rm -f conftest.err conftest.
$ac_ext
9959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9960 echo "${ECHO_T}$ac_header_preproc" >&6
9962 # So? What about this header?
9963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9969 ac_header_preproc
=yes
9972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9975 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9979 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9986 ## ------------------------------------------ ##
9987 ## Report this to the AC_PACKAGE_NAME lists. ##
9988 ## ------------------------------------------ ##
9991 sed "s/^/$as_me: WARNING: /" >&2
9994 echo "$as_me:$LINENO: checking for $ac_header" >&5
9995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 eval "$as_ac_Header=\$ac_header_preproc"
10001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10006 cat >>confdefs.h
<<_ACEOF
10007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10017 for ac_header
in string.h memory.h
strings.h
10019 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10021 echo "$as_me:$LINENO: checking for $ac_header" >&5
10022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10029 # Is the header compilable?
10030 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10032 cat >conftest.
$ac_ext <<_ACEOF
10035 cat confdefs.h
>>conftest.
$ac_ext
10036 cat >>conftest.
$ac_ext <<_ACEOF
10037 /* end confdefs.h. */
10038 $ac_includes_default
10039 #include <$ac_header>
10041 rm -f conftest.
$ac_objext
10042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10043 (eval $ac_compile) 2>conftest.er1
10045 grep -v '^ *+' conftest.er1
>conftest.err
10047 cat conftest.err
>&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } &&
10050 { ac_try
='test -z "$ac_c_werror_flag"
10051 || test ! -s conftest.err'
10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; } &&
10057 { ac_try
='test -s conftest.$ac_objext'
10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
10063 ac_header_compiler
=yes
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.
$ac_ext >&5
10068 ac_header_compiler
=no
10070 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10072 echo "${ECHO_T}$ac_header_compiler" >&6
10074 # Is the header present?
10075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10077 cat >conftest.
$ac_ext <<_ACEOF
10080 cat confdefs.h
>>conftest.
$ac_ext
10081 cat >>conftest.
$ac_ext <<_ACEOF
10082 /* end confdefs.h. */
10083 #include <$ac_header>
10085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10086 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10088 grep -v '^ *+' conftest.er1
>conftest.err
10090 cat conftest.err
>&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } >/dev
/null
; then
10093 if test -s conftest.err
; then
10094 ac_cpp_err
=$ac_c_preproc_warn_flag
10095 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10102 if test -z "$ac_cpp_err"; then
10103 ac_header_preproc
=yes
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.
$ac_ext >&5
10108 ac_header_preproc
=no
10110 rm -f conftest.err conftest.
$ac_ext
10111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10112 echo "${ECHO_T}$ac_header_preproc" >&6
10114 # So? What about this header?
10115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10121 ac_header_preproc
=yes
10124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10138 ## ------------------------------------------ ##
10139 ## Report this to the AC_PACKAGE_NAME lists. ##
10140 ## ------------------------------------------ ##
10143 sed "s/^/$as_me: WARNING: /" >&2
10146 echo "$as_me:$LINENO: checking for $ac_header" >&5
10147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 eval "$as_ac_Header=\$ac_header_preproc"
10153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10158 cat >>confdefs.h
<<_ACEOF
10159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10167 for ac_header
in sys
/fault.h
10169 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10171 echo "$as_me:$LINENO: checking for $ac_header" >&5
10172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10179 # Is the header compilable?
10180 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10182 cat >conftest.
$ac_ext <<_ACEOF
10185 cat confdefs.h
>>conftest.
$ac_ext
10186 cat >>conftest.
$ac_ext <<_ACEOF
10187 /* end confdefs.h. */
10188 $ac_includes_default
10189 #include <$ac_header>
10191 rm -f conftest.
$ac_objext
10192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10193 (eval $ac_compile) 2>conftest.er1
10195 grep -v '^ *+' conftest.er1
>conftest.err
10197 cat conftest.err
>&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } &&
10200 { ac_try
='test -z "$ac_c_werror_flag"
10201 || test ! -s conftest.err'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; } &&
10207 { ac_try
='test -s conftest.$ac_objext'
10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209 (eval $ac_try) 2>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 ac_header_compiler
=yes
10215 echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.
$ac_ext >&5
10218 ac_header_compiler
=no
10220 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10222 echo "${ECHO_T}$ac_header_compiler" >&6
10224 # Is the header present?
10225 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10227 cat >conftest.
$ac_ext <<_ACEOF
10230 cat confdefs.h
>>conftest.
$ac_ext
10231 cat >>conftest.
$ac_ext <<_ACEOF
10232 /* end confdefs.h. */
10233 #include <$ac_header>
10235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10236 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10238 grep -v '^ *+' conftest.er1
>conftest.err
10240 cat conftest.err
>&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } >/dev
/null
; then
10243 if test -s conftest.err
; then
10244 ac_cpp_err
=$ac_c_preproc_warn_flag
10245 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10252 if test -z "$ac_cpp_err"; then
10253 ac_header_preproc
=yes
10255 echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.
$ac_ext >&5
10258 ac_header_preproc
=no
10260 rm -f conftest.err conftest.
$ac_ext
10261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10262 echo "${ECHO_T}$ac_header_preproc" >&6
10264 # So? What about this header?
10265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10271 ac_header_preproc
=yes
10274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10281 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10288 ## ------------------------------------------ ##
10289 ## Report this to the AC_PACKAGE_NAME lists. ##
10290 ## ------------------------------------------ ##
10293 sed "s/^/$as_me: WARNING: /" >&2
10296 echo "$as_me:$LINENO: checking for $ac_header" >&5
10297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10301 eval "$as_ac_Header=\$ac_header_preproc"
10303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10308 cat >>confdefs.h
<<_ACEOF
10309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10317 for ac_header
in sys
/file.h
10319 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10321 echo "$as_me:$LINENO: checking for $ac_header" >&5
10322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10329 # Is the header compilable?
10330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10332 cat >conftest.
$ac_ext <<_ACEOF
10335 cat confdefs.h
>>conftest.
$ac_ext
10336 cat >>conftest.
$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10338 $ac_includes_default
10339 #include <$ac_header>
10341 rm -f conftest.
$ac_objext
10342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10343 (eval $ac_compile) 2>conftest.er1
10345 grep -v '^ *+' conftest.er1
>conftest.err
10347 cat conftest.err
>&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } &&
10350 { ac_try
='test -z "$ac_c_werror_flag"
10351 || test ! -s conftest.err'
10352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353 (eval $ac_try) 2>&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; } &&
10357 { ac_try
='test -s conftest.$ac_objext'
10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; }; then
10363 ac_header_compiler
=yes
10365 echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.
$ac_ext >&5
10368 ac_header_compiler
=no
10370 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10372 echo "${ECHO_T}$ac_header_compiler" >&6
10374 # Is the header present?
10375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10377 cat >conftest.
$ac_ext <<_ACEOF
10380 cat confdefs.h
>>conftest.
$ac_ext
10381 cat >>conftest.
$ac_ext <<_ACEOF
10382 /* end confdefs.h. */
10383 #include <$ac_header>
10385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10386 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10388 grep -v '^ *+' conftest.er1
>conftest.err
10390 cat conftest.err
>&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); } >/dev
/null
; then
10393 if test -s conftest.err
; then
10394 ac_cpp_err
=$ac_c_preproc_warn_flag
10395 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10402 if test -z "$ac_cpp_err"; then
10403 ac_header_preproc
=yes
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.
$ac_ext >&5
10408 ac_header_preproc
=no
10410 rm -f conftest.err conftest.
$ac_ext
10411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10412 echo "${ECHO_T}$ac_header_preproc" >&6
10414 # So? What about this header?
10415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10421 ac_header_preproc
=yes
10424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10438 ## ------------------------------------------ ##
10439 ## Report this to the AC_PACKAGE_NAME lists. ##
10440 ## ------------------------------------------ ##
10443 sed "s/^/$as_me: WARNING: /" >&2
10446 echo "$as_me:$LINENO: checking for $ac_header" >&5
10447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10449 echo $ECHO_N "(cached) $ECHO_C" >&6
10451 eval "$as_ac_Header=\$ac_header_preproc"
10453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10458 cat >>confdefs.h
<<_ACEOF
10459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10467 for ac_header
in sys
/filio.h
10469 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10471 echo "$as_me:$LINENO: checking for $ac_header" >&5
10472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10479 # Is the header compilable?
10480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10482 cat >conftest.
$ac_ext <<_ACEOF
10485 cat confdefs.h
>>conftest.
$ac_ext
10486 cat >>conftest.
$ac_ext <<_ACEOF
10487 /* end confdefs.h. */
10488 $ac_includes_default
10489 #include <$ac_header>
10491 rm -f conftest.
$ac_objext
10492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10493 (eval $ac_compile) 2>conftest.er1
10495 grep -v '^ *+' conftest.er1
>conftest.err
10497 cat conftest.err
>&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } &&
10500 { ac_try
='test -z "$ac_c_werror_flag"
10501 || test ! -s conftest.err'
10502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; } &&
10507 { ac_try
='test -s conftest.$ac_objext'
10508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }; }; then
10513 ac_header_compiler
=yes
10515 echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.
$ac_ext >&5
10518 ac_header_compiler
=no
10520 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10522 echo "${ECHO_T}$ac_header_compiler" >&6
10524 # Is the header present?
10525 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10527 cat >conftest.
$ac_ext <<_ACEOF
10530 cat confdefs.h
>>conftest.
$ac_ext
10531 cat >>conftest.
$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 #include <$ac_header>
10535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10536 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10538 grep -v '^ *+' conftest.er1
>conftest.err
10540 cat conftest.err
>&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } >/dev
/null
; then
10543 if test -s conftest.err
; then
10544 ac_cpp_err
=$ac_c_preproc_warn_flag
10545 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10552 if test -z "$ac_cpp_err"; then
10553 ac_header_preproc
=yes
10555 echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.
$ac_ext >&5
10558 ac_header_preproc
=no
10560 rm -f conftest.err conftest.
$ac_ext
10561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10562 echo "${ECHO_T}$ac_header_preproc" >&6
10564 # So? What about this header?
10565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10571 ac_header_preproc
=yes
10574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10581 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10588 ## ------------------------------------------ ##
10589 ## Report this to the AC_PACKAGE_NAME lists. ##
10590 ## ------------------------------------------ ##
10593 sed "s/^/$as_me: WARNING: /" >&2
10596 echo "$as_me:$LINENO: checking for $ac_header" >&5
10597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10599 echo $ECHO_N "(cached) $ECHO_C" >&6
10601 eval "$as_ac_Header=\$ac_header_preproc"
10603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10608 cat >>confdefs.h
<<_ACEOF
10609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10617 for ac_header
in sys
/ioctl.h
10619 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10621 echo "$as_me:$LINENO: checking for $ac_header" >&5
10622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10629 # Is the header compilable?
10630 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10632 cat >conftest.
$ac_ext <<_ACEOF
10635 cat confdefs.h
>>conftest.
$ac_ext
10636 cat >>conftest.
$ac_ext <<_ACEOF
10637 /* end confdefs.h. */
10638 $ac_includes_default
10639 #include <$ac_header>
10641 rm -f conftest.
$ac_objext
10642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10643 (eval $ac_compile) 2>conftest.er1
10645 grep -v '^ *+' conftest.er1
>conftest.err
10647 cat conftest.err
>&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); } &&
10650 { ac_try
='test -z "$ac_c_werror_flag"
10651 || test ! -s conftest.err'
10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653 (eval $ac_try) 2>&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); }; } &&
10657 { ac_try
='test -s conftest.$ac_objext'
10658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659 (eval $ac_try) 2>&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; }; then
10663 ac_header_compiler
=yes
10665 echo "$as_me: failed program was:" >&5
10666 sed 's/^/| /' conftest.
$ac_ext >&5
10668 ac_header_compiler
=no
10670 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10672 echo "${ECHO_T}$ac_header_compiler" >&6
10674 # Is the header present?
10675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10677 cat >conftest.
$ac_ext <<_ACEOF
10680 cat confdefs.h
>>conftest.
$ac_ext
10681 cat >>conftest.
$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10683 #include <$ac_header>
10685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10686 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10688 grep -v '^ *+' conftest.er1
>conftest.err
10690 cat conftest.err
>&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } >/dev
/null
; then
10693 if test -s conftest.err
; then
10694 ac_cpp_err
=$ac_c_preproc_warn_flag
10695 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10702 if test -z "$ac_cpp_err"; then
10703 ac_header_preproc
=yes
10705 echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.
$ac_ext >&5
10708 ac_header_preproc
=no
10710 rm -f conftest.err conftest.
$ac_ext
10711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10712 echo "${ECHO_T}$ac_header_preproc" >&6
10714 # So? What about this header?
10715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10721 ac_header_preproc
=yes
10724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10727 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10731 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10738 ## ------------------------------------------ ##
10739 ## Report this to the AC_PACKAGE_NAME lists. ##
10740 ## ------------------------------------------ ##
10743 sed "s/^/$as_me: WARNING: /" >&2
10746 echo "$as_me:$LINENO: checking for $ac_header" >&5
10747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10751 eval "$as_ac_Header=\$ac_header_preproc"
10753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10758 cat >>confdefs.h
<<_ACEOF
10759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10767 for ac_header
in sys
/param.h
10769 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10771 echo "$as_me:$LINENO: checking for $ac_header" >&5
10772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10779 # Is the header compilable?
10780 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10782 cat >conftest.
$ac_ext <<_ACEOF
10785 cat confdefs.h
>>conftest.
$ac_ext
10786 cat >>conftest.
$ac_ext <<_ACEOF
10787 /* end confdefs.h. */
10788 $ac_includes_default
10789 #include <$ac_header>
10791 rm -f conftest.
$ac_objext
10792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10793 (eval $ac_compile) 2>conftest.er1
10795 grep -v '^ *+' conftest.er1
>conftest.err
10797 cat conftest.err
>&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); } &&
10800 { ac_try
='test -z "$ac_c_werror_flag"
10801 || test ! -s conftest.err'
10802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10803 (eval $ac_try) 2>&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); }; } &&
10807 { ac_try
='test -s conftest.$ac_objext'
10808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10809 (eval $ac_try) 2>&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); }; }; then
10813 ac_header_compiler
=yes
10815 echo "$as_me: failed program was:" >&5
10816 sed 's/^/| /' conftest.
$ac_ext >&5
10818 ac_header_compiler
=no
10820 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10821 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10822 echo "${ECHO_T}$ac_header_compiler" >&6
10824 # Is the header present?
10825 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10827 cat >conftest.
$ac_ext <<_ACEOF
10830 cat confdefs.h
>>conftest.
$ac_ext
10831 cat >>conftest.
$ac_ext <<_ACEOF
10832 /* end confdefs.h. */
10833 #include <$ac_header>
10835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10836 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10838 grep -v '^ *+' conftest.er1
>conftest.err
10840 cat conftest.err
>&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } >/dev
/null
; then
10843 if test -s conftest.err
; then
10844 ac_cpp_err
=$ac_c_preproc_warn_flag
10845 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10852 if test -z "$ac_cpp_err"; then
10853 ac_header_preproc
=yes
10855 echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.
$ac_ext >&5
10858 ac_header_preproc
=no
10860 rm -f conftest.err conftest.
$ac_ext
10861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10862 echo "${ECHO_T}$ac_header_preproc" >&6
10864 # So? What about this header?
10865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10871 ac_header_preproc
=yes
10874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10881 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10888 ## ------------------------------------------ ##
10889 ## Report this to the AC_PACKAGE_NAME lists. ##
10890 ## ------------------------------------------ ##
10893 sed "s/^/$as_me: WARNING: /" >&2
10896 echo "$as_me:$LINENO: checking for $ac_header" >&5
10897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10899 echo $ECHO_N "(cached) $ECHO_C" >&6
10901 eval "$as_ac_Header=\$ac_header_preproc"
10903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10908 cat >>confdefs.h
<<_ACEOF
10909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10917 for ac_header
in sys
/proc.h
10919 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10920 echo "$as_me:$LINENO: checking for $ac_header" >&5
10921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10925 cat >conftest.
$ac_ext <<_ACEOF
10928 cat confdefs.h
>>conftest.
$ac_ext
10929 cat >>conftest.
$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10931 #if HAVE_SYS_PARAM_H
10932 # include <sys/param.h>
10936 #include <$ac_header>
10938 rm -f conftest.
$ac_objext
10939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10940 (eval $ac_compile) 2>conftest.er1
10942 grep -v '^ *+' conftest.er1
>conftest.err
10944 cat conftest.err
>&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); } &&
10947 { ac_try
='test -z "$ac_c_werror_flag"
10948 || test ! -s conftest.err'
10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950 (eval $ac_try) 2>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; } &&
10954 { ac_try
='test -s conftest.$ac_objext'
10955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956 (eval $ac_try) 2>&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; }; then
10960 eval "$as_ac_Header=yes"
10962 echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.
$ac_ext >&5
10965 eval "$as_ac_Header=no"
10967 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10972 cat >>confdefs.h
<<_ACEOF
10973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10981 for ac_header
in sys
/procfs.h
10983 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10985 echo "$as_me:$LINENO: checking for $ac_header" >&5
10986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10993 # Is the header compilable?
10994 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10996 cat >conftest.
$ac_ext <<_ACEOF
10999 cat confdefs.h
>>conftest.
$ac_ext
11000 cat >>conftest.
$ac_ext <<_ACEOF
11001 /* end confdefs.h. */
11002 $ac_includes_default
11003 #include <$ac_header>
11005 rm -f conftest.
$ac_objext
11006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11007 (eval $ac_compile) 2>conftest.er1
11009 grep -v '^ *+' conftest.er1
>conftest.err
11011 cat conftest.err
>&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } &&
11014 { ac_try
='test -z "$ac_c_werror_flag"
11015 || test ! -s conftest.err'
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; } &&
11021 { ac_try
='test -s conftest.$ac_objext'
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; }; then
11027 ac_header_compiler
=yes
11029 echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.
$ac_ext >&5
11032 ac_header_compiler
=no
11034 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11035 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11036 echo "${ECHO_T}$ac_header_compiler" >&6
11038 # Is the header present?
11039 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11041 cat >conftest.
$ac_ext <<_ACEOF
11044 cat confdefs.h
>>conftest.
$ac_ext
11045 cat >>conftest.
$ac_ext <<_ACEOF
11046 /* end confdefs.h. */
11047 #include <$ac_header>
11049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11050 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11052 grep -v '^ *+' conftest.er1
>conftest.err
11054 cat conftest.err
>&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); } >/dev
/null
; then
11057 if test -s conftest.err
; then
11058 ac_cpp_err
=$ac_c_preproc_warn_flag
11059 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11066 if test -z "$ac_cpp_err"; then
11067 ac_header_preproc
=yes
11069 echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.
$ac_ext >&5
11072 ac_header_preproc
=no
11074 rm -f conftest.err conftest.
$ac_ext
11075 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11076 echo "${ECHO_T}$ac_header_preproc" >&6
11078 # So? What about this header?
11079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11085 ac_header_preproc
=yes
11088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11095 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11102 ## ------------------------------------------ ##
11103 ## Report this to the AC_PACKAGE_NAME lists. ##
11104 ## ------------------------------------------ ##
11107 sed "s/^/$as_me: WARNING: /" >&2
11110 echo "$as_me:$LINENO: checking for $ac_header" >&5
11111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11115 eval "$as_ac_Header=\$ac_header_preproc"
11117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11122 cat >>confdefs.h
<<_ACEOF
11123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11132 for ac_header
in sys
/ptrace.h ptrace.h
11134 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11136 echo "$as_me:$LINENO: checking for $ac_header" >&5
11137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11144 # Is the header compilable?
11145 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11147 cat >conftest.
$ac_ext <<_ACEOF
11150 cat confdefs.h
>>conftest.
$ac_ext
11151 cat >>conftest.
$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11153 $ac_includes_default
11154 #include <$ac_header>
11156 rm -f conftest.
$ac_objext
11157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11158 (eval $ac_compile) 2>conftest.er1
11160 grep -v '^ *+' conftest.er1
>conftest.err
11162 cat conftest.err
>&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } &&
11165 { ac_try
='test -z "$ac_c_werror_flag"
11166 || test ! -s conftest.err'
11167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168 (eval $ac_try) 2>&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; } &&
11172 { ac_try
='test -s conftest.$ac_objext'
11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; }; then
11178 ac_header_compiler
=yes
11180 echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.
$ac_ext >&5
11183 ac_header_compiler
=no
11185 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11187 echo "${ECHO_T}$ac_header_compiler" >&6
11189 # Is the header present?
11190 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11192 cat >conftest.
$ac_ext <<_ACEOF
11195 cat confdefs.h
>>conftest.
$ac_ext
11196 cat >>conftest.
$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11198 #include <$ac_header>
11200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11201 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11203 grep -v '^ *+' conftest.er1
>conftest.err
11205 cat conftest.err
>&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); } >/dev
/null
; then
11208 if test -s conftest.err
; then
11209 ac_cpp_err
=$ac_c_preproc_warn_flag
11210 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11217 if test -z "$ac_cpp_err"; then
11218 ac_header_preproc
=yes
11220 echo "$as_me: failed program was:" >&5
11221 sed 's/^/| /' conftest.
$ac_ext >&5
11223 ac_header_preproc
=no
11225 rm -f conftest.err conftest.
$ac_ext
11226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11227 echo "${ECHO_T}$ac_header_preproc" >&6
11229 # So? What about this header?
11230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11235 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11236 ac_header_preproc
=yes
11239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11240 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11242 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11244 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11246 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11250 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11253 ## ------------------------------------------ ##
11254 ## Report this to the AC_PACKAGE_NAME lists. ##
11255 ## ------------------------------------------ ##
11258 sed "s/^/$as_me: WARNING: /" >&2
11261 echo "$as_me:$LINENO: checking for $ac_header" >&5
11262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 eval "$as_ac_Header=\$ac_header_preproc"
11268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11273 cat >>confdefs.h
<<_ACEOF
11274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11283 for ac_header
in sys
/reg.h sys
/debugreg.h
11285 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11287 echo "$as_me:$LINENO: checking for $ac_header" >&5
11288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11295 # Is the header compilable?
11296 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11298 cat >conftest.
$ac_ext <<_ACEOF
11301 cat confdefs.h
>>conftest.
$ac_ext
11302 cat >>conftest.
$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11304 $ac_includes_default
11305 #include <$ac_header>
11307 rm -f conftest.
$ac_objext
11308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11309 (eval $ac_compile) 2>conftest.er1
11311 grep -v '^ *+' conftest.er1
>conftest.err
11313 cat conftest.err
>&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } &&
11316 { ac_try
='test -z "$ac_c_werror_flag"
11317 || test ! -s conftest.err'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; } &&
11323 { ac_try
='test -s conftest.$ac_objext'
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; }; then
11329 ac_header_compiler
=yes
11331 echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.
$ac_ext >&5
11334 ac_header_compiler
=no
11336 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11338 echo "${ECHO_T}$ac_header_compiler" >&6
11340 # Is the header present?
11341 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11343 cat >conftest.
$ac_ext <<_ACEOF
11346 cat confdefs.h
>>conftest.
$ac_ext
11347 cat >>conftest.
$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11349 #include <$ac_header>
11351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11352 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11354 grep -v '^ *+' conftest.er1
>conftest.err
11356 cat conftest.err
>&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } >/dev
/null
; then
11359 if test -s conftest.err
; then
11360 ac_cpp_err
=$ac_c_preproc_warn_flag
11361 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11368 if test -z "$ac_cpp_err"; then
11369 ac_header_preproc
=yes
11371 echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.
$ac_ext >&5
11374 ac_header_preproc
=no
11376 rm -f conftest.err conftest.
$ac_ext
11377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11378 echo "${ECHO_T}$ac_header_preproc" >&6
11380 # So? What about this header?
11381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11387 ac_header_preproc
=yes
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11404 ## ------------------------------------------ ##
11405 ## Report this to the AC_PACKAGE_NAME lists. ##
11406 ## ------------------------------------------ ##
11409 sed "s/^/$as_me: WARNING: /" >&2
11412 echo "$as_me:$LINENO: checking for $ac_header" >&5
11413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11417 eval "$as_ac_Header=\$ac_header_preproc"
11419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11424 cat >>confdefs.h
<<_ACEOF
11425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11433 for ac_header
in sys
/select.h
11435 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11437 echo "$as_me:$LINENO: checking for $ac_header" >&5
11438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11440 echo $ECHO_N "(cached) $ECHO_C" >&6
11442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11445 # Is the header compilable?
11446 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11448 cat >conftest.
$ac_ext <<_ACEOF
11451 cat confdefs.h
>>conftest.
$ac_ext
11452 cat >>conftest.
$ac_ext <<_ACEOF
11453 /* end confdefs.h. */
11454 $ac_includes_default
11455 #include <$ac_header>
11457 rm -f conftest.
$ac_objext
11458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11459 (eval $ac_compile) 2>conftest.er1
11461 grep -v '^ *+' conftest.er1
>conftest.err
11463 cat conftest.err
>&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } &&
11466 { ac_try
='test -z "$ac_c_werror_flag"
11467 || test ! -s conftest.err'
11468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469 (eval $ac_try) 2>&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; } &&
11473 { ac_try
='test -s conftest.$ac_objext'
11474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475 (eval $ac_try) 2>&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; }; then
11479 ac_header_compiler
=yes
11481 echo "$as_me: failed program was:" >&5
11482 sed 's/^/| /' conftest.
$ac_ext >&5
11484 ac_header_compiler
=no
11486 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11488 echo "${ECHO_T}$ac_header_compiler" >&6
11490 # Is the header present?
11491 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11493 cat >conftest.
$ac_ext <<_ACEOF
11496 cat confdefs.h
>>conftest.
$ac_ext
11497 cat >>conftest.
$ac_ext <<_ACEOF
11498 /* end confdefs.h. */
11499 #include <$ac_header>
11501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11502 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11504 grep -v '^ *+' conftest.er1
>conftest.err
11506 cat conftest.err
>&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } >/dev
/null
; then
11509 if test -s conftest.err
; then
11510 ac_cpp_err
=$ac_c_preproc_warn_flag
11511 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11518 if test -z "$ac_cpp_err"; then
11519 ac_header_preproc
=yes
11521 echo "$as_me: failed program was:" >&5
11522 sed 's/^/| /' conftest.
$ac_ext >&5
11524 ac_header_preproc
=no
11526 rm -f conftest.err conftest.
$ac_ext
11527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11528 echo "${ECHO_T}$ac_header_preproc" >&6
11530 # So? What about this header?
11531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11537 ac_header_preproc
=yes
11540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11543 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11544 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11545 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11546 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11547 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11551 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11554 ## ------------------------------------------ ##
11555 ## Report this to the AC_PACKAGE_NAME lists. ##
11556 ## ------------------------------------------ ##
11559 sed "s/^/$as_me: WARNING: /" >&2
11562 echo "$as_me:$LINENO: checking for $ac_header" >&5
11563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11567 eval "$as_ac_Header=\$ac_header_preproc"
11569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11574 cat >>confdefs.h
<<_ACEOF
11575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11583 for ac_header
in sys
/syscall.h
11585 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11587 echo "$as_me:$LINENO: checking for $ac_header" >&5
11588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11595 # Is the header compilable?
11596 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11598 cat >conftest.
$ac_ext <<_ACEOF
11601 cat confdefs.h
>>conftest.
$ac_ext
11602 cat >>conftest.
$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11604 $ac_includes_default
11605 #include <$ac_header>
11607 rm -f conftest.
$ac_objext
11608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11609 (eval $ac_compile) 2>conftest.er1
11611 grep -v '^ *+' conftest.er1
>conftest.err
11613 cat conftest.err
>&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } &&
11616 { ac_try
='test -z "$ac_c_werror_flag"
11617 || test ! -s conftest.err'
11618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619 (eval $ac_try) 2>&5
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); }; } &&
11623 { ac_try
='test -s conftest.$ac_objext'
11624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11625 (eval $ac_try) 2>&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); }; }; then
11629 ac_header_compiler
=yes
11631 echo "$as_me: failed program was:" >&5
11632 sed 's/^/| /' conftest.
$ac_ext >&5
11634 ac_header_compiler
=no
11636 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11638 echo "${ECHO_T}$ac_header_compiler" >&6
11640 # Is the header present?
11641 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11643 cat >conftest.
$ac_ext <<_ACEOF
11646 cat confdefs.h
>>conftest.
$ac_ext
11647 cat >>conftest.
$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11649 #include <$ac_header>
11651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11652 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11654 grep -v '^ *+' conftest.er1
>conftest.err
11656 cat conftest.err
>&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } >/dev
/null
; then
11659 if test -s conftest.err
; then
11660 ac_cpp_err
=$ac_c_preproc_warn_flag
11661 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11668 if test -z "$ac_cpp_err"; then
11669 ac_header_preproc
=yes
11671 echo "$as_me: failed program was:" >&5
11672 sed 's/^/| /' conftest.
$ac_ext >&5
11674 ac_header_preproc
=no
11676 rm -f conftest.err conftest.
$ac_ext
11677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11678 echo "${ECHO_T}$ac_header_preproc" >&6
11680 # So? What about this header?
11681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11686 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11687 ac_header_preproc
=yes
11690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11693 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11695 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11697 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11701 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11704 ## ------------------------------------------ ##
11705 ## Report this to the AC_PACKAGE_NAME lists. ##
11706 ## ------------------------------------------ ##
11709 sed "s/^/$as_me: WARNING: /" >&2
11712 echo "$as_me:$LINENO: checking for $ac_header" >&5
11713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11717 eval "$as_ac_Header=\$ac_header_preproc"
11719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11724 cat >>confdefs.h
<<_ACEOF
11725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11733 for ac_header
in sys
/types.h
11735 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11737 echo "$as_me:$LINENO: checking for $ac_header" >&5
11738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11745 # Is the header compilable?
11746 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11748 cat >conftest.
$ac_ext <<_ACEOF
11751 cat confdefs.h
>>conftest.
$ac_ext
11752 cat >>conftest.
$ac_ext <<_ACEOF
11753 /* end confdefs.h. */
11754 $ac_includes_default
11755 #include <$ac_header>
11757 rm -f conftest.
$ac_objext
11758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11759 (eval $ac_compile) 2>conftest.er1
11761 grep -v '^ *+' conftest.er1
>conftest.err
11763 cat conftest.err
>&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } &&
11766 { ac_try
='test -z "$ac_c_werror_flag"
11767 || test ! -s conftest.err'
11768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769 (eval $ac_try) 2>&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); }; } &&
11773 { ac_try
='test -s conftest.$ac_objext'
11774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775 (eval $ac_try) 2>&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; }; then
11779 ac_header_compiler
=yes
11781 echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.
$ac_ext >&5
11784 ac_header_compiler
=no
11786 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11787 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11788 echo "${ECHO_T}$ac_header_compiler" >&6
11790 # Is the header present?
11791 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11792 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11793 cat >conftest.
$ac_ext <<_ACEOF
11796 cat confdefs.h
>>conftest.
$ac_ext
11797 cat >>conftest.
$ac_ext <<_ACEOF
11798 /* end confdefs.h. */
11799 #include <$ac_header>
11801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11802 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11804 grep -v '^ *+' conftest.er1
>conftest.err
11806 cat conftest.err
>&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); } >/dev
/null
; then
11809 if test -s conftest.err
; then
11810 ac_cpp_err
=$ac_c_preproc_warn_flag
11811 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11818 if test -z "$ac_cpp_err"; then
11819 ac_header_preproc
=yes
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.
$ac_ext >&5
11824 ac_header_preproc
=no
11826 rm -f conftest.err conftest.
$ac_ext
11827 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11828 echo "${ECHO_T}$ac_header_preproc" >&6
11830 # So? What about this header?
11831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11834 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11836 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11837 ac_header_preproc
=yes
11840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11844 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11845 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11846 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11847 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11851 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11854 ## ------------------------------------------ ##
11855 ## Report this to the AC_PACKAGE_NAME lists. ##
11856 ## ------------------------------------------ ##
11859 sed "s/^/$as_me: WARNING: /" >&2
11862 echo "$as_me:$LINENO: checking for $ac_header" >&5
11863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11865 echo $ECHO_N "(cached) $ECHO_C" >&6
11867 eval "$as_ac_Header=\$ac_header_preproc"
11869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11874 cat >>confdefs.h
<<_ACEOF
11875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11883 for ac_header
in sys
/user.h
11885 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11886 echo "$as_me:$LINENO: checking for $ac_header" >&5
11887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11889 echo $ECHO_N "(cached) $ECHO_C" >&6
11891 cat >conftest.
$ac_ext <<_ACEOF
11894 cat confdefs.h
>>conftest.
$ac_ext
11895 cat >>conftest.
$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11897 #if HAVE_SYS_PARAM_H
11898 # include <sys/param.h>
11902 #include <$ac_header>
11904 rm -f conftest.
$ac_objext
11905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11906 (eval $ac_compile) 2>conftest.er1
11908 grep -v '^ *+' conftest.er1
>conftest.err
11910 cat conftest.err
>&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } &&
11913 { ac_try
='test -z "$ac_c_werror_flag"
11914 || test ! -s conftest.err'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; } &&
11920 { ac_try
='test -s conftest.$ac_objext'
11921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; }; then
11926 eval "$as_ac_Header=yes"
11928 echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.
$ac_ext >&5
11931 eval "$as_ac_Header=no"
11933 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11938 cat >>confdefs.h
<<_ACEOF
11939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11948 for ac_header
in sys
/wait.h
wait.h
11950 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11952 echo "$as_me:$LINENO: checking for $ac_header" >&5
11953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11955 echo $ECHO_N "(cached) $ECHO_C" >&6
11957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11960 # Is the header compilable?
11961 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11963 cat >conftest.
$ac_ext <<_ACEOF
11966 cat confdefs.h
>>conftest.
$ac_ext
11967 cat >>conftest.
$ac_ext <<_ACEOF
11968 /* end confdefs.h. */
11969 $ac_includes_default
11970 #include <$ac_header>
11972 rm -f conftest.
$ac_objext
11973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11974 (eval $ac_compile) 2>conftest.er1
11976 grep -v '^ *+' conftest.er1
>conftest.err
11978 cat conftest.err
>&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } &&
11981 { ac_try
='test -z "$ac_c_werror_flag"
11982 || test ! -s conftest.err'
11983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11984 (eval $ac_try) 2>&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; } &&
11988 { ac_try
='test -s conftest.$ac_objext'
11989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990 (eval $ac_try) 2>&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; }; then
11994 ac_header_compiler
=yes
11996 echo "$as_me: failed program was:" >&5
11997 sed 's/^/| /' conftest.
$ac_ext >&5
11999 ac_header_compiler
=no
12001 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12003 echo "${ECHO_T}$ac_header_compiler" >&6
12005 # Is the header present?
12006 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12007 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12008 cat >conftest.
$ac_ext <<_ACEOF
12011 cat confdefs.h
>>conftest.
$ac_ext
12012 cat >>conftest.
$ac_ext <<_ACEOF
12013 /* end confdefs.h. */
12014 #include <$ac_header>
12016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12017 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12019 grep -v '^ *+' conftest.er1
>conftest.err
12021 cat conftest.err
>&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } >/dev
/null
; then
12024 if test -s conftest.err
; then
12025 ac_cpp_err
=$ac_c_preproc_warn_flag
12026 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12033 if test -z "$ac_cpp_err"; then
12034 ac_header_preproc
=yes
12036 echo "$as_me: failed program was:" >&5
12037 sed 's/^/| /' conftest.
$ac_ext >&5
12039 ac_header_preproc
=no
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
12045 # So? What about this header?
12046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
12069 ## ------------------------------------------ ##
12070 ## Report this to the AC_PACKAGE_NAME lists. ##
12071 ## ------------------------------------------ ##
12074 sed "s/^/$as_me: WARNING: /" >&2
12077 echo "$as_me:$LINENO: checking for $ac_header" >&5
12078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12080 echo $ECHO_N "(cached) $ECHO_C" >&6
12082 eval "$as_ac_Header=\$ac_header_preproc"
12084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12089 cat >>confdefs.h
<<_ACEOF
12090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12100 for ac_header
in termios.h termio.h sgtty.h
12102 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12104 echo "$as_me:$LINENO: checking for $ac_header" >&5
12105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12107 echo $ECHO_N "(cached) $ECHO_C" >&6
12109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12112 # Is the header compilable?
12113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12115 cat >conftest.
$ac_ext <<_ACEOF
12118 cat confdefs.h
>>conftest.
$ac_ext
12119 cat >>conftest.
$ac_ext <<_ACEOF
12120 /* end confdefs.h. */
12121 $ac_includes_default
12122 #include <$ac_header>
12124 rm -f conftest.
$ac_objext
12125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12126 (eval $ac_compile) 2>conftest.er1
12128 grep -v '^ *+' conftest.er1
>conftest.err
12130 cat conftest.err
>&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } &&
12133 { ac_try
='test -z "$ac_c_werror_flag"
12134 || test ! -s conftest.err'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; } &&
12140 { ac_try
='test -s conftest.$ac_objext'
12141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142 (eval $ac_try) 2>&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; }; then
12146 ac_header_compiler
=yes
12148 echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.
$ac_ext >&5
12151 ac_header_compiler
=no
12153 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12155 echo "${ECHO_T}$ac_header_compiler" >&6
12157 # Is the header present?
12158 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12160 cat >conftest.
$ac_ext <<_ACEOF
12163 cat confdefs.h
>>conftest.
$ac_ext
12164 cat >>conftest.
$ac_ext <<_ACEOF
12165 /* end confdefs.h. */
12166 #include <$ac_header>
12168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12169 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12171 grep -v '^ *+' conftest.er1
>conftest.err
12173 cat conftest.err
>&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } >/dev
/null
; then
12176 if test -s conftest.err
; then
12177 ac_cpp_err
=$ac_c_preproc_warn_flag
12178 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12185 if test -z "$ac_cpp_err"; then
12186 ac_header_preproc
=yes
12188 echo "$as_me: failed program was:" >&5
12189 sed 's/^/| /' conftest.
$ac_ext >&5
12191 ac_header_preproc
=no
12193 rm -f conftest.err conftest.
$ac_ext
12194 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12195 echo "${ECHO_T}$ac_header_preproc" >&6
12197 # So? What about this header?
12198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12204 ac_header_preproc
=yes
12207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12214 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12221 ## ------------------------------------------ ##
12222 ## Report this to the AC_PACKAGE_NAME lists. ##
12223 ## ------------------------------------------ ##
12226 sed "s/^/$as_me: WARNING: /" >&2
12229 echo "$as_me:$LINENO: checking for $ac_header" >&5
12230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12232 echo $ECHO_N "(cached) $ECHO_C" >&6
12234 eval "$as_ac_Header=\$ac_header_preproc"
12236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12241 cat >>confdefs.h
<<_ACEOF
12242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12250 for ac_header
in unistd.h
12252 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12254 echo "$as_me:$LINENO: checking for $ac_header" >&5
12255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12262 # Is the header compilable?
12263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12265 cat >conftest.
$ac_ext <<_ACEOF
12268 cat confdefs.h
>>conftest.
$ac_ext
12269 cat >>conftest.
$ac_ext <<_ACEOF
12270 /* end confdefs.h. */
12271 $ac_includes_default
12272 #include <$ac_header>
12274 rm -f conftest.
$ac_objext
12275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12276 (eval $ac_compile) 2>conftest.er1
12278 grep -v '^ *+' conftest.er1
>conftest.err
12280 cat conftest.err
>&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } &&
12283 { ac_try
='test -z "$ac_c_werror_flag"
12284 || test ! -s conftest.err'
12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; } &&
12290 { ac_try
='test -s conftest.$ac_objext'
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; }; then
12296 ac_header_compiler
=yes
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.
$ac_ext >&5
12301 ac_header_compiler
=no
12303 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12305 echo "${ECHO_T}$ac_header_compiler" >&6
12307 # Is the header present?
12308 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12310 cat >conftest.
$ac_ext <<_ACEOF
12313 cat confdefs.h
>>conftest.
$ac_ext
12314 cat >>conftest.
$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12316 #include <$ac_header>
12318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12319 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12321 grep -v '^ *+' conftest.er1
>conftest.err
12323 cat conftest.err
>&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } >/dev
/null
; then
12326 if test -s conftest.err
; then
12327 ac_cpp_err
=$ac_c_preproc_warn_flag
12328 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12335 if test -z "$ac_cpp_err"; then
12336 ac_header_preproc
=yes
12338 echo "$as_me: failed program was:" >&5
12339 sed 's/^/| /' conftest.
$ac_ext >&5
12341 ac_header_preproc
=no
12343 rm -f conftest.err conftest.
$ac_ext
12344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12345 echo "${ECHO_T}$ac_header_preproc" >&6
12347 # So? What about this header?
12348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12354 ac_header_preproc
=yes
12357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12371 ## ------------------------------------------ ##
12372 ## Report this to the AC_PACKAGE_NAME lists. ##
12373 ## ------------------------------------------ ##
12376 sed "s/^/$as_me: WARNING: /" >&2
12379 echo "$as_me:$LINENO: checking for $ac_header" >&5
12380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 eval "$as_ac_Header=\$ac_header_preproc"
12386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12391 cat >>confdefs.h
<<_ACEOF
12392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12400 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12401 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12402 # think that we don't have <curses.h> if we're using GCC.
12405 if test "$GCC" = yes; then
12407 cat >>confdefs.h
<<\_ACEOF
12408 #define _MSE_INT_H 1
12417 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h
12419 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12421 echo "$as_me:$LINENO: checking for $ac_header" >&5
12422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12429 # Is the header compilable?
12430 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12432 cat >conftest.
$ac_ext <<_ACEOF
12435 cat confdefs.h
>>conftest.
$ac_ext
12436 cat >>conftest.
$ac_ext <<_ACEOF
12437 /* end confdefs.h. */
12438 $ac_includes_default
12439 #include <$ac_header>
12441 rm -f conftest.
$ac_objext
12442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12443 (eval $ac_compile) 2>conftest.er1
12445 grep -v '^ *+' conftest.er1
>conftest.err
12447 cat conftest.err
>&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); } &&
12450 { ac_try
='test -z "$ac_c_werror_flag"
12451 || test ! -s conftest.err'
12452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453 (eval $ac_try) 2>&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; } &&
12457 { ac_try
='test -s conftest.$ac_objext'
12458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459 (eval $ac_try) 2>&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; }; then
12463 ac_header_compiler
=yes
12465 echo "$as_me: failed program was:" >&5
12466 sed 's/^/| /' conftest.
$ac_ext >&5
12468 ac_header_compiler
=no
12470 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12471 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12472 echo "${ECHO_T}$ac_header_compiler" >&6
12474 # Is the header present?
12475 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12477 cat >conftest.
$ac_ext <<_ACEOF
12480 cat confdefs.h
>>conftest.
$ac_ext
12481 cat >>conftest.
$ac_ext <<_ACEOF
12482 /* end confdefs.h. */
12483 #include <$ac_header>
12485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12486 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12488 grep -v '^ *+' conftest.er1
>conftest.err
12490 cat conftest.err
>&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } >/dev
/null
; then
12493 if test -s conftest.err
; then
12494 ac_cpp_err
=$ac_c_preproc_warn_flag
12495 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12502 if test -z "$ac_cpp_err"; then
12503 ac_header_preproc
=yes
12505 echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.
$ac_ext >&5
12508 ac_header_preproc
=no
12510 rm -f conftest.err conftest.
$ac_ext
12511 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12512 echo "${ECHO_T}$ac_header_preproc" >&6
12514 # So? What about this header?
12515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12520 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12521 ac_header_preproc
=yes
12524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12527 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12529 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12531 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12535 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12538 ## ------------------------------------------ ##
12539 ## Report this to the AC_PACKAGE_NAME lists. ##
12540 ## ------------------------------------------ ##
12543 sed "s/^/$as_me: WARNING: /" >&2
12546 echo "$as_me:$LINENO: checking for $ac_header" >&5
12547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12549 echo $ECHO_N "(cached) $ECHO_C" >&6
12551 eval "$as_ac_Header=\$ac_header_preproc"
12553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12558 cat >>confdefs.h
<<_ACEOF
12559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12567 for ac_header
in ncurses
/term.h
12569 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12571 echo "$as_me:$LINENO: checking for $ac_header" >&5
12572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12579 # Is the header compilable?
12580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12582 cat >conftest.
$ac_ext <<_ACEOF
12585 cat confdefs.h
>>conftest.
$ac_ext
12586 cat >>conftest.
$ac_ext <<_ACEOF
12587 /* end confdefs.h. */
12588 $ac_includes_default
12589 #include <$ac_header>
12591 rm -f conftest.
$ac_objext
12592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12593 (eval $ac_compile) 2>conftest.er1
12595 grep -v '^ *+' conftest.er1
>conftest.err
12597 cat conftest.err
>&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } &&
12600 { ac_try
='test -z "$ac_c_werror_flag"
12601 || test ! -s conftest.err'
12602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603 (eval $ac_try) 2>&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; } &&
12607 { ac_try
='test -s conftest.$ac_objext'
12608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609 (eval $ac_try) 2>&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; }; then
12613 ac_header_compiler
=yes
12615 echo "$as_me: failed program was:" >&5
12616 sed 's/^/| /' conftest.
$ac_ext >&5
12618 ac_header_compiler
=no
12620 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12621 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12622 echo "${ECHO_T}$ac_header_compiler" >&6
12624 # Is the header present?
12625 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12627 cat >conftest.
$ac_ext <<_ACEOF
12630 cat confdefs.h
>>conftest.
$ac_ext
12631 cat >>conftest.
$ac_ext <<_ACEOF
12632 /* end confdefs.h. */
12633 #include <$ac_header>
12635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12636 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12638 grep -v '^ *+' conftest.er1
>conftest.err
12640 cat conftest.err
>&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } >/dev
/null
; then
12643 if test -s conftest.err
; then
12644 ac_cpp_err
=$ac_c_preproc_warn_flag
12645 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12652 if test -z "$ac_cpp_err"; then
12653 ac_header_preproc
=yes
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.
$ac_ext >&5
12658 ac_header_preproc
=no
12660 rm -f conftest.err conftest.
$ac_ext
12661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12662 echo "${ECHO_T}$ac_header_preproc" >&6
12664 # So? What about this header?
12665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12671 ac_header_preproc
=yes
12674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12681 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12688 ## ------------------------------------------ ##
12689 ## Report this to the AC_PACKAGE_NAME lists. ##
12690 ## ------------------------------------------ ##
12693 sed "s/^/$as_me: WARNING: /" >&2
12696 echo "$as_me:$LINENO: checking for $ac_header" >&5
12697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
12701 eval "$as_ac_Header=\$ac_header_preproc"
12703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12708 cat >>confdefs.h
<<_ACEOF
12709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12717 for ac_header
in term.h
12719 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12720 echo "$as_me:$LINENO: checking for $ac_header" >&5
12721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12723 echo $ECHO_N "(cached) $ECHO_C" >&6
12725 cat >conftest.
$ac_ext <<_ACEOF
12728 cat confdefs.h
>>conftest.
$ac_ext
12729 cat >>conftest.
$ac_ext <<_ACEOF
12730 /* end confdefs.h. */
12732 # include <curses.h>
12736 #include <$ac_header>
12738 rm -f conftest.
$ac_objext
12739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12740 (eval $ac_compile) 2>conftest.er1
12742 grep -v '^ *+' conftest.er1
>conftest.err
12744 cat conftest.err
>&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); } &&
12747 { ac_try
='test -z "$ac_c_werror_flag"
12748 || test ! -s conftest.err'
12749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12750 (eval $ac_try) 2>&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; } &&
12754 { ac_try
='test -s conftest.$ac_objext'
12755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756 (eval $ac_try) 2>&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; }; then
12760 eval "$as_ac_Header=yes"
12762 echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.
$ac_ext >&5
12765 eval "$as_ac_Header=no"
12767 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12772 cat >>confdefs.h
<<_ACEOF
12773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12781 # FIXME: kettenis/20030102: In most cases we include these
12782 # unconditionally, so what's the point in checking these?
12785 for ac_header
in ctype.h
time.h
12787 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12789 echo "$as_me:$LINENO: checking for $ac_header" >&5
12790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12792 echo $ECHO_N "(cached) $ECHO_C" >&6
12794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12797 # Is the header compilable?
12798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12800 cat >conftest.
$ac_ext <<_ACEOF
12803 cat confdefs.h
>>conftest.
$ac_ext
12804 cat >>conftest.
$ac_ext <<_ACEOF
12805 /* end confdefs.h. */
12806 $ac_includes_default
12807 #include <$ac_header>
12809 rm -f conftest.
$ac_objext
12810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12811 (eval $ac_compile) 2>conftest.er1
12813 grep -v '^ *+' conftest.er1
>conftest.err
12815 cat conftest.err
>&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); } &&
12818 { ac_try
='test -z "$ac_c_werror_flag"
12819 || test ! -s conftest.err'
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; } &&
12825 { ac_try
='test -s conftest.$ac_objext'
12826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827 (eval $ac_try) 2>&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; }; then
12831 ac_header_compiler
=yes
12833 echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.
$ac_ext >&5
12836 ac_header_compiler
=no
12838 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12840 echo "${ECHO_T}$ac_header_compiler" >&6
12842 # Is the header present?
12843 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12845 cat >conftest.
$ac_ext <<_ACEOF
12848 cat confdefs.h
>>conftest.
$ac_ext
12849 cat >>conftest.
$ac_ext <<_ACEOF
12850 /* end confdefs.h. */
12851 #include <$ac_header>
12853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12854 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12856 grep -v '^ *+' conftest.er1
>conftest.err
12858 cat conftest.err
>&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); } >/dev
/null
; then
12861 if test -s conftest.err
; then
12862 ac_cpp_err
=$ac_c_preproc_warn_flag
12863 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12870 if test -z "$ac_cpp_err"; then
12871 ac_header_preproc
=yes
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.
$ac_ext >&5
12876 ac_header_preproc
=no
12878 rm -f conftest.err conftest.
$ac_ext
12879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12880 echo "${ECHO_T}$ac_header_preproc" >&6
12882 # So? What about this header?
12883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12888 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12889 ac_header_preproc
=yes
12892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12895 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12897 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12899 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12903 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12906 ## ------------------------------------------ ##
12907 ## Report this to the AC_PACKAGE_NAME lists. ##
12908 ## ------------------------------------------ ##
12911 sed "s/^/$as_me: WARNING: /" >&2
12914 echo "$as_me:$LINENO: checking for $ac_header" >&5
12915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12917 echo $ECHO_N "(cached) $ECHO_C" >&6
12919 eval "$as_ac_Header=\$ac_header_preproc"
12921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12926 cat >>confdefs.h
<<_ACEOF
12927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12935 # ------------------------- #
12936 # Checks for declarations. #
12937 # ------------------------- #
12939 echo "$as_me:$LINENO: checking whether free is declared" >&5
12940 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12941 if test "${ac_cv_have_decl_free+set}" = set; then
12942 echo $ECHO_N "(cached) $ECHO_C" >&6
12944 cat >conftest.
$ac_ext <<_ACEOF
12947 cat confdefs.h
>>conftest.
$ac_ext
12948 cat >>conftest.
$ac_ext <<_ACEOF
12949 /* end confdefs.h. */
12950 $ac_includes_default
12955 char *p = (char *) free;
12962 rm -f conftest.
$ac_objext
12963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12964 (eval $ac_compile) 2>conftest.er1
12966 grep -v '^ *+' conftest.er1
>conftest.err
12968 cat conftest.err
>&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); } &&
12971 { ac_try
='test -z "$ac_c_werror_flag"
12972 || test ! -s conftest.err'
12973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12974 (eval $ac_try) 2>&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }; } &&
12978 { ac_try
='test -s conftest.$ac_objext'
12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; }; then
12984 ac_cv_have_decl_free
=yes
12986 echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.
$ac_ext >&5
12989 ac_cv_have_decl_free
=no
12991 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12993 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12994 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12995 if test $ac_cv_have_decl_free = yes; then
12997 cat >>confdefs.h
<<_ACEOF
12998 #define HAVE_DECL_FREE 1
13003 cat >>confdefs.h
<<_ACEOF
13004 #define HAVE_DECL_FREE 0
13009 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13010 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13011 if test "${ac_cv_have_decl_malloc+set}" = set; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
13014 cat >conftest.
$ac_ext <<_ACEOF
13017 cat confdefs.h
>>conftest.
$ac_ext
13018 cat >>conftest.
$ac_ext <<_ACEOF
13019 /* end confdefs.h. */
13020 $ac_includes_default
13025 char *p = (char *) malloc;
13032 rm -f conftest.
$ac_objext
13033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13034 (eval $ac_compile) 2>conftest.er1
13036 grep -v '^ *+' conftest.er1
>conftest.err
13038 cat conftest.err
>&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); } &&
13041 { ac_try
='test -z "$ac_c_werror_flag"
13042 || test ! -s conftest.err'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; } &&
13048 { ac_try
='test -s conftest.$ac_objext'
13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
13054 ac_cv_have_decl_malloc
=yes
13056 echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.
$ac_ext >&5
13059 ac_cv_have_decl_malloc
=no
13061 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13063 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13064 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13065 if test $ac_cv_have_decl_malloc = yes; then
13067 cat >>confdefs.h
<<_ACEOF
13068 #define HAVE_DECL_MALLOC 1
13073 cat >>confdefs.h
<<_ACEOF
13074 #define HAVE_DECL_MALLOC 0
13079 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13080 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13081 if test "${ac_cv_have_decl_realloc+set}" = set; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13084 cat >conftest.
$ac_ext <<_ACEOF
13087 cat confdefs.h
>>conftest.
$ac_ext
13088 cat >>conftest.
$ac_ext <<_ACEOF
13089 /* end confdefs.h. */
13090 $ac_includes_default
13095 char *p = (char *) realloc;
13102 rm -f conftest.
$ac_objext
13103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13104 (eval $ac_compile) 2>conftest.er1
13106 grep -v '^ *+' conftest.er1
>conftest.err
13108 cat conftest.err
>&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } &&
13111 { ac_try
='test -z "$ac_c_werror_flag"
13112 || test ! -s conftest.err'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; } &&
13118 { ac_try
='test -s conftest.$ac_objext'
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; }; then
13124 ac_cv_have_decl_realloc
=yes
13126 echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.
$ac_ext >&5
13129 ac_cv_have_decl_realloc
=no
13131 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13133 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13134 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13135 if test $ac_cv_have_decl_realloc = yes; then
13137 cat >>confdefs.h
<<_ACEOF
13138 #define HAVE_DECL_REALLOC 1
13143 cat >>confdefs.h
<<_ACEOF
13144 #define HAVE_DECL_REALLOC 0
13151 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13152 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13153 if test "${ac_cv_have_decl_strerror+set}" = set; then
13154 echo $ECHO_N "(cached) $ECHO_C" >&6
13156 cat >conftest.
$ac_ext <<_ACEOF
13159 cat confdefs.h
>>conftest.
$ac_ext
13160 cat >>conftest.
$ac_ext <<_ACEOF
13161 /* end confdefs.h. */
13162 $ac_includes_default
13167 char *p = (char *) strerror;
13174 rm -f conftest.
$ac_objext
13175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13176 (eval $ac_compile) 2>conftest.er1
13178 grep -v '^ *+' conftest.er1
>conftest.err
13180 cat conftest.err
>&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } &&
13183 { ac_try
='test -z "$ac_c_werror_flag"
13184 || test ! -s conftest.err'
13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186 (eval $ac_try) 2>&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; } &&
13190 { ac_try
='test -s conftest.$ac_objext'
13191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13192 (eval $ac_try) 2>&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; }; then
13196 ac_cv_have_decl_strerror
=yes
13198 echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.
$ac_ext >&5
13201 ac_cv_have_decl_strerror
=no
13203 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13205 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13206 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13207 if test $ac_cv_have_decl_strerror = yes; then
13209 cat >>confdefs.h
<<_ACEOF
13210 #define HAVE_DECL_STRERROR 1
13215 cat >>confdefs.h
<<_ACEOF
13216 #define HAVE_DECL_STRERROR 0
13221 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13222 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13223 if test "${ac_cv_have_decl_strstr+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13226 cat >conftest.
$ac_ext <<_ACEOF
13229 cat confdefs.h
>>conftest.
$ac_ext
13230 cat >>conftest.
$ac_ext <<_ACEOF
13231 /* end confdefs.h. */
13232 $ac_includes_default
13237 char *p = (char *) strstr;
13244 rm -f conftest.
$ac_objext
13245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13246 (eval $ac_compile) 2>conftest.er1
13248 grep -v '^ *+' conftest.er1
>conftest.err
13250 cat conftest.err
>&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); } &&
13253 { ac_try
='test -z "$ac_c_werror_flag"
13254 || test ! -s conftest.err'
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; } &&
13260 { ac_try
='test -s conftest.$ac_objext'
13261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262 (eval $ac_try) 2>&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; }; then
13266 ac_cv_have_decl_strstr
=yes
13268 echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.
$ac_ext >&5
13271 ac_cv_have_decl_strstr
=no
13273 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13275 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13276 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13277 if test $ac_cv_have_decl_strstr = yes; then
13279 cat >>confdefs.h
<<_ACEOF
13280 #define HAVE_DECL_STRSTR 1
13285 cat >>confdefs.h
<<_ACEOF
13286 #define HAVE_DECL_STRSTR 0
13293 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13294 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13295 if test "${ac_cv_have_decl_getopt+set}" = set; then
13296 echo $ECHO_N "(cached) $ECHO_C" >&6
13298 cat >conftest.
$ac_ext <<_ACEOF
13301 cat confdefs.h
>>conftest.
$ac_ext
13302 cat >>conftest.
$ac_ext <<_ACEOF
13303 /* end confdefs.h. */
13304 $ac_includes_default
13309 char *p = (char *) getopt;
13316 rm -f conftest.
$ac_objext
13317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13318 (eval $ac_compile) 2>conftest.er1
13320 grep -v '^ *+' conftest.er1
>conftest.err
13322 cat conftest.err
>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); } &&
13325 { ac_try
='test -z "$ac_c_werror_flag"
13326 || test ! -s conftest.err'
13327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13328 (eval $ac_try) 2>&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; } &&
13332 { ac_try
='test -s conftest.$ac_objext'
13333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334 (eval $ac_try) 2>&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; }; then
13338 ac_cv_have_decl_getopt
=yes
13340 echo "$as_me: failed program was:" >&5
13341 sed 's/^/| /' conftest.
$ac_ext >&5
13343 ac_cv_have_decl_getopt
=no
13345 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13347 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13348 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13349 if test $ac_cv_have_decl_getopt = yes; then
13351 cat >>confdefs.h
<<_ACEOF
13352 #define HAVE_DECL_GETOPT 1
13357 cat >>confdefs.h
<<_ACEOF
13358 #define HAVE_DECL_GETOPT 0
13363 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13364 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13365 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13368 cat >conftest.
$ac_ext <<_ACEOF
13371 cat confdefs.h
>>conftest.
$ac_ext
13372 cat >>conftest.
$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 $ac_includes_default
13379 char *p = (char *) snprintf;
13386 rm -f conftest.
$ac_objext
13387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13388 (eval $ac_compile) 2>conftest.er1
13390 grep -v '^ *+' conftest.er1
>conftest.err
13392 cat conftest.err
>&5
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); } &&
13395 { ac_try
='test -z "$ac_c_werror_flag"
13396 || test ! -s conftest.err'
13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; } &&
13402 { ac_try
='test -s conftest.$ac_objext'
13403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404 (eval $ac_try) 2>&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
13408 ac_cv_have_decl_snprintf
=yes
13410 echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.
$ac_ext >&5
13413 ac_cv_have_decl_snprintf
=no
13415 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13417 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13418 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13419 if test $ac_cv_have_decl_snprintf = yes; then
13421 cat >>confdefs.h
<<_ACEOF
13422 #define HAVE_DECL_SNPRINTF 1
13427 cat >>confdefs.h
<<_ACEOF
13428 #define HAVE_DECL_SNPRINTF 0
13433 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13434 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13435 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
13438 cat >conftest.
$ac_ext <<_ACEOF
13441 cat confdefs.h
>>conftest.
$ac_ext
13442 cat >>conftest.
$ac_ext <<_ACEOF
13443 /* end confdefs.h. */
13444 $ac_includes_default
13449 char *p = (char *) vsnprintf;
13456 rm -f conftest.
$ac_objext
13457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13458 (eval $ac_compile) 2>conftest.er1
13460 grep -v '^ *+' conftest.er1
>conftest.err
13462 cat conftest.err
>&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } &&
13465 { ac_try
='test -z "$ac_c_werror_flag"
13466 || test ! -s conftest.err'
13467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; } &&
13472 { ac_try
='test -s conftest.$ac_objext'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; }; then
13478 ac_cv_have_decl_vsnprintf
=yes
13480 echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.
$ac_ext >&5
13483 ac_cv_have_decl_vsnprintf
=no
13485 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13487 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13488 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13489 if test $ac_cv_have_decl_vsnprintf = yes; then
13491 cat >>confdefs.h
<<_ACEOF
13492 #define HAVE_DECL_VSNPRINTF 1
13497 cat >>confdefs.h
<<_ACEOF
13498 #define HAVE_DECL_VSNPRINTF 0
13506 # ----------------------- #
13507 # Checks for structures. #
13508 # ----------------------- #
13510 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13511 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13512 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13513 echo $ECHO_N "(cached) $ECHO_C" >&6
13515 cat >conftest.
$ac_ext <<_ACEOF
13518 cat confdefs.h
>>conftest.
$ac_ext
13519 cat >>conftest.
$ac_ext <<_ACEOF
13520 /* end confdefs.h. */
13521 $ac_includes_default
13525 static struct stat ac_aggr;
13526 if (ac_aggr.st_blocks)
13532 rm -f conftest.
$ac_objext
13533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13534 (eval $ac_compile) 2>conftest.er1
13536 grep -v '^ *+' conftest.er1
>conftest.err
13538 cat conftest.err
>&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } &&
13541 { ac_try
='test -z "$ac_c_werror_flag"
13542 || test ! -s conftest.err'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; } &&
13548 { ac_try
='test -s conftest.$ac_objext'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
13554 ac_cv_member_struct_stat_st_blocks
=yes
13556 echo "$as_me: failed program was:" >&5
13557 sed 's/^/| /' conftest.
$ac_ext >&5
13559 cat >conftest.
$ac_ext <<_ACEOF
13562 cat confdefs.h
>>conftest.
$ac_ext
13563 cat >>conftest.
$ac_ext <<_ACEOF
13564 /* end confdefs.h. */
13565 $ac_includes_default
13569 static struct stat ac_aggr;
13570 if (sizeof ac_aggr.st_blocks)
13576 rm -f conftest.
$ac_objext
13577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13578 (eval $ac_compile) 2>conftest.er1
13580 grep -v '^ *+' conftest.er1
>conftest.err
13582 cat conftest.err
>&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } &&
13585 { ac_try
='test -z "$ac_c_werror_flag"
13586 || test ! -s conftest.err'
13587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; } &&
13592 { ac_try
='test -s conftest.$ac_objext'
13593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594 (eval $ac_try) 2>&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); }; }; then
13598 ac_cv_member_struct_stat_st_blocks
=yes
13600 echo "$as_me: failed program was:" >&5
13601 sed 's/^/| /' conftest.
$ac_ext >&5
13603 ac_cv_member_struct_stat_st_blocks
=no
13605 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13607 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13609 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13610 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13611 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13613 cat >>confdefs.h
<<_ACEOF
13614 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13620 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13621 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13622 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13623 echo $ECHO_N "(cached) $ECHO_C" >&6
13625 cat >conftest.
$ac_ext <<_ACEOF
13628 cat confdefs.h
>>conftest.
$ac_ext
13629 cat >>conftest.
$ac_ext <<_ACEOF
13630 /* end confdefs.h. */
13631 $ac_includes_default
13635 static struct stat ac_aggr;
13636 if (ac_aggr.st_blksize)
13642 rm -f conftest.
$ac_objext
13643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13644 (eval $ac_compile) 2>conftest.er1
13646 grep -v '^ *+' conftest.er1
>conftest.err
13648 cat conftest.err
>&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } &&
13651 { ac_try
='test -z "$ac_c_werror_flag"
13652 || test ! -s conftest.err'
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; } &&
13658 { ac_try
='test -s conftest.$ac_objext'
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13664 ac_cv_member_struct_stat_st_blksize
=yes
13666 echo "$as_me: failed program was:" >&5
13667 sed 's/^/| /' conftest.
$ac_ext >&5
13669 cat >conftest.
$ac_ext <<_ACEOF
13672 cat confdefs.h
>>conftest.
$ac_ext
13673 cat >>conftest.
$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13675 $ac_includes_default
13679 static struct stat ac_aggr;
13680 if (sizeof ac_aggr.st_blksize)
13686 rm -f conftest.
$ac_objext
13687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13688 (eval $ac_compile) 2>conftest.er1
13690 grep -v '^ *+' conftest.er1
>conftest.err
13692 cat conftest.err
>&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } &&
13695 { ac_try
='test -z "$ac_c_werror_flag"
13696 || test ! -s conftest.err'
13697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13698 (eval $ac_try) 2>&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); }; } &&
13702 { ac_try
='test -s conftest.$ac_objext'
13703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704 (eval $ac_try) 2>&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; }; then
13708 ac_cv_member_struct_stat_st_blksize
=yes
13710 echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.
$ac_ext >&5
13713 ac_cv_member_struct_stat_st_blksize
=no
13715 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13717 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13719 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13720 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13721 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13723 cat >>confdefs.h
<<_ACEOF
13724 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13731 # ------------------ #
13732 # Checks for types. #
13733 # ------------------ #
13735 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13736 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13737 if test "${ac_cv_type_signal+set}" = set; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 cat >conftest.
$ac_ext <<_ACEOF
13743 cat confdefs.h
>>conftest.
$ac_ext
13744 cat >>conftest.
$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13746 #include <sys/types.h>
13747 #include <signal.h>
13752 extern "C" void (*signal (int, void (*)(int)))(int);
13754 void (*signal ()) ();
13765 rm -f conftest.
$ac_objext
13766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13767 (eval $ac_compile) 2>conftest.er1
13769 grep -v '^ *+' conftest.er1
>conftest.err
13771 cat conftest.err
>&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); } &&
13774 { ac_try
='test -z "$ac_c_werror_flag"
13775 || test ! -s conftest.err'
13776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13777 (eval $ac_try) 2>&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); }; } &&
13781 { ac_try
='test -s conftest.$ac_objext'
13782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13783 (eval $ac_try) 2>&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
13787 ac_cv_type_signal
=void
13789 echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.
$ac_ext >&5
13792 ac_cv_type_signal
=int
13794 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13796 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13797 echo "${ECHO_T}$ac_cv_type_signal" >&6
13799 cat >>confdefs.h
<<_ACEOF
13800 #define RETSIGTYPE $ac_cv_type_signal
13804 echo "$as_me:$LINENO: checking for socklen_t" >&5
13805 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13806 if test "${ac_cv_type_socklen_t+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 cat >conftest.
$ac_ext <<_ACEOF
13812 cat confdefs.h
>>conftest.
$ac_ext
13813 cat >>conftest.
$ac_ext <<_ACEOF
13814 /* end confdefs.h. */
13815 #include <sys/types.h>
13816 #include <sys/socket.h>
13822 if ((socklen_t *) 0)
13824 if (sizeof (socklen_t))
13830 rm -f conftest.
$ac_objext
13831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13832 (eval $ac_compile) 2>conftest.er1
13834 grep -v '^ *+' conftest.er1
>conftest.err
13836 cat conftest.err
>&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } &&
13839 { ac_try
='test -z "$ac_c_werror_flag"
13840 || test ! -s conftest.err'
13841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842 (eval $ac_try) 2>&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; } &&
13846 { ac_try
='test -s conftest.$ac_objext'
13847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848 (eval $ac_try) 2>&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; }; then
13852 ac_cv_type_socklen_t
=yes
13854 echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.
$ac_ext >&5
13857 ac_cv_type_socklen_t
=no
13859 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13861 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
13862 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
13863 if test $ac_cv_type_socklen_t = yes; then
13865 cat >>confdefs.h
<<_ACEOF
13866 #define HAVE_SOCKLEN_T 1
13872 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13873 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13874 if test "${ac_cv_type_uintptr_t+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13877 cat >conftest.
$ac_ext <<_ACEOF
13880 cat confdefs.h
>>conftest.
$ac_ext
13881 cat >>conftest.
$ac_ext <<_ACEOF
13882 /* end confdefs.h. */
13883 #include <stdint.h>
13888 if ((uintptr_t *) 0)
13890 if (sizeof (uintptr_t))
13896 rm -f conftest.
$ac_objext
13897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13898 (eval $ac_compile) 2>conftest.er1
13900 grep -v '^ *+' conftest.er1
>conftest.err
13902 cat conftest.err
>&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } &&
13905 { ac_try
='test -z "$ac_c_werror_flag"
13906 || test ! -s conftest.err'
13907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908 (eval $ac_try) 2>&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; } &&
13912 { ac_try
='test -s conftest.$ac_objext'
13913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914 (eval $ac_try) 2>&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; }; then
13918 ac_cv_type_uintptr_t
=yes
13920 echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.
$ac_ext >&5
13923 ac_cv_type_uintptr_t
=no
13925 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13927 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13928 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13929 if test $ac_cv_type_uintptr_t = yes; then
13931 cat >>confdefs.h
<<_ACEOF
13932 #define HAVE_UINTPTR_T 1
13939 # ------------------------------------- #
13940 # Checks for compiler characteristics. #
13941 # ------------------------------------- #
13943 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13944 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13945 if test "${ac_cv_c_const+set}" = set; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13948 cat >conftest.
$ac_ext <<_ACEOF
13951 cat confdefs.h
>>conftest.
$ac_ext
13952 cat >>conftest.
$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13958 /* FIXME: Include the comments suggested by Paul. */
13959 #ifndef __cplusplus
13960 /* Ultrix mips cc rejects this. */
13961 typedef int charset[2];
13963 /* SunOS 4.1.1 cc rejects this. */
13964 char const *const *ccp;
13966 /* NEC SVR4.0.2 mips cc rejects this. */
13967 struct point {int x, y;};
13968 static struct point const zero = {0,0};
13969 /* AIX XL C 1.02.0.0 rejects this.
13970 It does not let you subtract one const X* pointer from another in
13971 an arm of an if-expression whose if-part is not a constant
13973 const char *g = "string";
13974 ccp = &g + (g ? g-g : 0);
13975 /* HPUX 7.0 cc rejects these. */
13978 ccp = (char const *const *) p;
13979 { /* SCO 3.2v4 cc rejects this. */
13981 char const *s = 0 ? (char *) 0 : (char const *) 0;
13985 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13986 int x[] = {25, 17};
13987 const int *foo = &x[0];
13990 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13991 typedef const int *iptr;
13995 { /* AIX XL C 1.02.0.0 rejects this saying
13996 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13997 struct s { int j; const int *ap[3]; };
13998 struct s *b; b->j = 5;
14000 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14001 const int foo = 10;
14009 rm -f conftest.
$ac_objext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14011 (eval $ac_compile) 2>conftest.er1
14013 grep -v '^ *+' conftest.er1
>conftest.err
14015 cat conftest.err
>&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); } &&
14018 { ac_try
='test -z "$ac_c_werror_flag"
14019 || test ! -s conftest.err'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; } &&
14025 { ac_try
='test -s conftest.$ac_objext'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }; then
14033 echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.
$ac_ext >&5
14038 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14040 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14041 echo "${ECHO_T}$ac_cv_c_const" >&6
14042 if test $ac_cv_c_const = no
; then
14044 cat >>confdefs.h
<<\_ACEOF
14050 echo "$as_me:$LINENO: checking for inline" >&5
14051 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14052 if test "${ac_cv_c_inline+set}" = set; then
14053 echo $ECHO_N "(cached) $ECHO_C" >&6
14056 for ac_kw
in inline __inline__ __inline
; do
14057 cat >conftest.
$ac_ext <<_ACEOF
14060 cat confdefs.h
>>conftest.
$ac_ext
14061 cat >>conftest.
$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14063 #ifndef __cplusplus
14065 static $ac_kw foo_t static_foo () {return 0; }
14066 $ac_kw foo_t foo () {return 0; }
14070 rm -f conftest.
$ac_objext
14071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14072 (eval $ac_compile) 2>conftest.er1
14074 grep -v '^ *+' conftest.er1
>conftest.err
14076 cat conftest.err
>&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } &&
14079 { ac_try
='test -z "$ac_c_werror_flag"
14080 || test ! -s conftest.err'
14081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14082 (eval $ac_try) 2>&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; } &&
14086 { ac_try
='test -s conftest.$ac_objext'
14087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088 (eval $ac_try) 2>&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
14092 ac_cv_c_inline
=$ac_kw; break
14094 echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.
$ac_ext >&5
14098 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14102 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14103 echo "${ECHO_T}$ac_cv_c_inline" >&6
14106 case $ac_cv_c_inline in
14109 case $ac_cv_c_inline in
14111 *) ac_val
=$ac_cv_c_inline;;
14113 cat >>confdefs.h
<<_ACEOF
14114 #ifndef __cplusplus
14115 #define inline $ac_val
14122 # ------------------------------ #
14123 # Checks for library functions. #
14124 # ------------------------------ #
14126 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14127 # for constant arguments. Useless!
14128 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14129 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14130 if test "${ac_cv_working_alloca_h+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 cat >conftest.
$ac_ext <<_ACEOF
14136 cat confdefs.h
>>conftest.
$ac_ext
14137 cat >>conftest.
$ac_ext <<_ACEOF
14138 /* end confdefs.h. */
14139 #include <alloca.h>
14143 char *p = (char *) alloca (2 * sizeof (int));
14148 rm -f conftest.
$ac_objext conftest
$ac_exeext
14149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14150 (eval $ac_link) 2>conftest.er1
14152 grep -v '^ *+' conftest.er1
>conftest.err
14154 cat conftest.err
>&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); } &&
14157 { ac_try
='test -z "$ac_c_werror_flag"
14158 || test ! -s conftest.err'
14159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160 (eval $ac_try) 2>&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }; } &&
14164 { ac_try
='test -s conftest$ac_exeext'
14165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166 (eval $ac_try) 2>&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; }; then
14170 ac_cv_working_alloca_h
=yes
14172 echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.
$ac_ext >&5
14175 ac_cv_working_alloca_h
=no
14177 rm -f conftest.err conftest.
$ac_objext \
14178 conftest
$ac_exeext conftest.
$ac_ext
14180 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14181 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14182 if test $ac_cv_working_alloca_h = yes; then
14184 cat >>confdefs.h
<<\_ACEOF
14185 #define HAVE_ALLOCA_H 1
14190 echo "$as_me:$LINENO: checking for alloca" >&5
14191 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14192 if test "${ac_cv_func_alloca_works+set}" = set; then
14193 echo $ECHO_N "(cached) $ECHO_C" >&6
14195 cat >conftest.
$ac_ext <<_ACEOF
14198 cat confdefs.h
>>conftest.
$ac_ext
14199 cat >>conftest.
$ac_ext <<_ACEOF
14200 /* end confdefs.h. */
14202 # define alloca __builtin_alloca
14205 # include <malloc.h>
14206 # define alloca _alloca
14209 # include <alloca.h>
14214 # ifndef alloca /* predefined by HP cc +Olibcalls */
14225 char *p = (char *) alloca (1);
14230 rm -f conftest.
$ac_objext conftest
$ac_exeext
14231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14232 (eval $ac_link) 2>conftest.er1
14234 grep -v '^ *+' conftest.er1
>conftest.err
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"
14240 || test ! -s conftest.err'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; } &&
14246 { ac_try
='test -s conftest$ac_exeext'
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; }; then
14252 ac_cv_func_alloca_works
=yes
14254 echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.
$ac_ext >&5
14257 ac_cv_func_alloca_works
=no
14259 rm -f conftest.err conftest.
$ac_objext \
14260 conftest
$ac_exeext conftest.
$ac_ext
14262 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14263 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14265 if test $ac_cv_func_alloca_works = yes; then
14267 cat >>confdefs.h
<<\_ACEOF
14268 #define HAVE_ALLOCA 1
14272 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14273 # that cause trouble. Some versions do not even contain alloca or
14274 # contain a buggy version. If you still want to use their alloca,
14275 # use ar to extract alloca.o from them instead of compiling alloca.c.
14277 ALLOCA
=alloca.
$ac_objext
14279 cat >>confdefs.h
<<\_ACEOF
14284 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14285 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14286 if test "${ac_cv_os_cray+set}" = set; then
14287 echo $ECHO_N "(cached) $ECHO_C" >&6
14289 cat >conftest.
$ac_ext <<_ACEOF
14292 cat confdefs.h
>>conftest.
$ac_ext
14293 cat >>conftest.
$ac_ext <<_ACEOF
14294 /* end confdefs.h. */
14295 #if defined(CRAY) && ! defined(CRAY2)
14302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14303 $EGREP "webecray" >/dev
/null
2>&1; then
14311 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14312 echo "${ECHO_T}$ac_cv_os_cray" >&6
14313 if test $ac_cv_os_cray = yes; then
14314 for ac_func
in _getb67 GETB67 getb67
; do
14315 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14316 echo "$as_me:$LINENO: checking for $ac_func" >&5
14317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14318 if eval "test \"\${$as_ac_var+set}\" = set"; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14321 cat >conftest.
$ac_ext <<_ACEOF
14324 cat confdefs.h
>>conftest.
$ac_ext
14325 cat >>conftest.
$ac_ext <<_ACEOF
14326 /* end confdefs.h. */
14327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14329 #define $ac_func innocuous_$ac_func
14331 /* System header to define __stub macros and hopefully few prototypes,
14332 which can conflict with char $ac_func (); below.
14333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14334 <limits.h> exists even on freestanding compilers. */
14337 # include <limits.h>
14339 # include <assert.h>
14344 /* Override any gcc2 internal prototype to avoid an error. */
14349 /* We use char because int might match the return type of a gcc2
14350 builtin and then its argument prototype would still apply. */
14352 /* The GNU C library defines this for functions which it implements
14353 to always fail with ENOSYS. Some functions are actually named
14354 something starting with __ and the normal name is an alias. */
14355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14358 char (*f) () = $ac_func;
14367 return f != $ac_func;
14372 rm -f conftest.
$ac_objext conftest
$ac_exeext
14373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14374 (eval $ac_link) 2>conftest.er1
14376 grep -v '^ *+' conftest.er1
>conftest.err
14378 cat conftest.err
>&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } &&
14381 { ac_try
='test -z "$ac_c_werror_flag"
14382 || test ! -s conftest.err'
14383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14384 (eval $ac_try) 2>&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); }; } &&
14388 { ac_try
='test -s conftest$ac_exeext'
14389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390 (eval $ac_try) 2>&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; }; then
14394 eval "$as_ac_var=yes"
14396 echo "$as_me: failed program was:" >&5
14397 sed 's/^/| /' conftest.
$ac_ext >&5
14399 eval "$as_ac_var=no"
14401 rm -f conftest.err conftest.
$ac_objext \
14402 conftest
$ac_exeext conftest.
$ac_ext
14404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14405 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14406 if test `eval echo '${'$as_ac_var'}'` = yes; then
14408 cat >>confdefs.h
<<_ACEOF
14409 #define CRAY_STACKSEG_END $ac_func
14418 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14419 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14420 if test "${ac_cv_c_stack_direction+set}" = set; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14423 if test "$cross_compiling" = yes; then
14424 ac_cv_c_stack_direction
=0
14426 cat >conftest.
$ac_ext <<_ACEOF
14429 cat confdefs.h
>>conftest.
$ac_ext
14430 cat >>conftest.
$ac_ext <<_ACEOF
14431 /* end confdefs.h. */
14433 find_stack_direction ()
14435 static char *addr = 0;
14440 return find_stack_direction ();
14443 return (&dummy > addr) ? 1 : -1;
14449 exit (find_stack_direction () < 0);
14452 rm -f conftest
$ac_exeext
14453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14454 (eval $ac_link) 2>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14459 (eval $ac_try) 2>&5
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); }; }; then
14463 ac_cv_c_stack_direction
=1
14465 echo "$as_me: program exited with status $ac_status" >&5
14466 echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.
$ac_ext >&5
14469 ( exit $ac_status )
14470 ac_cv_c_stack_direction
=-1
14472 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14475 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14476 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14478 cat >>confdefs.h
<<_ACEOF
14479 #define STACK_DIRECTION $ac_cv_c_stack_direction
14487 for ac_header
in stdlib.h unistd.h
14489 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14491 echo "$as_me:$LINENO: checking for $ac_header" >&5
14492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14494 echo $ECHO_N "(cached) $ECHO_C" >&6
14496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14499 # Is the header compilable?
14500 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14502 cat >conftest.
$ac_ext <<_ACEOF
14505 cat confdefs.h
>>conftest.
$ac_ext
14506 cat >>conftest.
$ac_ext <<_ACEOF
14507 /* end confdefs.h. */
14508 $ac_includes_default
14509 #include <$ac_header>
14511 rm -f conftest.
$ac_objext
14512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14513 (eval $ac_compile) 2>conftest.er1
14515 grep -v '^ *+' conftest.er1
>conftest.err
14517 cat conftest.err
>&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } &&
14520 { ac_try
='test -z "$ac_c_werror_flag"
14521 || test ! -s conftest.err'
14522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523 (eval $ac_try) 2>&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); }; } &&
14527 { ac_try
='test -s conftest.$ac_objext'
14528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14529 (eval $ac_try) 2>&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; }; then
14533 ac_header_compiler
=yes
14535 echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.
$ac_ext >&5
14538 ac_header_compiler
=no
14540 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14541 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14542 echo "${ECHO_T}$ac_header_compiler" >&6
14544 # Is the header present?
14545 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14547 cat >conftest.
$ac_ext <<_ACEOF
14550 cat confdefs.h
>>conftest.
$ac_ext
14551 cat >>conftest.
$ac_ext <<_ACEOF
14552 /* end confdefs.h. */
14553 #include <$ac_header>
14555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14556 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14558 grep -v '^ *+' conftest.er1
>conftest.err
14560 cat conftest.err
>&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } >/dev
/null
; then
14563 if test -s conftest.err
; then
14564 ac_cpp_err
=$ac_c_preproc_warn_flag
14565 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14572 if test -z "$ac_cpp_err"; then
14573 ac_header_preproc
=yes
14575 echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.
$ac_ext >&5
14578 ac_header_preproc
=no
14580 rm -f conftest.err conftest.
$ac_ext
14581 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14582 echo "${ECHO_T}$ac_header_preproc" >&6
14584 # So? What about this header?
14585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14591 ac_header_preproc
=yes
14594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14608 ## ------------------------------------------ ##
14609 ## Report this to the AC_PACKAGE_NAME lists. ##
14610 ## ------------------------------------------ ##
14613 sed "s/^/$as_me: WARNING: /" >&2
14616 echo "$as_me:$LINENO: checking for $ac_header" >&5
14617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
14621 eval "$as_ac_Header=\$ac_header_preproc"
14623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14628 cat >>confdefs.h
<<_ACEOF
14629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14637 for ac_func
in getpagesize
14639 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14640 echo "$as_me:$LINENO: checking for $ac_func" >&5
14641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14642 if eval "test \"\${$as_ac_var+set}\" = set"; then
14643 echo $ECHO_N "(cached) $ECHO_C" >&6
14645 cat >conftest.
$ac_ext <<_ACEOF
14648 cat confdefs.h
>>conftest.
$ac_ext
14649 cat >>conftest.
$ac_ext <<_ACEOF
14650 /* end confdefs.h. */
14651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14653 #define $ac_func innocuous_$ac_func
14655 /* System header to define __stub macros and hopefully few prototypes,
14656 which can conflict with char $ac_func (); below.
14657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14658 <limits.h> exists even on freestanding compilers. */
14661 # include <limits.h>
14663 # include <assert.h>
14668 /* Override any gcc2 internal prototype to avoid an error. */
14673 /* We use char because int might match the return type of a gcc2
14674 builtin and then its argument prototype would still apply. */
14676 /* The GNU C library defines this for functions which it implements
14677 to always fail with ENOSYS. Some functions are actually named
14678 something starting with __ and the normal name is an alias. */
14679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14682 char (*f) () = $ac_func;
14691 return f != $ac_func;
14696 rm -f conftest.
$ac_objext conftest
$ac_exeext
14697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14698 (eval $ac_link) 2>conftest.er1
14700 grep -v '^ *+' conftest.er1
>conftest.err
14702 cat conftest.err
>&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } &&
14705 { ac_try
='test -z "$ac_c_werror_flag"
14706 || test ! -s conftest.err'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; } &&
14712 { ac_try
='test -s conftest$ac_exeext'
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; }; then
14718 eval "$as_ac_var=yes"
14720 echo "$as_me: failed program was:" >&5
14721 sed 's/^/| /' conftest.
$ac_ext >&5
14723 eval "$as_ac_var=no"
14725 rm -f conftest.err conftest.
$ac_objext \
14726 conftest
$ac_exeext conftest.
$ac_ext
14728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14730 if test `eval echo '${'$as_ac_var'}'` = yes; then
14731 cat >>confdefs.h
<<_ACEOF
14732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14738 echo "$as_me:$LINENO: checking for working mmap" >&5
14739 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14740 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14743 if test "$cross_compiling" = yes; then
14744 ac_cv_func_mmap_fixed_mapped
=no
14746 cat >conftest.
$ac_ext <<_ACEOF
14749 cat confdefs.h
>>conftest.
$ac_ext
14750 cat >>conftest.
$ac_ext <<_ACEOF
14751 /* end confdefs.h. */
14752 $ac_includes_default
14753 /* malloc might have been renamed as rpl_malloc. */
14756 /* Thanks to Mike Haertel and Jim Avera for this test.
14757 Here is a matrix of mmap possibilities:
14758 mmap private not fixed
14759 mmap private fixed at somewhere currently unmapped
14760 mmap private fixed at somewhere already mapped
14761 mmap shared not fixed
14762 mmap shared fixed at somewhere currently unmapped
14763 mmap shared fixed at somewhere already mapped
14764 For private mappings, we should verify that changes cannot be read()
14765 back from the file, nor mmap's back from the file at a different
14766 address. (There have been systems where private was not correctly
14767 implemented like the infamous i386 svr4.0, and systems where the
14768 VM page cache was not coherent with the file system buffer cache
14769 like early versions of FreeBSD and possibly contemporary NetBSD.)
14770 For shared mappings, we should conversely verify that changes get
14771 propagated back to all the places they're supposed to be.
14773 Grep wants private fixed already mapped.
14774 The main things grep needs to know about mmap are:
14775 * does it exist and is it safe to write into the mmap'd area
14776 * how to use it (BSD variants) */
14779 #include <sys/mman.h>
14781 #if !STDC_HEADERS && !HAVE_STDLIB_H
14785 /* This mess was copied from the GNU getpagesize.h. */
14786 #if !HAVE_GETPAGESIZE
14787 /* Assume that all systems that can run configure have sys/param.h. */
14788 # if !HAVE_SYS_PARAM_H
14789 # define HAVE_SYS_PARAM_H 1
14792 # ifdef _SC_PAGESIZE
14793 # define getpagesize() sysconf(_SC_PAGESIZE)
14794 # else /* no _SC_PAGESIZE */
14795 # if HAVE_SYS_PARAM_H
14796 # include <sys/param.h>
14797 # ifdef EXEC_PAGESIZE
14798 # define getpagesize() EXEC_PAGESIZE
14799 # else /* no EXEC_PAGESIZE */
14801 # define getpagesize() NBPG * CLSIZE
14804 # endif /* no CLSIZE */
14805 # else /* no NBPG */
14807 # define getpagesize() NBPC
14808 # else /* no NBPC */
14810 # define getpagesize() PAGESIZE
14811 # endif /* PAGESIZE */
14812 # endif /* no NBPC */
14813 # endif /* no NBPG */
14814 # endif /* no EXEC_PAGESIZE */
14815 # else /* no HAVE_SYS_PARAM_H */
14816 # define getpagesize() 8192 /* punt totally */
14817 # endif /* no HAVE_SYS_PARAM_H */
14818 # endif /* no _SC_PAGESIZE */
14820 #endif /* no HAVE_GETPAGESIZE */
14825 char *data, *data2, *data3;
14829 pagesize = getpagesize ();
14831 /* First, make a file with some known garbage in it. */
14832 data = (char *) malloc (pagesize);
14835 for (i = 0; i < pagesize; ++i)
14836 *(data + i) = rand ();
14838 fd = creat ("conftest.mmap", 0600);
14841 if (write (fd, data, pagesize) != pagesize)
14845 /* Next, try to mmap the file at a fixed address which already has
14846 something else allocated at it. If we can, also make sure that
14847 we see the same garbage. */
14848 fd = open ("conftest.mmap", O_RDWR);
14851 data2 = (char *) malloc (2 * pagesize);
14854 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14855 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14856 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14858 for (i = 0; i < pagesize; ++i)
14859 if (*(data + i) != *(data2 + i))
14862 /* Finally, make sure that changes to the mapped area do not
14863 percolate back to the file as seen by read(). (This is a bug on
14864 some variants of i386 svr4.0.) */
14865 for (i = 0; i < pagesize; ++i)
14866 *(data2 + i) = *(data2 + i) + 1;
14867 data3 = (char *) malloc (pagesize);
14870 if (read (fd, data3, pagesize) != pagesize)
14872 for (i = 0; i < pagesize; ++i)
14873 if (*(data + i) != *(data3 + i))
14879 rm -f conftest
$ac_exeext
14880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14881 (eval $ac_link) 2>&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886 (eval $ac_try) 2>&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); }; }; then
14890 ac_cv_func_mmap_fixed_mapped
=yes
14892 echo "$as_me: program exited with status $ac_status" >&5
14893 echo "$as_me: failed program was:" >&5
14894 sed 's/^/| /' conftest.
$ac_ext >&5
14896 ( exit $ac_status )
14897 ac_cv_func_mmap_fixed_mapped
=no
14899 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14902 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14903 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14904 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14906 cat >>confdefs.h
<<\_ACEOF
14907 #define HAVE_MMAP 1
14911 rm -f conftest.mmap
14913 echo "$as_me:$LINENO: checking for pid_t" >&5
14914 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14915 if test "${ac_cv_type_pid_t+set}" = set; then
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14918 cat >conftest.
$ac_ext <<_ACEOF
14921 cat confdefs.h
>>conftest.
$ac_ext
14922 cat >>conftest.
$ac_ext <<_ACEOF
14923 /* end confdefs.h. */
14924 $ac_includes_default
14930 if (sizeof (pid_t))
14936 rm -f conftest.
$ac_objext
14937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14938 (eval $ac_compile) 2>conftest.er1
14940 grep -v '^ *+' conftest.er1
>conftest.err
14942 cat conftest.err
>&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } &&
14945 { ac_try
='test -z "$ac_c_werror_flag"
14946 || test ! -s conftest.err'
14947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14948 (eval $ac_try) 2>&5
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; } &&
14952 { ac_try
='test -s conftest.$ac_objext'
14953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954 (eval $ac_try) 2>&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; }; then
14958 ac_cv_type_pid_t
=yes
14960 echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.
$ac_ext >&5
14963 ac_cv_type_pid_t
=no
14965 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14967 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14968 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14969 if test $ac_cv_type_pid_t = yes; then
14973 cat >>confdefs.h
<<_ACEOF
14981 for ac_header
in unistd.h vfork.h
14983 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14985 echo "$as_me:$LINENO: checking for $ac_header" >&5
14986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14993 # Is the header compilable?
14994 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14996 cat >conftest.
$ac_ext <<_ACEOF
14999 cat confdefs.h
>>conftest.
$ac_ext
15000 cat >>conftest.
$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15002 $ac_includes_default
15003 #include <$ac_header>
15005 rm -f conftest.
$ac_objext
15006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15007 (eval $ac_compile) 2>conftest.er1
15009 grep -v '^ *+' conftest.er1
>conftest.err
15011 cat conftest.err
>&5
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); } &&
15014 { ac_try
='test -z "$ac_c_werror_flag"
15015 || test ! -s conftest.err'
15016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017 (eval $ac_try) 2>&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; } &&
15021 { ac_try
='test -s conftest.$ac_objext'
15022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15023 (eval $ac_try) 2>&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; }; then
15027 ac_header_compiler
=yes
15029 echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.
$ac_ext >&5
15032 ac_header_compiler
=no
15034 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15035 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15036 echo "${ECHO_T}$ac_header_compiler" >&6
15038 # Is the header present?
15039 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15041 cat >conftest.
$ac_ext <<_ACEOF
15044 cat confdefs.h
>>conftest.
$ac_ext
15045 cat >>conftest.
$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15047 #include <$ac_header>
15049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15050 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15052 grep -v '^ *+' conftest.er1
>conftest.err
15054 cat conftest.err
>&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } >/dev
/null
; then
15057 if test -s conftest.err
; then
15058 ac_cpp_err
=$ac_c_preproc_warn_flag
15059 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15066 if test -z "$ac_cpp_err"; then
15067 ac_header_preproc
=yes
15069 echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.
$ac_ext >&5
15072 ac_header_preproc
=no
15074 rm -f conftest.err conftest.
$ac_ext
15075 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15076 echo "${ECHO_T}$ac_header_preproc" >&6
15078 # So? What about this header?
15079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15085 ac_header_preproc
=yes
15088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15095 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15102 ## ------------------------------------------ ##
15103 ## Report this to the AC_PACKAGE_NAME lists. ##
15104 ## ------------------------------------------ ##
15107 sed "s/^/$as_me: WARNING: /" >&2
15110 echo "$as_me:$LINENO: checking for $ac_header" >&5
15111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15113 echo $ECHO_N "(cached) $ECHO_C" >&6
15115 eval "$as_ac_Header=\$ac_header_preproc"
15117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15122 cat >>confdefs.h
<<_ACEOF
15123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15132 for ac_func
in fork vfork
15134 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15135 echo "$as_me:$LINENO: checking for $ac_func" >&5
15136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15137 if eval "test \"\${$as_ac_var+set}\" = set"; then
15138 echo $ECHO_N "(cached) $ECHO_C" >&6
15140 cat >conftest.
$ac_ext <<_ACEOF
15143 cat confdefs.h
>>conftest.
$ac_ext
15144 cat >>conftest.
$ac_ext <<_ACEOF
15145 /* end confdefs.h. */
15146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15148 #define $ac_func innocuous_$ac_func
15150 /* System header to define __stub macros and hopefully few prototypes,
15151 which can conflict with char $ac_func (); below.
15152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15153 <limits.h> exists even on freestanding compilers. */
15156 # include <limits.h>
15158 # include <assert.h>
15163 /* Override any gcc2 internal prototype to avoid an error. */
15168 /* We use char because int might match the return type of a gcc2
15169 builtin and then its argument prototype would still apply. */
15171 /* The GNU C library defines this for functions which it implements
15172 to always fail with ENOSYS. Some functions are actually named
15173 something starting with __ and the normal name is an alias. */
15174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15177 char (*f) () = $ac_func;
15186 return f != $ac_func;
15191 rm -f conftest.
$ac_objext conftest
$ac_exeext
15192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15193 (eval $ac_link) 2>conftest.er1
15195 grep -v '^ *+' conftest.er1
>conftest.err
15197 cat conftest.err
>&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } &&
15200 { ac_try
='test -z "$ac_c_werror_flag"
15201 || test ! -s conftest.err'
15202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203 (eval $ac_try) 2>&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; } &&
15207 { ac_try
='test -s conftest$ac_exeext'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; }; then
15213 eval "$as_ac_var=yes"
15215 echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.
$ac_ext >&5
15218 eval "$as_ac_var=no"
15220 rm -f conftest.err conftest.
$ac_objext \
15221 conftest
$ac_exeext conftest.
$ac_ext
15223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15225 if test `eval echo '${'$as_ac_var'}'` = yes; then
15226 cat >>confdefs.h
<<_ACEOF
15227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15233 if test "x$ac_cv_func_fork" = xyes
; then
15234 echo "$as_me:$LINENO: checking for working fork" >&5
15235 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15236 if test "${ac_cv_func_fork_works+set}" = set; then
15237 echo $ECHO_N "(cached) $ECHO_C" >&6
15239 if test "$cross_compiling" = yes; then
15240 ac_cv_func_fork_works
=cross
15242 cat >conftest.
$ac_ext <<_ACEOF
15243 /* By Ruediger Kuhlmann. */
15244 #include <sys/types.h>
15246 # include <unistd.h>
15248 /* Some systems only have a dummy stub for fork() */
15256 rm -f conftest
$ac_exeext
15257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15258 (eval $ac_link) 2>&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263 (eval $ac_try) 2>&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; }; then
15267 ac_cv_func_fork_works
=yes
15269 echo "$as_me: program exited with status $ac_status" >&5
15270 echo "$as_me: failed program was:" >&5
15271 sed 's/^/| /' conftest.
$ac_ext >&5
15273 ( exit $ac_status )
15274 ac_cv_func_fork_works
=no
15276 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15279 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15280 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15283 ac_cv_func_fork_works
=$ac_cv_func_fork
15285 if test "x$ac_cv_func_fork_works" = xcross
; then
15287 *-*-amigaos* |
*-*-msdosdjgpp*)
15288 # Override, as these systems have only a dummy fork() stub
15289 ac_cv_func_fork_works
=no
15292 ac_cv_func_fork_works
=yes
15295 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15296 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15298 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15299 if test "x$ac_cv_func_vfork" = xyes
; then
15300 echo "$as_me:$LINENO: checking for working vfork" >&5
15301 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15302 if test "${ac_cv_func_vfork_works+set}" = set; then
15303 echo $ECHO_N "(cached) $ECHO_C" >&6
15305 if test "$cross_compiling" = yes; then
15306 ac_cv_func_vfork_works
=cross
15308 cat >conftest.
$ac_ext <<_ACEOF
15311 cat confdefs.h
>>conftest.
$ac_ext
15312 cat >>conftest.
$ac_ext <<_ACEOF
15313 /* end confdefs.h. */
15314 /* Thanks to Paul Eggert for this test. */
15316 #include <stdlib.h>
15317 #include <sys/types.h>
15318 #include <sys/stat.h>
15319 #include <sys/wait.h>
15321 # include <unistd.h>
15324 # include <vfork.h>
15326 /* On some sparc systems, changes by the child to local and incoming
15327 argument registers are propagated back to the parent. The compiler
15328 is told about this with #include <vfork.h>, but some compilers
15329 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15330 static variable whose address is put into a register that is
15331 clobbered by the vfork. */
15334 sparc_address_test (int arg)
15336 sparc_address_test (arg) int arg;
15339 static pid_t child;
15357 pid_t parent = getpid ();
15360 sparc_address_test (0);
15365 /* Here is another test for sparc vfork register problems. This
15366 test uses lots of local variables, at least as many local
15367 variables as main has allocated so far including compiler
15368 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15369 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15370 reuse the register of parent for one of the local variables,
15371 since it will think that parent can't possibly be used any more
15372 in this routine. Assigning to the local variable will thus
15373 munge parent in the parent process. */
15375 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15376 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15377 /* Convince the compiler that p..p7 are live; otherwise, it might
15378 use the same hardware register for all 8 local variables. */
15379 if (p != p1 || p != p2 || p != p3 || p != p4
15380 || p != p5 || p != p6 || p != p7)
15383 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15384 from child file descriptors. If the child closes a descriptor
15385 before it execs or exits, this munges the parent's descriptor
15386 as well. Test for this by closing stdout in the child. */
15387 _exit(close(fileno(stdout)) != 0);
15392 while (wait(&status) != child)
15395 /* Was there some problem with vforking? */
15398 /* Did the child fail? (This shouldn't happen.) */
15401 /* Did the vfork/compiler bug occur? */
15402 || parent != getpid()
15404 /* Did the file descriptor bug occur? */
15405 || fstat(fileno(stdout), &st) != 0
15410 rm -f conftest
$ac_exeext
15411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15412 (eval $ac_link) 2>&5
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15417 (eval $ac_try) 2>&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); }; }; then
15421 ac_cv_func_vfork_works
=yes
15423 echo "$as_me: program exited with status $ac_status" >&5
15424 echo "$as_me: failed program was:" >&5
15425 sed 's/^/| /' conftest.
$ac_ext >&5
15427 ( exit $ac_status )
15428 ac_cv_func_vfork_works
=no
15430 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15433 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15434 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15437 if test "x$ac_cv_func_fork_works" = xcross
; then
15438 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15439 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15440 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15443 if test "x$ac_cv_func_vfork_works" = xyes
; then
15445 cat >>confdefs.h
<<\_ACEOF
15446 #define HAVE_WORKING_VFORK 1
15451 cat >>confdefs.h
<<\_ACEOF
15456 if test "x$ac_cv_func_fork_works" = xyes
; then
15458 cat >>confdefs.h
<<\_ACEOF
15459 #define HAVE_WORKING_FORK 1
15466 for ac_func
in canonicalize_file_name realpath
15468 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15469 echo "$as_me:$LINENO: checking for $ac_func" >&5
15470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15471 if eval "test \"\${$as_ac_var+set}\" = set"; then
15472 echo $ECHO_N "(cached) $ECHO_C" >&6
15474 cat >conftest.
$ac_ext <<_ACEOF
15477 cat confdefs.h
>>conftest.
$ac_ext
15478 cat >>conftest.
$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15482 #define $ac_func innocuous_$ac_func
15484 /* System header to define __stub macros and hopefully few prototypes,
15485 which can conflict with char $ac_func (); below.
15486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15487 <limits.h> exists even on freestanding compilers. */
15490 # include <limits.h>
15492 # include <assert.h>
15497 /* Override any gcc2 internal prototype to avoid an error. */
15502 /* We use char because int might match the return type of a gcc2
15503 builtin and then its argument prototype would still apply. */
15505 /* The GNU C library defines this for functions which it implements
15506 to always fail with ENOSYS. Some functions are actually named
15507 something starting with __ and the normal name is an alias. */
15508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15511 char (*f) () = $ac_func;
15520 return f != $ac_func;
15525 rm -f conftest.
$ac_objext conftest
$ac_exeext
15526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15527 (eval $ac_link) 2>conftest.er1
15529 grep -v '^ *+' conftest.er1
>conftest.err
15531 cat conftest.err
>&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } &&
15534 { ac_try
='test -z "$ac_c_werror_flag"
15535 || test ! -s conftest.err'
15536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537 (eval $ac_try) 2>&5
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); }; } &&
15541 { ac_try
='test -s conftest$ac_exeext'
15542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543 (eval $ac_try) 2>&5
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); }; }; then
15547 eval "$as_ac_var=yes"
15549 echo "$as_me: failed program was:" >&5
15550 sed 's/^/| /' conftest.
$ac_ext >&5
15552 eval "$as_ac_var=no"
15554 rm -f conftest.err conftest.
$ac_objext \
15555 conftest
$ac_exeext conftest.
$ac_ext
15557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15559 if test `eval echo '${'$as_ac_var'}'` = yes; then
15560 cat >>confdefs.h
<<_ACEOF
15561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15569 for ac_func
in getuid getgid
15571 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15572 echo "$as_me:$LINENO: checking for $ac_func" >&5
15573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15574 if eval "test \"\${$as_ac_var+set}\" = set"; then
15575 echo $ECHO_N "(cached) $ECHO_C" >&6
15577 cat >conftest.
$ac_ext <<_ACEOF
15580 cat confdefs.h
>>conftest.
$ac_ext
15581 cat >>conftest.
$ac_ext <<_ACEOF
15582 /* end confdefs.h. */
15583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15585 #define $ac_func innocuous_$ac_func
15587 /* System header to define __stub macros and hopefully few prototypes,
15588 which can conflict with char $ac_func (); below.
15589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15590 <limits.h> exists even on freestanding compilers. */
15593 # include <limits.h>
15595 # include <assert.h>
15600 /* Override any gcc2 internal prototype to avoid an error. */
15605 /* We use char because int might match the return type of a gcc2
15606 builtin and then its argument prototype would still apply. */
15608 /* The GNU C library defines this for functions which it implements
15609 to always fail with ENOSYS. Some functions are actually named
15610 something starting with __ and the normal name is an alias. */
15611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15614 char (*f) () = $ac_func;
15623 return f != $ac_func;
15628 rm -f conftest.
$ac_objext conftest
$ac_exeext
15629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15630 (eval $ac_link) 2>conftest.er1
15632 grep -v '^ *+' conftest.er1
>conftest.err
15634 cat conftest.err
>&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); } &&
15637 { ac_try
='test -z "$ac_c_werror_flag"
15638 || test ! -s conftest.err'
15639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15640 (eval $ac_try) 2>&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; } &&
15644 { ac_try
='test -s conftest$ac_exeext'
15645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646 (eval $ac_try) 2>&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; }; then
15650 eval "$as_ac_var=yes"
15652 echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.
$ac_ext >&5
15655 eval "$as_ac_var=no"
15657 rm -f conftest.err conftest.
$ac_objext \
15658 conftest
$ac_exeext conftest.
$ac_ext
15660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15661 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15662 if test `eval echo '${'$as_ac_var'}'` = yes; then
15663 cat >>confdefs.h
<<_ACEOF
15664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15671 for ac_func
in poll
15673 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15674 echo "$as_me:$LINENO: checking for $ac_func" >&5
15675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15676 if eval "test \"\${$as_ac_var+set}\" = set"; then
15677 echo $ECHO_N "(cached) $ECHO_C" >&6
15679 cat >conftest.
$ac_ext <<_ACEOF
15682 cat confdefs.h
>>conftest.
$ac_ext
15683 cat >>conftest.
$ac_ext <<_ACEOF
15684 /* end confdefs.h. */
15685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15687 #define $ac_func innocuous_$ac_func
15689 /* System header to define __stub macros and hopefully few prototypes,
15690 which can conflict with char $ac_func (); below.
15691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15692 <limits.h> exists even on freestanding compilers. */
15695 # include <limits.h>
15697 # include <assert.h>
15702 /* Override any gcc2 internal prototype to avoid an error. */
15707 /* We use char because int might match the return type of a gcc2
15708 builtin and then its argument prototype would still apply. */
15710 /* The GNU C library defines this for functions which it implements
15711 to always fail with ENOSYS. Some functions are actually named
15712 something starting with __ and the normal name is an alias. */
15713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15716 char (*f) () = $ac_func;
15725 return f != $ac_func;
15730 rm -f conftest.
$ac_objext conftest
$ac_exeext
15731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15732 (eval $ac_link) 2>conftest.er1
15734 grep -v '^ *+' conftest.er1
>conftest.err
15736 cat conftest.err
>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } &&
15739 { ac_try
='test -z "$ac_c_werror_flag"
15740 || test ! -s conftest.err'
15741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742 (eval $ac_try) 2>&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; } &&
15746 { ac_try
='test -s conftest$ac_exeext'
15747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15748 (eval $ac_try) 2>&5
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); }; }; then
15752 eval "$as_ac_var=yes"
15754 echo "$as_me: failed program was:" >&5
15755 sed 's/^/| /' conftest.
$ac_ext >&5
15757 eval "$as_ac_var=no"
15759 rm -f conftest.err conftest.
$ac_objext \
15760 conftest
$ac_exeext conftest.
$ac_ext
15762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15764 if test `eval echo '${'$as_ac_var'}'` = yes; then
15765 cat >>confdefs.h
<<_ACEOF
15766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15773 for ac_func
in pread64
15775 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15776 echo "$as_me:$LINENO: checking for $ac_func" >&5
15777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15778 if eval "test \"\${$as_ac_var+set}\" = set"; then
15779 echo $ECHO_N "(cached) $ECHO_C" >&6
15781 cat >conftest.
$ac_ext <<_ACEOF
15784 cat confdefs.h
>>conftest.
$ac_ext
15785 cat >>conftest.
$ac_ext <<_ACEOF
15786 /* end confdefs.h. */
15787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15789 #define $ac_func innocuous_$ac_func
15791 /* System header to define __stub macros and hopefully few prototypes,
15792 which can conflict with char $ac_func (); below.
15793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15794 <limits.h> exists even on freestanding compilers. */
15797 # include <limits.h>
15799 # include <assert.h>
15804 /* Override any gcc2 internal prototype to avoid an error. */
15809 /* We use char because int might match the return type of a gcc2
15810 builtin and then its argument prototype would still apply. */
15812 /* The GNU C library defines this for functions which it implements
15813 to always fail with ENOSYS. Some functions are actually named
15814 something starting with __ and the normal name is an alias. */
15815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15818 char (*f) () = $ac_func;
15827 return f != $ac_func;
15832 rm -f conftest.
$ac_objext conftest
$ac_exeext
15833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15834 (eval $ac_link) 2>conftest.er1
15836 grep -v '^ *+' conftest.er1
>conftest.err
15838 cat conftest.err
>&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } &&
15841 { ac_try
='test -z "$ac_c_werror_flag"
15842 || test ! -s conftest.err'
15843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15844 (eval $ac_try) 2>&5
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); }; } &&
15848 { ac_try
='test -s conftest$ac_exeext'
15849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15850 (eval $ac_try) 2>&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); }; }; then
15854 eval "$as_ac_var=yes"
15856 echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.
$ac_ext >&5
15859 eval "$as_ac_var=no"
15861 rm -f conftest.err conftest.
$ac_objext \
15862 conftest
$ac_exeext conftest.
$ac_ext
15864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15866 if test `eval echo '${'$as_ac_var'}'` = yes; then
15867 cat >>confdefs.h
<<_ACEOF
15868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15875 for ac_func
in sbrk
15877 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15878 echo "$as_me:$LINENO: checking for $ac_func" >&5
15879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15880 if eval "test \"\${$as_ac_var+set}\" = set"; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15883 cat >conftest.
$ac_ext <<_ACEOF
15886 cat confdefs.h
>>conftest.
$ac_ext
15887 cat >>conftest.
$ac_ext <<_ACEOF
15888 /* end confdefs.h. */
15889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15891 #define $ac_func innocuous_$ac_func
15893 /* System header to define __stub macros and hopefully few prototypes,
15894 which can conflict with char $ac_func (); below.
15895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15896 <limits.h> exists even on freestanding compilers. */
15899 # include <limits.h>
15901 # include <assert.h>
15906 /* Override any gcc2 internal prototype to avoid an error. */
15911 /* We use char because int might match the return type of a gcc2
15912 builtin and then its argument prototype would still apply. */
15914 /* The GNU C library defines this for functions which it implements
15915 to always fail with ENOSYS. Some functions are actually named
15916 something starting with __ and the normal name is an alias. */
15917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15920 char (*f) () = $ac_func;
15929 return f != $ac_func;
15934 rm -f conftest.
$ac_objext conftest
$ac_exeext
15935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15936 (eval $ac_link) 2>conftest.er1
15938 grep -v '^ *+' conftest.er1
>conftest.err
15940 cat conftest.err
>&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } &&
15943 { ac_try
='test -z "$ac_c_werror_flag"
15944 || test ! -s conftest.err'
15945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946 (eval $ac_try) 2>&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; } &&
15950 { ac_try
='test -s conftest$ac_exeext'
15951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; }; then
15956 eval "$as_ac_var=yes"
15958 echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.
$ac_ext >&5
15961 eval "$as_ac_var=no"
15963 rm -f conftest.err conftest.
$ac_objext \
15964 conftest
$ac_exeext conftest.
$ac_ext
15966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15968 if test `eval echo '${'$as_ac_var'}'` = yes; then
15969 cat >>confdefs.h
<<_ACEOF
15970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15978 for ac_func
in setpgid setpgrp
15980 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15981 echo "$as_me:$LINENO: checking for $ac_func" >&5
15982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15983 if eval "test \"\${$as_ac_var+set}\" = set"; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15986 cat >conftest.
$ac_ext <<_ACEOF
15989 cat confdefs.h
>>conftest.
$ac_ext
15990 cat >>conftest.
$ac_ext <<_ACEOF
15991 /* end confdefs.h. */
15992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15994 #define $ac_func innocuous_$ac_func
15996 /* System header to define __stub macros and hopefully few prototypes,
15997 which can conflict with char $ac_func (); below.
15998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15999 <limits.h> exists even on freestanding compilers. */
16002 # include <limits.h>
16004 # include <assert.h>
16009 /* Override any gcc2 internal prototype to avoid an error. */
16014 /* We use char because int might match the return type of a gcc2
16015 builtin and then its argument prototype would still apply. */
16017 /* The GNU C library defines this for functions which it implements
16018 to always fail with ENOSYS. Some functions are actually named
16019 something starting with __ and the normal name is an alias. */
16020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16023 char (*f) () = $ac_func;
16032 return f != $ac_func;
16037 rm -f conftest.
$ac_objext conftest
$ac_exeext
16038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16039 (eval $ac_link) 2>conftest.er1
16041 grep -v '^ *+' conftest.er1
>conftest.err
16043 cat conftest.err
>&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); } &&
16046 { ac_try
='test -z "$ac_c_werror_flag"
16047 || test ! -s conftest.err'
16048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049 (eval $ac_try) 2>&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); }; } &&
16053 { ac_try
='test -s conftest$ac_exeext'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; }; then
16059 eval "$as_ac_var=yes"
16061 echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.
$ac_ext >&5
16064 eval "$as_ac_var=no"
16066 rm -f conftest.err conftest.
$ac_objext \
16067 conftest
$ac_exeext conftest.
$ac_ext
16069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16070 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16071 if test `eval echo '${'$as_ac_var'}'` = yes; then
16072 cat >>confdefs.h
<<_ACEOF
16073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16082 for ac_func
in sigaction sigprocmask sigsetmask
16084 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16085 echo "$as_me:$LINENO: checking for $ac_func" >&5
16086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16087 if eval "test \"\${$as_ac_var+set}\" = set"; then
16088 echo $ECHO_N "(cached) $ECHO_C" >&6
16090 cat >conftest.
$ac_ext <<_ACEOF
16093 cat confdefs.h
>>conftest.
$ac_ext
16094 cat >>conftest.
$ac_ext <<_ACEOF
16095 /* end confdefs.h. */
16096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16098 #define $ac_func innocuous_$ac_func
16100 /* System header to define __stub macros and hopefully few prototypes,
16101 which can conflict with char $ac_func (); below.
16102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16103 <limits.h> exists even on freestanding compilers. */
16106 # include <limits.h>
16108 # include <assert.h>
16113 /* Override any gcc2 internal prototype to avoid an error. */
16118 /* We use char because int might match the return type of a gcc2
16119 builtin and then its argument prototype would still apply. */
16121 /* The GNU C library defines this for functions which it implements
16122 to always fail with ENOSYS. Some functions are actually named
16123 something starting with __ and the normal name is an alias. */
16124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16127 char (*f) () = $ac_func;
16136 return f != $ac_func;
16141 rm -f conftest.
$ac_objext conftest
$ac_exeext
16142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16143 (eval $ac_link) 2>conftest.er1
16145 grep -v '^ *+' conftest.er1
>conftest.err
16147 cat conftest.err
>&5
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); } &&
16150 { ac_try
='test -z "$ac_c_werror_flag"
16151 || test ! -s conftest.err'
16152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; } &&
16157 { ac_try
='test -s conftest$ac_exeext'
16158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159 (eval $ac_try) 2>&5
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); }; }; then
16163 eval "$as_ac_var=yes"
16165 echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.
$ac_ext >&5
16168 eval "$as_ac_var=no"
16170 rm -f conftest.err conftest.
$ac_objext \
16171 conftest
$ac_exeext conftest.
$ac_ext
16173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16174 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16175 if test `eval echo '${'$as_ac_var'}'` = yes; then
16176 cat >>confdefs.h
<<_ACEOF
16177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16184 for ac_func
in socketpair
16186 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16187 echo "$as_me:$LINENO: checking for $ac_func" >&5
16188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16189 if eval "test \"\${$as_ac_var+set}\" = set"; then
16190 echo $ECHO_N "(cached) $ECHO_C" >&6
16192 cat >conftest.
$ac_ext <<_ACEOF
16195 cat confdefs.h
>>conftest.
$ac_ext
16196 cat >>conftest.
$ac_ext <<_ACEOF
16197 /* end confdefs.h. */
16198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16200 #define $ac_func innocuous_$ac_func
16202 /* System header to define __stub macros and hopefully few prototypes,
16203 which can conflict with char $ac_func (); below.
16204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16205 <limits.h> exists even on freestanding compilers. */
16208 # include <limits.h>
16210 # include <assert.h>
16215 /* Override any gcc2 internal prototype to avoid an error. */
16220 /* We use char because int might match the return type of a gcc2
16221 builtin and then its argument prototype would still apply. */
16223 /* The GNU C library defines this for functions which it implements
16224 to always fail with ENOSYS. Some functions are actually named
16225 something starting with __ and the normal name is an alias. */
16226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16229 char (*f) () = $ac_func;
16238 return f != $ac_func;
16243 rm -f conftest.
$ac_objext conftest
$ac_exeext
16244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16245 (eval $ac_link) 2>conftest.er1
16247 grep -v '^ *+' conftest.er1
>conftest.err
16249 cat conftest.err
>&5
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); } &&
16252 { ac_try
='test -z "$ac_c_werror_flag"
16253 || test ! -s conftest.err'
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; } &&
16259 { ac_try
='test -s conftest$ac_exeext'
16260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16261 (eval $ac_try) 2>&5
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); }; }; then
16265 eval "$as_ac_var=yes"
16267 echo "$as_me: failed program was:" >&5
16268 sed 's/^/| /' conftest.
$ac_ext >&5
16270 eval "$as_ac_var=no"
16272 rm -f conftest.err conftest.
$ac_objext \
16273 conftest
$ac_exeext conftest.
$ac_ext
16275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16277 if test `eval echo '${'$as_ac_var'}'` = yes; then
16278 cat >>confdefs.h
<<_ACEOF
16279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16286 for ac_func
in syscall
16288 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16289 echo "$as_me:$LINENO: checking for $ac_func" >&5
16290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16291 if eval "test \"\${$as_ac_var+set}\" = set"; then
16292 echo $ECHO_N "(cached) $ECHO_C" >&6
16294 cat >conftest.
$ac_ext <<_ACEOF
16297 cat confdefs.h
>>conftest.
$ac_ext
16298 cat >>conftest.
$ac_ext <<_ACEOF
16299 /* end confdefs.h. */
16300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16302 #define $ac_func innocuous_$ac_func
16304 /* System header to define __stub macros and hopefully few prototypes,
16305 which can conflict with char $ac_func (); below.
16306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16307 <limits.h> exists even on freestanding compilers. */
16310 # include <limits.h>
16312 # include <assert.h>
16317 /* Override any gcc2 internal prototype to avoid an error. */
16322 /* We use char because int might match the return type of a gcc2
16323 builtin and then its argument prototype would still apply. */
16325 /* The GNU C library defines this for functions which it implements
16326 to always fail with ENOSYS. Some functions are actually named
16327 something starting with __ and the normal name is an alias. */
16328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16331 char (*f) () = $ac_func;
16340 return f != $ac_func;
16345 rm -f conftest.
$ac_objext conftest
$ac_exeext
16346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16347 (eval $ac_link) 2>conftest.er1
16349 grep -v '^ *+' conftest.er1
>conftest.err
16351 cat conftest.err
>&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); } &&
16354 { ac_try
='test -z "$ac_c_werror_flag"
16355 || test ! -s conftest.err'
16356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16357 (eval $ac_try) 2>&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); }; } &&
16361 { ac_try
='test -s conftest$ac_exeext'
16362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363 (eval $ac_try) 2>&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; }; then
16367 eval "$as_ac_var=yes"
16369 echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.
$ac_ext >&5
16372 eval "$as_ac_var=no"
16374 rm -f conftest.err conftest.
$ac_objext \
16375 conftest
$ac_exeext conftest.
$ac_ext
16377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16379 if test `eval echo '${'$as_ac_var'}'` = yes; then
16380 cat >>confdefs.h
<<_ACEOF
16381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16388 for ac_func
in ttrace
16390 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16391 echo "$as_me:$LINENO: checking for $ac_func" >&5
16392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16393 if eval "test \"\${$as_ac_var+set}\" = set"; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
16396 cat >conftest.
$ac_ext <<_ACEOF
16399 cat confdefs.h
>>conftest.
$ac_ext
16400 cat >>conftest.
$ac_ext <<_ACEOF
16401 /* end confdefs.h. */
16402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16404 #define $ac_func innocuous_$ac_func
16406 /* System header to define __stub macros and hopefully few prototypes,
16407 which can conflict with char $ac_func (); below.
16408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16409 <limits.h> exists even on freestanding compilers. */
16412 # include <limits.h>
16414 # include <assert.h>
16419 /* Override any gcc2 internal prototype to avoid an error. */
16424 /* We use char because int might match the return type of a gcc2
16425 builtin and then its argument prototype would still apply. */
16427 /* The GNU C library defines this for functions which it implements
16428 to always fail with ENOSYS. Some functions are actually named
16429 something starting with __ and the normal name is an alias. */
16430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16433 char (*f) () = $ac_func;
16442 return f != $ac_func;
16447 rm -f conftest.
$ac_objext conftest
$ac_exeext
16448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16449 (eval $ac_link) 2>conftest.er1
16451 grep -v '^ *+' conftest.er1
>conftest.err
16453 cat conftest.err
>&5
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); } &&
16456 { ac_try
='test -z "$ac_c_werror_flag"
16457 || test ! -s conftest.err'
16458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16459 (eval $ac_try) 2>&5
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; } &&
16463 { ac_try
='test -s conftest$ac_exeext'
16464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465 (eval $ac_try) 2>&5
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; }; then
16469 eval "$as_ac_var=yes"
16471 echo "$as_me: failed program was:" >&5
16472 sed 's/^/| /' conftest.
$ac_ext >&5
16474 eval "$as_ac_var=no"
16476 rm -f conftest.err conftest.
$ac_objext \
16477 conftest
$ac_exeext conftest.
$ac_ext
16479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16480 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16481 if test `eval echo '${'$as_ac_var'}'` = yes; then
16482 cat >>confdefs.h
<<_ACEOF
16483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16490 for ac_func
in wborder
16492 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16493 echo "$as_me:$LINENO: checking for $ac_func" >&5
16494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16495 if eval "test \"\${$as_ac_var+set}\" = set"; then
16496 echo $ECHO_N "(cached) $ECHO_C" >&6
16498 cat >conftest.
$ac_ext <<_ACEOF
16501 cat confdefs.h
>>conftest.
$ac_ext
16502 cat >>conftest.
$ac_ext <<_ACEOF
16503 /* end confdefs.h. */
16504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16506 #define $ac_func innocuous_$ac_func
16508 /* System header to define __stub macros and hopefully few prototypes,
16509 which can conflict with char $ac_func (); below.
16510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16511 <limits.h> exists even on freestanding compilers. */
16514 # include <limits.h>
16516 # include <assert.h>
16521 /* Override any gcc2 internal prototype to avoid an error. */
16526 /* We use char because int might match the return type of a gcc2
16527 builtin and then its argument prototype would still apply. */
16529 /* The GNU C library defines this for functions which it implements
16530 to always fail with ENOSYS. Some functions are actually named
16531 something starting with __ and the normal name is an alias. */
16532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16535 char (*f) () = $ac_func;
16544 return f != $ac_func;
16549 rm -f conftest.
$ac_objext conftest
$ac_exeext
16550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16551 (eval $ac_link) 2>conftest.er1
16553 grep -v '^ *+' conftest.er1
>conftest.err
16555 cat conftest.err
>&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); } &&
16558 { ac_try
='test -z "$ac_c_werror_flag"
16559 || test ! -s conftest.err'
16560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561 (eval $ac_try) 2>&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; } &&
16565 { ac_try
='test -s conftest$ac_exeext'
16566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567 (eval $ac_try) 2>&5
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }; }; then
16571 eval "$as_ac_var=yes"
16573 echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.
$ac_ext >&5
16576 eval "$as_ac_var=no"
16578 rm -f conftest.err conftest.
$ac_objext \
16579 conftest
$ac_exeext conftest.
$ac_ext
16581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16583 if test `eval echo '${'$as_ac_var'}'` = yes; then
16584 cat >>confdefs.h
<<_ACEOF
16585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16592 # Check the return and argument types of ptrace. No canned test for
16593 # this, so roll our own.
16594 gdb_ptrace_headers
='
16595 #if HAVE_SYS_TYPES_H
16596 # include <sys/types.h>
16598 #if HAVE_SYS_PTRACE_H
16599 # include <sys/ptrace.h>
16602 # include <unistd.h>
16605 # There is no point in checking if we don't have a prototype.
16606 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
16607 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
16608 if test "${ac_cv_have_decl_ptrace+set}" = set; then
16609 echo $ECHO_N "(cached) $ECHO_C" >&6
16611 cat >conftest.
$ac_ext <<_ACEOF
16614 cat confdefs.h
>>conftest.
$ac_ext
16615 cat >>conftest.
$ac_ext <<_ACEOF
16616 /* end confdefs.h. */
16617 $gdb_ptrace_headers
16623 char *p = (char *) ptrace;
16630 rm -f conftest.
$ac_objext
16631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16632 (eval $ac_compile) 2>conftest.er1
16634 grep -v '^ *+' conftest.er1
>conftest.err
16636 cat conftest.err
>&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); } &&
16639 { ac_try
='test -z "$ac_c_werror_flag"
16640 || test ! -s conftest.err'
16641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642 (eval $ac_try) 2>&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); }; } &&
16646 { ac_try
='test -s conftest.$ac_objext'
16647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16648 (eval $ac_try) 2>&5
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); }; }; then
16652 ac_cv_have_decl_ptrace
=yes
16654 echo "$as_me: failed program was:" >&5
16655 sed 's/^/| /' conftest.
$ac_ext >&5
16657 ac_cv_have_decl_ptrace
=no
16659 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16661 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16662 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16663 if test $ac_cv_have_decl_ptrace = yes; then
16665 cat >>confdefs.h
<<_ACEOF
16666 #define HAVE_DECL_PTRACE 1
16671 cat >>confdefs.h
<<_ACEOF
16672 #define HAVE_DECL_PTRACE 0
16676 : ${gdb_cv_func_ptrace_ret='int'}
16677 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16682 # Check return type.
16683 echo "$as_me:$LINENO: checking return type of ptrace" >&5
16684 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16685 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
16686 echo $ECHO_N "(cached) $ECHO_C" >&6
16688 cat >conftest.
$ac_ext <<_ACEOF
16691 cat confdefs.h
>>conftest.
$ac_ext
16692 cat >>conftest.
$ac_ext <<_ACEOF
16693 /* end confdefs.h. */
16694 $gdb_ptrace_headers
16698 extern int ptrace ();
16703 rm -f conftest.
$ac_objext
16704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16705 (eval $ac_compile) 2>conftest.er1
16707 grep -v '^ *+' conftest.er1
>conftest.err
16709 cat conftest.err
>&5
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); } &&
16712 { ac_try
='test -z "$ac_c_werror_flag"
16713 || test ! -s conftest.err'
16714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715 (eval $ac_try) 2>&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; } &&
16719 { ac_try
='test -s conftest.$ac_objext'
16720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721 (eval $ac_try) 2>&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; }; then
16725 gdb_cv_func_ptrace_ret
='int'
16727 echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.
$ac_ext >&5
16730 gdb_cv_func_ptrace_ret
='long'
16732 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16734 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16735 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
16737 cat >>confdefs.h
<<_ACEOF
16738 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
16741 # Check argument types.
16742 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16743 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16744 if test "${gdb_cv_func_ptrace_args+set}" = set; then
16745 echo $ECHO_N "(cached) $ECHO_C" >&6
16748 for gdb_arg1
in 'int' 'long'; do
16749 for gdb_arg2
in 'pid_t' 'int' 'long'; do
16750 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long'; do
16751 for gdb_arg4
in 'int' 'long'; do
16752 cat >conftest.
$ac_ext <<_ACEOF
16755 cat confdefs.h
>>conftest.
$ac_ext
16756 cat >>conftest.
$ac_ext <<_ACEOF
16757 /* end confdefs.h. */
16758 $gdb_ptrace_headers
16763 extern $gdb_cv_func_ptrace_ret
16764 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16770 rm -f conftest.
$ac_objext
16771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16772 (eval $ac_compile) 2>conftest.er1
16774 grep -v '^ *+' conftest.er1
>conftest.err
16776 cat conftest.err
>&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); } &&
16779 { ac_try
='test -z "$ac_c_werror_flag"
16780 || test ! -s conftest.err'
16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782 (eval $ac_try) 2>&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; } &&
16786 { ac_try
='test -s conftest.$ac_objext'
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; }; then
16792 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16795 echo "$as_me: failed program was:" >&5
16796 sed 's/^/| /' conftest.
$ac_ext >&5
16799 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16800 for gdb_arg5
in 'int *' 'int' 'long'; do
16801 cat >conftest.
$ac_ext <<_ACEOF
16804 cat confdefs.h
>>conftest.
$ac_ext
16805 cat >>conftest.
$ac_ext <<_ACEOF
16806 /* end confdefs.h. */
16807 $gdb_ptrace_headers
16812 extern $gdb_cv_func_ptrace_ret
16813 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16819 rm -f conftest.
$ac_objext
16820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16821 (eval $ac_compile) 2>conftest.er1
16823 grep -v '^ *+' conftest.er1
>conftest.err
16825 cat conftest.err
>&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } &&
16828 { ac_try
='test -z "$ac_c_werror_flag"
16829 || test ! -s conftest.err'
16830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831 (eval $ac_try) 2>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; } &&
16835 { ac_try
='test -s conftest.$ac_objext'
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; }; then
16842 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16845 echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.
$ac_ext >&5
16849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16855 # Provide a safe default value.
16856 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16859 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16860 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16861 ac_save_IFS
=$IFS; IFS
=','
16862 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16866 cat >>confdefs.h
<<_ACEOF
16867 #define PTRACE_TYPE_ARG3 $3
16870 if test -n "$5"; then
16872 cat >>confdefs.h
<<_ACEOF
16873 #define PTRACE_TYPE_ARG5 $5
16878 if test "$cross_compiling" = no
; then
16879 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16880 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16881 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16884 if test "$cross_compiling" = yes; then
16885 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16886 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16887 { (exit 1); exit 1; }; }
16889 cat >conftest.
$ac_ext <<_ACEOF
16892 cat confdefs.h
>>conftest.
$ac_ext
16893 cat >>conftest.
$ac_ext <<_ACEOF
16894 /* end confdefs.h. */
16896 # include <unistd.h>
16902 /* If this system has a BSD-style setpgrp which takes arguments,
16903 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16904 exit successfully. */
16905 exit (setpgrp (1,1) == -1 ? 0 : 1);
16910 rm -f conftest
$ac_exeext
16911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16912 (eval $ac_link) 2>&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917 (eval $ac_try) 2>&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; }; then
16921 ac_cv_func_setpgrp_void
=no
16923 echo "$as_me: program exited with status $ac_status" >&5
16924 echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.
$ac_ext >&5
16927 ( exit $ac_status )
16928 ac_cv_func_setpgrp_void
=yes
16930 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16933 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16934 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16935 if test $ac_cv_func_setpgrp_void = yes; then
16937 cat >>confdefs.h
<<\_ACEOF
16938 #define SETPGRP_VOID 1
16944 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16945 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16946 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16947 echo $ECHO_N "(cached) $ECHO_C" >&6
16949 cat >conftest.
$ac_ext <<_ACEOF
16952 cat confdefs.h
>>conftest.
$ac_ext
16953 cat >>conftest.
$ac_ext <<_ACEOF
16954 /* end confdefs.h. */
16956 #include <unistd.h>
16962 if (setpgrp(1,1) == -1)
16971 rm -f conftest.
$ac_objext
16972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16973 (eval $ac_compile) 2>conftest.er1
16975 grep -v '^ *+' conftest.er1
>conftest.err
16977 cat conftest.err
>&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); } &&
16980 { ac_try
='test -z "$ac_c_werror_flag"
16981 || test ! -s conftest.err'
16982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16983 (eval $ac_try) 2>&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; } &&
16987 { ac_try
='test -s conftest.$ac_objext'
16988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989 (eval $ac_try) 2>&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; }; then
16993 ac_cv_func_setpgrp_void
=no
16995 echo "$as_me: failed program was:" >&5
16996 sed 's/^/| /' conftest.
$ac_ext >&5
16998 ac_cv_func_setpgrp_void
=yes
17000 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17002 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17003 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17004 if test $ac_cv_func_setpgrp_void = yes; then
17005 cat >>confdefs.h
<<\_ACEOF
17006 #define SETPGRP_VOID 1
17012 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
17013 # since sigsetjmp might only be defined as a macro.
17014 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17015 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
17016 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
17017 echo $ECHO_N "(cached) $ECHO_C" >&6
17019 cat >conftest.
$ac_ext <<_ACEOF
17022 cat confdefs.h
>>conftest.
$ac_ext
17023 cat >>conftest.
$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17026 #include <setjmp.h>
17031 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
17036 rm -f conftest.
$ac_objext
17037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17038 (eval $ac_compile) 2>conftest.er1
17040 grep -v '^ *+' conftest.er1
>conftest.err
17042 cat conftest.err
>&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); } &&
17045 { ac_try
='test -z "$ac_c_werror_flag"
17046 || test ! -s conftest.err'
17047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17048 (eval $ac_try) 2>&5
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; } &&
17052 { ac_try
='test -s conftest.$ac_objext'
17053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17054 (eval $ac_try) 2>&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); }; }; then
17058 gdb_cv_func_sigsetjmp
=yes
17060 echo "$as_me: failed program was:" >&5
17061 sed 's/^/| /' conftest.
$ac_ext >&5
17063 gdb_cv_func_sigsetjmp
=no
17065 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17067 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
17068 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
17069 if test $gdb_cv_func_sigsetjmp = yes; then
17071 cat >>confdefs.h
<<\_ACEOF
17072 #define HAVE_SIGSETJMP 1
17077 # Assume we'll default to using the included libiberty regex.
17078 gdb_use_included_regex
=yes
17080 # However, if the system regex is GNU regex, then default to *not*
17081 # using the included regex.
17082 echo "$as_me:$LINENO: checking for GNU regex" >&5
17083 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
17084 if test "${gdb_cv_have_gnu_regex+set}" = set; then
17085 echo $ECHO_N "(cached) $ECHO_C" >&6
17087 cat >conftest.
$ac_ext <<_ACEOF
17090 cat confdefs.h
>>conftest.
$ac_ext
17091 cat >>conftest.
$ac_ext <<_ACEOF
17092 /* end confdefs.h. */
17093 #include <gnu-versions.h>
17097 #define REGEX_INTERFACE_VERSION 1
17098 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
17099 # error "Version mismatch"
17105 rm -f conftest.
$ac_objext
17106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17107 (eval $ac_compile) 2>conftest.er1
17109 grep -v '^ *+' conftest.er1
>conftest.err
17111 cat conftest.err
>&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); } &&
17114 { ac_try
='test -z "$ac_c_werror_flag"
17115 || test ! -s conftest.err'
17116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17117 (eval $ac_try) 2>&5
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; } &&
17121 { ac_try
='test -s conftest.$ac_objext'
17122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123 (eval $ac_try) 2>&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); }; }; then
17127 gdb_cv_have_gnu_regex
=yes
17129 echo "$as_me: failed program was:" >&5
17130 sed 's/^/| /' conftest.
$ac_ext >&5
17132 gdb_cv_have_gnu_regex
=no
17134 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17136 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
17137 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
17138 if test $gdb_cv_have_gnu_regex = yes; then
17139 gdb_use_included_regex
=no
17143 # Check whether --with-included-regex or --without-included-regex was given.
17144 if test "${with_included_regex+set}" = set; then
17145 withval
="$with_included_regex"
17146 gdb_with_regex
=$withval
17148 gdb_with_regex
=$gdb_use_included_regex
17150 if test "$gdb_with_regex" = yes; then
17152 cat >>confdefs.h
<<\_ACEOF
17153 #define USE_INCLUDED_REGEX 1
17158 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
17159 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
17160 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
17161 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
17162 echo $ECHO_N "(cached) $ECHO_C" >&6
17164 cat >conftest.
$ac_ext <<_ACEOF
17167 cat confdefs.h
>>conftest.
$ac_ext
17168 cat >>conftest.
$ac_ext <<_ACEOF
17169 /* end confdefs.h. */
17170 #include <sys/param.h>
17171 #include <sys/proc.h>
17177 static struct thread ac_aggr;
17178 if (ac_aggr.td_pcb)
17184 rm -f conftest.
$ac_objext
17185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17186 (eval $ac_compile) 2>conftest.er1
17188 grep -v '^ *+' conftest.er1
>conftest.err
17190 cat conftest.err
>&5
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); } &&
17193 { ac_try
='test -z "$ac_c_werror_flag"
17194 || test ! -s conftest.err'
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; } &&
17200 { ac_try
='test -s conftest.$ac_objext'
17201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17202 (eval $ac_try) 2>&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); }; }; then
17206 ac_cv_member_struct_thread_td_pcb
=yes
17208 echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.
$ac_ext >&5
17211 cat >conftest.
$ac_ext <<_ACEOF
17214 cat confdefs.h
>>conftest.
$ac_ext
17215 cat >>conftest.
$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17217 #include <sys/param.h>
17218 #include <sys/proc.h>
17224 static struct thread ac_aggr;
17225 if (sizeof ac_aggr.td_pcb)
17231 rm -f conftest.
$ac_objext
17232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17233 (eval $ac_compile) 2>conftest.er1
17235 grep -v '^ *+' conftest.er1
>conftest.err
17237 cat conftest.err
>&5
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); } &&
17240 { ac_try
='test -z "$ac_c_werror_flag"
17241 || test ! -s conftest.err'
17242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17243 (eval $ac_try) 2>&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); }; } &&
17247 { ac_try
='test -s conftest.$ac_objext'
17248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17249 (eval $ac_try) 2>&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; }; then
17253 ac_cv_member_struct_thread_td_pcb
=yes
17255 echo "$as_me: failed program was:" >&5
17256 sed 's/^/| /' conftest.
$ac_ext >&5
17258 ac_cv_member_struct_thread_td_pcb
=no
17260 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17262 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17264 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
17265 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
17266 if test $ac_cv_member_struct_thread_td_pcb = yes; then
17268 cat >>confdefs.h
<<_ACEOF
17269 #define HAVE_STRUCT_THREAD_TD_PCB 1
17276 # See if <sys/lwp.h> defines `struct lwp`.
17277 echo "$as_me:$LINENO: checking for struct lwp" >&5
17278 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
17279 if test "${gdb_cv_struct_lwp+set}" = set; then
17280 echo $ECHO_N "(cached) $ECHO_C" >&6
17282 cat >conftest.
$ac_ext <<_ACEOF
17285 cat confdefs.h
>>conftest.
$ac_ext
17286 cat >>conftest.
$ac_ext <<_ACEOF
17287 /* end confdefs.h. */
17288 #include <sys/param.h>
17289 #include <sys/lwp.h>
17298 rm -f conftest.
$ac_objext
17299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17300 (eval $ac_compile) 2>conftest.er1
17302 grep -v '^ *+' conftest.er1
>conftest.err
17304 cat conftest.err
>&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } &&
17307 { ac_try
='test -z "$ac_c_werror_flag"
17308 || test ! -s conftest.err'
17309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; } &&
17314 { ac_try
='test -s conftest.$ac_objext'
17315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17316 (eval $ac_try) 2>&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; }; then
17320 gdb_cv_struct_lwp
=yes
17322 echo "$as_me: failed program was:" >&5
17323 sed 's/^/| /' conftest.
$ac_ext >&5
17325 gdb_cv_struct_lwp
=no
17327 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17329 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
17330 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
17331 if test $gdb_cv_struct_lwp = yes; then
17333 cat >>confdefs.h
<<\_ACEOF
17334 #define HAVE_STRUCT_LWP 1
17339 # See if <machine/reg.h> degines `struct reg'.
17340 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
17341 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
17342 if test "${gdb_cv_struct_reg+set}" = set; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17345 cat >conftest.
$ac_ext <<_ACEOF
17348 cat confdefs.h
>>conftest.
$ac_ext
17349 cat >>conftest.
$ac_ext <<_ACEOF
17350 /* end confdefs.h. */
17351 #include <sys/types.h>
17352 #include <machine/reg.h>
17361 rm -f conftest.
$ac_objext
17362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17363 (eval $ac_compile) 2>conftest.er1
17365 grep -v '^ *+' conftest.er1
>conftest.err
17367 cat conftest.err
>&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); } &&
17370 { ac_try
='test -z "$ac_c_werror_flag"
17371 || test ! -s conftest.err'
17372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373 (eval $ac_try) 2>&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; } &&
17377 { ac_try
='test -s conftest.$ac_objext'
17378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17379 (eval $ac_try) 2>&5
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; }; then
17383 gdb_cv_struct_reg
=yes
17385 echo "$as_me: failed program was:" >&5
17386 sed 's/^/| /' conftest.
$ac_ext >&5
17388 gdb_cv_struct_reg
=no
17390 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17392 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
17393 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
17394 if test $gdb_cv_struct_reg = yes; then
17396 cat >>confdefs.h
<<\_ACEOF
17397 #define HAVE_STRUCT_REG 1
17402 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
17403 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
17404 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
17405 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
17406 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
17407 echo $ECHO_N "(cached) $ECHO_C" >&6
17409 cat >conftest.
$ac_ext <<_ACEOF
17412 cat confdefs.h
>>conftest.
$ac_ext
17413 cat >>conftest.
$ac_ext <<_ACEOF
17414 /* end confdefs.h. */
17415 #include <machine/reg.h>
17420 static struct reg ac_aggr;
17427 rm -f conftest.
$ac_objext
17428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17429 (eval $ac_compile) 2>conftest.er1
17431 grep -v '^ *+' conftest.er1
>conftest.err
17433 cat conftest.err
>&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } &&
17436 { ac_try
='test -z "$ac_c_werror_flag"
17437 || test ! -s conftest.err'
17438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; } &&
17443 { ac_try
='test -s conftest.$ac_objext'
17444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17445 (eval $ac_try) 2>&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; }; then
17449 ac_cv_member_struct_reg_r_fs
=yes
17451 echo "$as_me: failed program was:" >&5
17452 sed 's/^/| /' conftest.
$ac_ext >&5
17454 cat >conftest.
$ac_ext <<_ACEOF
17457 cat confdefs.h
>>conftest.
$ac_ext
17458 cat >>conftest.
$ac_ext <<_ACEOF
17459 /* end confdefs.h. */
17460 #include <machine/reg.h>
17465 static struct reg ac_aggr;
17466 if (sizeof ac_aggr.r_fs)
17472 rm -f conftest.
$ac_objext
17473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17474 (eval $ac_compile) 2>conftest.er1
17476 grep -v '^ *+' conftest.er1
>conftest.err
17478 cat conftest.err
>&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); } &&
17481 { ac_try
='test -z "$ac_c_werror_flag"
17482 || test ! -s conftest.err'
17483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484 (eval $ac_try) 2>&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; } &&
17488 { ac_try
='test -s conftest.$ac_objext'
17489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17490 (eval $ac_try) 2>&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); }; }; then
17494 ac_cv_member_struct_reg_r_fs
=yes
17496 echo "$as_me: failed program was:" >&5
17497 sed 's/^/| /' conftest.
$ac_ext >&5
17499 ac_cv_member_struct_reg_r_fs
=no
17501 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17503 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17505 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
17506 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
17507 if test $ac_cv_member_struct_reg_r_fs = yes; then
17509 cat >>confdefs.h
<<_ACEOF
17510 #define HAVE_STRUCT_REG_R_FS 1
17515 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
17516 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
17517 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
17518 echo $ECHO_N "(cached) $ECHO_C" >&6
17520 cat >conftest.
$ac_ext <<_ACEOF
17523 cat confdefs.h
>>conftest.
$ac_ext
17524 cat >>conftest.
$ac_ext <<_ACEOF
17525 /* end confdefs.h. */
17526 #include <machine/reg.h>
17531 static struct reg ac_aggr;
17538 rm -f conftest.
$ac_objext
17539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17540 (eval $ac_compile) 2>conftest.er1
17542 grep -v '^ *+' conftest.er1
>conftest.err
17544 cat conftest.err
>&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); } &&
17547 { ac_try
='test -z "$ac_c_werror_flag"
17548 || test ! -s conftest.err'
17549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17550 (eval $ac_try) 2>&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); }; } &&
17554 { ac_try
='test -s conftest.$ac_objext'
17555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17556 (eval $ac_try) 2>&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); }; }; then
17560 ac_cv_member_struct_reg_r_gs
=yes
17562 echo "$as_me: failed program was:" >&5
17563 sed 's/^/| /' conftest.
$ac_ext >&5
17565 cat >conftest.
$ac_ext <<_ACEOF
17568 cat confdefs.h
>>conftest.
$ac_ext
17569 cat >>conftest.
$ac_ext <<_ACEOF
17570 /* end confdefs.h. */
17571 #include <machine/reg.h>
17576 static struct reg ac_aggr;
17577 if (sizeof ac_aggr.r_gs)
17583 rm -f conftest.
$ac_objext
17584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17585 (eval $ac_compile) 2>conftest.er1
17587 grep -v '^ *+' conftest.er1
>conftest.err
17589 cat conftest.err
>&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); } &&
17592 { ac_try
='test -z "$ac_c_werror_flag"
17593 || test ! -s conftest.err'
17594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595 (eval $ac_try) 2>&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; } &&
17599 { ac_try
='test -s conftest.$ac_objext'
17600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601 (eval $ac_try) 2>&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; }; then
17605 ac_cv_member_struct_reg_r_gs
=yes
17607 echo "$as_me: failed program was:" >&5
17608 sed 's/^/| /' conftest.
$ac_ext >&5
17610 ac_cv_member_struct_reg_r_gs
=no
17612 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17614 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17616 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17617 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17618 if test $ac_cv_member_struct_reg_r_gs = yes; then
17620 cat >>confdefs.h
<<_ACEOF
17621 #define HAVE_STRUCT_REG_R_GS 1
17628 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17629 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17630 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17631 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
17632 echo $ECHO_N "(cached) $ECHO_C" >&6
17634 cat >conftest.
$ac_ext <<_ACEOF
17637 cat confdefs.h
>>conftest.
$ac_ext
17638 cat >>conftest.
$ac_ext <<_ACEOF
17639 /* end confdefs.h. */
17640 #include <sys/ptrace.h>
17649 rm -f conftest.
$ac_objext
17650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17651 (eval $ac_compile) 2>conftest.er1
17653 grep -v '^ *+' conftest.er1
>conftest.err
17655 cat conftest.err
>&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } &&
17658 { ac_try
='test -z "$ac_c_werror_flag"
17659 || test ! -s conftest.err'
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; } &&
17665 { ac_try
='test -s conftest.$ac_objext'
17666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; }; then
17671 gdb_cv_have_ptrace_getregs
=yes
17673 echo "$as_me: failed program was:" >&5
17674 sed 's/^/| /' conftest.
$ac_ext >&5
17676 gdb_cv_have_ptrace_getregs
=no
17678 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17681 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17682 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17683 if test $gdb_cv_have_ptrace_getregs = yes; then
17685 cat >>confdefs.h
<<\_ACEOF
17686 #define HAVE_PTRACE_GETREGS 1
17691 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17692 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17693 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17694 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
17695 echo $ECHO_N "(cached) $ECHO_C" >&6
17697 cat >conftest.
$ac_ext <<_ACEOF
17700 cat confdefs.h
>>conftest.
$ac_ext
17701 cat >>conftest.
$ac_ext <<_ACEOF
17702 /* end confdefs.h. */
17703 #include <sys/ptrace.h>
17712 rm -f conftest.
$ac_objext
17713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17714 (eval $ac_compile) 2>conftest.er1
17716 grep -v '^ *+' conftest.er1
>conftest.err
17718 cat conftest.err
>&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } &&
17721 { ac_try
='test -z "$ac_c_werror_flag"
17722 || test ! -s conftest.err'
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; } &&
17728 { ac_try
='test -s conftest.$ac_objext'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; }; then
17734 gdb_cv_have_ptrace_getfpxregs
=yes
17736 echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.
$ac_ext >&5
17739 gdb_cv_have_ptrace_getfpxregs
=no
17741 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17744 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17745 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17746 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
17748 cat >>confdefs.h
<<\_ACEOF
17749 #define HAVE_PTRACE_GETFPXREGS 1
17754 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17755 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17756 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17757 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
17758 echo $ECHO_N "(cached) $ECHO_C" >&6
17760 cat >conftest.
$ac_ext <<_ACEOF
17763 cat confdefs.h
>>conftest.
$ac_ext
17764 cat >>conftest.
$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17766 #include <sys/types.h>
17767 #include <sys/ptrace.h>
17776 rm -f conftest.
$ac_objext
17777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17778 (eval $ac_compile) 2>conftest.er1
17780 grep -v '^ *+' conftest.er1
>conftest.err
17782 cat conftest.err
>&5
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); } &&
17785 { ac_try
='test -z "$ac_c_werror_flag"
17786 || test ! -s conftest.err'
17787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17788 (eval $ac_try) 2>&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); }; } &&
17792 { ac_try
='test -s conftest.$ac_objext'
17793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17794 (eval $ac_try) 2>&5
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); }; }; then
17798 gdb_cv_have_pt_getdbregs
=yes
17800 echo "$as_me: failed program was:" >&5
17801 sed 's/^/| /' conftest.
$ac_ext >&5
17803 gdb_cv_have_pt_getdbregs
=no
17805 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17808 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17809 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17810 if test $gdb_cv_have_pt_getdbregs = yes; then
17812 cat >>confdefs.h
<<\_ACEOF
17813 #define HAVE_PT_GETDBREGS 1
17818 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17819 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17820 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17821 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
17822 echo $ECHO_N "(cached) $ECHO_C" >&6
17824 cat >conftest.
$ac_ext <<_ACEOF
17827 cat confdefs.h
>>conftest.
$ac_ext
17828 cat >>conftest.
$ac_ext <<_ACEOF
17829 /* end confdefs.h. */
17830 #include <sys/types.h>
17831 #include <sys/ptrace.h>
17840 rm -f conftest.
$ac_objext
17841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17842 (eval $ac_compile) 2>conftest.er1
17844 grep -v '^ *+' conftest.er1
>conftest.err
17846 cat conftest.err
>&5
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); } &&
17849 { ac_try
='test -z "$ac_c_werror_flag"
17850 || test ! -s conftest.err'
17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; } &&
17856 { ac_try
='test -s conftest.$ac_objext'
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; }; then
17862 gdb_cv_have_pt_getxmmregs
=yes
17864 echo "$as_me: failed program was:" >&5
17865 sed 's/^/| /' conftest.
$ac_ext >&5
17867 gdb_cv_have_pt_getxmmregs
=no
17869 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17872 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17873 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17874 if test $gdb_cv_have_pt_getxmmregs = yes; then
17876 cat >>confdefs.h
<<\_ACEOF
17877 #define HAVE_PT_GETXMMREGS 1
17882 # If we are configured native on GNU/Linux, work around problems with
17884 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
17886 if test "${target}" = "${host}"; then
17888 i
[3456]86-*-linux*)
17890 cat >>confdefs.h
<<\_ACEOF
17891 #define START_INFERIOR_TRAPS_EXPECTED 2
17895 cat >>confdefs.h
<<\_ACEOF
17896 #define sys_quotactl 1
17900 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
17902 cat >>confdefs.h
<<\_ACEOF
17903 #define NEW_PROC_API 1
17907 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9])
17909 cat >>confdefs.h
<<\_ACEOF
17910 #define NEW_PROC_API 1
17915 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17917 cat >>confdefs.h
<<\_ACEOF
17918 #define _KMEMUSER 1
17925 if test "$ac_cv_header_sys_procfs_h" = yes; then
17926 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17927 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17928 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17929 echo $ECHO_N "(cached) $ECHO_C" >&6
17931 cat >conftest.
$ac_ext <<_ACEOF
17934 cat confdefs.h
>>conftest.
$ac_ext
17935 cat >>conftest.
$ac_ext <<_ACEOF
17936 /* end confdefs.h. */
17939 #include <sys/procfs.h>
17948 rm -f conftest.
$ac_objext
17949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17950 (eval $ac_compile) 2>conftest.er1
17952 grep -v '^ *+' conftest.er1
>conftest.err
17954 cat conftest.err
>&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); } &&
17957 { ac_try
='test -z "$ac_c_werror_flag"
17958 || test ! -s conftest.err'
17959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17960 (eval $ac_try) 2>&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); }; } &&
17964 { ac_try
='test -s conftest.$ac_objext'
17965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17966 (eval $ac_try) 2>&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); }; }; then
17970 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
17972 echo "$as_me: failed program was:" >&5
17973 sed 's/^/| /' conftest.
$ac_ext >&5
17975 bfd_cv_have_sys_procfs_type_pstatus_t
=no
17978 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17981 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17983 cat >>confdefs.h
<<\_ACEOF
17984 #define HAVE_PSTATUS_T 1
17988 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17989 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17991 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17992 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17993 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17994 echo $ECHO_N "(cached) $ECHO_C" >&6
17996 cat >conftest.
$ac_ext <<_ACEOF
17999 cat confdefs.h
>>conftest.
$ac_ext
18000 cat >>conftest.
$ac_ext <<_ACEOF
18001 /* end confdefs.h. */
18004 #include <sys/procfs.h>
18013 rm -f conftest.
$ac_objext
18014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18015 (eval $ac_compile) 2>conftest.er1
18017 grep -v '^ *+' conftest.er1
>conftest.err
18019 cat conftest.err
>&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } &&
18022 { ac_try
='test -z "$ac_c_werror_flag"
18023 || test ! -s conftest.err'
18024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025 (eval $ac_try) 2>&5
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }; } &&
18029 { ac_try
='test -s conftest.$ac_objext'
18030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18031 (eval $ac_try) 2>&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); }; }; then
18035 bfd_cv_have_sys_procfs_type_prrun_t
=yes
18037 echo "$as_me: failed program was:" >&5
18038 sed 's/^/| /' conftest.
$ac_ext >&5
18040 bfd_cv_have_sys_procfs_type_prrun_t
=no
18043 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18046 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
18048 cat >>confdefs.h
<<\_ACEOF
18049 #define HAVE_PRRUN_T 1
18053 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
18054 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
18056 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
18057 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
18058 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
18059 echo $ECHO_N "(cached) $ECHO_C" >&6
18061 cat >conftest.
$ac_ext <<_ACEOF
18064 cat confdefs.h
>>conftest.
$ac_ext
18065 cat >>conftest.
$ac_ext <<_ACEOF
18066 /* end confdefs.h. */
18069 #include <sys/procfs.h>
18078 rm -f conftest.
$ac_objext
18079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18080 (eval $ac_compile) 2>conftest.er1
18082 grep -v '^ *+' conftest.er1
>conftest.err
18084 cat conftest.err
>&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); } &&
18087 { ac_try
='test -z "$ac_c_werror_flag"
18088 || test ! -s conftest.err'
18089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
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
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; }; then
18100 bfd_cv_have_sys_procfs_type_gregset_t
=yes
18102 echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.
$ac_ext >&5
18105 bfd_cv_have_sys_procfs_type_gregset_t
=no
18108 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18111 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
18113 cat >>confdefs.h
<<\_ACEOF
18114 #define HAVE_GREGSET_T 1
18118 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
18119 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
18121 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
18122 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
18123 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
18124 echo $ECHO_N "(cached) $ECHO_C" >&6
18126 cat >conftest.
$ac_ext <<_ACEOF
18129 cat confdefs.h
>>conftest.
$ac_ext
18130 cat >>conftest.
$ac_ext <<_ACEOF
18131 /* end confdefs.h. */
18134 #include <sys/procfs.h>
18143 rm -f conftest.
$ac_objext
18144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18145 (eval $ac_compile) 2>conftest.er1
18147 grep -v '^ *+' conftest.er1
>conftest.err
18149 cat conftest.err
>&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } &&
18152 { ac_try
='test -z "$ac_c_werror_flag"
18153 || test ! -s conftest.err'
18154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155 (eval $ac_try) 2>&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); }; } &&
18159 { ac_try
='test -s conftest.$ac_objext'
18160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161 (eval $ac_try) 2>&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; }; then
18165 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
18167 echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.
$ac_ext >&5
18170 bfd_cv_have_sys_procfs_type_fpregset_t
=no
18173 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18176 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
18178 cat >>confdefs.h
<<\_ACEOF
18179 #define HAVE_FPREGSET_T 1
18183 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
18184 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
18186 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
18187 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
18188 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
18189 echo $ECHO_N "(cached) $ECHO_C" >&6
18191 cat >conftest.
$ac_ext <<_ACEOF
18194 cat confdefs.h
>>conftest.
$ac_ext
18195 cat >>conftest.
$ac_ext <<_ACEOF
18196 /* end confdefs.h. */
18199 #include <sys/procfs.h>
18208 rm -f conftest.
$ac_objext
18209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18210 (eval $ac_compile) 2>conftest.er1
18212 grep -v '^ *+' conftest.er1
>conftest.err
18214 cat conftest.err
>&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } &&
18217 { ac_try
='test -z "$ac_c_werror_flag"
18218 || test ! -s conftest.err'
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; } &&
18224 { ac_try
='test -s conftest.$ac_objext'
18225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18226 (eval $ac_try) 2>&5
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; }; then
18230 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
18232 echo "$as_me: failed program was:" >&5
18233 sed 's/^/| /' conftest.
$ac_ext >&5
18235 bfd_cv_have_sys_procfs_type_prgregset_t
=no
18238 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18241 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
18243 cat >>confdefs.h
<<\_ACEOF
18244 #define HAVE_PRGREGSET_T 1
18248 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
18249 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
18251 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
18252 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
18253 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
18254 echo $ECHO_N "(cached) $ECHO_C" >&6
18256 cat >conftest.
$ac_ext <<_ACEOF
18259 cat confdefs.h
>>conftest.
$ac_ext
18260 cat >>conftest.
$ac_ext <<_ACEOF
18261 /* end confdefs.h. */
18264 #include <sys/procfs.h>
18273 rm -f conftest.
$ac_objext
18274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18275 (eval $ac_compile) 2>conftest.er1
18277 grep -v '^ *+' conftest.er1
>conftest.err
18279 cat conftest.err
>&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); } &&
18282 { ac_try
='test -z "$ac_c_werror_flag"
18283 || test ! -s conftest.err'
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; } &&
18289 { ac_try
='test -s conftest.$ac_objext'
18290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18291 (eval $ac_try) 2>&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); }; }; then
18295 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
18297 echo "$as_me: failed program was:" >&5
18298 sed 's/^/| /' conftest.
$ac_ext >&5
18300 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
18303 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18306 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18308 cat >>confdefs.h
<<\_ACEOF
18309 #define HAVE_PRFPREGSET_T 1
18313 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
18314 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
18316 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
18317 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
18318 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
18319 echo $ECHO_N "(cached) $ECHO_C" >&6
18321 cat >conftest.
$ac_ext <<_ACEOF
18324 cat confdefs.h
>>conftest.
$ac_ext
18325 cat >>conftest.
$ac_ext <<_ACEOF
18326 /* end confdefs.h. */
18329 #include <sys/procfs.h>
18338 rm -f conftest.
$ac_objext
18339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18340 (eval $ac_compile) 2>conftest.er1
18342 grep -v '^ *+' conftest.er1
>conftest.err
18344 cat conftest.err
>&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } &&
18347 { ac_try
='test -z "$ac_c_werror_flag"
18348 || test ! -s conftest.err'
18349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350 (eval $ac_try) 2>&5
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; } &&
18354 { ac_try
='test -s conftest.$ac_objext'
18355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356 (eval $ac_try) 2>&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); }; }; then
18360 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
18362 echo "$as_me: failed program was:" >&5
18363 sed 's/^/| /' conftest.
$ac_ext >&5
18365 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
18368 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18371 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
18373 cat >>confdefs.h
<<\_ACEOF
18374 #define HAVE_PRGREGSET32_T 1
18378 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
18379 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
18381 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
18382 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
18383 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
18384 echo $ECHO_N "(cached) $ECHO_C" >&6
18386 cat >conftest.
$ac_ext <<_ACEOF
18389 cat confdefs.h
>>conftest.
$ac_ext
18390 cat >>conftest.
$ac_ext <<_ACEOF
18391 /* end confdefs.h. */
18394 #include <sys/procfs.h>
18398 prfpregset32_t avar
18403 rm -f conftest.
$ac_objext
18404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18405 (eval $ac_compile) 2>conftest.er1
18407 grep -v '^ *+' conftest.er1
>conftest.err
18409 cat conftest.err
>&5
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); } &&
18412 { ac_try
='test -z "$ac_c_werror_flag"
18413 || test ! -s conftest.err'
18414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18415 (eval $ac_try) 2>&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); }; } &&
18419 { ac_try
='test -s conftest.$ac_objext'
18420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18421 (eval $ac_try) 2>&5
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); }; }; then
18425 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
18427 echo "$as_me: failed program was:" >&5
18428 sed 's/^/| /' conftest.
$ac_ext >&5
18430 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
18433 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18436 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
18438 cat >>confdefs.h
<<\_ACEOF
18439 #define HAVE_PRFPREGSET32_T 1
18443 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18444 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
18446 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18447 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18448 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18449 echo $ECHO_N "(cached) $ECHO_C" >&6
18451 cat >conftest.
$ac_ext <<_ACEOF
18454 cat confdefs.h
>>conftest.
$ac_ext
18455 cat >>conftest.
$ac_ext <<_ACEOF
18456 /* end confdefs.h. */
18459 #include <sys/procfs.h>
18468 rm -f conftest.
$ac_objext
18469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18470 (eval $ac_compile) 2>conftest.er1
18472 grep -v '^ *+' conftest.er1
>conftest.err
18474 cat conftest.err
>&5
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); } &&
18477 { ac_try
='test -z "$ac_c_werror_flag"
18478 || test ! -s conftest.err'
18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480 (eval $ac_try) 2>&5
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; } &&
18484 { ac_try
='test -s conftest.$ac_objext'
18485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486 (eval $ac_try) 2>&5
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); }; }; then
18490 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
18492 echo "$as_me: failed program was:" >&5
18493 sed 's/^/| /' conftest.
$ac_ext >&5
18495 bfd_cv_have_sys_procfs_type_lwpid_t
=no
18498 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18501 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
18503 cat >>confdefs.h
<<\_ACEOF
18504 #define HAVE_LWPID_T 1
18508 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18509 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
18511 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18512 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18513 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18514 echo $ECHO_N "(cached) $ECHO_C" >&6
18516 cat >conftest.
$ac_ext <<_ACEOF
18519 cat confdefs.h
>>conftest.
$ac_ext
18520 cat >>conftest.
$ac_ext <<_ACEOF
18521 /* end confdefs.h. */
18524 #include <sys/procfs.h>
18533 rm -f conftest.
$ac_objext
18534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18535 (eval $ac_compile) 2>conftest.er1
18537 grep -v '^ *+' conftest.er1
>conftest.err
18539 cat conftest.err
>&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
18542 { ac_try
='test -z "$ac_c_werror_flag"
18543 || test ! -s conftest.err'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try
='test -s conftest.$ac_objext'
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; }; then
18555 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
18557 echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.
$ac_ext >&5
18560 bfd_cv_have_sys_procfs_type_psaddr_t
=no
18563 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18566 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
18568 cat >>confdefs.h
<<\_ACEOF
18569 #define HAVE_PSADDR_T 1
18573 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18574 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
18576 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18577 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18578 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18579 echo $ECHO_N "(cached) $ECHO_C" >&6
18581 cat >conftest.
$ac_ext <<_ACEOF
18584 cat confdefs.h
>>conftest.
$ac_ext
18585 cat >>conftest.
$ac_ext <<_ACEOF
18586 /* end confdefs.h. */
18589 #include <sys/procfs.h>
18598 rm -f conftest.
$ac_objext
18599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18600 (eval $ac_compile) 2>conftest.er1
18602 grep -v '^ *+' conftest.er1
>conftest.err
18604 cat conftest.err
>&5
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); } &&
18607 { ac_try
='test -z "$ac_c_werror_flag"
18608 || test ! -s conftest.err'
18609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18610 (eval $ac_try) 2>&5
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); }; } &&
18614 { ac_try
='test -s conftest.$ac_objext'
18615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18616 (eval $ac_try) 2>&5
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); }; }; then
18620 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
18622 echo "$as_me: failed program was:" >&5
18623 sed 's/^/| /' conftest.
$ac_ext >&5
18625 bfd_cv_have_sys_procfs_type_prsysent_t
=no
18628 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18631 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18633 cat >>confdefs.h
<<\_ACEOF
18634 #define HAVE_PRSYSENT_T 1
18638 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18639 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18641 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18642 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18643 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18644 echo $ECHO_N "(cached) $ECHO_C" >&6
18646 cat >conftest.
$ac_ext <<_ACEOF
18649 cat confdefs.h
>>conftest.
$ac_ext
18650 cat >>conftest.
$ac_ext <<_ACEOF
18651 /* end confdefs.h. */
18654 #include <sys/procfs.h>
18663 rm -f conftest.
$ac_objext
18664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18665 (eval $ac_compile) 2>conftest.er1
18667 grep -v '^ *+' conftest.er1
>conftest.err
18669 cat conftest.err
>&5
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); } &&
18672 { ac_try
='test -z "$ac_c_werror_flag"
18673 || test ! -s conftest.err'
18674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18675 (eval $ac_try) 2>&5
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); }; } &&
18679 { ac_try
='test -s conftest.$ac_objext'
18680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681 (eval $ac_try) 2>&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); }; }; then
18685 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
18687 echo "$as_me: failed program was:" >&5
18688 sed 's/^/| /' conftest.
$ac_ext >&5
18690 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
18693 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18696 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18698 cat >>confdefs.h
<<\_ACEOF
18699 #define HAVE_PR_SIGSET_T 1
18703 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18704 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18706 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18707 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18708 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18709 echo $ECHO_N "(cached) $ECHO_C" >&6
18711 cat >conftest.
$ac_ext <<_ACEOF
18714 cat confdefs.h
>>conftest.
$ac_ext
18715 cat >>conftest.
$ac_ext <<_ACEOF
18716 /* end confdefs.h. */
18719 #include <sys/procfs.h>
18723 pr_sigaction64_t avar
18728 rm -f conftest.
$ac_objext
18729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18730 (eval $ac_compile) 2>conftest.er1
18732 grep -v '^ *+' conftest.er1
>conftest.err
18734 cat conftest.err
>&5
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); } &&
18737 { ac_try
='test -z "$ac_c_werror_flag"
18738 || test ! -s conftest.err'
18739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18740 (eval $ac_try) 2>&5
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); }; } &&
18744 { ac_try
='test -s conftest.$ac_objext'
18745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18746 (eval $ac_try) 2>&5
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); }; }; then
18750 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
18752 echo "$as_me: failed program was:" >&5
18753 sed 's/^/| /' conftest.
$ac_ext >&5
18755 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
18758 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18761 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18763 cat >>confdefs.h
<<\_ACEOF
18764 #define HAVE_PR_SIGACTION64_T 1
18768 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18769 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18771 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18772 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18773 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18774 echo $ECHO_N "(cached) $ECHO_C" >&6
18776 cat >conftest.
$ac_ext <<_ACEOF
18779 cat confdefs.h
>>conftest.
$ac_ext
18780 cat >>conftest.
$ac_ext <<_ACEOF
18781 /* end confdefs.h. */
18784 #include <sys/procfs.h>
18788 pr_siginfo64_t avar
18793 rm -f conftest.
$ac_objext
18794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18795 (eval $ac_compile) 2>conftest.er1
18797 grep -v '^ *+' conftest.er1
>conftest.err
18799 cat conftest.err
>&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); } &&
18802 { ac_try
='test -z "$ac_c_werror_flag"
18803 || test ! -s conftest.err'
18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805 (eval $ac_try) 2>&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; } &&
18809 { ac_try
='test -s conftest.$ac_objext'
18810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811 (eval $ac_try) 2>&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; }; then
18815 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
18817 echo "$as_me: failed program was:" >&5
18818 sed 's/^/| /' conftest.
$ac_ext >&5
18820 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
18823 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18826 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18828 cat >>confdefs.h
<<\_ACEOF
18829 #define HAVE_PR_SIGINFO64_T 1
18833 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18834 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18840 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18841 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18842 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18843 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18844 echo $ECHO_N "(cached) $ECHO_C" >&6
18846 if test "$cross_compiling" = yes; then
18847 gdb_cv_prfpregset_t_broken
=yes
18849 cat >conftest.
$ac_ext <<_ACEOF
18852 cat confdefs.h
>>conftest.
$ac_ext
18853 cat >>conftest.
$ac_ext <<_ACEOF
18854 /* end confdefs.h. */
18855 #include <sys/procfs.h>
18858 if (sizeof (prfpregset_t) == sizeof (void *))
18863 rm -f conftest
$ac_exeext
18864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18865 (eval $ac_link) 2>&5
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18870 (eval $ac_try) 2>&5
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); }; }; then
18874 gdb_cv_prfpregset_t_broken
=no
18876 echo "$as_me: program exited with status $ac_status" >&5
18877 echo "$as_me: failed program was:" >&5
18878 sed 's/^/| /' conftest.
$ac_ext >&5
18880 ( exit $ac_status )
18881 gdb_cv_prfpregset_t_broken
=yes
18883 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18887 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18888 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18889 if test $gdb_cv_prfpregset_t_broken = yes; then
18891 cat >>confdefs.h
<<\_ACEOF
18892 #define PRFPREGSET_T_BROKEN 1
18899 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18900 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18901 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
18904 cat >conftest.
$ac_ext <<_ACEOF
18907 cat confdefs.h
>>conftest.
$ac_ext
18908 cat >>conftest.
$ac_ext <<_ACEOF
18909 /* end confdefs.h. */
18910 #include <unistd.h>
18911 #include <sys/types.h>
18912 #include <sys/procfs.h>
18919 dummy = ioctl(0, PIOCSET, &dummy);
18925 rm -f conftest.
$ac_objext
18926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18927 (eval $ac_compile) 2>conftest.er1
18929 grep -v '^ *+' conftest.er1
>conftest.err
18931 cat conftest.err
>&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } &&
18934 { ac_try
='test -z "$ac_c_werror_flag"
18935 || test ! -s conftest.err'
18936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18937 (eval $ac_try) 2>&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; } &&
18941 { ac_try
='test -s conftest.$ac_objext'
18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943 (eval $ac_try) 2>&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; }; then
18947 gdb_cv_have_procfs_piocset
=yes
18949 echo "$as_me: failed program was:" >&5
18950 sed 's/^/| /' conftest.
$ac_ext >&5
18952 gdb_cv_have_procfs_piocset
=no
18954 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18957 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18958 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18959 if test $gdb_cv_have_procfs_piocset = yes; then
18961 cat >>confdefs.h
<<\_ACEOF
18962 #define HAVE_PROCFS_PIOCSET 1
18968 if test ${host} = ${target} ; then
18970 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18971 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18972 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18973 echo $ECHO_N "(cached) $ECHO_C" >&6
18975 cat >conftest.
$ac_ext <<_ACEOF
18978 cat confdefs.h
>>conftest.
$ac_ext
18979 cat >>conftest.
$ac_ext <<_ACEOF
18980 /* end confdefs.h. */
18985 struct link_map lm; (void) lm.l_addr;
18990 rm -f conftest.
$ac_objext
18991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18992 (eval $ac_compile) 2>conftest.er1
18994 grep -v '^ *+' conftest.er1
>conftest.err
18996 cat conftest.err
>&5
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); } &&
18999 { ac_try
='test -z "$ac_c_werror_flag"
19000 || test ! -s conftest.err'
19001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19002 (eval $ac_try) 2>&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); }; } &&
19006 { ac_try
='test -s conftest.$ac_objext'
19007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19008 (eval $ac_try) 2>&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; }; then
19012 gdb_cv_have_struct_link_map_with_l_members
=yes
19014 echo "$as_me: failed program was:" >&5
19015 sed 's/^/| /' conftest.
$ac_ext >&5
19017 gdb_cv_have_struct_link_map_with_l_members
=no
19019 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19022 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
19023 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
19024 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
19026 cat >>confdefs.h
<<\_ACEOF
19027 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
19033 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
19034 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
19035 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
19036 echo $ECHO_N "(cached) $ECHO_C" >&6
19038 cat >conftest.
$ac_ext <<_ACEOF
19041 cat confdefs.h
>>conftest.
$ac_ext
19042 cat >>conftest.
$ac_ext <<_ACEOF
19043 /* end confdefs.h. */
19044 #include <sys/types.h>
19049 struct link_map lm; (void) lm.lm_addr;
19054 rm -f conftest.
$ac_objext
19055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19056 (eval $ac_compile) 2>conftest.er1
19058 grep -v '^ *+' conftest.er1
>conftest.err
19060 cat conftest.err
>&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); } &&
19063 { ac_try
='test -z "$ac_c_werror_flag"
19064 || test ! -s conftest.err'
19065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066 (eval $ac_try) 2>&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); }; } &&
19070 { ac_try
='test -s conftest.$ac_objext'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; }; then
19076 gdb_cv_have_struct_link_map_with_lm_members
=yes
19078 echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.
$ac_ext >&5
19081 gdb_cv_have_struct_link_map_with_lm_members
=no
19083 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19086 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
19087 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
19088 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
19090 cat >>confdefs.h
<<\_ACEOF
19091 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
19097 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
19098 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
19099 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
19100 echo $ECHO_N "(cached) $ECHO_C" >&6
19102 cat >conftest.
$ac_ext <<_ACEOF
19105 cat confdefs.h
>>conftest.
$ac_ext
19106 cat >>conftest.
$ac_ext <<_ACEOF
19107 /* end confdefs.h. */
19108 #include <sys/types.h>
19109 #ifdef HAVE_NLIST_H
19116 struct so_map lm; (void) lm.som_addr;
19121 rm -f conftest.
$ac_objext
19122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19123 (eval $ac_compile) 2>conftest.er1
19125 grep -v '^ *+' conftest.er1
>conftest.err
19127 cat conftest.err
>&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } &&
19130 { ac_try
='test -z "$ac_c_werror_flag"
19131 || test ! -s conftest.err'
19132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133 (eval $ac_try) 2>&5
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; } &&
19137 { ac_try
='test -s conftest.$ac_objext'
19138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19139 (eval $ac_try) 2>&5
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; }; then
19143 gdb_cv_have_struct_so_map_with_som_members
=yes
19145 echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.
$ac_ext >&5
19148 gdb_cv_have_struct_so_map_with_som_members
=no
19150 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19153 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
19154 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
19155 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
19157 cat >>confdefs.h
<<\_ACEOF
19158 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
19164 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
19165 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
19166 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
19169 cat >conftest.
$ac_ext <<_ACEOF
19172 cat confdefs.h
>>conftest.
$ac_ext
19173 cat >>conftest.
$ac_ext <<_ACEOF
19174 /* end confdefs.h. */
19176 #include <sys/link.h>
19180 struct link_map32 l;
19185 rm -f conftest.
$ac_objext
19186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19187 (eval $ac_compile) 2>conftest.er1
19189 grep -v '^ *+' conftest.er1
>conftest.err
19191 cat conftest.err
>&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } &&
19194 { ac_try
='test -z "$ac_c_werror_flag"
19195 || test ! -s conftest.err'
19196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19197 (eval $ac_try) 2>&5
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); }; } &&
19201 { ac_try
='test -s conftest.$ac_objext'
19202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19203 (eval $ac_try) 2>&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); }; }; then
19207 gdb_cv_have_struct_link_map32
=yes
19209 echo "$as_me: failed program was:" >&5
19210 sed 's/^/| /' conftest.
$ac_ext >&5
19212 gdb_cv_have_struct_link_map32
=no
19214 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19217 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
19218 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
19219 if test $gdb_cv_have_struct_link_map32 = yes; then
19221 cat >>confdefs.h
<<\_ACEOF
19222 #define HAVE_STRUCT_LINK_MAP32 1
19226 cat >>confdefs.h
<<\_ACEOF
19227 #define _SYSCALL32 1
19233 # Check if the compiler supports the `long long' type.
19235 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
19236 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
19237 if test "${gdb_cv_c_long_long+set}" = set; then
19238 echo $ECHO_N "(cached) $ECHO_C" >&6
19240 cat >conftest.
$ac_ext <<_ACEOF
19243 cat confdefs.h
>>conftest.
$ac_ext
19244 cat >>conftest.
$ac_ext <<_ACEOF
19245 /* end confdefs.h. */
19246 extern long long foo;
19250 switch (foo & 2) { case 0: return 1; }
19255 rm -f conftest.
$ac_objext
19256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19257 (eval $ac_compile) 2>conftest.er1
19259 grep -v '^ *+' conftest.er1
>conftest.err
19261 cat conftest.err
>&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); } &&
19264 { ac_try
='test -z "$ac_c_werror_flag"
19265 || test ! -s conftest.err'
19266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267 (eval $ac_try) 2>&5
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; } &&
19271 { ac_try
='test -s conftest.$ac_objext'
19272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19273 (eval $ac_try) 2>&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; }; then
19277 gdb_cv_c_long_long
=yes
19279 echo "$as_me: failed program was:" >&5
19280 sed 's/^/| /' conftest.
$ac_ext >&5
19282 gdb_cv_c_long_long
=no
19284 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19286 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
19287 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
19288 if test $gdb_cv_c_long_long = yes; then
19290 cat >>confdefs.h
<<\_ACEOF
19291 #define CC_HAS_LONG_LONG 1
19296 # Check if the compiler and runtime support printing long longs.
19298 echo "$as_me:$LINENO: checking for long long support in printf" >&5
19299 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
19300 if test "${gdb_cv_printf_has_long_long+set}" = set; then
19301 echo $ECHO_N "(cached) $ECHO_C" >&6
19303 if test "$cross_compiling" = yes; then
19304 gdb_cv_printf_has_long_long
=no
19306 cat >conftest.
$ac_ext <<_ACEOF
19309 cat confdefs.h
>>conftest.
$ac_ext
19310 cat >>conftest.
$ac_ext <<_ACEOF
19311 /* end confdefs.h. */
19312 $ac_includes_default
19318 l = (l << 16) + 0x0123;
19319 l = (l << 16) + 0x4567;
19320 l = (l << 16) + 0x89ab;
19321 l = (l << 16) + 0xcdef;
19322 sprintf (buf, "0x%016llx", l);
19323 return (strcmp ("0x0123456789abcdef", buf));
19328 rm -f conftest
$ac_exeext
19329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19330 (eval $ac_link) 2>&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335 (eval $ac_try) 2>&5
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; }; then
19339 gdb_cv_printf_has_long_long
=yes
19341 echo "$as_me: program exited with status $ac_status" >&5
19342 echo "$as_me: failed program was:" >&5
19343 sed 's/^/| /' conftest.
$ac_ext >&5
19345 ( exit $ac_status )
19346 gdb_cv_printf_has_long_long
=no
19348 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19351 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
19352 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
19353 if test $gdb_cv_printf_has_long_long = yes; then
19355 cat >>confdefs.h
<<\_ACEOF
19356 #define PRINTF_HAS_LONG_LONG 1
19361 # Check if the compiler supports the `long double' type. We can't use
19362 # AC_C_LONG_DOUBLE because that one does additional checks on the
19363 # constants defined in <float.h> that fail on some systems,
19364 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
19366 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
19367 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
19368 if test "${gdb_cv_c_long_double+set}" = set; then
19369 echo $ECHO_N "(cached) $ECHO_C" >&6
19371 cat >conftest.
$ac_ext <<_ACEOF
19374 cat confdefs.h
>>conftest.
$ac_ext
19375 cat >>conftest.
$ac_ext <<_ACEOF
19376 /* end confdefs.h. */
19379 rm -f conftest.
$ac_objext
19380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19381 (eval $ac_compile) 2>conftest.er1
19383 grep -v '^ *+' conftest.er1
>conftest.err
19385 cat conftest.err
>&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } &&
19388 { ac_try
='test -z "$ac_c_werror_flag"
19389 || test ! -s conftest.err'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; } &&
19395 { ac_try
='test -s conftest.$ac_objext'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
19401 gdb_cv_c_long_double
=yes
19403 echo "$as_me: failed program was:" >&5
19404 sed 's/^/| /' conftest.
$ac_ext >&5
19406 gdb_cv_c_long_double
=no
19408 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19410 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
19411 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
19412 if test $gdb_cv_c_long_double = yes; then
19414 cat >>confdefs.h
<<\_ACEOF
19415 #define HAVE_LONG_DOUBLE 1
19420 # Check if the compiler and runtime support printing long doubles.
19422 echo "$as_me:$LINENO: checking for long double support in printf" >&5
19423 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19424 if test "${gdb_cv_printf_has_long_double+set}" = set; then
19425 echo $ECHO_N "(cached) $ECHO_C" >&6
19427 if test "$cross_compiling" = yes; then
19428 gdb_cv_printf_has_long_double
=no
19430 cat >conftest.
$ac_ext <<_ACEOF
19433 cat confdefs.h
>>conftest.
$ac_ext
19434 cat >>conftest.
$ac_ext <<_ACEOF
19435 /* end confdefs.h. */
19436 $ac_includes_default
19441 long double f = 3.141592653;
19442 sprintf (buf, "%Lg", f);
19443 return (strncmp ("3.14159", buf, 7));
19448 rm -f conftest
$ac_exeext
19449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19450 (eval $ac_link) 2>&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19455 (eval $ac_try) 2>&5
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); }; }; then
19459 gdb_cv_printf_has_long_double
=yes
19461 echo "$as_me: program exited with status $ac_status" >&5
19462 echo "$as_me: failed program was:" >&5
19463 sed 's/^/| /' conftest.
$ac_ext >&5
19465 ( exit $ac_status )
19466 gdb_cv_printf_has_long_double
=no
19468 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19471 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19472 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
19473 if test $gdb_cv_printf_has_long_double = yes; then
19475 cat >>confdefs.h
<<\_ACEOF
19476 #define PRINTF_HAS_LONG_DOUBLE 1
19481 # Check if the compiler and runtime support scanning long doubles.
19483 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19484 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19485 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19486 echo $ECHO_N "(cached) $ECHO_C" >&6
19488 if test "$cross_compiling" = yes; then
19489 gdb_cv_scanf_has_long_double
=no
19491 cat >conftest.
$ac_ext <<_ACEOF
19494 cat confdefs.h
>>conftest.
$ac_ext
19495 cat >>conftest.
$ac_ext <<_ACEOF
19496 /* end confdefs.h. */
19501 char *buf = "3.141592653";
19503 sscanf (buf, "%Lg", &f);
19504 return !(f > 3.14159 && f < 3.14160);
19509 rm -f conftest
$ac_exeext
19510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19511 (eval $ac_link) 2>&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516 (eval $ac_try) 2>&5
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; }; then
19520 gdb_cv_scanf_has_long_double
=yes
19522 echo "$as_me: program exited with status $ac_status" >&5
19523 echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.
$ac_ext >&5
19526 ( exit $ac_status )
19527 gdb_cv_scanf_has_long_double
=no
19529 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19532 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19533 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19534 if test $gdb_cv_scanf_has_long_double = yes; then
19536 cat >>confdefs.h
<<\_ACEOF
19537 #define SCANF_HAS_LONG_DOUBLE 1
19544 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19545 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19546 if test "${gdb_cv_bigtoc+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19550 SAVE_LDFLAGS
=$LDFLAGS
19553 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
19554 *) gdb_cv_bigtoc
=-bbigtoc ;;
19557 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
19558 cat >conftest.
$ac_ext <<_ACEOF
19561 cat confdefs.h
>>conftest.
$ac_ext
19562 cat >>conftest.
$ac_ext <<_ACEOF
19563 /* end confdefs.h. */
19573 rm -f conftest.
$ac_objext conftest
$ac_exeext
19574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19575 (eval $ac_link) 2>conftest.er1
19577 grep -v '^ *+' conftest.er1
>conftest.err
19579 cat conftest.err
>&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); } &&
19582 { ac_try
='test -z "$ac_c_werror_flag"
19583 || test ! -s conftest.err'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; } &&
19589 { ac_try
='test -s conftest$ac_exeext'
19590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591 (eval $ac_try) 2>&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; }; then
19597 echo "$as_me: failed program was:" >&5
19598 sed 's/^/| /' conftest.
$ac_ext >&5
19602 rm -f conftest.err conftest.
$ac_objext \
19603 conftest
$ac_exeext conftest.
$ac_ext
19604 LDFLAGS
="${SAVE_LDFLAGS}"
19607 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19608 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19609 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19615 if test ${build} = ${host} -a ${host} = ${target} ; then
19618 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19619 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19620 if test -f /usr
/include
/dce
/cma_config.h
; then
19621 if test "$GCC" = "yes" ; then
19622 echo "$as_me:$LINENO: result: yes" >&5
19623 echo "${ECHO_T}yes" >&6
19625 cat >>confdefs.h
<<\_ACEOF
19626 #define HAVE_HPUX_THREAD_SUPPORT 1
19629 CONFIG_OBS
="${CONFIG_OBS} hpux-thread.o"
19630 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
19632 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19633 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19636 echo "$as_me:$LINENO: result: no" >&5
19637 echo "${ECHO_T}no" >&6
19641 # See if thread_db library is around for Solaris thread debugging.
19642 # Note that we must explicitly test for version 1 of the library
19643 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19645 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19646 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19647 if test -f /usr
/lib
/libthread_db.so
.1 ; then
19648 echo "$as_me:$LINENO: result: yes" >&5
19649 echo "${ECHO_T}yes" >&6
19651 cat >>confdefs.h
<<\_ACEOF
19652 #define HAVE_THREAD_DB_LIB 1
19655 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
19656 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
19658 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19659 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19660 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19661 echo $ECHO_N "(cached) $ECHO_C" >&6
19663 ac_check_lib_save_LIBS
=$LIBS
19665 cat >conftest.
$ac_ext <<_ACEOF
19668 cat confdefs.h
>>conftest.
$ac_ext
19669 cat >>conftest.
$ac_ext <<_ACEOF
19670 /* end confdefs.h. */
19672 /* Override any gcc2 internal prototype to avoid an error. */
19676 /* We use char because int might match the return type of a gcc2
19677 builtin and then its argument prototype would still apply. */
19687 rm -f conftest.
$ac_objext conftest
$ac_exeext
19688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19689 (eval $ac_link) 2>conftest.er1
19691 grep -v '^ *+' conftest.er1
>conftest.err
19693 cat conftest.err
>&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } &&
19696 { ac_try
='test -z "$ac_c_werror_flag"
19697 || test ! -s conftest.err'
19698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19699 (eval $ac_try) 2>&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; } &&
19703 { ac_try
='test -s conftest$ac_exeext'
19704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705 (eval $ac_try) 2>&5
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; }; then
19709 ac_cv_lib_dl_dlopen
=yes
19711 echo "$as_me: failed program was:" >&5
19712 sed 's/^/| /' conftest.
$ac_ext >&5
19714 ac_cv_lib_dl_dlopen
=no
19716 rm -f conftest.err conftest.
$ac_objext \
19717 conftest
$ac_exeext conftest.
$ac_ext
19718 LIBS
=$ac_check_lib_save_LIBS
19720 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19721 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19722 if test $ac_cv_lib_dl_dlopen = yes; then
19723 cat >>confdefs.h
<<_ACEOF
19724 #define HAVE_LIBDL 1
19731 if test "$GCC" = "yes" ; then
19732 # The GNU linker requires the -export-dynamic option to make
19733 # all symbols visible in the dynamic symbol table.
19734 hold_ldflags
=$LDFLAGS
19735 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19736 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19737 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
19738 cat >conftest.
$ac_ext <<_ACEOF
19741 cat confdefs.h
>>conftest.
$ac_ext
19742 cat >>conftest.
$ac_ext <<_ACEOF
19743 /* end confdefs.h. */
19753 rm -f conftest.
$ac_objext conftest
$ac_exeext
19754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19755 (eval $ac_link) 2>conftest.er1
19757 grep -v '^ *+' conftest.er1
>conftest.err
19759 cat conftest.err
>&5
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); } &&
19762 { ac_try
='test -z "$ac_c_werror_flag"
19763 || test ! -s conftest.err'
19764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19765 (eval $ac_try) 2>&5
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); }; } &&
19769 { ac_try
='test -s conftest$ac_exeext'
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; }; then
19777 echo "$as_me: failed program was:" >&5
19778 sed 's/^/| /' conftest.
$ac_ext >&5
19782 rm -f conftest.err conftest.
$ac_objext \
19783 conftest
$ac_exeext conftest.
$ac_ext
19784 LDFLAGS
=$hold_ldflags
19785 echo "$as_me:$LINENO: result: $found" >&5
19786 echo "${ECHO_T}$found" >&6
19787 if test $found = yes; then
19788 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19791 # Sun randomly tweaked the prototypes in <proc_service.h>
19793 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19794 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19795 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19796 echo $ECHO_N "(cached) $ECHO_C" >&6
19799 cat >conftest.
$ac_ext <<_ACEOF
19802 cat confdefs.h
>>conftest.
$ac_ext
19803 cat >>conftest.
$ac_ext <<_ACEOF
19804 /* end confdefs.h. */
19806 #include <proc_service.h>
19807 ps_err_e ps_pdwrite
19808 (struct ps_prochandle*, psaddr_t, const void*, size_t);
19818 rm -f conftest.
$ac_objext
19819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19820 (eval $ac_compile) 2>conftest.er1
19822 grep -v '^ *+' conftest.er1
>conftest.err
19824 cat conftest.err
>&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); } &&
19827 { ac_try
='test -z "$ac_c_werror_flag"
19828 || test ! -s conftest.err'
19829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19830 (eval $ac_try) 2>&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); }; } &&
19834 { ac_try
='test -s conftest.$ac_objext'
19835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19836 (eval $ac_try) 2>&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); }; }; then
19840 gdb_cv_proc_service_is_old
=no
19842 echo "$as_me: failed program was:" >&5
19843 sed 's/^/| /' conftest.
$ac_ext >&5
19845 gdb_cv_proc_service_is_old
=yes
19847 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19851 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19852 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19853 if test $gdb_cv_proc_service_is_old = yes; then
19855 cat >>confdefs.h
<<\_ACEOF
19856 #define PROC_SERVICE_IS_OLD 1
19861 echo "$as_me:$LINENO: result: no" >&5
19862 echo "${ECHO_T}no" >&6
19866 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19867 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19868 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19869 echo $ECHO_N "(cached) $ECHO_C" >&6
19871 cat >conftest.
$ac_ext <<_ACEOF
19874 cat confdefs.h
>>conftest.
$ac_ext
19875 cat >>conftest.
$ac_ext <<_ACEOF
19876 /* end confdefs.h. */
19877 #include <sys/pthdebug.h>
19881 #ifndef PTHDB_VERSION_3
19888 rm -f conftest.
$ac_objext
19889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19890 (eval $ac_compile) 2>conftest.er1
19892 grep -v '^ *+' conftest.er1
>conftest.err
19894 cat conftest.err
>&5
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); } &&
19897 { ac_try
='test -z "$ac_c_werror_flag"
19898 || test ! -s conftest.err'
19899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19900 (eval $ac_try) 2>&5
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); }; } &&
19904 { ac_try
='test -s conftest.$ac_objext'
19905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19906 (eval $ac_try) 2>&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); }; }; then
19910 gdb_cv_have_aix_thread_debug
=yes
19912 echo "$as_me: failed program was:" >&5
19913 sed 's/^/| /' conftest.
$ac_ext >&5
19915 gdb_cv_have_aix_thread_debug
=no
19917 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19920 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19921 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19922 if test $gdb_cv_have_aix_thread_debug = yes; then
19923 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
19924 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
19925 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
19932 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19933 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19934 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19935 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19936 echo $ECHO_N "(cached) $ECHO_C" >&6
19938 cat >conftest.
$ac_ext <<_ACEOF
19941 cat confdefs.h
>>conftest.
$ac_ext
19942 cat >>conftest.
$ac_ext <<_ACEOF
19943 /* end confdefs.h. */
19944 #include <thread_db.h>
19948 int i = TD_NOTALLOC;
19953 rm -f conftest.
$ac_objext
19954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19955 (eval $ac_compile) 2>conftest.er1
19957 grep -v '^ *+' conftest.er1
>conftest.err
19959 cat conftest.err
>&5
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); } &&
19962 { ac_try
='test -z "$ac_c_werror_flag"
19963 || test ! -s conftest.err'
19964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965 (eval $ac_try) 2>&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); }; } &&
19969 { ac_try
='test -s conftest.$ac_objext'
19970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19971 (eval $ac_try) 2>&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; }; then
19975 gdb_cv_thread_db_h_has_td_notalloc
=yes
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.
$ac_ext >&5
19980 gdb_cv_thread_db_h_has_td_notalloc
=no
19983 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19986 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19987 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19989 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19991 cat >>confdefs.h
<<\_ACEOF
19992 #define THREAD_DB_HAS_TD_NOTALLOC 1
19997 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19998 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19999 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
20000 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
20001 echo $ECHO_N "(cached) $ECHO_C" >&6
20003 cat >conftest.
$ac_ext <<_ACEOF
20006 cat confdefs.h
>>conftest.
$ac_ext
20007 cat >>conftest.
$ac_ext <<_ACEOF
20008 /* end confdefs.h. */
20009 #include <sys/syscall.h>
20013 int i = __NR_tkill;
20018 rm -f conftest.
$ac_objext
20019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20020 (eval $ac_compile) 2>conftest.er1
20022 grep -v '^ *+' conftest.er1
>conftest.err
20024 cat conftest.err
>&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } &&
20027 { ac_try
='test -z "$ac_c_werror_flag"
20028 || test ! -s conftest.err'
20029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030 (eval $ac_try) 2>&5
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }; } &&
20034 { ac_try
='test -s conftest.$ac_objext'
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036 (eval $ac_try) 2>&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; }; then
20040 gdb_cv_sys_syscall_h_has_tkill
=yes
20042 echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.
$ac_ext >&5
20045 gdb_cv_sys_syscall_h_has_tkill
=no
20048 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20051 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
20052 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
20054 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
20056 cat >>confdefs.h
<<\_ACEOF
20057 #define HAVE_TKILL_SYSCALL 1
20064 # Check whether --with-sysroot or --without-sysroot was given.
20065 if test "${with_sysroot+set}" = set; then
20066 withval
="$with_sysroot"
20068 case ${with_sysroot} in
20069 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
20070 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
20073 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
20075 if test "x$exec_prefix" = xNONE
; then
20076 if test "x$prefix" = xNONE
; then
20077 test_prefix
=/usr
/local
20079 test_prefix
=$prefix
20082 test_prefix
=$exec_prefix
20084 case ${TARGET_SYSTEM_ROOT} in
20085 "${test_prefix}"|
"${test_prefix}/"*|\
20086 '${exec_prefix}'|
'${exec_prefix}/'*)
20087 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
20088 TARGET_SYSTEM_ROOT_DEFINE
="$t"
20094 TARGET_SYSTEM_ROOT
=
20095 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
20101 # NOTE: Don't add -Wall or -Wunused, they both include
20102 # -Wunused-parameter which reports bogus warnings.
20103 # NOTE: If you add to this list, remember to update
20104 # gdb/doc/gdbint.texinfo.
20105 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
20106 -Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
20107 -Wunused-label -Wunused-function -Wno-pointer-sign"
20109 # GCC supports -Wuninitialized only with -O or -On, n != 0.
20110 if test x
${CFLAGS+set} = xset
; then
20111 case "${CFLAGS}" in
20114 build_warnings
="${build_warnings} -Wuninitialized"
20118 build_warnings
="${build_warnings} -Wuninitialized"
20121 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
20122 # -Wunused-function -Wunused-variable -Wunused-value
20123 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
20124 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
20125 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
20126 # -Woverloaded-virtual -Winline -Werror"
20127 # Check whether --enable-build-warnings or --disable-build-warnings was given.
20128 if test "${enable_build_warnings+set}" = set; then
20129 enableval
="$enable_build_warnings"
20130 case "${enableval}" in
20132 no
) build_warnings
="-w";;
20133 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
20134 build_warnings
="${build_warnings} ${t}";;
20135 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
20136 build_warnings
="${t} ${build_warnings}";;
20137 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20139 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
20140 echo "Setting compiler warning flags = $build_warnings" 6>&1
20142 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
20143 if test "${enable_gdb_build_warnings+set}" = set; then
20144 enableval
="$enable_gdb_build_warnings"
20145 case "${enableval}" in
20147 no
) build_warnings
="-w";;
20148 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
20149 build_warnings
="${build_warnings} ${t}";;
20150 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
20151 build_warnings
="${t} ${build_warnings}";;
20152 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20154 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
20155 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
20159 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
20161 echo "$as_me:$LINENO: checking compiler warning flags" >&5
20162 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
20163 # Separate out the -Werror flag as some files just cannot be
20164 # compiled with it enabled.
20165 for w
in ${build_warnings}; do
20167 -Werr*) WERROR_CFLAGS
=-Werror ;;
20168 *) # Check that GCC accepts it
20169 saved_CFLAGS
="$CFLAGS"
20170 CFLAGS
="$CFLAGS $w"
20171 cat >conftest.
$ac_ext <<_ACEOF
20174 cat confdefs.h
>>conftest.
$ac_ext
20175 cat >>conftest.
$ac_ext <<_ACEOF
20176 /* end confdefs.h. */
20186 rm -f conftest.
$ac_objext
20187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20188 (eval $ac_compile) 2>conftest.er1
20190 grep -v '^ *+' conftest.er1
>conftest.err
20192 cat conftest.err
>&5
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); } &&
20195 { ac_try
='test -z "$ac_c_werror_flag"
20196 || test ! -s conftest.err'
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
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
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; }; then
20208 WARN_CFLAGS
="${WARN_CFLAGS} $w"
20210 echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.
$ac_ext >&5
20214 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20215 CFLAGS
="$saved_CFLAGS"
20218 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
20219 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
20224 # In the Cygwin environment, we need some additional flags.
20225 echo "$as_me:$LINENO: checking for cygwin" >&5
20226 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20227 if test "${gdb_cv_os_cygwin+set}" = set; then
20228 echo $ECHO_N "(cached) $ECHO_C" >&6
20230 cat >conftest.
$ac_ext <<_ACEOF
20233 cat confdefs.h
>>conftest.
$ac_ext
20234 cat >>conftest.
$ac_ext <<_ACEOF
20235 /* end confdefs.h. */
20237 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
20241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20242 $EGREP "lose" >/dev
/null
2>&1; then
20243 gdb_cv_os_cygwin
=yes
20245 gdb_cv_os_cygwin
=no
20250 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20251 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
20254 SER_HARDWIRE
="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
20256 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
20257 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
20258 *mingw32
*) SER_HARDWIRE
="ser-base.o ser-tcp.o" ;;
20262 # libreadline needs libuser32.a in a cygwin environment
20264 if test x
$gdb_cv_os_cygwin = xyes
; then
20265 WIN32LIBS
="-luser32"
20266 case "${target}" in
20267 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
20272 # The ser-tcp.c module requires sockets.
20276 cat >>confdefs.h
<<\_ACEOF
20277 #define USE_WIN32API 1
20280 WIN32LIBS
="$WIN32LIBS -lws2_32"
20285 LIBGUI
="../libgui/src/libgui.a"
20286 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
20304 if test "${enable_gdbtk}" = "yes"; then
20306 # Gdbtk must have an absolute path to srcdir in order to run
20307 # properly when not installed.
20310 GDBTK_SRC_DIR
=`pwd`
20315 # Ok, lets find the tcl configuration
20316 # First, look for one uninstalled.
20317 # the alternative search directory is invoked by --with-tclconfig
20320 if test x
"${no_tcl}" = x
; then
20321 # we reset no_tcl in case something fails here
20324 # Check whether --with-tclconfig or --without-tclconfig was given.
20325 if test "${with_tclconfig+set}" = set; then
20326 withval
="$with_tclconfig"
20327 with_tclconfig
=${withval}
20329 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20330 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20331 if test "${ac_cv_c_tclconfig+set}" = set; then
20332 echo $ECHO_N "(cached) $ECHO_C" >&6
20336 # First check to see if --with-tclconfig was specified.
20337 if test x
"${with_tclconfig}" != x
; then
20338 if test -f "${with_tclconfig}/tclConfig.sh" ; then
20339 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
20341 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20342 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20343 { (exit 1); exit 1; }; }
20347 # then check for a private Tcl installation
20348 if test x
"${ac_cv_c_tclconfig}" = x
; then
20351 `ls -dr ../tcl[7-9]* 2>/dev/null` \
20353 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
20355 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
20356 if test -f "$i/${configdir}/tclConfig.sh" ; then
20357 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
20362 # check in a few common install locations
20363 if test x
"${ac_cv_c_tclconfig}" = x
; then
20364 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20365 if test -f "$i/tclConfig.sh" ; then
20366 ac_cv_c_tclconfig
=`(cd $i; pwd)`
20371 # check in a few other private locations
20372 if test x
"${ac_cv_c_tclconfig}" = x
; then
20375 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
20376 if test -f "$i/${configdir}/tclConfig.sh" ; then
20377 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
20385 if test x
"${ac_cv_c_tclconfig}" = x
; then
20386 TCLCONFIG
="# no Tcl configs found"
20387 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20388 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
20391 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
20392 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
20393 echo "${ECHO_T}found $TCLCONFIG" >&6
20397 if test -z "${no_tcl}"; then
20428 # Ok, lets find the tk configuration
20429 # First, look for one uninstalled.
20430 # the alternative search directory is invoked by --with-tkconfig
20433 if test x
"${no_tk}" = x
; then
20434 # we reset no_tk in case something fails here
20437 # Check whether --with-tkconfig or --without-tkconfig was given.
20438 if test "${with_tkconfig+set}" = set; then
20439 withval
="$with_tkconfig"
20440 with_tkconfig
=${withval}
20442 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20443 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20444 if test "${ac_cv_c_tkconfig+set}" = set; then
20445 echo $ECHO_N "(cached) $ECHO_C" >&6
20449 # First check to see if --with-tkconfig was specified.
20450 if test x
"${with_tkconfig}" != x
; then
20451 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20452 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
20454 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20455 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20456 { (exit 1); exit 1; }; }
20460 # then check for a private Tk library
20461 if test x
"${ac_cv_c_tkconfig}" = x
; then
20464 `ls -dr ../tk[4-9]* 2>/dev/null` \
20466 `ls -dr ../../tk[4-9]* 2>/dev/null` \
20468 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
20469 if test -f "$i/${configdir}/tkConfig.sh" ; then
20470 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
20475 # check in a few common install locations
20476 if test x
"${ac_cv_c_tkconfig}" = x
; then
20477 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20478 if test -f "$i/tkConfig.sh" ; then
20479 ac_cv_c_tkconfig
=`(cd $i; pwd)`
20484 # check in a few other private locations
20485 if test x
"${ac_cv_c_tkconfig}" = x
; then
20488 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20489 if test -f "$i/${configdir}/tkConfig.sh" ; then
20490 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
20498 if test x
"${ac_cv_c_tkconfig}" = x
; then
20499 TKCONFIG
="# no Tk configs found"
20500 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20501 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20504 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
20505 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20506 echo "${ECHO_T}found $TKCONFIG" >&6
20512 # now look for Tcl library stuff
20514 tcldir
="../tcl/${configdir}/"
20516 TCL_DEPS
="${tcldir}${TCL_LIB_FILE}"
20518 # If $no_tk is nonempty, then we can't do Tk, and there is no
20519 # point to doing Tcl.
20520 if test -z "${no_tk}"; then
20522 if test -f "$TKCONFIG" ; then
20540 # Ok, lets find the tcl source trees so we can use the headers
20541 # Warning: transition of version 9 to 10 will break this algorithm
20542 # because 10 sorts before 9. We also look for just tcl. We have to
20543 # be careful that we don't match stuff like tclX by accident.
20544 # the alternative search directory is involked by --with-tclinclude
20548 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20549 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20551 # Check whether --with-tclinclude or --without-tclinclude was given.
20552 if test "${with_tclinclude+set}" = set; then
20553 withval
="$with_tclinclude"
20554 with_tclinclude
=${withval}
20556 if test "${ac_cv_c_tclh+set}" = set; then
20557 echo $ECHO_N "(cached) $ECHO_C" >&6
20560 # first check to see if --with-tclinclude was specified
20561 if test x
"${with_tclinclude}" != x
; then
20562 if test -f ${with_tclinclude}/tclInt.h
; then
20563 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
20564 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
20565 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
20567 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20568 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20569 { (exit 1); exit 1; }; }
20573 # next check if it came with Tcl configuration file
20574 if test x
"${ac_cv_c_tclconfig}" = x
; then
20575 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
20576 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
20580 # next check in private source directory
20582 # since ls returns lowest version numbers first, reverse its output
20583 if test x
"${ac_cv_c_tclh}" = x
; then
20586 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20587 ${srcdir}/..
/..
/tcl \
20588 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20589 ${srcdir}/..
/..
/..
/tcl \
20590 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20591 if test -f $i/generic
/tclInt.h
; then
20592 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
20597 # finally check in a few common install locations
20599 # since ls returns lowest version numbers first, reverse its output
20600 if test x
"${ac_cv_c_tclh}" = x
; then
20602 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20603 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20604 /usr
/local
/src
/tcl \
20605 /usr
/local
/lib
/tcl \
20606 ${prefix}/include
; do
20607 if test -f $i/generic
/tclInt.h
; then
20608 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
20613 # see if one is installed
20614 if test x
"${ac_cv_c_tclh}" = x
; then
20615 if test "${ac_cv_header_tclInt_h+set}" = set; then
20616 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20617 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20618 if test "${ac_cv_header_tclInt_h+set}" = set; then
20619 echo $ECHO_N "(cached) $ECHO_C" >&6
20621 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20622 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20624 # Is the header compilable?
20625 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20626 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20627 cat >conftest.
$ac_ext <<_ACEOF
20630 cat confdefs.h
>>conftest.
$ac_ext
20631 cat >>conftest.
$ac_ext <<_ACEOF
20632 /* end confdefs.h. */
20633 $ac_includes_default
20634 #include <tclInt.h>
20636 rm -f conftest.
$ac_objext
20637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20638 (eval $ac_compile) 2>conftest.er1
20640 grep -v '^ *+' conftest.er1
>conftest.err
20642 cat conftest.err
>&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } &&
20645 { ac_try
='test -z "$ac_c_werror_flag"
20646 || test ! -s conftest.err'
20647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648 (eval $ac_try) 2>&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); }; } &&
20652 { ac_try
='test -s conftest.$ac_objext'
20653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654 (eval $ac_try) 2>&5
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; }; then
20658 ac_header_compiler
=yes
20660 echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.
$ac_ext >&5
20663 ac_header_compiler
=no
20665 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20666 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20667 echo "${ECHO_T}$ac_header_compiler" >&6
20669 # Is the header present?
20670 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20671 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20672 cat >conftest.
$ac_ext <<_ACEOF
20675 cat confdefs.h
>>conftest.
$ac_ext
20676 cat >>conftest.
$ac_ext <<_ACEOF
20677 /* end confdefs.h. */
20678 #include <tclInt.h>
20680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20681 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20683 grep -v '^ *+' conftest.er1
>conftest.err
20685 cat conftest.err
>&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } >/dev
/null
; then
20688 if test -s conftest.err
; then
20689 ac_cpp_err
=$ac_c_preproc_warn_flag
20690 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20697 if test -z "$ac_cpp_err"; then
20698 ac_header_preproc
=yes
20700 echo "$as_me: failed program was:" >&5
20701 sed 's/^/| /' conftest.
$ac_ext >&5
20703 ac_header_preproc
=no
20705 rm -f conftest.err conftest.
$ac_ext
20706 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20707 echo "${ECHO_T}$ac_header_preproc" >&6
20709 # So? What about this header?
20710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20712 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20713 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20714 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20715 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20716 ac_header_preproc
=yes
20719 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20720 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20721 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
20722 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
20723 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20724 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20725 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
20726 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20727 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20728 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20729 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20730 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20733 ## ------------------------------------------ ##
20734 ## Report this to the AC_PACKAGE_NAME lists. ##
20735 ## ------------------------------------------ ##
20738 sed "s/^/$as_me: WARNING: /" >&2
20741 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20742 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20743 if test "${ac_cv_header_tclInt_h+set}" = set; then
20744 echo $ECHO_N "(cached) $ECHO_C" >&6
20746 ac_cv_header_tclInt_h
=$ac_header_preproc
20748 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20749 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20752 if test $ac_cv_header_tclInt_h = yes; then
20753 ac_cv_c_tclh
=installed
20763 if test x
"${ac_cv_c_tclh}" = x
; then
20764 TCLHDIR
="# no Tcl private headers found"
20765 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20766 echo "$as_me: error: Can't find Tcl private headers" >&2;}
20767 { (exit 1); exit 1; }; }
20769 if test x
"${ac_cv_c_tclh}" != x
; then
20771 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
20772 echo "$as_me:$LINENO: result: is installed" >&5
20773 echo "${ECHO_T}is installed" >&6
20776 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20777 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
20778 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20779 TCLHDIR
="-I${ac_cv_c_tclh}"
20787 # Ok, lets find the tk source trees so we can use the headers
20788 # If the directory (presumably symlink) named "tk" exists, use that one
20789 # in preference to any others. Same logic is used when choosing library
20790 # and again with Tcl. The search order is the best place to look first, then in
20791 # decreasing significance. The loop breaks if the trigger file is found.
20792 # Note the gross little conversion here of srcdir by cd'ing to the found
20793 # directory. This converts the path from a relative to an absolute, so
20794 # recursive cache variables for the path will work right. We check all
20795 # the possible paths in one loop rather than many seperate loops to speed
20797 # the alternative search directory is involked by --with-tkinclude
20800 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20801 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20803 # Check whether --with-tkinclude or --without-tkinclude was given.
20804 if test "${with_tkinclude+set}" = set; then
20805 withval
="$with_tkinclude"
20806 with_tkinclude
=${withval}
20808 if test "${ac_cv_c_tkh+set}" = set; then
20809 echo $ECHO_N "(cached) $ECHO_C" >&6
20812 # first check to see if --with-tkinclude was specified
20813 if test x
"${with_tkinclude}" != x
; then
20814 if test -f ${with_tkinclude}/tk.h
; then
20815 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
20816 elif test -f ${with_tkinclude}/generic
/tk.h
; then
20817 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
20819 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20820 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20821 { (exit 1); exit 1; }; }
20825 # next check if it came with Tk configuration file
20826 if test x
"${ac_cv_c_tkconfig}" = x
; then
20827 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
20828 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
20832 # next check in private source directory
20834 # since ls returns lowest version numbers first, reverse its output
20835 if test x
"${ac_cv_c_tkh}" = x
; then
20838 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
20839 ${srcdir}/..
/..
/tk \
20840 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
20841 ${srcdir}/..
/..
/..
/tk \
20842 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
20843 if test -f $i/generic
/tk.h
; then
20844 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
20849 # finally check in a few common install locations
20851 # since ls returns lowest version numbers first, reverse its output
20852 if test x
"${ac_cv_c_tkh}" = x
; then
20854 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20855 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20856 /usr
/local
/src
/tk \
20857 /usr
/local
/lib
/tk \
20858 ${prefix}/include
; do
20859 if test -f $i/generic
/tk.h
; then
20860 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
20865 # see if one is installed
20866 if test x
"${ac_cv_c_tkh}" = x
; then
20867 if test "${ac_cv_header_tk_h+set}" = set; then
20868 echo "$as_me:$LINENO: checking for tk.h" >&5
20869 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20870 if test "${ac_cv_header_tk_h+set}" = set; then
20871 echo $ECHO_N "(cached) $ECHO_C" >&6
20873 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20874 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20876 # Is the header compilable?
20877 echo "$as_me:$LINENO: checking tk.h usability" >&5
20878 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
20879 cat >conftest.
$ac_ext <<_ACEOF
20882 cat confdefs.h
>>conftest.
$ac_ext
20883 cat >>conftest.
$ac_ext <<_ACEOF
20884 /* end confdefs.h. */
20885 $ac_includes_default
20888 rm -f conftest.
$ac_objext
20889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20890 (eval $ac_compile) 2>conftest.er1
20892 grep -v '^ *+' conftest.er1
>conftest.err
20894 cat conftest.err
>&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); } &&
20897 { ac_try
='test -z "$ac_c_werror_flag"
20898 || test ! -s conftest.err'
20899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20900 (eval $ac_try) 2>&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); }; } &&
20904 { ac_try
='test -s conftest.$ac_objext'
20905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906 (eval $ac_try) 2>&5
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; }; then
20910 ac_header_compiler
=yes
20912 echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.
$ac_ext >&5
20915 ac_header_compiler
=no
20917 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20919 echo "${ECHO_T}$ac_header_compiler" >&6
20921 # Is the header present?
20922 echo "$as_me:$LINENO: checking tk.h presence" >&5
20923 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
20924 cat >conftest.
$ac_ext <<_ACEOF
20927 cat confdefs.h
>>conftest.
$ac_ext
20928 cat >>conftest.
$ac_ext <<_ACEOF
20929 /* end confdefs.h. */
20932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20933 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20935 grep -v '^ *+' conftest.er1
>conftest.err
20937 cat conftest.err
>&5
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); } >/dev
/null
; then
20940 if test -s conftest.err
; then
20941 ac_cpp_err
=$ac_c_preproc_warn_flag
20942 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20949 if test -z "$ac_cpp_err"; then
20950 ac_header_preproc
=yes
20952 echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.
$ac_ext >&5
20955 ac_header_preproc
=no
20957 rm -f conftest.err conftest.
$ac_ext
20958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20959 echo "${ECHO_T}$ac_header_preproc" >&6
20961 # So? What about this header?
20962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20964 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20965 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20966 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20967 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20968 ac_header_preproc
=yes
20971 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20972 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20973 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
20974 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
20975 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20976 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
20977 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
20978 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
20979 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
20980 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
20981 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
20982 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
20985 ## ------------------------------------------ ##
20986 ## Report this to the AC_PACKAGE_NAME lists. ##
20987 ## ------------------------------------------ ##
20990 sed "s/^/$as_me: WARNING: /" >&2
20993 echo "$as_me:$LINENO: checking for tk.h" >&5
20994 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20995 if test "${ac_cv_header_tk_h+set}" = set; then
20996 echo $ECHO_N "(cached) $ECHO_C" >&6
20998 ac_cv_header_tk_h
=$ac_header_preproc
21000 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
21001 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
21004 if test $ac_cv_header_tk_h = yes; then
21005 ac_cv_c_tkh
=installed
21015 if test x
"${ac_cv_c_tkh}" != x
; then
21017 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
21018 echo "$as_me:$LINENO: result: is installed" >&5
21019 echo "${ECHO_T}is installed" >&6
21022 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
21023 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
21024 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
21025 TKHDIR
="-I${ac_cv_c_tkh}"
21028 TKHDIR
="# no Tk directory found"
21029 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
21030 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
21037 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
21038 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
21039 if test x
"${ac_cv_c_itclh}" = x
; then
21040 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
21041 if test -f $i/generic
/itcl.h
; then
21042 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
21047 if test x
"${ac_cv_c_itclh}" = x
; then
21048 ITCLHDIR
="# no Itcl private headers found"
21049 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
21050 echo "$as_me: error: Can't find Itcl private headers" >&2;}
21051 { (exit 1); exit 1; }; }
21053 if test x
"${ac_cv_c_itclh}" != x
; then
21054 ITCLHDIR
="-I${ac_cv_c_itclh}"
21056 # should always be here
21057 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
21062 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
21063 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
21064 if test x
"${ac_cv_c_itkh}" = x
; then
21065 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
21066 if test -f $i/generic
/itk.h
; then
21067 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
21072 if test x
"${ac_cv_c_itkh}" = x
; then
21073 ITKHDIR
="# no Itk private headers found"
21074 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
21075 echo "$as_me: error: Can't find Itk private headers" >&2;}
21076 { (exit 1); exit 1; }; }
21078 if test x
"${ac_cv_c_itkh}" != x
; then
21079 ITKHDIR
="-I${ac_cv_c_itkh}"
21081 # should always be here
21082 # ITKLIB="../itcl/itk/unix/libitk.a"
21088 # now look for Tk library stuff
21090 tkdir
="../tk/${configdir}/"
21092 TK_DEPS
="${tkdir}${TK_LIB_FILE}"
21094 # now look for Itcl library stuff
21098 # Ok, lets find the itcl configuration
21099 # First, look for one uninstalled.
21100 # the alternative search directory is invoked by --with-itclconfig
21103 if test x
"${no_itcl}" = x
; then
21104 # we reset no_itcl in case something fails here
21107 # Check whether --with-itclconfig or --without-itclconfig was given.
21108 if test "${with_itclconfig+set}" = set; then
21109 withval
="$with_itclconfig"
21110 with_itclconfig
=${withval}
21112 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
21113 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
21114 if test "${ac_cv_c_itclconfig+set}" = set; then
21115 echo $ECHO_N "(cached) $ECHO_C" >&6
21119 # First check to see if --with-itclconfig was specified.
21120 if test x
"${with_itclconfig}" != x
; then
21121 if test -f "${with_itclconfig}/itclConfig.sh" ; then
21122 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
21124 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
21125 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
21126 { (exit 1); exit 1; }; }
21130 # then check for a private Itcl library
21131 if test x
"${ac_cv_c_itclconfig}" = x
; then
21134 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
21136 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
21138 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
21139 if test -f "$i/itclConfig.sh" ; then
21140 ac_cv_c_itclconfig
=`(cd $i; pwd)`
21145 # check in a few common install locations
21146 if test x
"${ac_cv_c_itclconfig}" = x
; then
21147 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21148 if test -f "$i/itclConfig.sh" ; then
21149 ac_cv_c_itclconfig
=`(cd $i; pwd)`
21154 # check in a few other private locations
21155 if test x
"${ac_cv_c_itclconfig}" = x
; then
21157 ${srcdir}/..
/itcl
/itcl \
21158 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
21159 if test -f "$i/itclConfig.sh" ; then
21160 ac_cv_c_itclconfig
=`(cd $i; pwd)`
21168 if test x
"${ac_cv_c_itclconfig}" = x
; then
21169 ITCLCONFIG
="# no Itcl configs found"
21170 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
21171 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
21174 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
21175 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
21176 echo "${ECHO_T}found $ITCLCONFIG" >&6
21180 if test -z "${no_itcl}"; then
21182 if test -f "$ITCLCONFIG" ; then
21197 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
21198 ITCL_DEPS
="${ITCL_LIB_FULL_PATH}"
21202 # now look for Itk library stuff
21205 # Ok, lets find the itk configuration
21206 # First, look for one uninstalled.
21207 # the alternative search directory is invoked by --with-itkconfig
21210 if test x
"${no_itk}" = x
; then
21211 # we reset no_itk in case something fails here
21214 # Check whether --with-itkconfig or --without-itkconfig was given.
21215 if test "${with_itkconfig+set}" = set; then
21216 withval
="$with_itkconfig"
21217 with_itkconfig
=${withval}
21219 echo "$as_me:$LINENO: checking for Itk configuration" >&5
21220 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
21221 if test "${ac_cv_c_itkconfig+set}" = set; then
21222 echo $ECHO_N "(cached) $ECHO_C" >&6
21226 # First check to see if --with-itkconfig was specified.
21227 if test x
"${with_itkconfig}" != x
; then
21228 if test -f "${with_itkconfig}/itkConfig.sh" ; then
21229 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
21231 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
21232 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
21233 { (exit 1); exit 1; }; }
21237 # then check for a private Itk library
21238 if test x
"${ac_cv_c_itkconfig}" = x
; then
21241 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
21243 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
21245 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
21246 if test -f "$i/itkConfig.sh" ; then
21247 ac_cv_c_itkconfig
=`(cd $i; pwd)`
21252 # check in a few common install locations
21253 if test x
"${ac_cv_c_itkconfig}" = x
; then
21254 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21255 if test -f "$i/itkConfig.sh" ; then
21256 ac_cv_c_itkconfig
=`(cd $i; pwd)`
21261 # check in a few other private locations
21262 if test x
"${ac_cv_c_itkconfig}" = x
; then
21264 ${srcdir}/..
/itcl
/itk \
21265 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
21266 if test -f "$i/itkConfig.sh" ; then
21267 ac_cv_c_itkconfig
=`(cd $i; pwd)`
21275 if test x
"${ac_cv_c_itkconfig}" = x
; then
21276 ITKCONFIG
="# no Itk configs found"
21277 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
21278 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
21281 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
21282 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
21283 echo "${ECHO_T}found $ITKCONFIG" >&6
21288 if test -z "${no_itcl}"; then
21290 if test -f "$ITKCONFIG" ; then
21305 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
21306 ITK_DEPS
="${ITK_LIB_FULL_PATH}"
21309 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
21311 # Include some libraries that Tcl and Tk want.
21312 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
21313 # Yes, the ordering seems wrong here. But it isn't.
21314 # TK_LIBS is the list of libraries that need to be linked
21315 # after Tcl/Tk. Note that this isn't put into LIBS. If it
21316 # were in LIBS then any link tests after this point would
21317 # try to include things like `$(LIBGUI)', which wouldn't work.
21318 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
21320 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
21321 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
21322 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
21323 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
21324 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
21325 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
21326 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
21328 if test x
$gdb_cv_os_cygwin = xyes
; then
21329 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
21330 WIN32LDAPP
="-Wl,--subsystem,console"
21331 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
21338 subdirs
="$subdirs gdbtk"
21355 echo "$as_me:$LINENO: checking for X" >&5
21356 echo $ECHO_N "checking for X... $ECHO_C" >&6
21359 # Check whether --with-x or --without-x was given.
21360 if test "${with_x+set}" = set; then
21364 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21365 if test "x$with_x" = xno
; then
21366 # The user explicitly disabled X.
21369 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
21370 # Both variables are already set.
21373 if test "${ac_cv_have_x+set}" = set; then
21374 echo $ECHO_N "(cached) $ECHO_C" >&6
21376 # One or both of the vars are not set, and there is no cached value.
21377 ac_x_includes
=no ac_x_libraries
=no
21378 rm -fr conftest.dir
21379 if mkdir conftest.dir
; then
21381 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
21382 cat >Imakefile
<<'_ACEOF'
21384 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
21386 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
21387 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21388 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21389 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21390 for ac_extension
in a so sl
; do
21391 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
21392 test -f $ac_im_libdir/libX11.
$ac_extension; then
21393 ac_im_usrlibdir
=$ac_im_libdir; break
21396 # Screen out bogus values from the imake configuration. They are
21397 # bogus both because they are the default anyway, and because
21398 # using them would break gcc on systems where it needs fixed includes.
21399 case $ac_im_incroot in
21401 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
21403 case $ac_im_usrlibdir in
21404 /usr
/lib |
/lib
) ;;
21405 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
21409 rm -fr conftest.dir
21412 # Standard set of common directories for X headers.
21413 # Check X11 before X11Rn because it is often a symlink to the current release.
21425 /usr/local/X11/include
21426 /usr/local/X11R6/include
21427 /usr/local/X11R5/include
21428 /usr/local/X11R4/include
21430 /usr/local/include/X11
21431 /usr/local/include/X11R6
21432 /usr/local/include/X11R5
21433 /usr/local/include/X11R4
21437 /usr/XFree86/include/X11
21441 /usr/unsupported/include
21442 /usr/athena/include
21443 /usr/local/x11r5/include
21444 /usr/lpp/Xamples/include
21446 /usr/openwin/include
21447 /usr/openwin/share/include'
21449 if test "$ac_x_includes" = no
; then
21450 # Guess where to find include files, by looking for Intrinsic.h.
21451 # First, try using that file with no special directory specified.
21452 cat >conftest.
$ac_ext <<_ACEOF
21455 cat confdefs.h
>>conftest.
$ac_ext
21456 cat >>conftest.
$ac_ext <<_ACEOF
21457 /* end confdefs.h. */
21458 #include <X11/Intrinsic.h>
21460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21461 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21463 grep -v '^ *+' conftest.er1
>conftest.err
21465 cat conftest.err
>&5
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); } >/dev
/null
; then
21468 if test -s conftest.err
; then
21469 ac_cpp_err
=$ac_c_preproc_warn_flag
21470 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21477 if test -z "$ac_cpp_err"; then
21478 # We can compile using X headers with no special include directory.
21481 echo "$as_me: failed program was:" >&5
21482 sed 's/^/| /' conftest.
$ac_ext >&5
21484 for ac_dir
in $ac_x_header_dirs; do
21485 if test -r "$ac_dir/X11/Intrinsic.h"; then
21486 ac_x_includes
=$ac_dir
21491 rm -f conftest.err conftest.
$ac_ext
21492 fi # $ac_x_includes = no
21494 if test "$ac_x_libraries" = no
; then
21495 # Check for the libraries.
21496 # See if we find them without any special options.
21497 # Don't add to $LIBS permanently.
21500 cat >conftest.
$ac_ext <<_ACEOF
21503 cat confdefs.h
>>conftest.
$ac_ext
21504 cat >>conftest.
$ac_ext <<_ACEOF
21505 /* end confdefs.h. */
21506 #include <X11/Intrinsic.h>
21515 rm -f conftest.
$ac_objext conftest
$ac_exeext
21516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21517 (eval $ac_link) 2>conftest.er1
21519 grep -v '^ *+' conftest.er1
>conftest.err
21521 cat conftest.err
>&5
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); } &&
21524 { ac_try
='test -z "$ac_c_werror_flag"
21525 || test ! -s conftest.err'
21526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21527 (eval $ac_try) 2>&5
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); }; } &&
21531 { ac_try
='test -s conftest$ac_exeext'
21532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21533 (eval $ac_try) 2>&5
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); }; }; then
21538 # We can link X programs with no special library path.
21541 echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.
$ac_ext >&5
21545 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21547 # Don't even attempt the hair of trying to link an X program!
21548 for ac_extension
in a so sl
; do
21549 if test -r $ac_dir/libXt.
$ac_extension; then
21550 ac_x_libraries
=$ac_dir
21556 rm -f conftest.err conftest.
$ac_objext \
21557 conftest
$ac_exeext conftest.
$ac_ext
21558 fi # $ac_x_libraries = no
21560 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
21561 # Didn't find X anywhere. Cache the known absence of X.
21562 ac_cv_have_x
="have_x=no"
21564 # Record where we found X for the cache.
21565 ac_cv_have_x
="have_x=yes \
21566 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21571 eval "$ac_cv_have_x"
21574 if test "$have_x" != yes; then
21575 echo "$as_me:$LINENO: result: $have_x" >&5
21576 echo "${ECHO_T}$have_x" >&6
21579 # If each of the values was on the command line, it overrides each guess.
21580 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
21581 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
21582 # Update the cache value to reflect the command line values.
21583 ac_cv_have_x
="have_x=yes \
21584 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21585 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21586 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21590 # Check whether we should enable the TUI, but only do so if we really
21592 if test x
"$enable_tui" = xyes
; then
21593 if test -d $srcdir/tui
; then
21594 if test "$ac_cv_search_waddstr" != no
; then
21595 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21596 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21597 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21598 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21599 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21600 CONFIG_ALL
="${CONFIG_ALL} all-tui"
21601 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-tui"
21602 CONFIG_INSTALL
="${CONFIG_INSTALL} install-tui"
21603 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-tui"
21605 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21606 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
21611 # Unlike the sim directory, whether a simulator is linked is controlled by
21612 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
21613 # This code just checks for a few cases where we'd like to ignore those
21614 # definitions, even when they're present in the '.mt' file. These cases
21615 # are when --disable-sim is specified, or if the simulator directory is
21616 # not part of the source tree.
21618 # Check whether --enable-sim or --disable-sim was given.
21619 if test "${enable_sim+set}" = set; then
21620 enableval
="$enable_sim"
21621 echo "enable_sim = $enable_sim";
21622 echo "enableval = ${enableval}";
21623 case "${enableval}" in
21624 yes) ignore_sim
=false
;;
21625 no
) ignore_sim
=true
;;
21626 *) ignore_sim
=false
;;
21632 if test ! -d "${srcdir}/../sim"; then
21636 if test "${ignore_sim}" = "true"; then
21638 IGNORE_SIM_OBS
="SIM_OBS="
21643 cat >>confdefs.h
<<\_ACEOF
21662 # List of host floatformats.
21664 cat >>confdefs.h
<<_ACEOF
21665 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21669 cat >>confdefs.h
<<_ACEOF
21670 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21674 cat >>confdefs.h
<<_ACEOF
21675 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21679 # target_subdir is used by the testsuite to find the target libraries.
21681 if test "${host}" != "${target}"; then
21682 target_subdir
="${target_alias}/"
21687 if test "${target}" = "${host}"; then
21688 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21689 if test ! -f ${host_makefile_frag}; then
21690 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21691 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21692 { (exit 1); exit 1; }; }
21694 frags
="$frags $host_makefile_frag"
21696 host_makefile_frag
=/dev
/null
21699 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21700 if test ! -f ${target_makefile_frag}; then
21701 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21702 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21703 { (exit 1); exit 1; }; }
21705 frags
="$frags $target_makefile_frag"
21712 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21713 ' ${host_makefile_frag}`
21715 targetfile
=`sed -n '
21716 s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21717 ' ${target_makefile_frag}`
21719 if test "${target}" = "${host}"; then
21720 # We pick this up from the host configuration file (.mh) because we
21721 # do not have a native configuration Makefile fragment.
21722 nativefile
=`sed -n '
21723 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21724 ' ${host_makefile_frag}`
21728 if test x
"${gdb_osabi}" != x
; then
21730 cat >>confdefs.h
<<_ACEOF
21731 #define GDB_OSABI_DEFAULT $gdb_osabi
21736 # Enable multi-ice-gdb-server.
21737 # Check whether --enable-multi-ice or --disable-multi-ice was given.
21738 if test "${enable_multi_ice+set}" = set; then
21739 enableval
="$enable_multi_ice"
21743 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21744 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21745 { (exit 1); exit 1; }; } ;;
21748 if test "x$enable_multi_ice" = xyes
; then
21751 subdirs
="$subdirs multi-ice"
21755 # We only build gdbserver automatically if host and target are the same.
21756 if test "x$target" = "x$host"; then
21757 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21758 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21759 if test "x$build_gdbserver" = xyes
; then
21760 echo "$as_me:$LINENO: result: yes" >&5
21761 echo "${ECHO_T}yes" >&6
21764 subdirs
="$subdirs gdbserver"
21767 echo "$as_me:$LINENO: result: no" >&5
21768 echo "${ECHO_T}no" >&6
21772 # We configure the nlm subdirectory on netware targets, as instructed
21773 # by configure.tgt.
21774 if test "x$build_nlm" = xyes
; then
21777 subdirs
="$subdirs nlm"
21781 # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21782 # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21783 # to an empty version.
21790 if test "${hostfile}" != ""; then
21792 case "${hostfile}" in
21793 xm-
*.h
) GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}" ;;
21794 * ) GDB_XM_FILE
="${hostfile}"
21796 files
="${files} ${GDB_XM_FILE}"
21797 links
="${links} xm.h"
21799 cat >>confdefs.h
<<_ACEOF
21800 #define GDB_XM_FILE "${GDB_XM_FILE}"
21808 if test "${targetfile}" != ""; then
21810 case "${targetfile}" in
21811 tm-
*.h
) GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}" ;;
21812 * ) GDB_TM_FILE
="${targetfile}"
21814 files
="${files} ${GDB_TM_FILE}"
21815 links
="${links} tm.h"
21817 cat >>confdefs.h
<<_ACEOF
21818 #define GDB_TM_FILE "${GDB_TM_FILE}"
21826 if test "${nativefile}" != ""; then
21828 case "${nativefile}" in
21829 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
21830 * ) GDB_NM_FILE
="${nativefile}"
21832 files
="${files} ${GDB_NM_FILE}"
21833 links
="${links} nm.h"
21835 cat >>confdefs.h
<<_ACEOF
21836 #define GDB_NM_FILE "${GDB_NM_FILE}"
21842 ac_sources
="$files"
21844 while test -n "$ac_sources"; do
21845 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
21846 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
21847 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
21849 ac_config_links
="$ac_config_links $ac_config_links_1"
21856 cat >>confdefs.h
<<\_ACEOF
21857 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21864 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21865 if test "${with_libiconv_prefix+set}" = set; then
21866 withval
="$with_libiconv_prefix"
21868 for dir
in `echo "$withval" | tr : ' '`; do
21869 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
21870 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
21875 echo "$as_me:$LINENO: checking for iconv" >&5
21876 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21877 if test "${am_cv_func_iconv+set}" = set; then
21878 echo $ECHO_N "(cached) $ECHO_C" >&6
21881 am_cv_func_iconv
="no, consider installing GNU libiconv"
21883 cat >conftest.
$ac_ext <<_ACEOF
21886 cat confdefs.h
>>conftest.
$ac_ext
21887 cat >>conftest.
$ac_ext <<_ACEOF
21888 /* end confdefs.h. */
21889 #include <stdlib.h>
21894 iconv_t cd = iconv_open("","");
21895 iconv(cd,NULL,NULL,NULL,NULL);
21901 rm -f conftest.
$ac_objext conftest
$ac_exeext
21902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21903 (eval $ac_link) 2>conftest.er1
21905 grep -v '^ *+' conftest.er1
>conftest.err
21907 cat conftest.err
>&5
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); } &&
21910 { ac_try
='test -z "$ac_c_werror_flag"
21911 || test ! -s conftest.err'
21912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21913 (eval $ac_try) 2>&5
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); }; } &&
21917 { ac_try
='test -s conftest$ac_exeext'
21918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21919 (eval $ac_try) 2>&5
21921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); }; }; then
21923 am_cv_func_iconv
=yes
21925 echo "$as_me: failed program was:" >&5
21926 sed 's/^/| /' conftest.
$ac_ext >&5
21929 rm -f conftest.err conftest.
$ac_objext \
21930 conftest
$ac_exeext conftest.
$ac_ext
21931 if test "$am_cv_func_iconv" != yes; then
21932 am_save_LIBS
="$LIBS"
21933 LIBS
="$LIBS -liconv"
21934 cat >conftest.
$ac_ext <<_ACEOF
21937 cat confdefs.h
>>conftest.
$ac_ext
21938 cat >>conftest.
$ac_ext <<_ACEOF
21939 /* end confdefs.h. */
21940 #include <stdlib.h>
21945 iconv_t cd = iconv_open("","");
21946 iconv(cd,NULL,NULL,NULL,NULL);
21952 rm -f conftest.
$ac_objext conftest
$ac_exeext
21953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21954 (eval $ac_link) 2>conftest.er1
21956 grep -v '^ *+' conftest.er1
>conftest.err
21958 cat conftest.err
>&5
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); } &&
21961 { ac_try
='test -z "$ac_c_werror_flag"
21962 || test ! -s conftest.err'
21963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21964 (eval $ac_try) 2>&5
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); }; } &&
21968 { ac_try
='test -s conftest$ac_exeext'
21969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21970 (eval $ac_try) 2>&5
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); }; }; then
21974 am_cv_lib_iconv
=yes
21975 am_cv_func_iconv
=yes
21977 echo "$as_me: failed program was:" >&5
21978 sed 's/^/| /' conftest.
$ac_ext >&5
21981 rm -f conftest.err conftest.
$ac_objext \
21982 conftest
$ac_exeext conftest.
$ac_ext
21983 LIBS
="$am_save_LIBS"
21987 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21988 echo "${ECHO_T}$am_cv_func_iconv" >&6
21989 if test "$am_cv_func_iconv" = yes; then
21991 cat >>confdefs.h
<<\_ACEOF
21992 #define HAVE_ICONV 1
21995 echo "$as_me:$LINENO: checking for iconv declaration" >&5
21996 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
21997 if test "${am_cv_proto_iconv+set}" = set; then
21998 echo $ECHO_N "(cached) $ECHO_C" >&6
22001 cat >conftest.
$ac_ext <<_ACEOF
22004 cat confdefs.h
>>conftest.
$ac_ext
22005 cat >>conftest.
$ac_ext <<_ACEOF
22006 /* end confdefs.h. */
22008 #include <stdlib.h>
22014 #if defined(__STDC__) || defined(__cplusplus)
22015 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22028 rm -f conftest.
$ac_objext
22029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22030 (eval $ac_compile) 2>conftest.er1
22032 grep -v '^ *+' conftest.er1
>conftest.err
22034 cat conftest.err
>&5
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); } &&
22037 { ac_try
='test -z "$ac_c_werror_flag"
22038 || test ! -s conftest.err'
22039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22040 (eval $ac_try) 2>&5
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); }; } &&
22044 { ac_try
='test -s conftest.$ac_objext'
22045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22046 (eval $ac_try) 2>&5
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); }; }; then
22050 am_cv_proto_iconv_arg1
=""
22052 echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.
$ac_ext >&5
22055 am_cv_proto_iconv_arg1
="const"
22057 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22058 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);"
22061 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22062 echo "$as_me:$LINENO: result: ${ac_t:-
22063 }$am_cv_proto_iconv" >&5
22064 echo "${ECHO_T}${ac_t:-
22065 }$am_cv_proto_iconv" >&6
22067 cat >>confdefs.h
<<_ACEOF
22068 #define ICONV_CONST $am_cv_proto_iconv_arg1
22073 if test "$am_cv_lib_iconv" = yes; then
22079 ac_config_files
="$ac_config_files Makefile .gdbinit:gdbinit.in"
22080 ac_config_commands
="$ac_config_commands default"
22081 cat >confcache
<<\_ACEOF
22082 # This file is a shell script that caches the results of configure
22083 # tests run on this system so they can be shared between configure
22084 # scripts and configure runs, see configure's option --config-cache.
22085 # It is not useful on other systems. If it contains results you don't
22086 # want to keep, you may remove or edit it.
22088 # config.status only pays attention to the cache file if you give it
22089 # the --recheck option to rerun configure.
22091 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22092 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22093 # following values.
22097 # The following way of writing the cache mishandles newlines in values,
22098 # but we know of no workaround that is simple, portable, and efficient.
22099 # So, don't put newlines in cache variables' values.
22100 # Ultrix sh set writes to stderr and can't be redirected directly,
22101 # and sets the high bit in the cache file unless we assign to the vars.
22104 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22106 # `set' does not quote correctly, so add quotes (double-quote
22107 # substitution turns \\\\ into \\, and sed turns \\ into \).
22110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22113 # `set' quotes correctly as required by POSIX, so do not add quotes.
22115 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22122 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22124 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22126 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22127 if test -w $cache_file; then
22128 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22129 cat confcache
>$cache_file
22131 echo "not updating unwritable cache $cache_file"
22136 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22137 # Let make expand exec_prefix.
22138 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22140 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22141 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22142 # trailing colons and then remove the whole line if VPATH becomes empty
22143 # (actually we leave an empty line to preserve line numbers).
22144 if test "x$srcdir" = x.
; then
22145 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22146 s/:*\$(srcdir):*/:/;
22147 s/:*\${srcdir}:*/:/;
22149 s/^\([^=]*=[ ]*\):*/\1/;
22155 DEFS
=-DHAVE_CONFIG_H
22159 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22160 # 1. Remove the extension, and $U if already installed.
22161 ac_i
=`echo "$ac_i" |
22162 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22164 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22165 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22167 LIBOBJS
=$ac_libobjs
22169 LTLIBOBJS
=$ac_ltlibobjs
22172 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22173 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22174 Usually this means the macro was only invoked conditionally." >&5
22175 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22176 Usually this means the macro was only invoked conditionally." >&2;}
22177 { (exit 1); exit 1; }; }
22180 : ${CONFIG_STATUS=./config.status}
22181 ac_clean_files_save
=$ac_clean_files
22182 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22183 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22184 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22185 cat >$CONFIG_STATUS <<_ACEOF
22187 # Generated by $as_me.
22188 # Run this file to recreate the current configuration.
22189 # Compiler output produced by configure, useful for debugging
22190 # configure, is in config.log if it exists.
22193 ac_cs_recheck=false
22195 SHELL=\${CONFIG_SHELL-$SHELL}
22198 cat >>$CONFIG_STATUS <<\_ACEOF
22199 ## --------------------- ##
22200 ## M4sh Initialization. ##
22201 ## --------------------- ##
22203 # Be Bourne compatible
22204 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22207 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22208 # is contrary to our usage. Disable this feature.
22209 alias -g '${1+"$@"}'='"$@"'
22210 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22213 DUALCASE
=1; export DUALCASE
# for MKS sh
22215 # Support unset when possible.
22216 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22223 # Work around bugs in pre-3.0 UWIN ksh.
22224 $as_unset ENV MAIL MAILPATH
22231 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22232 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22233 LC_TELEPHONE LC_TIME
22235 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22236 eval $as_var=C
; export $as_var
22242 # Required to use basename.
22243 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22249 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22250 as_basename
=basename
22256 # Name of the executable.
22257 as_me
=`$as_basename "$0" ||
22258 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22259 X"$0" : 'X\(//\)$' \| \
22260 X"$0" : 'X\(/\)$' \| \
22261 . : '\(.\)' 2>/dev/null ||
22263 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22264 /^X\/\(\/\/\)$/{ s//\1/; q; }
22265 /^X\/\(\/\).*/{ s//\1/; q; }
22269 # PATH needs CR, and LINENO needs CR and PATH.
22270 # Avoid depending upon Character Ranges.
22271 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22272 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22273 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22274 as_cr_digits
='0123456789'
22275 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22277 # The user is always right.
22278 if test "${PATH_SEPARATOR+set}" != set; then
22279 echo "#! /bin/sh" >conf$$.sh
22280 echo "exit 0" >>conf$$.sh
22282 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22291 as_lineno_1
=$LINENO
22292 as_lineno_2
=$LINENO
22293 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22294 test "x$as_lineno_1" != "x$as_lineno_2" &&
22295 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22296 # Find who we are. Look in the path if we contain no path at all
22299 *[\\/]* ) as_myself
=$0 ;;
22300 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22301 for as_dir
in $PATH
22304 test -z "$as_dir" && as_dir
=.
22305 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22310 # We did not find ourselves, most probably we were run as `sh COMMAND'
22311 # in which case we are not to be found in the path.
22312 if test "x$as_myself" = x
; then
22315 if test ! -f "$as_myself"; then
22316 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22317 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22318 { (exit 1); exit 1; }; }
22320 case $CONFIG_SHELL in
22322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22323 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22326 test -z "$as_dir" && as_dir
=.
22327 for as_base
in sh bash ksh sh5
; do
22330 if ("$as_dir/$as_base" -c '
22331 as_lineno_1=$LINENO
22332 as_lineno_2=$LINENO
22333 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22334 test "x$as_lineno_1" != "x$as_lineno_2" &&
22335 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22336 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22337 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22338 CONFIG_SHELL
=$as_dir/$as_base
22339 export CONFIG_SHELL
22340 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22348 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22349 # uniformly replaced by the line number. The first 'sed' inserts a
22350 # line-number line before each line; the second 'sed' does the real
22351 # work. The second script uses 'N' to pair each line-number line
22352 # with the numbered line, and appends trailing '-' during
22353 # substitution so that $LINENO is not a special case at line end.
22354 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22355 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22356 sed '=' <$as_myself |
22361 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22364 s,^['$as_cr_digits']*\n,,
22365 ' >$as_me.lineno
&&
22366 chmod +x
$as_me.lineno ||
22367 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22368 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22369 { (exit 1); exit 1; }; }
22371 # Don't try to exec as it changes $[0], causing all sort of problems
22372 # (the dirname of $[0] is not the place where we might find the
22373 # original and so on. Autoconf is especially sensible to this).
22375 # Exit status is that of the last command.
22380 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22381 *c
*,-n*) ECHO_N
= ECHO_C
='
22383 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22384 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22387 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22393 rm -f conf$$ conf$$.exe conf$$.
file
22395 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22396 # We could just check for DJGPP; but this test a) works b) is more generic
22397 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22398 if test -f conf$$.exe
; then
22399 # Don't use ln at all; we don't have any links
22404 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22409 rm -f conf$$ conf$$.exe conf$$.
file
22411 if mkdir
-p .
2>/dev
/null
; then
22414 test -d .
/-p && rmdir .
/-p
22418 as_executable_p
="test -f"
22420 # Sed expression to map a string onto a valid CPP name.
22421 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22423 # Sed expression to map a string onto a valid variable name.
22424 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22428 # We need space, tab and new line, in precisely that order.
22438 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22439 # report actual input values of CONFIG_FILES etc. instead of their
22440 # values after options handling. Logging --version etc. is OK.
22444 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22445 ## Running $as_me. ##
22450 This file was extended by $as_me, which was
22451 generated by GNU Autoconf 2.59. Invocation command line was
22453 CONFIG_FILES = $CONFIG_FILES
22454 CONFIG_HEADERS = $CONFIG_HEADERS
22455 CONFIG_LINKS = $CONFIG_LINKS
22456 CONFIG_COMMANDS = $CONFIG_COMMANDS
22460 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22464 # Files that config.status was made for.
22465 if test -n "$ac_config_files"; then
22466 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22469 if test -n "$ac_config_headers"; then
22470 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22473 if test -n "$ac_config_links"; then
22474 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22477 if test -n "$ac_config_commands"; then
22478 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22481 cat >>$CONFIG_STATUS <<\_ACEOF
22484 \`$as_me' instantiates files from templates according to the
22485 current configuration.
22487 Usage: $0 [OPTIONS] [FILE]...
22489 -h, --help print this help, then exit
22490 -V, --version print version number, then exit
22491 -q, --quiet do not print progress messages
22492 -d, --debug don't remove temporary files
22493 --recheck update $as_me by reconfiguring in the same conditions
22494 --file=FILE[:TEMPLATE]
22495 instantiate the configuration file FILE
22496 --header=FILE[:TEMPLATE]
22497 instantiate the configuration header FILE
22499 Configuration files:
22502 Configuration headers:
22505 Configuration links:
22508 Configuration commands:
22511 Report bugs to <bug-autoconf@gnu.org>."
22514 cat >>$CONFIG_STATUS <<_ACEOF
22517 configured by $0, generated by GNU Autoconf 2.59,
22518 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22520 Copyright (C) 2003 Free Software Foundation, Inc.
22521 This config.status script is free software; the Free Software Foundation
22522 gives unlimited permission to copy, distribute and modify it."
22527 cat >>$CONFIG_STATUS <<\_ACEOF
22528 # If no file are specified by the user, then we need to provide default
22529 # value. By we need to know if files were specified by the user.
22535 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
22536 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
22544 *) # This is not an option, so the user has probably given explicit
22547 ac_need_defaults
=false
;;
22551 # Handling of the options.
22553 cat >>$CONFIG_STATUS <<\_ACEOF
22554 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22556 --version |
--vers* |
-V )
22557 echo "$ac_cs_version"; exit 0 ;;
22559 # Conflict between --help and --header
22560 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22561 Try \`$0 --help' for more information." >&5
22562 echo "$as_me: error: ambiguous option: $1
22563 Try \`$0 --help' for more information." >&2;}
22564 { (exit 1); exit 1; }; };;
22565 --help |
--hel |
-h )
22566 echo "$ac_cs_usage"; exit 0 ;;
22567 --debug |
--d* |
-d )
22569 --file |
--fil |
--fi |
--f )
22571 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22572 ac_need_defaults
=false
;;
22573 --header |
--heade |
--head |
--hea )
22575 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22576 ac_need_defaults
=false
;;
22577 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22578 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22581 # This is an error.
22582 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22583 Try \`$0 --help' for more information." >&5
22584 echo "$as_me: error: unrecognized option: $1
22585 Try \`$0 --help' for more information." >&2;}
22586 { (exit 1); exit 1; }; } ;;
22588 *) ac_config_targets
="$ac_config_targets $1" ;;
22594 ac_configure_extra_args
=
22596 if $ac_cs_silent; then
22598 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22602 cat >>$CONFIG_STATUS <<_ACEOF
22603 if \$ac_cs_recheck; then
22604 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22605 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22610 cat >>$CONFIG_STATUS <<_ACEOF
22612 # INIT-COMMANDS section.
22616 gdb_host_cpu=$gdb_host_cpu
22617 gdb_target_cpu=$gdb_target_cpu
22618 nativefile=$nativefile
22625 cat >>$CONFIG_STATUS <<\_ACEOF
22626 for ac_config_target
in $ac_config_targets
22628 case "$ac_config_target" in
22629 # Handling of arguments.
22630 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
22631 ".gdbinit" ) CONFIG_FILES
="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22632 "$ac_config_links_1" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
22633 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
22634 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
22635 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22636 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22637 { (exit 1); exit 1; }; };;
22641 # If the user did not use the arguments to specify the items to instantiate,
22642 # then the envvar interface is used. Set only those that are not.
22643 # We use the long form for the default assignment because of an extremely
22644 # bizarre bug on SunOS 4.1.3.
22645 if $ac_need_defaults; then
22646 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22647 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22648 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
22649 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
22652 # Have a temporary directory for convenience. Make it in the build tree
22653 # simply because there is no reason to put it here, and in addition,
22654 # creating and moving files from /tmp can sometimes cause problems.
22655 # Create a temporary directory, and hook for its removal unless debugging.
22658 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22659 trap '{ (exit 1); exit 1; }' 1 2 13 15
22662 # Create a (secure) tmp directory for tmp files.
22665 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22666 test -n "$tmp" && test -d "$tmp"
22669 tmp
=.
/confstat$$
-$RANDOM
22670 (umask 077 && mkdir
$tmp)
22673 echo "$me: cannot create a temporary directory in ." >&2
22674 { (exit 1); exit 1; }
22679 cat >>$CONFIG_STATUS <<_ACEOF
22682 # CONFIG_FILES section.
22685 # No need to generate the scripts if there are no CONFIG_FILES.
22686 # This happens for instance when ./config.status config.h
22687 if test -n "\$CONFIG_FILES"; then
22688 # Protect against being on the right side of a sed subst in config.status.
22689 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22690 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22691 s,@SHELL@,$SHELL,;t t
22692 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22693 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22694 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22695 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22696 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22697 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22698 s,@exec_prefix@,$exec_prefix,;t t
22699 s,@prefix@,$prefix,;t t
22700 s,@program_transform_name@,$program_transform_name,;t t
22701 s,@bindir@,$bindir,;t t
22702 s,@sbindir@,$sbindir,;t t
22703 s,@libexecdir@,$libexecdir,;t t
22704 s,@datadir@,$datadir,;t t
22705 s,@sysconfdir@,$sysconfdir,;t t
22706 s,@sharedstatedir@,$sharedstatedir,;t t
22707 s,@localstatedir@,$localstatedir,;t t
22708 s,@libdir@,$libdir,;t t
22709 s,@includedir@,$includedir,;t t
22710 s,@oldincludedir@,$oldincludedir,;t t
22711 s,@infodir@,$infodir,;t t
22712 s,@mandir@,$mandir,;t t
22713 s,@build_alias@,$build_alias,;t t
22714 s,@host_alias@,$host_alias,;t t
22715 s,@target_alias@,$target_alias,;t t
22716 s,@DEFS@,$DEFS,;t t
22717 s,@ECHO_C@,$ECHO_C,;t t
22718 s,@ECHO_N@,$ECHO_N,;t t
22719 s,@ECHO_T@,$ECHO_T,;t t
22720 s,@LIBS@,$LIBS,;t t
22721 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22722 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22723 s,@MAINT@,$MAINT,;t t
22725 s,@CFLAGS@,$CFLAGS,;t t
22726 s,@LDFLAGS@,$LDFLAGS,;t t
22727 s,@CPPFLAGS@,$CPPFLAGS,;t t
22728 s,@ac_ct_CC@,$ac_ct_CC,;t t
22729 s,@EXEEXT@,$EXEEXT,;t t
22730 s,@OBJEXT@,$OBJEXT,;t t
22732 s,@EGREP@,$EGREP,;t t
22733 s,@build@,$build,;t t
22734 s,@build_cpu@,$build_cpu,;t t
22735 s,@build_vendor@,$build_vendor,;t t
22736 s,@build_os@,$build_os,;t t
22737 s,@host@,$host,;t t
22738 s,@host_cpu@,$host_cpu,;t t
22739 s,@host_vendor@,$host_vendor,;t t
22740 s,@host_os@,$host_os,;t t
22741 s,@target@,$target,;t t
22742 s,@target_cpu@,$target_cpu,;t t
22743 s,@target_vendor@,$target_vendor,;t t
22744 s,@target_os@,$target_os,;t t
22745 s,@SET_MAKE@,$SET_MAKE,;t t
22746 s,@RANLIB@,$RANLIB,;t t
22747 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22748 s,@ALLOCA@,$ALLOCA,;t t
22749 s,@USE_NLS@,$USE_NLS,;t t
22750 s,@MSGFMT@,$MSGFMT,;t t
22751 s,@GMSGFMT@,$GMSGFMT,;t t
22752 s,@XGETTEXT@,$XGETTEXT,;t t
22753 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22754 s,@CATALOGS@,$CATALOGS,;t t
22755 s,@CATOBJEXT@,$CATOBJEXT,;t t
22756 s,@DATADIRNAME@,$DATADIRNAME,;t t
22757 s,@GMOFILES@,$GMOFILES,;t t
22758 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22759 s,@INTLDEPS@,$INTLDEPS,;t t
22760 s,@INTLLIBS@,$INTLLIBS,;t t
22761 s,@INTLOBJS@,$INTLOBJS,;t t
22762 s,@POFILES@,$POFILES,;t t
22763 s,@POSUB@,$POSUB,;t t
22764 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
22765 s,@GT_NO@,$GT_NO,;t t
22766 s,@GT_YES@,$GT_YES,;t t
22767 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22769 s,@localedir@,$localedir,;t t
22770 s,@PACKAGE@,$PACKAGE,;t t
22771 s,@subdirs@,$subdirs,;t t
22773 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22774 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22775 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22776 s,@LN_S@,$LN_S,;t t
22777 s,@YACC@,$YACC,;t t
22779 s,@ac_ct_AR@,$ac_ct_AR,;t t
22780 s,@DLLTOOL@,$DLLTOOL,;t t
22781 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22782 s,@WINDRES@,$WINDRES,;t t
22783 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22785 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22786 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22787 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22788 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22789 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22790 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22791 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22792 s,@WIN32LIBS@,$WIN32LIBS,;t t
22793 s,@LIBGUI@,$LIBGUI,;t t
22794 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22795 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22796 s,@TCL_VERSION@,$TCL_VERSION,;t t
22797 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22798 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22799 s,@TCL_CC@,$TCL_CC,;t t
22800 s,@TCL_DEFS@,$TCL_DEFS,;t t
22801 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22802 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22803 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22804 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22805 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22806 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22807 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22808 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22809 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22810 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22811 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22812 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22813 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22814 s,@TK_VERSION@,$TK_VERSION,;t t
22815 s,@TK_DEFS@,$TK_DEFS,;t t
22816 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22817 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22818 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22819 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22820 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22821 s,@TCLHDIR@,$TCLHDIR,;t t
22822 s,@TKHDIR@,$TKHDIR,;t t
22823 s,@ITCLHDIR@,$ITCLHDIR,;t t
22824 s,@ITKHDIR@,$ITKHDIR,;t t
22825 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
22826 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
22827 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
22828 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
22829 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
22830 s,@ITK_VERSION@,$ITK_VERSION,;t t
22831 s,@ITK_DEFS@,$ITK_DEFS,;t t
22832 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
22833 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
22834 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
22835 s,@X_CFLAGS@,$X_CFLAGS,;t t
22836 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22837 s,@X_LIBS@,$X_LIBS,;t t
22838 s,@TCL_DEPS@,$TCL_DEPS,;t t
22839 s,@TK_DEPS@,$TK_DEPS,;t t
22840 s,@ITCLLIB@,$ITCLLIB,;t t
22841 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
22842 s,@ITKLIB@,$ITKLIB,;t t
22843 s,@ITK_DEPS@,$ITK_DEPS,;t t
22844 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22845 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22846 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22847 s,@IGNORE_SIM@,$IGNORE_SIM,;t t
22848 s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
22849 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22850 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22851 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22852 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22853 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22854 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22855 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22856 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22857 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22858 s,@target_subdir@,$target_subdir,;t t
22859 s,@frags@,$frags,;t t
22860 s,@xm_h@,$xm_h,;t t
22861 s,@tm_h@,$tm_h,;t t
22862 s,@nm_h@,$nm_h,;t t
22863 s,@LIBICONV@,$LIBICONV,;t t
22864 s,@LIBOBJS@,$LIBOBJS,;t t
22865 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22866 /@host_makefile_frag@/r $host_makefile_frag
22867 s,@host_makefile_frag@,,;t t
22868 /@target_makefile_frag@/r $target_makefile_frag
22869 s,@target_makefile_frag@,,;t t
22874 cat >>$CONFIG_STATUS <<\_ACEOF
22875 # Split the substitutions into bite-sized pieces for seds with
22876 # small command number limits, like on Digital OSF/1 and HP-UX.
22877 ac_max_sed_lines
=48
22878 ac_sed_frag
=1 # Number of current file.
22879 ac_beg
=1 # First line for current file.
22880 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22883 while $ac_more_lines; do
22884 if test $ac_beg -gt 1; then
22885 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22887 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22889 if test ! -s $tmp/subs.frag
; then
22890 ac_more_lines
=false
22892 # The purpose of the label and of the branching condition is to
22893 # speed up the sed processing (if there are no `@' at all, there
22894 # is no need to browse any of the substitutions).
22895 # These are the two extra sed commands mentioned above.
22897 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22898 if test -z "$ac_sed_cmds"; then
22899 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22901 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22903 ac_sed_frag
=`expr $ac_sed_frag + 1`
22905 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22908 if test -z "$ac_sed_cmds"; then
22911 fi # test -n "$CONFIG_FILES"
22914 cat >>$CONFIG_STATUS <<\_ACEOF
22915 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22916 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22918 - |
*:- |
*:-:* ) # input from stdin
22920 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22921 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22922 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22923 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22924 * ) ac_file_in
=$ac_file.
in ;;
22927 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22928 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22929 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22930 X"$ac_file" : 'X\(//\)[^/]' \| \
22931 X"$ac_file" : 'X\(//\)$' \| \
22932 X"$ac_file" : 'X\(/\)' \| \
22933 . : '\(.\)' 2>/dev/null ||
22935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22936 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22937 /^X\(\/\/\)$/{ s//\1/; q; }
22938 /^X\(\/\).*/{ s//\1/; q; }
22940 { if $as_mkdir_p; then
22945 while test ! -d "$as_dir"; do
22946 as_dirs
="$as_dir $as_dirs"
22947 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22948 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22949 X"$as_dir" : 'X\(//\)[^/]' \| \
22950 X"$as_dir" : 'X\(//\)$' \| \
22951 X"$as_dir" : 'X\(/\)' \| \
22952 . : '\(.\)' 2>/dev/null ||
22954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22955 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22956 /^X\(\/\/\)$/{ s//\1/; q; }
22957 /^X\(\/\).*/{ s//\1/; q; }
22960 test ! -n "$as_dirs" || mkdir
$as_dirs
22961 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22962 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22963 { (exit 1); exit 1; }; }; }
22967 if test "$ac_dir" != .
; then
22968 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22969 # A "../" for each directory in $ac_dir_suffix.
22970 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22972 ac_dir_suffix
= ac_top_builddir
=
22976 .
) # No --srcdir option. We are building in place.
22978 if test -z "$ac_top_builddir"; then
22981 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22983 [\\/]* | ?
:[\\/]* ) # Absolute path.
22984 ac_srcdir
=$srcdir$ac_dir_suffix;
22985 ac_top_srcdir
=$srcdir ;;
22986 *) # Relative path.
22987 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22988 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22991 # Do not use `cd foo && pwd` to compute absolute paths, because
22992 # the directories may not exist.
22994 .
) ac_abs_builddir
="$ac_dir";;
22997 .
) ac_abs_builddir
=`pwd`;;
22998 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22999 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23002 case $ac_abs_builddir in
23003 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23005 case ${ac_top_builddir}.
in
23006 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23007 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23008 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23011 case $ac_abs_builddir in
23012 .
) ac_abs_srcdir
=$ac_srcdir;;
23015 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23016 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23017 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23020 case $ac_abs_builddir in
23021 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23023 case $ac_top_srcdir in
23024 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23025 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23026 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23032 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23033 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23036 if test x
"$ac_file" != x-
; then
23037 { echo "$as_me:$LINENO: creating $ac_file" >&5
23038 echo "$as_me: creating $ac_file" >&6;}
23041 # Let's still pretend it is `configure' which instantiates (i.e., don't
23042 # use $as_me), people would be surprised to read:
23043 # /* config.h. Generated by config.status. */
23044 if test x
"$ac_file" = x-
; then
23047 configure_input
="$ac_file. "
23049 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23050 sed 's,.*/,,'` by configure."
23052 # First look for the input files in the build tree, otherwise in the
23054 ac_file_inputs
=`IFS=:
23055 for f in $ac_file_in; do
23057 -) echo $tmp/stdin ;;
23059 # Absolute (can't be DOS-style, as IFS=:)
23060 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23061 echo "$as_me: error: cannot find input file: $f" >&2;}
23062 { (exit 1); exit 1; }; }
23065 if test -f "$f"; then
23068 elif test -f "$srcdir/$f"; then
23073 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23074 echo "$as_me: error: cannot find input file: $f" >&2;}
23075 { (exit 1); exit 1; }; }
23078 done` ||
{ (exit 1); exit 1; }
23080 cat >>$CONFIG_STATUS <<_ACEOF
23084 cat >>$CONFIG_STATUS <<\_ACEOF
23086 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23087 s
,@configure_input@
,$configure_input,;t t
23088 s
,@srcdir@
,$ac_srcdir,;t t
23089 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23090 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23091 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23092 s
,@builddir@
,$ac_builddir,;t t
23093 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23094 s
,@top_builddir@
,$ac_top_builddir,;t t
23095 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23096 s
,@INSTALL@
,$ac_INSTALL,;t t
23097 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23099 if test x"$ac_file" != x-; then
23100 mv $tmp/out $ac_file
23108 cat >>$CONFIG_STATUS <<\_ACEOF
23111 # CONFIG_HEADER section.
23114 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23115 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23117 # ac_d sets the value in "#define NAME VALUE" lines.
23118 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23119 ac_dB
='[ ].*$,\1#\2'
23122 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23123 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23124 ac_uB
='$,\1#\2define\3'
23128 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23129 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23131 - |
*:- |
*:-:* ) # input from stdin
23133 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23134 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23135 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23136 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23137 * ) ac_file_in
=$ac_file.
in ;;
23140 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23141 echo "$as_me: creating $ac_file" >&6;}
23143 # First look for the input files in the build tree, otherwise in the
23145 ac_file_inputs
=`IFS=:
23146 for f in $ac_file_in; do
23148 -) echo $tmp/stdin ;;
23150 # Absolute (can't be DOS-style, as IFS=:)
23151 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23152 echo "$as_me: error: cannot find input file: $f" >&2;}
23153 { (exit 1); exit 1; }; }
23154 # Do quote $f, to prevent DOS paths from being IFS'd.
23157 if test -f "$f"; then
23160 elif test -f "$srcdir/$f"; then
23165 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23166 echo "$as_me: error: cannot find input file: $f" >&2;}
23167 { (exit 1); exit 1; }; }
23170 done` ||
{ (exit 1); exit 1; }
23171 # Remove the trailing spaces.
23172 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23176 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23177 # `conftest.undefs', that substitutes the proper values into
23178 # config.h.in to produce config.h. The first handles `#define'
23179 # templates, and the second `#undef' templates.
23180 # And first: Protect against being on the right side of a sed subst in
23181 # config.status. Protect against being in an unquoted here document
23182 # in config.status.
23183 rm -f conftest.defines conftest.undefs
23184 # Using a here document instead of a string reduces the quoting nightmare.
23185 # Putting comments in sed scripts is not portable.
23187 # `end' is used to avoid that the second main sed command (meant for
23188 # 0-ary CPP macros) applies to n-ary macro definitions.
23189 # See the Autoconf documentation for `clear'.
23190 cat >confdef2sed.
sed <<\_ACEOF
23195 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23197 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23200 # If some macros were called several times there might be several times
23201 # the same #defines, which is useless. Nevertheless, we may not want to
23202 # sort them, since we want the *last* AC-DEFINE to be honored.
23203 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23204 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23205 rm -f confdef2sed.sed
23207 # This sed command replaces #undef with comments. This is necessary, for
23208 # example, in the case of _POSIX_SOURCE, which is predefined and required
23209 # on some systems where configure will not decide to define it.
23210 cat >>conftest.undefs <<\_ACEOF
23211 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23214 # Break up conftest.defines because some shells have a limit on the size
23215 # of here documents, and old seds have small limits too (100 cmds).
23216 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23217 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23218 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23219 echo ' :' >>$CONFIG_STATUS
23220 rm -f conftest.tail
23221 while grep . conftest.defines >/dev/null
23223 # Write a limited-size here document to $tmp/defines.sed.
23224 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23225 # Speed up: don't consider the non `#define' lines.
23226 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23227 # Work around the forget-to-reset-the-flag bug.
23228 echo 't clr' >>$CONFIG_STATUS
23229 echo ': clr' >>$CONFIG_STATUS
23230 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23232 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23234 mv $tmp/out $tmp/in
23236 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23237 rm -f conftest.defines
23238 mv conftest.
tail conftest.defines
23240 rm -f conftest.defines
23241 echo ' fi # grep' >>$CONFIG_STATUS
23242 echo >>$CONFIG_STATUS
23244 # Break up conftest.undefs because some shells have a limit on the size
23245 # of here documents, and old seds have small limits too (100 cmds).
23246 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23247 rm -f conftest.
tail
23248 while grep . conftest.undefs
>/dev
/null
23250 # Write a limited-size here document to $tmp/undefs.sed.
23251 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23252 # Speed up: don't consider the non
`#undef'
23253 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23254 # Work around the forget-to-reset-the-flag bug.
23255 echo 't clr' >>$CONFIG_STATUS
23256 echo ': clr' >>$CONFIG_STATUS
23257 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23259 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23261 mv $tmp/out $tmp/in
23263 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23264 rm -f conftest.undefs
23265 mv conftest.tail conftest.undefs
23267 rm -f conftest.undefs
23269 cat >>$CONFIG_STATUS <<\_ACEOF
23270 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23271 # use $as_me), people would be surprised to read:
23272 # /* config.h. Generated by config.status. */
23273 if test x
"$ac_file" = x-
; then
23274 echo "/* Generated by configure. */" >$tmp/config.h
23276 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23278 cat $tmp/in >>$tmp/config.h
23280 if test x
"$ac_file" != x-
; then
23281 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23282 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23283 echo "$as_me: $ac_file is unchanged" >&6;}
23285 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23286 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23287 X"$ac_file" : 'X\(//\)[^/]' \| \
23288 X"$ac_file" : 'X\(//\)$' \| \
23289 X"$ac_file" : 'X\(/\)' \| \
23290 . : '\(.\)' 2>/dev/null ||
23292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23293 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23294 /^X\(\/\/\)$/{ s//\1/; q; }
23295 /^X\(\/\).*/{ s//\1/; q; }
23297 { if $as_mkdir_p; then
23302 while test ! -d "$as_dir"; do
23303 as_dirs
="$as_dir $as_dirs"
23304 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23306 X"$as_dir" : 'X\(//\)[^/]' \| \
23307 X"$as_dir" : 'X\(//\)$' \| \
23308 X"$as_dir" : 'X\(/\)' \| \
23309 . : '\(.\)' 2>/dev/null ||
23311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23312 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23313 /^X\(\/\/\)$/{ s//\1/; q; }
23314 /^X\(\/\).*/{ s//\1/; q; }
23317 test ! -n "$as_dirs" || mkdir
$as_dirs
23318 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23319 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23320 { (exit 1); exit 1; }; }; }
23323 mv $tmp/config.h
$ac_file
23327 rm -f $tmp/config.h
23331 cat >>$CONFIG_STATUS <<\_ACEOF
23334 # CONFIG_LINKS section.
23337 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
23338 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
23339 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23341 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23342 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
23344 if test ! -r $srcdir/$ac_source; then
23345 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23346 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23347 { (exit 1); exit 1; }; }
23351 # Make relative symlinks.
23352 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
23353 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23354 X"$ac_dest" : 'X\(//\)[^/]' \| \
23355 X"$ac_dest" : 'X\(//\)$' \| \
23356 X"$ac_dest" : 'X\(/\)' \| \
23357 . : '\(.\)' 2>/dev/null ||
23359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23360 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23361 /^X\(\/\/\)$/{ s//\1/; q; }
23362 /^X\(\/\).*/{ s//\1/; q; }
23364 { if $as_mkdir_p; then
23365 mkdir
-p "$ac_dest_dir"
23367 as_dir
="$ac_dest_dir"
23369 while test ! -d "$as_dir"; do
23370 as_dirs
="$as_dir $as_dirs"
23371 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23372 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23373 X"$as_dir" : 'X\(//\)[^/]' \| \
23374 X"$as_dir" : 'X\(//\)$' \| \
23375 X"$as_dir" : 'X\(/\)' \| \
23376 . : '\(.\)' 2>/dev/null ||
23378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23379 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23380 /^X\(\/\/\)$/{ s//\1/; q; }
23381 /^X\(\/\).*/{ s//\1/; q; }
23384 test ! -n "$as_dirs" || mkdir
$as_dirs
23385 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23386 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23387 { (exit 1); exit 1; }; }; }
23391 if test "$ac_dest_dir" != .
; then
23392 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23393 # A "../" for each directory in $ac_dir_suffix.
23394 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23396 ac_dir_suffix
= ac_top_builddir
=
23400 .
) # No --srcdir option. We are building in place.
23402 if test -z "$ac_top_builddir"; then
23405 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23407 [\\/]* | ?
:[\\/]* ) # Absolute path.
23408 ac_srcdir
=$srcdir$ac_dir_suffix;
23409 ac_top_srcdir
=$srcdir ;;
23410 *) # Relative path.
23411 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23412 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23415 # Do not use `cd foo && pwd` to compute absolute paths, because
23416 # the directories may not exist.
23418 .
) ac_abs_builddir
="$ac_dest_dir";;
23420 case "$ac_dest_dir" in
23421 .
) ac_abs_builddir
=`pwd`;;
23422 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
23423 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
23426 case $ac_abs_builddir in
23427 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23429 case ${ac_top_builddir}.
in
23430 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23431 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23432 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23435 case $ac_abs_builddir in
23436 .
) ac_abs_srcdir
=$ac_srcdir;;
23439 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23440 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23441 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23444 case $ac_abs_builddir in
23445 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23447 case $ac_top_srcdir in
23448 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23449 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23450 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23456 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
23457 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
23460 # Try a symlink, then a hard link, then a copy.
23461 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
23462 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
23463 cp -p $srcdir/$ac_source $ac_dest ||
23464 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23465 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23466 { (exit 1); exit 1; }; }
23469 cat >>$CONFIG_STATUS <<\_ACEOF
23472 # CONFIG_COMMANDS section.
23474 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
23475 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
23476 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23477 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
23478 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23479 X"$ac_dest" : 'X\(//\)[^/]' \| \
23480 X"$ac_dest" : 'X\(//\)$' \| \
23481 X"$ac_dest" : 'X\(/\)' \| \
23482 . : '\(.\)' 2>/dev/null ||
23484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23485 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23486 /^X\(\/\/\)$/{ s//\1/; q; }
23487 /^X\(\/\).*/{ s//\1/; q; }
23489 { if $as_mkdir_p; then
23494 while test ! -d "$as_dir"; do
23495 as_dirs
="$as_dir $as_dirs"
23496 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23498 X"$as_dir" : 'X\(//\)[^/]' \| \
23499 X"$as_dir" : 'X\(//\)$' \| \
23500 X"$as_dir" : 'X\(/\)' \| \
23501 . : '\(.\)' 2>/dev/null ||
23503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23504 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23505 /^X\(\/\/\)$/{ s//\1/; q; }
23506 /^X\(\/\).*/{ s//\1/; q; }
23509 test ! -n "$as_dirs" || mkdir
$as_dirs
23510 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23511 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23512 { (exit 1); exit 1; }; }; }
23516 if test "$ac_dir" != .
; then
23517 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23518 # A "../" for each directory in $ac_dir_suffix.
23519 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23521 ac_dir_suffix
= ac_top_builddir
=
23525 .
) # No --srcdir option. We are building in place.
23527 if test -z "$ac_top_builddir"; then
23530 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23532 [\\/]* | ?
:[\\/]* ) # Absolute path.
23533 ac_srcdir
=$srcdir$ac_dir_suffix;
23534 ac_top_srcdir
=$srcdir ;;
23535 *) # Relative path.
23536 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23537 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23540 # Do not use `cd foo && pwd` to compute absolute paths, because
23541 # the directories may not exist.
23543 .
) ac_abs_builddir
="$ac_dir";;
23546 .
) ac_abs_builddir
=`pwd`;;
23547 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23548 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23551 case $ac_abs_builddir in
23552 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23554 case ${ac_top_builddir}.
in
23555 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23556 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23557 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23560 case $ac_abs_builddir in
23561 .
) ac_abs_srcdir
=$ac_srcdir;;
23564 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23565 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23566 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23569 case $ac_abs_builddir in
23570 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23572 case $ac_top_srcdir in
23573 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23574 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23575 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23580 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23581 echo "$as_me: executing $ac_dest commands" >&6;}
23585 sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
23586 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
23587 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile
>Makefile.tmp
23588 mv -f Makefile.tmp Makefile
23591 case x
$CONFIG_HEADERS in
23592 xconfig.h
:config.
in)
23600 cat >>$CONFIG_STATUS <<\_ACEOF
23602 { (exit 0); exit 0; }
23604 chmod +x
$CONFIG_STATUS
23605 ac_clean_files
=$ac_clean_files_save
23608 # configure is writing to config.log, and then calls config.status.
23609 # config.status does its own redirection, appending to config.log.
23610 # Unfortunately, on DOS this fails, as config.log is still kept open
23611 # by configure, so config.status won't be able to write to it; its
23612 # output is simply discarded. So we exec the FD to /dev/null,
23613 # effectively closing config.log, so it can be properly (re)opened and
23614 # appended to by config.status. When coming back to configure, we
23615 # need to make the FD available again.
23616 if test "$no_create" != yes; then
23618 ac_config_status_args
=
23619 test "$silent" = yes &&
23620 ac_config_status_args
="$ac_config_status_args --quiet"
23622 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23624 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23625 # would make configure fail if this is the last instruction.
23626 $ac_cs_success ||
{ (exit 1); exit 1; }
23630 # CONFIG_SUBDIRS section.
23632 if test "$no_recursion" != yes; then
23634 # Remove --cache-file and --srcdir arguments so they do not pile up.
23635 ac_sub_configure_args
=
23637 for ac_arg
in $ac_configure_args; do
23638 if test -n "$ac_prev"; then
23643 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
23644 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
23645 ac_prev
=cache_file
;;
23646 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
23647 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
23650 --config-cache |
-C)
23652 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
23654 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
23656 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
23658 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
23660 *) ac_sub_configure_args
="$ac_sub_configure_args $ac_arg" ;;
23664 # Always prepend --prefix to ensure using the same prefix
23665 # in subdir configurations.
23666 ac_sub_configure_args
="--prefix=$prefix $ac_sub_configure_args"
23669 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
23671 # Do not complain, so a configure script can configure whichever
23672 # parts of a large source tree are present.
23673 test -d $srcdir/$ac_dir ||
continue
23675 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23676 echo "$as_me: configuring in $ac_dir" >&6;}
23677 { if $as_mkdir_p; then
23682 while test ! -d "$as_dir"; do
23683 as_dirs
="$as_dir $as_dirs"
23684 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23685 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23686 X"$as_dir" : 'X\(//\)[^/]' \| \
23687 X"$as_dir" : 'X\(//\)$' \| \
23688 X"$as_dir" : 'X\(/\)' \| \
23689 . : '\(.\)' 2>/dev/null ||
23691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23692 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23693 /^X\(\/\/\)$/{ s//\1/; q; }
23694 /^X\(\/\).*/{ s//\1/; q; }
23697 test ! -n "$as_dirs" || mkdir
$as_dirs
23698 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23699 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23700 { (exit 1); exit 1; }; }; }
23704 if test "$ac_dir" != .
; then
23705 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23706 # A "../" for each directory in $ac_dir_suffix.
23707 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23709 ac_dir_suffix
= ac_top_builddir
=
23713 .
) # No --srcdir option. We are building in place.
23715 if test -z "$ac_top_builddir"; then
23718 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23720 [\\/]* | ?
:[\\/]* ) # Absolute path.
23721 ac_srcdir
=$srcdir$ac_dir_suffix;
23722 ac_top_srcdir
=$srcdir ;;
23723 *) # Relative path.
23724 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23725 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23728 # Do not use `cd foo && pwd` to compute absolute paths, because
23729 # the directories may not exist.
23731 .
) ac_abs_builddir
="$ac_dir";;
23734 .
) ac_abs_builddir
=`pwd`;;
23735 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23736 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23739 case $ac_abs_builddir in
23740 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23742 case ${ac_top_builddir}.
in
23743 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23744 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23745 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23748 case $ac_abs_builddir in
23749 .
) ac_abs_srcdir
=$ac_srcdir;;
23752 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23753 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23754 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23757 case $ac_abs_builddir in
23758 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23760 case $ac_top_srcdir in
23761 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23762 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23763 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23770 # Check for guested configure; otherwise get Cygnus style configure.
23771 if test -f $ac_srcdir/configure.gnu
; then
23772 ac_sub_configure
="$SHELL '$ac_srcdir/configure.gnu'"
23773 elif test -f $ac_srcdir/configure
; then
23774 ac_sub_configure
="$SHELL '$ac_srcdir/configure'"
23775 elif test -f $ac_srcdir/configure.
in; then
23776 ac_sub_configure
=$ac_configure
23778 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23779 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23783 # The recursion is here.
23784 if test -n "$ac_sub_configure"; then
23785 # Make the cache file name correct relative to the subdirectory.
23786 case $cache_file in
23787 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
23788 *) # Relative path.
23789 ac_sub_cache_file
=$ac_top_builddir$cache_file ;;
23792 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23793 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23794 # The eval makes quoting arguments work.
23795 eval $ac_sub_configure $ac_sub_configure_args \
23796 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23797 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23798 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23799 { (exit 1); exit 1; }; }