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>
313 ac_subdirs_all
="$ac_subdirs_all doc testsuite"
314 ac_subdirs_all
="$ac_subdirs_all gdbtk"
315 ac_subdirs_all
="$ac_subdirs_all multi-ice"
316 ac_subdirs_all
="$ac_subdirs_all gdbserver"
317 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os am__leading_dot DEPDIR CCDEPMODE MAKE GMAKE_TRUE GMAKE_FALSE SET_MAKE USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir GL_COND_LIBTOOL_TRUE GL_COND_LIBTOOL_FALSE GNULIB_MEMMEM GNULIB_MEMPCPY GNULIB_MEMRCHR GNULIB_STPCPY GNULIB_STPNCPY GNULIB_STRCHRNUL GNULIB_STRDUP GNULIB_STRNDUP GNULIB_STRNLEN GNULIB_STRPBRK GNULIB_STRSEP GNULIB_STRSTR GNULIB_STRCASESTR GNULIB_STRTOK_R GNULIB_MBSLEN GNULIB_MBSNLEN GNULIB_MBSCHR GNULIB_MBSRCHR GNULIB_MBSSTR GNULIB_MBSCASECMP GNULIB_MBSNCASECMP GNULIB_MBSPCASECMP GNULIB_MBSCASESTR GNULIB_MBSCSPN GNULIB_MBSPBRK GNULIB_MBSSPN GNULIB_MBSSEP GNULIB_MBSTOK_R GNULIB_STRERROR GNULIB_STRSIGNAL HAVE_DECL_MEMMEM HAVE_MEMPCPY HAVE_DECL_MEMRCHR HAVE_STPCPY HAVE_STPNCPY HAVE_STRCHRNUL HAVE_DECL_STRDUP HAVE_STRNDUP HAVE_DECL_STRNDUP HAVE_DECL_STRNLEN HAVE_STRPBRK HAVE_STRSEP HAVE_STRCASESTR HAVE_DECL_STRTOK_R HAVE_DECL_STRERROR HAVE_DECL_STRSIGNAL REPLACE_STRERROR REPLACE_STRSIGNAL REPLACE_MEMMEM REPLACE_STRCASESTR REPLACE_STRSTR HAVE_LONG_LONG_INT HAVE_UNSIGNED_LONG_LONG_INT HAVE_INTTYPES_H HAVE_SYS_TYPES_H INCLUDE_NEXT NEXT_STDINT_H HAVE_STDINT_H HAVE_SYS_INTTYPES_H HAVE_SYS_BITYPES_H BITSIZEOF_PTRDIFF_T BITSIZEOF_SIG_ATOMIC_T BITSIZEOF_SIZE_T BITSIZEOF_WCHAR_T BITSIZEOF_WINT_T HAVE_SIGNED_SIG_ATOMIC_T HAVE_SIGNED_WCHAR_T HAVE_SIGNED_WINT_T PTRDIFF_T_SUFFIX SIG_ATOMIC_T_SUFFIX SIZE_T_SUFFIX WCHAR_T_SUFFIX WINT_T_SUFFIX STDINT_H NEXT_STRING_H GNULIB_WCWIDTH HAVE_DECL_WCWIDTH REPLACE_WCWIDTH WCHAR_H HAVE_WCHAR_H NEXT_WCHAR_H LIBGNU_LIBDEPS LIBGNU_LTLIBDEPS GNULIB_STDINT_H PACKAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK AMTAR am__tar am__untar am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH am__fastdepCC_TRUE am__fastdepCC_FALSE subdirs TARGET_OBS PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT PYTHON_CFLAGS ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_PATCH_LEVEL TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_INCLUDE TCL_LIBRARY TCL_DEPS TK_VERSION TK_BIN_DIR TK_SRC_DIR TK_LIB_FILE TK_LIB_FLAG TK_LIB_SPEC TK_STUB_LIB_FILE TK_STUB_LIB_FLAG TK_STUB_LIB_SPEC TK_INCLUDE TK_LIBRARY TK_DEPS TK_XINCLUDES X_CFLAGS X_LDFLAGS X_LIBS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h datarootdir docdir htmldir pdfdir LIBOBJS LTLIBOBJS gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS'
318 ac_subst_files
='host_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-dependency-tracking speeds up one-time build
866 --enable-dependency-tracking do not reject slow dependency extractors
867 --enable-targets alternative target configurations
868 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
869 --disable-gdbcli disable command-line interface
(CLI
)
870 --disable-gdbmi disable machine-interface
(MI
)
871 --enable-tui enable full-screen terminal user interface
(TUI
)
872 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
873 --enable-profiling enable profiling of GDB
874 --disable-rpath do not hardcode runtime library paths
875 --enable-werror treat compile warnings as errors
876 --enable-build-warnings Enable build-time compiler warnings
if gcc is used
877 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings
if gcc is used
878 --enable-sim Link gdb with simulator
879 --enable-multi-ice build the multi-ice-gdb-server
882 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
883 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
884 --with-separate-debug-dir=path Look
for global separate debug info
in this path LIBDIR
/debug
885 --with-libunwind Use libunwind frame unwinding support
886 --with-curses use the curses library instead of the termcap
888 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
889 --with-bugurl=URL Direct users to URL to report a bug
890 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
891 --with-system-readline use installed readline library
892 --with-expat include expat support
(auto
/yes
/no
)
893 --with-gnu-ld assume the C compiler uses GNU ld default
=no
894 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
895 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
896 --with-python include python support (auto/yes/no/<path>)
897 --without-included-regex don't use included regex
; this is the default
898 on systems with version
2 of the GNU C library
899 (use with caution on other system
)
900 --with-sysroot=DIR Search
for usr
/lib et al within DIR.
901 --with-system-gdbinit=file Automatically load a system-wide gdbinit
file
902 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
903 --with-tk directory containing tk configuration
(tkConfig.sh
)
904 --with-x use the X Window System
906 Some influential environment variables
:
907 CC C compiler
command
908 CFLAGS C compiler flags
909 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
910 nonstandard directory
<lib dir
>
911 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
912 headers
in a nonstandard directory
<include dir
>
915 Use these variables to override the choices made by
`configure' or to help
916 it to find libraries and programs with nonstandard names/locations.
921 if test "$ac_init_help" = "recursive"; then
922 # If there are subdirs, report their specific --help.
924 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925 test -d $ac_dir || continue
928 if test "$ac_dir" != .; then
929 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
930 # A "../" for each directory in $ac_dir_suffix.
931 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
933 ac_dir_suffix= ac_top_builddir=
937 .) # No --srcdir option. We are building in place.
939 if test -z "$ac_top_builddir"; then
942 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
944 [\\/]* | ?:[\\/]* ) # Absolute path.
945 ac_srcdir=$srcdir$ac_dir_suffix;
946 ac_top_srcdir=$srcdir ;;
948 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949 ac_top_srcdir=$ac_top_builddir$srcdir ;;
952 # Do not use `cd foo
&& pwd` to compute absolute paths, because
953 # the directories may not exist.
955 .) ac_abs_builddir="$ac_dir";;
958 .) ac_abs_builddir=`pwd`;;
959 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960 *) ac_abs_builddir=`pwd`/"$ac_dir";;
963 case $ac_abs_builddir in
964 .) ac_abs_top_builddir=${ac_top_builddir}.;;
966 case ${ac_top_builddir}. in
967 .) ac_abs_top_builddir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
969 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
972 case $ac_abs_builddir in
973 .) ac_abs_srcdir=$ac_srcdir;;
976 .) ac_abs_srcdir=$ac_abs_builddir;;
977 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
981 case $ac_abs_builddir in
982 .) ac_abs_top_srcdir=$ac_top_srcdir;;
984 case $ac_top_srcdir in
985 .) ac_abs_top_srcdir=$ac_abs_builddir;;
986 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
987 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
992 # Check for guested configure; otherwise get Cygnus style configure.
993 if test -f $ac_srcdir/configure.gnu; then
995 $SHELL $ac_srcdir/configure.gnu --help=recursive
996 elif test -f $ac_srcdir/configure; then
998 $SHELL $ac_srcdir/configure --help=recursive
999 elif test -f $ac_srcdir/configure.ac ||
1000 test -f $ac_srcdir/configure.in; then
1002 $ac_configure --help
1004 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1010 test -n "$ac_init_help" && exit 0
1011 if $ac_init_version; then
1014 Copyright (C) 2003 Free Software Foundation, Inc.
1015 This configure script is free software; the Free Software Foundation
1016 gives unlimited permission to copy, distribute and modify it.
1022 This file contains any messages produced by compilers while
1023 running configure, to aid debugging if configure makes a mistake.
1025 It was created by $as_me, which was
1026 generated by GNU Autoconf 2.59. Invocation command line was
1037 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1038 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1039 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1040 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1041 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1043 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1044 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1046 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1047 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1048 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1049 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1050 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1051 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1052 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1060 test -z "$as_dir" && as_dir=.
1061 echo "PATH: $as_dir"
1076 # Keep a trace of the command line.
1077 # Strip out --no-create and --no-recursion so they do not pile up.
1078 # Strip out --silent because we don't want to record it for future runs.
1079 # Also quote any args containing shell meta-characters.
1080 # Make two passes to allow for proper duplicate-argument suppression.
1085 ac_must_keep_next=false
1091 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1095 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1096 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1099 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1101 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1102 if test $ac_must_keep_next = true; then
1103 ac_must_keep_next=false # Got value, back to normal.
1106 *=* | --config-cache | -C | -disable-* | --disable-* \
1107 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1108 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1109 | -with-* | --with-* | -without-* | --without-* | --x)
1110 case "$ac_configure_args0 " in
1111 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1114 -* ) ac_must_keep_next=true ;;
1117 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1118 # Get rid of the leading space.
1124 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1125 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1127 # When interrupted or exit'd, cleanup temporary files, and complete
1128 # config.log. We remove comments because anyway the quotes in there
1129 # would cause problems or look ugly.
1130 # WARNING: Be sure not to use single quotes in there, as some shells,
1131 # such as our DU 5.0 friend, will then `close
' the trap.
1132 trap 'exit_status
=$?
1133 # Save into config.log some information that might help in debugging.
1138 ## ---------------- ##
1139 ## Cache variables. ##
1140 ## ---------------- ##
1143 # The following way of writing the cache mishandles newlines in values,
1146 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1149 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1154 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1161 ## ----------------- ##
1162 ## Output variables. ##
1163 ## ----------------- ##
1166 for ac_var
in $ac_subst_vars
1168 eval ac_val
=$
`echo $ac_var`
1169 echo "$ac_var='"'"'$ac_val'"'"'"
1173 if test -n "$ac_subst_files"; then
1180 for ac_var
in $ac_subst_files
1182 eval ac_val
=$
`echo $ac_var`
1183 echo "$ac_var='"'"'$ac_val'"'"'"
1188 if test -s confdefs.h
; then
1195 sed "/^$/d" confdefs.h |
sort
1198 test "$ac_signal" != 0 &&
1199 echo "$as_me: caught signal $ac_signal"
1200 echo "$as_me: exit $exit_status"
1202 rm -f core
*.core
&&
1203 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1206 for ac_signal in 1 2 13 15; do
1207 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1211 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1212 rm -rf conftest* confdefs.h
1213 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1216 # Predefined preprocessor variables.
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_NAME "$PACKAGE_NAME"
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1233 cat >>confdefs.h <<_ACEOF
1234 #define PACKAGE_STRING "$PACKAGE_STRING"
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1243 # Let the site file select an alternate cache file if it wants to.
1244 # Prefer explicitly selected file to automatically selected ones.
1245 if test -z "$CONFIG_SITE"; then
1246 if test "x$prefix" != xNONE; then
1247 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1249 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1252 for ac_site_file in $CONFIG_SITE; do
1253 if test -r "$ac_site_file"; then
1254 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1255 echo "$as_me: loading site script $ac_site_file" >&6;}
1256 sed 's
/^
/|
/' "$ac_site_file" >&5
1261 if test -r "$cache_file"; then
1262 # Some versions of bash will fail to source /dev/null (special
1263 # files actually), so we avoid doing that.
1264 if test -f "$cache_file"; then
1265 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1266 echo "$as_me: loading cache $cache_file" >&6;}
1268 [\\/]* | ?:[\\/]* ) . $cache_file;;
1269 *) . ./$cache_file;;
1273 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1274 echo "$as_me: creating cache $cache_file" >&6;}
1278 # Check that the precious variables saved in the cache have kept the same
1280 ac_cache_corrupted=false
1281 for ac_var in `(set) 2>&1 |
1282 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1283 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1284 eval ac_new_set=\$ac_env_${ac_var}_set
1285 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1286 eval ac_new_val="\$ac_env_${ac_var}_value"
1287 case $ac_old_set,$ac_new_set in
1289 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1290 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1291 ac_cache_corrupted=: ;;
1293 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1294 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1295 ac_cache_corrupted=: ;;
1298 if test "x$ac_old_val" != "x$ac_new_val"; then
1299 # differences in whitespace do not lead to failure.
1300 ac_old_val_w=`echo x $ac_old_val`
1301 ac_new_val_w=`echo x $ac_new_val`
1302 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1303 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1304 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1305 ac_cache_corrupted=:
1307 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1308 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run
:" >&2;}
1309 eval $ac_var=\$ac_old_val
1311 { echo "$as_me:$LINENO: former value
: \
`$ac_old_val'" >&5
1312 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1313 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1314 echo "$as_me: current value
: \
`$ac_new_val'" >&2;}
1317 # Pass precious variables to config.status.
1318 if test "$ac_new_set" = set; then
1320 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1321 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1322 *) ac_arg=$ac_var=$ac_new_val ;;
1324 case " $ac_configure_args " in
1325 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1326 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1330 if $ac_cache_corrupted; then
1331 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1332 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1333 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1334 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1335 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1336 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1337 { (exit 1); exit 1; }; }
1341 ac_cpp='$CPP $CPPFLAGS'
1342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1347 gl_header_list="$gl_header_list stdint.h"
1348 gl_header_list="$gl_header_list wchar.h"
1349 gl_header_list="$gl_header_list string.h"
1370 ac_config_headers="$ac_config_headers config.h:config.in"
1372 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1373 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1374 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1375 if test "${enable_maintainer_mode+set}" = set; then
1376 enableval="$enable_maintainer_mode"
1377 USE_MAINTAINER_MODE=$enableval
1379 USE_MAINTAINER_MODE=no
1381 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1382 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1385 if test $USE_MAINTAINER_MODE = yes; then
1386 MAINTAINER_MODE_TRUE=
1387 MAINTAINER_MODE_FALSE='#'
1389 MAINTAINER_MODE_TRUE='#'
1390 MAINTAINER_MODE_FALSE=
1393 MAINT=$MAINTAINER_MODE_TRUE
1398 ac_cpp='$CPP $CPPFLAGS'
1399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1402 if test -n "$ac_tool_prefix"; then
1403 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1404 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1405 echo "$as_me:$LINENO: checking for $ac_word" >&5
1406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1407 if test "${ac_cv_prog_CC+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 if test -n "$CC"; then
1411 ac_cv_prog_CC="$CC" # Let the user override the test.
1413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1417 test -z "$as_dir" && as_dir=.
1418 for ac_exec_ext in '' $ac_executable_extensions; do
1419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1420 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1430 if test -n "$CC"; then
1431 echo "$as_me:$LINENO: result: $CC" >&5
1432 echo "${ECHO_T}$CC" >&6
1434 echo "$as_me:$LINENO: result: no" >&5
1435 echo "${ECHO_T}no" >&6
1439 if test -z "$ac_cv_prog_CC"; then
1441 # Extract the first word of "gcc", so it can be a program name with args.
1442 set dummy gcc; ac_word=$2
1443 echo "$as_me:$LINENO: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 if test -n "$ac_ct_CC"; then
1449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1455 test -z "$as_dir" && as_dir=.
1456 for ac_exec_ext in '' $ac_executable_extensions; do
1457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458 ac_cv_prog_ac_ct_CC="gcc"
1459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1467 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1468 if test -n "$ac_ct_CC"; then
1469 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1470 echo "${ECHO_T}$ac_ct_CC" >&6
1472 echo "$as_me:$LINENO: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1481 if test -z "$CC"; then
1482 if test -n "$ac_tool_prefix"; then
1483 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1484 set dummy ${ac_tool_prefix}cc; ac_word=$2
1485 echo "$as_me:$LINENO: checking for $ac_word" >&5
1486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487 if test "${ac_cv_prog_CC+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
1490 if test -n "$CC"; then
1491 ac_cv_prog_CC="$CC" # Let the user override the test.
1493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1497 test -z "$as_dir" && as_dir=.
1498 for ac_exec_ext in '' $ac_executable_extensions; do
1499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500 ac_cv_prog_CC="${ac_tool_prefix}cc"
1501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510 if test -n "$CC"; then
1511 echo "$as_me:$LINENO: result: $CC" >&5
1512 echo "${ECHO_T}$CC" >&6
1514 echo "$as_me:$LINENO: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1519 if test -z "$ac_cv_prog_CC"; then
1521 # Extract the first word of "cc", so it can be a program name with args.
1522 set dummy cc; ac_word=$2
1523 echo "$as_me:$LINENO: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 if test -n "$ac_ct_CC"; then
1529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1535 test -z "$as_dir" && as_dir=.
1536 for ac_exec_ext in '' $ac_executable_extensions; do
1537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538 ac_cv_prog_ac_ct_CC="cc"
1539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1547 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1548 if test -n "$ac_ct_CC"; then
1549 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1550 echo "${ECHO_T}$ac_ct_CC" >&6
1552 echo "$as_me:$LINENO: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1562 if test -z "$CC"; then
1563 # Extract the first word of "cc", so it can be a program name with args.
1564 set dummy cc; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_CC+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 if test -n "$CC"; then
1571 ac_cv_prog_CC="$CC" # Let the user override the test.
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 test -z "$as_dir" && as_dir=.
1579 for ac_exec_ext in '' $ac_executable_extensions; do
1580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1582 ac_prog_rejected=yes
1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1592 if test $ac_prog_rejected = yes; then
1593 # We found a bogon in the path, so make sure we never use it.
1594 set dummy $ac_cv_prog_CC
1596 if test $# != 0; then
1597 # We chose a different compiler from the bogus one.
1598 # However, it has the same basename, so the bogon will be chosen
1599 # first if we set CC to just the basename; use the full file name.
1601 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1607 if test -n "$CC"; then
1608 echo "$as_me:$LINENO: result: $CC" >&5
1609 echo "${ECHO_T}$CC" >&6
1611 echo "$as_me:$LINENO: result: no" >&5
1612 echo "${ECHO_T}no" >&6
1616 if test -z "$CC"; then
1617 if test -n "$ac_tool_prefix"; then
1620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_CC+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 if test -n "$CC"; then
1628 ac_cv_prog_CC="$CC" # Let the user override the test.
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 test -z "$as_dir" && as_dir=.
1635 for ac_exec_ext in '' $ac_executable_extensions; do
1636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1647 if test -n "$CC"; then
1648 echo "$as_me:$LINENO: result: $CC" >&5
1649 echo "${ECHO_T}$CC" >&6
1651 echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1655 test -n "$CC" && break
1658 if test -z "$CC"; then
1662 # Extract the first word of "$ac_prog", so it can be a program name with args.
1663 set dummy $ac_prog; ac_word=$2
1664 echo "$as_me:$LINENO: checking for $ac_word" >&5
1665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 if test -n "$ac_ct_CC"; then
1670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 test -z "$as_dir" && as_dir=.
1677 for ac_exec_ext in '' $ac_executable_extensions; do
1678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1679 ac_cv_prog_ac_ct_CC="$ac_prog"
1680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1688 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1689 if test -n "$ac_ct_CC"; then
1690 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1691 echo "${ECHO_T}$ac_ct_CC" >&6
1693 echo "$as_me:$LINENO: result: no" >&5
1694 echo "${ECHO_T}no" >&6
1697 test -n "$ac_ct_CC" && break
1706 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1707 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1708 { { echo "$as_me:$LINENO: error
: no acceptable C compiler found
in \
$PATH
1709 See \
`config.log' for more details." >&5
1710 echo "$as_me: error: no acceptable C compiler found in \$PATH
1711 See \`config.log
' for more details." >&2;}
1712 { (exit 1); exit 1; }; }; }
1714 # Provide some information about the compiler.
1715 echo "$as_me:$LINENO:" \
1716 "checking for C compiler version" >&5
1717 ac_compiler=`set X $ac_compile; echo $2`
1718 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1719 (eval $ac_compiler --version </dev/null >&5) 2>&5
1721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1722 (exit $ac_status); }
1723 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1724 (eval $ac_compiler -v </dev/null >&5) 2>&5
1726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1727 (exit $ac_status); }
1728 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1729 (eval $ac_compiler -V </dev/null >&5) 2>&5
1731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732 (exit $ac_status); }
1734 cat >conftest.$ac_ext <<_ACEOF
1737 cat confdefs.h >>conftest.$ac_ext
1738 cat >>conftest.$ac_ext <<_ACEOF
1739 /* end confdefs.h. */
1749 ac_clean_files_save=$ac_clean_files
1750 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1751 # Try to create an executable without -o first, disregard a.out.
1752 # It will help us diagnose broken compilers, and finding out an intuition
1754 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1755 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1756 ac_link_default=`echo "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
1757 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1758 (eval $ac_link_default) 2>&5
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }; then
1762 # Find the output, starting from the most likely. This scheme is
1763 # not robust to junk in `.', hence go to wildcards
(a.
*) only as a last
1766 # Be careful to initialize this variable, since it used to be cached.
1767 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1769 # b.out is created by i960 compilers.
1770 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1772 test -f "$ac_file" ||
continue
1774 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1777 # This is the source file.
1780 # We found the default executable, but exeext='' is most
1784 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1785 # FIXME: I believe we export ac_cv_exeext for Libtool,
1786 # but it would be cool to find out if it's true. Does anybody
1787 # maintain Libtool? --akim.
1795 echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.
$ac_ext >&5
1798 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1799 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1800 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1801 See \`config.log' for more details." >&5
1802 echo "$as_me: error: C compiler cannot create executables
1803 See \`config.log' for more details." >&2;}
1804 { (exit 77); exit 77; }; }; }
1807 ac_exeext
=$ac_cv_exeext
1808 echo "$as_me:$LINENO: result: $ac_file" >&5
1809 echo "${ECHO_T}$ac_file" >&6
1811 # Check the compiler produces executables we can run. If not, either
1812 # the compiler is broken, or we cross compile.
1813 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1814 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1815 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1816 # If not cross compiling, check that we can run a simple program.
1817 if test "$cross_compiling" != yes; then
1818 if { ac_try
='./$ac_file'
1819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823 (exit $ac_status); }; }; then
1826 if test "$cross_compiling" = maybe
; then
1829 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1830 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1831 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1832 If you meant to cross compile, use \`--host'.
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: cannot run C compiled programs.
1835 If you meant to cross compile, use \`--host'.
1836 See \`config.log' for more details." >&2;}
1837 { (exit 1); exit 1; }; }; }
1841 echo "$as_me:$LINENO: result: yes" >&5
1842 echo "${ECHO_T}yes" >&6
1844 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1845 ac_clean_files
=$ac_clean_files_save
1846 # Check the compiler produces executables we can run. If not, either
1847 # the compiler is broken, or we cross compile.
1848 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1849 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1850 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1851 echo "${ECHO_T}$cross_compiling" >&6
1853 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1854 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1856 (eval $ac_link) 2>&5
1858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1859 (exit $ac_status); }; then
1860 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1861 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1862 # work properly (i.e., refer to `conftest.exe'), while it won't with
1864 for ac_file
in conftest.exe conftest conftest.
*; do
1865 test -f "$ac_file" ||
continue
1867 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1868 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1875 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1876 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1877 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1878 See \`config.log' for more details." >&5
1879 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1880 See \`config.log' for more details." >&2;}
1881 { (exit 1); exit 1; }; }; }
1884 rm -f conftest
$ac_cv_exeext
1885 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1886 echo "${ECHO_T}$ac_cv_exeext" >&6
1888 rm -f conftest.
$ac_ext
1889 EXEEXT
=$ac_cv_exeext
1891 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1892 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1893 if test "${ac_cv_objext+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1896 cat >conftest.
$ac_ext <<_ACEOF
1899 cat confdefs.h
>>conftest.
$ac_ext
1900 cat >>conftest.
$ac_ext <<_ACEOF
1901 /* end confdefs.h. */
1911 rm -f conftest.o conftest.obj
1912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1913 (eval $ac_compile) 2>&5
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }; then
1917 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1919 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1920 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1925 echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.
$ac_ext >&5
1928 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1929 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1930 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1931 See \`config.log' for more details." >&5
1932 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1933 See \`config.log' for more details." >&2;}
1934 { (exit 1); exit 1; }; }; }
1937 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1939 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1940 echo "${ECHO_T}$ac_cv_objext" >&6
1941 OBJEXT
=$ac_cv_objext
1943 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1944 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1945 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 cat >conftest.
$ac_ext <<_ACEOF
1951 cat confdefs.h
>>conftest.
$ac_ext
1952 cat >>conftest.
$ac_ext <<_ACEOF
1953 /* end confdefs.h. */
1966 rm -f conftest.
$ac_objext
1967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1968 (eval $ac_compile) 2>conftest.er1
1970 grep -v '^ *+' conftest.er1
>conftest.err
1972 cat conftest.err
>&5
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); } &&
1975 { ac_try
='test -z "$ac_c_werror_flag"
1976 || test ! -s conftest.err'
1977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981 (exit $ac_status); }; } &&
1982 { ac_try
='test -s conftest.$ac_objext'
1983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987 (exit $ac_status); }; }; then
1990 echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.
$ac_ext >&5
1995 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1996 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1999 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2000 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2001 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2002 ac_test_CFLAGS
=${CFLAGS+set}
2003 ac_save_CFLAGS
=$CFLAGS
2005 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2006 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2007 if test "${ac_cv_prog_cc_g+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 cat >conftest.
$ac_ext <<_ACEOF
2013 cat confdefs.h
>>conftest.
$ac_ext
2014 cat >>conftest.
$ac_ext <<_ACEOF
2015 /* end confdefs.h. */
2025 rm -f conftest.
$ac_objext
2026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027 (eval $ac_compile) 2>conftest.er1
2029 grep -v '^ *+' conftest.er1
>conftest.err
2031 cat conftest.err
>&5
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); } &&
2034 { ac_try
='test -z "$ac_c_werror_flag"
2035 || test ! -s conftest.err'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; } &&
2041 { ac_try
='test -s conftest.$ac_objext'
2042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; }; then
2049 echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.
$ac_ext >&5
2054 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2056 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2057 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2058 if test "$ac_test_CFLAGS" = set; then
2059 CFLAGS
=$ac_save_CFLAGS
2060 elif test $ac_cv_prog_cc_g = yes; then
2061 if test "$GCC" = yes; then
2067 if test "$GCC" = yes; then
2073 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2074 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2075 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 ac_cv_prog_cc_stdc
=no
2080 cat >conftest.
$ac_ext <<_ACEOF
2083 cat confdefs.h
>>conftest.
$ac_ext
2084 cat >>conftest.
$ac_ext <<_ACEOF
2085 /* end confdefs.h. */
2088 #include <sys/types.h>
2089 #include <sys/stat.h>
2090 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2091 struct buf { int x; };
2092 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2093 static char *e (p, i)
2099 static char *f (char * (*g) (char **, int), char **p, ...)
2104 s = g (p, va_arg (v,int));
2109 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2110 function prototypes and stuff, but not '\xHH' hex character constants.
2111 These don't provoke an error unfortunately, instead are silently treated
2112 as 'x'. The following induces an error, until -std1 is added to get
2113 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2114 array size at least. It's necessary to write '\x00'==0 to get something
2115 that's true only with -std1. */
2116 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2118 int test (int i, double x);
2119 struct s1 {int (*f) (int a);};
2120 struct s2 {int (*f) (double a);};
2121 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2127 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2132 # Don't try gcc -ansi; that turns off useful extensions and
2133 # breaks some systems' header files.
2134 # AIX -qlanglvl=ansi
2135 # Ultrix and OSF/1 -std1
2136 # HP-UX 10.20 and later -Ae
2137 # HP-UX older versions -Aa -D_HPUX_SOURCE
2138 # SVR4 -Xc -D__EXTENSIONS__
2139 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2141 CC
="$ac_save_CC $ac_arg"
2142 rm -f conftest.
$ac_objext
2143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144 (eval $ac_compile) 2>conftest.er1
2146 grep -v '^ *+' conftest.er1
>conftest.err
2148 cat conftest.err
>&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); } &&
2151 { ac_try
='test -z "$ac_c_werror_flag"
2152 || test ! -s conftest.err'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; } &&
2158 { ac_try
='test -s conftest.$ac_objext'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; }; then
2164 ac_cv_prog_cc_stdc
=$ac_arg
2167 echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.
$ac_ext >&5
2171 rm -f conftest.err conftest.
$ac_objext
2173 rm -f conftest.
$ac_ext conftest.
$ac_objext
2178 case "x$ac_cv_prog_cc_stdc" in
2180 echo "$as_me:$LINENO: result: none needed" >&5
2181 echo "${ECHO_T}none needed" >&6 ;;
2183 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2184 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2185 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2188 # Some people use a C++ compiler to compile C. Since we use `exit',
2189 # in C++ we need to declare it. In case someone uses the same compiler
2190 # for both compiling C and C++ we need to have the C++ compiler decide
2191 # the declaration of exit, since it's the most demanding environment.
2192 cat >conftest.
$ac_ext <<_ACEOF
2197 rm -f conftest.
$ac_objext
2198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>conftest.er1
2201 grep -v '^ *+' conftest.er1
>conftest.err
2203 cat conftest.err
>&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); } &&
2206 { ac_try
='test -z "$ac_c_werror_flag"
2207 || test ! -s conftest.err'
2208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; } &&
2213 { ac_try
='test -s conftest.$ac_objext'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2219 for ac_declaration
in \
2221 'extern "C" void std::exit (int) throw (); using std::exit;' \
2222 'extern "C" void std::exit (int); using std::exit;' \
2223 'extern "C" void exit (int) throw ();' \
2224 'extern "C" void exit (int);' \
2227 cat >conftest.
$ac_ext <<_ACEOF
2230 cat confdefs.h
>>conftest.
$ac_ext
2231 cat >>conftest.
$ac_ext <<_ACEOF
2232 /* end confdefs.h. */
2243 rm -f conftest.
$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>conftest.er1
2247 grep -v '^ *+' conftest.er1
>conftest.err
2249 cat conftest.err
>&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); } &&
2252 { ac_try
='test -z "$ac_c_werror_flag"
2253 || test ! -s conftest.err'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; } &&
2259 { ac_try
='test -s conftest.$ac_objext'
2260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; }; then
2267 echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.
$ac_ext >&5
2272 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2273 cat >conftest.
$ac_ext <<_ACEOF
2276 cat confdefs.h
>>conftest.
$ac_ext
2277 cat >>conftest.
$ac_ext <<_ACEOF
2278 /* end confdefs.h. */
2288 rm -f conftest.
$ac_objext
2289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290 (eval $ac_compile) 2>conftest.er1
2292 grep -v '^ *+' conftest.er1
>conftest.err
2294 cat conftest.err
>&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); } &&
2297 { ac_try
='test -z "$ac_c_werror_flag"
2298 || test ! -s conftest.err'
2299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; } &&
2304 { ac_try
='test -s conftest.$ac_objext'
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; }; then
2312 echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.
$ac_ext >&5
2316 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2319 if test -n "$ac_declaration"; then
2320 echo '#ifdef __cplusplus' >>confdefs.h
2321 echo $ac_declaration >>confdefs.h
2322 echo '#endif' >>confdefs.h
2326 echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.
$ac_ext >&5
2330 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2332 ac_cpp
='$CPP $CPPFLAGS'
2333 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2338 cat >>confdefs.h
<<\_ACEOF
2339 #define _GNU_SOURCE 1
2345 ac_cpp
='$CPP $CPPFLAGS'
2346 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2349 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2350 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2351 # On Suns, sometimes $CPP names a directory.
2352 if test -n "$CPP" && test -d "$CPP"; then
2355 if test -z "$CPP"; then
2356 if test "${ac_cv_prog_CPP+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 # Double quotes because CPP needs to be expanded
2360 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2363 for ac_c_preproc_warn_flag
in '' yes
2365 # Use a header file that comes with gcc, so configuring glibc
2366 # with a fresh cross-compiler works.
2367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2368 # <limits.h> exists even on freestanding compilers.
2369 # On the NeXT, cc -E runs the code through the compiler's parser,
2370 # not just through cpp. "Syntax error" is here to catch this case.
2371 cat >conftest.
$ac_ext <<_ACEOF
2374 cat confdefs.h
>>conftest.
$ac_ext
2375 cat >>conftest.
$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2378 # include <limits.h>
2380 # include <assert.h>
2384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2385 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2387 grep -v '^ *+' conftest.er1
>conftest.err
2389 cat conftest.err
>&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } >/dev
/null
; then
2392 if test -s conftest.err
; then
2393 ac_cpp_err
=$ac_c_preproc_warn_flag
2394 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2401 if test -z "$ac_cpp_err"; then
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.
$ac_ext >&5
2407 # Broken: fails on valid input.
2410 rm -f conftest.err conftest.
$ac_ext
2412 # OK, works on sane cases. Now check whether non-existent headers
2413 # can be detected and how.
2414 cat >conftest.
$ac_ext <<_ACEOF
2417 cat confdefs.h
>>conftest.
$ac_ext
2418 cat >>conftest.
$ac_ext <<_ACEOF
2419 /* end confdefs.h. */
2420 #include <ac_nonexistent.h>
2422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2423 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2425 grep -v '^ *+' conftest.er1
>conftest.err
2427 cat conftest.err
>&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); } >/dev
/null
; then
2430 if test -s conftest.err
; then
2431 ac_cpp_err
=$ac_c_preproc_warn_flag
2432 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2439 if test -z "$ac_cpp_err"; then
2440 # Broken: success on invalid input.
2443 echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.
$ac_ext >&5
2446 # Passes both tests.
2450 rm -f conftest.err conftest.
$ac_ext
2453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2454 rm -f conftest.err conftest.
$ac_ext
2455 if $ac_preproc_ok; then
2467 echo "$as_me:$LINENO: result: $CPP" >&5
2468 echo "${ECHO_T}$CPP" >&6
2470 for ac_c_preproc_warn_flag
in '' yes
2472 # Use a header file that comes with gcc, so configuring glibc
2473 # with a fresh cross-compiler works.
2474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2475 # <limits.h> exists even on freestanding compilers.
2476 # On the NeXT, cc -E runs the code through the compiler's parser,
2477 # not just through cpp. "Syntax error" is here to catch this case.
2478 cat >conftest.
$ac_ext <<_ACEOF
2481 cat confdefs.h
>>conftest.
$ac_ext
2482 cat >>conftest.
$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2485 # include <limits.h>
2487 # include <assert.h>
2491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2492 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2494 grep -v '^ *+' conftest.er1
>conftest.err
2496 cat conftest.err
>&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } >/dev
/null
; then
2499 if test -s conftest.err
; then
2500 ac_cpp_err
=$ac_c_preproc_warn_flag
2501 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2508 if test -z "$ac_cpp_err"; then
2511 echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.
$ac_ext >&5
2514 # Broken: fails on valid input.
2517 rm -f conftest.err conftest.
$ac_ext
2519 # OK, works on sane cases. Now check whether non-existent headers
2520 # can be detected and how.
2521 cat >conftest.
$ac_ext <<_ACEOF
2524 cat confdefs.h
>>conftest.
$ac_ext
2525 cat >>conftest.
$ac_ext <<_ACEOF
2526 /* end confdefs.h. */
2527 #include <ac_nonexistent.h>
2529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2530 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2532 grep -v '^ *+' conftest.er1
>conftest.err
2534 cat conftest.err
>&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } >/dev
/null
; then
2537 if test -s conftest.err
; then
2538 ac_cpp_err
=$ac_c_preproc_warn_flag
2539 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2546 if test -z "$ac_cpp_err"; then
2547 # Broken: success on invalid input.
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.
$ac_ext >&5
2553 # Passes both tests.
2557 rm -f conftest.err conftest.
$ac_ext
2560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2561 rm -f conftest.err conftest.
$ac_ext
2562 if $ac_preproc_ok; then
2565 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2566 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2568 See \`config.log' for more details." >&5
2569 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2570 See \`config.log' for more details." >&2;}
2571 { (exit 1); exit 1; }; }; }
2575 ac_cpp
='$CPP $CPPFLAGS'
2576 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2577 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2578 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2581 echo "$as_me:$LINENO: checking for egrep" >&5
2582 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2583 if test "${ac_cv_prog_egrep+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2587 then ac_cv_prog_egrep
='grep -E'
2588 else ac_cv_prog_egrep
='egrep'
2591 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2592 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2593 EGREP
=$ac_cv_prog_egrep
2597 echo "$as_me:$LINENO: checking for AIX" >&5
2598 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2599 cat >conftest.
$ac_ext <<_ACEOF
2602 cat confdefs.h
>>conftest.
$ac_ext
2603 cat >>conftest.
$ac_ext <<_ACEOF
2604 /* end confdefs.h. */
2610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2611 $EGREP "yes" >/dev
/null
2>&1; then
2612 echo "$as_me:$LINENO: result: yes" >&5
2613 echo "${ECHO_T}yes" >&6
2614 cat >>confdefs.h
<<\_ACEOF
2615 #define _ALL_SOURCE 1
2619 echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6
2625 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2626 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2627 if test "${ac_cv_search_strerror+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 ac_func_search_save_LIBS
=$LIBS
2631 ac_cv_search_strerror
=no
2632 cat >conftest.
$ac_ext <<_ACEOF
2635 cat confdefs.h
>>conftest.
$ac_ext
2636 cat >>conftest.
$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2639 /* Override any gcc2 internal prototype to avoid an error. */
2643 /* We use char because int might match the return type of a gcc2
2644 builtin and then its argument prototype would still apply. */
2654 rm -f conftest.
$ac_objext conftest
$ac_exeext
2655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2656 (eval $ac_link) 2>conftest.er1
2658 grep -v '^ *+' conftest.er1
>conftest.err
2660 cat conftest.err
>&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); } &&
2663 { ac_try
='test -z "$ac_c_werror_flag"
2664 || test ! -s conftest.err'
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; } &&
2670 { ac_try
='test -s conftest$ac_exeext'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; }; then
2676 ac_cv_search_strerror
="none required"
2678 echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.
$ac_ext >&5
2682 rm -f conftest.err conftest.
$ac_objext \
2683 conftest
$ac_exeext conftest.
$ac_ext
2684 if test "$ac_cv_search_strerror" = no
; then
2685 for ac_lib
in cposix
; do
2686 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
2687 cat >conftest.
$ac_ext <<_ACEOF
2690 cat confdefs.h
>>conftest.
$ac_ext
2691 cat >>conftest.
$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2694 /* Override any gcc2 internal prototype to avoid an error. */
2698 /* We use char because int might match the return type of a gcc2
2699 builtin and then its argument prototype would still apply. */
2709 rm -f conftest.
$ac_objext conftest
$ac_exeext
2710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2711 (eval $ac_link) 2>conftest.er1
2713 grep -v '^ *+' conftest.er1
>conftest.err
2715 cat conftest.err
>&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try
='test -z "$ac_c_werror_flag"
2719 || test ! -s conftest.err'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; } &&
2725 { ac_try
='test -s conftest$ac_exeext'
2726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; }; then
2731 ac_cv_search_strerror
="-l$ac_lib"
2734 echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.
$ac_ext >&5
2738 rm -f conftest.err conftest.
$ac_objext \
2739 conftest
$ac_exeext conftest.
$ac_ext
2742 LIBS
=$ac_func_search_save_LIBS
2744 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2745 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2746 if test "$ac_cv_search_strerror" != no
; then
2747 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
2751 if test -n "$ac_tool_prefix"; then
2752 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2753 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2754 echo "$as_me:$LINENO: checking for $ac_word" >&5
2755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2756 if test "${ac_cv_prog_RANLIB+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 if test -n "$RANLIB"; then
2760 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2766 test -z "$as_dir" && as_dir
=.
2767 for ac_exec_ext
in '' $ac_executable_extensions; do
2768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2769 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 RANLIB
=$ac_cv_prog_RANLIB
2779 if test -n "$RANLIB"; then
2780 echo "$as_me:$LINENO: result: $RANLIB" >&5
2781 echo "${ECHO_T}$RANLIB" >&6
2783 echo "$as_me:$LINENO: result: no" >&5
2784 echo "${ECHO_T}no" >&6
2788 if test -z "$ac_cv_prog_RANLIB"; then
2789 ac_ct_RANLIB
=$RANLIB
2790 # Extract the first word of "ranlib", so it can be a program name with args.
2791 set dummy ranlib
; ac_word
=$2
2792 echo "$as_me:$LINENO: checking for $ac_word" >&5
2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2794 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 if test -n "$ac_ct_RANLIB"; then
2798 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2800 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2804 test -z "$as_dir" && as_dir
=.
2805 for ac_exec_ext
in '' $ac_executable_extensions; do
2806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2817 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2818 if test -n "$ac_ct_RANLIB"; then
2819 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2820 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2822 echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6
2826 RANLIB
=$ac_ct_RANLIB
2828 RANLIB
="$ac_cv_prog_RANLIB"
2831 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2832 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2833 if test "${ac_cv_header_stdc+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 cat >conftest.
$ac_ext <<_ACEOF
2839 cat confdefs.h
>>conftest.
$ac_ext
2840 cat >>conftest.
$ac_ext <<_ACEOF
2841 /* end confdefs.h. */
2855 rm -f conftest.
$ac_objext
2856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2857 (eval $ac_compile) 2>conftest.er1
2859 grep -v '^ *+' conftest.er1
>conftest.err
2861 cat conftest.err
>&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); } &&
2864 { ac_try
='test -z "$ac_c_werror_flag"
2865 || test ! -s conftest.err'
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; } &&
2871 { ac_try
='test -s conftest.$ac_objext'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; }; then
2877 ac_cv_header_stdc
=yes
2879 echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.
$ac_ext >&5
2882 ac_cv_header_stdc
=no
2884 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2886 if test $ac_cv_header_stdc = yes; then
2887 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2888 cat >conftest.
$ac_ext <<_ACEOF
2891 cat confdefs.h
>>conftest.
$ac_ext
2892 cat >>conftest.
$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2898 $EGREP "memchr" >/dev
/null
2>&1; then
2901 ac_cv_header_stdc
=no
2907 if test $ac_cv_header_stdc = yes; then
2908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2909 cat >conftest.
$ac_ext <<_ACEOF
2912 cat confdefs.h
>>conftest.
$ac_ext
2913 cat >>conftest.
$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2919 $EGREP "free" >/dev
/null
2>&1; then
2922 ac_cv_header_stdc
=no
2928 if test $ac_cv_header_stdc = yes; then
2929 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2930 if test "$cross_compiling" = yes; then
2933 cat >conftest.
$ac_ext <<_ACEOF
2936 cat confdefs.h
>>conftest.
$ac_ext
2937 cat >>conftest.
$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2940 #if ((' ' & 0x0FF) == 0x020)
2941 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2942 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2944 # define ISLOWER(c) \
2945 (('a' <= (c) && (c) <= 'i') \
2946 || ('j' <= (c) && (c) <= 'r') \
2947 || ('s' <= (c) && (c) <= 'z'))
2948 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2956 for (i = 0; i < 256; i++)
2957 if (XOR (islower (i), ISLOWER (i))
2958 || toupper (i) != TOUPPER (i))
2963 rm -f conftest
$ac_exeext
2964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2965 (eval $ac_link) 2>&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2976 echo "$as_me: program exited with status $ac_status" >&5
2977 echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.
$ac_ext >&5
2981 ac_cv_header_stdc
=no
2983 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2987 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2988 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2989 if test $ac_cv_header_stdc = yes; then
2991 cat >>confdefs.h
<<\_ACEOF
2992 #define STDC_HEADERS 1
2997 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3007 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3008 inttypes.h stdint.h unistd.h
3010 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3011 echo "$as_me:$LINENO: checking for $ac_header" >&5
3012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 cat >conftest.
$ac_ext <<_ACEOF
3019 cat confdefs.h
>>conftest.
$ac_ext
3020 cat >>conftest.
$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3022 $ac_includes_default
3024 #include <$ac_header>
3026 rm -f conftest.
$ac_objext
3027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3028 (eval $ac_compile) 2>conftest.er1
3030 grep -v '^ *+' conftest.er1
>conftest.err
3032 cat conftest.err
>&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try
='test -z "$ac_c_werror_flag"
3036 || test ! -s conftest.err'
3037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; } &&
3042 { ac_try
='test -s conftest.$ac_objext'
3043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3048 eval "$as_ac_Header=yes"
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.
$ac_ext >&5
3053 eval "$as_ac_Header=no"
3055 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3060 cat >>confdefs.h
<<_ACEOF
3061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3070 if test "${ac_cv_header_minix_config_h+set}" = set; then
3071 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3072 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3073 if test "${ac_cv_header_minix_config_h+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3077 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3079 # Is the header compilable?
3080 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3081 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3082 cat >conftest.
$ac_ext <<_ACEOF
3085 cat confdefs.h
>>conftest.
$ac_ext
3086 cat >>conftest.
$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3088 $ac_includes_default
3089 #include <minix/config.h>
3091 rm -f conftest.
$ac_objext
3092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3093 (eval $ac_compile) 2>conftest.er1
3095 grep -v '^ *+' conftest.er1
>conftest.err
3097 cat conftest.err
>&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } &&
3100 { ac_try
='test -z "$ac_c_werror_flag"
3101 || test ! -s conftest.err'
3102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; } &&
3107 { ac_try
='test -s conftest.$ac_objext'
3108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3113 ac_header_compiler
=yes
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.
$ac_ext >&5
3118 ac_header_compiler
=no
3120 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3122 echo "${ECHO_T}$ac_header_compiler" >&6
3124 # Is the header present?
3125 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3126 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3127 cat >conftest.
$ac_ext <<_ACEOF
3130 cat confdefs.h
>>conftest.
$ac_ext
3131 cat >>conftest.
$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3133 #include <minix/config.h>
3135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3136 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3138 grep -v '^ *+' conftest.er1
>conftest.err
3140 cat conftest.err
>&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } >/dev
/null
; then
3143 if test -s conftest.err
; then
3144 ac_cpp_err
=$ac_c_preproc_warn_flag
3145 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3152 if test -z "$ac_cpp_err"; then
3153 ac_header_preproc
=yes
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.
$ac_ext >&5
3158 ac_header_preproc
=no
3160 rm -f conftest.err conftest.
$ac_ext
3161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3162 echo "${ECHO_T}$ac_header_preproc" >&6
3164 # So? What about this header?
3165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3167 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3168 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3169 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3170 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3171 ac_header_preproc
=yes
3174 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3175 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3176 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3177 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3178 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3179 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3180 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3181 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3182 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3183 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3184 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3185 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3188 ## ------------------------------------------ ##
3189 ## Report this to the AC_PACKAGE_NAME lists. ##
3190 ## ------------------------------------------ ##
3193 sed "s/^/$as_me: WARNING: /" >&2
3196 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3197 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3198 if test "${ac_cv_header_minix_config_h+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 ac_cv_header_minix_config_h
=$ac_header_preproc
3203 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3204 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3207 if test $ac_cv_header_minix_config_h = yes; then
3214 if test "$MINIX" = yes; then
3216 cat >>confdefs.h
<<\_ACEOF
3217 #define _POSIX_SOURCE 1
3221 cat >>confdefs.h
<<\_ACEOF
3222 #define _POSIX_1_SOURCE 2
3226 cat >>confdefs.h
<<\_ACEOF
3234 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3235 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3236 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 cat >conftest.
$ac_ext <<_ACEOF
3242 cat confdefs.h
>>conftest.
$ac_ext
3243 cat >>conftest.
$ac_ext <<_ACEOF
3244 /* end confdefs.h. */
3246 # define __EXTENSIONS__ 1
3247 $ac_includes_default
3256 rm -f conftest.
$ac_objext
3257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3258 (eval $ac_compile) 2>conftest.er1
3260 grep -v '^ *+' conftest.er1
>conftest.err
3262 cat conftest.err
>&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } &&
3265 { ac_try
='test -z "$ac_c_werror_flag"
3266 || test ! -s conftest.err'
3267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; } &&
3272 { ac_try
='test -s conftest.$ac_objext'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; }; then
3278 ac_cv_safe_to_define___extensions__
=yes
3280 echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.
$ac_ext >&5
3283 ac_cv_safe_to_define___extensions__
=no
3285 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3287 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3288 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3289 test $ac_cv_safe_to_define___extensions__ = yes &&
3290 cat >>confdefs.h
<<\_ACEOF
3291 #define __EXTENSIONS__ 1
3294 cat >>confdefs.h
<<\_ACEOF
3295 #define _ALL_SOURCE 1
3298 cat >>confdefs.h
<<\_ACEOF
3299 #define _GNU_SOURCE 1
3302 cat >>confdefs.h
<<\_ACEOF
3303 #define _POSIX_PTHREAD_SEMANTICS 1
3306 cat >>confdefs.h
<<\_ACEOF
3307 #define _TANDEM_SOURCE 1
3319 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3320 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3321 if test "${am_cv_prog_cc_stdc+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 am_cv_prog_cc_stdc
=no
3326 # Don't try gcc -ansi; that turns off useful extensions and
3327 # breaks some systems' header files.
3328 # AIX -qlanglvl=ansi
3329 # Ultrix and OSF/1 -std1
3330 # HP-UX 10.20 and later -Ae
3331 # HP-UX older versions -Aa -D_HPUX_SOURCE
3332 # SVR4 -Xc -D__EXTENSIONS__
3333 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3335 CC
="$ac_save_CC $ac_arg"
3336 cat >conftest.
$ac_ext <<_ACEOF
3339 cat confdefs.h
>>conftest.
$ac_ext
3340 cat >>conftest.
$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3344 #include <sys/types.h>
3345 #include <sys/stat.h>
3346 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3347 struct buf { int x; };
3348 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3349 static char *e (p, i)
3355 static char *f (char * (*g) (char **, int), char **p, ...)
3360 s = g (p, va_arg (v,int));
3364 int test (int i, double x);
3365 struct s1 {int (*f) (int a);};
3366 struct s2 {int (*f) (double a);};
3367 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3375 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3381 rm -f conftest.
$ac_objext
3382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3383 (eval $ac_compile) 2>conftest.er1
3385 grep -v '^ *+' conftest.er1
>conftest.err
3387 cat conftest.err
>&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } &&
3390 { ac_try
='test -z "$ac_c_werror_flag"
3391 || test ! -s conftest.err'
3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; } &&
3397 { ac_try
='test -s conftest.$ac_objext'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
3403 am_cv_prog_cc_stdc
="$ac_arg"; break
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.
$ac_ext >&5
3409 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3415 if test -z "$am_cv_prog_cc_stdc"; then
3416 echo "$as_me:$LINENO: result: none needed" >&5
3417 echo "${ECHO_T}none needed" >&6
3419 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3420 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3422 case "x$am_cv_prog_cc_stdc" in
3424 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
3429 for ac_dir
in ..
$srcdir/..
; do
3430 if test -f $ac_dir/install-sh
; then
3432 ac_install_sh
="$ac_aux_dir/install-sh -c"
3434 elif test -f $ac_dir/install.sh
; then
3436 ac_install_sh
="$ac_aux_dir/install.sh -c"
3438 elif test -f $ac_dir/shtool
; then
3440 ac_install_sh
="$ac_aux_dir/shtool install -c"
3444 if test -z "$ac_aux_dir"; then
3445 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3446 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3447 { (exit 1); exit 1; }; }
3449 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3450 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3451 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3453 # Make sure we can run config.sub.
3454 $ac_config_sub sun4
>/dev
/null
2>&1 ||
3455 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3456 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3457 { (exit 1); exit 1; }; }
3459 echo "$as_me:$LINENO: checking build system type" >&5
3460 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3461 if test "${ac_cv_build+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 ac_cv_build_alias
=$build_alias
3465 test -z "$ac_cv_build_alias" &&
3466 ac_cv_build_alias
=`$ac_config_guess`
3467 test -z "$ac_cv_build_alias" &&
3468 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3469 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3470 { (exit 1); exit 1; }; }
3471 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
3472 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3473 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3474 { (exit 1); exit 1; }; }
3477 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3478 echo "${ECHO_T}$ac_cv_build" >&6
3480 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3481 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3482 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3485 echo "$as_me:$LINENO: checking host system type" >&5
3486 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3487 if test "${ac_cv_host+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 ac_cv_host_alias
=$host_alias
3491 test -z "$ac_cv_host_alias" &&
3492 ac_cv_host_alias
=$ac_cv_build_alias
3493 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
3494 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3495 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3496 { (exit 1); exit 1; }; }
3499 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3500 echo "${ECHO_T}$ac_cv_host" >&6
3502 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3503 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3504 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3507 echo "$as_me:$LINENO: checking target system type" >&5
3508 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3509 if test "${ac_cv_target+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 ac_cv_target_alias
=$target_alias
3513 test "x$ac_cv_target_alias" = "x" &&
3514 ac_cv_target_alias
=$ac_cv_host_alias
3515 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
3516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3517 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3518 { (exit 1); exit 1; }; }
3521 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3522 echo "${ECHO_T}$ac_cv_target" >&6
3523 target
=$ac_cv_target
3524 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3525 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3526 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3529 # The aliases save the names the user supplied, while $host etc.
3530 # will get canonicalized.
3531 test -n "$target_alias" &&
3532 test "$program_prefix$program_suffix$program_transform_name" = \
3534 program_prefix
=${target_alias}-
3536 # Dependency checking.
3537 rm -rf .tst
2>/dev
/null
3538 mkdir .tst
2>/dev
/null
3539 if test -d .tst
; then
3544 rmdir .tst
2>/dev
/null
3546 DEPDIR
="${am__leading_dot}deps"
3548 ac_config_commands
="$ac_config_commands depdir"
3551 depcc
="$CC" am_compiler_list
=
3553 am_depcomp
=$ac_aux_dir/depcomp
3554 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3555 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3556 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 if test -f "$am_depcomp"; then
3560 # We make a subdir and do the tests there. Otherwise we can end up
3561 # making bogus files that we don't know about and never remove. For
3562 # instance it was reported that on HP-UX the gcc test will end up
3563 # making a dummy file named `D' -- because `-MD' means `put the output
3566 # Copy depcomp to subdir because otherwise we won't find it if we're
3567 # using a relative directory.
3568 cp "$am_depcomp" conftest.dir
3570 # We will build objects and dependencies in a subdirectory because
3571 # it helps to detect inapplicable dependency modes. For instance
3572 # both Tru64's cc and ICC support -MD to output dependencies as a
3573 # side effect of compilation, but ICC will put the dependencies in
3574 # the current directory while Tru64 will put them in the object
3578 am_cv_CC_dependencies_compiler_type
=none
3579 if test "$am_compiler_list" = ""; then
3580 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3582 for depmode
in $am_compiler_list; do
3583 if test $depmode = none
; then break; fi
3585 echo "$as_me:$LINENO: trying $depmode" >&5
3586 # Setup a source with many dependencies, because some compilers
3587 # like to wrap large dependency lists on column 80 (with \), and
3588 # we should not choose a depcomp mode which is confused by this.
3590 # We need to recreate these files for each test, as the compiler may
3591 # overwrite some of them when testing with obscure command lines.
3592 # This happens at least with the AIX C compiler.
3594 for i
in 1 2 3 4 5 6; do
3595 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3596 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3597 # Solaris 8's {/usr,}/bin/sh.
3598 touch sub
/conftst
$i.h
3600 echo "include sub/conftest.Po" > confmf
3602 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3603 # mode. It turns out that the SunPro C++ compiler does not properly
3604 # handle `-M -o', and we need to detect this.
3605 depcmd
="depmode=$depmode \
3606 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3607 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3608 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
3609 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
3610 if env
$depcmd > conftest.err
2>&1 &&
3611 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
3612 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
3613 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
3614 # icc doesn't choke on unknown options, it will just issue warnings
3615 # or remarks (even with -Werror). So we grep stderr for any message
3616 # that says an option was ignored or not supported.
3617 # When given -MP, icc 7.0 and 7.1 complain thusly:
3618 # icc: Command line warning: ignoring option '-M'; no argument required
3619 # The diagnosis changed in icc 8.0:
3620 # icc: Command line remark: option '-MP' not supported
3621 if (grep 'ignoring option' conftest.err ||
3622 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3623 am_cv_CC_dependencies_compiler_type
=$depmode
3624 echo "$as_me:$LINENO: success" >&5
3628 echo "$as_me:$LINENO: failure, diagnostics are:" >&5
3629 sed -e 's/^/| /' < conftest.err
>&5
3635 am_cv_CC_dependencies_compiler_type
=none
3639 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3640 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3641 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
3642 then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
3643 echo "$as_me: error: no usable dependency style found" >&2;}
3644 { (exit 1); exit 1; }; }
3645 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3650 # Check for the 'make' the user wants to use.
3653 # Extract the first word of "$ac_prog", so it can be a program name with args.
3654 set dummy
$ac_prog; ac_word
=$2
3655 echo "$as_me:$LINENO: checking for $ac_word" >&5
3656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3657 if test "${ac_cv_prog_MAKE+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 if test -n "$MAKE"; then
3661 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
3663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3667 test -z "$as_dir" && as_dir
=.
3668 for ac_exec_ext
in '' $ac_executable_extensions; do
3669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670 ac_cv_prog_MAKE
="$ac_prog"
3671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 MAKE
=$ac_cv_prog_MAKE
3680 if test -n "$MAKE"; then
3681 echo "$as_me:$LINENO: result: $MAKE" >&5
3682 echo "${ECHO_T}$MAKE" >&6
3684 echo "$as_me:$LINENO: result: no" >&5
3685 echo "${ECHO_T}no" >&6
3688 test -n "$MAKE" && break
3692 case "`$MAKE --version 2>&1 | sed 1q`" in
3699 if test "$MAKE_IS_GNU" = yes; then
3707 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3708 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3709 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
3710 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 cat >conftest.
make <<\_ACEOF
3715 @
echo 'ac_maketemp="$(MAKE)"'
3717 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3718 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3719 if test -n "$ac_maketemp"; then
3720 eval ac_cv_prog_make_
${ac_make}_set
=yes
3722 eval ac_cv_prog_make_
${ac_make}_set
=no
3726 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3727 echo "$as_me:$LINENO: result: yes" >&5
3728 echo "${ECHO_T}yes" >&6
3731 echo "$as_me:$LINENO: result: no" >&5
3732 echo "${ECHO_T}no" >&6
3733 SET_MAKE
="MAKE=${MAKE-make}"
3748 # If we haven't got the data from the intl directory,
3749 # assume NLS is disabled.
3758 if test -f ..
/intl
/config.intl
; then
3759 . ..
/intl
/config.intl
3761 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3762 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3763 if test x
"$USE_NLS" != xyes
; then
3764 echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6
3767 echo "$as_me:$LINENO: result: yes" >&5
3768 echo "${ECHO_T}yes" >&6
3770 cat >>confdefs.h
<<\_ACEOF
3771 #define ENABLE_NLS 1
3775 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3776 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3777 # Look for .po and .gmo files in the source directory.
3780 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
3781 # If there aren't any .gmo files the shell will give us the
3782 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3784 case "$cat" in *\
**)
3787 # The quadruple backslash is collapsed to a double backslash
3788 # by the backticks, then collapsed again by the double quotes,
3789 # leaving us with one backslash in the sed expression (right
3790 # before the dot that mustn't act as a wildcard).
3791 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3792 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
3793 # The user is allowed to set LINGUAS to a list of languages to
3794 # install catalogs for. If it's empty that means "all of them."
3795 if test "x$LINGUAS" = x
; then
3796 CATALOGS
="$CATALOGS $cat"
3797 XLINGUAS
="$XLINGUAS $lang"
3799 case "$LINGUAS" in *$lang*)
3800 CATALOGS
="$CATALOGS $cat"
3801 XLINGUAS
="$XLINGUAS $lang"
3807 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3808 echo "${ECHO_T}$LINGUAS" >&6
3821 localedir
='${datadir}/locale'
3824 if test x
"$USE_NLS" = xyes
; then
3825 CONFIG_ALL
="$CONFIG_ALL all-po"
3826 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
3827 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
3828 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
3844 GNULIB_STRCASESTR
=0;
3851 GNULIB_MBSCASECMP
=0;
3852 GNULIB_MBSNCASECMP
=0;
3853 GNULIB_MBSPCASECMP
=0;
3854 GNULIB_MBSCASESTR
=0;
3864 HAVE_DECL_MEMRCHR
=1;
3870 HAVE_DECL_STRNDUP
=1;
3871 HAVE_DECL_STRNLEN
=1;
3875 HAVE_DECL_STRTOK_R
=1;
3876 HAVE_DECL_STRERROR
=1;
3877 HAVE_DECL_STRSIGNAL
=1;
3879 REPLACE_STRSIGNAL
=0;
3881 REPLACE_STRCASESTR
=0;
3885 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3886 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3887 if test "${ac_cv_have_decl_memmem+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 cat >conftest.
$ac_ext <<_ACEOF
3893 cat confdefs.h
>>conftest.
$ac_ext
3894 cat >>conftest.
$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3896 $ac_includes_default
3901 char *p = (char *) memmem;
3908 rm -f conftest.
$ac_objext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910 (eval $ac_compile) 2>conftest.er1
3912 grep -v '^ *+' conftest.er1
>conftest.err
3914 cat conftest.err
>&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } &&
3917 { ac_try
='test -z "$ac_c_werror_flag"
3918 || test ! -s conftest.err'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; } &&
3924 { ac_try
='test -s conftest.$ac_objext'
3925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); }; }; then
3930 ac_cv_have_decl_memmem
=yes
3932 echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.
$ac_ext >&5
3935 ac_cv_have_decl_memmem
=no
3937 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3939 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3940 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3941 if test $ac_cv_have_decl_memmem = yes; then
3943 cat >>confdefs.h
<<_ACEOF
3944 #define HAVE_DECL_MEMMEM 1
3949 cat >>confdefs.h
<<_ACEOF
3950 #define HAVE_DECL_MEMMEM 0
3970 for ac_func
in memmem
3972 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3973 echo "$as_me:$LINENO: checking for $ac_func" >&5
3974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3975 if eval "test \"\${$as_ac_var+set}\" = set"; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 cat >conftest.
$ac_ext <<_ACEOF
3981 cat confdefs.h
>>conftest.
$ac_ext
3982 cat >>conftest.
$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3986 #define $ac_func innocuous_$ac_func
3988 /* System header to define __stub macros and hopefully few prototypes,
3989 which can conflict with char $ac_func (); below.
3990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3991 <limits.h> exists even on freestanding compilers. */
3994 # include <limits.h>
3996 # include <assert.h>
4001 /* Override any gcc2 internal prototype to avoid an error. */
4006 /* We use char because int might match the return type of a gcc2
4007 builtin and then its argument prototype would still apply. */
4009 /* The GNU C library defines this for functions which it implements
4010 to always fail with ENOSYS. Some functions are actually named
4011 something starting with __ and the normal name is an alias. */
4012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4015 char (*f) () = $ac_func;
4024 return f != $ac_func;
4029 rm -f conftest.
$ac_objext conftest
$ac_exeext
4030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4031 (eval $ac_link) 2>conftest.er1
4033 grep -v '^ *+' conftest.er1
>conftest.err
4035 cat conftest.err
>&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } &&
4038 { ac_try
='test -z "$ac_c_werror_flag"
4039 || test ! -s conftest.err'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; } &&
4045 { ac_try
='test -s conftest$ac_exeext'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; }; then
4051 eval "$as_ac_var=yes"
4053 echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.
$ac_ext >&5
4056 eval "$as_ac_var=no"
4058 rm -f conftest.err conftest.
$ac_objext \
4059 conftest
$ac_exeext conftest.
$ac_ext
4061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4063 if test `eval echo '${'$as_ac_var'}'` = yes; then
4064 cat >>confdefs.h
<<_ACEOF
4065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4070 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
4083 if test $ac_cv_have_decl_memmem = no
; then
4089 echo "$as_me:$LINENO: checking for long long int" >&5
4090 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
4091 if test "${ac_cv_type_long_long_int+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 cat >conftest.
$ac_ext <<_ACEOF
4098 cat confdefs.h
>>conftest.
$ac_ext
4099 cat >>conftest.
$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4101 /* For now, do not test the preprocessor; as of 2007 there are too many
4102 implementations with broken preprocessors. Perhaps this can
4103 be revisited in 2012. In the meantime, code should not expect
4104 #if to work with literals wider than 32 bits. */
4105 /* Test literals. */
4106 long long int ll = 9223372036854775807ll;
4107 long long int nll = -9223372036854775807LL;
4108 unsigned long long int ull = 18446744073709551615ULL;
4109 /* Test constant expressions. */
4110 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4112 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4118 /* Test availability of runtime routines for shift and division. */
4119 long long int llmax = 9223372036854775807ll;
4120 unsigned long long int ullmax = 18446744073709551615ull;
4121 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4122 | (llmax / ll) | (llmax % ll)
4123 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4124 | (ullmax / ull) | (ullmax % ull));
4130 rm -f conftest.
$ac_objext conftest
$ac_exeext
4131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4132 (eval $ac_link) 2>conftest.er1
4134 grep -v '^ *+' conftest.er1
>conftest.err
4136 cat conftest.err
>&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } &&
4139 { ac_try
='test -z "$ac_c_werror_flag"
4140 || test ! -s conftest.err'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; } &&
4146 { ac_try
='test -s conftest$ac_exeext'
4147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; }; then
4152 if test "$cross_compiling" = yes; then
4153 ac_cv_type_long_long_int
=yes
4155 cat >conftest.
$ac_ext <<_ACEOF
4158 cat confdefs.h
>>conftest.
$ac_ext
4159 cat >>conftest.
$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4164 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4165 # define LLONG_MAX (HALF - 1 + HALF)
4170 long long int n = 1;
4174 long long int m = n << i;
4177 if (LLONG_MAX / 2 < m)
4185 rm -f conftest
$ac_exeext
4186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4187 (eval $ac_link) 2>&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4196 ac_cv_type_long_long_int
=yes
4198 echo "$as_me: program exited with status $ac_status" >&5
4199 echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.
$ac_ext >&5
4203 ac_cv_type_long_long_int
=no
4205 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.
$ac_ext >&5
4211 ac_cv_type_long_long_int
=no
4213 rm -f conftest.err conftest.
$ac_objext \
4214 conftest
$ac_exeext conftest.
$ac_ext
4216 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4217 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4218 if test $ac_cv_type_long_long_int = yes; then
4220 cat >>confdefs.h
<<\_ACEOF
4221 #define HAVE_LONG_LONG_INT 1
4227 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4228 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4229 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 cat >conftest.
$ac_ext <<_ACEOF
4236 cat confdefs.h
>>conftest.
$ac_ext
4237 cat >>conftest.
$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4239 /* For now, do not test the preprocessor; as of 2007 there are too many
4240 implementations with broken preprocessors. Perhaps this can
4241 be revisited in 2012. In the meantime, code should not expect
4242 #if to work with literals wider than 32 bits. */
4243 /* Test literals. */
4244 long long int ll = 9223372036854775807ll;
4245 long long int nll = -9223372036854775807LL;
4246 unsigned long long int ull = 18446744073709551615ULL;
4247 /* Test constant expressions. */
4248 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4250 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4256 /* Test availability of runtime routines for shift and division. */
4257 long long int llmax = 9223372036854775807ll;
4258 unsigned long long int ullmax = 18446744073709551615ull;
4259 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4260 | (llmax / ll) | (llmax % ll)
4261 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4262 | (ullmax / ull) | (ullmax % ull));
4268 rm -f conftest.
$ac_objext conftest
$ac_exeext
4269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4270 (eval $ac_link) 2>conftest.er1
4272 grep -v '^ *+' conftest.er1
>conftest.err
4274 cat conftest.err
>&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try
='test -z "$ac_c_werror_flag"
4278 || test ! -s conftest.err'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; } &&
4284 { ac_try
='test -s conftest$ac_exeext'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 ac_cv_type_unsigned_long_long_int
=yes
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.
$ac_ext >&5
4295 ac_cv_type_unsigned_long_long_int
=no
4297 rm -f conftest.err conftest.
$ac_objext \
4298 conftest
$ac_exeext conftest.
$ac_ext
4300 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4301 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4302 if test $ac_cv_type_unsigned_long_long_int = yes; then
4304 cat >>confdefs.h
<<\_ACEOF
4305 #define HAVE_UNSIGNED_LONG_LONG_INT 1
4312 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4313 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4314 if test "${gl_cv_have_include_next+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 rm -rf conftestd1 conftestd2
4318 mkdir conftestd1 conftestd2
4319 cat <<EOF > conftestd1/conftest.h
4320 #define DEFINED_IN_CONFTESTD1
4321 #include_next <conftest.h>
4322 #ifdef DEFINED_IN_CONFTESTD2
4325 #error "include_next doesn't work"
4328 cat <<EOF > conftestd2/conftest.h
4329 #ifndef DEFINED_IN_CONFTESTD1
4330 #error "include_next test doesn't work"
4332 #define DEFINED_IN_CONFTESTD2
4334 save_CPPFLAGS
="$CPPFLAGS"
4335 CPPFLAGS
="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4336 cat >conftest.
$ac_ext <<_ACEOF
4337 #include <conftest.h>
4339 rm -f conftest.
$ac_objext
4340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4341 (eval $ac_compile) 2>conftest.er1
4343 grep -v '^ *+' conftest.er1
>conftest.err
4345 cat conftest.err
>&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } &&
4348 { ac_try
='test -z "$ac_c_werror_flag"
4349 || test ! -s conftest.err'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; } &&
4355 { ac_try
='test -s conftest.$ac_objext'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; }; then
4361 gl_cv_have_include_next
=yes
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.
$ac_ext >&5
4366 gl_cv_have_include_next
=no
4368 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4369 CPPFLAGS
="$save_CPPFLAGS"
4370 rm -rf conftestd1 conftestd2
4373 echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4374 echo "${ECHO_T}$gl_cv_have_include_next" >&6
4375 if test $gl_cv_have_include_next = yes; then
4378 cat >>confdefs.h
<<\_ACEOF
4379 #define HAVE_INCLUDE_NEXT 1
4383 INCLUDE_NEXT
=include_next
4385 INCLUDE_NEXT
=include
4394 for ac_header
in $gl_header_list
4396 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4398 echo "$as_me:$LINENO: checking for $ac_header" >&5
4399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4406 # Is the header compilable?
4407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4409 cat >conftest.
$ac_ext <<_ACEOF
4412 cat confdefs.h
>>conftest.
$ac_ext
4413 cat >>conftest.
$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4415 $ac_includes_default
4416 #include <$ac_header>
4418 rm -f conftest.
$ac_objext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>conftest.er1
4422 grep -v '^ *+' conftest.er1
>conftest.err
4424 cat conftest.err
>&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } &&
4427 { ac_try
='test -z "$ac_c_werror_flag"
4428 || test ! -s conftest.err'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; } &&
4434 { ac_try
='test -s conftest.$ac_objext'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; }; then
4440 ac_header_compiler
=yes
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.
$ac_ext >&5
4445 ac_header_compiler
=no
4447 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4449 echo "${ECHO_T}$ac_header_compiler" >&6
4451 # Is the header present?
4452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4454 cat >conftest.
$ac_ext <<_ACEOF
4457 cat confdefs.h
>>conftest.
$ac_ext
4458 cat >>conftest.
$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4460 #include <$ac_header>
4462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4463 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4465 grep -v '^ *+' conftest.er1
>conftest.err
4467 cat conftest.err
>&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } >/dev
/null
; then
4470 if test -s conftest.err
; then
4471 ac_cpp_err
=$ac_c_preproc_warn_flag
4472 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4479 if test -z "$ac_cpp_err"; then
4480 ac_header_preproc
=yes
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.
$ac_ext >&5
4485 ac_header_preproc
=no
4487 rm -f conftest.err conftest.
$ac_ext
4488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4489 echo "${ECHO_T}$ac_header_preproc" >&6
4491 # So? What about this header?
4492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4498 ac_header_preproc
=yes
4501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4515 ## ------------------------------------------ ##
4516 ## Report this to the AC_PACKAGE_NAME lists. ##
4517 ## ------------------------------------------ ##
4520 sed "s/^/$as_me: WARNING: /" >&2
4523 echo "$as_me:$LINENO: checking for $ac_header" >&5
4524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 eval "$as_ac_Header=\$ac_header_preproc"
4530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4535 cat >>confdefs.h
<<_ACEOF
4536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4554 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4555 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4556 if test "${ac_cv_c_restrict+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 # The order here caters to the fact that C++ does not require restrict.
4561 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
4562 cat >conftest.
$ac_ext <<_ACEOF
4565 cat confdefs.h
>>conftest.
$ac_ext
4566 cat >>conftest.
$ac_ext <<_ACEOF
4567 /* end confdefs.h. */
4568 typedef int * int_ptr;
4569 int foo (int_ptr $ac_kw ip) {
4583 rm -f conftest.
$ac_objext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4585 (eval $ac_compile) 2>conftest.er1
4587 grep -v '^ *+' conftest.er1
>conftest.err
4589 cat conftest.err
>&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } &&
4592 { ac_try
='test -z "$ac_c_werror_flag"
4593 || test ! -s conftest.err'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; } &&
4599 { ac_try
='test -s conftest.$ac_objext'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
4605 ac_cv_c_restrict
=$ac_kw
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.
$ac_ext >&5
4611 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4612 test "$ac_cv_c_restrict" != no
&& break
4616 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4617 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4620 case $ac_cv_c_restrict in
4622 no
) cat >>confdefs.h
<<\_ACEOF
4626 *) cat >>confdefs.h
<<_ACEOF
4627 #define restrict $ac_cv_c_restrict
4652 if test $gl_cv_have_include_next = yes; then
4653 gl_cv_next_string_h
='<'string.h
'>'
4655 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4656 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4657 if test "${gl_cv_next_string_h+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 if test $ac_cv_header_string_h = yes; then
4662 cat >conftest.
$ac_ext <<_ACEOF
4665 cat confdefs.h
>>conftest.
$ac_ext
4666 cat >>conftest.
$ac_ext <<_ACEOF
4667 /* end confdefs.h. */
4671 gl_cv_next_string_h
='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4672 sed -n '\#/string.h#{
4673 s#.*"\(.*/string.h\)".*#\1#
4679 gl_cv_next_string_h
='<'string.h
'>'
4683 echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4684 echo "${ECHO_T}$gl_cv_next_string_h" >&6
4686 NEXT_STRING_H
=$gl_cv_next_string_h
4693 HAVE_DECL_WCWIDTH
=1;
4702 GL_COND_LIBTOOL_TRUE
=
4703 GL_COND_LIBTOOL_FALSE
='#'
4705 GL_COND_LIBTOOL_TRUE
='#'
4706 GL_COND_LIBTOOL_FALSE
=
4709 gl_cond_libtool
=false
4715 gl_source_base
='gnulib'
4725 for ac_func
in memchr
4727 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4728 echo "$as_me:$LINENO: checking for $ac_func" >&5
4729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4730 if eval "test \"\${$as_ac_var+set}\" = set"; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4733 cat >conftest.
$ac_ext <<_ACEOF
4736 cat confdefs.h
>>conftest.
$ac_ext
4737 cat >>conftest.
$ac_ext <<_ACEOF
4738 /* end confdefs.h. */
4739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4741 #define $ac_func innocuous_$ac_func
4743 /* System header to define __stub macros and hopefully few prototypes,
4744 which can conflict with char $ac_func (); below.
4745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4746 <limits.h> exists even on freestanding compilers. */
4749 # include <limits.h>
4751 # include <assert.h>
4756 /* Override any gcc2 internal prototype to avoid an error. */
4761 /* We use char because int might match the return type of a gcc2
4762 builtin and then its argument prototype would still apply. */
4764 /* The GNU C library defines this for functions which it implements
4765 to always fail with ENOSYS. Some functions are actually named
4766 something starting with __ and the normal name is an alias. */
4767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4770 char (*f) () = $ac_func;
4779 return f != $ac_func;
4784 rm -f conftest.
$ac_objext conftest
$ac_exeext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4786 (eval $ac_link) 2>conftest.er1
4788 grep -v '^ *+' conftest.er1
>conftest.err
4790 cat conftest.err
>&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } &&
4793 { ac_try
='test -z "$ac_c_werror_flag"
4794 || test ! -s conftest.err'
4795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; } &&
4800 { ac_try
='test -s conftest$ac_exeext'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; }; then
4806 eval "$as_ac_var=yes"
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.
$ac_ext >&5
4811 eval "$as_ac_var=no"
4813 rm -f conftest.err conftest.
$ac_objext \
4814 conftest
$ac_exeext conftest.
$ac_ext
4816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4818 if test `eval echo '${'$as_ac_var'}'` = yes; then
4819 cat >>confdefs.h
<<_ACEOF
4820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4825 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
4831 if test $ac_cv_func_memchr = no
; then
4834 for ac_header
in bp-sym.h
4836 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4838 echo "$as_me:$LINENO: checking for $ac_header" >&5
4839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4846 # Is the header compilable?
4847 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4849 cat >conftest.
$ac_ext <<_ACEOF
4852 cat confdefs.h
>>conftest.
$ac_ext
4853 cat >>conftest.
$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4855 $ac_includes_default
4856 #include <$ac_header>
4858 rm -f conftest.
$ac_objext
4859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4860 (eval $ac_compile) 2>conftest.er1
4862 grep -v '^ *+' conftest.er1
>conftest.err
4864 cat conftest.err
>&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } &&
4867 { ac_try
='test -z "$ac_c_werror_flag"
4868 || test ! -s conftest.err'
4869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; } &&
4874 { ac_try
='test -s conftest.$ac_objext'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; }; then
4880 ac_header_compiler
=yes
4882 echo "$as_me: failed program was:" >&5
4883 sed 's/^/| /' conftest.
$ac_ext >&5
4885 ac_header_compiler
=no
4887 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4888 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4889 echo "${ECHO_T}$ac_header_compiler" >&6
4891 # Is the header present?
4892 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4894 cat >conftest.
$ac_ext <<_ACEOF
4897 cat confdefs.h
>>conftest.
$ac_ext
4898 cat >>conftest.
$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4900 #include <$ac_header>
4902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4903 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4905 grep -v '^ *+' conftest.er1
>conftest.err
4907 cat conftest.err
>&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } >/dev
/null
; then
4910 if test -s conftest.err
; then
4911 ac_cpp_err
=$ac_c_preproc_warn_flag
4912 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4919 if test -z "$ac_cpp_err"; then
4920 ac_header_preproc
=yes
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.
$ac_ext >&5
4925 ac_header_preproc
=no
4927 rm -f conftest.err conftest.
$ac_ext
4928 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4929 echo "${ECHO_T}$ac_header_preproc" >&6
4931 # So? What about this header?
4932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4935 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4937 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4938 ac_header_preproc
=yes
4941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4942 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4944 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4945 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4946 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4947 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4948 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4951 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4952 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4955 ## ------------------------------------------ ##
4956 ## Report this to the AC_PACKAGE_NAME lists. ##
4957 ## ------------------------------------------ ##
4960 sed "s/^/$as_me: WARNING: /" >&2
4963 echo "$as_me:$LINENO: checking for $ac_header" >&5
4964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 eval "$as_ac_Header=\$ac_header_preproc"
4970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4975 cat >>confdefs.h
<<_ACEOF
4976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4987 echo "$as_me:$LINENO: checking for working memcmp" >&5
4988 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4989 if test "${ac_cv_func_memcmp_working+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 if test "$cross_compiling" = yes; then
4993 ac_cv_func_memcmp_working
=no
4995 cat >conftest.
$ac_ext <<_ACEOF
4998 cat confdefs.h
>>conftest.
$ac_ext
4999 cat >>conftest.
$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5001 $ac_includes_default
5006 /* Some versions of memcmp are not 8-bit clean. */
5007 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5008 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5011 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5012 or more and with at least one buffer not starting on a 4-byte boundary.
5013 William Lewis provided this test program. */
5018 for (i = 0; i < 4; i++)
5022 strcpy (a, "--------01111111");
5023 strcpy (b, "--------10000000");
5024 if (memcmp (a, b, 16) >= 0)
5034 rm -f conftest
$ac_exeext
5035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5036 (eval $ac_link) 2>&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
5045 ac_cv_func_memcmp_working
=yes
5047 echo "$as_me: program exited with status $ac_status" >&5
5048 echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.
$ac_ext >&5
5052 ac_cv_func_memcmp_working
=no
5054 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5057 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5058 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5059 test $ac_cv_func_memcmp_working = no
&&
5066 gl_LIBOBJS
="$gl_LIBOBJS memcmp.$ac_objext"
5069 if test $ac_cv_func_memcmp_working = no
; then
5071 cat >>confdefs.h
<<\_ACEOF
5072 #define memcmp rpl_memcmp
5080 if test $ac_cv_have_decl_memmem = yes; then
5081 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
5082 echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
5083 if test "${gl_cv_func_memmem_works+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 if test "$cross_compiling" = yes; then
5087 gl_cv_func_memmem_works
="guessing no"
5089 cat >conftest.
$ac_ext <<_ACEOF
5092 cat confdefs.h
>>conftest.
$ac_ext
5093 cat >>conftest.
$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5096 #include <string.h> /* for memmem */
5097 #include <stdlib.h> /* for malloc */
5098 #include <unistd.h> /* for alarm */
5104 char *haystack = (char *) malloc (2 * m + 1);
5105 char *needle = (char *) malloc (m + 1);
5107 /* Failure to compile this test due to missing alarm is okay,
5108 since all such platforms (mingw) also lack memmem. */
5110 /* Check for quadratic performance. */
5111 if (haystack && needle)
5113 memset (haystack, 'A', 2 * m);
5114 haystack[2 * m] = 'B';
5115 memset (needle, 'A', m);
5117 result = memmem (haystack, 2 * m + 1, needle, m + 1);
5119 /* Check for empty needle behavior. */
5120 return !result || !memmem ("a", 1, 0, 0);
5125 rm -f conftest
$ac_exeext
5126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5127 (eval $ac_link) 2>&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; }; then
5136 gl_cv_func_memmem_works
=yes
5138 echo "$as_me: program exited with status $ac_status" >&5
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.
$ac_ext >&5
5143 gl_cv_func_memmem_works
=no
5145 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5148 echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
5149 echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
5150 if test "$gl_cv_func_memmem_works" != yes; then
5159 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
5176 for ac_func
in memmem
5178 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5179 echo "$as_me:$LINENO: checking for $ac_func" >&5
5180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5181 if eval "test \"\${$as_ac_var+set}\" = set"; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 cat >conftest.
$ac_ext <<_ACEOF
5187 cat confdefs.h
>>conftest.
$ac_ext
5188 cat >>conftest.
$ac_ext <<_ACEOF
5189 /* end confdefs.h. */
5190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5192 #define $ac_func innocuous_$ac_func
5194 /* System header to define __stub macros and hopefully few prototypes,
5195 which can conflict with char $ac_func (); below.
5196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5197 <limits.h> exists even on freestanding compilers. */
5200 # include <limits.h>
5202 # include <assert.h>
5207 /* Override any gcc2 internal prototype to avoid an error. */
5212 /* We use char because int might match the return type of a gcc2
5213 builtin and then its argument prototype would still apply. */
5215 /* The GNU C library defines this for functions which it implements
5216 to always fail with ENOSYS. Some functions are actually named
5217 something starting with __ and the normal name is an alias. */
5218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5221 char (*f) () = $ac_func;
5230 return f != $ac_func;
5235 rm -f conftest.
$ac_objext conftest
$ac_exeext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5237 (eval $ac_link) 2>conftest.er1
5239 grep -v '^ *+' conftest.er1
>conftest.err
5241 cat conftest.err
>&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } &&
5244 { ac_try
='test -z "$ac_c_werror_flag"
5245 || test ! -s conftest.err'
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; } &&
5251 { ac_try
='test -s conftest$ac_exeext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 eval "$as_ac_var=yes"
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.
$ac_ext >&5
5262 eval "$as_ac_var=no"
5264 rm -f conftest.err conftest.
$ac_objext \
5265 conftest
$ac_exeext conftest.
$ac_ext
5267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5269 if test `eval echo '${'$as_ac_var'}'` = yes; then
5270 cat >>confdefs.h
<<_ACEOF
5271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5276 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
5289 if test $ac_cv_have_decl_memmem = no
; then
5301 if test $ac_cv_type_long_long_int = yes; then
5302 HAVE_LONG_LONG_INT
=1
5304 HAVE_LONG_LONG_INT
=0
5308 if test $ac_cv_type_unsigned_long_long_int = yes; then
5309 HAVE_UNSIGNED_LONG_LONG_INT
=1
5311 HAVE_UNSIGNED_LONG_LONG_INT
=0
5315 if test $ac_cv_header_inttypes_h = yes; then
5322 if test $ac_cv_header_sys_types_h = yes; then
5340 if test $gl_cv_have_include_next = yes; then
5341 gl_cv_next_stdint_h
='<'stdint.h
'>'
5343 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5344 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5345 if test "${gl_cv_next_stdint_h+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 if test $ac_cv_header_stdint_h = yes; then
5350 cat >conftest.
$ac_ext <<_ACEOF
5353 cat confdefs.h
>>conftest.
$ac_ext
5354 cat >>conftest.
$ac_ext <<_ACEOF
5355 /* end confdefs.h. */
5359 gl_cv_next_stdint_h
='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5360 sed -n '\#/stdint.h#{
5361 s#.*"\(.*/stdint.h\)".*#\1#
5367 gl_cv_next_stdint_h
='<'stdint.h
'>'
5371 echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5372 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5374 NEXT_STDINT_H
=$gl_cv_next_stdint_h
5378 if test $ac_cv_header_stdint_h = yes; then
5385 if test $ac_cv_header_stdint_h = yes; then
5386 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5387 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5388 if test "${gl_cv_header_working_stdint_h+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 gl_cv_header_working_stdint_h
=no
5392 cat >conftest.
$ac_ext <<_ACEOF
5396 cat confdefs.h
>>conftest.
$ac_ext
5397 cat >>conftest.
$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5400 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5401 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5402 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5404 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5405 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5406 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5410 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5411 included before <wchar.h>. */
5422 int8_t a1 = INT8_MAX;
5423 int8_t a1min = INT8_MIN;
5426 int16_t a2 = INT16_MAX;
5427 int16_t a2min = INT16_MIN;
5430 int32_t a3 = INT32_MAX;
5431 int32_t a3min = INT32_MIN;
5434 int64_t a4 = INT64_MAX;
5435 int64_t a4min = INT64_MIN;
5438 uint8_t b1 = UINT8_MAX;
5440 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5443 uint16_t b2 = UINT16_MAX;
5446 uint32_t b3 = UINT32_MAX;
5449 uint64_t b4 = UINT64_MAX;
5451 int_least8_t c1 = INT8_C (0x7f);
5452 int_least8_t c1max = INT_LEAST8_MAX;
5453 int_least8_t c1min = INT_LEAST8_MIN;
5454 int_least16_t c2 = INT16_C (0x7fff);
5455 int_least16_t c2max = INT_LEAST16_MAX;
5456 int_least16_t c2min = INT_LEAST16_MIN;
5457 int_least32_t c3 = INT32_C (0x7fffffff);
5458 int_least32_t c3max = INT_LEAST32_MAX;
5459 int_least32_t c3min = INT_LEAST32_MIN;
5460 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5461 int_least64_t c4max = INT_LEAST64_MAX;
5462 int_least64_t c4min = INT_LEAST64_MIN;
5463 uint_least8_t d1 = UINT8_C (0xff);
5464 uint_least8_t d1max = UINT_LEAST8_MAX;
5465 uint_least16_t d2 = UINT16_C (0xffff);
5466 uint_least16_t d2max = UINT_LEAST16_MAX;
5467 uint_least32_t d3 = UINT32_C (0xffffffff);
5468 uint_least32_t d3max = UINT_LEAST32_MAX;
5469 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5470 uint_least64_t d4max = UINT_LEAST64_MAX;
5471 int_fast8_t e1 = INT_FAST8_MAX;
5472 int_fast8_t e1min = INT_FAST8_MIN;
5473 int_fast16_t e2 = INT_FAST16_MAX;
5474 int_fast16_t e2min = INT_FAST16_MIN;
5475 int_fast32_t e3 = INT_FAST32_MAX;
5476 int_fast32_t e3min = INT_FAST32_MIN;
5477 int_fast64_t e4 = INT_FAST64_MAX;
5478 int_fast64_t e4min = INT_FAST64_MIN;
5479 uint_fast8_t f1 = UINT_FAST8_MAX;
5480 uint_fast16_t f2 = UINT_FAST16_MAX;
5481 uint_fast32_t f3 = UINT_FAST32_MAX;
5482 uint_fast64_t f4 = UINT_FAST64_MAX;
5484 intptr_t g = INTPTR_MAX;
5485 intptr_t gmin = INTPTR_MIN;
5488 uintptr_t h = UINTPTR_MAX;
5490 intmax_t i = INTMAX_MAX;
5491 uintmax_t j = UINTMAX_MAX;
5493 #include <limits.h> /* for CHAR_BIT */
5494 #define TYPE_MINIMUM(t) \
5495 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5496 #define TYPE_MAXIMUM(t) \
5497 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5500 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5501 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5503 /* Detect bug in FreeBSD 6.0 / ia64. */
5504 int check_SIG_ATOMIC:
5505 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5506 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5508 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5510 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5511 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5513 /* Detect bug in mingw. */
5515 WINT_MIN == TYPE_MINIMUM (wint_t)
5516 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5519 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5521 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5523 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5525 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5527 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5530 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5533 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5536 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5538 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5539 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5540 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5541 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5542 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5543 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5544 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5545 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5546 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5547 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5548 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5559 rm -f conftest.
$ac_objext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5561 (eval $ac_compile) 2>conftest.er1
5563 grep -v '^ *+' conftest.er1
>conftest.err
5565 cat conftest.err
>&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } &&
5568 { ac_try
='test -z "$ac_c_werror_flag"
5569 || test ! -s conftest.err'
5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; } &&
5575 { ac_try
='test -s conftest.$ac_objext'
5576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; }; then
5581 gl_cv_header_working_stdint_h
=yes
5583 echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.
$ac_ext >&5
5587 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5589 echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5590 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5592 if test "$gl_cv_header_working_stdint_h" = yes; then
5597 for ac_header
in sys
/inttypes.h sys
/bitypes.h
5599 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5601 echo "$as_me:$LINENO: checking for $ac_header" >&5
5602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5609 # Is the header compilable?
5610 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5612 cat >conftest.
$ac_ext <<_ACEOF
5615 cat confdefs.h
>>conftest.
$ac_ext
5616 cat >>conftest.
$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5618 $ac_includes_default
5619 #include <$ac_header>
5621 rm -f conftest.
$ac_objext
5622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5623 (eval $ac_compile) 2>conftest.er1
5625 grep -v '^ *+' conftest.er1
>conftest.err
5627 cat conftest.err
>&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } &&
5630 { ac_try
='test -z "$ac_c_werror_flag"
5631 || test ! -s conftest.err'
5632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); }; } &&
5637 { ac_try
='test -s conftest.$ac_objext'
5638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; }; then
5643 ac_header_compiler
=yes
5645 echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.
$ac_ext >&5
5648 ac_header_compiler
=no
5650 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5652 echo "${ECHO_T}$ac_header_compiler" >&6
5654 # Is the header present?
5655 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5656 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5657 cat >conftest.
$ac_ext <<_ACEOF
5660 cat confdefs.h
>>conftest.
$ac_ext
5661 cat >>conftest.
$ac_ext <<_ACEOF
5662 /* end confdefs.h. */
5663 #include <$ac_header>
5665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5666 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5668 grep -v '^ *+' conftest.er1
>conftest.err
5670 cat conftest.err
>&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } >/dev
/null
; then
5673 if test -s conftest.err
; then
5674 ac_cpp_err
=$ac_c_preproc_warn_flag
5675 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5682 if test -z "$ac_cpp_err"; then
5683 ac_header_preproc
=yes
5685 echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.
$ac_ext >&5
5688 ac_header_preproc
=no
5690 rm -f conftest.err conftest.
$ac_ext
5691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5692 echo "${ECHO_T}$ac_header_preproc" >&6
5694 # So? What about this header?
5695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5701 ac_header_preproc
=yes
5704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5718 ## ------------------------------------------ ##
5719 ## Report this to the AC_PACKAGE_NAME lists. ##
5720 ## ------------------------------------------ ##
5723 sed "s/^/$as_me: WARNING: /" >&2
5726 echo "$as_me:$LINENO: checking for $ac_header" >&5
5727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 eval "$as_ac_Header=\$ac_header_preproc"
5733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5738 cat >>confdefs.h
<<_ACEOF
5739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5746 if test $ac_cv_header_sys_inttypes_h = yes; then
5747 HAVE_SYS_INTTYPES_H
=1
5749 HAVE_SYS_INTTYPES_H
=0
5752 if test $ac_cv_header_sys_bitypes_h = yes; then
5753 HAVE_SYS_BITYPES_H
=1
5755 HAVE_SYS_BITYPES_H
=0
5775 for gltype
in ptrdiff_t sig_atomic_t size_t wchar_t wint_t
; do
5776 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5777 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5778 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 if test "$cross_compiling" = yes; then
5782 # Depending upon the size, compute the lo and hi bounds.
5783 cat >conftest.
$ac_ext <<_ACEOF
5786 cat confdefs.h
>>conftest.
$ac_ext
5787 cat >>conftest.
$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5790 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5791 included before <wchar.h>. */
5804 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5811 rm -f conftest.
$ac_objext
5812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813 (eval $ac_compile) 2>conftest.er1
5815 grep -v '^ *+' conftest.er1
>conftest.err
5817 cat conftest.err
>&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } &&
5820 { ac_try
='test -z "$ac_c_werror_flag"
5821 || test ! -s conftest.err'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; } &&
5827 { ac_try
='test -s conftest.$ac_objext'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5835 cat >conftest.
$ac_ext <<_ACEOF
5838 cat confdefs.h
>>conftest.
$ac_ext
5839 cat >>conftest.
$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5842 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5843 included before <wchar.h>. */
5856 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5863 rm -f conftest.
$ac_objext
5864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5865 (eval $ac_compile) 2>conftest.er1
5867 grep -v '^ *+' conftest.er1
>conftest.err
5869 cat conftest.err
>&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try
='test -z "$ac_c_werror_flag"
5873 || test ! -s conftest.err'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; } &&
5879 { ac_try
='test -s conftest.$ac_objext'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; }; then
5885 ac_hi
=$ac_mid; break
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.
$ac_ext >&5
5890 ac_lo
=`expr $ac_mid + 1`
5891 if test $ac_lo -le $ac_mid; then
5895 ac_mid
=`expr 2 '*' $ac_mid + 1`
5897 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5900 echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.
$ac_ext >&5
5903 cat >conftest.
$ac_ext <<_ACEOF
5906 cat confdefs.h
>>conftest.
$ac_ext
5907 cat >>conftest.
$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5910 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5911 included before <wchar.h>. */
5924 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5931 rm -f conftest.
$ac_objext
5932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5933 (eval $ac_compile) 2>conftest.er1
5935 grep -v '^ *+' conftest.er1
>conftest.err
5937 cat conftest.err
>&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } &&
5940 { ac_try
='test -z "$ac_c_werror_flag"
5941 || test ! -s conftest.err'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; } &&
5947 { ac_try
='test -s conftest.$ac_objext'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5955 cat >conftest.
$ac_ext <<_ACEOF
5958 cat confdefs.h
>>conftest.
$ac_ext
5959 cat >>conftest.
$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5962 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5963 included before <wchar.h>. */
5976 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5983 rm -f conftest.
$ac_objext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5985 (eval $ac_compile) 2>conftest.er1
5987 grep -v '^ *+' conftest.er1
>conftest.err
5989 cat conftest.err
>&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try
='test -z "$ac_c_werror_flag"
5993 || test ! -s conftest.err'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try
='test -s conftest.$ac_objext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_lo
=$ac_mid; break
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.
$ac_ext >&5
6010 ac_hi
=`expr '(' $ac_mid ')' - 1`
6011 if test $ac_mid -le $ac_hi; then
6015 ac_mid
=`expr 2 '*' $ac_mid`
6017 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6020 echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.
$ac_ext >&5
6025 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6027 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6028 # Binary search between lo and hi bounds.
6029 while test "x$ac_lo" != "x$ac_hi"; do
6030 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6031 cat >conftest.
$ac_ext <<_ACEOF
6034 cat confdefs.h
>>conftest.
$ac_ext
6035 cat >>conftest.
$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6038 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6039 included before <wchar.h>. */
6052 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
6059 rm -f conftest.
$ac_objext
6060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6061 (eval $ac_compile) 2>conftest.er1
6063 grep -v '^ *+' conftest.er1
>conftest.err
6065 cat conftest.err
>&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } &&
6068 { ac_try
='test -z "$ac_c_werror_flag"
6069 || test ! -s conftest.err'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; } &&
6075 { ac_try
='test -s conftest.$ac_objext'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; }; then
6083 echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.
$ac_ext >&5
6086 ac_lo
=`expr '(' $ac_mid ')' + 1`
6088 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6092 '') result
=unknown
;;
6095 if test "$cross_compiling" = yes; then
6096 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6097 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6098 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6099 See \`config.log' for more details." >&5
6100 echo "$as_me: error: cannot run test program while cross compiling
6101 See \`config.log' for more details." >&2;}
6102 { (exit 1); exit 1; }; }; }
6104 cat >conftest.
$ac_ext <<_ACEOF
6107 cat confdefs.h
>>conftest.
$ac_ext
6108 cat >>conftest.
$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6111 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6112 included before <wchar.h>. */
6122 long longval () { return sizeof ($gltype) * CHAR_BIT; }
6123 unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
6130 FILE *f = fopen ("conftest.val", "w");
6133 if ((sizeof ($gltype) * CHAR_BIT) < 0)
6135 long i = longval ();
6136 if (i != (sizeof ($gltype) * CHAR_BIT))
6138 fprintf (f, "%ld\n", i);
6142 unsigned long i = ulongval ();
6143 if (i != (sizeof ($gltype) * CHAR_BIT))
6145 fprintf (f, "%lu\n", i);
6147 exit (ferror (f) || fclose (f) != 0);
6153 rm -f conftest
$ac_exeext
6154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6155 (eval $ac_link) 2>&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6164 result
=`cat conftest.val`
6166 echo "$as_me: program exited with status $ac_status" >&5
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.
$ac_ext >&5
6173 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6177 eval gl_cv_bitsizeof_
${gltype}=\
$result
6180 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
6181 echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
6182 eval result
=\
$gl_cv_bitsizeof_${gltype}
6183 if test $result = unknown
; then
6186 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6187 cat >>confdefs.h
<<_ACEOF
6188 #define BITSIZEOF_${GLTYPE} $result
6191 eval BITSIZEOF_
${GLTYPE}=\
$result
6200 for gltype
in sig_atomic_t wchar_t wint_t
; do
6201 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
6202 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
6203 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 cat >conftest.
$ac_ext <<_ACEOF
6209 cat confdefs.h
>>conftest.
$ac_ext
6210 cat >>conftest.
$ac_ext <<_ACEOF
6211 /* end confdefs.h. */
6213 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6214 included before <wchar.h>. */
6223 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6232 rm -f conftest.
$ac_objext
6233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6234 (eval $ac_compile) 2>conftest.er1
6236 grep -v '^ *+' conftest.er1
>conftest.err
6238 cat conftest.err
>&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } &&
6241 { ac_try
='test -z "$ac_c_werror_flag"
6242 || test ! -s conftest.err'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; } &&
6248 { ac_try
='test -s conftest.$ac_objext'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6256 echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.
$ac_ext >&5
6261 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6262 eval gl_cv_type_
${gltype}_signed
=\
$result
6265 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6266 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6267 eval result
=\
$gl_cv_type_${gltype}_signed
6268 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6269 if test "$result" = yes; then
6270 cat >>confdefs.h
<<_ACEOF
6271 #define HAVE_SIGNED_${GLTYPE} 1
6274 eval HAVE_SIGNED_
${GLTYPE}=1
6276 eval HAVE_SIGNED_
${GLTYPE}=0
6281 gl_cv_type_ptrdiff_t_signed
=yes
6282 gl_cv_type_size_t_signed
=no
6290 for gltype
in ptrdiff_t sig_atomic_t size_t wchar_t wint_t
; do
6291 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6292 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6293 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 eval gl_cv_type_
${gltype}_suffix
=no
6297 eval result
=\
$gl_cv_type_${gltype}_signed
6298 if test "$result" = yes; then
6303 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
6306 l
) gltype1
='long int';;
6307 ll
) gltype1
='long long int';;
6308 i64
) gltype1
='__int64';;
6309 u
) gltype1
='unsigned int';;
6310 ul
) gltype1
='unsigned long int';;
6311 ull
) gltype1
='unsigned long long int';;
6312 ui64
)gltype1
='unsigned __int64';;
6314 cat >conftest.
$ac_ext <<_ACEOF
6317 cat confdefs.h
>>conftest.
$ac_ext
6318 cat >>conftest.
$ac_ext <<_ACEOF
6319 /* end confdefs.h. */
6321 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6322 included before <wchar.h>. */
6332 extern $gltype1 foo;
6341 rm -f conftest.
$ac_objext
6342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6343 (eval $ac_compile) 2>conftest.er1
6345 grep -v '^ *+' conftest.er1
>conftest.err
6347 cat conftest.err
>&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
6350 { ac_try
='test -z "$ac_c_werror_flag"
6351 || test ! -s conftest.err'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; } &&
6357 { ac_try
='test -s conftest.$ac_objext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6363 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
6365 echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.
$ac_ext >&5
6369 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6370 eval result
=\
$gl_cv_type_${gltype}_suffix
6371 test "$result" != no
&& break
6374 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6375 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6376 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6377 eval result
=\
$gl_cv_type_${gltype}_suffix
6378 test "$result" = no
&& result
=
6379 eval ${GLTYPE}_SUFFIX
=\
$result
6380 cat >>confdefs.h
<<_ACEOF
6381 #define ${GLTYPE}_SUFFIX $result
6397 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6398 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6399 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 cat >conftest.
$ac_ext <<_ACEOF
6406 rm -f conftest.
$ac_objext
6407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6408 (eval $ac_compile) 2>conftest.er1
6410 grep -v '^ *+' conftest.er1
>conftest.err
6412 cat conftest.err
>&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } &&
6415 { ac_try
='test -z "$ac_c_werror_flag"
6416 || test ! -s conftest.err'
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; } &&
6422 { ac_try
='test -s conftest.$ac_objext'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; }; then
6428 gl_cv_header_wchar_h_standalone
=yes
6430 echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.
$ac_ext >&5
6433 gl_cv_header_wchar_h_standalone
=no
6435 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6437 echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6438 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6439 if test $gl_cv_header_wchar_h_standalone != yes; then
6450 if test $ac_cv_header_wchar_h = yes; then
6467 if test $gl_cv_have_include_next = yes; then
6468 gl_cv_next_wchar_h
='<'wchar.h
'>'
6470 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6471 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6472 if test "${gl_cv_next_wchar_h+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6476 if test $ac_cv_header_wchar_h = yes; then
6477 cat >conftest.
$ac_ext <<_ACEOF
6480 cat confdefs.h
>>conftest.
$ac_ext
6481 cat >>conftest.
$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6486 gl_cv_next_wchar_h
='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6487 sed -n '\#/wchar.h#{
6488 s#.*"\(.*/wchar.h\)".*#\1#
6494 gl_cv_next_wchar_h
='<'wchar.h
'>'
6498 echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6499 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6501 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
6515 gl_source_base
='tests'
6520 LIBGNU_LIBDEPS
="$gl_libdeps"
6522 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
6526 # For Makefile dependencies.
6528 if test x
"$STDINT_H" != x
; then
6529 GNULIB_STDINT_H
=gnulib
/$STDINT_H
6535 cat >>confdefs.h
<<_ACEOF
6536 #define PACKAGE "$PACKAGE"
6541 # GDB does not use automake, but gnulib does. This line lets us
6542 # generate its Makefile.in.
6543 am__api_version
="1.9"
6544 # Find a good install program. We prefer a C program (faster),
6545 # so one script is as good as another. But avoid the broken or
6546 # incompatible versions:
6547 # SysV /etc/install, /usr/sbin/install
6548 # SunOS /usr/etc/install
6549 # IRIX /sbin/install
6551 # AmigaOS /C/install, which installs bootblocks on floppy discs
6552 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6553 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6554 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6555 # OS/2's system install, which has a completely different semantic
6556 # ./install, which can be erroneously created by make from ./install.sh.
6557 # Reject install programs that cannot install multiple files.
6558 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6559 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6560 if test -z "$INSTALL"; then
6561 if test "${ac_cv_path_install+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6568 test -z "$as_dir" && as_dir
=.
6569 # Account for people who put trailing slashes in PATH elements.
6571 .
/ | .
// |
/cC
/* | \
6572 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6573 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
6576 # OSF1 and SCO ODT 3.0 have their own names for install.
6577 # Don't use installbsd from OSF since it installs stuff as root
6579 for ac_prog
in ginstall scoinst
install; do
6580 for ac_exec_ext
in '' $ac_executable_extensions; do
6581 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6582 if test $ac_prog = install &&
6583 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6584 # AIX install. It has an incompatible calling convention.
6586 elif test $ac_prog = install &&
6587 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6588 # program-specific install script used by HP pwplus--don't use.
6591 rm -rf conftest.one conftest.two conftest.dir
6592 echo one
> conftest.one
6593 echo two
> conftest.two
6595 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
6596 test -s conftest.one
&& test -s conftest.two
&&
6597 test -s conftest.dir
/conftest.one
&&
6598 test -s conftest.dir
/conftest.two
6600 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6611 rm -rf conftest.one conftest.two conftest.dir
6614 if test "${ac_cv_path_install+set}" = set; then
6615 INSTALL
=$ac_cv_path_install
6617 # As a last resort, use the slow shell script. Don't cache a
6618 # value for INSTALL within a source directory, because that will
6619 # break other packages using the cache if that directory is
6620 # removed, or if the value is a relative name.
6621 INSTALL
=$ac_install_sh
6624 echo "$as_me:$LINENO: result: $INSTALL" >&5
6625 echo "${ECHO_T}$INSTALL" >&6
6627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6628 # It thinks the first close brace ends the variable substitution.
6629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6633 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6635 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6636 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6639 echo timestamp
> conftest.
file
6640 # Do `set' in a subshell so we don't clobber the current shell's
6641 # arguments. Must try -L first in case configure is actually a
6642 # symlink; some systems play weird games with the mod time of symlinks
6643 # (eg FreeBSD returns the mod time of the symlink's containing
6646 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6647 if test "$*" = "X"; then
6649 set X
`ls -t $srcdir/configure conftest.file`
6652 if test "$*" != "X $srcdir/configure conftest.file" \
6653 && test "$*" != "X conftest.file $srcdir/configure"; then
6655 # If neither matched, then we have a broken ls. This can happen
6656 # if, for instance, CONFIG_SHELL is bash and it inherits a
6657 # broken ls alias from the environment. This has actually
6658 # happened. Such a system could not be considered "sane".
6659 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6660 alias in your environment" >&5
6661 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6662 alias in your environment" >&2;}
6663 { (exit 1); exit 1; }; }
6666 test "$2" = conftest.
file
6672 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6673 Check your system clock" >&5
6674 echo "$as_me: error: newly created file is older than distributed files!
6675 Check your system clock" >&2;}
6676 { (exit 1); exit 1; }; }
6678 echo "$as_me:$LINENO: result: yes" >&5
6679 echo "${ECHO_T}yes" >&6
6680 test "$program_prefix" != NONE
&&
6681 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
6682 # Use a double $ so make ignores it.
6683 test "$program_suffix" != NONE
&&
6684 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
6685 # Double any \ or $. echo might interpret backslashes.
6686 # By default was `s,x,x', remove it if useless.
6687 cat <<\_ACEOF
>conftest.
sed
6688 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
6690 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
6693 # expand $ac_aux_dir to an absolute path
6694 am_aux_dir
=`cd $ac_aux_dir && pwd`
6696 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
6697 # Use eval to expand $SHELL
6698 if eval "$MISSING --run true"; then
6699 am_missing_run
="$MISSING --run "
6702 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6703 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6706 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
6707 # We used to keeping the `.' as first argument, in order to
6708 # allow $(mkdir_p) to be used without argument. As in
6709 # $(mkdir_p) $(somedir)
6710 # where $(somedir) is conditionally defined. However this is wrong
6712 # 1. if the package is installed by a user who cannot write `.'
6713 # make install will fail,
6714 # 2. the above comment should most certainly read
6715 # $(mkdir_p) $(DESTDIR)$(somedir)
6716 # so it does not work when $(somedir) is undefined and
6717 # $(DESTDIR) is not.
6718 # To support the latter case, we have to write
6719 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6720 # so the `.' trick is pointless.
6721 mkdir_p
='mkdir -p --'
6723 # On NextStep and OpenStep, the `mkdir' command does not
6724 # recognize any option. It will interpret all options as
6725 # directories to create, and then abort because `.' already
6727 for d
in .
/-p .
/--version;
6729 test -d $d && rmdir $d
6731 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6732 if test -f "$ac_aux_dir/mkinstalldirs"; then
6733 mkdir_p
='$(mkinstalldirs)'
6735 mkdir_p
='$(install_sh) -d'
6739 for ac_prog
in gawk mawk nawk
awk
6741 # Extract the first word of "$ac_prog", so it can be a program name with args.
6742 set dummy
$ac_prog; ac_word
=$2
6743 echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6745 if test "${ac_cv_prog_AWK+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 if test -n "$AWK"; then
6749 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6751 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6755 test -z "$as_dir" && as_dir
=.
6756 for ac_exec_ext
in '' $ac_executable_extensions; do
6757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6758 ac_cv_prog_AWK
="$ac_prog"
6759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768 if test -n "$AWK"; then
6769 echo "$as_me:$LINENO: result: $AWK" >&5
6770 echo "${ECHO_T}$AWK" >&6
6772 echo "$as_me:$LINENO: result: no" >&5
6773 echo "${ECHO_T}no" >&6
6776 test -n "$AWK" && break
6779 ac_config_commands
="$ac_config_commands depfiles"
6782 am_make
=${MAKE-make}
6783 cat > confinc
<< 'END'
6788 # If we don't find an include directive, just comment out the code.
6789 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6790 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6794 # First try GNU make style include.
6795 echo "include confinc" > confmf
6796 # We grep out `Entering directory' and `Leaving directory'
6797 # messages which can occur if `w' ends up in MAKEFLAGS.
6798 # In particular we don't look at `^make:' because GNU make might
6799 # be invoked under some other name (usually "gmake"), in which
6800 # case it prints its new name instead of `make'.
6801 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6806 # Now try BSD make style include.
6807 if test "$am__include" = "#"; then
6808 echo '.include "confinc"' > confmf
6809 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6810 am__include
=.include
6817 echo "$as_me:$LINENO: result: $_am_result" >&5
6818 echo "${ECHO_T}$_am_result" >&6
6819 rm -f confinc confmf
6821 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6822 if test "${enable_dependency_tracking+set}" = set; then
6823 enableval
="$enable_dependency_tracking"
6826 if test "x$enable_dependency_tracking" != xno
; then
6827 am_depcomp
="$ac_aux_dir/depcomp"
6832 if test "x$enable_dependency_tracking" != xno; then
6842 # test to see if srcdir already configured
6843 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6844 test -f $srcdir/config.status
; then
6845 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6846 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6847 { (exit 1); exit 1; }; }
6850 # test whether we have cygpath
6851 if test -z "$CYGPATH_W"; then
6852 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
6853 CYGPATH_W
='cygpath -w'
6860 # Define the identity of the package.
6862 VERSION
=UNUSED-VERSION
6865 # Some tools Automake needs.
6867 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6870 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
6873 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6876 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
6879 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
6881 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
6883 # Installed binaries are usually stripped using `strip' when the user
6884 # run `make install-strip'. However `strip' might not be the right
6885 # tool to use in cross-compilation environments, therefore Automake
6886 # will honor the `STRIP' environment variable to overrule this program.
6887 if test "$cross_compiling" != no
; then
6888 if test -n "$ac_tool_prefix"; then
6889 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6890 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6891 echo "$as_me:$LINENO: checking for $ac_word" >&5
6892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6893 if test "${ac_cv_prog_STRIP+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 if test -n "$STRIP"; then
6897 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6903 test -z "$as_dir" && as_dir
=.
6904 for ac_exec_ext
in '' $ac_executable_extensions; do
6905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6906 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 STRIP
=$ac_cv_prog_STRIP
6916 if test -n "$STRIP"; then
6917 echo "$as_me:$LINENO: result: $STRIP" >&5
6918 echo "${ECHO_T}$STRIP" >&6
6920 echo "$as_me:$LINENO: result: no" >&5
6921 echo "${ECHO_T}no" >&6
6925 if test -z "$ac_cv_prog_STRIP"; then
6927 # Extract the first word of "strip", so it can be a program name with args.
6928 set dummy strip
; ac_word
=$2
6929 echo "$as_me:$LINENO: checking for $ac_word" >&5
6930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6931 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6934 if test -n "$ac_ct_STRIP"; then
6935 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6937 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6941 test -z "$as_dir" && as_dir
=.
6942 for ac_exec_ext
in '' $ac_executable_extensions; do
6943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6944 ac_cv_prog_ac_ct_STRIP
="strip"
6945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
6954 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6955 if test -n "$ac_ct_STRIP"; then
6956 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6957 echo "${ECHO_T}$ac_ct_STRIP" >&6
6959 echo "$as_me:$LINENO: result: no" >&5
6960 echo "${ECHO_T}no" >&6
6965 STRIP
="$ac_cv_prog_STRIP"
6969 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
6971 # We need awk for the "check" target. The system "awk" is bad on
6973 # Always define AMTAR for backward compatibility.
6975 AMTAR
=${AMTAR-"${am_missing_run}tar"}
6977 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
6982 depcc
="$CC" am_compiler_list
=
6984 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6985 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6986 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6990 # We make a subdir and do the tests there. Otherwise we can end up
6991 # making bogus files that we don't know about and never remove. For
6992 # instance it was reported that on HP-UX the gcc test will end up
6993 # making a dummy file named `D' -- because `-MD' means `put the output
6996 # Copy depcomp to subdir because otherwise we won't find it if we're
6997 # using a relative directory.
6998 cp "$am_depcomp" conftest.dir
7000 # We will build objects and dependencies in a subdirectory because
7001 # it helps to detect inapplicable dependency modes. For instance
7002 # both Tru64's cc and ICC support -MD to output dependencies as a
7003 # side effect of compilation, but ICC will put the dependencies in
7004 # the current directory while Tru64 will put them in the object
7008 am_cv_CC_dependencies_compiler_type
=none
7009 if test "$am_compiler_list" = ""; then
7010 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7012 for depmode
in $am_compiler_list; do
7013 # Setup a source with many dependencies, because some compilers
7014 # like to wrap large dependency lists on column 80 (with \), and
7015 # we should not choose a depcomp mode which is confused by this.
7017 # We need to recreate these files for each test, as the compiler may
7018 # overwrite some of them when testing with obscure command lines.
7019 # This happens at least with the AIX C compiler.
7021 for i
in 1 2 3 4 5 6; do
7022 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
7023 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7024 # Solaris 8's {/usr,}/bin/sh.
7025 touch sub
/conftst
$i.h
7027 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7031 # after this tag, mechanisms are not by side-effect, so they'll
7032 # only be used when explicitly requested
7033 if test "x$enable_dependency_tracking" = xyes
; then
7041 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7042 # mode. It turns out that the SunPro C++ compiler does not properly
7043 # handle `-M -o', and we need to detect this.
7044 if depmode
=$depmode \
7045 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
7046 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
7047 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
7048 >/dev
/null
2>conftest.err
&&
7049 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7050 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
7051 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
7052 # icc doesn't choke on unknown options, it will just issue warnings
7053 # or remarks (even with -Werror). So we grep stderr for any message
7054 # that says an option was ignored or not supported.
7055 # When given -MP, icc 7.0 and 7.1 complain thusly:
7056 # icc: Command line warning: ignoring option '-M'; no argument required
7057 # The diagnosis changed in icc 8.0:
7058 # icc: Command line remark: option '-MP' not supported
7059 if (grep 'ignoring option' conftest.err ||
7060 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
7061 am_cv_CC_dependencies_compiler_type
=$depmode
7070 am_cv_CC_dependencies_compiler_type
=none
7074 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7075 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
7076 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
7081 test "x$enable_dependency_tracking" != xno \
7082 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
7084 am__fastdepCC_FALSE
='#'
7086 am__fastdepCC_TRUE
='#'
7087 am__fastdepCC_FALSE
=
7093 debugdir
=${libdir}/debug
7096 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
7097 if test "${with_separate_debug_dir+set}" = set; then
7098 withval
="$with_separate_debug_dir"
7099 debugdir
="${withval}"
7103 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7104 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7105 ac_define_dir
=`eval echo $debugdir`
7106 ac_define_dir
=`eval echo $ac_define_dir`
7108 cat >>confdefs.h
<<_ACEOF
7109 #define DEBUGDIR "$ac_define_dir"
7113 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
7115 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7116 if test "x$prefix" = xNONE
; then
7117 test_prefix
=/usr
/local
7122 test_prefix
=$exec_prefix
7125 "${test_prefix}"|
"${test_prefix}/"*|\
7126 '${exec_prefix}'|
'${exec_prefix}/'*)
7128 cat >>confdefs.h
<<\_ACEOF
7129 #define DEBUGDIR_RELOCATABLE 1
7137 subdirs
="$subdirs doc testsuite"
7140 # Check whether to support alternative target configurations
7141 # Check whether --enable-targets or --disable-targets was given.
7142 if test "${enable_targets+set}" = set; then
7143 enableval
="$enable_targets"
7144 case "${enableval}" in
7145 yes |
"") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
7146 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
7147 { (exit 1); exit 1; }; }
7149 no
) enable_targets
= ;;
7150 *) enable_targets
=$enableval ;;
7154 # Check whether to enable 64-bit support on 32-bit hosts
7155 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
7156 if test "${enable_64_bit_bfd+set}" = set; then
7157 enableval
="$enable_64_bit_bfd"
7158 case "${enableval}" in
7161 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
7162 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
7163 { (exit 1); exit 1; }; } ;;
7168 # Provide defaults for some variables set by the per-host and per-target
7170 gdb_host_obs
=posix-hdep.o
7172 if test "${target}" = "${host}"; then
7178 .
$srcdir/configure.
host
7180 # Accumulate some settings from configure.tgt over all enabled targets
7185 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7187 if test "$targ_alias" = "all"; then
7190 # Canonicalize the secondary target names.
7191 result
=`$ac_config_sub $targ_alias 2>/dev/null`
7192 if test -n "$result"; then
7198 .
${srcdir}/configure.tgt
7200 # Target-specific object files
7201 for i
in ${gdb_target_obs}; do
7202 case " $TARGET_OBS " in
7205 TARGET_OBS
="$TARGET_OBS ${i}"
7210 # Check whether this target needs 64-bit CORE_ADDR
7211 if test x
${want64} = xfalse
; then
7212 .
${srcdir}/..
/bfd
/config.bfd
7217 if test x
${all_targets} = xtrue
; then
7219 # We want all 64-bit targets if we either:
7220 # - run on a 64-bit host or
7221 # - already require 64-bit support for some other target or
7222 # - the --enable-64-bit-bfd option was supplied
7223 # Otherwise we only support all 32-bit targets.
7225 # NOTE: This test must be in sync with the corresponding
7228 if test x
${want64} = xfalse
; then
7229 echo "$as_me:$LINENO: checking for long" >&5
7230 echo $ECHO_N "checking for long... $ECHO_C" >&6
7231 if test "${ac_cv_type_long+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 cat >conftest.
$ac_ext <<_ACEOF
7237 cat confdefs.h
>>conftest.
$ac_ext
7238 cat >>conftest.
$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 $ac_includes_default
7252 rm -f conftest.
$ac_objext
7253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7254 (eval $ac_compile) 2>conftest.er1
7256 grep -v '^ *+' conftest.er1
>conftest.err
7258 cat conftest.err
>&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } &&
7261 { ac_try
='test -z "$ac_c_werror_flag"
7262 || test ! -s conftest.err'
7263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; } &&
7268 { ac_try
='test -s conftest.$ac_objext'
7269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); }; }; then
7276 echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.
$ac_ext >&5
7281 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7283 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7284 echo "${ECHO_T}$ac_cv_type_long" >&6
7286 echo "$as_me:$LINENO: checking size of long" >&5
7287 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7288 if test "${ac_cv_sizeof_long+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 if test "$ac_cv_type_long" = yes; then
7292 # The cast to unsigned long works around a bug in the HP C Compiler
7293 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7294 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7295 # This bug is HP SR number 8606223364.
7296 if test "$cross_compiling" = yes; then
7297 # Depending upon the size, compute the lo and hi bounds.
7298 cat >conftest.
$ac_ext <<_ACEOF
7301 cat confdefs.h
>>conftest.
$ac_ext
7302 cat >>conftest.
$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7304 $ac_includes_default
7308 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7315 rm -f conftest.
$ac_objext
7316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7317 (eval $ac_compile) 2>conftest.er1
7319 grep -v '^ *+' conftest.er1
>conftest.err
7321 cat conftest.err
>&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); } &&
7324 { ac_try
='test -z "$ac_c_werror_flag"
7325 || test ! -s conftest.err'
7326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); }; } &&
7331 { ac_try
='test -s conftest.$ac_objext'
7332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); }; }; then
7339 cat >conftest.
$ac_ext <<_ACEOF
7342 cat confdefs.h
>>conftest.
$ac_ext
7343 cat >>conftest.
$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7345 $ac_includes_default
7349 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7356 rm -f conftest.
$ac_objext
7357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7358 (eval $ac_compile) 2>conftest.er1
7360 grep -v '^ *+' conftest.er1
>conftest.err
7362 cat conftest.err
>&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } &&
7365 { ac_try
='test -z "$ac_c_werror_flag"
7366 || test ! -s conftest.err'
7367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; } &&
7372 { ac_try
='test -s conftest.$ac_objext'
7373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); }; }; then
7378 ac_hi
=$ac_mid; break
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.
$ac_ext >&5
7383 ac_lo
=`expr $ac_mid + 1`
7384 if test $ac_lo -le $ac_mid; then
7388 ac_mid
=`expr 2 '*' $ac_mid + 1`
7390 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.
$ac_ext >&5
7396 cat >conftest.
$ac_ext <<_ACEOF
7399 cat confdefs.h
>>conftest.
$ac_ext
7400 cat >>conftest.
$ac_ext <<_ACEOF
7401 /* end confdefs.h. */
7402 $ac_includes_default
7406 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7413 rm -f conftest.
$ac_objext
7414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7415 (eval $ac_compile) 2>conftest.er1
7417 grep -v '^ *+' conftest.er1
>conftest.err
7419 cat conftest.err
>&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } &&
7422 { ac_try
='test -z "$ac_c_werror_flag"
7423 || test ! -s conftest.err'
7424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; } &&
7429 { ac_try
='test -s conftest.$ac_objext'
7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; }; then
7437 cat >conftest.
$ac_ext <<_ACEOF
7440 cat confdefs.h
>>conftest.
$ac_ext
7441 cat >>conftest.
$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 $ac_includes_default
7447 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7454 rm -f conftest.
$ac_objext
7455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7456 (eval $ac_compile) 2>conftest.er1
7458 grep -v '^ *+' conftest.er1
>conftest.err
7460 cat conftest.err
>&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); } &&
7463 { ac_try
='test -z "$ac_c_werror_flag"
7464 || test ! -s conftest.err'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; } &&
7470 { ac_try
='test -s conftest.$ac_objext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 ac_lo
=$ac_mid; break
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.
$ac_ext >&5
7481 ac_hi
=`expr '(' $ac_mid ')' - 1`
7482 if test $ac_mid -le $ac_hi; then
7486 ac_mid
=`expr 2 '*' $ac_mid`
7488 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7491 echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.
$ac_ext >&5
7496 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7498 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7499 # Binary search between lo and hi bounds.
7500 while test "x$ac_lo" != "x$ac_hi"; do
7501 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7502 cat >conftest.
$ac_ext <<_ACEOF
7505 cat confdefs.h
>>conftest.
$ac_ext
7506 cat >>conftest.
$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7508 $ac_includes_default
7512 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7519 rm -f conftest.
$ac_objext
7520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7521 (eval $ac_compile) 2>conftest.er1
7523 grep -v '^ *+' conftest.er1
>conftest.err
7525 cat conftest.err
>&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } &&
7528 { ac_try
='test -z "$ac_c_werror_flag"
7529 || test ! -s conftest.err'
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; } &&
7535 { ac_try
='test -s conftest.$ac_objext'
7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }; }; then
7543 echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.
$ac_ext >&5
7546 ac_lo
=`expr '(' $ac_mid ')' + 1`
7548 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7551 ?
*) ac_cv_sizeof_long
=$ac_lo;;
7552 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7553 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7554 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7555 See \`config.log' for more details." >&5
7556 echo "$as_me: error: cannot compute sizeof (long), 77
7557 See \`config.log' for more details." >&2;}
7558 { (exit 1); exit 1; }; }; } ;;
7561 if test "$cross_compiling" = yes; then
7562 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7563 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7564 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7565 See \`config.log' for more details." >&5
7566 echo "$as_me: error: cannot run test program while cross compiling
7567 See \`config.log' for more details." >&2;}
7568 { (exit 1); exit 1; }; }; }
7570 cat >conftest.
$ac_ext <<_ACEOF
7573 cat confdefs.h
>>conftest.
$ac_ext
7574 cat >>conftest.
$ac_ext <<_ACEOF
7575 /* end confdefs.h. */
7576 $ac_includes_default
7577 long longval () { return (long) (sizeof (long)); }
7578 unsigned long ulongval () { return (long) (sizeof (long)); }
7585 FILE *f = fopen ("conftest.val", "w");
7588 if (((long) (sizeof (long))) < 0)
7590 long i = longval ();
7591 if (i != ((long) (sizeof (long))))
7593 fprintf (f, "%ld\n", i);
7597 unsigned long i = ulongval ();
7598 if (i != ((long) (sizeof (long))))
7600 fprintf (f, "%lu\n", i);
7602 exit (ferror (f) || fclose (f) != 0);
7608 rm -f conftest
$ac_exeext
7609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7610 (eval $ac_link) 2>&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); }; }; then
7619 ac_cv_sizeof_long
=`cat conftest.val`
7621 echo "$as_me: program exited with status $ac_status" >&5
7622 echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.
$ac_ext >&5
7626 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7627 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7628 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7629 See \`config.log' for more details." >&5
7630 echo "$as_me: error: cannot compute sizeof (long), 77
7631 See \`config.log' for more details." >&2;}
7632 { (exit 1); exit 1; }; }; }
7634 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7642 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7643 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7644 cat >>confdefs.h
<<_ACEOF
7645 #define SIZEOF_LONG $ac_cv_sizeof_long
7649 if test "x${ac_cv_sizeof_long}" = "x8"; then
7653 if test x
${want64} = xtrue
; then
7654 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7656 TARGET_OBS
='$(ALL_TARGET_OBS)'
7662 # For other settings, only the main target counts.
7666 targ
=$target; .
${srcdir}/configure.tgt
7668 # Fetch the default architecture and default target vector from BFD.
7669 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
7671 # We only want the first architecture, so strip off the others if
7672 # there is more than one.
7673 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
7675 if test "x$targ_archs" != x
; then
7677 cat >>confdefs.h
<<_ACEOF
7678 #define DEFAULT_BFD_ARCH $targ_archs
7682 if test "x$targ_defvec" != x
; then
7684 cat >>confdefs.h
<<_ACEOF
7685 #define DEFAULT_BFD_VEC $targ_defvec
7690 # The CLI cannot be disabled yet, but may be in the future.
7693 # Check whether --enable-gdbcli or --disable-gdbcli was given.
7694 if test "${enable_gdbcli+set}" = set; then
7695 enableval
="$enable_gdbcli"
7700 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7701 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7702 { (exit 1); exit 1; }; } ;;
7704 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7705 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7706 { (exit 1); exit 1; }; } ;;
7711 if test x
"$enable_gdbcli" = xyes
; then
7712 if test -d $srcdir/cli
; then
7713 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7714 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7715 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7716 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7721 # Check whether --enable-gdbmi or --disable-gdbmi was given.
7722 if test "${enable_gdbmi+set}" = set; then
7723 enableval
="$enable_gdbmi"
7728 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7729 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7730 { (exit 1); exit 1; }; } ;;
7735 if test x
"$enable_gdbmi" = xyes
; then
7736 if test -d $srcdir/mi
; then
7737 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7738 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7739 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7740 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7745 # Check whether --enable-tui or --disable-tui was given.
7746 if test "${enable_tui+set}" = set; then
7747 enableval
="$enable_tui"
7752 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7753 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7754 { (exit 1); exit 1; }; } ;;
7761 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7762 if test "${enable_gdbtk+set}" = set; then
7763 enableval
="$enable_gdbtk"
7768 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7769 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7770 { (exit 1); exit 1; }; } ;;
7773 if test -d $srcdir/gdbtk
; then
7779 # We unconditionally disable gdbtk tests on selected platforms.
7782 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7783 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7787 # Libunwind support.
7789 # Check whether --with-libunwind or --without-libunwind was given.
7790 if test "${with_libunwind+set}" = set; then
7791 withval
="$with_libunwind"
7792 case "${withval}" in
7793 yes) enable_libunwind
=yes ;;
7794 no
) enable_libunwind
=no
;;
7795 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7796 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7797 { (exit 1); exit 1; }; } ;;
7803 for ac_header
in libunwind.h libunwind-ia64.h
7805 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7807 echo "$as_me:$LINENO: checking for $ac_header" >&5
7808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7815 # Is the header compilable?
7816 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7818 cat >conftest.
$ac_ext <<_ACEOF
7821 cat confdefs.h
>>conftest.
$ac_ext
7822 cat >>conftest.
$ac_ext <<_ACEOF
7823 /* end confdefs.h. */
7824 $ac_includes_default
7825 #include <$ac_header>
7827 rm -f conftest.
$ac_objext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7829 (eval $ac_compile) 2>conftest.er1
7831 grep -v '^ *+' conftest.er1
>conftest.err
7833 cat conftest.err
>&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try
='test -z "$ac_c_werror_flag"
7837 || test ! -s conftest.err'
7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; } &&
7843 { ac_try
='test -s conftest.$ac_objext'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; }; then
7849 ac_header_compiler
=yes
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.
$ac_ext >&5
7854 ac_header_compiler
=no
7856 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7858 echo "${ECHO_T}$ac_header_compiler" >&6
7860 # Is the header present?
7861 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7863 cat >conftest.
$ac_ext <<_ACEOF
7866 cat confdefs.h
>>conftest.
$ac_ext
7867 cat >>conftest.
$ac_ext <<_ACEOF
7868 /* end confdefs.h. */
7869 #include <$ac_header>
7871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7872 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7874 grep -v '^ *+' conftest.er1
>conftest.err
7876 cat conftest.err
>&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } >/dev
/null
; then
7879 if test -s conftest.err
; then
7880 ac_cpp_err
=$ac_c_preproc_warn_flag
7881 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7888 if test -z "$ac_cpp_err"; then
7889 ac_header_preproc
=yes
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.
$ac_ext >&5
7894 ac_header_preproc
=no
7896 rm -f conftest.err conftest.
$ac_ext
7897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7898 echo "${ECHO_T}$ac_header_preproc" >&6
7900 # So? What about this header?
7901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7907 ac_header_preproc
=yes
7910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7917 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7924 ## ------------------------------------------ ##
7925 ## Report this to the AC_PACKAGE_NAME lists. ##
7926 ## ------------------------------------------ ##
7929 sed "s/^/$as_me: WARNING: /" >&2
7932 echo "$as_me:$LINENO: checking for $ac_header" >&5
7933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 eval "$as_ac_Header=\$ac_header_preproc"
7939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7944 cat >>confdefs.h
<<_ACEOF
7945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7952 if test x
"$ac_cv_header_libunwind_h" = xyes
-a x
"$ac_cv_header_libunwind_ia64_h" = xyes
; then
7953 enable_libunwind
=yes;
7958 if test x
"$enable_libunwind" = xyes
; then
7961 for ac_header
in libunwind.h libunwind-ia64.h
7963 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7965 echo "$as_me:$LINENO: checking for $ac_header" >&5
7966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7968 echo $ECHO_N "(cached) $ECHO_C" >&6
7970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7973 # Is the header compilable?
7974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7976 cat >conftest.
$ac_ext <<_ACEOF
7979 cat confdefs.h
>>conftest.
$ac_ext
7980 cat >>conftest.
$ac_ext <<_ACEOF
7981 /* end confdefs.h. */
7982 $ac_includes_default
7983 #include <$ac_header>
7985 rm -f conftest.
$ac_objext
7986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7987 (eval $ac_compile) 2>conftest.er1
7989 grep -v '^ *+' conftest.er1
>conftest.err
7991 cat conftest.err
>&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); } &&
7994 { ac_try
='test -z "$ac_c_werror_flag"
7995 || test ! -s conftest.err'
7996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; } &&
8001 { ac_try
='test -s conftest.$ac_objext'
8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; }; then
8007 ac_header_compiler
=yes
8009 echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.
$ac_ext >&5
8012 ac_header_compiler
=no
8014 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8016 echo "${ECHO_T}$ac_header_compiler" >&6
8018 # Is the header present?
8019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8021 cat >conftest.
$ac_ext <<_ACEOF
8024 cat confdefs.h
>>conftest.
$ac_ext
8025 cat >>conftest.
$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8027 #include <$ac_header>
8029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8030 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8032 grep -v '^ *+' conftest.er1
>conftest.err
8034 cat conftest.err
>&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); } >/dev
/null
; then
8037 if test -s conftest.err
; then
8038 ac_cpp_err
=$ac_c_preproc_warn_flag
8039 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8046 if test -z "$ac_cpp_err"; then
8047 ac_header_preproc
=yes
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.
$ac_ext >&5
8052 ac_header_preproc
=no
8054 rm -f conftest.err conftest.
$ac_ext
8055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8056 echo "${ECHO_T}$ac_header_preproc" >&6
8058 # So? What about this header?
8059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8065 ac_header_preproc
=yes
8068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8071 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8075 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8082 ## ------------------------------------------ ##
8083 ## Report this to the AC_PACKAGE_NAME lists. ##
8084 ## ------------------------------------------ ##
8087 sed "s/^/$as_me: WARNING: /" >&2
8090 echo "$as_me:$LINENO: checking for $ac_header" >&5
8091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8095 eval "$as_ac_Header=\$ac_header_preproc"
8097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8102 cat >>confdefs.h
<<_ACEOF
8103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8111 cat >>confdefs.h
<<\_ACEOF
8112 #define HAVE_LIBUNWIND 1
8115 CONFIG_OBS
="$CONFIG_OBS libunwind-frame.o"
8116 CONFIG_DEPS
="$CONFIG_DEPS libunwind-frame.o"
8117 CONFIG_SRCS
="$CONFIG_SRCS libunwind-frame.c"
8122 # Check whether --with-curses or --without-curses was given.
8123 if test "${with_curses+set}" = set; then
8124 withval
="$with_curses"
8129 if test "$opt_curses" = "yes"; then
8133 # Profiling support.
8134 # Check whether --enable-profiling or --disable-profiling was given.
8135 if test "${enable_profiling+set}" = set; then
8136 enableval
="$enable_profiling"
8141 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8142 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8143 { (exit 1); exit 1; }; } ;;
8151 for ac_func
in monstartup _mcleanup
8153 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8154 echo "$as_me:$LINENO: checking for $ac_func" >&5
8155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8156 if eval "test \"\${$as_ac_var+set}\" = set"; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
8159 cat >conftest.
$ac_ext <<_ACEOF
8162 cat confdefs.h
>>conftest.
$ac_ext
8163 cat >>conftest.
$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8167 #define $ac_func innocuous_$ac_func
8169 /* System header to define __stub macros and hopefully few prototypes,
8170 which can conflict with char $ac_func (); below.
8171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8172 <limits.h> exists even on freestanding compilers. */
8175 # include <limits.h>
8177 # include <assert.h>
8182 /* Override any gcc2 internal prototype to avoid an error. */
8187 /* We use char because int might match the return type of a gcc2
8188 builtin and then its argument prototype would still apply. */
8190 /* The GNU C library defines this for functions which it implements
8191 to always fail with ENOSYS. Some functions are actually named
8192 something starting with __ and the normal name is an alias. */
8193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8196 char (*f) () = $ac_func;
8205 return f != $ac_func;
8210 rm -f conftest.
$ac_objext conftest
$ac_exeext
8211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8212 (eval $ac_link) 2>conftest.er1
8214 grep -v '^ *+' conftest.er1
>conftest.err
8216 cat conftest.err
>&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } &&
8219 { ac_try
='test -z "$ac_c_werror_flag"
8220 || test ! -s conftest.err'
8221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; } &&
8226 { ac_try
='test -s conftest$ac_exeext'
8227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); }; }; then
8232 eval "$as_ac_var=yes"
8234 echo "$as_me: failed program was:" >&5
8235 sed 's/^/| /' conftest.
$ac_ext >&5
8237 eval "$as_ac_var=no"
8239 rm -f conftest.err conftest.
$ac_objext \
8240 conftest
$ac_exeext conftest.
$ac_ext
8242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8244 if test `eval echo '${'$as_ac_var'}'` = yes; then
8245 cat >>confdefs.h
<<_ACEOF
8246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8252 echo "$as_me:$LINENO: checking for _etext" >&5
8253 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8254 if test "${ac_cv_var__etext+set}" = set; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8257 cat >conftest.
$ac_ext <<_ACEOF
8260 cat confdefs.h
>>conftest.
$ac_ext
8261 cat >>conftest.
$ac_ext <<_ACEOF
8262 /* end confdefs.h. */
8274 rm -f conftest.
$ac_objext conftest
$ac_exeext
8275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8276 (eval $ac_link) 2>conftest.er1
8278 grep -v '^ *+' conftest.er1
>conftest.err
8280 cat conftest.err
>&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } &&
8283 { ac_try
='test -z "$ac_c_werror_flag"
8284 || test ! -s conftest.err'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; } &&
8290 { ac_try
='test -s conftest$ac_exeext'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; }; then
8296 ac_cv_var__etext
=yes
8298 echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.
$ac_ext >&5
8303 rm -f conftest.err conftest.
$ac_objext \
8304 conftest
$ac_exeext conftest.
$ac_ext
8306 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8307 echo "${ECHO_T}$ac_cv_var__etext" >&6
8308 if test $ac_cv_var__etext = yes; then
8310 cat >>confdefs.h
<<\_ACEOF
8311 #define HAVE__ETEXT 1
8315 echo "$as_me:$LINENO: checking for etext" >&5
8316 echo $ECHO_N "checking for etext... $ECHO_C" >&6
8317 if test "${ac_cv_var_etext+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 cat >conftest.
$ac_ext <<_ACEOF
8323 cat confdefs.h
>>conftest.
$ac_ext
8324 cat >>conftest.
$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8337 rm -f conftest.
$ac_objext conftest
$ac_exeext
8338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8339 (eval $ac_link) 2>conftest.er1
8341 grep -v '^ *+' conftest.er1
>conftest.err
8343 cat conftest.err
>&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } &&
8346 { ac_try
='test -z "$ac_c_werror_flag"
8347 || test ! -s conftest.err'
8348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; } &&
8353 { ac_try
='test -s conftest$ac_exeext'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; }; then
8361 echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.
$ac_ext >&5
8366 rm -f conftest.err conftest.
$ac_objext \
8367 conftest
$ac_exeext conftest.
$ac_ext
8369 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8370 echo "${ECHO_T}$ac_cv_var_etext" >&6
8371 if test $ac_cv_var_etext = yes; then
8373 cat >>confdefs.h
<<\_ACEOF
8374 #define HAVE_ETEXT 1
8378 if test "$enable_profiling" = yes ; then
8379 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
8380 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8381 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8382 { (exit 1); exit 1; }; }
8385 OLD_CFLAGS
="$CFLAGS"
8386 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
8388 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8389 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8390 if test "${ac_cv_cc_supports_pg+set}" = set; then
8391 echo $ECHO_N "(cached) $ECHO_C" >&6
8393 cat >conftest.
$ac_ext <<_ACEOF
8396 cat confdefs.h
>>conftest.
$ac_ext
8397 cat >>conftest.
$ac_ext <<_ACEOF
8398 /* end confdefs.h. */
8408 rm -f conftest.
$ac_objext
8409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8410 (eval $ac_compile) 2>conftest.er1
8412 grep -v '^ *+' conftest.er1
>conftest.err
8414 cat conftest.err
>&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } &&
8417 { ac_try
='test -z "$ac_c_werror_flag"
8418 || test ! -s conftest.err'
8419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; } &&
8424 { ac_try
='test -s conftest.$ac_objext'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; }; then
8430 ac_cv_cc_supports_pg
=yes
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.
$ac_ext >&5
8435 ac_cv_cc_supports_pg
=no
8437 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8439 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8440 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8442 if test $ac_cv_cc_supports_pg = no
; then
8443 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8444 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8445 { (exit 1); exit 1; }; }
8448 CFLAGS
="$OLD_CFLAGS"
8453 # Check whether --with-pkgversion or --without-pkgversion was given.
8454 if test "${with_pkgversion+set}" = set; then
8455 withval
="$with_pkgversion"
8457 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8458 echo "$as_me: error: package version not specified" >&2;}
8459 { (exit 1); exit 1; }; } ;;
8461 *) PKGVERSION
="($withval) " ;;
8471 # Check whether --with-bugurl or --without-bugurl was given.
8472 if test "${with_bugurl+set}" = set; then
8473 withval
="$with_bugurl"
8475 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8476 echo "$as_me: error: bug URL not specified" >&2;}
8477 { (exit 1); exit 1; }; } ;;
8480 *) BUGURL
="$withval"
8484 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
8493 REPORT_BUGS_TO
="<$BUGURL>"
8494 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8501 cat >>confdefs.h
<<_ACEOF
8502 #define PKGVERSION "$PKGVERSION"
8506 cat >>confdefs.h
<<_ACEOF
8507 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8511 # --------------------- #
8512 # Checks for programs. #
8513 # --------------------- #
8515 for ac_prog
in gawk mawk nawk
awk
8517 # Extract the first word of "$ac_prog", so it can be a program name with args.
8518 set dummy
$ac_prog; ac_word
=$2
8519 echo "$as_me:$LINENO: checking for $ac_word" >&5
8520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8521 if test "${ac_cv_prog_AWK+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 if test -n "$AWK"; then
8525 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8531 test -z "$as_dir" && as_dir
=.
8532 for ac_exec_ext
in '' $ac_executable_extensions; do
8533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8534 ac_cv_prog_AWK
="$ac_prog"
8535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8544 if test -n "$AWK"; then
8545 echo "$as_me:$LINENO: result: $AWK" >&5
8546 echo "${ECHO_T}$AWK" >&6
8548 echo "$as_me:$LINENO: result: no" >&5
8549 echo "${ECHO_T}no" >&6
8552 test -n "$AWK" && break
8555 # Find a good install program. We prefer a C program (faster),
8556 # so one script is as good as another. But avoid the broken or
8557 # incompatible versions:
8558 # SysV /etc/install, /usr/sbin/install
8559 # SunOS /usr/etc/install
8560 # IRIX /sbin/install
8562 # AmigaOS /C/install, which installs bootblocks on floppy discs
8563 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8564 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8565 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8566 # OS/2's system install, which has a completely different semantic
8567 # ./install, which can be erroneously created by make from ./install.sh.
8568 # Reject install programs that cannot install multiple files.
8569 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8570 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8571 if test -z "$INSTALL"; then
8572 if test "${ac_cv_path_install+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8579 test -z "$as_dir" && as_dir
=.
8580 # Account for people who put trailing slashes in PATH elements.
8582 .
/ | .
// |
/cC
/* | \
8583 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
8584 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
8587 # OSF1 and SCO ODT 3.0 have their own names for install.
8588 # Don't use installbsd from OSF since it installs stuff as root
8590 for ac_prog
in ginstall scoinst
install; do
8591 for ac_exec_ext
in '' $ac_executable_extensions; do
8592 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8593 if test $ac_prog = install &&
8594 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
8595 # AIX install. It has an incompatible calling convention.
8597 elif test $ac_prog = install &&
8598 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
8599 # program-specific install script used by HP pwplus--don't use.
8602 rm -rf conftest.one conftest.two conftest.dir
8603 echo one
> conftest.one
8604 echo two
> conftest.two
8606 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
8607 test -s conftest.one
&& test -s conftest.two
&&
8608 test -s conftest.dir
/conftest.one
&&
8609 test -s conftest.dir
/conftest.two
8611 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
8622 rm -rf conftest.one conftest.two conftest.dir
8625 if test "${ac_cv_path_install+set}" = set; then
8626 INSTALL
=$ac_cv_path_install
8628 # As a last resort, use the slow shell script. Don't cache a
8629 # value for INSTALL within a source directory, because that will
8630 # break other packages using the cache if that directory is
8631 # removed, or if the value is a relative name.
8632 INSTALL
=$ac_install_sh
8635 echo "$as_me:$LINENO: result: $INSTALL" >&5
8636 echo "${ECHO_T}$INSTALL" >&6
8638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8639 # It thinks the first close brace ends the variable substitution.
8640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
8644 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8646 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8647 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8649 if test "$LN_S" = "ln -s"; then
8650 echo "$as_me:$LINENO: result: yes" >&5
8651 echo "${ECHO_T}yes" >&6
8653 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8654 echo "${ECHO_T}no, using $LN_S" >&6
8657 if test -n "$ac_tool_prefix"; then
8658 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8659 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8660 echo "$as_me:$LINENO: checking for $ac_word" >&5
8661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8662 if test "${ac_cv_prog_RANLIB+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8665 if test -n "$RANLIB"; then
8666 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8672 test -z "$as_dir" && as_dir
=.
8673 for ac_exec_ext
in '' $ac_executable_extensions; do
8674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8675 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8684 RANLIB
=$ac_cv_prog_RANLIB
8685 if test -n "$RANLIB"; then
8686 echo "$as_me:$LINENO: result: $RANLIB" >&5
8687 echo "${ECHO_T}$RANLIB" >&6
8689 echo "$as_me:$LINENO: result: no" >&5
8690 echo "${ECHO_T}no" >&6
8694 if test -z "$ac_cv_prog_RANLIB"; then
8695 ac_ct_RANLIB
=$RANLIB
8696 # Extract the first word of "ranlib", so it can be a program name with args.
8697 set dummy ranlib
; ac_word
=$2
8698 echo "$as_me:$LINENO: checking for $ac_word" >&5
8699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8700 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
8703 if test -n "$ac_ct_RANLIB"; then
8704 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8706 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8710 test -z "$as_dir" && as_dir
=.
8711 for ac_exec_ext
in '' $ac_executable_extensions; do
8712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8713 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8720 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
8723 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8724 if test -n "$ac_ct_RANLIB"; then
8725 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8726 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8728 echo "$as_me:$LINENO: result: no" >&5
8729 echo "${ECHO_T}no" >&6
8732 RANLIB
=$ac_ct_RANLIB
8734 RANLIB
="$ac_cv_prog_RANLIB"
8737 for ac_prog
in 'bison -y' byacc
8739 # Extract the first word of "$ac_prog", so it can be a program name with args.
8740 set dummy
$ac_prog; ac_word
=$2
8741 echo "$as_me:$LINENO: checking for $ac_word" >&5
8742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8743 if test "${ac_cv_prog_YACC+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 if test -n "$YACC"; then
8747 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
8749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8753 test -z "$as_dir" && as_dir
=.
8754 for ac_exec_ext
in '' $ac_executable_extensions; do
8755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8756 ac_cv_prog_YACC
="$ac_prog"
8757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8765 YACC
=$ac_cv_prog_YACC
8766 if test -n "$YACC"; then
8767 echo "$as_me:$LINENO: result: $YACC" >&5
8768 echo "${ECHO_T}$YACC" >&6
8770 echo "$as_me:$LINENO: result: no" >&5
8771 echo "${ECHO_T}no" >&6
8774 test -n "$YACC" && break
8776 test -n "$YACC" || YACC
="yacc"
8779 if test -n "$ac_tool_prefix"; then
8780 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8781 set dummy
${ac_tool_prefix}ar; ac_word
=$2
8782 echo "$as_me:$LINENO: checking for $ac_word" >&5
8783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8784 if test "${ac_cv_prog_AR+set}" = set; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 if test -n "$AR"; then
8788 ac_cv_prog_AR
="$AR" # Let the user override the test.
8790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8794 test -z "$as_dir" && as_dir
=.
8795 for ac_exec_ext
in '' $ac_executable_extensions; do
8796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8797 ac_cv_prog_AR
="${ac_tool_prefix}ar"
8798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8807 if test -n "$AR"; then
8808 echo "$as_me:$LINENO: result: $AR" >&5
8809 echo "${ECHO_T}$AR" >&6
8811 echo "$as_me:$LINENO: result: no" >&5
8812 echo "${ECHO_T}no" >&6
8816 if test -z "$ac_cv_prog_AR"; then
8818 # Extract the first word of "ar", so it can be a program name with args.
8819 set dummy
ar; ac_word
=$2
8820 echo "$as_me:$LINENO: checking for $ac_word" >&5
8821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8822 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8825 if test -n "$ac_ct_AR"; then
8826 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
8828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8832 test -z "$as_dir" && as_dir
=.
8833 for ac_exec_ext
in '' $ac_executable_extensions; do
8834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8835 ac_cv_prog_ac_ct_AR
="ar"
8836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8844 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
8845 if test -n "$ac_ct_AR"; then
8846 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8847 echo "${ECHO_T}$ac_ct_AR" >&6
8849 echo "$as_me:$LINENO: result: no" >&5
8850 echo "${ECHO_T}no" >&6
8858 if test -n "$ac_tool_prefix"; then
8859 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8860 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
8861 echo "$as_me:$LINENO: checking for $ac_word" >&5
8862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8863 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8866 if test -n "$DLLTOOL"; then
8867 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
8869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8873 test -z "$as_dir" && as_dir
=.
8874 for ac_exec_ext
in '' $ac_executable_extensions; do
8875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8876 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
8877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8885 DLLTOOL
=$ac_cv_prog_DLLTOOL
8886 if test -n "$DLLTOOL"; then
8887 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8888 echo "${ECHO_T}$DLLTOOL" >&6
8890 echo "$as_me:$LINENO: result: no" >&5
8891 echo "${ECHO_T}no" >&6
8895 if test -z "$ac_cv_prog_DLLTOOL"; then
8896 ac_ct_DLLTOOL
=$DLLTOOL
8897 # Extract the first word of "dlltool", so it can be a program name with args.
8898 set dummy dlltool
; ac_word
=$2
8899 echo "$as_me:$LINENO: checking for $ac_word" >&5
8900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8901 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8902 echo $ECHO_N "(cached) $ECHO_C" >&6
8904 if test -n "$ac_ct_DLLTOOL"; then
8905 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
8907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8911 test -z "$as_dir" && as_dir
=.
8912 for ac_exec_ext
in '' $ac_executable_extensions; do
8913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8914 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
8915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8923 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
8924 if test -n "$ac_ct_DLLTOOL"; then
8925 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8926 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
8928 echo "$as_me:$LINENO: result: no" >&5
8929 echo "${ECHO_T}no" >&6
8932 DLLTOOL
=$ac_ct_DLLTOOL
8934 DLLTOOL
="$ac_cv_prog_DLLTOOL"
8937 if test -n "$ac_tool_prefix"; then
8938 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8939 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
8940 echo "$as_me:$LINENO: checking for $ac_word" >&5
8941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8942 if test "${ac_cv_prog_WINDRES+set}" = set; then
8943 echo $ECHO_N "(cached) $ECHO_C" >&6
8945 if test -n "$WINDRES"; then
8946 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
8948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8952 test -z "$as_dir" && as_dir
=.
8953 for ac_exec_ext
in '' $ac_executable_extensions; do
8954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8955 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
8956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8964 WINDRES
=$ac_cv_prog_WINDRES
8965 if test -n "$WINDRES"; then
8966 echo "$as_me:$LINENO: result: $WINDRES" >&5
8967 echo "${ECHO_T}$WINDRES" >&6
8969 echo "$as_me:$LINENO: result: no" >&5
8970 echo "${ECHO_T}no" >&6
8974 if test -z "$ac_cv_prog_WINDRES"; then
8975 ac_ct_WINDRES
=$WINDRES
8976 # Extract the first word of "windres", so it can be a program name with args.
8977 set dummy windres
; ac_word
=$2
8978 echo "$as_me:$LINENO: checking for $ac_word" >&5
8979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8980 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 if test -n "$ac_ct_WINDRES"; then
8984 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
8986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8990 test -z "$as_dir" && as_dir
=.
8991 for ac_exec_ext
in '' $ac_executable_extensions; do
8992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8993 ac_cv_prog_ac_ct_WINDRES
="windres"
8994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9002 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
9003 if test -n "$ac_ct_WINDRES"; then
9004 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9005 echo "${ECHO_T}$ac_ct_WINDRES" >&6
9007 echo "$as_me:$LINENO: result: no" >&5
9008 echo "${ECHO_T}no" >&6
9011 WINDRES
=$ac_ct_WINDRES
9013 WINDRES
="$ac_cv_prog_WINDRES"
9017 # Needed for GNU/Hurd.
9018 if test -n "$ac_tool_prefix"; then
9019 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9020 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
9021 echo "$as_me:$LINENO: checking for $ac_word" >&5
9022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9023 if test "${ac_cv_prog_MIG+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 if test -n "$MIG"; then
9027 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
9029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9033 test -z "$as_dir" && as_dir
=.
9034 for ac_exec_ext
in '' $ac_executable_extensions; do
9035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9036 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
9037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9046 if test -n "$MIG"; then
9047 echo "$as_me:$LINENO: result: $MIG" >&5
9048 echo "${ECHO_T}$MIG" >&6
9050 echo "$as_me:$LINENO: result: no" >&5
9051 echo "${ECHO_T}no" >&6
9055 if test -z "$ac_cv_prog_MIG"; then
9057 # Extract the first word of "mig", so it can be a program name with args.
9058 set dummy mig
; ac_word
=$2
9059 echo "$as_me:$LINENO: checking for $ac_word" >&5
9060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9061 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9064 if test -n "$ac_ct_MIG"; then
9065 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
9067 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9071 test -z "$as_dir" && as_dir
=.
9072 for ac_exec_ext
in '' $ac_executable_extensions; do
9073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9074 ac_cv_prog_ac_ct_MIG
="mig"
9075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9083 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
9084 if test -n "$ac_ct_MIG"; then
9085 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9086 echo "${ECHO_T}$ac_ct_MIG" >&6
9088 echo "$as_me:$LINENO: result: no" >&5
9089 echo "${ECHO_T}no" >&6
9094 MIG
="$ac_cv_prog_MIG"
9098 # ---------------------- #
9099 # Checks for libraries. #
9100 # ---------------------- #
9102 # We might need to link with -lm; most simulators need it.
9104 echo "$as_me:$LINENO: checking for main in -lm" >&5
9105 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9106 if test "${ac_cv_lib_m_main+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 ac_check_lib_save_LIBS
=$LIBS
9111 cat >conftest.
$ac_ext <<_ACEOF
9114 cat confdefs.h
>>conftest.
$ac_ext
9115 cat >>conftest.
$ac_ext <<_ACEOF
9116 /* end confdefs.h. */
9127 rm -f conftest.
$ac_objext conftest
$ac_exeext
9128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9129 (eval $ac_link) 2>conftest.er1
9131 grep -v '^ *+' conftest.er1
>conftest.err
9133 cat conftest.err
>&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); } &&
9136 { ac_try
='test -z "$ac_c_werror_flag"
9137 || test ! -s conftest.err'
9138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; } &&
9143 { ac_try
='test -s conftest$ac_exeext'
9144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); }; }; then
9149 ac_cv_lib_m_main
=yes
9151 echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.
$ac_ext >&5
9156 rm -f conftest.err conftest.
$ac_objext \
9157 conftest
$ac_exeext conftest.
$ac_ext
9158 LIBS
=$ac_check_lib_save_LIBS
9160 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9161 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9162 if test $ac_cv_lib_m_main = yes; then
9163 cat >>confdefs.h
<<_ACEOF
9172 # We need to link with -lw to get `wctype' on Solaris before Solaris
9173 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9174 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9175 # is known to have this problem). Therefore we avoid libw if we can.
9176 echo "$as_me:$LINENO: checking for wctype" >&5
9177 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9178 if test "${ac_cv_func_wctype+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 cat >conftest.
$ac_ext <<_ACEOF
9184 cat confdefs.h
>>conftest.
$ac_ext
9185 cat >>conftest.
$ac_ext <<_ACEOF
9186 /* end confdefs.h. */
9187 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9189 #define wctype innocuous_wctype
9191 /* System header to define __stub macros and hopefully few prototypes,
9192 which can conflict with char wctype (); below.
9193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9194 <limits.h> exists even on freestanding compilers. */
9197 # include <limits.h>
9199 # include <assert.h>
9204 /* Override any gcc2 internal prototype to avoid an error. */
9209 /* We use char because int might match the return type of a gcc2
9210 builtin and then its argument prototype would still apply. */
9212 /* The GNU C library defines this for functions which it implements
9213 to always fail with ENOSYS. Some functions are actually named
9214 something starting with __ and the normal name is an alias. */
9215 #if defined (__stub_wctype) || defined (__stub___wctype)
9218 char (*f) () = wctype;
9232 rm -f conftest.
$ac_objext conftest
$ac_exeext
9233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9234 (eval $ac_link) 2>conftest.er1
9236 grep -v '^ *+' conftest.er1
>conftest.err
9238 cat conftest.err
>&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } &&
9241 { ac_try
='test -z "$ac_c_werror_flag"
9242 || test ! -s conftest.err'
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; } &&
9248 { ac_try
='test -s conftest$ac_exeext'
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; }; then
9254 ac_cv_func_wctype
=yes
9256 echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.
$ac_ext >&5
9259 ac_cv_func_wctype
=no
9261 rm -f conftest.err conftest.
$ac_objext \
9262 conftest
$ac_exeext conftest.
$ac_ext
9264 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9265 echo "${ECHO_T}$ac_cv_func_wctype" >&6
9266 if test $ac_cv_func_wctype = yes; then
9270 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9271 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9272 if test "${ac_cv_lib_w_wctype+set}" = set; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 ac_check_lib_save_LIBS
=$LIBS
9277 cat >conftest.
$ac_ext <<_ACEOF
9280 cat confdefs.h
>>conftest.
$ac_ext
9281 cat >>conftest.
$ac_ext <<_ACEOF
9282 /* end confdefs.h. */
9284 /* Override any gcc2 internal prototype to avoid an error. */
9288 /* We use char because int might match the return type of a gcc2
9289 builtin and then its argument prototype would still apply. */
9299 rm -f conftest.
$ac_objext conftest
$ac_exeext
9300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9301 (eval $ac_link) 2>conftest.er1
9303 grep -v '^ *+' conftest.er1
>conftest.err
9305 cat conftest.err
>&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } &&
9308 { ac_try
='test -z "$ac_c_werror_flag"
9309 || test ! -s conftest.err'
9310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); }; } &&
9315 { ac_try
='test -s conftest$ac_exeext'
9316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); }; }; then
9321 ac_cv_lib_w_wctype
=yes
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.
$ac_ext >&5
9326 ac_cv_lib_w_wctype
=no
9328 rm -f conftest.err conftest.
$ac_objext \
9329 conftest
$ac_exeext conftest.
$ac_ext
9330 LIBS
=$ac_check_lib_save_LIBS
9332 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9333 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9334 if test $ac_cv_lib_w_wctype = yes; then
9335 cat >>confdefs.h
<<_ACEOF
9346 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9347 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9348 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9349 if test "${ac_cv_search_gethostbyname+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 ac_func_search_save_LIBS
=$LIBS
9353 ac_cv_search_gethostbyname
=no
9354 cat >conftest.
$ac_ext <<_ACEOF
9357 cat confdefs.h
>>conftest.
$ac_ext
9358 cat >>conftest.
$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9361 /* Override any gcc2 internal prototype to avoid an error. */
9365 /* We use char because int might match the return type of a gcc2
9366 builtin and then its argument prototype would still apply. */
9367 char gethostbyname ();
9376 rm -f conftest.
$ac_objext conftest
$ac_exeext
9377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9378 (eval $ac_link) 2>conftest.er1
9380 grep -v '^ *+' conftest.er1
>conftest.err
9382 cat conftest.err
>&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } &&
9385 { ac_try
='test -z "$ac_c_werror_flag"
9386 || test ! -s conftest.err'
9387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); }; } &&
9392 { ac_try
='test -s conftest$ac_exeext'
9393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); }; }; then
9398 ac_cv_search_gethostbyname
="none required"
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.
$ac_ext >&5
9404 rm -f conftest.err conftest.
$ac_objext \
9405 conftest
$ac_exeext conftest.
$ac_ext
9406 if test "$ac_cv_search_gethostbyname" = no
; then
9407 for ac_lib
in nsl
; do
9408 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9409 cat >conftest.
$ac_ext <<_ACEOF
9412 cat confdefs.h
>>conftest.
$ac_ext
9413 cat >>conftest.
$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9416 /* Override any gcc2 internal prototype to avoid an error. */
9420 /* We use char because int might match the return type of a gcc2
9421 builtin and then its argument prototype would still apply. */
9422 char gethostbyname ();
9431 rm -f conftest.
$ac_objext conftest
$ac_exeext
9432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9433 (eval $ac_link) 2>conftest.er1
9435 grep -v '^ *+' conftest.er1
>conftest.err
9437 cat conftest.err
>&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } &&
9440 { ac_try
='test -z "$ac_c_werror_flag"
9441 || test ! -s conftest.err'
9442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); }; } &&
9447 { ac_try
='test -s conftest$ac_exeext'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; }; then
9453 ac_cv_search_gethostbyname
="-l$ac_lib"
9456 echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.
$ac_ext >&5
9460 rm -f conftest.err conftest.
$ac_objext \
9461 conftest
$ac_exeext conftest.
$ac_ext
9464 LIBS
=$ac_func_search_save_LIBS
9466 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9467 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9468 if test "$ac_cv_search_gethostbyname" != no
; then
9469 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
9474 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9475 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9476 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9477 if test "${ac_cv_search_socketpair+set}" = set; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9480 ac_func_search_save_LIBS
=$LIBS
9481 ac_cv_search_socketpair
=no
9482 cat >conftest.
$ac_ext <<_ACEOF
9485 cat confdefs.h
>>conftest.
$ac_ext
9486 cat >>conftest.
$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9489 /* Override any gcc2 internal prototype to avoid an error. */
9493 /* We use char because int might match the return type of a gcc2
9494 builtin and then its argument prototype would still apply. */
9504 rm -f conftest.
$ac_objext conftest
$ac_exeext
9505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9506 (eval $ac_link) 2>conftest.er1
9508 grep -v '^ *+' conftest.er1
>conftest.err
9510 cat conftest.err
>&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); } &&
9513 { ac_try
='test -z "$ac_c_werror_flag"
9514 || test ! -s conftest.err'
9515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; } &&
9520 { ac_try
='test -s conftest$ac_exeext'
9521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }; }; then
9526 ac_cv_search_socketpair
="none required"
9528 echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.
$ac_ext >&5
9532 rm -f conftest.err conftest.
$ac_objext \
9533 conftest
$ac_exeext conftest.
$ac_ext
9534 if test "$ac_cv_search_socketpair" = no
; then
9535 for ac_lib
in socket
; do
9536 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9537 cat >conftest.
$ac_ext <<_ACEOF
9540 cat confdefs.h
>>conftest.
$ac_ext
9541 cat >>conftest.
$ac_ext <<_ACEOF
9542 /* end confdefs.h. */
9544 /* Override any gcc2 internal prototype to avoid an error. */
9548 /* We use char because int might match the return type of a gcc2
9549 builtin and then its argument prototype would still apply. */
9559 rm -f conftest.
$ac_objext conftest
$ac_exeext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9561 (eval $ac_link) 2>conftest.er1
9563 grep -v '^ *+' conftest.er1
>conftest.err
9565 cat conftest.err
>&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } &&
9568 { ac_try
='test -z "$ac_c_werror_flag"
9569 || test ! -s conftest.err'
9570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; } &&
9575 { ac_try
='test -s conftest$ac_exeext'
9576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); }; }; then
9581 ac_cv_search_socketpair
="-l$ac_lib"
9584 echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.
$ac_ext >&5
9588 rm -f conftest.err conftest.
$ac_objext \
9589 conftest
$ac_exeext conftest.
$ac_ext
9592 LIBS
=$ac_func_search_save_LIBS
9594 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9595 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9596 if test "$ac_cv_search_socketpair" != no
; then
9597 test "$ac_cv_search_socketpair" = "none required" || LIBS
="$ac_cv_search_socketpair $LIBS"
9602 # Link in zlib if we can. This allows us to read compressed debug sections.
9603 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9604 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9605 if test "${ac_cv_search_zlibVersion+set}" = set; then
9606 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 ac_func_search_save_LIBS
=$LIBS
9609 ac_cv_search_zlibVersion
=no
9610 cat >conftest.
$ac_ext <<_ACEOF
9613 cat confdefs.h
>>conftest.
$ac_ext
9614 cat >>conftest.
$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9617 /* Override any gcc2 internal prototype to avoid an error. */
9621 /* We use char because int might match the return type of a gcc2
9622 builtin and then its argument prototype would still apply. */
9623 char zlibVersion ();
9632 rm -f conftest.
$ac_objext conftest
$ac_exeext
9633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9634 (eval $ac_link) 2>conftest.er1
9636 grep -v '^ *+' conftest.er1
>conftest.err
9638 cat conftest.err
>&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); } &&
9641 { ac_try
='test -z "$ac_c_werror_flag"
9642 || test ! -s conftest.err'
9643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); }; } &&
9648 { ac_try
='test -s conftest$ac_exeext'
9649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); }; }; then
9654 ac_cv_search_zlibVersion
="none required"
9656 echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.
$ac_ext >&5
9660 rm -f conftest.err conftest.
$ac_objext \
9661 conftest
$ac_exeext conftest.
$ac_ext
9662 if test "$ac_cv_search_zlibVersion" = no
; then
9664 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9665 cat >conftest.
$ac_ext <<_ACEOF
9668 cat confdefs.h
>>conftest.
$ac_ext
9669 cat >>conftest.
$ac_ext <<_ACEOF
9670 /* end confdefs.h. */
9672 /* Override any gcc2 internal prototype to avoid an error. */
9676 /* We use char because int might match the return type of a gcc2
9677 builtin and then its argument prototype would still apply. */
9678 char zlibVersion ();
9687 rm -f conftest.
$ac_objext conftest
$ac_exeext
9688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9689 (eval $ac_link) 2>conftest.er1
9691 grep -v '^ *+' conftest.er1
>conftest.err
9693 cat conftest.err
>&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); } &&
9696 { ac_try
='test -z "$ac_c_werror_flag"
9697 || test ! -s conftest.err'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; } &&
9703 { ac_try
='test -s conftest$ac_exeext'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; }; then
9709 ac_cv_search_zlibVersion
="-l$ac_lib"
9712 echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.
$ac_ext >&5
9716 rm -f conftest.err conftest.
$ac_objext \
9717 conftest
$ac_exeext conftest.
$ac_ext
9720 LIBS
=$ac_func_search_save_LIBS
9722 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9723 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9724 if test "$ac_cv_search_zlibVersion" != no
; then
9725 test "$ac_cv_search_zlibVersion" = "none required" || LIBS
="$ac_cv_search_zlibVersion $LIBS"
9727 for ac_header
in zlib.h
9729 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9731 echo "$as_me:$LINENO: checking for $ac_header" >&5
9732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9739 # Is the header compilable?
9740 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9742 cat >conftest.
$ac_ext <<_ACEOF
9745 cat confdefs.h
>>conftest.
$ac_ext
9746 cat >>conftest.
$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748 $ac_includes_default
9749 #include <$ac_header>
9751 rm -f conftest.
$ac_objext
9752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9753 (eval $ac_compile) 2>conftest.er1
9755 grep -v '^ *+' conftest.er1
>conftest.err
9757 cat conftest.err
>&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } &&
9760 { ac_try
='test -z "$ac_c_werror_flag"
9761 || test ! -s conftest.err'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; } &&
9767 { ac_try
='test -s conftest.$ac_objext'
9768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; }; then
9773 ac_header_compiler
=yes
9775 echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.
$ac_ext >&5
9778 ac_header_compiler
=no
9780 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9782 echo "${ECHO_T}$ac_header_compiler" >&6
9784 # Is the header present?
9785 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9787 cat >conftest.
$ac_ext <<_ACEOF
9790 cat confdefs.h
>>conftest.
$ac_ext
9791 cat >>conftest.
$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793 #include <$ac_header>
9795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9796 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9798 grep -v '^ *+' conftest.er1
>conftest.err
9800 cat conftest.err
>&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } >/dev
/null
; then
9803 if test -s conftest.err
; then
9804 ac_cpp_err
=$ac_c_preproc_warn_flag
9805 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9812 if test -z "$ac_cpp_err"; then
9813 ac_header_preproc
=yes
9815 echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.
$ac_ext >&5
9818 ac_header_preproc
=no
9820 rm -f conftest.err conftest.
$ac_ext
9821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9822 echo "${ECHO_T}$ac_header_preproc" >&6
9824 # So? What about this header?
9825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9830 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9831 ac_header_preproc
=yes
9834 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9835 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9836 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9837 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9838 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9839 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9840 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9841 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9844 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9845 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9848 ## ------------------------------------------ ##
9849 ## Report this to the AC_PACKAGE_NAME lists. ##
9850 ## ------------------------------------------ ##
9853 sed "s/^/$as_me: WARNING: /" >&2
9856 echo "$as_me:$LINENO: checking for $ac_header" >&5
9857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 eval "$as_ac_Header=\$ac_header_preproc"
9863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9868 cat >>confdefs.h
<<_ACEOF
9869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9879 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9880 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
9881 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
9882 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 ac_func_search_save_LIBS
=$LIBS
9886 ac_cv_search_dlgetmodinfo
=no
9887 cat >conftest.
$ac_ext <<_ACEOF
9890 cat confdefs.h
>>conftest.
$ac_ext
9891 cat >>conftest.
$ac_ext <<_ACEOF
9892 /* end confdefs.h. */
9894 /* Override any gcc2 internal prototype to avoid an error. */
9898 /* We use char because int might match the return type of a gcc2
9899 builtin and then its argument prototype would still apply. */
9900 char dlgetmodinfo ();
9909 rm -f conftest.
$ac_objext conftest
$ac_exeext
9910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9911 (eval $ac_link) 2>conftest.er1
9913 grep -v '^ *+' conftest.er1
>conftest.err
9915 cat conftest.err
>&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); } &&
9918 { ac_try
='test -z "$ac_c_werror_flag"
9919 || test ! -s conftest.err'
9920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); }; } &&
9925 { ac_try
='test -s conftest$ac_exeext'
9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; }; then
9931 ac_cv_search_dlgetmodinfo
="none required"
9933 echo "$as_me: failed program was:" >&5
9934 sed 's/^/| /' conftest.
$ac_ext >&5
9937 rm -f conftest.err conftest.
$ac_objext \
9938 conftest
$ac_exeext conftest.
$ac_ext
9939 if test "$ac_cv_search_dlgetmodinfo" = no
; then
9940 for ac_lib
in dl xpdl
; do
9941 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9942 cat >conftest.
$ac_ext <<_ACEOF
9945 cat confdefs.h
>>conftest.
$ac_ext
9946 cat >>conftest.
$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9949 /* Override any gcc2 internal prototype to avoid an error. */
9953 /* We use char because int might match the return type of a gcc2
9954 builtin and then its argument prototype would still apply. */
9955 char dlgetmodinfo ();
9964 rm -f conftest.
$ac_objext conftest
$ac_exeext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9966 (eval $ac_link) 2>conftest.er1
9968 grep -v '^ *+' conftest.er1
>conftest.err
9970 cat conftest.err
>&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try
='test -z "$ac_c_werror_flag"
9974 || test ! -s conftest.err'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; } &&
9980 { ac_try
='test -s conftest$ac_exeext'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; }; then
9986 ac_cv_search_dlgetmodinfo
="-l$ac_lib"
9989 echo "$as_me: failed program was:" >&5
9990 sed 's/^/| /' conftest.
$ac_ext >&5
9993 rm -f conftest.err conftest.
$ac_objext \
9994 conftest
$ac_exeext conftest.
$ac_ext
9997 LIBS
=$ac_func_search_save_LIBS
9999 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10000 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10001 if test "$ac_cv_search_dlgetmodinfo" != no
; then
10002 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS
="$ac_cv_search_dlgetmodinfo $LIBS"
10010 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10011 if test "${with_libiconv_prefix+set}" = set; then
10012 withval
="$with_libiconv_prefix"
10014 for dir
in `echo "$withval" | tr : ' '`; do
10015 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
10016 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
10021 BUILD_LIBICONV_LIBDIR
="-L../libiconv/lib/.libs -L../libiconv/lib/_libs"
10022 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
10024 echo "$as_me:$LINENO: checking for iconv" >&5
10025 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10026 if test "${am_cv_func_iconv+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10030 am_cv_func_iconv
="no, consider installing GNU libiconv"
10032 am_cv_use_build_libiconv
=no
10033 # First, try to find iconv in libc.
10034 cat >conftest.
$ac_ext <<_ACEOF
10037 cat confdefs.h
>>conftest.
$ac_ext
10038 cat >>conftest.
$ac_ext <<_ACEOF
10039 /* end confdefs.h. */
10040 #include <stdlib.h>
10045 iconv_t cd = iconv_open("","");
10046 iconv(cd,NULL,NULL,NULL,NULL);
10052 rm -f conftest.
$ac_objext conftest
$ac_exeext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10054 (eval $ac_link) 2>conftest.er1
10056 grep -v '^ *+' conftest.er1
>conftest.err
10058 cat conftest.err
>&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } &&
10061 { ac_try
='test -z "$ac_c_werror_flag"
10062 || test ! -s conftest.err'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; } &&
10068 { ac_try
='test -s conftest$ac_exeext'
10069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070 (eval $ac_try) 2>&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; }; then
10074 am_cv_func_iconv
=yes
10076 echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.
$ac_ext >&5
10080 rm -f conftest.err conftest.
$ac_objext \
10081 conftest
$ac_exeext conftest.
$ac_ext
10083 # If iconv was not in libc, try -liconv. In this case, arrange to
10084 # look in the libiconv prefix, if it was specified by the user.
10085 if test "$am_cv_func_iconv" != yes; then
10086 am_save_CPPFLAGS
="$CPPFLAGS"
10087 am_save_LIBS
="$LIBS"
10088 if test -n "$LIBICONV_INCLUDE"; then
10089 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
10090 LIBS
="$LIBS $LIBICONV_LIBDIR"
10092 LIBS
="$LIBS -liconv"
10093 cat >conftest.
$ac_ext <<_ACEOF
10096 cat confdefs.h
>>conftest.
$ac_ext
10097 cat >>conftest.
$ac_ext <<_ACEOF
10098 /* end confdefs.h. */
10099 #include <stdlib.h>
10104 iconv_t cd = iconv_open("","");
10105 iconv(cd,NULL,NULL,NULL,NULL);
10111 rm -f conftest.
$ac_objext conftest
$ac_exeext
10112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10113 (eval $ac_link) 2>conftest.er1
10115 grep -v '^ *+' conftest.er1
>conftest.err
10117 cat conftest.err
>&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } &&
10120 { ac_try
='test -z "$ac_c_werror_flag"
10121 || test ! -s conftest.err'
10122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123 (eval $ac_try) 2>&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); }; } &&
10127 { ac_try
='test -s conftest$ac_exeext'
10128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129 (eval $ac_try) 2>&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; }; then
10133 am_cv_lib_iconv
=yes
10134 am_cv_func_iconv
=yes
10136 echo "$as_me: failed program was:" >&5
10137 sed 's/^/| /' conftest.
$ac_ext >&5
10140 rm -f conftest.err conftest.
$ac_objext \
10141 conftest
$ac_exeext conftest.
$ac_ext
10142 LIBS
="$am_save_LIBS"
10143 CPPFLAGS
="$am_save_CPPFLAGS"
10146 # If that didn't work, try to find libiconv in the build tree.
10147 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
10148 am_save_LIBS
="$LIBS"
10149 am_save_CPPFLAGS
="$CPPFLAGS"
10150 LIBS
="$LIBS $BUILD_LIBICONV_LIBDIR -liconv"
10151 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
10152 cat >conftest.
$ac_ext <<_ACEOF
10155 cat confdefs.h
>>conftest.
$ac_ext
10156 cat >>conftest.
$ac_ext <<_ACEOF
10157 /* end confdefs.h. */
10158 #include <stdlib.h>
10163 iconv_t cd = iconv_open("","");
10164 iconv(cd,NULL,NULL,NULL,NULL);
10170 rm -f conftest.
$ac_objext conftest
$ac_exeext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172 (eval $ac_link) 2>conftest.er1
10174 grep -v '^ *+' conftest.er1
>conftest.err
10176 cat conftest.err
>&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } &&
10179 { ac_try
='test -z "$ac_c_werror_flag"
10180 || test ! -s conftest.err'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; } &&
10186 { ac_try
='test -s conftest$ac_exeext'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
10192 am_cv_use_build_libiconv
=yes
10193 am_cv_lib_iconv
=yes
10194 am_cv_func_iconv
=yes
10196 echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.
$ac_ext >&5
10200 rm -f conftest.err conftest.
$ac_objext \
10201 conftest
$ac_exeext conftest.
$ac_ext
10202 LIBS
="$am_save_LIBS"
10203 CPPFLAGS
="$am_save_CPPFLAGS"
10207 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10208 echo "${ECHO_T}$am_cv_func_iconv" >&6
10210 # Set the various flags based on the cache variables. We can't rely
10211 # on the flags to remain set from the above code, due to caching.
10213 if test "$am_cv_lib_iconv" = yes; then
10219 if test "$am_cv_use_build_libiconv" = yes; then
10220 LIBICONV_LIBDIR
="$BUILD_LIBICONV_LIBDIR"
10221 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
10223 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
10224 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
10226 if test "$am_cv_func_iconv" = yes; then
10228 cat >>confdefs.h
<<\_ACEOF
10229 #define HAVE_ICONV 1
10232 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10233 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10234 if test "${am_cv_proto_iconv+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 cat >conftest.
$ac_ext <<_ACEOF
10241 cat confdefs.h
>>conftest.
$ac_ext
10242 cat >>conftest.
$ac_ext <<_ACEOF
10243 /* end confdefs.h. */
10245 #include <stdlib.h>
10251 #if defined(__STDC__) || defined(__cplusplus)
10252 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10265 rm -f conftest.
$ac_objext
10266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10267 (eval $ac_compile) 2>conftest.er1
10269 grep -v '^ *+' conftest.er1
>conftest.err
10271 cat conftest.err
>&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } &&
10274 { ac_try
='test -z "$ac_c_werror_flag"
10275 || test ! -s conftest.err'
10276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277 (eval $ac_try) 2>&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; } &&
10281 { ac_try
='test -s conftest.$ac_objext'
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; }; then
10287 am_cv_proto_iconv_arg1
=""
10289 echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.
$ac_ext >&5
10292 am_cv_proto_iconv_arg1
="const"
10294 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10295 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);"
10298 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10299 echo "$as_me:$LINENO: result: ${ac_t:-
10300 }$am_cv_proto_iconv" >&5
10301 echo "${ECHO_T}${ac_t:-
10302 }$am_cv_proto_iconv" >&6
10304 cat >>confdefs.h
<<_ACEOF
10305 #define ICONV_CONST $am_cv_proto_iconv_arg1
10311 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
10312 # There is a very specific comment in /usr/include/curses.h explaining that
10313 # termcap routines built into libcurses must not be used.
10315 # The symptoms we observed so far is GDB unexpectedly changing
10316 # the terminal settings when tgetent is called - this is particularly
10317 # visible as the output is missing carriage returns, and so rapidly
10318 # becomes very hard to read.
10320 # The readline configure script has already decided that libtermcap
10321 # was enough for its purposes, and so decided to build readline using
10322 # libtermcap. Since the TUI mode requires curses, building GDB with
10323 # TUI enabled results in both libraries to be used at the same time,
10324 # which is not allowed. This basically means that GDB with TUI is
10325 # broken on alpha-osf.
10329 if "$enable_tui" = "yes"; then
10330 { { echo "$as_me:$LINENO: error: Building GDB with TUI mode is not supported on this host" >&5
10331 echo "$as_me: error: Building GDB with TUI mode is not supported on this host" >&2;}
10332 { (exit 1); exit 1; }; }
10334 if "$enable_tui" = "auto"; then
10340 # For the TUI, we need enhanced curses functionality.
10341 if test x
"$enable_tui" != xno
; then
10346 if test x
"$prefer_curses" = xyes
; then
10347 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
10348 # curses library because the latter might not provide all the
10349 # functionality we need. However, this leads to problems on systems
10350 # where the linker searches /usr/local/lib, but the compiler doesn't
10351 # search /usr/local/include, if ncurses is installed in /usr/local. A
10352 # default installation of ncurses on alpha*-dec-osf* will lead to such
10354 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
10355 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
10356 if test "${ac_cv_search_waddstr+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10359 ac_func_search_save_LIBS
=$LIBS
10360 ac_cv_search_waddstr
=no
10361 cat >conftest.
$ac_ext <<_ACEOF
10364 cat confdefs.h
>>conftest.
$ac_ext
10365 cat >>conftest.
$ac_ext <<_ACEOF
10366 /* end confdefs.h. */
10368 /* Override any gcc2 internal prototype to avoid an error. */
10372 /* We use char because int might match the return type of a gcc2
10373 builtin and then its argument prototype would still apply. */
10383 rm -f conftest.
$ac_objext conftest
$ac_exeext
10384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10385 (eval $ac_link) 2>conftest.er1
10387 grep -v '^ *+' conftest.er1
>conftest.err
10389 cat conftest.err
>&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); } &&
10392 { ac_try
='test -z "$ac_c_werror_flag"
10393 || test ! -s conftest.err'
10394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10395 (eval $ac_try) 2>&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); }; } &&
10399 { ac_try
='test -s conftest$ac_exeext'
10400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10401 (eval $ac_try) 2>&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; }; then
10405 ac_cv_search_waddstr
="none required"
10407 echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.
$ac_ext >&5
10411 rm -f conftest.err conftest.
$ac_objext \
10412 conftest
$ac_exeext conftest.
$ac_ext
10413 if test "$ac_cv_search_waddstr" = no
; then
10414 for ac_lib
in ncurses cursesX curses
; do
10415 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10416 cat >conftest.
$ac_ext <<_ACEOF
10419 cat confdefs.h
>>conftest.
$ac_ext
10420 cat >>conftest.
$ac_ext <<_ACEOF
10421 /* end confdefs.h. */
10423 /* Override any gcc2 internal prototype to avoid an error. */
10427 /* We use char because int might match the return type of a gcc2
10428 builtin and then its argument prototype would still apply. */
10438 rm -f conftest.
$ac_objext conftest
$ac_exeext
10439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10440 (eval $ac_link) 2>conftest.er1
10442 grep -v '^ *+' conftest.er1
>conftest.err
10444 cat conftest.err
>&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); } &&
10447 { ac_try
='test -z "$ac_c_werror_flag"
10448 || test ! -s conftest.err'
10449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10450 (eval $ac_try) 2>&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); }; } &&
10454 { ac_try
='test -s conftest$ac_exeext'
10455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456 (eval $ac_try) 2>&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); }; }; then
10460 ac_cv_search_waddstr
="-l$ac_lib"
10463 echo "$as_me: failed program was:" >&5
10464 sed 's/^/| /' conftest.
$ac_ext >&5
10467 rm -f conftest.err conftest.
$ac_objext \
10468 conftest
$ac_exeext conftest.
$ac_ext
10471 LIBS
=$ac_func_search_save_LIBS
10473 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10474 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10475 if test "$ac_cv_search_waddstr" != no
; then
10476 test "$ac_cv_search_waddstr" = "none required" || LIBS
="$ac_cv_search_waddstr $LIBS"
10481 if test "$ac_cv_search_waddstr" != no
; then
10486 # Check whether we should enable the TUI, but only do so if we really
10488 if test x
"$enable_tui" != xno
; then
10489 if test -d $srcdir/tui
; then
10490 if test "$curses_found" != no
; then
10491 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
10492 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
10493 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
10494 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
10495 CONFIG_ALL
="${CONFIG_ALL} all-tui"
10496 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-tui"
10497 CONFIG_INSTALL
="${CONFIG_INSTALL} install-tui"
10498 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-tui"
10500 if test x
"$enable_tui" = xyes
; then
10501 { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
10502 echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
10503 { (exit 1); exit 1; }; }
10505 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
10506 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
10512 # Since GDB uses Readline, we need termcap functionality. In many
10513 # cases this will be provided by the curses library, but some systems
10514 # have a seperate termcap library, or no curses library at all.
10518 if test -d $srcdir/libtermcap
; then
10519 LIBS
="../libtermcap/libtermcap.a $LIBS"
10520 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
10523 ac_cv_search_tgetent
="none required"
10526 ac_cv_search_tgetent
="none required"
10527 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
10531 # These are the libraries checked by Readline.
10532 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10533 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10534 if test "${ac_cv_search_tgetent+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 ac_func_search_save_LIBS
=$LIBS
10538 ac_cv_search_tgetent
=no
10539 cat >conftest.
$ac_ext <<_ACEOF
10542 cat confdefs.h
>>conftest.
$ac_ext
10543 cat >>conftest.
$ac_ext <<_ACEOF
10544 /* end confdefs.h. */
10546 /* Override any gcc2 internal prototype to avoid an error. */
10550 /* We use char because int might match the return type of a gcc2
10551 builtin and then its argument prototype would still apply. */
10561 rm -f conftest.
$ac_objext conftest
$ac_exeext
10562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10563 (eval $ac_link) 2>conftest.er1
10565 grep -v '^ *+' conftest.er1
>conftest.err
10567 cat conftest.err
>&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); } &&
10570 { ac_try
='test -z "$ac_c_werror_flag"
10571 || test ! -s conftest.err'
10572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573 (eval $ac_try) 2>&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; } &&
10577 { ac_try
='test -s conftest$ac_exeext'
10578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10579 (eval $ac_try) 2>&5
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; }; then
10583 ac_cv_search_tgetent
="none required"
10585 echo "$as_me: failed program was:" >&5
10586 sed 's/^/| /' conftest.
$ac_ext >&5
10589 rm -f conftest.err conftest.
$ac_objext \
10590 conftest
$ac_exeext conftest.
$ac_ext
10591 if test "$ac_cv_search_tgetent" = no
; then
10592 for ac_lib
in termcap tinfo curses ncurses
; do
10593 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10594 cat >conftest.
$ac_ext <<_ACEOF
10597 cat confdefs.h
>>conftest.
$ac_ext
10598 cat >>conftest.
$ac_ext <<_ACEOF
10599 /* end confdefs.h. */
10601 /* Override any gcc2 internal prototype to avoid an error. */
10605 /* We use char because int might match the return type of a gcc2
10606 builtin and then its argument prototype would still apply. */
10616 rm -f conftest.
$ac_objext conftest
$ac_exeext
10617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10618 (eval $ac_link) 2>conftest.er1
10620 grep -v '^ *+' conftest.er1
>conftest.err
10622 cat conftest.err
>&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } &&
10625 { ac_try
='test -z "$ac_c_werror_flag"
10626 || test ! -s conftest.err'
10627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10628 (eval $ac_try) 2>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; } &&
10632 { ac_try
='test -s conftest$ac_exeext'
10633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634 (eval $ac_try) 2>&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; }; then
10638 ac_cv_search_tgetent
="-l$ac_lib"
10641 echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.
$ac_ext >&5
10645 rm -f conftest.err conftest.
$ac_objext \
10646 conftest
$ac_exeext conftest.
$ac_ext
10649 LIBS
=$ac_func_search_save_LIBS
10651 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10652 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10653 if test "$ac_cv_search_tgetent" != no
; then
10654 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
10659 if test "$ac_cv_search_tgetent" = no
; then
10660 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10661 echo "$as_me: error: no termcap library found" >&2;}
10662 { (exit 1); exit 1; }; }
10666 # Check whether --with-system-readline or --without-system-readline was given.
10667 if test "${with_system_readline+set}" = set; then
10668 withval
="$with_system_readline"
10672 if test "$with_system_readline" = yes; then
10673 READLINE
=-lreadline
10677 READLINE
='$(READLINE_DIR)/libreadline.a'
10678 READLINE_DEPS
='$(READLINE)'
10679 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
10686 # Check whether --with-expat or --without-expat was given.
10687 if test "${with_expat+set}" = set; then
10688 withval
="$with_expat"
10693 echo "$as_me:$LINENO: checking whether to use expat" >&5
10694 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10695 echo "$as_me:$LINENO: result: $with_expat" >&5
10696 echo "${ECHO_T}$with_expat" >&6
10698 if test "${with_expat}" = no
; then
10699 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10700 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10704 if test "X$prefix" = "XNONE"; then
10705 acl_final_prefix
="$ac_default_prefix"
10707 acl_final_prefix
="$prefix"
10709 if test "X$exec_prefix" = "XNONE"; then
10710 acl_final_exec_prefix
='${prefix}'
10712 acl_final_exec_prefix
="$exec_prefix"
10714 acl_save_prefix
="$prefix"
10715 prefix
="$acl_final_prefix"
10716 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10717 prefix
="$acl_save_prefix"
10720 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10721 if test "${with_gnu_ld+set}" = set; then
10722 withval
="$with_gnu_ld"
10723 test "$withval" = no || with_gnu_ld
=yes
10727 # Prepare PATH_SEPARATOR.
10728 # The user is always right.
10729 if test "${PATH_SEPARATOR+set}" != set; then
10730 echo "#! /bin/sh" >conf$$.sh
10731 echo "exit 0" >>conf$$.sh
10733 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10741 if test "$GCC" = yes; then
10742 # Check if gcc -print-prog-name=ld gives a path.
10743 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10744 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10747 # gcc leaves a trailing carriage return which upsets mingw
10748 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10750 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10753 # Accept absolute paths.
10754 [\\/]* |
[A-Za-z
]:[\\/]*)
10755 re_direlt
='/[^/][^/]*/\.\./'
10756 # Canonicalize the path of ld
10757 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10758 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10759 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10761 test -z "$LD" && LD
="$ac_prog"
10764 # If it fails, then pretend we aren't using GCC.
10768 # If it is relative, then search for the first ld in PATH.
10769 with_gnu_ld
=unknown
10772 elif test "$with_gnu_ld" = yes; then
10773 echo "$as_me:$LINENO: checking for GNU ld" >&5
10774 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10776 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10777 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10779 if test "${acl_cv_path_LD+set}" = set; then
10780 echo $ECHO_N "(cached) $ECHO_C" >&6
10782 if test -z "$LD"; then
10783 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10784 for ac_dir
in $PATH; do
10785 test -z "$ac_dir" && ac_dir
=.
10786 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10787 acl_cv_path_LD
="$ac_dir/$ac_prog"
10788 # Check to see if the program is GNU ld. I'd rather use --version,
10789 # but apparently some GNU ld's only accept -v.
10790 # Break only if it was the GNU/non-GNU ld that we prefer.
10791 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10792 test "$with_gnu_ld" != no
&& break
10794 test "$with_gnu_ld" != yes && break
10800 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10804 LD
="$acl_cv_path_LD"
10805 if test -n "$LD"; then
10806 echo "$as_me:$LINENO: result: $LD" >&5
10807 echo "${ECHO_T}$LD" >&6
10809 echo "$as_me:$LINENO: result: no" >&5
10810 echo "${ECHO_T}no" >&6
10812 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10813 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10814 { (exit 1); exit 1; }; }
10815 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10816 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10817 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10820 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10821 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10822 acl_cv_prog_gnu_ld
=yes
10824 acl_cv_prog_gnu_ld
=no
10827 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10828 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10829 with_gnu_ld
=$acl_cv_prog_gnu_ld
10833 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10834 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10835 if test "${acl_cv_rpath+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10840 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10842 rm -f .
/conftest.sh
10846 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10847 echo "${ECHO_T}$acl_cv_rpath" >&6
10849 libext
="$acl_cv_libext"
10850 shlibext
="$acl_cv_shlibext"
10851 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10852 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10853 hardcode_direct
="$acl_cv_hardcode_direct"
10854 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10855 # Check whether --enable-rpath or --disable-rpath was given.
10856 if test "${enable_rpath+set}" = set; then
10857 enableval
="$enable_rpath"
10873 acl_save_prefix
="$prefix"
10874 prefix
="$acl_final_prefix"
10875 acl_save_exec_prefix
="$exec_prefix"
10876 exec_prefix
="$acl_final_exec_prefix"
10878 eval additional_includedir
=\"$includedir\"
10879 eval additional_libdir
=\"$libdir\"
10881 exec_prefix
="$acl_save_exec_prefix"
10882 prefix
="$acl_save_prefix"
10885 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10886 if test "${with_libexpat_prefix+set}" = set; then
10887 withval
="$with_libexpat_prefix"
10889 if test "X$withval" = "Xno"; then
10892 if test "X$withval" = "X"; then
10894 acl_save_prefix
="$prefix"
10895 prefix
="$acl_final_prefix"
10896 acl_save_exec_prefix
="$exec_prefix"
10897 exec_prefix
="$acl_final_exec_prefix"
10899 eval additional_includedir
=\"$includedir\"
10900 eval additional_libdir
=\"$libdir\"
10902 exec_prefix
="$acl_save_exec_prefix"
10903 prefix
="$acl_save_prefix"
10906 additional_includedir
="$withval/include"
10907 additional_libdir
="$withval/lib"
10917 names_already_handled
=
10918 names_next_round
='expat '
10919 while test -n "$names_next_round"; do
10920 names_this_round
="$names_next_round"
10922 for name
in $names_this_round; do
10924 for n
in $names_already_handled; do
10925 if test "$n" = "$name"; then
10926 already_handled
=yes
10930 if test -z "$already_handled"; then
10931 names_already_handled
="$names_already_handled $name"
10932 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10933 eval value
=\"\
$HAVE_LIB$uppername\"
10934 if test -n "$value"; then
10935 if test "$value" = yes; then
10936 eval value
=\"\
$LIB$uppername\"
10937 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
10938 eval value
=\"\
$LTLIB$uppername\"
10939 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10948 if test $use_additional = yes; then
10949 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10950 found_dir
="$additional_libdir"
10951 found_so
="$additional_libdir/lib$name.$shlibext"
10952 if test -f "$additional_libdir/lib$name.la"; then
10953 found_la
="$additional_libdir/lib$name.la"
10956 if test -f "$additional_libdir/lib$name.$libext"; then
10957 found_dir
="$additional_libdir"
10958 found_a
="$additional_libdir/lib$name.$libext"
10959 if test -f "$additional_libdir/lib$name.la"; then
10960 found_la
="$additional_libdir/lib$name.la"
10965 if test "X$found_dir" = "X"; then
10966 for x
in $LDFLAGS $LTLIBEXPAT; do
10968 acl_save_prefix
="$prefix"
10969 prefix
="$acl_final_prefix"
10970 acl_save_exec_prefix
="$exec_prefix"
10971 exec_prefix
="$acl_final_exec_prefix"
10973 exec_prefix
="$acl_save_exec_prefix"
10974 prefix
="$acl_save_prefix"
10978 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10979 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10981 found_so
="$dir/lib$name.$shlibext"
10982 if test -f "$dir/lib$name.la"; then
10983 found_la
="$dir/lib$name.la"
10986 if test -f "$dir/lib$name.$libext"; then
10988 found_a
="$dir/lib$name.$libext"
10989 if test -f "$dir/lib$name.la"; then
10990 found_la
="$dir/lib$name.la"
10996 if test "X$found_dir" != "X"; then
11001 if test "X$found_dir" != "X"; then
11002 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
11003 if test "X$found_so" != "X"; then
11004 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11005 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11008 for x
in $ltrpathdirs; do
11009 if test "X$x" = "X$found_dir"; then
11014 if test -z "$haveit"; then
11015 ltrpathdirs
="$ltrpathdirs $found_dir"
11017 if test "$hardcode_direct" = yes; then
11018 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11020 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11021 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11023 for x
in $rpathdirs; do
11024 if test "X$x" = "X$found_dir"; then
11029 if test -z "$haveit"; then
11030 rpathdirs
="$rpathdirs $found_dir"
11034 for x
in $LDFLAGS $LIBEXPAT; do
11036 acl_save_prefix
="$prefix"
11037 prefix
="$acl_final_prefix"
11038 acl_save_exec_prefix
="$exec_prefix"
11039 exec_prefix
="$acl_final_exec_prefix"
11041 exec_prefix
="$acl_save_exec_prefix"
11042 prefix
="$acl_save_prefix"
11044 if test "X$x" = "X-L$found_dir"; then
11049 if test -z "$haveit"; then
11050 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
11052 if test "$hardcode_minus_L" != no
; then
11053 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11055 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11061 if test "X$found_a" != "X"; then
11062 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
11064 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
11067 additional_includedir
=
11068 case "$found_dir" in
11070 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11071 additional_includedir
="$basedir/include"
11074 if test "X$additional_includedir" != "X"; then
11075 if test "X$additional_includedir" != "X/usr/include"; then
11077 if test "X$additional_includedir" = "X/usr/local/include"; then
11078 if test -n "$GCC"; then
11080 linux
*) haveit
=yes;;
11084 if test -z "$haveit"; then
11085 for x
in $CPPFLAGS $INCEXPAT; do
11087 acl_save_prefix
="$prefix"
11088 prefix
="$acl_final_prefix"
11089 acl_save_exec_prefix
="$exec_prefix"
11090 exec_prefix
="$acl_final_exec_prefix"
11092 exec_prefix
="$acl_save_exec_prefix"
11093 prefix
="$acl_save_prefix"
11095 if test "X$x" = "X-I$additional_includedir"; then
11100 if test -z "$haveit"; then
11101 if test -d "$additional_includedir"; then
11102 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
11108 if test -n "$found_la"; then
11109 save_libdir
="$libdir"
11110 case "$found_la" in
11111 */* |
*\\*) .
"$found_la" ;;
11112 *) .
"./$found_la" ;;
11114 libdir
="$save_libdir"
11115 for dep
in $dependency_libs; do
11118 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11119 if test "X$additional_libdir" != "X/usr/lib"; then
11121 if test "X$additional_libdir" = "X/usr/local/lib"; then
11122 if test -n "$GCC"; then
11124 linux
*) haveit
=yes;;
11128 if test -z "$haveit"; then
11130 for x
in $LDFLAGS $LIBEXPAT; do
11132 acl_save_prefix
="$prefix"
11133 prefix
="$acl_final_prefix"
11134 acl_save_exec_prefix
="$exec_prefix"
11135 exec_prefix
="$acl_final_exec_prefix"
11137 exec_prefix
="$acl_save_exec_prefix"
11138 prefix
="$acl_save_prefix"
11140 if test "X$x" = "X-L$additional_libdir"; then
11145 if test -z "$haveit"; then
11146 if test -d "$additional_libdir"; then
11147 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
11151 for x
in $LDFLAGS $LTLIBEXPAT; do
11153 acl_save_prefix
="$prefix"
11154 prefix
="$acl_final_prefix"
11155 acl_save_exec_prefix
="$exec_prefix"
11156 exec_prefix
="$acl_final_exec_prefix"
11158 exec_prefix
="$acl_save_exec_prefix"
11159 prefix
="$acl_save_prefix"
11161 if test "X$x" = "X-L$additional_libdir"; then
11166 if test -z "$haveit"; then
11167 if test -d "$additional_libdir"; then
11168 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
11175 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11176 if test "$enable_rpath" != no
; then
11178 for x
in $rpathdirs; do
11179 if test "X$x" = "X$dir"; then
11184 if test -z "$haveit"; then
11185 rpathdirs
="$rpathdirs $dir"
11188 for x
in $ltrpathdirs; do
11189 if test "X$x" = "X$dir"; then
11194 if test -z "$haveit"; then
11195 ltrpathdirs
="$ltrpathdirs $dir"
11200 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11203 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11206 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
11207 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
11213 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11214 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
11220 if test "X$rpathdirs" != "X"; then
11221 if test -n "$hardcode_libdir_separator"; then
11223 for found_dir
in $rpathdirs; do
11224 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11226 acl_save_libdir
="$libdir"
11228 eval flag
=\"$hardcode_libdir_flag_spec\"
11229 libdir
="$acl_save_libdir"
11230 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11232 for found_dir
in $rpathdirs; do
11233 acl_save_libdir
="$libdir"
11234 libdir
="$found_dir"
11235 eval flag
=\"$hardcode_libdir_flag_spec\"
11236 libdir
="$acl_save_libdir"
11237 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11241 if test "X$ltrpathdirs" != "X"; then
11242 for found_dir
in $ltrpathdirs; do
11243 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
11248 ac_save_CPPFLAGS
="$CPPFLAGS"
11250 for element
in $INCEXPAT; do
11252 for x
in $CPPFLAGS; do
11254 acl_save_prefix
="$prefix"
11255 prefix
="$acl_final_prefix"
11256 acl_save_exec_prefix
="$exec_prefix"
11257 exec_prefix
="$acl_final_exec_prefix"
11259 exec_prefix
="$acl_save_exec_prefix"
11260 prefix
="$acl_save_prefix"
11262 if test "X$x" = "X$element"; then
11267 if test -z "$haveit"; then
11268 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11273 echo "$as_me:$LINENO: checking for libexpat" >&5
11274 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11275 if test "${ac_cv_libexpat+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 ac_save_LIBS
="$LIBS"
11280 LIBS
="$LIBS $LIBEXPAT"
11281 cat >conftest.
$ac_ext <<_ACEOF
11284 cat confdefs.h
>>conftest.
$ac_ext
11285 cat >>conftest.
$ac_ext <<_ACEOF
11286 /* end confdefs.h. */
11291 XML_Parser p = XML_ParserCreate (0);
11296 rm -f conftest.
$ac_objext conftest
$ac_exeext
11297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11298 (eval $ac_link) 2>conftest.er1
11300 grep -v '^ *+' conftest.er1
>conftest.err
11302 cat conftest.err
>&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } &&
11305 { ac_try
='test -z "$ac_c_werror_flag"
11306 || test ! -s conftest.err'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; } &&
11312 { ac_try
='test -s conftest$ac_exeext'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; }; then
11320 echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.
$ac_ext >&5
11325 rm -f conftest.err conftest.
$ac_objext \
11326 conftest
$ac_exeext conftest.
$ac_ext
11327 LIBS
="$ac_save_LIBS"
11330 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11331 echo "${ECHO_T}$ac_cv_libexpat" >&6
11332 if test "$ac_cv_libexpat" = yes; then
11335 cat >>confdefs.h
<<\_ACEOF
11336 #define HAVE_LIBEXPAT 1
11339 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11340 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11341 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11342 echo "${ECHO_T}$LIBEXPAT" >&6
11345 CPPFLAGS
="$ac_save_CPPFLAGS"
11355 if test "$HAVE_LIBEXPAT" != yes; then
11356 if test "$with_expat" = yes; then
11357 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11358 echo "$as_me: error: expat is missing or unusable" >&2;}
11359 { (exit 1); exit 1; }; }
11361 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11362 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11366 LIBS
="$LIBS $LIBEXPAT"
11368 for ac_func
in XML_StopParser
11370 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11371 echo "$as_me:$LINENO: checking for $ac_func" >&5
11372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11373 if eval "test \"\${$as_ac_var+set}\" = set"; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 cat >conftest.
$ac_ext <<_ACEOF
11379 cat confdefs.h
>>conftest.
$ac_ext
11380 cat >>conftest.
$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11384 #define $ac_func innocuous_$ac_func
11386 /* System header to define __stub macros and hopefully few prototypes,
11387 which can conflict with char $ac_func (); below.
11388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11389 <limits.h> exists even on freestanding compilers. */
11392 # include <limits.h>
11394 # include <assert.h>
11399 /* Override any gcc2 internal prototype to avoid an error. */
11404 /* We use char because int might match the return type of a gcc2
11405 builtin and then its argument prototype would still apply. */
11407 /* The GNU C library defines this for functions which it implements
11408 to always fail with ENOSYS. Some functions are actually named
11409 something starting with __ and the normal name is an alias. */
11410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11413 char (*f) () = $ac_func;
11422 return f != $ac_func;
11427 rm -f conftest.
$ac_objext conftest
$ac_exeext
11428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11429 (eval $ac_link) 2>conftest.er1
11431 grep -v '^ *+' conftest.er1
>conftest.err
11433 cat conftest.err
>&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); } &&
11436 { ac_try
='test -z "$ac_c_werror_flag"
11437 || test ! -s conftest.err'
11438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11439 (eval $ac_try) 2>&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; } &&
11443 { ac_try
='test -s conftest$ac_exeext'
11444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445 (eval $ac_try) 2>&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; }; then
11449 eval "$as_ac_var=yes"
11451 echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.
$ac_ext >&5
11454 eval "$as_ac_var=no"
11456 rm -f conftest.err conftest.
$ac_objext \
11457 conftest
$ac_exeext conftest.
$ac_ext
11459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11461 if test `eval echo '${'$as_ac_var'}'` = yes; then
11462 cat >>confdefs.h
<<_ACEOF
11463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11476 # Check whether --with-python or --without-python was given.
11477 if test "${with_python+set}" = set; then
11478 withval
="$with_python"
11483 echo "$as_me:$LINENO: checking whether to use python" >&5
11484 echo $ECHO_N "checking whether to use python... $ECHO_C" >&6
11485 echo "$as_me:$LINENO: result: $with_python" >&5
11486 echo "${ECHO_T}$with_python" >&6
11488 if test "${with_python}" = no
; then
11489 { echo "$as_me:$LINENO: WARNING: python support disabled; some features may be unavailable." >&5
11490 echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11493 case "${with_python}" in
11495 # Leave as empty, use defaults.
11500 python_includes
="-I${with_python}/include"
11501 python_libs
="-L${with_python}/lib"
11504 { { echo "$as_me:$LINENO: error: invalid value for --with-python" >&5
11505 echo "$as_me: error: invalid value for --with-python" >&2;}
11506 { (exit 1); exit 1; }; }
11510 save_CPPFLAGS
=$CPPFLAGS
11511 CPPFLAGS
="$CPPFLAGS ${python_includes}"
11513 LIBS
="$LIBS ${python_libs}"
11515 if test "${have_libpython}" = no
; then
11520 HAVE_LIBPYTHON2_6
=no
11521 echo "$as_me:$LINENO: checking for ${version}" >&5
11522 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11524 LIBS
="$LIBS -l${version}"
11525 cat >conftest.
$ac_ext <<_ACEOF
11528 cat confdefs.h
>>conftest.
$ac_ext
11529 cat >>conftest.
$ac_ext <<_ACEOF
11530 /* end confdefs.h. */
11531 #include "${version}/Python.h"
11540 rm -f conftest.
$ac_objext conftest
$ac_exeext
11541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11542 (eval $ac_link) 2>conftest.er1
11544 grep -v '^ *+' conftest.er1
>conftest.err
11546 cat conftest.err
>&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); } &&
11549 { ac_try
='test -z "$ac_c_werror_flag"
11550 || test ! -s conftest.err'
11551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11552 (eval $ac_try) 2>&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); }; } &&
11556 { ac_try
='test -s conftest$ac_exeext'
11557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558 (eval $ac_try) 2>&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); }; }; then
11562 HAVE_LIBPYTHON2_6
=yes
11565 echo "$as_me: failed program was:" >&5
11566 sed 's/^/| /' conftest.
$ac_ext >&5
11570 rm -f conftest.err conftest.
$ac_objext \
11571 conftest
$ac_exeext conftest.
$ac_ext
11572 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_6" >&5
11573 echo "${ECHO_T}$HAVE_LIBPYTHON2_6" >&6
11575 if test "${HAVE_LIBPYTHON2_6}" = yes; then
11577 cat >>confdefs.h
<<\_ACEOF
11578 #define HAVE_LIBPYTHON2_6 1
11583 if test ${have_libpython} = no
; then
11588 HAVE_LIBPYTHON2_5
=no
11589 echo "$as_me:$LINENO: checking for ${version}" >&5
11590 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11592 LIBS
="$LIBS -l${version}"
11593 cat >conftest.
$ac_ext <<_ACEOF
11596 cat confdefs.h
>>conftest.
$ac_ext
11597 cat >>conftest.
$ac_ext <<_ACEOF
11598 /* end confdefs.h. */
11599 #include "${version}/Python.h"
11608 rm -f conftest.
$ac_objext conftest
$ac_exeext
11609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11610 (eval $ac_link) 2>conftest.er1
11612 grep -v '^ *+' conftest.er1
>conftest.err
11614 cat conftest.err
>&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); } &&
11617 { ac_try
='test -z "$ac_c_werror_flag"
11618 || test ! -s conftest.err'
11619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620 (eval $ac_try) 2>&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; } &&
11624 { ac_try
='test -s conftest$ac_exeext'
11625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11626 (eval $ac_try) 2>&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); }; }; then
11630 HAVE_LIBPYTHON2_5
=yes
11633 echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.
$ac_ext >&5
11638 rm -f conftest.err conftest.
$ac_objext \
11639 conftest
$ac_exeext conftest.
$ac_ext
11640 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_5" >&5
11641 echo "${ECHO_T}$HAVE_LIBPYTHON2_5" >&6
11643 if test "${HAVE_LIBPYTHON2_5}" = yes; then
11645 cat >>confdefs.h
<<\_ACEOF
11646 #define HAVE_LIBPYTHON2_5 1
11651 if test ${have_libpython} = no
; then
11656 HAVE_LIBPYTHON2_4
=no
11657 echo "$as_me:$LINENO: checking for ${version}" >&5
11658 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11660 LIBS
="$LIBS -l${version}"
11661 cat >conftest.
$ac_ext <<_ACEOF
11664 cat confdefs.h
>>conftest.
$ac_ext
11665 cat >>conftest.
$ac_ext <<_ACEOF
11666 /* end confdefs.h. */
11667 #include "${version}/Python.h"
11676 rm -f conftest.
$ac_objext conftest
$ac_exeext
11677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11678 (eval $ac_link) 2>conftest.er1
11680 grep -v '^ *+' conftest.er1
>conftest.err
11682 cat conftest.err
>&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); } &&
11685 { ac_try
='test -z "$ac_c_werror_flag"
11686 || test ! -s conftest.err'
11687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11688 (eval $ac_try) 2>&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); }; } &&
11692 { ac_try
='test -s conftest$ac_exeext'
11693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694 (eval $ac_try) 2>&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; }; then
11698 HAVE_LIBPYTHON2_4
=yes
11701 echo "$as_me: failed program was:" >&5
11702 sed 's/^/| /' conftest.
$ac_ext >&5
11706 rm -f conftest.err conftest.
$ac_objext \
11707 conftest
$ac_exeext conftest.
$ac_ext
11708 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_4" >&5
11709 echo "${ECHO_T}$HAVE_LIBPYTHON2_4" >&6
11711 if test "${HAVE_LIBPYTHON2_4}" = yes; then
11713 cat >>confdefs.h
<<\_ACEOF
11714 #define HAVE_LIBPYTHON2_4 1
11719 if test ${have_libpython} = no
; then
11720 case "${with_python}" in
11722 { { echo "$as_me:$LINENO: error: python is missing or unusable" >&5
11723 echo "$as_me: error: python is missing or unusable" >&2;}
11724 { (exit 1); exit 1; }; }
11727 { echo "$as_me:$LINENO: WARNING: python is missing or unusable; some features may be unavailable." >&5
11728 echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11731 { { echo "$as_me:$LINENO: error: no usable python found at ${with_python}" >&5
11732 echo "$as_me: error: no usable python found at ${with_python}" >&2;}
11733 { (exit 1); exit 1; }; }
11736 CPPFLAGS
=$save_CPPFLAGS
11741 if test "${have_libpython}" = yes; then
11743 cat >>confdefs.h
<<\_ACEOF
11744 #define HAVE_PYTHON 1
11747 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11748 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11749 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11750 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11752 # Flags needed to compile Python code (taken from python-config --cflags).
11753 # We cannot call python-config directly because it will output whatever was
11754 # used when compiling the Python interpreter itself, including flags which
11755 # would make the python-related objects be compiled differently from the
11756 # rest of GDB (e.g., -O2 and -fPIC).
11757 if test "${GCC}" = yes; then
11758 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
11761 if test "x${tentative_python_cflags}" != x
; then
11762 echo "$as_me:$LINENO: checking compiler flags for python code" >&5
11763 echo $ECHO_N "checking compiler flags for python code... $ECHO_C" >&6
11764 for flag
in ${tentative_python_cflags}; do
11765 # Check that the compiler accepts it
11766 saved_CFLAGS
="$CFLAGS"
11767 CFLAGS
="$CFLAGS $flag"
11768 cat >conftest.
$ac_ext <<_ACEOF
11771 cat confdefs.h
>>conftest.
$ac_ext
11772 cat >>conftest.
$ac_ext <<_ACEOF
11773 /* end confdefs.h. */
11783 rm -f conftest.
$ac_objext
11784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11785 (eval $ac_compile) 2>conftest.er1
11787 grep -v '^ *+' conftest.er1
>conftest.err
11789 cat conftest.err
>&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } &&
11792 { ac_try
='test -z "$ac_c_werror_flag"
11793 || test ! -s conftest.err'
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; } &&
11799 { ac_try
='test -s conftest.$ac_objext'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; }; then
11805 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
11807 echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.
$ac_ext >&5
11811 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11812 CFLAGS
="$saved_CFLAGS"
11814 echo "$as_me:$LINENO: result: ${PYTHON_CFLAGS}" >&5
11815 echo "${ECHO_T}${PYTHON_CFLAGS}" >&6
11818 # Even if Python support is not compiled in, we need to have these files
11819 # included in order to recognize the GDB command "python".
11820 CONFIG_OBS
="$CONFIG_OBS python.o python-value.o"
11821 CONFIG_SRCS
="$CONFIG_SRCS python/python.c python/python-value.c"
11825 # ------------------------- #
11826 # Checks for header files. #
11827 # ------------------------- #
11834 ac_header_dirent
=no
11835 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
11836 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11837 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11838 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
11842 cat >conftest.
$ac_ext <<_ACEOF
11845 cat confdefs.h
>>conftest.
$ac_ext
11846 cat >>conftest.
$ac_ext <<_ACEOF
11847 /* end confdefs.h. */
11848 #include <sys/types.h>
11860 rm -f conftest.
$ac_objext
11861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11862 (eval $ac_compile) 2>conftest.er1
11864 grep -v '^ *+' conftest.er1
>conftest.err
11866 cat conftest.err
>&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } &&
11869 { ac_try
='test -z "$ac_c_werror_flag"
11870 || test ! -s conftest.err'
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; } &&
11876 { ac_try
='test -s conftest.$ac_objext'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
11882 eval "$as_ac_Header=yes"
11884 echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.
$ac_ext >&5
11887 eval "$as_ac_Header=no"
11889 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11894 cat >>confdefs.h
<<_ACEOF
11895 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11898 ac_header_dirent
=$ac_hdr; break
11902 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11903 if test $ac_header_dirent = dirent.h
; then
11904 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11905 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11906 if test "${ac_cv_search_opendir+set}" = set; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11909 ac_func_search_save_LIBS
=$LIBS
11910 ac_cv_search_opendir
=no
11911 cat >conftest.
$ac_ext <<_ACEOF
11914 cat confdefs.h
>>conftest.
$ac_ext
11915 cat >>conftest.
$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11918 /* Override any gcc2 internal prototype to avoid an error. */
11922 /* We use char because int might match the return type of a gcc2
11923 builtin and then its argument prototype would still apply. */
11933 rm -f conftest.
$ac_objext conftest
$ac_exeext
11934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11935 (eval $ac_link) 2>conftest.er1
11937 grep -v '^ *+' conftest.er1
>conftest.err
11939 cat conftest.err
>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } &&
11942 { ac_try
='test -z "$ac_c_werror_flag"
11943 || test ! -s conftest.err'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; } &&
11949 { ac_try
='test -s conftest$ac_exeext'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; }; then
11955 ac_cv_search_opendir
="none required"
11957 echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.
$ac_ext >&5
11961 rm -f conftest.err conftest.
$ac_objext \
11962 conftest
$ac_exeext conftest.
$ac_ext
11963 if test "$ac_cv_search_opendir" = no
; then
11964 for ac_lib
in dir
; do
11965 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11966 cat >conftest.
$ac_ext <<_ACEOF
11969 cat confdefs.h
>>conftest.
$ac_ext
11970 cat >>conftest.
$ac_ext <<_ACEOF
11971 /* end confdefs.h. */
11973 /* Override any gcc2 internal prototype to avoid an error. */
11977 /* We use char because int might match the return type of a gcc2
11978 builtin and then its argument prototype would still apply. */
11988 rm -f conftest.
$ac_objext conftest
$ac_exeext
11989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11990 (eval $ac_link) 2>conftest.er1
11992 grep -v '^ *+' conftest.er1
>conftest.err
11994 cat conftest.err
>&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); } &&
11997 { ac_try
='test -z "$ac_c_werror_flag"
11998 || test ! -s conftest.err'
11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; } &&
12004 { ac_try
='test -s conftest$ac_exeext'
12005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006 (eval $ac_try) 2>&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; }; then
12010 ac_cv_search_opendir
="-l$ac_lib"
12013 echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.
$ac_ext >&5
12017 rm -f conftest.err conftest.
$ac_objext \
12018 conftest
$ac_exeext conftest.
$ac_ext
12021 LIBS
=$ac_func_search_save_LIBS
12023 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12024 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12025 if test "$ac_cv_search_opendir" != no
; then
12026 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
12031 echo "$as_me:$LINENO: checking for library containing opendir" >&5
12032 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
12033 if test "${ac_cv_search_opendir+set}" = set; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12036 ac_func_search_save_LIBS
=$LIBS
12037 ac_cv_search_opendir
=no
12038 cat >conftest.
$ac_ext <<_ACEOF
12041 cat confdefs.h
>>conftest.
$ac_ext
12042 cat >>conftest.
$ac_ext <<_ACEOF
12043 /* end confdefs.h. */
12045 /* Override any gcc2 internal prototype to avoid an error. */
12049 /* We use char because int might match the return type of a gcc2
12050 builtin and then its argument prototype would still apply. */
12060 rm -f conftest.
$ac_objext conftest
$ac_exeext
12061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12062 (eval $ac_link) 2>conftest.er1
12064 grep -v '^ *+' conftest.er1
>conftest.err
12066 cat conftest.err
>&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } &&
12069 { ac_try
='test -z "$ac_c_werror_flag"
12070 || test ! -s conftest.err'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; } &&
12076 { ac_try
='test -s conftest$ac_exeext'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 ac_cv_search_opendir
="none required"
12084 echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.
$ac_ext >&5
12088 rm -f conftest.err conftest.
$ac_objext \
12089 conftest
$ac_exeext conftest.
$ac_ext
12090 if test "$ac_cv_search_opendir" = no
; then
12091 for ac_lib
in x
; do
12092 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12093 cat >conftest.
$ac_ext <<_ACEOF
12096 cat confdefs.h
>>conftest.
$ac_ext
12097 cat >>conftest.
$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12100 /* Override any gcc2 internal prototype to avoid an error. */
12104 /* We use char because int might match the return type of a gcc2
12105 builtin and then its argument prototype would still apply. */
12115 rm -f conftest.
$ac_objext conftest
$ac_exeext
12116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12117 (eval $ac_link) 2>conftest.er1
12119 grep -v '^ *+' conftest.er1
>conftest.err
12121 cat conftest.err
>&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } &&
12124 { ac_try
='test -z "$ac_c_werror_flag"
12125 || test ! -s conftest.err'
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; } &&
12131 { ac_try
='test -s conftest$ac_exeext'
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; }; then
12137 ac_cv_search_opendir
="-l$ac_lib"
12140 echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.
$ac_ext >&5
12144 rm -f conftest.err conftest.
$ac_objext \
12145 conftest
$ac_exeext conftest.
$ac_ext
12148 LIBS
=$ac_func_search_save_LIBS
12150 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12151 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12152 if test "$ac_cv_search_opendir" != no
; then
12153 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
12159 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12160 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12161 if test "${ac_cv_header_stat_broken+set}" = set; then
12162 echo $ECHO_N "(cached) $ECHO_C" >&6
12164 cat >conftest.
$ac_ext <<_ACEOF
12167 cat confdefs.h
>>conftest.
$ac_ext
12168 cat >>conftest.
$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12170 #include <sys/types.h>
12171 #include <sys/stat.h>
12173 #if defined(S_ISBLK) && defined(S_IFDIR)
12174 # if S_ISBLK (S_IFDIR)
12179 #if defined(S_ISBLK) && defined(S_IFCHR)
12180 # if S_ISBLK (S_IFCHR)
12185 #if defined(S_ISLNK) && defined(S_IFREG)
12186 # if S_ISLNK (S_IFREG)
12191 #if defined(S_ISSOCK) && defined(S_IFREG)
12192 # if S_ISSOCK (S_IFREG)
12198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12199 $EGREP "You lose" >/dev
/null
2>&1; then
12200 ac_cv_header_stat_broken
=yes
12202 ac_cv_header_stat_broken
=no
12207 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12208 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12209 if test $ac_cv_header_stat_broken = yes; then
12211 cat >>confdefs.h
<<\_ACEOF
12212 #define STAT_MACROS_BROKEN 1
12217 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12218 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12219 if test "${ac_cv_header_stdc+set}" = set; then
12220 echo $ECHO_N "(cached) $ECHO_C" >&6
12222 cat >conftest.
$ac_ext <<_ACEOF
12225 cat confdefs.h
>>conftest.
$ac_ext
12226 cat >>conftest.
$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12228 #include <stdlib.h>
12229 #include <stdarg.h>
12230 #include <string.h>
12241 rm -f conftest.
$ac_objext
12242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12243 (eval $ac_compile) 2>conftest.er1
12245 grep -v '^ *+' conftest.er1
>conftest.err
12247 cat conftest.err
>&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } &&
12250 { ac_try
='test -z "$ac_c_werror_flag"
12251 || test ! -s conftest.err'
12252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253 (eval $ac_try) 2>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; } &&
12257 { ac_try
='test -s conftest.$ac_objext'
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; }; then
12263 ac_cv_header_stdc
=yes
12265 echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.
$ac_ext >&5
12268 ac_cv_header_stdc
=no
12270 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12272 if test $ac_cv_header_stdc = yes; then
12273 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12274 cat >conftest.
$ac_ext <<_ACEOF
12277 cat confdefs.h
>>conftest.
$ac_ext
12278 cat >>conftest.
$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12280 #include <string.h>
12283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12284 $EGREP "memchr" >/dev
/null
2>&1; then
12287 ac_cv_header_stdc
=no
12293 if test $ac_cv_header_stdc = yes; then
12294 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12295 cat >conftest.
$ac_ext <<_ACEOF
12298 cat confdefs.h
>>conftest.
$ac_ext
12299 cat >>conftest.
$ac_ext <<_ACEOF
12300 /* end confdefs.h. */
12301 #include <stdlib.h>
12304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12305 $EGREP "free" >/dev
/null
2>&1; then
12308 ac_cv_header_stdc
=no
12314 if test $ac_cv_header_stdc = yes; then
12315 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12316 if test "$cross_compiling" = yes; then
12319 cat >conftest.
$ac_ext <<_ACEOF
12322 cat confdefs.h
>>conftest.
$ac_ext
12323 cat >>conftest.
$ac_ext <<_ACEOF
12324 /* end confdefs.h. */
12326 #if ((' ' & 0x0FF) == 0x020)
12327 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12328 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12330 # define ISLOWER(c) \
12331 (('a' <= (c) && (c) <= 'i') \
12332 || ('j' <= (c) && (c) <= 'r') \
12333 || ('s' <= (c) && (c) <= 'z'))
12334 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12337 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12342 for (i = 0; i < 256; i++)
12343 if (XOR (islower (i), ISLOWER (i))
12344 || toupper (i) != TOUPPER (i))
12349 rm -f conftest
$ac_exeext
12350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12351 (eval $ac_link) 2>&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356 (eval $ac_try) 2>&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; }; then
12362 echo "$as_me: program exited with status $ac_status" >&5
12363 echo "$as_me: failed program was:" >&5
12364 sed 's/^/| /' conftest.
$ac_ext >&5
12366 ( exit $ac_status )
12367 ac_cv_header_stdc
=no
12369 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12373 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12374 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12375 if test $ac_cv_header_stdc = yes; then
12377 cat >>confdefs.h
<<\_ACEOF
12378 #define STDC_HEADERS 1
12383 # elf_hp.h is for HP/UX 64-bit shared library support.
12384 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
12385 # unconditionally, so what's the point in checking these?
12423 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
12424 thread_db.h gnu
/libc-version.h signal.h stddef.h \
12425 stdlib.h string.h memory.h
strings.h sys
/fault.h \
12426 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
12427 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
12428 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
12429 sys
/types.h sys
/wait.h
wait.h termios.h termio.h \
12430 sgtty.h unistd.h elf_hp.h ctype.h
time.h locale.h
12432 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12434 echo "$as_me:$LINENO: checking for $ac_header" >&5
12435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12437 echo $ECHO_N "(cached) $ECHO_C" >&6
12439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12442 # Is the header compilable?
12443 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12445 cat >conftest.
$ac_ext <<_ACEOF
12448 cat confdefs.h
>>conftest.
$ac_ext
12449 cat >>conftest.
$ac_ext <<_ACEOF
12450 /* end confdefs.h. */
12451 $ac_includes_default
12452 #include <$ac_header>
12454 rm -f conftest.
$ac_objext
12455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12456 (eval $ac_compile) 2>conftest.er1
12458 grep -v '^ *+' conftest.er1
>conftest.err
12460 cat conftest.err
>&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } &&
12463 { ac_try
='test -z "$ac_c_werror_flag"
12464 || test ! -s conftest.err'
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; } &&
12470 { ac_try
='test -s conftest.$ac_objext'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; }; then
12476 ac_header_compiler
=yes
12478 echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.
$ac_ext >&5
12481 ac_header_compiler
=no
12483 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12485 echo "${ECHO_T}$ac_header_compiler" >&6
12487 # Is the header present?
12488 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12490 cat >conftest.
$ac_ext <<_ACEOF
12493 cat confdefs.h
>>conftest.
$ac_ext
12494 cat >>conftest.
$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12496 #include <$ac_header>
12498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12499 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12501 grep -v '^ *+' conftest.er1
>conftest.err
12503 cat conftest.err
>&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } >/dev
/null
; then
12506 if test -s conftest.err
; then
12507 ac_cpp_err
=$ac_c_preproc_warn_flag
12508 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12515 if test -z "$ac_cpp_err"; then
12516 ac_header_preproc
=yes
12518 echo "$as_me: failed program was:" >&5
12519 sed 's/^/| /' conftest.
$ac_ext >&5
12521 ac_header_preproc
=no
12523 rm -f conftest.err conftest.
$ac_ext
12524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12525 echo "${ECHO_T}$ac_header_preproc" >&6
12527 # So? What about this header?
12528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12534 ac_header_preproc
=yes
12537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12542 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12544 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12548 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12551 ## ------------------------------------------ ##
12552 ## Report this to the AC_PACKAGE_NAME lists. ##
12553 ## ------------------------------------------ ##
12556 sed "s/^/$as_me: WARNING: /" >&2
12559 echo "$as_me:$LINENO: checking for $ac_header" >&5
12560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12564 eval "$as_ac_Header=\$ac_header_preproc"
12566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12571 cat >>confdefs.h
<<_ACEOF
12572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12580 for ac_header
in link.h
12582 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12583 echo "$as_me:$LINENO: checking for $ac_header" >&5
12584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12588 cat >conftest.
$ac_ext <<_ACEOF
12591 cat confdefs.h
>>conftest.
$ac_ext
12592 cat >>conftest.
$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12594 #if HAVE_SYS_TYPES_H
12595 # include <sys/types.h>
12598 # include <nlist.h>
12602 #include <$ac_header>
12604 rm -f conftest.
$ac_objext
12605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12606 (eval $ac_compile) 2>conftest.er1
12608 grep -v '^ *+' conftest.er1
>conftest.err
12610 cat conftest.err
>&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } &&
12613 { ac_try
='test -z "$ac_c_werror_flag"
12614 || test ! -s conftest.err'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; } &&
12620 { ac_try
='test -s conftest.$ac_objext'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; }; then
12626 eval "$as_ac_Header=yes"
12628 echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.
$ac_ext >&5
12631 eval "$as_ac_Header=no"
12633 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12638 cat >>confdefs.h
<<_ACEOF
12639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12647 for ac_header
in sys
/proc.h
12649 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12650 echo "$as_me:$LINENO: checking for $ac_header" >&5
12651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12653 echo $ECHO_N "(cached) $ECHO_C" >&6
12655 cat >conftest.
$ac_ext <<_ACEOF
12658 cat confdefs.h
>>conftest.
$ac_ext
12659 cat >>conftest.
$ac_ext <<_ACEOF
12660 /* end confdefs.h. */
12661 #if HAVE_SYS_PARAM_H
12662 # include <sys/param.h>
12666 #include <$ac_header>
12668 rm -f conftest.
$ac_objext
12669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12670 (eval $ac_compile) 2>conftest.er1
12672 grep -v '^ *+' conftest.er1
>conftest.err
12674 cat conftest.err
>&5
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); } &&
12677 { ac_try
='test -z "$ac_c_werror_flag"
12678 || test ! -s conftest.err'
12679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12680 (eval $ac_try) 2>&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; } &&
12684 { ac_try
='test -s conftest.$ac_objext'
12685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686 (eval $ac_try) 2>&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; }; then
12690 eval "$as_ac_Header=yes"
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.
$ac_ext >&5
12695 eval "$as_ac_Header=no"
12697 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12702 cat >>confdefs.h
<<_ACEOF
12703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12711 for ac_header
in sys
/user.h
12713 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12714 echo "$as_me:$LINENO: checking for $ac_header" >&5
12715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12717 echo $ECHO_N "(cached) $ECHO_C" >&6
12719 cat >conftest.
$ac_ext <<_ACEOF
12722 cat confdefs.h
>>conftest.
$ac_ext
12723 cat >>conftest.
$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12725 #if HAVE_SYS_PARAM_H
12726 # include <sys/param.h>
12730 #include <$ac_header>
12732 rm -f conftest.
$ac_objext
12733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12734 (eval $ac_compile) 2>conftest.er1
12736 grep -v '^ *+' conftest.er1
>conftest.err
12738 cat conftest.err
>&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } &&
12741 { ac_try
='test -z "$ac_c_werror_flag"
12742 || test ! -s conftest.err'
12743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744 (eval $ac_try) 2>&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); }; } &&
12748 { ac_try
='test -s conftest.$ac_objext'
12749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12750 (eval $ac_try) 2>&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; }; then
12754 eval "$as_ac_Header=yes"
12756 echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.
$ac_ext >&5
12759 eval "$as_ac_Header=no"
12761 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12766 cat >>confdefs.h
<<_ACEOF
12767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12775 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12776 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12777 # think that we don't have <curses.h> if we're using GCC.
12780 if test "$GCC" = yes; then
12782 cat >>confdefs.h
<<\_ACEOF
12783 #define _MSE_INT_H 1
12793 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
12795 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12797 echo "$as_me:$LINENO: checking for $ac_header" >&5
12798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12805 # Is the header compilable?
12806 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12808 cat >conftest.
$ac_ext <<_ACEOF
12811 cat confdefs.h
>>conftest.
$ac_ext
12812 cat >>conftest.
$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12814 $ac_includes_default
12815 #include <$ac_header>
12817 rm -f conftest.
$ac_objext
12818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12819 (eval $ac_compile) 2>conftest.er1
12821 grep -v '^ *+' conftest.er1
>conftest.err
12823 cat conftest.err
>&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } &&
12826 { ac_try
='test -z "$ac_c_werror_flag"
12827 || test ! -s conftest.err'
12828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829 (eval $ac_try) 2>&5
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); }; } &&
12833 { ac_try
='test -s conftest.$ac_objext'
12834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12835 (eval $ac_try) 2>&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); }; }; then
12839 ac_header_compiler
=yes
12841 echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.
$ac_ext >&5
12844 ac_header_compiler
=no
12846 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12848 echo "${ECHO_T}$ac_header_compiler" >&6
12850 # Is the header present?
12851 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12853 cat >conftest.
$ac_ext <<_ACEOF
12856 cat confdefs.h
>>conftest.
$ac_ext
12857 cat >>conftest.
$ac_ext <<_ACEOF
12858 /* end confdefs.h. */
12859 #include <$ac_header>
12861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12862 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12864 grep -v '^ *+' conftest.er1
>conftest.err
12866 cat conftest.err
>&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); } >/dev
/null
; then
12869 if test -s conftest.err
; then
12870 ac_cpp_err
=$ac_c_preproc_warn_flag
12871 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12878 if test -z "$ac_cpp_err"; then
12879 ac_header_preproc
=yes
12881 echo "$as_me: failed program was:" >&5
12882 sed 's/^/| /' conftest.
$ac_ext >&5
12884 ac_header_preproc
=no
12886 rm -f conftest.err conftest.
$ac_ext
12887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12888 echo "${ECHO_T}$ac_header_preproc" >&6
12890 # So? What about this header?
12891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12897 ac_header_preproc
=yes
12900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12907 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12914 ## ------------------------------------------ ##
12915 ## Report this to the AC_PACKAGE_NAME lists. ##
12916 ## ------------------------------------------ ##
12919 sed "s/^/$as_me: WARNING: /" >&2
12922 echo "$as_me:$LINENO: checking for $ac_header" >&5
12923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12925 echo $ECHO_N "(cached) $ECHO_C" >&6
12927 eval "$as_ac_Header=\$ac_header_preproc"
12929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12934 cat >>confdefs.h
<<_ACEOF
12935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12943 for ac_header
in term.h
12945 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12946 echo "$as_me:$LINENO: checking for $ac_header" >&5
12947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12949 echo $ECHO_N "(cached) $ECHO_C" >&6
12951 cat >conftest.
$ac_ext <<_ACEOF
12954 cat confdefs.h
>>conftest.
$ac_ext
12955 cat >>conftest.
$ac_ext <<_ACEOF
12956 /* end confdefs.h. */
12958 # include <curses.h>
12962 #include <$ac_header>
12964 rm -f conftest.
$ac_objext
12965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12966 (eval $ac_compile) 2>conftest.er1
12968 grep -v '^ *+' conftest.er1
>conftest.err
12970 cat conftest.err
>&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); } &&
12973 { ac_try
='test -z "$ac_c_werror_flag"
12974 || test ! -s conftest.err'
12975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12976 (eval $ac_try) 2>&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); }; } &&
12980 { ac_try
='test -s conftest.$ac_objext'
12981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982 (eval $ac_try) 2>&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; }; then
12986 eval "$as_ac_Header=yes"
12988 echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.
$ac_ext >&5
12991 eval "$as_ac_Header=no"
12993 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12998 cat >>confdefs.h
<<_ACEOF
12999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13007 # ------------------------- #
13008 # Checks for declarations. #
13009 # ------------------------- #
13011 echo "$as_me:$LINENO: checking whether free is declared" >&5
13012 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
13013 if test "${ac_cv_have_decl_free+set}" = set; then
13014 echo $ECHO_N "(cached) $ECHO_C" >&6
13016 cat >conftest.
$ac_ext <<_ACEOF
13019 cat confdefs.h
>>conftest.
$ac_ext
13020 cat >>conftest.
$ac_ext <<_ACEOF
13021 /* end confdefs.h. */
13022 $ac_includes_default
13027 char *p = (char *) free;
13034 rm -f conftest.
$ac_objext
13035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13036 (eval $ac_compile) 2>conftest.er1
13038 grep -v '^ *+' conftest.er1
>conftest.err
13040 cat conftest.err
>&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } &&
13043 { ac_try
='test -z "$ac_c_werror_flag"
13044 || test ! -s conftest.err'
13045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13046 (eval $ac_try) 2>&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); }; } &&
13050 { ac_try
='test -s conftest.$ac_objext'
13051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052 (eval $ac_try) 2>&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; }; then
13056 ac_cv_have_decl_free
=yes
13058 echo "$as_me: failed program was:" >&5
13059 sed 's/^/| /' conftest.
$ac_ext >&5
13061 ac_cv_have_decl_free
=no
13063 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13065 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
13066 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
13067 if test $ac_cv_have_decl_free = yes; then
13069 cat >>confdefs.h
<<_ACEOF
13070 #define HAVE_DECL_FREE 1
13075 cat >>confdefs.h
<<_ACEOF
13076 #define HAVE_DECL_FREE 0
13081 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13082 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13083 if test "${ac_cv_have_decl_malloc+set}" = set; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13086 cat >conftest.
$ac_ext <<_ACEOF
13089 cat confdefs.h
>>conftest.
$ac_ext
13090 cat >>conftest.
$ac_ext <<_ACEOF
13091 /* end confdefs.h. */
13092 $ac_includes_default
13097 char *p = (char *) malloc;
13104 rm -f conftest.
$ac_objext
13105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13106 (eval $ac_compile) 2>conftest.er1
13108 grep -v '^ *+' conftest.er1
>conftest.err
13110 cat conftest.err
>&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } &&
13113 { ac_try
='test -z "$ac_c_werror_flag"
13114 || test ! -s conftest.err'
13115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13116 (eval $ac_try) 2>&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); }; } &&
13120 { ac_try
='test -s conftest.$ac_objext'
13121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13122 (eval $ac_try) 2>&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; }; then
13126 ac_cv_have_decl_malloc
=yes
13128 echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.
$ac_ext >&5
13131 ac_cv_have_decl_malloc
=no
13133 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13135 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13136 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13137 if test $ac_cv_have_decl_malloc = yes; then
13139 cat >>confdefs.h
<<_ACEOF
13140 #define HAVE_DECL_MALLOC 1
13145 cat >>confdefs.h
<<_ACEOF
13146 #define HAVE_DECL_MALLOC 0
13151 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13152 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13153 if test "${ac_cv_have_decl_realloc+set}" = set; then
13154 echo $ECHO_N "(cached) $ECHO_C" >&6
13156 cat >conftest.
$ac_ext <<_ACEOF
13159 cat confdefs.h
>>conftest.
$ac_ext
13160 cat >>conftest.
$ac_ext <<_ACEOF
13161 /* end confdefs.h. */
13162 $ac_includes_default
13167 char *p = (char *) realloc;
13174 rm -f conftest.
$ac_objext
13175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13176 (eval $ac_compile) 2>conftest.er1
13178 grep -v '^ *+' conftest.er1
>conftest.err
13180 cat conftest.err
>&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } &&
13183 { ac_try
='test -z "$ac_c_werror_flag"
13184 || test ! -s conftest.err'
13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186 (eval $ac_try) 2>&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; } &&
13190 { ac_try
='test -s conftest.$ac_objext'
13191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13192 (eval $ac_try) 2>&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; }; then
13196 ac_cv_have_decl_realloc
=yes
13198 echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.
$ac_ext >&5
13201 ac_cv_have_decl_realloc
=no
13203 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13205 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13206 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13207 if test $ac_cv_have_decl_realloc = yes; then
13209 cat >>confdefs.h
<<_ACEOF
13210 #define HAVE_DECL_REALLOC 1
13215 cat >>confdefs.h
<<_ACEOF
13216 #define HAVE_DECL_REALLOC 0
13221 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13222 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13223 if test "${ac_cv_have_decl_strerror+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13226 cat >conftest.
$ac_ext <<_ACEOF
13229 cat confdefs.h
>>conftest.
$ac_ext
13230 cat >>conftest.
$ac_ext <<_ACEOF
13231 /* end confdefs.h. */
13232 $ac_includes_default
13237 char *p = (char *) strerror;
13244 rm -f conftest.
$ac_objext
13245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13246 (eval $ac_compile) 2>conftest.er1
13248 grep -v '^ *+' conftest.er1
>conftest.err
13250 cat conftest.err
>&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); } &&
13253 { ac_try
='test -z "$ac_c_werror_flag"
13254 || test ! -s conftest.err'
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; } &&
13260 { ac_try
='test -s conftest.$ac_objext'
13261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262 (eval $ac_try) 2>&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; }; then
13266 ac_cv_have_decl_strerror
=yes
13268 echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.
$ac_ext >&5
13271 ac_cv_have_decl_strerror
=no
13273 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13275 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13276 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13277 if test $ac_cv_have_decl_strerror = yes; then
13279 cat >>confdefs.h
<<_ACEOF
13280 #define HAVE_DECL_STRERROR 1
13285 cat >>confdefs.h
<<_ACEOF
13286 #define HAVE_DECL_STRERROR 0
13291 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13292 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13293 if test "${ac_cv_have_decl_strstr+set}" = set; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13296 cat >conftest.
$ac_ext <<_ACEOF
13299 cat confdefs.h
>>conftest.
$ac_ext
13300 cat >>conftest.
$ac_ext <<_ACEOF
13301 /* end confdefs.h. */
13302 $ac_includes_default
13307 char *p = (char *) strstr;
13314 rm -f conftest.
$ac_objext
13315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13316 (eval $ac_compile) 2>conftest.er1
13318 grep -v '^ *+' conftest.er1
>conftest.err
13320 cat conftest.err
>&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); } &&
13323 { ac_try
='test -z "$ac_c_werror_flag"
13324 || test ! -s conftest.err'
13325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326 (eval $ac_try) 2>&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; } &&
13330 { ac_try
='test -s conftest.$ac_objext'
13331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13332 (eval $ac_try) 2>&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; }; then
13336 ac_cv_have_decl_strstr
=yes
13338 echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.
$ac_ext >&5
13341 ac_cv_have_decl_strstr
=no
13343 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13345 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13346 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13347 if test $ac_cv_have_decl_strstr = yes; then
13349 cat >>confdefs.h
<<_ACEOF
13350 #define HAVE_DECL_STRSTR 1
13355 cat >>confdefs.h
<<_ACEOF
13356 #define HAVE_DECL_STRSTR 0
13361 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13362 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13363 if test "${ac_cv_have_decl_getopt+set}" = set; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13366 cat >conftest.
$ac_ext <<_ACEOF
13369 cat confdefs.h
>>conftest.
$ac_ext
13370 cat >>conftest.
$ac_ext <<_ACEOF
13371 /* end confdefs.h. */
13372 $ac_includes_default
13377 char *p = (char *) getopt;
13384 rm -f conftest.
$ac_objext
13385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13386 (eval $ac_compile) 2>conftest.er1
13388 grep -v '^ *+' conftest.er1
>conftest.err
13390 cat conftest.err
>&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } &&
13393 { ac_try
='test -z "$ac_c_werror_flag"
13394 || test ! -s conftest.err'
13395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396 (eval $ac_try) 2>&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); }; } &&
13400 { ac_try
='test -s conftest.$ac_objext'
13401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402 (eval $ac_try) 2>&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; }; then
13406 ac_cv_have_decl_getopt
=yes
13408 echo "$as_me: failed program was:" >&5
13409 sed 's/^/| /' conftest.
$ac_ext >&5
13411 ac_cv_have_decl_getopt
=no
13413 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13415 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13416 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13417 if test $ac_cv_have_decl_getopt = yes; then
13419 cat >>confdefs.h
<<_ACEOF
13420 #define HAVE_DECL_GETOPT 1
13425 cat >>confdefs.h
<<_ACEOF
13426 #define HAVE_DECL_GETOPT 0
13431 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13432 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13433 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13434 echo $ECHO_N "(cached) $ECHO_C" >&6
13436 cat >conftest.
$ac_ext <<_ACEOF
13439 cat confdefs.h
>>conftest.
$ac_ext
13440 cat >>conftest.
$ac_ext <<_ACEOF
13441 /* end confdefs.h. */
13442 $ac_includes_default
13447 char *p = (char *) snprintf;
13454 rm -f conftest.
$ac_objext
13455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13456 (eval $ac_compile) 2>conftest.er1
13458 grep -v '^ *+' conftest.er1
>conftest.err
13460 cat conftest.err
>&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } &&
13463 { ac_try
='test -z "$ac_c_werror_flag"
13464 || test ! -s conftest.err'
13465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466 (eval $ac_try) 2>&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); }; } &&
13470 { ac_try
='test -s conftest.$ac_objext'
13471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13472 (eval $ac_try) 2>&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; }; then
13476 ac_cv_have_decl_snprintf
=yes
13478 echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.
$ac_ext >&5
13481 ac_cv_have_decl_snprintf
=no
13483 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13485 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13486 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13487 if test $ac_cv_have_decl_snprintf = yes; then
13489 cat >>confdefs.h
<<_ACEOF
13490 #define HAVE_DECL_SNPRINTF 1
13495 cat >>confdefs.h
<<_ACEOF
13496 #define HAVE_DECL_SNPRINTF 0
13501 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13502 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13503 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13504 echo $ECHO_N "(cached) $ECHO_C" >&6
13506 cat >conftest.
$ac_ext <<_ACEOF
13509 cat confdefs.h
>>conftest.
$ac_ext
13510 cat >>conftest.
$ac_ext <<_ACEOF
13511 /* end confdefs.h. */
13512 $ac_includes_default
13517 char *p = (char *) vsnprintf;
13524 rm -f conftest.
$ac_objext
13525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13526 (eval $ac_compile) 2>conftest.er1
13528 grep -v '^ *+' conftest.er1
>conftest.err
13530 cat conftest.err
>&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } &&
13533 { ac_try
='test -z "$ac_c_werror_flag"
13534 || test ! -s conftest.err'
13535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13536 (eval $ac_try) 2>&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); }; } &&
13540 { ac_try
='test -s conftest.$ac_objext'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; }; then
13546 ac_cv_have_decl_vsnprintf
=yes
13548 echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.
$ac_ext >&5
13551 ac_cv_have_decl_vsnprintf
=no
13553 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13555 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13556 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13557 if test $ac_cv_have_decl_vsnprintf = yes; then
13559 cat >>confdefs.h
<<_ACEOF
13560 #define HAVE_DECL_VSNPRINTF 1
13565 cat >>confdefs.h
<<_ACEOF
13566 #define HAVE_DECL_VSNPRINTF 0
13574 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13575 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13576 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13579 cat >conftest.
$ac_ext <<_ACEOF
13582 cat confdefs.h
>>conftest.
$ac_ext
13583 cat >>conftest.
$ac_ext <<_ACEOF
13584 /* end confdefs.h. */
13585 #include <locale.h>
13594 rm -f conftest.
$ac_objext conftest
$ac_exeext
13595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13596 (eval $ac_link) 2>conftest.er1
13598 grep -v '^ *+' conftest.er1
>conftest.err
13600 cat conftest.err
>&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } &&
13603 { ac_try
='test -z "$ac_c_werror_flag"
13604 || test ! -s conftest.err'
13605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606 (eval $ac_try) 2>&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); }; } &&
13610 { ac_try
='test -s conftest$ac_exeext'
13611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
13616 am_cv_val_LC_MESSAGES
=yes
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.
$ac_ext >&5
13621 am_cv_val_LC_MESSAGES
=no
13623 rm -f conftest.err conftest.
$ac_objext \
13624 conftest
$ac_exeext conftest.
$ac_ext
13626 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13627 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13628 if test $am_cv_val_LC_MESSAGES = yes; then
13630 cat >>confdefs.h
<<\_ACEOF
13631 #define HAVE_LC_MESSAGES 1
13637 # ----------------------- #
13638 # Checks for structures. #
13639 # ----------------------- #
13641 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13642 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13643 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13644 echo $ECHO_N "(cached) $ECHO_C" >&6
13646 cat >conftest.
$ac_ext <<_ACEOF
13649 cat confdefs.h
>>conftest.
$ac_ext
13650 cat >>conftest.
$ac_ext <<_ACEOF
13651 /* end confdefs.h. */
13652 $ac_includes_default
13656 static struct stat ac_aggr;
13657 if (ac_aggr.st_blocks)
13663 rm -f conftest.
$ac_objext
13664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13665 (eval $ac_compile) 2>conftest.er1
13667 grep -v '^ *+' conftest.er1
>conftest.err
13669 cat conftest.err
>&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); } &&
13672 { ac_try
='test -z "$ac_c_werror_flag"
13673 || test ! -s conftest.err'
13674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675 (eval $ac_try) 2>&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); }; } &&
13679 { ac_try
='test -s conftest.$ac_objext'
13680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681 (eval $ac_try) 2>&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; }; then
13685 ac_cv_member_struct_stat_st_blocks
=yes
13687 echo "$as_me: failed program was:" >&5
13688 sed 's/^/| /' conftest.
$ac_ext >&5
13690 cat >conftest.
$ac_ext <<_ACEOF
13693 cat confdefs.h
>>conftest.
$ac_ext
13694 cat >>conftest.
$ac_ext <<_ACEOF
13695 /* end confdefs.h. */
13696 $ac_includes_default
13700 static struct stat ac_aggr;
13701 if (sizeof ac_aggr.st_blocks)
13707 rm -f conftest.
$ac_objext
13708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13709 (eval $ac_compile) 2>conftest.er1
13711 grep -v '^ *+' conftest.er1
>conftest.err
13713 cat conftest.err
>&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } &&
13716 { ac_try
='test -z "$ac_c_werror_flag"
13717 || test ! -s conftest.err'
13718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; } &&
13723 { ac_try
='test -s conftest.$ac_objext'
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }; then
13729 ac_cv_member_struct_stat_st_blocks
=yes
13731 echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.
$ac_ext >&5
13734 ac_cv_member_struct_stat_st_blocks
=no
13736 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13740 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13741 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13742 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13744 cat >>confdefs.h
<<_ACEOF
13745 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13750 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13751 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13752 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13753 echo $ECHO_N "(cached) $ECHO_C" >&6
13755 cat >conftest.
$ac_ext <<_ACEOF
13758 cat confdefs.h
>>conftest.
$ac_ext
13759 cat >>conftest.
$ac_ext <<_ACEOF
13760 /* end confdefs.h. */
13761 $ac_includes_default
13765 static struct stat ac_aggr;
13766 if (ac_aggr.st_blksize)
13772 rm -f conftest.
$ac_objext
13773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13774 (eval $ac_compile) 2>conftest.er1
13776 grep -v '^ *+' conftest.er1
>conftest.err
13778 cat conftest.err
>&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } &&
13781 { ac_try
='test -z "$ac_c_werror_flag"
13782 || test ! -s conftest.err'
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; } &&
13788 { ac_try
='test -s conftest.$ac_objext'
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
13794 ac_cv_member_struct_stat_st_blksize
=yes
13796 echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.
$ac_ext >&5
13799 cat >conftest.
$ac_ext <<_ACEOF
13802 cat confdefs.h
>>conftest.
$ac_ext
13803 cat >>conftest.
$ac_ext <<_ACEOF
13804 /* end confdefs.h. */
13805 $ac_includes_default
13809 static struct stat ac_aggr;
13810 if (sizeof ac_aggr.st_blksize)
13816 rm -f conftest.
$ac_objext
13817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13818 (eval $ac_compile) 2>conftest.er1
13820 grep -v '^ *+' conftest.er1
>conftest.err
13822 cat conftest.err
>&5
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); } &&
13825 { ac_try
='test -z "$ac_c_werror_flag"
13826 || test ! -s conftest.err'
13827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828 (eval $ac_try) 2>&5
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); }; } &&
13832 { ac_try
='test -s conftest.$ac_objext'
13833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13834 (eval $ac_try) 2>&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; }; then
13838 ac_cv_member_struct_stat_st_blksize
=yes
13840 echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.
$ac_ext >&5
13843 ac_cv_member_struct_stat_st_blksize
=no
13845 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13847 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13849 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13850 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13851 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13853 cat >>confdefs.h
<<_ACEOF
13854 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13861 # ------------------ #
13862 # Checks for types. #
13863 # ------------------ #
13865 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13866 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13867 if test "${ac_cv_type_signal+set}" = set; then
13868 echo $ECHO_N "(cached) $ECHO_C" >&6
13870 cat >conftest.
$ac_ext <<_ACEOF
13873 cat confdefs.h
>>conftest.
$ac_ext
13874 cat >>conftest.
$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13876 #include <sys/types.h>
13877 #include <signal.h>
13882 extern "C" void (*signal (int, void (*)(int)))(int);
13884 void (*signal ()) ();
13895 rm -f conftest.
$ac_objext
13896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13897 (eval $ac_compile) 2>conftest.er1
13899 grep -v '^ *+' conftest.er1
>conftest.err
13901 cat conftest.err
>&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); } &&
13904 { ac_try
='test -z "$ac_c_werror_flag"
13905 || test ! -s conftest.err'
13906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907 (eval $ac_try) 2>&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; } &&
13911 { ac_try
='test -s conftest.$ac_objext'
13912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13913 (eval $ac_try) 2>&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; }; then
13917 ac_cv_type_signal
=void
13919 echo "$as_me: failed program was:" >&5
13920 sed 's/^/| /' conftest.
$ac_ext >&5
13922 ac_cv_type_signal
=int
13924 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13926 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13927 echo "${ECHO_T}$ac_cv_type_signal" >&6
13929 cat >>confdefs.h
<<_ACEOF
13930 #define RETSIGTYPE $ac_cv_type_signal
13934 echo "$as_me:$LINENO: checking for socklen_t" >&5
13935 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13936 if test "${ac_cv_type_socklen_t+set}" = set; then
13937 echo $ECHO_N "(cached) $ECHO_C" >&6
13939 cat >conftest.
$ac_ext <<_ACEOF
13942 cat confdefs.h
>>conftest.
$ac_ext
13943 cat >>conftest.
$ac_ext <<_ACEOF
13944 /* end confdefs.h. */
13945 #include <sys/types.h>
13946 #include <sys/socket.h>
13952 if ((socklen_t *) 0)
13954 if (sizeof (socklen_t))
13960 rm -f conftest.
$ac_objext
13961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13962 (eval $ac_compile) 2>conftest.er1
13964 grep -v '^ *+' conftest.er1
>conftest.err
13966 cat conftest.err
>&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); } &&
13969 { ac_try
='test -z "$ac_c_werror_flag"
13970 || test ! -s conftest.err'
13971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13972 (eval $ac_try) 2>&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); }; } &&
13976 { ac_try
='test -s conftest.$ac_objext'
13977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13978 (eval $ac_try) 2>&5
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; }; then
13982 ac_cv_type_socklen_t
=yes
13984 echo "$as_me: failed program was:" >&5
13985 sed 's/^/| /' conftest.
$ac_ext >&5
13987 ac_cv_type_socklen_t
=no
13989 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13991 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
13992 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
13993 if test $ac_cv_type_socklen_t = yes; then
13995 cat >>confdefs.h
<<_ACEOF
13996 #define HAVE_SOCKLEN_T 1
14003 # ------------------------------------- #
14004 # Checks for compiler characteristics. #
14005 # ------------------------------------- #
14007 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14008 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14009 if test "${ac_cv_c_const+set}" = set; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14012 cat >conftest.
$ac_ext <<_ACEOF
14015 cat confdefs.h
>>conftest.
$ac_ext
14016 cat >>conftest.
$ac_ext <<_ACEOF
14017 /* end confdefs.h. */
14022 /* FIXME: Include the comments suggested by Paul. */
14023 #ifndef __cplusplus
14024 /* Ultrix mips cc rejects this. */
14025 typedef int charset[2];
14027 /* SunOS 4.1.1 cc rejects this. */
14028 char const *const *ccp;
14030 /* NEC SVR4.0.2 mips cc rejects this. */
14031 struct point {int x, y;};
14032 static struct point const zero = {0,0};
14033 /* AIX XL C 1.02.0.0 rejects this.
14034 It does not let you subtract one const X* pointer from another in
14035 an arm of an if-expression whose if-part is not a constant
14037 const char *g = "string";
14038 ccp = &g + (g ? g-g : 0);
14039 /* HPUX 7.0 cc rejects these. */
14042 ccp = (char const *const *) p;
14043 { /* SCO 3.2v4 cc rejects this. */
14045 char const *s = 0 ? (char *) 0 : (char const *) 0;
14049 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14050 int x[] = {25, 17};
14051 const int *foo = &x[0];
14054 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14055 typedef const int *iptr;
14059 { /* AIX XL C 1.02.0.0 rejects this saying
14060 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14061 struct s { int j; const int *ap[3]; };
14062 struct s *b; b->j = 5;
14064 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14065 const int foo = 10;
14073 rm -f conftest.
$ac_objext
14074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14075 (eval $ac_compile) 2>conftest.er1
14077 grep -v '^ *+' conftest.er1
>conftest.err
14079 cat conftest.err
>&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); } &&
14082 { ac_try
='test -z "$ac_c_werror_flag"
14083 || test ! -s conftest.err'
14084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085 (eval $ac_try) 2>&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; } &&
14089 { ac_try
='test -s conftest.$ac_objext'
14090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091 (eval $ac_try) 2>&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; }; then
14097 echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.
$ac_ext >&5
14102 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14104 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14105 echo "${ECHO_T}$ac_cv_c_const" >&6
14106 if test $ac_cv_c_const = no
; then
14108 cat >>confdefs.h
<<\_ACEOF
14114 echo "$as_me:$LINENO: checking for inline" >&5
14115 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14116 if test "${ac_cv_c_inline+set}" = set; then
14117 echo $ECHO_N "(cached) $ECHO_C" >&6
14120 for ac_kw
in inline __inline__ __inline
; do
14121 cat >conftest.
$ac_ext <<_ACEOF
14124 cat confdefs.h
>>conftest.
$ac_ext
14125 cat >>conftest.
$ac_ext <<_ACEOF
14126 /* end confdefs.h. */
14127 #ifndef __cplusplus
14129 static $ac_kw foo_t static_foo () {return 0; }
14130 $ac_kw foo_t foo () {return 0; }
14134 rm -f conftest.
$ac_objext
14135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14136 (eval $ac_compile) 2>conftest.er1
14138 grep -v '^ *+' conftest.er1
>conftest.err
14140 cat conftest.err
>&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); } &&
14143 { ac_try
='test -z "$ac_c_werror_flag"
14144 || test ! -s conftest.err'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; } &&
14150 { ac_try
='test -s conftest.$ac_objext'
14151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152 (eval $ac_try) 2>&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; }; then
14156 ac_cv_c_inline
=$ac_kw; break
14158 echo "$as_me: failed program was:" >&5
14159 sed 's/^/| /' conftest.
$ac_ext >&5
14162 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14166 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14167 echo "${ECHO_T}$ac_cv_c_inline" >&6
14170 case $ac_cv_c_inline in
14173 case $ac_cv_c_inline in
14175 *) ac_val
=$ac_cv_c_inline;;
14177 cat >>confdefs.h
<<_ACEOF
14178 #ifndef __cplusplus
14179 #define inline $ac_val
14185 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14186 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14187 if test "${ac_cv_c_bigendian+set}" = set; then
14188 echo $ECHO_N "(cached) $ECHO_C" >&6
14190 # See if sys/param.h defines the BYTE_ORDER macro.
14191 cat >conftest.
$ac_ext <<_ACEOF
14194 cat confdefs.h
>>conftest.
$ac_ext
14195 cat >>conftest.
$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14197 #include <sys/types.h>
14198 #include <sys/param.h>
14203 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14204 bogus endian macros
14211 rm -f conftest.
$ac_objext
14212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14213 (eval $ac_compile) 2>conftest.er1
14215 grep -v '^ *+' conftest.er1
>conftest.err
14217 cat conftest.err
>&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
14220 { ac_try
='test -z "$ac_c_werror_flag"
14221 || test ! -s conftest.err'
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; } &&
14227 { ac_try
='test -s conftest.$ac_objext'
14228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14229 (eval $ac_try) 2>&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); }; }; then
14233 # It does; now see whether it defined to BIG_ENDIAN or not.
14234 cat >conftest.
$ac_ext <<_ACEOF
14237 cat confdefs.h
>>conftest.
$ac_ext
14238 cat >>conftest.
$ac_ext <<_ACEOF
14239 /* end confdefs.h. */
14240 #include <sys/types.h>
14241 #include <sys/param.h>
14246 #if BYTE_ORDER != BIG_ENDIAN
14254 rm -f conftest.
$ac_objext
14255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14256 (eval $ac_compile) 2>conftest.er1
14258 grep -v '^ *+' conftest.er1
>conftest.err
14260 cat conftest.err
>&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } &&
14263 { ac_try
='test -z "$ac_c_werror_flag"
14264 || test ! -s conftest.err'
14265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14266 (eval $ac_try) 2>&5
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); }; } &&
14270 { ac_try
='test -s conftest.$ac_objext'
14271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14272 (eval $ac_try) 2>&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; }; then
14276 ac_cv_c_bigendian
=yes
14278 echo "$as_me: failed program was:" >&5
14279 sed 's/^/| /' conftest.
$ac_ext >&5
14281 ac_cv_c_bigendian
=no
14283 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14285 echo "$as_me: failed program was:" >&5
14286 sed 's/^/| /' conftest.
$ac_ext >&5
14288 # It does not; compile a test program.
14289 if test "$cross_compiling" = yes; then
14290 # try to guess the endianness by grepping values into an object file
14291 ac_cv_c_bigendian
=unknown
14292 cat >conftest.
$ac_ext <<_ACEOF
14295 cat confdefs.h
>>conftest.
$ac_ext
14296 cat >>conftest.
$ac_ext <<_ACEOF
14297 /* end confdefs.h. */
14298 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14299 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14300 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14301 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14302 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14303 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14307 _ascii (); _ebcdic ();
14312 rm -f conftest.
$ac_objext
14313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14314 (eval $ac_compile) 2>conftest.er1
14316 grep -v '^ *+' conftest.er1
>conftest.err
14318 cat conftest.err
>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
14321 { ac_try
='test -z "$ac_c_werror_flag"
14322 || test ! -s conftest.err'
14323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324 (eval $ac_try) 2>&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; } &&
14328 { ac_try
='test -s conftest.$ac_objext'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }; then
14334 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
14335 ac_cv_c_bigendian
=yes
14337 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
14338 if test "$ac_cv_c_bigendian" = unknown
; then
14339 ac_cv_c_bigendian
=no
14341 # finding both strings is unlikely to happen, but who knows?
14342 ac_cv_c_bigendian
=unknown
14346 echo "$as_me: failed program was:" >&5
14347 sed 's/^/| /' conftest.
$ac_ext >&5
14350 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14352 cat >conftest.
$ac_ext <<_ACEOF
14355 cat confdefs.h
>>conftest.
$ac_ext
14356 cat >>conftest.
$ac_ext <<_ACEOF
14357 /* end confdefs.h. */
14361 /* Are we little or big endian? From Harbison&Steele. */
14365 char c[sizeof (long)];
14368 exit (u.c[sizeof (long) - 1] == 1);
14371 rm -f conftest
$ac_exeext
14372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14373 (eval $ac_link) 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378 (eval $ac_try) 2>&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; }; then
14382 ac_cv_c_bigendian
=no
14384 echo "$as_me: program exited with status $ac_status" >&5
14385 echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.
$ac_ext >&5
14388 ( exit $ac_status )
14389 ac_cv_c_bigendian
=yes
14391 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14394 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14396 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14397 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14398 case $ac_cv_c_bigendian in
14401 cat >>confdefs.h
<<\_ACEOF
14402 #define WORDS_BIGENDIAN 1
14408 { { echo "$as_me:$LINENO: error: unknown endianness
14409 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14410 echo "$as_me: error: unknown endianness
14411 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14412 { (exit 1); exit 1; }; } ;;
14416 # ------------------------------ #
14417 # Checks for library functions. #
14418 # ------------------------------ #
14420 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14421 # for constant arguments. Useless!
14422 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14423 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14424 if test "${ac_cv_working_alloca_h+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14427 cat >conftest.
$ac_ext <<_ACEOF
14430 cat confdefs.h
>>conftest.
$ac_ext
14431 cat >>conftest.
$ac_ext <<_ACEOF
14432 /* end confdefs.h. */
14433 #include <alloca.h>
14437 char *p = (char *) alloca (2 * sizeof (int));
14442 rm -f conftest.
$ac_objext conftest
$ac_exeext
14443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14444 (eval $ac_link) 2>conftest.er1
14446 grep -v '^ *+' conftest.er1
>conftest.err
14448 cat conftest.err
>&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } &&
14451 { ac_try
='test -z "$ac_c_werror_flag"
14452 || test ! -s conftest.err'
14453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; } &&
14458 { ac_try
='test -s conftest$ac_exeext'
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; }; then
14464 ac_cv_working_alloca_h
=yes
14466 echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.
$ac_ext >&5
14469 ac_cv_working_alloca_h
=no
14471 rm -f conftest.err conftest.
$ac_objext \
14472 conftest
$ac_exeext conftest.
$ac_ext
14474 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14475 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14476 if test $ac_cv_working_alloca_h = yes; then
14478 cat >>confdefs.h
<<\_ACEOF
14479 #define HAVE_ALLOCA_H 1
14484 echo "$as_me:$LINENO: checking for alloca" >&5
14485 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14486 if test "${ac_cv_func_alloca_works+set}" = set; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14489 cat >conftest.
$ac_ext <<_ACEOF
14492 cat confdefs.h
>>conftest.
$ac_ext
14493 cat >>conftest.
$ac_ext <<_ACEOF
14494 /* end confdefs.h. */
14496 # define alloca __builtin_alloca
14499 # include <malloc.h>
14500 # define alloca _alloca
14503 # include <alloca.h>
14508 # ifndef alloca /* predefined by HP cc +Olibcalls */
14519 char *p = (char *) alloca (1);
14524 rm -f conftest.
$ac_objext conftest
$ac_exeext
14525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14526 (eval $ac_link) 2>conftest.er1
14528 grep -v '^ *+' conftest.er1
>conftest.err
14530 cat conftest.err
>&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } &&
14533 { ac_try
='test -z "$ac_c_werror_flag"
14534 || test ! -s conftest.err'
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; } &&
14540 { ac_try
='test -s conftest$ac_exeext'
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; }; then
14546 ac_cv_func_alloca_works
=yes
14548 echo "$as_me: failed program was:" >&5
14549 sed 's/^/| /' conftest.
$ac_ext >&5
14551 ac_cv_func_alloca_works
=no
14553 rm -f conftest.err conftest.
$ac_objext \
14554 conftest
$ac_exeext conftest.
$ac_ext
14556 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14557 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14559 if test $ac_cv_func_alloca_works = yes; then
14561 cat >>confdefs.h
<<\_ACEOF
14562 #define HAVE_ALLOCA 1
14566 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14567 # that cause trouble. Some versions do not even contain alloca or
14568 # contain a buggy version. If you still want to use their alloca,
14569 # use ar to extract alloca.o from them instead of compiling alloca.c.
14571 ALLOCA
=alloca.
$ac_objext
14573 cat >>confdefs.h
<<\_ACEOF
14578 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14579 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14580 if test "${ac_cv_os_cray+set}" = set; then
14581 echo $ECHO_N "(cached) $ECHO_C" >&6
14583 cat >conftest.
$ac_ext <<_ACEOF
14586 cat confdefs.h
>>conftest.
$ac_ext
14587 cat >>conftest.
$ac_ext <<_ACEOF
14588 /* end confdefs.h. */
14589 #if defined(CRAY) && ! defined(CRAY2)
14596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14597 $EGREP "webecray" >/dev
/null
2>&1; then
14605 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14606 echo "${ECHO_T}$ac_cv_os_cray" >&6
14607 if test $ac_cv_os_cray = yes; then
14608 for ac_func
in _getb67 GETB67 getb67
; do
14609 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14610 echo "$as_me:$LINENO: checking for $ac_func" >&5
14611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14612 if eval "test \"\${$as_ac_var+set}\" = set"; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14615 cat >conftest.
$ac_ext <<_ACEOF
14618 cat confdefs.h
>>conftest.
$ac_ext
14619 cat >>conftest.
$ac_ext <<_ACEOF
14620 /* end confdefs.h. */
14621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14623 #define $ac_func innocuous_$ac_func
14625 /* System header to define __stub macros and hopefully few prototypes,
14626 which can conflict with char $ac_func (); below.
14627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14628 <limits.h> exists even on freestanding compilers. */
14631 # include <limits.h>
14633 # include <assert.h>
14638 /* Override any gcc2 internal prototype to avoid an error. */
14643 /* We use char because int might match the return type of a gcc2
14644 builtin and then its argument prototype would still apply. */
14646 /* The GNU C library defines this for functions which it implements
14647 to always fail with ENOSYS. Some functions are actually named
14648 something starting with __ and the normal name is an alias. */
14649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14652 char (*f) () = $ac_func;
14661 return f != $ac_func;
14666 rm -f conftest.
$ac_objext conftest
$ac_exeext
14667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14668 (eval $ac_link) 2>conftest.er1
14670 grep -v '^ *+' conftest.er1
>conftest.err
14672 cat conftest.err
>&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); } &&
14675 { ac_try
='test -z "$ac_c_werror_flag"
14676 || test ! -s conftest.err'
14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; } &&
14682 { ac_try
='test -s conftest$ac_exeext'
14683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684 (eval $ac_try) 2>&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); }; }; then
14688 eval "$as_ac_var=yes"
14690 echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.
$ac_ext >&5
14693 eval "$as_ac_var=no"
14695 rm -f conftest.err conftest.
$ac_objext \
14696 conftest
$ac_exeext conftest.
$ac_ext
14698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14700 if test `eval echo '${'$as_ac_var'}'` = yes; then
14702 cat >>confdefs.h
<<_ACEOF
14703 #define CRAY_STACKSEG_END $ac_func
14712 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14713 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14714 if test "${ac_cv_c_stack_direction+set}" = set; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 if test "$cross_compiling" = yes; then
14718 ac_cv_c_stack_direction
=0
14720 cat >conftest.
$ac_ext <<_ACEOF
14723 cat confdefs.h
>>conftest.
$ac_ext
14724 cat >>conftest.
$ac_ext <<_ACEOF
14725 /* end confdefs.h. */
14727 find_stack_direction ()
14729 static char *addr = 0;
14734 return find_stack_direction ();
14737 return (&dummy > addr) ? 1 : -1;
14743 exit (find_stack_direction () < 0);
14746 rm -f conftest
$ac_exeext
14747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14748 (eval $ac_link) 2>&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; }; then
14757 ac_cv_c_stack_direction
=1
14759 echo "$as_me: program exited with status $ac_status" >&5
14760 echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.
$ac_ext >&5
14763 ( exit $ac_status )
14764 ac_cv_c_stack_direction
=-1
14766 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14769 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14770 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14772 cat >>confdefs.h
<<_ACEOF
14773 #define STACK_DIRECTION $ac_cv_c_stack_direction
14781 for ac_header
in stdlib.h unistd.h
14783 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14785 echo "$as_me:$LINENO: checking for $ac_header" >&5
14786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14788 echo $ECHO_N "(cached) $ECHO_C" >&6
14790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14793 # Is the header compilable?
14794 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14796 cat >conftest.
$ac_ext <<_ACEOF
14799 cat confdefs.h
>>conftest.
$ac_ext
14800 cat >>conftest.
$ac_ext <<_ACEOF
14801 /* end confdefs.h. */
14802 $ac_includes_default
14803 #include <$ac_header>
14805 rm -f conftest.
$ac_objext
14806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14807 (eval $ac_compile) 2>conftest.er1
14809 grep -v '^ *+' conftest.er1
>conftest.err
14811 cat conftest.err
>&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } &&
14814 { ac_try
='test -z "$ac_c_werror_flag"
14815 || test ! -s conftest.err'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; } &&
14821 { ac_try
='test -s conftest.$ac_objext'
14822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14823 (eval $ac_try) 2>&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; }; then
14827 ac_header_compiler
=yes
14829 echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.
$ac_ext >&5
14832 ac_header_compiler
=no
14834 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14836 echo "${ECHO_T}$ac_header_compiler" >&6
14838 # Is the header present?
14839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14841 cat >conftest.
$ac_ext <<_ACEOF
14844 cat confdefs.h
>>conftest.
$ac_ext
14845 cat >>conftest.
$ac_ext <<_ACEOF
14846 /* end confdefs.h. */
14847 #include <$ac_header>
14849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14850 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14852 grep -v '^ *+' conftest.er1
>conftest.err
14854 cat conftest.err
>&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } >/dev
/null
; then
14857 if test -s conftest.err
; then
14858 ac_cpp_err
=$ac_c_preproc_warn_flag
14859 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14866 if test -z "$ac_cpp_err"; then
14867 ac_header_preproc
=yes
14869 echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.
$ac_ext >&5
14872 ac_header_preproc
=no
14874 rm -f conftest.err conftest.
$ac_ext
14875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14876 echo "${ECHO_T}$ac_header_preproc" >&6
14878 # So? What about this header?
14879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14885 ac_header_preproc
=yes
14888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14895 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14902 ## ------------------------------------------ ##
14903 ## Report this to the AC_PACKAGE_NAME lists. ##
14904 ## ------------------------------------------ ##
14907 sed "s/^/$as_me: WARNING: /" >&2
14910 echo "$as_me:$LINENO: checking for $ac_header" >&5
14911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14913 echo $ECHO_N "(cached) $ECHO_C" >&6
14915 eval "$as_ac_Header=\$ac_header_preproc"
14917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14922 cat >>confdefs.h
<<_ACEOF
14923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14931 for ac_func
in getpagesize
14933 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14934 echo "$as_me:$LINENO: checking for $ac_func" >&5
14935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14936 if eval "test \"\${$as_ac_var+set}\" = set"; then
14937 echo $ECHO_N "(cached) $ECHO_C" >&6
14939 cat >conftest.
$ac_ext <<_ACEOF
14942 cat confdefs.h
>>conftest.
$ac_ext
14943 cat >>conftest.
$ac_ext <<_ACEOF
14944 /* end confdefs.h. */
14945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14947 #define $ac_func innocuous_$ac_func
14949 /* System header to define __stub macros and hopefully few prototypes,
14950 which can conflict with char $ac_func (); below.
14951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14952 <limits.h> exists even on freestanding compilers. */
14955 # include <limits.h>
14957 # include <assert.h>
14962 /* Override any gcc2 internal prototype to avoid an error. */
14967 /* We use char because int might match the return type of a gcc2
14968 builtin and then its argument prototype would still apply. */
14970 /* The GNU C library defines this for functions which it implements
14971 to always fail with ENOSYS. Some functions are actually named
14972 something starting with __ and the normal name is an alias. */
14973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14976 char (*f) () = $ac_func;
14985 return f != $ac_func;
14990 rm -f conftest.
$ac_objext conftest
$ac_exeext
14991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14992 (eval $ac_link) 2>conftest.er1
14994 grep -v '^ *+' conftest.er1
>conftest.err
14996 cat conftest.err
>&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } &&
14999 { ac_try
='test -z "$ac_c_werror_flag"
15000 || test ! -s conftest.err'
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; } &&
15006 { ac_try
='test -s conftest$ac_exeext'
15007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15008 (eval $ac_try) 2>&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); }; }; then
15012 eval "$as_ac_var=yes"
15014 echo "$as_me: failed program was:" >&5
15015 sed 's/^/| /' conftest.
$ac_ext >&5
15017 eval "$as_ac_var=no"
15019 rm -f conftest.err conftest.
$ac_objext \
15020 conftest
$ac_exeext conftest.
$ac_ext
15022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15024 if test `eval echo '${'$as_ac_var'}'` = yes; then
15025 cat >>confdefs.h
<<_ACEOF
15026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15032 echo "$as_me:$LINENO: checking for working mmap" >&5
15033 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15034 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15035 echo $ECHO_N "(cached) $ECHO_C" >&6
15037 if test "$cross_compiling" = yes; then
15038 ac_cv_func_mmap_fixed_mapped
=no
15040 cat >conftest.
$ac_ext <<_ACEOF
15043 cat confdefs.h
>>conftest.
$ac_ext
15044 cat >>conftest.
$ac_ext <<_ACEOF
15045 /* end confdefs.h. */
15046 $ac_includes_default
15047 /* malloc might have been renamed as rpl_malloc. */
15050 /* Thanks to Mike Haertel and Jim Avera for this test.
15051 Here is a matrix of mmap possibilities:
15052 mmap private not fixed
15053 mmap private fixed at somewhere currently unmapped
15054 mmap private fixed at somewhere already mapped
15055 mmap shared not fixed
15056 mmap shared fixed at somewhere currently unmapped
15057 mmap shared fixed at somewhere already mapped
15058 For private mappings, we should verify that changes cannot be read()
15059 back from the file, nor mmap's back from the file at a different
15060 address. (There have been systems where private was not correctly
15061 implemented like the infamous i386 svr4.0, and systems where the
15062 VM page cache was not coherent with the file system buffer cache
15063 like early versions of FreeBSD and possibly contemporary NetBSD.)
15064 For shared mappings, we should conversely verify that changes get
15065 propagated back to all the places they're supposed to be.
15067 Grep wants private fixed already mapped.
15068 The main things grep needs to know about mmap are:
15069 * does it exist and is it safe to write into the mmap'd area
15070 * how to use it (BSD variants) */
15073 #include <sys/mman.h>
15075 #if !STDC_HEADERS && !HAVE_STDLIB_H
15079 /* This mess was copied from the GNU getpagesize.h. */
15080 #if !HAVE_GETPAGESIZE
15081 /* Assume that all systems that can run configure have sys/param.h. */
15082 # if !HAVE_SYS_PARAM_H
15083 # define HAVE_SYS_PARAM_H 1
15086 # ifdef _SC_PAGESIZE
15087 # define getpagesize() sysconf(_SC_PAGESIZE)
15088 # else /* no _SC_PAGESIZE */
15089 # if HAVE_SYS_PARAM_H
15090 # include <sys/param.h>
15091 # ifdef EXEC_PAGESIZE
15092 # define getpagesize() EXEC_PAGESIZE
15093 # else /* no EXEC_PAGESIZE */
15095 # define getpagesize() NBPG * CLSIZE
15098 # endif /* no CLSIZE */
15099 # else /* no NBPG */
15101 # define getpagesize() NBPC
15102 # else /* no NBPC */
15104 # define getpagesize() PAGESIZE
15105 # endif /* PAGESIZE */
15106 # endif /* no NBPC */
15107 # endif /* no NBPG */
15108 # endif /* no EXEC_PAGESIZE */
15109 # else /* no HAVE_SYS_PARAM_H */
15110 # define getpagesize() 8192 /* punt totally */
15111 # endif /* no HAVE_SYS_PARAM_H */
15112 # endif /* no _SC_PAGESIZE */
15114 #endif /* no HAVE_GETPAGESIZE */
15119 char *data, *data2, *data3;
15123 pagesize = getpagesize ();
15125 /* First, make a file with some known garbage in it. */
15126 data = (char *) malloc (pagesize);
15129 for (i = 0; i < pagesize; ++i)
15130 *(data + i) = rand ();
15132 fd = creat ("conftest.mmap", 0600);
15135 if (write (fd, data, pagesize) != pagesize)
15139 /* Next, try to mmap the file at a fixed address which already has
15140 something else allocated at it. If we can, also make sure that
15141 we see the same garbage. */
15142 fd = open ("conftest.mmap", O_RDWR);
15145 data2 = (char *) malloc (2 * pagesize);
15148 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15149 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15150 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15152 for (i = 0; i < pagesize; ++i)
15153 if (*(data + i) != *(data2 + i))
15156 /* Finally, make sure that changes to the mapped area do not
15157 percolate back to the file as seen by read(). (This is a bug on
15158 some variants of i386 svr4.0.) */
15159 for (i = 0; i < pagesize; ++i)
15160 *(data2 + i) = *(data2 + i) + 1;
15161 data3 = (char *) malloc (pagesize);
15164 if (read (fd, data3, pagesize) != pagesize)
15166 for (i = 0; i < pagesize; ++i)
15167 if (*(data + i) != *(data3 + i))
15173 rm -f conftest
$ac_exeext
15174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15175 (eval $ac_link) 2>&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180 (eval $ac_try) 2>&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; }; then
15184 ac_cv_func_mmap_fixed_mapped
=yes
15186 echo "$as_me: program exited with status $ac_status" >&5
15187 echo "$as_me: failed program was:" >&5
15188 sed 's/^/| /' conftest.
$ac_ext >&5
15190 ( exit $ac_status )
15191 ac_cv_func_mmap_fixed_mapped
=no
15193 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15196 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15197 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15198 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15200 cat >>confdefs.h
<<\_ACEOF
15201 #define HAVE_MMAP 1
15205 rm -f conftest.mmap
15207 echo "$as_me:$LINENO: checking for pid_t" >&5
15208 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15209 if test "${ac_cv_type_pid_t+set}" = set; then
15210 echo $ECHO_N "(cached) $ECHO_C" >&6
15212 cat >conftest.
$ac_ext <<_ACEOF
15215 cat confdefs.h
>>conftest.
$ac_ext
15216 cat >>conftest.
$ac_ext <<_ACEOF
15217 /* end confdefs.h. */
15218 $ac_includes_default
15224 if (sizeof (pid_t))
15230 rm -f conftest.
$ac_objext
15231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15232 (eval $ac_compile) 2>conftest.er1
15234 grep -v '^ *+' conftest.er1
>conftest.err
15236 cat conftest.err
>&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } &&
15239 { ac_try
='test -z "$ac_c_werror_flag"
15240 || test ! -s conftest.err'
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; } &&
15246 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
15252 ac_cv_type_pid_t
=yes
15254 echo "$as_me: failed program was:" >&5
15255 sed 's/^/| /' conftest.
$ac_ext >&5
15257 ac_cv_type_pid_t
=no
15259 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15261 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15262 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15263 if test $ac_cv_type_pid_t = yes; then
15267 cat >>confdefs.h
<<_ACEOF
15275 for ac_header
in unistd.h vfork.h
15277 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15279 echo "$as_me:$LINENO: checking for $ac_header" >&5
15280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15282 echo $ECHO_N "(cached) $ECHO_C" >&6
15284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15287 # Is the header compilable?
15288 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15289 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15290 cat >conftest.
$ac_ext <<_ACEOF
15293 cat confdefs.h
>>conftest.
$ac_ext
15294 cat >>conftest.
$ac_ext <<_ACEOF
15295 /* end confdefs.h. */
15296 $ac_includes_default
15297 #include <$ac_header>
15299 rm -f conftest.
$ac_objext
15300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15301 (eval $ac_compile) 2>conftest.er1
15303 grep -v '^ *+' conftest.er1
>conftest.err
15305 cat conftest.err
>&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); } &&
15308 { ac_try
='test -z "$ac_c_werror_flag"
15309 || test ! -s conftest.err'
15310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15311 (eval $ac_try) 2>&5
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); }; } &&
15315 { ac_try
='test -s conftest.$ac_objext'
15316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15317 (eval $ac_try) 2>&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; }; then
15321 ac_header_compiler
=yes
15323 echo "$as_me: failed program was:" >&5
15324 sed 's/^/| /' conftest.
$ac_ext >&5
15326 ac_header_compiler
=no
15328 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15330 echo "${ECHO_T}$ac_header_compiler" >&6
15332 # Is the header present?
15333 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15335 cat >conftest.
$ac_ext <<_ACEOF
15338 cat confdefs.h
>>conftest.
$ac_ext
15339 cat >>conftest.
$ac_ext <<_ACEOF
15340 /* end confdefs.h. */
15341 #include <$ac_header>
15343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15344 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15346 grep -v '^ *+' conftest.er1
>conftest.err
15348 cat conftest.err
>&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); } >/dev
/null
; then
15351 if test -s conftest.err
; then
15352 ac_cpp_err
=$ac_c_preproc_warn_flag
15353 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15360 if test -z "$ac_cpp_err"; then
15361 ac_header_preproc
=yes
15363 echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.
$ac_ext >&5
15366 ac_header_preproc
=no
15368 rm -f conftest.err conftest.
$ac_ext
15369 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15370 echo "${ECHO_T}$ac_header_preproc" >&6
15372 # So? What about this header?
15373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15379 ac_header_preproc
=yes
15382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15386 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15388 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15389 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15392 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15396 ## ------------------------------------------ ##
15397 ## Report this to the AC_PACKAGE_NAME lists. ##
15398 ## ------------------------------------------ ##
15401 sed "s/^/$as_me: WARNING: /" >&2
15404 echo "$as_me:$LINENO: checking for $ac_header" >&5
15405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15407 echo $ECHO_N "(cached) $ECHO_C" >&6
15409 eval "$as_ac_Header=\$ac_header_preproc"
15411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15416 cat >>confdefs.h
<<_ACEOF
15417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15426 for ac_func
in fork vfork
15428 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15429 echo "$as_me:$LINENO: checking for $ac_func" >&5
15430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15431 if eval "test \"\${$as_ac_var+set}\" = set"; then
15432 echo $ECHO_N "(cached) $ECHO_C" >&6
15434 cat >conftest.
$ac_ext <<_ACEOF
15437 cat confdefs.h
>>conftest.
$ac_ext
15438 cat >>conftest.
$ac_ext <<_ACEOF
15439 /* end confdefs.h. */
15440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15442 #define $ac_func innocuous_$ac_func
15444 /* System header to define __stub macros and hopefully few prototypes,
15445 which can conflict with char $ac_func (); below.
15446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15447 <limits.h> exists even on freestanding compilers. */
15450 # include <limits.h>
15452 # include <assert.h>
15457 /* Override any gcc2 internal prototype to avoid an error. */
15462 /* We use char because int might match the return type of a gcc2
15463 builtin and then its argument prototype would still apply. */
15465 /* The GNU C library defines this for functions which it implements
15466 to always fail with ENOSYS. Some functions are actually named
15467 something starting with __ and the normal name is an alias. */
15468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15471 char (*f) () = $ac_func;
15480 return f != $ac_func;
15485 rm -f conftest.
$ac_objext conftest
$ac_exeext
15486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15487 (eval $ac_link) 2>conftest.er1
15489 grep -v '^ *+' conftest.er1
>conftest.err
15491 cat conftest.err
>&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } &&
15494 { ac_try
='test -z "$ac_c_werror_flag"
15495 || test ! -s conftest.err'
15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; } &&
15501 { ac_try
='test -s conftest$ac_exeext'
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; }; then
15507 eval "$as_ac_var=yes"
15509 echo "$as_me: failed program was:" >&5
15510 sed 's/^/| /' conftest.
$ac_ext >&5
15512 eval "$as_ac_var=no"
15514 rm -f conftest.err conftest.
$ac_objext \
15515 conftest
$ac_exeext conftest.
$ac_ext
15517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15518 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15519 if test `eval echo '${'$as_ac_var'}'` = yes; then
15520 cat >>confdefs.h
<<_ACEOF
15521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15527 if test "x$ac_cv_func_fork" = xyes
; then
15528 echo "$as_me:$LINENO: checking for working fork" >&5
15529 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15530 if test "${ac_cv_func_fork_works+set}" = set; then
15531 echo $ECHO_N "(cached) $ECHO_C" >&6
15533 if test "$cross_compiling" = yes; then
15534 ac_cv_func_fork_works
=cross
15536 cat >conftest.
$ac_ext <<_ACEOF
15537 /* By Ruediger Kuhlmann. */
15538 #include <sys/types.h>
15540 # include <unistd.h>
15542 /* Some systems only have a dummy stub for fork() */
15550 rm -f conftest
$ac_exeext
15551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15552 (eval $ac_link) 2>&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557 (eval $ac_try) 2>&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; }; then
15561 ac_cv_func_fork_works
=yes
15563 echo "$as_me: program exited with status $ac_status" >&5
15564 echo "$as_me: failed program was:" >&5
15565 sed 's/^/| /' conftest.
$ac_ext >&5
15567 ( exit $ac_status )
15568 ac_cv_func_fork_works
=no
15570 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15573 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15574 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15577 ac_cv_func_fork_works
=$ac_cv_func_fork
15579 if test "x$ac_cv_func_fork_works" = xcross
; then
15581 *-*-amigaos* |
*-*-msdosdjgpp*)
15582 # Override, as these systems have only a dummy fork() stub
15583 ac_cv_func_fork_works
=no
15586 ac_cv_func_fork_works
=yes
15589 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15590 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15592 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15593 if test "x$ac_cv_func_vfork" = xyes
; then
15594 echo "$as_me:$LINENO: checking for working vfork" >&5
15595 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15596 if test "${ac_cv_func_vfork_works+set}" = set; then
15597 echo $ECHO_N "(cached) $ECHO_C" >&6
15599 if test "$cross_compiling" = yes; then
15600 ac_cv_func_vfork_works
=cross
15602 cat >conftest.
$ac_ext <<_ACEOF
15605 cat confdefs.h
>>conftest.
$ac_ext
15606 cat >>conftest.
$ac_ext <<_ACEOF
15607 /* end confdefs.h. */
15608 /* Thanks to Paul Eggert for this test. */
15610 #include <stdlib.h>
15611 #include <sys/types.h>
15612 #include <sys/stat.h>
15613 #include <sys/wait.h>
15615 # include <unistd.h>
15618 # include <vfork.h>
15620 /* On some sparc systems, changes by the child to local and incoming
15621 argument registers are propagated back to the parent. The compiler
15622 is told about this with #include <vfork.h>, but some compilers
15623 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15624 static variable whose address is put into a register that is
15625 clobbered by the vfork. */
15628 sparc_address_test (int arg)
15630 sparc_address_test (arg) int arg;
15633 static pid_t child;
15651 pid_t parent = getpid ();
15654 sparc_address_test (0);
15659 /* Here is another test for sparc vfork register problems. This
15660 test uses lots of local variables, at least as many local
15661 variables as main has allocated so far including compiler
15662 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15663 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15664 reuse the register of parent for one of the local variables,
15665 since it will think that parent can't possibly be used any more
15666 in this routine. Assigning to the local variable will thus
15667 munge parent in the parent process. */
15669 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15670 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15671 /* Convince the compiler that p..p7 are live; otherwise, it might
15672 use the same hardware register for all 8 local variables. */
15673 if (p != p1 || p != p2 || p != p3 || p != p4
15674 || p != p5 || p != p6 || p != p7)
15677 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15678 from child file descriptors. If the child closes a descriptor
15679 before it execs or exits, this munges the parent's descriptor
15680 as well. Test for this by closing stdout in the child. */
15681 _exit(close(fileno(stdout)) != 0);
15686 while (wait(&status) != child)
15689 /* Was there some problem with vforking? */
15692 /* Did the child fail? (This shouldn't happen.) */
15695 /* Did the vfork/compiler bug occur? */
15696 || parent != getpid()
15698 /* Did the file descriptor bug occur? */
15699 || fstat(fileno(stdout), &st) != 0
15704 rm -f conftest
$ac_exeext
15705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15706 (eval $ac_link) 2>&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15711 (eval $ac_try) 2>&5
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; }; then
15715 ac_cv_func_vfork_works
=yes
15717 echo "$as_me: program exited with status $ac_status" >&5
15718 echo "$as_me: failed program was:" >&5
15719 sed 's/^/| /' conftest.
$ac_ext >&5
15721 ( exit $ac_status )
15722 ac_cv_func_vfork_works
=no
15724 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15727 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15728 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15731 if test "x$ac_cv_func_fork_works" = xcross
; then
15732 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15733 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15734 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15737 if test "x$ac_cv_func_vfork_works" = xyes
; then
15739 cat >>confdefs.h
<<\_ACEOF
15740 #define HAVE_WORKING_VFORK 1
15745 cat >>confdefs.h
<<\_ACEOF
15750 if test "x$ac_cv_func_fork_works" = xyes
; then
15752 cat >>confdefs.h
<<\_ACEOF
15753 #define HAVE_WORKING_FORK 1
15780 for ac_func
in canonicalize_file_name realpath getrusage getuid \
15781 getgid poll pread64 sbrk setpgid setpgrp setsid \
15782 sigaction sigprocmask sigsetmask socketpair syscall \
15783 ttrace wborder setlocale iconvlist libiconvlist btowc
15785 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15786 echo "$as_me:$LINENO: checking for $ac_func" >&5
15787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15788 if eval "test \"\${$as_ac_var+set}\" = set"; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15791 cat >conftest.
$ac_ext <<_ACEOF
15794 cat confdefs.h
>>conftest.
$ac_ext
15795 cat >>conftest.
$ac_ext <<_ACEOF
15796 /* end confdefs.h. */
15797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15799 #define $ac_func innocuous_$ac_func
15801 /* System header to define __stub macros and hopefully few prototypes,
15802 which can conflict with char $ac_func (); below.
15803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15804 <limits.h> exists even on freestanding compilers. */
15807 # include <limits.h>
15809 # include <assert.h>
15814 /* Override any gcc2 internal prototype to avoid an error. */
15819 /* We use char because int might match the return type of a gcc2
15820 builtin and then its argument prototype would still apply. */
15822 /* The GNU C library defines this for functions which it implements
15823 to always fail with ENOSYS. Some functions are actually named
15824 something starting with __ and the normal name is an alias. */
15825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15828 char (*f) () = $ac_func;
15837 return f != $ac_func;
15842 rm -f conftest.
$ac_objext conftest
$ac_exeext
15843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15844 (eval $ac_link) 2>conftest.er1
15846 grep -v '^ *+' conftest.er1
>conftest.err
15848 cat conftest.err
>&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } &&
15851 { ac_try
='test -z "$ac_c_werror_flag"
15852 || test ! -s conftest.err'
15853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854 (eval $ac_try) 2>&5
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; } &&
15858 { ac_try
='test -s conftest$ac_exeext'
15859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860 (eval $ac_try) 2>&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; }; then
15864 eval "$as_ac_var=yes"
15866 echo "$as_me: failed program was:" >&5
15867 sed 's/^/| /' conftest.
$ac_ext >&5
15869 eval "$as_ac_var=no"
15871 rm -f conftest.err conftest.
$ac_objext \
15872 conftest
$ac_exeext conftest.
$ac_ext
15874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15876 if test `eval echo '${'$as_ac_var'}'` = yes; then
15877 cat >>confdefs.h
<<_ACEOF
15878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15885 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15886 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15887 if test "${am_cv_langinfo_codeset+set}" = set; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15890 cat >conftest.
$ac_ext <<_ACEOF
15893 cat confdefs.h
>>conftest.
$ac_ext
15894 cat >>conftest.
$ac_ext <<_ACEOF
15895 /* end confdefs.h. */
15896 #include <langinfo.h>
15900 char* cs = nl_langinfo(CODESET);
15905 rm -f conftest.
$ac_objext conftest
$ac_exeext
15906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15907 (eval $ac_link) 2>conftest.er1
15909 grep -v '^ *+' conftest.er1
>conftest.err
15911 cat conftest.err
>&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } &&
15914 { ac_try
='test -z "$ac_c_werror_flag"
15915 || test ! -s conftest.err'
15916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917 (eval $ac_try) 2>&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); }; } &&
15921 { ac_try
='test -s conftest$ac_exeext'
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; }; then
15927 am_cv_langinfo_codeset
=yes
15929 echo "$as_me: failed program was:" >&5
15930 sed 's/^/| /' conftest.
$ac_ext >&5
15932 am_cv_langinfo_codeset
=no
15934 rm -f conftest.err conftest.
$ac_objext \
15935 conftest
$ac_exeext conftest.
$ac_ext
15938 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
15939 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
15940 if test $am_cv_langinfo_codeset = yes; then
15942 cat >>confdefs.h
<<\_ACEOF
15943 #define HAVE_LANGINFO_CODESET 1
15949 # Check the return and argument types of ptrace. No canned test for
15950 # this, so roll our own.
15951 gdb_ptrace_headers
='
15952 #if HAVE_SYS_TYPES_H
15953 # include <sys/types.h>
15955 #if HAVE_SYS_PTRACE_H
15956 # include <sys/ptrace.h>
15959 # include <unistd.h>
15962 # There is no point in checking if we don't have a prototype.
15963 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
15964 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
15965 if test "${ac_cv_have_decl_ptrace+set}" = set; then
15966 echo $ECHO_N "(cached) $ECHO_C" >&6
15968 cat >conftest.
$ac_ext <<_ACEOF
15971 cat confdefs.h
>>conftest.
$ac_ext
15972 cat >>conftest.
$ac_ext <<_ACEOF
15973 /* end confdefs.h. */
15974 $gdb_ptrace_headers
15980 char *p = (char *) ptrace;
15987 rm -f conftest.
$ac_objext
15988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15989 (eval $ac_compile) 2>conftest.er1
15991 grep -v '^ *+' conftest.er1
>conftest.err
15993 cat conftest.err
>&5
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); } &&
15996 { ac_try
='test -z "$ac_c_werror_flag"
15997 || test ! -s conftest.err'
15998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15999 (eval $ac_try) 2>&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); }; } &&
16003 { ac_try
='test -s conftest.$ac_objext'
16004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005 (eval $ac_try) 2>&5
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); }; }; then
16009 ac_cv_have_decl_ptrace
=yes
16011 echo "$as_me: failed program was:" >&5
16012 sed 's/^/| /' conftest.
$ac_ext >&5
16014 ac_cv_have_decl_ptrace
=no
16016 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16018 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16019 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16020 if test $ac_cv_have_decl_ptrace = yes; then
16022 cat >>confdefs.h
<<_ACEOF
16023 #define HAVE_DECL_PTRACE 1
16028 cat >>confdefs.h
<<_ACEOF
16029 #define HAVE_DECL_PTRACE 0
16033 : ${gdb_cv_func_ptrace_ret='int'}
16034 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16039 # Check return type. Varargs (used on GNU/Linux) conflict with the
16040 # empty argument list, so check for that explicitly.
16041 echo "$as_me:$LINENO: checking return type of ptrace" >&5
16042 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16043 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
16044 echo $ECHO_N "(cached) $ECHO_C" >&6
16046 cat >conftest.
$ac_ext <<_ACEOF
16049 cat confdefs.h
>>conftest.
$ac_ext
16050 cat >>conftest.
$ac_ext <<_ACEOF
16051 /* end confdefs.h. */
16052 $gdb_ptrace_headers
16056 extern long ptrace (enum __ptrace_request, ...);
16061 rm -f conftest.
$ac_objext
16062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16063 (eval $ac_compile) 2>conftest.er1
16065 grep -v '^ *+' conftest.er1
>conftest.err
16067 cat conftest.err
>&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } &&
16070 { ac_try
='test -z "$ac_c_werror_flag"
16071 || test ! -s conftest.err'
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); }; } &&
16077 { ac_try
='test -s conftest.$ac_objext'
16078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079 (eval $ac_try) 2>&5
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); }; }; then
16083 gdb_cv_func_ptrace_ret
='long'
16085 echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.
$ac_ext >&5
16088 cat >conftest.
$ac_ext <<_ACEOF
16091 cat confdefs.h
>>conftest.
$ac_ext
16092 cat >>conftest.
$ac_ext <<_ACEOF
16093 /* end confdefs.h. */
16094 $gdb_ptrace_headers
16098 extern int ptrace ();
16103 rm -f conftest.
$ac_objext
16104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16105 (eval $ac_compile) 2>conftest.er1
16107 grep -v '^ *+' conftest.er1
>conftest.err
16109 cat conftest.err
>&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); } &&
16112 { ac_try
='test -z "$ac_c_werror_flag"
16113 || test ! -s conftest.err'
16114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115 (eval $ac_try) 2>&5
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); }; } &&
16119 { ac_try
='test -s conftest.$ac_objext'
16120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16121 (eval $ac_try) 2>&5
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); }; }; then
16125 gdb_cv_func_ptrace_ret
='int'
16127 echo "$as_me: failed program was:" >&5
16128 sed 's/^/| /' conftest.
$ac_ext >&5
16130 gdb_cv_func_ptrace_ret
='long'
16132 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16134 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16136 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16137 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
16139 cat >>confdefs.h
<<_ACEOF
16140 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
16143 # Check argument types.
16144 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16145 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16146 if test "${gdb_cv_func_ptrace_args+set}" = set; then
16147 echo $ECHO_N "(cached) $ECHO_C" >&6
16150 cat >conftest.
$ac_ext <<_ACEOF
16153 cat confdefs.h
>>conftest.
$ac_ext
16154 cat >>conftest.
$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16156 $gdb_ptrace_headers
16160 extern long ptrace (enum __ptrace_request, ...);
16165 rm -f conftest.
$ac_objext
16166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16167 (eval $ac_compile) 2>conftest.er1
16169 grep -v '^ *+' conftest.er1
>conftest.err
16171 cat conftest.err
>&5
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); } &&
16174 { ac_try
='test -z "$ac_c_werror_flag"
16175 || test ! -s conftest.err'
16176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177 (eval $ac_try) 2>&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; } &&
16181 { ac_try
='test -s conftest.$ac_objext'
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; }; then
16187 gdb_cv_func_ptrace_args
='int,int,long,long'
16189 echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.
$ac_ext >&5
16193 for gdb_arg1
in 'int' 'long'; do
16194 for gdb_arg2
in 'pid_t' 'int' 'long'; do
16195 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
16196 for gdb_arg4
in 'int' 'long'; do
16197 cat >conftest.
$ac_ext <<_ACEOF
16200 cat confdefs.h
>>conftest.
$ac_ext
16201 cat >>conftest.
$ac_ext <<_ACEOF
16202 /* end confdefs.h. */
16203 $gdb_ptrace_headers
16208 extern $gdb_cv_func_ptrace_ret
16209 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16215 rm -f conftest.
$ac_objext
16216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16217 (eval $ac_compile) 2>conftest.er1
16219 grep -v '^ *+' conftest.er1
>conftest.err
16221 cat conftest.err
>&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); } &&
16224 { ac_try
='test -z "$ac_c_werror_flag"
16225 || test ! -s conftest.err'
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); }; } &&
16231 { ac_try
='test -s conftest.$ac_objext'
16232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233 (eval $ac_try) 2>&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; }; then
16237 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16240 echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.
$ac_ext >&5
16244 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16245 for gdb_arg5
in 'int *' 'int' 'long'; do
16246 cat >conftest.
$ac_ext <<_ACEOF
16249 cat confdefs.h
>>conftest.
$ac_ext
16250 cat >>conftest.
$ac_ext <<_ACEOF
16251 /* end confdefs.h. */
16252 $gdb_ptrace_headers
16257 extern $gdb_cv_func_ptrace_ret
16258 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16264 rm -f conftest.
$ac_objext
16265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16266 (eval $ac_compile) 2>conftest.er1
16268 grep -v '^ *+' conftest.er1
>conftest.err
16270 cat conftest.err
>&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); } &&
16273 { ac_try
='test -z "$ac_c_werror_flag"
16274 || test ! -s conftest.err'
16275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16276 (eval $ac_try) 2>&5
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); }; } &&
16280 { ac_try
='test -s conftest.$ac_objext'
16281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16282 (eval $ac_try) 2>&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); }; }; then
16287 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16290 echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.
$ac_ext >&5
16294 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16300 # Provide a safe default value.
16301 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16304 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16306 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16307 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16308 ac_save_IFS
=$IFS; IFS
=','
16309 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16313 cat >>confdefs.h
<<_ACEOF
16314 #define PTRACE_TYPE_ARG3 $3
16317 if test -n "$5"; then
16319 cat >>confdefs.h
<<_ACEOF
16320 #define PTRACE_TYPE_ARG5 $5
16325 if test "$cross_compiling" = no
; then
16326 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16327 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16328 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16329 echo $ECHO_N "(cached) $ECHO_C" >&6
16331 if test "$cross_compiling" = yes; then
16332 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16333 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16334 { (exit 1); exit 1; }; }
16336 cat >conftest.
$ac_ext <<_ACEOF
16339 cat confdefs.h
>>conftest.
$ac_ext
16340 cat >>conftest.
$ac_ext <<_ACEOF
16341 /* end confdefs.h. */
16343 # include <unistd.h>
16349 /* If this system has a BSD-style setpgrp which takes arguments,
16350 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16351 exit successfully. */
16352 exit (setpgrp (1,1) == -1 ? 0 : 1);
16357 rm -f conftest
$ac_exeext
16358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16359 (eval $ac_link) 2>&5
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16364 (eval $ac_try) 2>&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); }; }; then
16368 ac_cv_func_setpgrp_void
=no
16370 echo "$as_me: program exited with status $ac_status" >&5
16371 echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.
$ac_ext >&5
16374 ( exit $ac_status )
16375 ac_cv_func_setpgrp_void
=yes
16377 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16380 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16381 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16382 if test $ac_cv_func_setpgrp_void = yes; then
16384 cat >>confdefs.h
<<\_ACEOF
16385 #define SETPGRP_VOID 1
16391 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16392 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16393 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
16396 cat >conftest.
$ac_ext <<_ACEOF
16399 cat confdefs.h
>>conftest.
$ac_ext
16400 cat >>conftest.
$ac_ext <<_ACEOF
16401 /* end confdefs.h. */
16403 #include <unistd.h>
16409 if (setpgrp(1,1) == -1)
16418 rm -f conftest.
$ac_objext
16419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16420 (eval $ac_compile) 2>conftest.er1
16422 grep -v '^ *+' conftest.er1
>conftest.err
16424 cat conftest.err
>&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); } &&
16427 { ac_try
='test -z "$ac_c_werror_flag"
16428 || test ! -s conftest.err'
16429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430 (eval $ac_try) 2>&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; } &&
16434 { ac_try
='test -s conftest.$ac_objext'
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; }; then
16440 ac_cv_func_setpgrp_void
=no
16442 echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.
$ac_ext >&5
16445 ac_cv_func_setpgrp_void
=yes
16447 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16449 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16450 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16451 if test $ac_cv_func_setpgrp_void = yes; then
16452 cat >>confdefs.h
<<\_ACEOF
16453 #define SETPGRP_VOID 1
16459 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16460 # since sigsetjmp might only be defined as a macro.
16461 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16462 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16463 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16464 echo $ECHO_N "(cached) $ECHO_C" >&6
16466 cat >conftest.
$ac_ext <<_ACEOF
16469 cat confdefs.h
>>conftest.
$ac_ext
16470 cat >>conftest.
$ac_ext <<_ACEOF
16471 /* end confdefs.h. */
16473 #include <setjmp.h>
16478 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16483 rm -f conftest.
$ac_objext
16484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16485 (eval $ac_compile) 2>conftest.er1
16487 grep -v '^ *+' conftest.er1
>conftest.err
16489 cat conftest.err
>&5
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); } &&
16492 { ac_try
='test -z "$ac_c_werror_flag"
16493 || test ! -s conftest.err'
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); }; } &&
16499 { ac_try
='test -s conftest.$ac_objext'
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; }; then
16505 gdb_cv_func_sigsetjmp
=yes
16507 echo "$as_me: failed program was:" >&5
16508 sed 's/^/| /' conftest.
$ac_ext >&5
16510 gdb_cv_func_sigsetjmp
=no
16512 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16514 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16515 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16516 if test $gdb_cv_func_sigsetjmp = yes; then
16518 cat >>confdefs.h
<<\_ACEOF
16519 #define HAVE_SIGSETJMP 1
16524 # Assume we'll default to using the included libiberty regex.
16525 gdb_use_included_regex
=yes
16527 # However, if the system regex is GNU regex, then default to *not*
16528 # using the included regex.
16529 echo "$as_me:$LINENO: checking for GNU regex" >&5
16530 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16531 if test "${gdb_cv_have_gnu_regex+set}" = set; then
16532 echo $ECHO_N "(cached) $ECHO_C" >&6
16534 cat >conftest.
$ac_ext <<_ACEOF
16537 cat confdefs.h
>>conftest.
$ac_ext
16538 cat >>conftest.
$ac_ext <<_ACEOF
16539 /* end confdefs.h. */
16540 #include <gnu-versions.h>
16544 #define REGEX_INTERFACE_VERSION 1
16545 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16546 # error "Version mismatch"
16552 rm -f conftest.
$ac_objext
16553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16554 (eval $ac_compile) 2>conftest.er1
16556 grep -v '^ *+' conftest.er1
>conftest.err
16558 cat conftest.err
>&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); } &&
16561 { ac_try
='test -z "$ac_c_werror_flag"
16562 || test ! -s conftest.err'
16563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16564 (eval $ac_try) 2>&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); }; } &&
16568 { ac_try
='test -s conftest.$ac_objext'
16569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570 (eval $ac_try) 2>&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; }; then
16574 gdb_cv_have_gnu_regex
=yes
16576 echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.
$ac_ext >&5
16579 gdb_cv_have_gnu_regex
=no
16581 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16583 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16584 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16585 if test $gdb_cv_have_gnu_regex = yes; then
16586 gdb_use_included_regex
=no
16590 # Check whether --with-included-regex or --without-included-regex was given.
16591 if test "${with_included_regex+set}" = set; then
16592 withval
="$with_included_regex"
16593 gdb_with_regex
=$withval
16595 gdb_with_regex
=$gdb_use_included_regex
16597 if test "$gdb_with_regex" = yes; then
16599 cat >>confdefs.h
<<\_ACEOF
16600 #define USE_INCLUDED_REGEX 1
16605 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
16606 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
16607 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
16608 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
16609 echo $ECHO_N "(cached) $ECHO_C" >&6
16611 cat >conftest.
$ac_ext <<_ACEOF
16614 cat confdefs.h
>>conftest.
$ac_ext
16615 cat >>conftest.
$ac_ext <<_ACEOF
16616 /* end confdefs.h. */
16617 #include <sys/param.h>
16618 #include <sys/proc.h>
16624 static struct thread ac_aggr;
16625 if (ac_aggr.td_pcb)
16631 rm -f conftest.
$ac_objext
16632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16633 (eval $ac_compile) 2>conftest.er1
16635 grep -v '^ *+' conftest.er1
>conftest.err
16637 cat conftest.err
>&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); } &&
16640 { ac_try
='test -z "$ac_c_werror_flag"
16641 || test ! -s conftest.err'
16642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16643 (eval $ac_try) 2>&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); }; } &&
16647 { ac_try
='test -s conftest.$ac_objext'
16648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; }; then
16653 ac_cv_member_struct_thread_td_pcb
=yes
16655 echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.
$ac_ext >&5
16658 cat >conftest.
$ac_ext <<_ACEOF
16661 cat confdefs.h
>>conftest.
$ac_ext
16662 cat >>conftest.
$ac_ext <<_ACEOF
16663 /* end confdefs.h. */
16664 #include <sys/param.h>
16665 #include <sys/proc.h>
16671 static struct thread ac_aggr;
16672 if (sizeof ac_aggr.td_pcb)
16678 rm -f conftest.
$ac_objext
16679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16680 (eval $ac_compile) 2>conftest.er1
16682 grep -v '^ *+' conftest.er1
>conftest.err
16684 cat conftest.err
>&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); } &&
16687 { ac_try
='test -z "$ac_c_werror_flag"
16688 || test ! -s conftest.err'
16689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16690 (eval $ac_try) 2>&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; } &&
16694 { ac_try
='test -s conftest.$ac_objext'
16695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16696 (eval $ac_try) 2>&5
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); }; }; then
16700 ac_cv_member_struct_thread_td_pcb
=yes
16702 echo "$as_me: failed program was:" >&5
16703 sed 's/^/| /' conftest.
$ac_ext >&5
16705 ac_cv_member_struct_thread_td_pcb
=no
16707 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16709 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16711 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
16712 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
16713 if test $ac_cv_member_struct_thread_td_pcb = yes; then
16715 cat >>confdefs.h
<<_ACEOF
16716 #define HAVE_STRUCT_THREAD_TD_PCB 1
16723 # See if <sys/lwp.h> defines `struct lwp`.
16724 echo "$as_me:$LINENO: checking for struct lwp" >&5
16725 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16726 if test "${gdb_cv_struct_lwp+set}" = set; then
16727 echo $ECHO_N "(cached) $ECHO_C" >&6
16729 cat >conftest.
$ac_ext <<_ACEOF
16732 cat confdefs.h
>>conftest.
$ac_ext
16733 cat >>conftest.
$ac_ext <<_ACEOF
16734 /* end confdefs.h. */
16735 #include <sys/param.h>
16736 #include <sys/lwp.h>
16745 rm -f conftest.
$ac_objext
16746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16747 (eval $ac_compile) 2>conftest.er1
16749 grep -v '^ *+' conftest.er1
>conftest.err
16751 cat conftest.err
>&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); } &&
16754 { ac_try
='test -z "$ac_c_werror_flag"
16755 || test ! -s conftest.err'
16756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16757 (eval $ac_try) 2>&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; } &&
16761 { ac_try
='test -s conftest.$ac_objext'
16762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16763 (eval $ac_try) 2>&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); }; }; then
16767 gdb_cv_struct_lwp
=yes
16769 echo "$as_me: failed program was:" >&5
16770 sed 's/^/| /' conftest.
$ac_ext >&5
16772 gdb_cv_struct_lwp
=no
16774 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16776 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16777 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
16778 if test $gdb_cv_struct_lwp = yes; then
16780 cat >>confdefs.h
<<\_ACEOF
16781 #define HAVE_STRUCT_LWP 1
16786 # See if <machine/reg.h> degines `struct reg'.
16787 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16788 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16789 if test "${gdb_cv_struct_reg+set}" = set; then
16790 echo $ECHO_N "(cached) $ECHO_C" >&6
16792 cat >conftest.
$ac_ext <<_ACEOF
16795 cat confdefs.h
>>conftest.
$ac_ext
16796 cat >>conftest.
$ac_ext <<_ACEOF
16797 /* end confdefs.h. */
16798 #include <sys/types.h>
16799 #include <machine/reg.h>
16808 rm -f conftest.
$ac_objext
16809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16810 (eval $ac_compile) 2>conftest.er1
16812 grep -v '^ *+' conftest.er1
>conftest.err
16814 cat conftest.err
>&5
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); } &&
16817 { ac_try
='test -z "$ac_c_werror_flag"
16818 || test ! -s conftest.err'
16819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820 (eval $ac_try) 2>&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; } &&
16824 { ac_try
='test -s conftest.$ac_objext'
16825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16826 (eval $ac_try) 2>&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; }; then
16830 gdb_cv_struct_reg
=yes
16832 echo "$as_me: failed program was:" >&5
16833 sed 's/^/| /' conftest.
$ac_ext >&5
16835 gdb_cv_struct_reg
=no
16837 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16839 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16840 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
16841 if test $gdb_cv_struct_reg = yes; then
16843 cat >>confdefs.h
<<\_ACEOF
16844 #define HAVE_STRUCT_REG 1
16849 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16850 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16851 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
16852 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
16853 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
16854 echo $ECHO_N "(cached) $ECHO_C" >&6
16856 cat >conftest.
$ac_ext <<_ACEOF
16859 cat confdefs.h
>>conftest.
$ac_ext
16860 cat >>conftest.
$ac_ext <<_ACEOF
16861 /* end confdefs.h. */
16862 #include <machine/reg.h>
16867 static struct reg ac_aggr;
16874 rm -f conftest.
$ac_objext
16875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16876 (eval $ac_compile) 2>conftest.er1
16878 grep -v '^ *+' conftest.er1
>conftest.err
16880 cat conftest.err
>&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); } &&
16883 { ac_try
='test -z "$ac_c_werror_flag"
16884 || test ! -s conftest.err'
16885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16886 (eval $ac_try) 2>&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; } &&
16890 { ac_try
='test -s conftest.$ac_objext'
16891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16892 (eval $ac_try) 2>&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; }; then
16896 ac_cv_member_struct_reg_r_fs
=yes
16898 echo "$as_me: failed program was:" >&5
16899 sed 's/^/| /' conftest.
$ac_ext >&5
16901 cat >conftest.
$ac_ext <<_ACEOF
16904 cat confdefs.h
>>conftest.
$ac_ext
16905 cat >>conftest.
$ac_ext <<_ACEOF
16906 /* end confdefs.h. */
16907 #include <machine/reg.h>
16912 static struct reg ac_aggr;
16913 if (sizeof ac_aggr.r_fs)
16919 rm -f conftest.
$ac_objext
16920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16921 (eval $ac_compile) 2>conftest.er1
16923 grep -v '^ *+' conftest.er1
>conftest.err
16925 cat conftest.err
>&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); } &&
16928 { ac_try
='test -z "$ac_c_werror_flag"
16929 || test ! -s conftest.err'
16930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16931 (eval $ac_try) 2>&5
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); }; } &&
16935 { ac_try
='test -s conftest.$ac_objext'
16936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16937 (eval $ac_try) 2>&5
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; }; then
16941 ac_cv_member_struct_reg_r_fs
=yes
16943 echo "$as_me: failed program was:" >&5
16944 sed 's/^/| /' conftest.
$ac_ext >&5
16946 ac_cv_member_struct_reg_r_fs
=no
16948 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16950 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16952 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
16953 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
16954 if test $ac_cv_member_struct_reg_r_fs = yes; then
16956 cat >>confdefs.h
<<_ACEOF
16957 #define HAVE_STRUCT_REG_R_FS 1
16962 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
16963 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
16964 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
16965 echo $ECHO_N "(cached) $ECHO_C" >&6
16967 cat >conftest.
$ac_ext <<_ACEOF
16970 cat confdefs.h
>>conftest.
$ac_ext
16971 cat >>conftest.
$ac_ext <<_ACEOF
16972 /* end confdefs.h. */
16973 #include <machine/reg.h>
16978 static struct reg ac_aggr;
16985 rm -f conftest.
$ac_objext
16986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16987 (eval $ac_compile) 2>conftest.er1
16989 grep -v '^ *+' conftest.er1
>conftest.err
16991 cat conftest.err
>&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } &&
16994 { ac_try
='test -z "$ac_c_werror_flag"
16995 || test ! -s conftest.err'
16996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16997 (eval $ac_try) 2>&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); }; } &&
17001 { ac_try
='test -s conftest.$ac_objext'
17002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17003 (eval $ac_try) 2>&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); }; }; then
17007 ac_cv_member_struct_reg_r_gs
=yes
17009 echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.
$ac_ext >&5
17012 cat >conftest.
$ac_ext <<_ACEOF
17015 cat confdefs.h
>>conftest.
$ac_ext
17016 cat >>conftest.
$ac_ext <<_ACEOF
17017 /* end confdefs.h. */
17018 #include <machine/reg.h>
17023 static struct reg ac_aggr;
17024 if (sizeof ac_aggr.r_gs)
17030 rm -f conftest.
$ac_objext
17031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17032 (eval $ac_compile) 2>conftest.er1
17034 grep -v '^ *+' conftest.er1
>conftest.err
17036 cat conftest.err
>&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } &&
17039 { ac_try
='test -z "$ac_c_werror_flag"
17040 || test ! -s conftest.err'
17041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17042 (eval $ac_try) 2>&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); }; } &&
17046 { ac_try
='test -s conftest.$ac_objext'
17047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17048 (eval $ac_try) 2>&5
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; }; then
17052 ac_cv_member_struct_reg_r_gs
=yes
17054 echo "$as_me: failed program was:" >&5
17055 sed 's/^/| /' conftest.
$ac_ext >&5
17057 ac_cv_member_struct_reg_r_gs
=no
17059 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17061 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17063 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17064 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17065 if test $ac_cv_member_struct_reg_r_gs = yes; then
17067 cat >>confdefs.h
<<_ACEOF
17068 #define HAVE_STRUCT_REG_R_GS 1
17075 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17076 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17077 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17078 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
17079 echo $ECHO_N "(cached) $ECHO_C" >&6
17081 cat >conftest.
$ac_ext <<_ACEOF
17084 cat confdefs.h
>>conftest.
$ac_ext
17085 cat >>conftest.
$ac_ext <<_ACEOF
17086 /* end confdefs.h. */
17087 #include <sys/ptrace.h>
17096 rm -f conftest.
$ac_objext
17097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17098 (eval $ac_compile) 2>conftest.er1
17100 grep -v '^ *+' conftest.er1
>conftest.err
17102 cat conftest.err
>&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } &&
17105 { ac_try
='test -z "$ac_c_werror_flag"
17106 || test ! -s conftest.err'
17107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17108 (eval $ac_try) 2>&5
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); }; } &&
17112 { ac_try
='test -s conftest.$ac_objext'
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; }; then
17118 gdb_cv_have_ptrace_getregs
=yes
17120 echo "$as_me: failed program was:" >&5
17121 sed 's/^/| /' conftest.
$ac_ext >&5
17123 gdb_cv_have_ptrace_getregs
=no
17125 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17128 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17129 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17130 if test $gdb_cv_have_ptrace_getregs = yes; then
17132 cat >>confdefs.h
<<\_ACEOF
17133 #define HAVE_PTRACE_GETREGS 1
17138 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17139 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17140 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17141 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
17142 echo $ECHO_N "(cached) $ECHO_C" >&6
17144 cat >conftest.
$ac_ext <<_ACEOF
17147 cat confdefs.h
>>conftest.
$ac_ext
17148 cat >>conftest.
$ac_ext <<_ACEOF
17149 /* end confdefs.h. */
17150 #include <sys/ptrace.h>
17159 rm -f conftest.
$ac_objext
17160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17161 (eval $ac_compile) 2>conftest.er1
17163 grep -v '^ *+' conftest.er1
>conftest.err
17165 cat conftest.err
>&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); } &&
17168 { ac_try
='test -z "$ac_c_werror_flag"
17169 || test ! -s conftest.err'
17170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171 (eval $ac_try) 2>&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; } &&
17175 { ac_try
='test -s conftest.$ac_objext'
17176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17177 (eval $ac_try) 2>&5
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); }; }; then
17181 gdb_cv_have_ptrace_getfpxregs
=yes
17183 echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.
$ac_ext >&5
17186 gdb_cv_have_ptrace_getfpxregs
=no
17188 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17191 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17192 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17193 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
17195 cat >>confdefs.h
<<\_ACEOF
17196 #define HAVE_PTRACE_GETFPXREGS 1
17201 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17202 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17203 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17204 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
17205 echo $ECHO_N "(cached) $ECHO_C" >&6
17207 cat >conftest.
$ac_ext <<_ACEOF
17210 cat confdefs.h
>>conftest.
$ac_ext
17211 cat >>conftest.
$ac_ext <<_ACEOF
17212 /* end confdefs.h. */
17213 #include <sys/types.h>
17214 #include <sys/ptrace.h>
17223 rm -f conftest.
$ac_objext
17224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17225 (eval $ac_compile) 2>conftest.er1
17227 grep -v '^ *+' conftest.er1
>conftest.err
17229 cat conftest.err
>&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); } &&
17232 { ac_try
='test -z "$ac_c_werror_flag"
17233 || test ! -s conftest.err'
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); }; } &&
17239 { ac_try
='test -s conftest.$ac_objext'
17240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17241 (eval $ac_try) 2>&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; }; then
17245 gdb_cv_have_pt_getdbregs
=yes
17247 echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.
$ac_ext >&5
17250 gdb_cv_have_pt_getdbregs
=no
17252 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17255 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17256 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17257 if test $gdb_cv_have_pt_getdbregs = yes; then
17259 cat >>confdefs.h
<<\_ACEOF
17260 #define HAVE_PT_GETDBREGS 1
17265 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17266 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17267 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17268 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
17269 echo $ECHO_N "(cached) $ECHO_C" >&6
17271 cat >conftest.
$ac_ext <<_ACEOF
17274 cat confdefs.h
>>conftest.
$ac_ext
17275 cat >>conftest.
$ac_ext <<_ACEOF
17276 /* end confdefs.h. */
17277 #include <sys/types.h>
17278 #include <sys/ptrace.h>
17287 rm -f conftest.
$ac_objext
17288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17289 (eval $ac_compile) 2>conftest.er1
17291 grep -v '^ *+' conftest.er1
>conftest.err
17293 cat conftest.err
>&5
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); } &&
17296 { ac_try
='test -z "$ac_c_werror_flag"
17297 || test ! -s conftest.err'
17298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299 (eval $ac_try) 2>&5
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; } &&
17303 { ac_try
='test -s conftest.$ac_objext'
17304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; }; then
17309 gdb_cv_have_pt_getxmmregs
=yes
17311 echo "$as_me: failed program was:" >&5
17312 sed 's/^/| /' conftest.
$ac_ext >&5
17314 gdb_cv_have_pt_getxmmregs
=no
17316 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17319 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17320 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17321 if test $gdb_cv_have_pt_getxmmregs = yes; then
17323 cat >>confdefs.h
<<\_ACEOF
17324 #define HAVE_PT_GETXMMREGS 1
17329 # Detect which type of /proc is in use, such as for Unixware or Solaris.
17331 if test "${target}" = "${host}"; then
17333 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
17335 cat >>confdefs.h
<<\_ACEOF
17336 #define NEW_PROC_API 1
17340 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
17342 cat >>confdefs.h
<<\_ACEOF
17343 #define NEW_PROC_API 1
17348 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17350 cat >>confdefs.h
<<\_ACEOF
17351 #define _KMEMUSER 1
17358 if test "$ac_cv_header_sys_procfs_h" = yes; then
17359 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17360 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17361 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17362 echo $ECHO_N "(cached) $ECHO_C" >&6
17364 cat >conftest.
$ac_ext <<_ACEOF
17367 cat confdefs.h
>>conftest.
$ac_ext
17368 cat >>conftest.
$ac_ext <<_ACEOF
17369 /* end confdefs.h. */
17372 #include <sys/procfs.h>
17381 rm -f conftest.
$ac_objext
17382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17383 (eval $ac_compile) 2>conftest.er1
17385 grep -v '^ *+' conftest.er1
>conftest.err
17387 cat conftest.err
>&5
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); } &&
17390 { ac_try
='test -z "$ac_c_werror_flag"
17391 || test ! -s conftest.err'
17392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17393 (eval $ac_try) 2>&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); }; } &&
17397 { ac_try
='test -s conftest.$ac_objext'
17398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17399 (eval $ac_try) 2>&5
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; }; then
17403 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
17405 echo "$as_me: failed program was:" >&5
17406 sed 's/^/| /' conftest.
$ac_ext >&5
17408 bfd_cv_have_sys_procfs_type_pstatus_t
=no
17411 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17414 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17416 cat >>confdefs.h
<<\_ACEOF
17417 #define HAVE_PSTATUS_T 1
17421 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17422 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17424 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17425 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17426 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17427 echo $ECHO_N "(cached) $ECHO_C" >&6
17429 cat >conftest.
$ac_ext <<_ACEOF
17432 cat confdefs.h
>>conftest.
$ac_ext
17433 cat >>conftest.
$ac_ext <<_ACEOF
17434 /* end confdefs.h. */
17437 #include <sys/procfs.h>
17446 rm -f conftest.
$ac_objext
17447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17448 (eval $ac_compile) 2>conftest.er1
17450 grep -v '^ *+' conftest.er1
>conftest.err
17452 cat conftest.err
>&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); } &&
17455 { ac_try
='test -z "$ac_c_werror_flag"
17456 || test ! -s conftest.err'
17457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17458 (eval $ac_try) 2>&5
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); }; } &&
17462 { ac_try
='test -s conftest.$ac_objext'
17463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464 (eval $ac_try) 2>&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; }; then
17468 bfd_cv_have_sys_procfs_type_prrun_t
=yes
17470 echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.
$ac_ext >&5
17473 bfd_cv_have_sys_procfs_type_prrun_t
=no
17476 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17479 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17481 cat >>confdefs.h
<<\_ACEOF
17482 #define HAVE_PRRUN_T 1
17486 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17487 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17489 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17490 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17491 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17492 echo $ECHO_N "(cached) $ECHO_C" >&6
17494 cat >conftest.
$ac_ext <<_ACEOF
17497 cat confdefs.h
>>conftest.
$ac_ext
17498 cat >>conftest.
$ac_ext <<_ACEOF
17499 /* end confdefs.h. */
17502 #include <sys/procfs.h>
17511 rm -f conftest.
$ac_objext
17512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17513 (eval $ac_compile) 2>conftest.er1
17515 grep -v '^ *+' conftest.er1
>conftest.err
17517 cat conftest.err
>&5
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); } &&
17520 { ac_try
='test -z "$ac_c_werror_flag"
17521 || test ! -s conftest.err'
17522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17523 (eval $ac_try) 2>&5
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); }; } &&
17527 { ac_try
='test -s conftest.$ac_objext'
17528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529 (eval $ac_try) 2>&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; }; then
17533 bfd_cv_have_sys_procfs_type_gregset_t
=yes
17535 echo "$as_me: failed program was:" >&5
17536 sed 's/^/| /' conftest.
$ac_ext >&5
17538 bfd_cv_have_sys_procfs_type_gregset_t
=no
17541 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17544 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17546 cat >>confdefs.h
<<\_ACEOF
17547 #define HAVE_GREGSET_T 1
17551 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17552 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17554 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17555 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17556 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17557 echo $ECHO_N "(cached) $ECHO_C" >&6
17559 cat >conftest.
$ac_ext <<_ACEOF
17562 cat confdefs.h
>>conftest.
$ac_ext
17563 cat >>conftest.
$ac_ext <<_ACEOF
17564 /* end confdefs.h. */
17567 #include <sys/procfs.h>
17576 rm -f conftest.
$ac_objext
17577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17578 (eval $ac_compile) 2>conftest.er1
17580 grep -v '^ *+' conftest.er1
>conftest.err
17582 cat conftest.err
>&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); } &&
17585 { ac_try
='test -z "$ac_c_werror_flag"
17586 || test ! -s conftest.err'
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; } &&
17592 { ac_try
='test -s conftest.$ac_objext'
17593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; }; then
17598 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
17600 echo "$as_me: failed program was:" >&5
17601 sed 's/^/| /' conftest.
$ac_ext >&5
17603 bfd_cv_have_sys_procfs_type_fpregset_t
=no
17606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17609 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
17611 cat >>confdefs.h
<<\_ACEOF
17612 #define HAVE_FPREGSET_T 1
17616 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17617 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
17619 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17620 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17621 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17624 cat >conftest.
$ac_ext <<_ACEOF
17627 cat confdefs.h
>>conftest.
$ac_ext
17628 cat >>conftest.
$ac_ext <<_ACEOF
17629 /* end confdefs.h. */
17632 #include <sys/procfs.h>
17641 rm -f conftest.
$ac_objext
17642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17643 (eval $ac_compile) 2>conftest.er1
17645 grep -v '^ *+' conftest.er1
>conftest.err
17647 cat conftest.err
>&5
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); } &&
17650 { ac_try
='test -z "$ac_c_werror_flag"
17651 || test ! -s conftest.err'
17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653 (eval $ac_try) 2>&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; } &&
17657 { ac_try
='test -s conftest.$ac_objext'
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; }; then
17663 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
17665 echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.
$ac_ext >&5
17668 bfd_cv_have_sys_procfs_type_prgregset_t
=no
17671 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17674 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
17676 cat >>confdefs.h
<<\_ACEOF
17677 #define HAVE_PRGREGSET_T 1
17681 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17682 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
17684 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17685 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17686 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17687 echo $ECHO_N "(cached) $ECHO_C" >&6
17689 cat >conftest.
$ac_ext <<_ACEOF
17692 cat confdefs.h
>>conftest.
$ac_ext
17693 cat >>conftest.
$ac_ext <<_ACEOF
17694 /* end confdefs.h. */
17697 #include <sys/procfs.h>
17706 rm -f conftest.
$ac_objext
17707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17708 (eval $ac_compile) 2>conftest.er1
17710 grep -v '^ *+' conftest.er1
>conftest.err
17712 cat conftest.err
>&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
17715 { ac_try
='test -z "$ac_c_werror_flag"
17716 || test ! -s conftest.err'
17717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718 (eval $ac_try) 2>&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; } &&
17722 { ac_try
='test -s conftest.$ac_objext'
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; }; then
17728 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
17730 echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.
$ac_ext >&5
17733 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
17736 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17739 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17741 cat >>confdefs.h
<<\_ACEOF
17742 #define HAVE_PRFPREGSET_T 1
17746 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17747 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
17749 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17750 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
17751 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17752 echo $ECHO_N "(cached) $ECHO_C" >&6
17754 cat >conftest.
$ac_ext <<_ACEOF
17757 cat confdefs.h
>>conftest.
$ac_ext
17758 cat >>conftest.
$ac_ext <<_ACEOF
17759 /* end confdefs.h. */
17762 #include <sys/procfs.h>
17771 rm -f conftest.
$ac_objext
17772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17773 (eval $ac_compile) 2>conftest.er1
17775 grep -v '^ *+' conftest.er1
>conftest.err
17777 cat conftest.err
>&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } &&
17780 { ac_try
='test -z "$ac_c_werror_flag"
17781 || test ! -s conftest.err'
17782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783 (eval $ac_try) 2>&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; } &&
17787 { ac_try
='test -s conftest.$ac_objext'
17788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789 (eval $ac_try) 2>&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; }; then
17793 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
17795 echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.
$ac_ext >&5
17798 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
17801 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17804 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
17806 cat >>confdefs.h
<<\_ACEOF
17807 #define HAVE_PRGREGSET32_T 1
17811 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
17812 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
17814 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
17815 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
17816 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
17819 cat >conftest.
$ac_ext <<_ACEOF
17822 cat confdefs.h
>>conftest.
$ac_ext
17823 cat >>conftest.
$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17827 #include <sys/procfs.h>
17831 prfpregset32_t avar
17836 rm -f conftest.
$ac_objext
17837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17838 (eval $ac_compile) 2>conftest.er1
17840 grep -v '^ *+' conftest.er1
>conftest.err
17842 cat conftest.err
>&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } &&
17845 { ac_try
='test -z "$ac_c_werror_flag"
17846 || test ! -s conftest.err'
17847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17848 (eval $ac_try) 2>&5
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; } &&
17852 { ac_try
='test -s conftest.$ac_objext'
17853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17854 (eval $ac_try) 2>&5
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; }; then
17858 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
17860 echo "$as_me: failed program was:" >&5
17861 sed 's/^/| /' conftest.
$ac_ext >&5
17863 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
17866 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17869 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
17871 cat >>confdefs.h
<<\_ACEOF
17872 #define HAVE_PRFPREGSET32_T 1
17876 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
17877 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
17879 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
17880 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
17881 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
17882 echo $ECHO_N "(cached) $ECHO_C" >&6
17884 cat >conftest.
$ac_ext <<_ACEOF
17887 cat confdefs.h
>>conftest.
$ac_ext
17888 cat >>conftest.
$ac_ext <<_ACEOF
17889 /* end confdefs.h. */
17892 #include <sys/procfs.h>
17901 rm -f conftest.
$ac_objext
17902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17903 (eval $ac_compile) 2>conftest.er1
17905 grep -v '^ *+' conftest.er1
>conftest.err
17907 cat conftest.err
>&5
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); } &&
17910 { ac_try
='test -z "$ac_c_werror_flag"
17911 || test ! -s conftest.err'
17912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913 (eval $ac_try) 2>&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; } &&
17917 { ac_try
='test -s conftest.$ac_objext'
17918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919 (eval $ac_try) 2>&5
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); }; }; then
17923 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
17925 echo "$as_me: failed program was:" >&5
17926 sed 's/^/| /' conftest.
$ac_ext >&5
17928 bfd_cv_have_sys_procfs_type_lwpid_t
=no
17931 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17934 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
17936 cat >>confdefs.h
<<\_ACEOF
17937 #define HAVE_LWPID_T 1
17941 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
17942 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
17944 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
17945 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
17946 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
17947 echo $ECHO_N "(cached) $ECHO_C" >&6
17949 cat >conftest.
$ac_ext <<_ACEOF
17952 cat confdefs.h
>>conftest.
$ac_ext
17953 cat >>conftest.
$ac_ext <<_ACEOF
17954 /* end confdefs.h. */
17957 #include <sys/procfs.h>
17966 rm -f conftest.
$ac_objext
17967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17968 (eval $ac_compile) 2>conftest.er1
17970 grep -v '^ *+' conftest.er1
>conftest.err
17972 cat conftest.err
>&5
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); } &&
17975 { ac_try
='test -z "$ac_c_werror_flag"
17976 || test ! -s conftest.err'
17977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17978 (eval $ac_try) 2>&5
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); }; } &&
17982 { ac_try
='test -s conftest.$ac_objext'
17983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984 (eval $ac_try) 2>&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); }; }; then
17988 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
17990 echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.
$ac_ext >&5
17993 bfd_cv_have_sys_procfs_type_psaddr_t
=no
17996 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17999 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
18001 cat >>confdefs.h
<<\_ACEOF
18002 #define HAVE_PSADDR_T 1
18006 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18007 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
18009 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18010 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18011 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18014 cat >conftest.
$ac_ext <<_ACEOF
18017 cat confdefs.h
>>conftest.
$ac_ext
18018 cat >>conftest.
$ac_ext <<_ACEOF
18019 /* end confdefs.h. */
18022 #include <sys/procfs.h>
18031 rm -f conftest.
$ac_objext
18032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18033 (eval $ac_compile) 2>conftest.er1
18035 grep -v '^ *+' conftest.er1
>conftest.err
18037 cat conftest.err
>&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); } &&
18040 { ac_try
='test -z "$ac_c_werror_flag"
18041 || test ! -s conftest.err'
18042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043 (eval $ac_try) 2>&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; } &&
18047 { ac_try
='test -s conftest.$ac_objext'
18048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049 (eval $ac_try) 2>&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; }; then
18053 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
18055 echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.
$ac_ext >&5
18058 bfd_cv_have_sys_procfs_type_prsysent_t
=no
18061 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18064 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18066 cat >>confdefs.h
<<\_ACEOF
18067 #define HAVE_PRSYSENT_T 1
18071 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18072 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18074 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18075 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18076 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18077 echo $ECHO_N "(cached) $ECHO_C" >&6
18079 cat >conftest.
$ac_ext <<_ACEOF
18082 cat confdefs.h
>>conftest.
$ac_ext
18083 cat >>conftest.
$ac_ext <<_ACEOF
18084 /* end confdefs.h. */
18087 #include <sys/procfs.h>
18096 rm -f conftest.
$ac_objext
18097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18098 (eval $ac_compile) 2>conftest.er1
18100 grep -v '^ *+' conftest.er1
>conftest.err
18102 cat conftest.err
>&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); } &&
18105 { ac_try
='test -z "$ac_c_werror_flag"
18106 || test ! -s conftest.err'
18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; } &&
18112 { ac_try
='test -s conftest.$ac_objext'
18113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18114 (eval $ac_try) 2>&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; }; then
18118 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
18120 echo "$as_me: failed program was:" >&5
18121 sed 's/^/| /' conftest.
$ac_ext >&5
18123 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
18126 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18129 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18131 cat >>confdefs.h
<<\_ACEOF
18132 #define HAVE_PR_SIGSET_T 1
18136 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18137 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18139 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18140 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18141 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18142 echo $ECHO_N "(cached) $ECHO_C" >&6
18144 cat >conftest.
$ac_ext <<_ACEOF
18147 cat confdefs.h
>>conftest.
$ac_ext
18148 cat >>conftest.
$ac_ext <<_ACEOF
18149 /* end confdefs.h. */
18152 #include <sys/procfs.h>
18156 pr_sigaction64_t avar
18161 rm -f conftest.
$ac_objext
18162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18163 (eval $ac_compile) 2>conftest.er1
18165 grep -v '^ *+' conftest.er1
>conftest.err
18167 cat conftest.err
>&5
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); } &&
18170 { ac_try
='test -z "$ac_c_werror_flag"
18171 || test ! -s conftest.err'
18172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173 (eval $ac_try) 2>&5
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; } &&
18177 { ac_try
='test -s conftest.$ac_objext'
18178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179 (eval $ac_try) 2>&5
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); }; }; then
18183 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
18185 echo "$as_me: failed program was:" >&5
18186 sed 's/^/| /' conftest.
$ac_ext >&5
18188 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
18191 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18194 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18196 cat >>confdefs.h
<<\_ACEOF
18197 #define HAVE_PR_SIGACTION64_T 1
18201 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18202 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18204 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18205 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18206 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18207 echo $ECHO_N "(cached) $ECHO_C" >&6
18209 cat >conftest.
$ac_ext <<_ACEOF
18212 cat confdefs.h
>>conftest.
$ac_ext
18213 cat >>conftest.
$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18217 #include <sys/procfs.h>
18221 pr_siginfo64_t avar
18226 rm -f conftest.
$ac_objext
18227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18228 (eval $ac_compile) 2>conftest.er1
18230 grep -v '^ *+' conftest.er1
>conftest.err
18232 cat conftest.err
>&5
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); } &&
18235 { ac_try
='test -z "$ac_c_werror_flag"
18236 || test ! -s conftest.err'
18237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18238 (eval $ac_try) 2>&5
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); }; } &&
18242 { ac_try
='test -s conftest.$ac_objext'
18243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18244 (eval $ac_try) 2>&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; }; then
18248 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
18250 echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.
$ac_ext >&5
18253 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
18256 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18259 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18261 cat >>confdefs.h
<<\_ACEOF
18262 #define HAVE_PR_SIGINFO64_T 1
18266 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18267 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18273 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18274 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18275 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18276 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18277 echo $ECHO_N "(cached) $ECHO_C" >&6
18279 if test "$cross_compiling" = yes; then
18280 gdb_cv_prfpregset_t_broken
=yes
18282 cat >conftest.
$ac_ext <<_ACEOF
18285 cat confdefs.h
>>conftest.
$ac_ext
18286 cat >>conftest.
$ac_ext <<_ACEOF
18287 /* end confdefs.h. */
18288 #include <sys/procfs.h>
18291 if (sizeof (prfpregset_t) == sizeof (void *))
18296 rm -f conftest
$ac_exeext
18297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18298 (eval $ac_link) 2>&5
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18307 gdb_cv_prfpregset_t_broken
=no
18309 echo "$as_me: program exited with status $ac_status" >&5
18310 echo "$as_me: failed program was:" >&5
18311 sed 's/^/| /' conftest.
$ac_ext >&5
18313 ( exit $ac_status )
18314 gdb_cv_prfpregset_t_broken
=yes
18316 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18320 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18321 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18322 if test $gdb_cv_prfpregset_t_broken = yes; then
18324 cat >>confdefs.h
<<\_ACEOF
18325 #define PRFPREGSET_T_BROKEN 1
18332 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18333 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18334 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18335 echo $ECHO_N "(cached) $ECHO_C" >&6
18337 cat >conftest.
$ac_ext <<_ACEOF
18340 cat confdefs.h
>>conftest.
$ac_ext
18341 cat >>conftest.
$ac_ext <<_ACEOF
18342 /* end confdefs.h. */
18343 #include <unistd.h>
18344 #include <sys/types.h>
18345 #include <sys/procfs.h>
18352 dummy = ioctl(0, PIOCSET, &dummy);
18358 rm -f conftest.
$ac_objext
18359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18360 (eval $ac_compile) 2>conftest.er1
18362 grep -v '^ *+' conftest.er1
>conftest.err
18364 cat conftest.err
>&5
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); } &&
18367 { ac_try
='test -z "$ac_c_werror_flag"
18368 || test ! -s conftest.err'
18369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370 (eval $ac_try) 2>&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; } &&
18374 { ac_try
='test -s conftest.$ac_objext'
18375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18376 (eval $ac_try) 2>&5
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; }; then
18380 gdb_cv_have_procfs_piocset
=yes
18382 echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.
$ac_ext >&5
18385 gdb_cv_have_procfs_piocset
=no
18387 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18390 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18391 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18392 if test $gdb_cv_have_procfs_piocset = yes; then
18394 cat >>confdefs.h
<<\_ACEOF
18395 #define HAVE_PROCFS_PIOCSET 1
18401 if test ${host} = ${target} ; then
18403 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18404 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18405 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18406 echo $ECHO_N "(cached) $ECHO_C" >&6
18408 cat >conftest.
$ac_ext <<_ACEOF
18411 cat confdefs.h
>>conftest.
$ac_ext
18412 cat >>conftest.
$ac_ext <<_ACEOF
18413 /* end confdefs.h. */
18418 struct link_map lm; (void) lm.l_addr;
18423 rm -f conftest.
$ac_objext
18424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18425 (eval $ac_compile) 2>conftest.er1
18427 grep -v '^ *+' conftest.er1
>conftest.err
18429 cat conftest.err
>&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); } &&
18432 { ac_try
='test -z "$ac_c_werror_flag"
18433 || test ! -s conftest.err'
18434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435 (eval $ac_try) 2>&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; } &&
18439 { ac_try
='test -s conftest.$ac_objext'
18440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441 (eval $ac_try) 2>&5
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; }; then
18445 gdb_cv_have_struct_link_map_with_l_members
=yes
18447 echo "$as_me: failed program was:" >&5
18448 sed 's/^/| /' conftest.
$ac_ext >&5
18450 gdb_cv_have_struct_link_map_with_l_members
=no
18452 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18455 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18456 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18457 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18459 cat >>confdefs.h
<<\_ACEOF
18460 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18466 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18467 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18468 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18469 echo $ECHO_N "(cached) $ECHO_C" >&6
18471 cat >conftest.
$ac_ext <<_ACEOF
18474 cat confdefs.h
>>conftest.
$ac_ext
18475 cat >>conftest.
$ac_ext <<_ACEOF
18476 /* end confdefs.h. */
18477 #include <sys/types.h>
18482 struct link_map lm; (void) lm.lm_addr;
18487 rm -f conftest.
$ac_objext
18488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18489 (eval $ac_compile) 2>conftest.er1
18491 grep -v '^ *+' conftest.er1
>conftest.err
18493 cat conftest.err
>&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); } &&
18496 { ac_try
='test -z "$ac_c_werror_flag"
18497 || test ! -s conftest.err'
18498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18499 (eval $ac_try) 2>&5
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); }; } &&
18503 { ac_try
='test -s conftest.$ac_objext'
18504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18505 (eval $ac_try) 2>&5
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); }; }; then
18509 gdb_cv_have_struct_link_map_with_lm_members
=yes
18511 echo "$as_me: failed program was:" >&5
18512 sed 's/^/| /' conftest.
$ac_ext >&5
18514 gdb_cv_have_struct_link_map_with_lm_members
=no
18516 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18519 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18520 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18521 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18523 cat >>confdefs.h
<<\_ACEOF
18524 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18530 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18531 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18532 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18533 echo $ECHO_N "(cached) $ECHO_C" >&6
18535 cat >conftest.
$ac_ext <<_ACEOF
18538 cat confdefs.h
>>conftest.
$ac_ext
18539 cat >>conftest.
$ac_ext <<_ACEOF
18540 /* end confdefs.h. */
18541 #include <sys/types.h>
18542 #ifdef HAVE_NLIST_H
18549 struct so_map lm; (void) lm.som_addr;
18554 rm -f conftest.
$ac_objext
18555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18556 (eval $ac_compile) 2>conftest.er1
18558 grep -v '^ *+' conftest.er1
>conftest.err
18560 cat conftest.err
>&5
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); } &&
18563 { ac_try
='test -z "$ac_c_werror_flag"
18564 || test ! -s conftest.err'
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); }; } &&
18570 { ac_try
='test -s conftest.$ac_objext'
18571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18572 (eval $ac_try) 2>&5
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); }; }; then
18576 gdb_cv_have_struct_so_map_with_som_members
=yes
18578 echo "$as_me: failed program was:" >&5
18579 sed 's/^/| /' conftest.
$ac_ext >&5
18581 gdb_cv_have_struct_so_map_with_som_members
=no
18583 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18586 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18587 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
18588 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
18590 cat >>confdefs.h
<<\_ACEOF
18591 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
18597 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18598 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18599 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18600 echo $ECHO_N "(cached) $ECHO_C" >&6
18602 cat >conftest.
$ac_ext <<_ACEOF
18605 cat confdefs.h
>>conftest.
$ac_ext
18606 cat >>conftest.
$ac_ext <<_ACEOF
18607 /* end confdefs.h. */
18609 #include <sys/link.h>
18613 struct link_map32 l;
18618 rm -f conftest.
$ac_objext
18619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18620 (eval $ac_compile) 2>conftest.er1
18622 grep -v '^ *+' conftest.er1
>conftest.err
18624 cat conftest.err
>&5
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } &&
18627 { ac_try
='test -z "$ac_c_werror_flag"
18628 || test ! -s conftest.err'
18629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18630 (eval $ac_try) 2>&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; } &&
18634 { ac_try
='test -s conftest.$ac_objext'
18635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18636 (eval $ac_try) 2>&5
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); }; }; then
18640 gdb_cv_have_struct_link_map32
=yes
18642 echo "$as_me: failed program was:" >&5
18643 sed 's/^/| /' conftest.
$ac_ext >&5
18645 gdb_cv_have_struct_link_map32
=no
18647 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18650 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18651 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
18652 if test $gdb_cv_have_struct_link_map32 = yes; then
18654 cat >>confdefs.h
<<\_ACEOF
18655 #define HAVE_STRUCT_LINK_MAP32 1
18659 cat >>confdefs.h
<<\_ACEOF
18660 #define _SYSCALL32 1
18666 # Check if the compiler supports the `long long' type.
18668 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18669 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18670 if test "${gdb_cv_c_long_long+set}" = set; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18673 cat >conftest.
$ac_ext <<_ACEOF
18676 cat confdefs.h
>>conftest.
$ac_ext
18677 cat >>conftest.
$ac_ext <<_ACEOF
18678 /* end confdefs.h. */
18679 extern long long foo;
18683 switch (foo & 2) { case 0: return 1; }
18688 rm -f conftest.
$ac_objext
18689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18690 (eval $ac_compile) 2>conftest.er1
18692 grep -v '^ *+' conftest.er1
>conftest.err
18694 cat conftest.err
>&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } &&
18697 { ac_try
='test -z "$ac_c_werror_flag"
18698 || test ! -s conftest.err'
18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700 (eval $ac_try) 2>&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; } &&
18704 { ac_try
='test -s conftest.$ac_objext'
18705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18706 (eval $ac_try) 2>&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); }; }; then
18710 gdb_cv_c_long_long
=yes
18712 echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.
$ac_ext >&5
18715 gdb_cv_c_long_long
=no
18717 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18719 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18720 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
18721 if test $gdb_cv_c_long_long = yes; then
18723 cat >>confdefs.h
<<\_ACEOF
18724 #define CC_HAS_LONG_LONG 1
18729 # Check if the compiler and runtime support printing long longs.
18731 echo "$as_me:$LINENO: checking for long long support in printf" >&5
18732 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18733 if test "${gdb_cv_printf_has_long_long+set}" = set; then
18734 echo $ECHO_N "(cached) $ECHO_C" >&6
18736 if test "$cross_compiling" = yes; then
18737 gdb_cv_printf_has_long_long
=no
18739 cat >conftest.
$ac_ext <<_ACEOF
18742 cat confdefs.h
>>conftest.
$ac_ext
18743 cat >>conftest.
$ac_ext <<_ACEOF
18744 /* end confdefs.h. */
18745 $ac_includes_default
18751 l = (l << 16) + 0x0123;
18752 l = (l << 16) + 0x4567;
18753 l = (l << 16) + 0x89ab;
18754 l = (l << 16) + 0xcdef;
18755 sprintf (buf, "0x%016llx", l);
18756 return (strcmp ("0x0123456789abcdef", buf));
18761 rm -f conftest
$ac_exeext
18762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18763 (eval $ac_link) 2>&5
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18768 (eval $ac_try) 2>&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); }; }; then
18772 gdb_cv_printf_has_long_long
=yes
18774 echo "$as_me: program exited with status $ac_status" >&5
18775 echo "$as_me: failed program was:" >&5
18776 sed 's/^/| /' conftest.
$ac_ext >&5
18778 ( exit $ac_status )
18779 gdb_cv_printf_has_long_long
=no
18781 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18784 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18785 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
18786 if test $gdb_cv_printf_has_long_long = yes; then
18788 cat >>confdefs.h
<<\_ACEOF
18789 #define PRINTF_HAS_LONG_LONG 1
18794 # Check if the compiler and runtime support printing decfloats.
18796 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
18797 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
18798 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
18799 echo $ECHO_N "(cached) $ECHO_C" >&6
18801 if test "$cross_compiling" = yes; then
18802 gdb_cv_printf_has_decfloat
=no
18804 cat >conftest.
$ac_ext <<_ACEOF
18807 cat confdefs.h
>>conftest.
$ac_ext
18808 cat >>conftest.
$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18810 $ac_includes_default
18815 _Decimal32 d32 = 1.2345df;
18816 _Decimal64 d64 = 1.2345dd;
18817 _Decimal128 d128 = 1.2345dl;
18818 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
18819 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
18824 rm -f conftest
$ac_exeext
18825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18826 (eval $ac_link) 2>&5
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18831 (eval $ac_try) 2>&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; }; then
18835 gdb_cv_printf_has_decfloat
=yes
18837 echo "$as_me: program exited with status $ac_status" >&5
18838 echo "$as_me: failed program was:" >&5
18839 sed 's/^/| /' conftest.
$ac_ext >&5
18841 ( exit $ac_status )
18842 gdb_cv_printf_has_decfloat
=no
18844 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18847 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
18848 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
18849 if test $gdb_cv_printf_has_decfloat = yes; then
18851 cat >>confdefs.h
<<\_ACEOF
18852 #define PRINTF_HAS_DECFLOAT 1
18857 # Check if the compiler supports the `long double' type. We can't use
18858 # AC_C_LONG_DOUBLE because that one does additional checks on the
18859 # constants defined in <float.h> that fail on some systems,
18860 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
18862 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
18863 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
18864 if test "${gdb_cv_c_long_double+set}" = set; then
18865 echo $ECHO_N "(cached) $ECHO_C" >&6
18867 cat >conftest.
$ac_ext <<_ACEOF
18870 cat confdefs.h
>>conftest.
$ac_ext
18871 cat >>conftest.
$ac_ext <<_ACEOF
18872 /* end confdefs.h. */
18875 rm -f conftest.
$ac_objext
18876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18877 (eval $ac_compile) 2>conftest.er1
18879 grep -v '^ *+' conftest.er1
>conftest.err
18881 cat conftest.err
>&5
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); } &&
18884 { ac_try
='test -z "$ac_c_werror_flag"
18885 || test ! -s conftest.err'
18886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887 (eval $ac_try) 2>&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; } &&
18891 { ac_try
='test -s conftest.$ac_objext'
18892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18893 (eval $ac_try) 2>&5
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); }; }; then
18897 gdb_cv_c_long_double
=yes
18899 echo "$as_me: failed program was:" >&5
18900 sed 's/^/| /' conftest.
$ac_ext >&5
18902 gdb_cv_c_long_double
=no
18904 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18906 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
18907 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
18908 if test $gdb_cv_c_long_double = yes; then
18910 cat >>confdefs.h
<<\_ACEOF
18911 #define HAVE_LONG_DOUBLE 1
18916 # Check if the compiler and runtime support printing long doubles.
18918 echo "$as_me:$LINENO: checking for long double support in printf" >&5
18919 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
18920 if test "${gdb_cv_printf_has_long_double+set}" = set; then
18921 echo $ECHO_N "(cached) $ECHO_C" >&6
18923 if test "$cross_compiling" = yes; then
18924 gdb_cv_printf_has_long_double
=no
18926 cat >conftest.
$ac_ext <<_ACEOF
18929 cat confdefs.h
>>conftest.
$ac_ext
18930 cat >>conftest.
$ac_ext <<_ACEOF
18931 /* end confdefs.h. */
18932 $ac_includes_default
18937 long double f = 3.141592653;
18938 sprintf (buf, "%Lg", f);
18939 return (strncmp ("3.14159", buf, 7));
18944 rm -f conftest
$ac_exeext
18945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18946 (eval $ac_link) 2>&5
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; }; then
18955 gdb_cv_printf_has_long_double
=yes
18957 echo "$as_me: program exited with status $ac_status" >&5
18958 echo "$as_me: failed program was:" >&5
18959 sed 's/^/| /' conftest.
$ac_ext >&5
18961 ( exit $ac_status )
18962 gdb_cv_printf_has_long_double
=no
18964 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18967 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
18968 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
18969 if test $gdb_cv_printf_has_long_double = yes; then
18971 cat >>confdefs.h
<<\_ACEOF
18972 #define PRINTF_HAS_LONG_DOUBLE 1
18977 # Check if the compiler and runtime support scanning long doubles.
18979 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
18980 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
18981 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
18982 echo $ECHO_N "(cached) $ECHO_C" >&6
18984 if test "$cross_compiling" = yes; then
18985 gdb_cv_scanf_has_long_double
=no
18987 cat >conftest.
$ac_ext <<_ACEOF
18990 cat confdefs.h
>>conftest.
$ac_ext
18991 cat >>conftest.
$ac_ext <<_ACEOF
18992 /* end confdefs.h. */
18997 char *buf = "3.141592653";
18999 sscanf (buf, "%Lg", &f);
19000 return !(f > 3.14159 && f < 3.14160);
19005 rm -f conftest
$ac_exeext
19006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19007 (eval $ac_link) 2>&5
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19012 (eval $ac_try) 2>&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); }; }; then
19016 gdb_cv_scanf_has_long_double
=yes
19018 echo "$as_me: program exited with status $ac_status" >&5
19019 echo "$as_me: failed program was:" >&5
19020 sed 's/^/| /' conftest.
$ac_ext >&5
19022 ( exit $ac_status )
19023 gdb_cv_scanf_has_long_double
=no
19025 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19028 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19029 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19030 if test $gdb_cv_scanf_has_long_double = yes; then
19032 cat >>confdefs.h
<<\_ACEOF
19033 #define SCANF_HAS_LONG_DOUBLE 1
19040 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19041 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19042 if test "${gdb_cv_bigtoc+set}" = set; then
19043 echo $ECHO_N "(cached) $ECHO_C" >&6
19046 SAVE_LDFLAGS
=$LDFLAGS
19049 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
19050 *) gdb_cv_bigtoc
=-bbigtoc ;;
19053 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
19054 cat >conftest.
$ac_ext <<_ACEOF
19057 cat confdefs.h
>>conftest.
$ac_ext
19058 cat >>conftest.
$ac_ext <<_ACEOF
19059 /* end confdefs.h. */
19069 rm -f conftest.
$ac_objext conftest
$ac_exeext
19070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19071 (eval $ac_link) 2>conftest.er1
19073 grep -v '^ *+' conftest.er1
>conftest.err
19075 cat conftest.err
>&5
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); } &&
19078 { ac_try
='test -z "$ac_c_werror_flag"
19079 || test ! -s conftest.err'
19080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19081 (eval $ac_try) 2>&5
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); }; } &&
19085 { ac_try
='test -s conftest$ac_exeext'
19086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; }; then
19093 echo "$as_me: failed program was:" >&5
19094 sed 's/^/| /' conftest.
$ac_ext >&5
19098 rm -f conftest.err conftest.
$ac_objext \
19099 conftest
$ac_exeext conftest.
$ac_ext
19100 LDFLAGS
="${SAVE_LDFLAGS}"
19103 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19104 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19105 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19111 if test ${build} = ${host} -a ${host} = ${target} ; then
19114 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19115 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19116 if test -f /usr
/include
/dce
/cma_config.h
; then
19117 if test "$GCC" = "yes" ; then
19118 echo "$as_me:$LINENO: result: yes" >&5
19119 echo "${ECHO_T}yes" >&6
19121 cat >>confdefs.h
<<\_ACEOF
19122 #define HAVE_HPUX_THREAD_SUPPORT 1
19125 CONFIG_OBS
="${CONFIG_OBS} hpux-thread.o"
19126 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
19128 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19129 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19132 echo "$as_me:$LINENO: result: no" >&5
19133 echo "${ECHO_T}no" >&6
19137 # See if thread_db library is around for Solaris thread debugging.
19138 # Note that we must explicitly test for version 1 of the library
19139 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19141 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19142 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19143 if test -f /usr
/lib
/libthread_db.so
.1 ; then
19144 echo "$as_me:$LINENO: result: yes" >&5
19145 echo "${ECHO_T}yes" >&6
19147 cat >>confdefs.h
<<\_ACEOF
19148 #define HAVE_THREAD_DB_LIB 1
19151 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
19152 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
19154 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19155 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19156 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19157 echo $ECHO_N "(cached) $ECHO_C" >&6
19159 ac_check_lib_save_LIBS
=$LIBS
19161 cat >conftest.
$ac_ext <<_ACEOF
19164 cat confdefs.h
>>conftest.
$ac_ext
19165 cat >>conftest.
$ac_ext <<_ACEOF
19166 /* end confdefs.h. */
19168 /* Override any gcc2 internal prototype to avoid an error. */
19172 /* We use char because int might match the return type of a gcc2
19173 builtin and then its argument prototype would still apply. */
19183 rm -f conftest.
$ac_objext conftest
$ac_exeext
19184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19185 (eval $ac_link) 2>conftest.er1
19187 grep -v '^ *+' conftest.er1
>conftest.err
19189 cat conftest.err
>&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); } &&
19192 { ac_try
='test -z "$ac_c_werror_flag"
19193 || test ! -s conftest.err'
19194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195 (eval $ac_try) 2>&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; } &&
19199 { ac_try
='test -s conftest$ac_exeext'
19200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201 (eval $ac_try) 2>&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; }; then
19205 ac_cv_lib_dl_dlopen
=yes
19207 echo "$as_me: failed program was:" >&5
19208 sed 's/^/| /' conftest.
$ac_ext >&5
19210 ac_cv_lib_dl_dlopen
=no
19212 rm -f conftest.err conftest.
$ac_objext \
19213 conftest
$ac_exeext conftest.
$ac_ext
19214 LIBS
=$ac_check_lib_save_LIBS
19216 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19217 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19218 if test $ac_cv_lib_dl_dlopen = yes; then
19219 cat >>confdefs.h
<<_ACEOF
19220 #define HAVE_LIBDL 1
19227 if test "$GCC" = "yes" ; then
19228 # The GNU linker requires the -export-dynamic option to make
19229 # all symbols visible in the dynamic symbol table.
19230 hold_ldflags
=$LDFLAGS
19231 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19232 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19233 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
19234 cat >conftest.
$ac_ext <<_ACEOF
19237 cat confdefs.h
>>conftest.
$ac_ext
19238 cat >>conftest.
$ac_ext <<_ACEOF
19239 /* end confdefs.h. */
19249 rm -f conftest.
$ac_objext conftest
$ac_exeext
19250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19251 (eval $ac_link) 2>conftest.er1
19253 grep -v '^ *+' conftest.er1
>conftest.err
19255 cat conftest.err
>&5
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); } &&
19258 { ac_try
='test -z "$ac_c_werror_flag"
19259 || test ! -s conftest.err'
19260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261 (eval $ac_try) 2>&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; } &&
19265 { ac_try
='test -s conftest$ac_exeext'
19266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267 (eval $ac_try) 2>&5
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; }; then
19273 echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.
$ac_ext >&5
19278 rm -f conftest.err conftest.
$ac_objext \
19279 conftest
$ac_exeext conftest.
$ac_ext
19280 LDFLAGS
=$hold_ldflags
19281 echo "$as_me:$LINENO: result: $found" >&5
19282 echo "${ECHO_T}$found" >&6
19283 if test $found = yes; then
19284 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19287 # Sun randomly tweaked the prototypes in <proc_service.h>
19289 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19290 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19291 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19292 echo $ECHO_N "(cached) $ECHO_C" >&6
19295 cat >conftest.
$ac_ext <<_ACEOF
19298 cat confdefs.h
>>conftest.
$ac_ext
19299 cat >>conftest.
$ac_ext <<_ACEOF
19300 /* end confdefs.h. */
19302 #include <proc_service.h>
19303 ps_err_e ps_pdwrite
19304 (struct ps_prochandle*, psaddr_t, const void*, size_t);
19314 rm -f conftest.
$ac_objext
19315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19316 (eval $ac_compile) 2>conftest.er1
19318 grep -v '^ *+' conftest.er1
>conftest.err
19320 cat conftest.err
>&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); } &&
19323 { ac_try
='test -z "$ac_c_werror_flag"
19324 || test ! -s conftest.err'
19325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19326 (eval $ac_try) 2>&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); }; } &&
19330 { ac_try
='test -s conftest.$ac_objext'
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; }; then
19336 gdb_cv_proc_service_is_old
=no
19338 echo "$as_me: failed program was:" >&5
19339 sed 's/^/| /' conftest.
$ac_ext >&5
19341 gdb_cv_proc_service_is_old
=yes
19343 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19347 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19348 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19349 if test $gdb_cv_proc_service_is_old = yes; then
19351 cat >>confdefs.h
<<\_ACEOF
19352 #define PROC_SERVICE_IS_OLD 1
19357 echo "$as_me:$LINENO: result: no" >&5
19358 echo "${ECHO_T}no" >&6
19362 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19363 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19364 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19365 echo $ECHO_N "(cached) $ECHO_C" >&6
19367 cat >conftest.
$ac_ext <<_ACEOF
19370 cat confdefs.h
>>conftest.
$ac_ext
19371 cat >>conftest.
$ac_ext <<_ACEOF
19372 /* end confdefs.h. */
19373 #include <sys/pthdebug.h>
19377 #ifndef PTHDB_VERSION_3
19384 rm -f conftest.
$ac_objext
19385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19386 (eval $ac_compile) 2>conftest.er1
19388 grep -v '^ *+' conftest.er1
>conftest.err
19390 cat conftest.err
>&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); } &&
19393 { ac_try
='test -z "$ac_c_werror_flag"
19394 || test ! -s conftest.err'
19395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19396 (eval $ac_try) 2>&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); }; } &&
19400 { ac_try
='test -s conftest.$ac_objext'
19401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402 (eval $ac_try) 2>&5
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; }; then
19406 gdb_cv_have_aix_thread_debug
=yes
19408 echo "$as_me: failed program was:" >&5
19409 sed 's/^/| /' conftest.
$ac_ext >&5
19411 gdb_cv_have_aix_thread_debug
=no
19413 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19416 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19417 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19418 if test $gdb_cv_have_aix_thread_debug = yes; then
19419 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
19420 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
19421 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
19428 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19429 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19430 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19431 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19432 echo $ECHO_N "(cached) $ECHO_C" >&6
19434 cat >conftest.
$ac_ext <<_ACEOF
19437 cat confdefs.h
>>conftest.
$ac_ext
19438 cat >>conftest.
$ac_ext <<_ACEOF
19439 /* end confdefs.h. */
19440 #include <thread_db.h>
19444 int i = TD_NOTALLOC;
19449 rm -f conftest.
$ac_objext
19450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19451 (eval $ac_compile) 2>conftest.er1
19453 grep -v '^ *+' conftest.er1
>conftest.err
19455 cat conftest.err
>&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } &&
19458 { ac_try
='test -z "$ac_c_werror_flag"
19459 || test ! -s conftest.err'
19460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19461 (eval $ac_try) 2>&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); }; } &&
19465 { ac_try
='test -s conftest.$ac_objext'
19466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19467 (eval $ac_try) 2>&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); }; }; then
19471 gdb_cv_thread_db_h_has_td_notalloc
=yes
19473 echo "$as_me: failed program was:" >&5
19474 sed 's/^/| /' conftest.
$ac_ext >&5
19476 gdb_cv_thread_db_h_has_td_notalloc
=no
19479 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19482 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19483 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19484 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
19485 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
19486 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
19489 cat >conftest.
$ac_ext <<_ACEOF
19492 cat confdefs.h
>>conftest.
$ac_ext
19493 cat >>conftest.
$ac_ext <<_ACEOF
19494 /* end confdefs.h. */
19495 #include <thread_db.h>
19499 int i = TD_VERSION;
19504 rm -f conftest.
$ac_objext
19505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19506 (eval $ac_compile) 2>conftest.er1
19508 grep -v '^ *+' conftest.er1
>conftest.err
19510 cat conftest.err
>&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } &&
19513 { ac_try
='test -z "$ac_c_werror_flag"
19514 || test ! -s conftest.err'
19515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516 (eval $ac_try) 2>&5
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; } &&
19520 { ac_try
='test -s conftest.$ac_objext'
19521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522 (eval $ac_try) 2>&5
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; }; then
19526 gdb_cv_thread_db_h_has_td_version
=yes
19528 echo "$as_me: failed program was:" >&5
19529 sed 's/^/| /' conftest.
$ac_ext >&5
19531 gdb_cv_thread_db_h_has_td_version
=no
19534 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19537 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
19538 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
19539 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
19540 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
19541 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
19542 echo $ECHO_N "(cached) $ECHO_C" >&6
19544 cat >conftest.
$ac_ext <<_ACEOF
19547 cat confdefs.h
>>conftest.
$ac_ext
19548 cat >>conftest.
$ac_ext <<_ACEOF
19549 /* end confdefs.h. */
19550 #include <thread_db.h>
19559 rm -f conftest.
$ac_objext
19560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19561 (eval $ac_compile) 2>conftest.er1
19563 grep -v '^ *+' conftest.er1
>conftest.err
19565 cat conftest.err
>&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); } &&
19568 { ac_try
='test -z "$ac_c_werror_flag"
19569 || test ! -s conftest.err'
19570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571 (eval $ac_try) 2>&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; } &&
19575 { ac_try
='test -s conftest.$ac_objext'
19576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577 (eval $ac_try) 2>&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); }; }; then
19581 gdb_cv_thread_db_h_has_td_notls
=yes
19583 echo "$as_me: failed program was:" >&5
19584 sed 's/^/| /' conftest.
$ac_ext >&5
19586 gdb_cv_thread_db_h_has_td_notls
=no
19589 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19592 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
19593 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
19595 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19597 cat >>confdefs.h
<<\_ACEOF
19598 #define THREAD_DB_HAS_TD_NOTALLOC 1
19602 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
19604 cat >>confdefs.h
<<\_ACEOF
19605 #define THREAD_DB_HAS_TD_VERSION 1
19609 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
19611 cat >>confdefs.h
<<\_ACEOF
19612 #define THREAD_DB_HAS_TD_NOTLS 1
19617 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19618 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19619 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19620 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
19623 cat >conftest.
$ac_ext <<_ACEOF
19626 cat confdefs.h
>>conftest.
$ac_ext
19627 cat >>conftest.
$ac_ext <<_ACEOF
19628 /* end confdefs.h. */
19629 #include <sys/syscall.h>
19633 int i = __NR_tkill;
19638 rm -f conftest.
$ac_objext
19639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19640 (eval $ac_compile) 2>conftest.er1
19642 grep -v '^ *+' conftest.er1
>conftest.err
19644 cat conftest.err
>&5
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); } &&
19647 { ac_try
='test -z "$ac_c_werror_flag"
19648 || test ! -s conftest.err'
19649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650 (eval $ac_try) 2>&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; } &&
19654 { ac_try
='test -s conftest.$ac_objext'
19655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19656 (eval $ac_try) 2>&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; }; then
19660 gdb_cv_sys_syscall_h_has_tkill
=yes
19662 echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.
$ac_ext >&5
19665 gdb_cv_sys_syscall_h_has_tkill
=no
19668 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19671 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19672 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19674 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19676 cat >>confdefs.h
<<\_ACEOF
19677 #define HAVE_TKILL_SYSCALL 1
19682 echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
19683 echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
19684 if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
19687 cat >conftest.
$ac_ext <<_ACEOF
19690 cat confdefs.h
>>conftest.
$ac_ext
19691 cat >>conftest.
$ac_ext <<_ACEOF
19692 /* end confdefs.h. */
19693 #include <sys/personality.h>
19698 #ifndef ADDR_NO_RANDOMIZE
19699 char *p = (char *) ADDR_NO_RANDOMIZE;
19706 rm -f conftest.
$ac_objext
19707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19708 (eval $ac_compile) 2>conftest.er1
19710 grep -v '^ *+' conftest.er1
>conftest.err
19712 cat conftest.err
>&5
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); } &&
19715 { ac_try
='test -z "$ac_c_werror_flag"
19716 || test ! -s conftest.err'
19717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19718 (eval $ac_try) 2>&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); }; } &&
19722 { ac_try
='test -s conftest.$ac_objext'
19723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19724 (eval $ac_try) 2>&5
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; }; then
19728 ac_cv_have_decl_ADDR_NO_RANDOMIZE
=yes
19730 echo "$as_me: failed program was:" >&5
19731 sed 's/^/| /' conftest.
$ac_ext >&5
19733 ac_cv_have_decl_ADDR_NO_RANDOMIZE
=no
19735 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19737 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
19738 echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
19739 if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
19741 cat >>confdefs.h
<<_ACEOF
19742 #define HAVE_DECL_ADDR_NO_RANDOMIZE 1
19747 cat >>confdefs.h
<<_ACEOF
19748 #define HAVE_DECL_ADDR_NO_RANDOMIZE 0
19756 if test "$cross_compiling" = yes; then
19757 cat >conftest.
$ac_ext <<_ACEOF
19760 cat confdefs.h
>>conftest.
$ac_ext
19761 cat >>conftest.
$ac_ext <<_ACEOF
19762 /* end confdefs.h. */
19763 #include <sys/personality.h>
19768 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
19769 # define ADDR_NO_RANDOMIZE 0x0040000
19771 /* Test the flag could be set and stays set. */
19772 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19773 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19779 rm -f conftest.
$ac_objext conftest
$ac_exeext
19780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19781 (eval $ac_link) 2>conftest.er1
19783 grep -v '^ *+' conftest.er1
>conftest.err
19785 cat conftest.err
>&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); } &&
19788 { ac_try
='test -z "$ac_c_werror_flag"
19789 || test ! -s conftest.err'
19790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19791 (eval $ac_try) 2>&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); }; } &&
19795 { ac_try
='test -s conftest$ac_exeext'
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; }; then
19801 have_personality
=true
19803 echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.
$ac_ext >&5
19806 have_personality
=false
19808 rm -f conftest.err conftest.
$ac_objext \
19809 conftest
$ac_exeext conftest.
$ac_ext
19811 cat >conftest.
$ac_ext <<_ACEOF
19814 cat confdefs.h
>>conftest.
$ac_ext
19815 cat >>conftest.
$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19817 #include <sys/personality.h>
19822 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
19823 # define ADDR_NO_RANDOMIZE 0x0040000
19825 /* Test the flag could be set and stays set. */
19826 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19827 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19833 rm -f conftest
$ac_exeext
19834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19835 (eval $ac_link) 2>&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19840 (eval $ac_try) 2>&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; }; then
19844 have_personality
=true
19846 echo "$as_me: program exited with status $ac_status" >&5
19847 echo "$as_me: failed program was:" >&5
19848 sed 's/^/| /' conftest.
$ac_ext >&5
19850 ( exit $ac_status )
19851 have_personality
=false
19853 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19855 if $have_personality
19858 cat >>confdefs.h
<<\_ACEOF
19859 #define HAVE_PERSONALITY 1
19866 # Check whether --with-sysroot or --without-sysroot was given.
19867 if test "${with_sysroot+set}" = set; then
19868 withval
="$with_sysroot"
19870 case ${with_sysroot} in
19871 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
19872 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
19875 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19877 if test "x$prefix" = xNONE
; then
19878 test_prefix
=/usr
/local
19880 test_prefix
=$prefix
19882 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
19883 test_exec_prefix
=$test_prefix
19885 test_exec_prefix
=$exec_prefix
19887 case ${TARGET_SYSTEM_ROOT} in
19888 "${test_prefix}"|
"${test_prefix}/"*|\
19889 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
19890 '${prefix}'|
'${prefix}/'*|\
19891 '${exec_prefix}'|
'${exec_prefix}/'*)
19892 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19893 TARGET_SYSTEM_ROOT_DEFINE
="$t"
19899 TARGET_SYSTEM_ROOT
=
19900 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
19908 # Check whether --with-system-gdbinit or --without-system-gdbinit was given.
19909 if test "${with_system_gdbinit+set}" = set; then
19910 withval
="$with_system_gdbinit"
19911 system_gdbinit
=${withval}
19915 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
19916 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19917 ac_define_dir
=`eval echo $system_gdbinit`
19918 ac_define_dir
=`eval echo $ac_define_dir`
19920 cat >>confdefs.h
<<_ACEOF
19921 #define SYSTEM_GDBINIT "$ac_define_dir"
19926 if test "x$prefix" = xNONE
; then
19927 test_prefix
=$ac_default_prefix
19929 test_prefix
=$prefix
19931 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
19932 test_exec_prefix
=$test_prefix
19934 test_exec_prefix
=$exec_prefix
19936 case ${system_gdbinit} in
19937 "${test_prefix}"|
"${test_prefix}/"*|\
19938 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
19939 '${prefix}'|
'${prefix}/'*|\
19940 '${exec_prefix}'|
'${exec_prefix}/'*)
19942 cat >>confdefs.h
<<\_ACEOF
19943 #define SYSTEM_GDBINIT_RELOCATABLE 1
19949 # Check whether --enable-werror or --disable-werror was given.
19950 if test "${enable_werror+set}" = set; then
19951 enableval
="$enable_werror"
19952 case "${enableval}" in
19953 yes | y
) ERROR_ON_WARNING
="yes" ;;
19954 no | n
) ERROR_ON_WARNING
="no" ;;
19955 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
19956 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
19957 { (exit 1); exit 1; }; } ;;
19961 # Enable -Werror by default when using gcc
19962 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
19963 ERROR_ON_WARNING
=yes
19967 if test "${ERROR_ON_WARNING}" = yes ; then
19968 WERROR_CFLAGS
="-Werror"
19971 # The entries after -Wno-pointer-sign are disabled warnings which may
19972 # be enabled in the future, which can not currently be used to build
19974 # NOTE: If you change this list, remember to update
19975 # gdb/doc/gdbint.texinfo.
19976 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
19977 -Wformat-nonliteral -Wno-pointer-sign \
19978 -Wno-unused -Wno-switch -Wno-char-subscripts"
19980 # Enable -Wno-format by default when using gcc on mingw since many
19981 # GCC versions complain about %I64.
19983 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
19986 # Check whether --enable-build-warnings or --disable-build-warnings was given.
19987 if test "${enable_build_warnings+set}" = set; then
19988 enableval
="$enable_build_warnings"
19989 case "${enableval}" in
19991 no
) build_warnings
="-w";;
19992 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
19993 build_warnings
="${build_warnings} ${t}";;
19994 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
19995 build_warnings
="${t} ${build_warnings}";;
19996 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19998 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
19999 echo "Setting compiler warning flags = $build_warnings" 6>&1
20001 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
20002 if test "${enable_gdb_build_warnings+set}" = set; then
20003 enableval
="$enable_gdb_build_warnings"
20004 case "${enableval}" in
20006 no
) build_warnings
="-w";;
20007 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
20008 build_warnings
="${build_warnings} ${t}";;
20009 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
20010 build_warnings
="${t} ${build_warnings}";;
20011 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20013 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
20014 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
20017 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
20019 echo "$as_me:$LINENO: checking compiler warning flags" >&5
20020 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
20021 # Separate out the -Werror flag as some files just cannot be
20022 # compiled with it enabled.
20023 for w
in ${build_warnings}; do
20025 -Werr*) WERROR_CFLAGS
=-Werror ;;
20026 *) # Check that GCC accepts it
20027 saved_CFLAGS
="$CFLAGS"
20028 CFLAGS
="$CFLAGS $w"
20029 cat >conftest.
$ac_ext <<_ACEOF
20032 cat confdefs.h
>>conftest.
$ac_ext
20033 cat >>conftest.
$ac_ext <<_ACEOF
20034 /* end confdefs.h. */
20044 rm -f conftest.
$ac_objext
20045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20046 (eval $ac_compile) 2>conftest.er1
20048 grep -v '^ *+' conftest.er1
>conftest.err
20050 cat conftest.err
>&5
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); } &&
20053 { ac_try
='test -z "$ac_c_werror_flag"
20054 || test ! -s conftest.err'
20055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20056 (eval $ac_try) 2>&5
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); }; } &&
20060 { ac_try
='test -s conftest.$ac_objext'
20061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062 (eval $ac_try) 2>&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; }; then
20066 WARN_CFLAGS
="${WARN_CFLAGS} $w"
20068 echo "$as_me: failed program was:" >&5
20069 sed 's/^/| /' conftest.
$ac_ext >&5
20072 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20073 CFLAGS
="$saved_CFLAGS"
20076 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
20077 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
20082 # In the Cygwin environment, we need some additional flags.
20083 echo "$as_me:$LINENO: checking for cygwin" >&5
20084 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20085 if test "${gdb_cv_os_cygwin+set}" = set; then
20086 echo $ECHO_N "(cached) $ECHO_C" >&6
20088 cat >conftest.
$ac_ext <<_ACEOF
20091 cat confdefs.h
>>conftest.
$ac_ext
20092 cat >>conftest.
$ac_ext <<_ACEOF
20093 /* end confdefs.h. */
20095 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
20099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20100 $EGREP "lose" >/dev
/null
2>&1; then
20101 gdb_cv_os_cygwin
=yes
20103 gdb_cv_os_cygwin
=no
20108 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20109 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
20112 SER_HARDWIRE
="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
20114 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
20115 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
20116 *mingw32
*) SER_HARDWIRE
="ser-base.o ser-tcp.o ser-mingw.o" ;;
20120 # libreadline needs libuser32.a in a cygwin environment
20122 if test x
$gdb_cv_os_cygwin = xyes
; then
20123 WIN32LIBS
="-luser32"
20124 case "${target}" in
20125 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
20130 # The ser-tcp.c module requires sockets.
20134 cat >>confdefs.h
<<\_ACEOF
20135 #define USE_WIN32API 1
20138 WIN32LIBS
="$WIN32LIBS -lws2_32"
20143 # Add ELF support to GDB, but only if BFD includes ELF support.
20145 OLD_LDFLAGS
=$LDFLAGS
20147 CFLAGS
="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
20148 LDFLAGS
="$LDFLAGS -L../bfd -L../libiberty"
20149 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
20150 LIBS
="-lbfd -liberty $intl $LIBS"
20151 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
20152 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
20153 if test "${gdb_cv_var_elf+set}" = set; then
20154 echo $ECHO_N "(cached) $ECHO_C" >&6
20156 cat >conftest.
$ac_ext <<_ACEOF
20159 cat confdefs.h
>>conftest.
$ac_ext
20160 cat >>conftest.
$ac_ext <<_ACEOF
20161 /* end confdefs.h. */
20162 #include <stdlib.h>
20164 #include "elf-bfd.h"
20169 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
20174 rm -f conftest.
$ac_objext conftest
$ac_exeext
20175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20176 (eval $ac_link) 2>conftest.er1
20178 grep -v '^ *+' conftest.er1
>conftest.err
20180 cat conftest.err
>&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); } &&
20183 { ac_try
='test -z "$ac_c_werror_flag"
20184 || test ! -s conftest.err'
20185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186 (eval $ac_try) 2>&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); }; } &&
20190 { ac_try
='test -s conftest$ac_exeext'
20191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20192 (eval $ac_try) 2>&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); }; }; then
20198 echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.
$ac_ext >&5
20203 rm -f conftest.err conftest.
$ac_objext \
20204 conftest
$ac_exeext conftest.
$ac_ext
20206 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
20207 echo "${ECHO_T}$gdb_cv_var_elf" >&6
20208 if test $gdb_cv_var_elf = yes; then
20209 CONFIG_OBS
="$CONFIG_OBS elfread.o"
20211 cat >>confdefs.h
<<\_ACEOF
20217 LDFLAGS
=$OLD_LDFLAGS
20220 # Add any host-specific objects to GDB.
20221 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
20223 LIBGUI
="../libgui/src/libgui.a"
20224 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
20233 *-*-cygwin* |
*-*-mingw* )
20242 if test "${enable_gdbtk}" = "yes"; then
20244 # Gdbtk must have an absolute path to srcdir in order to run
20245 # properly when not installed.
20248 GDBTK_SRC_DIR
=`pwd`
20253 # Ok, lets find the tcl configuration
20254 # First, look for one uninstalled.
20255 # the alternative search directory is invoked by --with-tcl
20258 if test x
"${no_tcl}" = x
; then
20259 # we reset no_tcl in case something fails here
20262 # Check whether --with-tcl or --without-tcl was given.
20263 if test "${with_tcl+set}" = set; then
20264 withval
="$with_tcl"
20265 with_tclconfig
=${withval}
20267 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20268 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20269 if test "${ac_cv_c_tclconfig+set}" = set; then
20270 echo $ECHO_N "(cached) $ECHO_C" >&6
20274 # First check to see if --with-tcl was specified.
20276 *-*-cygwin*) platDir
="win" ;;
20277 *) platDir
="unix" ;;
20279 if test x
"${with_tclconfig}" != x
; then
20280 if test -f "${with_tclconfig}/tclConfig.sh" ; then
20281 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
20283 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20284 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20285 { (exit 1); exit 1; }; }
20289 # then check for a private Tcl installation
20290 if test x
"${ac_cv_c_tclconfig}" = x
; then
20293 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20294 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
20295 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
20297 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20298 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
20299 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
20301 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20302 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
20303 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
20304 if test -f "$i/$platDir/tclConfig.sh" ; then
20305 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
20311 # on Darwin, check in Framework installation locations
20312 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
20313 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
20314 `ls -d /Library/Frameworks 2>/dev/null` \
20315 `ls -d /Network/Library/Frameworks 2>/dev/null` \
20316 `ls -d /System/Library/Frameworks 2>/dev/null` \
20318 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
20319 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
20325 # check in a few common install locations
20326 if test x
"${ac_cv_c_tclconfig}" = x
; then
20327 for i
in `ls -d ${libdir} 2>/dev/null` \
20328 `ls -d ${exec_prefix}/lib 2>/dev/null` \
20329 `ls -d ${prefix}/lib 2>/dev/null` \
20330 `ls -d /usr/local/lib 2>/dev/null` \
20331 `ls -d /usr/contrib/lib 2>/dev/null` \
20332 `ls -d /usr/lib 2>/dev/null` \
20334 if test -f "$i/tclConfig.sh" ; then
20335 ac_cv_c_tclconfig
=`(cd $i; pwd)`
20341 # check in a few other private locations
20342 if test x
"${ac_cv_c_tclconfig}" = x
; then
20345 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20346 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
20347 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
20348 if test -f "$i/$platDir/tclConfig.sh" ; then
20349 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
20358 if test x
"${ac_cv_c_tclconfig}" = x
; then
20359 TCL_BIN_DIR
="# no Tcl configs found"
20360 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20361 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
20364 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
20365 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
20366 echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
20371 # If $no_tk is nonempty, then we can't do Tk, and there is no
20372 # point to doing Tcl.
20375 # Ok, lets find the tk configuration
20376 # First, look for one uninstalled.
20377 # the alternative search directory is invoked by --with-tk
20380 if test x
"${no_tk}" = x
; then
20381 # we reset no_tk in case something fails here
20384 # Check whether --with-tk or --without-tk was given.
20385 if test "${with_tk+set}" = set; then
20387 with_tkconfig
=${withval}
20389 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20390 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20391 if test "${ac_cv_c_tkconfig+set}" = set; then
20392 echo $ECHO_N "(cached) $ECHO_C" >&6
20396 # First check to see if --with-tkconfig was specified.
20397 if test x
"${with_tkconfig}" != x
; then
20398 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20399 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
20401 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20402 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20403 { (exit 1); exit 1; }; }
20407 # then check for a private Tk library
20409 *-*-cygwin*) platDir
="win" ;;
20410 *) platDir
="unix" ;;
20412 if test x
"${ac_cv_c_tkconfig}" = x
; then
20415 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20416 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
20417 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
20419 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20420 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
20421 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
20423 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20424 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
20425 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
20426 if test -f "$i/$platDir/tkConfig.sh" ; then
20427 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
20433 # on Darwin, check in Framework installation locations
20434 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
20435 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
20436 `ls -d /Library/Frameworks 2>/dev/null` \
20437 `ls -d /Network/Library/Frameworks 2>/dev/null` \
20438 `ls -d /System/Library/Frameworks 2>/dev/null` \
20440 if test -f "$i/Tk.framework/tkConfig.sh" ; then
20441 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
20447 # check in a few common install locations
20448 if test x
"${ac_cv_c_tkconfig}" = x
; then
20449 for i
in `ls -d ${libdir} 2>/dev/null` \
20450 `ls -d ${exec_prefix}/lib 2>/dev/null` \
20451 `ls -d ${prefix}/lib 2>/dev/null` \
20452 `ls -d /usr/local/lib 2>/dev/null` \
20453 `ls -d /usr/contrib/lib 2>/dev/null` \
20454 `ls -d /usr/lib 2>/dev/null` \
20456 if test -f "$i/tkConfig.sh" ; then
20457 ac_cv_c_tkconfig
=`(cd $i; pwd)`
20462 # check in a few other private locations
20463 if test x
"${ac_cv_c_tkconfig}" = x
; then
20466 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20467 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
20468 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
20469 if test -f "$i/$platDir/tkConfig.sh" ; then
20470 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
20479 if test x
"${ac_cv_c_tkconfig}" = x
; then
20480 TK_BIN_DIR
="# no Tk configs found"
20481 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20482 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20485 TK_BIN_DIR
=${ac_cv_c_tkconfig}
20486 echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
20487 echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
20492 if test -z "${no_tcl}" -a -z "${no_tk}"; then
20494 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
20495 echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
20497 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
20498 echo "$as_me:$LINENO: result: loading" >&5
20499 echo "${ECHO_T}loading" >&6
20500 .
${TCL_BIN_DIR}/tclConfig.sh
20502 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
20503 echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
20506 # eval is required to do the TCL_DBGX substitution
20507 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
20508 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
20510 # If the TCL_BIN_DIR is the build directory (not the install directory),
20511 # then set the common variable name to the value of the build variables.
20512 # For example, the variable TCL_LIB_SPEC will be set to the value
20513 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
20514 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
20515 # installed and uninstalled version of Tcl.
20516 if test -f "${TCL_BIN_DIR}/Makefile" ; then
20517 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
20518 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
20519 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
20520 elif test "`uname -s`" = "Darwin"; then
20521 # If Tcl was built as a framework, attempt to use the libraries
20522 # from the framework at the given location so that linking works
20523 # against Tcl.framework installed in an arbitary location.
20524 case ${TCL_DEFS} in
20526 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
20527 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
20528 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
20529 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
20530 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
20535 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
20536 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
20537 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
20543 # eval is required to do the TCL_DBGX substitution
20544 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
20545 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
20546 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
20547 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
20563 # Check for in-tree tcl
20570 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
20574 # Find Tcl private headers
20575 if test x
"${intree}" = xno
; then
20577 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
20578 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
20580 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
20581 if test -f ${dir}/tclInt.h
; then
20585 if test x
"${private_dir}" = x
; then
20586 { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
20587 echo "$as_me: error: could not find private Tcl headers" >&2;}
20588 { (exit 1); exit 1; }; }
20590 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
20591 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20592 echo "${ECHO_T}${private_dir}" >&6
20595 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
20596 TCL_LIBRARY
="${TCL_LIB_SPEC}"
20599 # If building tcl in the same src tree, private headers
20600 # are not needed, but we need to be sure to use the right
20602 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
20603 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
20604 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
20611 echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
20612 echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
20614 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
20615 echo "$as_me:$LINENO: result: loading" >&5
20616 echo "${ECHO_T}loading" >&6
20617 .
${TK_BIN_DIR}/tkConfig.sh
20619 echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
20620 echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
20623 # eval is required to do the TK_DBGX substitution
20624 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
20625 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
20627 # If the TK_BIN_DIR is the build directory (not the install directory),
20628 # then set the common variable name to the value of the build variables.
20629 # For example, the variable TK_LIB_SPEC will be set to the value
20630 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
20631 # instead of TK_BUILD_LIB_SPEC since it will work with both an
20632 # installed and uninstalled version of Tcl.
20633 if test -f "${TK_BIN_DIR}/Makefile" ; then
20634 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
20635 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
20636 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
20637 elif test "`uname -s`" = "Darwin"; then
20638 # If Tk was built as a framework, attempt to use the libraries
20639 # from the framework at the given location so that linking works
20640 # against Tk.framework installed in an arbitary location.
20643 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
20644 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
20645 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
20646 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
20647 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
20652 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
20653 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
20654 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
20660 # eval is required to do the TK_DBGX substitution
20661 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
20662 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
20663 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
20664 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
20679 # Check for in-tree Tk
20681 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
20685 # Find Tk private headers
20686 if test x
"${intree}" = xno
; then
20688 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20689 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20691 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
20692 if test -f ${dir}/tkInt.h
; then
20696 if test x
"${private_dir}" = x
; then
20697 { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
20698 echo "$as_me: error: could not find Tk private headers" >&2;}
20699 { (exit 1); exit 1; }; }
20701 TK_PRIVATE_INCLUDE
="-I${private_dir}"
20702 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20703 echo "${ECHO_T}${private_dir}" >&6
20706 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
20707 TK_LIBRARY
=${TK_LIB_SPEC}
20710 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
20711 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
20712 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
20719 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
20721 # Include some libraries that Tcl and Tk want.
20722 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
20723 # Yes, the ordering seems wrong here. But it isn't.
20724 # TK_LIBS is the list of libraries that need to be linked
20725 # after Tcl/Tk. Note that this isn't put into LIBS. If it
20726 # were in LIBS then any link tests after this point would
20727 # try to include things like `$(LIBGUI)', which wouldn't work.
20728 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
20730 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20731 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20732 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
20733 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
20734 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
20735 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
20736 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
20738 if test x
$gdb_cv_os_cygwin = xyes
; then
20739 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20740 WIN32LDAPP
="-Wl,--subsystem,console"
20741 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
20746 subdirs
="$subdirs gdbtk"
20758 echo "$as_me:$LINENO: checking for X" >&5
20759 echo $ECHO_N "checking for X... $ECHO_C" >&6
20762 # Check whether --with-x or --without-x was given.
20763 if test "${with_x+set}" = set; then
20767 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20768 if test "x$with_x" = xno
; then
20769 # The user explicitly disabled X.
20772 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
20773 # Both variables are already set.
20776 if test "${ac_cv_have_x+set}" = set; then
20777 echo $ECHO_N "(cached) $ECHO_C" >&6
20779 # One or both of the vars are not set, and there is no cached value.
20780 ac_x_includes
=no ac_x_libraries
=no
20781 rm -fr conftest.dir
20782 if mkdir conftest.dir
; then
20784 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20785 cat >Imakefile
<<'_ACEOF'
20787 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20789 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
20790 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20791 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20792 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20793 for ac_extension
in a so sl
; do
20794 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
20795 test -f $ac_im_libdir/libX11.
$ac_extension; then
20796 ac_im_usrlibdir
=$ac_im_libdir; break
20799 # Screen out bogus values from the imake configuration. They are
20800 # bogus both because they are the default anyway, and because
20801 # using them would break gcc on systems where it needs fixed includes.
20802 case $ac_im_incroot in
20804 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
20806 case $ac_im_usrlibdir in
20807 /usr
/lib |
/lib
) ;;
20808 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
20812 rm -fr conftest.dir
20815 # Standard set of common directories for X headers.
20816 # Check X11 before X11Rn because it is often a symlink to the current release.
20828 /usr/local/X11/include
20829 /usr/local/X11R6/include
20830 /usr/local/X11R5/include
20831 /usr/local/X11R4/include
20833 /usr/local/include/X11
20834 /usr/local/include/X11R6
20835 /usr/local/include/X11R5
20836 /usr/local/include/X11R4
20840 /usr/XFree86/include/X11
20844 /usr/unsupported/include
20845 /usr/athena/include
20846 /usr/local/x11r5/include
20847 /usr/lpp/Xamples/include
20849 /usr/openwin/include
20850 /usr/openwin/share/include'
20852 if test "$ac_x_includes" = no
; then
20853 # Guess where to find include files, by looking for Intrinsic.h.
20854 # First, try using that file with no special directory specified.
20855 cat >conftest.
$ac_ext <<_ACEOF
20858 cat confdefs.h
>>conftest.
$ac_ext
20859 cat >>conftest.
$ac_ext <<_ACEOF
20860 /* end confdefs.h. */
20861 #include <X11/Intrinsic.h>
20863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20864 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20866 grep -v '^ *+' conftest.er1
>conftest.err
20868 cat conftest.err
>&5
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); } >/dev
/null
; then
20871 if test -s conftest.err
; then
20872 ac_cpp_err
=$ac_c_preproc_warn_flag
20873 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20880 if test -z "$ac_cpp_err"; then
20881 # We can compile using X headers with no special include directory.
20884 echo "$as_me: failed program was:" >&5
20885 sed 's/^/| /' conftest.
$ac_ext >&5
20887 for ac_dir
in $ac_x_header_dirs; do
20888 if test -r "$ac_dir/X11/Intrinsic.h"; then
20889 ac_x_includes
=$ac_dir
20894 rm -f conftest.err conftest.
$ac_ext
20895 fi # $ac_x_includes = no
20897 if test "$ac_x_libraries" = no
; then
20898 # Check for the libraries.
20899 # See if we find them without any special options.
20900 # Don't add to $LIBS permanently.
20903 cat >conftest.
$ac_ext <<_ACEOF
20906 cat confdefs.h
>>conftest.
$ac_ext
20907 cat >>conftest.
$ac_ext <<_ACEOF
20908 /* end confdefs.h. */
20909 #include <X11/Intrinsic.h>
20918 rm -f conftest.
$ac_objext conftest
$ac_exeext
20919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20920 (eval $ac_link) 2>conftest.er1
20922 grep -v '^ *+' conftest.er1
>conftest.err
20924 cat conftest.err
>&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); } &&
20927 { ac_try
='test -z "$ac_c_werror_flag"
20928 || test ! -s conftest.err'
20929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930 (eval $ac_try) 2>&5
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); }; } &&
20934 { ac_try
='test -s conftest$ac_exeext'
20935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936 (eval $ac_try) 2>&5
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); }; }; then
20941 # We can link X programs with no special library path.
20944 echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.
$ac_ext >&5
20948 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20950 # Don't even attempt the hair of trying to link an X program!
20951 for ac_extension
in a so sl
; do
20952 if test -r $ac_dir/libXt.
$ac_extension; then
20953 ac_x_libraries
=$ac_dir
20959 rm -f conftest.err conftest.
$ac_objext \
20960 conftest
$ac_exeext conftest.
$ac_ext
20961 fi # $ac_x_libraries = no
20963 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
20964 # Didn't find X anywhere. Cache the known absence of X.
20965 ac_cv_have_x
="have_x=no"
20967 # Record where we found X for the cache.
20968 ac_cv_have_x
="have_x=yes \
20969 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
20974 eval "$ac_cv_have_x"
20977 if test "$have_x" != yes; then
20978 echo "$as_me:$LINENO: result: $have_x" >&5
20979 echo "${ECHO_T}$have_x" >&6
20982 # If each of the values was on the command line, it overrides each guess.
20983 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
20984 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
20985 # Update the cache value to reflect the command line values.
20986 ac_cv_have_x
="have_x=yes \
20987 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
20988 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20989 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
20993 # Unlike the sim directory, whether a simulator is linked is controlled by
20994 # presence of a gdb_sim definition in the target configure.tgt entry.
20995 # This code just checks for a few cases where we'd like to ignore those
20996 # definitions, even when they're present in the '.mt' file. These cases
20997 # are when --disable-sim is specified, or if the simulator directory is
20998 # not part of the source tree.
21000 # Check whether --enable-sim or --disable-sim was given.
21001 if test "${enable_sim+set}" = set; then
21002 enableval
="$enable_sim"
21003 echo "enable_sim = $enable_sim";
21004 echo "enableval = ${enableval}";
21005 case "${enableval}" in
21006 yes) ignore_sim
=false
;;
21007 no
) ignore_sim
=true
;;
21008 *) ignore_sim
=false
;;
21014 if test ! -d "${srcdir}/../sim"; then
21020 if test "${ignore_sim}" = "false"; then
21021 if test x
"${gdb_sim}" != x
; then
21023 SIM_OBS
="remote-sim.o"
21025 cat >>confdefs.h
<<\_ACEOF
21045 # List of host floatformats.
21047 cat >>confdefs.h
<<_ACEOF
21048 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21052 cat >>confdefs.h
<<_ACEOF
21053 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21057 cat >>confdefs.h
<<_ACEOF
21058 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21062 # target_subdir is used by the testsuite to find the target libraries.
21064 if test "${host}" != "${target}"; then
21065 target_subdir
="${target_alias}/"
21070 if test "${gdb_native}" = "yes"; then
21071 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21072 if test ! -f ${host_makefile_frag}; then
21073 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21074 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21075 { (exit 1); exit 1; }; }
21077 frags
="$frags $host_makefile_frag"
21079 host_makefile_frag
=/dev
/null
21085 if test "${gdb_native}" = "yes"; then
21086 # We pick this up from the host configuration file (.mh) because we
21087 # do not have a native configuration Makefile fragment.
21088 nativefile
=`sed -n '
21089 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21090 ' ${host_makefile_frag}`
21094 if test x
"${gdb_osabi}" != x
; then
21096 cat >>confdefs.h
<<_ACEOF
21097 #define GDB_OSABI_DEFAULT $gdb_osabi
21102 # Enable multi-ice-gdb-server.
21103 # Check whether --enable-multi-ice or --disable-multi-ice was given.
21104 if test "${enable_multi_ice+set}" = set; then
21105 enableval
="$enable_multi_ice"
21109 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21110 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21111 { (exit 1); exit 1; }; } ;;
21114 if test "x$enable_multi_ice" = xyes
; then
21117 subdirs
="$subdirs multi-ice"
21121 # We only build gdbserver automatically in a native configuration.
21122 if test "$gdb_native" = "yes"; then
21123 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21124 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21125 if test "x$build_gdbserver" = xyes
; then
21126 echo "$as_me:$LINENO: result: yes" >&5
21127 echo "${ECHO_T}yes" >&6
21130 subdirs
="$subdirs gdbserver"
21133 echo "$as_me:$LINENO: result: no" >&5
21134 echo "${ECHO_T}no" >&6
21138 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21139 # to an empty version.
21146 if test "${nativefile}" != ""; then
21148 case "${nativefile}" in
21149 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
21150 * ) GDB_NM_FILE
="${nativefile}"
21152 files
="${files} ${GDB_NM_FILE}"
21153 links
="${links} nm.h"
21155 cat >>confdefs.h
<<_ACEOF
21156 #define GDB_NM_FILE "${GDB_NM_FILE}"
21162 ac_sources
="$files"
21164 while test -n "$ac_sources"; do
21165 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
21166 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
21167 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
21169 ac_config_links
="$ac_config_links $ac_config_links_1"
21175 cat >>confdefs.h
<<\_ACEOF
21176 #define GDB_DEFAULT_HOST_CHARSET "UTF-8"
21185 ac_config_files
="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
21186 ac_config_commands
="$ac_config_commands default"
21187 cat >confcache
<<\_ACEOF
21188 # This file is a shell script that caches the results of configure
21189 # tests run on this system so they can be shared between configure
21190 # scripts and configure runs, see configure's option --config-cache.
21191 # It is not useful on other systems. If it contains results you don't
21192 # want to keep, you may remove or edit it.
21194 # config.status only pays attention to the cache file if you give it
21195 # the --recheck option to rerun configure.
21197 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21198 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21199 # following values.
21203 # The following way of writing the cache mishandles newlines in values,
21204 # but we know of no workaround that is simple, portable, and efficient.
21205 # So, don't put newlines in cache variables' values.
21206 # Ultrix sh set writes to stderr and can't be redirected directly,
21207 # and sets the high bit in the cache file unless we assign to the vars.
21210 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21212 # `set' does not quote correctly, so add quotes (double-quote
21213 # substitution turns \\\\ into \\, and sed turns \\ into \).
21216 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21219 # `set' quotes correctly as required by POSIX, so do not add quotes.
21221 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21228 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21230 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21232 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
21233 if test -w $cache_file; then
21234 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21235 cat confcache
>$cache_file
21237 echo "not updating unwritable cache $cache_file"
21242 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21243 # Let make expand exec_prefix.
21244 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21246 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21247 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21248 # trailing colons and then remove the whole line if VPATH becomes empty
21249 # (actually we leave an empty line to preserve line numbers).
21250 if test "x$srcdir" = x.
; then
21251 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21252 s/:*\$(srcdir):*/:/;
21253 s/:*\${srcdir}:*/:/;
21255 s/^\([^=]*=[ ]*\):*/\1/;
21261 DEFS
=-DHAVE_CONFIG_H
21265 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21266 # 1. Remove the extension, and $U if already installed.
21267 ac_i
=`echo "$ac_i" |
21268 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21270 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
21271 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
21273 LIBOBJS
=$ac_libobjs
21275 LTLIBOBJS
=$ac_ltlibobjs
21278 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21279 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21280 Usually this means the macro was only invoked conditionally." >&5
21281 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21282 Usually this means the macro was only invoked conditionally." >&2;}
21283 { (exit 1); exit 1; }; }
21285 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
21286 { { echo "$as_me:$LINENO: error: conditional \"GMAKE\" was never defined.
21287 Usually this means the macro was only invoked conditionally." >&5
21288 echo "$as_me: error: conditional \"GMAKE\" was never defined.
21289 Usually this means the macro was only invoked conditionally." >&2;}
21290 { (exit 1); exit 1; }; }
21292 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21293 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21294 Usually this means the macro was only invoked conditionally." >&5
21295 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21296 Usually this means the macro was only invoked conditionally." >&2;}
21297 { (exit 1); exit 1; }; }
21302 if test -n "$gl_LIBOBJS"; then
21303 # Remove the extension.
21304 sed_drop_objext
='s/\.o$//;s/\.obj$//'
21305 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21306 gl_libobjs
="$gl_libobjs $i.$ac_objext"
21307 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
21310 gl_LIBOBJS
=$gl_libobjs
21312 gl_LTLIBOBJS
=$gl_ltlibobjs
21318 if test -n "$gltests_LIBOBJS"; then
21319 # Remove the extension.
21320 sed_drop_objext
='s/\.o$//;s/\.obj$//'
21321 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21322 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
21323 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
21326 gltests_LIBOBJS
=$gltests_libobjs
21328 gltests_LTLIBOBJS
=$gltests_ltlibobjs
21331 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21332 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21333 Usually this means the macro was only invoked conditionally." >&5
21334 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21335 Usually this means the macro was only invoked conditionally." >&2;}
21336 { (exit 1); exit 1; }; }
21338 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21339 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21340 Usually this means the macro was only invoked conditionally." >&5
21341 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21342 Usually this means the macro was only invoked conditionally." >&2;}
21343 { (exit 1); exit 1; }; }
21346 : ${CONFIG_STATUS=./config.status}
21347 ac_clean_files_save
=$ac_clean_files
21348 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21349 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21350 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21351 cat >$CONFIG_STATUS <<_ACEOF
21353 # Generated by $as_me.
21354 # Run this file to recreate the current configuration.
21355 # Compiler output produced by configure, useful for debugging
21356 # configure, is in config.log if it exists.
21359 ac_cs_recheck=false
21361 SHELL=\${CONFIG_SHELL-$SHELL}
21364 cat >>$CONFIG_STATUS <<\_ACEOF
21365 ## --------------------- ##
21366 ## M4sh Initialization. ##
21367 ## --------------------- ##
21369 # Be Bourne compatible
21370 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21373 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21374 # is contrary to our usage. Disable this feature.
21375 alias -g '${1+"$@"}'='"$@"'
21376 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
21379 DUALCASE
=1; export DUALCASE
# for MKS sh
21381 # Support unset when possible.
21382 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
21389 # Work around bugs in pre-3.0 UWIN ksh.
21390 $as_unset ENV MAIL MAILPATH
21397 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21398 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21399 LC_TELEPHONE LC_TIME
21401 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21402 eval $as_var=C
; export $as_var
21408 # Required to use basename.
21409 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21415 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
21416 as_basename
=basename
21422 # Name of the executable.
21423 as_me
=`$as_basename "$0" ||
21424 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21425 X"$0" : 'X\(//\)$' \| \
21426 X"$0" : 'X\(/\)$' \| \
21427 . : '\(.\)' 2>/dev/null ||
21429 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21430 /^X\/\(\/\/\)$/{ s//\1/; q; }
21431 /^X\/\(\/\).*/{ s//\1/; q; }
21435 # PATH needs CR, and LINENO needs CR and PATH.
21436 # Avoid depending upon Character Ranges.
21437 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
21438 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21439 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
21440 as_cr_digits
='0123456789'
21441 as_cr_alnum
=$as_cr_Letters$as_cr_digits
21443 # The user is always right.
21444 if test "${PATH_SEPARATOR+set}" != set; then
21445 echo "#! /bin/sh" >conf$$.sh
21446 echo "exit 0" >>conf$$.sh
21448 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
21457 as_lineno_1
=$LINENO
21458 as_lineno_2
=$LINENO
21459 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
21460 test "x$as_lineno_1" != "x$as_lineno_2" &&
21461 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
21462 # Find who we are. Look in the path if we contain no path at all
21465 *[\\/]* ) as_myself
=$0 ;;
21466 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21467 for as_dir
in $PATH
21470 test -z "$as_dir" && as_dir
=.
21471 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
21476 # We did not find ourselves, most probably we were run as `sh COMMAND'
21477 # in which case we are not to be found in the path.
21478 if test "x$as_myself" = x
; then
21481 if test ! -f "$as_myself"; then
21482 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21483 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21484 { (exit 1); exit 1; }; }
21486 case $CONFIG_SHELL in
21488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21489 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
21492 test -z "$as_dir" && as_dir
=.
21493 for as_base
in sh bash ksh sh5
; do
21496 if ("$as_dir/$as_base" -c '
21497 as_lineno_1=$LINENO
21498 as_lineno_2=$LINENO
21499 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21500 test "x$as_lineno_1" != "x$as_lineno_2" &&
21501 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
21502 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
21503 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
21504 CONFIG_SHELL
=$as_dir/$as_base
21505 export CONFIG_SHELL
21506 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21514 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21515 # uniformly replaced by the line number. The first 'sed' inserts a
21516 # line-number line before each line; the second 'sed' does the real
21517 # work. The second script uses 'N' to pair each line-number line
21518 # with the numbered line, and appends trailing '-' during
21519 # substitution so that $LINENO is not a special case at line end.
21520 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21521 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21522 sed '=' <$as_myself |
21527 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21530 s,^['$as_cr_digits']*\n,,
21531 ' >$as_me.lineno
&&
21532 chmod +x
$as_me.lineno ||
21533 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21534 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21535 { (exit 1); exit 1; }; }
21537 # Don't try to exec as it changes $[0], causing all sort of problems
21538 # (the dirname of $[0] is not the place where we might find the
21539 # original and so on. Autoconf is especially sensible to this).
21541 # Exit status is that of the last command.
21546 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21547 *c
*,-n*) ECHO_N
= ECHO_C
='
21549 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
21550 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
21553 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21559 rm -f conf$$ conf$$.exe conf$$.
file
21561 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
21562 # We could just check for DJGPP; but this test a) works b) is more generic
21563 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21564 if test -f conf$$.exe
; then
21565 # Don't use ln at all; we don't have any links
21570 elif ln conf$$.
file conf$$
2>/dev
/null
; then
21575 rm -f conf$$ conf$$.exe conf$$.
file
21577 if mkdir
-p .
2>/dev
/null
; then
21580 test -d .
/-p && rmdir .
/-p
21584 as_executable_p
="test -f"
21586 # Sed expression to map a string onto a valid CPP name.
21587 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21589 # Sed expression to map a string onto a valid variable name.
21590 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21594 # We need space, tab and new line, in precisely that order.
21604 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21605 # report actual input values of CONFIG_FILES etc. instead of their
21606 # values after options handling. Logging --version etc. is OK.
21610 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21611 ## Running $as_me. ##
21616 This file was extended by $as_me, which was
21617 generated by GNU Autoconf 2.59. Invocation command line was
21619 CONFIG_FILES = $CONFIG_FILES
21620 CONFIG_HEADERS = $CONFIG_HEADERS
21621 CONFIG_LINKS = $CONFIG_LINKS
21622 CONFIG_COMMANDS = $CONFIG_COMMANDS
21626 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21630 # Files that config.status was made for.
21631 if test -n "$ac_config_files"; then
21632 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21635 if test -n "$ac_config_headers"; then
21636 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21639 if test -n "$ac_config_links"; then
21640 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21643 if test -n "$ac_config_commands"; then
21644 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21647 cat >>$CONFIG_STATUS <<\_ACEOF
21650 \`$as_me' instantiates files from templates according to the
21651 current configuration.
21653 Usage: $0 [OPTIONS] [FILE]...
21655 -h, --help print this help, then exit
21656 -V, --version print version number, then exit
21657 -q, --quiet do not print progress messages
21658 -d, --debug don't remove temporary files
21659 --recheck update $as_me by reconfiguring in the same conditions
21660 --file=FILE[:TEMPLATE]
21661 instantiate the configuration file FILE
21662 --header=FILE[:TEMPLATE]
21663 instantiate the configuration header FILE
21665 Configuration files:
21668 Configuration headers:
21671 Configuration links:
21674 Configuration commands:
21677 Report bugs to <bug-autoconf@gnu.org>."
21680 cat >>$CONFIG_STATUS <<_ACEOF
21683 configured by $0, generated by GNU Autoconf 2.59,
21684 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21686 Copyright (C) 2003 Free Software Foundation, Inc.
21687 This config.status script is free software; the Free Software Foundation
21688 gives unlimited permission to copy, distribute and modify it."
21693 cat >>$CONFIG_STATUS <<\_ACEOF
21694 # If no file are specified by the user, then we need to provide default
21695 # value. By we need to know if files were specified by the user.
21701 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
21702 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
21710 *) # This is not an option, so the user has probably given explicit
21713 ac_need_defaults
=false
;;
21717 # Handling of the options.
21719 cat >>$CONFIG_STATUS <<\_ACEOF
21720 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
21722 --version |
--vers* |
-V )
21723 echo "$ac_cs_version"; exit 0 ;;
21725 # Conflict between --help and --header
21726 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21727 Try \`$0 --help' for more information." >&5
21728 echo "$as_me: error: ambiguous option: $1
21729 Try \`$0 --help' for more information." >&2;}
21730 { (exit 1); exit 1; }; };;
21731 --help |
--hel |
-h )
21732 echo "$ac_cs_usage"; exit 0 ;;
21733 --debug |
--d* |
-d )
21735 --file |
--fil |
--fi |
--f )
21737 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
21738 ac_need_defaults
=false
;;
21739 --header |
--heade |
--head |
--hea )
21741 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
21742 ac_need_defaults
=false
;;
21743 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
21744 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
21747 # This is an error.
21748 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21749 Try \`$0 --help' for more information." >&5
21750 echo "$as_me: error: unrecognized option: $1
21751 Try \`$0 --help' for more information." >&2;}
21752 { (exit 1); exit 1; }; } ;;
21754 *) ac_config_targets
="$ac_config_targets $1" ;;
21760 ac_configure_extra_args
=
21762 if $ac_cs_silent; then
21764 ac_configure_extra_args
="$ac_configure_extra_args --silent"
21768 cat >>$CONFIG_STATUS <<_ACEOF
21769 if \$ac_cs_recheck; then
21770 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21771 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21776 cat >>$CONFIG_STATUS <<_ACEOF
21778 # INIT-COMMANDS section.
21781 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
21782 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21784 gdb_host_cpu=$gdb_host_cpu
21785 nativefile=$nativefile
21792 cat >>$CONFIG_STATUS <<\_ACEOF
21793 for ac_config_target
in $ac_config_targets
21795 case "$ac_config_target" in
21796 # Handling of arguments.
21797 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
21798 ".gdbinit" ) CONFIG_FILES
="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
21799 "gnulib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES gnulib/Makefile" ;;
21800 "$ac_config_links_1" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
21801 "depdir" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
21802 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
21803 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
21804 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
21805 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21806 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21807 { (exit 1); exit 1; }; };;
21811 # If the user did not use the arguments to specify the items to instantiate,
21812 # then the envvar interface is used. Set only those that are not.
21813 # We use the long form for the default assignment because of an extremely
21814 # bizarre bug on SunOS 4.1.3.
21815 if $ac_need_defaults; then
21816 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21817 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21818 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
21819 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21822 # Have a temporary directory for convenience. Make it in the build tree
21823 # simply because there is no reason to put it here, and in addition,
21824 # creating and moving files from /tmp can sometimes cause problems.
21825 # Create a temporary directory, and hook for its removal unless debugging.
21828 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21829 trap '{ (exit 1); exit 1; }' 1 2 13 15
21832 # Create a (secure) tmp directory for tmp files.
21835 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21836 test -n "$tmp" && test -d "$tmp"
21839 tmp
=.
/confstat$$
-$RANDOM
21840 (umask 077 && mkdir
$tmp)
21843 echo "$me: cannot create a temporary directory in ." >&2
21844 { (exit 1); exit 1; }
21849 cat >>$CONFIG_STATUS <<_ACEOF
21852 # CONFIG_FILES section.
21855 # No need to generate the scripts if there are no CONFIG_FILES.
21856 # This happens for instance when ./config.status config.h
21857 if test -n "\$CONFIG_FILES"; then
21858 # Protect against being on the right side of a sed subst in config.status.
21859 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21860 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21861 s,@SHELL@,$SHELL,;t t
21862 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21863 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21864 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21865 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21866 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21867 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21868 s,@exec_prefix@,$exec_prefix,;t t
21869 s,@prefix@,$prefix,;t t
21870 s,@program_transform_name@,$program_transform_name,;t t
21871 s,@bindir@,$bindir,;t t
21872 s,@sbindir@,$sbindir,;t t
21873 s,@libexecdir@,$libexecdir,;t t
21874 s,@datadir@,$datadir,;t t
21875 s,@sysconfdir@,$sysconfdir,;t t
21876 s,@sharedstatedir@,$sharedstatedir,;t t
21877 s,@localstatedir@,$localstatedir,;t t
21878 s,@libdir@,$libdir,;t t
21879 s,@includedir@,$includedir,;t t
21880 s,@oldincludedir@,$oldincludedir,;t t
21881 s,@infodir@,$infodir,;t t
21882 s,@mandir@,$mandir,;t t
21883 s,@build_alias@,$build_alias,;t t
21884 s,@host_alias@,$host_alias,;t t
21885 s,@target_alias@,$target_alias,;t t
21886 s,@DEFS@,$DEFS,;t t
21887 s,@ECHO_C@,$ECHO_C,;t t
21888 s,@ECHO_N@,$ECHO_N,;t t
21889 s,@ECHO_T@,$ECHO_T,;t t
21890 s,@LIBS@,$LIBS,;t t
21891 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21892 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21893 s,@MAINT@,$MAINT,;t t
21895 s,@CFLAGS@,$CFLAGS,;t t
21896 s,@LDFLAGS@,$LDFLAGS,;t t
21897 s,@CPPFLAGS@,$CPPFLAGS,;t t
21898 s,@ac_ct_CC@,$ac_ct_CC,;t t
21899 s,@EXEEXT@,$EXEEXT,;t t
21900 s,@OBJEXT@,$OBJEXT,;t t
21902 s,@EGREP@,$EGREP,;t t
21903 s,@RANLIB@,$RANLIB,;t t
21904 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21905 s,@build@,$build,;t t
21906 s,@build_cpu@,$build_cpu,;t t
21907 s,@build_vendor@,$build_vendor,;t t
21908 s,@build_os@,$build_os,;t t
21909 s,@host@,$host,;t t
21910 s,@host_cpu@,$host_cpu,;t t
21911 s,@host_vendor@,$host_vendor,;t t
21912 s,@host_os@,$host_os,;t t
21913 s,@target@,$target,;t t
21914 s,@target_cpu@,$target_cpu,;t t
21915 s,@target_vendor@,$target_vendor,;t t
21916 s,@target_os@,$target_os,;t t
21917 s,@am__leading_dot@,$am__leading_dot,;t t
21918 s,@DEPDIR@,$DEPDIR,;t t
21919 s,@CCDEPMODE@,$CCDEPMODE,;t t
21920 s,@MAKE@,$MAKE,;t t
21921 s,@GMAKE_TRUE@,$GMAKE_TRUE,;t t
21922 s,@GMAKE_FALSE@,$GMAKE_FALSE,;t t
21923 s,@SET_MAKE@,$SET_MAKE,;t t
21924 s,@USE_NLS@,$USE_NLS,;t t
21925 s,@LIBINTL@,$LIBINTL,;t t
21926 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21927 s,@INCINTL@,$INCINTL,;t t
21928 s,@XGETTEXT@,$XGETTEXT,;t t
21929 s,@GMSGFMT@,$GMSGFMT,;t t
21930 s,@POSUB@,$POSUB,;t t
21931 s,@CATALOGS@,$CATALOGS,;t t
21932 s,@DATADIRNAME@,$DATADIRNAME,;t t
21933 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
21934 s,@GENCAT@,$GENCAT,;t t
21935 s,@CATOBJEXT@,$CATOBJEXT,;t t
21936 s,@localedir@,$localedir,;t t
21937 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
21938 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
21939 s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
21940 s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
21941 s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
21942 s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
21943 s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
21944 s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
21945 s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
21946 s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
21947 s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
21948 s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
21949 s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
21950 s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
21951 s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
21952 s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
21953 s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
21954 s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
21955 s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
21956 s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
21957 s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
21958 s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
21959 s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
21960 s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
21961 s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
21962 s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
21963 s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
21964 s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
21965 s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
21966 s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
21967 s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
21968 s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
21969 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
21970 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
21971 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
21972 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
21973 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
21974 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
21975 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
21976 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
21977 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
21978 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
21979 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
21980 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
21981 s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
21982 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
21983 s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
21984 s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
21985 s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
21986 s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
21987 s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
21988 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
21989 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
21990 s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
21991 s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
21992 s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
21993 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
21994 s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
21995 s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
21996 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
21997 s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
21998 s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
21999 s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
22000 s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
22001 s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
22002 s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
22003 s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
22004 s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
22005 s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
22006 s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
22007 s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
22008 s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
22009 s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
22010 s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
22011 s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
22012 s,@STDINT_H@,$STDINT_H,;t t
22013 s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
22014 s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
22015 s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
22016 s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
22017 s,@WCHAR_H@,$WCHAR_H,;t t
22018 s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
22019 s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
22020 s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
22021 s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
22022 s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
22023 s,@PACKAGE@,$PACKAGE,;t t
22024 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22025 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22026 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22027 s,@CYGPATH_W@,$CYGPATH_W,;t t
22028 s,@PYTHON2_4@,$PYTHON2_4,;t t
22029 s,@ACLOCAL@,$ACLOCAL,;t t
22030 s,@AUTOCONF@,$AUTOCONF,;t t
22031 s,@AUTOMAKE@,$AUTOMAKE,;t t
22032 s,@AUTOHEADER@,$AUTOHEADER,;t t
22033 s,@MAKEINFO@,$MAKEINFO,;t t
22034 s,@install_sh@,$install_sh,;t t
22035 s,@STRIP@,$STRIP,;t t
22036 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22037 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22038 s,@mkdir_p@,$mkdir_p,;t t
22040 s,@AMTAR@,$AMTAR,;t t
22041 s,@am__tar@,$am__tar,;t t
22042 s,@am__untar@,$am__untar,;t t
22043 s,@am__include@,$am__include,;t t
22044 s,@am__quote@,$am__quote,;t t
22045 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22046 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22047 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22048 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22049 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22050 s,@subdirs@,$subdirs,;t t
22051 s,@TARGET_OBS@,$TARGET_OBS,;t t
22052 s,@PKGVERSION@,$PKGVERSION,;t t
22053 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
22054 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
22055 s,@LN_S@,$LN_S,;t t
22056 s,@YACC@,$YACC,;t t
22058 s,@ac_ct_AR@,$ac_ct_AR,;t t
22059 s,@DLLTOOL@,$DLLTOOL,;t t
22060 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22061 s,@WINDRES@,$WINDRES,;t t
22062 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22064 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22065 s,@READLINE@,$READLINE,;t t
22066 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
22067 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
22068 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
22069 s,@LIBEXPAT@,$LIBEXPAT,;t t
22070 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
22071 s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
22072 s,@ALLOCA@,$ALLOCA,;t t
22073 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22074 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22075 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22076 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22077 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22078 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22079 s,@WIN32LIBS@,$WIN32LIBS,;t t
22080 s,@LIBGUI@,$LIBGUI,;t t
22081 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22082 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22083 s,@TCL_VERSION@,$TCL_VERSION,;t t
22084 s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
22085 s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
22086 s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
22087 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
22088 s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
22089 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22090 s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
22091 s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
22092 s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
22093 s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
22094 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
22095 s,@TCL_DEPS@,$TCL_DEPS,;t t
22096 s,@TK_VERSION@,$TK_VERSION,;t t
22097 s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
22098 s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
22099 s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
22100 s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
22101 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22102 s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
22103 s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
22104 s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
22105 s,@TK_INCLUDE@,$TK_INCLUDE,;t t
22106 s,@TK_LIBRARY@,$TK_LIBRARY,;t t
22107 s,@TK_DEPS@,$TK_DEPS,;t t
22108 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22109 s,@X_CFLAGS@,$X_CFLAGS,;t t
22110 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22111 s,@X_LIBS@,$X_LIBS,;t t
22112 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22113 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22114 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22116 s,@SIM_OBS@,$SIM_OBS,;t t
22117 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22118 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22119 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22120 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22121 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22122 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22123 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22124 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22125 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22126 s,@target_subdir@,$target_subdir,;t t
22127 s,@frags@,$frags,;t t
22128 s,@nm_h@,$nm_h,;t t
22129 s,@datarootdir@,$datarootdir,;t t
22130 s,@docdir@,$docdir,;t t
22131 s,@htmldir@,$htmldir,;t t
22132 s,@pdfdir@,$pdfdir,;t t
22133 s,@LIBOBJS@,$LIBOBJS,;t t
22134 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22135 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
22136 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
22137 s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
22138 s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
22139 /@host_makefile_frag@/r $host_makefile_frag
22140 s,@host_makefile_frag@,,;t t
22145 cat >>$CONFIG_STATUS <<\_ACEOF
22146 # Split the substitutions into bite-sized pieces for seds with
22147 # small command number limits, like on Digital OSF/1 and HP-UX.
22148 ac_max_sed_lines
=48
22149 ac_sed_frag
=1 # Number of current file.
22150 ac_beg
=1 # First line for current file.
22151 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22154 while $ac_more_lines; do
22155 if test $ac_beg -gt 1; then
22156 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22158 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22160 if test ! -s $tmp/subs.frag
; then
22161 ac_more_lines
=false
22163 # The purpose of the label and of the branching condition is to
22164 # speed up the sed processing (if there are no `@' at all, there
22165 # is no need to browse any of the substitutions).
22166 # These are the two extra sed commands mentioned above.
22168 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22169 if test -z "$ac_sed_cmds"; then
22170 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22172 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22174 ac_sed_frag
=`expr $ac_sed_frag + 1`
22176 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22179 if test -z "$ac_sed_cmds"; then
22182 fi # test -n "$CONFIG_FILES"
22185 cat >>$CONFIG_STATUS <<\_ACEOF
22186 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22187 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22189 - |
*:- |
*:-:* ) # input from stdin
22191 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22192 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22193 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22194 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22195 * ) ac_file_in
=$ac_file.
in ;;
22198 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22199 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22200 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22201 X"$ac_file" : 'X\(//\)[^/]' \| \
22202 X"$ac_file" : 'X\(//\)$' \| \
22203 X"$ac_file" : 'X\(/\)' \| \
22204 . : '\(.\)' 2>/dev/null ||
22206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22207 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22208 /^X\(\/\/\)$/{ s//\1/; q; }
22209 /^X\(\/\).*/{ s//\1/; q; }
22211 { if $as_mkdir_p; then
22216 while test ! -d "$as_dir"; do
22217 as_dirs
="$as_dir $as_dirs"
22218 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22220 X"$as_dir" : 'X\(//\)[^/]' \| \
22221 X"$as_dir" : 'X\(//\)$' \| \
22222 X"$as_dir" : 'X\(/\)' \| \
22223 . : '\(.\)' 2>/dev/null ||
22225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22226 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22227 /^X\(\/\/\)$/{ s//\1/; q; }
22228 /^X\(\/\).*/{ s//\1/; q; }
22231 test ! -n "$as_dirs" || mkdir
$as_dirs
22232 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22233 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22234 { (exit 1); exit 1; }; }; }
22238 if test "$ac_dir" != .
; then
22239 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22240 # A "../" for each directory in $ac_dir_suffix.
22241 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22243 ac_dir_suffix
= ac_top_builddir
=
22247 .
) # No --srcdir option. We are building in place.
22249 if test -z "$ac_top_builddir"; then
22252 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22254 [\\/]* | ?
:[\\/]* ) # Absolute path.
22255 ac_srcdir
=$srcdir$ac_dir_suffix;
22256 ac_top_srcdir
=$srcdir ;;
22257 *) # Relative path.
22258 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22259 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22262 # Do not use `cd foo && pwd` to compute absolute paths, because
22263 # the directories may not exist.
22265 .
) ac_abs_builddir
="$ac_dir";;
22268 .
) ac_abs_builddir
=`pwd`;;
22269 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22270 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22273 case $ac_abs_builddir in
22274 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22276 case ${ac_top_builddir}.
in
22277 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22278 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22279 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22282 case $ac_abs_builddir in
22283 .
) ac_abs_srcdir
=$ac_srcdir;;
22286 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22287 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22288 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22291 case $ac_abs_builddir in
22292 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22294 case $ac_top_srcdir in
22295 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22296 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22297 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22303 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22304 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22307 if test x
"$ac_file" != x-
; then
22308 { echo "$as_me:$LINENO: creating $ac_file" >&5
22309 echo "$as_me: creating $ac_file" >&6;}
22312 # Let's still pretend it is `configure' which instantiates (i.e., don't
22313 # use $as_me), people would be surprised to read:
22314 # /* config.h. Generated by config.status. */
22315 if test x
"$ac_file" = x-
; then
22318 configure_input
="$ac_file. "
22320 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22321 sed 's,.*/,,'` by configure."
22323 # First look for the input files in the build tree, otherwise in the
22325 ac_file_inputs
=`IFS=:
22326 for f in $ac_file_in; do
22328 -) echo $tmp/stdin ;;
22330 # Absolute (can't be DOS-style, as IFS=:)
22331 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22332 echo "$as_me: error: cannot find input file: $f" >&2;}
22333 { (exit 1); exit 1; }; }
22336 if test -f "$f"; then
22339 elif test -f "$srcdir/$f"; then
22344 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22345 echo "$as_me: error: cannot find input file: $f" >&2;}
22346 { (exit 1); exit 1; }; }
22349 done` ||
{ (exit 1); exit 1; }
22351 cat >>$CONFIG_STATUS <<_ACEOF
22355 cat >>$CONFIG_STATUS <<\_ACEOF
22357 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22358 s
,@configure_input@
,$configure_input,;t t
22359 s
,@srcdir@
,$ac_srcdir,;t t
22360 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22361 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22362 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22363 s
,@builddir@
,$ac_builddir,;t t
22364 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22365 s
,@top_builddir@
,$ac_top_builddir,;t t
22366 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22367 s
,@INSTALL@
,$ac_INSTALL,;t t
22368 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22370 if test x"$ac_file" != x-; then
22371 mv $tmp/out $ac_file
22379 cat >>$CONFIG_STATUS <<\_ACEOF
22382 # CONFIG_HEADER section.
22385 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22386 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22388 # ac_d sets the value in "#define NAME VALUE" lines.
22389 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22390 ac_dB
='[ ].*$,\1#\2'
22393 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22394 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22395 ac_uB
='$,\1#\2define\3'
22399 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22400 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22402 - |
*:- |
*:-:* ) # input from stdin
22404 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22405 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22406 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22407 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22408 * ) ac_file_in
=$ac_file.
in ;;
22411 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22412 echo "$as_me: creating $ac_file" >&6;}
22414 # First look for the input files in the build tree, otherwise in the
22416 ac_file_inputs
=`IFS=:
22417 for f in $ac_file_in; do
22419 -) echo $tmp/stdin ;;
22421 # Absolute (can't be DOS-style, as IFS=:)
22422 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22423 echo "$as_me: error: cannot find input file: $f" >&2;}
22424 { (exit 1); exit 1; }; }
22425 # Do quote $f, to prevent DOS paths from being IFS'd.
22428 if test -f "$f"; then
22431 elif test -f "$srcdir/$f"; then
22436 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22437 echo "$as_me: error: cannot find input file: $f" >&2;}
22438 { (exit 1); exit 1; }; }
22441 done` ||
{ (exit 1); exit 1; }
22442 # Remove the trailing spaces.
22443 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22447 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22448 # `conftest.undefs', that substitutes the proper values into
22449 # config.h.in to produce config.h. The first handles `#define'
22450 # templates, and the second `#undef' templates.
22451 # And first: Protect against being on the right side of a sed subst in
22452 # config.status. Protect against being in an unquoted here document
22453 # in config.status.
22454 rm -f conftest.defines conftest.undefs
22455 # Using a here document instead of a string reduces the quoting nightmare.
22456 # Putting comments in sed scripts is not portable.
22458 # `end' is used to avoid that the second main sed command (meant for
22459 # 0-ary CPP macros) applies to n-ary macro definitions.
22460 # See the Autoconf documentation for `clear'.
22461 cat >confdef2sed.
sed <<\_ACEOF
22466 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22468 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22471 # If some macros were called several times there might be several times
22472 # the same #defines, which is useless. Nevertheless, we may not want to
22473 # sort them, since we want the *last* AC-DEFINE to be honored.
22474 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22475 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22476 rm -f confdef2sed.sed
22478 # This sed command replaces #undef with comments. This is necessary, for
22479 # example, in the case of _POSIX_SOURCE, which is predefined and required
22480 # on some systems where configure will not decide to define it.
22481 cat >>conftest.undefs <<\_ACEOF
22482 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22485 # Break up conftest.defines because some shells have a limit on the size
22486 # of here documents, and old seds have small limits too (100 cmds).
22487 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22488 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22489 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22490 echo ' :' >>$CONFIG_STATUS
22491 rm -f conftest.tail
22492 while grep . conftest.defines >/dev/null
22494 # Write a limited-size here document to $tmp/defines.sed.
22495 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22496 # Speed up: don't consider the non `#define' lines.
22497 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22498 # Work around the forget-to-reset-the-flag bug.
22499 echo 't clr' >>$CONFIG_STATUS
22500 echo ': clr' >>$CONFIG_STATUS
22501 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
22503 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22505 mv $tmp/out $tmp/in
22507 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
22508 rm -f conftest.defines
22509 mv conftest.
tail conftest.defines
22511 rm -f conftest.defines
22512 echo ' fi # grep' >>$CONFIG_STATUS
22513 echo >>$CONFIG_STATUS
22515 # Break up conftest.undefs because some shells have a limit on the size
22516 # of here documents, and old seds have small limits too (100 cmds).
22517 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22518 rm -f conftest.
tail
22519 while grep . conftest.undefs
>/dev
/null
22521 # Write a limited-size here document to $tmp/undefs.sed.
22522 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22523 # Speed up: don't consider the non
`#undef'
22524 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22525 # Work around the forget-to-reset-the-flag bug.
22526 echo 't clr' >>$CONFIG_STATUS
22527 echo ': clr' >>$CONFIG_STATUS
22528 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22530 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22532 mv $tmp/out $tmp/in
22534 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22535 rm -f conftest.undefs
22536 mv conftest.tail conftest.undefs
22538 rm -f conftest.undefs
22540 cat >>$CONFIG_STATUS <<\_ACEOF
22541 # Let's still pretend it is `configure
' which instantiates (i.e., don't
22542 # use $as_me), people would be surprised to read:
22543 # /* config.h. Generated by config.status. */
22544 if test x
"$ac_file" = x-
; then
22545 echo "/* Generated by configure. */" >$tmp/config.h
22547 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22549 cat $tmp/in >>$tmp/config.h
22551 if test x
"$ac_file" != x-
; then
22552 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
22553 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22554 echo "$as_me: $ac_file is unchanged" >&6;}
22556 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22557 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22558 X"$ac_file" : 'X\(//\)[^/]' \| \
22559 X"$ac_file" : 'X\(//\)$' \| \
22560 X"$ac_file" : 'X\(/\)' \| \
22561 . : '\(.\)' 2>/dev/null ||
22563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22564 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22565 /^X\(\/\/\)$/{ s//\1/; q; }
22566 /^X\(\/\).*/{ s//\1/; q; }
22568 { if $as_mkdir_p; then
22573 while test ! -d "$as_dir"; do
22574 as_dirs
="$as_dir $as_dirs"
22575 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22576 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22577 X"$as_dir" : 'X\(//\)[^/]' \| \
22578 X"$as_dir" : 'X\(//\)$' \| \
22579 X"$as_dir" : 'X\(/\)' \| \
22580 . : '\(.\)' 2>/dev/null ||
22582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22584 /^X\(\/\/\)$/{ s//\1/; q; }
22585 /^X\(\/\).*/{ s//\1/; q; }
22588 test ! -n "$as_dirs" || mkdir
$as_dirs
22589 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22590 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22591 { (exit 1); exit 1; }; }; }
22594 mv $tmp/config.h
$ac_file
22598 rm -f $tmp/config.h
22600 # Compute $ac_file's index in $config_headers.
22602 for _am_header
in $config_headers :; do
22603 case $_am_header in
22604 $ac_file |
$ac_file:* )
22607 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
22610 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22611 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22612 X$ac_file : 'X\(//\)[^/]' \| \
22613 X$ac_file : 'X\(//\)$' \| \
22614 X$ac_file : 'X\(/\)' \| \
22615 . : '\(.\)' 2>/dev/null ||
22617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22618 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22619 /^X\(\/\/\)$/{ s//\1/; q; }
22620 /^X\(\/\).*/{ s//\1/; q; }
22621 s/.*/./; q'`/stamp-h
$_am_stamp_count
22624 cat >>$CONFIG_STATUS <<\_ACEOF
22627 # CONFIG_LINKS section.
22630 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
22631 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
22632 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22634 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22635 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22637 if test ! -r $srcdir/$ac_source; then
22638 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22639 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22640 { (exit 1); exit 1; }; }
22644 # Make relative symlinks.
22645 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
22646 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22647 X"$ac_dest" : 'X\(//\)[^/]' \| \
22648 X"$ac_dest" : 'X\(//\)$' \| \
22649 X"$ac_dest" : 'X\(/\)' \| \
22650 . : '\(.\)' 2>/dev/null ||
22652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22653 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22654 /^X\(\/\/\)$/{ s//\1/; q; }
22655 /^X\(\/\).*/{ s//\1/; q; }
22657 { if $as_mkdir_p; then
22658 mkdir
-p "$ac_dest_dir"
22660 as_dir
="$ac_dest_dir"
22662 while test ! -d "$as_dir"; do
22663 as_dirs
="$as_dir $as_dirs"
22664 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22665 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22666 X"$as_dir" : 'X\(//\)[^/]' \| \
22667 X"$as_dir" : 'X\(//\)$' \| \
22668 X"$as_dir" : 'X\(/\)' \| \
22669 . : '\(.\)' 2>/dev/null ||
22671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22672 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22673 /^X\(\/\/\)$/{ s//\1/; q; }
22674 /^X\(\/\).*/{ s//\1/; q; }
22677 test ! -n "$as_dirs" || mkdir
$as_dirs
22678 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22679 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22680 { (exit 1); exit 1; }; }; }
22684 if test "$ac_dest_dir" != .
; then
22685 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22686 # A "../" for each directory in $ac_dir_suffix.
22687 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22689 ac_dir_suffix
= ac_top_builddir
=
22693 .
) # No --srcdir option. We are building in place.
22695 if test -z "$ac_top_builddir"; then
22698 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22700 [\\/]* | ?
:[\\/]* ) # Absolute path.
22701 ac_srcdir
=$srcdir$ac_dir_suffix;
22702 ac_top_srcdir
=$srcdir ;;
22703 *) # Relative path.
22704 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22705 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22708 # Do not use `cd foo && pwd` to compute absolute paths, because
22709 # the directories may not exist.
22711 .
) ac_abs_builddir
="$ac_dest_dir";;
22713 case "$ac_dest_dir" in
22714 .
) ac_abs_builddir
=`pwd`;;
22715 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
22716 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
22719 case $ac_abs_builddir in
22720 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22722 case ${ac_top_builddir}.
in
22723 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22724 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22725 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22728 case $ac_abs_builddir in
22729 .
) ac_abs_srcdir
=$ac_srcdir;;
22732 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22733 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22734 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22737 case $ac_abs_builddir in
22738 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22740 case $ac_top_srcdir in
22741 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22742 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22743 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22749 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
22750 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
22753 # Try a symlink, then a hard link, then a copy.
22754 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
22755 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
22756 cp -p $srcdir/$ac_source $ac_dest ||
22757 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
22758 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
22759 { (exit 1); exit 1; }; }
22762 cat >>$CONFIG_STATUS <<\_ACEOF
22765 # CONFIG_COMMANDS section.
22767 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
22768 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
22769 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22770 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
22771 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22772 X"$ac_dest" : 'X\(//\)[^/]' \| \
22773 X"$ac_dest" : 'X\(//\)$' \| \
22774 X"$ac_dest" : 'X\(/\)' \| \
22775 . : '\(.\)' 2>/dev/null ||
22777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22778 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22779 /^X\(\/\/\)$/{ s//\1/; q; }
22780 /^X\(\/\).*/{ s//\1/; q; }
22782 { if $as_mkdir_p; then
22787 while test ! -d "$as_dir"; do
22788 as_dirs
="$as_dir $as_dirs"
22789 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22790 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22791 X"$as_dir" : 'X\(//\)[^/]' \| \
22792 X"$as_dir" : 'X\(//\)$' \| \
22793 X"$as_dir" : 'X\(/\)' \| \
22794 . : '\(.\)' 2>/dev/null ||
22796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22797 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22798 /^X\(\/\/\)$/{ s//\1/; q; }
22799 /^X\(\/\).*/{ s//\1/; q; }
22802 test ! -n "$as_dirs" || mkdir
$as_dirs
22803 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22804 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22805 { (exit 1); exit 1; }; }; }
22809 if test "$ac_dir" != .
; then
22810 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22811 # A "../" for each directory in $ac_dir_suffix.
22812 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22814 ac_dir_suffix
= ac_top_builddir
=
22818 .
) # No --srcdir option. We are building in place.
22820 if test -z "$ac_top_builddir"; then
22823 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22825 [\\/]* | ?
:[\\/]* ) # Absolute path.
22826 ac_srcdir
=$srcdir$ac_dir_suffix;
22827 ac_top_srcdir
=$srcdir ;;
22828 *) # Relative path.
22829 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22830 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22833 # Do not use `cd foo && pwd` to compute absolute paths, because
22834 # the directories may not exist.
22836 .
) ac_abs_builddir
="$ac_dir";;
22839 .
) ac_abs_builddir
=`pwd`;;
22840 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22841 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22844 case $ac_abs_builddir in
22845 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22847 case ${ac_top_builddir}.
in
22848 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22849 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22850 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22853 case $ac_abs_builddir in
22854 .
) ac_abs_srcdir
=$ac_srcdir;;
22857 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22858 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22859 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22862 case $ac_abs_builddir in
22863 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22865 case $ac_top_srcdir in
22866 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22867 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22868 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22873 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22874 echo "$as_me: executing $ac_dest commands" >&6;}
22876 depdir
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
22877 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
22878 # Strip MF so we end up with the name of the file.
22879 mf
=`echo "$mf" | sed -e 's/:.*$//'`
22880 # Check whether this is an Automake generated Makefile or not.
22881 # We used to match only the files named `Makefile.in', but
22882 # some people rename them; so instead we look at the file content.
22883 # Grep'ing the first line is not enough: some people post-process
22884 # each Makefile.in and add a new line on top of each file to say so.
22885 # So let's grep whole file.
22886 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
22887 dirpart
=`(dirname "$mf") 2>/dev/null ||
22888 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22889 X"$mf" : 'X\(//\)[^/]' \| \
22890 X"$mf" : 'X\(//\)$' \| \
22891 X"$mf" : 'X\(/\)' \| \
22892 . : '\(.\)' 2>/dev/null ||
22894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22895 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22896 /^X\(\/\/\)$/{ s//\1/; q; }
22897 /^X\(\/\).*/{ s//\1/; q; }
22902 # Extract the definition of DEPDIR, am__include, and am__quote
22903 # from the Makefile without running `make'.
22904 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
22905 test -z "$DEPDIR" && continue
22906 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
22907 test -z "am__include" && continue
22908 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
22909 # When using ansi2knr, U may be empty or an underscore; expand it
22910 U
=`sed -n 's/^U = //p' < "$mf"`
22911 # Find all dependency output files, they are included files with
22912 # $(DEPDIR) in their names. We invoke sed twice because it is the
22913 # simplest approach to changing $(DEPDIR) to its actual value in the
22915 for file in `sed -n "
22916 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22917 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22918 # Make sure the directory exists.
22919 test -f "$dirpart/$file" && continue
22920 fdir
=`(dirname "$file") 2>/dev/null ||
22921 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22922 X"$file" : 'X\(//\)[^/]' \| \
22923 X"$file" : 'X\(//\)$' \| \
22924 X"$file" : 'X\(/\)' \| \
22925 . : '\(.\)' 2>/dev/null ||
22927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22928 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22929 /^X\(\/\/\)$/{ s//\1/; q; }
22930 /^X\(\/\).*/{ s//\1/; q; }
22932 { if $as_mkdir_p; then
22933 mkdir
-p $dirpart/$fdir
22935 as_dir
=$dirpart/$fdir
22937 while test ! -d "$as_dir"; do
22938 as_dirs
="$as_dir $as_dirs"
22939 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22940 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22941 X"$as_dir" : 'X\(//\)[^/]' \| \
22942 X"$as_dir" : 'X\(//\)$' \| \
22943 X"$as_dir" : 'X\(/\)' \| \
22944 . : '\(.\)' 2>/dev/null ||
22946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22947 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22948 /^X\(\/\/\)$/{ s//\1/; q; }
22949 /^X\(\/\).*/{ s//\1/; q; }
22952 test ! -n "$as_dirs" || mkdir
$as_dirs
22953 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22954 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22955 { (exit 1); exit 1; }; }; }
22957 # echo "creating $dirpart/$file"
22958 echo '# dummy' > "$dirpart/$file"
22964 sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile
>Makefile.tmp
22965 mv -f Makefile.tmp Makefile
22968 case x
$CONFIG_HEADERS in
22969 xconfig.h
:config.
in)
22977 cat >>$CONFIG_STATUS <<\_ACEOF
22979 { (exit 0); exit 0; }
22981 chmod +x
$CONFIG_STATUS
22982 ac_clean_files
=$ac_clean_files_save
22985 # configure is writing to config.log, and then calls config.status.
22986 # config.status does its own redirection, appending to config.log.
22987 # Unfortunately, on DOS this fails, as config.log is still kept open
22988 # by configure, so config.status won't be able to write to it; its
22989 # output is simply discarded. So we exec the FD to /dev/null,
22990 # effectively closing config.log, so it can be properly (re)opened and
22991 # appended to by config.status. When coming back to configure, we
22992 # need to make the FD available again.
22993 if test "$no_create" != yes; then
22995 ac_config_status_args
=
22996 test "$silent" = yes &&
22997 ac_config_status_args
="$ac_config_status_args --quiet"
22999 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23001 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23002 # would make configure fail if this is the last instruction.
23003 $ac_cs_success ||
{ (exit 1); exit 1; }
23007 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
23009 if test "$no_recursion" != yes; then
23011 # Remove --cache-file and --srcdir arguments so they do not pile up.
23012 ac_sub_configure_args
=
23014 eval "set x $ac_configure_args"
23018 if test -n "$ac_prev"; then
23023 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
23024 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
23025 ac_prev
=cache_file
;;
23026 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
23027 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
23030 --config-cache |
-C)
23032 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
23034 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
23036 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
23038 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
23042 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23044 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
23048 # Always prepend --prefix to ensure using the same prefix
23049 # in subdir configurations.
23050 ac_arg
="--prefix=$prefix"
23052 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23054 ac_sub_configure_args
="$ac_arg $ac_sub_configure_args"
23057 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
23059 # Do not complain, so a configure script can configure whichever
23060 # parts of a large source tree are present.
23061 test -d "$srcdir/$ac_dir" ||
continue
23063 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23064 echo "$as_me: configuring in $ac_dir" >&6;}
23065 { if $as_mkdir_p; then
23070 while test ! -d "$as_dir"; do
23071 as_dirs
="$as_dir $as_dirs"
23072 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23074 X"$as_dir" : 'X\(//\)[^/]' \| \
23075 X"$as_dir" : 'X\(//\)$' \| \
23076 X"$as_dir" : 'X\(/\)' \| \
23077 . : '\(.\)' 2>/dev/null ||
23079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23081 /^X\(\/\/\)$/{ s//\1/; q; }
23082 /^X\(\/\).*/{ s//\1/; q; }
23085 test ! -n "$as_dirs" || mkdir
$as_dirs
23086 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23087 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23088 { (exit 1); exit 1; }; }; }
23092 if test "$ac_dir" != .
; then
23093 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23094 # A "../" for each directory in $ac_dir_suffix.
23095 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23097 ac_dir_suffix
= ac_top_builddir
=
23101 .
) # No --srcdir option. We are building in place.
23103 if test -z "$ac_top_builddir"; then
23106 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23108 [\\/]* | ?
:[\\/]* ) # Absolute path.
23109 ac_srcdir
=$srcdir$ac_dir_suffix;
23110 ac_top_srcdir
=$srcdir ;;
23111 *) # Relative path.
23112 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23113 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23116 # Do not use `cd foo && pwd` to compute absolute paths, because
23117 # the directories may not exist.
23119 .
) ac_abs_builddir
="$ac_dir";;
23122 .
) ac_abs_builddir
=`pwd`;;
23123 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23124 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23127 case $ac_abs_builddir in
23128 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23130 case ${ac_top_builddir}.
in
23131 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23132 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23133 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23136 case $ac_abs_builddir in
23137 .
) ac_abs_srcdir
=$ac_srcdir;;
23140 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23141 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23142 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23145 case $ac_abs_builddir in
23146 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23148 case $ac_top_srcdir in
23149 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23150 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23151 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23158 # Check for guested configure; otherwise get Cygnus style configure.
23159 if test -f "$ac_srcdir/configure.gnu"; then
23160 ac_sub_configure
=$ac_srcdir/configure.gnu
23161 elif test -f "$ac_srcdir/configure"; then
23162 ac_sub_configure
=$ac_srcdir/configure
23163 elif test -f "$ac_srcdir/configure.in"; then
23164 # This should be Cygnus configure.
23165 ac_sub_configure
=$ac_aux_dir/configure
23167 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23168 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23172 # The recursion is here.
23173 if test -n "$ac_sub_configure"; then
23174 # Make the cache file name correct relative to the subdirectory.
23175 case $cache_file in
23176 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
23177 *) # Relative path.
23178 ac_sub_cache_file
=$ac_top_builddir$cache_file ;;
23181 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23182 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23183 # The eval makes quoting arguments work.
23184 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23185 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23186 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23187 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23188 { (exit 1); exit 1; }; }