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 rdi-share"
317 ac_subdirs_all="$ac_subdirs_all nlm"
318 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 RANLIB ac_ct_RANLIB SET_MAKE 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'
319 ac_subst_files='host_makefile_frag target_makefile_frag'
321 # Initialize some variables set by options.
323 ac_init_version=false
324 # The variables have the same names as the options, with
325 # dashes changed to underlines.
333 program_transform_name=s,x,x,
341 # Installation directory options.
342 # These are left unexpanded so users can "make install exec_prefix=/foo"
343 # and all the variables that are supposed to be based on exec_prefix
344 # by default will actually change.
345 # Use braces instead of parens because sh, perl, etc. also accept them.
346 bindir='${exec_prefix}/bin'
347 sbindir='${exec_prefix}/sbin'
348 libexecdir='${exec_prefix}/libexec'
349 datadir='${prefix}/share'
350 sysconfdir='${prefix}/etc'
351 sharedstatedir='${prefix}/com'
352 localstatedir='${prefix}/var'
353 libdir='${exec_prefix}/lib'
354 includedir='${prefix}/include'
355 oldincludedir='/usr/include'
356 infodir='${prefix}/info'
357 mandir='${prefix}/man'
362 # If the previous option needs an argument, assign it.
363 if test -n "$ac_prev"; then
364 eval "$ac_prev=\$ac_option"
369 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
371 # Accept the important Cygnus configure options, so we can diagnose typos.
375 -bindir | --bindir | --bindi | --bind | --bin | --bi)
377 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
380 -build | --build | --buil | --bui | --bu)
381 ac_prev=build_alias ;;
382 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
383 build_alias=$ac_optarg ;;
385 -cache-file | --cache-file | --cache-fil | --cache-fi \
386 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
387 ac_prev=cache_file ;;
388 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
389 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
390 cache_file=$ac_optarg ;;
393 cache_file=config.cache ;;
395 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
397 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
399 datadir=$ac_optarg ;;
401 -disable-* | --disable-*)
402 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408 eval "enable_$ac_feature=no" ;;
410 -enable-* | --enable-*)
411 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
412 # Reject names that are not valid shell variable names.
413 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
414 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
415 { (exit 1); exit 1; }; }
416 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
418 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
421 eval "enable_$ac_feature='$ac_optarg'" ;;
423 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
424 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
425 | --exec | --exe | --ex)
426 ac_prev=exec_prefix ;;
427 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
428 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
429 | --exec=* | --exe=* | --ex=*)
430 exec_prefix=$ac_optarg ;;
432 -gas | --gas | --ga | --g)
433 # Obsolete; use --with-gas.
436 -help | --help | --hel | --he | -h)
438 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
439 ac_init_help=recursive ;;
440 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
441 ac_init_help=short ;;
443 -host | --host | --hos | --ho)
444 ac_prev=host_alias ;;
445 -host=* | --host=* | --hos=* | --ho=*)
446 host_alias=$ac_optarg ;;
448 -includedir | --includedir | --includedi | --included | --include \
449 | --includ | --inclu | --incl | --inc)
450 ac_prev=includedir ;;
451 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
452 | --includ=* | --inclu=* | --incl=* | --inc=*)
453 includedir=$ac_optarg ;;
455 -infodir | --infodir | --infodi | --infod | --info | --inf)
457 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
458 infodir=$ac_optarg ;;
460 -libdir | --libdir | --libdi | --libd)
462 -libdir=* | --libdir=* | --libdi=* | --libd=*)
465 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
466 | --libexe | --libex | --libe)
467 ac_prev=libexecdir ;;
468 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
469 | --libexe=* | --libex=* | --libe=*)
470 libexecdir=$ac_optarg ;;
472 -localstatedir | --localstatedir | --localstatedi | --localstated \
473 | --localstate | --localstat | --localsta | --localst \
474 | --locals | --local | --loca | --loc | --lo)
475 ac_prev=localstatedir ;;
476 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
477 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
478 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
479 localstatedir=$ac_optarg ;;
481 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
483 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
487 # Obsolete; use --without-fp.
490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
491 | --no-cr | --no-c | -n)
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
498 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
499 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
500 | --oldin | --oldi | --old | --ol | --o)
501 ac_prev=oldincludedir ;;
502 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
503 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
504 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
505 oldincludedir=$ac_optarg ;;
507 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
509 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
512 -program-prefix | --program-prefix | --program-prefi | --program-pref \
513 | --program-pre | --program-pr | --program-p)
514 ac_prev=program_prefix ;;
515 -program-prefix=* | --program-prefix=* | --program-prefi=* \
516 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
517 program_prefix=$ac_optarg ;;
519 -program-suffix | --program-suffix | --program-suffi | --program-suff \
520 | --program-suf | --program-su | --program-s)
521 ac_prev=program_suffix ;;
522 -program-suffix=* | --program-suffix=* | --program-suffi=* \
523 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
524 program_suffix=$ac_optarg ;;
526 -program-transform-name | --program-transform-name \
527 | --program-transform-nam | --program-transform-na \
528 | --program-transform-n | --program-transform- \
529 | --program-transform | --program-transfor \
530 | --program-transfo | --program-transf \
531 | --program-trans | --program-tran \
532 | --progr-tra | --program-tr | --program-t)
533 ac_prev=program_transform_name ;;
534 -program-transform-name=* | --program-transform-name=* \
535 | --program-transform-nam=* | --program-transform-na=* \
536 | --program-transform-n=* | --program-transform-=* \
537 | --program-transform=* | --program-transfor=* \
538 | --program-transfo=* | --program-transf=* \
539 | --program-trans=* | --program-tran=* \
540 | --progr-tra=* | --program-tr=* | --program-t=*)
541 program_transform_name=$ac_optarg ;;
543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
544 | -silent | --silent | --silen | --sile | --sil)
547 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
549 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
551 sbindir=$ac_optarg ;;
553 -sharedstatedir | --sharedstatedir | --sharedstatedi \
554 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555 | --sharedst | --shareds | --shared | --share | --shar \
557 ac_prev=sharedstatedir ;;
558 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
562 sharedstatedir=$ac_optarg ;;
564 -site | --site | --sit)
566 -site=* | --site=* | --sit=*)
569 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
571 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
574 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
575 | --syscon | --sysco | --sysc | --sys | --sy)
576 ac_prev=sysconfdir ;;
577 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
578 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
579 sysconfdir=$ac_optarg ;;
581 -target | --target | --targe | --targ | --tar | --ta | --t)
582 ac_prev=target_alias ;;
583 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
584 target_alias=$ac_optarg ;;
586 -v | -verbose | --verbose | --verbos | --verbo | --verb)
589 -version | --version | --versio | --versi | --vers | -V)
593 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
594 # Reject names that are not valid shell variable names.
595 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596 { echo "$as_me: error: invalid package name: $ac_package" >&2
597 { (exit 1); exit 1; }; }
598 ac_package=`echo $ac_package| sed 's/-/_/g'`
600 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
603 eval "with_$ac_package='$ac_optarg'" ;;
605 -without-* | --without-*)
606 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
607 # Reject names that are not valid shell variable names.
608 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
609 { echo "$as_me: error: invalid package name: $ac_package" >&2
610 { (exit 1); exit 1; }; }
611 ac_package=`echo $ac_package | sed 's/-/_/g'`
612 eval "with_$ac_package=no" ;;
615 # Obsolete; use --with-x.
618 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619 | --x-incl | --x-inc | --x-in | --x-i)
620 ac_prev=x_includes ;;
621 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
623 x_includes=$ac_optarg ;;
625 -x-libraries | --x-libraries | --x-librarie | --x-librari \
626 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627 ac_prev=x_libraries ;;
628 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
630 x_libraries=$ac_optarg ;;
632 -*) { echo "$as_me: error: unrecognized option: $ac_option
633 Try \`$0 --help' for more information." >&2
634 { (exit 1); exit 1; }; }
638 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
639 # Reject names that are not valid shell variable names.
640 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
641 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
642 { (exit 1); exit 1; }; }
643 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644 eval "$ac_envvar='$ac_optarg'"
648 # FIXME: should be removed in autoconf 3.0.
649 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
650 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
651 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
652 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
658 if test -n "$ac_prev"; then
659 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
660 { echo "$as_me: error: missing argument to $ac_option" >&2
661 { (exit 1); exit 1; }; }
664 # Be sure to have absolute paths.
665 for ac_var in exec_prefix prefix
667 eval ac_val=$`echo $ac_var`
669 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671 { (exit 1); exit 1; }; };;
675 # Be sure to have absolute paths.
676 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677 localstatedir libdir includedir oldincludedir infodir mandir
679 eval ac_val=$`echo $ac_var`
681 [\\/$]* | ?:[\\/]* ) ;;
682 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683 { (exit 1); exit 1; }; };;
687 # There might be people who depend on the old broken behavior: `$host'
688 # used to hold the argument of --host etc.
689 # FIXME: To remove some day.
694 # FIXME: To remove some day.
695 if test "x$host_alias" != x; then
696 if test "x$build_alias" = x; then
697 cross_compiling=maybe
698 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
699 If a cross compiler is detected then cross compile mode will be used." >&2
700 elif test "x$build_alias" != "x$host_alias"; then
706 test -n "$host_alias" && ac_tool_prefix=$host_alias-
708 test "$silent" = yes && exec 6>/dev/null
711 # Find the source files, if location was not specified.
712 if test -z "$srcdir"; then
713 ac_srcdir_defaulted=yes
714 # Try the directory containing this script, then its parent.
715 ac_confdir=`(dirname "$0") 2>/dev/null ||
716 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717 X"$0" : 'X\(//\)[^/]' \| \
718 X"$0" : 'X\(//\)$' \| \
719 X"$0" : 'X\(/\)' \| \
720 . : '\(.\)' 2>/dev/null ||
722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
724 /^X\(\/\/\)$/{ s//\1/; q; }
725 /^X\(\/\).*/{ s//\1/; q; }
728 if test ! -r $srcdir/$ac_unique_file; then
732 ac_srcdir_defaulted=no
734 if test ! -r $srcdir/$ac_unique_file; then
735 if test "$ac_srcdir_defaulted" = yes; then
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
737 { (exit 1); exit 1; }; }
739 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740 { (exit 1); exit 1; }; }
743 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
744 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
745 { (exit 1); exit 1; }; }
746 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747 ac_env_build_alias_set=${build_alias+set}
748 ac_env_build_alias_value=$build_alias
749 ac_cv_env_build_alias_set=${build_alias+set}
750 ac_cv_env_build_alias_value=$build_alias
751 ac_env_host_alias_set=${host_alias+set}
752 ac_env_host_alias_value=$host_alias
753 ac_cv_env_host_alias_set=${host_alias+set}
754 ac_cv_env_host_alias_value=$host_alias
755 ac_env_target_alias_set=${target_alias+set}
756 ac_env_target_alias_value=$target_alias
757 ac_cv_env_target_alias_set=${target_alias+set}
758 ac_cv_env_target_alias_value=$target_alias
759 ac_env_CC_set=${CC+set}
761 ac_cv_env_CC_set=${CC+set}
762 ac_cv_env_CC_value=$CC
763 ac_env_CFLAGS_set=${CFLAGS+set}
764 ac_env_CFLAGS_value=$CFLAGS
765 ac_cv_env_CFLAGS_set=${CFLAGS+set}
766 ac_cv_env_CFLAGS_value=$CFLAGS
767 ac_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_env_LDFLAGS_value=$LDFLAGS
769 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770 ac_cv_env_LDFLAGS_value=$LDFLAGS
771 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_env_CPPFLAGS_value=$CPPFLAGS
773 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775 ac_env_CPP_set=${CPP+set}
776 ac_env_CPP_value=$CPP
777 ac_cv_env_CPP_set=${CPP+set}
778 ac_cv_env_CPP_value=$CPP
781 # Report the --help message.
783 if test "$ac_init_help" = "long"; then
784 # Omit some internal or obsolete options to make the list less imposing.
785 # This message is too long to be a string in the A/UX 3.1 sh.
787 \`configure' configures this package to adapt to many kinds of systems.
789 Usage: $0 [OPTION]... [VAR=VALUE]...
791 To assign environment variables (e.g., CC, CFLAGS...), specify them as
792 VAR=VALUE. See below for descriptions of some of the useful variables.
794 Defaults for the options are specified in brackets.
797 -h, --help display this help and exit
798 --help=short display options specific to this package
799 --help=recursive display the short help of all the included packages
800 -V, --version display version information and exit
801 -q, --quiet, --silent do not print \`checking...' messages
802 --cache-file=FILE cache test results in FILE [disabled]
803 -C, --config-cache alias for \`--cache-file=config.cache'
804 -n, --no-create do not create output files
805 --srcdir=DIR find the sources in DIR [configure dir or \`..']
810 Installation directories:
811 --prefix=PREFIX install architecture-independent files in PREFIX
813 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 By default, \`make install' will install all the files in
817 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
818 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819 for instance \`--prefix=\$HOME'.
821 For better control, use the options below.
823 Fine tuning of the installation directories:
824 --bindir=DIR user executables [EPREFIX/bin]
825 --sbindir=DIR system admin executables [EPREFIX/sbin]
826 --libexecdir=DIR program executables [EPREFIX/libexec]
827 --datadir=DIR read-only architecture-independent data [PREFIX/share]
828 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
829 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
830 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
831 --libdir=DIR object code libraries [EPREFIX/lib]
832 --includedir=DIR C header files [PREFIX/include]
833 --oldincludedir=DIR C header files for non-gcc [/usr/include]
834 --infodir=DIR info documentation [PREFIX/info]
835 --mandir=DIR man documentation [PREFIX/man]
841 --program-prefix=PREFIX prepend PREFIX to installed program names
842 --program-suffix=SUFFIX append SUFFIX to installed program names
843 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
846 --x-includes=DIR X include files are in DIR
847 --x-libraries=DIR X library files are in DIR
850 --build=BUILD configure for building on BUILD [guessed]
851 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 --target=TARGET configure for building compilers for TARGET [HOST]
856 if test -n "$ac_init_help"; then
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
865 --disable-nls do not use Native Language Support
866 --disable-gdbcli disable command-line interface (CLI)
867 --disable-gdbmi disable machine-interface (MI)
868 --enable-tui enable full-screen terminal user interface (TUI)
869 --enable-gdbtk enable gdbtk graphical user interface (GUI)
870 --enable-profiling enable profiling of GDB
871 --enable-build-warnings Enable build-time compiler warnings if gcc is used
872 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
873 --enable-sim Link gdb with simulator
874 --enable-multi-ice build the multi-ice-gdb-server
877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
879 --with-included-gettext use the GNU gettext library included here
880 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
881 --with-libunwind Use libunwind frame unwinding support
882 --without-included-regex don't use included regex; this is the default
883 on systems with version 2 of the GNU C library
884 (use with caution on other system)
885 --with-sysroot=DIR Search for usr/lib et al within DIR.
886 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
887 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
888 --with-tclinclude=DIR Directory where tcl private headers are
889 --with-tkinclude=DIR Directory where tk private headers are
890 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
891 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
892 --with-x use the X Window System
893 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
895 Some influential environment variables:
896 CC C compiler command
897 CFLAGS C compiler flags
898 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
899 nonstandard directory <lib dir>
900 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
901 headers in a nonstandard directory <include dir>
904 Use these variables to override the choices made by `configure' or to help
905 it to find libraries and programs with nonstandard names/locations.
910 if test "$ac_init_help" = "recursive"; then
911 # If there are subdirs, report their specific --help.
913 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
914 test -d $ac_dir || continue
917 if test "$ac_dir" != .; then
918 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
919 # A "../" for each directory in $ac_dir_suffix.
920 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
922 ac_dir_suffix= ac_top_builddir=
926 .) # No --srcdir option. We are building in place.
928 if test -z "$ac_top_builddir"; then
931 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
933 [\\/]* | ?:[\\/]* ) # Absolute path.
934 ac_srcdir=$srcdir$ac_dir_suffix;
935 ac_top_srcdir=$srcdir ;;
937 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
938 ac_top_srcdir=$ac_top_builddir$srcdir ;;
941 # Do not use `cd foo && pwd` to compute absolute paths, because
942 # the directories may not exist.
944 .) ac_abs_builddir="$ac_dir";;
947 .) ac_abs_builddir=`pwd`;;
948 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
949 *) ac_abs_builddir=`pwd`/"$ac_dir";;
952 case $ac_abs_builddir in
953 .) ac_abs_top_builddir=${ac_top_builddir}.;;
955 case ${ac_top_builddir}. in
956 .) ac_abs_top_builddir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
958 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
961 case $ac_abs_builddir in
962 .) ac_abs_srcdir=$ac_srcdir;;
965 .) ac_abs_srcdir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
967 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
970 case $ac_abs_builddir in
971 .) ac_abs_top_srcdir=$ac_top_srcdir;;
973 case $ac_top_srcdir in
974 .) ac_abs_top_srcdir=$ac_abs_builddir;;
975 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
976 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
981 # Check for guested configure; otherwise get Cygnus style configure.
982 if test -f $ac_srcdir/configure.gnu; then
984 $SHELL $ac_srcdir/configure.gnu --help=recursive
985 elif test -f $ac_srcdir/configure; then
987 $SHELL $ac_srcdir/configure --help=recursive
988 elif test -f $ac_srcdir/configure.ac ||
989 test -f $ac_srcdir/configure.in; then
993 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
999 test -n "$ac_init_help" && exit 0
1000 if $ac_init_version; then
1003 Copyright (C) 2003 Free Software Foundation, Inc.
1004 This configure script is free software; the Free Software Foundation
1005 gives unlimited permission to copy, distribute and modify it.
1011 This file contains any messages produced by compilers while
1012 running configure, to aid debugging if configure makes a mistake.
1014 It was created by $as_me, which was
1015 generated by GNU Autoconf 2.59. Invocation command line was
1026 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1027 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1028 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1029 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1030 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1032 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1033 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1035 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1036 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1037 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1038 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1039 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1040 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1041 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1049 test -z "$as_dir" && as_dir=.
1050 echo "PATH: $as_dir"
1065 # Keep a trace of the command line.
1066 # Strip out --no-create and --no-recursion so they do not pile up.
1067 # Strip out --silent because we don't want to record it for future runs.
1068 # Also quote any args containing shell meta-characters.
1069 # Make two passes to allow for proper duplicate-argument suppression.
1074 ac_must_keep_next=false
1080 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1084 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1085 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1088 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1090 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1091 if test $ac_must_keep_next = true; then
1092 ac_must_keep_next=false # Got value, back to normal.
1095 *=* | --config-cache | -C | -disable-* | --disable-* \
1096 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1097 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1098 | -with-* | --with-* | -without-* | --without-* | --x)
1099 case "$ac_configure_args0 " in
1100 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1103 -* ) ac_must_keep_next=true ;;
1106 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1107 # Get rid of the leading space.
1113 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1114 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1116 # When interrupted or exit'd, cleanup temporary files, and complete
1117 # config.log. We remove comments because anyway the quotes in there
1118 # would cause problems or look ugly.
1119 # WARNING: Be sure not to use single quotes in there, as some shells,
1120 # such as our DU 5.0 friend, will then `close' the trap.
1121 trap 'exit_status=$?
1122 # Save into config.log some information that might help in debugging.
1127 ## ---------------- ##
1128 ## Cache variables. ##
1129 ## ---------------- ##
1132 # The following way of writing the cache mishandles newlines in values,
1135 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1138 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1143 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1150 ## ----------------- ##
1151 ## Output variables. ##
1152 ## ----------------- ##
1155 for ac_var in $ac_subst_vars
1157 eval ac_val=$`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1162 if test -n "$ac_subst_files"; then
1169 for ac_var in $ac_subst_files
1171 eval ac_val=$`echo $ac_var`
1172 echo "$ac_var='"'"'$ac_val'"'"'"
1177 if test -s confdefs.h; then
1184 sed "/^$/d" confdefs.h | sort
1187 test "$ac_signal" != 0 &&
1188 echo "$as_me: caught signal $ac_signal"
1189 echo "$as_me: exit $exit_status"
1191 rm -f core *.core &&
1192 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1195 for ac_signal in 1 2 13 15; do
1196 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1200 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1201 rm -rf conftest* confdefs.h
1202 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1205 # Predefined preprocessor variables.
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_NAME "$PACKAGE_NAME"
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_STRING "$PACKAGE_STRING"
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1232 # Let the site file select an alternate cache file if it wants to.
1233 # Prefer explicitly selected file to automatically selected ones.
1234 if test -z "$CONFIG_SITE"; then
1235 if test "x$prefix" != xNONE; then
1236 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1238 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1241 for ac_site_file in $CONFIG_SITE; do
1242 if test -r "$ac_site_file"; then
1243 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1244 echo "$as_me: loading site script $ac_site_file" >&6;}
1245 sed 's/^/| /' "$ac_site_file" >&5
1250 if test -r "$cache_file"; then
1251 # Some versions of bash will fail to source /dev/null (special
1252 # files actually), so we avoid doing that.
1253 if test -f "$cache_file"; then
1254 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1255 echo "$as_me: loading cache $cache_file" >&6;}
1257 [\\/]* | ?:[\\/]* ) . $cache_file;;
1258 *) . ./$cache_file;;
1262 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1263 echo "$as_me: creating cache $cache_file" >&6;}
1267 # Check that the precious variables saved in the cache have kept the same
1269 ac_cache_corrupted=false
1270 for ac_var in `(set) 2>&1 |
1271 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1273 eval ac_new_set=\$ac_env_${ac_var}_set
1274 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1275 eval ac_new_val="\$ac_env_${ac_var}_value"
1276 case $ac_old_set,$ac_new_set in
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1282 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1283 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1284 ac_cache_corrupted=: ;;
1287 if test "x$ac_old_val" != "x$ac_new_val"; then
1288 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1289 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1290 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1291 echo "$as_me: former value: $ac_old_val" >&2;}
1292 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1293 echo "$as_me: current value: $ac_new_val" >&2;}
1294 ac_cache_corrupted=:
1297 # Pass precious variables to config.status.
1298 if test "$ac_new_set" = set; then
1300 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1302 *) ac_arg=$ac_var=$ac_new_val ;;
1304 case " $ac_configure_args " in
1305 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1306 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1310 if $ac_cache_corrupted; then
1311 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1312 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1313 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1314 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1315 { (exit 1); exit 1; }; }
1319 ac_cpp='$CPP $CPPFLAGS'
1320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1342 ac_config_headers="$ac_config_headers config.h:config.in"
1344 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1345 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1346 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1347 if test "${enable_maintainer_mode+set}" = set; then
1348 enableval="$enable_maintainer_mode"
1349 USE_MAINTAINER_MODE=$enableval
1351 USE_MAINTAINER_MODE=no
1353 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1354 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1357 if test $USE_MAINTAINER_MODE = yes; then
1358 MAINTAINER_MODE_TRUE=
1359 MAINTAINER_MODE_FALSE='#'
1361 MAINTAINER_MODE_TRUE='#'
1362 MAINTAINER_MODE_FALSE=
1365 MAINT=$MAINTAINER_MODE_TRUE
1370 ac_cpp='$CPP $CPPFLAGS'
1371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1374 if test -n "$ac_tool_prefix"; then
1375 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1376 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1377 echo "$as_me:$LINENO: checking for $ac_word" >&5
1378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1379 if test "${ac_cv_prog_CC+set}" = set; then
1380 echo $ECHO_N "(cached) $ECHO_C" >&6
1382 if test -n "$CC"; then
1383 ac_cv_prog_CC="$CC" # Let the user override the test.
1385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1389 test -z "$as_dir" && as_dir=.
1390 for ac_exec_ext in '' $ac_executable_extensions; do
1391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1392 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1402 if test -n "$CC"; then
1403 echo "$as_me:$LINENO: result: $CC" >&5
1404 echo "${ECHO_T}$CC" >&6
1406 echo "$as_me:$LINENO: result: no" >&5
1407 echo "${ECHO_T}no" >&6
1411 if test -z "$ac_cv_prog_CC"; then
1413 # Extract the first word of "gcc", so it can be a program name with args.
1414 set dummy gcc; ac_word=$2
1415 echo "$as_me:$LINENO: checking for $ac_word" >&5
1416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1420 if test -n "$ac_ct_CC"; then
1421 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1427 test -z "$as_dir" && as_dir=.
1428 for ac_exec_ext in '' $ac_executable_extensions; do
1429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1430 ac_cv_prog_ac_ct_CC="gcc"
1431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1439 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1440 if test -n "$ac_ct_CC"; then
1441 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1442 echo "${ECHO_T}$ac_ct_CC" >&6
1444 echo "$as_me:$LINENO: result: no" >&5
1445 echo "${ECHO_T}no" >&6
1453 if test -z "$CC"; then
1454 if test -n "$ac_tool_prefix"; then
1455 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1456 set dummy ${ac_tool_prefix}cc; ac_word=$2
1457 echo "$as_me:$LINENO: checking for $ac_word" >&5
1458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1459 if test "${ac_cv_prog_CC+set}" = set; then
1460 echo $ECHO_N "(cached) $ECHO_C" >&6
1462 if test -n "$CC"; then
1463 ac_cv_prog_CC="$CC" # Let the user override the test.
1465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1469 test -z "$as_dir" && as_dir=.
1470 for ac_exec_ext in '' $ac_executable_extensions; do
1471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1472 ac_cv_prog_CC="${ac_tool_prefix}cc"
1473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1482 if test -n "$CC"; then
1483 echo "$as_me:$LINENO: result: $CC" >&5
1484 echo "${ECHO_T}$CC" >&6
1486 echo "$as_me:$LINENO: result: no" >&5
1487 echo "${ECHO_T}no" >&6
1491 if test -z "$ac_cv_prog_CC"; then
1493 # Extract the first word of "cc", so it can be a program name with args.
1494 set dummy cc; ac_word=$2
1495 echo "$as_me:$LINENO: checking for $ac_word" >&5
1496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1497 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1498 echo $ECHO_N "(cached) $ECHO_C" >&6
1500 if test -n "$ac_ct_CC"; then
1501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1507 test -z "$as_dir" && as_dir=.
1508 for ac_exec_ext in '' $ac_executable_extensions; do
1509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1510 ac_cv_prog_ac_ct_CC="cc"
1511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1520 if test -n "$ac_ct_CC"; then
1521 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1522 echo "${ECHO_T}$ac_ct_CC" >&6
1524 echo "$as_me:$LINENO: result: no" >&5
1525 echo "${ECHO_T}no" >&6
1534 if test -z "$CC"; then
1535 # Extract the first word of "cc", so it can be a program name with args.
1536 set dummy cc; ac_word=$2
1537 echo "$as_me:$LINENO: checking for $ac_word" >&5
1538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1539 if test "${ac_cv_prog_CC+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1542 if test -n "$CC"; then
1543 ac_cv_prog_CC="$CC" # Let the user override the test.
1546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550 test -z "$as_dir" && as_dir=.
1551 for ac_exec_ext in '' $ac_executable_extensions; do
1552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1554 ac_prog_rejected=yes
1558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1564 if test $ac_prog_rejected = yes; then
1565 # We found a bogon in the path, so make sure we never use it.
1566 set dummy $ac_cv_prog_CC
1568 if test $# != 0; then
1569 # We chose a different compiler from the bogus one.
1570 # However, it has the same basename, so the bogon will be chosen
1571 # first if we set CC to just the basename; use the full file name.
1573 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1579 if test -n "$CC"; then
1580 echo "$as_me:$LINENO: result: $CC" >&5
1581 echo "${ECHO_T}$CC" >&6
1583 echo "$as_me:$LINENO: result: no" >&5
1584 echo "${ECHO_T}no" >&6
1588 if test -z "$CC"; then
1589 if test -n "$ac_tool_prefix"; then
1592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1593 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_CC+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 if test -n "$CC"; then
1600 ac_cv_prog_CC="$CC" # Let the user override the test.
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 test -z "$as_dir" && as_dir=.
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619 if test -n "$CC"; then
1620 echo "$as_me:$LINENO: result: $CC" >&5
1621 echo "${ECHO_T}$CC" >&6
1623 echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1627 test -n "$CC" && break
1630 if test -z "$CC"; then
1634 # Extract the first word of "$ac_prog", so it can be a program name with args.
1635 set dummy $ac_prog; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 if test -n "$ac_ct_CC"; then
1642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648 test -z "$as_dir" && as_dir=.
1649 for ac_exec_ext in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651 ac_cv_prog_ac_ct_CC="$ac_prog"
1652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1661 if test -n "$ac_ct_CC"; then
1662 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1663 echo "${ECHO_T}$ac_ct_CC" >&6
1665 echo "$as_me:$LINENO: result: no" >&5
1666 echo "${ECHO_T}no" >&6
1669 test -n "$ac_ct_CC" && break
1678 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1679 See \`config.log' for more details." >&5
1680 echo "$as_me: error: no acceptable C compiler found in \$PATH
1681 See \`config.log' for more details." >&2;}
1682 { (exit 1); exit 1; }; }
1684 # Provide some information about the compiler.
1685 echo "$as_me:$LINENO:" \
1686 "checking for C compiler version" >&5
1687 ac_compiler=`set X $ac_compile; echo $2`
1688 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1689 (eval $ac_compiler --version </dev/null >&5) 2>&5
1691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1692 (exit $ac_status); }
1693 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1694 (eval $ac_compiler -v </dev/null >&5) 2>&5
1696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1697 (exit $ac_status); }
1698 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1699 (eval $ac_compiler -V </dev/null >&5) 2>&5
1701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1702 (exit $ac_status); }
1704 cat >conftest.$ac_ext <<_ACEOF
1707 cat confdefs.h >>conftest.$ac_ext
1708 cat >>conftest.$ac_ext <<_ACEOF
1709 /* end confdefs.h. */
1719 ac_clean_files_save=$ac_clean_files
1720 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1721 # Try to create an executable without -o first, disregard a.out.
1722 # It will help us diagnose broken compilers, and finding out an intuition
1724 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1725 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1726 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1727 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1728 (eval $ac_link_default) 2>&5
1730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1731 (exit $ac_status); }; then
1732 # Find the output, starting from the most likely. This scheme is
1733 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1736 # Be careful to initialize this variable, since it used to be cached.
1737 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1739 # b.out is created by i960 compilers.
1740 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1742 test -f "$ac_file" || continue
1744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1747 # This is the source file.
1750 # We found the default executable, but exeext='' is most
1754 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1755 # FIXME: I believe we export ac_cv_exeext for Libtool,
1756 # but it would be cool to find out if it's true. Does anybody
1757 # maintain Libtool? --akim.
1765 echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1768 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1769 See \`config.log' for more details." >&5
1770 echo "$as_me: error: C compiler cannot create executables
1771 See \`config.log' for more details." >&2;}
1772 { (exit 77); exit 77; }; }
1775 ac_exeext=$ac_cv_exeext
1776 echo "$as_me:$LINENO: result: $ac_file" >&5
1777 echo "${ECHO_T}$ac_file" >&6
1779 # Check the compiler produces executables we can run. If not, either
1780 # the compiler is broken, or we cross compile.
1781 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1782 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1783 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1784 # If not cross compiling, check that we can run a simple program.
1785 if test "$cross_compiling" != yes; then
1786 if { ac_try='./$ac_file'
1787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }; }; then
1794 if test "$cross_compiling" = maybe; then
1797 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1798 If you meant to cross compile, use \`--host'.
1799 See \`config.log' for more details." >&5
1800 echo "$as_me: error: cannot run C compiled programs.
1801 If you meant to cross compile, use \`--host'.
1802 See \`config.log' for more details." >&2;}
1803 { (exit 1); exit 1; }; }
1807 echo "$as_me:$LINENO: result: yes" >&5
1808 echo "${ECHO_T}yes" >&6
1810 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1811 ac_clean_files=$ac_clean_files_save
1812 # Check the compiler produces executables we can run. If not, either
1813 # the compiler is broken, or we cross compile.
1814 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1815 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1816 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1817 echo "${ECHO_T}$cross_compiling" >&6
1819 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1820 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1822 (eval $ac_link) 2>&5
1824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1825 (exit $ac_status); }; then
1826 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1827 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1828 # work properly (i.e., refer to `conftest.exe'), while it won't with
1830 for ac_file in conftest.exe conftest conftest.*; do
1831 test -f "$ac_file" || continue
1833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1834 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1841 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1842 See \`config.log' for more details." >&5
1843 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1844 See \`config.log' for more details." >&2;}
1845 { (exit 1); exit 1; }; }
1848 rm -f conftest$ac_cv_exeext
1849 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1850 echo "${ECHO_T}$ac_cv_exeext" >&6
1852 rm -f conftest.$ac_ext
1853 EXEEXT=$ac_cv_exeext
1855 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1856 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1857 if test "${ac_cv_objext+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 cat >conftest.$ac_ext <<_ACEOF
1863 cat confdefs.h >>conftest.$ac_ext
1864 cat >>conftest.$ac_ext <<_ACEOF
1865 /* end confdefs.h. */
1875 rm -f conftest.o conftest.obj
1876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1877 (eval $ac_compile) 2>&5
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; then
1881 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1884 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1889 echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1892 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1893 See \`config.log' for more details." >&5
1894 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1895 See \`config.log' for more details." >&2;}
1896 { (exit 1); exit 1; }; }
1899 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1901 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1902 echo "${ECHO_T}$ac_cv_objext" >&6
1903 OBJEXT=$ac_cv_objext
1905 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1906 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1907 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 cat >conftest.$ac_ext <<_ACEOF
1913 cat confdefs.h >>conftest.$ac_ext
1914 cat >>conftest.$ac_ext <<_ACEOF
1915 /* end confdefs.h. */
1928 rm -f conftest.$ac_objext
1929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1930 (eval $ac_compile) 2>conftest.er1
1932 grep -v '^ *+' conftest.er1 >conftest.err
1934 cat conftest.err >&5
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); } &&
1937 { ac_try='test -z "$ac_c_werror_flag"
1938 || test ! -s conftest.err'
1939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; } &&
1944 { ac_try='test -s conftest.$ac_objext'
1945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949 (exit $ac_status); }; }; then
1952 echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1958 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1961 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1962 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1963 GCC=`test $ac_compiler_gnu = yes && echo yes`
1964 ac_test_CFLAGS=${CFLAGS+set}
1965 ac_save_CFLAGS=$CFLAGS
1967 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1968 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1969 if test "${ac_cv_prog_cc_g+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 cat >conftest.$ac_ext <<_ACEOF
1975 cat confdefs.h >>conftest.$ac_ext
1976 cat >>conftest.$ac_ext <<_ACEOF
1977 /* end confdefs.h. */
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>conftest.er1
1991 grep -v '^ *+' conftest.er1 >conftest.err
1993 cat conftest.err >&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); } &&
1996 { ac_try='test -z "$ac_c_werror_flag"
1997 || test ! -s conftest.err'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; } &&
2003 { ac_try='test -s conftest.$ac_objext'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
2011 echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2018 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2019 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2020 if test "$ac_test_CFLAGS" = set; then
2021 CFLAGS=$ac_save_CFLAGS
2022 elif test $ac_cv_prog_cc_g = yes; then
2023 if test "$GCC" = yes; then
2029 if test "$GCC" = yes; then
2035 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2036 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2037 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 ac_cv_prog_cc_stdc=no
2042 cat >conftest.$ac_ext <<_ACEOF
2045 cat confdefs.h >>conftest.$ac_ext
2046 cat >>conftest.$ac_ext <<_ACEOF
2047 /* end confdefs.h. */
2050 #include <sys/types.h>
2051 #include <sys/stat.h>
2052 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2053 struct buf { int x; };
2054 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2055 static char *e (p, i)
2061 static char *f (char * (*g) (char **, int), char **p, ...)
2066 s = g (p, va_arg (v,int));
2071 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2072 function prototypes and stuff, but not '\xHH' hex character constants.
2073 These don't provoke an error unfortunately, instead are silently treated
2074 as 'x'. The following induces an error, until -std1 is added to get
2075 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2076 array size at least. It's necessary to write '\x00'==0 to get something
2077 that's true only with -std1. */
2078 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2080 int test (int i, double x);
2081 struct s1 {int (*f) (int a);};
2082 struct s2 {int (*f) (double a);};
2083 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2089 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2094 # Don't try gcc -ansi; that turns off useful extensions and
2095 # breaks some systems' header files.
2096 # AIX -qlanglvl=ansi
2097 # Ultrix and OSF/1 -std1
2098 # HP-UX 10.20 and later -Ae
2099 # HP-UX older versions -Aa -D_HPUX_SOURCE
2100 # SVR4 -Xc -D__EXTENSIONS__
2101 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2103 CC="$ac_save_CC $ac_arg"
2104 rm -f conftest.$ac_objext
2105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2106 (eval $ac_compile) 2>conftest.er1
2108 grep -v '^ *+' conftest.er1 >conftest.err
2110 cat conftest.err >&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); } &&
2113 { ac_try='test -z "$ac_c_werror_flag"
2114 || test ! -s conftest.err'
2115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; } &&
2120 { ac_try='test -s conftest.$ac_objext'
2121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; }; then
2126 ac_cv_prog_cc_stdc=$ac_arg
2129 echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.$ac_ext >&5
2133 rm -f conftest.err conftest.$ac_objext
2135 rm -f conftest.$ac_ext conftest.$ac_objext
2140 case "x$ac_cv_prog_cc_stdc" in
2142 echo "$as_me:$LINENO: result: none needed" >&5
2143 echo "${ECHO_T}none needed" >&6 ;;
2145 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2146 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2147 CC="$CC $ac_cv_prog_cc_stdc" ;;
2150 # Some people use a C++ compiler to compile C. Since we use `exit',
2151 # in C++ we need to declare it. In case someone uses the same compiler
2152 # for both compiling C and C++ we need to have the C++ compiler decide
2153 # the declaration of exit, since it's the most demanding environment.
2154 cat >conftest.$ac_ext <<_ACEOF
2159 rm -f conftest.$ac_objext
2160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161 (eval $ac_compile) 2>conftest.er1
2163 grep -v '^ *+' conftest.er1 >conftest.err
2165 cat conftest.err >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); } &&
2168 { ac_try='test -z "$ac_c_werror_flag"
2169 || test ! -s conftest.err'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; } &&
2175 { ac_try='test -s conftest.$ac_objext'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; }; then
2181 for ac_declaration in \
2183 'extern "C" void std::exit (int) throw (); using std::exit;' \
2184 'extern "C" void std::exit (int); using std::exit;' \
2185 'extern "C" void exit (int) throw ();' \
2186 'extern "C" void exit (int);' \
2189 cat >conftest.$ac_ext <<_ACEOF
2192 cat confdefs.h >>conftest.$ac_ext
2193 cat >>conftest.$ac_ext <<_ACEOF
2194 /* end confdefs.h. */
2205 rm -f conftest.$ac_objext
2206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207 (eval $ac_compile) 2>conftest.er1
2209 grep -v '^ *+' conftest.er1 >conftest.err
2211 cat conftest.err >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); } &&
2214 { ac_try='test -z "$ac_c_werror_flag"
2215 || test ! -s conftest.err'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; } &&
2221 { ac_try='test -s conftest.$ac_objext'
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2229 echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2235 cat >conftest.$ac_ext <<_ACEOF
2238 cat confdefs.h >>conftest.$ac_ext
2239 cat >>conftest.$ac_ext <<_ACEOF
2240 /* end confdefs.h. */
2250 rm -f conftest.$ac_objext
2251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252 (eval $ac_compile) 2>conftest.er1
2254 grep -v '^ *+' conftest.er1 >conftest.err
2256 cat conftest.err >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); } &&
2259 { ac_try='test -z "$ac_c_werror_flag"
2260 || test ! -s conftest.err'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; } &&
2266 { ac_try='test -s conftest.$ac_objext'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2274 echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2281 if test -n "$ac_declaration"; then
2282 echo '#ifdef __cplusplus' >>confdefs.h
2283 echo $ac_declaration >>confdefs.h
2284 echo '#endif' >>confdefs.h
2288 echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2294 ac_cpp='$CPP $CPPFLAGS'
2295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297 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}-
2930 # FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
2931 # doesn't support cross-compilation, but the one from Autoconf 2.5x
2932 # does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
2933 # deal with the lossage. Note that CY_GNU_GETTEXT currently calls
2934 # AC_PROG_RANLIB. This can be removed when we switch to Autoconf
2936 if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2938 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2939 echo "$as_me:$LINENO: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2941 if test "${ac_cv_prog_RANLIB+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 if test -n "$RANLIB"; then
2945 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 RANLIB=$ac_cv_prog_RANLIB
2964 if test -n "$RANLIB"; then
2965 echo "$as_me:$LINENO: result: $RANLIB" >&5
2966 echo "${ECHO_T}$RANLIB" >&6
2968 echo "$as_me:$LINENO: result: no" >&5
2969 echo "${ECHO_T}no" >&6
2973 if test -z "$ac_cv_prog_RANLIB"; then
2974 ac_ct_RANLIB=$RANLIB
2975 # Extract the first word of "ranlib", so it can be a program name with args.
2976 set dummy ranlib; ac_word=$2
2977 echo "$as_me:$LINENO: checking for $ac_word" >&5
2978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2979 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 if test -n "$ac_ct_RANLIB"; then
2983 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2992 ac_cv_prog_ac_ct_RANLIB="ranlib"
2993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3002 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3003 if test -n "$ac_ct_RANLIB"; then
3004 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3005 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3007 echo "$as_me:$LINENO: result: no" >&5
3008 echo "${ECHO_T}no" >&6
3011 RANLIB=$ac_ct_RANLIB
3013 RANLIB="$ac_cv_prog_RANLIB"
3029 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3030 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3031 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3032 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 cat >conftest.make <<\_ACEOF
3037 @echo 'ac_maketemp="$(MAKE)"'
3039 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3040 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3041 if test -n "$ac_maketemp"; then
3042 eval ac_cv_prog_make_${ac_make}_set=yes
3044 eval ac_cv_prog_make_${ac_make}_set=no
3048 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3049 echo "$as_me:$LINENO: result: yes" >&5
3050 echo "${ECHO_T}yes" >&6
3053 echo "$as_me:$LINENO: result: no" >&5
3054 echo "${ECHO_T}no" >&6
3055 SET_MAKE="MAKE=${MAKE-make}"
3058 if test -n "$ac_tool_prefix"; then
3059 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3060 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3061 echo "$as_me:$LINENO: checking for $ac_word" >&5
3062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3063 if test "${ac_cv_prog_RANLIB+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 if test -n "$RANLIB"; then
3067 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 RANLIB=$ac_cv_prog_RANLIB
3086 if test -n "$RANLIB"; then
3087 echo "$as_me:$LINENO: result: $RANLIB" >&5
3088 echo "${ECHO_T}$RANLIB" >&6
3090 echo "$as_me:$LINENO: result: no" >&5
3091 echo "${ECHO_T}no" >&6
3095 if test -z "$ac_cv_prog_RANLIB"; then
3096 ac_ct_RANLIB=$RANLIB
3097 # Extract the first word of "ranlib", so it can be a program name with args.
3098 set dummy ranlib; ac_word=$2
3099 echo "$as_me:$LINENO: checking for $ac_word" >&5
3100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3101 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 if test -n "$ac_ct_RANLIB"; then
3105 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114 ac_cv_prog_ac_ct_RANLIB="ranlib"
3115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3124 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3125 if test -n "$ac_ct_RANLIB"; then
3126 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3127 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3129 echo "$as_me:$LINENO: result: no" >&5
3130 echo "${ECHO_T}no" >&6
3133 RANLIB=$ac_ct_RANLIB
3135 RANLIB="$ac_cv_prog_RANLIB"
3138 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3139 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3140 if test "${ac_cv_header_stdc+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 cat >conftest.$ac_ext <<_ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3162 rm -f conftest.$ac_objext
3163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3164 (eval $ac_compile) 2>conftest.er1
3166 grep -v '^ *+' conftest.er1 >conftest.err
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } &&
3171 { ac_try='test -z "$ac_c_werror_flag"
3172 || test ! -s conftest.err'
3173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; } &&
3178 { ac_try='test -s conftest.$ac_objext'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3184 ac_cv_header_stdc=yes
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3189 ac_cv_header_stdc=no
3191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3193 if test $ac_cv_header_stdc = yes; then
3194 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3195 cat >conftest.$ac_ext <<_ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3205 $EGREP "memchr" >/dev/null 2>&1; then
3208 ac_cv_header_stdc=no
3214 if test $ac_cv_header_stdc = yes; then
3215 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3216 cat >conftest.$ac_ext <<_ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3226 $EGREP "free" >/dev/null 2>&1; then
3229 ac_cv_header_stdc=no
3235 if test $ac_cv_header_stdc = yes; then
3236 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3237 if test "$cross_compiling" = yes; then
3240 cat >conftest.$ac_ext <<_ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3247 #if ((' ' & 0x0FF) == 0x020)
3248 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3249 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3251 # define ISLOWER(c) \
3252 (('a' <= (c) && (c) <= 'i') \
3253 || ('j' <= (c) && (c) <= 'r') \
3254 || ('s' <= (c) && (c) <= 'z'))
3255 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3258 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3263 for (i = 0; i < 256; i++)
3264 if (XOR (islower (i), ISLOWER (i))
3265 || toupper (i) != TOUPPER (i))
3270 rm -f conftest$ac_exeext
3271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3272 (eval $ac_link) 2>&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }; }; then
3283 echo "$as_me: program exited with status $ac_status" >&5
3284 echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3288 ac_cv_header_stdc=no
3290 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3294 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3295 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3296 if test $ac_cv_header_stdc = yes; then
3298 cat >>confdefs.h <<\_ACEOF
3299 #define STDC_HEADERS 1
3304 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3305 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3306 if test "${ac_cv_c_const+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 cat >conftest.$ac_ext <<_ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3319 /* FIXME: Include the comments suggested by Paul. */
3321 /* Ultrix mips cc rejects this. */
3322 typedef int charset[2];
3324 /* SunOS 4.1.1 cc rejects this. */
3325 char const *const *ccp;
3327 /* NEC SVR4.0.2 mips cc rejects this. */
3328 struct point {int x, y;};
3329 static struct point const zero = {0,0};
3330 /* AIX XL C 1.02.0.0 rejects this.
3331 It does not let you subtract one const X* pointer from another in
3332 an arm of an if-expression whose if-part is not a constant
3334 const char *g = "string";
3335 ccp = &g + (g ? g-g : 0);
3336 /* HPUX 7.0 cc rejects these. */
3339 ccp = (char const *const *) p;
3340 { /* SCO 3.2v4 cc rejects this. */
3342 char const *s = 0 ? (char *) 0 : (char const *) 0;
3346 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3348 const int *foo = &x[0];
3351 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3352 typedef const int *iptr;
3356 { /* AIX XL C 1.02.0.0 rejects this saying
3357 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3358 struct s { int j; const int *ap[3]; };
3359 struct s *b; b->j = 5;
3361 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3370 rm -f conftest.$ac_objext
3371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3372 (eval $ac_compile) 2>conftest.er1
3374 grep -v '^ *+' conftest.er1 >conftest.err
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } &&
3379 { ac_try='test -z "$ac_c_werror_flag"
3380 || test ! -s conftest.err'
3381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; } &&
3386 { ac_try='test -s conftest.$ac_objext'
3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; }; then
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3401 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3402 echo "${ECHO_T}$ac_cv_c_const" >&6
3403 if test $ac_cv_c_const = no; then
3405 cat >>confdefs.h <<\_ACEOF
3411 echo "$as_me:$LINENO: checking for inline" >&5
3412 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3413 if test "${ac_cv_c_inline+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 for ac_kw in inline __inline__ __inline; do
3418 cat >conftest.$ac_ext <<_ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3426 static $ac_kw foo_t static_foo () {return 0; }
3427 $ac_kw foo_t foo () {return 0; }
3431 rm -f conftest.$ac_objext
3432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3433 (eval $ac_compile) 2>conftest.er1
3435 grep -v '^ *+' conftest.er1 >conftest.err
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } &&
3440 { ac_try='test -z "$ac_c_werror_flag"
3441 || test ! -s conftest.err'
3442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; } &&
3447 { ac_try='test -s conftest.$ac_objext'
3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; }; then
3453 ac_cv_c_inline=$ac_kw; break
3455 echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3463 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3464 echo "${ECHO_T}$ac_cv_c_inline" >&6
3467 case $ac_cv_c_inline in
3470 case $ac_cv_c_inline in
3472 *) ac_val=$ac_cv_c_inline;;
3474 cat >>confdefs.h <<_ACEOF
3476 #define inline $ac_val
3482 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3492 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3493 inttypes.h stdint.h unistd.h
3495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3496 echo "$as_me:$LINENO: checking for $ac_header" >&5
3497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 cat >conftest.$ac_ext <<_ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3507 $ac_includes_default
3509 #include <$ac_header>
3511 rm -f conftest.$ac_objext
3512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3513 (eval $ac_compile) 2>conftest.er1
3515 grep -v '^ *+' conftest.er1 >conftest.err
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } &&
3520 { ac_try='test -z "$ac_c_werror_flag"
3521 || test ! -s conftest.err'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; } &&
3527 { ac_try='test -s conftest.$ac_objext'
3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; }; then
3533 eval "$as_ac_Header=yes"
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3538 eval "$as_ac_Header=no"
3540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3545 cat >>confdefs.h <<_ACEOF
3546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3554 echo "$as_me:$LINENO: checking for off_t" >&5
3555 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3556 if test "${ac_cv_type_off_t+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 cat >conftest.$ac_ext <<_ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3565 $ac_includes_default
3577 rm -f conftest.$ac_objext
3578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579 (eval $ac_compile) 2>conftest.er1
3581 grep -v '^ *+' conftest.er1 >conftest.err
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try='test -z "$ac_c_werror_flag"
3587 || test ! -s conftest.err'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; } &&
3593 { ac_try='test -s conftest.$ac_objext'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3599 ac_cv_type_off_t=yes
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3608 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3609 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3610 if test $ac_cv_type_off_t = yes; then
3614 cat >>confdefs.h <<_ACEOF
3620 echo "$as_me:$LINENO: checking for size_t" >&5
3621 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3622 if test "${ac_cv_type_size_t+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 cat >conftest.$ac_ext <<_ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3631 $ac_includes_default
3637 if (sizeof (size_t))
3643 rm -f conftest.$ac_objext
3644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3645 (eval $ac_compile) 2>conftest.er1
3647 grep -v '^ *+' conftest.er1 >conftest.err
3649 cat conftest.err >&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } &&
3652 { ac_try='test -z "$ac_c_werror_flag"
3653 || test ! -s conftest.err'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; } &&
3659 { ac_try='test -s conftest.$ac_objext'
3660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; }; then
3665 ac_cv_type_size_t=yes
3667 echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.$ac_ext >&5
3670 ac_cv_type_size_t=no
3672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3674 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3675 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3676 if test $ac_cv_type_size_t = yes; then
3680 cat >>confdefs.h <<_ACEOF
3681 #define size_t unsigned
3686 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3687 # for constant arguments. Useless!
3688 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3689 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3690 if test "${ac_cv_working_alloca_h+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 cat >conftest.$ac_ext <<_ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h. */
3703 char *p = (char *) alloca (2 * sizeof (int));
3708 rm -f conftest.$ac_objext conftest$ac_exeext
3709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3710 (eval $ac_link) 2>conftest.er1
3712 grep -v '^ *+' conftest.er1 >conftest.err
3714 cat conftest.err >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } &&
3717 { ac_try='test -z "$ac_c_werror_flag"
3718 || test ! -s conftest.err'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; } &&
3724 { ac_try='test -s conftest$ac_exeext'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3730 ac_cv_working_alloca_h=yes
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3735 ac_cv_working_alloca_h=no
3737 rm -f conftest.err conftest.$ac_objext \
3738 conftest$ac_exeext conftest.$ac_ext
3740 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3741 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3742 if test $ac_cv_working_alloca_h = yes; then
3744 cat >>confdefs.h <<\_ACEOF
3745 #define HAVE_ALLOCA_H 1
3750 echo "$as_me:$LINENO: checking for alloca" >&5
3751 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3752 if test "${ac_cv_func_alloca_works+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 cat >conftest.$ac_ext <<_ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h. */
3762 # define alloca __builtin_alloca
3765 # include <malloc.h>
3766 # define alloca _alloca
3769 # include <alloca.h>
3774 # ifndef alloca /* predefined by HP cc +Olibcalls */
3785 char *p = (char *) alloca (1);
3790 rm -f conftest.$ac_objext conftest$ac_exeext
3791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3792 (eval $ac_link) 2>conftest.er1
3794 grep -v '^ *+' conftest.er1 >conftest.err
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 { ac_try='test -z "$ac_c_werror_flag"
3800 || test ! -s conftest.err'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; } &&
3806 { ac_try='test -s conftest$ac_exeext'
3807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; }; then
3812 ac_cv_func_alloca_works=yes
3814 echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3817 ac_cv_func_alloca_works=no
3819 rm -f conftest.err conftest.$ac_objext \
3820 conftest$ac_exeext conftest.$ac_ext
3822 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3823 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3825 if test $ac_cv_func_alloca_works = yes; then
3827 cat >>confdefs.h <<\_ACEOF
3828 #define HAVE_ALLOCA 1
3832 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3833 # that cause trouble. Some versions do not even contain alloca or
3834 # contain a buggy version. If you still want to use their alloca,
3835 # use ar to extract alloca.o from them instead of compiling alloca.c.
3837 ALLOCA=alloca.$ac_objext
3839 cat >>confdefs.h <<\_ACEOF
3844 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3845 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3846 if test "${ac_cv_os_cray+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 cat >conftest.$ac_ext <<_ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 #if defined(CRAY) && ! defined(CRAY2)
3862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3863 $EGREP "webecray" >/dev/null 2>&1; then
3871 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3872 echo "${ECHO_T}$ac_cv_os_cray" >&6
3873 if test $ac_cv_os_cray = yes; then
3874 for ac_func in _getb67 GETB67 getb67; do
3875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3876 echo "$as_me:$LINENO: checking for $ac_func" >&5
3877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3878 if eval "test \"\${$as_ac_var+set}\" = set"; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3881 cat >conftest.$ac_ext <<_ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3889 #define $ac_func innocuous_$ac_func
3891 /* System header to define __stub macros and hopefully few prototypes,
3892 which can conflict with char $ac_func (); below.
3893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3894 <limits.h> exists even on freestanding compilers. */
3897 # include <limits.h>
3899 # include <assert.h>
3904 /* Override any gcc2 internal prototype to avoid an error. */
3909 /* We use char because int might match the return type of a gcc2
3910 builtin and then its argument prototype would still apply. */
3912 /* The GNU C library defines this for functions which it implements
3913 to always fail with ENOSYS. Some functions are actually named
3914 something starting with __ and the normal name is an alias. */
3915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3918 char (*f) () = $ac_func;
3927 return f != $ac_func;
3932 rm -f conftest.$ac_objext conftest$ac_exeext
3933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3934 (eval $ac_link) 2>conftest.er1
3936 grep -v '^ *+' conftest.er1 >conftest.err
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } &&
3941 { ac_try='test -z "$ac_c_werror_flag"
3942 || test ! -s conftest.err'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; } &&
3948 { ac_try='test -s conftest$ac_exeext'
3949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; }; then
3954 eval "$as_ac_var=yes"
3956 echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3959 eval "$as_ac_var=no"
3961 rm -f conftest.err conftest.$ac_objext \
3962 conftest$ac_exeext conftest.$ac_ext
3964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3966 if test `eval echo '${'$as_ac_var'}'` = yes; then
3968 cat >>confdefs.h <<_ACEOF
3969 #define CRAY_STACKSEG_END $ac_func
3978 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3979 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3980 if test "${ac_cv_c_stack_direction+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 if test "$cross_compiling" = yes; then
3984 ac_cv_c_stack_direction=0
3986 cat >conftest.$ac_ext <<_ACEOF
3989 cat confdefs.h >>conftest.$ac_ext
3990 cat >>conftest.$ac_ext <<_ACEOF
3991 /* end confdefs.h. */
3993 find_stack_direction ()
3995 static char *addr = 0;
4000 return find_stack_direction ();
4003 return (&dummy > addr) ? 1 : -1;
4009 exit (find_stack_direction () < 0);
4012 rm -f conftest$ac_exeext
4013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4014 (eval $ac_link) 2>&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4023 ac_cv_c_stack_direction=1
4025 echo "$as_me: program exited with status $ac_status" >&5
4026 echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4030 ac_cv_c_stack_direction=-1
4032 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4035 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4036 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4038 cat >>confdefs.h <<_ACEOF
4039 #define STACK_DIRECTION $ac_cv_c_stack_direction
4047 for ac_header in stdlib.h unistd.h
4049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4051 echo "$as_me:$LINENO: checking for $ac_header" >&5
4052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4059 # Is the header compilable?
4060 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4062 cat >conftest.$ac_ext <<_ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 $ac_includes_default
4069 #include <$ac_header>
4071 rm -f conftest.$ac_objext
4072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4073 (eval $ac_compile) 2>conftest.er1
4075 grep -v '^ *+' conftest.er1 >conftest.err
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } &&
4080 { ac_try='test -z "$ac_c_werror_flag"
4081 || test ! -s conftest.err'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; } &&
4087 { ac_try='test -s conftest.$ac_objext'
4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; }; then
4093 ac_header_compiler=yes
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4098 ac_header_compiler=no
4100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4101 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4102 echo "${ECHO_T}$ac_header_compiler" >&6
4104 # Is the header present?
4105 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4107 cat >conftest.$ac_ext <<_ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4113 #include <$ac_header>
4115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4118 grep -v '^ *+' conftest.er1 >conftest.err
4120 cat conftest.err >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } >/dev/null; then
4123 if test -s conftest.err; then
4124 ac_cpp_err=$ac_c_preproc_warn_flag
4125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4132 if test -z "$ac_cpp_err"; then
4133 ac_header_preproc=yes
4135 echo "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.$ac_ext >&5
4138 ac_header_preproc=no
4140 rm -f conftest.err conftest.$ac_ext
4141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4142 echo "${ECHO_T}$ac_header_preproc" >&6
4144 # So? What about this header?
4145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4151 ac_header_preproc=yes
4154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4161 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4168 ## ------------------------------------------ ##
4169 ## Report this to the AC_PACKAGE_NAME lists. ##
4170 ## ------------------------------------------ ##
4173 sed "s/^/$as_me: WARNING: /" >&2
4176 echo "$as_me:$LINENO: checking for $ac_header" >&5
4177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 eval "$as_ac_Header=\$ac_header_preproc"
4183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4188 cat >>confdefs.h <<_ACEOF
4189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4197 for ac_func in getpagesize
4199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4200 echo "$as_me:$LINENO: checking for $ac_func" >&5
4201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4202 if eval "test \"\${$as_ac_var+set}\" = set"; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 cat >conftest.$ac_ext <<_ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4213 #define $ac_func innocuous_$ac_func
4215 /* System header to define __stub macros and hopefully few prototypes,
4216 which can conflict with char $ac_func (); below.
4217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4218 <limits.h> exists even on freestanding compilers. */
4221 # include <limits.h>
4223 # include <assert.h>
4228 /* Override any gcc2 internal prototype to avoid an error. */
4233 /* We use char because int might match the return type of a gcc2
4234 builtin and then its argument prototype would still apply. */
4236 /* The GNU C library defines this for functions which it implements
4237 to always fail with ENOSYS. Some functions are actually named
4238 something starting with __ and the normal name is an alias. */
4239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4242 char (*f) () = $ac_func;
4251 return f != $ac_func;
4256 rm -f conftest.$ac_objext conftest$ac_exeext
4257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4258 (eval $ac_link) 2>conftest.er1
4260 grep -v '^ *+' conftest.er1 >conftest.err
4262 cat conftest.err >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); } &&
4265 { ac_try='test -z "$ac_c_werror_flag"
4266 || test ! -s conftest.err'
4267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; } &&
4272 { ac_try='test -s conftest$ac_exeext'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; }; then
4278 eval "$as_ac_var=yes"
4280 echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4283 eval "$as_ac_var=no"
4285 rm -f conftest.err conftest.$ac_objext \
4286 conftest$ac_exeext conftest.$ac_ext
4288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4290 if test `eval echo '${'$as_ac_var'}'` = yes; then
4291 cat >>confdefs.h <<_ACEOF
4292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4298 echo "$as_me:$LINENO: checking for working mmap" >&5
4299 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4300 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 if test "$cross_compiling" = yes; then
4304 ac_cv_func_mmap_fixed_mapped=no
4306 cat >conftest.$ac_ext <<_ACEOF
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>conftest.$ac_ext <<_ACEOF
4311 /* end confdefs.h. */
4312 $ac_includes_default
4313 /* malloc might have been renamed as rpl_malloc. */
4316 /* Thanks to Mike Haertel and Jim Avera for this test.
4317 Here is a matrix of mmap possibilities:
4318 mmap private not fixed
4319 mmap private fixed at somewhere currently unmapped
4320 mmap private fixed at somewhere already mapped
4321 mmap shared not fixed
4322 mmap shared fixed at somewhere currently unmapped
4323 mmap shared fixed at somewhere already mapped
4324 For private mappings, we should verify that changes cannot be read()
4325 back from the file, nor mmap's back from the file at a different
4326 address. (There have been systems where private was not correctly
4327 implemented like the infamous i386 svr4.0, and systems where the
4328 VM page cache was not coherent with the file system buffer cache
4329 like early versions of FreeBSD and possibly contemporary NetBSD.)
4330 For shared mappings, we should conversely verify that changes get
4331 propagated back to all the places they're supposed to be.
4333 Grep wants private fixed already mapped.
4334 The main things grep needs to know about mmap are:
4335 * does it exist and is it safe to write into the mmap'd area
4336 * how to use it (BSD variants) */
4339 #include <sys/mman.h>
4341 #if !STDC_HEADERS && !HAVE_STDLIB_H
4345 /* This mess was copied from the GNU getpagesize.h. */
4346 #if !HAVE_GETPAGESIZE
4347 /* Assume that all systems that can run configure have sys/param.h. */
4348 # if !HAVE_SYS_PARAM_H
4349 # define HAVE_SYS_PARAM_H 1
4352 # ifdef _SC_PAGESIZE
4353 # define getpagesize() sysconf(_SC_PAGESIZE)
4354 # else /* no _SC_PAGESIZE */
4355 # if HAVE_SYS_PARAM_H
4356 # include <sys/param.h>
4357 # ifdef EXEC_PAGESIZE
4358 # define getpagesize() EXEC_PAGESIZE
4359 # else /* no EXEC_PAGESIZE */
4361 # define getpagesize() NBPG * CLSIZE
4364 # endif /* no CLSIZE */
4365 # else /* no NBPG */
4367 # define getpagesize() NBPC
4368 # else /* no NBPC */
4370 # define getpagesize() PAGESIZE
4371 # endif /* PAGESIZE */
4372 # endif /* no NBPC */
4373 # endif /* no NBPG */
4374 # endif /* no EXEC_PAGESIZE */
4375 # else /* no HAVE_SYS_PARAM_H */
4376 # define getpagesize() 8192 /* punt totally */
4377 # endif /* no HAVE_SYS_PARAM_H */
4378 # endif /* no _SC_PAGESIZE */
4380 #endif /* no HAVE_GETPAGESIZE */
4385 char *data, *data2, *data3;
4389 pagesize = getpagesize ();
4391 /* First, make a file with some known garbage in it. */
4392 data = (char *) malloc (pagesize);
4395 for (i = 0; i < pagesize; ++i)
4396 *(data + i) = rand ();
4398 fd = creat ("conftest.mmap", 0600);
4401 if (write (fd, data, pagesize) != pagesize)
4405 /* Next, try to mmap the file at a fixed address which already has
4406 something else allocated at it. If we can, also make sure that
4407 we see the same garbage. */
4408 fd = open ("conftest.mmap", O_RDWR);
4411 data2 = (char *) malloc (2 * pagesize);
4414 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4415 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4416 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4418 for (i = 0; i < pagesize; ++i)
4419 if (*(data + i) != *(data2 + i))
4422 /* Finally, make sure that changes to the mapped area do not
4423 percolate back to the file as seen by read(). (This is a bug on
4424 some variants of i386 svr4.0.) */
4425 for (i = 0; i < pagesize; ++i)
4426 *(data2 + i) = *(data2 + i) + 1;
4427 data3 = (char *) malloc (pagesize);
4430 if (read (fd, data3, pagesize) != pagesize)
4432 for (i = 0; i < pagesize; ++i)
4433 if (*(data + i) != *(data3 + i))
4439 rm -f conftest$ac_exeext
4440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4441 (eval $ac_link) 2>&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; }; then
4450 ac_cv_func_mmap_fixed_mapped=yes
4452 echo "$as_me: program exited with status $ac_status" >&5
4453 echo "$as_me: failed program was:" >&5
4454 sed 's/^/| /' conftest.$ac_ext >&5
4457 ac_cv_func_mmap_fixed_mapped=no
4459 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4462 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4463 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4464 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4466 cat >>confdefs.h <<\_ACEOF
4483 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4484 unistd.h values.h sys/param.h
4486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4488 echo "$as_me:$LINENO: checking for $ac_header" >&5
4489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4496 # Is the header compilable?
4497 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4499 cat >conftest.$ac_ext <<_ACEOF
4502 cat confdefs.h >>conftest.$ac_ext
4503 cat >>conftest.$ac_ext <<_ACEOF
4504 /* end confdefs.h. */
4505 $ac_includes_default
4506 #include <$ac_header>
4508 rm -f conftest.$ac_objext
4509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4510 (eval $ac_compile) 2>conftest.er1
4512 grep -v '^ *+' conftest.er1 >conftest.err
4514 cat conftest.err >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } &&
4517 { ac_try='test -z "$ac_c_werror_flag"
4518 || test ! -s conftest.err'
4519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; } &&
4524 { ac_try='test -s conftest.$ac_objext'
4525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); }; }; then
4530 ac_header_compiler=yes
4532 echo "$as_me: failed program was:" >&5
4533 sed 's/^/| /' conftest.$ac_ext >&5
4535 ac_header_compiler=no
4537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4539 echo "${ECHO_T}$ac_header_compiler" >&6
4541 # Is the header present?
4542 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4544 cat >conftest.$ac_ext <<_ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4550 #include <$ac_header>
4552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4555 grep -v '^ *+' conftest.er1 >conftest.err
4557 cat conftest.err >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } >/dev/null; then
4560 if test -s conftest.err; then
4561 ac_cpp_err=$ac_c_preproc_warn_flag
4562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4569 if test -z "$ac_cpp_err"; then
4570 ac_header_preproc=yes
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4575 ac_header_preproc=no
4577 rm -f conftest.err conftest.$ac_ext
4578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4579 echo "${ECHO_T}$ac_header_preproc" >&6
4581 # So? What about this header?
4582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4588 ac_header_preproc=yes
4591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4605 ## ------------------------------------------ ##
4606 ## Report this to the AC_PACKAGE_NAME lists. ##
4607 ## ------------------------------------------ ##
4610 sed "s/^/$as_me: WARNING: /" >&2
4613 echo "$as_me:$LINENO: checking for $ac_header" >&5
4614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 eval "$as_ac_Header=\$ac_header_preproc"
4620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4625 cat >>confdefs.h <<_ACEOF
4626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4643 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4644 __argz_count __argz_stringify __argz_next
4646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4647 echo "$as_me:$LINENO: checking for $ac_func" >&5
4648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4649 if eval "test \"\${$as_ac_var+set}\" = set"; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4652 cat >conftest.$ac_ext <<_ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4660 #define $ac_func innocuous_$ac_func
4662 /* System header to define __stub macros and hopefully few prototypes,
4663 which can conflict with char $ac_func (); below.
4664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4665 <limits.h> exists even on freestanding compilers. */
4668 # include <limits.h>
4670 # include <assert.h>
4675 /* Override any gcc2 internal prototype to avoid an error. */
4680 /* We use char because int might match the return type of a gcc2
4681 builtin and then its argument prototype would still apply. */
4683 /* The GNU C library defines this for functions which it implements
4684 to always fail with ENOSYS. Some functions are actually named
4685 something starting with __ and the normal name is an alias. */
4686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4689 char (*f) () = $ac_func;
4698 return f != $ac_func;
4703 rm -f conftest.$ac_objext conftest$ac_exeext
4704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4705 (eval $ac_link) 2>conftest.er1
4707 grep -v '^ *+' conftest.er1 >conftest.err
4709 cat conftest.err >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try='test -z "$ac_c_werror_flag"
4713 || test ! -s conftest.err'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; } &&
4719 { ac_try='test -s conftest$ac_exeext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 eval "$as_ac_var=yes"
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4730 eval "$as_ac_var=no"
4732 rm -f conftest.err conftest.$ac_objext \
4733 conftest$ac_exeext conftest.$ac_ext
4735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4737 if test `eval echo '${'$as_ac_var'}'` = yes; then
4738 cat >>confdefs.h <<_ACEOF
4739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4746 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4748 for ac_func in stpcpy
4750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4751 echo "$as_me:$LINENO: checking for $ac_func" >&5
4752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4753 if eval "test \"\${$as_ac_var+set}\" = set"; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4756 cat >conftest.$ac_ext <<_ACEOF
4759 cat confdefs.h >>conftest.$ac_ext
4760 cat >>conftest.$ac_ext <<_ACEOF
4761 /* end confdefs.h. */
4762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4764 #define $ac_func innocuous_$ac_func
4766 /* System header to define __stub macros and hopefully few prototypes,
4767 which can conflict with char $ac_func (); below.
4768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4769 <limits.h> exists even on freestanding compilers. */
4772 # include <limits.h>
4774 # include <assert.h>
4779 /* Override any gcc2 internal prototype to avoid an error. */
4784 /* We use char because int might match the return type of a gcc2
4785 builtin and then its argument prototype would still apply. */
4787 /* The GNU C library defines this for functions which it implements
4788 to always fail with ENOSYS. Some functions are actually named
4789 something starting with __ and the normal name is an alias. */
4790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4793 char (*f) () = $ac_func;
4802 return f != $ac_func;
4807 rm -f conftest.$ac_objext conftest$ac_exeext
4808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4809 (eval $ac_link) 2>conftest.er1
4811 grep -v '^ *+' conftest.er1 >conftest.err
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -z "$ac_c_werror_flag"
4817 || test ! -s conftest.err'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; } &&
4823 { ac_try='test -s conftest$ac_exeext'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 eval "$as_ac_var=yes"
4831 echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4834 eval "$as_ac_var=no"
4836 rm -f conftest.err conftest.$ac_objext \
4837 conftest$ac_exeext conftest.$ac_ext
4839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4840 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4841 if test `eval echo '${'$as_ac_var'}'` = yes; then
4842 cat >>confdefs.h <<_ACEOF
4843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4850 if test "${ac_cv_func_stpcpy}" = "yes"; then
4852 cat >>confdefs.h <<\_ACEOF
4853 #define HAVE_STPCPY 1
4858 if test $ac_cv_header_locale_h = yes; then
4859 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4860 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4861 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 cat >conftest.$ac_ext <<_ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4879 rm -f conftest.$ac_objext conftest$ac_exeext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4881 (eval $ac_link) 2>conftest.er1
4883 grep -v '^ *+' conftest.er1 >conftest.err
4885 cat conftest.err >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } &&
4888 { ac_try='test -z "$ac_c_werror_flag"
4889 || test ! -s conftest.err'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; } &&
4895 { ac_try='test -s conftest$ac_exeext'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4901 am_cv_val_LC_MESSAGES=yes
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4906 am_cv_val_LC_MESSAGES=no
4908 rm -f conftest.err conftest.$ac_objext \
4909 conftest$ac_exeext conftest.$ac_ext
4911 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4912 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4913 if test $am_cv_val_LC_MESSAGES = yes; then
4915 cat >>confdefs.h <<\_ACEOF
4916 #define HAVE_LC_MESSAGES 1
4921 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4922 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4923 # Check whether --enable-nls or --disable-nls was given.
4924 if test "${enable_nls+set}" = set; then
4925 enableval="$enable_nls"
4930 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4931 echo "${ECHO_T}$USE_NLS" >&6
4934 USE_INCLUDED_LIBINTL=no
4936 if test "$USE_NLS" = "yes"; then
4938 cat >>confdefs.h <<\_ACEOF
4939 #define ENABLE_NLS 1
4942 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4943 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4945 # Check whether --with-included-gettext or --without-included-gettext was given.
4946 if test "${with_included_gettext+set}" = set; then
4947 withval="$with_included_gettext"
4948 nls_cv_force_use_gnu_gettext=$withval
4950 nls_cv_force_use_gnu_gettext=no
4952 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4953 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4955 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4956 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4958 nls_cv_header_libgt=
4961 if test "${ac_cv_header_libintl_h+set}" = set; then
4962 echo "$as_me:$LINENO: checking for libintl.h" >&5
4963 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4964 if test "${ac_cv_header_libintl_h+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4968 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4970 # Is the header compilable?
4971 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4972 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4973 cat >conftest.$ac_ext <<_ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4979 $ac_includes_default
4980 #include <libintl.h>
4982 rm -f conftest.$ac_objext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984 (eval $ac_compile) 2>conftest.er1
4986 grep -v '^ *+' conftest.er1 >conftest.err
4988 cat conftest.err >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } &&
4991 { ac_try='test -z "$ac_c_werror_flag"
4992 || test ! -s conftest.err'
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; } &&
4998 { ac_try='test -s conftest.$ac_objext'
4999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; }; then
5004 ac_header_compiler=yes
5006 echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5009 ac_header_compiler=no
5011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5013 echo "${ECHO_T}$ac_header_compiler" >&6
5015 # Is the header present?
5016 echo "$as_me:$LINENO: checking libintl.h presence" >&5
5017 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
5018 cat >conftest.$ac_ext <<_ACEOF
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5024 #include <libintl.h>
5026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5029 grep -v '^ *+' conftest.er1 >conftest.err
5031 cat conftest.err >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } >/dev/null; then
5034 if test -s conftest.err; then
5035 ac_cpp_err=$ac_c_preproc_warn_flag
5036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5043 if test -z "$ac_cpp_err"; then
5044 ac_header_preproc=yes
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5049 ac_header_preproc=no
5051 rm -f conftest.err conftest.$ac_ext
5052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5053 echo "${ECHO_T}$ac_header_preproc" >&6
5055 # So? What about this header?
5056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5058 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5059 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5060 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5061 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5062 ac_header_preproc=yes
5065 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5066 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5067 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5068 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5069 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5070 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5071 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5072 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5073 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5074 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5075 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5076 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5079 ## ------------------------------------------ ##
5080 ## Report this to the AC_PACKAGE_NAME lists. ##
5081 ## ------------------------------------------ ##
5084 sed "s/^/$as_me: WARNING: /" >&2
5087 echo "$as_me:$LINENO: checking for libintl.h" >&5
5088 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5089 if test "${ac_cv_header_libintl_h+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5092 ac_cv_header_libintl_h=$ac_header_preproc
5094 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5095 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5098 if test $ac_cv_header_libintl_h = yes; then
5099 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5100 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5101 if test "${gt_cv_func_gettext_libc+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 cat >conftest.$ac_ext <<_ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110 #include <libintl.h>
5114 return (int) gettext ("")
5119 rm -f conftest.$ac_objext conftest$ac_exeext
5120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5121 (eval $ac_link) 2>conftest.er1
5123 grep -v '^ *+' conftest.er1 >conftest.err
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try='test -z "$ac_c_werror_flag"
5129 || test ! -s conftest.err'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; } &&
5135 { ac_try='test -s conftest$ac_exeext'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5141 gt_cv_func_gettext_libc=yes
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5146 gt_cv_func_gettext_libc=no
5148 rm -f conftest.err conftest.$ac_objext \
5149 conftest$ac_exeext conftest.$ac_ext
5151 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5152 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5154 if test "$gt_cv_func_gettext_libc" != "yes"; then
5155 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5156 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5157 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 ac_check_lib_save_LIBS=$LIBS
5162 cat >conftest.$ac_ext <<_ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5169 /* Override any gcc2 internal prototype to avoid an error. */
5173 /* We use char because int might match the return type of a gcc2
5174 builtin and then its argument prototype would still apply. */
5175 char bindtextdomain ();
5184 rm -f conftest.$ac_objext conftest$ac_exeext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5186 (eval $ac_link) 2>conftest.er1
5188 grep -v '^ *+' conftest.er1 >conftest.err
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try='test -z "$ac_c_werror_flag"
5194 || test ! -s conftest.err'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; } &&
5200 { ac_try='test -s conftest$ac_exeext'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; }; then
5206 ac_cv_lib_intl_bindtextdomain=yes
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5211 ac_cv_lib_intl_bindtextdomain=no
5213 rm -f conftest.err conftest.$ac_objext \
5214 conftest$ac_exeext conftest.$ac_ext
5215 LIBS=$ac_check_lib_save_LIBS
5217 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5218 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5219 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5220 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5221 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5222 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 cat >conftest.$ac_ext <<_ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5235 return (int) gettext ("")
5240 rm -f conftest.$ac_objext conftest$ac_exeext
5241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5242 (eval $ac_link) 2>conftest.er1
5244 grep -v '^ *+' conftest.er1 >conftest.err
5246 cat conftest.err >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } &&
5249 { ac_try='test -z "$ac_c_werror_flag"
5250 || test ! -s conftest.err'
5251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }; } &&
5256 { ac_try='test -s conftest$ac_exeext'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; }; then
5262 gt_cv_func_gettext_libintl=yes
5264 echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5267 gt_cv_func_gettext_libintl=no
5269 rm -f conftest.err conftest.$ac_objext \
5270 conftest$ac_exeext conftest.$ac_ext
5272 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5273 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5278 if test "$gt_cv_func_gettext_libc" = "yes" \
5279 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5281 cat >>confdefs.h <<\_ACEOF
5282 #define HAVE_GETTEXT 1
5285 # Extract the first word of "msgfmt", so it can be a program name with args.
5286 set dummy msgfmt; ac_word=$2
5287 echo "$as_me:$LINENO: checking for $ac_word" >&5
5288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5289 if test "${ac_cv_path_MSGFMT+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5294 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5298 for ac_dir in $PATH; do
5299 test -z "$ac_dir" && ac_dir=.
5300 if test -f $ac_dir/$ac_word; then
5301 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5302 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5308 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5312 MSGFMT="$ac_cv_path_MSGFMT"
5313 if test -n "$MSGFMT"; then
5314 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5315 echo "${ECHO_T}$MSGFMT" >&6
5317 echo "$as_me:$LINENO: result: no" >&5
5318 echo "${ECHO_T}no" >&6
5320 if test "$MSGFMT" != "no"; then
5322 for ac_func in dcgettext
5324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5325 echo "$as_me:$LINENO: checking for $ac_func" >&5
5326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5327 if eval "test \"\${$as_ac_var+set}\" = set"; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 cat >conftest.$ac_ext <<_ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5338 #define $ac_func innocuous_$ac_func
5340 /* System header to define __stub macros and hopefully few prototypes,
5341 which can conflict with char $ac_func (); below.
5342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5343 <limits.h> exists even on freestanding compilers. */
5346 # include <limits.h>
5348 # include <assert.h>
5353 /* Override any gcc2 internal prototype to avoid an error. */
5358 /* We use char because int might match the return type of a gcc2
5359 builtin and then its argument prototype would still apply. */
5361 /* The GNU C library defines this for functions which it implements
5362 to always fail with ENOSYS. Some functions are actually named
5363 something starting with __ and the normal name is an alias. */
5364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5367 char (*f) () = $ac_func;
5376 return f != $ac_func;
5381 rm -f conftest.$ac_objext conftest$ac_exeext
5382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5383 (eval $ac_link) 2>conftest.er1
5385 grep -v '^ *+' conftest.er1 >conftest.err
5387 cat conftest.err >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } &&
5390 { ac_try='test -z "$ac_c_werror_flag"
5391 || test ! -s conftest.err'
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; } &&
5397 { ac_try='test -s conftest$ac_exeext'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; }; then
5403 eval "$as_ac_var=yes"
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5408 eval "$as_ac_var=no"
5410 rm -f conftest.err conftest.$ac_objext \
5411 conftest$ac_exeext conftest.$ac_ext
5413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5414 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5415 if test `eval echo '${'$as_ac_var'}'` = yes; then
5416 cat >>confdefs.h <<_ACEOF
5417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5423 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5424 set dummy gmsgfmt; ac_word=$2
5425 echo "$as_me:$LINENO: checking for $ac_word" >&5
5426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5427 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5442 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5453 GMSGFMT=$ac_cv_path_GMSGFMT
5455 if test -n "$GMSGFMT"; then
5456 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5457 echo "${ECHO_T}$GMSGFMT" >&6
5459 echo "$as_me:$LINENO: result: no" >&5
5460 echo "${ECHO_T}no" >&6
5463 # Extract the first word of "xgettext", so it can be a program name with args.
5464 set dummy xgettext; ac_word=$2
5465 echo "$as_me:$LINENO: checking for $ac_word" >&5
5466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5467 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5476 for ac_dir in $PATH; do
5477 test -z "$ac_dir" && ac_dir=.
5478 if test -f $ac_dir/$ac_word; then
5479 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5480 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5486 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5490 XGETTEXT="$ac_cv_path_XGETTEXT"
5491 if test -n "$XGETTEXT"; then
5492 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5493 echo "${ECHO_T}$XGETTEXT" >&6
5495 echo "$as_me:$LINENO: result: no" >&5
5496 echo "${ECHO_T}no" >&6
5499 cat >conftest.$ac_ext <<_ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5509 extern int _nl_msg_cat_cntr;
5510 return _nl_msg_cat_cntr
5515 rm -f conftest.$ac_objext conftest$ac_exeext
5516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5517 (eval $ac_link) 2>conftest.er1
5519 grep -v '^ *+' conftest.er1 >conftest.err
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } &&
5524 { ac_try='test -z "$ac_c_werror_flag"
5525 || test ! -s conftest.err'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; } &&
5531 { ac_try='test -s conftest$ac_exeext'
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; }; then
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5546 rm -f conftest.err conftest.$ac_objext \
5547 conftest$ac_exeext conftest.$ac_ext
5557 if test "$CATOBJEXT" = "NONE"; then
5558 nls_cv_use_gnu_gettext=yes
5562 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5563 INTLOBJS="\$(GETTOBJS)"
5564 # Extract the first word of "msgfmt", so it can be a program name with args.
5565 set dummy msgfmt; ac_word=$2
5566 echo "$as_me:$LINENO: checking for $ac_word" >&5
5567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5568 if test "${ac_cv_path_MSGFMT+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5577 for ac_dir in $PATH; do
5578 test -z "$ac_dir" && ac_dir=.
5579 if test -f $ac_dir/$ac_word; then
5580 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5581 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5587 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5591 MSGFMT="$ac_cv_path_MSGFMT"
5592 if test -n "$MSGFMT"; then
5593 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5594 echo "${ECHO_T}$MSGFMT" >&6
5596 echo "$as_me:$LINENO: result: no" >&5
5597 echo "${ECHO_T}no" >&6
5600 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5601 set dummy gmsgfmt; ac_word=$2
5602 echo "$as_me:$LINENO: checking for $ac_word" >&5
5603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5604 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5630 GMSGFMT=$ac_cv_path_GMSGFMT
5632 if test -n "$GMSGFMT"; then
5633 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5634 echo "${ECHO_T}$GMSGFMT" >&6
5636 echo "$as_me:$LINENO: result: no" >&5
5637 echo "${ECHO_T}no" >&6
5640 # Extract the first word of "xgettext", so it can be a program name with args.
5641 set dummy xgettext; ac_word=$2
5642 echo "$as_me:$LINENO: checking for $ac_word" >&5
5643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5644 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5653 for ac_dir in $PATH; do
5654 test -z "$ac_dir" && ac_dir=.
5655 if test -f $ac_dir/$ac_word; then
5656 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5657 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5663 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5667 XGETTEXT="$ac_cv_path_XGETTEXT"
5668 if test -n "$XGETTEXT"; then
5669 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5670 echo "${ECHO_T}$XGETTEXT" >&6
5672 echo "$as_me:$LINENO: result: no" >&5
5673 echo "${ECHO_T}no" >&6
5677 USE_INCLUDED_LIBINTL=yes
5681 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5683 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5684 nls_cv_header_intl=libintl.h
5685 nls_cv_header_libgt=libgettext.h
5688 if test "$XGETTEXT" != ":"; then
5689 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5692 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5693 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5698 # We need to process the po/ directory.
5702 nls_cv_header_intl=libintl.h
5703 nls_cv_header_libgt=libgettext.h
5706 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5707 # because some of the sources are only built for this goal.
5708 if test "$PACKAGE" = gettext; then
5710 USE_INCLUDED_LIBINTL=yes
5713 for lang in $ALL_LINGUAS; do
5714 GMOFILES="$GMOFILES $lang.gmo"
5715 POFILES="$POFILES $lang.po"
5731 if test "x$CATOBJEXT" != "x"; then
5732 if test "x$ALL_LINGUAS" = "x"; then
5735 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5736 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5738 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5739 case "$ALL_LINGUAS" in
5740 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5743 LINGUAS=$NEW_LINGUAS
5744 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5745 echo "${ECHO_T}$LINGUAS" >&6
5748 if test -n "$LINGUAS"; then
5749 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5753 if test $ac_cv_header_locale_h = yes; then
5754 INCLUDE_LOCALE_H="#include <locale.h>"
5757 /* The system does not provide the header <locale.h>. Take care yourself. */"
5761 if test -f $srcdir/po2tbl.sed.in; then
5762 if test "$CATOBJEXT" = ".cat"; then
5763 if test "${ac_cv_header_linux_version_h+set}" = set; then
5764 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5765 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5766 if test "${ac_cv_header_linux_version_h+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5770 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5772 # Is the header compilable?
5773 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5774 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5775 cat >conftest.$ac_ext <<_ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5781 $ac_includes_default
5782 #include <linux/version.h>
5784 rm -f conftest.$ac_objext
5785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5786 (eval $ac_compile) 2>conftest.er1
5788 grep -v '^ *+' conftest.er1 >conftest.err
5790 cat conftest.err >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } &&
5793 { ac_try='test -z "$ac_c_werror_flag"
5794 || test ! -s conftest.err'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; } &&
5800 { ac_try='test -s conftest.$ac_objext'
5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; }; then
5806 ac_header_compiler=yes
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5811 ac_header_compiler=no
5813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5814 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5815 echo "${ECHO_T}$ac_header_compiler" >&6
5817 # Is the header present?
5818 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5819 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5820 cat >conftest.$ac_ext <<_ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5826 #include <linux/version.h>
5828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5831 grep -v '^ *+' conftest.er1 >conftest.err
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } >/dev/null; then
5836 if test -s conftest.err; then
5837 ac_cpp_err=$ac_c_preproc_warn_flag
5838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5845 if test -z "$ac_cpp_err"; then
5846 ac_header_preproc=yes
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5851 ac_header_preproc=no
5853 rm -f conftest.err conftest.$ac_ext
5854 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5855 echo "${ECHO_T}$ac_header_preproc" >&6
5857 # So? What about this header?
5858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5860 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5861 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5862 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5863 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5864 ac_header_preproc=yes
5867 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5868 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5869 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5870 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5871 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5872 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5873 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5874 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5875 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5876 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5877 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5878 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5881 ## ------------------------------------------ ##
5882 ## Report this to the AC_PACKAGE_NAME lists. ##
5883 ## ------------------------------------------ ##
5886 sed "s/^/$as_me: WARNING: /" >&2
5889 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5890 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5891 if test "${ac_cv_header_linux_version_h+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 ac_cv_header_linux_version_h=$ac_header_preproc
5896 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5897 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5900 if test $ac_cv_header_linux_version_h = yes; then
5908 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5910 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5911 $srcdir/po2tbl.sed.in > po2tbl.sed
5914 if test "$PACKAGE" = "gettext"; then
5924 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5930 if test -f $srcdir/po/POTFILES.in; then
5931 test -d po || mkdir po
5932 if test "x$srcdir" != "x."; then
5933 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5934 posrcprefix="$srcdir/"
5936 posrcprefix="../$srcdir/"
5942 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5943 < $srcdir/po/POTFILES.in > po/POTFILES
5947 localedir='${datadir}/locale'
5950 if test "x$POSUB" != x; then
5952 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5953 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5954 # Look for .po and .gmo files in the source directory.
5957 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5958 # If there aren't any .gmo files the shell will give us the
5959 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5961 case "$cat" in *\**)
5964 # The quadruple backslash is collapsed to a double backslash
5965 # by the backticks, then collapsed again by the double quotes,
5966 # leaving us with one backslash in the sed expression (right
5967 # before the dot that mustn't act as a wildcard).
5968 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5969 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5970 # The user is allowed to set LINGUAS to a list of languages to
5971 # install catalogs for. If it's empty that means "all of them."
5972 if test "x$LINGUAS" = x; then
5973 CATALOGS="$CATALOGS $cat"
5974 XLINGUAS="$XLINGUAS $lang"
5976 case "$LINGUAS" in *$lang*)
5977 CATALOGS="$CATALOGS $cat"
5978 XLINGUAS="$XLINGUAS $lang"
5984 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5985 echo "${ECHO_T}$LINGUAS" >&6
5987 CONFIG_ALL="$CONFIG_ALL all-po"
5988 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5989 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5990 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5995 cat >>confdefs.h <<_ACEOF
5996 #define PACKAGE "$PACKAGE"
6001 debugdir=${libdir}/debug
6004 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
6005 if test "${with_separate_debug_dir+set}" = set; then
6006 withval="$with_separate_debug_dir"
6007 debugdir="${withval}"
6011 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6012 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6013 ac_define_dir=`eval echo $debugdir`
6014 ac_define_dir=`eval echo $ac_define_dir`
6016 cat >>confdefs.h <<_ACEOF
6017 #define DEBUGDIR "$ac_define_dir"
6021 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
6025 subdirs="$subdirs doc testsuite"
6028 . $srcdir/configure.host
6030 . $srcdir/configure.tgt
6032 # Fetch the default architecture and default target vector from BFD.
6033 targ=$target; . $srcdir/../bfd/config.bfd
6035 # We only want the first architecture, so strip off the others if
6036 # there is more than one.
6037 targ_archs=`echo $targ_archs | sed 's/ .*//'`
6039 if test "x$targ_archs" != x; then
6041 cat >>confdefs.h <<_ACEOF
6042 #define DEFAULT_BFD_ARCH $targ_archs
6046 if test "x$targ_defvec" != x; then
6048 cat >>confdefs.h <<_ACEOF
6049 #define DEFAULT_BFD_VEC $targ_defvec
6054 test "$program_prefix" != NONE &&
6055 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6056 # Use a double $ so make ignores it.
6057 test "$program_suffix" != NONE &&
6058 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6059 # Double any \ or $. echo might interpret backslashes.
6060 # By default was `s,x,x', remove it if useless.
6061 cat <<\_ACEOF >conftest.sed
6062 s/[\\$]/&&/g;s/;s,x,x,$//
6064 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6068 # The CLI cannot be disabled yet, but may be in the future.
6071 # Check whether --enable-gdbcli or --disable-gdbcli was given.
6072 if test "${enable_gdbcli+set}" = set; then
6073 enableval="$enable_gdbcli"
6078 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
6079 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
6080 { (exit 1); exit 1; }; } ;;
6082 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
6083 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
6084 { (exit 1); exit 1; }; } ;;
6089 if test x"$enable_gdbcli" = xyes; then
6090 if test -d $srcdir/cli; then
6091 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6092 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6093 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6094 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6099 # Check whether --enable-gdbmi or --disable-gdbmi was given.
6100 if test "${enable_gdbmi+set}" = set; then
6101 enableval="$enable_gdbmi"
6106 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
6107 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
6108 { (exit 1); exit 1; }; } ;;
6113 if test x"$enable_gdbmi" = xyes; then
6114 if test -d $srcdir/mi; then
6115 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6116 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6117 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6118 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6123 # Check whether --enable-tui or --disable-tui was given.
6124 if test "${enable_tui+set}" = set; then
6125 enableval="$enable_tui"
6130 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6131 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6132 { (exit 1); exit 1; }; } ;;
6139 # Check whether --enable-gdbtk or --disable-gdbtk was given.
6140 if test "${enable_gdbtk+set}" = set; then
6141 enableval="$enable_gdbtk"
6146 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6147 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6148 { (exit 1); exit 1; }; } ;;
6151 if test -d $srcdir/gdbtk; then
6157 # We unconditionally disable gdbtk tests on selected platforms.
6160 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6161 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6165 # Libunwind support.
6167 # Check whether --with-libunwind or --without-libunwind was given.
6168 if test "${with_libunwind+set}" = set; then
6169 withval="$with_libunwind"
6170 case "${withval}" in
6171 yes) enable_libunwind=yes ;;
6172 no) enable_libunwind=no ;;
6173 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6174 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6175 { (exit 1); exit 1; }; } ;;
6180 for ac_header in libunwind.h
6182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6184 echo "$as_me:$LINENO: checking for $ac_header" >&5
6185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6192 # Is the header compilable?
6193 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6195 cat >conftest.$ac_ext <<_ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6201 $ac_includes_default
6202 #include <$ac_header>
6204 rm -f conftest.$ac_objext
6205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6206 (eval $ac_compile) 2>conftest.er1
6208 grep -v '^ *+' conftest.er1 >conftest.err
6210 cat conftest.err >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } &&
6213 { ac_try='test -z "$ac_c_werror_flag"
6214 || test ! -s conftest.err'
6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; } &&
6220 { ac_try='test -s conftest.$ac_objext'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6226 ac_header_compiler=yes
6228 echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6231 ac_header_compiler=no
6233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6235 echo "${ECHO_T}$ac_header_compiler" >&6
6237 # Is the header present?
6238 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6240 cat >conftest.$ac_ext <<_ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6246 #include <$ac_header>
6248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6251 grep -v '^ *+' conftest.er1 >conftest.err
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } >/dev/null; then
6256 if test -s conftest.err; then
6257 ac_cpp_err=$ac_c_preproc_warn_flag
6258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6265 if test -z "$ac_cpp_err"; then
6266 ac_header_preproc=yes
6268 echo "$as_me: failed program was:" >&5
6269 sed 's/^/| /' conftest.$ac_ext >&5
6271 ac_header_preproc=no
6273 rm -f conftest.err conftest.$ac_ext
6274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6275 echo "${ECHO_T}$ac_header_preproc" >&6
6277 # So? What about this header?
6278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6284 ac_header_preproc=yes
6287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6301 ## ------------------------------------------ ##
6302 ## Report this to the AC_PACKAGE_NAME lists. ##
6303 ## ------------------------------------------ ##
6306 sed "s/^/$as_me: WARNING: /" >&2
6309 echo "$as_me:$LINENO: checking for $ac_header" >&5
6310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 eval "$as_ac_Header=\$ac_header_preproc"
6316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6321 cat >>confdefs.h <<_ACEOF
6322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6330 for ac_header in libunwind-ia64.h
6332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6334 echo "$as_me:$LINENO: checking for $ac_header" >&5
6335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6342 # Is the header compilable?
6343 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6345 cat >conftest.$ac_ext <<_ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h. */
6351 $ac_includes_default
6352 #include <$ac_header>
6354 rm -f conftest.$ac_objext
6355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6356 (eval $ac_compile) 2>conftest.er1
6358 grep -v '^ *+' conftest.er1 >conftest.err
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try='test -z "$ac_c_werror_flag"
6364 || test ! -s conftest.err'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; } &&
6370 { ac_try='test -s conftest.$ac_objext'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6376 ac_header_compiler=yes
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6381 ac_header_compiler=no
6383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6385 echo "${ECHO_T}$ac_header_compiler" >&6
6387 # Is the header present?
6388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6390 cat >conftest.$ac_ext <<_ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 #include <$ac_header>
6398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6401 grep -v '^ *+' conftest.er1 >conftest.err
6403 cat conftest.err >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } >/dev/null; then
6406 if test -s conftest.err; then
6407 ac_cpp_err=$ac_c_preproc_warn_flag
6408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6415 if test -z "$ac_cpp_err"; then
6416 ac_header_preproc=yes
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6421 ac_header_preproc=no
6423 rm -f conftest.err conftest.$ac_ext
6424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6425 echo "${ECHO_T}$ac_header_preproc" >&6
6427 # So? What about this header?
6428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6434 ac_header_preproc=yes
6437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6451 ## ------------------------------------------ ##
6452 ## Report this to the AC_PACKAGE_NAME lists. ##
6453 ## ------------------------------------------ ##
6456 sed "s/^/$as_me: WARNING: /" >&2
6459 echo "$as_me:$LINENO: checking for $ac_header" >&5
6460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 eval "$as_ac_Header=\$ac_header_preproc"
6466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6471 cat >>confdefs.h <<_ACEOF
6472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6479 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6480 enable_libunwind=yes;
6485 if test x"$enable_libunwind" = xyes; then
6487 for ac_header in libunwind.h
6489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6491 echo "$as_me:$LINENO: checking for $ac_header" >&5
6492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6499 # Is the header compilable?
6500 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6502 cat >conftest.$ac_ext <<_ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6508 $ac_includes_default
6509 #include <$ac_header>
6511 rm -f conftest.$ac_objext
6512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6513 (eval $ac_compile) 2>conftest.er1
6515 grep -v '^ *+' conftest.er1 >conftest.err
6517 cat conftest.err >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } &&
6520 { ac_try='test -z "$ac_c_werror_flag"
6521 || test ! -s conftest.err'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; } &&
6527 { ac_try='test -s conftest.$ac_objext'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
6533 ac_header_compiler=yes
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6538 ac_header_compiler=no
6540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6541 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6542 echo "${ECHO_T}$ac_header_compiler" >&6
6544 # Is the header present?
6545 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6547 cat >conftest.$ac_ext <<_ACEOF
6550 cat confdefs.h >>conftest.$ac_ext
6551 cat >>conftest.$ac_ext <<_ACEOF
6552 /* end confdefs.h. */
6553 #include <$ac_header>
6555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6558 grep -v '^ *+' conftest.er1 >conftest.err
6560 cat conftest.err >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } >/dev/null; then
6563 if test -s conftest.err; then
6564 ac_cpp_err=$ac_c_preproc_warn_flag
6565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6572 if test -z "$ac_cpp_err"; then
6573 ac_header_preproc=yes
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6578 ac_header_preproc=no
6580 rm -f conftest.err conftest.$ac_ext
6581 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6582 echo "${ECHO_T}$ac_header_preproc" >&6
6584 # So? What about this header?
6585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6591 ac_header_preproc=yes
6594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6608 ## ------------------------------------------ ##
6609 ## Report this to the AC_PACKAGE_NAME lists. ##
6610 ## ------------------------------------------ ##
6613 sed "s/^/$as_me: WARNING: /" >&2
6616 echo "$as_me:$LINENO: checking for $ac_header" >&5
6617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6621 eval "$as_ac_Header=\$ac_header_preproc"
6623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6628 cat >>confdefs.h <<_ACEOF
6629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6637 for ac_header in libunwind-ia64.h
6639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6641 echo "$as_me:$LINENO: checking for $ac_header" >&5
6642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6649 # Is the header compilable?
6650 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6652 cat >conftest.$ac_ext <<_ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h. */
6658 $ac_includes_default
6659 #include <$ac_header>
6661 rm -f conftest.$ac_objext
6662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6663 (eval $ac_compile) 2>conftest.er1
6665 grep -v '^ *+' conftest.er1 >conftest.err
6667 cat conftest.err >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } &&
6670 { ac_try='test -z "$ac_c_werror_flag"
6671 || test ! -s conftest.err'
6672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); }; } &&
6677 { ac_try='test -s conftest.$ac_objext'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; }; then
6683 ac_header_compiler=yes
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6688 ac_header_compiler=no
6690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6691 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6692 echo "${ECHO_T}$ac_header_compiler" >&6
6694 # Is the header present?
6695 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6697 cat >conftest.$ac_ext <<_ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6703 #include <$ac_header>
6705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6708 grep -v '^ *+' conftest.er1 >conftest.err
6710 cat conftest.err >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } >/dev/null; then
6713 if test -s conftest.err; then
6714 ac_cpp_err=$ac_c_preproc_warn_flag
6715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6722 if test -z "$ac_cpp_err"; then
6723 ac_header_preproc=yes
6725 echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.$ac_ext >&5
6728 ac_header_preproc=no
6730 rm -f conftest.err conftest.$ac_ext
6731 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6732 echo "${ECHO_T}$ac_header_preproc" >&6
6734 # So? What about this header?
6735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6741 ac_header_preproc=yes
6744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6751 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6758 ## ------------------------------------------ ##
6759 ## Report this to the AC_PACKAGE_NAME lists. ##
6760 ## ------------------------------------------ ##
6763 sed "s/^/$as_me: WARNING: /" >&2
6766 echo "$as_me:$LINENO: checking for $ac_header" >&5
6767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 eval "$as_ac_Header=\$ac_header_preproc"
6773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6778 cat >>confdefs.h <<_ACEOF
6779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6786 cat >>confdefs.h <<\_ACEOF
6787 #define HAVE_LIBUNWIND 1
6790 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6791 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6792 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6795 # Profiling support.
6796 # Check whether --enable-profiling or --disable-profiling was given.
6797 if test "${enable_profiling+set}" = set; then
6798 enableval="$enable_profiling"
6803 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6804 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6805 { (exit 1); exit 1; }; } ;;
6813 for ac_func in monstartup _mcleanup
6815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6816 echo "$as_me:$LINENO: checking for $ac_func" >&5
6817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6818 if eval "test \"\${$as_ac_var+set}\" = set"; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 cat >conftest.$ac_ext <<_ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h. */
6827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6829 #define $ac_func innocuous_$ac_func
6831 /* System header to define __stub macros and hopefully few prototypes,
6832 which can conflict with char $ac_func (); below.
6833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6834 <limits.h> exists even on freestanding compilers. */
6837 # include <limits.h>
6839 # include <assert.h>
6844 /* Override any gcc2 internal prototype to avoid an error. */
6849 /* We use char because int might match the return type of a gcc2
6850 builtin and then its argument prototype would still apply. */
6852 /* The GNU C library defines this for functions which it implements
6853 to always fail with ENOSYS. Some functions are actually named
6854 something starting with __ and the normal name is an alias. */
6855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6858 char (*f) () = $ac_func;
6867 return f != $ac_func;
6872 rm -f conftest.$ac_objext conftest$ac_exeext
6873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6874 (eval $ac_link) 2>conftest.er1
6876 grep -v '^ *+' conftest.er1 >conftest.err
6878 cat conftest.err >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } &&
6881 { ac_try='test -z "$ac_c_werror_flag"
6882 || test ! -s conftest.err'
6883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; } &&
6888 { ac_try='test -s conftest$ac_exeext'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6894 eval "$as_ac_var=yes"
6896 echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.$ac_ext >&5
6899 eval "$as_ac_var=no"
6901 rm -f conftest.err conftest.$ac_objext \
6902 conftest$ac_exeext conftest.$ac_ext
6904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6906 if test `eval echo '${'$as_ac_var'}'` = yes; then
6907 cat >>confdefs.h <<_ACEOF
6908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6914 echo "$as_me:$LINENO: checking for _etext" >&5
6915 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6916 if test "${ac_cv_var__etext+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 cat >conftest.$ac_ext <<_ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6936 rm -f conftest.$ac_objext conftest$ac_exeext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6938 (eval $ac_link) 2>conftest.er1
6940 grep -v '^ *+' conftest.er1 >conftest.err
6942 cat conftest.err >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } &&
6945 { ac_try='test -z "$ac_c_werror_flag"
6946 || test ! -s conftest.err'
6947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); }; } &&
6952 { ac_try='test -s conftest$ac_exeext'
6953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); }; }; then
6958 ac_cv_var__etext=yes
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6965 rm -f conftest.err conftest.$ac_objext \
6966 conftest$ac_exeext conftest.$ac_ext
6968 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6969 echo "${ECHO_T}$ac_cv_var__etext" >&6
6970 if test $ac_cv_var__etext = yes; then
6972 cat >>confdefs.h <<\_ACEOF
6973 #define HAVE__ETEXT 1
6977 if test "$enable_profiling" = yes ; then
6978 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6979 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6980 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6981 { (exit 1); exit 1; }; }
6984 OLD_CFLAGS="$CFLAGS"
6985 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6987 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6988 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6989 if test "${ac_cv_cc_supports_pg+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 cat >conftest.$ac_ext <<_ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
7007 rm -f conftest.$ac_objext
7008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7009 (eval $ac_compile) 2>conftest.er1
7011 grep -v '^ *+' conftest.er1 >conftest.err
7013 cat conftest.err >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } &&
7016 { ac_try='test -z "$ac_c_werror_flag"
7017 || test ! -s conftest.err'
7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); }; } &&
7023 { ac_try='test -s conftest.$ac_objext'
7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; }; then
7029 ac_cv_cc_supports_pg=yes
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7034 ac_cv_cc_supports_pg=no
7036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7038 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
7039 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
7041 if test $ac_cv_cc_supports_pg = no; then
7042 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
7043 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
7044 { (exit 1); exit 1; }; }
7047 CFLAGS="$OLD_CFLAGS"
7050 # --------------------- #
7051 # Checks for programs. #
7052 # --------------------- #
7054 for ac_prog in gawk mawk nawk awk
7056 # Extract the first word of "$ac_prog", so it can be a program name with args.
7057 set dummy $ac_prog; ac_word=$2
7058 echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7060 if test "${ac_cv_prog_AWK+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 if test -n "$AWK"; then
7064 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7073 ac_cv_prog_AWK="$ac_prog"
7074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 if test -n "$AWK"; then
7084 echo "$as_me:$LINENO: result: $AWK" >&5
7085 echo "${ECHO_T}$AWK" >&6
7087 echo "$as_me:$LINENO: result: no" >&5
7088 echo "${ECHO_T}no" >&6
7091 test -n "$AWK" && break
7094 # Find a good install program. We prefer a C program (faster),
7095 # so one script is as good as another. But avoid the broken or
7096 # incompatible versions:
7097 # SysV /etc/install, /usr/sbin/install
7098 # SunOS /usr/etc/install
7099 # IRIX /sbin/install
7101 # AmigaOS /C/install, which installs bootblocks on floppy discs
7102 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7103 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7104 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7105 # OS/2's system install, which has a completely different semantic
7106 # ./install, which can be erroneously created by make from ./install.sh.
7107 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7108 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7109 if test -z "$INSTALL"; then
7110 if test "${ac_cv_path_install+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 test -z "$as_dir" && as_dir=.
7118 # Account for people who put trailing slashes in PATH elements.
7120 ./ | .// | /cC/* | \
7121 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7122 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7125 # OSF1 and SCO ODT 3.0 have their own names for install.
7126 # Don't use installbsd from OSF since it installs stuff as root
7128 for ac_prog in ginstall scoinst install; do
7129 for ac_exec_ext in '' $ac_executable_extensions; do
7130 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7131 if test $ac_prog = install &&
7132 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7133 # AIX install. It has an incompatible calling convention.
7135 elif test $ac_prog = install &&
7136 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7137 # program-specific install script used by HP pwplus--don't use.
7140 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7152 if test "${ac_cv_path_install+set}" = set; then
7153 INSTALL=$ac_cv_path_install
7155 # As a last resort, use the slow shell script. We don't cache a
7156 # path for INSTALL within a source directory, because that will
7157 # break other packages using the cache if that directory is
7158 # removed, or if the path is relative.
7159 INSTALL=$ac_install_sh
7162 echo "$as_me:$LINENO: result: $INSTALL" >&5
7163 echo "${ECHO_T}$INSTALL" >&6
7165 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7166 # It thinks the first close brace ends the variable substitution.
7167 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7169 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7171 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7173 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7174 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7176 if test "$LN_S" = "ln -s"; then
7177 echo "$as_me:$LINENO: result: yes" >&5
7178 echo "${ECHO_T}yes" >&6
7180 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7181 echo "${ECHO_T}no, using $LN_S" >&6
7184 if test -n "$ac_tool_prefix"; then
7185 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7186 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7187 echo "$as_me:$LINENO: checking for $ac_word" >&5
7188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7189 if test "${ac_cv_prog_RANLIB+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 if test -n "$RANLIB"; then
7193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7202 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 RANLIB=$ac_cv_prog_RANLIB
7212 if test -n "$RANLIB"; then
7213 echo "$as_me:$LINENO: result: $RANLIB" >&5
7214 echo "${ECHO_T}$RANLIB" >&6
7216 echo "$as_me:$LINENO: result: no" >&5
7217 echo "${ECHO_T}no" >&6
7221 if test -z "$ac_cv_prog_RANLIB"; then
7222 ac_ct_RANLIB=$RANLIB
7223 # Extract the first word of "ranlib", so it can be a program name with args.
7224 set dummy ranlib; ac_word=$2
7225 echo "$as_me:$LINENO: checking for $ac_word" >&5
7226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7227 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 if test -n "$ac_ct_RANLIB"; then
7231 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 test -z "$as_dir" && as_dir=.
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7240 ac_cv_prog_ac_ct_RANLIB="ranlib"
7241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7250 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7251 if test -n "$ac_ct_RANLIB"; then
7252 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7253 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7255 echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6
7259 RANLIB=$ac_ct_RANLIB
7261 RANLIB="$ac_cv_prog_RANLIB"
7264 for ac_prog in 'bison -y' byacc
7266 # Extract the first word of "$ac_prog", so it can be a program name with args.
7267 set dummy $ac_prog; ac_word=$2
7268 echo "$as_me:$LINENO: checking for $ac_word" >&5
7269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7270 if test "${ac_cv_prog_YACC+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7273 if test -n "$YACC"; then
7274 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 test -z "$as_dir" && as_dir=.
7281 for ac_exec_ext in '' $ac_executable_extensions; do
7282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7283 ac_cv_prog_YACC="$ac_prog"
7284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 YACC=$ac_cv_prog_YACC
7293 if test -n "$YACC"; then
7294 echo "$as_me:$LINENO: result: $YACC" >&5
7295 echo "${ECHO_T}$YACC" >&6
7297 echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6
7301 test -n "$YACC" && break
7303 test -n "$YACC" || YACC="yacc"
7306 if test -n "$ac_tool_prefix"; then
7307 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7308 set dummy ${ac_tool_prefix}ar; ac_word=$2
7309 echo "$as_me:$LINENO: checking for $ac_word" >&5
7310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7311 if test "${ac_cv_prog_AR+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 if test -n "$AR"; then
7315 ac_cv_prog_AR="$AR" # Let the user override the test.
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_prog_AR="${ac_tool_prefix}ar"
7325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 if test -n "$AR"; then
7335 echo "$as_me:$LINENO: result: $AR" >&5
7336 echo "${ECHO_T}$AR" >&6
7338 echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6
7343 if test -z "$ac_cv_prog_AR"; then
7345 # Extract the first word of "ar", so it can be a program name with args.
7346 set dummy ar; ac_word=$2
7347 echo "$as_me:$LINENO: checking for $ac_word" >&5
7348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7349 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 if test -n "$ac_ct_AR"; then
7353 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362 ac_cv_prog_ac_ct_AR="ar"
7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7372 if test -n "$ac_ct_AR"; then
7373 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7374 echo "${ECHO_T}$ac_ct_AR" >&6
7376 echo "$as_me:$LINENO: result: no" >&5
7377 echo "${ECHO_T}no" >&6
7385 if test -n "$ac_tool_prefix"; then
7386 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7387 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7388 echo "$as_me:$LINENO: checking for $ac_word" >&5
7389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7390 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 if test -n "$DLLTOOL"; then
7394 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7403 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7412 DLLTOOL=$ac_cv_prog_DLLTOOL
7413 if test -n "$DLLTOOL"; then
7414 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7415 echo "${ECHO_T}$DLLTOOL" >&6
7417 echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6
7422 if test -z "$ac_cv_prog_DLLTOOL"; then
7423 ac_ct_DLLTOOL=$DLLTOOL
7424 # Extract the first word of "dlltool", so it can be a program name with args.
7425 set dummy dlltool; ac_word=$2
7426 echo "$as_me:$LINENO: checking for $ac_word" >&5
7427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7428 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 if test -n "$ac_ct_DLLTOOL"; then
7432 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7441 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7451 if test -n "$ac_ct_DLLTOOL"; then
7452 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7453 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7455 echo "$as_me:$LINENO: result: no" >&5
7456 echo "${ECHO_T}no" >&6
7459 DLLTOOL=$ac_ct_DLLTOOL
7461 DLLTOOL="$ac_cv_prog_DLLTOOL"
7464 if test -n "$ac_tool_prefix"; then
7465 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7466 set dummy ${ac_tool_prefix}windres; ac_word=$2
7467 echo "$as_me:$LINENO: checking for $ac_word" >&5
7468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7469 if test "${ac_cv_prog_WINDRES+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 if test -n "$WINDRES"; then
7473 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7491 WINDRES=$ac_cv_prog_WINDRES
7492 if test -n "$WINDRES"; then
7493 echo "$as_me:$LINENO: result: $WINDRES" >&5
7494 echo "${ECHO_T}$WINDRES" >&6
7496 echo "$as_me:$LINENO: result: no" >&5
7497 echo "${ECHO_T}no" >&6
7501 if test -z "$ac_cv_prog_WINDRES"; then
7502 ac_ct_WINDRES=$WINDRES
7503 # Extract the first word of "windres", so it can be a program name with args.
7504 set dummy windres; ac_word=$2
7505 echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7507 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 if test -n "$ac_ct_WINDRES"; then
7511 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7520 ac_cv_prog_ac_ct_WINDRES="windres"
7521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7530 if test -n "$ac_ct_WINDRES"; then
7531 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7532 echo "${ECHO_T}$ac_ct_WINDRES" >&6
7534 echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6
7538 WINDRES=$ac_ct_WINDRES
7540 WINDRES="$ac_cv_prog_WINDRES"
7544 # Needed for GNU/Hurd.
7545 if test -n "$ac_tool_prefix"; then
7546 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7547 set dummy ${ac_tool_prefix}mig; ac_word=$2
7548 echo "$as_me:$LINENO: checking for $ac_word" >&5
7549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7550 if test "${ac_cv_prog_MIG+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 if test -n "$MIG"; then
7554 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7563 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 if test -n "$MIG"; then
7574 echo "$as_me:$LINENO: result: $MIG" >&5
7575 echo "${ECHO_T}$MIG" >&6
7577 echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6
7582 if test -z "$ac_cv_prog_MIG"; then
7584 # Extract the first word of "mig", so it can be a program name with args.
7585 set dummy mig; ac_word=$2
7586 echo "$as_me:$LINENO: checking for $ac_word" >&5
7587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7588 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 if test -n "$ac_ct_MIG"; then
7592 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601 ac_cv_prog_ac_ct_MIG="mig"
7602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7611 if test -n "$ac_ct_MIG"; then
7612 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7613 echo "${ECHO_T}$ac_ct_MIG" >&6
7615 echo "$as_me:$LINENO: result: no" >&5
7616 echo "${ECHO_T}no" >&6
7621 MIG="$ac_cv_prog_MIG"
7625 # ---------------------- #
7626 # Checks for libraries. #
7627 # ---------------------- #
7629 # We might need to link with -lm; most simulators need it.
7631 echo "$as_me:$LINENO: checking for main in -lm" >&5
7632 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7633 if test "${ac_cv_lib_m_main+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 ac_check_lib_save_LIBS=$LIBS
7638 cat >conftest.$ac_ext <<_ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7654 rm -f conftest.$ac_objext conftest$ac_exeext
7655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7656 (eval $ac_link) 2>conftest.er1
7658 grep -v '^ *+' conftest.er1 >conftest.err
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } &&
7663 { ac_try='test -z "$ac_c_werror_flag"
7664 || test ! -s conftest.err'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; } &&
7670 { ac_try='test -s conftest$ac_exeext'
7671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; }; then
7676 ac_cv_lib_m_main=yes
7678 echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7683 rm -f conftest.err conftest.$ac_objext \
7684 conftest$ac_exeext conftest.$ac_ext
7685 LIBS=$ac_check_lib_save_LIBS
7687 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7688 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7689 if test $ac_cv_lib_m_main = yes; then
7690 cat >>confdefs.h <<_ACEOF
7699 # We need to link with -lw to get `wctype' on Solaris before Solaris
7700 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7701 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7702 # is known to have this problem). Therefore we avoid libw if we can.
7703 echo "$as_me:$LINENO: checking for wctype" >&5
7704 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7705 if test "${ac_cv_func_wctype+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 cat >conftest.$ac_ext <<_ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h. */
7714 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7716 #define wctype innocuous_wctype
7718 /* System header to define __stub macros and hopefully few prototypes,
7719 which can conflict with char wctype (); below.
7720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7721 <limits.h> exists even on freestanding compilers. */
7724 # include <limits.h>
7726 # include <assert.h>
7731 /* Override any gcc2 internal prototype to avoid an error. */
7736 /* We use char because int might match the return type of a gcc2
7737 builtin and then its argument prototype would still apply. */
7739 /* The GNU C library defines this for functions which it implements
7740 to always fail with ENOSYS. Some functions are actually named
7741 something starting with __ and the normal name is an alias. */
7742 #if defined (__stub_wctype) || defined (__stub___wctype)
7745 char (*f) () = wctype;
7759 rm -f conftest.$ac_objext conftest$ac_exeext
7760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7761 (eval $ac_link) 2>conftest.er1
7763 grep -v '^ *+' conftest.er1 >conftest.err
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } &&
7768 { ac_try='test -z "$ac_c_werror_flag"
7769 || test ! -s conftest.err'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; } &&
7775 { ac_try='test -s conftest$ac_exeext'
7776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; }; then
7781 ac_cv_func_wctype=yes
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7786 ac_cv_func_wctype=no
7788 rm -f conftest.err conftest.$ac_objext \
7789 conftest$ac_exeext conftest.$ac_ext
7791 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7792 echo "${ECHO_T}$ac_cv_func_wctype" >&6
7793 if test $ac_cv_func_wctype = yes; then
7797 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7798 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7799 if test "${ac_cv_lib_w_wctype+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 ac_check_lib_save_LIBS=$LIBS
7804 cat >conftest.$ac_ext <<_ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h. */
7811 /* Override any gcc2 internal prototype to avoid an error. */
7815 /* We use char because int might match the return type of a gcc2
7816 builtin and then its argument prototype would still apply. */
7826 rm -f conftest.$ac_objext conftest$ac_exeext
7827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7828 (eval $ac_link) 2>conftest.er1
7830 grep -v '^ *+' conftest.er1 >conftest.err
7832 cat conftest.err >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } &&
7835 { ac_try='test -z "$ac_c_werror_flag"
7836 || test ! -s conftest.err'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; } &&
7842 { ac_try='test -s conftest$ac_exeext'
7843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 ac_cv_lib_w_wctype=yes
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7853 ac_cv_lib_w_wctype=no
7855 rm -f conftest.err conftest.$ac_objext \
7856 conftest$ac_exeext conftest.$ac_ext
7857 LIBS=$ac_check_lib_save_LIBS
7859 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7860 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7861 if test $ac_cv_lib_w_wctype = yes; then
7862 cat >>confdefs.h <<_ACEOF
7873 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7874 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7875 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7876 if test "${ac_cv_search_gethostbyname+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 ac_func_search_save_LIBS=$LIBS
7880 ac_cv_search_gethostbyname=no
7881 cat >conftest.$ac_ext <<_ACEOF
7884 cat confdefs.h >>conftest.$ac_ext
7885 cat >>conftest.$ac_ext <<_ACEOF
7886 /* end confdefs.h. */
7888 /* Override any gcc2 internal prototype to avoid an error. */
7892 /* We use char because int might match the return type of a gcc2
7893 builtin and then its argument prototype would still apply. */
7894 char gethostbyname ();
7903 rm -f conftest.$ac_objext conftest$ac_exeext
7904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7905 (eval $ac_link) 2>conftest.er1
7907 grep -v '^ *+' conftest.er1 >conftest.err
7909 cat conftest.err >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } &&
7912 { ac_try='test -z "$ac_c_werror_flag"
7913 || test ! -s conftest.err'
7914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); }; } &&
7919 { ac_try='test -s conftest$ac_exeext'
7920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; }; then
7925 ac_cv_search_gethostbyname="none required"
7927 echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7931 rm -f conftest.err conftest.$ac_objext \
7932 conftest$ac_exeext conftest.$ac_ext
7933 if test "$ac_cv_search_gethostbyname" = no; then
7934 for ac_lib in nsl; do
7935 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7936 cat >conftest.$ac_ext <<_ACEOF
7939 cat confdefs.h >>conftest.$ac_ext
7940 cat >>conftest.$ac_ext <<_ACEOF
7941 /* end confdefs.h. */
7943 /* Override any gcc2 internal prototype to avoid an error. */
7947 /* We use char because int might match the return type of a gcc2
7948 builtin and then its argument prototype would still apply. */
7949 char gethostbyname ();
7958 rm -f conftest.$ac_objext conftest$ac_exeext
7959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7960 (eval $ac_link) 2>conftest.er1
7962 grep -v '^ *+' conftest.er1 >conftest.err
7964 cat conftest.err >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } &&
7967 { ac_try='test -z "$ac_c_werror_flag"
7968 || test ! -s conftest.err'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; } &&
7974 { ac_try='test -s conftest$ac_exeext'
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 ac_cv_search_gethostbyname="-l$ac_lib"
7983 echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.$ac_ext >&5
7987 rm -f conftest.err conftest.$ac_objext \
7988 conftest$ac_exeext conftest.$ac_ext
7991 LIBS=$ac_func_search_save_LIBS
7993 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7994 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7995 if test "$ac_cv_search_gethostbyname" != no; then
7996 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
8001 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
8002 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
8003 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
8004 if test "${ac_cv_search_socketpair+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8007 ac_func_search_save_LIBS=$LIBS
8008 ac_cv_search_socketpair=no
8009 cat >conftest.$ac_ext <<_ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8016 /* Override any gcc2 internal prototype to avoid an error. */
8020 /* We use char because int might match the return type of a gcc2
8021 builtin and then its argument prototype would still apply. */
8031 rm -f conftest.$ac_objext conftest$ac_exeext
8032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8033 (eval $ac_link) 2>conftest.er1
8035 grep -v '^ *+' conftest.er1 >conftest.err
8037 cat conftest.err >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } &&
8040 { ac_try='test -z "$ac_c_werror_flag"
8041 || test ! -s conftest.err'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; } &&
8047 { ac_try='test -s conftest$ac_exeext'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; }; then
8053 ac_cv_search_socketpair="none required"
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8059 rm -f conftest.err conftest.$ac_objext \
8060 conftest$ac_exeext conftest.$ac_ext
8061 if test "$ac_cv_search_socketpair" = no; then
8062 for ac_lib in socket; do
8063 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8064 cat >conftest.$ac_ext <<_ACEOF
8067 cat confdefs.h >>conftest.$ac_ext
8068 cat >>conftest.$ac_ext <<_ACEOF
8069 /* end confdefs.h. */
8071 /* Override any gcc2 internal prototype to avoid an error. */
8075 /* We use char because int might match the return type of a gcc2
8076 builtin and then its argument prototype would still apply. */
8086 rm -f conftest.$ac_objext conftest$ac_exeext
8087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8088 (eval $ac_link) 2>conftest.er1
8090 grep -v '^ *+' conftest.er1 >conftest.err
8092 cat conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } &&
8095 { ac_try='test -z "$ac_c_werror_flag"
8096 || test ! -s conftest.err'
8097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); }; } &&
8102 { ac_try='test -s conftest$ac_exeext'
8103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; }; then
8108 ac_cv_search_socketpair="-l$ac_lib"
8111 echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8115 rm -f conftest.err conftest.$ac_objext \
8116 conftest$ac_exeext conftest.$ac_ext
8119 LIBS=$ac_func_search_save_LIBS
8121 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8122 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8123 if test "$ac_cv_search_socketpair" != no; then
8124 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
8129 # For the TUI, we need enhanced curses functionality.
8131 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8132 # curses library because the latter might not provide all the
8133 # functionality we need. However, this leads to problems on systems
8134 # where the linker searches /usr/local/lib, but the compiler doesn't
8135 # search /usr/local/include, if ncurses is installed in /usr/local. A
8136 # default installation of ncurses on alpha*-dec-osf* will lead to such
8138 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8139 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8140 if test "${ac_cv_search_waddstr+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 ac_func_search_save_LIBS=$LIBS
8144 ac_cv_search_waddstr=no
8145 cat >conftest.$ac_ext <<_ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8152 /* Override any gcc2 internal prototype to avoid an error. */
8156 /* We use char because int might match the return type of a gcc2
8157 builtin and then its argument prototype would still apply. */
8167 rm -f conftest.$ac_objext conftest$ac_exeext
8168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8169 (eval $ac_link) 2>conftest.er1
8171 grep -v '^ *+' conftest.er1 >conftest.err
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } &&
8176 { ac_try='test -z "$ac_c_werror_flag"
8177 || test ! -s conftest.err'
8178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; } &&
8183 { ac_try='test -s conftest$ac_exeext'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
8189 ac_cv_search_waddstr="none required"
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8195 rm -f conftest.err conftest.$ac_objext \
8196 conftest$ac_exeext conftest.$ac_ext
8197 if test "$ac_cv_search_waddstr" = no; then
8198 for ac_lib in ncurses cursesX curses; do
8199 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8200 cat >conftest.$ac_ext <<_ACEOF
8203 cat confdefs.h >>conftest.$ac_ext
8204 cat >>conftest.$ac_ext <<_ACEOF
8205 /* end confdefs.h. */
8207 /* Override any gcc2 internal prototype to avoid an error. */
8211 /* We use char because int might match the return type of a gcc2
8212 builtin and then its argument prototype would still apply. */
8222 rm -f conftest.$ac_objext conftest$ac_exeext
8223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8224 (eval $ac_link) 2>conftest.er1
8226 grep -v '^ *+' conftest.er1 >conftest.err
8228 cat conftest.err >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); } &&
8231 { ac_try='test -z "$ac_c_werror_flag"
8232 || test ! -s conftest.err'
8233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; } &&
8238 { ac_try='test -s conftest$ac_exeext'
8239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; }; then
8244 ac_cv_search_waddstr="-l$ac_lib"
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8251 rm -f conftest.err conftest.$ac_objext \
8252 conftest$ac_exeext conftest.$ac_ext
8255 LIBS=$ac_func_search_save_LIBS
8257 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8258 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8259 if test "$ac_cv_search_waddstr" != no; then
8260 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
8265 # Since GDB uses Readline, we need termcap functionality. In many
8266 # cases this will be provided by the curses library, but some systems
8267 # have a seperate termcap library, or no curses library at all.
8271 if test -d $srcdir/libtermcap; then
8272 LIBS="../libtermcap/libtermcap.a $LIBS"
8273 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8276 ac_cv_search_tgetent="none required"
8280 # These are the libraries checked by Readline.
8281 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8282 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8283 if test "${ac_cv_search_tgetent+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 ac_func_search_save_LIBS=$LIBS
8287 ac_cv_search_tgetent=no
8288 cat >conftest.$ac_ext <<_ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h. */
8295 /* Override any gcc2 internal prototype to avoid an error. */
8299 /* We use char because int might match the return type of a gcc2
8300 builtin and then its argument prototype would still apply. */
8310 rm -f conftest.$ac_objext conftest$ac_exeext
8311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8312 (eval $ac_link) 2>conftest.er1
8314 grep -v '^ *+' conftest.er1 >conftest.err
8316 cat conftest.err >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } &&
8319 { ac_try='test -z "$ac_c_werror_flag"
8320 || test ! -s conftest.err'
8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; } &&
8326 { ac_try='test -s conftest$ac_exeext'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; }; then
8332 ac_cv_search_tgetent="none required"
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8338 rm -f conftest.err conftest.$ac_objext \
8339 conftest$ac_exeext conftest.$ac_ext
8340 if test "$ac_cv_search_tgetent" = no; then
8341 for ac_lib in termcap tinfo curses ncurses; do
8342 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8343 cat >conftest.$ac_ext <<_ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8350 /* Override any gcc2 internal prototype to avoid an error. */
8354 /* We use char because int might match the return type of a gcc2
8355 builtin and then its argument prototype would still apply. */
8365 rm -f conftest.$ac_objext conftest$ac_exeext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8367 (eval $ac_link) 2>conftest.er1
8369 grep -v '^ *+' conftest.er1 >conftest.err
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } &&
8374 { ac_try='test -z "$ac_c_werror_flag"
8375 || test ! -s conftest.err'
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; } &&
8381 { ac_try='test -s conftest$ac_exeext'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8387 ac_cv_search_tgetent="-l$ac_lib"
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8394 rm -f conftest.err conftest.$ac_objext \
8395 conftest$ac_exeext conftest.$ac_ext
8398 LIBS=$ac_func_search_save_LIBS
8400 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8401 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8402 if test "$ac_cv_search_tgetent" != no; then
8403 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
8408 if test "$ac_cv_search_tgetent" = no; then
8409 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8410 echo "$as_me: error: no termcap library found" >&2;}
8411 { (exit 1); exit 1; }; }
8414 # ------------------------- #
8415 # Checks for header files. #
8416 # ------------------------- #
8424 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8425 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8426 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8427 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8429 echo $ECHO_N "(cached) $ECHO_C" >&6
8431 cat >conftest.$ac_ext <<_ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h. */
8437 #include <sys/types.h>
8449 rm -f conftest.$ac_objext
8450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8451 (eval $ac_compile) 2>conftest.er1
8453 grep -v '^ *+' conftest.er1 >conftest.err
8455 cat conftest.err >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } &&
8458 { ac_try='test -z "$ac_c_werror_flag"
8459 || test ! -s conftest.err'
8460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; } &&
8465 { ac_try='test -s conftest.$ac_objext'
8466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; }; then
8471 eval "$as_ac_Header=yes"
8473 echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8476 eval "$as_ac_Header=no"
8478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8483 cat >>confdefs.h <<_ACEOF
8484 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8487 ac_header_dirent=$ac_hdr; break
8491 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8492 if test $ac_header_dirent = dirent.h; then
8493 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8494 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8495 if test "${ac_cv_search_opendir+set}" = set; then
8496 echo $ECHO_N "(cached) $ECHO_C" >&6
8498 ac_func_search_save_LIBS=$LIBS
8499 ac_cv_search_opendir=no
8500 cat >conftest.$ac_ext <<_ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8507 /* Override any gcc2 internal prototype to avoid an error. */
8511 /* We use char because int might match the return type of a gcc2
8512 builtin and then its argument prototype would still apply. */
8522 rm -f conftest.$ac_objext conftest$ac_exeext
8523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8524 (eval $ac_link) 2>conftest.er1
8526 grep -v '^ *+' conftest.er1 >conftest.err
8528 cat conftest.err >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } &&
8531 { ac_try='test -z "$ac_c_werror_flag"
8532 || test ! -s conftest.err'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; } &&
8538 { ac_try='test -s conftest$ac_exeext'
8539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; }; then
8544 ac_cv_search_opendir="none required"
8546 echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8550 rm -f conftest.err conftest.$ac_objext \
8551 conftest$ac_exeext conftest.$ac_ext
8552 if test "$ac_cv_search_opendir" = no; then
8553 for ac_lib in dir; do
8554 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8555 cat >conftest.$ac_ext <<_ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h. */
8562 /* Override any gcc2 internal prototype to avoid an error. */
8566 /* We use char because int might match the return type of a gcc2
8567 builtin and then its argument prototype would still apply. */
8577 rm -f conftest.$ac_objext conftest$ac_exeext
8578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8579 (eval $ac_link) 2>conftest.er1
8581 grep -v '^ *+' conftest.er1 >conftest.err
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } &&
8586 { ac_try='test -z "$ac_c_werror_flag"
8587 || test ! -s conftest.err'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; } &&
8593 { ac_try='test -s conftest$ac_exeext'
8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; }; then
8599 ac_cv_search_opendir="-l$ac_lib"
8602 echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8606 rm -f conftest.err conftest.$ac_objext \
8607 conftest$ac_exeext conftest.$ac_ext
8610 LIBS=$ac_func_search_save_LIBS
8612 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8613 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8614 if test "$ac_cv_search_opendir" != no; then
8615 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8620 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8621 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8622 if test "${ac_cv_search_opendir+set}" = set; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8625 ac_func_search_save_LIBS=$LIBS
8626 ac_cv_search_opendir=no
8627 cat >conftest.$ac_ext <<_ACEOF
8630 cat confdefs.h >>conftest.$ac_ext
8631 cat >>conftest.$ac_ext <<_ACEOF
8632 /* end confdefs.h. */
8634 /* Override any gcc2 internal prototype to avoid an error. */
8638 /* We use char because int might match the return type of a gcc2
8639 builtin and then its argument prototype would still apply. */
8649 rm -f conftest.$ac_objext conftest$ac_exeext
8650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8651 (eval $ac_link) 2>conftest.er1
8653 grep -v '^ *+' conftest.er1 >conftest.err
8655 cat conftest.err >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } &&
8658 { ac_try='test -z "$ac_c_werror_flag"
8659 || test ! -s conftest.err'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; } &&
8665 { ac_try='test -s conftest$ac_exeext'
8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }; }; then
8671 ac_cv_search_opendir="none required"
8673 echo "$as_me: failed program was:" >&5
8674 sed 's/^/| /' conftest.$ac_ext >&5
8677 rm -f conftest.err conftest.$ac_objext \
8678 conftest$ac_exeext conftest.$ac_ext
8679 if test "$ac_cv_search_opendir" = no; then
8681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8682 cat >conftest.$ac_ext <<_ACEOF
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h. */
8689 /* Override any gcc2 internal prototype to avoid an error. */
8693 /* We use char because int might match the return type of a gcc2
8694 builtin and then its argument prototype would still apply. */
8704 rm -f conftest.$ac_objext conftest$ac_exeext
8705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8706 (eval $ac_link) 2>conftest.er1
8708 grep -v '^ *+' conftest.er1 >conftest.err
8710 cat conftest.err >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } &&
8713 { ac_try='test -z "$ac_c_werror_flag"
8714 || test ! -s conftest.err'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; } &&
8720 { ac_try='test -s conftest$ac_exeext'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; }; then
8726 ac_cv_search_opendir="-l$ac_lib"
8729 echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8733 rm -f conftest.err conftest.$ac_objext \
8734 conftest$ac_exeext conftest.$ac_ext
8737 LIBS=$ac_func_search_save_LIBS
8739 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8740 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8741 if test "$ac_cv_search_opendir" != no; then
8742 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8748 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8749 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8750 if test "${ac_cv_header_stat_broken+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8753 cat >conftest.$ac_ext <<_ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8759 #include <sys/types.h>
8760 #include <sys/stat.h>
8762 #if defined(S_ISBLK) && defined(S_IFDIR)
8763 # if S_ISBLK (S_IFDIR)
8768 #if defined(S_ISBLK) && defined(S_IFCHR)
8769 # if S_ISBLK (S_IFCHR)
8774 #if defined(S_ISLNK) && defined(S_IFREG)
8775 # if S_ISLNK (S_IFREG)
8780 #if defined(S_ISSOCK) && defined(S_IFREG)
8781 # if S_ISSOCK (S_IFREG)
8787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8788 $EGREP "You lose" >/dev/null 2>&1; then
8789 ac_cv_header_stat_broken=yes
8791 ac_cv_header_stat_broken=no
8796 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8797 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8798 if test $ac_cv_header_stat_broken = yes; then
8800 cat >>confdefs.h <<\_ACEOF
8801 #define STAT_MACROS_BROKEN 1
8806 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8807 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8808 if test "${ac_cv_header_stdc+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8811 cat >conftest.$ac_ext <<_ACEOF
8814 cat confdefs.h >>conftest.$ac_ext
8815 cat >>conftest.$ac_ext <<_ACEOF
8816 /* end confdefs.h. */
8830 rm -f conftest.$ac_objext
8831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8832 (eval $ac_compile) 2>conftest.er1
8834 grep -v '^ *+' conftest.er1 >conftest.err
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } &&
8839 { ac_try='test -z "$ac_c_werror_flag"
8840 || test ! -s conftest.err'
8841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); }; } &&
8846 { ac_try='test -s conftest.$ac_objext'
8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); }; }; then
8852 ac_cv_header_stdc=yes
8854 echo "$as_me: failed program was:" >&5
8855 sed 's/^/| /' conftest.$ac_ext >&5
8857 ac_cv_header_stdc=no
8859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8861 if test $ac_cv_header_stdc = yes; then
8862 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8863 cat >conftest.$ac_ext <<_ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h. */
8872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8873 $EGREP "memchr" >/dev/null 2>&1; then
8876 ac_cv_header_stdc=no
8882 if test $ac_cv_header_stdc = yes; then
8883 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8884 cat >conftest.$ac_ext <<_ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8894 $EGREP "free" >/dev/null 2>&1; then
8897 ac_cv_header_stdc=no
8903 if test $ac_cv_header_stdc = yes; then
8904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8905 if test "$cross_compiling" = yes; then
8908 cat >conftest.$ac_ext <<_ACEOF
8911 cat confdefs.h >>conftest.$ac_ext
8912 cat >>conftest.$ac_ext <<_ACEOF
8913 /* end confdefs.h. */
8915 #if ((' ' & 0x0FF) == 0x020)
8916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8919 # define ISLOWER(c) \
8920 (('a' <= (c) && (c) <= 'i') \
8921 || ('j' <= (c) && (c) <= 'r') \
8922 || ('s' <= (c) && (c) <= 'z'))
8923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8931 for (i = 0; i < 256; i++)
8932 if (XOR (islower (i), ISLOWER (i))
8933 || toupper (i) != TOUPPER (i))
8938 rm -f conftest$ac_exeext
8939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8940 (eval $ac_link) 2>&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; }; then
8951 echo "$as_me: program exited with status $ac_status" >&5
8952 echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8956 ac_cv_header_stdc=no
8958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8962 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8963 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8964 if test $ac_cv_header_stdc = yes; then
8966 cat >>confdefs.h <<\_ACEOF
8967 #define STDC_HEADERS 1
8973 for ac_header in nlist.h
8975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8977 echo "$as_me:$LINENO: checking for $ac_header" >&5
8978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8985 # Is the header compilable?
8986 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8988 cat >conftest.$ac_ext <<_ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h. */
8994 $ac_includes_default
8995 #include <$ac_header>
8997 rm -f conftest.$ac_objext
8998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8999 (eval $ac_compile) 2>conftest.er1
9001 grep -v '^ *+' conftest.er1 >conftest.err
9003 cat conftest.err >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } &&
9006 { ac_try='test -z "$ac_c_werror_flag"
9007 || test ! -s conftest.err'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; } &&
9013 { ac_try='test -s conftest.$ac_objext'
9014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); }; }; then
9019 ac_header_compiler=yes
9021 echo "$as_me: failed program was:" >&5
9022 sed 's/^/| /' conftest.$ac_ext >&5
9024 ac_header_compiler=no
9026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9028 echo "${ECHO_T}$ac_header_compiler" >&6
9030 # Is the header present?
9031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9033 cat >conftest.$ac_ext <<_ACEOF
9036 cat confdefs.h >>conftest.$ac_ext
9037 cat >>conftest.$ac_ext <<_ACEOF
9038 /* end confdefs.h. */
9039 #include <$ac_header>
9041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9044 grep -v '^ *+' conftest.er1 >conftest.err
9046 cat conftest.err >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); } >/dev/null; then
9049 if test -s conftest.err; then
9050 ac_cpp_err=$ac_c_preproc_warn_flag
9051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9058 if test -z "$ac_cpp_err"; then
9059 ac_header_preproc=yes
9061 echo "$as_me: failed program was:" >&5
9062 sed 's/^/| /' conftest.$ac_ext >&5
9064 ac_header_preproc=no
9066 rm -f conftest.err conftest.$ac_ext
9067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9068 echo "${ECHO_T}$ac_header_preproc" >&6
9070 # So? What about this header?
9071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9077 ac_header_preproc=yes
9080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9087 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9094 ## ------------------------------------------ ##
9095 ## Report this to the AC_PACKAGE_NAME lists. ##
9096 ## ------------------------------------------ ##
9099 sed "s/^/$as_me: WARNING: /" >&2
9102 echo "$as_me:$LINENO: checking for $ac_header" >&5
9103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9105 echo $ECHO_N "(cached) $ECHO_C" >&6
9107 eval "$as_ac_Header=\$ac_header_preproc"
9109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9114 cat >>confdefs.h <<_ACEOF
9115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9123 for ac_header in link.h
9125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9126 echo "$as_me:$LINENO: checking for $ac_header" >&5
9127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9131 cat >conftest.$ac_ext <<_ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h. */
9137 #if HAVE_SYS_TYPES_H
9138 # include <sys/types.h>
9145 #include <$ac_header>
9147 rm -f conftest.$ac_objext
9148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9149 (eval $ac_compile) 2>conftest.er1
9151 grep -v '^ *+' conftest.er1 >conftest.err
9153 cat conftest.err >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); } &&
9156 { ac_try='test -z "$ac_c_werror_flag"
9157 || test ! -s conftest.err'
9158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }; } &&
9163 { ac_try='test -s conftest.$ac_objext'
9164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); }; }; then
9169 eval "$as_ac_Header=yes"
9171 echo "$as_me: failed program was:" >&5
9172 sed 's/^/| /' conftest.$ac_ext >&5
9174 eval "$as_ac_Header=no"
9176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9181 cat >>confdefs.h <<_ACEOF
9182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9190 for ac_header in machine/reg.h
9192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9194 echo "$as_me:$LINENO: checking for $ac_header" >&5
9195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9202 # Is the header compilable?
9203 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9205 cat >conftest.$ac_ext <<_ACEOF
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h. */
9211 $ac_includes_default
9212 #include <$ac_header>
9214 rm -f conftest.$ac_objext
9215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9216 (eval $ac_compile) 2>conftest.er1
9218 grep -v '^ *+' conftest.er1 >conftest.err
9220 cat conftest.err >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } &&
9223 { ac_try='test -z "$ac_c_werror_flag"
9224 || test ! -s conftest.err'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; } &&
9230 { ac_try='test -s conftest.$ac_objext'
9231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; }; then
9236 ac_header_compiler=yes
9238 echo "$as_me: failed program was:" >&5
9239 sed 's/^/| /' conftest.$ac_ext >&5
9241 ac_header_compiler=no
9243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9244 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9245 echo "${ECHO_T}$ac_header_compiler" >&6
9247 # Is the header present?
9248 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9250 cat >conftest.$ac_ext <<_ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9256 #include <$ac_header>
9258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9261 grep -v '^ *+' conftest.er1 >conftest.err
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } >/dev/null; then
9266 if test -s conftest.err; then
9267 ac_cpp_err=$ac_c_preproc_warn_flag
9268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9275 if test -z "$ac_cpp_err"; then
9276 ac_header_preproc=yes
9278 echo "$as_me: failed program was:" >&5
9279 sed 's/^/| /' conftest.$ac_ext >&5
9281 ac_header_preproc=no
9283 rm -f conftest.err conftest.$ac_ext
9284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9285 echo "${ECHO_T}$ac_header_preproc" >&6
9287 # So? What about this header?
9288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9294 ac_header_preproc=yes
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9304 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9311 ## ------------------------------------------ ##
9312 ## Report this to the AC_PACKAGE_NAME lists. ##
9313 ## ------------------------------------------ ##
9316 sed "s/^/$as_me: WARNING: /" >&2
9319 echo "$as_me:$LINENO: checking for $ac_header" >&5
9320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 eval "$as_ac_Header=\$ac_header_preproc"
9326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9331 cat >>confdefs.h <<_ACEOF
9332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9341 for ac_header in poll.h sys/poll.h
9343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9345 echo "$as_me:$LINENO: checking for $ac_header" >&5
9346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9353 # Is the header compilable?
9354 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9356 cat >conftest.$ac_ext <<_ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h. */
9362 $ac_includes_default
9363 #include <$ac_header>
9365 rm -f conftest.$ac_objext
9366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9367 (eval $ac_compile) 2>conftest.er1
9369 grep -v '^ *+' conftest.er1 >conftest.err
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } &&
9374 { ac_try='test -z "$ac_c_werror_flag"
9375 || test ! -s conftest.err'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; } &&
9381 { ac_try='test -s conftest.$ac_objext'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; }; then
9387 ac_header_compiler=yes
9389 echo "$as_me: failed program was:" >&5
9390 sed 's/^/| /' conftest.$ac_ext >&5
9392 ac_header_compiler=no
9394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9396 echo "${ECHO_T}$ac_header_compiler" >&6
9398 # Is the header present?
9399 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9401 cat >conftest.$ac_ext <<_ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407 #include <$ac_header>
9409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9412 grep -v '^ *+' conftest.er1 >conftest.err
9414 cat conftest.err >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } >/dev/null; then
9417 if test -s conftest.err; then
9418 ac_cpp_err=$ac_c_preproc_warn_flag
9419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9426 if test -z "$ac_cpp_err"; then
9427 ac_header_preproc=yes
9429 echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9432 ac_header_preproc=no
9434 rm -f conftest.err conftest.$ac_ext
9435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9436 echo "${ECHO_T}$ac_header_preproc" >&6
9438 # So? What about this header?
9439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9445 ac_header_preproc=yes
9448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9451 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9455 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9462 ## ------------------------------------------ ##
9463 ## Report this to the AC_PACKAGE_NAME lists. ##
9464 ## ------------------------------------------ ##
9467 sed "s/^/$as_me: WARNING: /" >&2
9470 echo "$as_me:$LINENO: checking for $ac_header" >&5
9471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9475 eval "$as_ac_Header=\$ac_header_preproc"
9477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9482 cat >>confdefs.h <<_ACEOF
9483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9493 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9497 echo "$as_me:$LINENO: checking for $ac_header" >&5
9498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9505 # Is the header compilable?
9506 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9508 cat >conftest.$ac_ext <<_ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9514 $ac_includes_default
9515 #include <$ac_header>
9517 rm -f conftest.$ac_objext
9518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9519 (eval $ac_compile) 2>conftest.er1
9521 grep -v '^ *+' conftest.er1 >conftest.err
9523 cat conftest.err >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); } &&
9526 { ac_try='test -z "$ac_c_werror_flag"
9527 || test ! -s conftest.err'
9528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }; } &&
9533 { ac_try='test -s conftest.$ac_objext'
9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; }; then
9539 ac_header_compiler=yes
9541 echo "$as_me: failed program was:" >&5
9542 sed 's/^/| /' conftest.$ac_ext >&5
9544 ac_header_compiler=no
9546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9547 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9548 echo "${ECHO_T}$ac_header_compiler" >&6
9550 # Is the header present?
9551 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9553 cat >conftest.$ac_ext <<_ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h. */
9559 #include <$ac_header>
9561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9564 grep -v '^ *+' conftest.er1 >conftest.err
9566 cat conftest.err >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } >/dev/null; then
9569 if test -s conftest.err; then
9570 ac_cpp_err=$ac_c_preproc_warn_flag
9571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9578 if test -z "$ac_cpp_err"; then
9579 ac_header_preproc=yes
9581 echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9584 ac_header_preproc=no
9586 rm -f conftest.err conftest.$ac_ext
9587 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9588 echo "${ECHO_T}$ac_header_preproc" >&6
9590 # So? What about this header?
9591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9597 ac_header_preproc=yes
9600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9607 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9614 ## ------------------------------------------ ##
9615 ## Report this to the AC_PACKAGE_NAME lists. ##
9616 ## ------------------------------------------ ##
9619 sed "s/^/$as_me: WARNING: /" >&2
9622 echo "$as_me:$LINENO: checking for $ac_header" >&5
9623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9625 echo $ECHO_N "(cached) $ECHO_C" >&6
9627 eval "$as_ac_Header=\$ac_header_preproc"
9629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9634 cat >>confdefs.h <<_ACEOF
9635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9643 for ac_header in stddef.h
9645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9647 echo "$as_me:$LINENO: checking for $ac_header" >&5
9648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9655 # Is the header compilable?
9656 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9658 cat >conftest.$ac_ext <<_ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h. */
9664 $ac_includes_default
9665 #include <$ac_header>
9667 rm -f conftest.$ac_objext
9668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9669 (eval $ac_compile) 2>conftest.er1
9671 grep -v '^ *+' conftest.er1 >conftest.err
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } &&
9676 { ac_try='test -z "$ac_c_werror_flag"
9677 || test ! -s conftest.err'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; } &&
9683 { ac_try='test -s conftest.$ac_objext'
9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; }; then
9689 ac_header_compiler=yes
9691 echo "$as_me: failed program was:" >&5
9692 sed 's/^/| /' conftest.$ac_ext >&5
9694 ac_header_compiler=no
9696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9698 echo "${ECHO_T}$ac_header_compiler" >&6
9700 # Is the header present?
9701 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9703 cat >conftest.$ac_ext <<_ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h. */
9709 #include <$ac_header>
9711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9714 grep -v '^ *+' conftest.er1 >conftest.err
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } >/dev/null; then
9719 if test -s conftest.err; then
9720 ac_cpp_err=$ac_c_preproc_warn_flag
9721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9728 if test -z "$ac_cpp_err"; then
9729 ac_header_preproc=yes
9731 echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9734 ac_header_preproc=no
9736 rm -f conftest.err conftest.$ac_ext
9737 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9738 echo "${ECHO_T}$ac_header_preproc" >&6
9740 # So? What about this header?
9741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9747 ac_header_preproc=yes
9750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9764 ## ------------------------------------------ ##
9765 ## Report this to the AC_PACKAGE_NAME lists. ##
9766 ## ------------------------------------------ ##
9769 sed "s/^/$as_me: WARNING: /" >&2
9772 echo "$as_me:$LINENO: checking for $ac_header" >&5
9773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9777 eval "$as_ac_Header=\$ac_header_preproc"
9779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9784 cat >>confdefs.h <<_ACEOF
9785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9793 for ac_header in stdlib.h
9795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9797 echo "$as_me:$LINENO: checking for $ac_header" >&5
9798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9805 # Is the header compilable?
9806 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9808 cat >conftest.$ac_ext <<_ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h. */
9814 $ac_includes_default
9815 #include <$ac_header>
9817 rm -f conftest.$ac_objext
9818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9819 (eval $ac_compile) 2>conftest.er1
9821 grep -v '^ *+' conftest.er1 >conftest.err
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try='test -z "$ac_c_werror_flag"
9827 || test ! -s conftest.err'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; } &&
9833 { ac_try='test -s conftest.$ac_objext'
9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
9839 ac_header_compiler=yes
9841 echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9844 ac_header_compiler=no
9846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9848 echo "${ECHO_T}$ac_header_compiler" >&6
9850 # Is the header present?
9851 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9853 cat >conftest.$ac_ext <<_ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9859 #include <$ac_header>
9861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9864 grep -v '^ *+' conftest.er1 >conftest.err
9866 cat conftest.err >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } >/dev/null; then
9869 if test -s conftest.err; then
9870 ac_cpp_err=$ac_c_preproc_warn_flag
9871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9878 if test -z "$ac_cpp_err"; then
9879 ac_header_preproc=yes
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9884 ac_header_preproc=no
9886 rm -f conftest.err conftest.$ac_ext
9887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9888 echo "${ECHO_T}$ac_header_preproc" >&6
9890 # So? What about this header?
9891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9897 ac_header_preproc=yes
9900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9907 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9914 ## ------------------------------------------ ##
9915 ## Report this to the AC_PACKAGE_NAME lists. ##
9916 ## ------------------------------------------ ##
9919 sed "s/^/$as_me: WARNING: /" >&2
9922 echo "$as_me:$LINENO: checking for $ac_header" >&5
9923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 eval "$as_ac_Header=\$ac_header_preproc"
9929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9934 cat >>confdefs.h <<_ACEOF
9935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9943 for ac_header in stdint.h
9945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9947 echo "$as_me:$LINENO: checking for $ac_header" >&5
9948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9950 echo $ECHO_N "(cached) $ECHO_C" >&6
9952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9955 # Is the header compilable?
9956 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9958 cat >conftest.$ac_ext <<_ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h. */
9964 $ac_includes_default
9965 #include <$ac_header>
9967 rm -f conftest.$ac_objext
9968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9969 (eval $ac_compile) 2>conftest.er1
9971 grep -v '^ *+' conftest.er1 >conftest.err
9973 cat conftest.err >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } &&
9976 { ac_try='test -z "$ac_c_werror_flag"
9977 || test ! -s conftest.err'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } &&
9983 { ac_try='test -s conftest.$ac_objext'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 ac_header_compiler=yes
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9994 ac_header_compiler=no
9996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9998 echo "${ECHO_T}$ac_header_compiler" >&6
10000 # Is the header present?
10001 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10003 cat >conftest.$ac_ext <<_ACEOF
10006 cat confdefs.h >>conftest.$ac_ext
10007 cat >>conftest.$ac_ext <<_ACEOF
10008 /* end confdefs.h. */
10009 #include <$ac_header>
10011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10014 grep -v '^ *+' conftest.er1 >conftest.err
10016 cat conftest.err >&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } >/dev/null; then
10019 if test -s conftest.err; then
10020 ac_cpp_err=$ac_c_preproc_warn_flag
10021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10028 if test -z "$ac_cpp_err"; then
10029 ac_header_preproc=yes
10031 echo "$as_me: failed program was:" >&5
10032 sed 's/^/| /' conftest.$ac_ext >&5
10034 ac_header_preproc=no
10036 rm -f conftest.err conftest.$ac_ext
10037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10038 echo "${ECHO_T}$ac_header_preproc" >&6
10040 # So? What about this header?
10041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10047 ac_header_preproc=yes
10050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10057 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10064 ## ------------------------------------------ ##
10065 ## Report this to the AC_PACKAGE_NAME lists. ##
10066 ## ------------------------------------------ ##
10069 sed "s/^/$as_me: WARNING: /" >&2
10072 echo "$as_me:$LINENO: checking for $ac_header" >&5
10073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 eval "$as_ac_Header=\$ac_header_preproc"
10079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10084 cat >>confdefs.h <<_ACEOF
10085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10095 for ac_header in string.h memory.h strings.h
10097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10099 echo "$as_me:$LINENO: checking for $ac_header" >&5
10100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10107 # Is the header compilable?
10108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10110 cat >conftest.$ac_ext <<_ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 $ac_includes_default
10117 #include <$ac_header>
10119 rm -f conftest.$ac_objext
10120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10121 (eval $ac_compile) 2>conftest.er1
10123 grep -v '^ *+' conftest.er1 >conftest.err
10125 cat conftest.err >&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } &&
10128 { ac_try='test -z "$ac_c_werror_flag"
10129 || test ! -s conftest.err'
10130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; } &&
10135 { ac_try='test -s conftest.$ac_objext'
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; }; then
10141 ac_header_compiler=yes
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10146 ac_header_compiler=no
10148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10150 echo "${ECHO_T}$ac_header_compiler" >&6
10152 # Is the header present?
10153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10155 cat >conftest.$ac_ext <<_ACEOF
10158 cat confdefs.h >>conftest.$ac_ext
10159 cat >>conftest.$ac_ext <<_ACEOF
10160 /* end confdefs.h. */
10161 #include <$ac_header>
10163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10166 grep -v '^ *+' conftest.er1 >conftest.err
10168 cat conftest.err >&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); } >/dev/null; then
10171 if test -s conftest.err; then
10172 ac_cpp_err=$ac_c_preproc_warn_flag
10173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10180 if test -z "$ac_cpp_err"; then
10181 ac_header_preproc=yes
10183 echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.$ac_ext >&5
10186 ac_header_preproc=no
10188 rm -f conftest.err conftest.$ac_ext
10189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10190 echo "${ECHO_T}$ac_header_preproc" >&6
10192 # So? What about this header?
10193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10199 ac_header_preproc=yes
10202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10216 ## ------------------------------------------ ##
10217 ## Report this to the AC_PACKAGE_NAME lists. ##
10218 ## ------------------------------------------ ##
10221 sed "s/^/$as_me: WARNING: /" >&2
10224 echo "$as_me:$LINENO: checking for $ac_header" >&5
10225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10227 echo $ECHO_N "(cached) $ECHO_C" >&6
10229 eval "$as_ac_Header=\$ac_header_preproc"
10231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10236 cat >>confdefs.h <<_ACEOF
10237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10245 for ac_header in sys/fault.h
10247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10249 echo "$as_me:$LINENO: checking for $ac_header" >&5
10250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
10254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10257 # Is the header compilable?
10258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10260 cat >conftest.$ac_ext <<_ACEOF
10263 cat confdefs.h >>conftest.$ac_ext
10264 cat >>conftest.$ac_ext <<_ACEOF
10265 /* end confdefs.h. */
10266 $ac_includes_default
10267 #include <$ac_header>
10269 rm -f conftest.$ac_objext
10270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10271 (eval $ac_compile) 2>conftest.er1
10273 grep -v '^ *+' conftest.er1 >conftest.err
10275 cat conftest.err >&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); } &&
10278 { ac_try='test -z "$ac_c_werror_flag"
10279 || test ! -s conftest.err'
10280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281 (eval $ac_try) 2>&5
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); }; } &&
10285 { ac_try='test -s conftest.$ac_objext'
10286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10287 (eval $ac_try) 2>&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; }; then
10291 ac_header_compiler=yes
10293 echo "$as_me: failed program was:" >&5
10294 sed 's/^/| /' conftest.$ac_ext >&5
10296 ac_header_compiler=no
10298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10299 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10300 echo "${ECHO_T}$ac_header_compiler" >&6
10302 # Is the header present?
10303 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10305 cat >conftest.$ac_ext <<_ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10311 #include <$ac_header>
10313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10316 grep -v '^ *+' conftest.er1 >conftest.err
10318 cat conftest.err >&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } >/dev/null; then
10321 if test -s conftest.err; then
10322 ac_cpp_err=$ac_c_preproc_warn_flag
10323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10330 if test -z "$ac_cpp_err"; then
10331 ac_header_preproc=yes
10333 echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10336 ac_header_preproc=no
10338 rm -f conftest.err conftest.$ac_ext
10339 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10340 echo "${ECHO_T}$ac_header_preproc" >&6
10342 # So? What about this header?
10343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10349 ac_header_preproc=yes
10352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10366 ## ------------------------------------------ ##
10367 ## Report this to the AC_PACKAGE_NAME lists. ##
10368 ## ------------------------------------------ ##
10371 sed "s/^/$as_me: WARNING: /" >&2
10374 echo "$as_me:$LINENO: checking for $ac_header" >&5
10375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 eval "$as_ac_Header=\$ac_header_preproc"
10381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10386 cat >>confdefs.h <<_ACEOF
10387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10395 for ac_header in sys/file.h
10397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10399 echo "$as_me:$LINENO: checking for $ac_header" >&5
10400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10407 # Is the header compilable?
10408 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10410 cat >conftest.$ac_ext <<_ACEOF
10413 cat confdefs.h >>conftest.$ac_ext
10414 cat >>conftest.$ac_ext <<_ACEOF
10415 /* end confdefs.h. */
10416 $ac_includes_default
10417 #include <$ac_header>
10419 rm -f conftest.$ac_objext
10420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10421 (eval $ac_compile) 2>conftest.er1
10423 grep -v '^ *+' conftest.er1 >conftest.err
10425 cat conftest.err >&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } &&
10428 { ac_try='test -z "$ac_c_werror_flag"
10429 || test ! -s conftest.err'
10430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431 (eval $ac_try) 2>&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; } &&
10435 { ac_try='test -s conftest.$ac_objext'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; }; then
10441 ac_header_compiler=yes
10443 echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.$ac_ext >&5
10446 ac_header_compiler=no
10448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10450 echo "${ECHO_T}$ac_header_compiler" >&6
10452 # Is the header present?
10453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10455 cat >conftest.$ac_ext <<_ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10461 #include <$ac_header>
10463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10466 grep -v '^ *+' conftest.er1 >conftest.err
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } >/dev/null; then
10471 if test -s conftest.err; then
10472 ac_cpp_err=$ac_c_preproc_warn_flag
10473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10480 if test -z "$ac_cpp_err"; then
10481 ac_header_preproc=yes
10483 echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10486 ac_header_preproc=no
10488 rm -f conftest.err conftest.$ac_ext
10489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10490 echo "${ECHO_T}$ac_header_preproc" >&6
10492 # So? What about this header?
10493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10499 ac_header_preproc=yes
10502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10516 ## ------------------------------------------ ##
10517 ## Report this to the AC_PACKAGE_NAME lists. ##
10518 ## ------------------------------------------ ##
10521 sed "s/^/$as_me: WARNING: /" >&2
10524 echo "$as_me:$LINENO: checking for $ac_header" >&5
10525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
10529 eval "$as_ac_Header=\$ac_header_preproc"
10531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10536 cat >>confdefs.h <<_ACEOF
10537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10545 for ac_header in sys/filio.h
10547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10549 echo "$as_me:$LINENO: checking for $ac_header" >&5
10550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10557 # Is the header compilable?
10558 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10560 cat >conftest.$ac_ext <<_ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10566 $ac_includes_default
10567 #include <$ac_header>
10569 rm -f conftest.$ac_objext
10570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10571 (eval $ac_compile) 2>conftest.er1
10573 grep -v '^ *+' conftest.er1 >conftest.err
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } &&
10578 { ac_try='test -z "$ac_c_werror_flag"
10579 || test ! -s conftest.err'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; } &&
10585 { ac_try='test -s conftest.$ac_objext'
10586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587 (eval $ac_try) 2>&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; }; then
10591 ac_header_compiler=yes
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 ac_header_compiler=no
10598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10600 echo "${ECHO_T}$ac_header_compiler" >&6
10602 # Is the header present?
10603 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10605 cat >conftest.$ac_ext <<_ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h. */
10611 #include <$ac_header>
10613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10616 grep -v '^ *+' conftest.er1 >conftest.err
10618 cat conftest.err >&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } >/dev/null; then
10621 if test -s conftest.err; then
10622 ac_cpp_err=$ac_c_preproc_warn_flag
10623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10630 if test -z "$ac_cpp_err"; then
10631 ac_header_preproc=yes
10633 echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10636 ac_header_preproc=no
10638 rm -f conftest.err conftest.$ac_ext
10639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10640 echo "${ECHO_T}$ac_header_preproc" >&6
10642 # So? What about this header?
10643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10649 ac_header_preproc=yes
10652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10666 ## ------------------------------------------ ##
10667 ## Report this to the AC_PACKAGE_NAME lists. ##
10668 ## ------------------------------------------ ##
10671 sed "s/^/$as_me: WARNING: /" >&2
10674 echo "$as_me:$LINENO: checking for $ac_header" >&5
10675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10679 eval "$as_ac_Header=\$ac_header_preproc"
10681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10686 cat >>confdefs.h <<_ACEOF
10687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10695 for ac_header in sys/ioctl.h
10697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10699 echo "$as_me:$LINENO: checking for $ac_header" >&5
10700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10707 # Is the header compilable?
10708 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10710 cat >conftest.$ac_ext <<_ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h. */
10716 $ac_includes_default
10717 #include <$ac_header>
10719 rm -f conftest.$ac_objext
10720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10721 (eval $ac_compile) 2>conftest.er1
10723 grep -v '^ *+' conftest.er1 >conftest.err
10725 cat conftest.err >&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); } &&
10728 { ac_try='test -z "$ac_c_werror_flag"
10729 || test ! -s conftest.err'
10730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10731 (eval $ac_try) 2>&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); }; } &&
10735 { ac_try='test -s conftest.$ac_objext'
10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737 (eval $ac_try) 2>&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; }; then
10741 ac_header_compiler=yes
10743 echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10746 ac_header_compiler=no
10748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10750 echo "${ECHO_T}$ac_header_compiler" >&6
10752 # Is the header present?
10753 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10755 cat >conftest.$ac_ext <<_ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10761 #include <$ac_header>
10763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10766 grep -v '^ *+' conftest.er1 >conftest.err
10768 cat conftest.err >&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } >/dev/null; then
10771 if test -s conftest.err; then
10772 ac_cpp_err=$ac_c_preproc_warn_flag
10773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10780 if test -z "$ac_cpp_err"; then
10781 ac_header_preproc=yes
10783 echo "$as_me: failed program was:" >&5
10784 sed 's/^/| /' conftest.$ac_ext >&5
10786 ac_header_preproc=no
10788 rm -f conftest.err conftest.$ac_ext
10789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10790 echo "${ECHO_T}$ac_header_preproc" >&6
10792 # So? What about this header?
10793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10799 ac_header_preproc=yes
10802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10809 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10816 ## ------------------------------------------ ##
10817 ## Report this to the AC_PACKAGE_NAME lists. ##
10818 ## ------------------------------------------ ##
10821 sed "s/^/$as_me: WARNING: /" >&2
10824 echo "$as_me:$LINENO: checking for $ac_header" >&5
10825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10829 eval "$as_ac_Header=\$ac_header_preproc"
10831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10836 cat >>confdefs.h <<_ACEOF
10837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10845 for ac_header in sys/param.h
10847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10849 echo "$as_me:$LINENO: checking for $ac_header" >&5
10850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10857 # Is the header compilable?
10858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10860 cat >conftest.$ac_ext <<_ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h. */
10866 $ac_includes_default
10867 #include <$ac_header>
10869 rm -f conftest.$ac_objext
10870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10871 (eval $ac_compile) 2>conftest.er1
10873 grep -v '^ *+' conftest.er1 >conftest.err
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } &&
10878 { ac_try='test -z "$ac_c_werror_flag"
10879 || test ! -s conftest.err'
10880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881 (eval $ac_try) 2>&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; } &&
10885 { ac_try='test -s conftest.$ac_objext'
10886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; }; then
10891 ac_header_compiler=yes
10893 echo "$as_me: failed program was:" >&5
10894 sed 's/^/| /' conftest.$ac_ext >&5
10896 ac_header_compiler=no
10898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10899 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10900 echo "${ECHO_T}$ac_header_compiler" >&6
10902 # Is the header present?
10903 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10905 cat >conftest.$ac_ext <<_ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h. */
10911 #include <$ac_header>
10913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10916 grep -v '^ *+' conftest.er1 >conftest.err
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } >/dev/null; then
10921 if test -s conftest.err; then
10922 ac_cpp_err=$ac_c_preproc_warn_flag
10923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10930 if test -z "$ac_cpp_err"; then
10931 ac_header_preproc=yes
10933 echo "$as_me: failed program was:" >&5
10934 sed 's/^/| /' conftest.$ac_ext >&5
10936 ac_header_preproc=no
10938 rm -f conftest.err conftest.$ac_ext
10939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10940 echo "${ECHO_T}$ac_header_preproc" >&6
10942 # So? What about this header?
10943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10949 ac_header_preproc=yes
10952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10966 ## ------------------------------------------ ##
10967 ## Report this to the AC_PACKAGE_NAME lists. ##
10968 ## ------------------------------------------ ##
10971 sed "s/^/$as_me: WARNING: /" >&2
10974 echo "$as_me:$LINENO: checking for $ac_header" >&5
10975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10979 eval "$as_ac_Header=\$ac_header_preproc"
10981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10986 cat >>confdefs.h <<_ACEOF
10987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10995 for ac_header in sys/proc.h
10997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10998 echo "$as_me:$LINENO: checking for $ac_header" >&5
10999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11001 echo $ECHO_N "(cached) $ECHO_C" >&6
11003 cat >conftest.$ac_ext <<_ACEOF
11006 cat confdefs.h >>conftest.$ac_ext
11007 cat >>conftest.$ac_ext <<_ACEOF
11008 /* end confdefs.h. */
11009 #if HAVE_SYS_PARAM_H
11010 # include <sys/param.h>
11014 #include <$ac_header>
11016 rm -f conftest.$ac_objext
11017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11018 (eval $ac_compile) 2>conftest.er1
11020 grep -v '^ *+' conftest.er1 >conftest.err
11022 cat conftest.err >&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } &&
11025 { ac_try='test -z "$ac_c_werror_flag"
11026 || test ! -s conftest.err'
11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; } &&
11032 { ac_try='test -s conftest.$ac_objext'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; }; then
11038 eval "$as_ac_Header=yes"
11040 echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11043 eval "$as_ac_Header=no"
11045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11050 cat >>confdefs.h <<_ACEOF
11051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11059 for ac_header in sys/procfs.h
11061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11063 echo "$as_me:$LINENO: checking for $ac_header" >&5
11064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11066 echo $ECHO_N "(cached) $ECHO_C" >&6
11068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11071 # Is the header compilable?
11072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11074 cat >conftest.$ac_ext <<_ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11080 $ac_includes_default
11081 #include <$ac_header>
11083 rm -f conftest.$ac_objext
11084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11085 (eval $ac_compile) 2>conftest.er1
11087 grep -v '^ *+' conftest.er1 >conftest.err
11089 cat conftest.err >&5
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); } &&
11092 { ac_try='test -z "$ac_c_werror_flag"
11093 || test ! -s conftest.err'
11094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095 (eval $ac_try) 2>&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); }; } &&
11099 { ac_try='test -s conftest.$ac_objext'
11100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11101 (eval $ac_try) 2>&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); }; }; then
11105 ac_header_compiler=yes
11107 echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11110 ac_header_compiler=no
11112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11114 echo "${ECHO_T}$ac_header_compiler" >&6
11116 # Is the header present?
11117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11119 cat >conftest.$ac_ext <<_ACEOF
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
11124 /* end confdefs.h. */
11125 #include <$ac_header>
11127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11130 grep -v '^ *+' conftest.er1 >conftest.err
11132 cat conftest.err >&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } >/dev/null; then
11135 if test -s conftest.err; then
11136 ac_cpp_err=$ac_c_preproc_warn_flag
11137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11144 if test -z "$ac_cpp_err"; then
11145 ac_header_preproc=yes
11147 echo "$as_me: failed program was:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11150 ac_header_preproc=no
11152 rm -f conftest.err conftest.$ac_ext
11153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11154 echo "${ECHO_T}$ac_header_preproc" >&6
11156 # So? What about this header?
11157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11163 ac_header_preproc=yes
11166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11173 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11180 ## ------------------------------------------ ##
11181 ## Report this to the AC_PACKAGE_NAME lists. ##
11182 ## ------------------------------------------ ##
11185 sed "s/^/$as_me: WARNING: /" >&2
11188 echo "$as_me:$LINENO: checking for $ac_header" >&5
11189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11193 eval "$as_ac_Header=\$ac_header_preproc"
11195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11200 cat >>confdefs.h <<_ACEOF
11201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11210 for ac_header in sys/ptrace.h ptrace.h
11212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11214 echo "$as_me:$LINENO: checking for $ac_header" >&5
11215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11217 echo $ECHO_N "(cached) $ECHO_C" >&6
11219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11222 # Is the header compilable?
11223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11225 cat >conftest.$ac_ext <<_ACEOF
11228 cat confdefs.h >>conftest.$ac_ext
11229 cat >>conftest.$ac_ext <<_ACEOF
11230 /* end confdefs.h. */
11231 $ac_includes_default
11232 #include <$ac_header>
11234 rm -f conftest.$ac_objext
11235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11236 (eval $ac_compile) 2>conftest.er1
11238 grep -v '^ *+' conftest.er1 >conftest.err
11240 cat conftest.err >&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } &&
11243 { ac_try='test -z "$ac_c_werror_flag"
11244 || test ! -s conftest.err'
11245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11246 (eval $ac_try) 2>&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); }; } &&
11250 { ac_try='test -s conftest.$ac_objext'
11251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252 (eval $ac_try) 2>&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; }; then
11256 ac_header_compiler=yes
11258 echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11261 ac_header_compiler=no
11263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11265 echo "${ECHO_T}$ac_header_compiler" >&6
11267 # Is the header present?
11268 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11270 cat >conftest.$ac_ext <<_ACEOF
11273 cat confdefs.h >>conftest.$ac_ext
11274 cat >>conftest.$ac_ext <<_ACEOF
11275 /* end confdefs.h. */
11276 #include <$ac_header>
11278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11281 grep -v '^ *+' conftest.er1 >conftest.err
11283 cat conftest.err >&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } >/dev/null; then
11286 if test -s conftest.err; then
11287 ac_cpp_err=$ac_c_preproc_warn_flag
11288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11295 if test -z "$ac_cpp_err"; then
11296 ac_header_preproc=yes
11298 echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11301 ac_header_preproc=no
11303 rm -f conftest.err conftest.$ac_ext
11304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11305 echo "${ECHO_T}$ac_header_preproc" >&6
11307 # So? What about this header?
11308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11314 ac_header_preproc=yes
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11331 ## ------------------------------------------ ##
11332 ## Report this to the AC_PACKAGE_NAME lists. ##
11333 ## ------------------------------------------ ##
11336 sed "s/^/$as_me: WARNING: /" >&2
11339 echo "$as_me:$LINENO: checking for $ac_header" >&5
11340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11342 echo $ECHO_N "(cached) $ECHO_C" >&6
11344 eval "$as_ac_Header=\$ac_header_preproc"
11346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11351 cat >>confdefs.h <<_ACEOF
11352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11361 for ac_header in sys/reg.h sys/debugreg.h
11363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11365 echo "$as_me:$LINENO: checking for $ac_header" >&5
11366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11373 # Is the header compilable?
11374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11376 cat >conftest.$ac_ext <<_ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11382 $ac_includes_default
11383 #include <$ac_header>
11385 rm -f conftest.$ac_objext
11386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11387 (eval $ac_compile) 2>conftest.er1
11389 grep -v '^ *+' conftest.er1 >conftest.err
11391 cat conftest.err >&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } &&
11394 { ac_try='test -z "$ac_c_werror_flag"
11395 || test ! -s conftest.err'
11396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397 (eval $ac_try) 2>&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; } &&
11401 { ac_try='test -s conftest.$ac_objext'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; }; then
11407 ac_header_compiler=yes
11409 echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11412 ac_header_compiler=no
11414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11416 echo "${ECHO_T}$ac_header_compiler" >&6
11418 # Is the header present?
11419 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11421 cat >conftest.$ac_ext <<_ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11427 #include <$ac_header>
11429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11432 grep -v '^ *+' conftest.er1 >conftest.err
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } >/dev/null; then
11437 if test -s conftest.err; then
11438 ac_cpp_err=$ac_c_preproc_warn_flag
11439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11446 if test -z "$ac_cpp_err"; then
11447 ac_header_preproc=yes
11449 echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.$ac_ext >&5
11452 ac_header_preproc=no
11454 rm -f conftest.err conftest.$ac_ext
11455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11456 echo "${ECHO_T}$ac_header_preproc" >&6
11458 # So? What about this header?
11459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11465 ac_header_preproc=yes
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11475 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11482 ## ------------------------------------------ ##
11483 ## Report this to the AC_PACKAGE_NAME lists. ##
11484 ## ------------------------------------------ ##
11487 sed "s/^/$as_me: WARNING: /" >&2
11490 echo "$as_me:$LINENO: checking for $ac_header" >&5
11491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 eval "$as_ac_Header=\$ac_header_preproc"
11497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11502 cat >>confdefs.h <<_ACEOF
11503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11511 for ac_header in sys/select.h
11513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11515 echo "$as_me:$LINENO: checking for $ac_header" >&5
11516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11523 # Is the header compilable?
11524 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11526 cat >conftest.$ac_ext <<_ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11532 $ac_includes_default
11533 #include <$ac_header>
11535 rm -f conftest.$ac_objext
11536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11537 (eval $ac_compile) 2>conftest.er1
11539 grep -v '^ *+' conftest.er1 >conftest.err
11541 cat conftest.err >&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); } &&
11544 { ac_try='test -z "$ac_c_werror_flag"
11545 || test ! -s conftest.err'
11546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11547 (eval $ac_try) 2>&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; } &&
11551 { ac_try='test -s conftest.$ac_objext'
11552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553 (eval $ac_try) 2>&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; }; then
11557 ac_header_compiler=yes
11559 echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.$ac_ext >&5
11562 ac_header_compiler=no
11564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11566 echo "${ECHO_T}$ac_header_compiler" >&6
11568 # Is the header present?
11569 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11571 cat >conftest.$ac_ext <<_ACEOF
11574 cat confdefs.h >>conftest.$ac_ext
11575 cat >>conftest.$ac_ext <<_ACEOF
11576 /* end confdefs.h. */
11577 #include <$ac_header>
11579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11582 grep -v '^ *+' conftest.er1 >conftest.err
11584 cat conftest.err >&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } >/dev/null; then
11587 if test -s conftest.err; then
11588 ac_cpp_err=$ac_c_preproc_warn_flag
11589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11596 if test -z "$ac_cpp_err"; then
11597 ac_header_preproc=yes
11599 echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11602 ac_header_preproc=no
11604 rm -f conftest.err conftest.$ac_ext
11605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11606 echo "${ECHO_T}$ac_header_preproc" >&6
11608 # So? What about this header?
11609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11615 ac_header_preproc=yes
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11625 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11632 ## ------------------------------------------ ##
11633 ## Report this to the AC_PACKAGE_NAME lists. ##
11634 ## ------------------------------------------ ##
11637 sed "s/^/$as_me: WARNING: /" >&2
11640 echo "$as_me:$LINENO: checking for $ac_header" >&5
11641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11645 eval "$as_ac_Header=\$ac_header_preproc"
11647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11652 cat >>confdefs.h <<_ACEOF
11653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11661 for ac_header in sys/syscall.h
11663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11665 echo "$as_me:$LINENO: checking for $ac_header" >&5
11666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11673 # Is the header compilable?
11674 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11676 cat >conftest.$ac_ext <<_ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h. */
11682 $ac_includes_default
11683 #include <$ac_header>
11685 rm -f conftest.$ac_objext
11686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11687 (eval $ac_compile) 2>conftest.er1
11689 grep -v '^ *+' conftest.er1 >conftest.err
11691 cat conftest.err >&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
11694 { ac_try='test -z "$ac_c_werror_flag"
11695 || test ! -s conftest.err'
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; } &&
11701 { ac_try='test -s conftest.$ac_objext'
11702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 ac_header_compiler=yes
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 ac_header_compiler=no
11714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11716 echo "${ECHO_T}$ac_header_compiler" >&6
11718 # Is the header present?
11719 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11721 cat >conftest.$ac_ext <<_ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h. */
11727 #include <$ac_header>
11729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11732 grep -v '^ *+' conftest.er1 >conftest.err
11734 cat conftest.err >&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } >/dev/null; then
11737 if test -s conftest.err; then
11738 ac_cpp_err=$ac_c_preproc_warn_flag
11739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11746 if test -z "$ac_cpp_err"; then
11747 ac_header_preproc=yes
11749 echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11752 ac_header_preproc=no
11754 rm -f conftest.err conftest.$ac_ext
11755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11756 echo "${ECHO_T}$ac_header_preproc" >&6
11758 # So? What about this header?
11759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11765 ac_header_preproc=yes
11768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11775 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11782 ## ------------------------------------------ ##
11783 ## Report this to the AC_PACKAGE_NAME lists. ##
11784 ## ------------------------------------------ ##
11787 sed "s/^/$as_me: WARNING: /" >&2
11790 echo "$as_me:$LINENO: checking for $ac_header" >&5
11791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 eval "$as_ac_Header=\$ac_header_preproc"
11797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11802 cat >>confdefs.h <<_ACEOF
11803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11811 for ac_header in sys/types.h
11813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11815 echo "$as_me:$LINENO: checking for $ac_header" >&5
11816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11823 # Is the header compilable?
11824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11826 cat >conftest.$ac_ext <<_ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h. */
11832 $ac_includes_default
11833 #include <$ac_header>
11835 rm -f conftest.$ac_objext
11836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11837 (eval $ac_compile) 2>conftest.er1
11839 grep -v '^ *+' conftest.er1 >conftest.err
11841 cat conftest.err >&5
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } &&
11844 { ac_try='test -z "$ac_c_werror_flag"
11845 || test ! -s conftest.err'
11846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11847 (eval $ac_try) 2>&5
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); }; } &&
11851 { ac_try='test -s conftest.$ac_objext'
11852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11853 (eval $ac_try) 2>&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); }; }; then
11857 ac_header_compiler=yes
11859 echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11862 ac_header_compiler=no
11864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11866 echo "${ECHO_T}$ac_header_compiler" >&6
11868 # Is the header present?
11869 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11871 cat >conftest.$ac_ext <<_ACEOF
11874 cat confdefs.h >>conftest.$ac_ext
11875 cat >>conftest.$ac_ext <<_ACEOF
11876 /* end confdefs.h. */
11877 #include <$ac_header>
11879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11882 grep -v '^ *+' conftest.er1 >conftest.err
11884 cat conftest.err >&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); } >/dev/null; then
11887 if test -s conftest.err; then
11888 ac_cpp_err=$ac_c_preproc_warn_flag
11889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11896 if test -z "$ac_cpp_err"; then
11897 ac_header_preproc=yes
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11902 ac_header_preproc=no
11904 rm -f conftest.err conftest.$ac_ext
11905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11906 echo "${ECHO_T}$ac_header_preproc" >&6
11908 # So? What about this header?
11909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11915 ac_header_preproc=yes
11918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11932 ## ------------------------------------------ ##
11933 ## Report this to the AC_PACKAGE_NAME lists. ##
11934 ## ------------------------------------------ ##
11937 sed "s/^/$as_me: WARNING: /" >&2
11940 echo "$as_me:$LINENO: checking for $ac_header" >&5
11941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 eval "$as_ac_Header=\$ac_header_preproc"
11947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11952 cat >>confdefs.h <<_ACEOF
11953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11961 for ac_header in sys/user.h
11963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11964 echo "$as_me:$LINENO: checking for $ac_header" >&5
11965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11967 echo $ECHO_N "(cached) $ECHO_C" >&6
11969 cat >conftest.$ac_ext <<_ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h. */
11975 #if HAVE_SYS_PARAM_H
11976 # include <sys/param.h>
11980 #include <$ac_header>
11982 rm -f conftest.$ac_objext
11983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11984 (eval $ac_compile) 2>conftest.er1
11986 grep -v '^ *+' conftest.er1 >conftest.err
11988 cat conftest.err >&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } &&
11991 { ac_try='test -z "$ac_c_werror_flag"
11992 || test ! -s conftest.err'
11993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11994 (eval $ac_try) 2>&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; } &&
11998 { ac_try='test -s conftest.$ac_objext'
11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; }; then
12004 eval "$as_ac_Header=yes"
12006 echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12009 eval "$as_ac_Header=no"
12011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12016 cat >>confdefs.h <<_ACEOF
12017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12026 for ac_header in sys/wait.h wait.h
12028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12030 echo "$as_me:$LINENO: checking for $ac_header" >&5
12031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12038 # Is the header compilable?
12039 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12041 cat >conftest.$ac_ext <<_ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h. */
12047 $ac_includes_default
12048 #include <$ac_header>
12050 rm -f conftest.$ac_objext
12051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12052 (eval $ac_compile) 2>conftest.er1
12054 grep -v '^ *+' conftest.er1 >conftest.err
12056 cat conftest.err >&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); } &&
12059 { ac_try='test -z "$ac_c_werror_flag"
12060 || test ! -s conftest.err'
12061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12062 (eval $ac_try) 2>&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; } &&
12066 { ac_try='test -s conftest.$ac_objext'
12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; }; then
12072 ac_header_compiler=yes
12074 echo "$as_me: failed program was:" >&5
12075 sed 's/^/| /' conftest.$ac_ext >&5
12077 ac_header_compiler=no
12079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12080 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12081 echo "${ECHO_T}$ac_header_compiler" >&6
12083 # Is the header present?
12084 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12086 cat >conftest.$ac_ext <<_ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12092 #include <$ac_header>
12094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12097 grep -v '^ *+' conftest.er1 >conftest.err
12099 cat conftest.err >&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } >/dev/null; then
12102 if test -s conftest.err; then
12103 ac_cpp_err=$ac_c_preproc_warn_flag
12104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12111 if test -z "$ac_cpp_err"; then
12112 ac_header_preproc=yes
12114 echo "$as_me: failed program was:" >&5
12115 sed 's/^/| /' conftest.$ac_ext >&5
12117 ac_header_preproc=no
12119 rm -f conftest.err conftest.$ac_ext
12120 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12121 echo "${ECHO_T}$ac_header_preproc" >&6
12123 # So? What about this header?
12124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12130 ac_header_preproc=yes
12133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12136 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12140 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12147 ## ------------------------------------------ ##
12148 ## Report this to the AC_PACKAGE_NAME lists. ##
12149 ## ------------------------------------------ ##
12152 sed "s/^/$as_me: WARNING: /" >&2
12155 echo "$as_me:$LINENO: checking for $ac_header" >&5
12156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
12160 eval "$as_ac_Header=\$ac_header_preproc"
12162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12167 cat >>confdefs.h <<_ACEOF
12168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12178 for ac_header in termios.h termio.h sgtty.h
12180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12182 echo "$as_me:$LINENO: checking for $ac_header" >&5
12183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12185 echo $ECHO_N "(cached) $ECHO_C" >&6
12187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12190 # Is the header compilable?
12191 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12193 cat >conftest.$ac_ext <<_ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h. */
12199 $ac_includes_default
12200 #include <$ac_header>
12202 rm -f conftest.$ac_objext
12203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12204 (eval $ac_compile) 2>conftest.er1
12206 grep -v '^ *+' conftest.er1 >conftest.err
12208 cat conftest.err >&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } &&
12211 { ac_try='test -z "$ac_c_werror_flag"
12212 || test ! -s conftest.err'
12213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214 (eval $ac_try) 2>&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; } &&
12218 { ac_try='test -s conftest.$ac_objext'
12219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220 (eval $ac_try) 2>&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; }; then
12224 ac_header_compiler=yes
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12229 ac_header_compiler=no
12231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12233 echo "${ECHO_T}$ac_header_compiler" >&6
12235 # Is the header present?
12236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12238 cat >conftest.$ac_ext <<_ACEOF
12241 cat confdefs.h >>conftest.$ac_ext
12242 cat >>conftest.$ac_ext <<_ACEOF
12243 /* end confdefs.h. */
12244 #include <$ac_header>
12246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12249 grep -v '^ *+' conftest.er1 >conftest.err
12251 cat conftest.err >&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } >/dev/null; then
12254 if test -s conftest.err; then
12255 ac_cpp_err=$ac_c_preproc_warn_flag
12256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12263 if test -z "$ac_cpp_err"; then
12264 ac_header_preproc=yes
12266 echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12269 ac_header_preproc=no
12271 rm -f conftest.err conftest.$ac_ext
12272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12273 echo "${ECHO_T}$ac_header_preproc" >&6
12275 # So? What about this header?
12276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12282 ac_header_preproc=yes
12285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12292 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12299 ## ------------------------------------------ ##
12300 ## Report this to the AC_PACKAGE_NAME lists. ##
12301 ## ------------------------------------------ ##
12304 sed "s/^/$as_me: WARNING: /" >&2
12307 echo "$as_me:$LINENO: checking for $ac_header" >&5
12308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 eval "$as_ac_Header=\$ac_header_preproc"
12314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12319 cat >>confdefs.h <<_ACEOF
12320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12328 for ac_header in unistd.h
12330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12332 echo "$as_me:$LINENO: checking for $ac_header" >&5
12333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12335 echo $ECHO_N "(cached) $ECHO_C" >&6
12337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12340 # Is the header compilable?
12341 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12343 cat >conftest.$ac_ext <<_ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12349 $ac_includes_default
12350 #include <$ac_header>
12352 rm -f conftest.$ac_objext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12354 (eval $ac_compile) 2>conftest.er1
12356 grep -v '^ *+' conftest.er1 >conftest.err
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try='test -z "$ac_c_werror_flag"
12362 || test ! -s conftest.err'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest.$ac_objext'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 ac_header_compiler=yes
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12379 ac_header_compiler=no
12381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12383 echo "${ECHO_T}$ac_header_compiler" >&6
12385 # Is the header present?
12386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12388 cat >conftest.$ac_ext <<_ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h. */
12394 #include <$ac_header>
12396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12399 grep -v '^ *+' conftest.er1 >conftest.err
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } >/dev/null; then
12404 if test -s conftest.err; then
12405 ac_cpp_err=$ac_c_preproc_warn_flag
12406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12413 if test -z "$ac_cpp_err"; then
12414 ac_header_preproc=yes
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12419 ac_header_preproc=no
12421 rm -f conftest.err conftest.$ac_ext
12422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12423 echo "${ECHO_T}$ac_header_preproc" >&6
12425 # So? What about this header?
12426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12432 ac_header_preproc=yes
12435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12449 ## ------------------------------------------ ##
12450 ## Report this to the AC_PACKAGE_NAME lists. ##
12451 ## ------------------------------------------ ##
12454 sed "s/^/$as_me: WARNING: /" >&2
12457 echo "$as_me:$LINENO: checking for $ac_header" >&5
12458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12462 eval "$as_ac_Header=\$ac_header_preproc"
12464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12469 cat >>confdefs.h <<_ACEOF
12470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12478 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12479 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12480 # think that we don't have <curses.h> if we're using GCC.
12483 if test "$GCC" = yes; then
12485 cat >>confdefs.h <<\_ACEOF
12486 #define _MSE_INT_H 1
12495 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
12497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12499 echo "$as_me:$LINENO: checking for $ac_header" >&5
12500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12502 echo $ECHO_N "(cached) $ECHO_C" >&6
12504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12507 # Is the header compilable?
12508 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12510 cat >conftest.$ac_ext <<_ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h. */
12516 $ac_includes_default
12517 #include <$ac_header>
12519 rm -f conftest.$ac_objext
12520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12521 (eval $ac_compile) 2>conftest.er1
12523 grep -v '^ *+' conftest.er1 >conftest.err
12525 cat conftest.err >&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } &&
12528 { ac_try='test -z "$ac_c_werror_flag"
12529 || test ! -s conftest.err'
12530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531 (eval $ac_try) 2>&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; } &&
12535 { ac_try='test -s conftest.$ac_objext'
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; }; then
12541 ac_header_compiler=yes
12543 echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12546 ac_header_compiler=no
12548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12550 echo "${ECHO_T}$ac_header_compiler" >&6
12552 # Is the header present?
12553 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12555 cat >conftest.$ac_ext <<_ACEOF
12558 cat confdefs.h >>conftest.$ac_ext
12559 cat >>conftest.$ac_ext <<_ACEOF
12560 /* end confdefs.h. */
12561 #include <$ac_header>
12563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12566 grep -v '^ *+' conftest.er1 >conftest.err
12568 cat conftest.err >&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } >/dev/null; then
12571 if test -s conftest.err; then
12572 ac_cpp_err=$ac_c_preproc_warn_flag
12573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12580 if test -z "$ac_cpp_err"; then
12581 ac_header_preproc=yes
12583 echo "$as_me: failed program was:" >&5
12584 sed 's/^/| /' conftest.$ac_ext >&5
12586 ac_header_preproc=no
12588 rm -f conftest.err conftest.$ac_ext
12589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12590 echo "${ECHO_T}$ac_header_preproc" >&6
12592 # So? What about this header?
12593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12599 ac_header_preproc=yes
12602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12616 ## ------------------------------------------ ##
12617 ## Report this to the AC_PACKAGE_NAME lists. ##
12618 ## ------------------------------------------ ##
12621 sed "s/^/$as_me: WARNING: /" >&2
12624 echo "$as_me:$LINENO: checking for $ac_header" >&5
12625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12627 echo $ECHO_N "(cached) $ECHO_C" >&6
12629 eval "$as_ac_Header=\$ac_header_preproc"
12631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12636 cat >>confdefs.h <<_ACEOF
12637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12645 for ac_header in ncurses/term.h
12647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12649 echo "$as_me:$LINENO: checking for $ac_header" >&5
12650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12657 # Is the header compilable?
12658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12660 cat >conftest.$ac_ext <<_ACEOF
12663 cat confdefs.h >>conftest.$ac_ext
12664 cat >>conftest.$ac_ext <<_ACEOF
12665 /* end confdefs.h. */
12666 $ac_includes_default
12667 #include <$ac_header>
12669 rm -f conftest.$ac_objext
12670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12671 (eval $ac_compile) 2>conftest.er1
12673 grep -v '^ *+' conftest.er1 >conftest.err
12675 cat conftest.err >&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } &&
12678 { ac_try='test -z "$ac_c_werror_flag"
12679 || test ! -s conftest.err'
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; } &&
12685 { ac_try='test -s conftest.$ac_objext'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; }; then
12691 ac_header_compiler=yes
12693 echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12696 ac_header_compiler=no
12698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12700 echo "${ECHO_T}$ac_header_compiler" >&6
12702 # Is the header present?
12703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12705 cat >conftest.$ac_ext <<_ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12711 #include <$ac_header>
12713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12716 grep -v '^ *+' conftest.er1 >conftest.err
12718 cat conftest.err >&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } >/dev/null; then
12721 if test -s conftest.err; then
12722 ac_cpp_err=$ac_c_preproc_warn_flag
12723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12730 if test -z "$ac_cpp_err"; then
12731 ac_header_preproc=yes
12733 echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.$ac_ext >&5
12736 ac_header_preproc=no
12738 rm -f conftest.err conftest.$ac_ext
12739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12740 echo "${ECHO_T}$ac_header_preproc" >&6
12742 # So? What about this header?
12743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12749 ac_header_preproc=yes
12752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12766 ## ------------------------------------------ ##
12767 ## Report this to the AC_PACKAGE_NAME lists. ##
12768 ## ------------------------------------------ ##
12771 sed "s/^/$as_me: WARNING: /" >&2
12774 echo "$as_me:$LINENO: checking for $ac_header" >&5
12775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12779 eval "$as_ac_Header=\$ac_header_preproc"
12781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12786 cat >>confdefs.h <<_ACEOF
12787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12795 for ac_header in term.h
12797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12798 echo "$as_me:$LINENO: checking for $ac_header" >&5
12799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
12803 cat >conftest.$ac_ext <<_ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h. */
12810 # include <curses.h>
12814 #include <$ac_header>
12816 rm -f conftest.$ac_objext
12817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12818 (eval $ac_compile) 2>conftest.er1
12820 grep -v '^ *+' conftest.er1 >conftest.err
12822 cat conftest.err >&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); } &&
12825 { ac_try='test -z "$ac_c_werror_flag"
12826 || test ! -s conftest.err'
12827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12828 (eval $ac_try) 2>&5
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); }; } &&
12832 { ac_try='test -s conftest.$ac_objext'
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; }; then
12838 eval "$as_ac_Header=yes"
12840 echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12843 eval "$as_ac_Header=no"
12845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12850 cat >>confdefs.h <<_ACEOF
12851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12859 # FIXME: kettenis/20030102: In most cases we include these
12860 # unconditionally, so what's the point in checking these?
12863 for ac_header in ctype.h time.h
12865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12867 echo "$as_me:$LINENO: checking for $ac_header" >&5
12868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12870 echo $ECHO_N "(cached) $ECHO_C" >&6
12872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12875 # Is the header compilable?
12876 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12877 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12878 cat >conftest.$ac_ext <<_ACEOF
12881 cat confdefs.h >>conftest.$ac_ext
12882 cat >>conftest.$ac_ext <<_ACEOF
12883 /* end confdefs.h. */
12884 $ac_includes_default
12885 #include <$ac_header>
12887 rm -f conftest.$ac_objext
12888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12889 (eval $ac_compile) 2>conftest.er1
12891 grep -v '^ *+' conftest.er1 >conftest.err
12893 cat conftest.err >&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } &&
12896 { ac_try='test -z "$ac_c_werror_flag"
12897 || test ! -s conftest.err'
12898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899 (eval $ac_try) 2>&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; } &&
12903 { ac_try='test -s conftest.$ac_objext'
12904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905 (eval $ac_try) 2>&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; }; then
12909 ac_header_compiler=yes
12911 echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12914 ac_header_compiler=no
12916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12917 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12918 echo "${ECHO_T}$ac_header_compiler" >&6
12920 # Is the header present?
12921 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12923 cat >conftest.$ac_ext <<_ACEOF
12926 cat confdefs.h >>conftest.$ac_ext
12927 cat >>conftest.$ac_ext <<_ACEOF
12928 /* end confdefs.h. */
12929 #include <$ac_header>
12931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12934 grep -v '^ *+' conftest.er1 >conftest.err
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } >/dev/null; then
12939 if test -s conftest.err; then
12940 ac_cpp_err=$ac_c_preproc_warn_flag
12941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12948 if test -z "$ac_cpp_err"; then
12949 ac_header_preproc=yes
12951 echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.$ac_ext >&5
12954 ac_header_preproc=no
12956 rm -f conftest.err conftest.$ac_ext
12957 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12958 echo "${ECHO_T}$ac_header_preproc" >&6
12960 # So? What about this header?
12961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12963 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12964 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12966 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12967 ac_header_preproc=yes
12970 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12971 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12972 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12973 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12974 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12975 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12976 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12977 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12980 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12981 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12984 ## ------------------------------------------ ##
12985 ## Report this to the AC_PACKAGE_NAME lists. ##
12986 ## ------------------------------------------ ##
12989 sed "s/^/$as_me: WARNING: /" >&2
12992 echo "$as_me:$LINENO: checking for $ac_header" >&5
12993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12997 eval "$as_ac_Header=\$ac_header_preproc"
12999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13004 cat >>confdefs.h <<_ACEOF
13005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13013 echo "$as_me:$LINENO: checking for member st_blocks in struct stat" >&5
13014 echo $ECHO_N "checking for member st_blocks in struct stat... $ECHO_C" >&6
13015 if test "${gdb_cv_have_struct_stat_with_st_blocks_member+set}" = set; then
13016 echo $ECHO_N "(cached) $ECHO_C" >&6
13018 cat >conftest.$ac_ext <<_ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h. */
13024 #include <sys/types.h>
13025 #include <sys/stat.h>
13029 struct stat st; (void) st.st_blocks;
13034 rm -f conftest.$ac_objext
13035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13036 (eval $ac_compile) 2>conftest.er1
13038 grep -v '^ *+' conftest.er1 >conftest.err
13040 cat conftest.err >&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } &&
13043 { ac_try='test -z "$ac_c_werror_flag"
13044 || test ! -s conftest.err'
13045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13046 (eval $ac_try) 2>&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); }; } &&
13050 { ac_try='test -s conftest.$ac_objext'
13051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052 (eval $ac_try) 2>&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; }; then
13056 gdb_cv_have_struct_stat_with_st_blocks_member=yes
13058 echo "$as_me: failed program was:" >&5
13059 sed 's/^/| /' conftest.$ac_ext >&5
13061 gdb_cv_have_struct_stat_with_st_blocks_member=no
13063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13066 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_stat_with_st_blocks_member" >&5
13067 echo "${ECHO_T}$gdb_cv_have_struct_stat_with_st_blocks_member" >&6
13068 if test $gdb_cv_have_struct_stat_with_st_blocks_member = yes; then
13069 cat >>confdefs.h <<\_ACEOF
13070 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13075 # ------------------------- #
13076 # Checks for declarations. #
13077 # ------------------------- #
13079 for ac_func in getopt
13081 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13082 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
13083 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
13084 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
13087 cat >conftest.$ac_ext <<_ACEOF
13090 cat confdefs.h >>conftest.$ac_ext
13091 cat >>conftest.$ac_ext <<_ACEOF
13092 /* end confdefs.h. */
13094 #define $ac_tr_decl 1
13101 char *(*pfn) = (char *(*)) $ac_func ;
13107 rm -f conftest.$ac_objext
13108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13109 (eval $ac_compile) 2>conftest.er1
13111 grep -v '^ *+' conftest.er1 >conftest.err
13113 cat conftest.err >&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); } &&
13116 { ac_try='test -z "$ac_c_werror_flag"
13117 || test ! -s conftest.err'
13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; } &&
13123 { ac_try='test -s conftest.$ac_objext'
13124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13125 (eval $ac_try) 2>&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; }; then
13129 eval "gcc_cv_have_decl_$ac_func=yes"
13131 echo "$as_me: failed program was:" >&5
13132 sed 's/^/| /' conftest.$ac_ext >&5
13134 eval "gcc_cv_have_decl_$ac_func=no"
13136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13139 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
13140 echo "$as_me:$LINENO: result: yes" >&5
13141 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
13142 #define $ac_tr_decl 1
13146 echo "$as_me:$LINENO: result: no" >&5
13147 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
13148 #define $ac_tr_decl 0
13154 if test x = y ; then
13156 cat >>confdefs.h <<\_ACEOF
13157 #define HAVE_DECL_GETOPT 1
13162 # ------------------ #
13163 # Checks for types. #
13164 # ------------------ #
13166 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13167 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13168 if test "${ac_cv_type_signal+set}" = set; then
13169 echo $ECHO_N "(cached) $ECHO_C" >&6
13171 cat >conftest.$ac_ext <<_ACEOF
13174 cat confdefs.h >>conftest.$ac_ext
13175 cat >>conftest.$ac_ext <<_ACEOF
13176 /* end confdefs.h. */
13177 #include <sys/types.h>
13178 #include <signal.h>
13183 extern "C" void (*signal (int, void (*)(int)))(int);
13185 void (*signal ()) ();
13196 rm -f conftest.$ac_objext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13198 (eval $ac_compile) 2>conftest.er1
13200 grep -v '^ *+' conftest.er1 >conftest.err
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } &&
13205 { ac_try='test -z "$ac_c_werror_flag"
13206 || test ! -s conftest.err'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; } &&
13212 { ac_try='test -s conftest.$ac_objext'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; }; then
13218 ac_cv_type_signal=void
13220 echo "$as_me: failed program was:" >&5
13221 sed 's/^/| /' conftest.$ac_ext >&5
13223 ac_cv_type_signal=int
13225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13227 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13228 echo "${ECHO_T}$ac_cv_type_signal" >&6
13230 cat >>confdefs.h <<_ACEOF
13231 #define RETSIGTYPE $ac_cv_type_signal
13236 # ------------------------------------- #
13237 # Checks for compiler characteristics. #
13238 # ------------------------------------- #
13240 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13241 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13242 if test "${ac_cv_c_const+set}" = set; then
13243 echo $ECHO_N "(cached) $ECHO_C" >&6
13245 cat >conftest.$ac_ext <<_ACEOF
13248 cat confdefs.h >>conftest.$ac_ext
13249 cat >>conftest.$ac_ext <<_ACEOF
13250 /* end confdefs.h. */
13255 /* FIXME: Include the comments suggested by Paul. */
13256 #ifndef __cplusplus
13257 /* Ultrix mips cc rejects this. */
13258 typedef int charset[2];
13260 /* SunOS 4.1.1 cc rejects this. */
13261 char const *const *ccp;
13263 /* NEC SVR4.0.2 mips cc rejects this. */
13264 struct point {int x, y;};
13265 static struct point const zero = {0,0};
13266 /* AIX XL C 1.02.0.0 rejects this.
13267 It does not let you subtract one const X* pointer from another in
13268 an arm of an if-expression whose if-part is not a constant
13270 const char *g = "string";
13271 ccp = &g + (g ? g-g : 0);
13272 /* HPUX 7.0 cc rejects these. */
13275 ccp = (char const *const *) p;
13276 { /* SCO 3.2v4 cc rejects this. */
13278 char const *s = 0 ? (char *) 0 : (char const *) 0;
13282 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13283 int x[] = {25, 17};
13284 const int *foo = &x[0];
13287 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13288 typedef const int *iptr;
13292 { /* AIX XL C 1.02.0.0 rejects this saying
13293 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13294 struct s { int j; const int *ap[3]; };
13295 struct s *b; b->j = 5;
13297 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13298 const int foo = 10;
13306 rm -f conftest.$ac_objext
13307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13308 (eval $ac_compile) 2>conftest.er1
13310 grep -v '^ *+' conftest.er1 >conftest.err
13312 cat conftest.err >&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); } &&
13315 { ac_try='test -z "$ac_c_werror_flag"
13316 || test ! -s conftest.err'
13317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318 (eval $ac_try) 2>&5
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; } &&
13322 { ac_try='test -s conftest.$ac_objext'
13323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13324 (eval $ac_try) 2>&5
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); }; }; then
13330 echo "$as_me: failed program was:" >&5
13331 sed 's/^/| /' conftest.$ac_ext >&5
13335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13337 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13338 echo "${ECHO_T}$ac_cv_c_const" >&6
13339 if test $ac_cv_c_const = no; then
13341 cat >>confdefs.h <<\_ACEOF
13347 echo "$as_me:$LINENO: checking for inline" >&5
13348 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13349 if test "${ac_cv_c_inline+set}" = set; then
13350 echo $ECHO_N "(cached) $ECHO_C" >&6
13353 for ac_kw in inline __inline__ __inline; do
13354 cat >conftest.$ac_ext <<_ACEOF
13357 cat confdefs.h >>conftest.$ac_ext
13358 cat >>conftest.$ac_ext <<_ACEOF
13359 /* end confdefs.h. */
13360 #ifndef __cplusplus
13362 static $ac_kw foo_t static_foo () {return 0; }
13363 $ac_kw foo_t foo () {return 0; }
13367 rm -f conftest.$ac_objext
13368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13369 (eval $ac_compile) 2>conftest.er1
13371 grep -v '^ *+' conftest.er1 >conftest.err
13373 cat conftest.err >&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); } &&
13376 { ac_try='test -z "$ac_c_werror_flag"
13377 || test ! -s conftest.err'
13378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379 (eval $ac_try) 2>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; } &&
13383 { ac_try='test -s conftest.$ac_objext'
13384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; }; then
13389 ac_cv_c_inline=$ac_kw; break
13391 echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13399 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13400 echo "${ECHO_T}$ac_cv_c_inline" >&6
13403 case $ac_cv_c_inline in
13406 case $ac_cv_c_inline in
13408 *) ac_val=$ac_cv_c_inline;;
13410 cat >>confdefs.h <<_ACEOF
13411 #ifndef __cplusplus
13412 #define inline $ac_val
13419 # ------------------------------ #
13420 # Checks for library functions. #
13421 # ------------------------------ #
13423 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13424 # for constant arguments. Useless!
13425 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13426 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13427 if test "${ac_cv_working_alloca_h+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13430 cat >conftest.$ac_ext <<_ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h. */
13436 #include <alloca.h>
13440 char *p = (char *) alloca (2 * sizeof (int));
13445 rm -f conftest.$ac_objext conftest$ac_exeext
13446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13447 (eval $ac_link) 2>conftest.er1
13449 grep -v '^ *+' conftest.er1 >conftest.err
13451 cat conftest.err >&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } &&
13454 { ac_try='test -z "$ac_c_werror_flag"
13455 || test ! -s conftest.err'
13456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457 (eval $ac_try) 2>&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; } &&
13461 { ac_try='test -s conftest$ac_exeext'
13462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13463 (eval $ac_try) 2>&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); }; }; then
13467 ac_cv_working_alloca_h=yes
13469 echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13472 ac_cv_working_alloca_h=no
13474 rm -f conftest.err conftest.$ac_objext \
13475 conftest$ac_exeext conftest.$ac_ext
13477 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13478 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13479 if test $ac_cv_working_alloca_h = yes; then
13481 cat >>confdefs.h <<\_ACEOF
13482 #define HAVE_ALLOCA_H 1
13487 echo "$as_me:$LINENO: checking for alloca" >&5
13488 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13489 if test "${ac_cv_func_alloca_works+set}" = set; then
13490 echo $ECHO_N "(cached) $ECHO_C" >&6
13492 cat >conftest.$ac_ext <<_ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13499 # define alloca __builtin_alloca
13502 # include <malloc.h>
13503 # define alloca _alloca
13506 # include <alloca.h>
13511 # ifndef alloca /* predefined by HP cc +Olibcalls */
13522 char *p = (char *) alloca (1);
13527 rm -f conftest.$ac_objext conftest$ac_exeext
13528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13529 (eval $ac_link) 2>conftest.er1
13531 grep -v '^ *+' conftest.er1 >conftest.err
13533 cat conftest.err >&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } &&
13536 { ac_try='test -z "$ac_c_werror_flag"
13537 || test ! -s conftest.err'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; } &&
13543 { ac_try='test -s conftest$ac_exeext'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
13549 ac_cv_func_alloca_works=yes
13551 echo "$as_me: failed program was:" >&5
13552 sed 's/^/| /' conftest.$ac_ext >&5
13554 ac_cv_func_alloca_works=no
13556 rm -f conftest.err conftest.$ac_objext \
13557 conftest$ac_exeext conftest.$ac_ext
13559 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13560 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13562 if test $ac_cv_func_alloca_works = yes; then
13564 cat >>confdefs.h <<\_ACEOF
13565 #define HAVE_ALLOCA 1
13569 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13570 # that cause trouble. Some versions do not even contain alloca or
13571 # contain a buggy version. If you still want to use their alloca,
13572 # use ar to extract alloca.o from them instead of compiling alloca.c.
13574 ALLOCA=alloca.$ac_objext
13576 cat >>confdefs.h <<\_ACEOF
13581 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13582 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13583 if test "${ac_cv_os_cray+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 cat >conftest.$ac_ext <<_ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h. */
13592 #if defined(CRAY) && ! defined(CRAY2)
13599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13600 $EGREP "webecray" >/dev/null 2>&1; then
13608 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13609 echo "${ECHO_T}$ac_cv_os_cray" >&6
13610 if test $ac_cv_os_cray = yes; then
13611 for ac_func in _getb67 GETB67 getb67; do
13612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13613 echo "$as_me:$LINENO: checking for $ac_func" >&5
13614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13615 if eval "test \"\${$as_ac_var+set}\" = set"; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
13618 cat >conftest.$ac_ext <<_ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h. */
13624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13626 #define $ac_func innocuous_$ac_func
13628 /* System header to define __stub macros and hopefully few prototypes,
13629 which can conflict with char $ac_func (); below.
13630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13631 <limits.h> exists even on freestanding compilers. */
13634 # include <limits.h>
13636 # include <assert.h>
13641 /* Override any gcc2 internal prototype to avoid an error. */
13646 /* We use char because int might match the return type of a gcc2
13647 builtin and then its argument prototype would still apply. */
13649 /* The GNU C library defines this for functions which it implements
13650 to always fail with ENOSYS. Some functions are actually named
13651 something starting with __ and the normal name is an alias. */
13652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13655 char (*f) () = $ac_func;
13664 return f != $ac_func;
13669 rm -f conftest.$ac_objext conftest$ac_exeext
13670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13671 (eval $ac_link) 2>conftest.er1
13673 grep -v '^ *+' conftest.er1 >conftest.err
13675 cat conftest.err >&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); } &&
13678 { ac_try='test -z "$ac_c_werror_flag"
13679 || test ! -s conftest.err'
13680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681 (eval $ac_try) 2>&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; } &&
13685 { ac_try='test -s conftest$ac_exeext'
13686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687 (eval $ac_try) 2>&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; }; then
13691 eval "$as_ac_var=yes"
13693 echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13696 eval "$as_ac_var=no"
13698 rm -f conftest.err conftest.$ac_objext \
13699 conftest$ac_exeext conftest.$ac_ext
13701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13703 if test `eval echo '${'$as_ac_var'}'` = yes; then
13705 cat >>confdefs.h <<_ACEOF
13706 #define CRAY_STACKSEG_END $ac_func
13715 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13716 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13717 if test "${ac_cv_c_stack_direction+set}" = set; then
13718 echo $ECHO_N "(cached) $ECHO_C" >&6
13720 if test "$cross_compiling" = yes; then
13721 ac_cv_c_stack_direction=0
13723 cat >conftest.$ac_ext <<_ACEOF
13726 cat confdefs.h >>conftest.$ac_ext
13727 cat >>conftest.$ac_ext <<_ACEOF
13728 /* end confdefs.h. */
13730 find_stack_direction ()
13732 static char *addr = 0;
13737 return find_stack_direction ();
13740 return (&dummy > addr) ? 1 : -1;
13746 exit (find_stack_direction () < 0);
13749 rm -f conftest$ac_exeext
13750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13751 (eval $ac_link) 2>&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; }; then
13760 ac_cv_c_stack_direction=1
13762 echo "$as_me: program exited with status $ac_status" >&5
13763 echo "$as_me: failed program was:" >&5
13764 sed 's/^/| /' conftest.$ac_ext >&5
13766 ( exit $ac_status )
13767 ac_cv_c_stack_direction=-1
13769 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13772 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13773 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13775 cat >>confdefs.h <<_ACEOF
13776 #define STACK_DIRECTION $ac_cv_c_stack_direction
13784 for ac_header in stdlib.h unistd.h
13786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13788 echo "$as_me:$LINENO: checking for $ac_header" >&5
13789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
13793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13796 # Is the header compilable?
13797 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13799 cat >conftest.$ac_ext <<_ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h. */
13805 $ac_includes_default
13806 #include <$ac_header>
13808 rm -f conftest.$ac_objext
13809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13810 (eval $ac_compile) 2>conftest.er1
13812 grep -v '^ *+' conftest.er1 >conftest.err
13814 cat conftest.err >&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); } &&
13817 { ac_try='test -z "$ac_c_werror_flag"
13818 || test ! -s conftest.err'
13819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820 (eval $ac_try) 2>&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; } &&
13824 { ac_try='test -s conftest.$ac_objext'
13825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826 (eval $ac_try) 2>&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; }; then
13830 ac_header_compiler=yes
13832 echo "$as_me: failed program was:" >&5
13833 sed 's/^/| /' conftest.$ac_ext >&5
13835 ac_header_compiler=no
13837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13839 echo "${ECHO_T}$ac_header_compiler" >&6
13841 # Is the header present?
13842 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13844 cat >conftest.$ac_ext <<_ACEOF
13847 cat confdefs.h >>conftest.$ac_ext
13848 cat >>conftest.$ac_ext <<_ACEOF
13849 /* end confdefs.h. */
13850 #include <$ac_header>
13852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13855 grep -v '^ *+' conftest.er1 >conftest.err
13857 cat conftest.err >&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); } >/dev/null; then
13860 if test -s conftest.err; then
13861 ac_cpp_err=$ac_c_preproc_warn_flag
13862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13869 if test -z "$ac_cpp_err"; then
13870 ac_header_preproc=yes
13872 echo "$as_me: failed program was:" >&5
13873 sed 's/^/| /' conftest.$ac_ext >&5
13875 ac_header_preproc=no
13877 rm -f conftest.err conftest.$ac_ext
13878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13879 echo "${ECHO_T}$ac_header_preproc" >&6
13881 # So? What about this header?
13882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13888 ac_header_preproc=yes
13891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13894 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13895 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13896 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13897 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13898 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13901 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13902 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13905 ## ------------------------------------------ ##
13906 ## Report this to the AC_PACKAGE_NAME lists. ##
13907 ## ------------------------------------------ ##
13910 sed "s/^/$as_me: WARNING: /" >&2
13913 echo "$as_me:$LINENO: checking for $ac_header" >&5
13914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13916 echo $ECHO_N "(cached) $ECHO_C" >&6
13918 eval "$as_ac_Header=\$ac_header_preproc"
13920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13925 cat >>confdefs.h <<_ACEOF
13926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13934 for ac_func in getpagesize
13936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13937 echo "$as_me:$LINENO: checking for $ac_func" >&5
13938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13939 if eval "test \"\${$as_ac_var+set}\" = set"; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13942 cat >conftest.$ac_ext <<_ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13950 #define $ac_func innocuous_$ac_func
13952 /* System header to define __stub macros and hopefully few prototypes,
13953 which can conflict with char $ac_func (); below.
13954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13955 <limits.h> exists even on freestanding compilers. */
13958 # include <limits.h>
13960 # include <assert.h>
13965 /* Override any gcc2 internal prototype to avoid an error. */
13970 /* We use char because int might match the return type of a gcc2
13971 builtin and then its argument prototype would still apply. */
13973 /* The GNU C library defines this for functions which it implements
13974 to always fail with ENOSYS. Some functions are actually named
13975 something starting with __ and the normal name is an alias. */
13976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13979 char (*f) () = $ac_func;
13988 return f != $ac_func;
13993 rm -f conftest.$ac_objext conftest$ac_exeext
13994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13995 (eval $ac_link) 2>conftest.er1
13997 grep -v '^ *+' conftest.er1 >conftest.err
13999 cat conftest.err >&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } &&
14002 { ac_try='test -z "$ac_c_werror_flag"
14003 || test ! -s conftest.err'
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; } &&
14009 { ac_try='test -s conftest$ac_exeext'
14010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011 (eval $ac_try) 2>&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; }; then
14015 eval "$as_ac_var=yes"
14017 echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14020 eval "$as_ac_var=no"
14022 rm -f conftest.err conftest.$ac_objext \
14023 conftest$ac_exeext conftest.$ac_ext
14025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14027 if test `eval echo '${'$as_ac_var'}'` = yes; then
14028 cat >>confdefs.h <<_ACEOF
14029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14035 echo "$as_me:$LINENO: checking for working mmap" >&5
14036 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14037 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14040 if test "$cross_compiling" = yes; then
14041 ac_cv_func_mmap_fixed_mapped=no
14043 cat >conftest.$ac_ext <<_ACEOF
14046 cat confdefs.h >>conftest.$ac_ext
14047 cat >>conftest.$ac_ext <<_ACEOF
14048 /* end confdefs.h. */
14049 $ac_includes_default
14050 /* malloc might have been renamed as rpl_malloc. */
14053 /* Thanks to Mike Haertel and Jim Avera for this test.
14054 Here is a matrix of mmap possibilities:
14055 mmap private not fixed
14056 mmap private fixed at somewhere currently unmapped
14057 mmap private fixed at somewhere already mapped
14058 mmap shared not fixed
14059 mmap shared fixed at somewhere currently unmapped
14060 mmap shared fixed at somewhere already mapped
14061 For private mappings, we should verify that changes cannot be read()
14062 back from the file, nor mmap's back from the file at a different
14063 address. (There have been systems where private was not correctly
14064 implemented like the infamous i386 svr4.0, and systems where the
14065 VM page cache was not coherent with the file system buffer cache
14066 like early versions of FreeBSD and possibly contemporary NetBSD.)
14067 For shared mappings, we should conversely verify that changes get
14068 propagated back to all the places they're supposed to be.
14070 Grep wants private fixed already mapped.
14071 The main things grep needs to know about mmap are:
14072 * does it exist and is it safe to write into the mmap'd area
14073 * how to use it (BSD variants) */
14076 #include <sys/mman.h>
14078 #if !STDC_HEADERS && !HAVE_STDLIB_H
14082 /* This mess was copied from the GNU getpagesize.h. */
14083 #if !HAVE_GETPAGESIZE
14084 /* Assume that all systems that can run configure have sys/param.h. */
14085 # if !HAVE_SYS_PARAM_H
14086 # define HAVE_SYS_PARAM_H 1
14089 # ifdef _SC_PAGESIZE
14090 # define getpagesize() sysconf(_SC_PAGESIZE)
14091 # else /* no _SC_PAGESIZE */
14092 # if HAVE_SYS_PARAM_H
14093 # include <sys/param.h>
14094 # ifdef EXEC_PAGESIZE
14095 # define getpagesize() EXEC_PAGESIZE
14096 # else /* no EXEC_PAGESIZE */
14098 # define getpagesize() NBPG * CLSIZE
14101 # endif /* no CLSIZE */
14102 # else /* no NBPG */
14104 # define getpagesize() NBPC
14105 # else /* no NBPC */
14107 # define getpagesize() PAGESIZE
14108 # endif /* PAGESIZE */
14109 # endif /* no NBPC */
14110 # endif /* no NBPG */
14111 # endif /* no EXEC_PAGESIZE */
14112 # else /* no HAVE_SYS_PARAM_H */
14113 # define getpagesize() 8192 /* punt totally */
14114 # endif /* no HAVE_SYS_PARAM_H */
14115 # endif /* no _SC_PAGESIZE */
14117 #endif /* no HAVE_GETPAGESIZE */
14122 char *data, *data2, *data3;
14126 pagesize = getpagesize ();
14128 /* First, make a file with some known garbage in it. */
14129 data = (char *) malloc (pagesize);
14132 for (i = 0; i < pagesize; ++i)
14133 *(data + i) = rand ();
14135 fd = creat ("conftest.mmap", 0600);
14138 if (write (fd, data, pagesize) != pagesize)
14142 /* Next, try to mmap the file at a fixed address which already has
14143 something else allocated at it. If we can, also make sure that
14144 we see the same garbage. */
14145 fd = open ("conftest.mmap", O_RDWR);
14148 data2 = (char *) malloc (2 * pagesize);
14151 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14152 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14153 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14155 for (i = 0; i < pagesize; ++i)
14156 if (*(data + i) != *(data2 + i))
14159 /* Finally, make sure that changes to the mapped area do not
14160 percolate back to the file as seen by read(). (This is a bug on
14161 some variants of i386 svr4.0.) */
14162 for (i = 0; i < pagesize; ++i)
14163 *(data2 + i) = *(data2 + i) + 1;
14164 data3 = (char *) malloc (pagesize);
14167 if (read (fd, data3, pagesize) != pagesize)
14169 for (i = 0; i < pagesize; ++i)
14170 if (*(data + i) != *(data3 + i))
14176 rm -f conftest$ac_exeext
14177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14178 (eval $ac_link) 2>&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14187 ac_cv_func_mmap_fixed_mapped=yes
14189 echo "$as_me: program exited with status $ac_status" >&5
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14193 ( exit $ac_status )
14194 ac_cv_func_mmap_fixed_mapped=no
14196 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14199 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14200 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14201 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14203 cat >>confdefs.h <<\_ACEOF
14204 #define HAVE_MMAP 1
14208 rm -f conftest.mmap
14210 echo "$as_me:$LINENO: checking for pid_t" >&5
14211 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14212 if test "${ac_cv_type_pid_t+set}" = set; then
14213 echo $ECHO_N "(cached) $ECHO_C" >&6
14215 cat >conftest.$ac_ext <<_ACEOF
14218 cat confdefs.h >>conftest.$ac_ext
14219 cat >>conftest.$ac_ext <<_ACEOF
14220 /* end confdefs.h. */
14221 $ac_includes_default
14227 if (sizeof (pid_t))
14233 rm -f conftest.$ac_objext
14234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14235 (eval $ac_compile) 2>conftest.er1
14237 grep -v '^ *+' conftest.er1 >conftest.err
14239 cat conftest.err >&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } &&
14242 { ac_try='test -z "$ac_c_werror_flag"
14243 || test ! -s conftest.err'
14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; } &&
14249 { ac_try='test -s conftest.$ac_objext'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }; then
14255 ac_cv_type_pid_t=yes
14257 echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14260 ac_cv_type_pid_t=no
14262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14264 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14265 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14266 if test $ac_cv_type_pid_t = yes; then
14270 cat >>confdefs.h <<_ACEOF
14278 for ac_header in unistd.h vfork.h
14280 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14282 echo "$as_me:$LINENO: checking for $ac_header" >&5
14283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14288 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14290 # Is the header compilable?
14291 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14293 cat >conftest.$ac_ext <<_ACEOF
14296 cat confdefs.h >>conftest.$ac_ext
14297 cat >>conftest.$ac_ext <<_ACEOF
14298 /* end confdefs.h. */
14299 $ac_includes_default
14300 #include <$ac_header>
14302 rm -f conftest.$ac_objext
14303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14304 (eval $ac_compile) 2>conftest.er1
14306 grep -v '^ *+' conftest.er1 >conftest.err
14308 cat conftest.err >&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); } &&
14311 { ac_try='test -z "$ac_c_werror_flag"
14312 || test ! -s conftest.err'
14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; } &&
14318 { ac_try='test -s conftest.$ac_objext'
14319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320 (eval $ac_try) 2>&5
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; }; then
14324 ac_header_compiler=yes
14326 echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.$ac_ext >&5
14329 ac_header_compiler=no
14331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14332 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14333 echo "${ECHO_T}$ac_header_compiler" >&6
14335 # Is the header present?
14336 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14337 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14338 cat >conftest.$ac_ext <<_ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h. */
14344 #include <$ac_header>
14346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14349 grep -v '^ *+' conftest.er1 >conftest.err
14351 cat conftest.err >&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } >/dev/null; then
14354 if test -s conftest.err; then
14355 ac_cpp_err=$ac_c_preproc_warn_flag
14356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14363 if test -z "$ac_cpp_err"; then
14364 ac_header_preproc=yes
14366 echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14369 ac_header_preproc=no
14371 rm -f conftest.err conftest.$ac_ext
14372 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14373 echo "${ECHO_T}$ac_header_preproc" >&6
14375 # So? What about this header?
14376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14378 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14379 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14381 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14382 ac_header_preproc=yes
14385 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14386 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14387 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14388 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14389 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14390 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14391 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14392 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14395 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14396 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14399 ## ------------------------------------------ ##
14400 ## Report this to the AC_PACKAGE_NAME lists. ##
14401 ## ------------------------------------------ ##
14404 sed "s/^/$as_me: WARNING: /" >&2
14407 echo "$as_me:$LINENO: checking for $ac_header" >&5
14408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14412 eval "$as_ac_Header=\$ac_header_preproc"
14414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14419 cat >>confdefs.h <<_ACEOF
14420 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14429 for ac_func in fork vfork
14431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14432 echo "$as_me:$LINENO: checking for $ac_func" >&5
14433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14434 if eval "test \"\${$as_ac_var+set}\" = set"; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14437 cat >conftest.$ac_ext <<_ACEOF
14440 cat confdefs.h >>conftest.$ac_ext
14441 cat >>conftest.$ac_ext <<_ACEOF
14442 /* end confdefs.h. */
14443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14445 #define $ac_func innocuous_$ac_func
14447 /* System header to define __stub macros and hopefully few prototypes,
14448 which can conflict with char $ac_func (); below.
14449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14450 <limits.h> exists even on freestanding compilers. */
14453 # include <limits.h>
14455 # include <assert.h>
14460 /* Override any gcc2 internal prototype to avoid an error. */
14465 /* We use char because int might match the return type of a gcc2
14466 builtin and then its argument prototype would still apply. */
14468 /* The GNU C library defines this for functions which it implements
14469 to always fail with ENOSYS. Some functions are actually named
14470 something starting with __ and the normal name is an alias. */
14471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14474 char (*f) () = $ac_func;
14483 return f != $ac_func;
14488 rm -f conftest.$ac_objext conftest$ac_exeext
14489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14490 (eval $ac_link) 2>conftest.er1
14492 grep -v '^ *+' conftest.er1 >conftest.err
14494 cat conftest.err >&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); } &&
14497 { ac_try='test -z "$ac_c_werror_flag"
14498 || test ! -s conftest.err'
14499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500 (eval $ac_try) 2>&5
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); }; } &&
14504 { ac_try='test -s conftest$ac_exeext'
14505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506 (eval $ac_try) 2>&5
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); }; }; then
14510 eval "$as_ac_var=yes"
14512 echo "$as_me: failed program was:" >&5
14513 sed 's/^/| /' conftest.$ac_ext >&5
14515 eval "$as_ac_var=no"
14517 rm -f conftest.err conftest.$ac_objext \
14518 conftest$ac_exeext conftest.$ac_ext
14520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14522 if test `eval echo '${'$as_ac_var'}'` = yes; then
14523 cat >>confdefs.h <<_ACEOF
14524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14530 if test "x$ac_cv_func_fork" = xyes; then
14531 echo "$as_me:$LINENO: checking for working fork" >&5
14532 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
14533 if test "${ac_cv_func_fork_works+set}" = set; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
14536 if test "$cross_compiling" = yes; then
14537 ac_cv_func_fork_works=cross
14539 cat >conftest.$ac_ext <<_ACEOF
14540 /* By Ruediger Kuhlmann. */
14541 #include <sys/types.h>
14543 # include <unistd.h>
14545 /* Some systems only have a dummy stub for fork() */
14553 rm -f conftest$ac_exeext
14554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14555 (eval $ac_link) 2>&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14560 (eval $ac_try) 2>&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); }; }; then
14564 ac_cv_func_fork_works=yes
14566 echo "$as_me: program exited with status $ac_status" >&5
14567 echo "$as_me: failed program was:" >&5
14568 sed 's/^/| /' conftest.$ac_ext >&5
14570 ( exit $ac_status )
14571 ac_cv_func_fork_works=no
14573 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14576 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
14577 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
14580 ac_cv_func_fork_works=$ac_cv_func_fork
14582 if test "x$ac_cv_func_fork_works" = xcross; then
14584 *-*-amigaos* | *-*-msdosdjgpp*)
14585 # Override, as these systems have only a dummy fork() stub
14586 ac_cv_func_fork_works=no
14589 ac_cv_func_fork_works=yes
14592 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14593 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14595 ac_cv_func_vfork_works=$ac_cv_func_vfork
14596 if test "x$ac_cv_func_vfork" = xyes; then
14597 echo "$as_me:$LINENO: checking for working vfork" >&5
14598 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
14599 if test "${ac_cv_func_vfork_works+set}" = set; then
14600 echo $ECHO_N "(cached) $ECHO_C" >&6
14602 if test "$cross_compiling" = yes; then
14603 ac_cv_func_vfork_works=cross
14605 cat >conftest.$ac_ext <<_ACEOF
14608 cat confdefs.h >>conftest.$ac_ext
14609 cat >>conftest.$ac_ext <<_ACEOF
14610 /* end confdefs.h. */
14611 /* Thanks to Paul Eggert for this test. */
14613 #include <stdlib.h>
14614 #include <sys/types.h>
14615 #include <sys/stat.h>
14616 #include <sys/wait.h>
14618 # include <unistd.h>
14621 # include <vfork.h>
14623 /* On some sparc systems, changes by the child to local and incoming
14624 argument registers are propagated back to the parent. The compiler
14625 is told about this with #include <vfork.h>, but some compilers
14626 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14627 static variable whose address is put into a register that is
14628 clobbered by the vfork. */
14631 sparc_address_test (int arg)
14633 sparc_address_test (arg) int arg;
14636 static pid_t child;
14654 pid_t parent = getpid ();
14657 sparc_address_test (0);
14662 /* Here is another test for sparc vfork register problems. This
14663 test uses lots of local variables, at least as many local
14664 variables as main has allocated so far including compiler
14665 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14666 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14667 reuse the register of parent for one of the local variables,
14668 since it will think that parent can't possibly be used any more
14669 in this routine. Assigning to the local variable will thus
14670 munge parent in the parent process. */
14672 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14673 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14674 /* Convince the compiler that p..p7 are live; otherwise, it might
14675 use the same hardware register for all 8 local variables. */
14676 if (p != p1 || p != p2 || p != p3 || p != p4
14677 || p != p5 || p != p6 || p != p7)
14680 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14681 from child file descriptors. If the child closes a descriptor
14682 before it execs or exits, this munges the parent's descriptor
14683 as well. Test for this by closing stdout in the child. */
14684 _exit(close(fileno(stdout)) != 0);
14689 while (wait(&status) != child)
14692 /* Was there some problem with vforking? */
14695 /* Did the child fail? (This shouldn't happen.) */
14698 /* Did the vfork/compiler bug occur? */
14699 || parent != getpid()
14701 /* Did the file descriptor bug occur? */
14702 || fstat(fileno(stdout), &st) != 0
14707 rm -f conftest$ac_exeext
14708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14709 (eval $ac_link) 2>&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } && { ac_try='./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 ac_cv_func_vfork_works=yes
14720 echo "$as_me: program exited with status $ac_status" >&5
14721 echo "$as_me: failed program was:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14724 ( exit $ac_status )
14725 ac_cv_func_vfork_works=no
14727 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14730 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
14731 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
14734 if test "x$ac_cv_func_fork_works" = xcross; then
14735 ac_cv_func_vfork_works=$ac_cv_func_vfork
14736 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14737 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14740 if test "x$ac_cv_func_vfork_works" = xyes; then
14742 cat >>confdefs.h <<\_ACEOF
14743 #define HAVE_WORKING_VFORK 1
14748 cat >>confdefs.h <<\_ACEOF
14753 if test "x$ac_cv_func_fork_works" = xyes; then
14755 cat >>confdefs.h <<\_ACEOF
14756 #define HAVE_WORKING_FORK 1
14763 for ac_func in canonicalize_file_name realpath
14765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14766 echo "$as_me:$LINENO: checking for $ac_func" >&5
14767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14768 if eval "test \"\${$as_ac_var+set}\" = set"; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14771 cat >conftest.$ac_ext <<_ACEOF
14774 cat confdefs.h >>conftest.$ac_ext
14775 cat >>conftest.$ac_ext <<_ACEOF
14776 /* end confdefs.h. */
14777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14779 #define $ac_func innocuous_$ac_func
14781 /* System header to define __stub macros and hopefully few prototypes,
14782 which can conflict with char $ac_func (); below.
14783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14784 <limits.h> exists even on freestanding compilers. */
14787 # include <limits.h>
14789 # include <assert.h>
14794 /* Override any gcc2 internal prototype to avoid an error. */
14799 /* We use char because int might match the return type of a gcc2
14800 builtin and then its argument prototype would still apply. */
14802 /* The GNU C library defines this for functions which it implements
14803 to always fail with ENOSYS. Some functions are actually named
14804 something starting with __ and the normal name is an alias. */
14805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14808 char (*f) () = $ac_func;
14817 return f != $ac_func;
14822 rm -f conftest.$ac_objext conftest$ac_exeext
14823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14824 (eval $ac_link) 2>conftest.er1
14826 grep -v '^ *+' conftest.er1 >conftest.err
14828 cat conftest.err >&5
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); } &&
14831 { ac_try='test -z "$ac_c_werror_flag"
14832 || test ! -s conftest.err'
14833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14834 (eval $ac_try) 2>&5
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); }; } &&
14838 { ac_try='test -s conftest$ac_exeext'
14839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840 (eval $ac_try) 2>&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); }; }; then
14844 eval "$as_ac_var=yes"
14846 echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14849 eval "$as_ac_var=no"
14851 rm -f conftest.err conftest.$ac_objext \
14852 conftest$ac_exeext conftest.$ac_ext
14854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14856 if test `eval echo '${'$as_ac_var'}'` = yes; then
14857 cat >>confdefs.h <<_ACEOF
14858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14865 for ac_func in poll
14867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14868 echo "$as_me:$LINENO: checking for $ac_func" >&5
14869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14870 if eval "test \"\${$as_ac_var+set}\" = set"; then
14871 echo $ECHO_N "(cached) $ECHO_C" >&6
14873 cat >conftest.$ac_ext <<_ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h. */
14879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14881 #define $ac_func innocuous_$ac_func
14883 /* System header to define __stub macros and hopefully few prototypes,
14884 which can conflict with char $ac_func (); below.
14885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14886 <limits.h> exists even on freestanding compilers. */
14889 # include <limits.h>
14891 # include <assert.h>
14896 /* Override any gcc2 internal prototype to avoid an error. */
14901 /* We use char because int might match the return type of a gcc2
14902 builtin and then its argument prototype would still apply. */
14904 /* The GNU C library defines this for functions which it implements
14905 to always fail with ENOSYS. Some functions are actually named
14906 something starting with __ and the normal name is an alias. */
14907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14910 char (*f) () = $ac_func;
14919 return f != $ac_func;
14924 rm -f conftest.$ac_objext conftest$ac_exeext
14925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14926 (eval $ac_link) 2>conftest.er1
14928 grep -v '^ *+' conftest.er1 >conftest.err
14930 cat conftest.err >&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } &&
14933 { ac_try='test -z "$ac_c_werror_flag"
14934 || test ! -s conftest.err'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; } &&
14940 { ac_try='test -s conftest$ac_exeext'
14941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942 (eval $ac_try) 2>&5
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; }; then
14946 eval "$as_ac_var=yes"
14948 echo "$as_me: failed program was:" >&5
14949 sed 's/^/| /' conftest.$ac_ext >&5
14951 eval "$as_ac_var=no"
14953 rm -f conftest.err conftest.$ac_objext \
14954 conftest$ac_exeext conftest.$ac_ext
14956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14957 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14958 if test `eval echo '${'$as_ac_var'}'` = yes; then
14959 cat >>confdefs.h <<_ACEOF
14960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14967 for ac_func in pread64
14969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14970 echo "$as_me:$LINENO: checking for $ac_func" >&5
14971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14972 if eval "test \"\${$as_ac_var+set}\" = set"; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14975 cat >conftest.$ac_ext <<_ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14983 #define $ac_func innocuous_$ac_func
14985 /* System header to define __stub macros and hopefully few prototypes,
14986 which can conflict with char $ac_func (); below.
14987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14988 <limits.h> exists even on freestanding compilers. */
14991 # include <limits.h>
14993 # include <assert.h>
14998 /* Override any gcc2 internal prototype to avoid an error. */
15003 /* We use char because int might match the return type of a gcc2
15004 builtin and then its argument prototype would still apply. */
15006 /* The GNU C library defines this for functions which it implements
15007 to always fail with ENOSYS. Some functions are actually named
15008 something starting with __ and the normal name is an alias. */
15009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15012 char (*f) () = $ac_func;
15021 return f != $ac_func;
15026 rm -f conftest.$ac_objext conftest$ac_exeext
15027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15028 (eval $ac_link) 2>conftest.er1
15030 grep -v '^ *+' conftest.er1 >conftest.err
15032 cat conftest.err >&5
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); } &&
15035 { ac_try='test -z "$ac_c_werror_flag"
15036 || test ! -s conftest.err'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; } &&
15042 { ac_try='test -s conftest$ac_exeext'
15043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15044 (eval $ac_try) 2>&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); }; }; then
15048 eval "$as_ac_var=yes"
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15053 eval "$as_ac_var=no"
15055 rm -f conftest.err conftest.$ac_objext \
15056 conftest$ac_exeext conftest.$ac_ext
15058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15060 if test `eval echo '${'$as_ac_var'}'` = yes; then
15061 cat >>confdefs.h <<_ACEOF
15062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15069 for ac_func in sbrk
15071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15072 echo "$as_me:$LINENO: checking for $ac_func" >&5
15073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15074 if eval "test \"\${$as_ac_var+set}\" = set"; then
15075 echo $ECHO_N "(cached) $ECHO_C" >&6
15077 cat >conftest.$ac_ext <<_ACEOF
15080 cat confdefs.h >>conftest.$ac_ext
15081 cat >>conftest.$ac_ext <<_ACEOF
15082 /* end confdefs.h. */
15083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15085 #define $ac_func innocuous_$ac_func
15087 /* System header to define __stub macros and hopefully few prototypes,
15088 which can conflict with char $ac_func (); below.
15089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15090 <limits.h> exists even on freestanding compilers. */
15093 # include <limits.h>
15095 # include <assert.h>
15100 /* Override any gcc2 internal prototype to avoid an error. */
15105 /* We use char because int might match the return type of a gcc2
15106 builtin and then its argument prototype would still apply. */
15108 /* The GNU C library defines this for functions which it implements
15109 to always fail with ENOSYS. Some functions are actually named
15110 something starting with __ and the normal name is an alias. */
15111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15114 char (*f) () = $ac_func;
15123 return f != $ac_func;
15128 rm -f conftest.$ac_objext conftest$ac_exeext
15129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15130 (eval $ac_link) 2>conftest.er1
15132 grep -v '^ *+' conftest.er1 >conftest.err
15134 cat conftest.err >&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } &&
15137 { ac_try='test -z "$ac_c_werror_flag"
15138 || test ! -s conftest.err'
15139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140 (eval $ac_try) 2>&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; } &&
15144 { ac_try='test -s conftest$ac_exeext'
15145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }; then
15150 eval "$as_ac_var=yes"
15152 echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15155 eval "$as_ac_var=no"
15157 rm -f conftest.err conftest.$ac_objext \
15158 conftest$ac_exeext conftest.$ac_ext
15160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15161 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15162 if test `eval echo '${'$as_ac_var'}'` = yes; then
15163 cat >>confdefs.h <<_ACEOF
15164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15172 for ac_func in setpgid setpgrp
15174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15175 echo "$as_me:$LINENO: checking for $ac_func" >&5
15176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15177 if eval "test \"\${$as_ac_var+set}\" = set"; then
15178 echo $ECHO_N "(cached) $ECHO_C" >&6
15180 cat >conftest.$ac_ext <<_ACEOF
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h. */
15186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15188 #define $ac_func innocuous_$ac_func
15190 /* System header to define __stub macros and hopefully few prototypes,
15191 which can conflict with char $ac_func (); below.
15192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15193 <limits.h> exists even on freestanding compilers. */
15196 # include <limits.h>
15198 # include <assert.h>
15203 /* Override any gcc2 internal prototype to avoid an error. */
15208 /* We use char because int might match the return type of a gcc2
15209 builtin and then its argument prototype would still apply. */
15211 /* The GNU C library defines this for functions which it implements
15212 to always fail with ENOSYS. Some functions are actually named
15213 something starting with __ and the normal name is an alias. */
15214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15217 char (*f) () = $ac_func;
15226 return f != $ac_func;
15231 rm -f conftest.$ac_objext conftest$ac_exeext
15232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15233 (eval $ac_link) 2>conftest.er1
15235 grep -v '^ *+' conftest.er1 >conftest.err
15237 cat conftest.err >&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); } &&
15240 { ac_try='test -z "$ac_c_werror_flag"
15241 || test ! -s conftest.err'
15242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243 (eval $ac_try) 2>&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; } &&
15247 { ac_try='test -s conftest$ac_exeext'
15248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15249 (eval $ac_try) 2>&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; }; then
15253 eval "$as_ac_var=yes"
15255 echo "$as_me: failed program was:" >&5
15256 sed 's/^/| /' conftest.$ac_ext >&5
15258 eval "$as_ac_var=no"
15260 rm -f conftest.err conftest.$ac_objext \
15261 conftest$ac_exeext conftest.$ac_ext
15263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15265 if test `eval echo '${'$as_ac_var'}'` = yes; then
15266 cat >>confdefs.h <<_ACEOF
15267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15276 for ac_func in sigaction sigprocmask sigsetmask
15278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15279 echo "$as_me:$LINENO: checking for $ac_func" >&5
15280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15281 if eval "test \"\${$as_ac_var+set}\" = set"; then
15282 echo $ECHO_N "(cached) $ECHO_C" >&6
15284 cat >conftest.$ac_ext <<_ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h. */
15290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15292 #define $ac_func innocuous_$ac_func
15294 /* System header to define __stub macros and hopefully few prototypes,
15295 which can conflict with char $ac_func (); below.
15296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15297 <limits.h> exists even on freestanding compilers. */
15300 # include <limits.h>
15302 # include <assert.h>
15307 /* Override any gcc2 internal prototype to avoid an error. */
15312 /* We use char because int might match the return type of a gcc2
15313 builtin and then its argument prototype would still apply. */
15315 /* The GNU C library defines this for functions which it implements
15316 to always fail with ENOSYS. Some functions are actually named
15317 something starting with __ and the normal name is an alias. */
15318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15321 char (*f) () = $ac_func;
15330 return f != $ac_func;
15335 rm -f conftest.$ac_objext conftest$ac_exeext
15336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15337 (eval $ac_link) 2>conftest.er1
15339 grep -v '^ *+' conftest.er1 >conftest.err
15341 cat conftest.err >&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } &&
15344 { ac_try='test -z "$ac_c_werror_flag"
15345 || test ! -s conftest.err'
15346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15347 (eval $ac_try) 2>&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; } &&
15351 { ac_try='test -s conftest$ac_exeext'
15352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15353 (eval $ac_try) 2>&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
15357 eval "$as_ac_var=yes"
15359 echo "$as_me: failed program was:" >&5
15360 sed 's/^/| /' conftest.$ac_ext >&5
15362 eval "$as_ac_var=no"
15364 rm -f conftest.err conftest.$ac_objext \
15365 conftest$ac_exeext conftest.$ac_ext
15367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15369 if test `eval echo '${'$as_ac_var'}'` = yes; then
15370 cat >>confdefs.h <<_ACEOF
15371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15378 for ac_func in socketpair
15380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15381 echo "$as_me:$LINENO: checking for $ac_func" >&5
15382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15383 if eval "test \"\${$as_ac_var+set}\" = set"; then
15384 echo $ECHO_N "(cached) $ECHO_C" >&6
15386 cat >conftest.$ac_ext <<_ACEOF
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h. */
15392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15394 #define $ac_func innocuous_$ac_func
15396 /* System header to define __stub macros and hopefully few prototypes,
15397 which can conflict with char $ac_func (); below.
15398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15399 <limits.h> exists even on freestanding compilers. */
15402 # include <limits.h>
15404 # include <assert.h>
15409 /* Override any gcc2 internal prototype to avoid an error. */
15414 /* We use char because int might match the return type of a gcc2
15415 builtin and then its argument prototype would still apply. */
15417 /* The GNU C library defines this for functions which it implements
15418 to always fail with ENOSYS. Some functions are actually named
15419 something starting with __ and the normal name is an alias. */
15420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15423 char (*f) () = $ac_func;
15432 return f != $ac_func;
15437 rm -f conftest.$ac_objext conftest$ac_exeext
15438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15439 (eval $ac_link) 2>conftest.er1
15441 grep -v '^ *+' conftest.er1 >conftest.err
15443 cat conftest.err >&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } &&
15446 { ac_try='test -z "$ac_c_werror_flag"
15447 || test ! -s conftest.err'
15448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15449 (eval $ac_try) 2>&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; } &&
15453 { ac_try='test -s conftest$ac_exeext'
15454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15455 (eval $ac_try) 2>&5
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); }; }; then
15459 eval "$as_ac_var=yes"
15461 echo "$as_me: failed program was:" >&5
15462 sed 's/^/| /' conftest.$ac_ext >&5
15464 eval "$as_ac_var=no"
15466 rm -f conftest.err conftest.$ac_objext \
15467 conftest$ac_exeext conftest.$ac_ext
15469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15471 if test `eval echo '${'$as_ac_var'}'` = yes; then
15472 cat >>confdefs.h <<_ACEOF
15473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15480 for ac_func in syscall
15482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15483 echo "$as_me:$LINENO: checking for $ac_func" >&5
15484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15485 if eval "test \"\${$as_ac_var+set}\" = set"; then
15486 echo $ECHO_N "(cached) $ECHO_C" >&6
15488 cat >conftest.$ac_ext <<_ACEOF
15491 cat confdefs.h >>conftest.$ac_ext
15492 cat >>conftest.$ac_ext <<_ACEOF
15493 /* end confdefs.h. */
15494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15496 #define $ac_func innocuous_$ac_func
15498 /* System header to define __stub macros and hopefully few prototypes,
15499 which can conflict with char $ac_func (); below.
15500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15501 <limits.h> exists even on freestanding compilers. */
15504 # include <limits.h>
15506 # include <assert.h>
15511 /* Override any gcc2 internal prototype to avoid an error. */
15516 /* We use char because int might match the return type of a gcc2
15517 builtin and then its argument prototype would still apply. */
15519 /* The GNU C library defines this for functions which it implements
15520 to always fail with ENOSYS. Some functions are actually named
15521 something starting with __ and the normal name is an alias. */
15522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15525 char (*f) () = $ac_func;
15534 return f != $ac_func;
15539 rm -f conftest.$ac_objext conftest$ac_exeext
15540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15541 (eval $ac_link) 2>conftest.er1
15543 grep -v '^ *+' conftest.er1 >conftest.err
15545 cat conftest.err >&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } &&
15548 { ac_try='test -z "$ac_c_werror_flag"
15549 || test ! -s conftest.err'
15550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15551 (eval $ac_try) 2>&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; } &&
15555 { ac_try='test -s conftest$ac_exeext'
15556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557 (eval $ac_try) 2>&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; }; then
15561 eval "$as_ac_var=yes"
15563 echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15566 eval "$as_ac_var=no"
15568 rm -f conftest.err conftest.$ac_objext \
15569 conftest$ac_exeext conftest.$ac_ext
15571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15572 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15573 if test `eval echo '${'$as_ac_var'}'` = yes; then
15574 cat >>confdefs.h <<_ACEOF
15575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15582 for ac_func in ttrace
15584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15585 echo "$as_me:$LINENO: checking for $ac_func" >&5
15586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15587 if eval "test \"\${$as_ac_var+set}\" = set"; then
15588 echo $ECHO_N "(cached) $ECHO_C" >&6
15590 cat >conftest.$ac_ext <<_ACEOF
15593 cat confdefs.h >>conftest.$ac_ext
15594 cat >>conftest.$ac_ext <<_ACEOF
15595 /* end confdefs.h. */
15596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15598 #define $ac_func innocuous_$ac_func
15600 /* System header to define __stub macros and hopefully few prototypes,
15601 which can conflict with char $ac_func (); below.
15602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15603 <limits.h> exists even on freestanding compilers. */
15606 # include <limits.h>
15608 # include <assert.h>
15613 /* Override any gcc2 internal prototype to avoid an error. */
15618 /* We use char because int might match the return type of a gcc2
15619 builtin and then its argument prototype would still apply. */
15621 /* The GNU C library defines this for functions which it implements
15622 to always fail with ENOSYS. Some functions are actually named
15623 something starting with __ and the normal name is an alias. */
15624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15627 char (*f) () = $ac_func;
15636 return f != $ac_func;
15641 rm -f conftest.$ac_objext conftest$ac_exeext
15642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15643 (eval $ac_link) 2>conftest.er1
15645 grep -v '^ *+' conftest.er1 >conftest.err
15647 cat conftest.err >&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } &&
15650 { ac_try='test -z "$ac_c_werror_flag"
15651 || test ! -s conftest.err'
15652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653 (eval $ac_try) 2>&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; } &&
15657 { ac_try='test -s conftest$ac_exeext'
15658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659 (eval $ac_try) 2>&5
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; }; then
15663 eval "$as_ac_var=yes"
15665 echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.$ac_ext >&5
15668 eval "$as_ac_var=no"
15670 rm -f conftest.err conftest.$ac_objext \
15671 conftest$ac_exeext conftest.$ac_ext
15673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15674 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15675 if test `eval echo '${'$as_ac_var'}'` = yes; then
15676 cat >>confdefs.h <<_ACEOF
15677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15684 for ac_func in wborder
15686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15687 echo "$as_me:$LINENO: checking for $ac_func" >&5
15688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15689 if eval "test \"\${$as_ac_var+set}\" = set"; then
15690 echo $ECHO_N "(cached) $ECHO_C" >&6
15692 cat >conftest.$ac_ext <<_ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h. */
15698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15700 #define $ac_func innocuous_$ac_func
15702 /* System header to define __stub macros and hopefully few prototypes,
15703 which can conflict with char $ac_func (); below.
15704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15705 <limits.h> exists even on freestanding compilers. */
15708 # include <limits.h>
15710 # include <assert.h>
15715 /* Override any gcc2 internal prototype to avoid an error. */
15720 /* We use char because int might match the return type of a gcc2
15721 builtin and then its argument prototype would still apply. */
15723 /* The GNU C library defines this for functions which it implements
15724 to always fail with ENOSYS. Some functions are actually named
15725 something starting with __ and the normal name is an alias. */
15726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15729 char (*f) () = $ac_func;
15738 return f != $ac_func;
15743 rm -f conftest.$ac_objext conftest$ac_exeext
15744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15745 (eval $ac_link) 2>conftest.er1
15747 grep -v '^ *+' conftest.er1 >conftest.err
15749 cat conftest.err >&5
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); } &&
15752 { ac_try='test -z "$ac_c_werror_flag"
15753 || test ! -s conftest.err'
15754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15755 (eval $ac_try) 2>&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); }; } &&
15759 { ac_try='test -s conftest$ac_exeext'
15760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761 (eval $ac_try) 2>&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; }; then
15765 eval "$as_ac_var=yes"
15767 echo "$as_me: failed program was:" >&5
15768 sed 's/^/| /' conftest.$ac_ext >&5
15770 eval "$as_ac_var=no"
15772 rm -f conftest.err conftest.$ac_objext \
15773 conftest$ac_exeext conftest.$ac_ext
15775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15777 if test `eval echo '${'$as_ac_var'}'` = yes; then
15778 cat >>confdefs.h <<_ACEOF
15779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15786 # Check the return and argument types of ptrace. No canned test for
15787 # this, so roll our own.
15788 gdb_ptrace_headers='
15789 #if HAVE_SYS_TYPES_H
15790 # include <sys/types.h>
15792 #if HAVE_SYS_PTRACE_H
15793 # include <sys/ptrace.h>
15796 # include <unistd.h>
15799 # There is no point in checking if we don't have a prototype.
15800 for ac_func in ptrace
15802 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15803 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
15804 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
15805 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
15806 echo $ECHO_N "(cached) $ECHO_C" >&6
15808 cat >conftest.$ac_ext <<_ACEOF
15811 cat confdefs.h >>conftest.$ac_ext
15812 cat >>conftest.$ac_ext <<_ACEOF
15813 /* end confdefs.h. */
15815 #define $ac_tr_decl 1
15816 $gdb_ptrace_headers
15822 char *(*pfn) = (char *(*)) $ac_func ;
15828 rm -f conftest.$ac_objext
15829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15830 (eval $ac_compile) 2>conftest.er1
15832 grep -v '^ *+' conftest.er1 >conftest.err
15834 cat conftest.err >&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); } &&
15837 { ac_try='test -z "$ac_c_werror_flag"
15838 || test ! -s conftest.err'
15839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15840 (eval $ac_try) 2>&5
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); }; } &&
15844 { ac_try='test -s conftest.$ac_objext'
15845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846 (eval $ac_try) 2>&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); }; }; then
15850 eval "gcc_cv_have_decl_$ac_func=yes"
15852 echo "$as_me: failed program was:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15855 eval "gcc_cv_have_decl_$ac_func=no"
15857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15860 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
15861 echo "$as_me:$LINENO: result: yes" >&5
15862 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
15863 #define $ac_tr_decl 1
15867 echo "$as_me:$LINENO: result: no" >&5
15868 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
15869 #define $ac_tr_decl 0
15872 : ${gdb_cv_func_ptrace_ret='int'}
15873 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15878 if test x = y ; then
15880 cat >>confdefs.h <<\_ACEOF
15881 #define HAVE_DECL_PTRACE 1
15885 # Check return type.
15886 echo "$as_me:$LINENO: checking return type of ptrace" >&5
15887 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
15888 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 cat >conftest.$ac_ext <<_ACEOF
15894 cat confdefs.h >>conftest.$ac_ext
15895 cat >>conftest.$ac_ext <<_ACEOF
15896 /* end confdefs.h. */
15897 $gdb_ptrace_headers
15901 extern int ptrace ();
15906 rm -f conftest.$ac_objext
15907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15908 (eval $ac_compile) 2>conftest.er1
15910 grep -v '^ *+' conftest.er1 >conftest.err
15912 cat conftest.err >&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } &&
15915 { ac_try='test -z "$ac_c_werror_flag"
15916 || test ! -s conftest.err'
15917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15918 (eval $ac_try) 2>&5
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); }; } &&
15922 { ac_try='test -s conftest.$ac_objext'
15923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924 (eval $ac_try) 2>&5
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); }; }; then
15928 gdb_cv_func_ptrace_ret='int'
15930 echo "$as_me: failed program was:" >&5
15931 sed 's/^/| /' conftest.$ac_ext >&5
15933 gdb_cv_func_ptrace_ret='long'
15935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15937 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
15938 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
15940 cat >>confdefs.h <<_ACEOF
15941 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15944 # Check argument types.
15945 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
15946 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
15947 if test "${gdb_cv_func_ptrace_args+set}" = set; then
15948 echo $ECHO_N "(cached) $ECHO_C" >&6
15951 for gdb_arg1 in 'int' 'long'; do
15952 for gdb_arg2 in 'pid_t' 'int' 'long'; do
15953 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
15954 for gdb_arg4 in 'int' 'long'; do
15955 cat >conftest.$ac_ext <<_ACEOF
15958 cat confdefs.h >>conftest.$ac_ext
15959 cat >>conftest.$ac_ext <<_ACEOF
15960 /* end confdefs.h. */
15961 $gdb_ptrace_headers
15966 extern $gdb_cv_func_ptrace_ret
15967 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15973 rm -f conftest.$ac_objext
15974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15975 (eval $ac_compile) 2>conftest.er1
15977 grep -v '^ *+' conftest.er1 >conftest.err
15979 cat conftest.err >&5
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); } &&
15982 { ac_try='test -z "$ac_c_werror_flag"
15983 || test ! -s conftest.err'
15984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985 (eval $ac_try) 2>&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); }; } &&
15989 { ac_try='test -s conftest.$ac_objext'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }; then
15995 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15998 echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16003 for gdb_arg5 in 'int *' 'int' 'long'; do
16004 cat >conftest.$ac_ext <<_ACEOF
16007 cat confdefs.h >>conftest.$ac_ext
16008 cat >>conftest.$ac_ext <<_ACEOF
16009 /* end confdefs.h. */
16010 $gdb_ptrace_headers
16015 extern $gdb_cv_func_ptrace_ret
16016 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16022 rm -f conftest.$ac_objext
16023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16024 (eval $ac_compile) 2>conftest.er1
16026 grep -v '^ *+' conftest.er1 >conftest.err
16028 cat conftest.err >&5
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); } &&
16031 { ac_try='test -z "$ac_c_werror_flag"
16032 || test ! -s conftest.err'
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; } &&
16038 { ac_try='test -s conftest.$ac_objext'
16039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040 (eval $ac_try) 2>&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; }; then
16045 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16048 echo "$as_me: failed program was:" >&5
16049 sed 's/^/| /' conftest.$ac_ext >&5
16052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16058 # Provide a safe default value.
16059 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16062 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16063 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16064 ac_save_IFS=$IFS; IFS=','
16065 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16069 cat >>confdefs.h <<_ACEOF
16070 #define PTRACE_TYPE_ARG3 $3
16073 if test -n "$5"; then
16075 cat >>confdefs.h <<_ACEOF
16076 #define PTRACE_TYPE_ARG5 $5
16081 if test "$cross_compiling" = no; then
16082 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16083 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16084 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16085 echo $ECHO_N "(cached) $ECHO_C" >&6
16087 if test "$cross_compiling" = yes; then
16088 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16089 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16090 { (exit 1); exit 1; }; }
16092 cat >conftest.$ac_ext <<_ACEOF
16095 cat confdefs.h >>conftest.$ac_ext
16096 cat >>conftest.$ac_ext <<_ACEOF
16097 /* end confdefs.h. */
16099 # include <unistd.h>
16105 /* If this system has a BSD-style setpgrp which takes arguments,
16106 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16107 exit successfully. */
16108 exit (setpgrp (1,1) == -1 ? 0 : 1);
16113 rm -f conftest$ac_exeext
16114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16115 (eval $ac_link) 2>&5
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120 (eval $ac_try) 2>&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); }; }; then
16124 ac_cv_func_setpgrp_void=no
16126 echo "$as_me: program exited with status $ac_status" >&5
16127 echo "$as_me: failed program was:" >&5
16128 sed 's/^/| /' conftest.$ac_ext >&5
16130 ( exit $ac_status )
16131 ac_cv_func_setpgrp_void=yes
16133 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16136 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16137 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16138 if test $ac_cv_func_setpgrp_void = yes; then
16140 cat >>confdefs.h <<\_ACEOF
16141 #define SETPGRP_VOID 1
16147 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16148 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16149 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16150 echo $ECHO_N "(cached) $ECHO_C" >&6
16152 cat >conftest.$ac_ext <<_ACEOF
16155 cat confdefs.h >>conftest.$ac_ext
16156 cat >>conftest.$ac_ext <<_ACEOF
16157 /* end confdefs.h. */
16159 #include <unistd.h>
16165 if (setpgrp(1,1) == -1)
16174 rm -f conftest.$ac_objext
16175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16176 (eval $ac_compile) 2>conftest.er1
16178 grep -v '^ *+' conftest.er1 >conftest.err
16180 cat conftest.err >&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } &&
16183 { ac_try='test -z "$ac_c_werror_flag"
16184 || test ! -s conftest.err'
16185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186 (eval $ac_try) 2>&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); }; } &&
16190 { ac_try='test -s conftest.$ac_objext'
16191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16192 (eval $ac_try) 2>&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; }; then
16196 ac_cv_func_setpgrp_void=no
16198 echo "$as_me: failed program was:" >&5
16199 sed 's/^/| /' conftest.$ac_ext >&5
16201 ac_cv_func_setpgrp_void=yes
16203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16205 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16206 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16207 if test $ac_cv_func_setpgrp_void = yes; then
16208 cat >>confdefs.h <<\_ACEOF
16209 #define SETPGRP_VOID 1
16215 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16216 # since sigsetjmp might only be defined as a macro.
16217 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16218 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16219 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16220 echo $ECHO_N "(cached) $ECHO_C" >&6
16222 cat >conftest.$ac_ext <<_ACEOF
16225 cat confdefs.h >>conftest.$ac_ext
16226 cat >>conftest.$ac_ext <<_ACEOF
16227 /* end confdefs.h. */
16229 #include <setjmp.h>
16234 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16239 rm -f conftest.$ac_objext
16240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16241 (eval $ac_compile) 2>conftest.er1
16243 grep -v '^ *+' conftest.er1 >conftest.err
16245 cat conftest.err >&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); } &&
16248 { ac_try='test -z "$ac_c_werror_flag"
16249 || test ! -s conftest.err'
16250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251 (eval $ac_try) 2>&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; } &&
16255 { ac_try='test -s conftest.$ac_objext'
16256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16257 (eval $ac_try) 2>&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); }; }; then
16261 gdb_cv_func_sigsetjmp=yes
16263 echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16266 gdb_cv_func_sigsetjmp=no
16268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16270 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16271 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16272 if test $gdb_cv_func_sigsetjmp = yes; then
16274 cat >>confdefs.h <<\_ACEOF
16275 #define HAVE_SIGSETJMP 1
16280 # Assume we'll default to using the included libiberty regex.
16281 gdb_use_included_regex=yes
16283 # However, if the system regex is GNU regex, then default to *not*
16284 # using the included regex.
16285 echo "$as_me:$LINENO: checking for GNU regex" >&5
16286 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16287 if test "${gdb_cv_have_gnu_regex+set}" = set; then
16288 echo $ECHO_N "(cached) $ECHO_C" >&6
16290 cat >conftest.$ac_ext <<_ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h. */
16296 #include <gnu-versions.h>
16300 #define REGEX_INTERFACE_VERSION 1
16301 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16302 # error "Version mismatch"
16308 rm -f conftest.$ac_objext
16309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16310 (eval $ac_compile) 2>conftest.er1
16312 grep -v '^ *+' conftest.er1 >conftest.err
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } &&
16317 { ac_try='test -z "$ac_c_werror_flag"
16318 || test ! -s conftest.err'
16319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320 (eval $ac_try) 2>&5
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; } &&
16324 { ac_try='test -s conftest.$ac_objext'
16325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326 (eval $ac_try) 2>&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; }; then
16330 gdb_cv_have_gnu_regex=yes
16332 echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16335 gdb_cv_have_gnu_regex=no
16337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16339 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16340 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16341 if test $gdb_cv_have_gnu_regex = yes; then
16342 gdb_use_included_regex=no
16346 # Check whether --with-included-regex or --without-included-regex was given.
16347 if test "${with_included_regex+set}" = set; then
16348 withval="$with_included_regex"
16349 gdb_with_regex=$withval
16351 gdb_with_regex=$gdb_use_included_regex
16353 if test "$gdb_with_regex" = yes; then
16355 cat >>confdefs.h <<\_ACEOF
16356 #define USE_INCLUDED_REGEX 1
16361 # See if <sys/proc.h> defines `struct thread' with a td_pcb member.
16362 echo "$as_me:$LINENO: checking for td_pcb in struct thread" >&5
16363 echo $ECHO_N "checking for td_pcb in struct thread... $ECHO_C" >&6
16364 if test "${gdb_cv_struct_thread_td_pcb+set}" = set; then
16365 echo $ECHO_N "(cached) $ECHO_C" >&6
16367 cat >conftest.$ac_ext <<_ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16373 #include <sys/param.h>
16374 #include <sys/proc.h>
16378 struct thread td; td.td_pcb;
16383 rm -f conftest.$ac_objext
16384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16385 (eval $ac_compile) 2>conftest.er1
16387 grep -v '^ *+' conftest.er1 >conftest.err
16389 cat conftest.err >&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } &&
16392 { ac_try='test -z "$ac_c_werror_flag"
16393 || test ! -s conftest.err'
16394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16395 (eval $ac_try) 2>&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); }; } &&
16399 { ac_try='test -s conftest.$ac_objext'
16400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401 (eval $ac_try) 2>&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; }; then
16405 gdb_cv_struct_thread_td_pcb=yes
16407 echo "$as_me: failed program was:" >&5
16408 sed 's/^/| /' conftest.$ac_ext >&5
16410 gdb_cv_struct_thread_td_pcb=no
16412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16414 echo "$as_me:$LINENO: result: $gdb_cv_struct_thread_td_pcb" >&5
16415 echo "${ECHO_T}$gdb_cv_struct_thread_td_pcb" >&6
16416 if test $gdb_cv_struct_thread_td_pcb = yes; then
16418 cat >>confdefs.h <<\_ACEOF
16419 #define HAVE_STRUCT_THREAD_TD_PCB 1
16424 # See if <sys/lwp.h> defines `struct lwp`.
16425 echo "$as_me:$LINENO: checking for struct lwp" >&5
16426 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16427 if test "${gdb_cv_struct_lwp+set}" = set; then
16428 echo $ECHO_N "(cached) $ECHO_C" >&6
16430 cat >conftest.$ac_ext <<_ACEOF
16433 cat confdefs.h >>conftest.$ac_ext
16434 cat >>conftest.$ac_ext <<_ACEOF
16435 /* end confdefs.h. */
16436 #include <sys/param.h>
16437 #include <sys/lwp.h>
16446 rm -f conftest.$ac_objext
16447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16448 (eval $ac_compile) 2>conftest.er1
16450 grep -v '^ *+' conftest.er1 >conftest.err
16452 cat conftest.err >&5
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); } &&
16455 { ac_try='test -z "$ac_c_werror_flag"
16456 || test ! -s conftest.err'
16457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16458 (eval $ac_try) 2>&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); }; } &&
16462 { ac_try='test -s conftest.$ac_objext'
16463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16464 (eval $ac_try) 2>&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); }; }; then
16468 gdb_cv_struct_lwp=yes
16470 echo "$as_me: failed program was:" >&5
16471 sed 's/^/| /' conftest.$ac_ext >&5
16473 gdb_cv_struct_lwp=no
16475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16477 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16478 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
16479 if test $gdb_cv_struct_lwp = yes; then
16481 cat >>confdefs.h <<\_ACEOF
16482 #define HAVE_STRUCT_LWP 1
16487 # See if <machine/reg.h> degines `struct reg'.
16488 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16489 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16490 if test "${gdb_cv_struct_reg+set}" = set; then
16491 echo $ECHO_N "(cached) $ECHO_C" >&6
16493 cat >conftest.$ac_ext <<_ACEOF
16496 cat confdefs.h >>conftest.$ac_ext
16497 cat >>conftest.$ac_ext <<_ACEOF
16498 /* end confdefs.h. */
16499 #include <sys/types.h>
16500 #include <machine/reg.h>
16509 rm -f conftest.$ac_objext
16510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16511 (eval $ac_compile) 2>conftest.er1
16513 grep -v '^ *+' conftest.er1 >conftest.err
16515 cat conftest.err >&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } &&
16518 { ac_try='test -z "$ac_c_werror_flag"
16519 || test ! -s conftest.err'
16520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521 (eval $ac_try) 2>&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; } &&
16525 { ac_try='test -s conftest.$ac_objext'
16526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16527 (eval $ac_try) 2>&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); }; }; then
16531 gdb_cv_struct_reg=yes
16533 echo "$as_me: failed program was:" >&5
16534 sed 's/^/| /' conftest.$ac_ext >&5
16536 gdb_cv_struct_reg=no
16538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16540 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16541 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
16542 if test $gdb_cv_struct_reg = yes; then
16544 cat >>confdefs.h <<\_ACEOF
16545 #define HAVE_STRUCT_REG 1
16550 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16551 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16552 echo "$as_me:$LINENO: checking for r_fs in struct reg" >&5
16553 echo $ECHO_N "checking for r_fs in struct reg... $ECHO_C" >&6
16554 if test "${gdb_cv_struct_reg_r_fs+set}" = set; then
16555 echo $ECHO_N "(cached) $ECHO_C" >&6
16557 cat >conftest.$ac_ext <<_ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h. */
16563 #include <machine/reg.h>
16567 struct reg r; r.r_fs;
16572 rm -f conftest.$ac_objext
16573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16574 (eval $ac_compile) 2>conftest.er1
16576 grep -v '^ *+' conftest.er1 >conftest.err
16578 cat conftest.err >&5
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } &&
16581 { ac_try='test -z "$ac_c_werror_flag"
16582 || test ! -s conftest.err'
16583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584 (eval $ac_try) 2>&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; } &&
16588 { ac_try='test -s conftest.$ac_objext'
16589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590 (eval $ac_try) 2>&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; }; then
16594 gdb_cv_struct_reg_r_fs=yes
16596 echo "$as_me: failed program was:" >&5
16597 sed 's/^/| /' conftest.$ac_ext >&5
16599 gdb_cv_struct_reg_r_fs=no
16601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16603 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg_r_fs" >&5
16604 echo "${ECHO_T}$gdb_cv_struct_reg_r_fs" >&6
16605 if test $gdb_cv_struct_reg_r_fs = yes; then
16606 cat >>confdefs.h <<\_ACEOF
16607 #define HAVE_STRUCT_REG_R_FS 1
16611 echo "$as_me:$LINENO: checking for r_gs in struct reg" >&5
16612 echo $ECHO_N "checking for r_gs in struct reg... $ECHO_C" >&6
16613 if test "${gdb_cv_struct_reg_r_gs+set}" = set; then
16614 echo $ECHO_N "(cached) $ECHO_C" >&6
16616 cat >conftest.$ac_ext <<_ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h. */
16622 #include <machine/reg.h>
16626 struct reg r; r.r_gs;
16631 rm -f conftest.$ac_objext
16632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16633 (eval $ac_compile) 2>conftest.er1
16635 grep -v '^ *+' conftest.er1 >conftest.err
16637 cat conftest.err >&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); } &&
16640 { ac_try='test -z "$ac_c_werror_flag"
16641 || test ! -s conftest.err'
16642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16643 (eval $ac_try) 2>&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); }; } &&
16647 { ac_try='test -s conftest.$ac_objext'
16648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; }; then
16653 gdb_cv_struct_reg_r_gs=yes
16655 echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16658 gdb_cv_struct_reg_r_gs=no
16660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16662 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg_r_gs" >&5
16663 echo "${ECHO_T}$gdb_cv_struct_reg_r_gs" >&6
16664 if test $gdb_cv_struct_reg_r_gs = yes; then
16665 cat >>confdefs.h <<\_ACEOF
16666 #define HAVE_STRUCT_REG_R_GS 1
16671 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
16672 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
16673 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
16674 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
16675 echo $ECHO_N "(cached) $ECHO_C" >&6
16677 cat >conftest.$ac_ext <<_ACEOF
16680 cat confdefs.h >>conftest.$ac_ext
16681 cat >>conftest.$ac_ext <<_ACEOF
16682 /* end confdefs.h. */
16683 #include <sys/ptrace.h>
16692 rm -f conftest.$ac_objext
16693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16694 (eval $ac_compile) 2>conftest.er1
16696 grep -v '^ *+' conftest.er1 >conftest.err
16698 cat conftest.err >&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); } &&
16701 { ac_try='test -z "$ac_c_werror_flag"
16702 || test ! -s conftest.err'
16703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704 (eval $ac_try) 2>&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; } &&
16708 { ac_try='test -s conftest.$ac_objext'
16709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710 (eval $ac_try) 2>&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; }; then
16714 gdb_cv_have_ptrace_getregs=yes
16716 echo "$as_me: failed program was:" >&5
16717 sed 's/^/| /' conftest.$ac_ext >&5
16719 gdb_cv_have_ptrace_getregs=no
16721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16724 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
16725 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
16726 if test $gdb_cv_have_ptrace_getregs = yes; then
16727 cat >>confdefs.h <<\_ACEOF
16728 #define HAVE_PTRACE_GETREGS 1
16733 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
16734 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
16735 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
16736 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
16737 echo $ECHO_N "(cached) $ECHO_C" >&6
16739 cat >conftest.$ac_ext <<_ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h. */
16745 #include <sys/ptrace.h>
16754 rm -f conftest.$ac_objext
16755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16756 (eval $ac_compile) 2>conftest.er1
16758 grep -v '^ *+' conftest.er1 >conftest.err
16760 cat conftest.err >&5
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); } &&
16763 { ac_try='test -z "$ac_c_werror_flag"
16764 || test ! -s conftest.err'
16765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16766 (eval $ac_try) 2>&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; } &&
16770 { ac_try='test -s conftest.$ac_objext'
16771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772 (eval $ac_try) 2>&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; }; then
16776 gdb_cv_have_ptrace_getfpxregs=yes
16778 echo "$as_me: failed program was:" >&5
16779 sed 's/^/| /' conftest.$ac_ext >&5
16781 gdb_cv_have_ptrace_getfpxregs=no
16783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16786 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
16787 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
16788 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
16789 cat >>confdefs.h <<\_ACEOF
16790 #define HAVE_PTRACE_GETFPXREGS 1
16795 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
16796 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
16797 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
16798 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
16799 echo $ECHO_N "(cached) $ECHO_C" >&6
16801 cat >conftest.$ac_ext <<_ACEOF
16804 cat confdefs.h >>conftest.$ac_ext
16805 cat >>conftest.$ac_ext <<_ACEOF
16806 /* end confdefs.h. */
16807 #include <sys/types.h>
16808 #include <sys/ptrace.h>
16817 rm -f conftest.$ac_objext
16818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16819 (eval $ac_compile) 2>conftest.er1
16821 grep -v '^ *+' conftest.er1 >conftest.err
16823 cat conftest.err >&5
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); } &&
16826 { ac_try='test -z "$ac_c_werror_flag"
16827 || test ! -s conftest.err'
16828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829 (eval $ac_try) 2>&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; } &&
16833 { ac_try='test -s conftest.$ac_objext'
16834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16835 (eval $ac_try) 2>&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; }; then
16839 gdb_cv_have_pt_getdbregs=yes
16841 echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16844 gdb_cv_have_pt_getdbregs=no
16846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16849 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
16850 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
16851 if test $gdb_cv_have_pt_getdbregs = yes; then
16852 cat >>confdefs.h <<\_ACEOF
16853 #define HAVE_PT_GETDBREGS 1
16858 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
16859 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
16860 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
16861 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
16862 echo $ECHO_N "(cached) $ECHO_C" >&6
16864 cat >conftest.$ac_ext <<_ACEOF
16867 cat confdefs.h >>conftest.$ac_ext
16868 cat >>conftest.$ac_ext <<_ACEOF
16869 /* end confdefs.h. */
16870 #include <sys/types.h>
16871 #include <sys/ptrace.h>
16880 rm -f conftest.$ac_objext
16881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16882 (eval $ac_compile) 2>conftest.er1
16884 grep -v '^ *+' conftest.er1 >conftest.err
16886 cat conftest.err >&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); } &&
16889 { ac_try='test -z "$ac_c_werror_flag"
16890 || test ! -s conftest.err'
16891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16892 (eval $ac_try) 2>&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; } &&
16896 { ac_try='test -s conftest.$ac_objext'
16897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16898 (eval $ac_try) 2>&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); }; }; then
16902 gdb_cv_have_pt_getxmmregs=yes
16904 echo "$as_me: failed program was:" >&5
16905 sed 's/^/| /' conftest.$ac_ext >&5
16907 gdb_cv_have_pt_getxmmregs=no
16909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16912 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
16913 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
16914 if test $gdb_cv_have_pt_getxmmregs = yes; then
16915 cat >>confdefs.h <<\_ACEOF
16916 #define HAVE_PT_GETXMMREGS 1
16921 # See if stdint.h provides the uintptr_t type.
16922 # Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
16923 echo "$as_me:$LINENO: checking for uintptr_t in stdint.h" >&5
16924 echo $ECHO_N "checking for uintptr_t in stdint.h... $ECHO_C" >&6
16925 if test "${gdb_cv_have_uintptr_t+set}" = set; then
16926 echo $ECHO_N "(cached) $ECHO_C" >&6
16928 cat >conftest.$ac_ext <<_ACEOF
16931 cat confdefs.h >>conftest.$ac_ext
16932 cat >>conftest.$ac_ext <<_ACEOF
16933 /* end confdefs.h. */
16934 #include <stdint.h>
16943 rm -f conftest.$ac_objext
16944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16945 (eval $ac_compile) 2>conftest.er1
16947 grep -v '^ *+' conftest.er1 >conftest.err
16949 cat conftest.err >&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); } &&
16952 { ac_try='test -z "$ac_c_werror_flag"
16953 || test ! -s conftest.err'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; } &&
16959 { ac_try='test -s conftest.$ac_objext'
16960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16961 (eval $ac_try) 2>&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; }; then
16965 gdb_cv_have_uintptr_t=yes
16967 echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16970 gdb_cv_have_uintptr_t=no
16972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16974 echo "$as_me:$LINENO: result: $gdb_cv_have_uintptr_t" >&5
16975 echo "${ECHO_T}$gdb_cv_have_uintptr_t" >&6
16976 if test $gdb_cv_have_uintptr_t = yes; then
16978 cat >>confdefs.h <<\_ACEOF
16979 #define HAVE_UINTPTR_T 1
16984 echo "$as_me:$LINENO: checking whether malloc must be declared" >&5
16985 echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6
16986 if test "${bfd_cv_decl_needed_malloc+set}" = set; then
16987 echo $ECHO_N "(cached) $ECHO_C" >&6
16989 cat >conftest.$ac_ext <<_ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h. */
16997 #ifdef HAVE_STRING_H
16998 #include <string.h>
17000 #ifdef HAVE_STRINGS_H
17001 #include <strings.h>
17004 #ifdef HAVE_STDLIB_H
17005 #include <stdlib.h>
17007 #ifdef HAVE_UNISTD_H
17008 #include <unistd.h>
17013 char *(*pfn) = (char *(*)) malloc
17018 rm -f conftest.$ac_objext
17019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17020 (eval $ac_compile) 2>conftest.er1
17022 grep -v '^ *+' conftest.er1 >conftest.err
17024 cat conftest.err >&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } &&
17027 { ac_try='test -z "$ac_c_werror_flag"
17028 || test ! -s conftest.err'
17029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030 (eval $ac_try) 2>&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; } &&
17034 { ac_try='test -s conftest.$ac_objext'
17035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036 (eval $ac_try) 2>&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17040 bfd_cv_decl_needed_malloc=no
17042 echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17045 bfd_cv_decl_needed_malloc=yes
17047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17050 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_malloc" >&5
17051 echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6
17052 if test $bfd_cv_decl_needed_malloc = yes; then
17054 cat >>confdefs.h <<\_ACEOF
17055 #define NEED_DECLARATION_MALLOC 1
17060 echo "$as_me:$LINENO: checking whether realloc must be declared" >&5
17061 echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6
17062 if test "${bfd_cv_decl_needed_realloc+set}" = set; then
17063 echo $ECHO_N "(cached) $ECHO_C" >&6
17065 cat >conftest.$ac_ext <<_ACEOF
17068 cat confdefs.h >>conftest.$ac_ext
17069 cat >>conftest.$ac_ext <<_ACEOF
17070 /* end confdefs.h. */
17073 #ifdef HAVE_STRING_H
17074 #include <string.h>
17076 #ifdef HAVE_STRINGS_H
17077 #include <strings.h>
17080 #ifdef HAVE_STDLIB_H
17081 #include <stdlib.h>
17083 #ifdef HAVE_UNISTD_H
17084 #include <unistd.h>
17089 char *(*pfn) = (char *(*)) realloc
17094 rm -f conftest.$ac_objext
17095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17096 (eval $ac_compile) 2>conftest.er1
17098 grep -v '^ *+' conftest.er1 >conftest.err
17100 cat conftest.err >&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); } &&
17103 { ac_try='test -z "$ac_c_werror_flag"
17104 || test ! -s conftest.err'
17105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17106 (eval $ac_try) 2>&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; } &&
17110 { ac_try='test -s conftest.$ac_objext'
17111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17112 (eval $ac_try) 2>&5
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; }; then
17116 bfd_cv_decl_needed_realloc=no
17118 echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17121 bfd_cv_decl_needed_realloc=yes
17123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17126 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_realloc" >&5
17127 echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6
17128 if test $bfd_cv_decl_needed_realloc = yes; then
17130 cat >>confdefs.h <<\_ACEOF
17131 #define NEED_DECLARATION_REALLOC 1
17136 echo "$as_me:$LINENO: checking whether free must be declared" >&5
17137 echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6
17138 if test "${bfd_cv_decl_needed_free+set}" = set; then
17139 echo $ECHO_N "(cached) $ECHO_C" >&6
17141 cat >conftest.$ac_ext <<_ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h. */
17149 #ifdef HAVE_STRING_H
17150 #include <string.h>
17152 #ifdef HAVE_STRINGS_H
17153 #include <strings.h>
17156 #ifdef HAVE_STDLIB_H
17157 #include <stdlib.h>
17159 #ifdef HAVE_UNISTD_H
17160 #include <unistd.h>
17165 char *(*pfn) = (char *(*)) free
17170 rm -f conftest.$ac_objext
17171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17172 (eval $ac_compile) 2>conftest.er1
17174 grep -v '^ *+' conftest.er1 >conftest.err
17176 cat conftest.err >&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); } &&
17179 { ac_try='test -z "$ac_c_werror_flag"
17180 || test ! -s conftest.err'
17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182 (eval $ac_try) 2>&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; } &&
17186 { ac_try='test -s conftest.$ac_objext'
17187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188 (eval $ac_try) 2>&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
17192 bfd_cv_decl_needed_free=no
17194 echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.$ac_ext >&5
17197 bfd_cv_decl_needed_free=yes
17199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17202 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5
17203 echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6
17204 if test $bfd_cv_decl_needed_free = yes; then
17206 cat >>confdefs.h <<\_ACEOF
17207 #define NEED_DECLARATION_FREE 1
17212 echo "$as_me:$LINENO: checking whether strerror must be declared" >&5
17213 echo $ECHO_N "checking whether strerror must be declared... $ECHO_C" >&6
17214 if test "${bfd_cv_decl_needed_strerror+set}" = set; then
17215 echo $ECHO_N "(cached) $ECHO_C" >&6
17217 cat >conftest.$ac_ext <<_ACEOF
17220 cat confdefs.h >>conftest.$ac_ext
17221 cat >>conftest.$ac_ext <<_ACEOF
17222 /* end confdefs.h. */
17225 #ifdef HAVE_STRING_H
17226 #include <string.h>
17228 #ifdef HAVE_STRINGS_H
17229 #include <strings.h>
17232 #ifdef HAVE_STDLIB_H
17233 #include <stdlib.h>
17235 #ifdef HAVE_UNISTD_H
17236 #include <unistd.h>
17241 char *(*pfn) = (char *(*)) strerror
17246 rm -f conftest.$ac_objext
17247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17248 (eval $ac_compile) 2>conftest.er1
17250 grep -v '^ *+' conftest.er1 >conftest.err
17252 cat conftest.err >&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); } &&
17255 { ac_try='test -z "$ac_c_werror_flag"
17256 || test ! -s conftest.err'
17257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258 (eval $ac_try) 2>&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; } &&
17262 { ac_try='test -s conftest.$ac_objext'
17263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; }; then
17268 bfd_cv_decl_needed_strerror=no
17270 echo "$as_me: failed program was:" >&5
17271 sed 's/^/| /' conftest.$ac_ext >&5
17273 bfd_cv_decl_needed_strerror=yes
17275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17278 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strerror" >&5
17279 echo "${ECHO_T}$bfd_cv_decl_needed_strerror" >&6
17280 if test $bfd_cv_decl_needed_strerror = yes; then
17282 cat >>confdefs.h <<\_ACEOF
17283 #define NEED_DECLARATION_STRERROR 1
17288 echo "$as_me:$LINENO: checking whether strdup must be declared" >&5
17289 echo $ECHO_N "checking whether strdup must be declared... $ECHO_C" >&6
17290 if test "${bfd_cv_decl_needed_strdup+set}" = set; then
17291 echo $ECHO_N "(cached) $ECHO_C" >&6
17293 cat >conftest.$ac_ext <<_ACEOF
17296 cat confdefs.h >>conftest.$ac_ext
17297 cat >>conftest.$ac_ext <<_ACEOF
17298 /* end confdefs.h. */
17301 #ifdef HAVE_STRING_H
17302 #include <string.h>
17304 #ifdef HAVE_STRINGS_H
17305 #include <strings.h>
17308 #ifdef HAVE_STDLIB_H
17309 #include <stdlib.h>
17311 #ifdef HAVE_UNISTD_H
17312 #include <unistd.h>
17317 char *(*pfn) = (char *(*)) strdup
17322 rm -f conftest.$ac_objext
17323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17324 (eval $ac_compile) 2>conftest.er1
17326 grep -v '^ *+' conftest.er1 >conftest.err
17328 cat conftest.err >&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } &&
17331 { ac_try='test -z "$ac_c_werror_flag"
17332 || test ! -s conftest.err'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; } &&
17338 { ac_try='test -s conftest.$ac_objext'
17339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340 (eval $ac_try) 2>&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; }; then
17344 bfd_cv_decl_needed_strdup=no
17346 echo "$as_me: failed program was:" >&5
17347 sed 's/^/| /' conftest.$ac_ext >&5
17349 bfd_cv_decl_needed_strdup=yes
17351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17354 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strdup" >&5
17355 echo "${ECHO_T}$bfd_cv_decl_needed_strdup" >&6
17356 if test $bfd_cv_decl_needed_strdup = yes; then
17358 cat >>confdefs.h <<\_ACEOF
17359 #define NEED_DECLARATION_STRDUP 1
17364 echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
17365 echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
17366 if test "${bfd_cv_decl_needed_strstr+set}" = set; then
17367 echo $ECHO_N "(cached) $ECHO_C" >&6
17369 cat >conftest.$ac_ext <<_ACEOF
17372 cat confdefs.h >>conftest.$ac_ext
17373 cat >>conftest.$ac_ext <<_ACEOF
17374 /* end confdefs.h. */
17377 #ifdef HAVE_STRING_H
17378 #include <string.h>
17380 #ifdef HAVE_STRINGS_H
17381 #include <strings.h>
17384 #ifdef HAVE_STDLIB_H
17385 #include <stdlib.h>
17387 #ifdef HAVE_UNISTD_H
17388 #include <unistd.h>
17393 char *(*pfn) = (char *(*)) strstr
17398 rm -f conftest.$ac_objext
17399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17400 (eval $ac_compile) 2>conftest.er1
17402 grep -v '^ *+' conftest.er1 >conftest.err
17404 cat conftest.err >&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } &&
17407 { ac_try='test -z "$ac_c_werror_flag"
17408 || test ! -s conftest.err'
17409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17410 (eval $ac_try) 2>&5
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); }; } &&
17414 { ac_try='test -s conftest.$ac_objext'
17415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17416 (eval $ac_try) 2>&5
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; }; then
17420 bfd_cv_decl_needed_strstr=no
17422 echo "$as_me: failed program was:" >&5
17423 sed 's/^/| /' conftest.$ac_ext >&5
17425 bfd_cv_decl_needed_strstr=yes
17427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17430 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
17431 echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
17432 if test $bfd_cv_decl_needed_strstr = yes; then
17434 cat >>confdefs.h <<\_ACEOF
17435 #define NEED_DECLARATION_STRSTR 1
17440 echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
17441 echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
17442 if test "${bfd_cv_decl_needed_canonicalize_file_name+set}" = set; then
17443 echo $ECHO_N "(cached) $ECHO_C" >&6
17445 cat >conftest.$ac_ext <<_ACEOF
17448 cat confdefs.h >>conftest.$ac_ext
17449 cat >>conftest.$ac_ext <<_ACEOF
17450 /* end confdefs.h. */
17453 #ifdef HAVE_STRING_H
17454 #include <string.h>
17456 #ifdef HAVE_STRINGS_H
17457 #include <strings.h>
17460 #ifdef HAVE_STDLIB_H
17461 #include <stdlib.h>
17463 #ifdef HAVE_UNISTD_H
17464 #include <unistd.h>
17469 char *(*pfn) = (char *(*)) canonicalize_file_name
17474 rm -f conftest.$ac_objext
17475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17476 (eval $ac_compile) 2>conftest.er1
17478 grep -v '^ *+' conftest.er1 >conftest.err
17480 cat conftest.err >&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); } &&
17483 { ac_try='test -z "$ac_c_werror_flag"
17484 || test ! -s conftest.err'
17485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17486 (eval $ac_try) 2>&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); }; } &&
17490 { ac_try='test -s conftest.$ac_objext'
17491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492 (eval $ac_try) 2>&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; }; then
17496 bfd_cv_decl_needed_canonicalize_file_name=no
17498 echo "$as_me: failed program was:" >&5
17499 sed 's/^/| /' conftest.$ac_ext >&5
17501 bfd_cv_decl_needed_canonicalize_file_name=yes
17503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17506 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_canonicalize_file_name" >&5
17507 echo "${ECHO_T}$bfd_cv_decl_needed_canonicalize_file_name" >&6
17508 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
17510 cat >>confdefs.h <<\_ACEOF
17511 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
17517 # The following save_state_t checkery is only necessary for HPUX
17518 # versions earlier than 10.20. When those fade from memory, this
17519 # could be expunged. --jsm 1999-03-22
17521 echo "$as_me:$LINENO: checking for HPUX save_state structure" >&5
17522 echo $ECHO_N "checking for HPUX save_state structure... $ECHO_C" >&6
17523 cat >conftest.$ac_ext <<_ACEOF
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h. */
17529 #include <machine/save_state.h>
17532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17533 $EGREP "save_state_t" >/dev/null 2>&1; then
17534 gdb_cv_hpux_savestate=yes
17536 gdb_cv_hpux_savestate=no
17540 cat >conftest.$ac_ext <<_ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17546 #include <machine/save_state.h>
17549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17550 $EGREP "ss_wide" >/dev/null 2>&1; then
17551 gdb_cv_hpux_sswide=yes
17553 gdb_cv_hpux_sswide=no
17557 if test $gdb_cv_hpux_savestate = yes
17559 cat >>confdefs.h <<\_ACEOF
17560 #define HAVE_STRUCT_SAVE_STATE_T 1
17564 if test $gdb_cv_hpux_sswide = yes
17566 cat >>confdefs.h <<\_ACEOF
17567 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
17571 echo "$as_me:$LINENO: result: $gdb_cv_hpux_sswide" >&5
17572 echo "${ECHO_T}$gdb_cv_hpux_sswide" >&6
17575 # If we are configured native on GNU/Linux, work around problems with
17577 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
17579 if test "${target}" = "${host}"; then
17581 i[3456]86-*-linux*)
17582 cat >>confdefs.h <<\_ACEOF
17583 #define START_INFERIOR_TRAPS_EXPECTED 2
17586 cat >>confdefs.h <<\_ACEOF
17587 #define sys_quotactl 1
17592 cat >>confdefs.h <<\_ACEOF
17593 #define NEW_PROC_API 1
17597 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
17598 cat >>confdefs.h <<\_ACEOF
17599 #define NEW_PROC_API 1
17603 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
17604 cat >>confdefs.h <<\_ACEOF
17605 #define NEW_PROC_API 1
17610 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17611 cat >>confdefs.h <<\_ACEOF
17612 #define _KMEMUSER 1
17619 if test "$ac_cv_header_sys_procfs_h" = yes; then
17620 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17621 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17622 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17623 echo $ECHO_N "(cached) $ECHO_C" >&6
17625 cat >conftest.$ac_ext <<_ACEOF
17628 cat confdefs.h >>conftest.$ac_ext
17629 cat >>conftest.$ac_ext <<_ACEOF
17630 /* end confdefs.h. */
17633 #include <sys/procfs.h>
17642 rm -f conftest.$ac_objext
17643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17644 (eval $ac_compile) 2>conftest.er1
17646 grep -v '^ *+' conftest.er1 >conftest.err
17648 cat conftest.err >&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); } &&
17651 { ac_try='test -z "$ac_c_werror_flag"
17652 || test ! -s conftest.err'
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; } &&
17658 { ac_try='test -s conftest.$ac_objext'
17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; }; then
17664 bfd_cv_have_sys_procfs_type_pstatus_t=yes
17666 echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17669 bfd_cv_have_sys_procfs_type_pstatus_t=no
17672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17675 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17677 cat >>confdefs.h <<\_ACEOF
17678 #define HAVE_PSTATUS_T 1
17682 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17683 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17685 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17686 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17687 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17688 echo $ECHO_N "(cached) $ECHO_C" >&6
17690 cat >conftest.$ac_ext <<_ACEOF
17693 cat confdefs.h >>conftest.$ac_ext
17694 cat >>conftest.$ac_ext <<_ACEOF
17695 /* end confdefs.h. */
17698 #include <sys/procfs.h>
17707 rm -f conftest.$ac_objext
17708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17709 (eval $ac_compile) 2>conftest.er1
17711 grep -v '^ *+' conftest.er1 >conftest.err
17713 cat conftest.err >&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } &&
17716 { ac_try='test -z "$ac_c_werror_flag"
17717 || test ! -s conftest.err'
17718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719 (eval $ac_try) 2>&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; } &&
17723 { ac_try='test -s conftest.$ac_objext'
17724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17725 (eval $ac_try) 2>&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); }; }; then
17729 bfd_cv_have_sys_procfs_type_prrun_t=yes
17731 echo "$as_me: failed program was:" >&5
17732 sed 's/^/| /' conftest.$ac_ext >&5
17734 bfd_cv_have_sys_procfs_type_prrun_t=no
17737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17740 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17742 cat >>confdefs.h <<\_ACEOF
17743 #define HAVE_PRRUN_T 1
17747 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17748 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17750 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17751 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17752 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17753 echo $ECHO_N "(cached) $ECHO_C" >&6
17755 cat >conftest.$ac_ext <<_ACEOF
17758 cat confdefs.h >>conftest.$ac_ext
17759 cat >>conftest.$ac_ext <<_ACEOF
17760 /* end confdefs.h. */
17763 #include <sys/procfs.h>
17772 rm -f conftest.$ac_objext
17773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17774 (eval $ac_compile) 2>conftest.er1
17776 grep -v '^ *+' conftest.er1 >conftest.err
17778 cat conftest.err >&5
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); } &&
17781 { ac_try='test -z "$ac_c_werror_flag"
17782 || test ! -s conftest.err'
17783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; } &&
17788 { ac_try='test -s conftest.$ac_objext'
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; }; then
17794 bfd_cv_have_sys_procfs_type_gregset_t=yes
17796 echo "$as_me: failed program was:" >&5
17797 sed 's/^/| /' conftest.$ac_ext >&5
17799 bfd_cv_have_sys_procfs_type_gregset_t=no
17802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17805 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17807 cat >>confdefs.h <<\_ACEOF
17808 #define HAVE_GREGSET_T 1
17812 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17813 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17815 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17816 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17817 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17818 echo $ECHO_N "(cached) $ECHO_C" >&6
17820 cat >conftest.$ac_ext <<_ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h. */
17828 #include <sys/procfs.h>
17837 rm -f conftest.$ac_objext
17838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17839 (eval $ac_compile) 2>conftest.er1
17841 grep -v '^ *+' conftest.er1 >conftest.err
17843 cat conftest.err >&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } &&
17846 { ac_try='test -z "$ac_c_werror_flag"
17847 || test ! -s conftest.err'
17848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17849 (eval $ac_try) 2>&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }; } &&
17853 { ac_try='test -s conftest.$ac_objext'
17854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855 (eval $ac_try) 2>&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; }; then
17859 bfd_cv_have_sys_procfs_type_fpregset_t=yes
17861 echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17864 bfd_cv_have_sys_procfs_type_fpregset_t=no
17867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17870 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
17872 cat >>confdefs.h <<\_ACEOF
17873 #define HAVE_FPREGSET_T 1
17877 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17878 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
17880 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17881 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17882 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17883 echo $ECHO_N "(cached) $ECHO_C" >&6
17885 cat >conftest.$ac_ext <<_ACEOF
17888 cat confdefs.h >>conftest.$ac_ext
17889 cat >>conftest.$ac_ext <<_ACEOF
17890 /* end confdefs.h. */
17893 #include <sys/procfs.h>
17902 rm -f conftest.$ac_objext
17903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17904 (eval $ac_compile) 2>conftest.er1
17906 grep -v '^ *+' conftest.er1 >conftest.err
17908 cat conftest.err >&5
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); } &&
17911 { ac_try='test -z "$ac_c_werror_flag"
17912 || test ! -s conftest.err'
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; } &&
17918 { ac_try='test -s conftest.$ac_objext'
17919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920 (eval $ac_try) 2>&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; }; then
17924 bfd_cv_have_sys_procfs_type_prgregset_t=yes
17926 echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17929 bfd_cv_have_sys_procfs_type_prgregset_t=no
17932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17935 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
17937 cat >>confdefs.h <<\_ACEOF
17938 #define HAVE_PRGREGSET_T 1
17942 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17943 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
17945 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17946 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17947 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17948 echo $ECHO_N "(cached) $ECHO_C" >&6
17950 cat >conftest.$ac_ext <<_ACEOF
17953 cat confdefs.h >>conftest.$ac_ext
17954 cat >>conftest.$ac_ext <<_ACEOF
17955 /* end confdefs.h. */
17958 #include <sys/procfs.h>
17967 rm -f conftest.$ac_objext
17968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17969 (eval $ac_compile) 2>conftest.er1
17971 grep -v '^ *+' conftest.er1 >conftest.err
17973 cat conftest.err >&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); } &&
17976 { ac_try='test -z "$ac_c_werror_flag"
17977 || test ! -s conftest.err'
17978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979 (eval $ac_try) 2>&5
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); }; } &&
17983 { ac_try='test -s conftest.$ac_objext'
17984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17985 (eval $ac_try) 2>&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); }; }; then
17989 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
17991 echo "$as_me: failed program was:" >&5
17992 sed 's/^/| /' conftest.$ac_ext >&5
17994 bfd_cv_have_sys_procfs_type_prfpregset_t=no
17997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18000 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18002 cat >>confdefs.h <<\_ACEOF
18003 #define HAVE_PRFPREGSET_T 1
18007 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
18008 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
18010 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
18011 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
18012 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
18013 echo $ECHO_N "(cached) $ECHO_C" >&6
18015 cat >conftest.$ac_ext <<_ACEOF
18018 cat confdefs.h >>conftest.$ac_ext
18019 cat >>conftest.$ac_ext <<_ACEOF
18020 /* end confdefs.h. */
18023 #include <sys/procfs.h>
18032 rm -f conftest.$ac_objext
18033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18034 (eval $ac_compile) 2>conftest.er1
18036 grep -v '^ *+' conftest.er1 >conftest.err
18038 cat conftest.err >&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); } &&
18041 { ac_try='test -z "$ac_c_werror_flag"
18042 || test ! -s conftest.err'
18043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18044 (eval $ac_try) 2>&5
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); }; } &&
18048 { ac_try='test -s conftest.$ac_objext'
18049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18050 (eval $ac_try) 2>&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); }; }; then
18054 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
18056 echo "$as_me: failed program was:" >&5
18057 sed 's/^/| /' conftest.$ac_ext >&5
18059 bfd_cv_have_sys_procfs_type_prgregset32_t=no
18062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18065 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
18067 cat >>confdefs.h <<\_ACEOF
18068 #define HAVE_PRGREGSET32_T 1
18072 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
18073 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
18075 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
18076 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
18077 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
18078 echo $ECHO_N "(cached) $ECHO_C" >&6
18080 cat >conftest.$ac_ext <<_ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h. */
18088 #include <sys/procfs.h>
18092 prfpregset32_t avar
18097 rm -f conftest.$ac_objext
18098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18099 (eval $ac_compile) 2>conftest.er1
18101 grep -v '^ *+' conftest.er1 >conftest.err
18103 cat conftest.err >&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); } &&
18106 { ac_try='test -z "$ac_c_werror_flag"
18107 || test ! -s conftest.err'
18108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109 (eval $ac_try) 2>&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; } &&
18113 { ac_try='test -s conftest.$ac_objext'
18114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115 (eval $ac_try) 2>&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; }; then
18119 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
18121 echo "$as_me: failed program was:" >&5
18122 sed 's/^/| /' conftest.$ac_ext >&5
18124 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
18127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18130 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
18132 cat >>confdefs.h <<\_ACEOF
18133 #define HAVE_PRFPREGSET32_T 1
18137 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18138 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
18140 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18141 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18142 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18143 echo $ECHO_N "(cached) $ECHO_C" >&6
18145 cat >conftest.$ac_ext <<_ACEOF
18148 cat confdefs.h >>conftest.$ac_ext
18149 cat >>conftest.$ac_ext <<_ACEOF
18150 /* end confdefs.h. */
18153 #include <sys/procfs.h>
18162 rm -f conftest.$ac_objext
18163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18164 (eval $ac_compile) 2>conftest.er1
18166 grep -v '^ *+' conftest.er1 >conftest.err
18168 cat conftest.err >&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); } &&
18171 { ac_try='test -z "$ac_c_werror_flag"
18172 || test ! -s conftest.err'
18173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18174 (eval $ac_try) 2>&5
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; } &&
18178 { ac_try='test -s conftest.$ac_objext'
18179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18180 (eval $ac_try) 2>&5
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); }; }; then
18184 bfd_cv_have_sys_procfs_type_lwpid_t=yes
18186 echo "$as_me: failed program was:" >&5
18187 sed 's/^/| /' conftest.$ac_ext >&5
18189 bfd_cv_have_sys_procfs_type_lwpid_t=no
18192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18195 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
18197 cat >>confdefs.h <<\_ACEOF
18198 #define HAVE_LWPID_T 1
18202 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18203 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
18205 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18206 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18207 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18208 echo $ECHO_N "(cached) $ECHO_C" >&6
18210 cat >conftest.$ac_ext <<_ACEOF
18213 cat confdefs.h >>conftest.$ac_ext
18214 cat >>conftest.$ac_ext <<_ACEOF
18215 /* end confdefs.h. */
18218 #include <sys/procfs.h>
18227 rm -f conftest.$ac_objext
18228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18229 (eval $ac_compile) 2>conftest.er1
18231 grep -v '^ *+' conftest.er1 >conftest.err
18233 cat conftest.err >&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); } &&
18236 { ac_try='test -z "$ac_c_werror_flag"
18237 || test ! -s conftest.err'
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; } &&
18243 { ac_try='test -s conftest.$ac_objext'
18244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18245 (eval $ac_try) 2>&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }; }; then
18249 bfd_cv_have_sys_procfs_type_psaddr_t=yes
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18254 bfd_cv_have_sys_procfs_type_psaddr_t=no
18257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18260 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
18262 cat >>confdefs.h <<\_ACEOF
18263 #define HAVE_PSADDR_T 1
18267 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18268 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
18270 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18271 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18272 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18273 echo $ECHO_N "(cached) $ECHO_C" >&6
18275 cat >conftest.$ac_ext <<_ACEOF
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h. */
18283 #include <sys/procfs.h>
18292 rm -f conftest.$ac_objext
18293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18294 (eval $ac_compile) 2>conftest.er1
18296 grep -v '^ *+' conftest.er1 >conftest.err
18298 cat conftest.err >&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); } &&
18301 { ac_try='test -z "$ac_c_werror_flag"
18302 || test ! -s conftest.err'
18303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18304 (eval $ac_try) 2>&5
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); }; } &&
18308 { ac_try='test -s conftest.$ac_objext'
18309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18310 (eval $ac_try) 2>&5
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); }; }; then
18314 bfd_cv_have_sys_procfs_type_prsysent_t=yes
18316 echo "$as_me: failed program was:" >&5
18317 sed 's/^/| /' conftest.$ac_ext >&5
18319 bfd_cv_have_sys_procfs_type_prsysent_t=no
18322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18325 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18327 cat >>confdefs.h <<\_ACEOF
18328 #define HAVE_PRSYSENT_T 1
18332 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18333 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18335 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18336 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18337 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
18340 cat >conftest.$ac_ext <<_ACEOF
18343 cat confdefs.h >>conftest.$ac_ext
18344 cat >>conftest.$ac_ext <<_ACEOF
18345 /* end confdefs.h. */
18348 #include <sys/procfs.h>
18357 rm -f conftest.$ac_objext
18358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18359 (eval $ac_compile) 2>conftest.er1
18361 grep -v '^ *+' conftest.er1 >conftest.err
18363 cat conftest.err >&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); } &&
18366 { ac_try='test -z "$ac_c_werror_flag"
18367 || test ! -s conftest.err'
18368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369 (eval $ac_try) 2>&5
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; } &&
18373 { ac_try='test -s conftest.$ac_objext'
18374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18375 (eval $ac_try) 2>&5
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); }; }; then
18379 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
18381 echo "$as_me: failed program was:" >&5
18382 sed 's/^/| /' conftest.$ac_ext >&5
18384 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18390 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18392 cat >>confdefs.h <<\_ACEOF
18393 #define HAVE_PR_SIGSET_T 1
18397 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18398 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18400 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18401 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18402 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18403 echo $ECHO_N "(cached) $ECHO_C" >&6
18405 cat >conftest.$ac_ext <<_ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h. */
18413 #include <sys/procfs.h>
18417 pr_sigaction64_t avar
18422 rm -f conftest.$ac_objext
18423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18424 (eval $ac_compile) 2>conftest.er1
18426 grep -v '^ *+' conftest.er1 >conftest.err
18428 cat conftest.err >&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } &&
18431 { ac_try='test -z "$ac_c_werror_flag"
18432 || test ! -s conftest.err'
18433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18434 (eval $ac_try) 2>&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); }; } &&
18438 { ac_try='test -s conftest.$ac_objext'
18439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18440 (eval $ac_try) 2>&5
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); }; }; then
18444 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
18446 echo "$as_me: failed program was:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18449 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18455 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18457 cat >>confdefs.h <<\_ACEOF
18458 #define HAVE_PR_SIGACTION64_T 1
18462 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18463 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18465 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18466 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18467 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18468 echo $ECHO_N "(cached) $ECHO_C" >&6
18470 cat >conftest.$ac_ext <<_ACEOF
18473 cat confdefs.h >>conftest.$ac_ext
18474 cat >>conftest.$ac_ext <<_ACEOF
18475 /* end confdefs.h. */
18478 #include <sys/procfs.h>
18482 pr_siginfo64_t avar
18487 rm -f conftest.$ac_objext
18488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18489 (eval $ac_compile) 2>conftest.er1
18491 grep -v '^ *+' conftest.er1 >conftest.err
18493 cat conftest.err >&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); } &&
18496 { ac_try='test -z "$ac_c_werror_flag"
18497 || test ! -s conftest.err'
18498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18499 (eval $ac_try) 2>&5
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); }; } &&
18503 { ac_try='test -s conftest.$ac_objext'
18504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18505 (eval $ac_try) 2>&5
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); }; }; then
18509 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18511 echo "$as_me: failed program was:" >&5
18512 sed 's/^/| /' conftest.$ac_ext >&5
18514 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18520 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18522 cat >>confdefs.h <<\_ACEOF
18523 #define HAVE_PR_SIGINFO64_T 1
18527 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18528 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18534 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18535 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18536 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18537 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18538 echo $ECHO_N "(cached) $ECHO_C" >&6
18540 if test "$cross_compiling" = yes; then
18541 gdb_cv_prfpregset_t_broken=yes
18543 cat >conftest.$ac_ext <<_ACEOF
18546 cat confdefs.h >>conftest.$ac_ext
18547 cat >>conftest.$ac_ext <<_ACEOF
18548 /* end confdefs.h. */
18549 #include <sys/procfs.h>
18552 if (sizeof (prfpregset_t) == sizeof (void *))
18557 rm -f conftest$ac_exeext
18558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18559 (eval $ac_link) 2>&5
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18564 (eval $ac_try) 2>&5
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); }; }; then
18568 gdb_cv_prfpregset_t_broken=no
18570 echo "$as_me: program exited with status $ac_status" >&5
18571 echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18574 ( exit $ac_status )
18575 gdb_cv_prfpregset_t_broken=yes
18577 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18581 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18582 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18583 if test $gdb_cv_prfpregset_t_broken = yes; then
18584 cat >>confdefs.h <<\_ACEOF
18585 #define PRFPREGSET_T_BROKEN 1
18592 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18593 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18594 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18595 echo $ECHO_N "(cached) $ECHO_C" >&6
18597 cat >conftest.$ac_ext <<_ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h. */
18603 #include <unistd.h>
18604 #include <sys/types.h>
18605 #include <sys/procfs.h>
18612 dummy = ioctl(0, PIOCSET, &dummy);
18618 rm -f conftest.$ac_objext
18619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18620 (eval $ac_compile) 2>conftest.er1
18622 grep -v '^ *+' conftest.er1 >conftest.err
18624 cat conftest.err >&5
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } &&
18627 { ac_try='test -z "$ac_c_werror_flag"
18628 || test ! -s conftest.err'
18629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18630 (eval $ac_try) 2>&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; } &&
18634 { ac_try='test -s conftest.$ac_objext'
18635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18636 (eval $ac_try) 2>&5
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); }; }; then
18640 gdb_cv_have_procfs_piocset=yes
18642 echo "$as_me: failed program was:" >&5
18643 sed 's/^/| /' conftest.$ac_ext >&5
18645 gdb_cv_have_procfs_piocset=no
18647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18650 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18651 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18652 if test $gdb_cv_have_procfs_piocset = yes; then
18653 cat >>confdefs.h <<\_ACEOF
18654 #define HAVE_PROCFS_PIOCSET 1
18660 if test ${host} = ${target} ; then
18662 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18663 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18664 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18665 echo $ECHO_N "(cached) $ECHO_C" >&6
18667 cat >conftest.$ac_ext <<_ACEOF
18670 cat confdefs.h >>conftest.$ac_ext
18671 cat >>conftest.$ac_ext <<_ACEOF
18672 /* end confdefs.h. */
18677 struct link_map lm; (void) lm.l_addr;
18682 rm -f conftest.$ac_objext
18683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18684 (eval $ac_compile) 2>conftest.er1
18686 grep -v '^ *+' conftest.er1 >conftest.err
18688 cat conftest.err >&5
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); } &&
18691 { ac_try='test -z "$ac_c_werror_flag"
18692 || test ! -s conftest.err'
18693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694 (eval $ac_try) 2>&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; } &&
18698 { ac_try='test -s conftest.$ac_objext'
18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700 (eval $ac_try) 2>&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; }; then
18704 gdb_cv_have_struct_link_map_with_l_members=yes
18706 echo "$as_me: failed program was:" >&5
18707 sed 's/^/| /' conftest.$ac_ext >&5
18709 gdb_cv_have_struct_link_map_with_l_members=no
18711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18714 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18715 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18716 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18717 cat >>confdefs.h <<\_ACEOF
18718 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18724 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18725 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18726 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18727 echo $ECHO_N "(cached) $ECHO_C" >&6
18729 cat >conftest.$ac_ext <<_ACEOF
18732 cat confdefs.h >>conftest.$ac_ext
18733 cat >>conftest.$ac_ext <<_ACEOF
18734 /* end confdefs.h. */
18735 #include <sys/types.h>
18740 struct link_map lm; (void) lm.lm_addr;
18745 rm -f conftest.$ac_objext
18746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18747 (eval $ac_compile) 2>conftest.er1
18749 grep -v '^ *+' conftest.er1 >conftest.err
18751 cat conftest.err >&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } &&
18754 { ac_try='test -z "$ac_c_werror_flag"
18755 || test ! -s conftest.err'
18756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757 (eval $ac_try) 2>&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; } &&
18761 { ac_try='test -s conftest.$ac_objext'
18762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763 (eval $ac_try) 2>&5
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; }; then
18767 gdb_cv_have_struct_link_map_with_lm_members=yes
18769 echo "$as_me: failed program was:" >&5
18770 sed 's/^/| /' conftest.$ac_ext >&5
18772 gdb_cv_have_struct_link_map_with_lm_members=no
18774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18777 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18778 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18779 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18780 cat >>confdefs.h <<\_ACEOF
18781 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18787 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18788 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18789 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18790 echo $ECHO_N "(cached) $ECHO_C" >&6
18792 cat >conftest.$ac_ext <<_ACEOF
18795 cat confdefs.h >>conftest.$ac_ext
18796 cat >>conftest.$ac_ext <<_ACEOF
18797 /* end confdefs.h. */
18798 #include <sys/types.h>
18799 #ifdef HAVE_NLIST_H
18806 struct so_map lm; (void) lm.som_addr;
18811 rm -f conftest.$ac_objext
18812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18813 (eval $ac_compile) 2>conftest.er1
18815 grep -v '^ *+' conftest.er1 >conftest.err
18817 cat conftest.err >&5
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); } &&
18820 { ac_try='test -z "$ac_c_werror_flag"
18821 || test ! -s conftest.err'
18822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18823 (eval $ac_try) 2>&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; } &&
18827 { ac_try='test -s conftest.$ac_objext'
18828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18829 (eval $ac_try) 2>&5
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); }; }; then
18833 gdb_cv_have_struct_so_map_with_som_members=yes
18835 echo "$as_me: failed program was:" >&5
18836 sed 's/^/| /' conftest.$ac_ext >&5
18838 gdb_cv_have_struct_so_map_with_som_members=no
18840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18843 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18844 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
18845 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
18846 cat >>confdefs.h <<\_ACEOF
18847 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
18853 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18854 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18855 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18856 echo $ECHO_N "(cached) $ECHO_C" >&6
18858 cat >conftest.$ac_ext <<_ACEOF
18861 cat confdefs.h >>conftest.$ac_ext
18862 cat >>conftest.$ac_ext <<_ACEOF
18863 /* end confdefs.h. */
18865 #include <sys/link.h>
18869 struct link_map32 l;
18874 rm -f conftest.$ac_objext
18875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18876 (eval $ac_compile) 2>conftest.er1
18878 grep -v '^ *+' conftest.er1 >conftest.err
18880 cat conftest.err >&5
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); } &&
18883 { ac_try='test -z "$ac_c_werror_flag"
18884 || test ! -s conftest.err'
18885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18886 (eval $ac_try) 2>&5
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); }; } &&
18890 { ac_try='test -s conftest.$ac_objext'
18891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18892 (eval $ac_try) 2>&5
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); }; }; then
18896 gdb_cv_have_struct_link_map32=yes
18898 echo "$as_me: failed program was:" >&5
18899 sed 's/^/| /' conftest.$ac_ext >&5
18901 gdb_cv_have_struct_link_map32=no
18903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18906 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18907 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
18908 if test $gdb_cv_have_struct_link_map32 = yes; then
18909 cat >>confdefs.h <<\_ACEOF
18910 #define HAVE_STRUCT_LINK_MAP32 1
18913 cat >>confdefs.h <<\_ACEOF
18914 #define _SYSCALL32 1
18921 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18922 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18923 if test "${gdb_cv_c_long_long+set}" = set; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
18926 cat >conftest.$ac_ext <<_ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h. */
18937 extern long long foo;
18938 switch (foo & 2) { case 0: return 1; }
18944 rm -f conftest.$ac_objext
18945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18946 (eval $ac_compile) 2>conftest.er1
18948 grep -v '^ *+' conftest.er1 >conftest.err
18950 cat conftest.err >&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); } &&
18953 { ac_try='test -z "$ac_c_werror_flag"
18954 || test ! -s conftest.err'
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; } &&
18960 { ac_try='test -s conftest.$ac_objext'
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
18966 gdb_cv_c_long_long=yes
18968 echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18971 gdb_cv_c_long_long=no
18973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18976 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18977 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
18978 if test $gdb_cv_c_long_long = yes; then
18979 cat >>confdefs.h <<\_ACEOF
18980 #define CC_HAS_LONG_LONG 1
18986 echo "$as_me:$LINENO: checking for long long support in printf" >&5
18987 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18988 if test "${gdb_cv_printf_has_long_long+set}" = set; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
18991 if test "$cross_compiling" = yes; then
18992 gdb_cv_printf_has_long_long=no
18994 cat >conftest.$ac_ext <<_ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h. */
19004 l = (l << 16) + 0x0123;
19005 l = (l << 16) + 0x4567;
19006 l = (l << 16) + 0x89ab;
19007 l = (l << 16) + 0xcdef;
19008 sprintf (buf, "0x%016llx", l);
19009 return (strcmp ("0x0123456789abcdef", buf));
19012 rm -f conftest$ac_exeext
19013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19014 (eval $ac_link) 2>&5
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19019 (eval $ac_try) 2>&5
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); }; }; then
19023 gdb_cv_printf_has_long_long=yes
19025 echo "$as_me: program exited with status $ac_status" >&5
19026 echo "$as_me: failed program was:" >&5
19027 sed 's/^/| /' conftest.$ac_ext >&5
19029 ( exit $ac_status )
19030 gdb_cv_printf_has_long_long=no
19032 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19036 if test $gdb_cv_printf_has_long_long = yes; then
19037 cat >>confdefs.h <<\_ACEOF
19038 #define PRINTF_HAS_LONG_LONG 1
19042 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
19043 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
19046 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
19047 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
19048 if test "${ac_cv_c_long_double+set}" = set; then
19049 echo $ECHO_N "(cached) $ECHO_C" >&6
19051 cat >conftest.$ac_ext <<_ACEOF
19054 cat confdefs.h >>conftest.$ac_ext
19055 cat >>conftest.$ac_ext <<_ACEOF
19056 /* end confdefs.h. */
19066 rm -f conftest.$ac_objext
19067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19068 (eval $ac_compile) 2>conftest.er1
19070 grep -v '^ *+' conftest.er1 >conftest.err
19072 cat conftest.err >&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); } &&
19075 { ac_try='test -z "$ac_c_werror_flag"
19076 || test ! -s conftest.err'
19077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078 (eval $ac_try) 2>&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; } &&
19082 { ac_try='test -s conftest.$ac_objext'
19083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19084 (eval $ac_try) 2>&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); }; }; then
19088 ac_cv_c_long_double=yes
19090 echo "$as_me: failed program was:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19093 ac_cv_c_long_double=no
19095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19098 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
19099 echo "${ECHO_T}$ac_cv_c_long_double" >&6
19100 if test $ac_cv_c_long_double = yes; then
19101 cat >>confdefs.h <<\_ACEOF
19102 #define HAVE_LONG_DOUBLE 1
19108 echo "$as_me:$LINENO: checking for long double support in printf" >&5
19109 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19110 if test "${gdb_cv_printf_has_long_double+set}" = set; then
19111 echo $ECHO_N "(cached) $ECHO_C" >&6
19113 if test "$cross_compiling" = yes; then
19114 gdb_cv_printf_has_long_double=no
19116 cat >conftest.$ac_ext <<_ACEOF
19119 cat confdefs.h >>conftest.$ac_ext
19120 cat >>conftest.$ac_ext <<_ACEOF
19121 /* end confdefs.h. */
19125 long double f = 3.141592653;
19126 sprintf (buf, "%Lg", f);
19127 return (strncmp ("3.14159", buf, 7));
19130 rm -f conftest$ac_exeext
19131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19132 (eval $ac_link) 2>&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; }; then
19141 gdb_cv_printf_has_long_double=yes
19143 echo "$as_me: program exited with status $ac_status" >&5
19144 echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19147 ( exit $ac_status )
19148 gdb_cv_printf_has_long_double=no
19150 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19154 if test $gdb_cv_printf_has_long_double = yes; then
19155 cat >>confdefs.h <<\_ACEOF
19156 #define PRINTF_HAS_LONG_DOUBLE 1
19160 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19161 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
19164 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19165 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19166 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
19169 if test "$cross_compiling" = yes; then
19170 gdb_cv_scanf_has_long_double=no
19172 cat >conftest.$ac_ext <<_ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h. */
19180 char *buf = "3.141592653";
19182 sscanf (buf, "%Lg", &f);
19183 return !(f > 3.14159 && f < 3.14160);
19186 rm -f conftest$ac_exeext
19187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19188 (eval $ac_link) 2>&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; }; then
19197 gdb_cv_scanf_has_long_double=yes
19199 echo "$as_me: program exited with status $ac_status" >&5
19200 echo "$as_me: failed program was:" >&5
19201 sed 's/^/| /' conftest.$ac_ext >&5
19203 ( exit $ac_status )
19204 gdb_cv_scanf_has_long_double=no
19206 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19210 if test $gdb_cv_scanf_has_long_double = yes; then
19211 cat >>confdefs.h <<\_ACEOF
19212 #define SCANF_HAS_LONG_DOUBLE 1
19216 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19217 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19221 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19222 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19223 if test "${gdb_cv_bigtoc+set}" = set; then
19224 echo $ECHO_N "(cached) $ECHO_C" >&6
19227 SAVE_LDFLAGS=$LDFLAGS
19230 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19231 *) gdb_cv_bigtoc=-bbigtoc ;;
19234 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
19235 cat >conftest.$ac_ext <<_ACEOF
19238 cat confdefs.h >>conftest.$ac_ext
19239 cat >>conftest.$ac_ext <<_ACEOF
19240 /* end confdefs.h. */
19250 rm -f conftest.$ac_objext conftest$ac_exeext
19251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19252 (eval $ac_link) 2>conftest.er1
19254 grep -v '^ *+' conftest.er1 >conftest.err
19256 cat conftest.err >&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); } &&
19259 { ac_try='test -z "$ac_c_werror_flag"
19260 || test ! -s conftest.err'
19261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19262 (eval $ac_try) 2>&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); }; } &&
19266 { ac_try='test -s conftest$ac_exeext'
19267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268 (eval $ac_try) 2>&5
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); }; }; then
19274 echo "$as_me: failed program was:" >&5
19275 sed 's/^/| /' conftest.$ac_ext >&5
19279 rm -f conftest.err conftest.$ac_objext \
19280 conftest$ac_exeext conftest.$ac_ext
19281 LDFLAGS="${SAVE_LDFLAGS}"
19284 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19285 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19286 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19292 if test ${build} = ${host} -a ${host} = ${target} ; then
19295 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19296 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19297 if test -f /usr/include/dce/cma_config.h ; then
19298 if test "$GCC" = "yes" ; then
19299 echo "$as_me:$LINENO: result: yes" >&5
19300 echo "${ECHO_T}yes" >&6
19301 cat >>confdefs.h <<\_ACEOF
19302 #define HAVE_HPUX_THREAD_SUPPORT 1
19305 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
19306 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19308 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19309 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19312 echo "$as_me:$LINENO: result: no" >&5
19313 echo "${ECHO_T}no" >&6
19317 # See if thread_db library is around for Solaris thread debugging.
19318 # Note that we must explicitly test for version 1 of the library
19319 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19321 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19322 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19323 if test -f /usr/lib/libthread_db.so.1 ; then
19324 echo "$as_me:$LINENO: result: yes" >&5
19325 echo "${ECHO_T}yes" >&6
19326 cat >>confdefs.h <<\_ACEOF
19327 #define HAVE_THREAD_DB_LIB 1
19330 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
19331 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
19333 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19334 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19335 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19336 echo $ECHO_N "(cached) $ECHO_C" >&6
19338 ac_check_lib_save_LIBS=$LIBS
19340 cat >conftest.$ac_ext <<_ACEOF
19343 cat confdefs.h >>conftest.$ac_ext
19344 cat >>conftest.$ac_ext <<_ACEOF
19345 /* end confdefs.h. */
19347 /* Override any gcc2 internal prototype to avoid an error. */
19351 /* We use char because int might match the return type of a gcc2
19352 builtin and then its argument prototype would still apply. */
19362 rm -f conftest.$ac_objext conftest$ac_exeext
19363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19364 (eval $ac_link) 2>conftest.er1
19366 grep -v '^ *+' conftest.er1 >conftest.err
19368 cat conftest.err >&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); } &&
19371 { ac_try='test -z "$ac_c_werror_flag"
19372 || test ! -s conftest.err'
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; } &&
19378 { ac_try='test -s conftest$ac_exeext'
19379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380 (eval $ac_try) 2>&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); }; }; then
19384 ac_cv_lib_dl_dlopen=yes
19386 echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19389 ac_cv_lib_dl_dlopen=no
19391 rm -f conftest.err conftest.$ac_objext \
19392 conftest$ac_exeext conftest.$ac_ext
19393 LIBS=$ac_check_lib_save_LIBS
19395 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19396 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19397 if test $ac_cv_lib_dl_dlopen = yes; then
19398 cat >>confdefs.h <<_ACEOF
19399 #define HAVE_LIBDL 1
19406 if test "$GCC" = "yes" ; then
19407 # The GNU linker requires the -export-dynamic option to make
19408 # all symbols visible in the dynamic symbol table.
19409 hold_ldflags=$LDFLAGS
19410 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19411 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19412 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
19413 cat >conftest.$ac_ext <<_ACEOF
19416 cat confdefs.h >>conftest.$ac_ext
19417 cat >>conftest.$ac_ext <<_ACEOF
19418 /* end confdefs.h. */
19428 rm -f conftest.$ac_objext conftest$ac_exeext
19429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19430 (eval $ac_link) 2>conftest.er1
19432 grep -v '^ *+' conftest.er1 >conftest.err
19434 cat conftest.err >&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); } &&
19437 { ac_try='test -z "$ac_c_werror_flag"
19438 || test ! -s conftest.err'
19439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440 (eval $ac_try) 2>&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); }; } &&
19444 { ac_try='test -s conftest$ac_exeext'
19445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446 (eval $ac_try) 2>&5
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); }; }; then
19452 echo "$as_me: failed program was:" >&5
19453 sed 's/^/| /' conftest.$ac_ext >&5
19457 rm -f conftest.err conftest.$ac_objext \
19458 conftest$ac_exeext conftest.$ac_ext
19459 LDFLAGS=$hold_ldflags
19460 echo "$as_me:$LINENO: result: $found" >&5
19461 echo "${ECHO_T}$found" >&6
19462 if test $found = yes; then
19463 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19466 # Sun randomly tweaked the prototypes in <proc_service.h>
19468 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19469 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19470 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19471 echo $ECHO_N "(cached) $ECHO_C" >&6
19474 cat >conftest.$ac_ext <<_ACEOF
19477 cat confdefs.h >>conftest.$ac_ext
19478 cat >>conftest.$ac_ext <<_ACEOF
19479 /* end confdefs.h. */
19481 #include <proc_service.h>
19482 ps_err_e ps_pdwrite
19483 (struct ps_prochandle*, psaddr_t, const void*, size_t);
19493 rm -f conftest.$ac_objext
19494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19495 (eval $ac_compile) 2>conftest.er1
19497 grep -v '^ *+' conftest.er1 >conftest.err
19499 cat conftest.err >&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); } &&
19502 { ac_try='test -z "$ac_c_werror_flag"
19503 || test ! -s conftest.err'
19504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505 (eval $ac_try) 2>&5
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; } &&
19509 { ac_try='test -s conftest.$ac_objext'
19510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19511 (eval $ac_try) 2>&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; }; then
19515 gdb_cv_proc_service_is_old=no
19517 echo "$as_me: failed program was:" >&5
19518 sed 's/^/| /' conftest.$ac_ext >&5
19520 gdb_cv_proc_service_is_old=yes
19522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19526 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19527 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19528 if test $gdb_cv_proc_service_is_old = yes; then
19529 cat >>confdefs.h <<\_ACEOF
19530 #define PROC_SERVICE_IS_OLD 1
19535 echo "$as_me:$LINENO: result: no" >&5
19536 echo "${ECHO_T}no" >&6
19540 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19541 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19542 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19543 echo $ECHO_N "(cached) $ECHO_C" >&6
19545 cat >conftest.$ac_ext <<_ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h. */
19551 #include <sys/pthdebug.h>
19555 #ifndef PTHDB_VERSION_3
19562 rm -f conftest.$ac_objext
19563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19564 (eval $ac_compile) 2>conftest.er1
19566 grep -v '^ *+' conftest.er1 >conftest.err
19568 cat conftest.err >&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } &&
19571 { ac_try='test -z "$ac_c_werror_flag"
19572 || test ! -s conftest.err'
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; } &&
19578 { ac_try='test -s conftest.$ac_objext'
19579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580 (eval $ac_try) 2>&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); }; }; then
19584 gdb_cv_have_aix_thread_debug=yes
19586 echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19589 gdb_cv_have_aix_thread_debug=no
19591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19594 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19595 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19596 if test $gdb_cv_have_aix_thread_debug = yes; then
19597 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
19598 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
19599 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19606 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19607 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19608 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19609 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19610 echo $ECHO_N "(cached) $ECHO_C" >&6
19612 cat >conftest.$ac_ext <<_ACEOF
19615 cat confdefs.h >>conftest.$ac_ext
19616 cat >>conftest.$ac_ext <<_ACEOF
19617 /* end confdefs.h. */
19618 #include <thread_db.h>
19622 int i = TD_NOTALLOC;
19627 rm -f conftest.$ac_objext
19628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19629 (eval $ac_compile) 2>conftest.er1
19631 grep -v '^ *+' conftest.er1 >conftest.err
19633 cat conftest.err >&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); } &&
19636 { ac_try='test -z "$ac_c_werror_flag"
19637 || test ! -s conftest.err'
19638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19639 (eval $ac_try) 2>&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; } &&
19643 { ac_try='test -s conftest.$ac_objext'
19644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19645 (eval $ac_try) 2>&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; }; then
19649 gdb_cv_thread_db_h_has_td_notalloc=yes
19651 echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19654 gdb_cv_thread_db_h_has_td_notalloc=no
19657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19660 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19661 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19663 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19665 cat >>confdefs.h <<\_ACEOF
19666 #define THREAD_DB_HAS_TD_NOTALLOC 1
19671 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19672 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19673 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19674 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19675 echo $ECHO_N "(cached) $ECHO_C" >&6
19677 cat >conftest.$ac_ext <<_ACEOF
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h. */
19683 #include <sys/syscall.h>
19687 int i = __NR_tkill;
19692 rm -f conftest.$ac_objext
19693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19694 (eval $ac_compile) 2>conftest.er1
19696 grep -v '^ *+' conftest.er1 >conftest.err
19698 cat conftest.err >&5
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); } &&
19701 { ac_try='test -z "$ac_c_werror_flag"
19702 || test ! -s conftest.err'
19703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19704 (eval $ac_try) 2>&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); }; } &&
19708 { ac_try='test -s conftest.$ac_objext'
19709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19710 (eval $ac_try) 2>&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); }; }; then
19714 gdb_cv_sys_syscall_h_has_tkill=yes
19716 echo "$as_me: failed program was:" >&5
19717 sed 's/^/| /' conftest.$ac_ext >&5
19719 gdb_cv_sys_syscall_h_has_tkill=no
19722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19725 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19726 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19728 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19730 cat >>confdefs.h <<\_ACEOF
19731 #define HAVE_TKILL_SYSCALL 1
19738 # Check whether --with-sysroot or --without-sysroot was given.
19739 if test "${with_sysroot+set}" = set; then
19740 withval="$with_sysroot"
19742 case ${with_sysroot} in
19743 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
19744 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19747 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19749 if test "x$exec_prefix" = xNONE; then
19750 if test "x$prefix" = xNONE; then
19751 test_prefix=/usr/local
19753 test_prefix=$prefix
19756 test_prefix=$exec_prefix
19758 case ${TARGET_SYSTEM_ROOT} in
19759 "${test_prefix}"|"${test_prefix}/"*|\
19760 '${exec_prefix}'|'${exec_prefix}/'*)
19761 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19762 TARGET_SYSTEM_ROOT_DEFINE="$t"
19768 TARGET_SYSTEM_ROOT=
19769 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19775 # NOTE: Don't add -Wall or -Wunused, they both include
19776 # -Wunused-parameter which reports bogus warnings.
19777 # NOTE: If you add to this list, remember to update
19778 # gdb/doc/gdbint.texinfo.
19779 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
19780 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \
19781 -Wunused-label -Wunused-function"
19782 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
19783 # -Wunused-function -Wunused-variable -Wunused-value
19784 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
19785 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
19786 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
19787 # -Woverloaded-virtual -Winline -Werror"
19788 # Check whether --enable-build-warnings or --disable-build-warnings was given.
19789 if test "${enable_build_warnings+set}" = set; then
19790 enableval="$enable_build_warnings"
19791 case "${enableval}" in
19793 no) build_warnings="-w";;
19794 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19795 build_warnings="${build_warnings} ${t}";;
19796 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19797 build_warnings="${t} ${build_warnings}";;
19798 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19800 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19801 echo "Setting compiler warning flags = $build_warnings" 6>&1
19803 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
19804 if test "${enable_gdb_build_warnings+set}" = set; then
19805 enableval="$enable_gdb_build_warnings"
19806 case "${enableval}" in
19808 no) build_warnings="-w";;
19809 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19810 build_warnings="${build_warnings} ${t}";;
19811 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19812 build_warnings="${t} ${build_warnings}";;
19813 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19815 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19816 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
19820 if test "x${build_warnings}" != x -a "x$GCC" = xyes
19822 echo "$as_me:$LINENO: checking compiler warning flags" >&5
19823 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
19824 # Separate out the -Werror flag as some files just cannot be
19825 # compiled with it enabled.
19826 for w in ${build_warnings}; do
19828 -Werr*) WERROR_CFLAGS=-Werror ;;
19829 *) # Check that GCC accepts it
19830 saved_CFLAGS="$CFLAGS"
19831 CFLAGS="$CFLAGS $w"
19832 cat >conftest.$ac_ext <<_ACEOF
19835 cat confdefs.h >>conftest.$ac_ext
19836 cat >>conftest.$ac_ext <<_ACEOF
19837 /* end confdefs.h. */
19847 rm -f conftest.$ac_objext
19848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19849 (eval $ac_compile) 2>conftest.er1
19851 grep -v '^ *+' conftest.er1 >conftest.err
19853 cat conftest.err >&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } &&
19856 { ac_try='test -z "$ac_c_werror_flag"
19857 || test ! -s conftest.err'
19858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19859 (eval $ac_try) 2>&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); }; } &&
19863 { ac_try='test -s conftest.$ac_objext'
19864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19865 (eval $ac_try) 2>&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }; }; then
19869 WARN_CFLAGS="${WARN_CFLAGS} $w"
19871 echo "$as_me: failed program was:" >&5
19872 sed 's/^/| /' conftest.$ac_ext >&5
19875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19876 CFLAGS="$saved_CFLAGS"
19879 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
19880 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
19885 # In the Cygwin environment, we need some additional flags.
19886 echo "$as_me:$LINENO: checking for cygwin" >&5
19887 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
19888 if test "${gdb_cv_os_cygwin+set}" = set; then
19889 echo $ECHO_N "(cached) $ECHO_C" >&6
19891 cat >conftest.$ac_ext <<_ACEOF
19894 cat confdefs.h >>conftest.$ac_ext
19895 cat >>conftest.$ac_ext <<_ACEOF
19896 /* end confdefs.h. */
19898 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
19902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19903 $EGREP "lose" >/dev/null 2>&1; then
19904 gdb_cv_os_cygwin=yes
19906 gdb_cv_os_cygwin=no
19911 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
19912 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
19915 SER_HARDWIRE="ser-unix.o ser-pipe.o ser-tcp.o"
19917 *go32* ) SER_HARDWIRE=ser-go32.o ;;
19918 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
19922 # libreadline needs libuser32.a in a cygwin environment
19924 if test x$gdb_cv_os_cygwin = xyes; then
19925 WIN32LIBS="-luser32"
19926 case "${target}" in
19927 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
19933 LIBGUI="../libgui/src/libgui.a"
19934 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
19952 if test "${enable_gdbtk}" = "yes"; then
19954 # Gdbtk must have an absolute path to srcdir in order to run
19955 # properly when not installed.
19958 GDBTK_SRC_DIR=`pwd`
19963 # Ok, lets find the tcl configuration
19964 # First, look for one uninstalled.
19965 # the alternative search directory is invoked by --with-tclconfig
19968 if test x"${no_tcl}" = x ; then
19969 # we reset no_tcl in case something fails here
19972 # Check whether --with-tclconfig or --without-tclconfig was given.
19973 if test "${with_tclconfig+set}" = set; then
19974 withval="$with_tclconfig"
19975 with_tclconfig=${withval}
19977 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
19978 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
19979 if test "${ac_cv_c_tclconfig+set}" = set; then
19980 echo $ECHO_N "(cached) $ECHO_C" >&6
19984 # First check to see if --with-tclconfig was specified.
19985 if test x"${with_tclconfig}" != x ; then
19986 if test -f "${with_tclconfig}/tclConfig.sh" ; then
19987 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
19989 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
19990 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
19991 { (exit 1); exit 1; }; }
19995 # then check for a private Tcl installation
19996 if test x"${ac_cv_c_tclconfig}" = x ; then
19999 `ls -dr ../tcl[7-9]* 2>/dev/null` \
20001 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
20003 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
20004 if test -f "$i/${configdir}/tclConfig.sh" ; then
20005 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20010 # check in a few common install locations
20011 if test x"${ac_cv_c_tclconfig}" = x ; then
20012 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20013 if test -f "$i/tclConfig.sh" ; then
20014 ac_cv_c_tclconfig=`(cd $i; pwd)`
20019 # check in a few other private locations
20020 if test x"${ac_cv_c_tclconfig}" = x ; then
20023 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
20024 if test -f "$i/${configdir}/tclConfig.sh" ; then
20025 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20033 if test x"${ac_cv_c_tclconfig}" = x ; then
20034 TCLCONFIG="# no Tcl configs found"
20035 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20036 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
20039 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
20040 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
20041 echo "${ECHO_T}found $TCLCONFIG" >&6
20045 if test -z "${no_tcl}"; then
20076 # Ok, lets find the tk configuration
20077 # First, look for one uninstalled.
20078 # the alternative search directory is invoked by --with-tkconfig
20081 if test x"${no_tk}" = x ; then
20082 # we reset no_tk in case something fails here
20085 # Check whether --with-tkconfig or --without-tkconfig was given.
20086 if test "${with_tkconfig+set}" = set; then
20087 withval="$with_tkconfig"
20088 with_tkconfig=${withval}
20090 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20091 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20092 if test "${ac_cv_c_tkconfig+set}" = set; then
20093 echo $ECHO_N "(cached) $ECHO_C" >&6
20097 # First check to see if --with-tkconfig was specified.
20098 if test x"${with_tkconfig}" != x ; then
20099 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20100 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20102 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20103 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20104 { (exit 1); exit 1; }; }
20108 # then check for a private Tk library
20109 if test x"${ac_cv_c_tkconfig}" = x ; then
20112 `ls -dr ../tk[4-9]* 2>/dev/null` \
20114 `ls -dr ../../tk[4-9]* 2>/dev/null` \
20116 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
20117 if test -f "$i/${configdir}/tkConfig.sh" ; then
20118 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20123 # check in a few common install locations
20124 if test x"${ac_cv_c_tkconfig}" = x ; then
20125 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20126 if test -f "$i/tkConfig.sh" ; then
20127 ac_cv_c_tkconfig=`(cd $i; pwd)`
20132 # check in a few other private locations
20133 if test x"${ac_cv_c_tkconfig}" = x ; then
20136 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20137 if test -f "$i/${configdir}/tkConfig.sh" ; then
20138 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20146 if test x"${ac_cv_c_tkconfig}" = x ; then
20147 TKCONFIG="# no Tk configs found"
20148 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20149 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20152 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
20153 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20154 echo "${ECHO_T}found $TKCONFIG" >&6
20160 # now look for Tcl library stuff
20162 tcldir="../tcl/${configdir}/"
20164 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20166 # If $no_tk is nonempty, then we can't do Tk, and there is no
20167 # point to doing Tcl.
20168 if test -z "${no_tk}"; then
20170 if test -f "$TKCONFIG" ; then
20188 # Ok, lets find the tcl source trees so we can use the headers
20189 # Warning: transition of version 9 to 10 will break this algorithm
20190 # because 10 sorts before 9. We also look for just tcl. We have to
20191 # be careful that we don't match stuff like tclX by accident.
20192 # the alternative search directory is involked by --with-tclinclude
20196 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20197 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20199 # Check whether --with-tclinclude or --without-tclinclude was given.
20200 if test "${with_tclinclude+set}" = set; then
20201 withval="$with_tclinclude"
20202 with_tclinclude=${withval}
20204 if test "${ac_cv_c_tclh+set}" = set; then
20205 echo $ECHO_N "(cached) $ECHO_C" >&6
20208 # first check to see if --with-tclinclude was specified
20209 if test x"${with_tclinclude}" != x ; then
20210 if test -f ${with_tclinclude}/tclInt.h ; then
20211 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20212 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20213 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20215 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20216 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20217 { (exit 1); exit 1; }; }
20221 # next check if it came with Tcl configuration file
20222 if test x"${ac_cv_c_tclconfig}" = x ; then
20223 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20224 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20228 # next check in private source directory
20230 # since ls returns lowest version numbers first, reverse its output
20231 if test x"${ac_cv_c_tclh}" = x ; then
20234 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20235 ${srcdir}/../../tcl \
20236 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20237 ${srcdir}/../../../tcl \
20238 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20239 if test -f $i/generic/tclInt.h ; then
20240 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20245 # finally check in a few common install locations
20247 # since ls returns lowest version numbers first, reverse its output
20248 if test x"${ac_cv_c_tclh}" = x ; then
20250 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20251 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20252 /usr/local/src/tcl \
20253 /usr/local/lib/tcl \
20254 ${prefix}/include ; do
20255 if test -f $i/generic/tclInt.h ; then
20256 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20261 # see if one is installed
20262 if test x"${ac_cv_c_tclh}" = x ; then
20263 if test "${ac_cv_header_tclInt_h+set}" = set; then
20264 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20265 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20266 if test "${ac_cv_header_tclInt_h+set}" = set; then
20267 echo $ECHO_N "(cached) $ECHO_C" >&6
20269 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20270 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20272 # Is the header compilable?
20273 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20274 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20275 cat >conftest.$ac_ext <<_ACEOF
20278 cat confdefs.h >>conftest.$ac_ext
20279 cat >>conftest.$ac_ext <<_ACEOF
20280 /* end confdefs.h. */
20281 $ac_includes_default
20282 #include <tclInt.h>
20284 rm -f conftest.$ac_objext
20285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20286 (eval $ac_compile) 2>conftest.er1
20288 grep -v '^ *+' conftest.er1 >conftest.err
20290 cat conftest.err >&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); } &&
20293 { ac_try='test -z "$ac_c_werror_flag"
20294 || test ! -s conftest.err'
20295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20296 (eval $ac_try) 2>&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); }; } &&
20300 { ac_try='test -s conftest.$ac_objext'
20301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302 (eval $ac_try) 2>&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); }; }; then
20306 ac_header_compiler=yes
20308 echo "$as_me: failed program was:" >&5
20309 sed 's/^/| /' conftest.$ac_ext >&5
20311 ac_header_compiler=no
20313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20314 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20315 echo "${ECHO_T}$ac_header_compiler" >&6
20317 # Is the header present?
20318 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20319 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20320 cat >conftest.$ac_ext <<_ACEOF
20323 cat confdefs.h >>conftest.$ac_ext
20324 cat >>conftest.$ac_ext <<_ACEOF
20325 /* end confdefs.h. */
20326 #include <tclInt.h>
20328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20331 grep -v '^ *+' conftest.er1 >conftest.err
20333 cat conftest.err >&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } >/dev/null; then
20336 if test -s conftest.err; then
20337 ac_cpp_err=$ac_c_preproc_warn_flag
20338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20345 if test -z "$ac_cpp_err"; then
20346 ac_header_preproc=yes
20348 echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20351 ac_header_preproc=no
20353 rm -f conftest.err conftest.$ac_ext
20354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20355 echo "${ECHO_T}$ac_header_preproc" >&6
20357 # So? What about this header?
20358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20360 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20361 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20362 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20363 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20364 ac_header_preproc=yes
20367 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20368 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20369 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
20370 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
20371 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20372 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20373 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
20374 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20375 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20376 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20377 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20378 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20381 ## ------------------------------------------ ##
20382 ## Report this to the AC_PACKAGE_NAME lists. ##
20383 ## ------------------------------------------ ##
20386 sed "s/^/$as_me: WARNING: /" >&2
20389 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20390 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20391 if test "${ac_cv_header_tclInt_h+set}" = set; then
20392 echo $ECHO_N "(cached) $ECHO_C" >&6
20394 ac_cv_header_tclInt_h=$ac_header_preproc
20396 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20397 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20400 if test $ac_cv_header_tclInt_h = yes; then
20401 ac_cv_c_tclh=installed
20411 if test x"${ac_cv_c_tclh}" = x ; then
20412 TCLHDIR="# no Tcl private headers found"
20413 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20414 echo "$as_me: error: Can't find Tcl private headers" >&2;}
20415 { (exit 1); exit 1; }; }
20417 if test x"${ac_cv_c_tclh}" != x ; then
20419 if test x"${ac_cv_c_tclh}" = x"installed" ; then
20420 echo "$as_me:$LINENO: result: is installed" >&5
20421 echo "${ECHO_T}is installed" >&6
20424 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20425 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
20426 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20427 TCLHDIR="-I${ac_cv_c_tclh}"
20435 # Ok, lets find the tk source trees so we can use the headers
20436 # If the directory (presumably symlink) named "tk" exists, use that one
20437 # in preference to any others. Same logic is used when choosing library
20438 # and again with Tcl. The search order is the best place to look first, then in
20439 # decreasing significance. The loop breaks if the trigger file is found.
20440 # Note the gross little conversion here of srcdir by cd'ing to the found
20441 # directory. This converts the path from a relative to an absolute, so
20442 # recursive cache variables for the path will work right. We check all
20443 # the possible paths in one loop rather than many seperate loops to speed
20445 # the alternative search directory is involked by --with-tkinclude
20448 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20449 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20451 # Check whether --with-tkinclude or --without-tkinclude was given.
20452 if test "${with_tkinclude+set}" = set; then
20453 withval="$with_tkinclude"
20454 with_tkinclude=${withval}
20456 if test "${ac_cv_c_tkh+set}" = set; then
20457 echo $ECHO_N "(cached) $ECHO_C" >&6
20460 # first check to see if --with-tkinclude was specified
20461 if test x"${with_tkinclude}" != x ; then
20462 if test -f ${with_tkinclude}/tk.h ; then
20463 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20464 elif test -f ${with_tkinclude}/generic/tk.h ; then
20465 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20467 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20468 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20469 { (exit 1); exit 1; }; }
20473 # next check if it came with Tk configuration file
20474 if test x"${ac_cv_c_tkconfig}" = x ; then
20475 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
20476 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
20480 # next check in private source directory
20482 # since ls returns lowest version numbers first, reverse its output
20483 if test x"${ac_cv_c_tkh}" = x ; then
20486 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
20487 ${srcdir}/../../tk \
20488 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
20489 ${srcdir}/../../../tk \
20490 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
20491 if test -f $i/generic/tk.h ; then
20492 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20497 # finally check in a few common install locations
20499 # since ls returns lowest version numbers first, reverse its output
20500 if test x"${ac_cv_c_tkh}" = x ; then
20502 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20503 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20504 /usr/local/src/tk \
20505 /usr/local/lib/tk \
20506 ${prefix}/include ; do
20507 if test -f $i/generic/tk.h ; then
20508 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20513 # see if one is installed
20514 if test x"${ac_cv_c_tkh}" = x ; then
20515 if test "${ac_cv_header_tk_h+set}" = set; then
20516 echo "$as_me:$LINENO: checking for tk.h" >&5
20517 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20518 if test "${ac_cv_header_tk_h+set}" = set; then
20519 echo $ECHO_N "(cached) $ECHO_C" >&6
20521 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20522 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20524 # Is the header compilable?
20525 echo "$as_me:$LINENO: checking tk.h usability" >&5
20526 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
20527 cat >conftest.$ac_ext <<_ACEOF
20530 cat confdefs.h >>conftest.$ac_ext
20531 cat >>conftest.$ac_ext <<_ACEOF
20532 /* end confdefs.h. */
20533 $ac_includes_default
20536 rm -f conftest.$ac_objext
20537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20538 (eval $ac_compile) 2>conftest.er1
20540 grep -v '^ *+' conftest.er1 >conftest.err
20542 cat conftest.err >&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); } &&
20545 { ac_try='test -z "$ac_c_werror_flag"
20546 || test ! -s conftest.err'
20547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20548 (eval $ac_try) 2>&5
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); }; } &&
20552 { ac_try='test -s conftest.$ac_objext'
20553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20554 (eval $ac_try) 2>&5
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); }; }; then
20558 ac_header_compiler=yes
20560 echo "$as_me: failed program was:" >&5
20561 sed 's/^/| /' conftest.$ac_ext >&5
20563 ac_header_compiler=no
20565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20566 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20567 echo "${ECHO_T}$ac_header_compiler" >&6
20569 # Is the header present?
20570 echo "$as_me:$LINENO: checking tk.h presence" >&5
20571 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
20572 cat >conftest.$ac_ext <<_ACEOF
20575 cat confdefs.h >>conftest.$ac_ext
20576 cat >>conftest.$ac_ext <<_ACEOF
20577 /* end confdefs.h. */
20580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20583 grep -v '^ *+' conftest.er1 >conftest.err
20585 cat conftest.err >&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); } >/dev/null; then
20588 if test -s conftest.err; then
20589 ac_cpp_err=$ac_c_preproc_warn_flag
20590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20597 if test -z "$ac_cpp_err"; then
20598 ac_header_preproc=yes
20600 echo "$as_me: failed program was:" >&5
20601 sed 's/^/| /' conftest.$ac_ext >&5
20603 ac_header_preproc=no
20605 rm -f conftest.err conftest.$ac_ext
20606 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20607 echo "${ECHO_T}$ac_header_preproc" >&6
20609 # So? What about this header?
20610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20612 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20613 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20614 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20615 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20616 ac_header_preproc=yes
20619 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20620 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20621 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
20622 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
20623 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20624 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
20625 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
20626 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
20627 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
20628 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
20629 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
20630 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
20633 ## ------------------------------------------ ##
20634 ## Report this to the AC_PACKAGE_NAME lists. ##
20635 ## ------------------------------------------ ##
20638 sed "s/^/$as_me: WARNING: /" >&2
20641 echo "$as_me:$LINENO: checking for tk.h" >&5
20642 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20643 if test "${ac_cv_header_tk_h+set}" = set; then
20644 echo $ECHO_N "(cached) $ECHO_C" >&6
20646 ac_cv_header_tk_h=$ac_header_preproc
20648 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20649 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20652 if test $ac_cv_header_tk_h = yes; then
20653 ac_cv_c_tkh=installed
20663 if test x"${ac_cv_c_tkh}" != x ; then
20665 if test x"${ac_cv_c_tkh}" = x"installed" ; then
20666 echo "$as_me:$LINENO: result: is installed" >&5
20667 echo "${ECHO_T}is installed" >&6
20670 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
20671 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
20672 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
20673 TKHDIR="-I${ac_cv_c_tkh}"
20676 TKHDIR="# no Tk directory found"
20677 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
20678 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
20685 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
20686 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
20687 if test x"${ac_cv_c_itclh}" = x ; then
20688 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
20689 if test -f $i/generic/itcl.h ; then
20690 ac_cv_c_itclh=`(cd $i/generic; pwd)`
20695 if test x"${ac_cv_c_itclh}" = x ; then
20696 ITCLHDIR="# no Itcl private headers found"
20697 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
20698 echo "$as_me: error: Can't find Itcl private headers" >&2;}
20699 { (exit 1); exit 1; }; }
20701 if test x"${ac_cv_c_itclh}" != x ; then
20702 ITCLHDIR="-I${ac_cv_c_itclh}"
20704 # should always be here
20705 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
20710 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
20711 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
20712 if test x"${ac_cv_c_itkh}" = x ; then
20713 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
20714 if test -f $i/generic/itk.h ; then
20715 ac_cv_c_itkh=`(cd $i/generic; pwd)`
20720 if test x"${ac_cv_c_itkh}" = x ; then
20721 ITKHDIR="# no Itk private headers found"
20722 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
20723 echo "$as_me: error: Can't find Itk private headers" >&2;}
20724 { (exit 1); exit 1; }; }
20726 if test x"${ac_cv_c_itkh}" != x ; then
20727 ITKHDIR="-I${ac_cv_c_itkh}"
20729 # should always be here
20730 # ITKLIB="../itcl/itk/unix/libitk.a"
20736 # now look for Tk library stuff
20738 tkdir="../tk/${configdir}/"
20740 TK_DEPS="${tkdir}${TK_LIB_FILE}"
20742 # now look for Itcl library stuff
20746 # Ok, lets find the itcl configuration
20747 # First, look for one uninstalled.
20748 # the alternative search directory is invoked by --with-itclconfig
20751 if test x"${no_itcl}" = x ; then
20752 # we reset no_itcl in case something fails here
20755 # Check whether --with-itclconfig or --without-itclconfig was given.
20756 if test "${with_itclconfig+set}" = set; then
20757 withval="$with_itclconfig"
20758 with_itclconfig=${withval}
20760 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
20761 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
20762 if test "${ac_cv_c_itclconfig+set}" = set; then
20763 echo $ECHO_N "(cached) $ECHO_C" >&6
20767 # First check to see if --with-itclconfig was specified.
20768 if test x"${with_itclconfig}" != x ; then
20769 if test -f "${with_itclconfig}/itclConfig.sh" ; then
20770 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
20772 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
20773 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
20774 { (exit 1); exit 1; }; }
20778 # then check for a private Itcl library
20779 if test x"${ac_cv_c_itclconfig}" = x ; then
20782 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
20784 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
20786 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
20787 if test -f "$i/itclConfig.sh" ; then
20788 ac_cv_c_itclconfig=`(cd $i; pwd)`
20793 # check in a few common install locations
20794 if test x"${ac_cv_c_itclconfig}" = x ; then
20795 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20796 if test -f "$i/itclConfig.sh" ; then
20797 ac_cv_c_itclconfig=`(cd $i; pwd)`
20802 # check in a few other private locations
20803 if test x"${ac_cv_c_itclconfig}" = x ; then
20805 ${srcdir}/../itcl/itcl \
20806 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
20807 if test -f "$i/itclConfig.sh" ; then
20808 ac_cv_c_itclconfig=`(cd $i; pwd)`
20816 if test x"${ac_cv_c_itclconfig}" = x ; then
20817 ITCLCONFIG="# no Itcl configs found"
20818 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
20819 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
20822 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
20823 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
20824 echo "${ECHO_T}found $ITCLCONFIG" >&6
20828 if test -z "${no_itcl}"; then
20830 if test -f "$ITCLCONFIG" ; then
20845 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
20846 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
20850 # now look for Itk library stuff
20853 # Ok, lets find the itk configuration
20854 # First, look for one uninstalled.
20855 # the alternative search directory is invoked by --with-itkconfig
20858 if test x"${no_itk}" = x ; then
20859 # we reset no_itk in case something fails here
20862 # Check whether --with-itkconfig or --without-itkconfig was given.
20863 if test "${with_itkconfig+set}" = set; then
20864 withval="$with_itkconfig"
20865 with_itkconfig=${withval}
20867 echo "$as_me:$LINENO: checking for Itk configuration" >&5
20868 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
20869 if test "${ac_cv_c_itkconfig+set}" = set; then
20870 echo $ECHO_N "(cached) $ECHO_C" >&6
20874 # First check to see if --with-itkconfig was specified.
20875 if test x"${with_itkconfig}" != x ; then
20876 if test -f "${with_itkconfig}/itkConfig.sh" ; then
20877 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
20879 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
20880 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
20881 { (exit 1); exit 1; }; }
20885 # then check for a private Itk library
20886 if test x"${ac_cv_c_itkconfig}" = x ; then
20889 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
20891 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
20893 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
20894 if test -f "$i/itkConfig.sh" ; then
20895 ac_cv_c_itkconfig=`(cd $i; pwd)`
20900 # check in a few common install locations
20901 if test x"${ac_cv_c_itkconfig}" = x ; then
20902 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20903 if test -f "$i/itkConfig.sh" ; then
20904 ac_cv_c_itkconfig=`(cd $i; pwd)`
20909 # check in a few other private locations
20910 if test x"${ac_cv_c_itkconfig}" = x ; then
20912 ${srcdir}/../itcl/itk \
20913 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
20914 if test -f "$i/itkConfig.sh" ; then
20915 ac_cv_c_itkconfig=`(cd $i; pwd)`
20923 if test x"${ac_cv_c_itkconfig}" = x ; then
20924 ITKCONFIG="# no Itk configs found"
20925 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
20926 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
20929 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
20930 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
20931 echo "${ECHO_T}found $ITKCONFIG" >&6
20936 if test -z "${no_itcl}"; then
20938 if test -f "$ITKCONFIG" ; then
20953 ITKLIB="${ITK_BUILD_LIB_SPEC}"
20954 ITK_DEPS="${ITK_LIB_FULL_PATH}"
20957 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
20958 # Tcl/Tk 8.1 require -fwritable strings. I don't
20959 # know whether 8.2 will or not, but I bet it will.
20960 # I don't have to worry about 7.x since we don't support it.
20962 if test "$GCC" = "yes"; then
20963 if test "$TCL_VERSION" != "8.0" ; then
20964 GDBTK_CFLAGS="-fwritable-strings"
20968 # Include some libraries that Tcl and Tk want.
20969 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
20970 # Yes, the ordering seems wrong here. But it isn't.
20971 # TK_LIBS is the list of libraries that need to be linked
20972 # after Tcl/Tk. Note that this isn't put into LIBS. If it
20973 # were in LIBS then any link tests after this point would
20974 # try to include things like `$(LIBGUI)', which wouldn't work.
20975 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
20977 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20978 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20979 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
20980 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
20981 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
20982 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
20983 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
20985 if test x$gdb_cv_os_cygwin = xyes; then
20986 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20987 WIN32LDAPP="-Wl,--subsystem,console"
20988 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
20995 subdirs="$subdirs gdbtk"
21012 echo "$as_me:$LINENO: checking for X" >&5
21013 echo $ECHO_N "checking for X... $ECHO_C" >&6
21016 # Check whether --with-x or --without-x was given.
21017 if test "${with_x+set}" = set; then
21021 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21022 if test "x$with_x" = xno; then
21023 # The user explicitly disabled X.
21026 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21027 # Both variables are already set.
21030 if test "${ac_cv_have_x+set}" = set; then
21031 echo $ECHO_N "(cached) $ECHO_C" >&6
21033 # One or both of the vars are not set, and there is no cached value.
21034 ac_x_includes=no ac_x_libraries=no
21035 rm -fr conftest.dir
21036 if mkdir conftest.dir; then
21038 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
21039 cat >Imakefile <<'_ACEOF'
21041 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
21043 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21044 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21045 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21046 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21047 for ac_extension in a so sl; do
21048 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
21049 test -f $ac_im_libdir/libX11.$ac_extension; then
21050 ac_im_usrlibdir=$ac_im_libdir; break
21053 # Screen out bogus values from the imake configuration. They are
21054 # bogus both because they are the default anyway, and because
21055 # using them would break gcc on systems where it needs fixed includes.
21056 case $ac_im_incroot in
21058 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21060 case $ac_im_usrlibdir in
21061 /usr/lib | /lib) ;;
21062 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21066 rm -fr conftest.dir
21069 # Standard set of common directories for X headers.
21070 # Check X11 before X11Rn because it is often a symlink to the current release.
21082 /usr/local/X11/include
21083 /usr/local/X11R6/include
21084 /usr/local/X11R5/include
21085 /usr/local/X11R4/include
21087 /usr/local/include/X11
21088 /usr/local/include/X11R6
21089 /usr/local/include/X11R5
21090 /usr/local/include/X11R4
21094 /usr/XFree86/include/X11
21098 /usr/unsupported/include
21099 /usr/athena/include
21100 /usr/local/x11r5/include
21101 /usr/lpp/Xamples/include
21103 /usr/openwin/include
21104 /usr/openwin/share/include'
21106 if test "$ac_x_includes" = no; then
21107 # Guess where to find include files, by looking for Intrinsic.h.
21108 # First, try using that file with no special directory specified.
21109 cat >conftest.$ac_ext <<_ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h. */
21115 #include <X11/Intrinsic.h>
21117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21120 grep -v '^ *+' conftest.er1 >conftest.err
21122 cat conftest.err >&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } >/dev/null; then
21125 if test -s conftest.err; then
21126 ac_cpp_err=$ac_c_preproc_warn_flag
21127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21134 if test -z "$ac_cpp_err"; then
21135 # We can compile using X headers with no special include directory.
21138 echo "$as_me: failed program was:" >&5
21139 sed 's/^/| /' conftest.$ac_ext >&5
21141 for ac_dir in $ac_x_header_dirs; do
21142 if test -r "$ac_dir/X11/Intrinsic.h"; then
21143 ac_x_includes=$ac_dir
21148 rm -f conftest.err conftest.$ac_ext
21149 fi # $ac_x_includes = no
21151 if test "$ac_x_libraries" = no; then
21152 # Check for the libraries.
21153 # See if we find them without any special options.
21154 # Don't add to $LIBS permanently.
21157 cat >conftest.$ac_ext <<_ACEOF
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h. */
21163 #include <X11/Intrinsic.h>
21172 rm -f conftest.$ac_objext conftest$ac_exeext
21173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21174 (eval $ac_link) 2>conftest.er1
21176 grep -v '^ *+' conftest.er1 >conftest.err
21178 cat conftest.err >&5
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); } &&
21181 { ac_try='test -z "$ac_c_werror_flag"
21182 || test ! -s conftest.err'
21183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21184 (eval $ac_try) 2>&5
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); }; } &&
21188 { ac_try='test -s conftest$ac_exeext'
21189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21190 (eval $ac_try) 2>&5
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); }; }; then
21195 # We can link X programs with no special library path.
21198 echo "$as_me: failed program was:" >&5
21199 sed 's/^/| /' conftest.$ac_ext >&5
21202 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21204 # Don't even attempt the hair of trying to link an X program!
21205 for ac_extension in a so sl; do
21206 if test -r $ac_dir/libXt.$ac_extension; then
21207 ac_x_libraries=$ac_dir
21213 rm -f conftest.err conftest.$ac_objext \
21214 conftest$ac_exeext conftest.$ac_ext
21215 fi # $ac_x_libraries = no
21217 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21218 # Didn't find X anywhere. Cache the known absence of X.
21219 ac_cv_have_x="have_x=no"
21221 # Record where we found X for the cache.
21222 ac_cv_have_x="have_x=yes \
21223 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21228 eval "$ac_cv_have_x"
21231 if test "$have_x" != yes; then
21232 echo "$as_me:$LINENO: result: $have_x" >&5
21233 echo "${ECHO_T}$have_x" >&6
21236 # If each of the values was on the command line, it overrides each guess.
21237 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21238 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21239 # Update the cache value to reflect the command line values.
21240 ac_cv_have_x="have_x=yes \
21241 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21242 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21243 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21247 # Check whether we should enable the TUI, but only do so if we really
21249 if test x"$enable_tui" = xyes; then
21250 if test -d $srcdir/tui; then
21251 if test "$ac_cv_search_waddstr" != no; then
21252 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21253 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21254 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21255 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21256 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21257 CONFIG_ALL="${CONFIG_ALL} all-tui"
21258 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21259 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21260 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21262 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21263 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
21268 # Unlike the sim directory, whether a simulator is linked is controlled by
21269 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
21270 # This code just checks for a few cases where we'd like to ignore those
21271 # definitions, even when they're present in the '.mt' file. These cases
21272 # are when --disable-sim is specified, or if the simulator directory is
21273 # not part of the source tree.
21275 # Check whether --enable-sim or --disable-sim was given.
21276 if test "${enable_sim+set}" = set; then
21277 enableval="$enable_sim"
21278 echo "enable_sim = $enable_sim";
21279 echo "enableval = ${enableval}";
21280 case "${enableval}" in
21281 yes) ignore_sim=false ;;
21282 no) ignore_sim=true ;;
21283 *) ignore_sim=false ;;
21289 if test ! -d "${srcdir}/../sim"; then
21293 if test "${ignore_sim}" = "true"; then
21295 IGNORE_SIM_OBS="SIM_OBS="
21299 cat >>confdefs.h <<\_ACEOF
21318 # List of host floatformats.
21320 cat >>confdefs.h <<_ACEOF
21321 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21325 cat >>confdefs.h <<_ACEOF
21326 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21330 cat >>confdefs.h <<_ACEOF
21331 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21335 # target_subdir is used by the testsuite to find the target libraries.
21337 if test "${host}" != "${target}"; then
21338 target_subdir="${target_alias}/"
21343 if test "${target}" = "${host}"; then
21344 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21345 if test ! -f ${host_makefile_frag}; then
21346 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21347 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21348 { (exit 1); exit 1; }; }
21350 frags="$frags $host_makefile_frag"
21352 host_makefile_frag=/dev/null
21355 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21356 if test ! -f ${target_makefile_frag}; then
21357 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21358 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21359 { (exit 1); exit 1; }; }
21361 frags="$frags $target_makefile_frag"
21368 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21369 ' ${host_makefile_frag}`
21371 targetfile=`sed -n '
21372 s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21373 ' ${target_makefile_frag}`
21375 if test "${target}" = "${host}"; then
21376 # We pick this up from the host configuration file (.mh) because we
21377 # do not have a native configuration Makefile fragment.
21378 nativefile=`sed -n '
21379 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21380 ' ${host_makefile_frag}`
21384 if test x"${gdb_osabi}" != x ; then
21386 cat >>confdefs.h <<_ACEOF
21387 #define GDB_OSABI_DEFAULT $gdb_osabi
21392 # Enable multi-ice-gdb-server.
21393 # Check whether --enable-multi-ice or --disable-multi-ice was given.
21394 if test "${enable_multi_ice+set}" = set; then
21395 enableval="$enable_multi_ice"
21399 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21400 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21401 { (exit 1); exit 1; }; } ;;
21404 if test "x$enable_multi_ice" = xyes; then
21407 subdirs="$subdirs multi-ice"
21411 # We only build gdbserver automatically if host and target are the same.
21412 if test "x$target" = "x$host"; then
21413 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21414 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21415 if test "x$build_gdbserver" = xyes; then
21416 echo "$as_me:$LINENO: result: yes" >&5
21417 echo "${ECHO_T}yes" >&6
21420 subdirs="$subdirs gdbserver"
21423 echo "$as_me:$LINENO: result: no" >&5
21424 echo "${ECHO_T}no" >&6
21428 # We build rdi-share on ARM-based targets, as instructed by configure.tgt.
21429 if test "x$build_rdi_share" = xyes; then
21432 subdirs="$subdirs rdi-share"
21436 # We configure the nlm subdirectory on netware targets, as instructed
21437 # by configure.tgt.
21438 if test "x$build_nlm" = xyes; then
21441 subdirs="$subdirs nlm"
21445 # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21446 # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21447 # to an empty version.
21454 if test "${hostfile}" != ""; then
21456 case "${hostfile}" in
21457 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21458 * ) GDB_XM_FILE="${hostfile}"
21460 files="${files} ${GDB_XM_FILE}"
21461 links="${links} xm.h"
21462 cat >>confdefs.h <<_ACEOF
21463 #define GDB_XM_FILE "${GDB_XM_FILE}"
21471 if test "${targetfile}" != ""; then
21473 case "${targetfile}" in
21474 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
21475 * ) GDB_TM_FILE="${targetfile}"
21477 files="${files} ${GDB_TM_FILE}"
21478 links="${links} tm.h"
21479 cat >>confdefs.h <<_ACEOF
21480 #define GDB_TM_FILE "${GDB_TM_FILE}"
21488 if test "${nativefile}" != ""; then
21490 case "${nativefile}" in
21491 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21492 * ) GDB_NM_FILE="${nativefile}"
21494 files="${files} ${GDB_NM_FILE}"
21495 links="${links} nm.h"
21496 cat >>confdefs.h <<_ACEOF
21497 #define GDB_NM_FILE "${GDB_NM_FILE}"
21503 ac_sources="$files"
21505 while test -n "$ac_sources"; do
21506 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21507 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21508 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21510 ac_config_links="$ac_config_links $ac_config_links_1"
21517 cat >>confdefs.h <<\_ACEOF
21518 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21525 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21526 if test "${with_libiconv_prefix+set}" = set; then
21527 withval="$with_libiconv_prefix"
21529 for dir in `echo "$withval" | tr : ' '`; do
21530 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21531 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
21536 echo "$as_me:$LINENO: checking for iconv" >&5
21537 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21538 if test "${am_cv_func_iconv+set}" = set; then
21539 echo $ECHO_N "(cached) $ECHO_C" >&6
21542 am_cv_func_iconv="no, consider installing GNU libiconv"
21544 cat >conftest.$ac_ext <<_ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h. */
21550 #include <stdlib.h>
21555 iconv_t cd = iconv_open("","");
21556 iconv(cd,NULL,NULL,NULL,NULL);
21562 rm -f conftest.$ac_objext conftest$ac_exeext
21563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21564 (eval $ac_link) 2>conftest.er1
21566 grep -v '^ *+' conftest.er1 >conftest.err
21568 cat conftest.err >&5
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); } &&
21571 { ac_try='test -z "$ac_c_werror_flag"
21572 || test ! -s conftest.err'
21573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21574 (eval $ac_try) 2>&5
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); }; } &&
21578 { ac_try='test -s conftest$ac_exeext'
21579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21580 (eval $ac_try) 2>&5
21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583 (exit $ac_status); }; }; then
21584 am_cv_func_iconv=yes
21586 echo "$as_me: failed program was:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21590 rm -f conftest.err conftest.$ac_objext \
21591 conftest$ac_exeext conftest.$ac_ext
21592 if test "$am_cv_func_iconv" != yes; then
21593 am_save_LIBS="$LIBS"
21594 LIBS="$LIBS -liconv"
21595 cat >conftest.$ac_ext <<_ACEOF
21598 cat confdefs.h >>conftest.$ac_ext
21599 cat >>conftest.$ac_ext <<_ACEOF
21600 /* end confdefs.h. */
21601 #include <stdlib.h>
21606 iconv_t cd = iconv_open("","");
21607 iconv(cd,NULL,NULL,NULL,NULL);
21613 rm -f conftest.$ac_objext conftest$ac_exeext
21614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21615 (eval $ac_link) 2>conftest.er1
21617 grep -v '^ *+' conftest.er1 >conftest.err
21619 cat conftest.err >&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); } &&
21622 { ac_try='test -z "$ac_c_werror_flag"
21623 || test ! -s conftest.err'
21624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21625 (eval $ac_try) 2>&5
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); }; } &&
21629 { ac_try='test -s conftest$ac_exeext'
21630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21631 (eval $ac_try) 2>&5
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); }; }; then
21635 am_cv_lib_iconv=yes
21636 am_cv_func_iconv=yes
21638 echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21642 rm -f conftest.err conftest.$ac_objext \
21643 conftest$ac_exeext conftest.$ac_ext
21644 LIBS="$am_save_LIBS"
21648 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21649 echo "${ECHO_T}$am_cv_func_iconv" >&6
21650 if test "$am_cv_func_iconv" = yes; then
21652 cat >>confdefs.h <<\_ACEOF
21653 #define HAVE_ICONV 1
21656 echo "$as_me:$LINENO: checking for iconv declaration" >&5
21657 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
21658 if test "${am_cv_proto_iconv+set}" = set; then
21659 echo $ECHO_N "(cached) $ECHO_C" >&6
21662 cat >conftest.$ac_ext <<_ACEOF
21665 cat confdefs.h >>conftest.$ac_ext
21666 cat >>conftest.$ac_ext <<_ACEOF
21667 /* end confdefs.h. */
21669 #include <stdlib.h>
21675 #if defined(__STDC__) || defined(__cplusplus)
21676 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21689 rm -f conftest.$ac_objext
21690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21691 (eval $ac_compile) 2>conftest.er1
21693 grep -v '^ *+' conftest.er1 >conftest.err
21695 cat conftest.err >&5
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); } &&
21698 { ac_try='test -z "$ac_c_werror_flag"
21699 || test ! -s conftest.err'
21700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21701 (eval $ac_try) 2>&5
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); }; } &&
21705 { ac_try='test -s conftest.$ac_objext'
21706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21707 (eval $ac_try) 2>&5
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); }; }; then
21711 am_cv_proto_iconv_arg1=""
21713 echo "$as_me: failed program was:" >&5
21714 sed 's/^/| /' conftest.$ac_ext >&5
21716 am_cv_proto_iconv_arg1="const"
21718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21719 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);"
21722 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21723 echo "$as_me:$LINENO: result: ${ac_t:-
21724 }$am_cv_proto_iconv" >&5
21725 echo "${ECHO_T}${ac_t:-
21726 }$am_cv_proto_iconv" >&6
21728 cat >>confdefs.h <<_ACEOF
21729 #define ICONV_CONST $am_cv_proto_iconv_arg1
21734 if test "$am_cv_lib_iconv" = yes; then
21740 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
21741 ac_config_commands="$ac_config_commands default"
21742 cat >confcache <<\_ACEOF
21743 # This file is a shell script that caches the results of configure
21744 # tests run on this system so they can be shared between configure
21745 # scripts and configure runs, see configure's option --config-cache.
21746 # It is not useful on other systems. If it contains results you don't
21747 # want to keep, you may remove or edit it.
21749 # config.status only pays attention to the cache file if you give it
21750 # the --recheck option to rerun configure.
21752 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21753 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21754 # following values.
21758 # The following way of writing the cache mishandles newlines in values,
21759 # but we know of no workaround that is simple, portable, and efficient.
21760 # So, don't put newlines in cache variables' values.
21761 # Ultrix sh set writes to stderr and can't be redirected directly,
21762 # and sets the high bit in the cache file unless we assign to the vars.
21765 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21767 # `set' does not quote correctly, so add quotes (double-quote
21768 # substitution turns \\\\ into \\, and sed turns \\ into \).
21771 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21774 # `set' quotes correctly as required by POSIX, so do not add quotes.
21776 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21783 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21785 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21787 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21788 if test -w $cache_file; then
21789 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21790 cat confcache >$cache_file
21792 echo "not updating unwritable cache $cache_file"
21797 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21798 # Let make expand exec_prefix.
21799 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21801 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21802 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21803 # trailing colons and then remove the whole line if VPATH becomes empty
21804 # (actually we leave an empty line to preserve line numbers).
21805 if test "x$srcdir" = x.; then
21806 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21807 s/:*\$(srcdir):*/:/;
21808 s/:*\${srcdir}:*/:/;
21810 s/^\([^=]*=[ ]*\):*/\1/;
21816 DEFS=-DHAVE_CONFIG_H
21820 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21821 # 1. Remove the extension, and $U if already installed.
21822 ac_i=`echo "$ac_i" |
21823 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21825 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21826 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21828 LIBOBJS=$ac_libobjs
21830 LTLIBOBJS=$ac_ltlibobjs
21833 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21834 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21835 Usually this means the macro was only invoked conditionally." >&5
21836 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21837 Usually this means the macro was only invoked conditionally." >&2;}
21838 { (exit 1); exit 1; }; }
21841 : ${CONFIG_STATUS=./config.status}
21842 ac_clean_files_save=$ac_clean_files
21843 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21844 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21845 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21846 cat >$CONFIG_STATUS <<_ACEOF
21848 # Generated by $as_me.
21849 # Run this file to recreate the current configuration.
21850 # Compiler output produced by configure, useful for debugging
21851 # configure, is in config.log if it exists.
21854 ac_cs_recheck=false
21856 SHELL=\${CONFIG_SHELL-$SHELL}
21859 cat >>$CONFIG_STATUS <<\_ACEOF
21860 ## --------------------- ##
21861 ## M4sh Initialization. ##
21862 ## --------------------- ##
21864 # Be Bourne compatible
21865 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21868 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21869 # is contrary to our usage. Disable this feature.
21870 alias -g '${1+"$@"}'='"$@"'
21871 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21874 DUALCASE=1; export DUALCASE # for MKS sh
21876 # Support unset when possible.
21877 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21884 # Work around bugs in pre-3.0 UWIN ksh.
21885 $as_unset ENV MAIL MAILPATH
21892 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21893 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21894 LC_TELEPHONE LC_TIME
21896 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21897 eval $as_var=C; export $as_var
21903 # Required to use basename.
21904 if expr a : '\(a\)' >/dev/null 2>&1; then
21910 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21911 as_basename=basename
21917 # Name of the executable.
21918 as_me=`$as_basename "$0" ||
21919 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21920 X"$0" : 'X\(//\)$' \| \
21921 X"$0" : 'X\(/\)$' \| \
21922 . : '\(.\)' 2>/dev/null ||
21924 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21925 /^X\/\(\/\/\)$/{ s//\1/; q; }
21926 /^X\/\(\/\).*/{ s//\1/; q; }
21930 # PATH needs CR, and LINENO needs CR and PATH.
21931 # Avoid depending upon Character Ranges.
21932 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21933 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21934 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21935 as_cr_digits='0123456789'
21936 as_cr_alnum=$as_cr_Letters$as_cr_digits
21938 # The user is always right.
21939 if test "${PATH_SEPARATOR+set}" != set; then
21940 echo "#! /bin/sh" >conf$$.sh
21941 echo "exit 0" >>conf$$.sh
21943 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21952 as_lineno_1=$LINENO
21953 as_lineno_2=$LINENO
21954 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21955 test "x$as_lineno_1" != "x$as_lineno_2" &&
21956 test "x$as_lineno_3" = "x$as_lineno_2" || {
21957 # Find who we are. Look in the path if we contain no path at all
21960 *[\\/]* ) as_myself=$0 ;;
21961 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21962 for as_dir in $PATH
21965 test -z "$as_dir" && as_dir=.
21966 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21971 # We did not find ourselves, most probably we were run as `sh COMMAND'
21972 # in which case we are not to be found in the path.
21973 if test "x$as_myself" = x; then
21976 if test ! -f "$as_myself"; then
21977 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21978 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21979 { (exit 1); exit 1; }; }
21981 case $CONFIG_SHELL in
21983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21984 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21987 test -z "$as_dir" && as_dir=.
21988 for as_base in sh bash ksh sh5; do
21991 if ("$as_dir/$as_base" -c '
21992 as_lineno_1=$LINENO
21993 as_lineno_2=$LINENO
21994 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21995 test "x$as_lineno_1" != "x$as_lineno_2" &&
21996 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21997 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21998 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21999 CONFIG_SHELL=$as_dir/$as_base
22000 export CONFIG_SHELL
22001 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22009 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22010 # uniformly replaced by the line number. The first 'sed' inserts a
22011 # line-number line before each line; the second 'sed' does the real
22012 # work. The second script uses 'N' to pair each line-number line
22013 # with the numbered line, and appends trailing '-' during
22014 # substitution so that $LINENO is not a special case at line end.
22015 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22016 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22017 sed '=' <$as_myself |
22022 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22025 s,^['$as_cr_digits']*\n,,
22026 ' >$as_me.lineno &&
22027 chmod +x $as_me.lineno ||
22028 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22029 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22030 { (exit 1); exit 1; }; }
22032 # Don't try to exec as it changes $[0], causing all sort of problems
22033 # (the dirname of $[0] is not the place where we might find the
22034 # original and so on. Autoconf is especially sensible to this).
22036 # Exit status is that of the last command.
22041 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22042 *c*,-n*) ECHO_N= ECHO_C='
22044 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22045 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22048 if expr a : '\(a\)' >/dev/null 2>&1; then
22054 rm -f conf$$ conf$$.exe conf$$.file
22056 if ln -s conf$$.file conf$$ 2>/dev/null; then
22057 # We could just check for DJGPP; but this test a) works b) is more generic
22058 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22059 if test -f conf$$.exe; then
22060 # Don't use ln at all; we don't have any links
22065 elif ln conf$$.file conf$$ 2>/dev/null; then
22070 rm -f conf$$ conf$$.exe conf$$.file
22072 if mkdir -p . 2>/dev/null; then
22075 test -d ./-p && rmdir ./-p
22079 as_executable_p="test -f"
22081 # Sed expression to map a string onto a valid CPP name.
22082 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22084 # Sed expression to map a string onto a valid variable name.
22085 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22089 # We need space, tab and new line, in precisely that order.
22099 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22100 # report actual input values of CONFIG_FILES etc. instead of their
22101 # values after options handling. Logging --version etc. is OK.
22105 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22106 ## Running $as_me. ##
22111 This file was extended by $as_me, which was
22112 generated by GNU Autoconf 2.59. Invocation command line was
22114 CONFIG_FILES = $CONFIG_FILES
22115 CONFIG_HEADERS = $CONFIG_HEADERS
22116 CONFIG_LINKS = $CONFIG_LINKS
22117 CONFIG_COMMANDS = $CONFIG_COMMANDS
22121 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22125 # Files that config.status was made for.
22126 if test -n "$ac_config_files"; then
22127 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22130 if test -n "$ac_config_headers"; then
22131 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22134 if test -n "$ac_config_links"; then
22135 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22138 if test -n "$ac_config_commands"; then
22139 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22142 cat >>$CONFIG_STATUS <<\_ACEOF
22145 \`$as_me' instantiates files from templates according to the
22146 current configuration.
22148 Usage: $0 [OPTIONS] [FILE]...
22150 -h, --help print this help, then exit
22151 -V, --version print version number, then exit
22152 -q, --quiet do not print progress messages
22153 -d, --debug don't remove temporary files
22154 --recheck update $as_me by reconfiguring in the same conditions
22155 --file=FILE[:TEMPLATE]
22156 instantiate the configuration file FILE
22157 --header=FILE[:TEMPLATE]
22158 instantiate the configuration header FILE
22160 Configuration files:
22163 Configuration headers:
22166 Configuration links:
22169 Configuration commands:
22175 cat >>$CONFIG_STATUS <<_ACEOF
22178 configured by $0, generated by GNU Autoconf 2.59,
22179 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22181 Copyright (C) 2003 Free Software Foundation, Inc.
22182 This config.status script is free software; the Free Software Foundation
22183 gives unlimited permission to copy, distribute and modify it."
22188 cat >>$CONFIG_STATUS <<\_ACEOF
22189 # If no file are specified by the user, then we need to provide default
22190 # value. By we need to know if files were specified by the user.
22196 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22197 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22205 *) # This is not an option, so the user has probably given explicit
22208 ac_need_defaults=false;;
22212 # Handling of the options.
22214 cat >>$CONFIG_STATUS <<\_ACEOF
22215 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22217 --version | --vers* | -V )
22218 echo "$ac_cs_version"; exit 0 ;;
22220 # Conflict between --help and --header
22221 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22222 Try \`$0 --help' for more information." >&5
22223 echo "$as_me: error: ambiguous option: $1
22224 Try \`$0 --help' for more information." >&2;}
22225 { (exit 1); exit 1; }; };;
22226 --help | --hel | -h )
22227 echo "$ac_cs_usage"; exit 0 ;;
22228 --debug | --d* | -d )
22230 --file | --fil | --fi | --f )
22232 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22233 ac_need_defaults=false;;
22234 --header | --heade | --head | --hea )
22236 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22237 ac_need_defaults=false;;
22238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22239 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22242 # This is an error.
22243 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22244 Try \`$0 --help' for more information." >&5
22245 echo "$as_me: error: unrecognized option: $1
22246 Try \`$0 --help' for more information." >&2;}
22247 { (exit 1); exit 1; }; } ;;
22249 *) ac_config_targets="$ac_config_targets $1" ;;
22255 ac_configure_extra_args=
22257 if $ac_cs_silent; then
22259 ac_configure_extra_args="$ac_configure_extra_args --silent"
22263 cat >>$CONFIG_STATUS <<_ACEOF
22264 if \$ac_cs_recheck; then
22265 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22266 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22271 cat >>$CONFIG_STATUS <<_ACEOF
22273 # INIT-COMMANDS section.
22277 gdb_host_cpu=$gdb_host_cpu
22278 gdb_target_cpu=$gdb_target_cpu
22279 nativefile=$nativefile
22286 cat >>$CONFIG_STATUS <<\_ACEOF
22287 for ac_config_target in $ac_config_targets
22289 case "$ac_config_target" in
22290 # Handling of arguments.
22291 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22292 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22293 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22294 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22295 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22296 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22297 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22298 { (exit 1); exit 1; }; };;
22302 # If the user did not use the arguments to specify the items to instantiate,
22303 # then the envvar interface is used. Set only those that are not.
22304 # We use the long form for the default assignment because of an extremely
22305 # bizarre bug on SunOS 4.1.3.
22306 if $ac_need_defaults; then
22307 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22308 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22309 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22310 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22313 # Have a temporary directory for convenience. Make it in the build tree
22314 # simply because there is no reason to put it here, and in addition,
22315 # creating and moving files from /tmp can sometimes cause problems.
22316 # Create a temporary directory, and hook for its removal unless debugging.
22319 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22320 trap '{ (exit 1); exit 1; }' 1 2 13 15
22323 # Create a (secure) tmp directory for tmp files.
22326 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22327 test -n "$tmp" && test -d "$tmp"
22330 tmp=./confstat$$-$RANDOM
22331 (umask 077 && mkdir $tmp)
22334 echo "$me: cannot create a temporary directory in ." >&2
22335 { (exit 1); exit 1; }
22340 cat >>$CONFIG_STATUS <<_ACEOF
22343 # CONFIG_FILES section.
22346 # No need to generate the scripts if there are no CONFIG_FILES.
22347 # This happens for instance when ./config.status config.h
22348 if test -n "\$CONFIG_FILES"; then
22349 # Protect against being on the right side of a sed subst in config.status.
22350 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22351 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22352 s,@SHELL@,$SHELL,;t t
22353 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22354 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22355 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22356 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22357 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22358 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22359 s,@exec_prefix@,$exec_prefix,;t t
22360 s,@prefix@,$prefix,;t t
22361 s,@program_transform_name@,$program_transform_name,;t t
22362 s,@bindir@,$bindir,;t t
22363 s,@sbindir@,$sbindir,;t t
22364 s,@libexecdir@,$libexecdir,;t t
22365 s,@datadir@,$datadir,;t t
22366 s,@sysconfdir@,$sysconfdir,;t t
22367 s,@sharedstatedir@,$sharedstatedir,;t t
22368 s,@localstatedir@,$localstatedir,;t t
22369 s,@libdir@,$libdir,;t t
22370 s,@includedir@,$includedir,;t t
22371 s,@oldincludedir@,$oldincludedir,;t t
22372 s,@infodir@,$infodir,;t t
22373 s,@mandir@,$mandir,;t t
22374 s,@build_alias@,$build_alias,;t t
22375 s,@host_alias@,$host_alias,;t t
22376 s,@target_alias@,$target_alias,;t t
22377 s,@DEFS@,$DEFS,;t t
22378 s,@ECHO_C@,$ECHO_C,;t t
22379 s,@ECHO_N@,$ECHO_N,;t t
22380 s,@ECHO_T@,$ECHO_T,;t t
22381 s,@LIBS@,$LIBS,;t t
22382 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22383 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22384 s,@MAINT@,$MAINT,;t t
22386 s,@CFLAGS@,$CFLAGS,;t t
22387 s,@LDFLAGS@,$LDFLAGS,;t t
22388 s,@CPPFLAGS@,$CPPFLAGS,;t t
22389 s,@ac_ct_CC@,$ac_ct_CC,;t t
22390 s,@EXEEXT@,$EXEEXT,;t t
22391 s,@OBJEXT@,$OBJEXT,;t t
22393 s,@EGREP@,$EGREP,;t t
22394 s,@build@,$build,;t t
22395 s,@build_cpu@,$build_cpu,;t t
22396 s,@build_vendor@,$build_vendor,;t t
22397 s,@build_os@,$build_os,;t t
22398 s,@host@,$host,;t t
22399 s,@host_cpu@,$host_cpu,;t t
22400 s,@host_vendor@,$host_vendor,;t t
22401 s,@host_os@,$host_os,;t t
22402 s,@target@,$target,;t t
22403 s,@target_cpu@,$target_cpu,;t t
22404 s,@target_vendor@,$target_vendor,;t t
22405 s,@target_os@,$target_os,;t t
22406 s,@RANLIB@,$RANLIB,;t t
22407 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22408 s,@SET_MAKE@,$SET_MAKE,;t t
22409 s,@ALLOCA@,$ALLOCA,;t t
22410 s,@USE_NLS@,$USE_NLS,;t t
22411 s,@MSGFMT@,$MSGFMT,;t t
22412 s,@GMSGFMT@,$GMSGFMT,;t t
22413 s,@XGETTEXT@,$XGETTEXT,;t t
22414 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22415 s,@CATALOGS@,$CATALOGS,;t t
22416 s,@CATOBJEXT@,$CATOBJEXT,;t t
22417 s,@DATADIRNAME@,$DATADIRNAME,;t t
22418 s,@GMOFILES@,$GMOFILES,;t t
22419 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22420 s,@INTLDEPS@,$INTLDEPS,;t t
22421 s,@INTLLIBS@,$INTLLIBS,;t t
22422 s,@INTLOBJS@,$INTLOBJS,;t t
22423 s,@POFILES@,$POFILES,;t t
22424 s,@POSUB@,$POSUB,;t t
22425 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
22426 s,@GT_NO@,$GT_NO,;t t
22427 s,@GT_YES@,$GT_YES,;t t
22428 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22430 s,@localedir@,$localedir,;t t
22431 s,@PACKAGE@,$PACKAGE,;t t
22432 s,@subdirs@,$subdirs,;t t
22434 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22435 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22436 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22437 s,@LN_S@,$LN_S,;t t
22438 s,@YACC@,$YACC,;t t
22440 s,@ac_ct_AR@,$ac_ct_AR,;t t
22441 s,@DLLTOOL@,$DLLTOOL,;t t
22442 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22443 s,@WINDRES@,$WINDRES,;t t
22444 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22446 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22447 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22448 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22449 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22450 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22451 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22452 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22453 s,@WIN32LIBS@,$WIN32LIBS,;t t
22454 s,@LIBGUI@,$LIBGUI,;t t
22455 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22456 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22457 s,@TCL_VERSION@,$TCL_VERSION,;t t
22458 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22459 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22460 s,@TCL_CC@,$TCL_CC,;t t
22461 s,@TCL_DEFS@,$TCL_DEFS,;t t
22462 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22463 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22464 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22465 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22466 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22467 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22468 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22469 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22470 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22471 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22472 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22473 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22474 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22475 s,@TK_VERSION@,$TK_VERSION,;t t
22476 s,@TK_DEFS@,$TK_DEFS,;t t
22477 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22478 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22479 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22480 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22481 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22482 s,@TCLHDIR@,$TCLHDIR,;t t
22483 s,@TKHDIR@,$TKHDIR,;t t
22484 s,@ITCLHDIR@,$ITCLHDIR,;t t
22485 s,@ITKHDIR@,$ITKHDIR,;t t
22486 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
22487 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
22488 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
22489 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
22490 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
22491 s,@ITK_VERSION@,$ITK_VERSION,;t t
22492 s,@ITK_DEFS@,$ITK_DEFS,;t t
22493 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
22494 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
22495 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
22496 s,@X_CFLAGS@,$X_CFLAGS,;t t
22497 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22498 s,@X_LIBS@,$X_LIBS,;t t
22499 s,@TCL_DEPS@,$TCL_DEPS,;t t
22500 s,@TK_DEPS@,$TK_DEPS,;t t
22501 s,@ITCLLIB@,$ITCLLIB,;t t
22502 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
22503 s,@ITKLIB@,$ITKLIB,;t t
22504 s,@ITK_DEPS@,$ITK_DEPS,;t t
22505 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22506 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22507 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22508 s,@IGNORE_SIM@,$IGNORE_SIM,;t t
22509 s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
22510 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22511 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22512 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22513 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22514 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22515 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22516 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22517 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22518 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22519 s,@target_subdir@,$target_subdir,;t t
22520 s,@frags@,$frags,;t t
22521 s,@xm_h@,$xm_h,;t t
22522 s,@tm_h@,$tm_h,;t t
22523 s,@nm_h@,$nm_h,;t t
22524 s,@LIBICONV@,$LIBICONV,;t t
22525 s,@LIBOBJS@,$LIBOBJS,;t t
22526 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22527 /@host_makefile_frag@/r $host_makefile_frag
22528 s,@host_makefile_frag@,,;t t
22529 /@target_makefile_frag@/r $target_makefile_frag
22530 s,@target_makefile_frag@,,;t t
22535 cat >>$CONFIG_STATUS <<\_ACEOF
22536 # Split the substitutions into bite-sized pieces for seds with
22537 # small command number limits, like on Digital OSF/1 and HP-UX.
22538 ac_max_sed_lines=48
22539 ac_sed_frag=1 # Number of current file.
22540 ac_beg=1 # First line for current file.
22541 ac_end=$ac_max_sed_lines # Line after last line for current file.
22544 while $ac_more_lines; do
22545 if test $ac_beg -gt 1; then
22546 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22548 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22550 if test ! -s $tmp/subs.frag; then
22551 ac_more_lines=false
22553 # The purpose of the label and of the branching condition is to
22554 # speed up the sed processing (if there are no `@' at all, there
22555 # is no need to browse any of the substitutions).
22556 # These are the two extra sed commands mentioned above.
22558 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22559 if test -z "$ac_sed_cmds"; then
22560 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22562 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22564 ac_sed_frag=`expr $ac_sed_frag + 1`
22566 ac_end=`expr $ac_end + $ac_max_sed_lines`
22569 if test -z "$ac_sed_cmds"; then
22572 fi # test -n "$CONFIG_FILES"
22575 cat >>$CONFIG_STATUS <<\_ACEOF
22576 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22577 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22579 - | *:- | *:-:* ) # input from stdin
22581 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22582 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22583 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22584 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22585 * ) ac_file_in=$ac_file.in ;;
22588 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22589 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22590 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22591 X"$ac_file" : 'X\(//\)[^/]' \| \
22592 X"$ac_file" : 'X\(//\)$' \| \
22593 X"$ac_file" : 'X\(/\)' \| \
22594 . : '\(.\)' 2>/dev/null ||
22596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22597 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22598 /^X\(\/\/\)$/{ s//\1/; q; }
22599 /^X\(\/\).*/{ s//\1/; q; }
22601 { if $as_mkdir_p; then
22606 while test ! -d "$as_dir"; do
22607 as_dirs="$as_dir $as_dirs"
22608 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22609 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22610 X"$as_dir" : 'X\(//\)[^/]' \| \
22611 X"$as_dir" : 'X\(//\)$' \| \
22612 X"$as_dir" : 'X\(/\)' \| \
22613 . : '\(.\)' 2>/dev/null ||
22615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22616 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22617 /^X\(\/\/\)$/{ s//\1/; q; }
22618 /^X\(\/\).*/{ s//\1/; q; }
22621 test ! -n "$as_dirs" || mkdir $as_dirs
22622 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22623 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22624 { (exit 1); exit 1; }; }; }
22628 if test "$ac_dir" != .; then
22629 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22630 # A "../" for each directory in $ac_dir_suffix.
22631 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22633 ac_dir_suffix= ac_top_builddir=
22637 .) # No --srcdir option. We are building in place.
22639 if test -z "$ac_top_builddir"; then
22642 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22644 [\\/]* | ?:[\\/]* ) # Absolute path.
22645 ac_srcdir=$srcdir$ac_dir_suffix;
22646 ac_top_srcdir=$srcdir ;;
22647 *) # Relative path.
22648 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22649 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22652 # Do not use `cd foo && pwd` to compute absolute paths, because
22653 # the directories may not exist.
22655 .) ac_abs_builddir="$ac_dir";;
22658 .) ac_abs_builddir=`pwd`;;
22659 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22660 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22663 case $ac_abs_builddir in
22664 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22666 case ${ac_top_builddir}. in
22667 .) ac_abs_top_builddir=$ac_abs_builddir;;
22668 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22669 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22672 case $ac_abs_builddir in
22673 .) ac_abs_srcdir=$ac_srcdir;;
22676 .) ac_abs_srcdir=$ac_abs_builddir;;
22677 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22678 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22681 case $ac_abs_builddir in
22682 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22684 case $ac_top_srcdir in
22685 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22686 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22687 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22693 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22694 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22697 if test x"$ac_file" != x-; then
22698 { echo "$as_me:$LINENO: creating $ac_file" >&5
22699 echo "$as_me: creating $ac_file" >&6;}
22702 # Let's still pretend it is `configure' which instantiates (i.e., don't
22703 # use $as_me), people would be surprised to read:
22704 # /* config.h. Generated by config.status. */
22705 if test x"$ac_file" = x-; then
22708 configure_input="$ac_file. "
22710 configure_input=$configure_input"Generated from `echo $ac_file_in |
22711 sed 's,.*/,,'` by configure."
22713 # First look for the input files in the build tree, otherwise in the
22715 ac_file_inputs=`IFS=:
22716 for f in $ac_file_in; do
22718 -) echo $tmp/stdin ;;
22720 # Absolute (can't be DOS-style, as IFS=:)
22721 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22722 echo "$as_me: error: cannot find input file: $f" >&2;}
22723 { (exit 1); exit 1; }; }
22726 if test -f "$f"; then
22729 elif test -f "$srcdir/$f"; then
22734 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22735 echo "$as_me: error: cannot find input file: $f" >&2;}
22736 { (exit 1); exit 1; }; }
22739 done` || { (exit 1); exit 1; }
22741 cat >>$CONFIG_STATUS <<_ACEOF
22745 cat >>$CONFIG_STATUS <<\_ACEOF
22747 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22748 s,@configure_input@,$configure_input,;t t
22749 s,@srcdir@,$ac_srcdir,;t t
22750 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22751 s,@top_srcdir@,$ac_top_srcdir,;t t
22752 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22753 s,@builddir@,$ac_builddir,;t t
22754 s,@abs_builddir@,$ac_abs_builddir,;t t
22755 s,@top_builddir@,$ac_top_builddir,;t t
22756 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22757 s,@INSTALL@,$ac_INSTALL,;t t
22758 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22760 if test x"$ac_file" != x-; then
22761 mv $tmp/out $ac_file
22769 cat >>$CONFIG_STATUS <<\_ACEOF
22772 # CONFIG_HEADER section.
22775 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22776 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22778 # ac_d sets the value in "#define NAME VALUE" lines.
22779 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22780 ac_dB='[ ].*$,\1#\2'
22783 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22784 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22785 ac_uB='$,\1#\2define\3'
22789 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22790 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22792 - | *:- | *:-:* ) # input from stdin
22794 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22795 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22796 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22797 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22798 * ) ac_file_in=$ac_file.in ;;
22801 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22802 echo "$as_me: creating $ac_file" >&6;}
22804 # First look for the input files in the build tree, otherwise in the
22806 ac_file_inputs=`IFS=:
22807 for f in $ac_file_in; do
22809 -) echo $tmp/stdin ;;
22811 # Absolute (can't be DOS-style, as IFS=:)
22812 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22813 echo "$as_me: error: cannot find input file: $f" >&2;}
22814 { (exit 1); exit 1; }; }
22815 # Do quote $f, to prevent DOS paths from being IFS'd.
22818 if test -f "$f"; then
22821 elif test -f "$srcdir/$f"; then
22826 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22827 echo "$as_me: error: cannot find input file: $f" >&2;}
22828 { (exit 1); exit 1; }; }
22831 done` || { (exit 1); exit 1; }
22832 # Remove the trailing spaces.
22833 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22837 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22838 # `conftest.undefs', that substitutes the proper values into
22839 # config.h.in to produce config.h. The first handles `#define'
22840 # templates, and the second `#undef' templates.
22841 # And first: Protect against being on the right side of a sed subst in
22842 # config.status. Protect against being in an unquoted here document
22843 # in config.status.
22844 rm -f conftest.defines conftest.undefs
22845 # Using a here document instead of a string reduces the quoting nightmare.
22846 # Putting comments in sed scripts is not portable.
22848 # `end' is used to avoid that the second main sed command (meant for
22849 # 0-ary CPP macros) applies to n-ary macro definitions.
22850 # See the Autoconf documentation for `clear'.
22851 cat >confdef2sed.sed <<\_ACEOF
22856 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22858 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22861 # If some macros were called several times there might be several times
22862 # the same #defines, which is useless. Nevertheless, we may not want to
22863 # sort them, since we want the *last* AC-DEFINE to be honored.
22864 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22865 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22866 rm -f confdef2sed.sed
22868 # This sed command replaces #undef with comments. This is necessary, for
22869 # example, in the case of _POSIX_SOURCE, which is predefined and required
22870 # on some systems where configure will not decide to define it.
22871 cat >>conftest.undefs <<\_ACEOF
22872 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22875 # Break up conftest.defines because some shells have a limit on the size
22876 # of here documents, and old seds have small limits too (100 cmds).
22877 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22878 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22879 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22880 echo ' :' >>$CONFIG_STATUS
22881 rm -f conftest.tail
22882 while grep . conftest.defines >/dev/null
22884 # Write a limited-size here document to $tmp/defines.sed.
22885 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22886 # Speed up: don't consider the non `#define' lines.
22887 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22888 # Work around the forget-to-reset-the-flag bug.
22889 echo 't clr' >>$CONFIG_STATUS
22890 echo ': clr' >>$CONFIG_STATUS
22891 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22893 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22895 mv $tmp/out $tmp/in
22897 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22898 rm -f conftest.defines
22899 mv conftest.tail conftest.defines
22901 rm -f conftest.defines
22902 echo ' fi # grep' >>$CONFIG_STATUS
22903 echo >>$CONFIG_STATUS
22905 # Break up conftest.undefs because some shells have a limit on the size
22906 # of here documents, and old seds have small limits too (100 cmds).
22907 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22908 rm -f conftest.tail
22909 while grep . conftest.undefs >/dev/null
22911 # Write a limited-size here document to $tmp/undefs.sed.
22912 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22913 # Speed up: don't consider the non `#undef'
22914 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22915 # Work around the forget-to-reset-the-flag bug.
22916 echo 't clr' >>$CONFIG_STATUS
22917 echo ': clr' >>$CONFIG_STATUS
22918 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22920 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22922 mv $tmp/out $tmp/in
22924 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22925 rm -f conftest.undefs
22926 mv conftest.tail conftest.undefs
22928 rm -f conftest.undefs
22930 cat >>$CONFIG_STATUS <<\_ACEOF
22931 # Let's still pretend it is `configure' which instantiates (i.e., don't
22932 # use $as_me), people would be surprised to read:
22933 # /* config.h. Generated by config.status. */
22934 if test x"$ac_file" = x-; then
22935 echo "/* Generated by configure. */" >$tmp/config.h
22937 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22939 cat $tmp/in >>$tmp/config.h
22941 if test x"$ac_file" != x-; then
22942 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22943 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22944 echo "$as_me: $ac_file is unchanged" >&6;}
22946 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22947 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22948 X"$ac_file" : 'X\(//\)[^/]' \| \
22949 X"$ac_file" : 'X\(//\)$' \| \
22950 X"$ac_file" : 'X\(/\)' \| \
22951 . : '\(.\)' 2>/dev/null ||
22953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22954 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22955 /^X\(\/\/\)$/{ s//\1/; q; }
22956 /^X\(\/\).*/{ s//\1/; q; }
22958 { if $as_mkdir_p; then
22963 while test ! -d "$as_dir"; do
22964 as_dirs="$as_dir $as_dirs"
22965 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22966 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22967 X"$as_dir" : 'X\(//\)[^/]' \| \
22968 X"$as_dir" : 'X\(//\)$' \| \
22969 X"$as_dir" : 'X\(/\)' \| \
22970 . : '\(.\)' 2>/dev/null ||
22972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22974 /^X\(\/\/\)$/{ s//\1/; q; }
22975 /^X\(\/\).*/{ s//\1/; q; }
22978 test ! -n "$as_dirs" || mkdir $as_dirs
22979 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22980 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22981 { (exit 1); exit 1; }; }; }
22984 mv $tmp/config.h $ac_file
22988 rm -f $tmp/config.h
22992 cat >>$CONFIG_STATUS <<\_ACEOF
22995 # CONFIG_LINKS section.
22998 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22999 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23000 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23002 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23003 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
23005 if test ! -r $srcdir/$ac_source; then
23006 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23007 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23008 { (exit 1); exit 1; }; }
23012 # Make relative symlinks.
23013 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23014 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23015 X"$ac_dest" : 'X\(//\)[^/]' \| \
23016 X"$ac_dest" : 'X\(//\)$' \| \
23017 X"$ac_dest" : 'X\(/\)' \| \
23018 . : '\(.\)' 2>/dev/null ||
23020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23021 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23022 /^X\(\/\/\)$/{ s//\1/; q; }
23023 /^X\(\/\).*/{ s//\1/; q; }
23025 { if $as_mkdir_p; then
23026 mkdir -p "$ac_dest_dir"
23028 as_dir="$ac_dest_dir"
23030 while test ! -d "$as_dir"; do
23031 as_dirs="$as_dir $as_dirs"
23032 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23033 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23034 X"$as_dir" : 'X\(//\)[^/]' \| \
23035 X"$as_dir" : 'X\(//\)$' \| \
23036 X"$as_dir" : 'X\(/\)' \| \
23037 . : '\(.\)' 2>/dev/null ||
23039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23040 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23041 /^X\(\/\/\)$/{ s//\1/; q; }
23042 /^X\(\/\).*/{ s//\1/; q; }
23045 test ! -n "$as_dirs" || mkdir $as_dirs
23046 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23047 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23048 { (exit 1); exit 1; }; }; }
23052 if test "$ac_dest_dir" != .; then
23053 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23054 # A "../" for each directory in $ac_dir_suffix.
23055 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23057 ac_dir_suffix= ac_top_builddir=
23061 .) # No --srcdir option. We are building in place.
23063 if test -z "$ac_top_builddir"; then
23066 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23068 [\\/]* | ?:[\\/]* ) # Absolute path.
23069 ac_srcdir=$srcdir$ac_dir_suffix;
23070 ac_top_srcdir=$srcdir ;;
23071 *) # Relative path.
23072 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23073 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23076 # Do not use `cd foo && pwd` to compute absolute paths, because
23077 # the directories may not exist.
23079 .) ac_abs_builddir="$ac_dest_dir";;
23081 case "$ac_dest_dir" in
23082 .) ac_abs_builddir=`pwd`;;
23083 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23084 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23087 case $ac_abs_builddir in
23088 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23090 case ${ac_top_builddir}. in
23091 .) ac_abs_top_builddir=$ac_abs_builddir;;
23092 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23093 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23096 case $ac_abs_builddir in
23097 .) ac_abs_srcdir=$ac_srcdir;;
23100 .) ac_abs_srcdir=$ac_abs_builddir;;
23101 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23102 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23105 case $ac_abs_builddir in
23106 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23108 case $ac_top_srcdir in
23109 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23110 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23111 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23117 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23118 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23121 # Try a symlink, then a hard link, then a copy.
23122 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23123 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23124 cp -p $srcdir/$ac_source $ac_dest ||
23125 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23126 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23127 { (exit 1); exit 1; }; }
23130 cat >>$CONFIG_STATUS <<\_ACEOF
23133 # CONFIG_COMMANDS section.
23135 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23136 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23137 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23138 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23139 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23140 X"$ac_dest" : 'X\(//\)[^/]' \| \
23141 X"$ac_dest" : 'X\(//\)$' \| \
23142 X"$ac_dest" : 'X\(/\)' \| \
23143 . : '\(.\)' 2>/dev/null ||
23145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23147 /^X\(\/\/\)$/{ s//\1/; q; }
23148 /^X\(\/\).*/{ s//\1/; q; }
23150 { if $as_mkdir_p; then
23155 while test ! -d "$as_dir"; do
23156 as_dirs="$as_dir $as_dirs"
23157 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23158 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23159 X"$as_dir" : 'X\(//\)[^/]' \| \
23160 X"$as_dir" : 'X\(//\)$' \| \
23161 X"$as_dir" : 'X\(/\)' \| \
23162 . : '\(.\)' 2>/dev/null ||
23164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23166 /^X\(\/\/\)$/{ s//\1/; q; }
23167 /^X\(\/\).*/{ s//\1/; q; }
23170 test ! -n "$as_dirs" || mkdir $as_dirs
23171 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23172 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23173 { (exit 1); exit 1; }; }; }
23177 if test "$ac_dir" != .; then
23178 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23179 # A "../" for each directory in $ac_dir_suffix.
23180 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23182 ac_dir_suffix= ac_top_builddir=
23186 .) # No --srcdir option. We are building in place.
23188 if test -z "$ac_top_builddir"; then
23191 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23193 [\\/]* | ?:[\\/]* ) # Absolute path.
23194 ac_srcdir=$srcdir$ac_dir_suffix;
23195 ac_top_srcdir=$srcdir ;;
23196 *) # Relative path.
23197 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23198 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23201 # Do not use `cd foo && pwd` to compute absolute paths, because
23202 # the directories may not exist.
23204 .) ac_abs_builddir="$ac_dir";;
23207 .) ac_abs_builddir=`pwd`;;
23208 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23209 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23212 case $ac_abs_builddir in
23213 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23215 case ${ac_top_builddir}. in
23216 .) ac_abs_top_builddir=$ac_abs_builddir;;
23217 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23218 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23221 case $ac_abs_builddir in
23222 .) ac_abs_srcdir=$ac_srcdir;;
23225 .) ac_abs_srcdir=$ac_abs_builddir;;
23226 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23227 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23230 case $ac_abs_builddir in
23231 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23233 case $ac_top_srcdir in
23234 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23235 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23236 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23241 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23242 echo "$as_me: executing $ac_dest commands" >&6;}
23246 sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
23247 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
23248 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23249 mv -f Makefile.tmp Makefile
23252 case x$CONFIG_HEADERS in
23253 xconfig.h:config.in)
23261 cat >>$CONFIG_STATUS <<\_ACEOF
23263 { (exit 0); exit 0; }
23265 chmod +x $CONFIG_STATUS
23266 ac_clean_files=$ac_clean_files_save
23269 # configure is writing to config.log, and then calls config.status.
23270 # config.status does its own redirection, appending to config.log.
23271 # Unfortunately, on DOS this fails, as config.log is still kept open
23272 # by configure, so config.status won't be able to write to it; its
23273 # output is simply discarded. So we exec the FD to /dev/null,
23274 # effectively closing config.log, so it can be properly (re)opened and
23275 # appended to by config.status. When coming back to configure, we
23276 # need to make the FD available again.
23277 if test "$no_create" != yes; then
23279 ac_config_status_args=
23280 test "$silent" = yes &&
23281 ac_config_status_args="$ac_config_status_args --quiet"
23283 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23285 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23286 # would make configure fail if this is the last instruction.
23287 $ac_cs_success || { (exit 1); exit 1; }
23291 # CONFIG_SUBDIRS section.
23293 if test "$no_recursion" != yes; then
23295 # Remove --cache-file and --srcdir arguments so they do not pile up.
23296 ac_sub_configure_args=
23298 for ac_arg in $ac_configure_args; do
23299 if test -n "$ac_prev"; then
23304 -cache-file | --cache-file | --cache-fil | --cache-fi \
23305 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23306 ac_prev=cache_file ;;
23307 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23308 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23311 --config-cache | -C)
23313 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23315 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23317 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23319 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23321 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23325 # Always prepend --prefix to ensure using the same prefix
23326 # in subdir configurations.
23327 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23330 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23332 # Do not complain, so a configure script can configure whichever
23333 # parts of a large source tree are present.
23334 test -d $srcdir/$ac_dir || continue
23336 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23337 echo "$as_me: configuring in $ac_dir" >&6;}
23338 { if $as_mkdir_p; then
23343 while test ! -d "$as_dir"; do
23344 as_dirs="$as_dir $as_dirs"
23345 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23347 X"$as_dir" : 'X\(//\)[^/]' \| \
23348 X"$as_dir" : 'X\(//\)$' \| \
23349 X"$as_dir" : 'X\(/\)' \| \
23350 . : '\(.\)' 2>/dev/null ||
23352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23353 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23354 /^X\(\/\/\)$/{ s//\1/; q; }
23355 /^X\(\/\).*/{ s//\1/; q; }
23358 test ! -n "$as_dirs" || mkdir $as_dirs
23359 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23360 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23361 { (exit 1); exit 1; }; }; }
23365 if test "$ac_dir" != .; then
23366 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23367 # A "../" for each directory in $ac_dir_suffix.
23368 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23370 ac_dir_suffix= ac_top_builddir=
23374 .) # No --srcdir option. We are building in place.
23376 if test -z "$ac_top_builddir"; then
23379 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23381 [\\/]* | ?:[\\/]* ) # Absolute path.
23382 ac_srcdir=$srcdir$ac_dir_suffix;
23383 ac_top_srcdir=$srcdir ;;
23384 *) # Relative path.
23385 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23386 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23389 # Do not use `cd foo && pwd` to compute absolute paths, because
23390 # the directories may not exist.
23392 .) ac_abs_builddir="$ac_dir";;
23395 .) ac_abs_builddir=`pwd`;;
23396 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23397 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23400 case $ac_abs_builddir in
23401 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23403 case ${ac_top_builddir}. in
23404 .) ac_abs_top_builddir=$ac_abs_builddir;;
23405 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23406 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23409 case $ac_abs_builddir in
23410 .) ac_abs_srcdir=$ac_srcdir;;
23413 .) ac_abs_srcdir=$ac_abs_builddir;;
23414 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23415 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23418 case $ac_abs_builddir in
23419 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23421 case $ac_top_srcdir in
23422 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23423 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23424 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23431 # Check for guested configure; otherwise get Cygnus style configure.
23432 if test -f $ac_srcdir/configure.gnu; then
23433 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23434 elif test -f $ac_srcdir/configure; then
23435 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23436 elif test -f $ac_srcdir/configure.in; then
23437 ac_sub_configure=$ac_configure
23439 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23440 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23444 # The recursion is here.
23445 if test -n "$ac_sub_configure"; then
23446 # Make the cache file name correct relative to the subdirectory.
23447 case $cache_file in
23448 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23449 *) # Relative path.
23450 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23453 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23454 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23455 # The eval makes quoting arguments work.
23456 eval $ac_sub_configure $ac_sub_configure_args \
23457 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23458 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23459 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23460 { (exit 1); exit 1; }; }