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 SET_MAKE RANLIB ac_ct_RANLIB ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags xm_h tm_h nm_h LIBICONV LIBOBJS LTLIBOBJS'
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}-
2942 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2943 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2944 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2945 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 cat >conftest.make <<\_ACEOF
2950 @echo 'ac_maketemp="$(MAKE)"'
2952 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2953 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2954 if test -n "$ac_maketemp"; then
2955 eval ac_cv_prog_make_${ac_make}_set=yes
2957 eval ac_cv_prog_make_${ac_make}_set=no
2961 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2962 echo "$as_me:$LINENO: result: yes" >&5
2963 echo "${ECHO_T}yes" >&6
2966 echo "$as_me:$LINENO: result: no" >&5
2967 echo "${ECHO_T}no" >&6
2968 SET_MAKE="MAKE=${MAKE-make}"
2971 if test -n "$ac_tool_prefix"; then
2972 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2973 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2974 echo "$as_me:$LINENO: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976 if test "${ac_cv_prog_RANLIB+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 if test -n "$RANLIB"; then
2980 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 RANLIB=$ac_cv_prog_RANLIB
2999 if test -n "$RANLIB"; then
3000 echo "$as_me:$LINENO: result: $RANLIB" >&5
3001 echo "${ECHO_T}$RANLIB" >&6
3003 echo "$as_me:$LINENO: result: no" >&5
3004 echo "${ECHO_T}no" >&6
3008 if test -z "$ac_cv_prog_RANLIB"; then
3009 ac_ct_RANLIB=$RANLIB
3010 # Extract the first word of "ranlib", so it can be a program name with args.
3011 set dummy ranlib; ac_word=$2
3012 echo "$as_me:$LINENO: checking for $ac_word" >&5
3013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3014 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 if test -n "$ac_ct_RANLIB"; then
3018 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3027 ac_cv_prog_ac_ct_RANLIB="ranlib"
3028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3037 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3038 if test -n "$ac_ct_RANLIB"; then
3039 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3040 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3042 echo "$as_me:$LINENO: result: no" >&5
3043 echo "${ECHO_T}no" >&6
3046 RANLIB=$ac_ct_RANLIB
3048 RANLIB="$ac_cv_prog_RANLIB"
3051 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3052 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3053 if test "${ac_cv_header_stdc+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3056 cat >conftest.$ac_ext <<_ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3075 rm -f conftest.$ac_objext
3076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3077 (eval $ac_compile) 2>conftest.er1
3079 grep -v '^ *+' conftest.er1 >conftest.err
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_c_werror_flag"
3085 || test ! -s conftest.err'
3086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; } &&
3091 { ac_try='test -s conftest.$ac_objext'
3092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3097 ac_cv_header_stdc=yes
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3102 ac_cv_header_stdc=no
3104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3106 if test $ac_cv_header_stdc = yes; then
3107 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3108 cat >conftest.$ac_ext <<_ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h. */
3117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3118 $EGREP "memchr" >/dev/null 2>&1; then
3121 ac_cv_header_stdc=no
3127 if test $ac_cv_header_stdc = yes; then
3128 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3129 cat >conftest.$ac_ext <<_ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139 $EGREP "free" >/dev/null 2>&1; then
3142 ac_cv_header_stdc=no
3148 if test $ac_cv_header_stdc = yes; then
3149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3150 if test "$cross_compiling" = yes; then
3153 cat >conftest.$ac_ext <<_ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3160 #if ((' ' & 0x0FF) == 0x020)
3161 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3162 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3164 # define ISLOWER(c) \
3165 (('a' <= (c) && (c) <= 'i') \
3166 || ('j' <= (c) && (c) <= 'r') \
3167 || ('s' <= (c) && (c) <= 'z'))
3168 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3171 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3176 for (i = 0; i < 256; i++)
3177 if (XOR (islower (i), ISLOWER (i))
3178 || toupper (i) != TOUPPER (i))
3183 rm -f conftest$ac_exeext
3184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3185 (eval $ac_link) 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3196 echo "$as_me: program exited with status $ac_status" >&5
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3201 ac_cv_header_stdc=no
3203 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3207 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3208 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3209 if test $ac_cv_header_stdc = yes; then
3211 cat >>confdefs.h <<\_ACEOF
3212 #define STDC_HEADERS 1
3217 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3218 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3219 if test "${ac_cv_c_const+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 cat >conftest.$ac_ext <<_ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3232 /* FIXME: Include the comments suggested by Paul. */
3234 /* Ultrix mips cc rejects this. */
3235 typedef int charset[2];
3237 /* SunOS 4.1.1 cc rejects this. */
3238 char const *const *ccp;
3240 /* NEC SVR4.0.2 mips cc rejects this. */
3241 struct point {int x, y;};
3242 static struct point const zero = {0,0};
3243 /* AIX XL C 1.02.0.0 rejects this.
3244 It does not let you subtract one const X* pointer from another in
3245 an arm of an if-expression whose if-part is not a constant
3247 const char *g = "string";
3248 ccp = &g + (g ? g-g : 0);
3249 /* HPUX 7.0 cc rejects these. */
3252 ccp = (char const *const *) p;
3253 { /* SCO 3.2v4 cc rejects this. */
3255 char const *s = 0 ? (char *) 0 : (char const *) 0;
3259 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3261 const int *foo = &x[0];
3264 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3265 typedef const int *iptr;
3269 { /* AIX XL C 1.02.0.0 rejects this saying
3270 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3271 struct s { int j; const int *ap[3]; };
3272 struct s *b; b->j = 5;
3274 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3283 rm -f conftest.$ac_objext
3284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3285 (eval $ac_compile) 2>conftest.er1
3287 grep -v '^ *+' conftest.er1 >conftest.err
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } &&
3292 { ac_try='test -z "$ac_c_werror_flag"
3293 || test ! -s conftest.err'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; } &&
3299 { ac_try='test -s conftest.$ac_objext'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3314 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3315 echo "${ECHO_T}$ac_cv_c_const" >&6
3316 if test $ac_cv_c_const = no; then
3318 cat >>confdefs.h <<\_ACEOF
3324 echo "$as_me:$LINENO: checking for inline" >&5
3325 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3326 if test "${ac_cv_c_inline+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 for ac_kw in inline __inline__ __inline; do
3331 cat >conftest.$ac_ext <<_ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3339 static $ac_kw foo_t static_foo () {return 0; }
3340 $ac_kw foo_t foo () {return 0; }
3344 rm -f conftest.$ac_objext
3345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3346 (eval $ac_compile) 2>conftest.er1
3348 grep -v '^ *+' conftest.er1 >conftest.err
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } &&
3353 { ac_try='test -z "$ac_c_werror_flag"
3354 || test ! -s conftest.err'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; } &&
3360 { ac_try='test -s conftest.$ac_objext'
3361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; }; then
3366 ac_cv_c_inline=$ac_kw; break
3368 echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3376 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3377 echo "${ECHO_T}$ac_cv_c_inline" >&6
3380 case $ac_cv_c_inline in
3383 case $ac_cv_c_inline in
3385 *) ac_val=$ac_cv_c_inline;;
3387 cat >>confdefs.h <<_ACEOF
3389 #define inline $ac_val
3395 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3405 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3406 inttypes.h stdint.h unistd.h
3408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3409 echo "$as_me:$LINENO: checking for $ac_header" >&5
3410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 cat >conftest.$ac_ext <<_ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420 $ac_includes_default
3422 #include <$ac_header>
3424 rm -f conftest.$ac_objext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>conftest.er1
3428 grep -v '^ *+' conftest.er1 >conftest.err
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try='test -z "$ac_c_werror_flag"
3434 || test ! -s conftest.err'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; } &&
3440 { ac_try='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3446 eval "$as_ac_Header=yes"
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3451 eval "$as_ac_Header=no"
3453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3458 cat >>confdefs.h <<_ACEOF
3459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3467 echo "$as_me:$LINENO: checking for off_t" >&5
3468 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3469 if test "${ac_cv_type_off_t+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 cat >conftest.$ac_ext <<_ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3478 $ac_includes_default
3490 rm -f conftest.$ac_objext
3491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492 (eval $ac_compile) 2>conftest.er1
3494 grep -v '^ *+' conftest.er1 >conftest.err
3496 cat conftest.err >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } &&
3499 { ac_try='test -z "$ac_c_werror_flag"
3500 || test ! -s conftest.err'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; } &&
3506 { ac_try='test -s conftest.$ac_objext'
3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; }; then
3512 ac_cv_type_off_t=yes
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3521 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3522 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3523 if test $ac_cv_type_off_t = yes; then
3527 cat >>confdefs.h <<_ACEOF
3533 echo "$as_me:$LINENO: checking for size_t" >&5
3534 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3535 if test "${ac_cv_type_size_t+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 cat >conftest.$ac_ext <<_ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3544 $ac_includes_default
3550 if (sizeof (size_t))
3556 rm -f conftest.$ac_objext
3557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3558 (eval $ac_compile) 2>conftest.er1
3560 grep -v '^ *+' conftest.er1 >conftest.err
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } &&
3565 { ac_try='test -z "$ac_c_werror_flag"
3566 || test ! -s conftest.err'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; } &&
3572 { ac_try='test -s conftest.$ac_objext'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3578 ac_cv_type_size_t=yes
3580 echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3583 ac_cv_type_size_t=no
3585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3587 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3588 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3589 if test $ac_cv_type_size_t = yes; then
3593 cat >>confdefs.h <<_ACEOF
3594 #define size_t unsigned
3599 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3600 # for constant arguments. Useless!
3601 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3602 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3603 if test "${ac_cv_working_alloca_h+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 cat >conftest.$ac_ext <<_ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3616 char *p = (char *) alloca (2 * sizeof (int));
3621 rm -f conftest.$ac_objext conftest$ac_exeext
3622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3623 (eval $ac_link) 2>conftest.er1
3625 grep -v '^ *+' conftest.er1 >conftest.err
3627 cat conftest.err >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } &&
3630 { ac_try='test -z "$ac_c_werror_flag"
3631 || test ! -s conftest.err'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; } &&
3637 { ac_try='test -s conftest$ac_exeext'
3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; }; then
3643 ac_cv_working_alloca_h=yes
3645 echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3648 ac_cv_working_alloca_h=no
3650 rm -f conftest.err conftest.$ac_objext \
3651 conftest$ac_exeext conftest.$ac_ext
3653 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3654 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3655 if test $ac_cv_working_alloca_h = yes; then
3657 cat >>confdefs.h <<\_ACEOF
3658 #define HAVE_ALLOCA_H 1
3663 echo "$as_me:$LINENO: checking for alloca" >&5
3664 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3665 if test "${ac_cv_func_alloca_works+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 cat >conftest.$ac_ext <<_ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3675 # define alloca __builtin_alloca
3678 # include <malloc.h>
3679 # define alloca _alloca
3682 # include <alloca.h>
3687 # ifndef alloca /* predefined by HP cc +Olibcalls */
3698 char *p = (char *) alloca (1);
3703 rm -f conftest.$ac_objext conftest$ac_exeext
3704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705 (eval $ac_link) 2>conftest.er1
3707 grep -v '^ *+' conftest.er1 >conftest.err
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try='test -z "$ac_c_werror_flag"
3713 || test ! -s conftest.err'
3714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; } &&
3719 { ac_try='test -s conftest$ac_exeext'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; }; then
3725 ac_cv_func_alloca_works=yes
3727 echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3730 ac_cv_func_alloca_works=no
3732 rm -f conftest.err conftest.$ac_objext \
3733 conftest$ac_exeext conftest.$ac_ext
3735 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3736 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3738 if test $ac_cv_func_alloca_works = yes; then
3740 cat >>confdefs.h <<\_ACEOF
3741 #define HAVE_ALLOCA 1
3745 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3746 # that cause trouble. Some versions do not even contain alloca or
3747 # contain a buggy version. If you still want to use their alloca,
3748 # use ar to extract alloca.o from them instead of compiling alloca.c.
3750 ALLOCA=alloca.$ac_objext
3752 cat >>confdefs.h <<\_ACEOF
3757 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3758 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3759 if test "${ac_cv_os_cray+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 cat >conftest.$ac_ext <<_ACEOF
3765 cat confdefs.h >>conftest.$ac_ext
3766 cat >>conftest.$ac_ext <<_ACEOF
3767 /* end confdefs.h. */
3768 #if defined(CRAY) && ! defined(CRAY2)
3775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3776 $EGREP "webecray" >/dev/null 2>&1; then
3784 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3785 echo "${ECHO_T}$ac_cv_os_cray" >&6
3786 if test $ac_cv_os_cray = yes; then
3787 for ac_func in _getb67 GETB67 getb67; do
3788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3789 echo "$as_me:$LINENO: checking for $ac_func" >&5
3790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3791 if eval "test \"\${$as_ac_var+set}\" = set"; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 cat >conftest.$ac_ext <<_ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h. */
3800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3802 #define $ac_func innocuous_$ac_func
3804 /* System header to define __stub macros and hopefully few prototypes,
3805 which can conflict with char $ac_func (); below.
3806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3807 <limits.h> exists even on freestanding compilers. */
3810 # include <limits.h>
3812 # include <assert.h>
3817 /* Override any gcc2 internal prototype to avoid an error. */
3822 /* We use char because int might match the return type of a gcc2
3823 builtin and then its argument prototype would still apply. */
3825 /* The GNU C library defines this for functions which it implements
3826 to always fail with ENOSYS. Some functions are actually named
3827 something starting with __ and the normal name is an alias. */
3828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3831 char (*f) () = $ac_func;
3840 return f != $ac_func;
3845 rm -f conftest.$ac_objext conftest$ac_exeext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3847 (eval $ac_link) 2>conftest.er1
3849 grep -v '^ *+' conftest.er1 >conftest.err
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_c_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest$ac_exeext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 eval "$as_ac_var=yes"
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 eval "$as_ac_var=no"
3874 rm -f conftest.err conftest.$ac_objext \
3875 conftest$ac_exeext conftest.$ac_ext
3877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3879 if test `eval echo '${'$as_ac_var'}'` = yes; then
3881 cat >>confdefs.h <<_ACEOF
3882 #define CRAY_STACKSEG_END $ac_func
3891 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3892 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3893 if test "${ac_cv_c_stack_direction+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 if test "$cross_compiling" = yes; then
3897 ac_cv_c_stack_direction=0
3899 cat >conftest.$ac_ext <<_ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3906 find_stack_direction ()
3908 static char *addr = 0;
3913 return find_stack_direction ();
3916 return (&dummy > addr) ? 1 : -1;
3922 exit (find_stack_direction () < 0);
3925 rm -f conftest$ac_exeext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927 (eval $ac_link) 2>&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 ac_cv_c_stack_direction=1
3938 echo "$as_me: program exited with status $ac_status" >&5
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3943 ac_cv_c_stack_direction=-1
3945 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3948 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3949 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3951 cat >>confdefs.h <<_ACEOF
3952 #define STACK_DIRECTION $ac_cv_c_stack_direction
3960 for ac_header in stdlib.h unistd.h
3962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3964 echo "$as_me:$LINENO: checking for $ac_header" >&5
3965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3972 # Is the header compilable?
3973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3975 cat >conftest.$ac_ext <<_ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981 $ac_includes_default
3982 #include <$ac_header>
3984 rm -f conftest.$ac_objext
3985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986 (eval $ac_compile) 2>conftest.er1
3988 grep -v '^ *+' conftest.er1 >conftest.err
3990 cat conftest.err >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } &&
3993 { ac_try='test -z "$ac_c_werror_flag"
3994 || test ! -s conftest.err'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; } &&
4000 { ac_try='test -s conftest.$ac_objext'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4006 ac_header_compiler=yes
4008 echo "$as_me: failed program was:" >&5
4009 sed 's/^/| /' conftest.$ac_ext >&5
4011 ac_header_compiler=no
4013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4015 echo "${ECHO_T}$ac_header_compiler" >&6
4017 # Is the header present?
4018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4020 cat >conftest.$ac_ext <<_ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4026 #include <$ac_header>
4028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4031 grep -v '^ *+' conftest.er1 >conftest.err
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } >/dev/null; then
4036 if test -s conftest.err; then
4037 ac_cpp_err=$ac_c_preproc_warn_flag
4038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4045 if test -z "$ac_cpp_err"; then
4046 ac_header_preproc=yes
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4051 ac_header_preproc=no
4053 rm -f conftest.err conftest.$ac_ext
4054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4055 echo "${ECHO_T}$ac_header_preproc" >&6
4057 # So? What about this header?
4058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4064 ac_header_preproc=yes
4067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4074 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4081 ## ------------------------------------------ ##
4082 ## Report this to the AC_PACKAGE_NAME lists. ##
4083 ## ------------------------------------------ ##
4086 sed "s/^/$as_me: WARNING: /" >&2
4089 echo "$as_me:$LINENO: checking for $ac_header" >&5
4090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 eval "$as_ac_Header=\$ac_header_preproc"
4096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4101 cat >>confdefs.h <<_ACEOF
4102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4110 for ac_func in getpagesize
4112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4113 echo "$as_me:$LINENO: checking for $ac_func" >&5
4114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4115 if eval "test \"\${$as_ac_var+set}\" = set"; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 cat >conftest.$ac_ext <<_ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4126 #define $ac_func innocuous_$ac_func
4128 /* System header to define __stub macros and hopefully few prototypes,
4129 which can conflict with char $ac_func (); below.
4130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4131 <limits.h> exists even on freestanding compilers. */
4134 # include <limits.h>
4136 # include <assert.h>
4141 /* Override any gcc2 internal prototype to avoid an error. */
4146 /* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4149 /* The GNU C library defines this for functions which it implements
4150 to always fail with ENOSYS. Some functions are actually named
4151 something starting with __ and the normal name is an alias. */
4152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4155 char (*f) () = $ac_func;
4164 return f != $ac_func;
4169 rm -f conftest.$ac_objext conftest$ac_exeext
4170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4171 (eval $ac_link) 2>conftest.er1
4173 grep -v '^ *+' conftest.er1 >conftest.err
4175 cat conftest.err >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } &&
4178 { ac_try='test -z "$ac_c_werror_flag"
4179 || test ! -s conftest.err'
4180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; } &&
4185 { ac_try='test -s conftest$ac_exeext'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
4191 eval "$as_ac_var=yes"
4193 echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4196 eval "$as_ac_var=no"
4198 rm -f conftest.err conftest.$ac_objext \
4199 conftest$ac_exeext conftest.$ac_ext
4201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4203 if test `eval echo '${'$as_ac_var'}'` = yes; then
4204 cat >>confdefs.h <<_ACEOF
4205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4211 echo "$as_me:$LINENO: checking for working mmap" >&5
4212 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4213 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 if test "$cross_compiling" = yes; then
4217 ac_cv_func_mmap_fixed_mapped=no
4219 cat >conftest.$ac_ext <<_ACEOF
4222 cat confdefs.h >>conftest.$ac_ext
4223 cat >>conftest.$ac_ext <<_ACEOF
4224 /* end confdefs.h. */
4225 $ac_includes_default
4226 /* malloc might have been renamed as rpl_malloc. */
4229 /* Thanks to Mike Haertel and Jim Avera for this test.
4230 Here is a matrix of mmap possibilities:
4231 mmap private not fixed
4232 mmap private fixed at somewhere currently unmapped
4233 mmap private fixed at somewhere already mapped
4234 mmap shared not fixed
4235 mmap shared fixed at somewhere currently unmapped
4236 mmap shared fixed at somewhere already mapped
4237 For private mappings, we should verify that changes cannot be read()
4238 back from the file, nor mmap's back from the file at a different
4239 address. (There have been systems where private was not correctly
4240 implemented like the infamous i386 svr4.0, and systems where the
4241 VM page cache was not coherent with the file system buffer cache
4242 like early versions of FreeBSD and possibly contemporary NetBSD.)
4243 For shared mappings, we should conversely verify that changes get
4244 propagated back to all the places they're supposed to be.
4246 Grep wants private fixed already mapped.
4247 The main things grep needs to know about mmap are:
4248 * does it exist and is it safe to write into the mmap'd area
4249 * how to use it (BSD variants) */
4252 #include <sys/mman.h>
4254 #if !STDC_HEADERS && !HAVE_STDLIB_H
4258 /* This mess was copied from the GNU getpagesize.h. */
4259 #if !HAVE_GETPAGESIZE
4260 /* Assume that all systems that can run configure have sys/param.h. */
4261 # if !HAVE_SYS_PARAM_H
4262 # define HAVE_SYS_PARAM_H 1
4265 # ifdef _SC_PAGESIZE
4266 # define getpagesize() sysconf(_SC_PAGESIZE)
4267 # else /* no _SC_PAGESIZE */
4268 # if HAVE_SYS_PARAM_H
4269 # include <sys/param.h>
4270 # ifdef EXEC_PAGESIZE
4271 # define getpagesize() EXEC_PAGESIZE
4272 # else /* no EXEC_PAGESIZE */
4274 # define getpagesize() NBPG * CLSIZE
4277 # endif /* no CLSIZE */
4278 # else /* no NBPG */
4280 # define getpagesize() NBPC
4281 # else /* no NBPC */
4283 # define getpagesize() PAGESIZE
4284 # endif /* PAGESIZE */
4285 # endif /* no NBPC */
4286 # endif /* no NBPG */
4287 # endif /* no EXEC_PAGESIZE */
4288 # else /* no HAVE_SYS_PARAM_H */
4289 # define getpagesize() 8192 /* punt totally */
4290 # endif /* no HAVE_SYS_PARAM_H */
4291 # endif /* no _SC_PAGESIZE */
4293 #endif /* no HAVE_GETPAGESIZE */
4298 char *data, *data2, *data3;
4302 pagesize = getpagesize ();
4304 /* First, make a file with some known garbage in it. */
4305 data = (char *) malloc (pagesize);
4308 for (i = 0; i < pagesize; ++i)
4309 *(data + i) = rand ();
4311 fd = creat ("conftest.mmap", 0600);
4314 if (write (fd, data, pagesize) != pagesize)
4318 /* Next, try to mmap the file at a fixed address which already has
4319 something else allocated at it. If we can, also make sure that
4320 we see the same garbage. */
4321 fd = open ("conftest.mmap", O_RDWR);
4324 data2 = (char *) malloc (2 * pagesize);
4327 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4328 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4329 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4331 for (i = 0; i < pagesize; ++i)
4332 if (*(data + i) != *(data2 + i))
4335 /* Finally, make sure that changes to the mapped area do not
4336 percolate back to the file as seen by read(). (This is a bug on
4337 some variants of i386 svr4.0.) */
4338 for (i = 0; i < pagesize; ++i)
4339 *(data2 + i) = *(data2 + i) + 1;
4340 data3 = (char *) malloc (pagesize);
4343 if (read (fd, data3, pagesize) != pagesize)
4345 for (i = 0; i < pagesize; ++i)
4346 if (*(data + i) != *(data3 + i))
4352 rm -f conftest$ac_exeext
4353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4354 (eval $ac_link) 2>&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 ac_cv_func_mmap_fixed_mapped=yes
4365 echo "$as_me: program exited with status $ac_status" >&5
4366 echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4370 ac_cv_func_mmap_fixed_mapped=no
4372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4375 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4376 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4377 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4379 cat >>confdefs.h <<\_ACEOF
4396 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4397 unistd.h values.h sys/param.h
4399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4401 echo "$as_me:$LINENO: checking for $ac_header" >&5
4402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4409 # Is the header compilable?
4410 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4412 cat >conftest.$ac_ext <<_ACEOF
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>conftest.$ac_ext <<_ACEOF
4417 /* end confdefs.h. */
4418 $ac_includes_default
4419 #include <$ac_header>
4421 rm -f conftest.$ac_objext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>conftest.er1
4425 grep -v '^ *+' conftest.er1 >conftest.err
4427 cat conftest.err >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } &&
4430 { ac_try='test -z "$ac_c_werror_flag"
4431 || test ! -s conftest.err'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; } &&
4437 { ac_try='test -s conftest.$ac_objext'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; }; then
4443 ac_header_compiler=yes
4445 echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4448 ac_header_compiler=no
4450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4452 echo "${ECHO_T}$ac_header_compiler" >&6
4454 # Is the header present?
4455 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4457 cat >conftest.$ac_ext <<_ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h. */
4463 #include <$ac_header>
4465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4468 grep -v '^ *+' conftest.er1 >conftest.err
4470 cat conftest.err >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } >/dev/null; then
4473 if test -s conftest.err; then
4474 ac_cpp_err=$ac_c_preproc_warn_flag
4475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4482 if test -z "$ac_cpp_err"; then
4483 ac_header_preproc=yes
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4488 ac_header_preproc=no
4490 rm -f conftest.err conftest.$ac_ext
4491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4492 echo "${ECHO_T}$ac_header_preproc" >&6
4494 # So? What about this header?
4495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4501 ac_header_preproc=yes
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4518 ## ------------------------------------------ ##
4519 ## Report this to the AC_PACKAGE_NAME lists. ##
4520 ## ------------------------------------------ ##
4523 sed "s/^/$as_me: WARNING: /" >&2
4526 echo "$as_me:$LINENO: checking for $ac_header" >&5
4527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 eval "$as_ac_Header=\$ac_header_preproc"
4533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4538 cat >>confdefs.h <<_ACEOF
4539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4556 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4557 __argz_count __argz_stringify __argz_next
4559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4560 echo "$as_me:$LINENO: checking for $ac_func" >&5
4561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4562 if eval "test \"\${$as_ac_var+set}\" = set"; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4565 cat >conftest.$ac_ext <<_ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4573 #define $ac_func innocuous_$ac_func
4575 /* System header to define __stub macros and hopefully few prototypes,
4576 which can conflict with char $ac_func (); below.
4577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4578 <limits.h> exists even on freestanding compilers. */
4581 # include <limits.h>
4583 # include <assert.h>
4588 /* Override any gcc2 internal prototype to avoid an error. */
4593 /* We use char because int might match the return type of a gcc2
4594 builtin and then its argument prototype would still apply. */
4596 /* The GNU C library defines this for functions which it implements
4597 to always fail with ENOSYS. Some functions are actually named
4598 something starting with __ and the normal name is an alias. */
4599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4602 char (*f) () = $ac_func;
4611 return f != $ac_func;
4616 rm -f conftest.$ac_objext conftest$ac_exeext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618 (eval $ac_link) 2>conftest.er1
4620 grep -v '^ *+' conftest.er1 >conftest.err
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -z "$ac_c_werror_flag"
4626 || test ! -s conftest.err'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; } &&
4632 { ac_try='test -s conftest$ac_exeext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 eval "$as_ac_var=yes"
4640 echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4643 eval "$as_ac_var=no"
4645 rm -f conftest.err conftest.$ac_objext \
4646 conftest$ac_exeext conftest.$ac_ext
4648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4650 if test `eval echo '${'$as_ac_var'}'` = yes; then
4651 cat >>confdefs.h <<_ACEOF
4652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4659 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4661 for ac_func in stpcpy
4663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4664 echo "$as_me:$LINENO: checking for $ac_func" >&5
4665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4666 if eval "test \"\${$as_ac_var+set}\" = set"; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 cat >conftest.$ac_ext <<_ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4677 #define $ac_func innocuous_$ac_func
4679 /* System header to define __stub macros and hopefully few prototypes,
4680 which can conflict with char $ac_func (); below.
4681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4682 <limits.h> exists even on freestanding compilers. */
4685 # include <limits.h>
4687 # include <assert.h>
4692 /* Override any gcc2 internal prototype to avoid an error. */
4697 /* We use char because int might match the return type of a gcc2
4698 builtin and then its argument prototype would still apply. */
4700 /* The GNU C library defines this for functions which it implements
4701 to always fail with ENOSYS. Some functions are actually named
4702 something starting with __ and the normal name is an alias. */
4703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4706 char (*f) () = $ac_func;
4715 return f != $ac_func;
4720 rm -f conftest.$ac_objext conftest$ac_exeext
4721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4722 (eval $ac_link) 2>conftest.er1
4724 grep -v '^ *+' conftest.er1 >conftest.err
4726 cat conftest.err >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } &&
4729 { ac_try='test -z "$ac_c_werror_flag"
4730 || test ! -s conftest.err'
4731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; } &&
4736 { ac_try='test -s conftest$ac_exeext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 eval "$as_ac_var=yes"
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4747 eval "$as_ac_var=no"
4749 rm -f conftest.err conftest.$ac_objext \
4750 conftest$ac_exeext conftest.$ac_ext
4752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4754 if test `eval echo '${'$as_ac_var'}'` = yes; then
4755 cat >>confdefs.h <<_ACEOF
4756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4763 if test "${ac_cv_func_stpcpy}" = "yes"; then
4765 cat >>confdefs.h <<\_ACEOF
4766 #define HAVE_STPCPY 1
4771 if test $ac_cv_header_locale_h = yes; then
4772 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4773 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4774 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 cat >conftest.$ac_ext <<_ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4792 rm -f conftest.$ac_objext conftest$ac_exeext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4794 (eval $ac_link) 2>conftest.er1
4796 grep -v '^ *+' conftest.er1 >conftest.err
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -z "$ac_c_werror_flag"
4802 || test ! -s conftest.err'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; } &&
4808 { ac_try='test -s conftest$ac_exeext'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4814 am_cv_val_LC_MESSAGES=yes
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4819 am_cv_val_LC_MESSAGES=no
4821 rm -f conftest.err conftest.$ac_objext \
4822 conftest$ac_exeext conftest.$ac_ext
4824 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4825 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4826 if test $am_cv_val_LC_MESSAGES = yes; then
4828 cat >>confdefs.h <<\_ACEOF
4829 #define HAVE_LC_MESSAGES 1
4834 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4835 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4836 # Check whether --enable-nls or --disable-nls was given.
4837 if test "${enable_nls+set}" = set; then
4838 enableval="$enable_nls"
4843 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4844 echo "${ECHO_T}$USE_NLS" >&6
4847 USE_INCLUDED_LIBINTL=no
4849 if test "$USE_NLS" = "yes"; then
4851 cat >>confdefs.h <<\_ACEOF
4852 #define ENABLE_NLS 1
4855 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4856 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4858 # Check whether --with-included-gettext or --without-included-gettext was given.
4859 if test "${with_included_gettext+set}" = set; then
4860 withval="$with_included_gettext"
4861 nls_cv_force_use_gnu_gettext=$withval
4863 nls_cv_force_use_gnu_gettext=no
4865 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4866 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4868 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4869 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4871 nls_cv_header_libgt=
4874 if test "${ac_cv_header_libintl_h+set}" = set; then
4875 echo "$as_me:$LINENO: checking for libintl.h" >&5
4876 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4877 if test "${ac_cv_header_libintl_h+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4880 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4881 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4883 # Is the header compilable?
4884 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4885 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4886 cat >conftest.$ac_ext <<_ACEOF
4889 cat confdefs.h >>conftest.$ac_ext
4890 cat >>conftest.$ac_ext <<_ACEOF
4891 /* end confdefs.h. */
4892 $ac_includes_default
4893 #include <libintl.h>
4895 rm -f conftest.$ac_objext
4896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4897 (eval $ac_compile) 2>conftest.er1
4899 grep -v '^ *+' conftest.er1 >conftest.err
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } &&
4904 { ac_try='test -z "$ac_c_werror_flag"
4905 || test ! -s conftest.err'
4906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; } &&
4911 { ac_try='test -s conftest.$ac_objext'
4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; }; then
4917 ac_header_compiler=yes
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4922 ac_header_compiler=no
4924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4926 echo "${ECHO_T}$ac_header_compiler" >&6
4928 # Is the header present?
4929 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4930 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4931 cat >conftest.$ac_ext <<_ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4937 #include <libintl.h>
4939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4942 grep -v '^ *+' conftest.er1 >conftest.err
4944 cat conftest.err >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } >/dev/null; then
4947 if test -s conftest.err; then
4948 ac_cpp_err=$ac_c_preproc_warn_flag
4949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4956 if test -z "$ac_cpp_err"; then
4957 ac_header_preproc=yes
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4962 ac_header_preproc=no
4964 rm -f conftest.err conftest.$ac_ext
4965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4966 echo "${ECHO_T}$ac_header_preproc" >&6
4968 # So? What about this header?
4969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4971 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4972 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4973 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4974 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4975 ac_header_preproc=yes
4978 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4979 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4980 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4981 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4982 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4983 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4984 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4985 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4986 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4987 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4988 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4989 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4992 ## ------------------------------------------ ##
4993 ## Report this to the AC_PACKAGE_NAME lists. ##
4994 ## ------------------------------------------ ##
4997 sed "s/^/$as_me: WARNING: /" >&2
5000 echo "$as_me:$LINENO: checking for libintl.h" >&5
5001 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5002 if test "${ac_cv_header_libintl_h+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 ac_cv_header_libintl_h=$ac_header_preproc
5007 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5008 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5011 if test $ac_cv_header_libintl_h = yes; then
5012 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5013 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5014 if test "${gt_cv_func_gettext_libc+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 cat >conftest.$ac_ext <<_ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5023 #include <libintl.h>
5027 return (int) gettext ("")
5032 rm -f conftest.$ac_objext conftest$ac_exeext
5033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5034 (eval $ac_link) 2>conftest.er1
5036 grep -v '^ *+' conftest.er1 >conftest.err
5038 cat conftest.err >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } &&
5041 { ac_try='test -z "$ac_c_werror_flag"
5042 || test ! -s conftest.err'
5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; } &&
5048 { ac_try='test -s conftest$ac_exeext'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5054 gt_cv_func_gettext_libc=yes
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5059 gt_cv_func_gettext_libc=no
5061 rm -f conftest.err conftest.$ac_objext \
5062 conftest$ac_exeext conftest.$ac_ext
5064 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5065 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5067 if test "$gt_cv_func_gettext_libc" != "yes"; then
5068 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5069 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5070 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 ac_check_lib_save_LIBS=$LIBS
5075 cat >conftest.$ac_ext <<_ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5082 /* Override any gcc2 internal prototype to avoid an error. */
5086 /* We use char because int might match the return type of a gcc2
5087 builtin and then its argument prototype would still apply. */
5088 char bindtextdomain ();
5097 rm -f conftest.$ac_objext conftest$ac_exeext
5098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5099 (eval $ac_link) 2>conftest.er1
5101 grep -v '^ *+' conftest.er1 >conftest.err
5103 cat conftest.err >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } &&
5106 { ac_try='test -z "$ac_c_werror_flag"
5107 || test ! -s conftest.err'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; } &&
5113 { ac_try='test -s conftest$ac_exeext'
5114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; }; then
5119 ac_cv_lib_intl_bindtextdomain=yes
5121 echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5124 ac_cv_lib_intl_bindtextdomain=no
5126 rm -f conftest.err conftest.$ac_objext \
5127 conftest$ac_exeext conftest.$ac_ext
5128 LIBS=$ac_check_lib_save_LIBS
5130 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5131 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5132 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5133 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5134 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5135 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 cat >conftest.$ac_ext <<_ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5148 return (int) gettext ("")
5153 rm -f conftest.$ac_objext conftest$ac_exeext
5154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5155 (eval $ac_link) 2>conftest.er1
5157 grep -v '^ *+' conftest.er1 >conftest.err
5159 cat conftest.err >&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); } &&
5162 { ac_try='test -z "$ac_c_werror_flag"
5163 || test ! -s conftest.err'
5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; } &&
5169 { ac_try='test -s conftest$ac_exeext'
5170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }; }; then
5175 gt_cv_func_gettext_libintl=yes
5177 echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.$ac_ext >&5
5180 gt_cv_func_gettext_libintl=no
5182 rm -f conftest.err conftest.$ac_objext \
5183 conftest$ac_exeext conftest.$ac_ext
5185 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5186 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5191 if test "$gt_cv_func_gettext_libc" = "yes" \
5192 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5194 cat >>confdefs.h <<\_ACEOF
5195 #define HAVE_GETTEXT 1
5198 # Extract the first word of "msgfmt", so it can be a program name with args.
5199 set dummy msgfmt; ac_word=$2
5200 echo "$as_me:$LINENO: checking for $ac_word" >&5
5201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5202 if test "${ac_cv_path_MSGFMT+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5211 for ac_dir in $PATH; do
5212 test -z "$ac_dir" && ac_dir=.
5213 if test -f $ac_dir/$ac_word; then
5214 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5215 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5221 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5225 MSGFMT="$ac_cv_path_MSGFMT"
5226 if test -n "$MSGFMT"; then
5227 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5228 echo "${ECHO_T}$MSGFMT" >&6
5230 echo "$as_me:$LINENO: result: no" >&5
5231 echo "${ECHO_T}no" >&6
5233 if test "$MSGFMT" != "no"; then
5235 for ac_func in dcgettext
5237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5238 echo "$as_me:$LINENO: checking for $ac_func" >&5
5239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5240 if eval "test \"\${$as_ac_var+set}\" = set"; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 cat >conftest.$ac_ext <<_ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h. */
5249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5251 #define $ac_func innocuous_$ac_func
5253 /* System header to define __stub macros and hopefully few prototypes,
5254 which can conflict with char $ac_func (); below.
5255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5256 <limits.h> exists even on freestanding compilers. */
5259 # include <limits.h>
5261 # include <assert.h>
5266 /* Override any gcc2 internal prototype to avoid an error. */
5271 /* We use char because int might match the return type of a gcc2
5272 builtin and then its argument prototype would still apply. */
5274 /* The GNU C library defines this for functions which it implements
5275 to always fail with ENOSYS. Some functions are actually named
5276 something starting with __ and the normal name is an alias. */
5277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5280 char (*f) () = $ac_func;
5289 return f != $ac_func;
5294 rm -f conftest.$ac_objext conftest$ac_exeext
5295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5296 (eval $ac_link) 2>conftest.er1
5298 grep -v '^ *+' conftest.er1 >conftest.err
5300 cat conftest.err >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } &&
5303 { ac_try='test -z "$ac_c_werror_flag"
5304 || test ! -s conftest.err'
5305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; } &&
5310 { ac_try='test -s conftest$ac_exeext'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; }; then
5316 eval "$as_ac_var=yes"
5318 echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.$ac_ext >&5
5321 eval "$as_ac_var=no"
5323 rm -f conftest.err conftest.$ac_objext \
5324 conftest$ac_exeext conftest.$ac_ext
5326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5328 if test `eval echo '${'$as_ac_var'}'` = yes; then
5329 cat >>confdefs.h <<_ACEOF
5330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5336 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5337 set dummy gmsgfmt; ac_word=$2
5338 echo "$as_me:$LINENO: checking for $ac_word" >&5
5339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5340 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5366 GMSGFMT=$ac_cv_path_GMSGFMT
5368 if test -n "$GMSGFMT"; then
5369 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5370 echo "${ECHO_T}$GMSGFMT" >&6
5372 echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6
5376 # Extract the first word of "xgettext", so it can be a program name with args.
5377 set dummy xgettext; ac_word=$2
5378 echo "$as_me:$LINENO: checking for $ac_word" >&5
5379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5380 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5389 for ac_dir in $PATH; do
5390 test -z "$ac_dir" && ac_dir=.
5391 if test -f $ac_dir/$ac_word; then
5392 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5393 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5399 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5403 XGETTEXT="$ac_cv_path_XGETTEXT"
5404 if test -n "$XGETTEXT"; then
5405 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5406 echo "${ECHO_T}$XGETTEXT" >&6
5408 echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6
5412 cat >conftest.$ac_ext <<_ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h. */
5422 extern int _nl_msg_cat_cntr;
5423 return _nl_msg_cat_cntr
5428 rm -f conftest.$ac_objext conftest$ac_exeext
5429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5430 (eval $ac_link) 2>conftest.er1
5432 grep -v '^ *+' conftest.er1 >conftest.err
5434 cat conftest.err >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } &&
5437 { ac_try='test -z "$ac_c_werror_flag"
5438 || test ! -s conftest.err'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; } &&
5444 { ac_try='test -s conftest$ac_exeext'
5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; }; then
5453 echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5459 rm -f conftest.err conftest.$ac_objext \
5460 conftest$ac_exeext conftest.$ac_ext
5470 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
5471 # Neither gettext nor catgets in included in the C library.
5472 # Fall back on GNU gettext library (assuming it is present).
5473 nls_cv_use_gnu_gettext=yes
5477 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5478 INTLOBJS="\$(GETTOBJS)"
5479 # Extract the first word of "msgfmt", so it can be a program name with args.
5480 set dummy msgfmt; ac_word=$2
5481 echo "$as_me:$LINENO: checking for $ac_word" >&5
5482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5483 if test "${ac_cv_path_MSGFMT+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5492 for ac_dir in $PATH; do
5493 test -z "$ac_dir" && ac_dir=.
5494 if test -f $ac_dir/$ac_word; then
5495 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5496 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5502 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5506 MSGFMT="$ac_cv_path_MSGFMT"
5507 if test -n "$MSGFMT"; then
5508 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5509 echo "${ECHO_T}$MSGFMT" >&6
5511 echo "$as_me:$LINENO: result: no" >&5
5512 echo "${ECHO_T}no" >&6
5515 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5516 set dummy gmsgfmt; ac_word=$2
5517 echo "$as_me:$LINENO: checking for $ac_word" >&5
5518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5519 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5541 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5545 GMSGFMT=$ac_cv_path_GMSGFMT
5547 if test -n "$GMSGFMT"; then
5548 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5549 echo "${ECHO_T}$GMSGFMT" >&6
5551 echo "$as_me:$LINENO: result: no" >&5
5552 echo "${ECHO_T}no" >&6
5555 # Extract the first word of "xgettext", so it can be a program name with args.
5556 set dummy xgettext; ac_word=$2
5557 echo "$as_me:$LINENO: checking for $ac_word" >&5
5558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5559 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5568 for ac_dir in $PATH; do
5569 test -z "$ac_dir" && ac_dir=.
5570 if test -f $ac_dir/$ac_word; then
5571 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5572 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5578 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5582 XGETTEXT="$ac_cv_path_XGETTEXT"
5583 if test -n "$XGETTEXT"; then
5584 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5585 echo "${ECHO_T}$XGETTEXT" >&6
5587 echo "$as_me:$LINENO: result: no" >&5
5588 echo "${ECHO_T}no" >&6
5592 USE_INCLUDED_LIBINTL=yes
5596 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5598 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5599 nls_cv_header_intl=libintl.h
5600 nls_cv_header_libgt=libgettext.h
5603 if test "$XGETTEXT" != ":"; then
5604 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5607 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5608 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5613 # We need to process the po/ directory.
5617 nls_cv_header_intl=libintl.h
5618 nls_cv_header_libgt=libgettext.h
5621 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5622 # because some of the sources are only built for this goal.
5623 if test "$PACKAGE" = gettext; then
5625 USE_INCLUDED_LIBINTL=yes
5628 for lang in $ALL_LINGUAS; do
5629 GMOFILES="$GMOFILES $lang.gmo"
5630 POFILES="$POFILES $lang.po"
5646 if test "x$CATOBJEXT" != "x"; then
5647 if test "x$ALL_LINGUAS" = "x"; then
5650 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5651 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5653 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5654 case "$ALL_LINGUAS" in
5655 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5658 LINGUAS=$NEW_LINGUAS
5659 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5660 echo "${ECHO_T}$LINGUAS" >&6
5663 if test -n "$LINGUAS"; then
5664 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5668 if test $ac_cv_header_locale_h = yes; then
5669 INCLUDE_LOCALE_H="#include <locale.h>"
5672 /* The system does not provide the header <locale.h>. Take care yourself. */"
5676 if test -f $srcdir/po2tbl.sed.in; then
5677 if test "$CATOBJEXT" = ".cat"; then
5678 if test "${ac_cv_header_linux_version_h+set}" = set; then
5679 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5680 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5681 if test "${ac_cv_header_linux_version_h+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5684 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5685 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5687 # Is the header compilable?
5688 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5689 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5690 cat >conftest.$ac_ext <<_ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5696 $ac_includes_default
5697 #include <linux/version.h>
5699 rm -f conftest.$ac_objext
5700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5701 (eval $ac_compile) 2>conftest.er1
5703 grep -v '^ *+' conftest.er1 >conftest.err
5705 cat conftest.err >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } &&
5708 { ac_try='test -z "$ac_c_werror_flag"
5709 || test ! -s conftest.err'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; } &&
5715 { ac_try='test -s conftest.$ac_objext'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; }; then
5721 ac_header_compiler=yes
5723 echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5726 ac_header_compiler=no
5728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5730 echo "${ECHO_T}$ac_header_compiler" >&6
5732 # Is the header present?
5733 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5734 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5735 cat >conftest.$ac_ext <<_ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h. */
5741 #include <linux/version.h>
5743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5746 grep -v '^ *+' conftest.er1 >conftest.err
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } >/dev/null; then
5751 if test -s conftest.err; then
5752 ac_cpp_err=$ac_c_preproc_warn_flag
5753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5760 if test -z "$ac_cpp_err"; then
5761 ac_header_preproc=yes
5763 echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.$ac_ext >&5
5766 ac_header_preproc=no
5768 rm -f conftest.err conftest.$ac_ext
5769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5770 echo "${ECHO_T}$ac_header_preproc" >&6
5772 # So? What about this header?
5773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5775 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5776 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5777 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5778 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5779 ac_header_preproc=yes
5782 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5783 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5784 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5785 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5786 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5787 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5788 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5789 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5790 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5791 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5792 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5793 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5796 ## ------------------------------------------ ##
5797 ## Report this to the AC_PACKAGE_NAME lists. ##
5798 ## ------------------------------------------ ##
5801 sed "s/^/$as_me: WARNING: /" >&2
5804 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5805 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5806 if test "${ac_cv_header_linux_version_h+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 ac_cv_header_linux_version_h=$ac_header_preproc
5811 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5812 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5815 if test $ac_cv_header_linux_version_h = yes; then
5823 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5825 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5826 $srcdir/po2tbl.sed.in > po2tbl.sed
5829 if test "$PACKAGE" = "gettext"; then
5839 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5845 if test -f $srcdir/po/POTFILES.in; then
5846 test -d po || mkdir po
5847 if test "x$srcdir" != "x."; then
5848 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5849 posrcprefix="$srcdir/"
5851 posrcprefix="../$srcdir/"
5857 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5858 < $srcdir/po/POTFILES.in > po/POTFILES
5862 localedir='${datadir}/locale'
5865 if test "x$POSUB" != x; then
5867 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5868 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5869 # Look for .po and .gmo files in the source directory.
5872 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5873 # If there aren't any .gmo files the shell will give us the
5874 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5876 case "$cat" in *\**)
5879 # The quadruple backslash is collapsed to a double backslash
5880 # by the backticks, then collapsed again by the double quotes,
5881 # leaving us with one backslash in the sed expression (right
5882 # before the dot that mustn't act as a wildcard).
5883 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5884 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5885 # The user is allowed to set LINGUAS to a list of languages to
5886 # install catalogs for. If it's empty that means "all of them."
5887 if test "x$LINGUAS" = x; then
5888 CATALOGS="$CATALOGS $cat"
5889 XLINGUAS="$XLINGUAS $lang"
5891 case "$LINGUAS" in *$lang*)
5892 CATALOGS="$CATALOGS $cat"
5893 XLINGUAS="$XLINGUAS $lang"
5899 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5900 echo "${ECHO_T}$LINGUAS" >&6
5902 CONFIG_ALL="$CONFIG_ALL all-po"
5903 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5904 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5905 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5910 cat >>confdefs.h <<_ACEOF
5911 #define PACKAGE "$PACKAGE"
5916 debugdir=${libdir}/debug
5919 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
5920 if test "${with_separate_debug_dir+set}" = set; then
5921 withval="$with_separate_debug_dir"
5922 debugdir="${withval}"
5926 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5927 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5928 ac_define_dir=`eval echo $debugdir`
5929 ac_define_dir=`eval echo $ac_define_dir`
5931 cat >>confdefs.h <<_ACEOF
5932 #define DEBUGDIR "$ac_define_dir"
5936 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
5940 subdirs="$subdirs doc testsuite"
5943 . $srcdir/configure.host
5945 . $srcdir/configure.tgt
5947 # Fetch the default architecture and default target vector from BFD.
5948 targ=$target; . $srcdir/../bfd/config.bfd
5950 # We only want the first architecture, so strip off the others if
5951 # there is more than one.
5952 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5954 if test "x$targ_archs" != x; then
5956 cat >>confdefs.h <<_ACEOF
5957 #define DEFAULT_BFD_ARCH $targ_archs
5961 if test "x$targ_defvec" != x; then
5963 cat >>confdefs.h <<_ACEOF
5964 #define DEFAULT_BFD_VEC $targ_defvec
5969 test "$program_prefix" != NONE &&
5970 program_transform_name="s,^,$program_prefix,;$program_transform_name"
5971 # Use a double $ so make ignores it.
5972 test "$program_suffix" != NONE &&
5973 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5974 # Double any \ or $. echo might interpret backslashes.
5975 # By default was `s,x,x', remove it if useless.
5976 cat <<\_ACEOF >conftest.sed
5977 s/[\\$]/&&/g;s/;s,x,x,$//
5979 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5983 # The CLI cannot be disabled yet, but may be in the future.
5986 # Check whether --enable-gdbcli or --disable-gdbcli was given.
5987 if test "${enable_gdbcli+set}" = set; then
5988 enableval="$enable_gdbcli"
5993 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
5994 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
5995 { (exit 1); exit 1; }; } ;;
5997 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
5998 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
5999 { (exit 1); exit 1; }; } ;;
6004 if test x"$enable_gdbcli" = xyes; then
6005 if test -d $srcdir/cli; then
6006 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6007 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6008 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6009 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6014 # Check whether --enable-gdbmi or --disable-gdbmi was given.
6015 if test "${enable_gdbmi+set}" = set; then
6016 enableval="$enable_gdbmi"
6021 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
6022 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
6023 { (exit 1); exit 1; }; } ;;
6028 if test x"$enable_gdbmi" = xyes; then
6029 if test -d $srcdir/mi; then
6030 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6031 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6032 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6033 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6038 # Check whether --enable-tui or --disable-tui was given.
6039 if test "${enable_tui+set}" = set; then
6040 enableval="$enable_tui"
6045 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6046 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6047 { (exit 1); exit 1; }; } ;;
6054 # Check whether --enable-gdbtk or --disable-gdbtk was given.
6055 if test "${enable_gdbtk+set}" = set; then
6056 enableval="$enable_gdbtk"
6061 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6062 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6063 { (exit 1); exit 1; }; } ;;
6066 if test -d $srcdir/gdbtk; then
6072 # We unconditionally disable gdbtk tests on selected platforms.
6075 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6076 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6080 # Libunwind support.
6082 # Check whether --with-libunwind or --without-libunwind was given.
6083 if test "${with_libunwind+set}" = set; then
6084 withval="$with_libunwind"
6085 case "${withval}" in
6086 yes) enable_libunwind=yes ;;
6087 no) enable_libunwind=no ;;
6088 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6089 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6090 { (exit 1); exit 1; }; } ;;
6095 for ac_header in libunwind.h
6097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6099 echo "$as_me:$LINENO: checking for $ac_header" >&5
6100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6107 # Is the header compilable?
6108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6110 cat >conftest.$ac_ext <<_ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6116 $ac_includes_default
6117 #include <$ac_header>
6119 rm -f conftest.$ac_objext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121 (eval $ac_compile) 2>conftest.er1
6123 grep -v '^ *+' conftest.er1 >conftest.err
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try='test -z "$ac_c_werror_flag"
6129 || test ! -s conftest.err'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; } &&
6135 { ac_try='test -s conftest.$ac_objext'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
6141 ac_header_compiler=yes
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6146 ac_header_compiler=no
6148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6150 echo "${ECHO_T}$ac_header_compiler" >&6
6152 # Is the header present?
6153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6155 cat >conftest.$ac_ext <<_ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6161 #include <$ac_header>
6163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6166 grep -v '^ *+' conftest.er1 >conftest.err
6168 cat conftest.err >&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } >/dev/null; then
6171 if test -s conftest.err; then
6172 ac_cpp_err=$ac_c_preproc_warn_flag
6173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6180 if test -z "$ac_cpp_err"; then
6181 ac_header_preproc=yes
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.$ac_ext >&5
6186 ac_header_preproc=no
6188 rm -f conftest.err conftest.$ac_ext
6189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6190 echo "${ECHO_T}$ac_header_preproc" >&6
6192 # So? What about this header?
6193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6199 ac_header_preproc=yes
6202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6216 ## ------------------------------------------ ##
6217 ## Report this to the AC_PACKAGE_NAME lists. ##
6218 ## ------------------------------------------ ##
6221 sed "s/^/$as_me: WARNING: /" >&2
6224 echo "$as_me:$LINENO: checking for $ac_header" >&5
6225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 eval "$as_ac_Header=\$ac_header_preproc"
6231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6236 cat >>confdefs.h <<_ACEOF
6237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6245 for ac_header in libunwind-ia64.h
6247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6249 echo "$as_me:$LINENO: checking for $ac_header" >&5
6250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6257 # Is the header compilable?
6258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6260 cat >conftest.$ac_ext <<_ACEOF
6263 cat confdefs.h >>conftest.$ac_ext
6264 cat >>conftest.$ac_ext <<_ACEOF
6265 /* end confdefs.h. */
6266 $ac_includes_default
6267 #include <$ac_header>
6269 rm -f conftest.$ac_objext
6270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6271 (eval $ac_compile) 2>conftest.er1
6273 grep -v '^ *+' conftest.er1 >conftest.err
6275 cat conftest.err >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } &&
6278 { ac_try='test -z "$ac_c_werror_flag"
6279 || test ! -s conftest.err'
6280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; } &&
6285 { ac_try='test -s conftest.$ac_objext'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; }; then
6291 ac_header_compiler=yes
6293 echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.$ac_ext >&5
6296 ac_header_compiler=no
6298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6299 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6300 echo "${ECHO_T}$ac_header_compiler" >&6
6302 # Is the header present?
6303 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6305 cat >conftest.$ac_ext <<_ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h. */
6311 #include <$ac_header>
6313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6316 grep -v '^ *+' conftest.er1 >conftest.err
6318 cat conftest.err >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); } >/dev/null; then
6321 if test -s conftest.err; then
6322 ac_cpp_err=$ac_c_preproc_warn_flag
6323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6330 if test -z "$ac_cpp_err"; then
6331 ac_header_preproc=yes
6333 echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6336 ac_header_preproc=no
6338 rm -f conftest.err conftest.$ac_ext
6339 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6340 echo "${ECHO_T}$ac_header_preproc" >&6
6342 # So? What about this header?
6343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6349 ac_header_preproc=yes
6352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6366 ## ------------------------------------------ ##
6367 ## Report this to the AC_PACKAGE_NAME lists. ##
6368 ## ------------------------------------------ ##
6371 sed "s/^/$as_me: WARNING: /" >&2
6374 echo "$as_me:$LINENO: checking for $ac_header" >&5
6375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 eval "$as_ac_Header=\$ac_header_preproc"
6381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6386 cat >>confdefs.h <<_ACEOF
6387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6394 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6395 enable_libunwind=yes;
6400 if test x"$enable_libunwind" = xyes; then
6402 for ac_header in libunwind.h
6404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6406 echo "$as_me:$LINENO: checking for $ac_header" >&5
6407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6414 # Is the header compilable?
6415 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6417 cat >conftest.$ac_ext <<_ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6423 $ac_includes_default
6424 #include <$ac_header>
6426 rm -f conftest.$ac_objext
6427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6428 (eval $ac_compile) 2>conftest.er1
6430 grep -v '^ *+' conftest.er1 >conftest.err
6432 cat conftest.err >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } &&
6435 { ac_try='test -z "$ac_c_werror_flag"
6436 || test ! -s conftest.err'
6437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); }; } &&
6442 { ac_try='test -s conftest.$ac_objext'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; }; then
6448 ac_header_compiler=yes
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6453 ac_header_compiler=no
6455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6457 echo "${ECHO_T}$ac_header_compiler" >&6
6459 # Is the header present?
6460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6462 cat >conftest.$ac_ext <<_ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468 #include <$ac_header>
6470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6473 grep -v '^ *+' conftest.er1 >conftest.err
6475 cat conftest.err >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } >/dev/null; then
6478 if test -s conftest.err; then
6479 ac_cpp_err=$ac_c_preproc_warn_flag
6480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6487 if test -z "$ac_cpp_err"; then
6488 ac_header_preproc=yes
6490 echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.$ac_ext >&5
6493 ac_header_preproc=no
6495 rm -f conftest.err conftest.$ac_ext
6496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6497 echo "${ECHO_T}$ac_header_preproc" >&6
6499 # So? What about this header?
6500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6506 ac_header_preproc=yes
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6523 ## ------------------------------------------ ##
6524 ## Report this to the AC_PACKAGE_NAME lists. ##
6525 ## ------------------------------------------ ##
6528 sed "s/^/$as_me: WARNING: /" >&2
6531 echo "$as_me:$LINENO: checking for $ac_header" >&5
6532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 eval "$as_ac_Header=\$ac_header_preproc"
6538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6543 cat >>confdefs.h <<_ACEOF
6544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6552 for ac_header in libunwind-ia64.h
6554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6556 echo "$as_me:$LINENO: checking for $ac_header" >&5
6557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6564 # Is the header compilable?
6565 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6567 cat >conftest.$ac_ext <<_ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6573 $ac_includes_default
6574 #include <$ac_header>
6576 rm -f conftest.$ac_objext
6577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6578 (eval $ac_compile) 2>conftest.er1
6580 grep -v '^ *+' conftest.er1 >conftest.err
6582 cat conftest.err >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } &&
6585 { ac_try='test -z "$ac_c_werror_flag"
6586 || test ! -s conftest.err'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; } &&
6592 { ac_try='test -s conftest.$ac_objext'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; }; then
6598 ac_header_compiler=yes
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6603 ac_header_compiler=no
6605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6606 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6607 echo "${ECHO_T}$ac_header_compiler" >&6
6609 # Is the header present?
6610 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6612 cat >conftest.$ac_ext <<_ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6618 #include <$ac_header>
6620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6623 grep -v '^ *+' conftest.er1 >conftest.err
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } >/dev/null; then
6628 if test -s conftest.err; then
6629 ac_cpp_err=$ac_c_preproc_warn_flag
6630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6637 if test -z "$ac_cpp_err"; then
6638 ac_header_preproc=yes
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6643 ac_header_preproc=no
6645 rm -f conftest.err conftest.$ac_ext
6646 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6647 echo "${ECHO_T}$ac_header_preproc" >&6
6649 # So? What about this header?
6650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6656 ac_header_preproc=yes
6659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6662 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6666 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6673 ## ------------------------------------------ ##
6674 ## Report this to the AC_PACKAGE_NAME lists. ##
6675 ## ------------------------------------------ ##
6678 sed "s/^/$as_me: WARNING: /" >&2
6681 echo "$as_me:$LINENO: checking for $ac_header" >&5
6682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 eval "$as_ac_Header=\$ac_header_preproc"
6688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6693 cat >>confdefs.h <<_ACEOF
6694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6701 cat >>confdefs.h <<\_ACEOF
6702 #define HAVE_LIBUNWIND 1
6705 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6706 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6707 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6710 # Profiling support.
6711 # Check whether --enable-profiling or --disable-profiling was given.
6712 if test "${enable_profiling+set}" = set; then
6713 enableval="$enable_profiling"
6718 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6719 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6720 { (exit 1); exit 1; }; } ;;
6728 for ac_func in monstartup _mcleanup
6730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6731 echo "$as_me:$LINENO: checking for $ac_func" >&5
6732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6733 if eval "test \"\${$as_ac_var+set}\" = set"; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 cat >conftest.$ac_ext <<_ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6744 #define $ac_func innocuous_$ac_func
6746 /* System header to define __stub macros and hopefully few prototypes,
6747 which can conflict with char $ac_func (); below.
6748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6749 <limits.h> exists even on freestanding compilers. */
6752 # include <limits.h>
6754 # include <assert.h>
6759 /* Override any gcc2 internal prototype to avoid an error. */
6764 /* We use char because int might match the return type of a gcc2
6765 builtin and then its argument prototype would still apply. */
6767 /* The GNU C library defines this for functions which it implements
6768 to always fail with ENOSYS. Some functions are actually named
6769 something starting with __ and the normal name is an alias. */
6770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6773 char (*f) () = $ac_func;
6782 return f != $ac_func;
6787 rm -f conftest.$ac_objext conftest$ac_exeext
6788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6789 (eval $ac_link) 2>conftest.er1
6791 grep -v '^ *+' conftest.er1 >conftest.err
6793 cat conftest.err >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } &&
6796 { ac_try='test -z "$ac_c_werror_flag"
6797 || test ! -s conftest.err'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; } &&
6803 { ac_try='test -s conftest$ac_exeext'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; }; then
6809 eval "$as_ac_var=yes"
6811 echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6814 eval "$as_ac_var=no"
6816 rm -f conftest.err conftest.$ac_objext \
6817 conftest$ac_exeext conftest.$ac_ext
6819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6820 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6821 if test `eval echo '${'$as_ac_var'}'` = yes; then
6822 cat >>confdefs.h <<_ACEOF
6823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6829 echo "$as_me:$LINENO: checking for _etext" >&5
6830 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6831 if test "${ac_cv_var__etext+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 cat >conftest.$ac_ext <<_ACEOF
6837 cat confdefs.h >>conftest.$ac_ext
6838 cat >>conftest.$ac_ext <<_ACEOF
6839 /* end confdefs.h. */
6851 rm -f conftest.$ac_objext conftest$ac_exeext
6852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6853 (eval $ac_link) 2>conftest.er1
6855 grep -v '^ *+' conftest.er1 >conftest.err
6857 cat conftest.err >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } &&
6860 { ac_try='test -z "$ac_c_werror_flag"
6861 || test ! -s conftest.err'
6862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); }; } &&
6867 { ac_try='test -s conftest$ac_exeext'
6868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; }; then
6873 ac_cv_var__etext=yes
6875 echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6880 rm -f conftest.err conftest.$ac_objext \
6881 conftest$ac_exeext conftest.$ac_ext
6883 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6884 echo "${ECHO_T}$ac_cv_var__etext" >&6
6885 if test $ac_cv_var__etext = yes; then
6887 cat >>confdefs.h <<\_ACEOF
6888 #define HAVE__ETEXT 1
6892 if test "$enable_profiling" = yes ; then
6893 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6894 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6895 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6896 { (exit 1); exit 1; }; }
6899 OLD_CFLAGS="$CFLAGS"
6900 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6902 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6903 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6904 if test "${ac_cv_cc_supports_pg+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 cat >conftest.$ac_ext <<_ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6922 rm -f conftest.$ac_objext
6923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6924 (eval $ac_compile) 2>conftest.er1
6926 grep -v '^ *+' conftest.er1 >conftest.err
6928 cat conftest.err >&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); } &&
6931 { ac_try='test -z "$ac_c_werror_flag"
6932 || test ! -s conftest.err'
6933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; } &&
6938 { ac_try='test -s conftest.$ac_objext'
6939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); }; }; then
6944 ac_cv_cc_supports_pg=yes
6946 echo "$as_me: failed program was:" >&5
6947 sed 's/^/| /' conftest.$ac_ext >&5
6949 ac_cv_cc_supports_pg=no
6951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6953 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
6954 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
6956 if test $ac_cv_cc_supports_pg = no; then
6957 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
6958 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
6959 { (exit 1); exit 1; }; }
6962 CFLAGS="$OLD_CFLAGS"
6965 # --------------------- #
6966 # Checks for programs. #
6967 # --------------------- #
6969 for ac_prog in gawk mawk nawk awk
6971 # Extract the first word of "$ac_prog", so it can be a program name with args.
6972 set dummy $ac_prog; ac_word=$2
6973 echo "$as_me:$LINENO: checking for $ac_word" >&5
6974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6975 if test "${ac_cv_prog_AWK+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 if test -n "$AWK"; then
6979 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 test -z "$as_dir" && as_dir=.
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6988 ac_cv_prog_AWK="$ac_prog"
6989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 if test -n "$AWK"; then
6999 echo "$as_me:$LINENO: result: $AWK" >&5
7000 echo "${ECHO_T}$AWK" >&6
7002 echo "$as_me:$LINENO: result: no" >&5
7003 echo "${ECHO_T}no" >&6
7006 test -n "$AWK" && break
7009 # Find a good install program. We prefer a C program (faster),
7010 # so one script is as good as another. But avoid the broken or
7011 # incompatible versions:
7012 # SysV /etc/install, /usr/sbin/install
7013 # SunOS /usr/etc/install
7014 # IRIX /sbin/install
7016 # AmigaOS /C/install, which installs bootblocks on floppy discs
7017 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7018 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7019 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7020 # OS/2's system install, which has a completely different semantic
7021 # ./install, which can be erroneously created by make from ./install.sh.
7022 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7023 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7024 if test -z "$INSTALL"; then
7025 if test "${ac_cv_path_install+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 test -z "$as_dir" && as_dir=.
7033 # Account for people who put trailing slashes in PATH elements.
7035 ./ | .// | /cC/* | \
7036 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7037 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7040 # OSF1 and SCO ODT 3.0 have their own names for install.
7041 # Don't use installbsd from OSF since it installs stuff as root
7043 for ac_prog in ginstall scoinst install; do
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7046 if test $ac_prog = install &&
7047 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7048 # AIX install. It has an incompatible calling convention.
7050 elif test $ac_prog = install &&
7051 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7052 # program-specific install script used by HP pwplus--don't use.
7055 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7067 if test "${ac_cv_path_install+set}" = set; then
7068 INSTALL=$ac_cv_path_install
7070 # As a last resort, use the slow shell script. We don't cache a
7071 # path for INSTALL within a source directory, because that will
7072 # break other packages using the cache if that directory is
7073 # removed, or if the path is relative.
7074 INSTALL=$ac_install_sh
7077 echo "$as_me:$LINENO: result: $INSTALL" >&5
7078 echo "${ECHO_T}$INSTALL" >&6
7080 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7081 # It thinks the first close brace ends the variable substitution.
7082 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7086 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7088 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7089 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7091 if test "$LN_S" = "ln -s"; then
7092 echo "$as_me:$LINENO: result: yes" >&5
7093 echo "${ECHO_T}yes" >&6
7095 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7096 echo "${ECHO_T}no, using $LN_S" >&6
7099 if test -n "$ac_tool_prefix"; then
7100 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7101 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7102 echo "$as_me:$LINENO: checking for $ac_word" >&5
7103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7104 if test "${ac_cv_prog_RANLIB+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 if test -n "$RANLIB"; then
7108 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7117 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 RANLIB=$ac_cv_prog_RANLIB
7127 if test -n "$RANLIB"; then
7128 echo "$as_me:$LINENO: result: $RANLIB" >&5
7129 echo "${ECHO_T}$RANLIB" >&6
7131 echo "$as_me:$LINENO: result: no" >&5
7132 echo "${ECHO_T}no" >&6
7136 if test -z "$ac_cv_prog_RANLIB"; then
7137 ac_ct_RANLIB=$RANLIB
7138 # Extract the first word of "ranlib", so it can be a program name with args.
7139 set dummy ranlib; ac_word=$2
7140 echo "$as_me:$LINENO: checking for $ac_word" >&5
7141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7142 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 if test -n "$ac_ct_RANLIB"; then
7146 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7155 ac_cv_prog_ac_ct_RANLIB="ranlib"
7156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7165 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7166 if test -n "$ac_ct_RANLIB"; then
7167 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7168 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7170 echo "$as_me:$LINENO: result: no" >&5
7171 echo "${ECHO_T}no" >&6
7174 RANLIB=$ac_ct_RANLIB
7176 RANLIB="$ac_cv_prog_RANLIB"
7179 for ac_prog in 'bison -y' byacc
7181 # Extract the first word of "$ac_prog", so it can be a program name with args.
7182 set dummy $ac_prog; ac_word=$2
7183 echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7185 if test "${ac_cv_prog_YACC+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 if test -n "$YACC"; then
7189 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7198 ac_cv_prog_YACC="$ac_prog"
7199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 YACC=$ac_cv_prog_YACC
7208 if test -n "$YACC"; then
7209 echo "$as_me:$LINENO: result: $YACC" >&5
7210 echo "${ECHO_T}$YACC" >&6
7212 echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6
7216 test -n "$YACC" && break
7218 test -n "$YACC" || YACC="yacc"
7221 if test -n "$ac_tool_prefix"; then
7222 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7223 set dummy ${ac_tool_prefix}ar; ac_word=$2
7224 echo "$as_me:$LINENO: checking for $ac_word" >&5
7225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7226 if test "${ac_cv_prog_AR+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 if test -n "$AR"; then
7230 ac_cv_prog_AR="$AR" # Let the user override the test.
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239 ac_cv_prog_AR="${ac_tool_prefix}ar"
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 if test -n "$AR"; then
7250 echo "$as_me:$LINENO: result: $AR" >&5
7251 echo "${ECHO_T}$AR" >&6
7253 echo "$as_me:$LINENO: result: no" >&5
7254 echo "${ECHO_T}no" >&6
7258 if test -z "$ac_cv_prog_AR"; then
7260 # Extract the first word of "ar", so it can be a program name with args.
7261 set dummy ar; ac_word=$2
7262 echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7264 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 if test -n "$ac_ct_AR"; then
7268 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277 ac_cv_prog_ac_ct_AR="ar"
7278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7287 if test -n "$ac_ct_AR"; then
7288 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7289 echo "${ECHO_T}$ac_ct_AR" >&6
7291 echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6
7300 if test -n "$ac_tool_prefix"; then
7301 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7302 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7303 echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7305 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 if test -n "$DLLTOOL"; then
7309 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7318 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 DLLTOOL=$ac_cv_prog_DLLTOOL
7328 if test -n "$DLLTOOL"; then
7329 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7330 echo "${ECHO_T}$DLLTOOL" >&6
7332 echo "$as_me:$LINENO: result: no" >&5
7333 echo "${ECHO_T}no" >&6
7337 if test -z "$ac_cv_prog_DLLTOOL"; then
7338 ac_ct_DLLTOOL=$DLLTOOL
7339 # Extract the first word of "dlltool", so it can be a program name with args.
7340 set dummy dlltool; ac_word=$2
7341 echo "$as_me:$LINENO: checking for $ac_word" >&5
7342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7343 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 if test -n "$ac_ct_DLLTOOL"; then
7347 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 test -z "$as_dir" && as_dir=.
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7356 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7366 if test -n "$ac_ct_DLLTOOL"; then
7367 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7368 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7370 echo "$as_me:$LINENO: result: no" >&5
7371 echo "${ECHO_T}no" >&6
7374 DLLTOOL=$ac_ct_DLLTOOL
7376 DLLTOOL="$ac_cv_prog_DLLTOOL"
7379 if test -n "$ac_tool_prefix"; then
7380 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7381 set dummy ${ac_tool_prefix}windres; ac_word=$2
7382 echo "$as_me:$LINENO: checking for $ac_word" >&5
7383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7384 if test "${ac_cv_prog_WINDRES+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 if test -n "$WINDRES"; then
7388 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 test -z "$as_dir" && as_dir=.
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7397 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 WINDRES=$ac_cv_prog_WINDRES
7407 if test -n "$WINDRES"; then
7408 echo "$as_me:$LINENO: result: $WINDRES" >&5
7409 echo "${ECHO_T}$WINDRES" >&6
7411 echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6
7416 if test -z "$ac_cv_prog_WINDRES"; then
7417 ac_ct_WINDRES=$WINDRES
7418 # Extract the first word of "windres", so it can be a program name with args.
7419 set dummy windres; ac_word=$2
7420 echo "$as_me:$LINENO: checking for $ac_word" >&5
7421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7422 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
7425 if test -n "$ac_ct_WINDRES"; then
7426 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7435 ac_cv_prog_ac_ct_WINDRES="windres"
7436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7445 if test -n "$ac_ct_WINDRES"; then
7446 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7447 echo "${ECHO_T}$ac_ct_WINDRES" >&6
7449 echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6
7453 WINDRES=$ac_ct_WINDRES
7455 WINDRES="$ac_cv_prog_WINDRES"
7459 # Needed for GNU/Hurd.
7460 if test -n "$ac_tool_prefix"; then
7461 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7462 set dummy ${ac_tool_prefix}mig; ac_word=$2
7463 echo "$as_me:$LINENO: checking for $ac_word" >&5
7464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7465 if test "${ac_cv_prog_MIG+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7468 if test -n "$MIG"; then
7469 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 test -z "$as_dir" && as_dir=.
7476 for ac_exec_ext in '' $ac_executable_extensions; do
7477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7478 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7488 if test -n "$MIG"; then
7489 echo "$as_me:$LINENO: result: $MIG" >&5
7490 echo "${ECHO_T}$MIG" >&6
7492 echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6
7497 if test -z "$ac_cv_prog_MIG"; then
7499 # Extract the first word of "mig", so it can be a program name with args.
7500 set dummy mig; ac_word=$2
7501 echo "$as_me:$LINENO: checking for $ac_word" >&5
7502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7503 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 if test -n "$ac_ct_MIG"; then
7507 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516 ac_cv_prog_ac_ct_MIG="mig"
7517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7526 if test -n "$ac_ct_MIG"; then
7527 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7528 echo "${ECHO_T}$ac_ct_MIG" >&6
7530 echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6
7536 MIG="$ac_cv_prog_MIG"
7540 # ---------------------- #
7541 # Checks for libraries. #
7542 # ---------------------- #
7544 # We might need to link with -lm; most simulators need it.
7546 echo "$as_me:$LINENO: checking for main in -lm" >&5
7547 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7548 if test "${ac_cv_lib_m_main+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 ac_check_lib_save_LIBS=$LIBS
7553 cat >conftest.$ac_ext <<_ACEOF
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7569 rm -f conftest.$ac_objext conftest$ac_exeext
7570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7571 (eval $ac_link) 2>conftest.er1
7573 grep -v '^ *+' conftest.er1 >conftest.err
7575 cat conftest.err >&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } &&
7578 { ac_try='test -z "$ac_c_werror_flag"
7579 || test ! -s conftest.err'
7580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); }; } &&
7585 { ac_try='test -s conftest$ac_exeext'
7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; }; then
7591 ac_cv_lib_m_main=yes
7593 echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7598 rm -f conftest.err conftest.$ac_objext \
7599 conftest$ac_exeext conftest.$ac_ext
7600 LIBS=$ac_check_lib_save_LIBS
7602 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7603 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7604 if test $ac_cv_lib_m_main = yes; then
7605 cat >>confdefs.h <<_ACEOF
7614 # We need to link with -lw to get `wctype' on Solaris before Solaris
7615 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7616 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7617 # is known to have this problem). Therefore we avoid libw if we can.
7618 echo "$as_me:$LINENO: checking for wctype" >&5
7619 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7620 if test "${ac_cv_func_wctype+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 cat >conftest.$ac_ext <<_ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7629 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7631 #define wctype innocuous_wctype
7633 /* System header to define __stub macros and hopefully few prototypes,
7634 which can conflict with char wctype (); below.
7635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7636 <limits.h> exists even on freestanding compilers. */
7639 # include <limits.h>
7641 # include <assert.h>
7646 /* Override any gcc2 internal prototype to avoid an error. */
7651 /* We use char because int might match the return type of a gcc2
7652 builtin and then its argument prototype would still apply. */
7654 /* The GNU C library defines this for functions which it implements
7655 to always fail with ENOSYS. Some functions are actually named
7656 something starting with __ and the normal name is an alias. */
7657 #if defined (__stub_wctype) || defined (__stub___wctype)
7660 char (*f) () = wctype;
7674 rm -f conftest.$ac_objext conftest$ac_exeext
7675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7676 (eval $ac_link) 2>conftest.er1
7678 grep -v '^ *+' conftest.er1 >conftest.err
7680 cat conftest.err >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } &&
7683 { ac_try='test -z "$ac_c_werror_flag"
7684 || test ! -s conftest.err'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; } &&
7690 { ac_try='test -s conftest$ac_exeext'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 ac_cv_func_wctype=yes
7698 echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7701 ac_cv_func_wctype=no
7703 rm -f conftest.err conftest.$ac_objext \
7704 conftest$ac_exeext conftest.$ac_ext
7706 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7707 echo "${ECHO_T}$ac_cv_func_wctype" >&6
7708 if test $ac_cv_func_wctype = yes; then
7712 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7713 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7714 if test "${ac_cv_lib_w_wctype+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 ac_check_lib_save_LIBS=$LIBS
7719 cat >conftest.$ac_ext <<_ACEOF
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h. */
7726 /* Override any gcc2 internal prototype to avoid an error. */
7730 /* We use char because int might match the return type of a gcc2
7731 builtin and then its argument prototype would still apply. */
7741 rm -f conftest.$ac_objext conftest$ac_exeext
7742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7743 (eval $ac_link) 2>conftest.er1
7745 grep -v '^ *+' conftest.er1 >conftest.err
7747 cat conftest.err >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } &&
7750 { ac_try='test -z "$ac_c_werror_flag"
7751 || test ! -s conftest.err'
7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; } &&
7757 { ac_try='test -s conftest$ac_exeext'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; }; then
7763 ac_cv_lib_w_wctype=yes
7765 echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7768 ac_cv_lib_w_wctype=no
7770 rm -f conftest.err conftest.$ac_objext \
7771 conftest$ac_exeext conftest.$ac_ext
7772 LIBS=$ac_check_lib_save_LIBS
7774 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7775 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7776 if test $ac_cv_lib_w_wctype = yes; then
7777 cat >>confdefs.h <<_ACEOF
7788 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7789 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7790 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7791 if test "${ac_cv_search_gethostbyname+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7794 ac_func_search_save_LIBS=$LIBS
7795 ac_cv_search_gethostbyname=no
7796 cat >conftest.$ac_ext <<_ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7803 /* Override any gcc2 internal prototype to avoid an error. */
7807 /* We use char because int might match the return type of a gcc2
7808 builtin and then its argument prototype would still apply. */
7809 char gethostbyname ();
7818 rm -f conftest.$ac_objext conftest$ac_exeext
7819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7820 (eval $ac_link) 2>conftest.er1
7822 grep -v '^ *+' conftest.er1 >conftest.err
7824 cat conftest.err >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } &&
7827 { ac_try='test -z "$ac_c_werror_flag"
7828 || test ! -s conftest.err'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; } &&
7834 { ac_try='test -s conftest$ac_exeext'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; }; then
7840 ac_cv_search_gethostbyname="none required"
7842 echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7846 rm -f conftest.err conftest.$ac_objext \
7847 conftest$ac_exeext conftest.$ac_ext
7848 if test "$ac_cv_search_gethostbyname" = no; then
7849 for ac_lib in nsl; do
7850 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7851 cat >conftest.$ac_ext <<_ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7858 /* Override any gcc2 internal prototype to avoid an error. */
7862 /* We use char because int might match the return type of a gcc2
7863 builtin and then its argument prototype would still apply. */
7864 char gethostbyname ();
7873 rm -f conftest.$ac_objext conftest$ac_exeext
7874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7875 (eval $ac_link) 2>conftest.er1
7877 grep -v '^ *+' conftest.er1 >conftest.err
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } &&
7882 { ac_try='test -z "$ac_c_werror_flag"
7883 || test ! -s conftest.err'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; } &&
7889 { ac_try='test -s conftest$ac_exeext'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; }; then
7895 ac_cv_search_gethostbyname="-l$ac_lib"
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7902 rm -f conftest.err conftest.$ac_objext \
7903 conftest$ac_exeext conftest.$ac_ext
7906 LIBS=$ac_func_search_save_LIBS
7908 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7909 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7910 if test "$ac_cv_search_gethostbyname" != no; then
7911 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7916 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7917 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
7918 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
7919 if test "${ac_cv_search_socketpair+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 ac_func_search_save_LIBS=$LIBS
7923 ac_cv_search_socketpair=no
7924 cat >conftest.$ac_ext <<_ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7931 /* Override any gcc2 internal prototype to avoid an error. */
7935 /* We use char because int might match the return type of a gcc2
7936 builtin and then its argument prototype would still apply. */
7946 rm -f conftest.$ac_objext conftest$ac_exeext
7947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7948 (eval $ac_link) 2>conftest.er1
7950 grep -v '^ *+' conftest.er1 >conftest.err
7952 cat conftest.err >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } &&
7955 { ac_try='test -z "$ac_c_werror_flag"
7956 || test ! -s conftest.err'
7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; } &&
7962 { ac_try='test -s conftest$ac_exeext'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; }; then
7968 ac_cv_search_socketpair="none required"
7970 echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7974 rm -f conftest.err conftest.$ac_objext \
7975 conftest$ac_exeext conftest.$ac_ext
7976 if test "$ac_cv_search_socketpair" = no; then
7977 for ac_lib in socket; do
7978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7979 cat >conftest.$ac_ext <<_ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h. */
7986 /* Override any gcc2 internal prototype to avoid an error. */
7990 /* We use char because int might match the return type of a gcc2
7991 builtin and then its argument prototype would still apply. */
8001 rm -f conftest.$ac_objext conftest$ac_exeext
8002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8003 (eval $ac_link) 2>conftest.er1
8005 grep -v '^ *+' conftest.er1 >conftest.err
8007 cat conftest.err >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } &&
8010 { ac_try='test -z "$ac_c_werror_flag"
8011 || test ! -s conftest.err'
8012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); }; } &&
8017 { ac_try='test -s conftest$ac_exeext'
8018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); }; }; then
8023 ac_cv_search_socketpair="-l$ac_lib"
8026 echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.$ac_ext >&5
8030 rm -f conftest.err conftest.$ac_objext \
8031 conftest$ac_exeext conftest.$ac_ext
8034 LIBS=$ac_func_search_save_LIBS
8036 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8037 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8038 if test "$ac_cv_search_socketpair" != no; then
8039 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
8044 # For the TUI, we need enhanced curses functionality.
8046 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8047 # curses library because the latter might not provide all the
8048 # functionality we need. However, this leads to problems on systems
8049 # where the linker searches /usr/local/lib, but the compiler doesn't
8050 # search /usr/local/include, if ncurses is installed in /usr/local. A
8051 # default installation of ncurses on alpha*-dec-osf* will lead to such
8053 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8054 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8055 if test "${ac_cv_search_waddstr+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 ac_func_search_save_LIBS=$LIBS
8059 ac_cv_search_waddstr=no
8060 cat >conftest.$ac_ext <<_ACEOF
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h. */
8067 /* Override any gcc2 internal prototype to avoid an error. */
8071 /* We use char because int might match the return type of a gcc2
8072 builtin and then its argument prototype would still apply. */
8082 rm -f conftest.$ac_objext conftest$ac_exeext
8083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8084 (eval $ac_link) 2>conftest.er1
8086 grep -v '^ *+' conftest.er1 >conftest.err
8088 cat conftest.err >&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } &&
8091 { ac_try='test -z "$ac_c_werror_flag"
8092 || test ! -s conftest.err'
8093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); }; } &&
8098 { ac_try='test -s conftest$ac_exeext'
8099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); }; }; then
8104 ac_cv_search_waddstr="none required"
8106 echo "$as_me: failed program was:" >&5
8107 sed 's/^/| /' conftest.$ac_ext >&5
8110 rm -f conftest.err conftest.$ac_objext \
8111 conftest$ac_exeext conftest.$ac_ext
8112 if test "$ac_cv_search_waddstr" = no; then
8113 for ac_lib in ncurses cursesX curses; do
8114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8115 cat >conftest.$ac_ext <<_ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8122 /* Override any gcc2 internal prototype to avoid an error. */
8126 /* We use char because int might match the return type of a gcc2
8127 builtin and then its argument prototype would still apply. */
8137 rm -f conftest.$ac_objext conftest$ac_exeext
8138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8139 (eval $ac_link) 2>conftest.er1
8141 grep -v '^ *+' conftest.er1 >conftest.err
8143 cat conftest.err >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } &&
8146 { ac_try='test -z "$ac_c_werror_flag"
8147 || test ! -s conftest.err'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; } &&
8153 { ac_try='test -s conftest$ac_exeext'
8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }; }; then
8159 ac_cv_search_waddstr="-l$ac_lib"
8162 echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8166 rm -f conftest.err conftest.$ac_objext \
8167 conftest$ac_exeext conftest.$ac_ext
8170 LIBS=$ac_func_search_save_LIBS
8172 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8173 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8174 if test "$ac_cv_search_waddstr" != no; then
8175 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
8180 # Since GDB uses Readline, we need termcap functionality. In many
8181 # cases this will be provided by the curses library, but some systems
8182 # have a seperate termcap library, or no curses library at all.
8186 if test -d $srcdir/libtermcap; then
8187 LIBS="../libtermcap/libtermcap.a $LIBS"
8188 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8191 ac_cv_search_tgetent="none required"
8195 # These are the libraries checked by Readline.
8196 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8197 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8198 if test "${ac_cv_search_tgetent+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8201 ac_func_search_save_LIBS=$LIBS
8202 ac_cv_search_tgetent=no
8203 cat >conftest.$ac_ext <<_ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8210 /* Override any gcc2 internal prototype to avoid an error. */
8214 /* We use char because int might match the return type of a gcc2
8215 builtin and then its argument prototype would still apply. */
8225 rm -f conftest.$ac_objext conftest$ac_exeext
8226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8227 (eval $ac_link) 2>conftest.er1
8229 grep -v '^ *+' conftest.er1 >conftest.err
8231 cat conftest.err >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } &&
8234 { ac_try='test -z "$ac_c_werror_flag"
8235 || test ! -s conftest.err'
8236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; } &&
8241 { ac_try='test -s conftest$ac_exeext'
8242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); }; }; then
8247 ac_cv_search_tgetent="none required"
8249 echo "$as_me: failed program was:" >&5
8250 sed 's/^/| /' conftest.$ac_ext >&5
8253 rm -f conftest.err conftest.$ac_objext \
8254 conftest$ac_exeext conftest.$ac_ext
8255 if test "$ac_cv_search_tgetent" = no; then
8256 for ac_lib in termcap tinfo curses ncurses; do
8257 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8258 cat >conftest.$ac_ext <<_ACEOF
8261 cat confdefs.h >>conftest.$ac_ext
8262 cat >>conftest.$ac_ext <<_ACEOF
8263 /* end confdefs.h. */
8265 /* Override any gcc2 internal prototype to avoid an error. */
8269 /* We use char because int might match the return type of a gcc2
8270 builtin and then its argument prototype would still apply. */
8280 rm -f conftest.$ac_objext conftest$ac_exeext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282 (eval $ac_link) 2>conftest.er1
8284 grep -v '^ *+' conftest.er1 >conftest.err
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -z "$ac_c_werror_flag"
8290 || test ! -s conftest.err'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; } &&
8296 { ac_try='test -s conftest$ac_exeext'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8302 ac_cv_search_tgetent="-l$ac_lib"
8305 echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8309 rm -f conftest.err conftest.$ac_objext \
8310 conftest$ac_exeext conftest.$ac_ext
8313 LIBS=$ac_func_search_save_LIBS
8315 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8316 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8317 if test "$ac_cv_search_tgetent" != no; then
8318 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
8323 if test "$ac_cv_search_tgetent" = no; then
8324 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8325 echo "$as_me: error: no termcap library found" >&2;}
8326 { (exit 1); exit 1; }; }
8329 # ------------------------- #
8330 # Checks for header files. #
8331 # ------------------------- #
8339 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8340 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8341 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8342 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 cat >conftest.$ac_ext <<_ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h. */
8352 #include <sys/types.h>
8364 rm -f conftest.$ac_objext
8365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8366 (eval $ac_compile) 2>conftest.er1
8368 grep -v '^ *+' conftest.er1 >conftest.err
8370 cat conftest.err >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } &&
8373 { ac_try='test -z "$ac_c_werror_flag"
8374 || test ! -s conftest.err'
8375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; } &&
8380 { ac_try='test -s conftest.$ac_objext'
8381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; }; then
8386 eval "$as_ac_Header=yes"
8388 echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8391 eval "$as_ac_Header=no"
8393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8398 cat >>confdefs.h <<_ACEOF
8399 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8402 ac_header_dirent=$ac_hdr; break
8406 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8407 if test $ac_header_dirent = dirent.h; then
8408 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8409 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8410 if test "${ac_cv_search_opendir+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 ac_func_search_save_LIBS=$LIBS
8414 ac_cv_search_opendir=no
8415 cat >conftest.$ac_ext <<_ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8422 /* Override any gcc2 internal prototype to avoid an error. */
8426 /* We use char because int might match the return type of a gcc2
8427 builtin and then its argument prototype would still apply. */
8437 rm -f conftest.$ac_objext conftest$ac_exeext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8439 (eval $ac_link) 2>conftest.er1
8441 grep -v '^ *+' conftest.er1 >conftest.err
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -z "$ac_c_werror_flag"
8447 || test ! -s conftest.err'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; } &&
8453 { ac_try='test -s conftest$ac_exeext'
8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8459 ac_cv_search_opendir="none required"
8461 echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8465 rm -f conftest.err conftest.$ac_objext \
8466 conftest$ac_exeext conftest.$ac_ext
8467 if test "$ac_cv_search_opendir" = no; then
8468 for ac_lib in dir; do
8469 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8470 cat >conftest.$ac_ext <<_ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8477 /* Override any gcc2 internal prototype to avoid an error. */
8481 /* We use char because int might match the return type of a gcc2
8482 builtin and then its argument prototype would still apply. */
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8494 (eval $ac_link) 2>conftest.er1
8496 grep -v '^ *+' conftest.er1 >conftest.err
8498 cat conftest.err >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } &&
8501 { ac_try='test -z "$ac_c_werror_flag"
8502 || test ! -s conftest.err'
8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; } &&
8508 { ac_try='test -s conftest$ac_exeext'
8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; }; then
8514 ac_cv_search_opendir="-l$ac_lib"
8517 echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8521 rm -f conftest.err conftest.$ac_objext \
8522 conftest$ac_exeext conftest.$ac_ext
8525 LIBS=$ac_func_search_save_LIBS
8527 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8528 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8529 if test "$ac_cv_search_opendir" != no; then
8530 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8535 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8536 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8537 if test "${ac_cv_search_opendir+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8540 ac_func_search_save_LIBS=$LIBS
8541 ac_cv_search_opendir=no
8542 cat >conftest.$ac_ext <<_ACEOF
8545 cat confdefs.h >>conftest.$ac_ext
8546 cat >>conftest.$ac_ext <<_ACEOF
8547 /* end confdefs.h. */
8549 /* Override any gcc2 internal prototype to avoid an error. */
8553 /* We use char because int might match the return type of a gcc2
8554 builtin and then its argument prototype would still apply. */
8564 rm -f conftest.$ac_objext conftest$ac_exeext
8565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8566 (eval $ac_link) 2>conftest.er1
8568 grep -v '^ *+' conftest.er1 >conftest.err
8570 cat conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } &&
8573 { ac_try='test -z "$ac_c_werror_flag"
8574 || test ! -s conftest.err'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; } &&
8580 { ac_try='test -s conftest$ac_exeext'
8581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; }; then
8586 ac_cv_search_opendir="none required"
8588 echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.$ac_ext >&5
8592 rm -f conftest.err conftest.$ac_objext \
8593 conftest$ac_exeext conftest.$ac_ext
8594 if test "$ac_cv_search_opendir" = no; then
8596 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8597 cat >conftest.$ac_ext <<_ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8604 /* Override any gcc2 internal prototype to avoid an error. */
8608 /* We use char because int might match the return type of a gcc2
8609 builtin and then its argument prototype would still apply. */
8619 rm -f conftest.$ac_objext conftest$ac_exeext
8620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8621 (eval $ac_link) 2>conftest.er1
8623 grep -v '^ *+' conftest.er1 >conftest.err
8625 cat conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } &&
8628 { ac_try='test -z "$ac_c_werror_flag"
8629 || test ! -s conftest.err'
8630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; } &&
8635 { ac_try='test -s conftest$ac_exeext'
8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; }; then
8641 ac_cv_search_opendir="-l$ac_lib"
8644 echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8648 rm -f conftest.err conftest.$ac_objext \
8649 conftest$ac_exeext conftest.$ac_ext
8652 LIBS=$ac_func_search_save_LIBS
8654 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8655 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8656 if test "$ac_cv_search_opendir" != no; then
8657 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8663 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8664 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8665 if test "${ac_cv_header_stat_broken+set}" = set; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8668 cat >conftest.$ac_ext <<_ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 #include <sys/types.h>
8675 #include <sys/stat.h>
8677 #if defined(S_ISBLK) && defined(S_IFDIR)
8678 # if S_ISBLK (S_IFDIR)
8683 #if defined(S_ISBLK) && defined(S_IFCHR)
8684 # if S_ISBLK (S_IFCHR)
8689 #if defined(S_ISLNK) && defined(S_IFREG)
8690 # if S_ISLNK (S_IFREG)
8695 #if defined(S_ISSOCK) && defined(S_IFREG)
8696 # if S_ISSOCK (S_IFREG)
8702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8703 $EGREP "You lose" >/dev/null 2>&1; then
8704 ac_cv_header_stat_broken=yes
8706 ac_cv_header_stat_broken=no
8711 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8712 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8713 if test $ac_cv_header_stat_broken = yes; then
8715 cat >>confdefs.h <<\_ACEOF
8716 #define STAT_MACROS_BROKEN 1
8721 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8722 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8723 if test "${ac_cv_header_stdc+set}" = set; then
8724 echo $ECHO_N "(cached) $ECHO_C" >&6
8726 cat >conftest.$ac_ext <<_ACEOF
8729 cat confdefs.h >>conftest.$ac_ext
8730 cat >>conftest.$ac_ext <<_ACEOF
8731 /* end confdefs.h. */
8745 rm -f conftest.$ac_objext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8747 (eval $ac_compile) 2>conftest.er1
8749 grep -v '^ *+' conftest.er1 >conftest.err
8751 cat conftest.err >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } &&
8754 { ac_try='test -z "$ac_c_werror_flag"
8755 || test ! -s conftest.err'
8756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); }; } &&
8761 { ac_try='test -s conftest.$ac_objext'
8762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; }; then
8767 ac_cv_header_stdc=yes
8769 echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8772 ac_cv_header_stdc=no
8774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8776 if test $ac_cv_header_stdc = yes; then
8777 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8778 cat >conftest.$ac_ext <<_ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h. */
8787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8788 $EGREP "memchr" >/dev/null 2>&1; then
8791 ac_cv_header_stdc=no
8797 if test $ac_cv_header_stdc = yes; then
8798 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8799 cat >conftest.$ac_ext <<_ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8809 $EGREP "free" >/dev/null 2>&1; then
8812 ac_cv_header_stdc=no
8818 if test $ac_cv_header_stdc = yes; then
8819 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8820 if test "$cross_compiling" = yes; then
8823 cat >conftest.$ac_ext <<_ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8830 #if ((' ' & 0x0FF) == 0x020)
8831 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8832 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8834 # define ISLOWER(c) \
8835 (('a' <= (c) && (c) <= 'i') \
8836 || ('j' <= (c) && (c) <= 'r') \
8837 || ('s' <= (c) && (c) <= 'z'))
8838 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8841 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8846 for (i = 0; i < 256; i++)
8847 if (XOR (islower (i), ISLOWER (i))
8848 || toupper (i) != TOUPPER (i))
8853 rm -f conftest$ac_exeext
8854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8855 (eval $ac_link) 2>&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; }; then
8866 echo "$as_me: program exited with status $ac_status" >&5
8867 echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8871 ac_cv_header_stdc=no
8873 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8877 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8878 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8879 if test $ac_cv_header_stdc = yes; then
8881 cat >>confdefs.h <<\_ACEOF
8882 #define STDC_HEADERS 1
8888 for ac_header in nlist.h
8890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8892 echo "$as_me:$LINENO: checking for $ac_header" >&5
8893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8895 echo $ECHO_N "(cached) $ECHO_C" >&6
8897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8900 # Is the header compilable?
8901 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8903 cat >conftest.$ac_ext <<_ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8909 $ac_includes_default
8910 #include <$ac_header>
8912 rm -f conftest.$ac_objext
8913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8914 (eval $ac_compile) 2>conftest.er1
8916 grep -v '^ *+' conftest.er1 >conftest.err
8918 cat conftest.err >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } &&
8921 { ac_try='test -z "$ac_c_werror_flag"
8922 || test ! -s conftest.err'
8923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; } &&
8928 { ac_try='test -s conftest.$ac_objext'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
8934 ac_header_compiler=yes
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8939 ac_header_compiler=no
8941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8943 echo "${ECHO_T}$ac_header_compiler" >&6
8945 # Is the header present?
8946 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8948 cat >conftest.$ac_ext <<_ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8954 #include <$ac_header>
8956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8959 grep -v '^ *+' conftest.er1 >conftest.err
8961 cat conftest.err >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); } >/dev/null; then
8964 if test -s conftest.err; then
8965 ac_cpp_err=$ac_c_preproc_warn_flag
8966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8973 if test -z "$ac_cpp_err"; then
8974 ac_header_preproc=yes
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8979 ac_header_preproc=no
8981 rm -f conftest.err conftest.$ac_ext
8982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8983 echo "${ECHO_T}$ac_header_preproc" >&6
8985 # So? What about this header?
8986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8992 ac_header_preproc=yes
8995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8998 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9002 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9009 ## ------------------------------------------ ##
9010 ## Report this to the AC_PACKAGE_NAME lists. ##
9011 ## ------------------------------------------ ##
9014 sed "s/^/$as_me: WARNING: /" >&2
9017 echo "$as_me:$LINENO: checking for $ac_header" >&5
9018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9022 eval "$as_ac_Header=\$ac_header_preproc"
9024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9029 cat >>confdefs.h <<_ACEOF
9030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9038 for ac_header in link.h
9040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9041 echo "$as_me:$LINENO: checking for $ac_header" >&5
9042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9046 cat >conftest.$ac_ext <<_ACEOF
9049 cat confdefs.h >>conftest.$ac_ext
9050 cat >>conftest.$ac_ext <<_ACEOF
9051 /* end confdefs.h. */
9052 #if HAVE_SYS_TYPES_H
9053 # include <sys/types.h>
9060 #include <$ac_header>
9062 rm -f conftest.$ac_objext
9063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9064 (eval $ac_compile) 2>conftest.er1
9066 grep -v '^ *+' conftest.er1 >conftest.err
9068 cat conftest.err >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } &&
9071 { ac_try='test -z "$ac_c_werror_flag"
9072 || test ! -s conftest.err'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; } &&
9078 { ac_try='test -s conftest.$ac_objext'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; }; then
9084 eval "$as_ac_Header=yes"
9086 echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9089 eval "$as_ac_Header=no"
9091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9096 cat >>confdefs.h <<_ACEOF
9097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9105 for ac_header in machine/reg.h
9107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9109 echo "$as_me:$LINENO: checking for $ac_header" >&5
9110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9112 echo $ECHO_N "(cached) $ECHO_C" >&6
9114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9117 # Is the header compilable?
9118 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9120 cat >conftest.$ac_ext <<_ACEOF
9123 cat confdefs.h >>conftest.$ac_ext
9124 cat >>conftest.$ac_ext <<_ACEOF
9125 /* end confdefs.h. */
9126 $ac_includes_default
9127 #include <$ac_header>
9129 rm -f conftest.$ac_objext
9130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9131 (eval $ac_compile) 2>conftest.er1
9133 grep -v '^ *+' conftest.er1 >conftest.err
9135 cat conftest.err >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } &&
9138 { ac_try='test -z "$ac_c_werror_flag"
9139 || test ! -s conftest.err'
9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }; } &&
9145 { ac_try='test -s conftest.$ac_objext'
9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; }; then
9151 ac_header_compiler=yes
9153 echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.$ac_ext >&5
9156 ac_header_compiler=no
9158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9159 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9160 echo "${ECHO_T}$ac_header_compiler" >&6
9162 # Is the header present?
9163 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9165 cat >conftest.$ac_ext <<_ACEOF
9168 cat confdefs.h >>conftest.$ac_ext
9169 cat >>conftest.$ac_ext <<_ACEOF
9170 /* end confdefs.h. */
9171 #include <$ac_header>
9173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9176 grep -v '^ *+' conftest.er1 >conftest.err
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } >/dev/null; then
9181 if test -s conftest.err; then
9182 ac_cpp_err=$ac_c_preproc_warn_flag
9183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9190 if test -z "$ac_cpp_err"; then
9191 ac_header_preproc=yes
9193 echo "$as_me: failed program was:" >&5
9194 sed 's/^/| /' conftest.$ac_ext >&5
9196 ac_header_preproc=no
9198 rm -f conftest.err conftest.$ac_ext
9199 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9200 echo "${ECHO_T}$ac_header_preproc" >&6
9202 # So? What about this header?
9203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9209 ac_header_preproc=yes
9212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9226 ## ------------------------------------------ ##
9227 ## Report this to the AC_PACKAGE_NAME lists. ##
9228 ## ------------------------------------------ ##
9231 sed "s/^/$as_me: WARNING: /" >&2
9234 echo "$as_me:$LINENO: checking for $ac_header" >&5
9235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9237 echo $ECHO_N "(cached) $ECHO_C" >&6
9239 eval "$as_ac_Header=\$ac_header_preproc"
9241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9246 cat >>confdefs.h <<_ACEOF
9247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9256 for ac_header in poll.h sys/poll.h
9258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9260 echo "$as_me:$LINENO: checking for $ac_header" >&5
9261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9268 # Is the header compilable?
9269 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9271 cat >conftest.$ac_ext <<_ACEOF
9274 cat confdefs.h >>conftest.$ac_ext
9275 cat >>conftest.$ac_ext <<_ACEOF
9276 /* end confdefs.h. */
9277 $ac_includes_default
9278 #include <$ac_header>
9280 rm -f conftest.$ac_objext
9281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9282 (eval $ac_compile) 2>conftest.er1
9284 grep -v '^ *+' conftest.er1 >conftest.err
9286 cat conftest.err >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } &&
9289 { ac_try='test -z "$ac_c_werror_flag"
9290 || test ! -s conftest.err'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; } &&
9296 { ac_try='test -s conftest.$ac_objext'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; }; then
9302 ac_header_compiler=yes
9304 echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9307 ac_header_compiler=no
9309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9311 echo "${ECHO_T}$ac_header_compiler" >&6
9313 # Is the header present?
9314 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9316 cat >conftest.$ac_ext <<_ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h. */
9322 #include <$ac_header>
9324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9327 grep -v '^ *+' conftest.er1 >conftest.err
9329 cat conftest.err >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); } >/dev/null; then
9332 if test -s conftest.err; then
9333 ac_cpp_err=$ac_c_preproc_warn_flag
9334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9341 if test -z "$ac_cpp_err"; then
9342 ac_header_preproc=yes
9344 echo "$as_me: failed program was:" >&5
9345 sed 's/^/| /' conftest.$ac_ext >&5
9347 ac_header_preproc=no
9349 rm -f conftest.err conftest.$ac_ext
9350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9351 echo "${ECHO_T}$ac_header_preproc" >&6
9353 # So? What about this header?
9354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9360 ac_header_preproc=yes
9363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9377 ## ------------------------------------------ ##
9378 ## Report this to the AC_PACKAGE_NAME lists. ##
9379 ## ------------------------------------------ ##
9382 sed "s/^/$as_me: WARNING: /" >&2
9385 echo "$as_me:$LINENO: checking for $ac_header" >&5
9386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9390 eval "$as_ac_Header=\$ac_header_preproc"
9392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9397 cat >>confdefs.h <<_ACEOF
9398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9408 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9412 echo "$as_me:$LINENO: checking for $ac_header" >&5
9413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9420 # Is the header compilable?
9421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9423 cat >conftest.$ac_ext <<_ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h. */
9429 $ac_includes_default
9430 #include <$ac_header>
9432 rm -f conftest.$ac_objext
9433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9434 (eval $ac_compile) 2>conftest.er1
9436 grep -v '^ *+' conftest.er1 >conftest.err
9438 cat conftest.err >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } &&
9441 { ac_try='test -z "$ac_c_werror_flag"
9442 || test ! -s conftest.err'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; } &&
9448 { ac_try='test -s conftest.$ac_objext'
9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); }; }; then
9454 ac_header_compiler=yes
9456 echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9459 ac_header_compiler=no
9461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9463 echo "${ECHO_T}$ac_header_compiler" >&6
9465 # Is the header present?
9466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9468 cat >conftest.$ac_ext <<_ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9474 #include <$ac_header>
9476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9479 grep -v '^ *+' conftest.er1 >conftest.err
9481 cat conftest.err >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } >/dev/null; then
9484 if test -s conftest.err; then
9485 ac_cpp_err=$ac_c_preproc_warn_flag
9486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9493 if test -z "$ac_cpp_err"; then
9494 ac_header_preproc=yes
9496 echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9499 ac_header_preproc=no
9501 rm -f conftest.err conftest.$ac_ext
9502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9503 echo "${ECHO_T}$ac_header_preproc" >&6
9505 # So? What about this header?
9506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9512 ac_header_preproc=yes
9515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9529 ## ------------------------------------------ ##
9530 ## Report this to the AC_PACKAGE_NAME lists. ##
9531 ## ------------------------------------------ ##
9534 sed "s/^/$as_me: WARNING: /" >&2
9537 echo "$as_me:$LINENO: checking for $ac_header" >&5
9538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 eval "$as_ac_Header=\$ac_header_preproc"
9544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9549 cat >>confdefs.h <<_ACEOF
9550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9558 for ac_header in stddef.h
9560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9562 echo "$as_me:$LINENO: checking for $ac_header" >&5
9563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9570 # Is the header compilable?
9571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9573 cat >conftest.$ac_ext <<_ACEOF
9576 cat confdefs.h >>conftest.$ac_ext
9577 cat >>conftest.$ac_ext <<_ACEOF
9578 /* end confdefs.h. */
9579 $ac_includes_default
9580 #include <$ac_header>
9582 rm -f conftest.$ac_objext
9583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9584 (eval $ac_compile) 2>conftest.er1
9586 grep -v '^ *+' conftest.er1 >conftest.err
9588 cat conftest.err >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } &&
9591 { ac_try='test -z "$ac_c_werror_flag"
9592 || test ! -s conftest.err'
9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; } &&
9598 { ac_try='test -s conftest.$ac_objext'
9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; }; then
9604 ac_header_compiler=yes
9606 echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9609 ac_header_compiler=no
9611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9613 echo "${ECHO_T}$ac_header_compiler" >&6
9615 # Is the header present?
9616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9618 cat >conftest.$ac_ext <<_ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9624 #include <$ac_header>
9626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9629 grep -v '^ *+' conftest.er1 >conftest.err
9631 cat conftest.err >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } >/dev/null; then
9634 if test -s conftest.err; then
9635 ac_cpp_err=$ac_c_preproc_warn_flag
9636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9643 if test -z "$ac_cpp_err"; then
9644 ac_header_preproc=yes
9646 echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9649 ac_header_preproc=no
9651 rm -f conftest.err conftest.$ac_ext
9652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9653 echo "${ECHO_T}$ac_header_preproc" >&6
9655 # So? What about this header?
9656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9662 ac_header_preproc=yes
9665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9672 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9679 ## ------------------------------------------ ##
9680 ## Report this to the AC_PACKAGE_NAME lists. ##
9681 ## ------------------------------------------ ##
9684 sed "s/^/$as_me: WARNING: /" >&2
9687 echo "$as_me:$LINENO: checking for $ac_header" >&5
9688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9692 eval "$as_ac_Header=\$ac_header_preproc"
9694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9699 cat >>confdefs.h <<_ACEOF
9700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9708 for ac_header in stdlib.h
9710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9712 echo "$as_me:$LINENO: checking for $ac_header" >&5
9713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9720 # Is the header compilable?
9721 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9723 cat >conftest.$ac_ext <<_ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h. */
9729 $ac_includes_default
9730 #include <$ac_header>
9732 rm -f conftest.$ac_objext
9733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9734 (eval $ac_compile) 2>conftest.er1
9736 grep -v '^ *+' conftest.er1 >conftest.err
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -z "$ac_c_werror_flag"
9742 || test ! -s conftest.err'
9743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; } &&
9748 { ac_try='test -s conftest.$ac_objext'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
9754 ac_header_compiler=yes
9756 echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9759 ac_header_compiler=no
9761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9763 echo "${ECHO_T}$ac_header_compiler" >&6
9765 # Is the header present?
9766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9768 cat >conftest.$ac_ext <<_ACEOF
9771 cat confdefs.h >>conftest.$ac_ext
9772 cat >>conftest.$ac_ext <<_ACEOF
9773 /* end confdefs.h. */
9774 #include <$ac_header>
9776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9779 grep -v '^ *+' conftest.er1 >conftest.err
9781 cat conftest.err >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } >/dev/null; then
9784 if test -s conftest.err; then
9785 ac_cpp_err=$ac_c_preproc_warn_flag
9786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9793 if test -z "$ac_cpp_err"; then
9794 ac_header_preproc=yes
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9799 ac_header_preproc=no
9801 rm -f conftest.err conftest.$ac_ext
9802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9803 echo "${ECHO_T}$ac_header_preproc" >&6
9805 # So? What about this header?
9806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9812 ac_header_preproc=yes
9815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9829 ## ------------------------------------------ ##
9830 ## Report this to the AC_PACKAGE_NAME lists. ##
9831 ## ------------------------------------------ ##
9834 sed "s/^/$as_me: WARNING: /" >&2
9837 echo "$as_me:$LINENO: checking for $ac_header" >&5
9838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9842 eval "$as_ac_Header=\$ac_header_preproc"
9844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9849 cat >>confdefs.h <<_ACEOF
9850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9858 for ac_header in stdint.h
9860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9862 echo "$as_me:$LINENO: checking for $ac_header" >&5
9863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9870 # Is the header compilable?
9871 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9873 cat >conftest.$ac_ext <<_ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9879 $ac_includes_default
9880 #include <$ac_header>
9882 rm -f conftest.$ac_objext
9883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9884 (eval $ac_compile) 2>conftest.er1
9886 grep -v '^ *+' conftest.er1 >conftest.err
9888 cat conftest.err >&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); } &&
9891 { ac_try='test -z "$ac_c_werror_flag"
9892 || test ! -s conftest.err'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; } &&
9898 { ac_try='test -s conftest.$ac_objext'
9899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); }; }; then
9904 ac_header_compiler=yes
9906 echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9909 ac_header_compiler=no
9911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9913 echo "${ECHO_T}$ac_header_compiler" >&6
9915 # Is the header present?
9916 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9918 cat >conftest.$ac_ext <<_ACEOF
9921 cat confdefs.h >>conftest.$ac_ext
9922 cat >>conftest.$ac_ext <<_ACEOF
9923 /* end confdefs.h. */
9924 #include <$ac_header>
9926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9929 grep -v '^ *+' conftest.er1 >conftest.err
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } >/dev/null; then
9934 if test -s conftest.err; then
9935 ac_cpp_err=$ac_c_preproc_warn_flag
9936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9943 if test -z "$ac_cpp_err"; then
9944 ac_header_preproc=yes
9946 echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9949 ac_header_preproc=no
9951 rm -f conftest.err conftest.$ac_ext
9952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9953 echo "${ECHO_T}$ac_header_preproc" >&6
9955 # So? What about this header?
9956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9962 ac_header_preproc=yes
9965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9968 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9972 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9979 ## ------------------------------------------ ##
9980 ## Report this to the AC_PACKAGE_NAME lists. ##
9981 ## ------------------------------------------ ##
9984 sed "s/^/$as_me: WARNING: /" >&2
9987 echo "$as_me:$LINENO: checking for $ac_header" >&5
9988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9992 eval "$as_ac_Header=\$ac_header_preproc"
9994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9999 cat >>confdefs.h <<_ACEOF
10000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10010 for ac_header in string.h memory.h strings.h
10012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10014 echo "$as_me:$LINENO: checking for $ac_header" >&5
10015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10022 # Is the header compilable?
10023 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10025 cat >conftest.$ac_ext <<_ACEOF
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h. */
10031 $ac_includes_default
10032 #include <$ac_header>
10034 rm -f conftest.$ac_objext
10035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10036 (eval $ac_compile) 2>conftest.er1
10038 grep -v '^ *+' conftest.er1 >conftest.err
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } &&
10043 { ac_try='test -z "$ac_c_werror_flag"
10044 || test ! -s conftest.err'
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; } &&
10050 { ac_try='test -s conftest.$ac_objext'
10051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052 (eval $ac_try) 2>&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; }; then
10056 ac_header_compiler=yes
10058 echo "$as_me: failed program was:" >&5
10059 sed 's/^/| /' conftest.$ac_ext >&5
10061 ac_header_compiler=no
10063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10065 echo "${ECHO_T}$ac_header_compiler" >&6
10067 # Is the header present?
10068 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10070 cat >conftest.$ac_ext <<_ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h. */
10076 #include <$ac_header>
10078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10081 grep -v '^ *+' conftest.er1 >conftest.err
10083 cat conftest.err >&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); } >/dev/null; then
10086 if test -s conftest.err; then
10087 ac_cpp_err=$ac_c_preproc_warn_flag
10088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10095 if test -z "$ac_cpp_err"; then
10096 ac_header_preproc=yes
10098 echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.$ac_ext >&5
10101 ac_header_preproc=no
10103 rm -f conftest.err conftest.$ac_ext
10104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10105 echo "${ECHO_T}$ac_header_preproc" >&6
10107 # So? What about this header?
10108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10114 ac_header_preproc=yes
10117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10124 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10131 ## ------------------------------------------ ##
10132 ## Report this to the AC_PACKAGE_NAME lists. ##
10133 ## ------------------------------------------ ##
10136 sed "s/^/$as_me: WARNING: /" >&2
10139 echo "$as_me:$LINENO: checking for $ac_header" >&5
10140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
10144 eval "$as_ac_Header=\$ac_header_preproc"
10146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10151 cat >>confdefs.h <<_ACEOF
10152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10160 for ac_header in sys/fault.h
10162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10164 echo "$as_me:$LINENO: checking for $ac_header" >&5
10165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10172 # Is the header compilable?
10173 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10175 cat >conftest.$ac_ext <<_ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h. */
10181 $ac_includes_default
10182 #include <$ac_header>
10184 rm -f conftest.$ac_objext
10185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10186 (eval $ac_compile) 2>conftest.er1
10188 grep -v '^ *+' conftest.er1 >conftest.err
10190 cat conftest.err >&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } &&
10193 { ac_try='test -z "$ac_c_werror_flag"
10194 || test ! -s conftest.err'
10195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196 (eval $ac_try) 2>&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); }; } &&
10200 { ac_try='test -s conftest.$ac_objext'
10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; }; then
10206 ac_header_compiler=yes
10208 echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10211 ac_header_compiler=no
10213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10215 echo "${ECHO_T}$ac_header_compiler" >&6
10217 # Is the header present?
10218 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10220 cat >conftest.$ac_ext <<_ACEOF
10223 cat confdefs.h >>conftest.$ac_ext
10224 cat >>conftest.$ac_ext <<_ACEOF
10225 /* end confdefs.h. */
10226 #include <$ac_header>
10228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10231 grep -v '^ *+' conftest.er1 >conftest.err
10233 cat conftest.err >&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } >/dev/null; then
10236 if test -s conftest.err; then
10237 ac_cpp_err=$ac_c_preproc_warn_flag
10238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10245 if test -z "$ac_cpp_err"; then
10246 ac_header_preproc=yes
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10251 ac_header_preproc=no
10253 rm -f conftest.err conftest.$ac_ext
10254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10255 echo "${ECHO_T}$ac_header_preproc" >&6
10257 # So? What about this header?
10258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10263 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10264 ac_header_preproc=yes
10267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10270 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10271 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10272 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10273 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10274 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10277 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10278 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10281 ## ------------------------------------------ ##
10282 ## Report this to the AC_PACKAGE_NAME lists. ##
10283 ## ------------------------------------------ ##
10286 sed "s/^/$as_me: WARNING: /" >&2
10289 echo "$as_me:$LINENO: checking for $ac_header" >&5
10290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10294 eval "$as_ac_Header=\$ac_header_preproc"
10296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10301 cat >>confdefs.h <<_ACEOF
10302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10310 for ac_header in sys/file.h
10312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10314 echo "$as_me:$LINENO: checking for $ac_header" >&5
10315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10322 # Is the header compilable?
10323 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10325 cat >conftest.$ac_ext <<_ACEOF
10328 cat confdefs.h >>conftest.$ac_ext
10329 cat >>conftest.$ac_ext <<_ACEOF
10330 /* end confdefs.h. */
10331 $ac_includes_default
10332 #include <$ac_header>
10334 rm -f conftest.$ac_objext
10335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10336 (eval $ac_compile) 2>conftest.er1
10338 grep -v '^ *+' conftest.er1 >conftest.err
10340 cat conftest.err >&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } &&
10343 { ac_try='test -z "$ac_c_werror_flag"
10344 || test ! -s conftest.err'
10345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10346 (eval $ac_try) 2>&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }; } &&
10350 { ac_try='test -s conftest.$ac_objext'
10351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10352 (eval $ac_try) 2>&5
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); }; }; then
10356 ac_header_compiler=yes
10358 echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10361 ac_header_compiler=no
10363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10364 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10365 echo "${ECHO_T}$ac_header_compiler" >&6
10367 # Is the header present?
10368 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10370 cat >conftest.$ac_ext <<_ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h. */
10376 #include <$ac_header>
10378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10381 grep -v '^ *+' conftest.er1 >conftest.err
10383 cat conftest.err >&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } >/dev/null; then
10386 if test -s conftest.err; then
10387 ac_cpp_err=$ac_c_preproc_warn_flag
10388 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10395 if test -z "$ac_cpp_err"; then
10396 ac_header_preproc=yes
10398 echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.$ac_ext >&5
10401 ac_header_preproc=no
10403 rm -f conftest.err conftest.$ac_ext
10404 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10405 echo "${ECHO_T}$ac_header_preproc" >&6
10407 # So? What about this header?
10408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10410 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10413 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10414 ac_header_preproc=yes
10417 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10418 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10419 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10420 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10421 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10422 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10424 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10427 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10428 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10431 ## ------------------------------------------ ##
10432 ## Report this to the AC_PACKAGE_NAME lists. ##
10433 ## ------------------------------------------ ##
10436 sed "s/^/$as_me: WARNING: /" >&2
10439 echo "$as_me:$LINENO: checking for $ac_header" >&5
10440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10444 eval "$as_ac_Header=\$ac_header_preproc"
10446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10451 cat >>confdefs.h <<_ACEOF
10452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10460 for ac_header in sys/filio.h
10462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10464 echo "$as_me:$LINENO: checking for $ac_header" >&5
10465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10467 echo $ECHO_N "(cached) $ECHO_C" >&6
10469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10472 # Is the header compilable?
10473 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10475 cat >conftest.$ac_ext <<_ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h. */
10481 $ac_includes_default
10482 #include <$ac_header>
10484 rm -f conftest.$ac_objext
10485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10486 (eval $ac_compile) 2>conftest.er1
10488 grep -v '^ *+' conftest.er1 >conftest.err
10490 cat conftest.err >&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } &&
10493 { ac_try='test -z "$ac_c_werror_flag"
10494 || test ! -s conftest.err'
10495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10496 (eval $ac_try) 2>&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); }; } &&
10500 { ac_try='test -s conftest.$ac_objext'
10501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502 (eval $ac_try) 2>&5
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }; }; then
10506 ac_header_compiler=yes
10508 echo "$as_me: failed program was:" >&5
10509 sed 's/^/| /' conftest.$ac_ext >&5
10511 ac_header_compiler=no
10513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10514 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10515 echo "${ECHO_T}$ac_header_compiler" >&6
10517 # Is the header present?
10518 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10519 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10520 cat >conftest.$ac_ext <<_ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h. */
10526 #include <$ac_header>
10528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10531 grep -v '^ *+' conftest.er1 >conftest.err
10533 cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } >/dev/null; then
10536 if test -s conftest.err; then
10537 ac_cpp_err=$ac_c_preproc_warn_flag
10538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10545 if test -z "$ac_cpp_err"; then
10546 ac_header_preproc=yes
10548 echo "$as_me: failed program was:" >&5
10549 sed 's/^/| /' conftest.$ac_ext >&5
10551 ac_header_preproc=no
10553 rm -f conftest.err conftest.$ac_ext
10554 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10555 echo "${ECHO_T}$ac_header_preproc" >&6
10557 # So? What about this header?
10558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10563 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10564 ac_header_preproc=yes
10567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10572 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10574 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10578 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10581 ## ------------------------------------------ ##
10582 ## Report this to the AC_PACKAGE_NAME lists. ##
10583 ## ------------------------------------------ ##
10586 sed "s/^/$as_me: WARNING: /" >&2
10589 echo "$as_me:$LINENO: checking for $ac_header" >&5
10590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10592 echo $ECHO_N "(cached) $ECHO_C" >&6
10594 eval "$as_ac_Header=\$ac_header_preproc"
10596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10601 cat >>confdefs.h <<_ACEOF
10602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10610 for ac_header in sys/ioctl.h
10612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10614 echo "$as_me:$LINENO: checking for $ac_header" >&5
10615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10617 echo $ECHO_N "(cached) $ECHO_C" >&6
10619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10622 # Is the header compilable?
10623 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10625 cat >conftest.$ac_ext <<_ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10631 $ac_includes_default
10632 #include <$ac_header>
10634 rm -f conftest.$ac_objext
10635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10636 (eval $ac_compile) 2>conftest.er1
10638 grep -v '^ *+' conftest.er1 >conftest.err
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try='test -z "$ac_c_werror_flag"
10644 || test ! -s conftest.err'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; } &&
10650 { ac_try='test -s conftest.$ac_objext'
10651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652 (eval $ac_try) 2>&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; }; then
10656 ac_header_compiler=yes
10658 echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10661 ac_header_compiler=no
10663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10665 echo "${ECHO_T}$ac_header_compiler" >&6
10667 # Is the header present?
10668 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10670 cat >conftest.$ac_ext <<_ACEOF
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h. */
10676 #include <$ac_header>
10678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10681 grep -v '^ *+' conftest.er1 >conftest.err
10683 cat conftest.err >&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); } >/dev/null; then
10686 if test -s conftest.err; then
10687 ac_cpp_err=$ac_c_preproc_warn_flag
10688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10695 if test -z "$ac_cpp_err"; then
10696 ac_header_preproc=yes
10698 echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.$ac_ext >&5
10701 ac_header_preproc=no
10703 rm -f conftest.err conftest.$ac_ext
10704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10705 echo "${ECHO_T}$ac_header_preproc" >&6
10707 # So? What about this header?
10708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10714 ac_header_preproc=yes
10717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10724 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10731 ## ------------------------------------------ ##
10732 ## Report this to the AC_PACKAGE_NAME lists. ##
10733 ## ------------------------------------------ ##
10736 sed "s/^/$as_me: WARNING: /" >&2
10739 echo "$as_me:$LINENO: checking for $ac_header" >&5
10740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10744 eval "$as_ac_Header=\$ac_header_preproc"
10746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10751 cat >>confdefs.h <<_ACEOF
10752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10760 for ac_header in sys/param.h
10762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10764 echo "$as_me:$LINENO: checking for $ac_header" >&5
10765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10772 # Is the header compilable?
10773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10775 cat >conftest.$ac_ext <<_ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10781 $ac_includes_default
10782 #include <$ac_header>
10784 rm -f conftest.$ac_objext
10785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10786 (eval $ac_compile) 2>conftest.er1
10788 grep -v '^ *+' conftest.er1 >conftest.err
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } &&
10793 { ac_try='test -z "$ac_c_werror_flag"
10794 || test ! -s conftest.err'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; } &&
10800 { ac_try='test -s conftest.$ac_objext'
10801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10802 (eval $ac_try) 2>&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; }; then
10806 ac_header_compiler=yes
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10811 ac_header_compiler=no
10813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10814 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10815 echo "${ECHO_T}$ac_header_compiler" >&6
10817 # Is the header present?
10818 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10820 cat >conftest.$ac_ext <<_ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10826 #include <$ac_header>
10828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10831 grep -v '^ *+' conftest.er1 >conftest.err
10833 cat conftest.err >&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } >/dev/null; then
10836 if test -s conftest.err; then
10837 ac_cpp_err=$ac_c_preproc_warn_flag
10838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10845 if test -z "$ac_cpp_err"; then
10846 ac_header_preproc=yes
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10851 ac_header_preproc=no
10853 rm -f conftest.err conftest.$ac_ext
10854 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10855 echo "${ECHO_T}$ac_header_preproc" >&6
10857 # So? What about this header?
10858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10864 ac_header_preproc=yes
10867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10874 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10881 ## ------------------------------------------ ##
10882 ## Report this to the AC_PACKAGE_NAME lists. ##
10883 ## ------------------------------------------ ##
10886 sed "s/^/$as_me: WARNING: /" >&2
10889 echo "$as_me:$LINENO: checking for $ac_header" >&5
10890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 eval "$as_ac_Header=\$ac_header_preproc"
10896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10901 cat >>confdefs.h <<_ACEOF
10902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10910 for ac_header in sys/proc.h
10912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10913 echo "$as_me:$LINENO: checking for $ac_header" >&5
10914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10916 echo $ECHO_N "(cached) $ECHO_C" >&6
10918 cat >conftest.$ac_ext <<_ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 #if HAVE_SYS_PARAM_H
10925 # include <sys/param.h>
10929 #include <$ac_header>
10931 rm -f conftest.$ac_objext
10932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10933 (eval $ac_compile) 2>conftest.er1
10935 grep -v '^ *+' conftest.er1 >conftest.err
10937 cat conftest.err >&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } &&
10940 { ac_try='test -z "$ac_c_werror_flag"
10941 || test ! -s conftest.err'
10942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10943 (eval $ac_try) 2>&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); }; } &&
10947 { ac_try='test -s conftest.$ac_objext'
10948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10949 (eval $ac_try) 2>&5
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; }; then
10953 eval "$as_ac_Header=yes"
10955 echo "$as_me: failed program was:" >&5
10956 sed 's/^/| /' conftest.$ac_ext >&5
10958 eval "$as_ac_Header=no"
10960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10965 cat >>confdefs.h <<_ACEOF
10966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10974 for ac_header in sys/procfs.h
10976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10978 echo "$as_me:$LINENO: checking for $ac_header" >&5
10979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10981 echo $ECHO_N "(cached) $ECHO_C" >&6
10983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10986 # Is the header compilable?
10987 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10989 cat >conftest.$ac_ext <<_ACEOF
10992 cat confdefs.h >>conftest.$ac_ext
10993 cat >>conftest.$ac_ext <<_ACEOF
10994 /* end confdefs.h. */
10995 $ac_includes_default
10996 #include <$ac_header>
10998 rm -f conftest.$ac_objext
10999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11000 (eval $ac_compile) 2>conftest.er1
11002 grep -v '^ *+' conftest.er1 >conftest.err
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
11007 { ac_try='test -z "$ac_c_werror_flag"
11008 || test ! -s conftest.err'
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; } &&
11014 { ac_try='test -s conftest.$ac_objext'
11015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016 (eval $ac_try) 2>&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; }; then
11020 ac_header_compiler=yes
11022 echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11025 ac_header_compiler=no
11027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11029 echo "${ECHO_T}$ac_header_compiler" >&6
11031 # Is the header present?
11032 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11034 cat >conftest.$ac_ext <<_ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h. */
11040 #include <$ac_header>
11042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11045 grep -v '^ *+' conftest.er1 >conftest.err
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } >/dev/null; then
11050 if test -s conftest.err; then
11051 ac_cpp_err=$ac_c_preproc_warn_flag
11052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11059 if test -z "$ac_cpp_err"; then
11060 ac_header_preproc=yes
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11065 ac_header_preproc=no
11067 rm -f conftest.err conftest.$ac_ext
11068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11069 echo "${ECHO_T}$ac_header_preproc" >&6
11071 # So? What about this header?
11072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11078 ac_header_preproc=yes
11081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11095 ## ------------------------------------------ ##
11096 ## Report this to the AC_PACKAGE_NAME lists. ##
11097 ## ------------------------------------------ ##
11100 sed "s/^/$as_me: WARNING: /" >&2
11103 echo "$as_me:$LINENO: checking for $ac_header" >&5
11104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11108 eval "$as_ac_Header=\$ac_header_preproc"
11110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11115 cat >>confdefs.h <<_ACEOF
11116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11125 for ac_header in sys/ptrace.h ptrace.h
11127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11129 echo "$as_me:$LINENO: checking for $ac_header" >&5
11130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11132 echo $ECHO_N "(cached) $ECHO_C" >&6
11134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11137 # Is the header compilable?
11138 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11140 cat >conftest.$ac_ext <<_ACEOF
11143 cat confdefs.h >>conftest.$ac_ext
11144 cat >>conftest.$ac_ext <<_ACEOF
11145 /* end confdefs.h. */
11146 $ac_includes_default
11147 #include <$ac_header>
11149 rm -f conftest.$ac_objext
11150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11151 (eval $ac_compile) 2>conftest.er1
11153 grep -v '^ *+' conftest.er1 >conftest.err
11155 cat conftest.err >&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } &&
11158 { ac_try='test -z "$ac_c_werror_flag"
11159 || test ! -s conftest.err'
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; } &&
11165 { ac_try='test -s conftest.$ac_objext'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 ac_header_compiler=yes
11173 echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11176 ac_header_compiler=no
11178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11180 echo "${ECHO_T}$ac_header_compiler" >&6
11182 # Is the header present?
11183 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11185 cat >conftest.$ac_ext <<_ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h. */
11191 #include <$ac_header>
11193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11196 grep -v '^ *+' conftest.er1 >conftest.err
11198 cat conftest.err >&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); } >/dev/null; then
11201 if test -s conftest.err; then
11202 ac_cpp_err=$ac_c_preproc_warn_flag
11203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11210 if test -z "$ac_cpp_err"; then
11211 ac_header_preproc=yes
11213 echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.$ac_ext >&5
11216 ac_header_preproc=no
11218 rm -f conftest.err conftest.$ac_ext
11219 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11220 echo "${ECHO_T}$ac_header_preproc" >&6
11222 # So? What about this header?
11223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11229 ac_header_preproc=yes
11232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11246 ## ------------------------------------------ ##
11247 ## Report this to the AC_PACKAGE_NAME lists. ##
11248 ## ------------------------------------------ ##
11251 sed "s/^/$as_me: WARNING: /" >&2
11254 echo "$as_me:$LINENO: checking for $ac_header" >&5
11255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11257 echo $ECHO_N "(cached) $ECHO_C" >&6
11259 eval "$as_ac_Header=\$ac_header_preproc"
11261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11266 cat >>confdefs.h <<_ACEOF
11267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11276 for ac_header in sys/reg.h sys/debugreg.h
11278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11280 echo "$as_me:$LINENO: checking for $ac_header" >&5
11281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11288 # Is the header compilable?
11289 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11291 cat >conftest.$ac_ext <<_ACEOF
11294 cat confdefs.h >>conftest.$ac_ext
11295 cat >>conftest.$ac_ext <<_ACEOF
11296 /* end confdefs.h. */
11297 $ac_includes_default
11298 #include <$ac_header>
11300 rm -f conftest.$ac_objext
11301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11302 (eval $ac_compile) 2>conftest.er1
11304 grep -v '^ *+' conftest.er1 >conftest.err
11306 cat conftest.err >&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } &&
11309 { ac_try='test -z "$ac_c_werror_flag"
11310 || test ! -s conftest.err'
11311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312 (eval $ac_try) 2>&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }; } &&
11316 { ac_try='test -s conftest.$ac_objext'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; }; then
11322 ac_header_compiler=yes
11324 echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11327 ac_header_compiler=no
11329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11330 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11331 echo "${ECHO_T}$ac_header_compiler" >&6
11333 # Is the header present?
11334 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11336 cat >conftest.$ac_ext <<_ACEOF
11339 cat confdefs.h >>conftest.$ac_ext
11340 cat >>conftest.$ac_ext <<_ACEOF
11341 /* end confdefs.h. */
11342 #include <$ac_header>
11344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11347 grep -v '^ *+' conftest.er1 >conftest.err
11349 cat conftest.err >&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } >/dev/null; then
11352 if test -s conftest.err; then
11353 ac_cpp_err=$ac_c_preproc_warn_flag
11354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11361 if test -z "$ac_cpp_err"; then
11362 ac_header_preproc=yes
11364 echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11367 ac_header_preproc=no
11369 rm -f conftest.err conftest.$ac_ext
11370 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11371 echo "${ECHO_T}$ac_header_preproc" >&6
11373 # So? What about this header?
11374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11376 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11379 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11380 ac_header_preproc=yes
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11386 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11388 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11390 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11394 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11397 ## ------------------------------------------ ##
11398 ## Report this to the AC_PACKAGE_NAME lists. ##
11399 ## ------------------------------------------ ##
11402 sed "s/^/$as_me: WARNING: /" >&2
11405 echo "$as_me:$LINENO: checking for $ac_header" >&5
11406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11410 eval "$as_ac_Header=\$ac_header_preproc"
11412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11417 cat >>confdefs.h <<_ACEOF
11418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11426 for ac_header in sys/select.h
11428 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11430 echo "$as_me:$LINENO: checking for $ac_header" >&5
11431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11438 # Is the header compilable?
11439 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11441 cat >conftest.$ac_ext <<_ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11447 $ac_includes_default
11448 #include <$ac_header>
11450 rm -f conftest.$ac_objext
11451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11452 (eval $ac_compile) 2>conftest.er1
11454 grep -v '^ *+' conftest.er1 >conftest.err
11456 cat conftest.err >&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } &&
11459 { ac_try='test -z "$ac_c_werror_flag"
11460 || test ! -s conftest.err'
11461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462 (eval $ac_try) 2>&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; } &&
11466 { ac_try='test -s conftest.$ac_objext'
11467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11468 (eval $ac_try) 2>&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); }; }; then
11472 ac_header_compiler=yes
11474 echo "$as_me: failed program was:" >&5
11475 sed 's/^/| /' conftest.$ac_ext >&5
11477 ac_header_compiler=no
11479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11480 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11481 echo "${ECHO_T}$ac_header_compiler" >&6
11483 # Is the header present?
11484 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11486 cat >conftest.$ac_ext <<_ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h. */
11492 #include <$ac_header>
11494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11497 grep -v '^ *+' conftest.er1 >conftest.err
11499 cat conftest.err >&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } >/dev/null; then
11502 if test -s conftest.err; then
11503 ac_cpp_err=$ac_c_preproc_warn_flag
11504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11511 if test -z "$ac_cpp_err"; then
11512 ac_header_preproc=yes
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11517 ac_header_preproc=no
11519 rm -f conftest.err conftest.$ac_ext
11520 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11521 echo "${ECHO_T}$ac_header_preproc" >&6
11523 # So? What about this header?
11524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11527 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11529 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11530 ac_header_preproc=yes
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11538 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11539 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11540 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11544 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11547 ## ------------------------------------------ ##
11548 ## Report this to the AC_PACKAGE_NAME lists. ##
11549 ## ------------------------------------------ ##
11552 sed "s/^/$as_me: WARNING: /" >&2
11555 echo "$as_me:$LINENO: checking for $ac_header" >&5
11556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11560 eval "$as_ac_Header=\$ac_header_preproc"
11562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11567 cat >>confdefs.h <<_ACEOF
11568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11576 for ac_header in sys/syscall.h
11578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11580 echo "$as_me:$LINENO: checking for $ac_header" >&5
11581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11588 # Is the header compilable?
11589 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11590 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11591 cat >conftest.$ac_ext <<_ACEOF
11594 cat confdefs.h >>conftest.$ac_ext
11595 cat >>conftest.$ac_ext <<_ACEOF
11596 /* end confdefs.h. */
11597 $ac_includes_default
11598 #include <$ac_header>
11600 rm -f conftest.$ac_objext
11601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11602 (eval $ac_compile) 2>conftest.er1
11604 grep -v '^ *+' conftest.er1 >conftest.err
11606 cat conftest.err >&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); } &&
11609 { ac_try='test -z "$ac_c_werror_flag"
11610 || test ! -s conftest.err'
11611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612 (eval $ac_try) 2>&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; } &&
11616 { ac_try='test -s conftest.$ac_objext'
11617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
11622 ac_header_compiler=yes
11624 echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11627 ac_header_compiler=no
11629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11630 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11631 echo "${ECHO_T}$ac_header_compiler" >&6
11633 # Is the header present?
11634 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11635 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11636 cat >conftest.$ac_ext <<_ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11642 #include <$ac_header>
11644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11647 grep -v '^ *+' conftest.er1 >conftest.err
11649 cat conftest.err >&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); } >/dev/null; then
11652 if test -s conftest.err; then
11653 ac_cpp_err=$ac_c_preproc_warn_flag
11654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11661 if test -z "$ac_cpp_err"; then
11662 ac_header_preproc=yes
11664 echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11667 ac_header_preproc=no
11669 rm -f conftest.err conftest.$ac_ext
11670 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11671 echo "${ECHO_T}$ac_header_preproc" >&6
11673 # So? What about this header?
11674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11679 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11680 ac_header_preproc=yes
11683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11686 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11688 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11690 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11694 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11697 ## ------------------------------------------ ##
11698 ## Report this to the AC_PACKAGE_NAME lists. ##
11699 ## ------------------------------------------ ##
11702 sed "s/^/$as_me: WARNING: /" >&2
11705 echo "$as_me:$LINENO: checking for $ac_header" >&5
11706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
11710 eval "$as_ac_Header=\$ac_header_preproc"
11712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11717 cat >>confdefs.h <<_ACEOF
11718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11726 for ac_header in sys/types.h
11728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11730 echo "$as_me:$LINENO: checking for $ac_header" >&5
11731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11738 # Is the header compilable?
11739 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11741 cat >conftest.$ac_ext <<_ACEOF
11744 cat confdefs.h >>conftest.$ac_ext
11745 cat >>conftest.$ac_ext <<_ACEOF
11746 /* end confdefs.h. */
11747 $ac_includes_default
11748 #include <$ac_header>
11750 rm -f conftest.$ac_objext
11751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11752 (eval $ac_compile) 2>conftest.er1
11754 grep -v '^ *+' conftest.er1 >conftest.err
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
11759 { ac_try='test -z "$ac_c_werror_flag"
11760 || test ! -s conftest.err'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; } &&
11766 { ac_try='test -s conftest.$ac_objext'
11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; }; then
11772 ac_header_compiler=yes
11774 echo "$as_me: failed program was:" >&5
11775 sed 's/^/| /' conftest.$ac_ext >&5
11777 ac_header_compiler=no
11779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11780 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11781 echo "${ECHO_T}$ac_header_compiler" >&6
11783 # Is the header present?
11784 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11786 cat >conftest.$ac_ext <<_ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h. */
11792 #include <$ac_header>
11794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11797 grep -v '^ *+' conftest.er1 >conftest.err
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } >/dev/null; then
11802 if test -s conftest.err; then
11803 ac_cpp_err=$ac_c_preproc_warn_flag
11804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11811 if test -z "$ac_cpp_err"; then
11812 ac_header_preproc=yes
11814 echo "$as_me: failed program was:" >&5
11815 sed 's/^/| /' conftest.$ac_ext >&5
11817 ac_header_preproc=no
11819 rm -f conftest.err conftest.$ac_ext
11820 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11821 echo "${ECHO_T}$ac_header_preproc" >&6
11823 # So? What about this header?
11824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11830 ac_header_preproc=yes
11833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11840 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11847 ## ------------------------------------------ ##
11848 ## Report this to the AC_PACKAGE_NAME lists. ##
11849 ## ------------------------------------------ ##
11852 sed "s/^/$as_me: WARNING: /" >&2
11855 echo "$as_me:$LINENO: checking for $ac_header" >&5
11856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 eval "$as_ac_Header=\$ac_header_preproc"
11862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11867 cat >>confdefs.h <<_ACEOF
11868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11876 for ac_header in sys/user.h
11878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11879 echo "$as_me:$LINENO: checking for $ac_header" >&5
11880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11884 cat >conftest.$ac_ext <<_ACEOF
11887 cat confdefs.h >>conftest.$ac_ext
11888 cat >>conftest.$ac_ext <<_ACEOF
11889 /* end confdefs.h. */
11890 #if HAVE_SYS_PARAM_H
11891 # include <sys/param.h>
11895 #include <$ac_header>
11897 rm -f conftest.$ac_objext
11898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11899 (eval $ac_compile) 2>conftest.er1
11901 grep -v '^ *+' conftest.er1 >conftest.err
11903 cat conftest.err >&5
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); } &&
11906 { ac_try='test -z "$ac_c_werror_flag"
11907 || test ! -s conftest.err'
11908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909 (eval $ac_try) 2>&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); }; } &&
11913 { ac_try='test -s conftest.$ac_objext'
11914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915 (eval $ac_try) 2>&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); }; }; then
11919 eval "$as_ac_Header=yes"
11921 echo "$as_me: failed program was:" >&5
11922 sed 's/^/| /' conftest.$ac_ext >&5
11924 eval "$as_ac_Header=no"
11926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11931 cat >>confdefs.h <<_ACEOF
11932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11941 for ac_header in sys/wait.h wait.h
11943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11945 echo "$as_me:$LINENO: checking for $ac_header" >&5
11946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11953 # Is the header compilable?
11954 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11956 cat >conftest.$ac_ext <<_ACEOF
11959 cat confdefs.h >>conftest.$ac_ext
11960 cat >>conftest.$ac_ext <<_ACEOF
11961 /* end confdefs.h. */
11962 $ac_includes_default
11963 #include <$ac_header>
11965 rm -f conftest.$ac_objext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967 (eval $ac_compile) 2>conftest.er1
11969 grep -v '^ *+' conftest.er1 >conftest.err
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } &&
11974 { ac_try='test -z "$ac_c_werror_flag"
11975 || test ! -s conftest.err'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; } &&
11981 { ac_try='test -s conftest.$ac_objext'
11982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; }; then
11987 ac_header_compiler=yes
11989 echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11992 ac_header_compiler=no
11994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11995 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11996 echo "${ECHO_T}$ac_header_compiler" >&6
11998 # Is the header present?
11999 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12001 cat >conftest.$ac_ext <<_ACEOF
12004 cat confdefs.h >>conftest.$ac_ext
12005 cat >>conftest.$ac_ext <<_ACEOF
12006 /* end confdefs.h. */
12007 #include <$ac_header>
12009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12012 grep -v '^ *+' conftest.er1 >conftest.err
12014 cat conftest.err >&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } >/dev/null; then
12017 if test -s conftest.err; then
12018 ac_cpp_err=$ac_c_preproc_warn_flag
12019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12026 if test -z "$ac_cpp_err"; then
12027 ac_header_preproc=yes
12029 echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12032 ac_header_preproc=no
12034 rm -f conftest.err conftest.$ac_ext
12035 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12036 echo "${ECHO_T}$ac_header_preproc" >&6
12038 # So? What about this header?
12039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12045 ac_header_preproc=yes
12048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12062 ## ------------------------------------------ ##
12063 ## Report this to the AC_PACKAGE_NAME lists. ##
12064 ## ------------------------------------------ ##
12067 sed "s/^/$as_me: WARNING: /" >&2
12070 echo "$as_me:$LINENO: checking for $ac_header" >&5
12071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 eval "$as_ac_Header=\$ac_header_preproc"
12077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12082 cat >>confdefs.h <<_ACEOF
12083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12093 for ac_header in termios.h termio.h sgtty.h
12095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12097 echo "$as_me:$LINENO: checking for $ac_header" >&5
12098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12100 echo $ECHO_N "(cached) $ECHO_C" >&6
12102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12105 # Is the header compilable?
12106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12108 cat >conftest.$ac_ext <<_ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 $ac_includes_default
12115 #include <$ac_header>
12117 rm -f conftest.$ac_objext
12118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12119 (eval $ac_compile) 2>conftest.er1
12121 grep -v '^ *+' conftest.er1 >conftest.err
12123 cat conftest.err >&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } &&
12126 { ac_try='test -z "$ac_c_werror_flag"
12127 || test ! -s conftest.err'
12128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12129 (eval $ac_try) 2>&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); }; } &&
12133 { ac_try='test -s conftest.$ac_objext'
12134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12135 (eval $ac_try) 2>&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; }; then
12139 ac_header_compiler=yes
12141 echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12144 ac_header_compiler=no
12146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12148 echo "${ECHO_T}$ac_header_compiler" >&6
12150 # Is the header present?
12151 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12153 cat >conftest.$ac_ext <<_ACEOF
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h. */
12159 #include <$ac_header>
12161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12164 grep -v '^ *+' conftest.er1 >conftest.err
12166 cat conftest.err >&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } >/dev/null; then
12169 if test -s conftest.err; then
12170 ac_cpp_err=$ac_c_preproc_warn_flag
12171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12178 if test -z "$ac_cpp_err"; then
12179 ac_header_preproc=yes
12181 echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12184 ac_header_preproc=no
12186 rm -f conftest.err conftest.$ac_ext
12187 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12188 echo "${ECHO_T}$ac_header_preproc" >&6
12190 # So? What about this header?
12191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12197 ac_header_preproc=yes
12200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12203 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12204 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12205 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12206 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12207 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12210 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12211 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12214 ## ------------------------------------------ ##
12215 ## Report this to the AC_PACKAGE_NAME lists. ##
12216 ## ------------------------------------------ ##
12219 sed "s/^/$as_me: WARNING: /" >&2
12222 echo "$as_me:$LINENO: checking for $ac_header" >&5
12223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12225 echo $ECHO_N "(cached) $ECHO_C" >&6
12227 eval "$as_ac_Header=\$ac_header_preproc"
12229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12234 cat >>confdefs.h <<_ACEOF
12235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12243 for ac_header in unistd.h
12245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12247 echo "$as_me:$LINENO: checking for $ac_header" >&5
12248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12255 # Is the header compilable?
12256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12258 cat >conftest.$ac_ext <<_ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h. */
12264 $ac_includes_default
12265 #include <$ac_header>
12267 rm -f conftest.$ac_objext
12268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12269 (eval $ac_compile) 2>conftest.er1
12271 grep -v '^ *+' conftest.er1 >conftest.err
12273 cat conftest.err >&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } &&
12276 { ac_try='test -z "$ac_c_werror_flag"
12277 || test ! -s conftest.err'
12278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279 (eval $ac_try) 2>&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; } &&
12283 { ac_try='test -s conftest.$ac_objext'
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; }; then
12289 ac_header_compiler=yes
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12294 ac_header_compiler=no
12296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12298 echo "${ECHO_T}$ac_header_compiler" >&6
12300 # Is the header present?
12301 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12303 cat >conftest.$ac_ext <<_ACEOF
12306 cat confdefs.h >>conftest.$ac_ext
12307 cat >>conftest.$ac_ext <<_ACEOF
12308 /* end confdefs.h. */
12309 #include <$ac_header>
12311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12314 grep -v '^ *+' conftest.er1 >conftest.err
12316 cat conftest.err >&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } >/dev/null; then
12319 if test -s conftest.err; then
12320 ac_cpp_err=$ac_c_preproc_warn_flag
12321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12328 if test -z "$ac_cpp_err"; then
12329 ac_header_preproc=yes
12331 echo "$as_me: failed program was:" >&5
12332 sed 's/^/| /' conftest.$ac_ext >&5
12334 ac_header_preproc=no
12336 rm -f conftest.err conftest.$ac_ext
12337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12338 echo "${ECHO_T}$ac_header_preproc" >&6
12340 # So? What about this header?
12341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12347 ac_header_preproc=yes
12350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12357 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12364 ## ------------------------------------------ ##
12365 ## Report this to the AC_PACKAGE_NAME lists. ##
12366 ## ------------------------------------------ ##
12369 sed "s/^/$as_me: WARNING: /" >&2
12372 echo "$as_me:$LINENO: checking for $ac_header" >&5
12373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 eval "$as_ac_Header=\$ac_header_preproc"
12379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12384 cat >>confdefs.h <<_ACEOF
12385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12393 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12394 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12395 # think that we don't have <curses.h> if we're using GCC.
12398 if test "$GCC" = yes; then
12400 cat >>confdefs.h <<\_ACEOF
12401 #define _MSE_INT_H 1
12410 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
12412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12414 echo "$as_me:$LINENO: checking for $ac_header" >&5
12415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12417 echo $ECHO_N "(cached) $ECHO_C" >&6
12419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12422 # Is the header compilable?
12423 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12425 cat >conftest.$ac_ext <<_ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h. */
12431 $ac_includes_default
12432 #include <$ac_header>
12434 rm -f conftest.$ac_objext
12435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12436 (eval $ac_compile) 2>conftest.er1
12438 grep -v '^ *+' conftest.er1 >conftest.err
12440 cat conftest.err >&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); } &&
12443 { ac_try='test -z "$ac_c_werror_flag"
12444 || test ! -s conftest.err'
12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; } &&
12450 { ac_try='test -s conftest.$ac_objext'
12451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12452 (eval $ac_try) 2>&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; }; then
12456 ac_header_compiler=yes
12458 echo "$as_me: failed program was:" >&5
12459 sed 's/^/| /' conftest.$ac_ext >&5
12461 ac_header_compiler=no
12463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12465 echo "${ECHO_T}$ac_header_compiler" >&6
12467 # Is the header present?
12468 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12470 cat >conftest.$ac_ext <<_ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h. */
12476 #include <$ac_header>
12478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12481 grep -v '^ *+' conftest.er1 >conftest.err
12483 cat conftest.err >&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } >/dev/null; then
12486 if test -s conftest.err; then
12487 ac_cpp_err=$ac_c_preproc_warn_flag
12488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12495 if test -z "$ac_cpp_err"; then
12496 ac_header_preproc=yes
12498 echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.$ac_ext >&5
12501 ac_header_preproc=no
12503 rm -f conftest.err conftest.$ac_ext
12504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12505 echo "${ECHO_T}$ac_header_preproc" >&6
12507 # So? What about this header?
12508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12514 ac_header_preproc=yes
12517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12531 ## ------------------------------------------ ##
12532 ## Report this to the AC_PACKAGE_NAME lists. ##
12533 ## ------------------------------------------ ##
12536 sed "s/^/$as_me: WARNING: /" >&2
12539 echo "$as_me:$LINENO: checking for $ac_header" >&5
12540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12542 echo $ECHO_N "(cached) $ECHO_C" >&6
12544 eval "$as_ac_Header=\$ac_header_preproc"
12546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12551 cat >>confdefs.h <<_ACEOF
12552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12560 for ac_header in ncurses/term.h
12562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12564 echo "$as_me:$LINENO: checking for $ac_header" >&5
12565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12567 echo $ECHO_N "(cached) $ECHO_C" >&6
12569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12572 # Is the header compilable?
12573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12575 cat >conftest.$ac_ext <<_ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h. */
12581 $ac_includes_default
12582 #include <$ac_header>
12584 rm -f conftest.$ac_objext
12585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12586 (eval $ac_compile) 2>conftest.er1
12588 grep -v '^ *+' conftest.er1 >conftest.err
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } &&
12593 { ac_try='test -z "$ac_c_werror_flag"
12594 || test ! -s conftest.err'
12595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596 (eval $ac_try) 2>&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; } &&
12600 { ac_try='test -s conftest.$ac_objext'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; }; then
12606 ac_header_compiler=yes
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12611 ac_header_compiler=no
12613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12614 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12615 echo "${ECHO_T}$ac_header_compiler" >&6
12617 # Is the header present?
12618 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12620 cat >conftest.$ac_ext <<_ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h. */
12626 #include <$ac_header>
12628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12631 grep -v '^ *+' conftest.er1 >conftest.err
12633 cat conftest.err >&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } >/dev/null; then
12636 if test -s conftest.err; then
12637 ac_cpp_err=$ac_c_preproc_warn_flag
12638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12645 if test -z "$ac_cpp_err"; then
12646 ac_header_preproc=yes
12648 echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12651 ac_header_preproc=no
12653 rm -f conftest.err conftest.$ac_ext
12654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12655 echo "${ECHO_T}$ac_header_preproc" >&6
12657 # So? What about this header?
12658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12664 ac_header_preproc=yes
12667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12670 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12674 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12681 ## ------------------------------------------ ##
12682 ## Report this to the AC_PACKAGE_NAME lists. ##
12683 ## ------------------------------------------ ##
12686 sed "s/^/$as_me: WARNING: /" >&2
12689 echo "$as_me:$LINENO: checking for $ac_header" >&5
12690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12694 eval "$as_ac_Header=\$ac_header_preproc"
12696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12701 cat >>confdefs.h <<_ACEOF
12702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12710 for ac_header in term.h
12712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12713 echo "$as_me:$LINENO: checking for $ac_header" >&5
12714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12716 echo $ECHO_N "(cached) $ECHO_C" >&6
12718 cat >conftest.$ac_ext <<_ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h. */
12725 # include <curses.h>
12729 #include <$ac_header>
12731 rm -f conftest.$ac_objext
12732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12733 (eval $ac_compile) 2>conftest.er1
12735 grep -v '^ *+' conftest.er1 >conftest.err
12737 cat conftest.err >&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } &&
12740 { ac_try='test -z "$ac_c_werror_flag"
12741 || test ! -s conftest.err'
12742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12743 (eval $ac_try) 2>&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); }; } &&
12747 { ac_try='test -s conftest.$ac_objext'
12748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12749 (eval $ac_try) 2>&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); }; }; then
12753 eval "$as_ac_Header=yes"
12755 echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.$ac_ext >&5
12758 eval "$as_ac_Header=no"
12760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12765 cat >>confdefs.h <<_ACEOF
12766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12774 # FIXME: kettenis/20030102: In most cases we include these
12775 # unconditionally, so what's the point in checking these?
12778 for ac_header in ctype.h time.h
12780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12782 echo "$as_me:$LINENO: checking for $ac_header" >&5
12783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12790 # Is the header compilable?
12791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12793 cat >conftest.$ac_ext <<_ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12799 $ac_includes_default
12800 #include <$ac_header>
12802 rm -f conftest.$ac_objext
12803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12804 (eval $ac_compile) 2>conftest.er1
12806 grep -v '^ *+' conftest.er1 >conftest.err
12808 cat conftest.err >&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } &&
12811 { ac_try='test -z "$ac_c_werror_flag"
12812 || test ! -s conftest.err'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; } &&
12818 { ac_try='test -s conftest.$ac_objext'
12819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820 (eval $ac_try) 2>&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; }; then
12824 ac_header_compiler=yes
12826 echo "$as_me: failed program was:" >&5
12827 sed 's/^/| /' conftest.$ac_ext >&5
12829 ac_header_compiler=no
12831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12833 echo "${ECHO_T}$ac_header_compiler" >&6
12835 # Is the header present?
12836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12838 cat >conftest.$ac_ext <<_ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12844 #include <$ac_header>
12846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12849 grep -v '^ *+' conftest.er1 >conftest.err
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } >/dev/null; then
12854 if test -s conftest.err; then
12855 ac_cpp_err=$ac_c_preproc_warn_flag
12856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12863 if test -z "$ac_cpp_err"; then
12864 ac_header_preproc=yes
12866 echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12869 ac_header_preproc=no
12871 rm -f conftest.err conftest.$ac_ext
12872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12873 echo "${ECHO_T}$ac_header_preproc" >&6
12875 # So? What about this header?
12876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12882 ac_header_preproc=yes
12885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12899 ## ------------------------------------------ ##
12900 ## Report this to the AC_PACKAGE_NAME lists. ##
12901 ## ------------------------------------------ ##
12904 sed "s/^/$as_me: WARNING: /" >&2
12907 echo "$as_me:$LINENO: checking for $ac_header" >&5
12908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12910 echo $ECHO_N "(cached) $ECHO_C" >&6
12912 eval "$as_ac_Header=\$ac_header_preproc"
12914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12919 cat >>confdefs.h <<_ACEOF
12920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12928 # ------------------------- #
12929 # Checks for declarations. #
12930 # ------------------------- #
12932 echo "$as_me:$LINENO: checking whether free is declared" >&5
12933 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12934 if test "${ac_cv_have_decl_free+set}" = set; then
12935 echo $ECHO_N "(cached) $ECHO_C" >&6
12937 cat >conftest.$ac_ext <<_ACEOF
12940 cat confdefs.h >>conftest.$ac_ext
12941 cat >>conftest.$ac_ext <<_ACEOF
12942 /* end confdefs.h. */
12943 $ac_includes_default
12948 char *p = (char *) free;
12955 rm -f conftest.$ac_objext
12956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957 (eval $ac_compile) 2>conftest.er1
12959 grep -v '^ *+' conftest.er1 >conftest.err
12961 cat conftest.err >&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); } &&
12964 { ac_try='test -z "$ac_c_werror_flag"
12965 || test ! -s conftest.err'
12966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 (eval $ac_try) 2>&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; } &&
12971 { ac_try='test -s conftest.$ac_objext'
12972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973 (eval $ac_try) 2>&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; }; then
12977 ac_cv_have_decl_free=yes
12979 echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12982 ac_cv_have_decl_free=no
12984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12986 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12987 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12988 if test $ac_cv_have_decl_free = yes; then
12990 cat >>confdefs.h <<_ACEOF
12991 #define HAVE_DECL_FREE 1
12996 cat >>confdefs.h <<_ACEOF
12997 #define HAVE_DECL_FREE 0
13002 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13003 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13004 if test "${ac_cv_have_decl_malloc+set}" = set; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13007 cat >conftest.$ac_ext <<_ACEOF
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h. */
13013 $ac_includes_default
13018 char *p = (char *) malloc;
13025 rm -f conftest.$ac_objext
13026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13027 (eval $ac_compile) 2>conftest.er1
13029 grep -v '^ *+' conftest.er1 >conftest.err
13031 cat conftest.err >&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } &&
13034 { ac_try='test -z "$ac_c_werror_flag"
13035 || test ! -s conftest.err'
13036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037 (eval $ac_try) 2>&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; } &&
13041 { ac_try='test -s conftest.$ac_objext'
13042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043 (eval $ac_try) 2>&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; }; then
13047 ac_cv_have_decl_malloc=yes
13049 echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13052 ac_cv_have_decl_malloc=no
13054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13056 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13057 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13058 if test $ac_cv_have_decl_malloc = yes; then
13060 cat >>confdefs.h <<_ACEOF
13061 #define HAVE_DECL_MALLOC 1
13066 cat >>confdefs.h <<_ACEOF
13067 #define HAVE_DECL_MALLOC 0
13072 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13073 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13074 if test "${ac_cv_have_decl_realloc+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13077 cat >conftest.$ac_ext <<_ACEOF
13080 cat confdefs.h >>conftest.$ac_ext
13081 cat >>conftest.$ac_ext <<_ACEOF
13082 /* end confdefs.h. */
13083 $ac_includes_default
13088 char *p = (char *) realloc;
13095 rm -f conftest.$ac_objext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13097 (eval $ac_compile) 2>conftest.er1
13099 grep -v '^ *+' conftest.er1 >conftest.err
13101 cat conftest.err >&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } &&
13104 { ac_try='test -z "$ac_c_werror_flag"
13105 || test ! -s conftest.err'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; } &&
13111 { ac_try='test -s conftest.$ac_objext'
13112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113 (eval $ac_try) 2>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; }; then
13117 ac_cv_have_decl_realloc=yes
13119 echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13122 ac_cv_have_decl_realloc=no
13124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13126 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13127 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13128 if test $ac_cv_have_decl_realloc = yes; then
13130 cat >>confdefs.h <<_ACEOF
13131 #define HAVE_DECL_REALLOC 1
13136 cat >>confdefs.h <<_ACEOF
13137 #define HAVE_DECL_REALLOC 0
13144 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13145 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13146 if test "${ac_cv_have_decl_strerror+set}" = set; then
13147 echo $ECHO_N "(cached) $ECHO_C" >&6
13149 cat >conftest.$ac_ext <<_ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13155 $ac_includes_default
13160 char *p = (char *) strerror;
13167 rm -f conftest.$ac_objext
13168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13169 (eval $ac_compile) 2>conftest.er1
13171 grep -v '^ *+' conftest.er1 >conftest.err
13173 cat conftest.err >&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); } &&
13176 { ac_try='test -z "$ac_c_werror_flag"
13177 || test ! -s conftest.err'
13178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179 (eval $ac_try) 2>&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); }; } &&
13183 { ac_try='test -s conftest.$ac_objext'
13184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185 (eval $ac_try) 2>&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; }; then
13189 ac_cv_have_decl_strerror=yes
13191 echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13194 ac_cv_have_decl_strerror=no
13196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13198 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13199 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13200 if test $ac_cv_have_decl_strerror = yes; then
13202 cat >>confdefs.h <<_ACEOF
13203 #define HAVE_DECL_STRERROR 1
13208 cat >>confdefs.h <<_ACEOF
13209 #define HAVE_DECL_STRERROR 0
13214 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13215 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13216 if test "${ac_cv_have_decl_strstr+set}" = set; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13219 cat >conftest.$ac_ext <<_ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h. */
13225 $ac_includes_default
13230 char *p = (char *) strstr;
13237 rm -f conftest.$ac_objext
13238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13239 (eval $ac_compile) 2>conftest.er1
13241 grep -v '^ *+' conftest.er1 >conftest.err
13243 cat conftest.err >&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } &&
13246 { ac_try='test -z "$ac_c_werror_flag"
13247 || test ! -s conftest.err'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; } &&
13253 { ac_try='test -s conftest.$ac_objext'
13254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255 (eval $ac_try) 2>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; }; then
13259 ac_cv_have_decl_strstr=yes
13261 echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13264 ac_cv_have_decl_strstr=no
13266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13268 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13269 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13270 if test $ac_cv_have_decl_strstr = yes; then
13272 cat >>confdefs.h <<_ACEOF
13273 #define HAVE_DECL_STRSTR 1
13278 cat >>confdefs.h <<_ACEOF
13279 #define HAVE_DECL_STRSTR 0
13286 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13287 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13288 if test "${ac_cv_have_decl_getopt+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 cat >conftest.$ac_ext <<_ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13297 $ac_includes_default
13302 char *p = (char *) getopt;
13309 rm -f conftest.$ac_objext
13310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13311 (eval $ac_compile) 2>conftest.er1
13313 grep -v '^ *+' conftest.er1 >conftest.err
13315 cat conftest.err >&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); } &&
13318 { ac_try='test -z "$ac_c_werror_flag"
13319 || test ! -s conftest.err'
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; } &&
13325 { ac_try='test -s conftest.$ac_objext'
13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; }; then
13331 ac_cv_have_decl_getopt=yes
13333 echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13336 ac_cv_have_decl_getopt=no
13338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13340 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13341 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13342 if test $ac_cv_have_decl_getopt = yes; then
13344 cat >>confdefs.h <<_ACEOF
13345 #define HAVE_DECL_GETOPT 1
13350 cat >>confdefs.h <<_ACEOF
13351 #define HAVE_DECL_GETOPT 0
13359 # ----------------------- #
13360 # Checks for structures. #
13361 # ----------------------- #
13363 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13364 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13365 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13368 cat >conftest.$ac_ext <<_ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 $ac_includes_default
13378 static struct stat ac_aggr;
13379 if (ac_aggr.st_blocks)
13385 rm -f conftest.$ac_objext
13386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13387 (eval $ac_compile) 2>conftest.er1
13389 grep -v '^ *+' conftest.er1 >conftest.err
13391 cat conftest.err >&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } &&
13394 { ac_try='test -z "$ac_c_werror_flag"
13395 || test ! -s conftest.err'
13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397 (eval $ac_try) 2>&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; } &&
13401 { ac_try='test -s conftest.$ac_objext'
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 ac_cv_member_struct_stat_st_blocks=yes
13409 echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13412 cat >conftest.$ac_ext <<_ACEOF
13415 cat confdefs.h >>conftest.$ac_ext
13416 cat >>conftest.$ac_ext <<_ACEOF
13417 /* end confdefs.h. */
13418 $ac_includes_default
13422 static struct stat ac_aggr;
13423 if (sizeof ac_aggr.st_blocks)
13429 rm -f conftest.$ac_objext
13430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13431 (eval $ac_compile) 2>conftest.er1
13433 grep -v '^ *+' conftest.er1 >conftest.err
13435 cat conftest.err >&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } &&
13438 { ac_try='test -z "$ac_c_werror_flag"
13439 || test ! -s conftest.err'
13440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441 (eval $ac_try) 2>&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; } &&
13445 { ac_try='test -s conftest.$ac_objext'
13446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13447 (eval $ac_try) 2>&5
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); }; }; then
13451 ac_cv_member_struct_stat_st_blocks=yes
13453 echo "$as_me: failed program was:" >&5
13454 sed 's/^/| /' conftest.$ac_ext >&5
13456 ac_cv_member_struct_stat_st_blocks=no
13458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13462 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13463 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13464 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13466 cat >>confdefs.h <<_ACEOF
13467 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13474 # ------------------ #
13475 # Checks for types. #
13476 # ------------------ #
13478 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13479 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13480 if test "${ac_cv_type_signal+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13483 cat >conftest.$ac_ext <<_ACEOF
13486 cat confdefs.h >>conftest.$ac_ext
13487 cat >>conftest.$ac_ext <<_ACEOF
13488 /* end confdefs.h. */
13489 #include <sys/types.h>
13490 #include <signal.h>
13495 extern "C" void (*signal (int, void (*)(int)))(int);
13497 void (*signal ()) ();
13508 rm -f conftest.$ac_objext
13509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13510 (eval $ac_compile) 2>conftest.er1
13512 grep -v '^ *+' conftest.er1 >conftest.err
13514 cat conftest.err >&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); } &&
13517 { ac_try='test -z "$ac_c_werror_flag"
13518 || test ! -s conftest.err'
13519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520 (eval $ac_try) 2>&5
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; } &&
13524 { ac_try='test -s conftest.$ac_objext'
13525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526 (eval $ac_try) 2>&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; }; then
13530 ac_cv_type_signal=void
13532 echo "$as_me: failed program was:" >&5
13533 sed 's/^/| /' conftest.$ac_ext >&5
13535 ac_cv_type_signal=int
13537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13539 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13540 echo "${ECHO_T}$ac_cv_type_signal" >&6
13542 cat >>confdefs.h <<_ACEOF
13543 #define RETSIGTYPE $ac_cv_type_signal
13548 # ------------------------------------- #
13549 # Checks for compiler characteristics. #
13550 # ------------------------------------- #
13552 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13553 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13554 if test "${ac_cv_c_const+set}" = set; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13557 cat >conftest.$ac_ext <<_ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13567 /* FIXME: Include the comments suggested by Paul. */
13568 #ifndef __cplusplus
13569 /* Ultrix mips cc rejects this. */
13570 typedef int charset[2];
13572 /* SunOS 4.1.1 cc rejects this. */
13573 char const *const *ccp;
13575 /* NEC SVR4.0.2 mips cc rejects this. */
13576 struct point {int x, y;};
13577 static struct point const zero = {0,0};
13578 /* AIX XL C 1.02.0.0 rejects this.
13579 It does not let you subtract one const X* pointer from another in
13580 an arm of an if-expression whose if-part is not a constant
13582 const char *g = "string";
13583 ccp = &g + (g ? g-g : 0);
13584 /* HPUX 7.0 cc rejects these. */
13587 ccp = (char const *const *) p;
13588 { /* SCO 3.2v4 cc rejects this. */
13590 char const *s = 0 ? (char *) 0 : (char const *) 0;
13594 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13595 int x[] = {25, 17};
13596 const int *foo = &x[0];
13599 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13600 typedef const int *iptr;
13604 { /* AIX XL C 1.02.0.0 rejects this saying
13605 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13606 struct s { int j; const int *ap[3]; };
13607 struct s *b; b->j = 5;
13609 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13610 const int foo = 10;
13618 rm -f conftest.$ac_objext
13619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13620 (eval $ac_compile) 2>conftest.er1
13622 grep -v '^ *+' conftest.er1 >conftest.err
13624 cat conftest.err >&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } &&
13627 { ac_try='test -z "$ac_c_werror_flag"
13628 || test ! -s conftest.err'
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; } &&
13634 { ac_try='test -s conftest.$ac_objext'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; }; then
13642 echo "$as_me: failed program was:" >&5
13643 sed 's/^/| /' conftest.$ac_ext >&5
13647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13649 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13650 echo "${ECHO_T}$ac_cv_c_const" >&6
13651 if test $ac_cv_c_const = no; then
13653 cat >>confdefs.h <<\_ACEOF
13659 echo "$as_me:$LINENO: checking for inline" >&5
13660 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13661 if test "${ac_cv_c_inline+set}" = set; then
13662 echo $ECHO_N "(cached) $ECHO_C" >&6
13665 for ac_kw in inline __inline__ __inline; do
13666 cat >conftest.$ac_ext <<_ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672 #ifndef __cplusplus
13674 static $ac_kw foo_t static_foo () {return 0; }
13675 $ac_kw foo_t foo () {return 0; }
13679 rm -f conftest.$ac_objext
13680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13681 (eval $ac_compile) 2>conftest.er1
13683 grep -v '^ *+' conftest.er1 >conftest.err
13685 cat conftest.err >&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } &&
13688 { ac_try='test -z "$ac_c_werror_flag"
13689 || test ! -s conftest.err'
13690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; } &&
13695 { ac_try='test -s conftest.$ac_objext'
13696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697 (eval $ac_try) 2>&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; }; then
13701 ac_cv_c_inline=$ac_kw; break
13703 echo "$as_me: failed program was:" >&5
13704 sed 's/^/| /' conftest.$ac_ext >&5
13707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13711 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13712 echo "${ECHO_T}$ac_cv_c_inline" >&6
13715 case $ac_cv_c_inline in
13718 case $ac_cv_c_inline in
13720 *) ac_val=$ac_cv_c_inline;;
13722 cat >>confdefs.h <<_ACEOF
13723 #ifndef __cplusplus
13724 #define inline $ac_val
13731 # ------------------------------ #
13732 # Checks for library functions. #
13733 # ------------------------------ #
13735 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13736 # for constant arguments. Useless!
13737 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13738 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13739 if test "${ac_cv_working_alloca_h+set}" = set; then
13740 echo $ECHO_N "(cached) $ECHO_C" >&6
13742 cat >conftest.$ac_ext <<_ACEOF
13745 cat confdefs.h >>conftest.$ac_ext
13746 cat >>conftest.$ac_ext <<_ACEOF
13747 /* end confdefs.h. */
13748 #include <alloca.h>
13752 char *p = (char *) alloca (2 * sizeof (int));
13757 rm -f conftest.$ac_objext conftest$ac_exeext
13758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13759 (eval $ac_link) 2>conftest.er1
13761 grep -v '^ *+' conftest.er1 >conftest.err
13763 cat conftest.err >&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); } &&
13766 { ac_try='test -z "$ac_c_werror_flag"
13767 || test ! -s conftest.err'
13768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; } &&
13773 { ac_try='test -s conftest$ac_exeext'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; }; then
13779 ac_cv_working_alloca_h=yes
13781 echo "$as_me: failed program was:" >&5
13782 sed 's/^/| /' conftest.$ac_ext >&5
13784 ac_cv_working_alloca_h=no
13786 rm -f conftest.err conftest.$ac_objext \
13787 conftest$ac_exeext conftest.$ac_ext
13789 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13790 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13791 if test $ac_cv_working_alloca_h = yes; then
13793 cat >>confdefs.h <<\_ACEOF
13794 #define HAVE_ALLOCA_H 1
13799 echo "$as_me:$LINENO: checking for alloca" >&5
13800 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13801 if test "${ac_cv_func_alloca_works+set}" = set; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13804 cat >conftest.$ac_ext <<_ACEOF
13807 cat confdefs.h >>conftest.$ac_ext
13808 cat >>conftest.$ac_ext <<_ACEOF
13809 /* end confdefs.h. */
13811 # define alloca __builtin_alloca
13814 # include <malloc.h>
13815 # define alloca _alloca
13818 # include <alloca.h>
13823 # ifndef alloca /* predefined by HP cc +Olibcalls */
13834 char *p = (char *) alloca (1);
13839 rm -f conftest.$ac_objext conftest$ac_exeext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13841 (eval $ac_link) 2>conftest.er1
13843 grep -v '^ *+' conftest.er1 >conftest.err
13845 cat conftest.err >&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
13848 { ac_try='test -z "$ac_c_werror_flag"
13849 || test ! -s conftest.err'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest$ac_exeext'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 ac_cv_func_alloca_works=yes
13863 echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13866 ac_cv_func_alloca_works=no
13868 rm -f conftest.err conftest.$ac_objext \
13869 conftest$ac_exeext conftest.$ac_ext
13871 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13872 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13874 if test $ac_cv_func_alloca_works = yes; then
13876 cat >>confdefs.h <<\_ACEOF
13877 #define HAVE_ALLOCA 1
13881 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13882 # that cause trouble. Some versions do not even contain alloca or
13883 # contain a buggy version. If you still want to use their alloca,
13884 # use ar to extract alloca.o from them instead of compiling alloca.c.
13886 ALLOCA=alloca.$ac_objext
13888 cat >>confdefs.h <<\_ACEOF
13893 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13894 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13895 if test "${ac_cv_os_cray+set}" = set; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 cat >conftest.$ac_ext <<_ACEOF
13901 cat confdefs.h >>conftest.$ac_ext
13902 cat >>conftest.$ac_ext <<_ACEOF
13903 /* end confdefs.h. */
13904 #if defined(CRAY) && ! defined(CRAY2)
13911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13912 $EGREP "webecray" >/dev/null 2>&1; then
13920 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13921 echo "${ECHO_T}$ac_cv_os_cray" >&6
13922 if test $ac_cv_os_cray = yes; then
13923 for ac_func in _getb67 GETB67 getb67; do
13924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13925 echo "$as_me:$LINENO: checking for $ac_func" >&5
13926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13927 if eval "test \"\${$as_ac_var+set}\" = set"; then
13928 echo $ECHO_N "(cached) $ECHO_C" >&6
13930 cat >conftest.$ac_ext <<_ACEOF
13933 cat confdefs.h >>conftest.$ac_ext
13934 cat >>conftest.$ac_ext <<_ACEOF
13935 /* end confdefs.h. */
13936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13938 #define $ac_func innocuous_$ac_func
13940 /* System header to define __stub macros and hopefully few prototypes,
13941 which can conflict with char $ac_func (); below.
13942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13943 <limits.h> exists even on freestanding compilers. */
13946 # include <limits.h>
13948 # include <assert.h>
13953 /* Override any gcc2 internal prototype to avoid an error. */
13958 /* We use char because int might match the return type of a gcc2
13959 builtin and then its argument prototype would still apply. */
13961 /* The GNU C library defines this for functions which it implements
13962 to always fail with ENOSYS. Some functions are actually named
13963 something starting with __ and the normal name is an alias. */
13964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13967 char (*f) () = $ac_func;
13976 return f != $ac_func;
13981 rm -f conftest.$ac_objext conftest$ac_exeext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13983 (eval $ac_link) 2>conftest.er1
13985 grep -v '^ *+' conftest.er1 >conftest.err
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } &&
13990 { ac_try='test -z "$ac_c_werror_flag"
13991 || test ! -s conftest.err'
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; } &&
13997 { ac_try='test -s conftest$ac_exeext'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; }; then
14003 eval "$as_ac_var=yes"
14005 echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14008 eval "$as_ac_var=no"
14010 rm -f conftest.err conftest.$ac_objext \
14011 conftest$ac_exeext conftest.$ac_ext
14013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14015 if test `eval echo '${'$as_ac_var'}'` = yes; then
14017 cat >>confdefs.h <<_ACEOF
14018 #define CRAY_STACKSEG_END $ac_func
14027 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14028 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14029 if test "${ac_cv_c_stack_direction+set}" = set; then
14030 echo $ECHO_N "(cached) $ECHO_C" >&6
14032 if test "$cross_compiling" = yes; then
14033 ac_cv_c_stack_direction=0
14035 cat >conftest.$ac_ext <<_ACEOF
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h. */
14042 find_stack_direction ()
14044 static char *addr = 0;
14049 return find_stack_direction ();
14052 return (&dummy > addr) ? 1 : -1;
14058 exit (find_stack_direction () < 0);
14061 rm -f conftest$ac_exeext
14062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14063 (eval $ac_link) 2>&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; }; then
14072 ac_cv_c_stack_direction=1
14074 echo "$as_me: program exited with status $ac_status" >&5
14075 echo "$as_me: failed program was:" >&5
14076 sed 's/^/| /' conftest.$ac_ext >&5
14078 ( exit $ac_status )
14079 ac_cv_c_stack_direction=-1
14081 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14084 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14085 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14087 cat >>confdefs.h <<_ACEOF
14088 #define STACK_DIRECTION $ac_cv_c_stack_direction
14096 for ac_header in stdlib.h unistd.h
14098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14100 echo "$as_me:$LINENO: checking for $ac_header" >&5
14101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14108 # Is the header compilable?
14109 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14111 cat >conftest.$ac_ext <<_ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h. */
14117 $ac_includes_default
14118 #include <$ac_header>
14120 rm -f conftest.$ac_objext
14121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14122 (eval $ac_compile) 2>conftest.er1
14124 grep -v '^ *+' conftest.er1 >conftest.err
14126 cat conftest.err >&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); } &&
14129 { ac_try='test -z "$ac_c_werror_flag"
14130 || test ! -s conftest.err'
14131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; } &&
14136 { ac_try='test -s conftest.$ac_objext'
14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }; then
14142 ac_header_compiler=yes
14144 echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14147 ac_header_compiler=no
14149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14150 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14151 echo "${ECHO_T}$ac_header_compiler" >&6
14153 # Is the header present?
14154 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14156 cat >conftest.$ac_ext <<_ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h. */
14162 #include <$ac_header>
14164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14167 grep -v '^ *+' conftest.er1 >conftest.err
14169 cat conftest.err >&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } >/dev/null; then
14172 if test -s conftest.err; then
14173 ac_cpp_err=$ac_c_preproc_warn_flag
14174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14181 if test -z "$ac_cpp_err"; then
14182 ac_header_preproc=yes
14184 echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.$ac_ext >&5
14187 ac_header_preproc=no
14189 rm -f conftest.err conftest.$ac_ext
14190 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14191 echo "${ECHO_T}$ac_header_preproc" >&6
14193 # So? What about this header?
14194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14200 ac_header_preproc=yes
14203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14210 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14217 ## ------------------------------------------ ##
14218 ## Report this to the AC_PACKAGE_NAME lists. ##
14219 ## ------------------------------------------ ##
14222 sed "s/^/$as_me: WARNING: /" >&2
14225 echo "$as_me:$LINENO: checking for $ac_header" >&5
14226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14230 eval "$as_ac_Header=\$ac_header_preproc"
14232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14237 cat >>confdefs.h <<_ACEOF
14238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14246 for ac_func in getpagesize
14248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14249 echo "$as_me:$LINENO: checking for $ac_func" >&5
14250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14251 if eval "test \"\${$as_ac_var+set}\" = set"; then
14252 echo $ECHO_N "(cached) $ECHO_C" >&6
14254 cat >conftest.$ac_ext <<_ACEOF
14257 cat confdefs.h >>conftest.$ac_ext
14258 cat >>conftest.$ac_ext <<_ACEOF
14259 /* end confdefs.h. */
14260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14262 #define $ac_func innocuous_$ac_func
14264 /* System header to define __stub macros and hopefully few prototypes,
14265 which can conflict with char $ac_func (); below.
14266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14267 <limits.h> exists even on freestanding compilers. */
14270 # include <limits.h>
14272 # include <assert.h>
14277 /* Override any gcc2 internal prototype to avoid an error. */
14282 /* We use char because int might match the return type of a gcc2
14283 builtin and then its argument prototype would still apply. */
14285 /* The GNU C library defines this for functions which it implements
14286 to always fail with ENOSYS. Some functions are actually named
14287 something starting with __ and the normal name is an alias. */
14288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14291 char (*f) () = $ac_func;
14300 return f != $ac_func;
14305 rm -f conftest.$ac_objext conftest$ac_exeext
14306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14307 (eval $ac_link) 2>conftest.er1
14309 grep -v '^ *+' conftest.er1 >conftest.err
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } &&
14314 { ac_try='test -z "$ac_c_werror_flag"
14315 || test ! -s conftest.err'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; } &&
14321 { ac_try='test -s conftest$ac_exeext'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
14327 eval "$as_ac_var=yes"
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14332 eval "$as_ac_var=no"
14334 rm -f conftest.err conftest.$ac_objext \
14335 conftest$ac_exeext conftest.$ac_ext
14337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14339 if test `eval echo '${'$as_ac_var'}'` = yes; then
14340 cat >>confdefs.h <<_ACEOF
14341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14347 echo "$as_me:$LINENO: checking for working mmap" >&5
14348 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14349 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14352 if test "$cross_compiling" = yes; then
14353 ac_cv_func_mmap_fixed_mapped=no
14355 cat >conftest.$ac_ext <<_ACEOF
14358 cat confdefs.h >>conftest.$ac_ext
14359 cat >>conftest.$ac_ext <<_ACEOF
14360 /* end confdefs.h. */
14361 $ac_includes_default
14362 /* malloc might have been renamed as rpl_malloc. */
14365 /* Thanks to Mike Haertel and Jim Avera for this test.
14366 Here is a matrix of mmap possibilities:
14367 mmap private not fixed
14368 mmap private fixed at somewhere currently unmapped
14369 mmap private fixed at somewhere already mapped
14370 mmap shared not fixed
14371 mmap shared fixed at somewhere currently unmapped
14372 mmap shared fixed at somewhere already mapped
14373 For private mappings, we should verify that changes cannot be read()
14374 back from the file, nor mmap's back from the file at a different
14375 address. (There have been systems where private was not correctly
14376 implemented like the infamous i386 svr4.0, and systems where the
14377 VM page cache was not coherent with the file system buffer cache
14378 like early versions of FreeBSD and possibly contemporary NetBSD.)
14379 For shared mappings, we should conversely verify that changes get
14380 propagated back to all the places they're supposed to be.
14382 Grep wants private fixed already mapped.
14383 The main things grep needs to know about mmap are:
14384 * does it exist and is it safe to write into the mmap'd area
14385 * how to use it (BSD variants) */
14388 #include <sys/mman.h>
14390 #if !STDC_HEADERS && !HAVE_STDLIB_H
14394 /* This mess was copied from the GNU getpagesize.h. */
14395 #if !HAVE_GETPAGESIZE
14396 /* Assume that all systems that can run configure have sys/param.h. */
14397 # if !HAVE_SYS_PARAM_H
14398 # define HAVE_SYS_PARAM_H 1
14401 # ifdef _SC_PAGESIZE
14402 # define getpagesize() sysconf(_SC_PAGESIZE)
14403 # else /* no _SC_PAGESIZE */
14404 # if HAVE_SYS_PARAM_H
14405 # include <sys/param.h>
14406 # ifdef EXEC_PAGESIZE
14407 # define getpagesize() EXEC_PAGESIZE
14408 # else /* no EXEC_PAGESIZE */
14410 # define getpagesize() NBPG * CLSIZE
14413 # endif /* no CLSIZE */
14414 # else /* no NBPG */
14416 # define getpagesize() NBPC
14417 # else /* no NBPC */
14419 # define getpagesize() PAGESIZE
14420 # endif /* PAGESIZE */
14421 # endif /* no NBPC */
14422 # endif /* no NBPG */
14423 # endif /* no EXEC_PAGESIZE */
14424 # else /* no HAVE_SYS_PARAM_H */
14425 # define getpagesize() 8192 /* punt totally */
14426 # endif /* no HAVE_SYS_PARAM_H */
14427 # endif /* no _SC_PAGESIZE */
14429 #endif /* no HAVE_GETPAGESIZE */
14434 char *data, *data2, *data3;
14438 pagesize = getpagesize ();
14440 /* First, make a file with some known garbage in it. */
14441 data = (char *) malloc (pagesize);
14444 for (i = 0; i < pagesize; ++i)
14445 *(data + i) = rand ();
14447 fd = creat ("conftest.mmap", 0600);
14450 if (write (fd, data, pagesize) != pagesize)
14454 /* Next, try to mmap the file at a fixed address which already has
14455 something else allocated at it. If we can, also make sure that
14456 we see the same garbage. */
14457 fd = open ("conftest.mmap", O_RDWR);
14460 data2 = (char *) malloc (2 * pagesize);
14463 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14464 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14465 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14467 for (i = 0; i < pagesize; ++i)
14468 if (*(data + i) != *(data2 + i))
14471 /* Finally, make sure that changes to the mapped area do not
14472 percolate back to the file as seen by read(). (This is a bug on
14473 some variants of i386 svr4.0.) */
14474 for (i = 0; i < pagesize; ++i)
14475 *(data2 + i) = *(data2 + i) + 1;
14476 data3 = (char *) malloc (pagesize);
14479 if (read (fd, data3, pagesize) != pagesize)
14481 for (i = 0; i < pagesize; ++i)
14482 if (*(data + i) != *(data3 + i))
14488 rm -f conftest$ac_exeext
14489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14490 (eval $ac_link) 2>&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495 (eval $ac_try) 2>&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); }; }; then
14499 ac_cv_func_mmap_fixed_mapped=yes
14501 echo "$as_me: program exited with status $ac_status" >&5
14502 echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14505 ( exit $ac_status )
14506 ac_cv_func_mmap_fixed_mapped=no
14508 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14511 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14512 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14513 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14515 cat >>confdefs.h <<\_ACEOF
14516 #define HAVE_MMAP 1
14520 rm -f conftest.mmap
14522 echo "$as_me:$LINENO: checking for pid_t" >&5
14523 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14524 if test "${ac_cv_type_pid_t+set}" = set; then
14525 echo $ECHO_N "(cached) $ECHO_C" >&6
14527 cat >conftest.$ac_ext <<_ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h. */
14533 $ac_includes_default
14539 if (sizeof (pid_t))
14545 rm -f conftest.$ac_objext
14546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14547 (eval $ac_compile) 2>conftest.er1
14549 grep -v '^ *+' conftest.er1 >conftest.err
14551 cat conftest.err >&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); } &&
14554 { ac_try='test -z "$ac_c_werror_flag"
14555 || test ! -s conftest.err'
14556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557 (eval $ac_try) 2>&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; } &&
14561 { ac_try='test -s conftest.$ac_objext'
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; }; then
14567 ac_cv_type_pid_t=yes
14569 echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14572 ac_cv_type_pid_t=no
14574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14576 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14577 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14578 if test $ac_cv_type_pid_t = yes; then
14582 cat >>confdefs.h <<_ACEOF
14590 for ac_header in unistd.h vfork.h
14592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14594 echo "$as_me:$LINENO: checking for $ac_header" >&5
14595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14597 echo $ECHO_N "(cached) $ECHO_C" >&6
14599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14602 # Is the header compilable?
14603 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14605 cat >conftest.$ac_ext <<_ACEOF
14608 cat confdefs.h >>conftest.$ac_ext
14609 cat >>conftest.$ac_ext <<_ACEOF
14610 /* end confdefs.h. */
14611 $ac_includes_default
14612 #include <$ac_header>
14614 rm -f conftest.$ac_objext
14615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14616 (eval $ac_compile) 2>conftest.er1
14618 grep -v '^ *+' conftest.er1 >conftest.err
14620 cat conftest.err >&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } &&
14623 { ac_try='test -z "$ac_c_werror_flag"
14624 || test ! -s conftest.err'
14625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626 (eval $ac_try) 2>&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); }; } &&
14630 { ac_try='test -s conftest.$ac_objext'
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }; then
14636 ac_header_compiler=yes
14638 echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14641 ac_header_compiler=no
14643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14645 echo "${ECHO_T}$ac_header_compiler" >&6
14647 # Is the header present?
14648 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14650 cat >conftest.$ac_ext <<_ACEOF
14653 cat confdefs.h >>conftest.$ac_ext
14654 cat >>conftest.$ac_ext <<_ACEOF
14655 /* end confdefs.h. */
14656 #include <$ac_header>
14658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14661 grep -v '^ *+' conftest.er1 >conftest.err
14663 cat conftest.err >&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } >/dev/null; then
14666 if test -s conftest.err; then
14667 ac_cpp_err=$ac_c_preproc_warn_flag
14668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14675 if test -z "$ac_cpp_err"; then
14676 ac_header_preproc=yes
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14681 ac_header_preproc=no
14683 rm -f conftest.err conftest.$ac_ext
14684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14685 echo "${ECHO_T}$ac_header_preproc" >&6
14687 # So? What about this header?
14688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14694 ac_header_preproc=yes
14697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14711 ## ------------------------------------------ ##
14712 ## Report this to the AC_PACKAGE_NAME lists. ##
14713 ## ------------------------------------------ ##
14716 sed "s/^/$as_me: WARNING: /" >&2
14719 echo "$as_me:$LINENO: checking for $ac_header" >&5
14720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14724 eval "$as_ac_Header=\$ac_header_preproc"
14726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14731 cat >>confdefs.h <<_ACEOF
14732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14741 for ac_func in fork vfork
14743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14744 echo "$as_me:$LINENO: checking for $ac_func" >&5
14745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14746 if eval "test \"\${$as_ac_var+set}\" = set"; then
14747 echo $ECHO_N "(cached) $ECHO_C" >&6
14749 cat >conftest.$ac_ext <<_ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14757 #define $ac_func innocuous_$ac_func
14759 /* System header to define __stub macros and hopefully few prototypes,
14760 which can conflict with char $ac_func (); below.
14761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14762 <limits.h> exists even on freestanding compilers. */
14765 # include <limits.h>
14767 # include <assert.h>
14772 /* Override any gcc2 internal prototype to avoid an error. */
14777 /* We use char because int might match the return type of a gcc2
14778 builtin and then its argument prototype would still apply. */
14780 /* The GNU C library defines this for functions which it implements
14781 to always fail with ENOSYS. Some functions are actually named
14782 something starting with __ and the normal name is an alias. */
14783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14786 char (*f) () = $ac_func;
14795 return f != $ac_func;
14800 rm -f conftest.$ac_objext conftest$ac_exeext
14801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14802 (eval $ac_link) 2>conftest.er1
14804 grep -v '^ *+' conftest.er1 >conftest.err
14806 cat conftest.err >&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); } &&
14809 { ac_try='test -z "$ac_c_werror_flag"
14810 || test ! -s conftest.err'
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; } &&
14816 { ac_try='test -s conftest$ac_exeext'
14817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818 (eval $ac_try) 2>&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; }; then
14822 eval "$as_ac_var=yes"
14824 echo "$as_me: failed program was:" >&5
14825 sed 's/^/| /' conftest.$ac_ext >&5
14827 eval "$as_ac_var=no"
14829 rm -f conftest.err conftest.$ac_objext \
14830 conftest$ac_exeext conftest.$ac_ext
14832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14833 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14834 if test `eval echo '${'$as_ac_var'}'` = yes; then
14835 cat >>confdefs.h <<_ACEOF
14836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14842 if test "x$ac_cv_func_fork" = xyes; then
14843 echo "$as_me:$LINENO: checking for working fork" >&5
14844 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
14845 if test "${ac_cv_func_fork_works+set}" = set; then
14846 echo $ECHO_N "(cached) $ECHO_C" >&6
14848 if test "$cross_compiling" = yes; then
14849 ac_cv_func_fork_works=cross
14851 cat >conftest.$ac_ext <<_ACEOF
14852 /* By Ruediger Kuhlmann. */
14853 #include <sys/types.h>
14855 # include <unistd.h>
14857 /* Some systems only have a dummy stub for fork() */
14865 rm -f conftest$ac_exeext
14866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14867 (eval $ac_link) 2>&5
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872 (eval $ac_try) 2>&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; }; then
14876 ac_cv_func_fork_works=yes
14878 echo "$as_me: program exited with status $ac_status" >&5
14879 echo "$as_me: failed program was:" >&5
14880 sed 's/^/| /' conftest.$ac_ext >&5
14882 ( exit $ac_status )
14883 ac_cv_func_fork_works=no
14885 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14888 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
14889 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
14892 ac_cv_func_fork_works=$ac_cv_func_fork
14894 if test "x$ac_cv_func_fork_works" = xcross; then
14896 *-*-amigaos* | *-*-msdosdjgpp*)
14897 # Override, as these systems have only a dummy fork() stub
14898 ac_cv_func_fork_works=no
14901 ac_cv_func_fork_works=yes
14904 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14905 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14907 ac_cv_func_vfork_works=$ac_cv_func_vfork
14908 if test "x$ac_cv_func_vfork" = xyes; then
14909 echo "$as_me:$LINENO: checking for working vfork" >&5
14910 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
14911 if test "${ac_cv_func_vfork_works+set}" = set; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14914 if test "$cross_compiling" = yes; then
14915 ac_cv_func_vfork_works=cross
14917 cat >conftest.$ac_ext <<_ACEOF
14920 cat confdefs.h >>conftest.$ac_ext
14921 cat >>conftest.$ac_ext <<_ACEOF
14922 /* end confdefs.h. */
14923 /* Thanks to Paul Eggert for this test. */
14925 #include <stdlib.h>
14926 #include <sys/types.h>
14927 #include <sys/stat.h>
14928 #include <sys/wait.h>
14930 # include <unistd.h>
14933 # include <vfork.h>
14935 /* On some sparc systems, changes by the child to local and incoming
14936 argument registers are propagated back to the parent. The compiler
14937 is told about this with #include <vfork.h>, but some compilers
14938 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14939 static variable whose address is put into a register that is
14940 clobbered by the vfork. */
14943 sparc_address_test (int arg)
14945 sparc_address_test (arg) int arg;
14948 static pid_t child;
14966 pid_t parent = getpid ();
14969 sparc_address_test (0);
14974 /* Here is another test for sparc vfork register problems. This
14975 test uses lots of local variables, at least as many local
14976 variables as main has allocated so far including compiler
14977 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14978 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14979 reuse the register of parent for one of the local variables,
14980 since it will think that parent can't possibly be used any more
14981 in this routine. Assigning to the local variable will thus
14982 munge parent in the parent process. */
14984 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14985 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14986 /* Convince the compiler that p..p7 are live; otherwise, it might
14987 use the same hardware register for all 8 local variables. */
14988 if (p != p1 || p != p2 || p != p3 || p != p4
14989 || p != p5 || p != p6 || p != p7)
14992 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14993 from child file descriptors. If the child closes a descriptor
14994 before it execs or exits, this munges the parent's descriptor
14995 as well. Test for this by closing stdout in the child. */
14996 _exit(close(fileno(stdout)) != 0);
15001 while (wait(&status) != child)
15004 /* Was there some problem with vforking? */
15007 /* Did the child fail? (This shouldn't happen.) */
15010 /* Did the vfork/compiler bug occur? */
15011 || parent != getpid()
15013 /* Did the file descriptor bug occur? */
15014 || fstat(fileno(stdout), &st) != 0
15019 rm -f conftest$ac_exeext
15020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15021 (eval $ac_link) 2>&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026 (eval $ac_try) 2>&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); }; }; then
15030 ac_cv_func_vfork_works=yes
15032 echo "$as_me: program exited with status $ac_status" >&5
15033 echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15036 ( exit $ac_status )
15037 ac_cv_func_vfork_works=no
15039 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15042 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15043 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15046 if test "x$ac_cv_func_fork_works" = xcross; then
15047 ac_cv_func_vfork_works=$ac_cv_func_vfork
15048 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15049 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15052 if test "x$ac_cv_func_vfork_works" = xyes; then
15054 cat >>confdefs.h <<\_ACEOF
15055 #define HAVE_WORKING_VFORK 1
15060 cat >>confdefs.h <<\_ACEOF
15065 if test "x$ac_cv_func_fork_works" = xyes; then
15067 cat >>confdefs.h <<\_ACEOF
15068 #define HAVE_WORKING_FORK 1
15075 for ac_func in canonicalize_file_name realpath
15077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15078 echo "$as_me:$LINENO: checking for $ac_func" >&5
15079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15080 if eval "test \"\${$as_ac_var+set}\" = set"; then
15081 echo $ECHO_N "(cached) $ECHO_C" >&6
15083 cat >conftest.$ac_ext <<_ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15091 #define $ac_func innocuous_$ac_func
15093 /* System header to define __stub macros and hopefully few prototypes,
15094 which can conflict with char $ac_func (); below.
15095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15096 <limits.h> exists even on freestanding compilers. */
15099 # include <limits.h>
15101 # include <assert.h>
15106 /* Override any gcc2 internal prototype to avoid an error. */
15111 /* We use char because int might match the return type of a gcc2
15112 builtin and then its argument prototype would still apply. */
15114 /* The GNU C library defines this for functions which it implements
15115 to always fail with ENOSYS. Some functions are actually named
15116 something starting with __ and the normal name is an alias. */
15117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15120 char (*f) () = $ac_func;
15129 return f != $ac_func;
15134 rm -f conftest.$ac_objext conftest$ac_exeext
15135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15136 (eval $ac_link) 2>conftest.er1
15138 grep -v '^ *+' conftest.er1 >conftest.err
15140 cat conftest.err >&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } &&
15143 { ac_try='test -z "$ac_c_werror_flag"
15144 || test ! -s conftest.err'
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); }; } &&
15150 { ac_try='test -s conftest$ac_exeext'
15151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152 (eval $ac_try) 2>&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; }; then
15156 eval "$as_ac_var=yes"
15158 echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15161 eval "$as_ac_var=no"
15163 rm -f conftest.err conftest.$ac_objext \
15164 conftest$ac_exeext conftest.$ac_ext
15166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15168 if test `eval echo '${'$as_ac_var'}'` = yes; then
15169 cat >>confdefs.h <<_ACEOF
15170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15177 for ac_func in poll
15179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15180 echo "$as_me:$LINENO: checking for $ac_func" >&5
15181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15182 if eval "test \"\${$as_ac_var+set}\" = set"; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15185 cat >conftest.$ac_ext <<_ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h. */
15191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15193 #define $ac_func innocuous_$ac_func
15195 /* System header to define __stub macros and hopefully few prototypes,
15196 which can conflict with char $ac_func (); below.
15197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15198 <limits.h> exists even on freestanding compilers. */
15201 # include <limits.h>
15203 # include <assert.h>
15208 /* Override any gcc2 internal prototype to avoid an error. */
15213 /* We use char because int might match the return type of a gcc2
15214 builtin and then its argument prototype would still apply. */
15216 /* The GNU C library defines this for functions which it implements
15217 to always fail with ENOSYS. Some functions are actually named
15218 something starting with __ and the normal name is an alias. */
15219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15222 char (*f) () = $ac_func;
15231 return f != $ac_func;
15236 rm -f conftest.$ac_objext conftest$ac_exeext
15237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15238 (eval $ac_link) 2>conftest.er1
15240 grep -v '^ *+' conftest.er1 >conftest.err
15242 cat conftest.err >&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } &&
15245 { ac_try='test -z "$ac_c_werror_flag"
15246 || test ! -s conftest.err'
15247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248 (eval $ac_try) 2>&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; } &&
15252 { ac_try='test -s conftest$ac_exeext'
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; }; then
15258 eval "$as_ac_var=yes"
15260 echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15263 eval "$as_ac_var=no"
15265 rm -f conftest.err conftest.$ac_objext \
15266 conftest$ac_exeext conftest.$ac_ext
15268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15270 if test `eval echo '${'$as_ac_var'}'` = yes; then
15271 cat >>confdefs.h <<_ACEOF
15272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15279 for ac_func in pread64
15281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15282 echo "$as_me:$LINENO: checking for $ac_func" >&5
15283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15284 if eval "test \"\${$as_ac_var+set}\" = set"; then
15285 echo $ECHO_N "(cached) $ECHO_C" >&6
15287 cat >conftest.$ac_ext <<_ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15295 #define $ac_func innocuous_$ac_func
15297 /* System header to define __stub macros and hopefully few prototypes,
15298 which can conflict with char $ac_func (); below.
15299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15300 <limits.h> exists even on freestanding compilers. */
15303 # include <limits.h>
15305 # include <assert.h>
15310 /* Override any gcc2 internal prototype to avoid an error. */
15315 /* We use char because int might match the return type of a gcc2
15316 builtin and then its argument prototype would still apply. */
15318 /* The GNU C library defines this for functions which it implements
15319 to always fail with ENOSYS. Some functions are actually named
15320 something starting with __ and the normal name is an alias. */
15321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15324 char (*f) () = $ac_func;
15333 return f != $ac_func;
15338 rm -f conftest.$ac_objext conftest$ac_exeext
15339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15340 (eval $ac_link) 2>conftest.er1
15342 grep -v '^ *+' conftest.er1 >conftest.err
15344 cat conftest.err >&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } &&
15347 { ac_try='test -z "$ac_c_werror_flag"
15348 || test ! -s conftest.err'
15349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15350 (eval $ac_try) 2>&5
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); }; } &&
15354 { ac_try='test -s conftest$ac_exeext'
15355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15356 (eval $ac_try) 2>&5
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); }; }; then
15360 eval "$as_ac_var=yes"
15362 echo "$as_me: failed program was:" >&5
15363 sed 's/^/| /' conftest.$ac_ext >&5
15365 eval "$as_ac_var=no"
15367 rm -f conftest.err conftest.$ac_objext \
15368 conftest$ac_exeext conftest.$ac_ext
15370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15372 if test `eval echo '${'$as_ac_var'}'` = yes; then
15373 cat >>confdefs.h <<_ACEOF
15374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15381 for ac_func in sbrk
15383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15384 echo "$as_me:$LINENO: checking for $ac_func" >&5
15385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15386 if eval "test \"\${$as_ac_var+set}\" = set"; then
15387 echo $ECHO_N "(cached) $ECHO_C" >&6
15389 cat >conftest.$ac_ext <<_ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h. */
15395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15397 #define $ac_func innocuous_$ac_func
15399 /* System header to define __stub macros and hopefully few prototypes,
15400 which can conflict with char $ac_func (); below.
15401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15402 <limits.h> exists even on freestanding compilers. */
15405 # include <limits.h>
15407 # include <assert.h>
15412 /* Override any gcc2 internal prototype to avoid an error. */
15417 /* We use char because int might match the return type of a gcc2
15418 builtin and then its argument prototype would still apply. */
15420 /* The GNU C library defines this for functions which it implements
15421 to always fail with ENOSYS. Some functions are actually named
15422 something starting with __ and the normal name is an alias. */
15423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15426 char (*f) () = $ac_func;
15435 return f != $ac_func;
15440 rm -f conftest.$ac_objext conftest$ac_exeext
15441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15442 (eval $ac_link) 2>conftest.er1
15444 grep -v '^ *+' conftest.er1 >conftest.err
15446 cat conftest.err >&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); } &&
15449 { ac_try='test -z "$ac_c_werror_flag"
15450 || test ! -s conftest.err'
15451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452 (eval $ac_try) 2>&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); }; } &&
15456 { ac_try='test -s conftest$ac_exeext'
15457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15458 (eval $ac_try) 2>&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); }; }; then
15462 eval "$as_ac_var=yes"
15464 echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15467 eval "$as_ac_var=no"
15469 rm -f conftest.err conftest.$ac_objext \
15470 conftest$ac_exeext conftest.$ac_ext
15472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15473 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15474 if test `eval echo '${'$as_ac_var'}'` = yes; then
15475 cat >>confdefs.h <<_ACEOF
15476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15484 for ac_func in setpgid setpgrp
15486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15487 echo "$as_me:$LINENO: checking for $ac_func" >&5
15488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15489 if eval "test \"\${$as_ac_var+set}\" = set"; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15492 cat >conftest.$ac_ext <<_ACEOF
15495 cat confdefs.h >>conftest.$ac_ext
15496 cat >>conftest.$ac_ext <<_ACEOF
15497 /* end confdefs.h. */
15498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15500 #define $ac_func innocuous_$ac_func
15502 /* System header to define __stub macros and hopefully few prototypes,
15503 which can conflict with char $ac_func (); below.
15504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15505 <limits.h> exists even on freestanding compilers. */
15508 # include <limits.h>
15510 # include <assert.h>
15515 /* Override any gcc2 internal prototype to avoid an error. */
15520 /* We use char because int might match the return type of a gcc2
15521 builtin and then its argument prototype would still apply. */
15523 /* The GNU C library defines this for functions which it implements
15524 to always fail with ENOSYS. Some functions are actually named
15525 something starting with __ and the normal name is an alias. */
15526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15529 char (*f) () = $ac_func;
15538 return f != $ac_func;
15543 rm -f conftest.$ac_objext conftest$ac_exeext
15544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15545 (eval $ac_link) 2>conftest.er1
15547 grep -v '^ *+' conftest.er1 >conftest.err
15549 cat conftest.err >&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); } &&
15552 { ac_try='test -z "$ac_c_werror_flag"
15553 || test ! -s conftest.err'
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; } &&
15559 { ac_try='test -s conftest$ac_exeext'
15560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561 (eval $ac_try) 2>&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; }; then
15565 eval "$as_ac_var=yes"
15567 echo "$as_me: failed program was:" >&5
15568 sed 's/^/| /' conftest.$ac_ext >&5
15570 eval "$as_ac_var=no"
15572 rm -f conftest.err conftest.$ac_objext \
15573 conftest$ac_exeext conftest.$ac_ext
15575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15576 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15577 if test `eval echo '${'$as_ac_var'}'` = yes; then
15578 cat >>confdefs.h <<_ACEOF
15579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15588 for ac_func in sigaction sigprocmask sigsetmask
15590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15591 echo "$as_me:$LINENO: checking for $ac_func" >&5
15592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15593 if eval "test \"\${$as_ac_var+set}\" = set"; then
15594 echo $ECHO_N "(cached) $ECHO_C" >&6
15596 cat >conftest.$ac_ext <<_ACEOF
15599 cat confdefs.h >>conftest.$ac_ext
15600 cat >>conftest.$ac_ext <<_ACEOF
15601 /* end confdefs.h. */
15602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15604 #define $ac_func innocuous_$ac_func
15606 /* System header to define __stub macros and hopefully few prototypes,
15607 which can conflict with char $ac_func (); below.
15608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15609 <limits.h> exists even on freestanding compilers. */
15612 # include <limits.h>
15614 # include <assert.h>
15619 /* Override any gcc2 internal prototype to avoid an error. */
15624 /* We use char because int might match the return type of a gcc2
15625 builtin and then its argument prototype would still apply. */
15627 /* The GNU C library defines this for functions which it implements
15628 to always fail with ENOSYS. Some functions are actually named
15629 something starting with __ and the normal name is an alias. */
15630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15633 char (*f) () = $ac_func;
15642 return f != $ac_func;
15647 rm -f conftest.$ac_objext conftest$ac_exeext
15648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15649 (eval $ac_link) 2>conftest.er1
15651 grep -v '^ *+' conftest.er1 >conftest.err
15653 cat conftest.err >&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); } &&
15656 { ac_try='test -z "$ac_c_werror_flag"
15657 || test ! -s conftest.err'
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); }; } &&
15663 { ac_try='test -s conftest$ac_exeext'
15664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15665 (eval $ac_try) 2>&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); }; }; then
15669 eval "$as_ac_var=yes"
15671 echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15674 eval "$as_ac_var=no"
15676 rm -f conftest.err conftest.$ac_objext \
15677 conftest$ac_exeext conftest.$ac_ext
15679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15681 if test `eval echo '${'$as_ac_var'}'` = yes; then
15682 cat >>confdefs.h <<_ACEOF
15683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15690 for ac_func in socketpair
15692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15693 echo "$as_me:$LINENO: checking for $ac_func" >&5
15694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15695 if eval "test \"\${$as_ac_var+set}\" = set"; then
15696 echo $ECHO_N "(cached) $ECHO_C" >&6
15698 cat >conftest.$ac_ext <<_ACEOF
15701 cat confdefs.h >>conftest.$ac_ext
15702 cat >>conftest.$ac_ext <<_ACEOF
15703 /* end confdefs.h. */
15704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15706 #define $ac_func innocuous_$ac_func
15708 /* System header to define __stub macros and hopefully few prototypes,
15709 which can conflict with char $ac_func (); below.
15710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15711 <limits.h> exists even on freestanding compilers. */
15714 # include <limits.h>
15716 # include <assert.h>
15721 /* Override any gcc2 internal prototype to avoid an error. */
15726 /* We use char because int might match the return type of a gcc2
15727 builtin and then its argument prototype would still apply. */
15729 /* The GNU C library defines this for functions which it implements
15730 to always fail with ENOSYS. Some functions are actually named
15731 something starting with __ and the normal name is an alias. */
15732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15735 char (*f) () = $ac_func;
15744 return f != $ac_func;
15749 rm -f conftest.$ac_objext conftest$ac_exeext
15750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15751 (eval $ac_link) 2>conftest.er1
15753 grep -v '^ *+' conftest.er1 >conftest.err
15755 cat conftest.err >&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } &&
15758 { ac_try='test -z "$ac_c_werror_flag"
15759 || test ! -s conftest.err'
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); }; } &&
15765 { ac_try='test -s conftest$ac_exeext'
15766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767 (eval $ac_try) 2>&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); }; }; then
15771 eval "$as_ac_var=yes"
15773 echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.$ac_ext >&5
15776 eval "$as_ac_var=no"
15778 rm -f conftest.err conftest.$ac_objext \
15779 conftest$ac_exeext conftest.$ac_ext
15781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15782 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15783 if test `eval echo '${'$as_ac_var'}'` = yes; then
15784 cat >>confdefs.h <<_ACEOF
15785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15792 for ac_func in syscall
15794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15795 echo "$as_me:$LINENO: checking for $ac_func" >&5
15796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15797 if eval "test \"\${$as_ac_var+set}\" = set"; then
15798 echo $ECHO_N "(cached) $ECHO_C" >&6
15800 cat >conftest.$ac_ext <<_ACEOF
15803 cat confdefs.h >>conftest.$ac_ext
15804 cat >>conftest.$ac_ext <<_ACEOF
15805 /* end confdefs.h. */
15806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15808 #define $ac_func innocuous_$ac_func
15810 /* System header to define __stub macros and hopefully few prototypes,
15811 which can conflict with char $ac_func (); below.
15812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15813 <limits.h> exists even on freestanding compilers. */
15816 # include <limits.h>
15818 # include <assert.h>
15823 /* Override any gcc2 internal prototype to avoid an error. */
15828 /* We use char because int might match the return type of a gcc2
15829 builtin and then its argument prototype would still apply. */
15831 /* The GNU C library defines this for functions which it implements
15832 to always fail with ENOSYS. Some functions are actually named
15833 something starting with __ and the normal name is an alias. */
15834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15837 char (*f) () = $ac_func;
15846 return f != $ac_func;
15851 rm -f conftest.$ac_objext conftest$ac_exeext
15852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15853 (eval $ac_link) 2>conftest.er1
15855 grep -v '^ *+' conftest.er1 >conftest.err
15857 cat conftest.err >&5
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); } &&
15860 { ac_try='test -z "$ac_c_werror_flag"
15861 || test ! -s conftest.err'
15862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15863 (eval $ac_try) 2>&5
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }; } &&
15867 { ac_try='test -s conftest$ac_exeext'
15868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15869 (eval $ac_try) 2>&5
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); }; }; then
15873 eval "$as_ac_var=yes"
15875 echo "$as_me: failed program was:" >&5
15876 sed 's/^/| /' conftest.$ac_ext >&5
15878 eval "$as_ac_var=no"
15880 rm -f conftest.err conftest.$ac_objext \
15881 conftest$ac_exeext conftest.$ac_ext
15883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15885 if test `eval echo '${'$as_ac_var'}'` = yes; then
15886 cat >>confdefs.h <<_ACEOF
15887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15894 for ac_func in ttrace
15896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15897 echo "$as_me:$LINENO: checking for $ac_func" >&5
15898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15899 if eval "test \"\${$as_ac_var+set}\" = set"; then
15900 echo $ECHO_N "(cached) $ECHO_C" >&6
15902 cat >conftest.$ac_ext <<_ACEOF
15905 cat confdefs.h >>conftest.$ac_ext
15906 cat >>conftest.$ac_ext <<_ACEOF
15907 /* end confdefs.h. */
15908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15910 #define $ac_func innocuous_$ac_func
15912 /* System header to define __stub macros and hopefully few prototypes,
15913 which can conflict with char $ac_func (); below.
15914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15915 <limits.h> exists even on freestanding compilers. */
15918 # include <limits.h>
15920 # include <assert.h>
15925 /* Override any gcc2 internal prototype to avoid an error. */
15930 /* We use char because int might match the return type of a gcc2
15931 builtin and then its argument prototype would still apply. */
15933 /* The GNU C library defines this for functions which it implements
15934 to always fail with ENOSYS. Some functions are actually named
15935 something starting with __ and the normal name is an alias. */
15936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15939 char (*f) () = $ac_func;
15948 return f != $ac_func;
15953 rm -f conftest.$ac_objext conftest$ac_exeext
15954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15955 (eval $ac_link) 2>conftest.er1
15957 grep -v '^ *+' conftest.er1 >conftest.err
15959 cat conftest.err >&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); } &&
15962 { ac_try='test -z "$ac_c_werror_flag"
15963 || test ! -s conftest.err'
15964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15965 (eval $ac_try) 2>&5
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; } &&
15969 { ac_try='test -s conftest$ac_exeext'
15970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971 (eval $ac_try) 2>&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; }; then
15975 eval "$as_ac_var=yes"
15977 echo "$as_me: failed program was:" >&5
15978 sed 's/^/| /' conftest.$ac_ext >&5
15980 eval "$as_ac_var=no"
15982 rm -f conftest.err conftest.$ac_objext \
15983 conftest$ac_exeext conftest.$ac_ext
15985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15987 if test `eval echo '${'$as_ac_var'}'` = yes; then
15988 cat >>confdefs.h <<_ACEOF
15989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15996 for ac_func in wborder
15998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15999 echo "$as_me:$LINENO: checking for $ac_func" >&5
16000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16001 if eval "test \"\${$as_ac_var+set}\" = set"; then
16002 echo $ECHO_N "(cached) $ECHO_C" >&6
16004 cat >conftest.$ac_ext <<_ACEOF
16007 cat confdefs.h >>conftest.$ac_ext
16008 cat >>conftest.$ac_ext <<_ACEOF
16009 /* end confdefs.h. */
16010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16012 #define $ac_func innocuous_$ac_func
16014 /* System header to define __stub macros and hopefully few prototypes,
16015 which can conflict with char $ac_func (); below.
16016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16017 <limits.h> exists even on freestanding compilers. */
16020 # include <limits.h>
16022 # include <assert.h>
16027 /* Override any gcc2 internal prototype to avoid an error. */
16032 /* We use char because int might match the return type of a gcc2
16033 builtin and then its argument prototype would still apply. */
16035 /* The GNU C library defines this for functions which it implements
16036 to always fail with ENOSYS. Some functions are actually named
16037 something starting with __ and the normal name is an alias. */
16038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16041 char (*f) () = $ac_func;
16050 return f != $ac_func;
16055 rm -f conftest.$ac_objext conftest$ac_exeext
16056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16057 (eval $ac_link) 2>conftest.er1
16059 grep -v '^ *+' conftest.er1 >conftest.err
16061 cat conftest.err >&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); } &&
16064 { ac_try='test -z "$ac_c_werror_flag"
16065 || test ! -s conftest.err'
16066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067 (eval $ac_try) 2>&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); }; } &&
16071 { ac_try='test -s conftest$ac_exeext'
16072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073 (eval $ac_try) 2>&5
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); }; }; then
16077 eval "$as_ac_var=yes"
16079 echo "$as_me: failed program was:" >&5
16080 sed 's/^/| /' conftest.$ac_ext >&5
16082 eval "$as_ac_var=no"
16084 rm -f conftest.err conftest.$ac_objext \
16085 conftest$ac_exeext conftest.$ac_ext
16087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16089 if test `eval echo '${'$as_ac_var'}'` = yes; then
16090 cat >>confdefs.h <<_ACEOF
16091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16098 # Check the return and argument types of ptrace. No canned test for
16099 # this, so roll our own.
16100 gdb_ptrace_headers='
16101 #if HAVE_SYS_TYPES_H
16102 # include <sys/types.h>
16104 #if HAVE_SYS_PTRACE_H
16105 # include <sys/ptrace.h>
16108 # include <unistd.h>
16111 # There is no point in checking if we don't have a prototype.
16112 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
16113 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
16114 if test "${ac_cv_have_decl_ptrace+set}" = set; then
16115 echo $ECHO_N "(cached) $ECHO_C" >&6
16117 cat >conftest.$ac_ext <<_ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h. */
16123 $gdb_ptrace_headers
16129 char *p = (char *) ptrace;
16136 rm -f conftest.$ac_objext
16137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16138 (eval $ac_compile) 2>conftest.er1
16140 grep -v '^ *+' conftest.er1 >conftest.err
16142 cat conftest.err >&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); } &&
16145 { ac_try='test -z "$ac_c_werror_flag"
16146 || test ! -s conftest.err'
16147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148 (eval $ac_try) 2>&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; } &&
16152 { ac_try='test -s conftest.$ac_objext'
16153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154 (eval $ac_try) 2>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; }; then
16158 ac_cv_have_decl_ptrace=yes
16160 echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16163 ac_cv_have_decl_ptrace=no
16165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16167 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16168 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16169 if test $ac_cv_have_decl_ptrace = yes; then
16171 cat >>confdefs.h <<_ACEOF
16172 #define HAVE_DECL_PTRACE 1
16177 cat >>confdefs.h <<_ACEOF
16178 #define HAVE_DECL_PTRACE 0
16182 : ${gdb_cv_func_ptrace_ret='int'}
16183 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16188 # Check return type.
16189 echo "$as_me:$LINENO: checking return type of ptrace" >&5
16190 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16191 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
16192 echo $ECHO_N "(cached) $ECHO_C" >&6
16194 cat >conftest.$ac_ext <<_ACEOF
16197 cat confdefs.h >>conftest.$ac_ext
16198 cat >>conftest.$ac_ext <<_ACEOF
16199 /* end confdefs.h. */
16200 $gdb_ptrace_headers
16204 extern int ptrace ();
16209 rm -f conftest.$ac_objext
16210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16211 (eval $ac_compile) 2>conftest.er1
16213 grep -v '^ *+' conftest.er1 >conftest.err
16215 cat conftest.err >&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); } &&
16218 { ac_try='test -z "$ac_c_werror_flag"
16219 || test ! -s conftest.err'
16220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221 (eval $ac_try) 2>&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); }; } &&
16225 { ac_try='test -s conftest.$ac_objext'
16226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16227 (eval $ac_try) 2>&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; }; then
16231 gdb_cv_func_ptrace_ret='int'
16233 echo "$as_me: failed program was:" >&5
16234 sed 's/^/| /' conftest.$ac_ext >&5
16236 gdb_cv_func_ptrace_ret='long'
16238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16240 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16241 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
16243 cat >>confdefs.h <<_ACEOF
16244 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
16247 # Check argument types.
16248 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16249 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16250 if test "${gdb_cv_func_ptrace_args+set}" = set; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16254 for gdb_arg1 in 'int' 'long'; do
16255 for gdb_arg2 in 'pid_t' 'int' 'long'; do
16256 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
16257 for gdb_arg4 in 'int' 'long'; do
16258 cat >conftest.$ac_ext <<_ACEOF
16261 cat confdefs.h >>conftest.$ac_ext
16262 cat >>conftest.$ac_ext <<_ACEOF
16263 /* end confdefs.h. */
16264 $gdb_ptrace_headers
16269 extern $gdb_cv_func_ptrace_ret
16270 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16276 rm -f conftest.$ac_objext
16277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16278 (eval $ac_compile) 2>conftest.er1
16280 grep -v '^ *+' conftest.er1 >conftest.err
16282 cat conftest.err >&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); } &&
16285 { ac_try='test -z "$ac_c_werror_flag"
16286 || test ! -s conftest.err'
16287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16288 (eval $ac_try) 2>&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; } &&
16292 { ac_try='test -s conftest.$ac_objext'
16293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294 (eval $ac_try) 2>&5
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; }; then
16298 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16301 echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16306 for gdb_arg5 in 'int *' 'int' 'long'; do
16307 cat >conftest.$ac_ext <<_ACEOF
16310 cat confdefs.h >>conftest.$ac_ext
16311 cat >>conftest.$ac_ext <<_ACEOF
16312 /* end confdefs.h. */
16313 $gdb_ptrace_headers
16318 extern $gdb_cv_func_ptrace_ret
16319 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16325 rm -f conftest.$ac_objext
16326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16327 (eval $ac_compile) 2>conftest.er1
16329 grep -v '^ *+' conftest.er1 >conftest.err
16331 cat conftest.err >&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } &&
16334 { ac_try='test -z "$ac_c_werror_flag"
16335 || test ! -s conftest.err'
16336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16337 (eval $ac_try) 2>&5
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); }; } &&
16341 { ac_try='test -s conftest.$ac_objext'
16342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343 (eval $ac_try) 2>&5
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); }; }; then
16348 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16351 echo "$as_me: failed program was:" >&5
16352 sed 's/^/| /' conftest.$ac_ext >&5
16355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16361 # Provide a safe default value.
16362 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16365 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16366 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16367 ac_save_IFS=$IFS; IFS=','
16368 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16372 cat >>confdefs.h <<_ACEOF
16373 #define PTRACE_TYPE_ARG3 $3
16376 if test -n "$5"; then
16378 cat >>confdefs.h <<_ACEOF
16379 #define PTRACE_TYPE_ARG5 $5
16384 if test "$cross_compiling" = no; then
16385 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16386 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16387 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16388 echo $ECHO_N "(cached) $ECHO_C" >&6
16390 if test "$cross_compiling" = yes; then
16391 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16392 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16393 { (exit 1); exit 1; }; }
16395 cat >conftest.$ac_ext <<_ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16402 # include <unistd.h>
16408 /* If this system has a BSD-style setpgrp which takes arguments,
16409 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16410 exit successfully. */
16411 exit (setpgrp (1,1) == -1 ? 0 : 1);
16416 rm -f conftest$ac_exeext
16417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16418 (eval $ac_link) 2>&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423 (eval $ac_try) 2>&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; }; then
16427 ac_cv_func_setpgrp_void=no
16429 echo "$as_me: program exited with status $ac_status" >&5
16430 echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16433 ( exit $ac_status )
16434 ac_cv_func_setpgrp_void=yes
16436 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16439 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16440 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16441 if test $ac_cv_func_setpgrp_void = yes; then
16443 cat >>confdefs.h <<\_ACEOF
16444 #define SETPGRP_VOID 1
16450 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16451 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16452 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16453 echo $ECHO_N "(cached) $ECHO_C" >&6
16455 cat >conftest.$ac_ext <<_ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h. */
16462 #include <unistd.h>
16468 if (setpgrp(1,1) == -1)
16477 rm -f conftest.$ac_objext
16478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16479 (eval $ac_compile) 2>conftest.er1
16481 grep -v '^ *+' conftest.er1 >conftest.err
16483 cat conftest.err >&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } &&
16486 { ac_try='test -z "$ac_c_werror_flag"
16487 || test ! -s conftest.err'
16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; } &&
16493 { ac_try='test -s conftest.$ac_objext'
16494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16495 (eval $ac_try) 2>&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); }; }; then
16499 ac_cv_func_setpgrp_void=no
16501 echo "$as_me: failed program was:" >&5
16502 sed 's/^/| /' conftest.$ac_ext >&5
16504 ac_cv_func_setpgrp_void=yes
16506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16508 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16509 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16510 if test $ac_cv_func_setpgrp_void = yes; then
16511 cat >>confdefs.h <<\_ACEOF
16512 #define SETPGRP_VOID 1
16518 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16519 # since sigsetjmp might only be defined as a macro.
16520 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16521 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16522 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16523 echo $ECHO_N "(cached) $ECHO_C" >&6
16525 cat >conftest.$ac_ext <<_ACEOF
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h. */
16532 #include <setjmp.h>
16537 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16542 rm -f conftest.$ac_objext
16543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16544 (eval $ac_compile) 2>conftest.er1
16546 grep -v '^ *+' conftest.er1 >conftest.err
16548 cat conftest.err >&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } &&
16551 { ac_try='test -z "$ac_c_werror_flag"
16552 || test ! -s conftest.err'
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; } &&
16558 { ac_try='test -s conftest.$ac_objext'
16559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560 (eval $ac_try) 2>&5
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; }; then
16564 gdb_cv_func_sigsetjmp=yes
16566 echo "$as_me: failed program was:" >&5
16567 sed 's/^/| /' conftest.$ac_ext >&5
16569 gdb_cv_func_sigsetjmp=no
16571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16573 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16574 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16575 if test $gdb_cv_func_sigsetjmp = yes; then
16577 cat >>confdefs.h <<\_ACEOF
16578 #define HAVE_SIGSETJMP 1
16583 # Assume we'll default to using the included libiberty regex.
16584 gdb_use_included_regex=yes
16586 # However, if the system regex is GNU regex, then default to *not*
16587 # using the included regex.
16588 echo "$as_me:$LINENO: checking for GNU regex" >&5
16589 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16590 if test "${gdb_cv_have_gnu_regex+set}" = set; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
16593 cat >conftest.$ac_ext <<_ACEOF
16596 cat confdefs.h >>conftest.$ac_ext
16597 cat >>conftest.$ac_ext <<_ACEOF
16598 /* end confdefs.h. */
16599 #include <gnu-versions.h>
16603 #define REGEX_INTERFACE_VERSION 1
16604 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16605 # error "Version mismatch"
16611 rm -f conftest.$ac_objext
16612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16613 (eval $ac_compile) 2>conftest.er1
16615 grep -v '^ *+' conftest.er1 >conftest.err
16617 cat conftest.err >&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
16620 { ac_try='test -z "$ac_c_werror_flag"
16621 || test ! -s conftest.err'
16622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623 (eval $ac_try) 2>&5
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; } &&
16627 { ac_try='test -s conftest.$ac_objext'
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; }; then
16633 gdb_cv_have_gnu_regex=yes
16635 echo "$as_me: failed program was:" >&5
16636 sed 's/^/| /' conftest.$ac_ext >&5
16638 gdb_cv_have_gnu_regex=no
16640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16642 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16643 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16644 if test $gdb_cv_have_gnu_regex = yes; then
16645 gdb_use_included_regex=no
16649 # Check whether --with-included-regex or --without-included-regex was given.
16650 if test "${with_included_regex+set}" = set; then
16651 withval="$with_included_regex"
16652 gdb_with_regex=$withval
16654 gdb_with_regex=$gdb_use_included_regex
16656 if test "$gdb_with_regex" = yes; then
16658 cat >>confdefs.h <<\_ACEOF
16659 #define USE_INCLUDED_REGEX 1
16664 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
16665 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
16666 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
16667 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
16668 echo $ECHO_N "(cached) $ECHO_C" >&6
16670 cat >conftest.$ac_ext <<_ACEOF
16673 cat confdefs.h >>conftest.$ac_ext
16674 cat >>conftest.$ac_ext <<_ACEOF
16675 /* end confdefs.h. */
16676 #include <sys/param.h>
16677 #include <sys/proc.h>
16683 static struct thread ac_aggr;
16684 if (ac_aggr.td_pcb)
16690 rm -f conftest.$ac_objext
16691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16692 (eval $ac_compile) 2>conftest.er1
16694 grep -v '^ *+' conftest.er1 >conftest.err
16696 cat conftest.err >&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } &&
16699 { ac_try='test -z "$ac_c_werror_flag"
16700 || test ! -s conftest.err'
16701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16702 (eval $ac_try) 2>&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); }; } &&
16706 { ac_try='test -s conftest.$ac_objext'
16707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16708 (eval $ac_try) 2>&5
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; }; then
16712 ac_cv_member_struct_thread_td_pcb=yes
16714 echo "$as_me: failed program was:" >&5
16715 sed 's/^/| /' conftest.$ac_ext >&5
16717 cat >conftest.$ac_ext <<_ACEOF
16720 cat confdefs.h >>conftest.$ac_ext
16721 cat >>conftest.$ac_ext <<_ACEOF
16722 /* end confdefs.h. */
16723 #include <sys/param.h>
16724 #include <sys/proc.h>
16730 static struct thread ac_aggr;
16731 if (sizeof ac_aggr.td_pcb)
16737 rm -f conftest.$ac_objext
16738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16739 (eval $ac_compile) 2>conftest.er1
16741 grep -v '^ *+' conftest.er1 >conftest.err
16743 cat conftest.err >&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); } &&
16746 { ac_try='test -z "$ac_c_werror_flag"
16747 || test ! -s conftest.err'
16748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16749 (eval $ac_try) 2>&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; } &&
16753 { ac_try='test -s conftest.$ac_objext'
16754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755 (eval $ac_try) 2>&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; }; then
16759 ac_cv_member_struct_thread_td_pcb=yes
16761 echo "$as_me: failed program was:" >&5
16762 sed 's/^/| /' conftest.$ac_ext >&5
16764 ac_cv_member_struct_thread_td_pcb=no
16766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16770 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
16771 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
16772 if test $ac_cv_member_struct_thread_td_pcb = yes; then
16774 cat >>confdefs.h <<_ACEOF
16775 #define HAVE_STRUCT_THREAD_TD_PCB 1
16782 # See if <sys/lwp.h> defines `struct lwp`.
16783 echo "$as_me:$LINENO: checking for struct lwp" >&5
16784 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16785 if test "${gdb_cv_struct_lwp+set}" = set; then
16786 echo $ECHO_N "(cached) $ECHO_C" >&6
16788 cat >conftest.$ac_ext <<_ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16794 #include <sys/param.h>
16795 #include <sys/lwp.h>
16804 rm -f conftest.$ac_objext
16805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16806 (eval $ac_compile) 2>conftest.er1
16808 grep -v '^ *+' conftest.er1 >conftest.err
16810 cat conftest.err >&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); } &&
16813 { ac_try='test -z "$ac_c_werror_flag"
16814 || test ! -s conftest.err'
16815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816 (eval $ac_try) 2>&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; } &&
16820 { ac_try='test -s conftest.$ac_objext'
16821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16822 (eval $ac_try) 2>&5
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }; }; then
16826 gdb_cv_struct_lwp=yes
16828 echo "$as_me: failed program was:" >&5
16829 sed 's/^/| /' conftest.$ac_ext >&5
16831 gdb_cv_struct_lwp=no
16833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16835 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16836 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
16837 if test $gdb_cv_struct_lwp = yes; then
16839 cat >>confdefs.h <<\_ACEOF
16840 #define HAVE_STRUCT_LWP 1
16845 # See if <machine/reg.h> degines `struct reg'.
16846 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16847 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16848 if test "${gdb_cv_struct_reg+set}" = set; then
16849 echo $ECHO_N "(cached) $ECHO_C" >&6
16851 cat >conftest.$ac_ext <<_ACEOF
16854 cat confdefs.h >>conftest.$ac_ext
16855 cat >>conftest.$ac_ext <<_ACEOF
16856 /* end confdefs.h. */
16857 #include <sys/types.h>
16858 #include <machine/reg.h>
16867 rm -f conftest.$ac_objext
16868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16869 (eval $ac_compile) 2>conftest.er1
16871 grep -v '^ *+' conftest.er1 >conftest.err
16873 cat conftest.err >&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } &&
16876 { ac_try='test -z "$ac_c_werror_flag"
16877 || test ! -s conftest.err'
16878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879 (eval $ac_try) 2>&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; } &&
16883 { ac_try='test -s conftest.$ac_objext'
16884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16885 (eval $ac_try) 2>&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); }; }; then
16889 gdb_cv_struct_reg=yes
16891 echo "$as_me: failed program was:" >&5
16892 sed 's/^/| /' conftest.$ac_ext >&5
16894 gdb_cv_struct_reg=no
16896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16898 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16899 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
16900 if test $gdb_cv_struct_reg = yes; then
16902 cat >>confdefs.h <<\_ACEOF
16903 #define HAVE_STRUCT_REG 1
16908 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16909 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16910 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
16911 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
16912 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
16913 echo $ECHO_N "(cached) $ECHO_C" >&6
16915 cat >conftest.$ac_ext <<_ACEOF
16918 cat confdefs.h >>conftest.$ac_ext
16919 cat >>conftest.$ac_ext <<_ACEOF
16920 /* end confdefs.h. */
16921 #include <machine/reg.h>
16926 static struct reg ac_aggr;
16933 rm -f conftest.$ac_objext
16934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16935 (eval $ac_compile) 2>conftest.er1
16937 grep -v '^ *+' conftest.er1 >conftest.err
16939 cat conftest.err >&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } &&
16942 { ac_try='test -z "$ac_c_werror_flag"
16943 || test ! -s conftest.err'
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; } &&
16949 { ac_try='test -s conftest.$ac_objext'
16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; }; then
16955 ac_cv_member_struct_reg_r_fs=yes
16957 echo "$as_me: failed program was:" >&5
16958 sed 's/^/| /' conftest.$ac_ext >&5
16960 cat >conftest.$ac_ext <<_ACEOF
16963 cat confdefs.h >>conftest.$ac_ext
16964 cat >>conftest.$ac_ext <<_ACEOF
16965 /* end confdefs.h. */
16966 #include <machine/reg.h>
16971 static struct reg ac_aggr;
16972 if (sizeof ac_aggr.r_fs)
16978 rm -f conftest.$ac_objext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16980 (eval $ac_compile) 2>conftest.er1
16982 grep -v '^ *+' conftest.er1 >conftest.err
16984 cat conftest.err >&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
16987 { ac_try='test -z "$ac_c_werror_flag"
16988 || test ! -s conftest.err'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try='test -s conftest.$ac_objext'
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; }; then
17000 ac_cv_member_struct_reg_r_fs=yes
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17005 ac_cv_member_struct_reg_r_fs=no
17007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17011 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
17012 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
17013 if test $ac_cv_member_struct_reg_r_fs = yes; then
17015 cat >>confdefs.h <<_ACEOF
17016 #define HAVE_STRUCT_REG_R_FS 1
17021 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
17022 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
17023 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17026 cat >conftest.$ac_ext <<_ACEOF
17029 cat confdefs.h >>conftest.$ac_ext
17030 cat >>conftest.$ac_ext <<_ACEOF
17031 /* end confdefs.h. */
17032 #include <machine/reg.h>
17037 static struct reg ac_aggr;
17044 rm -f conftest.$ac_objext
17045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17046 (eval $ac_compile) 2>conftest.er1
17048 grep -v '^ *+' conftest.er1 >conftest.err
17050 cat conftest.err >&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } &&
17053 { ac_try='test -z "$ac_c_werror_flag"
17054 || test ! -s conftest.err'
17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056 (eval $ac_try) 2>&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; } &&
17060 { ac_try='test -s conftest.$ac_objext'
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; }; then
17066 ac_cv_member_struct_reg_r_gs=yes
17068 echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.$ac_ext >&5
17071 cat >conftest.$ac_ext <<_ACEOF
17074 cat confdefs.h >>conftest.$ac_ext
17075 cat >>conftest.$ac_ext <<_ACEOF
17076 /* end confdefs.h. */
17077 #include <machine/reg.h>
17082 static struct reg ac_aggr;
17083 if (sizeof ac_aggr.r_gs)
17089 rm -f conftest.$ac_objext
17090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17091 (eval $ac_compile) 2>conftest.er1
17093 grep -v '^ *+' conftest.er1 >conftest.err
17095 cat conftest.err >&5
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); } &&
17098 { ac_try='test -z "$ac_c_werror_flag"
17099 || test ! -s conftest.err'
17100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101 (eval $ac_try) 2>&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; } &&
17105 { ac_try='test -s conftest.$ac_objext'
17106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107 (eval $ac_try) 2>&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; }; then
17111 ac_cv_member_struct_reg_r_gs=yes
17113 echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17116 ac_cv_member_struct_reg_r_gs=no
17118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17122 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17123 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17124 if test $ac_cv_member_struct_reg_r_gs = yes; then
17126 cat >>confdefs.h <<_ACEOF
17127 #define HAVE_STRUCT_REG_R_GS 1
17134 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17135 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17136 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17137 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
17138 echo $ECHO_N "(cached) $ECHO_C" >&6
17140 cat >conftest.$ac_ext <<_ACEOF
17143 cat confdefs.h >>conftest.$ac_ext
17144 cat >>conftest.$ac_ext <<_ACEOF
17145 /* end confdefs.h. */
17146 #include <sys/ptrace.h>
17155 rm -f conftest.$ac_objext
17156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17157 (eval $ac_compile) 2>conftest.er1
17159 grep -v '^ *+' conftest.er1 >conftest.err
17161 cat conftest.err >&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } &&
17164 { ac_try='test -z "$ac_c_werror_flag"
17165 || test ! -s conftest.err'
17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167 (eval $ac_try) 2>&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; } &&
17171 { ac_try='test -s conftest.$ac_objext'
17172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17173 (eval $ac_try) 2>&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }; }; then
17177 gdb_cv_have_ptrace_getregs=yes
17179 echo "$as_me: failed program was:" >&5
17180 sed 's/^/| /' conftest.$ac_ext >&5
17182 gdb_cv_have_ptrace_getregs=no
17184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17187 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17188 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17189 if test $gdb_cv_have_ptrace_getregs = yes; then
17190 cat >>confdefs.h <<\_ACEOF
17191 #define HAVE_PTRACE_GETREGS 1
17196 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17197 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17198 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17199 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
17200 echo $ECHO_N "(cached) $ECHO_C" >&6
17202 cat >conftest.$ac_ext <<_ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17208 #include <sys/ptrace.h>
17217 rm -f conftest.$ac_objext
17218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17219 (eval $ac_compile) 2>conftest.er1
17221 grep -v '^ *+' conftest.er1 >conftest.err
17223 cat conftest.err >&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } &&
17226 { ac_try='test -z "$ac_c_werror_flag"
17227 || test ! -s conftest.err'
17228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229 (eval $ac_try) 2>&5
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; } &&
17233 { ac_try='test -s conftest.$ac_objext'
17234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17235 (eval $ac_try) 2>&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); }; }; then
17239 gdb_cv_have_ptrace_getfpxregs=yes
17241 echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.$ac_ext >&5
17244 gdb_cv_have_ptrace_getfpxregs=no
17246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17249 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17250 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17251 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
17252 cat >>confdefs.h <<\_ACEOF
17253 #define HAVE_PTRACE_GETFPXREGS 1
17258 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17259 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17260 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17261 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
17262 echo $ECHO_N "(cached) $ECHO_C" >&6
17264 cat >conftest.$ac_ext <<_ACEOF
17267 cat confdefs.h >>conftest.$ac_ext
17268 cat >>conftest.$ac_ext <<_ACEOF
17269 /* end confdefs.h. */
17270 #include <sys/types.h>
17271 #include <sys/ptrace.h>
17280 rm -f conftest.$ac_objext
17281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17282 (eval $ac_compile) 2>conftest.er1
17284 grep -v '^ *+' conftest.er1 >conftest.err
17286 cat conftest.err >&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); } &&
17289 { ac_try='test -z "$ac_c_werror_flag"
17290 || test ! -s conftest.err'
17291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17292 (eval $ac_try) 2>&5
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); }; } &&
17296 { ac_try='test -s conftest.$ac_objext'
17297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17298 (eval $ac_try) 2>&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; }; then
17302 gdb_cv_have_pt_getdbregs=yes
17304 echo "$as_me: failed program was:" >&5
17305 sed 's/^/| /' conftest.$ac_ext >&5
17307 gdb_cv_have_pt_getdbregs=no
17309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17312 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17313 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17314 if test $gdb_cv_have_pt_getdbregs = yes; then
17315 cat >>confdefs.h <<\_ACEOF
17316 #define HAVE_PT_GETDBREGS 1
17321 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17322 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17323 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17324 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
17325 echo $ECHO_N "(cached) $ECHO_C" >&6
17327 cat >conftest.$ac_ext <<_ACEOF
17330 cat confdefs.h >>conftest.$ac_ext
17331 cat >>conftest.$ac_ext <<_ACEOF
17332 /* end confdefs.h. */
17333 #include <sys/types.h>
17334 #include <sys/ptrace.h>
17343 rm -f conftest.$ac_objext
17344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17345 (eval $ac_compile) 2>conftest.er1
17347 grep -v '^ *+' conftest.er1 >conftest.err
17349 cat conftest.err >&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); } &&
17352 { ac_try='test -z "$ac_c_werror_flag"
17353 || test ! -s conftest.err'
17354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355 (eval $ac_try) 2>&5
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); }; } &&
17359 { ac_try='test -s conftest.$ac_objext'
17360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361 (eval $ac_try) 2>&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); }; }; then
17365 gdb_cv_have_pt_getxmmregs=yes
17367 echo "$as_me: failed program was:" >&5
17368 sed 's/^/| /' conftest.$ac_ext >&5
17370 gdb_cv_have_pt_getxmmregs=no
17372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17375 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17376 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17377 if test $gdb_cv_have_pt_getxmmregs = yes; then
17378 cat >>confdefs.h <<\_ACEOF
17379 #define HAVE_PT_GETXMMREGS 1
17384 # See if stdint.h provides the uintptr_t type.
17385 # Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
17386 echo "$as_me:$LINENO: checking for uintptr_t in stdint.h" >&5
17387 echo $ECHO_N "checking for uintptr_t in stdint.h... $ECHO_C" >&6
17388 if test "${gdb_cv_have_uintptr_t+set}" = set; then
17389 echo $ECHO_N "(cached) $ECHO_C" >&6
17391 cat >conftest.$ac_ext <<_ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h. */
17397 #include <stdint.h>
17406 rm -f conftest.$ac_objext
17407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17408 (eval $ac_compile) 2>conftest.er1
17410 grep -v '^ *+' conftest.er1 >conftest.err
17412 cat conftest.err >&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); } &&
17415 { ac_try='test -z "$ac_c_werror_flag"
17416 || test ! -s conftest.err'
17417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; } &&
17422 { ac_try='test -s conftest.$ac_objext'
17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; }; then
17428 gdb_cv_have_uintptr_t=yes
17430 echo "$as_me: failed program was:" >&5
17431 sed 's/^/| /' conftest.$ac_ext >&5
17433 gdb_cv_have_uintptr_t=no
17435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17437 echo "$as_me:$LINENO: result: $gdb_cv_have_uintptr_t" >&5
17438 echo "${ECHO_T}$gdb_cv_have_uintptr_t" >&6
17439 if test $gdb_cv_have_uintptr_t = yes; then
17441 cat >>confdefs.h <<\_ACEOF
17442 #define HAVE_UINTPTR_T 1
17447 # If we are configured native on GNU/Linux, work around problems with
17449 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
17451 if test "${target}" = "${host}"; then
17453 i[3456]86-*-linux*)
17454 cat >>confdefs.h <<\_ACEOF
17455 #define START_INFERIOR_TRAPS_EXPECTED 2
17458 cat >>confdefs.h <<\_ACEOF
17459 #define sys_quotactl 1
17463 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
17464 cat >>confdefs.h <<\_ACEOF
17465 #define NEW_PROC_API 1
17469 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
17470 cat >>confdefs.h <<\_ACEOF
17471 #define NEW_PROC_API 1
17476 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17477 cat >>confdefs.h <<\_ACEOF
17478 #define _KMEMUSER 1
17485 if test "$ac_cv_header_sys_procfs_h" = yes; then
17486 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17487 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17488 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17489 echo $ECHO_N "(cached) $ECHO_C" >&6
17491 cat >conftest.$ac_ext <<_ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17499 #include <sys/procfs.h>
17508 rm -f conftest.$ac_objext
17509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17510 (eval $ac_compile) 2>conftest.er1
17512 grep -v '^ *+' conftest.er1 >conftest.err
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } &&
17517 { ac_try='test -z "$ac_c_werror_flag"
17518 || test ! -s conftest.err'
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; } &&
17524 { ac_try='test -s conftest.$ac_objext'
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 bfd_cv_have_sys_procfs_type_pstatus_t=yes
17532 echo "$as_me: failed program was:" >&5
17533 sed 's/^/| /' conftest.$ac_ext >&5
17535 bfd_cv_have_sys_procfs_type_pstatus_t=no
17538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17541 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17543 cat >>confdefs.h <<\_ACEOF
17544 #define HAVE_PSTATUS_T 1
17548 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17549 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17551 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17552 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17553 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17554 echo $ECHO_N "(cached) $ECHO_C" >&6
17556 cat >conftest.$ac_ext <<_ACEOF
17559 cat confdefs.h >>conftest.$ac_ext
17560 cat >>conftest.$ac_ext <<_ACEOF
17561 /* end confdefs.h. */
17564 #include <sys/procfs.h>
17573 rm -f conftest.$ac_objext
17574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17575 (eval $ac_compile) 2>conftest.er1
17577 grep -v '^ *+' conftest.er1 >conftest.err
17579 cat conftest.err >&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); } &&
17582 { ac_try='test -z "$ac_c_werror_flag"
17583 || test ! -s conftest.err'
17584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585 (eval $ac_try) 2>&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; } &&
17589 { ac_try='test -s conftest.$ac_objext'
17590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591 (eval $ac_try) 2>&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; }; then
17595 bfd_cv_have_sys_procfs_type_prrun_t=yes
17597 echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17600 bfd_cv_have_sys_procfs_type_prrun_t=no
17603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17606 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17608 cat >>confdefs.h <<\_ACEOF
17609 #define HAVE_PRRUN_T 1
17613 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17614 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17616 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17617 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17618 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17619 echo $ECHO_N "(cached) $ECHO_C" >&6
17621 cat >conftest.$ac_ext <<_ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h. */
17629 #include <sys/procfs.h>
17638 rm -f conftest.$ac_objext
17639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17640 (eval $ac_compile) 2>conftest.er1
17642 grep -v '^ *+' conftest.er1 >conftest.err
17644 cat conftest.err >&5
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } &&
17647 { ac_try='test -z "$ac_c_werror_flag"
17648 || test ! -s conftest.err'
17649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17650 (eval $ac_try) 2>&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); }; } &&
17654 { ac_try='test -s conftest.$ac_objext'
17655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; }; then
17660 bfd_cv_have_sys_procfs_type_gregset_t=yes
17662 echo "$as_me: failed program was:" >&5
17663 sed 's/^/| /' conftest.$ac_ext >&5
17665 bfd_cv_have_sys_procfs_type_gregset_t=no
17668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17671 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17673 cat >>confdefs.h <<\_ACEOF
17674 #define HAVE_GREGSET_T 1
17678 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17679 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17681 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17682 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17683 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17684 echo $ECHO_N "(cached) $ECHO_C" >&6
17686 cat >conftest.$ac_ext <<_ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h. */
17694 #include <sys/procfs.h>
17703 rm -f conftest.$ac_objext
17704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17705 (eval $ac_compile) 2>conftest.er1
17707 grep -v '^ *+' conftest.er1 >conftest.err
17709 cat conftest.err >&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } &&
17712 { ac_try='test -z "$ac_c_werror_flag"
17713 || test ! -s conftest.err'
17714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715 (eval $ac_try) 2>&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; } &&
17719 { ac_try='test -s conftest.$ac_objext'
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725 bfd_cv_have_sys_procfs_type_fpregset_t=yes
17727 echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17730 bfd_cv_have_sys_procfs_type_fpregset_t=no
17733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17736 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
17738 cat >>confdefs.h <<\_ACEOF
17739 #define HAVE_FPREGSET_T 1
17743 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17744 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
17746 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17747 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17748 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17749 echo $ECHO_N "(cached) $ECHO_C" >&6
17751 cat >conftest.$ac_ext <<_ACEOF
17754 cat confdefs.h >>conftest.$ac_ext
17755 cat >>conftest.$ac_ext <<_ACEOF
17756 /* end confdefs.h. */
17759 #include <sys/procfs.h>
17768 rm -f conftest.$ac_objext
17769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17770 (eval $ac_compile) 2>conftest.er1
17772 grep -v '^ *+' conftest.er1 >conftest.err
17774 cat conftest.err >&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); } &&
17777 { ac_try='test -z "$ac_c_werror_flag"
17778 || test ! -s conftest.err'
17779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780 (eval $ac_try) 2>&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; } &&
17784 { ac_try='test -s conftest.$ac_objext'
17785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17786 (eval $ac_try) 2>&5
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); }; }; then
17790 bfd_cv_have_sys_procfs_type_prgregset_t=yes
17792 echo "$as_me: failed program was:" >&5
17793 sed 's/^/| /' conftest.$ac_ext >&5
17795 bfd_cv_have_sys_procfs_type_prgregset_t=no
17798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17801 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
17803 cat >>confdefs.h <<\_ACEOF
17804 #define HAVE_PRGREGSET_T 1
17808 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17809 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
17811 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17812 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17813 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17814 echo $ECHO_N "(cached) $ECHO_C" >&6
17816 cat >conftest.$ac_ext <<_ACEOF
17819 cat confdefs.h >>conftest.$ac_ext
17820 cat >>conftest.$ac_ext <<_ACEOF
17821 /* end confdefs.h. */
17824 #include <sys/procfs.h>
17833 rm -f conftest.$ac_objext
17834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17835 (eval $ac_compile) 2>conftest.er1
17837 grep -v '^ *+' conftest.er1 >conftest.err
17839 cat conftest.err >&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); } &&
17842 { ac_try='test -z "$ac_c_werror_flag"
17843 || test ! -s conftest.err'
17844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845 (eval $ac_try) 2>&5
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; } &&
17849 { ac_try='test -s conftest.$ac_objext'
17850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851 (eval $ac_try) 2>&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; }; then
17855 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
17857 echo "$as_me: failed program was:" >&5
17858 sed 's/^/| /' conftest.$ac_ext >&5
17860 bfd_cv_have_sys_procfs_type_prfpregset_t=no
17863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17866 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17868 cat >>confdefs.h <<\_ACEOF
17869 #define HAVE_PRFPREGSET_T 1
17873 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17874 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
17876 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17877 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
17878 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17879 echo $ECHO_N "(cached) $ECHO_C" >&6
17881 cat >conftest.$ac_ext <<_ACEOF
17884 cat confdefs.h >>conftest.$ac_ext
17885 cat >>conftest.$ac_ext <<_ACEOF
17886 /* end confdefs.h. */
17889 #include <sys/procfs.h>
17898 rm -f conftest.$ac_objext
17899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17900 (eval $ac_compile) 2>conftest.er1
17902 grep -v '^ *+' conftest.er1 >conftest.err
17904 cat conftest.err >&5
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); } &&
17907 { ac_try='test -z "$ac_c_werror_flag"
17908 || test ! -s conftest.err'
17909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910 (eval $ac_try) 2>&5
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; } &&
17914 { ac_try='test -s conftest.$ac_objext'
17915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916 (eval $ac_try) 2>&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }; }; then
17920 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
17922 echo "$as_me: failed program was:" >&5
17923 sed 's/^/| /' conftest.$ac_ext >&5
17925 bfd_cv_have_sys_procfs_type_prgregset32_t=no
17928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17931 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
17933 cat >>confdefs.h <<\_ACEOF
17934 #define HAVE_PRGREGSET32_T 1
17938 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
17939 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
17941 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
17942 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
17943 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
17944 echo $ECHO_N "(cached) $ECHO_C" >&6
17946 cat >conftest.$ac_ext <<_ACEOF
17949 cat confdefs.h >>conftest.$ac_ext
17950 cat >>conftest.$ac_ext <<_ACEOF
17951 /* end confdefs.h. */
17954 #include <sys/procfs.h>
17958 prfpregset32_t avar
17963 rm -f conftest.$ac_objext
17964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17965 (eval $ac_compile) 2>conftest.er1
17967 grep -v '^ *+' conftest.er1 >conftest.err
17969 cat conftest.err >&5
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); } &&
17972 { ac_try='test -z "$ac_c_werror_flag"
17973 || test ! -s conftest.err'
17974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; } &&
17979 { ac_try='test -s conftest.$ac_objext'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; }; then
17985 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
17987 echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17990 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
17993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17996 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
17998 cat >>confdefs.h <<\_ACEOF
17999 #define HAVE_PRFPREGSET32_T 1
18003 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18004 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
18006 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18007 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18008 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18009 echo $ECHO_N "(cached) $ECHO_C" >&6
18011 cat >conftest.$ac_ext <<_ACEOF
18014 cat confdefs.h >>conftest.$ac_ext
18015 cat >>conftest.$ac_ext <<_ACEOF
18016 /* end confdefs.h. */
18019 #include <sys/procfs.h>
18028 rm -f conftest.$ac_objext
18029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18030 (eval $ac_compile) 2>conftest.er1
18032 grep -v '^ *+' conftest.er1 >conftest.err
18034 cat conftest.err >&5
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); } &&
18037 { ac_try='test -z "$ac_c_werror_flag"
18038 || test ! -s conftest.err'
18039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18040 (eval $ac_try) 2>&5
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); }; } &&
18044 { ac_try='test -s conftest.$ac_objext'
18045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046 (eval $ac_try) 2>&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; }; then
18050 bfd_cv_have_sys_procfs_type_lwpid_t=yes
18052 echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18055 bfd_cv_have_sys_procfs_type_lwpid_t=no
18058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18061 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
18063 cat >>confdefs.h <<\_ACEOF
18064 #define HAVE_LWPID_T 1
18068 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18069 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
18071 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18072 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18073 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18074 echo $ECHO_N "(cached) $ECHO_C" >&6
18076 cat >conftest.$ac_ext <<_ACEOF
18079 cat confdefs.h >>conftest.$ac_ext
18080 cat >>conftest.$ac_ext <<_ACEOF
18081 /* end confdefs.h. */
18084 #include <sys/procfs.h>
18093 rm -f conftest.$ac_objext
18094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18095 (eval $ac_compile) 2>conftest.er1
18097 grep -v '^ *+' conftest.er1 >conftest.err
18099 cat conftest.err >&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } &&
18102 { ac_try='test -z "$ac_c_werror_flag"
18103 || test ! -s conftest.err'
18104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18105 (eval $ac_try) 2>&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); }; } &&
18109 { ac_try='test -s conftest.$ac_objext'
18110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18111 (eval $ac_try) 2>&5
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); }; }; then
18115 bfd_cv_have_sys_procfs_type_psaddr_t=yes
18117 echo "$as_me: failed program was:" >&5
18118 sed 's/^/| /' conftest.$ac_ext >&5
18120 bfd_cv_have_sys_procfs_type_psaddr_t=no
18123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18126 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
18128 cat >>confdefs.h <<\_ACEOF
18129 #define HAVE_PSADDR_T 1
18133 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18134 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
18136 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18137 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18138 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18139 echo $ECHO_N "(cached) $ECHO_C" >&6
18141 cat >conftest.$ac_ext <<_ACEOF
18144 cat confdefs.h >>conftest.$ac_ext
18145 cat >>conftest.$ac_ext <<_ACEOF
18146 /* end confdefs.h. */
18149 #include <sys/procfs.h>
18158 rm -f conftest.$ac_objext
18159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18160 (eval $ac_compile) 2>conftest.er1
18162 grep -v '^ *+' conftest.er1 >conftest.err
18164 cat conftest.err >&5
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); } &&
18167 { ac_try='test -z "$ac_c_werror_flag"
18168 || test ! -s conftest.err'
18169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18170 (eval $ac_try) 2>&5
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); }; } &&
18174 { ac_try='test -s conftest.$ac_objext'
18175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18176 (eval $ac_try) 2>&5
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); }; }; then
18180 bfd_cv_have_sys_procfs_type_prsysent_t=yes
18182 echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18185 bfd_cv_have_sys_procfs_type_prsysent_t=no
18188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18191 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18193 cat >>confdefs.h <<\_ACEOF
18194 #define HAVE_PRSYSENT_T 1
18198 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18199 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18201 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18202 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18203 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18204 echo $ECHO_N "(cached) $ECHO_C" >&6
18206 cat >conftest.$ac_ext <<_ACEOF
18209 cat confdefs.h >>conftest.$ac_ext
18210 cat >>conftest.$ac_ext <<_ACEOF
18211 /* end confdefs.h. */
18214 #include <sys/procfs.h>
18223 rm -f conftest.$ac_objext
18224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18225 (eval $ac_compile) 2>conftest.er1
18227 grep -v '^ *+' conftest.er1 >conftest.err
18229 cat conftest.err >&5
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); } &&
18232 { ac_try='test -z "$ac_c_werror_flag"
18233 || test ! -s conftest.err'
18234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235 (eval $ac_try) 2>&5
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; } &&
18239 { ac_try='test -s conftest.$ac_objext'
18240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18241 (eval $ac_try) 2>&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); }; }; then
18245 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
18247 echo "$as_me: failed program was:" >&5
18248 sed 's/^/| /' conftest.$ac_ext >&5
18250 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18256 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18258 cat >>confdefs.h <<\_ACEOF
18259 #define HAVE_PR_SIGSET_T 1
18263 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18264 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18266 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18267 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18268 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18269 echo $ECHO_N "(cached) $ECHO_C" >&6
18271 cat >conftest.$ac_ext <<_ACEOF
18274 cat confdefs.h >>conftest.$ac_ext
18275 cat >>conftest.$ac_ext <<_ACEOF
18276 /* end confdefs.h. */
18279 #include <sys/procfs.h>
18283 pr_sigaction64_t avar
18288 rm -f conftest.$ac_objext
18289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18290 (eval $ac_compile) 2>conftest.er1
18292 grep -v '^ *+' conftest.er1 >conftest.err
18294 cat conftest.err >&5
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); } &&
18297 { ac_try='test -z "$ac_c_werror_flag"
18298 || test ! -s conftest.err'
18299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300 (eval $ac_try) 2>&5
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); }; } &&
18304 { ac_try='test -s conftest.$ac_objext'
18305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18306 (eval $ac_try) 2>&5
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); }; }; then
18310 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
18312 echo "$as_me: failed program was:" >&5
18313 sed 's/^/| /' conftest.$ac_ext >&5
18315 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18321 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18323 cat >>confdefs.h <<\_ACEOF
18324 #define HAVE_PR_SIGACTION64_T 1
18328 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18329 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18331 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18332 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18333 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18336 cat >conftest.$ac_ext <<_ACEOF
18339 cat confdefs.h >>conftest.$ac_ext
18340 cat >>conftest.$ac_ext <<_ACEOF
18341 /* end confdefs.h. */
18344 #include <sys/procfs.h>
18348 pr_siginfo64_t avar
18353 rm -f conftest.$ac_objext
18354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18355 (eval $ac_compile) 2>conftest.er1
18357 grep -v '^ *+' conftest.er1 >conftest.err
18359 cat conftest.err >&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } &&
18362 { ac_try='test -z "$ac_c_werror_flag"
18363 || test ! -s conftest.err'
18364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18365 (eval $ac_try) 2>&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); }; } &&
18369 { ac_try='test -s conftest.$ac_objext'
18370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371 (eval $ac_try) 2>&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); }; }; then
18375 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18377 echo "$as_me: failed program was:" >&5
18378 sed 's/^/| /' conftest.$ac_ext >&5
18380 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18386 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18388 cat >>confdefs.h <<\_ACEOF
18389 #define HAVE_PR_SIGINFO64_T 1
18393 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18394 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18400 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18401 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18402 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18403 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18404 echo $ECHO_N "(cached) $ECHO_C" >&6
18406 if test "$cross_compiling" = yes; then
18407 gdb_cv_prfpregset_t_broken=yes
18409 cat >conftest.$ac_ext <<_ACEOF
18412 cat confdefs.h >>conftest.$ac_ext
18413 cat >>conftest.$ac_ext <<_ACEOF
18414 /* end confdefs.h. */
18415 #include <sys/procfs.h>
18418 if (sizeof (prfpregset_t) == sizeof (void *))
18423 rm -f conftest$ac_exeext
18424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18425 (eval $ac_link) 2>&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18430 (eval $ac_try) 2>&5
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); }; }; then
18434 gdb_cv_prfpregset_t_broken=no
18436 echo "$as_me: program exited with status $ac_status" >&5
18437 echo "$as_me: failed program was:" >&5
18438 sed 's/^/| /' conftest.$ac_ext >&5
18440 ( exit $ac_status )
18441 gdb_cv_prfpregset_t_broken=yes
18443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18447 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18448 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18449 if test $gdb_cv_prfpregset_t_broken = yes; then
18450 cat >>confdefs.h <<\_ACEOF
18451 #define PRFPREGSET_T_BROKEN 1
18458 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18459 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18460 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18461 echo $ECHO_N "(cached) $ECHO_C" >&6
18463 cat >conftest.$ac_ext <<_ACEOF
18466 cat confdefs.h >>conftest.$ac_ext
18467 cat >>conftest.$ac_ext <<_ACEOF
18468 /* end confdefs.h. */
18469 #include <unistd.h>
18470 #include <sys/types.h>
18471 #include <sys/procfs.h>
18478 dummy = ioctl(0, PIOCSET, &dummy);
18484 rm -f conftest.$ac_objext
18485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18486 (eval $ac_compile) 2>conftest.er1
18488 grep -v '^ *+' conftest.er1 >conftest.err
18490 cat conftest.err >&5
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); } &&
18493 { ac_try='test -z "$ac_c_werror_flag"
18494 || test ! -s conftest.err'
18495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18496 (eval $ac_try) 2>&5
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); }; } &&
18500 { ac_try='test -s conftest.$ac_objext'
18501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18502 (eval $ac_try) 2>&5
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; }; then
18506 gdb_cv_have_procfs_piocset=yes
18508 echo "$as_me: failed program was:" >&5
18509 sed 's/^/| /' conftest.$ac_ext >&5
18511 gdb_cv_have_procfs_piocset=no
18513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18516 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18517 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18518 if test $gdb_cv_have_procfs_piocset = yes; then
18519 cat >>confdefs.h <<\_ACEOF
18520 #define HAVE_PROCFS_PIOCSET 1
18526 if test ${host} = ${target} ; then
18528 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18529 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18530 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18531 echo $ECHO_N "(cached) $ECHO_C" >&6
18533 cat >conftest.$ac_ext <<_ACEOF
18536 cat confdefs.h >>conftest.$ac_ext
18537 cat >>conftest.$ac_ext <<_ACEOF
18538 /* end confdefs.h. */
18543 struct link_map lm; (void) lm.l_addr;
18548 rm -f conftest.$ac_objext
18549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18550 (eval $ac_compile) 2>conftest.er1
18552 grep -v '^ *+' conftest.er1 >conftest.err
18554 cat conftest.err >&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } &&
18557 { ac_try='test -z "$ac_c_werror_flag"
18558 || test ! -s conftest.err'
18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560 (eval $ac_try) 2>&5
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; } &&
18564 { ac_try='test -s conftest.$ac_objext'
18565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18566 (eval $ac_try) 2>&5
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); }; }; then
18570 gdb_cv_have_struct_link_map_with_l_members=yes
18572 echo "$as_me: failed program was:" >&5
18573 sed 's/^/| /' conftest.$ac_ext >&5
18575 gdb_cv_have_struct_link_map_with_l_members=no
18577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18580 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18581 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18582 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18583 cat >>confdefs.h <<\_ACEOF
18584 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18590 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18591 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18592 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18593 echo $ECHO_N "(cached) $ECHO_C" >&6
18595 cat >conftest.$ac_ext <<_ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h. */
18601 #include <sys/types.h>
18606 struct link_map lm; (void) lm.lm_addr;
18611 rm -f conftest.$ac_objext
18612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18613 (eval $ac_compile) 2>conftest.er1
18615 grep -v '^ *+' conftest.er1 >conftest.err
18617 cat conftest.err >&5
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); } &&
18620 { ac_try='test -z "$ac_c_werror_flag"
18621 || test ! -s conftest.err'
18622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18623 (eval $ac_try) 2>&5
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); }; } &&
18627 { ac_try='test -s conftest.$ac_objext'
18628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; }; then
18633 gdb_cv_have_struct_link_map_with_lm_members=yes
18635 echo "$as_me: failed program was:" >&5
18636 sed 's/^/| /' conftest.$ac_ext >&5
18638 gdb_cv_have_struct_link_map_with_lm_members=no
18640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18643 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18644 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18645 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18646 cat >>confdefs.h <<\_ACEOF
18647 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18653 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18654 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18655 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18656 echo $ECHO_N "(cached) $ECHO_C" >&6
18658 cat >conftest.$ac_ext <<_ACEOF
18661 cat confdefs.h >>conftest.$ac_ext
18662 cat >>conftest.$ac_ext <<_ACEOF
18663 /* end confdefs.h. */
18664 #include <sys/types.h>
18665 #ifdef HAVE_NLIST_H
18672 struct so_map lm; (void) lm.som_addr;
18677 rm -f conftest.$ac_objext
18678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18679 (eval $ac_compile) 2>conftest.er1
18681 grep -v '^ *+' conftest.er1 >conftest.err
18683 cat conftest.err >&5
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } &&
18686 { ac_try='test -z "$ac_c_werror_flag"
18687 || test ! -s conftest.err'
18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; } &&
18693 { ac_try='test -s conftest.$ac_objext'
18694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695 (eval $ac_try) 2>&5
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; }; then
18699 gdb_cv_have_struct_so_map_with_som_members=yes
18701 echo "$as_me: failed program was:" >&5
18702 sed 's/^/| /' conftest.$ac_ext >&5
18704 gdb_cv_have_struct_so_map_with_som_members=no
18706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18709 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18710 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
18711 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
18712 cat >>confdefs.h <<\_ACEOF
18713 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
18719 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18720 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18721 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18722 echo $ECHO_N "(cached) $ECHO_C" >&6
18724 cat >conftest.$ac_ext <<_ACEOF
18727 cat confdefs.h >>conftest.$ac_ext
18728 cat >>conftest.$ac_ext <<_ACEOF
18729 /* end confdefs.h. */
18731 #include <sys/link.h>
18735 struct link_map32 l;
18740 rm -f conftest.$ac_objext
18741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18742 (eval $ac_compile) 2>conftest.er1
18744 grep -v '^ *+' conftest.er1 >conftest.err
18746 cat conftest.err >&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); } &&
18749 { ac_try='test -z "$ac_c_werror_flag"
18750 || test ! -s conftest.err'
18751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18752 (eval $ac_try) 2>&5
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); }; } &&
18756 { ac_try='test -s conftest.$ac_objext'
18757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18758 (eval $ac_try) 2>&5
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); }; }; then
18762 gdb_cv_have_struct_link_map32=yes
18764 echo "$as_me: failed program was:" >&5
18765 sed 's/^/| /' conftest.$ac_ext >&5
18767 gdb_cv_have_struct_link_map32=no
18769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18772 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18773 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
18774 if test $gdb_cv_have_struct_link_map32 = yes; then
18775 cat >>confdefs.h <<\_ACEOF
18776 #define HAVE_STRUCT_LINK_MAP32 1
18779 cat >>confdefs.h <<\_ACEOF
18780 #define _SYSCALL32 1
18786 # Check if the compiler supports the `long long' type.
18788 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18789 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18790 if test "${gdb_cv_c_long_long+set}" = set; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
18793 cat >conftest.$ac_ext <<_ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18799 extern long long foo;
18803 switch (foo & 2) { case 0: return 1; }
18808 rm -f conftest.$ac_objext
18809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18810 (eval $ac_compile) 2>conftest.er1
18812 grep -v '^ *+' conftest.er1 >conftest.err
18814 cat conftest.err >&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); } &&
18817 { ac_try='test -z "$ac_c_werror_flag"
18818 || test ! -s conftest.err'
18819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820 (eval $ac_try) 2>&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; } &&
18824 { ac_try='test -s conftest.$ac_objext'
18825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826 (eval $ac_try) 2>&5
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; }; then
18830 gdb_cv_c_long_long=yes
18832 echo "$as_me: failed program was:" >&5
18833 sed 's/^/| /' conftest.$ac_ext >&5
18835 gdb_cv_c_long_long=no
18837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18839 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18840 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
18841 if test $gdb_cv_c_long_long = yes; then
18843 cat >>confdefs.h <<\_ACEOF
18844 #define CC_HAS_LONG_LONG 1
18849 # Check if the compiler and runtime support printing long longs.
18851 echo "$as_me:$LINENO: checking for long long support in printf" >&5
18852 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18853 if test "${gdb_cv_printf_has_long_long+set}" = set; then
18854 echo $ECHO_N "(cached) $ECHO_C" >&6
18856 if test "$cross_compiling" = yes; then
18857 gdb_cv_printf_has_long_long=no
18859 cat >conftest.$ac_ext <<_ACEOF
18862 cat confdefs.h >>conftest.$ac_ext
18863 cat >>conftest.$ac_ext <<_ACEOF
18864 /* end confdefs.h. */
18865 $ac_includes_default
18871 l = (l << 16) + 0x0123;
18872 l = (l << 16) + 0x4567;
18873 l = (l << 16) + 0x89ab;
18874 l = (l << 16) + 0xcdef;
18875 sprintf (buf, "0x%016llx", l);
18876 return (strcmp ("0x0123456789abcdef", buf));
18881 rm -f conftest$ac_exeext
18882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18883 (eval $ac_link) 2>&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888 (eval $ac_try) 2>&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; }; then
18892 gdb_cv_printf_has_long_long=yes
18894 echo "$as_me: program exited with status $ac_status" >&5
18895 echo "$as_me: failed program was:" >&5
18896 sed 's/^/| /' conftest.$ac_ext >&5
18898 ( exit $ac_status )
18899 gdb_cv_printf_has_long_long=no
18901 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18904 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18905 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
18906 if test $gdb_cv_printf_has_long_long = yes; then
18908 cat >>confdefs.h <<\_ACEOF
18909 #define PRINTF_HAS_LONG_LONG 1
18914 # Check if the compiler supports the `long double' type. We can't use
18915 # AC_C_LONG_DOUBLE because that one does additional checks on the
18916 # constants defined in <float.h> that fail on some systems,
18917 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
18919 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
18920 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
18921 if test "${gdb_cv_c_long_double+set}" = set; then
18922 echo $ECHO_N "(cached) $ECHO_C" >&6
18924 cat >conftest.$ac_ext <<_ACEOF
18927 cat confdefs.h >>conftest.$ac_ext
18928 cat >>conftest.$ac_ext <<_ACEOF
18929 /* end confdefs.h. */
18932 rm -f conftest.$ac_objext
18933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18934 (eval $ac_compile) 2>conftest.er1
18936 grep -v '^ *+' conftest.er1 >conftest.err
18938 cat conftest.err >&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); } &&
18941 { ac_try='test -z "$ac_c_werror_flag"
18942 || test ! -s conftest.err'
18943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944 (eval $ac_try) 2>&5
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; } &&
18948 { ac_try='test -s conftest.$ac_objext'
18949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; }; then
18954 gdb_cv_c_long_double=yes
18956 echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18959 gdb_cv_c_long_double=no
18961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18963 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
18964 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
18965 if test $gdb_cv_c_long_double = yes; then
18967 cat >>confdefs.h <<\_ACEOF
18968 #define HAVE_LONG_DOUBLE 1
18973 # Check if the compiler and runtime support printing long doubles.
18975 echo "$as_me:$LINENO: checking for long double support in printf" >&5
18976 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
18977 if test "${gdb_cv_printf_has_long_double+set}" = set; then
18978 echo $ECHO_N "(cached) $ECHO_C" >&6
18980 if test "$cross_compiling" = yes; then
18981 gdb_cv_printf_has_long_double=no
18983 cat >conftest.$ac_ext <<_ACEOF
18986 cat confdefs.h >>conftest.$ac_ext
18987 cat >>conftest.$ac_ext <<_ACEOF
18988 /* end confdefs.h. */
18989 $ac_includes_default
18994 long double f = 3.141592653;
18995 sprintf (buf, "%Lg", f);
18996 return (strncmp ("3.14159", buf, 7));
19001 rm -f conftest$ac_exeext
19002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19003 (eval $ac_link) 2>&5
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19008 (eval $ac_try) 2>&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; }; then
19012 gdb_cv_printf_has_long_double=yes
19014 echo "$as_me: program exited with status $ac_status" >&5
19015 echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19018 ( exit $ac_status )
19019 gdb_cv_printf_has_long_double=no
19021 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19024 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19025 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
19026 if test $gdb_cv_printf_has_long_double = yes; then
19028 cat >>confdefs.h <<\_ACEOF
19029 #define PRINTF_HAS_LONG_DOUBLE 1
19034 # Check if the compiler and runtime support scanning long doubles.
19036 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19037 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19038 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19039 echo $ECHO_N "(cached) $ECHO_C" >&6
19041 if test "$cross_compiling" = yes; then
19042 gdb_cv_scanf_has_long_double=no
19044 cat >conftest.$ac_ext <<_ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h. */
19054 char *buf = "3.141592653";
19056 sscanf (buf, "%Lg", &f);
19057 return !(f > 3.14159 && f < 3.14160);
19062 rm -f conftest$ac_exeext
19063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19064 (eval $ac_link) 2>&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; }; then
19073 gdb_cv_scanf_has_long_double=yes
19075 echo "$as_me: program exited with status $ac_status" >&5
19076 echo "$as_me: failed program was:" >&5
19077 sed 's/^/| /' conftest.$ac_ext >&5
19079 ( exit $ac_status )
19080 gdb_cv_scanf_has_long_double=no
19082 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19085 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19086 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19087 if test $gdb_cv_scanf_has_long_double = yes; then
19089 cat >>confdefs.h <<\_ACEOF
19090 #define SCANF_HAS_LONG_DOUBLE 1
19097 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19098 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19099 if test "${gdb_cv_bigtoc+set}" = set; then
19100 echo $ECHO_N "(cached) $ECHO_C" >&6
19103 SAVE_LDFLAGS=$LDFLAGS
19106 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19107 *) gdb_cv_bigtoc=-bbigtoc ;;
19110 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
19111 cat >conftest.$ac_ext <<_ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h. */
19126 rm -f conftest.$ac_objext conftest$ac_exeext
19127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19128 (eval $ac_link) 2>conftest.er1
19130 grep -v '^ *+' conftest.er1 >conftest.err
19132 cat conftest.err >&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); } &&
19135 { ac_try='test -z "$ac_c_werror_flag"
19136 || test ! -s conftest.err'
19137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19138 (eval $ac_try) 2>&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; } &&
19142 { ac_try='test -s conftest$ac_exeext'
19143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144 (eval $ac_try) 2>&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; }; then
19150 echo "$as_me: failed program was:" >&5
19151 sed 's/^/| /' conftest.$ac_ext >&5
19155 rm -f conftest.err conftest.$ac_objext \
19156 conftest$ac_exeext conftest.$ac_ext
19157 LDFLAGS="${SAVE_LDFLAGS}"
19160 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19161 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19162 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19168 if test ${build} = ${host} -a ${host} = ${target} ; then
19171 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19172 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19173 if test -f /usr/include/dce/cma_config.h ; then
19174 if test "$GCC" = "yes" ; then
19175 echo "$as_me:$LINENO: result: yes" >&5
19176 echo "${ECHO_T}yes" >&6
19177 cat >>confdefs.h <<\_ACEOF
19178 #define HAVE_HPUX_THREAD_SUPPORT 1
19181 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
19182 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19184 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19185 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19188 echo "$as_me:$LINENO: result: no" >&5
19189 echo "${ECHO_T}no" >&6
19193 # See if thread_db library is around for Solaris thread debugging.
19194 # Note that we must explicitly test for version 1 of the library
19195 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19197 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19198 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19199 if test -f /usr/lib/libthread_db.so.1 ; then
19200 echo "$as_me:$LINENO: result: yes" >&5
19201 echo "${ECHO_T}yes" >&6
19202 cat >>confdefs.h <<\_ACEOF
19203 #define HAVE_THREAD_DB_LIB 1
19206 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
19207 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
19209 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19210 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19211 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19212 echo $ECHO_N "(cached) $ECHO_C" >&6
19214 ac_check_lib_save_LIBS=$LIBS
19216 cat >conftest.$ac_ext <<_ACEOF
19219 cat confdefs.h >>conftest.$ac_ext
19220 cat >>conftest.$ac_ext <<_ACEOF
19221 /* end confdefs.h. */
19223 /* Override any gcc2 internal prototype to avoid an error. */
19227 /* We use char because int might match the return type of a gcc2
19228 builtin and then its argument prototype would still apply. */
19238 rm -f conftest.$ac_objext conftest$ac_exeext
19239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19240 (eval $ac_link) 2>conftest.er1
19242 grep -v '^ *+' conftest.er1 >conftest.err
19244 cat conftest.err >&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); } &&
19247 { ac_try='test -z "$ac_c_werror_flag"
19248 || test ! -s conftest.err'
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; } &&
19254 { ac_try='test -s conftest$ac_exeext'
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
19260 ac_cv_lib_dl_dlopen=yes
19262 echo "$as_me: failed program was:" >&5
19263 sed 's/^/| /' conftest.$ac_ext >&5
19265 ac_cv_lib_dl_dlopen=no
19267 rm -f conftest.err conftest.$ac_objext \
19268 conftest$ac_exeext conftest.$ac_ext
19269 LIBS=$ac_check_lib_save_LIBS
19271 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19272 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19273 if test $ac_cv_lib_dl_dlopen = yes; then
19274 cat >>confdefs.h <<_ACEOF
19275 #define HAVE_LIBDL 1
19282 if test "$GCC" = "yes" ; then
19283 # The GNU linker requires the -export-dynamic option to make
19284 # all symbols visible in the dynamic symbol table.
19285 hold_ldflags=$LDFLAGS
19286 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19287 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19288 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
19289 cat >conftest.$ac_ext <<_ACEOF
19292 cat confdefs.h >>conftest.$ac_ext
19293 cat >>conftest.$ac_ext <<_ACEOF
19294 /* end confdefs.h. */
19304 rm -f conftest.$ac_objext conftest$ac_exeext
19305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19306 (eval $ac_link) 2>conftest.er1
19308 grep -v '^ *+' conftest.er1 >conftest.err
19310 cat conftest.err >&5
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); } &&
19313 { ac_try='test -z "$ac_c_werror_flag"
19314 || test ! -s conftest.err'
19315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316 (eval $ac_try) 2>&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; } &&
19320 { ac_try='test -s conftest$ac_exeext'
19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; }; then
19328 echo "$as_me: failed program was:" >&5
19329 sed 's/^/| /' conftest.$ac_ext >&5
19333 rm -f conftest.err conftest.$ac_objext \
19334 conftest$ac_exeext conftest.$ac_ext
19335 LDFLAGS=$hold_ldflags
19336 echo "$as_me:$LINENO: result: $found" >&5
19337 echo "${ECHO_T}$found" >&6
19338 if test $found = yes; then
19339 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19342 # Sun randomly tweaked the prototypes in <proc_service.h>
19344 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19345 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19346 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19347 echo $ECHO_N "(cached) $ECHO_C" >&6
19350 cat >conftest.$ac_ext <<_ACEOF
19353 cat confdefs.h >>conftest.$ac_ext
19354 cat >>conftest.$ac_ext <<_ACEOF
19355 /* end confdefs.h. */
19357 #include <proc_service.h>
19358 ps_err_e ps_pdwrite
19359 (struct ps_prochandle*, psaddr_t, const void*, size_t);
19369 rm -f conftest.$ac_objext
19370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19371 (eval $ac_compile) 2>conftest.er1
19373 grep -v '^ *+' conftest.er1 >conftest.err
19375 cat conftest.err >&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); } &&
19378 { ac_try='test -z "$ac_c_werror_flag"
19379 || test ! -s conftest.err'
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; } &&
19385 { ac_try='test -s conftest.$ac_objext'
19386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387 (eval $ac_try) 2>&5
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; }; then
19391 gdb_cv_proc_service_is_old=no
19393 echo "$as_me: failed program was:" >&5
19394 sed 's/^/| /' conftest.$ac_ext >&5
19396 gdb_cv_proc_service_is_old=yes
19398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19402 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19403 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19404 if test $gdb_cv_proc_service_is_old = yes; then
19405 cat >>confdefs.h <<\_ACEOF
19406 #define PROC_SERVICE_IS_OLD 1
19411 echo "$as_me:$LINENO: result: no" >&5
19412 echo "${ECHO_T}no" >&6
19416 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19417 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19418 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19419 echo $ECHO_N "(cached) $ECHO_C" >&6
19421 cat >conftest.$ac_ext <<_ACEOF
19424 cat confdefs.h >>conftest.$ac_ext
19425 cat >>conftest.$ac_ext <<_ACEOF
19426 /* end confdefs.h. */
19427 #include <sys/pthdebug.h>
19431 #ifndef PTHDB_VERSION_3
19438 rm -f conftest.$ac_objext
19439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19440 (eval $ac_compile) 2>conftest.er1
19442 grep -v '^ *+' conftest.er1 >conftest.err
19444 cat conftest.err >&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); } &&
19447 { ac_try='test -z "$ac_c_werror_flag"
19448 || test ! -s conftest.err'
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; } &&
19454 { ac_try='test -s conftest.$ac_objext'
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; }; then
19460 gdb_cv_have_aix_thread_debug=yes
19462 echo "$as_me: failed program was:" >&5
19463 sed 's/^/| /' conftest.$ac_ext >&5
19465 gdb_cv_have_aix_thread_debug=no
19467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19470 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19471 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19472 if test $gdb_cv_have_aix_thread_debug = yes; then
19473 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
19474 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
19475 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19482 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19483 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19484 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19485 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19486 echo $ECHO_N "(cached) $ECHO_C" >&6
19488 cat >conftest.$ac_ext <<_ACEOF
19491 cat confdefs.h >>conftest.$ac_ext
19492 cat >>conftest.$ac_ext <<_ACEOF
19493 /* end confdefs.h. */
19494 #include <thread_db.h>
19498 int i = TD_NOTALLOC;
19503 rm -f conftest.$ac_objext
19504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19505 (eval $ac_compile) 2>conftest.er1
19507 grep -v '^ *+' conftest.er1 >conftest.err
19509 cat conftest.err >&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } &&
19512 { ac_try='test -z "$ac_c_werror_flag"
19513 || test ! -s conftest.err'
19514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515 (eval $ac_try) 2>&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; } &&
19519 { ac_try='test -s conftest.$ac_objext'
19520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521 (eval $ac_try) 2>&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; }; then
19525 gdb_cv_thread_db_h_has_td_notalloc=yes
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19530 gdb_cv_thread_db_h_has_td_notalloc=no
19533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19536 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19537 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19539 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19541 cat >>confdefs.h <<\_ACEOF
19542 #define THREAD_DB_HAS_TD_NOTALLOC 1
19547 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19548 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19549 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19550 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19551 echo $ECHO_N "(cached) $ECHO_C" >&6
19553 cat >conftest.$ac_ext <<_ACEOF
19556 cat confdefs.h >>conftest.$ac_ext
19557 cat >>conftest.$ac_ext <<_ACEOF
19558 /* end confdefs.h. */
19559 #include <sys/syscall.h>
19563 int i = __NR_tkill;
19568 rm -f conftest.$ac_objext
19569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19570 (eval $ac_compile) 2>conftest.er1
19572 grep -v '^ *+' conftest.er1 >conftest.err
19574 cat conftest.err >&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); } &&
19577 { ac_try='test -z "$ac_c_werror_flag"
19578 || test ! -s conftest.err'
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); }; } &&
19584 { ac_try='test -s conftest.$ac_objext'
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; }; then
19590 gdb_cv_sys_syscall_h_has_tkill=yes
19592 echo "$as_me: failed program was:" >&5
19593 sed 's/^/| /' conftest.$ac_ext >&5
19595 gdb_cv_sys_syscall_h_has_tkill=no
19598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19601 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19602 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19604 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19606 cat >>confdefs.h <<\_ACEOF
19607 #define HAVE_TKILL_SYSCALL 1
19614 # Check whether --with-sysroot or --without-sysroot was given.
19615 if test "${with_sysroot+set}" = set; then
19616 withval="$with_sysroot"
19618 case ${with_sysroot} in
19619 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
19620 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19623 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19625 if test "x$exec_prefix" = xNONE; then
19626 if test "x$prefix" = xNONE; then
19627 test_prefix=/usr/local
19629 test_prefix=$prefix
19632 test_prefix=$exec_prefix
19634 case ${TARGET_SYSTEM_ROOT} in
19635 "${test_prefix}"|"${test_prefix}/"*|\
19636 '${exec_prefix}'|'${exec_prefix}/'*)
19637 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19638 TARGET_SYSTEM_ROOT_DEFINE="$t"
19644 TARGET_SYSTEM_ROOT=
19645 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19651 # NOTE: Don't add -Wall or -Wunused, they both include
19652 # -Wunused-parameter which reports bogus warnings.
19653 # NOTE: If you add to this list, remember to update
19654 # gdb/doc/gdbint.texinfo.
19655 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
19656 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \
19657 -Wunused-label -Wunused-function"
19658 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
19659 # -Wunused-function -Wunused-variable -Wunused-value
19660 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
19661 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
19662 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
19663 # -Woverloaded-virtual -Winline -Werror"
19664 # Check whether --enable-build-warnings or --disable-build-warnings was given.
19665 if test "${enable_build_warnings+set}" = set; then
19666 enableval="$enable_build_warnings"
19667 case "${enableval}" in
19669 no) build_warnings="-w";;
19670 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19671 build_warnings="${build_warnings} ${t}";;
19672 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19673 build_warnings="${t} ${build_warnings}";;
19674 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19676 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19677 echo "Setting compiler warning flags = $build_warnings" 6>&1
19679 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
19680 if test "${enable_gdb_build_warnings+set}" = set; then
19681 enableval="$enable_gdb_build_warnings"
19682 case "${enableval}" in
19684 no) build_warnings="-w";;
19685 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19686 build_warnings="${build_warnings} ${t}";;
19687 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19688 build_warnings="${t} ${build_warnings}";;
19689 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19691 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19692 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
19696 if test "x${build_warnings}" != x -a "x$GCC" = xyes
19698 echo "$as_me:$LINENO: checking compiler warning flags" >&5
19699 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
19700 # Separate out the -Werror flag as some files just cannot be
19701 # compiled with it enabled.
19702 for w in ${build_warnings}; do
19704 -Werr*) WERROR_CFLAGS=-Werror ;;
19705 *) # Check that GCC accepts it
19706 saved_CFLAGS="$CFLAGS"
19707 CFLAGS="$CFLAGS $w"
19708 cat >conftest.$ac_ext <<_ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h. */
19723 rm -f conftest.$ac_objext
19724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19725 (eval $ac_compile) 2>conftest.er1
19727 grep -v '^ *+' conftest.er1 >conftest.err
19729 cat conftest.err >&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } &&
19732 { ac_try='test -z "$ac_c_werror_flag"
19733 || test ! -s conftest.err'
19734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19735 (eval $ac_try) 2>&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); }; } &&
19739 { ac_try='test -s conftest.$ac_objext'
19740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741 (eval $ac_try) 2>&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); }; }; then
19745 WARN_CFLAGS="${WARN_CFLAGS} $w"
19747 echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19752 CFLAGS="$saved_CFLAGS"
19755 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
19756 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
19761 # In the Cygwin environment, we need some additional flags.
19762 echo "$as_me:$LINENO: checking for cygwin" >&5
19763 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
19764 if test "${gdb_cv_os_cygwin+set}" = set; then
19765 echo $ECHO_N "(cached) $ECHO_C" >&6
19767 cat >conftest.$ac_ext <<_ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h. */
19774 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
19778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19779 $EGREP "lose" >/dev/null 2>&1; then
19780 gdb_cv_os_cygwin=yes
19782 gdb_cv_os_cygwin=no
19787 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
19788 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
19791 SER_HARDWIRE="ser-unix.o ser-pipe.o ser-tcp.o"
19793 *go32* ) SER_HARDWIRE=ser-go32.o ;;
19794 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
19798 # libreadline needs libuser32.a in a cygwin environment
19800 if test x$gdb_cv_os_cygwin = xyes; then
19801 WIN32LIBS="-luser32"
19802 case "${target}" in
19803 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
19809 LIBGUI="../libgui/src/libgui.a"
19810 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
19828 if test "${enable_gdbtk}" = "yes"; then
19830 # Gdbtk must have an absolute path to srcdir in order to run
19831 # properly when not installed.
19834 GDBTK_SRC_DIR=`pwd`
19839 # Ok, lets find the tcl configuration
19840 # First, look for one uninstalled.
19841 # the alternative search directory is invoked by --with-tclconfig
19844 if test x"${no_tcl}" = x ; then
19845 # we reset no_tcl in case something fails here
19848 # Check whether --with-tclconfig or --without-tclconfig was given.
19849 if test "${with_tclconfig+set}" = set; then
19850 withval="$with_tclconfig"
19851 with_tclconfig=${withval}
19853 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
19854 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
19855 if test "${ac_cv_c_tclconfig+set}" = set; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19860 # First check to see if --with-tclconfig was specified.
19861 if test x"${with_tclconfig}" != x ; then
19862 if test -f "${with_tclconfig}/tclConfig.sh" ; then
19863 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
19865 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
19866 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
19867 { (exit 1); exit 1; }; }
19871 # then check for a private Tcl installation
19872 if test x"${ac_cv_c_tclconfig}" = x ; then
19875 `ls -dr ../tcl[7-9]* 2>/dev/null` \
19877 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
19879 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
19880 if test -f "$i/${configdir}/tclConfig.sh" ; then
19881 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
19886 # check in a few common install locations
19887 if test x"${ac_cv_c_tclconfig}" = x ; then
19888 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
19889 if test -f "$i/tclConfig.sh" ; then
19890 ac_cv_c_tclconfig=`(cd $i; pwd)`
19895 # check in a few other private locations
19896 if test x"${ac_cv_c_tclconfig}" = x ; then
19899 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
19900 if test -f "$i/${configdir}/tclConfig.sh" ; then
19901 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
19909 if test x"${ac_cv_c_tclconfig}" = x ; then
19910 TCLCONFIG="# no Tcl configs found"
19911 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
19912 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
19915 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
19916 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
19917 echo "${ECHO_T}found $TCLCONFIG" >&6
19921 if test -z "${no_tcl}"; then
19952 # Ok, lets find the tk configuration
19953 # First, look for one uninstalled.
19954 # the alternative search directory is invoked by --with-tkconfig
19957 if test x"${no_tk}" = x ; then
19958 # we reset no_tk in case something fails here
19961 # Check whether --with-tkconfig or --without-tkconfig was given.
19962 if test "${with_tkconfig+set}" = set; then
19963 withval="$with_tkconfig"
19964 with_tkconfig=${withval}
19966 echo "$as_me:$LINENO: checking for Tk configuration" >&5
19967 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
19968 if test "${ac_cv_c_tkconfig+set}" = set; then
19969 echo $ECHO_N "(cached) $ECHO_C" >&6
19973 # First check to see if --with-tkconfig was specified.
19974 if test x"${with_tkconfig}" != x ; then
19975 if test -f "${with_tkconfig}/tkConfig.sh" ; then
19976 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
19978 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
19979 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
19980 { (exit 1); exit 1; }; }
19984 # then check for a private Tk library
19985 if test x"${ac_cv_c_tkconfig}" = x ; then
19988 `ls -dr ../tk[4-9]* 2>/dev/null` \
19990 `ls -dr ../../tk[4-9]* 2>/dev/null` \
19992 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
19993 if test -f "$i/${configdir}/tkConfig.sh" ; then
19994 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
19999 # check in a few common install locations
20000 if test x"${ac_cv_c_tkconfig}" = x ; then
20001 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20002 if test -f "$i/tkConfig.sh" ; then
20003 ac_cv_c_tkconfig=`(cd $i; pwd)`
20008 # check in a few other private locations
20009 if test x"${ac_cv_c_tkconfig}" = x ; then
20012 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20013 if test -f "$i/${configdir}/tkConfig.sh" ; then
20014 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20022 if test x"${ac_cv_c_tkconfig}" = x ; then
20023 TKCONFIG="# no Tk configs found"
20024 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20025 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20028 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
20029 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20030 echo "${ECHO_T}found $TKCONFIG" >&6
20036 # now look for Tcl library stuff
20038 tcldir="../tcl/${configdir}/"
20040 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20042 # If $no_tk is nonempty, then we can't do Tk, and there is no
20043 # point to doing Tcl.
20044 if test -z "${no_tk}"; then
20046 if test -f "$TKCONFIG" ; then
20064 # Ok, lets find the tcl source trees so we can use the headers
20065 # Warning: transition of version 9 to 10 will break this algorithm
20066 # because 10 sorts before 9. We also look for just tcl. We have to
20067 # be careful that we don't match stuff like tclX by accident.
20068 # the alternative search directory is involked by --with-tclinclude
20072 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20073 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20075 # Check whether --with-tclinclude or --without-tclinclude was given.
20076 if test "${with_tclinclude+set}" = set; then
20077 withval="$with_tclinclude"
20078 with_tclinclude=${withval}
20080 if test "${ac_cv_c_tclh+set}" = set; then
20081 echo $ECHO_N "(cached) $ECHO_C" >&6
20084 # first check to see if --with-tclinclude was specified
20085 if test x"${with_tclinclude}" != x ; then
20086 if test -f ${with_tclinclude}/tclInt.h ; then
20087 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20088 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20089 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20091 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20092 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20093 { (exit 1); exit 1; }; }
20097 # next check if it came with Tcl configuration file
20098 if test x"${ac_cv_c_tclconfig}" = x ; then
20099 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20100 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20104 # next check in private source directory
20106 # since ls returns lowest version numbers first, reverse its output
20107 if test x"${ac_cv_c_tclh}" = x ; then
20110 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20111 ${srcdir}/../../tcl \
20112 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20113 ${srcdir}/../../../tcl \
20114 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20115 if test -f $i/generic/tclInt.h ; then
20116 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20121 # finally check in a few common install locations
20123 # since ls returns lowest version numbers first, reverse its output
20124 if test x"${ac_cv_c_tclh}" = x ; then
20126 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20127 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20128 /usr/local/src/tcl \
20129 /usr/local/lib/tcl \
20130 ${prefix}/include ; do
20131 if test -f $i/generic/tclInt.h ; then
20132 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20137 # see if one is installed
20138 if test x"${ac_cv_c_tclh}" = x ; then
20139 if test "${ac_cv_header_tclInt_h+set}" = set; then
20140 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20141 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20142 if test "${ac_cv_header_tclInt_h+set}" = set; then
20143 echo $ECHO_N "(cached) $ECHO_C" >&6
20145 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20146 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20148 # Is the header compilable?
20149 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20150 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20151 cat >conftest.$ac_ext <<_ACEOF
20154 cat confdefs.h >>conftest.$ac_ext
20155 cat >>conftest.$ac_ext <<_ACEOF
20156 /* end confdefs.h. */
20157 $ac_includes_default
20158 #include <tclInt.h>
20160 rm -f conftest.$ac_objext
20161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20162 (eval $ac_compile) 2>conftest.er1
20164 grep -v '^ *+' conftest.er1 >conftest.err
20166 cat conftest.err >&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); } &&
20169 { ac_try='test -z "$ac_c_werror_flag"
20170 || test ! -s conftest.err'
20171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20172 (eval $ac_try) 2>&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); }; } &&
20176 { ac_try='test -s conftest.$ac_objext'
20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178 (eval $ac_try) 2>&5
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; }; then
20182 ac_header_compiler=yes
20184 echo "$as_me: failed program was:" >&5
20185 sed 's/^/| /' conftest.$ac_ext >&5
20187 ac_header_compiler=no
20189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20191 echo "${ECHO_T}$ac_header_compiler" >&6
20193 # Is the header present?
20194 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20195 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20196 cat >conftest.$ac_ext <<_ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h. */
20202 #include <tclInt.h>
20204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20207 grep -v '^ *+' conftest.er1 >conftest.err
20209 cat conftest.err >&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); } >/dev/null; then
20212 if test -s conftest.err; then
20213 ac_cpp_err=$ac_c_preproc_warn_flag
20214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20221 if test -z "$ac_cpp_err"; then
20222 ac_header_preproc=yes
20224 echo "$as_me: failed program was:" >&5
20225 sed 's/^/| /' conftest.$ac_ext >&5
20227 ac_header_preproc=no
20229 rm -f conftest.err conftest.$ac_ext
20230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20231 echo "${ECHO_T}$ac_header_preproc" >&6
20233 # So? What about this header?
20234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20236 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20237 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20238 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20239 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20240 ac_header_preproc=yes
20243 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20244 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20245 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
20246 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
20247 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20248 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20249 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
20250 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20251 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20252 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20253 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20254 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20257 ## ------------------------------------------ ##
20258 ## Report this to the AC_PACKAGE_NAME lists. ##
20259 ## ------------------------------------------ ##
20262 sed "s/^/$as_me: WARNING: /" >&2
20265 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20266 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20267 if test "${ac_cv_header_tclInt_h+set}" = set; then
20268 echo $ECHO_N "(cached) $ECHO_C" >&6
20270 ac_cv_header_tclInt_h=$ac_header_preproc
20272 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20273 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20276 if test $ac_cv_header_tclInt_h = yes; then
20277 ac_cv_c_tclh=installed
20287 if test x"${ac_cv_c_tclh}" = x ; then
20288 TCLHDIR="# no Tcl private headers found"
20289 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20290 echo "$as_me: error: Can't find Tcl private headers" >&2;}
20291 { (exit 1); exit 1; }; }
20293 if test x"${ac_cv_c_tclh}" != x ; then
20295 if test x"${ac_cv_c_tclh}" = x"installed" ; then
20296 echo "$as_me:$LINENO: result: is installed" >&5
20297 echo "${ECHO_T}is installed" >&6
20300 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20301 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
20302 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20303 TCLHDIR="-I${ac_cv_c_tclh}"
20311 # Ok, lets find the tk source trees so we can use the headers
20312 # If the directory (presumably symlink) named "tk" exists, use that one
20313 # in preference to any others. Same logic is used when choosing library
20314 # and again with Tcl. The search order is the best place to look first, then in
20315 # decreasing significance. The loop breaks if the trigger file is found.
20316 # Note the gross little conversion here of srcdir by cd'ing to the found
20317 # directory. This converts the path from a relative to an absolute, so
20318 # recursive cache variables for the path will work right. We check all
20319 # the possible paths in one loop rather than many seperate loops to speed
20321 # the alternative search directory is involked by --with-tkinclude
20324 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20325 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20327 # Check whether --with-tkinclude or --without-tkinclude was given.
20328 if test "${with_tkinclude+set}" = set; then
20329 withval="$with_tkinclude"
20330 with_tkinclude=${withval}
20332 if test "${ac_cv_c_tkh+set}" = set; then
20333 echo $ECHO_N "(cached) $ECHO_C" >&6
20336 # first check to see if --with-tkinclude was specified
20337 if test x"${with_tkinclude}" != x ; then
20338 if test -f ${with_tkinclude}/tk.h ; then
20339 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20340 elif test -f ${with_tkinclude}/generic/tk.h ; then
20341 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20343 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20344 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20345 { (exit 1); exit 1; }; }
20349 # next check if it came with Tk configuration file
20350 if test x"${ac_cv_c_tkconfig}" = x ; then
20351 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
20352 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
20356 # next check in private source directory
20358 # since ls returns lowest version numbers first, reverse its output
20359 if test x"${ac_cv_c_tkh}" = x ; then
20362 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
20363 ${srcdir}/../../tk \
20364 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
20365 ${srcdir}/../../../tk \
20366 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
20367 if test -f $i/generic/tk.h ; then
20368 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20373 # finally check in a few common install locations
20375 # since ls returns lowest version numbers first, reverse its output
20376 if test x"${ac_cv_c_tkh}" = x ; then
20378 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20379 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20380 /usr/local/src/tk \
20381 /usr/local/lib/tk \
20382 ${prefix}/include ; do
20383 if test -f $i/generic/tk.h ; then
20384 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20389 # see if one is installed
20390 if test x"${ac_cv_c_tkh}" = x ; then
20391 if test "${ac_cv_header_tk_h+set}" = set; then
20392 echo "$as_me:$LINENO: checking for tk.h" >&5
20393 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20394 if test "${ac_cv_header_tk_h+set}" = set; then
20395 echo $ECHO_N "(cached) $ECHO_C" >&6
20397 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20398 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20400 # Is the header compilable?
20401 echo "$as_me:$LINENO: checking tk.h usability" >&5
20402 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
20403 cat >conftest.$ac_ext <<_ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20409 $ac_includes_default
20412 rm -f conftest.$ac_objext
20413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20414 (eval $ac_compile) 2>conftest.er1
20416 grep -v '^ *+' conftest.er1 >conftest.err
20418 cat conftest.err >&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); } &&
20421 { ac_try='test -z "$ac_c_werror_flag"
20422 || test ! -s conftest.err'
20423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20424 (eval $ac_try) 2>&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); }; } &&
20428 { ac_try='test -s conftest.$ac_objext'
20429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430 (eval $ac_try) 2>&5
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); }; }; then
20434 ac_header_compiler=yes
20436 echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20439 ac_header_compiler=no
20441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20443 echo "${ECHO_T}$ac_header_compiler" >&6
20445 # Is the header present?
20446 echo "$as_me:$LINENO: checking tk.h presence" >&5
20447 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
20448 cat >conftest.$ac_ext <<_ACEOF
20451 cat confdefs.h >>conftest.$ac_ext
20452 cat >>conftest.$ac_ext <<_ACEOF
20453 /* end confdefs.h. */
20456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20459 grep -v '^ *+' conftest.er1 >conftest.err
20461 cat conftest.err >&5
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); } >/dev/null; then
20464 if test -s conftest.err; then
20465 ac_cpp_err=$ac_c_preproc_warn_flag
20466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20473 if test -z "$ac_cpp_err"; then
20474 ac_header_preproc=yes
20476 echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20479 ac_header_preproc=no
20481 rm -f conftest.err conftest.$ac_ext
20482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20483 echo "${ECHO_T}$ac_header_preproc" >&6
20485 # So? What about this header?
20486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20488 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20489 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20490 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20491 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20492 ac_header_preproc=yes
20495 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20496 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20497 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
20498 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
20499 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20500 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
20501 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
20502 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
20503 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
20504 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
20505 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
20506 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
20509 ## ------------------------------------------ ##
20510 ## Report this to the AC_PACKAGE_NAME lists. ##
20511 ## ------------------------------------------ ##
20514 sed "s/^/$as_me: WARNING: /" >&2
20517 echo "$as_me:$LINENO: checking for tk.h" >&5
20518 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20519 if test "${ac_cv_header_tk_h+set}" = set; then
20520 echo $ECHO_N "(cached) $ECHO_C" >&6
20522 ac_cv_header_tk_h=$ac_header_preproc
20524 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20525 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20528 if test $ac_cv_header_tk_h = yes; then
20529 ac_cv_c_tkh=installed
20539 if test x"${ac_cv_c_tkh}" != x ; then
20541 if test x"${ac_cv_c_tkh}" = x"installed" ; then
20542 echo "$as_me:$LINENO: result: is installed" >&5
20543 echo "${ECHO_T}is installed" >&6
20546 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
20547 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
20548 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
20549 TKHDIR="-I${ac_cv_c_tkh}"
20552 TKHDIR="# no Tk directory found"
20553 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
20554 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
20561 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
20562 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
20563 if test x"${ac_cv_c_itclh}" = x ; then
20564 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
20565 if test -f $i/generic/itcl.h ; then
20566 ac_cv_c_itclh=`(cd $i/generic; pwd)`
20571 if test x"${ac_cv_c_itclh}" = x ; then
20572 ITCLHDIR="# no Itcl private headers found"
20573 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
20574 echo "$as_me: error: Can't find Itcl private headers" >&2;}
20575 { (exit 1); exit 1; }; }
20577 if test x"${ac_cv_c_itclh}" != x ; then
20578 ITCLHDIR="-I${ac_cv_c_itclh}"
20580 # should always be here
20581 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
20586 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
20587 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
20588 if test x"${ac_cv_c_itkh}" = x ; then
20589 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
20590 if test -f $i/generic/itk.h ; then
20591 ac_cv_c_itkh=`(cd $i/generic; pwd)`
20596 if test x"${ac_cv_c_itkh}" = x ; then
20597 ITKHDIR="# no Itk private headers found"
20598 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
20599 echo "$as_me: error: Can't find Itk private headers" >&2;}
20600 { (exit 1); exit 1; }; }
20602 if test x"${ac_cv_c_itkh}" != x ; then
20603 ITKHDIR="-I${ac_cv_c_itkh}"
20605 # should always be here
20606 # ITKLIB="../itcl/itk/unix/libitk.a"
20612 # now look for Tk library stuff
20614 tkdir="../tk/${configdir}/"
20616 TK_DEPS="${tkdir}${TK_LIB_FILE}"
20618 # now look for Itcl library stuff
20622 # Ok, lets find the itcl configuration
20623 # First, look for one uninstalled.
20624 # the alternative search directory is invoked by --with-itclconfig
20627 if test x"${no_itcl}" = x ; then
20628 # we reset no_itcl in case something fails here
20631 # Check whether --with-itclconfig or --without-itclconfig was given.
20632 if test "${with_itclconfig+set}" = set; then
20633 withval="$with_itclconfig"
20634 with_itclconfig=${withval}
20636 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
20637 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
20638 if test "${ac_cv_c_itclconfig+set}" = set; then
20639 echo $ECHO_N "(cached) $ECHO_C" >&6
20643 # First check to see if --with-itclconfig was specified.
20644 if test x"${with_itclconfig}" != x ; then
20645 if test -f "${with_itclconfig}/itclConfig.sh" ; then
20646 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
20648 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
20649 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
20650 { (exit 1); exit 1; }; }
20654 # then check for a private Itcl library
20655 if test x"${ac_cv_c_itclconfig}" = x ; then
20658 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
20660 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
20662 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
20663 if test -f "$i/itclConfig.sh" ; then
20664 ac_cv_c_itclconfig=`(cd $i; pwd)`
20669 # check in a few common install locations
20670 if test x"${ac_cv_c_itclconfig}" = x ; then
20671 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20672 if test -f "$i/itclConfig.sh" ; then
20673 ac_cv_c_itclconfig=`(cd $i; pwd)`
20678 # check in a few other private locations
20679 if test x"${ac_cv_c_itclconfig}" = x ; then
20681 ${srcdir}/../itcl/itcl \
20682 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
20683 if test -f "$i/itclConfig.sh" ; then
20684 ac_cv_c_itclconfig=`(cd $i; pwd)`
20692 if test x"${ac_cv_c_itclconfig}" = x ; then
20693 ITCLCONFIG="# no Itcl configs found"
20694 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
20695 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
20698 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
20699 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
20700 echo "${ECHO_T}found $ITCLCONFIG" >&6
20704 if test -z "${no_itcl}"; then
20706 if test -f "$ITCLCONFIG" ; then
20721 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
20722 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
20726 # now look for Itk library stuff
20729 # Ok, lets find the itk configuration
20730 # First, look for one uninstalled.
20731 # the alternative search directory is invoked by --with-itkconfig
20734 if test x"${no_itk}" = x ; then
20735 # we reset no_itk in case something fails here
20738 # Check whether --with-itkconfig or --without-itkconfig was given.
20739 if test "${with_itkconfig+set}" = set; then
20740 withval="$with_itkconfig"
20741 with_itkconfig=${withval}
20743 echo "$as_me:$LINENO: checking for Itk configuration" >&5
20744 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
20745 if test "${ac_cv_c_itkconfig+set}" = set; then
20746 echo $ECHO_N "(cached) $ECHO_C" >&6
20750 # First check to see if --with-itkconfig was specified.
20751 if test x"${with_itkconfig}" != x ; then
20752 if test -f "${with_itkconfig}/itkConfig.sh" ; then
20753 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
20755 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
20756 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
20757 { (exit 1); exit 1; }; }
20761 # then check for a private Itk library
20762 if test x"${ac_cv_c_itkconfig}" = x ; then
20765 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
20767 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
20769 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
20770 if test -f "$i/itkConfig.sh" ; then
20771 ac_cv_c_itkconfig=`(cd $i; pwd)`
20776 # check in a few common install locations
20777 if test x"${ac_cv_c_itkconfig}" = x ; then
20778 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20779 if test -f "$i/itkConfig.sh" ; then
20780 ac_cv_c_itkconfig=`(cd $i; pwd)`
20785 # check in a few other private locations
20786 if test x"${ac_cv_c_itkconfig}" = x ; then
20788 ${srcdir}/../itcl/itk \
20789 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
20790 if test -f "$i/itkConfig.sh" ; then
20791 ac_cv_c_itkconfig=`(cd $i; pwd)`
20799 if test x"${ac_cv_c_itkconfig}" = x ; then
20800 ITKCONFIG="# no Itk configs found"
20801 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
20802 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
20805 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
20806 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
20807 echo "${ECHO_T}found $ITKCONFIG" >&6
20812 if test -z "${no_itcl}"; then
20814 if test -f "$ITKCONFIG" ; then
20829 ITKLIB="${ITK_BUILD_LIB_SPEC}"
20830 ITK_DEPS="${ITK_LIB_FULL_PATH}"
20833 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
20834 # Tcl/Tk 8.1 require -fwritable strings. I don't
20835 # know whether 8.2 will or not, but I bet it will.
20836 # I don't have to worry about 7.x since we don't support it.
20838 if test "$GCC" = "yes"; then
20839 if test "$TCL_VERSION" != "8.0" ; then
20840 GDBTK_CFLAGS="-fwritable-strings"
20844 # Include some libraries that Tcl and Tk want.
20845 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
20846 # Yes, the ordering seems wrong here. But it isn't.
20847 # TK_LIBS is the list of libraries that need to be linked
20848 # after Tcl/Tk. Note that this isn't put into LIBS. If it
20849 # were in LIBS then any link tests after this point would
20850 # try to include things like `$(LIBGUI)', which wouldn't work.
20851 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
20853 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20854 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20855 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
20856 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
20857 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
20858 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
20859 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
20861 if test x$gdb_cv_os_cygwin = xyes; then
20862 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20863 WIN32LDAPP="-Wl,--subsystem,console"
20864 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
20871 subdirs="$subdirs gdbtk"
20888 echo "$as_me:$LINENO: checking for X" >&5
20889 echo $ECHO_N "checking for X... $ECHO_C" >&6
20892 # Check whether --with-x or --without-x was given.
20893 if test "${with_x+set}" = set; then
20897 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20898 if test "x$with_x" = xno; then
20899 # The user explicitly disabled X.
20902 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20903 # Both variables are already set.
20906 if test "${ac_cv_have_x+set}" = set; then
20907 echo $ECHO_N "(cached) $ECHO_C" >&6
20909 # One or both of the vars are not set, and there is no cached value.
20910 ac_x_includes=no ac_x_libraries=no
20911 rm -fr conftest.dir
20912 if mkdir conftest.dir; then
20914 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20915 cat >Imakefile <<'_ACEOF'
20917 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20919 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20920 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20921 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20922 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20923 for ac_extension in a so sl; do
20924 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20925 test -f $ac_im_libdir/libX11.$ac_extension; then
20926 ac_im_usrlibdir=$ac_im_libdir; break
20929 # Screen out bogus values from the imake configuration. They are
20930 # bogus both because they are the default anyway, and because
20931 # using them would break gcc on systems where it needs fixed includes.
20932 case $ac_im_incroot in
20934 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20936 case $ac_im_usrlibdir in
20937 /usr/lib | /lib) ;;
20938 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20942 rm -fr conftest.dir
20945 # Standard set of common directories for X headers.
20946 # Check X11 before X11Rn because it is often a symlink to the current release.
20958 /usr/local/X11/include
20959 /usr/local/X11R6/include
20960 /usr/local/X11R5/include
20961 /usr/local/X11R4/include
20963 /usr/local/include/X11
20964 /usr/local/include/X11R6
20965 /usr/local/include/X11R5
20966 /usr/local/include/X11R4
20970 /usr/XFree86/include/X11
20974 /usr/unsupported/include
20975 /usr/athena/include
20976 /usr/local/x11r5/include
20977 /usr/lpp/Xamples/include
20979 /usr/openwin/include
20980 /usr/openwin/share/include'
20982 if test "$ac_x_includes" = no; then
20983 # Guess where to find include files, by looking for Intrinsic.h.
20984 # First, try using that file with no special directory specified.
20985 cat >conftest.$ac_ext <<_ACEOF
20988 cat confdefs.h >>conftest.$ac_ext
20989 cat >>conftest.$ac_ext <<_ACEOF
20990 /* end confdefs.h. */
20991 #include <X11/Intrinsic.h>
20993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20996 grep -v '^ *+' conftest.er1 >conftest.err
20998 cat conftest.err >&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); } >/dev/null; then
21001 if test -s conftest.err; then
21002 ac_cpp_err=$ac_c_preproc_warn_flag
21003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21010 if test -z "$ac_cpp_err"; then
21011 # We can compile using X headers with no special include directory.
21014 echo "$as_me: failed program was:" >&5
21015 sed 's/^/| /' conftest.$ac_ext >&5
21017 for ac_dir in $ac_x_header_dirs; do
21018 if test -r "$ac_dir/X11/Intrinsic.h"; then
21019 ac_x_includes=$ac_dir
21024 rm -f conftest.err conftest.$ac_ext
21025 fi # $ac_x_includes = no
21027 if test "$ac_x_libraries" = no; then
21028 # Check for the libraries.
21029 # See if we find them without any special options.
21030 # Don't add to $LIBS permanently.
21033 cat >conftest.$ac_ext <<_ACEOF
21036 cat confdefs.h >>conftest.$ac_ext
21037 cat >>conftest.$ac_ext <<_ACEOF
21038 /* end confdefs.h. */
21039 #include <X11/Intrinsic.h>
21048 rm -f conftest.$ac_objext conftest$ac_exeext
21049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21050 (eval $ac_link) 2>conftest.er1
21052 grep -v '^ *+' conftest.er1 >conftest.err
21054 cat conftest.err >&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); } &&
21057 { ac_try='test -z "$ac_c_werror_flag"
21058 || test ! -s conftest.err'
21059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21060 (eval $ac_try) 2>&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); }; } &&
21064 { ac_try='test -s conftest$ac_exeext'
21065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066 (eval $ac_try) 2>&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); }; }; then
21071 # We can link X programs with no special library path.
21074 echo "$as_me: failed program was:" >&5
21075 sed 's/^/| /' conftest.$ac_ext >&5
21078 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21080 # Don't even attempt the hair of trying to link an X program!
21081 for ac_extension in a so sl; do
21082 if test -r $ac_dir/libXt.$ac_extension; then
21083 ac_x_libraries=$ac_dir
21089 rm -f conftest.err conftest.$ac_objext \
21090 conftest$ac_exeext conftest.$ac_ext
21091 fi # $ac_x_libraries = no
21093 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21094 # Didn't find X anywhere. Cache the known absence of X.
21095 ac_cv_have_x="have_x=no"
21097 # Record where we found X for the cache.
21098 ac_cv_have_x="have_x=yes \
21099 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21104 eval "$ac_cv_have_x"
21107 if test "$have_x" != yes; then
21108 echo "$as_me:$LINENO: result: $have_x" >&5
21109 echo "${ECHO_T}$have_x" >&6
21112 # If each of the values was on the command line, it overrides each guess.
21113 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21114 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21115 # Update the cache value to reflect the command line values.
21116 ac_cv_have_x="have_x=yes \
21117 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21118 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21119 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21123 # Check whether we should enable the TUI, but only do so if we really
21125 if test x"$enable_tui" = xyes; then
21126 if test -d $srcdir/tui; then
21127 if test "$ac_cv_search_waddstr" != no; then
21128 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21129 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21130 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21131 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21132 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21133 CONFIG_ALL="${CONFIG_ALL} all-tui"
21134 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21135 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21136 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21138 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21139 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
21144 # Unlike the sim directory, whether a simulator is linked is controlled by
21145 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
21146 # This code just checks for a few cases where we'd like to ignore those
21147 # definitions, even when they're present in the '.mt' file. These cases
21148 # are when --disable-sim is specified, or if the simulator directory is
21149 # not part of the source tree.
21151 # Check whether --enable-sim or --disable-sim was given.
21152 if test "${enable_sim+set}" = set; then
21153 enableval="$enable_sim"
21154 echo "enable_sim = $enable_sim";
21155 echo "enableval = ${enableval}";
21156 case "${enableval}" in
21157 yes) ignore_sim=false ;;
21158 no) ignore_sim=true ;;
21159 *) ignore_sim=false ;;
21165 if test ! -d "${srcdir}/../sim"; then
21169 if test "${ignore_sim}" = "true"; then
21171 IGNORE_SIM_OBS="SIM_OBS="
21175 cat >>confdefs.h <<\_ACEOF
21194 # List of host floatformats.
21196 cat >>confdefs.h <<_ACEOF
21197 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21201 cat >>confdefs.h <<_ACEOF
21202 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21206 cat >>confdefs.h <<_ACEOF
21207 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21211 # target_subdir is used by the testsuite to find the target libraries.
21213 if test "${host}" != "${target}"; then
21214 target_subdir="${target_alias}/"
21219 if test "${target}" = "${host}"; then
21220 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21221 if test ! -f ${host_makefile_frag}; then
21222 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21223 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21224 { (exit 1); exit 1; }; }
21226 frags="$frags $host_makefile_frag"
21228 host_makefile_frag=/dev/null
21231 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21232 if test ! -f ${target_makefile_frag}; then
21233 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21234 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21235 { (exit 1); exit 1; }; }
21237 frags="$frags $target_makefile_frag"
21244 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21245 ' ${host_makefile_frag}`
21247 targetfile=`sed -n '
21248 s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21249 ' ${target_makefile_frag}`
21251 if test "${target}" = "${host}"; then
21252 # We pick this up from the host configuration file (.mh) because we
21253 # do not have a native configuration Makefile fragment.
21254 nativefile=`sed -n '
21255 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21256 ' ${host_makefile_frag}`
21260 if test x"${gdb_osabi}" != x ; then
21262 cat >>confdefs.h <<_ACEOF
21263 #define GDB_OSABI_DEFAULT $gdb_osabi
21268 # Enable multi-ice-gdb-server.
21269 # Check whether --enable-multi-ice or --disable-multi-ice was given.
21270 if test "${enable_multi_ice+set}" = set; then
21271 enableval="$enable_multi_ice"
21275 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21276 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21277 { (exit 1); exit 1; }; } ;;
21280 if test "x$enable_multi_ice" = xyes; then
21283 subdirs="$subdirs multi-ice"
21287 # We only build gdbserver automatically if host and target are the same.
21288 if test "x$target" = "x$host"; then
21289 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21290 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21291 if test "x$build_gdbserver" = xyes; then
21292 echo "$as_me:$LINENO: result: yes" >&5
21293 echo "${ECHO_T}yes" >&6
21296 subdirs="$subdirs gdbserver"
21299 echo "$as_me:$LINENO: result: no" >&5
21300 echo "${ECHO_T}no" >&6
21304 # We build rdi-share on ARM-based targets, as instructed by configure.tgt.
21305 if test "x$build_rdi_share" = xyes; then
21308 subdirs="$subdirs rdi-share"
21312 # We configure the nlm subdirectory on netware targets, as instructed
21313 # by configure.tgt.
21314 if test "x$build_nlm" = xyes; then
21317 subdirs="$subdirs nlm"
21321 # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21322 # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21323 # to an empty version.
21330 if test "${hostfile}" != ""; then
21332 case "${hostfile}" in
21333 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21334 * ) GDB_XM_FILE="${hostfile}"
21336 files="${files} ${GDB_XM_FILE}"
21337 links="${links} xm.h"
21338 cat >>confdefs.h <<_ACEOF
21339 #define GDB_XM_FILE "${GDB_XM_FILE}"
21347 if test "${targetfile}" != ""; then
21349 case "${targetfile}" in
21350 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
21351 * ) GDB_TM_FILE="${targetfile}"
21353 files="${files} ${GDB_TM_FILE}"
21354 links="${links} tm.h"
21355 cat >>confdefs.h <<_ACEOF
21356 #define GDB_TM_FILE "${GDB_TM_FILE}"
21364 if test "${nativefile}" != ""; then
21366 case "${nativefile}" in
21367 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21368 * ) GDB_NM_FILE="${nativefile}"
21370 files="${files} ${GDB_NM_FILE}"
21371 links="${links} nm.h"
21372 cat >>confdefs.h <<_ACEOF
21373 #define GDB_NM_FILE "${GDB_NM_FILE}"
21379 ac_sources="$files"
21381 while test -n "$ac_sources"; do
21382 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21383 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21384 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21386 ac_config_links="$ac_config_links $ac_config_links_1"
21393 cat >>confdefs.h <<\_ACEOF
21394 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21401 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21402 if test "${with_libiconv_prefix+set}" = set; then
21403 withval="$with_libiconv_prefix"
21405 for dir in `echo "$withval" | tr : ' '`; do
21406 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21407 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
21412 echo "$as_me:$LINENO: checking for iconv" >&5
21413 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21414 if test "${am_cv_func_iconv+set}" = set; then
21415 echo $ECHO_N "(cached) $ECHO_C" >&6
21418 am_cv_func_iconv="no, consider installing GNU libiconv"
21420 cat >conftest.$ac_ext <<_ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h. */
21426 #include <stdlib.h>
21431 iconv_t cd = iconv_open("","");
21432 iconv(cd,NULL,NULL,NULL,NULL);
21438 rm -f conftest.$ac_objext conftest$ac_exeext
21439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21440 (eval $ac_link) 2>conftest.er1
21442 grep -v '^ *+' conftest.er1 >conftest.err
21444 cat conftest.err >&5
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); } &&
21447 { ac_try='test -z "$ac_c_werror_flag"
21448 || test ! -s conftest.err'
21449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450 (eval $ac_try) 2>&5
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; } &&
21454 { ac_try='test -s conftest$ac_exeext'
21455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21456 (eval $ac_try) 2>&5
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); }; }; then
21460 am_cv_func_iconv=yes
21462 echo "$as_me: failed program was:" >&5
21463 sed 's/^/| /' conftest.$ac_ext >&5
21466 rm -f conftest.err conftest.$ac_objext \
21467 conftest$ac_exeext conftest.$ac_ext
21468 if test "$am_cv_func_iconv" != yes; then
21469 am_save_LIBS="$LIBS"
21470 LIBS="$LIBS -liconv"
21471 cat >conftest.$ac_ext <<_ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h. */
21477 #include <stdlib.h>
21482 iconv_t cd = iconv_open("","");
21483 iconv(cd,NULL,NULL,NULL,NULL);
21489 rm -f conftest.$ac_objext conftest$ac_exeext
21490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21491 (eval $ac_link) 2>conftest.er1
21493 grep -v '^ *+' conftest.er1 >conftest.err
21495 cat conftest.err >&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); } &&
21498 { ac_try='test -z "$ac_c_werror_flag"
21499 || test ! -s conftest.err'
21500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21501 (eval $ac_try) 2>&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); }; } &&
21505 { ac_try='test -s conftest$ac_exeext'
21506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507 (eval $ac_try) 2>&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); }; }; then
21511 am_cv_lib_iconv=yes
21512 am_cv_func_iconv=yes
21514 echo "$as_me: failed program was:" >&5
21515 sed 's/^/| /' conftest.$ac_ext >&5
21518 rm -f conftest.err conftest.$ac_objext \
21519 conftest$ac_exeext conftest.$ac_ext
21520 LIBS="$am_save_LIBS"
21524 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21525 echo "${ECHO_T}$am_cv_func_iconv" >&6
21526 if test "$am_cv_func_iconv" = yes; then
21528 cat >>confdefs.h <<\_ACEOF
21529 #define HAVE_ICONV 1
21532 echo "$as_me:$LINENO: checking for iconv declaration" >&5
21533 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
21534 if test "${am_cv_proto_iconv+set}" = set; then
21535 echo $ECHO_N "(cached) $ECHO_C" >&6
21538 cat >conftest.$ac_ext <<_ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h. */
21545 #include <stdlib.h>
21551 #if defined(__STDC__) || defined(__cplusplus)
21552 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21565 rm -f conftest.$ac_objext
21566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21567 (eval $ac_compile) 2>conftest.er1
21569 grep -v '^ *+' conftest.er1 >conftest.err
21571 cat conftest.err >&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } &&
21574 { ac_try='test -z "$ac_c_werror_flag"
21575 || test ! -s conftest.err'
21576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21577 (eval $ac_try) 2>&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); }; } &&
21581 { ac_try='test -s conftest.$ac_objext'
21582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583 (eval $ac_try) 2>&5
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); }; }; then
21587 am_cv_proto_iconv_arg1=""
21589 echo "$as_me: failed program was:" >&5
21590 sed 's/^/| /' conftest.$ac_ext >&5
21592 am_cv_proto_iconv_arg1="const"
21594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21595 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);"
21598 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21599 echo "$as_me:$LINENO: result: ${ac_t:-
21600 }$am_cv_proto_iconv" >&5
21601 echo "${ECHO_T}${ac_t:-
21602 }$am_cv_proto_iconv" >&6
21604 cat >>confdefs.h <<_ACEOF
21605 #define ICONV_CONST $am_cv_proto_iconv_arg1
21610 if test "$am_cv_lib_iconv" = yes; then
21616 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
21617 ac_config_commands="$ac_config_commands default"
21618 cat >confcache <<\_ACEOF
21619 # This file is a shell script that caches the results of configure
21620 # tests run on this system so they can be shared between configure
21621 # scripts and configure runs, see configure's option --config-cache.
21622 # It is not useful on other systems. If it contains results you don't
21623 # want to keep, you may remove or edit it.
21625 # config.status only pays attention to the cache file if you give it
21626 # the --recheck option to rerun configure.
21628 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21629 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21630 # following values.
21634 # The following way of writing the cache mishandles newlines in values,
21635 # but we know of no workaround that is simple, portable, and efficient.
21636 # So, don't put newlines in cache variables' values.
21637 # Ultrix sh set writes to stderr and can't be redirected directly,
21638 # and sets the high bit in the cache file unless we assign to the vars.
21641 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21643 # `set' does not quote correctly, so add quotes (double-quote
21644 # substitution turns \\\\ into \\, and sed turns \\ into \).
21647 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21650 # `set' quotes correctly as required by POSIX, so do not add quotes.
21652 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21659 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21661 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21663 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21664 if test -w $cache_file; then
21665 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21666 cat confcache >$cache_file
21668 echo "not updating unwritable cache $cache_file"
21673 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21674 # Let make expand exec_prefix.
21675 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21677 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21678 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21679 # trailing colons and then remove the whole line if VPATH becomes empty
21680 # (actually we leave an empty line to preserve line numbers).
21681 if test "x$srcdir" = x.; then
21682 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21683 s/:*\$(srcdir):*/:/;
21684 s/:*\${srcdir}:*/:/;
21686 s/^\([^=]*=[ ]*\):*/\1/;
21692 DEFS=-DHAVE_CONFIG_H
21696 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21697 # 1. Remove the extension, and $U if already installed.
21698 ac_i=`echo "$ac_i" |
21699 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21701 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21702 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21704 LIBOBJS=$ac_libobjs
21706 LTLIBOBJS=$ac_ltlibobjs
21709 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21710 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21711 Usually this means the macro was only invoked conditionally." >&5
21712 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21713 Usually this means the macro was only invoked conditionally." >&2;}
21714 { (exit 1); exit 1; }; }
21717 : ${CONFIG_STATUS=./config.status}
21718 ac_clean_files_save=$ac_clean_files
21719 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21720 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21721 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21722 cat >$CONFIG_STATUS <<_ACEOF
21724 # Generated by $as_me.
21725 # Run this file to recreate the current configuration.
21726 # Compiler output produced by configure, useful for debugging
21727 # configure, is in config.log if it exists.
21730 ac_cs_recheck=false
21732 SHELL=\${CONFIG_SHELL-$SHELL}
21735 cat >>$CONFIG_STATUS <<\_ACEOF
21736 ## --------------------- ##
21737 ## M4sh Initialization. ##
21738 ## --------------------- ##
21740 # Be Bourne compatible
21741 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21744 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21745 # is contrary to our usage. Disable this feature.
21746 alias -g '${1+"$@"}'='"$@"'
21747 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21750 DUALCASE=1; export DUALCASE # for MKS sh
21752 # Support unset when possible.
21753 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21760 # Work around bugs in pre-3.0 UWIN ksh.
21761 $as_unset ENV MAIL MAILPATH
21768 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21769 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21770 LC_TELEPHONE LC_TIME
21772 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21773 eval $as_var=C; export $as_var
21779 # Required to use basename.
21780 if expr a : '\(a\)' >/dev/null 2>&1; then
21786 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21787 as_basename=basename
21793 # Name of the executable.
21794 as_me=`$as_basename "$0" ||
21795 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21796 X"$0" : 'X\(//\)$' \| \
21797 X"$0" : 'X\(/\)$' \| \
21798 . : '\(.\)' 2>/dev/null ||
21800 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21801 /^X\/\(\/\/\)$/{ s//\1/; q; }
21802 /^X\/\(\/\).*/{ s//\1/; q; }
21806 # PATH needs CR, and LINENO needs CR and PATH.
21807 # Avoid depending upon Character Ranges.
21808 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21809 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21810 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21811 as_cr_digits='0123456789'
21812 as_cr_alnum=$as_cr_Letters$as_cr_digits
21814 # The user is always right.
21815 if test "${PATH_SEPARATOR+set}" != set; then
21816 echo "#! /bin/sh" >conf$$.sh
21817 echo "exit 0" >>conf$$.sh
21819 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21828 as_lineno_1=$LINENO
21829 as_lineno_2=$LINENO
21830 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21831 test "x$as_lineno_1" != "x$as_lineno_2" &&
21832 test "x$as_lineno_3" = "x$as_lineno_2" || {
21833 # Find who we are. Look in the path if we contain no path at all
21836 *[\\/]* ) as_myself=$0 ;;
21837 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21838 for as_dir in $PATH
21841 test -z "$as_dir" && as_dir=.
21842 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21847 # We did not find ourselves, most probably we were run as `sh COMMAND'
21848 # in which case we are not to be found in the path.
21849 if test "x$as_myself" = x; then
21852 if test ! -f "$as_myself"; then
21853 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21854 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21855 { (exit 1); exit 1; }; }
21857 case $CONFIG_SHELL in
21859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21860 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21863 test -z "$as_dir" && as_dir=.
21864 for as_base in sh bash ksh sh5; do
21867 if ("$as_dir/$as_base" -c '
21868 as_lineno_1=$LINENO
21869 as_lineno_2=$LINENO
21870 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21871 test "x$as_lineno_1" != "x$as_lineno_2" &&
21872 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21873 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21874 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21875 CONFIG_SHELL=$as_dir/$as_base
21876 export CONFIG_SHELL
21877 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21885 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21886 # uniformly replaced by the line number. The first 'sed' inserts a
21887 # line-number line before each line; the second 'sed' does the real
21888 # work. The second script uses 'N' to pair each line-number line
21889 # with the numbered line, and appends trailing '-' during
21890 # substitution so that $LINENO is not a special case at line end.
21891 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21892 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21893 sed '=' <$as_myself |
21898 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21901 s,^['$as_cr_digits']*\n,,
21902 ' >$as_me.lineno &&
21903 chmod +x $as_me.lineno ||
21904 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21905 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21906 { (exit 1); exit 1; }; }
21908 # Don't try to exec as it changes $[0], causing all sort of problems
21909 # (the dirname of $[0] is not the place where we might find the
21910 # original and so on. Autoconf is especially sensible to this).
21912 # Exit status is that of the last command.
21917 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21918 *c*,-n*) ECHO_N= ECHO_C='
21920 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21921 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21924 if expr a : '\(a\)' >/dev/null 2>&1; then
21930 rm -f conf$$ conf$$.exe conf$$.file
21932 if ln -s conf$$.file conf$$ 2>/dev/null; then
21933 # We could just check for DJGPP; but this test a) works b) is more generic
21934 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21935 if test -f conf$$.exe; then
21936 # Don't use ln at all; we don't have any links
21941 elif ln conf$$.file conf$$ 2>/dev/null; then
21946 rm -f conf$$ conf$$.exe conf$$.file
21948 if mkdir -p . 2>/dev/null; then
21951 test -d ./-p && rmdir ./-p
21955 as_executable_p="test -f"
21957 # Sed expression to map a string onto a valid CPP name.
21958 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21960 # Sed expression to map a string onto a valid variable name.
21961 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21965 # We need space, tab and new line, in precisely that order.
21975 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21976 # report actual input values of CONFIG_FILES etc. instead of their
21977 # values after options handling. Logging --version etc. is OK.
21981 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21982 ## Running $as_me. ##
21987 This file was extended by $as_me, which was
21988 generated by GNU Autoconf 2.59. Invocation command line was
21990 CONFIG_FILES = $CONFIG_FILES
21991 CONFIG_HEADERS = $CONFIG_HEADERS
21992 CONFIG_LINKS = $CONFIG_LINKS
21993 CONFIG_COMMANDS = $CONFIG_COMMANDS
21997 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22001 # Files that config.status was made for.
22002 if test -n "$ac_config_files"; then
22003 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22006 if test -n "$ac_config_headers"; then
22007 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22010 if test -n "$ac_config_links"; then
22011 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22014 if test -n "$ac_config_commands"; then
22015 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22018 cat >>$CONFIG_STATUS <<\_ACEOF
22021 \`$as_me' instantiates files from templates according to the
22022 current configuration.
22024 Usage: $0 [OPTIONS] [FILE]...
22026 -h, --help print this help, then exit
22027 -V, --version print version number, then exit
22028 -q, --quiet do not print progress messages
22029 -d, --debug don't remove temporary files
22030 --recheck update $as_me by reconfiguring in the same conditions
22031 --file=FILE[:TEMPLATE]
22032 instantiate the configuration file FILE
22033 --header=FILE[:TEMPLATE]
22034 instantiate the configuration header FILE
22036 Configuration files:
22039 Configuration headers:
22042 Configuration links:
22045 Configuration commands:
22048 Report bugs to <bug-autoconf@gnu.org>."
22051 cat >>$CONFIG_STATUS <<_ACEOF
22054 configured by $0, generated by GNU Autoconf 2.59,
22055 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22057 Copyright (C) 2003 Free Software Foundation, Inc.
22058 This config.status script is free software; the Free Software Foundation
22059 gives unlimited permission to copy, distribute and modify it."
22064 cat >>$CONFIG_STATUS <<\_ACEOF
22065 # If no file are specified by the user, then we need to provide default
22066 # value. By we need to know if files were specified by the user.
22072 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22073 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22081 *) # This is not an option, so the user has probably given explicit
22084 ac_need_defaults=false;;
22088 # Handling of the options.
22090 cat >>$CONFIG_STATUS <<\_ACEOF
22091 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22093 --version | --vers* | -V )
22094 echo "$ac_cs_version"; exit 0 ;;
22096 # Conflict between --help and --header
22097 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22098 Try \`$0 --help' for more information." >&5
22099 echo "$as_me: error: ambiguous option: $1
22100 Try \`$0 --help' for more information." >&2;}
22101 { (exit 1); exit 1; }; };;
22102 --help | --hel | -h )
22103 echo "$ac_cs_usage"; exit 0 ;;
22104 --debug | --d* | -d )
22106 --file | --fil | --fi | --f )
22108 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22109 ac_need_defaults=false;;
22110 --header | --heade | --head | --hea )
22112 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22113 ac_need_defaults=false;;
22114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22115 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22118 # This is an error.
22119 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22120 Try \`$0 --help' for more information." >&5
22121 echo "$as_me: error: unrecognized option: $1
22122 Try \`$0 --help' for more information." >&2;}
22123 { (exit 1); exit 1; }; } ;;
22125 *) ac_config_targets="$ac_config_targets $1" ;;
22131 ac_configure_extra_args=
22133 if $ac_cs_silent; then
22135 ac_configure_extra_args="$ac_configure_extra_args --silent"
22139 cat >>$CONFIG_STATUS <<_ACEOF
22140 if \$ac_cs_recheck; then
22141 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22142 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22147 cat >>$CONFIG_STATUS <<_ACEOF
22149 # INIT-COMMANDS section.
22153 gdb_host_cpu=$gdb_host_cpu
22154 gdb_target_cpu=$gdb_target_cpu
22155 nativefile=$nativefile
22162 cat >>$CONFIG_STATUS <<\_ACEOF
22163 for ac_config_target in $ac_config_targets
22165 case "$ac_config_target" in
22166 # Handling of arguments.
22167 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22168 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22169 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22170 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22171 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22172 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22173 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22174 { (exit 1); exit 1; }; };;
22178 # If the user did not use the arguments to specify the items to instantiate,
22179 # then the envvar interface is used. Set only those that are not.
22180 # We use the long form for the default assignment because of an extremely
22181 # bizarre bug on SunOS 4.1.3.
22182 if $ac_need_defaults; then
22183 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22184 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22185 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22186 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22189 # Have a temporary directory for convenience. Make it in the build tree
22190 # simply because there is no reason to put it here, and in addition,
22191 # creating and moving files from /tmp can sometimes cause problems.
22192 # Create a temporary directory, and hook for its removal unless debugging.
22195 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22196 trap '{ (exit 1); exit 1; }' 1 2 13 15
22199 # Create a (secure) tmp directory for tmp files.
22202 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22203 test -n "$tmp" && test -d "$tmp"
22206 tmp=./confstat$$-$RANDOM
22207 (umask 077 && mkdir $tmp)
22210 echo "$me: cannot create a temporary directory in ." >&2
22211 { (exit 1); exit 1; }
22216 cat >>$CONFIG_STATUS <<_ACEOF
22219 # CONFIG_FILES section.
22222 # No need to generate the scripts if there are no CONFIG_FILES.
22223 # This happens for instance when ./config.status config.h
22224 if test -n "\$CONFIG_FILES"; then
22225 # Protect against being on the right side of a sed subst in config.status.
22226 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22227 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22228 s,@SHELL@,$SHELL,;t t
22229 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22230 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22231 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22232 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22233 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22234 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22235 s,@exec_prefix@,$exec_prefix,;t t
22236 s,@prefix@,$prefix,;t t
22237 s,@program_transform_name@,$program_transform_name,;t t
22238 s,@bindir@,$bindir,;t t
22239 s,@sbindir@,$sbindir,;t t
22240 s,@libexecdir@,$libexecdir,;t t
22241 s,@datadir@,$datadir,;t t
22242 s,@sysconfdir@,$sysconfdir,;t t
22243 s,@sharedstatedir@,$sharedstatedir,;t t
22244 s,@localstatedir@,$localstatedir,;t t
22245 s,@libdir@,$libdir,;t t
22246 s,@includedir@,$includedir,;t t
22247 s,@oldincludedir@,$oldincludedir,;t t
22248 s,@infodir@,$infodir,;t t
22249 s,@mandir@,$mandir,;t t
22250 s,@build_alias@,$build_alias,;t t
22251 s,@host_alias@,$host_alias,;t t
22252 s,@target_alias@,$target_alias,;t t
22253 s,@DEFS@,$DEFS,;t t
22254 s,@ECHO_C@,$ECHO_C,;t t
22255 s,@ECHO_N@,$ECHO_N,;t t
22256 s,@ECHO_T@,$ECHO_T,;t t
22257 s,@LIBS@,$LIBS,;t t
22258 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22259 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22260 s,@MAINT@,$MAINT,;t t
22262 s,@CFLAGS@,$CFLAGS,;t t
22263 s,@LDFLAGS@,$LDFLAGS,;t t
22264 s,@CPPFLAGS@,$CPPFLAGS,;t t
22265 s,@ac_ct_CC@,$ac_ct_CC,;t t
22266 s,@EXEEXT@,$EXEEXT,;t t
22267 s,@OBJEXT@,$OBJEXT,;t t
22269 s,@EGREP@,$EGREP,;t t
22270 s,@build@,$build,;t t
22271 s,@build_cpu@,$build_cpu,;t t
22272 s,@build_vendor@,$build_vendor,;t t
22273 s,@build_os@,$build_os,;t t
22274 s,@host@,$host,;t t
22275 s,@host_cpu@,$host_cpu,;t t
22276 s,@host_vendor@,$host_vendor,;t t
22277 s,@host_os@,$host_os,;t t
22278 s,@target@,$target,;t t
22279 s,@target_cpu@,$target_cpu,;t t
22280 s,@target_vendor@,$target_vendor,;t t
22281 s,@target_os@,$target_os,;t t
22282 s,@SET_MAKE@,$SET_MAKE,;t t
22283 s,@RANLIB@,$RANLIB,;t t
22284 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22285 s,@ALLOCA@,$ALLOCA,;t t
22286 s,@USE_NLS@,$USE_NLS,;t t
22287 s,@MSGFMT@,$MSGFMT,;t t
22288 s,@GMSGFMT@,$GMSGFMT,;t t
22289 s,@XGETTEXT@,$XGETTEXT,;t t
22290 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22291 s,@CATALOGS@,$CATALOGS,;t t
22292 s,@CATOBJEXT@,$CATOBJEXT,;t t
22293 s,@DATADIRNAME@,$DATADIRNAME,;t t
22294 s,@GMOFILES@,$GMOFILES,;t t
22295 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22296 s,@INTLDEPS@,$INTLDEPS,;t t
22297 s,@INTLLIBS@,$INTLLIBS,;t t
22298 s,@INTLOBJS@,$INTLOBJS,;t t
22299 s,@POFILES@,$POFILES,;t t
22300 s,@POSUB@,$POSUB,;t t
22301 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
22302 s,@GT_NO@,$GT_NO,;t t
22303 s,@GT_YES@,$GT_YES,;t t
22304 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22306 s,@localedir@,$localedir,;t t
22307 s,@PACKAGE@,$PACKAGE,;t t
22308 s,@subdirs@,$subdirs,;t t
22310 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22311 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22312 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22313 s,@LN_S@,$LN_S,;t t
22314 s,@YACC@,$YACC,;t t
22316 s,@ac_ct_AR@,$ac_ct_AR,;t t
22317 s,@DLLTOOL@,$DLLTOOL,;t t
22318 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22319 s,@WINDRES@,$WINDRES,;t t
22320 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22322 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22323 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22324 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22325 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22326 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22327 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22328 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22329 s,@WIN32LIBS@,$WIN32LIBS,;t t
22330 s,@LIBGUI@,$LIBGUI,;t t
22331 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22332 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22333 s,@TCL_VERSION@,$TCL_VERSION,;t t
22334 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22335 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22336 s,@TCL_CC@,$TCL_CC,;t t
22337 s,@TCL_DEFS@,$TCL_DEFS,;t t
22338 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22339 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22340 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22341 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22342 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22343 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22344 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22345 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22346 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22347 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22348 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22349 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22350 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22351 s,@TK_VERSION@,$TK_VERSION,;t t
22352 s,@TK_DEFS@,$TK_DEFS,;t t
22353 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22354 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22355 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22356 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22357 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22358 s,@TCLHDIR@,$TCLHDIR,;t t
22359 s,@TKHDIR@,$TKHDIR,;t t
22360 s,@ITCLHDIR@,$ITCLHDIR,;t t
22361 s,@ITKHDIR@,$ITKHDIR,;t t
22362 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
22363 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
22364 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
22365 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
22366 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
22367 s,@ITK_VERSION@,$ITK_VERSION,;t t
22368 s,@ITK_DEFS@,$ITK_DEFS,;t t
22369 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
22370 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
22371 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
22372 s,@X_CFLAGS@,$X_CFLAGS,;t t
22373 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22374 s,@X_LIBS@,$X_LIBS,;t t
22375 s,@TCL_DEPS@,$TCL_DEPS,;t t
22376 s,@TK_DEPS@,$TK_DEPS,;t t
22377 s,@ITCLLIB@,$ITCLLIB,;t t
22378 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
22379 s,@ITKLIB@,$ITKLIB,;t t
22380 s,@ITK_DEPS@,$ITK_DEPS,;t t
22381 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22382 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22383 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22384 s,@IGNORE_SIM@,$IGNORE_SIM,;t t
22385 s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
22386 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22387 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22388 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22389 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22390 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22391 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22392 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22393 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22394 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22395 s,@target_subdir@,$target_subdir,;t t
22396 s,@frags@,$frags,;t t
22397 s,@xm_h@,$xm_h,;t t
22398 s,@tm_h@,$tm_h,;t t
22399 s,@nm_h@,$nm_h,;t t
22400 s,@LIBICONV@,$LIBICONV,;t t
22401 s,@LIBOBJS@,$LIBOBJS,;t t
22402 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22403 /@host_makefile_frag@/r $host_makefile_frag
22404 s,@host_makefile_frag@,,;t t
22405 /@target_makefile_frag@/r $target_makefile_frag
22406 s,@target_makefile_frag@,,;t t
22411 cat >>$CONFIG_STATUS <<\_ACEOF
22412 # Split the substitutions into bite-sized pieces for seds with
22413 # small command number limits, like on Digital OSF/1 and HP-UX.
22414 ac_max_sed_lines=48
22415 ac_sed_frag=1 # Number of current file.
22416 ac_beg=1 # First line for current file.
22417 ac_end=$ac_max_sed_lines # Line after last line for current file.
22420 while $ac_more_lines; do
22421 if test $ac_beg -gt 1; then
22422 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22424 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22426 if test ! -s $tmp/subs.frag; then
22427 ac_more_lines=false
22429 # The purpose of the label and of the branching condition is to
22430 # speed up the sed processing (if there are no `@' at all, there
22431 # is no need to browse any of the substitutions).
22432 # These are the two extra sed commands mentioned above.
22434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22435 if test -z "$ac_sed_cmds"; then
22436 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22438 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22440 ac_sed_frag=`expr $ac_sed_frag + 1`
22442 ac_end=`expr $ac_end + $ac_max_sed_lines`
22445 if test -z "$ac_sed_cmds"; then
22448 fi # test -n "$CONFIG_FILES"
22451 cat >>$CONFIG_STATUS <<\_ACEOF
22452 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22453 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22455 - | *:- | *:-:* ) # input from stdin
22457 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22458 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22459 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22460 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22461 * ) ac_file_in=$ac_file.in ;;
22464 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22465 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22466 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22467 X"$ac_file" : 'X\(//\)[^/]' \| \
22468 X"$ac_file" : 'X\(//\)$' \| \
22469 X"$ac_file" : 'X\(/\)' \| \
22470 . : '\(.\)' 2>/dev/null ||
22472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22473 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22474 /^X\(\/\/\)$/{ s//\1/; q; }
22475 /^X\(\/\).*/{ s//\1/; q; }
22477 { if $as_mkdir_p; then
22482 while test ! -d "$as_dir"; do
22483 as_dirs="$as_dir $as_dirs"
22484 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22485 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22486 X"$as_dir" : 'X\(//\)[^/]' \| \
22487 X"$as_dir" : 'X\(//\)$' \| \
22488 X"$as_dir" : 'X\(/\)' \| \
22489 . : '\(.\)' 2>/dev/null ||
22491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22492 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22493 /^X\(\/\/\)$/{ s//\1/; q; }
22494 /^X\(\/\).*/{ s//\1/; q; }
22497 test ! -n "$as_dirs" || mkdir $as_dirs
22498 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22499 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22500 { (exit 1); exit 1; }; }; }
22504 if test "$ac_dir" != .; then
22505 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22506 # A "../" for each directory in $ac_dir_suffix.
22507 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22509 ac_dir_suffix= ac_top_builddir=
22513 .) # No --srcdir option. We are building in place.
22515 if test -z "$ac_top_builddir"; then
22518 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22520 [\\/]* | ?:[\\/]* ) # Absolute path.
22521 ac_srcdir=$srcdir$ac_dir_suffix;
22522 ac_top_srcdir=$srcdir ;;
22523 *) # Relative path.
22524 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22525 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22528 # Do not use `cd foo && pwd` to compute absolute paths, because
22529 # the directories may not exist.
22531 .) ac_abs_builddir="$ac_dir";;
22534 .) ac_abs_builddir=`pwd`;;
22535 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22536 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22539 case $ac_abs_builddir in
22540 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22542 case ${ac_top_builddir}. in
22543 .) ac_abs_top_builddir=$ac_abs_builddir;;
22544 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22545 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22548 case $ac_abs_builddir in
22549 .) ac_abs_srcdir=$ac_srcdir;;
22552 .) ac_abs_srcdir=$ac_abs_builddir;;
22553 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22554 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22557 case $ac_abs_builddir in
22558 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22560 case $ac_top_srcdir in
22561 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22562 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22563 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22569 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22570 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22573 if test x"$ac_file" != x-; then
22574 { echo "$as_me:$LINENO: creating $ac_file" >&5
22575 echo "$as_me: creating $ac_file" >&6;}
22578 # Let's still pretend it is `configure' which instantiates (i.e., don't
22579 # use $as_me), people would be surprised to read:
22580 # /* config.h. Generated by config.status. */
22581 if test x"$ac_file" = x-; then
22584 configure_input="$ac_file. "
22586 configure_input=$configure_input"Generated from `echo $ac_file_in |
22587 sed 's,.*/,,'` by configure."
22589 # First look for the input files in the build tree, otherwise in the
22591 ac_file_inputs=`IFS=:
22592 for f in $ac_file_in; do
22594 -) echo $tmp/stdin ;;
22596 # Absolute (can't be DOS-style, as IFS=:)
22597 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22598 echo "$as_me: error: cannot find input file: $f" >&2;}
22599 { (exit 1); exit 1; }; }
22602 if test -f "$f"; then
22605 elif test -f "$srcdir/$f"; then
22610 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22611 echo "$as_me: error: cannot find input file: $f" >&2;}
22612 { (exit 1); exit 1; }; }
22615 done` || { (exit 1); exit 1; }
22617 cat >>$CONFIG_STATUS <<_ACEOF
22621 cat >>$CONFIG_STATUS <<\_ACEOF
22623 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22624 s,@configure_input@,$configure_input,;t t
22625 s,@srcdir@,$ac_srcdir,;t t
22626 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22627 s,@top_srcdir@,$ac_top_srcdir,;t t
22628 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22629 s,@builddir@,$ac_builddir,;t t
22630 s,@abs_builddir@,$ac_abs_builddir,;t t
22631 s,@top_builddir@,$ac_top_builddir,;t t
22632 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22633 s,@INSTALL@,$ac_INSTALL,;t t
22634 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22636 if test x"$ac_file" != x-; then
22637 mv $tmp/out $ac_file
22645 cat >>$CONFIG_STATUS <<\_ACEOF
22648 # CONFIG_HEADER section.
22651 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22652 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22654 # ac_d sets the value in "#define NAME VALUE" lines.
22655 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22656 ac_dB='[ ].*$,\1#\2'
22659 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22660 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22661 ac_uB='$,\1#\2define\3'
22665 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22666 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22668 - | *:- | *:-:* ) # input from stdin
22670 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22671 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22672 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22673 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22674 * ) ac_file_in=$ac_file.in ;;
22677 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22678 echo "$as_me: creating $ac_file" >&6;}
22680 # First look for the input files in the build tree, otherwise in the
22682 ac_file_inputs=`IFS=:
22683 for f in $ac_file_in; do
22685 -) echo $tmp/stdin ;;
22687 # Absolute (can't be DOS-style, as IFS=:)
22688 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22689 echo "$as_me: error: cannot find input file: $f" >&2;}
22690 { (exit 1); exit 1; }; }
22691 # Do quote $f, to prevent DOS paths from being IFS'd.
22694 if test -f "$f"; then
22697 elif test -f "$srcdir/$f"; then
22702 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22703 echo "$as_me: error: cannot find input file: $f" >&2;}
22704 { (exit 1); exit 1; }; }
22707 done` || { (exit 1); exit 1; }
22708 # Remove the trailing spaces.
22709 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22713 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22714 # `conftest.undefs', that substitutes the proper values into
22715 # config.h.in to produce config.h. The first handles `#define'
22716 # templates, and the second `#undef' templates.
22717 # And first: Protect against being on the right side of a sed subst in
22718 # config.status. Protect against being in an unquoted here document
22719 # in config.status.
22720 rm -f conftest.defines conftest.undefs
22721 # Using a here document instead of a string reduces the quoting nightmare.
22722 # Putting comments in sed scripts is not portable.
22724 # `end' is used to avoid that the second main sed command (meant for
22725 # 0-ary CPP macros) applies to n-ary macro definitions.
22726 # See the Autoconf documentation for `clear'.
22727 cat >confdef2sed.sed <<\_ACEOF
22732 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22734 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22737 # If some macros were called several times there might be several times
22738 # the same #defines, which is useless. Nevertheless, we may not want to
22739 # sort them, since we want the *last* AC-DEFINE to be honored.
22740 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22741 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22742 rm -f confdef2sed.sed
22744 # This sed command replaces #undef with comments. This is necessary, for
22745 # example, in the case of _POSIX_SOURCE, which is predefined and required
22746 # on some systems where configure will not decide to define it.
22747 cat >>conftest.undefs <<\_ACEOF
22748 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22751 # Break up conftest.defines because some shells have a limit on the size
22752 # of here documents, and old seds have small limits too (100 cmds).
22753 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22754 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22755 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22756 echo ' :' >>$CONFIG_STATUS
22757 rm -f conftest.tail
22758 while grep . conftest.defines >/dev/null
22760 # Write a limited-size here document to $tmp/defines.sed.
22761 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22762 # Speed up: don't consider the non `#define' lines.
22763 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22764 # Work around the forget-to-reset-the-flag bug.
22765 echo 't clr' >>$CONFIG_STATUS
22766 echo ': clr' >>$CONFIG_STATUS
22767 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22769 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22771 mv $tmp/out $tmp/in
22773 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22774 rm -f conftest.defines
22775 mv conftest.tail conftest.defines
22777 rm -f conftest.defines
22778 echo ' fi # grep' >>$CONFIG_STATUS
22779 echo >>$CONFIG_STATUS
22781 # Break up conftest.undefs because some shells have a limit on the size
22782 # of here documents, and old seds have small limits too (100 cmds).
22783 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22784 rm -f conftest.tail
22785 while grep . conftest.undefs >/dev/null
22787 # Write a limited-size here document to $tmp/undefs.sed.
22788 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22789 # Speed up: don't consider the non `#undef'
22790 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22791 # Work around the forget-to-reset-the-flag bug.
22792 echo 't clr' >>$CONFIG_STATUS
22793 echo ': clr' >>$CONFIG_STATUS
22794 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22796 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22798 mv $tmp/out $tmp/in
22800 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22801 rm -f conftest.undefs
22802 mv conftest.tail conftest.undefs
22804 rm -f conftest.undefs
22806 cat >>$CONFIG_STATUS <<\_ACEOF
22807 # Let's still pretend it is `configure' which instantiates (i.e., don't
22808 # use $as_me), people would be surprised to read:
22809 # /* config.h. Generated by config.status. */
22810 if test x"$ac_file" = x-; then
22811 echo "/* Generated by configure. */" >$tmp/config.h
22813 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22815 cat $tmp/in >>$tmp/config.h
22817 if test x"$ac_file" != x-; then
22818 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22819 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22820 echo "$as_me: $ac_file is unchanged" >&6;}
22822 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22823 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22824 X"$ac_file" : 'X\(//\)[^/]' \| \
22825 X"$ac_file" : 'X\(//\)$' \| \
22826 X"$ac_file" : 'X\(/\)' \| \
22827 . : '\(.\)' 2>/dev/null ||
22829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22830 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22831 /^X\(\/\/\)$/{ s//\1/; q; }
22832 /^X\(\/\).*/{ s//\1/; q; }
22834 { if $as_mkdir_p; then
22839 while test ! -d "$as_dir"; do
22840 as_dirs="$as_dir $as_dirs"
22841 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22842 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22843 X"$as_dir" : 'X\(//\)[^/]' \| \
22844 X"$as_dir" : 'X\(//\)$' \| \
22845 X"$as_dir" : 'X\(/\)' \| \
22846 . : '\(.\)' 2>/dev/null ||
22848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22849 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22850 /^X\(\/\/\)$/{ s//\1/; q; }
22851 /^X\(\/\).*/{ s//\1/; q; }
22854 test ! -n "$as_dirs" || mkdir $as_dirs
22855 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22856 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22857 { (exit 1); exit 1; }; }; }
22860 mv $tmp/config.h $ac_file
22864 rm -f $tmp/config.h
22868 cat >>$CONFIG_STATUS <<\_ACEOF
22871 # CONFIG_LINKS section.
22874 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22875 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22876 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22878 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22879 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22881 if test ! -r $srcdir/$ac_source; then
22882 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22883 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22884 { (exit 1); exit 1; }; }
22888 # Make relative symlinks.
22889 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
22890 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22891 X"$ac_dest" : 'X\(//\)[^/]' \| \
22892 X"$ac_dest" : 'X\(//\)$' \| \
22893 X"$ac_dest" : 'X\(/\)' \| \
22894 . : '\(.\)' 2>/dev/null ||
22896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22897 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22898 /^X\(\/\/\)$/{ s//\1/; q; }
22899 /^X\(\/\).*/{ s//\1/; q; }
22901 { if $as_mkdir_p; then
22902 mkdir -p "$ac_dest_dir"
22904 as_dir="$ac_dest_dir"
22906 while test ! -d "$as_dir"; do
22907 as_dirs="$as_dir $as_dirs"
22908 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22909 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22910 X"$as_dir" : 'X\(//\)[^/]' \| \
22911 X"$as_dir" : 'X\(//\)$' \| \
22912 X"$as_dir" : 'X\(/\)' \| \
22913 . : '\(.\)' 2>/dev/null ||
22915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22916 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22917 /^X\(\/\/\)$/{ s//\1/; q; }
22918 /^X\(\/\).*/{ s//\1/; q; }
22921 test ! -n "$as_dirs" || mkdir $as_dirs
22922 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22923 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22924 { (exit 1); exit 1; }; }; }
22928 if test "$ac_dest_dir" != .; then
22929 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22930 # A "../" for each directory in $ac_dir_suffix.
22931 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22933 ac_dir_suffix= ac_top_builddir=
22937 .) # No --srcdir option. We are building in place.
22939 if test -z "$ac_top_builddir"; then
22942 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22944 [\\/]* | ?:[\\/]* ) # Absolute path.
22945 ac_srcdir=$srcdir$ac_dir_suffix;
22946 ac_top_srcdir=$srcdir ;;
22947 *) # Relative path.
22948 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22949 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22952 # Do not use `cd foo && pwd` to compute absolute paths, because
22953 # the directories may not exist.
22955 .) ac_abs_builddir="$ac_dest_dir";;
22957 case "$ac_dest_dir" in
22958 .) ac_abs_builddir=`pwd`;;
22959 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
22960 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
22963 case $ac_abs_builddir in
22964 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22966 case ${ac_top_builddir}. in
22967 .) ac_abs_top_builddir=$ac_abs_builddir;;
22968 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22969 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22972 case $ac_abs_builddir in
22973 .) ac_abs_srcdir=$ac_srcdir;;
22976 .) ac_abs_srcdir=$ac_abs_builddir;;
22977 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22978 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22981 case $ac_abs_builddir in
22982 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22984 case $ac_top_srcdir in
22985 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22986 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22987 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22993 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
22994 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
22997 # Try a symlink, then a hard link, then a copy.
22998 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22999 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23000 cp -p $srcdir/$ac_source $ac_dest ||
23001 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23002 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23003 { (exit 1); exit 1; }; }
23006 cat >>$CONFIG_STATUS <<\_ACEOF
23009 # CONFIG_COMMANDS section.
23011 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23012 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23013 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23014 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23015 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23016 X"$ac_dest" : 'X\(//\)[^/]' \| \
23017 X"$ac_dest" : 'X\(//\)$' \| \
23018 X"$ac_dest" : 'X\(/\)' \| \
23019 . : '\(.\)' 2>/dev/null ||
23021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23023 /^X\(\/\/\)$/{ s//\1/; q; }
23024 /^X\(\/\).*/{ s//\1/; q; }
23026 { if $as_mkdir_p; then
23031 while test ! -d "$as_dir"; do
23032 as_dirs="$as_dir $as_dirs"
23033 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23034 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23035 X"$as_dir" : 'X\(//\)[^/]' \| \
23036 X"$as_dir" : 'X\(//\)$' \| \
23037 X"$as_dir" : 'X\(/\)' \| \
23038 . : '\(.\)' 2>/dev/null ||
23040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23041 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23042 /^X\(\/\/\)$/{ s//\1/; q; }
23043 /^X\(\/\).*/{ s//\1/; q; }
23046 test ! -n "$as_dirs" || mkdir $as_dirs
23047 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23048 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23049 { (exit 1); exit 1; }; }; }
23053 if test "$ac_dir" != .; then
23054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23055 # A "../" for each directory in $ac_dir_suffix.
23056 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23058 ac_dir_suffix= ac_top_builddir=
23062 .) # No --srcdir option. We are building in place.
23064 if test -z "$ac_top_builddir"; then
23067 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23069 [\\/]* | ?:[\\/]* ) # Absolute path.
23070 ac_srcdir=$srcdir$ac_dir_suffix;
23071 ac_top_srcdir=$srcdir ;;
23072 *) # Relative path.
23073 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23074 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23077 # Do not use `cd foo && pwd` to compute absolute paths, because
23078 # the directories may not exist.
23080 .) ac_abs_builddir="$ac_dir";;
23083 .) ac_abs_builddir=`pwd`;;
23084 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23085 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23088 case $ac_abs_builddir in
23089 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23091 case ${ac_top_builddir}. in
23092 .) ac_abs_top_builddir=$ac_abs_builddir;;
23093 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23094 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23097 case $ac_abs_builddir in
23098 .) ac_abs_srcdir=$ac_srcdir;;
23101 .) ac_abs_srcdir=$ac_abs_builddir;;
23102 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23103 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23106 case $ac_abs_builddir in
23107 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23109 case $ac_top_srcdir in
23110 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23111 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23112 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23117 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23118 echo "$as_me: executing $ac_dest commands" >&6;}
23122 sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
23123 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
23124 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23125 mv -f Makefile.tmp Makefile
23128 case x$CONFIG_HEADERS in
23129 xconfig.h:config.in)
23137 cat >>$CONFIG_STATUS <<\_ACEOF
23139 { (exit 0); exit 0; }
23141 chmod +x $CONFIG_STATUS
23142 ac_clean_files=$ac_clean_files_save
23145 # configure is writing to config.log, and then calls config.status.
23146 # config.status does its own redirection, appending to config.log.
23147 # Unfortunately, on DOS this fails, as config.log is still kept open
23148 # by configure, so config.status won't be able to write to it; its
23149 # output is simply discarded. So we exec the FD to /dev/null,
23150 # effectively closing config.log, so it can be properly (re)opened and
23151 # appended to by config.status. When coming back to configure, we
23152 # need to make the FD available again.
23153 if test "$no_create" != yes; then
23155 ac_config_status_args=
23156 test "$silent" = yes &&
23157 ac_config_status_args="$ac_config_status_args --quiet"
23159 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23161 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23162 # would make configure fail if this is the last instruction.
23163 $ac_cs_success || { (exit 1); exit 1; }
23167 # CONFIG_SUBDIRS section.
23169 if test "$no_recursion" != yes; then
23171 # Remove --cache-file and --srcdir arguments so they do not pile up.
23172 ac_sub_configure_args=
23174 for ac_arg in $ac_configure_args; do
23175 if test -n "$ac_prev"; then
23180 -cache-file | --cache-file | --cache-fil | --cache-fi \
23181 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23182 ac_prev=cache_file ;;
23183 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23184 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23187 --config-cache | -C)
23189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23193 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23195 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23197 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23201 # Always prepend --prefix to ensure using the same prefix
23202 # in subdir configurations.
23203 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23206 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23208 # Do not complain, so a configure script can configure whichever
23209 # parts of a large source tree are present.
23210 test -d $srcdir/$ac_dir || continue
23212 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23213 echo "$as_me: configuring in $ac_dir" >&6;}
23214 { if $as_mkdir_p; then
23219 while test ! -d "$as_dir"; do
23220 as_dirs="$as_dir $as_dirs"
23221 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23222 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23223 X"$as_dir" : 'X\(//\)[^/]' \| \
23224 X"$as_dir" : 'X\(//\)$' \| \
23225 X"$as_dir" : 'X\(/\)' \| \
23226 . : '\(.\)' 2>/dev/null ||
23228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23229 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23230 /^X\(\/\/\)$/{ s//\1/; q; }
23231 /^X\(\/\).*/{ s//\1/; q; }
23234 test ! -n "$as_dirs" || mkdir $as_dirs
23235 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23236 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23237 { (exit 1); exit 1; }; }; }
23241 if test "$ac_dir" != .; then
23242 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23243 # A "../" for each directory in $ac_dir_suffix.
23244 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23246 ac_dir_suffix= ac_top_builddir=
23250 .) # No --srcdir option. We are building in place.
23252 if test -z "$ac_top_builddir"; then
23255 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23257 [\\/]* | ?:[\\/]* ) # Absolute path.
23258 ac_srcdir=$srcdir$ac_dir_suffix;
23259 ac_top_srcdir=$srcdir ;;
23260 *) # Relative path.
23261 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23262 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23265 # Do not use `cd foo && pwd` to compute absolute paths, because
23266 # the directories may not exist.
23268 .) ac_abs_builddir="$ac_dir";;
23271 .) ac_abs_builddir=`pwd`;;
23272 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23273 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23276 case $ac_abs_builddir in
23277 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23279 case ${ac_top_builddir}. in
23280 .) ac_abs_top_builddir=$ac_abs_builddir;;
23281 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23282 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23285 case $ac_abs_builddir in
23286 .) ac_abs_srcdir=$ac_srcdir;;
23289 .) ac_abs_srcdir=$ac_abs_builddir;;
23290 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23291 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23294 case $ac_abs_builddir in
23295 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23297 case $ac_top_srcdir in
23298 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23299 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23300 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23307 # Check for guested configure; otherwise get Cygnus style configure.
23308 if test -f $ac_srcdir/configure.gnu; then
23309 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23310 elif test -f $ac_srcdir/configure; then
23311 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23312 elif test -f $ac_srcdir/configure.in; then
23313 ac_sub_configure=$ac_configure
23315 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23316 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23320 # The recursion is here.
23321 if test -n "$ac_sub_configure"; then
23322 # Make the cache file name correct relative to the subdirectory.
23323 case $cache_file in
23324 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23325 *) # Relative path.
23326 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23329 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23330 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23331 # The eval makes quoting arguments work.
23332 eval $ac_sub_configure $ac_sub_configure_args \
23333 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23334 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23335 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23336 { (exit 1); exit 1; }; }