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 GDB_NM_FILE 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=TARGETS
868 alternative target configurations
869 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
870 --disable-gdbcli disable command-line interface
(CLI
)
871 --disable-gdbmi disable machine-interface
(MI
)
872 --enable-tui enable full-screen terminal user interface
(TUI
)
873 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
874 --enable-profiling enable profiling of GDB
875 --disable-rpath do not hardcode runtime library paths
876 --enable-werror treat compile warnings as errors
877 --enable-build-warnings enable build-time compiler warnings
if gcc is used
878 --enable-gdb-build-warnings
879 enable GDB specific build-time compiler warnings
if
881 --enable-sim link gdb with simulator
882 --enable-multi-ice build the multi-ice-gdb-server
885 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
886 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
887 --with-separate-debug-dir=PATH
888 look for global separate debug info
in this path
890 --with-relocated-sources=PATH
891 automatically relocate this path
for source files
892 --with-libunwind use libunwind frame unwinding support
893 --with-curses use the curses library instead of the termcap
895 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
896 --with-bugurl=URL Direct users to URL to report a bug
897 --with-libiconv-prefix=DIR
898 search
for libiconv
in DIR
/include and DIR
/lib
899 --with-system-readline use installed readline library
900 --with-expat include expat support
(auto
/yes
/no
)
901 --with-gnu-ld assume the C compiler uses GNU ld default
=no
902 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
903 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
904 --with-python include python support (auto/yes/no/<path>)
905 --without-included-regex
906 don't use included regex
; this is the default on
907 systems with version
2 of the GNU C library
(use
908 with caution on other system
)
910 search
for usr
/lib et al within DIR
911 --with-system-gdbinit=FILE
912 automatically load a system-wide gdbinit
file
913 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
914 --with-tk directory containing tk configuration
(tkConfig.sh
)
915 --with-x use the X Window System
916 --with-datarootdir use datarootdir as the data root directory.
917 --with-docdir install documentation
in this directory.
918 --with-pdfdir install pdf
in this directory.
919 --with-htmldir install html
in this directory.
921 Some influential environment variables
:
922 CC C compiler
command
923 CFLAGS C compiler flags
924 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
925 nonstandard directory
<lib dir
>
926 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
927 headers
in a nonstandard directory
<include dir
>
930 Use these variables to override the choices made by
`configure' or to help
931 it to find libraries and programs with nonstandard names/locations.
936 if test "$ac_init_help" = "recursive"; then
937 # If there are subdirs, report their specific --help.
939 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
940 test -d $ac_dir || continue
943 if test "$ac_dir" != .; then
944 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
945 # A "../" for each directory in $ac_dir_suffix.
946 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
948 ac_dir_suffix= ac_top_builddir=
952 .) # No --srcdir option. We are building in place.
954 if test -z "$ac_top_builddir"; then
957 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
959 [\\/]* | ?:[\\/]* ) # Absolute path.
960 ac_srcdir=$srcdir$ac_dir_suffix;
961 ac_top_srcdir=$srcdir ;;
963 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
964 ac_top_srcdir=$ac_top_builddir$srcdir ;;
967 # Do not use `cd foo
&& pwd` to compute absolute paths, because
968 # the directories may not exist.
970 .) ac_abs_builddir="$ac_dir";;
973 .) ac_abs_builddir=`pwd`;;
974 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
975 *) ac_abs_builddir=`pwd`/"$ac_dir";;
978 case $ac_abs_builddir in
979 .) ac_abs_top_builddir=${ac_top_builddir}.;;
981 case ${ac_top_builddir}. in
982 .) ac_abs_top_builddir=$ac_abs_builddir;;
983 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
984 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
987 case $ac_abs_builddir in
988 .) ac_abs_srcdir=$ac_srcdir;;
991 .) ac_abs_srcdir=$ac_abs_builddir;;
992 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
993 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
996 case $ac_abs_builddir in
997 .) ac_abs_top_srcdir=$ac_top_srcdir;;
999 case $ac_top_srcdir in
1000 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1001 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1002 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1007 # Check for guested configure; otherwise get Cygnus style configure.
1008 if test -f $ac_srcdir/configure.gnu; then
1010 $SHELL $ac_srcdir/configure.gnu --help=recursive
1011 elif test -f $ac_srcdir/configure; then
1013 $SHELL $ac_srcdir/configure --help=recursive
1014 elif test -f $ac_srcdir/configure.ac ||
1015 test -f $ac_srcdir/configure.in; then
1017 $ac_configure --help
1019 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1025 test -n "$ac_init_help" && exit 0
1026 if $ac_init_version; then
1029 Copyright (C) 2003 Free Software Foundation, Inc.
1030 This configure script is free software; the Free Software Foundation
1031 gives unlimited permission to copy, distribute and modify it.
1037 This file contains any messages produced by compilers while
1038 running configure, to aid debugging if configure makes a mistake.
1040 It was created by $as_me, which was
1041 generated by GNU Autoconf 2.59. Invocation command line was
1052 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1053 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1054 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1055 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1056 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1058 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1059 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1061 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1062 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1063 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1064 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1065 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1066 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1067 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1075 test -z "$as_dir" && as_dir=.
1076 echo "PATH: $as_dir"
1091 # Keep a trace of the command line.
1092 # Strip out --no-create and --no-recursion so they do not pile up.
1093 # Strip out --silent because we don't want to record it for future runs.
1094 # Also quote any args containing shell meta-characters.
1095 # Make two passes to allow for proper duplicate-argument suppression.
1100 ac_must_keep_next=false
1106 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108 | -silent | --silent | --silen | --sile | --sil)
1110 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1111 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1114 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1116 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1117 if test $ac_must_keep_next = true; then
1118 ac_must_keep_next=false # Got value, back to normal.
1121 *=* | --config-cache | -C | -disable-* | --disable-* \
1122 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1123 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1124 | -with-* | --with-* | -without-* | --without-* | --x)
1125 case "$ac_configure_args0 " in
1126 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1129 -* ) ac_must_keep_next=true ;;
1132 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1133 # Get rid of the leading space.
1139 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1140 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1142 # When interrupted or exit'd, cleanup temporary files, and complete
1143 # config.log. We remove comments because anyway the quotes in there
1144 # would cause problems or look ugly.
1145 # WARNING: Be sure not to use single quotes in there, as some shells,
1146 # such as our DU 5.0 friend, will then `close
' the trap.
1147 trap 'exit_status
=$?
1148 # Save into config.log some information that might help in debugging.
1153 ## ---------------- ##
1154 ## Cache variables. ##
1155 ## ---------------- ##
1158 # The following way of writing the cache mishandles newlines in values,
1161 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1164 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1165 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1169 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1176 ## ----------------- ##
1177 ## Output variables. ##
1178 ## ----------------- ##
1181 for ac_var
in $ac_subst_vars
1183 eval ac_val
=$
`echo $ac_var`
1184 echo "$ac_var='"'"'$ac_val'"'"'"
1188 if test -n "$ac_subst_files"; then
1195 for ac_var
in $ac_subst_files
1197 eval ac_val
=$
`echo $ac_var`
1198 echo "$ac_var='"'"'$ac_val'"'"'"
1203 if test -s confdefs.h
; then
1210 sed "/^$/d" confdefs.h |
sort
1213 test "$ac_signal" != 0 &&
1214 echo "$as_me: caught signal $ac_signal"
1215 echo "$as_me: exit $exit_status"
1217 rm -f core
*.core
&&
1218 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1221 for ac_signal in 1 2 13 15; do
1222 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1226 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1227 rm -rf conftest* confdefs.h
1228 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1231 # Predefined preprocessor variables.
1233 cat >>confdefs.h <<_ACEOF
1234 #define PACKAGE_NAME "$PACKAGE_NAME"
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1243 cat >>confdefs.h <<_ACEOF
1244 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_STRING "$PACKAGE_STRING"
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1258 # Let the site file select an alternate cache file if it wants to.
1259 # Prefer explicitly selected file to automatically selected ones.
1260 if test -z "$CONFIG_SITE"; then
1261 if test "x$prefix" != xNONE; then
1262 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1264 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1267 for ac_site_file in $CONFIG_SITE; do
1268 if test -r "$ac_site_file"; then
1269 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1270 echo "$as_me: loading site script $ac_site_file" >&6;}
1271 sed 's
/^
/|
/' "$ac_site_file" >&5
1276 if test -r "$cache_file"; then
1277 # Some versions of bash will fail to source /dev/null (special
1278 # files actually), so we avoid doing that.
1279 if test -f "$cache_file"; then
1280 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1281 echo "$as_me: loading cache $cache_file" >&6;}
1283 [\\/]* | ?:[\\/]* ) . $cache_file;;
1284 *) . ./$cache_file;;
1288 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1289 echo "$as_me: creating cache $cache_file" >&6;}
1293 # Check that the precious variables saved in the cache have kept the same
1295 ac_cache_corrupted=false
1296 for ac_var in `(set) 2>&1 |
1297 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1298 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1299 eval ac_new_set=\$ac_env_${ac_var}_set
1300 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1301 eval ac_new_val="\$ac_env_${ac_var}_value"
1302 case $ac_old_set,$ac_new_set in
1304 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1305 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1306 ac_cache_corrupted=: ;;
1308 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1309 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1310 ac_cache_corrupted=: ;;
1313 if test "x$ac_old_val" != "x$ac_new_val"; then
1314 # differences in whitespace do not lead to failure.
1315 ac_old_val_w=`echo x $ac_old_val`
1316 ac_new_val_w=`echo x $ac_new_val`
1317 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1318 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1319 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1320 ac_cache_corrupted=:
1322 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1323 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run
:" >&2;}
1324 eval $ac_var=\$ac_old_val
1326 { echo "$as_me:$LINENO: former value
: \
`$ac_old_val'" >&5
1327 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1328 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1329 echo "$as_me: current value
: \
`$ac_new_val'" >&2;}
1332 # Pass precious variables to config.status.
1333 if test "$ac_new_set" = set; then
1335 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1336 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1337 *) ac_arg=$ac_var=$ac_new_val ;;
1339 case " $ac_configure_args " in
1340 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1341 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1345 if $ac_cache_corrupted; then
1346 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1347 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1348 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1349 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1350 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1351 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1352 { (exit 1); exit 1; }; }
1356 ac_cpp='$CPP $CPPFLAGS'
1357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1362 gl_header_list="$gl_header_list stdint.h"
1363 gl_header_list="$gl_header_list wchar.h"
1364 gl_header_list="$gl_header_list string.h"
1385 ac_config_headers="$ac_config_headers config.h:config.in"
1387 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1388 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1389 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1390 if test "${enable_maintainer_mode+set}" = set; then
1391 enableval="$enable_maintainer_mode"
1392 USE_MAINTAINER_MODE=$enableval
1394 USE_MAINTAINER_MODE=no
1396 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1397 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1400 if test $USE_MAINTAINER_MODE = yes; then
1401 MAINTAINER_MODE_TRUE=
1402 MAINTAINER_MODE_FALSE='#'
1404 MAINTAINER_MODE_TRUE='#'
1405 MAINTAINER_MODE_FALSE=
1408 MAINT=$MAINTAINER_MODE_TRUE
1413 ac_cpp='$CPP $CPPFLAGS'
1414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1417 if test -n "$ac_tool_prefix"; then
1418 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1419 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1420 echo "$as_me:$LINENO: checking for $ac_word" >&5
1421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1422 if test "${ac_cv_prog_CC+set}" = set; then
1423 echo $ECHO_N "(cached) $ECHO_C" >&6
1425 if test -n "$CC"; then
1426 ac_cv_prog_CC="$CC" # Let the user override the test.
1428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432 test -z "$as_dir" && as_dir=.
1433 for ac_exec_ext in '' $ac_executable_extensions; do
1434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1435 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1445 if test -n "$CC"; then
1446 echo "$as_me:$LINENO: result: $CC" >&5
1447 echo "${ECHO_T}$CC" >&6
1449 echo "$as_me:$LINENO: result: no" >&5
1450 echo "${ECHO_T}no" >&6
1454 if test -z "$ac_cv_prog_CC"; then
1456 # Extract the first word of "gcc", so it can be a program name with args.
1457 set dummy gcc; ac_word=$2
1458 echo "$as_me:$LINENO: checking for $ac_word" >&5
1459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1460 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1461 echo $ECHO_N "(cached) $ECHO_C" >&6
1463 if test -n "$ac_ct_CC"; then
1464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1470 test -z "$as_dir" && as_dir=.
1471 for ac_exec_ext in '' $ac_executable_extensions; do
1472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1473 ac_cv_prog_ac_ct_CC="gcc"
1474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1482 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1483 if test -n "$ac_ct_CC"; then
1484 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1485 echo "${ECHO_T}$ac_ct_CC" >&6
1487 echo "$as_me:$LINENO: result: no" >&5
1488 echo "${ECHO_T}no" >&6
1496 if test -z "$CC"; then
1497 if test -n "$ac_tool_prefix"; then
1498 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1499 set dummy ${ac_tool_prefix}cc; ac_word=$2
1500 echo "$as_me:$LINENO: checking for $ac_word" >&5
1501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1502 if test "${ac_cv_prog_CC+set}" = set; then
1503 echo $ECHO_N "(cached) $ECHO_C" >&6
1505 if test -n "$CC"; then
1506 ac_cv_prog_CC="$CC" # Let the user override the test.
1508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512 test -z "$as_dir" && as_dir=.
1513 for ac_exec_ext in '' $ac_executable_extensions; do
1514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1515 ac_cv_prog_CC="${ac_tool_prefix}cc"
1516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1525 if test -n "$CC"; then
1526 echo "$as_me:$LINENO: result: $CC" >&5
1527 echo "${ECHO_T}$CC" >&6
1529 echo "$as_me:$LINENO: result: no" >&5
1530 echo "${ECHO_T}no" >&6
1534 if test -z "$ac_cv_prog_CC"; then
1536 # Extract the first word of "cc", so it can be a program name with args.
1537 set dummy cc; ac_word=$2
1538 echo "$as_me:$LINENO: checking for $ac_word" >&5
1539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1540 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1541 echo $ECHO_N "(cached) $ECHO_C" >&6
1543 if test -n "$ac_ct_CC"; then
1544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550 test -z "$as_dir" && as_dir=.
1551 for ac_exec_ext in '' $ac_executable_extensions; do
1552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1553 ac_cv_prog_ac_ct_CC="cc"
1554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1563 if test -n "$ac_ct_CC"; then
1564 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1565 echo "${ECHO_T}$ac_ct_CC" >&6
1567 echo "$as_me:$LINENO: result: no" >&5
1568 echo "${ECHO_T}no" >&6
1577 if test -z "$CC"; then
1578 # Extract the first word of "cc", so it can be a program name with args.
1579 set dummy cc; ac_word=$2
1580 echo "$as_me:$LINENO: checking for $ac_word" >&5
1581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1582 if test "${ac_cv_prog_CC+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 if test -n "$CC"; then
1586 ac_cv_prog_CC="$CC" # Let the user override the test.
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 test -z "$as_dir" && as_dir=.
1594 for ac_exec_ext in '' $ac_executable_extensions; do
1595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1596 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1597 ac_prog_rejected=yes
1601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607 if test $ac_prog_rejected = yes; then
1608 # We found a bogon in the path, so make sure we never use it.
1609 set dummy $ac_cv_prog_CC
1611 if test $# != 0; then
1612 # We chose a different compiler from the bogus one.
1613 # However, it has the same basename, so the bogon will be chosen
1614 # first if we set CC to just the basename; use the full file name.
1616 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1622 if test -n "$CC"; then
1623 echo "$as_me:$LINENO: result: $CC" >&5
1624 echo "${ECHO_T}$CC" >&6
1626 echo "$as_me:$LINENO: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1631 if test -z "$CC"; then
1632 if test -n "$ac_tool_prefix"; then
1635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 if test -n "$CC"; then
1643 ac_cv_prog_CC="$CC" # Let the user override the test.
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 if test -n "$CC"; then
1663 echo "$as_me:$LINENO: result: $CC" >&5
1664 echo "${ECHO_T}$CC" >&6
1666 echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1670 test -n "$CC" && break
1673 if test -z "$CC"; then
1677 # Extract the first word of "$ac_prog", so it can be a program name with args.
1678 set dummy $ac_prog; ac_word=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1684 if test -n "$ac_ct_CC"; then
1685 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 test -z "$as_dir" && as_dir=.
1692 for ac_exec_ext in '' $ac_executable_extensions; do
1693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694 ac_cv_prog_ac_ct_CC="$ac_prog"
1695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1704 if test -n "$ac_ct_CC"; then
1705 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1706 echo "${ECHO_T}$ac_ct_CC" >&6
1708 echo "$as_me:$LINENO: result: no" >&5
1709 echo "${ECHO_T}no" >&6
1712 test -n "$ac_ct_CC" && break
1721 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1722 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1723 { { echo "$as_me:$LINENO: error
: no acceptable C compiler found
in \
$PATH
1724 See \
`config.log' for more details." >&5
1725 echo "$as_me: error: no acceptable C compiler found in \$PATH
1726 See \`config.log
' for more details." >&2;}
1727 { (exit 1); exit 1; }; }; }
1729 # Provide some information about the compiler.
1730 echo "$as_me:$LINENO:" \
1731 "checking for C compiler version" >&5
1732 ac_compiler=`set X $ac_compile; echo $2`
1733 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1734 (eval $ac_compiler --version </dev/null >&5) 2>&5
1736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1737 (exit $ac_status); }
1738 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1739 (eval $ac_compiler -v </dev/null >&5) 2>&5
1741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1742 (exit $ac_status); }
1743 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1744 (eval $ac_compiler -V </dev/null >&5) 2>&5
1746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1747 (exit $ac_status); }
1749 cat >conftest.$ac_ext <<_ACEOF
1752 cat confdefs.h >>conftest.$ac_ext
1753 cat >>conftest.$ac_ext <<_ACEOF
1754 /* end confdefs.h. */
1764 ac_clean_files_save=$ac_clean_files
1765 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1766 # Try to create an executable without -o first, disregard a.out.
1767 # It will help us diagnose broken compilers, and finding out an intuition
1769 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1770 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1771 ac_link_default=`echo "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
1772 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1773 (eval $ac_link_default) 2>&5
1775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1776 (exit $ac_status); }; then
1777 # Find the output, starting from the most likely. This scheme is
1778 # not robust to junk in `.', hence go to wildcards
(a.
*) only as a last
1781 # Be careful to initialize this variable, since it used to be cached.
1782 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1784 # b.out is created by i960 compilers.
1785 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1787 test -f "$ac_file" ||
continue
1789 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1792 # This is the source file.
1795 # We found the default executable, but exeext='' is most
1799 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1800 # FIXME: I believe we export ac_cv_exeext for Libtool,
1801 # but it would be cool to find out if it's true. Does anybody
1802 # maintain Libtool? --akim.
1810 echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.
$ac_ext >&5
1813 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1814 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1815 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1816 See \`config.log' for more details." >&5
1817 echo "$as_me: error: C compiler cannot create executables
1818 See \`config.log' for more details." >&2;}
1819 { (exit 77); exit 77; }; }; }
1822 ac_exeext
=$ac_cv_exeext
1823 echo "$as_me:$LINENO: result: $ac_file" >&5
1824 echo "${ECHO_T}$ac_file" >&6
1826 # Check the compiler produces executables we can run. If not, either
1827 # the compiler is broken, or we cross compile.
1828 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1829 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1830 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1831 # If not cross compiling, check that we can run a simple program.
1832 if test "$cross_compiling" != yes; then
1833 if { ac_try
='./$ac_file'
1834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838 (exit $ac_status); }; }; then
1841 if test "$cross_compiling" = maybe
; then
1844 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1845 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1846 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1847 If you meant to cross compile, use \`--host'.
1848 See \`config.log' for more details." >&5
1849 echo "$as_me: error: cannot run C compiled programs.
1850 If you meant to cross compile, use \`--host'.
1851 See \`config.log' for more details." >&2;}
1852 { (exit 1); exit 1; }; }; }
1856 echo "$as_me:$LINENO: result: yes" >&5
1857 echo "${ECHO_T}yes" >&6
1859 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1860 ac_clean_files
=$ac_clean_files_save
1861 # Check the compiler produces executables we can run. If not, either
1862 # the compiler is broken, or we cross compile.
1863 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1864 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1865 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1866 echo "${ECHO_T}$cross_compiling" >&6
1868 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1869 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1871 (eval $ac_link) 2>&5
1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874 (exit $ac_status); }; then
1875 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1876 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1877 # work properly (i.e., refer to `conftest.exe'), while it won't with
1879 for ac_file
in conftest.exe conftest conftest.
*; do
1880 test -f "$ac_file" ||
continue
1882 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1883 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1890 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1891 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1892 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1893 See \`config.log' for more details." >&5
1894 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1895 See \`config.log' for more details." >&2;}
1896 { (exit 1); exit 1; }; }; }
1899 rm -f conftest
$ac_cv_exeext
1900 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1901 echo "${ECHO_T}$ac_cv_exeext" >&6
1903 rm -f conftest.
$ac_ext
1904 EXEEXT
=$ac_cv_exeext
1906 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1907 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1908 if test "${ac_cv_objext+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
1911 cat >conftest.
$ac_ext <<_ACEOF
1914 cat confdefs.h
>>conftest.
$ac_ext
1915 cat >>conftest.
$ac_ext <<_ACEOF
1916 /* end confdefs.h. */
1926 rm -f conftest.o conftest.obj
1927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1928 (eval $ac_compile) 2>&5
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931 (exit $ac_status); }; then
1932 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1934 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1935 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1940 echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.
$ac_ext >&5
1943 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1944 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1945 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1946 See \`config.log' for more details." >&5
1947 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1948 See \`config.log' for more details." >&2;}
1949 { (exit 1); exit 1; }; }; }
1952 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1954 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1955 echo "${ECHO_T}$ac_cv_objext" >&6
1956 OBJEXT
=$ac_cv_objext
1958 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1959 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1960 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1963 cat >conftest.
$ac_ext <<_ACEOF
1966 cat confdefs.h
>>conftest.
$ac_ext
1967 cat >>conftest.
$ac_ext <<_ACEOF
1968 /* end confdefs.h. */
1981 rm -f conftest.
$ac_objext
1982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1983 (eval $ac_compile) 2>conftest.er1
1985 grep -v '^ *+' conftest.er1
>conftest.err
1987 cat conftest.err
>&5
1988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989 (exit $ac_status); } &&
1990 { ac_try
='test -z "$ac_c_werror_flag"
1991 || test ! -s conftest.err'
1992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); }; } &&
1997 { ac_try
='test -s conftest.$ac_objext'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; }; then
2005 echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.
$ac_ext >&5
2010 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2011 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2014 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2015 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2016 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2017 ac_test_CFLAGS
=${CFLAGS+set}
2018 ac_save_CFLAGS
=$CFLAGS
2020 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2021 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2022 if test "${ac_cv_prog_cc_g+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 cat >conftest.
$ac_ext <<_ACEOF
2028 cat confdefs.h
>>conftest.
$ac_ext
2029 cat >>conftest.
$ac_ext <<_ACEOF
2030 /* end confdefs.h. */
2040 rm -f conftest.
$ac_objext
2041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2042 (eval $ac_compile) 2>conftest.er1
2044 grep -v '^ *+' conftest.er1
>conftest.err
2046 cat conftest.err
>&5
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); } &&
2049 { ac_try
='test -z "$ac_c_werror_flag"
2050 || test ! -s conftest.err'
2051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); }; } &&
2056 { ac_try
='test -s conftest.$ac_objext'
2057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; }; then
2064 echo "$as_me: failed program was:" >&5
2065 sed 's/^/| /' conftest.
$ac_ext >&5
2069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2071 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2072 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2073 if test "$ac_test_CFLAGS" = set; then
2074 CFLAGS
=$ac_save_CFLAGS
2075 elif test $ac_cv_prog_cc_g = yes; then
2076 if test "$GCC" = yes; then
2082 if test "$GCC" = yes; then
2088 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2089 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2090 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 ac_cv_prog_cc_stdc
=no
2095 cat >conftest.
$ac_ext <<_ACEOF
2098 cat confdefs.h
>>conftest.
$ac_ext
2099 cat >>conftest.
$ac_ext <<_ACEOF
2100 /* end confdefs.h. */
2103 #include <sys/types.h>
2104 #include <sys/stat.h>
2105 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2106 struct buf { int x; };
2107 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2108 static char *e (p, i)
2114 static char *f (char * (*g) (char **, int), char **p, ...)
2119 s = g (p, va_arg (v,int));
2124 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2125 function prototypes and stuff, but not '\xHH' hex character constants.
2126 These don't provoke an error unfortunately, instead are silently treated
2127 as 'x'. The following induces an error, until -std1 is added to get
2128 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2129 array size at least. It's necessary to write '\x00'==0 to get something
2130 that's true only with -std1. */
2131 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2133 int test (int i, double x);
2134 struct s1 {int (*f) (int a);};
2135 struct s2 {int (*f) (double a);};
2136 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2142 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2147 # Don't try gcc -ansi; that turns off useful extensions and
2148 # breaks some systems' header files.
2149 # AIX -qlanglvl=ansi
2150 # Ultrix and OSF/1 -std1
2151 # HP-UX 10.20 and later -Ae
2152 # HP-UX older versions -Aa -D_HPUX_SOURCE
2153 # SVR4 -Xc -D__EXTENSIONS__
2154 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2156 CC
="$ac_save_CC $ac_arg"
2157 rm -f conftest.
$ac_objext
2158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2159 (eval $ac_compile) 2>conftest.er1
2161 grep -v '^ *+' conftest.er1
>conftest.err
2163 cat conftest.err
>&5
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); } &&
2166 { ac_try
='test -z "$ac_c_werror_flag"
2167 || test ! -s conftest.err'
2168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; } &&
2173 { ac_try
='test -s conftest.$ac_objext'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; }; then
2179 ac_cv_prog_cc_stdc
=$ac_arg
2182 echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.
$ac_ext >&5
2186 rm -f conftest.err conftest.
$ac_objext
2188 rm -f conftest.
$ac_ext conftest.
$ac_objext
2193 case "x$ac_cv_prog_cc_stdc" in
2195 echo "$as_me:$LINENO: result: none needed" >&5
2196 echo "${ECHO_T}none needed" >&6 ;;
2198 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2199 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2200 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2203 # Some people use a C++ compiler to compile C. Since we use `exit',
2204 # in C++ we need to declare it. In case someone uses the same compiler
2205 # for both compiling C and C++ we need to have the C++ compiler decide
2206 # the declaration of exit, since it's the most demanding environment.
2207 cat >conftest.
$ac_ext <<_ACEOF
2212 rm -f conftest.
$ac_objext
2213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2214 (eval $ac_compile) 2>conftest.er1
2216 grep -v '^ *+' conftest.er1
>conftest.err
2218 cat conftest.err
>&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); } &&
2221 { ac_try
='test -z "$ac_c_werror_flag"
2222 || test ! -s conftest.err'
2223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; } &&
2228 { ac_try
='test -s conftest.$ac_objext'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; }; then
2234 for ac_declaration
in \
2236 'extern "C" void std::exit (int) throw (); using std::exit;' \
2237 'extern "C" void std::exit (int); using std::exit;' \
2238 'extern "C" void exit (int) throw ();' \
2239 'extern "C" void exit (int);' \
2242 cat >conftest.
$ac_ext <<_ACEOF
2245 cat confdefs.h
>>conftest.
$ac_ext
2246 cat >>conftest.
$ac_ext <<_ACEOF
2247 /* end confdefs.h. */
2258 rm -f conftest.
$ac_objext
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260 (eval $ac_compile) 2>conftest.er1
2262 grep -v '^ *+' conftest.er1
>conftest.err
2264 cat conftest.err
>&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); } &&
2267 { ac_try
='test -z "$ac_c_werror_flag"
2268 || test ! -s conftest.err'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; } &&
2274 { ac_try
='test -s conftest.$ac_objext'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; }; then
2282 echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.
$ac_ext >&5
2287 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2288 cat >conftest.
$ac_ext <<_ACEOF
2291 cat confdefs.h
>>conftest.
$ac_ext
2292 cat >>conftest.
$ac_ext <<_ACEOF
2293 /* end confdefs.h. */
2303 rm -f conftest.
$ac_objext
2304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2305 (eval $ac_compile) 2>conftest.er1
2307 grep -v '^ *+' conftest.er1
>conftest.err
2309 cat conftest.err
>&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); } &&
2312 { ac_try
='test -z "$ac_c_werror_flag"
2313 || test ! -s conftest.err'
2314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; } &&
2319 { ac_try
='test -s conftest.$ac_objext'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.
$ac_ext >&5
2331 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2334 if test -n "$ac_declaration"; then
2335 echo '#ifdef __cplusplus' >>confdefs.h
2336 echo $ac_declaration >>confdefs.h
2337 echo '#endif' >>confdefs.h
2341 echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.
$ac_ext >&5
2345 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2347 ac_cpp
='$CPP $CPPFLAGS'
2348 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2353 cat >>confdefs.h
<<\_ACEOF
2354 #define _GNU_SOURCE 1
2360 ac_cpp
='$CPP $CPPFLAGS'
2361 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2364 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2365 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2366 # On Suns, sometimes $CPP names a directory.
2367 if test -n "$CPP" && test -d "$CPP"; then
2370 if test -z "$CPP"; then
2371 if test "${ac_cv_prog_CPP+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 # Double quotes because CPP needs to be expanded
2375 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2378 for ac_c_preproc_warn_flag
in '' yes
2380 # Use a header file that comes with gcc, so configuring glibc
2381 # with a fresh cross-compiler works.
2382 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2383 # <limits.h> exists even on freestanding compilers.
2384 # On the NeXT, cc -E runs the code through the compiler's parser,
2385 # not just through cpp. "Syntax error" is here to catch this case.
2386 cat >conftest.
$ac_ext <<_ACEOF
2389 cat confdefs.h
>>conftest.
$ac_ext
2390 cat >>conftest.
$ac_ext <<_ACEOF
2391 /* end confdefs.h. */
2393 # include <limits.h>
2395 # include <assert.h>
2399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2400 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2402 grep -v '^ *+' conftest.er1
>conftest.err
2404 cat conftest.err
>&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } >/dev
/null
; then
2407 if test -s conftest.err
; then
2408 ac_cpp_err
=$ac_c_preproc_warn_flag
2409 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2416 if test -z "$ac_cpp_err"; then
2419 echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.
$ac_ext >&5
2422 # Broken: fails on valid input.
2425 rm -f conftest.err conftest.
$ac_ext
2427 # OK, works on sane cases. Now check whether non-existent headers
2428 # can be detected and how.
2429 cat >conftest.
$ac_ext <<_ACEOF
2432 cat confdefs.h
>>conftest.
$ac_ext
2433 cat >>conftest.
$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2435 #include <ac_nonexistent.h>
2437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2438 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2440 grep -v '^ *+' conftest.er1
>conftest.err
2442 cat conftest.err
>&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); } >/dev
/null
; then
2445 if test -s conftest.err
; then
2446 ac_cpp_err
=$ac_c_preproc_warn_flag
2447 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2454 if test -z "$ac_cpp_err"; then
2455 # Broken: success on invalid input.
2458 echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.
$ac_ext >&5
2461 # Passes both tests.
2465 rm -f conftest.err conftest.
$ac_ext
2468 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2469 rm -f conftest.err conftest.
$ac_ext
2470 if $ac_preproc_ok; then
2482 echo "$as_me:$LINENO: result: $CPP" >&5
2483 echo "${ECHO_T}$CPP" >&6
2485 for ac_c_preproc_warn_flag
in '' yes
2487 # Use a header file that comes with gcc, so configuring glibc
2488 # with a fresh cross-compiler works.
2489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2490 # <limits.h> exists even on freestanding compilers.
2491 # On the NeXT, cc -E runs the code through the compiler's parser,
2492 # not just through cpp. "Syntax error" is here to catch this case.
2493 cat >conftest.
$ac_ext <<_ACEOF
2496 cat confdefs.h
>>conftest.
$ac_ext
2497 cat >>conftest.
$ac_ext <<_ACEOF
2498 /* end confdefs.h. */
2500 # include <limits.h>
2502 # include <assert.h>
2506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2507 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2509 grep -v '^ *+' conftest.er1
>conftest.err
2511 cat conftest.err
>&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); } >/dev
/null
; then
2514 if test -s conftest.err
; then
2515 ac_cpp_err
=$ac_c_preproc_warn_flag
2516 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2523 if test -z "$ac_cpp_err"; then
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.
$ac_ext >&5
2529 # Broken: fails on valid input.
2532 rm -f conftest.err conftest.
$ac_ext
2534 # OK, works on sane cases. Now check whether non-existent headers
2535 # can be detected and how.
2536 cat >conftest.
$ac_ext <<_ACEOF
2539 cat confdefs.h
>>conftest.
$ac_ext
2540 cat >>conftest.
$ac_ext <<_ACEOF
2541 /* end confdefs.h. */
2542 #include <ac_nonexistent.h>
2544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2545 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2547 grep -v '^ *+' conftest.er1
>conftest.err
2549 cat conftest.err
>&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); } >/dev
/null
; then
2552 if test -s conftest.err
; then
2553 ac_cpp_err
=$ac_c_preproc_warn_flag
2554 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2561 if test -z "$ac_cpp_err"; then
2562 # Broken: success on invalid input.
2565 echo "$as_me: failed program was:" >&5
2566 sed 's/^/| /' conftest.
$ac_ext >&5
2568 # Passes both tests.
2572 rm -f conftest.err conftest.
$ac_ext
2575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2576 rm -f conftest.err conftest.
$ac_ext
2577 if $ac_preproc_ok; then
2580 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2581 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2582 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2583 See \`config.log' for more details." >&5
2584 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2585 See \`config.log' for more details." >&2;}
2586 { (exit 1); exit 1; }; }; }
2590 ac_cpp
='$CPP $CPPFLAGS'
2591 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2596 echo "$as_me:$LINENO: checking for egrep" >&5
2597 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2598 if test "${ac_cv_prog_egrep+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2602 then ac_cv_prog_egrep
='grep -E'
2603 else ac_cv_prog_egrep
='egrep'
2606 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2607 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2608 EGREP
=$ac_cv_prog_egrep
2612 echo "$as_me:$LINENO: checking for AIX" >&5
2613 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2614 cat >conftest.
$ac_ext <<_ACEOF
2617 cat confdefs.h
>>conftest.
$ac_ext
2618 cat >>conftest.
$ac_ext <<_ACEOF
2619 /* end confdefs.h. */
2625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2626 $EGREP "yes" >/dev
/null
2>&1; then
2627 echo "$as_me:$LINENO: result: yes" >&5
2628 echo "${ECHO_T}yes" >&6
2629 cat >>confdefs.h
<<\_ACEOF
2630 #define _ALL_SOURCE 1
2634 echo "$as_me:$LINENO: result: no" >&5
2635 echo "${ECHO_T}no" >&6
2640 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2641 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2642 if test "${ac_cv_search_strerror+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 ac_func_search_save_LIBS
=$LIBS
2646 ac_cv_search_strerror
=no
2647 cat >conftest.
$ac_ext <<_ACEOF
2650 cat confdefs.h
>>conftest.
$ac_ext
2651 cat >>conftest.
$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2654 /* Override any gcc2 internal prototype to avoid an error. */
2658 /* We use char because int might match the return type of a gcc2
2659 builtin and then its argument prototype would still apply. */
2669 rm -f conftest.
$ac_objext conftest
$ac_exeext
2670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2671 (eval $ac_link) 2>conftest.er1
2673 grep -v '^ *+' conftest.er1
>conftest.err
2675 cat conftest.err
>&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } &&
2678 { ac_try
='test -z "$ac_c_werror_flag"
2679 || test ! -s conftest.err'
2680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; } &&
2685 { ac_try
='test -s conftest$ac_exeext'
2686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; }; then
2691 ac_cv_search_strerror
="none required"
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.
$ac_ext >&5
2697 rm -f conftest.err conftest.
$ac_objext \
2698 conftest
$ac_exeext conftest.
$ac_ext
2699 if test "$ac_cv_search_strerror" = no
; then
2700 for ac_lib
in cposix
; do
2701 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
2702 cat >conftest.
$ac_ext <<_ACEOF
2705 cat confdefs.h
>>conftest.
$ac_ext
2706 cat >>conftest.
$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2709 /* Override any gcc2 internal prototype to avoid an error. */
2713 /* We use char because int might match the return type of a gcc2
2714 builtin and then its argument prototype would still apply. */
2724 rm -f conftest.
$ac_objext conftest
$ac_exeext
2725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2726 (eval $ac_link) 2>conftest.er1
2728 grep -v '^ *+' conftest.er1
>conftest.err
2730 cat conftest.err
>&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } &&
2733 { ac_try
='test -z "$ac_c_werror_flag"
2734 || test ! -s conftest.err'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; } &&
2740 { ac_try
='test -s conftest$ac_exeext'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; }; then
2746 ac_cv_search_strerror
="-l$ac_lib"
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.
$ac_ext >&5
2753 rm -f conftest.err conftest.
$ac_objext \
2754 conftest
$ac_exeext conftest.
$ac_ext
2757 LIBS
=$ac_func_search_save_LIBS
2759 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2760 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2761 if test "$ac_cv_search_strerror" != no
; then
2762 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
2766 if test -n "$ac_tool_prefix"; then
2767 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2768 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2769 echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2771 if test "${ac_cv_prog_RANLIB+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 if test -n "$RANLIB"; then
2775 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2781 test -z "$as_dir" && as_dir
=.
2782 for ac_exec_ext
in '' $ac_executable_extensions; do
2783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2784 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 RANLIB
=$ac_cv_prog_RANLIB
2794 if test -n "$RANLIB"; then
2795 echo "$as_me:$LINENO: result: $RANLIB" >&5
2796 echo "${ECHO_T}$RANLIB" >&6
2798 echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6
2803 if test -z "$ac_cv_prog_RANLIB"; then
2804 ac_ct_RANLIB
=$RANLIB
2805 # Extract the first word of "ranlib", so it can be a program name with args.
2806 set dummy ranlib
; ac_word
=$2
2807 echo "$as_me:$LINENO: checking for $ac_word" >&5
2808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2809 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 if test -n "$ac_ct_RANLIB"; then
2813 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2819 test -z "$as_dir" && as_dir
=.
2820 for ac_exec_ext
in '' $ac_executable_extensions; do
2821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2832 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2833 if test -n "$ac_ct_RANLIB"; then
2834 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2835 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2837 echo "$as_me:$LINENO: result: no" >&5
2838 echo "${ECHO_T}no" >&6
2841 RANLIB
=$ac_ct_RANLIB
2843 RANLIB
="$ac_cv_prog_RANLIB"
2846 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2847 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2848 if test "${ac_cv_header_stdc+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2851 cat >conftest.
$ac_ext <<_ACEOF
2854 cat confdefs.h
>>conftest.
$ac_ext
2855 cat >>conftest.
$ac_ext <<_ACEOF
2856 /* end confdefs.h. */
2870 rm -f conftest.
$ac_objext
2871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872 (eval $ac_compile) 2>conftest.er1
2874 grep -v '^ *+' conftest.er1
>conftest.err
2876 cat conftest.err
>&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); } &&
2879 { ac_try
='test -z "$ac_c_werror_flag"
2880 || test ! -s conftest.err'
2881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; } &&
2886 { ac_try
='test -s conftest.$ac_objext'
2887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; }; then
2892 ac_cv_header_stdc
=yes
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.
$ac_ext >&5
2897 ac_cv_header_stdc
=no
2899 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2901 if test $ac_cv_header_stdc = yes; then
2902 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2903 cat >conftest.
$ac_ext <<_ACEOF
2906 cat confdefs.h
>>conftest.
$ac_ext
2907 cat >>conftest.
$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2913 $EGREP "memchr" >/dev
/null
2>&1; then
2916 ac_cv_header_stdc
=no
2922 if test $ac_cv_header_stdc = yes; then
2923 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2924 cat >conftest.
$ac_ext <<_ACEOF
2927 cat confdefs.h
>>conftest.
$ac_ext
2928 cat >>conftest.
$ac_ext <<_ACEOF
2929 /* end confdefs.h. */
2933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2934 $EGREP "free" >/dev
/null
2>&1; then
2937 ac_cv_header_stdc
=no
2943 if test $ac_cv_header_stdc = yes; then
2944 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2945 if test "$cross_compiling" = yes; then
2948 cat >conftest.
$ac_ext <<_ACEOF
2951 cat confdefs.h
>>conftest.
$ac_ext
2952 cat >>conftest.
$ac_ext <<_ACEOF
2953 /* end confdefs.h. */
2955 #if ((' ' & 0x0FF) == 0x020)
2956 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2957 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2959 # define ISLOWER(c) \
2960 (('a' <= (c) && (c) <= 'i') \
2961 || ('j' <= (c) && (c) <= 'r') \
2962 || ('s' <= (c) && (c) <= 'z'))
2963 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2966 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2971 for (i = 0; i < 256; i++)
2972 if (XOR (islower (i), ISLOWER (i))
2973 || toupper (i) != TOUPPER (i))
2978 rm -f conftest
$ac_exeext
2979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2980 (eval $ac_link) 2>&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; }; then
2991 echo "$as_me: program exited with status $ac_status" >&5
2992 echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.
$ac_ext >&5
2996 ac_cv_header_stdc
=no
2998 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3002 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3003 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3004 if test $ac_cv_header_stdc = yes; then
3006 cat >>confdefs.h
<<\_ACEOF
3007 #define STDC_HEADERS 1
3012 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3022 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3023 inttypes.h stdint.h unistd.h
3025 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3026 echo "$as_me:$LINENO: checking for $ac_header" >&5
3027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 cat >conftest.
$ac_ext <<_ACEOF
3034 cat confdefs.h
>>conftest.
$ac_ext
3035 cat >>conftest.
$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3037 $ac_includes_default
3039 #include <$ac_header>
3041 rm -f conftest.
$ac_objext
3042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3043 (eval $ac_compile) 2>conftest.er1
3045 grep -v '^ *+' conftest.er1
>conftest.err
3047 cat conftest.err
>&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
3050 { ac_try
='test -z "$ac_c_werror_flag"
3051 || test ! -s conftest.err'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; } &&
3057 { ac_try
='test -s conftest.$ac_objext'
3058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; }; then
3063 eval "$as_ac_Header=yes"
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.
$ac_ext >&5
3068 eval "$as_ac_Header=no"
3070 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3075 cat >>confdefs.h
<<_ACEOF
3076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3085 if test "${ac_cv_header_minix_config_h+set}" = set; then
3086 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3087 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3088 if test "${ac_cv_header_minix_config_h+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3091 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3092 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3094 # Is the header compilable?
3095 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3096 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3097 cat >conftest.
$ac_ext <<_ACEOF
3100 cat confdefs.h
>>conftest.
$ac_ext
3101 cat >>conftest.
$ac_ext <<_ACEOF
3102 /* end confdefs.h. */
3103 $ac_includes_default
3104 #include <minix/config.h>
3106 rm -f conftest.
$ac_objext
3107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3108 (eval $ac_compile) 2>conftest.er1
3110 grep -v '^ *+' conftest.er1
>conftest.err
3112 cat conftest.err
>&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } &&
3115 { ac_try
='test -z "$ac_c_werror_flag"
3116 || test ! -s conftest.err'
3117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; } &&
3122 { ac_try
='test -s conftest.$ac_objext'
3123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; }; then
3128 ac_header_compiler
=yes
3130 echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.
$ac_ext >&5
3133 ac_header_compiler
=no
3135 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3137 echo "${ECHO_T}$ac_header_compiler" >&6
3139 # Is the header present?
3140 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3141 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3142 cat >conftest.
$ac_ext <<_ACEOF
3145 cat confdefs.h
>>conftest.
$ac_ext
3146 cat >>conftest.
$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3148 #include <minix/config.h>
3150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3151 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3153 grep -v '^ *+' conftest.er1
>conftest.err
3155 cat conftest.err
>&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); } >/dev
/null
; then
3158 if test -s conftest.err
; then
3159 ac_cpp_err
=$ac_c_preproc_warn_flag
3160 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3167 if test -z "$ac_cpp_err"; then
3168 ac_header_preproc
=yes
3170 echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.
$ac_ext >&5
3173 ac_header_preproc
=no
3175 rm -f conftest.err conftest.
$ac_ext
3176 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3177 echo "${ECHO_T}$ac_header_preproc" >&6
3179 # So? What about this header?
3180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3182 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3183 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3184 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3185 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3186 ac_header_preproc
=yes
3189 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3190 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3191 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3192 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3193 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3194 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3195 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3196 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3197 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3198 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3199 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3200 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3203 ## ------------------------------------------ ##
3204 ## Report this to the AC_PACKAGE_NAME lists. ##
3205 ## ------------------------------------------ ##
3208 sed "s/^/$as_me: WARNING: /" >&2
3211 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3212 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3213 if test "${ac_cv_header_minix_config_h+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3216 ac_cv_header_minix_config_h
=$ac_header_preproc
3218 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3219 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3222 if test $ac_cv_header_minix_config_h = yes; then
3229 if test "$MINIX" = yes; then
3231 cat >>confdefs.h
<<\_ACEOF
3232 #define _POSIX_SOURCE 1
3236 cat >>confdefs.h
<<\_ACEOF
3237 #define _POSIX_1_SOURCE 2
3241 cat >>confdefs.h
<<\_ACEOF
3249 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3250 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3251 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 cat >conftest.
$ac_ext <<_ACEOF
3257 cat confdefs.h
>>conftest.
$ac_ext
3258 cat >>conftest.
$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3261 # define __EXTENSIONS__ 1
3262 $ac_includes_default
3271 rm -f conftest.
$ac_objext
3272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3273 (eval $ac_compile) 2>conftest.er1
3275 grep -v '^ *+' conftest.er1
>conftest.err
3277 cat conftest.err
>&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } &&
3280 { ac_try
='test -z "$ac_c_werror_flag"
3281 || test ! -s conftest.err'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; } &&
3287 { ac_try
='test -s conftest.$ac_objext'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3293 ac_cv_safe_to_define___extensions__
=yes
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.
$ac_ext >&5
3298 ac_cv_safe_to_define___extensions__
=no
3300 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3302 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3303 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3304 test $ac_cv_safe_to_define___extensions__ = yes &&
3305 cat >>confdefs.h
<<\_ACEOF
3306 #define __EXTENSIONS__ 1
3309 cat >>confdefs.h
<<\_ACEOF
3310 #define _ALL_SOURCE 1
3313 cat >>confdefs.h
<<\_ACEOF
3314 #define _GNU_SOURCE 1
3317 cat >>confdefs.h
<<\_ACEOF
3318 #define _POSIX_PTHREAD_SEMANTICS 1
3321 cat >>confdefs.h
<<\_ACEOF
3322 #define _TANDEM_SOURCE 1
3334 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3335 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3336 if test "${am_cv_prog_cc_stdc+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 am_cv_prog_cc_stdc
=no
3341 # Don't try gcc -ansi; that turns off useful extensions and
3342 # breaks some systems' header files.
3343 # AIX -qlanglvl=ansi
3344 # Ultrix and OSF/1 -std1
3345 # HP-UX 10.20 and later -Ae
3346 # HP-UX older versions -Aa -D_HPUX_SOURCE
3347 # SVR4 -Xc -D__EXTENSIONS__
3348 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3350 CC
="$ac_save_CC $ac_arg"
3351 cat >conftest.
$ac_ext <<_ACEOF
3354 cat confdefs.h
>>conftest.
$ac_ext
3355 cat >>conftest.
$ac_ext <<_ACEOF
3356 /* end confdefs.h. */
3359 #include <sys/types.h>
3360 #include <sys/stat.h>
3361 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3362 struct buf { int x; };
3363 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3364 static char *e (p, i)
3370 static char *f (char * (*g) (char **, int), char **p, ...)
3375 s = g (p, va_arg (v,int));
3379 int test (int i, double x);
3380 struct s1 {int (*f) (int a);};
3381 struct s2 {int (*f) (double a);};
3382 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3390 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3396 rm -f conftest.
$ac_objext
3397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3398 (eval $ac_compile) 2>conftest.er1
3400 grep -v '^ *+' conftest.er1
>conftest.err
3402 cat conftest.err
>&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } &&
3405 { ac_try
='test -z "$ac_c_werror_flag"
3406 || test ! -s conftest.err'
3407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }; } &&
3412 { ac_try
='test -s conftest.$ac_objext'
3413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); }; }; then
3418 am_cv_prog_cc_stdc
="$ac_arg"; break
3420 echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.
$ac_ext >&5
3424 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3430 if test -z "$am_cv_prog_cc_stdc"; then
3431 echo "$as_me:$LINENO: result: none needed" >&5
3432 echo "${ECHO_T}none needed" >&6
3434 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3435 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3437 case "x$am_cv_prog_cc_stdc" in
3439 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
3444 for ac_dir
in ..
$srcdir/..
; do
3445 if test -f $ac_dir/install-sh
; then
3447 ac_install_sh
="$ac_aux_dir/install-sh -c"
3449 elif test -f $ac_dir/install.sh
; then
3451 ac_install_sh
="$ac_aux_dir/install.sh -c"
3453 elif test -f $ac_dir/shtool
; then
3455 ac_install_sh
="$ac_aux_dir/shtool install -c"
3459 if test -z "$ac_aux_dir"; then
3460 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3461 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3462 { (exit 1); exit 1; }; }
3464 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3465 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3466 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3468 # Make sure we can run config.sub.
3469 $ac_config_sub sun4
>/dev
/null
2>&1 ||
3470 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3471 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3472 { (exit 1); exit 1; }; }
3474 echo "$as_me:$LINENO: checking build system type" >&5
3475 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3476 if test "${ac_cv_build+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 ac_cv_build_alias
=$build_alias
3480 test -z "$ac_cv_build_alias" &&
3481 ac_cv_build_alias
=`$ac_config_guess`
3482 test -z "$ac_cv_build_alias" &&
3483 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3484 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3485 { (exit 1); exit 1; }; }
3486 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
3487 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3488 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3489 { (exit 1); exit 1; }; }
3492 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3493 echo "${ECHO_T}$ac_cv_build" >&6
3495 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3496 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3497 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3500 echo "$as_me:$LINENO: checking host system type" >&5
3501 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3502 if test "${ac_cv_host+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 ac_cv_host_alias
=$host_alias
3506 test -z "$ac_cv_host_alias" &&
3507 ac_cv_host_alias
=$ac_cv_build_alias
3508 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
3509 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3510 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3511 { (exit 1); exit 1; }; }
3514 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3515 echo "${ECHO_T}$ac_cv_host" >&6
3517 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3518 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3519 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3522 echo "$as_me:$LINENO: checking target system type" >&5
3523 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3524 if test "${ac_cv_target+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 ac_cv_target_alias
=$target_alias
3528 test "x$ac_cv_target_alias" = "x" &&
3529 ac_cv_target_alias
=$ac_cv_host_alias
3530 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
3531 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3532 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3533 { (exit 1); exit 1; }; }
3536 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3537 echo "${ECHO_T}$ac_cv_target" >&6
3538 target
=$ac_cv_target
3539 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3540 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3541 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3544 # The aliases save the names the user supplied, while $host etc.
3545 # will get canonicalized.
3546 test -n "$target_alias" &&
3547 test "$program_prefix$program_suffix$program_transform_name" = \
3549 program_prefix
=${target_alias}-
3551 # Dependency checking.
3552 rm -rf .tst
2>/dev
/null
3553 mkdir .tst
2>/dev
/null
3554 if test -d .tst
; then
3559 rmdir .tst
2>/dev
/null
3561 DEPDIR
="${am__leading_dot}deps"
3563 ac_config_commands
="$ac_config_commands depdir"
3566 depcc
="$CC" am_compiler_list
=
3568 am_depcomp
=$ac_aux_dir/depcomp
3569 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3570 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3571 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3574 if test -f "$am_depcomp"; then
3575 # We make a subdir and do the tests there. Otherwise we can end up
3576 # making bogus files that we don't know about and never remove. For
3577 # instance it was reported that on HP-UX the gcc test will end up
3578 # making a dummy file named `D' -- because `-MD' means `put the output
3581 # Copy depcomp to subdir because otherwise we won't find it if we're
3582 # using a relative directory.
3583 cp "$am_depcomp" conftest.dir
3585 # We will build objects and dependencies in a subdirectory because
3586 # it helps to detect inapplicable dependency modes. For instance
3587 # both Tru64's cc and ICC support -MD to output dependencies as a
3588 # side effect of compilation, but ICC will put the dependencies in
3589 # the current directory while Tru64 will put them in the object
3593 am_cv_CC_dependencies_compiler_type
=none
3594 if test "$am_compiler_list" = ""; then
3595 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3597 for depmode
in $am_compiler_list; do
3598 if test $depmode = none
; then break; fi
3600 echo "$as_me:$LINENO: trying $depmode" >&5
3601 # Setup a source with many dependencies, because some compilers
3602 # like to wrap large dependency lists on column 80 (with \), and
3603 # we should not choose a depcomp mode which is confused by this.
3605 # We need to recreate these files for each test, as the compiler may
3606 # overwrite some of them when testing with obscure command lines.
3607 # This happens at least with the AIX C compiler.
3609 for i
in 1 2 3 4 5 6; do
3610 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3611 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3612 # Solaris 8's {/usr,}/bin/sh.
3613 touch sub
/conftst
$i.h
3615 echo "include sub/conftest.Po" > confmf
3617 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3618 # mode. It turns out that the SunPro C++ compiler does not properly
3619 # handle `-M -o', and we need to detect this.
3620 depcmd
="depmode=$depmode \
3621 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3622 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3623 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
3624 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
3625 if env
$depcmd > conftest.err
2>&1 &&
3626 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
3627 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
3628 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
3629 # icc doesn't choke on unknown options, it will just issue warnings
3630 # or remarks (even with -Werror). So we grep stderr for any message
3631 # that says an option was ignored or not supported.
3632 # When given -MP, icc 7.0 and 7.1 complain thusly:
3633 # icc: Command line warning: ignoring option '-M'; no argument required
3634 # The diagnosis changed in icc 8.0:
3635 # icc: Command line remark: option '-MP' not supported
3636 if (grep 'ignoring option' conftest.err ||
3637 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3638 am_cv_CC_dependencies_compiler_type
=$depmode
3639 echo "$as_me:$LINENO: success" >&5
3643 echo "$as_me:$LINENO: failure, diagnostics are:" >&5
3644 sed -e 's/^/| /' < conftest.err
>&5
3650 am_cv_CC_dependencies_compiler_type
=none
3654 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3655 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3656 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
3657 then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
3658 echo "$as_me: error: no usable dependency style found" >&2;}
3659 { (exit 1); exit 1; }; }
3660 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3665 # Check for the 'make' the user wants to use.
3668 # Extract the first word of "$ac_prog", so it can be a program name with args.
3669 set dummy
$ac_prog; ac_word
=$2
3670 echo "$as_me:$LINENO: checking for $ac_word" >&5
3671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3672 if test "${ac_cv_prog_MAKE+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 if test -n "$MAKE"; then
3676 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
3678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3682 test -z "$as_dir" && as_dir
=.
3683 for ac_exec_ext
in '' $ac_executable_extensions; do
3684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3685 ac_cv_prog_MAKE
="$ac_prog"
3686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 MAKE
=$ac_cv_prog_MAKE
3695 if test -n "$MAKE"; then
3696 echo "$as_me:$LINENO: result: $MAKE" >&5
3697 echo "${ECHO_T}$MAKE" >&6
3699 echo "$as_me:$LINENO: result: no" >&5
3700 echo "${ECHO_T}no" >&6
3703 test -n "$MAKE" && break
3707 case "`$MAKE --version 2>&1 | sed 1q`" in
3714 if test "$MAKE_IS_GNU" = yes; then
3722 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3723 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3724 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
3725 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 cat >conftest.
make <<\_ACEOF
3730 @
echo 'ac_maketemp="$(MAKE)"'
3732 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3733 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3734 if test -n "$ac_maketemp"; then
3735 eval ac_cv_prog_make_
${ac_make}_set
=yes
3737 eval ac_cv_prog_make_
${ac_make}_set
=no
3741 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3742 echo "$as_me:$LINENO: result: yes" >&5
3743 echo "${ECHO_T}yes" >&6
3746 echo "$as_me:$LINENO: result: no" >&5
3747 echo "${ECHO_T}no" >&6
3748 SET_MAKE
="MAKE=${MAKE-make}"
3763 # If we haven't got the data from the intl directory,
3764 # assume NLS is disabled.
3773 if test -f ..
/intl
/config.intl
; then
3774 . ..
/intl
/config.intl
3776 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3777 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3778 if test x
"$USE_NLS" != xyes
; then
3779 echo "$as_me:$LINENO: result: no" >&5
3780 echo "${ECHO_T}no" >&6
3782 echo "$as_me:$LINENO: result: yes" >&5
3783 echo "${ECHO_T}yes" >&6
3785 cat >>confdefs.h
<<\_ACEOF
3786 #define ENABLE_NLS 1
3790 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3791 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3792 # Look for .po and .gmo files in the source directory.
3795 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
3796 # If there aren't any .gmo files the shell will give us the
3797 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3799 case "$cat" in *\
**)
3802 # The quadruple backslash is collapsed to a double backslash
3803 # by the backticks, then collapsed again by the double quotes,
3804 # leaving us with one backslash in the sed expression (right
3805 # before the dot that mustn't act as a wildcard).
3806 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3807 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
3808 # The user is allowed to set LINGUAS to a list of languages to
3809 # install catalogs for. If it's empty that means "all of them."
3810 if test "x$LINGUAS" = x
; then
3811 CATALOGS
="$CATALOGS $cat"
3812 XLINGUAS
="$XLINGUAS $lang"
3814 case "$LINGUAS" in *$lang*)
3815 CATALOGS
="$CATALOGS $cat"
3816 XLINGUAS
="$XLINGUAS $lang"
3822 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3823 echo "${ECHO_T}$LINGUAS" >&6
3836 localedir
='${datadir}/locale'
3839 if test x
"$USE_NLS" = xyes
; then
3840 CONFIG_ALL
="$CONFIG_ALL all-po"
3841 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
3842 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
3843 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
3859 GNULIB_STRCASESTR
=0;
3866 GNULIB_MBSCASECMP
=0;
3867 GNULIB_MBSNCASECMP
=0;
3868 GNULIB_MBSPCASECMP
=0;
3869 GNULIB_MBSCASESTR
=0;
3879 HAVE_DECL_MEMRCHR
=1;
3885 HAVE_DECL_STRNDUP
=1;
3886 HAVE_DECL_STRNLEN
=1;
3890 HAVE_DECL_STRTOK_R
=1;
3891 HAVE_DECL_STRERROR
=1;
3892 HAVE_DECL_STRSIGNAL
=1;
3894 REPLACE_STRSIGNAL
=0;
3896 REPLACE_STRCASESTR
=0;
3900 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3901 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3902 if test "${ac_cv_have_decl_memmem+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 cat >conftest.
$ac_ext <<_ACEOF
3908 cat confdefs.h
>>conftest.
$ac_ext
3909 cat >>conftest.
$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3911 $ac_includes_default
3916 char *p = (char *) memmem;
3923 rm -f conftest.
$ac_objext
3924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3925 (eval $ac_compile) 2>conftest.er1
3927 grep -v '^ *+' conftest.er1
>conftest.err
3929 cat conftest.err
>&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } &&
3932 { ac_try
='test -z "$ac_c_werror_flag"
3933 || test ! -s conftest.err'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; } &&
3939 { ac_try
='test -s conftest.$ac_objext'
3940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; }; then
3945 ac_cv_have_decl_memmem
=yes
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.
$ac_ext >&5
3950 ac_cv_have_decl_memmem
=no
3952 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3954 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3955 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3956 if test $ac_cv_have_decl_memmem = yes; then
3958 cat >>confdefs.h
<<_ACEOF
3959 #define HAVE_DECL_MEMMEM 1
3964 cat >>confdefs.h
<<_ACEOF
3965 #define HAVE_DECL_MEMMEM 0
3985 for ac_func
in memmem
3987 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3988 echo "$as_me:$LINENO: checking for $ac_func" >&5
3989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3990 if eval "test \"\${$as_ac_var+set}\" = set"; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 cat >conftest.
$ac_ext <<_ACEOF
3996 cat confdefs.h
>>conftest.
$ac_ext
3997 cat >>conftest.
$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4001 #define $ac_func innocuous_$ac_func
4003 /* System header to define __stub macros and hopefully few prototypes,
4004 which can conflict with char $ac_func (); below.
4005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4006 <limits.h> exists even on freestanding compilers. */
4009 # include <limits.h>
4011 # include <assert.h>
4016 /* Override any gcc2 internal prototype to avoid an error. */
4021 /* We use char because int might match the return type of a gcc2
4022 builtin and then its argument prototype would still apply. */
4024 /* The GNU C library defines this for functions which it implements
4025 to always fail with ENOSYS. Some functions are actually named
4026 something starting with __ and the normal name is an alias. */
4027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4030 char (*f) () = $ac_func;
4039 return f != $ac_func;
4044 rm -f conftest.
$ac_objext conftest
$ac_exeext
4045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4046 (eval $ac_link) 2>conftest.er1
4048 grep -v '^ *+' conftest.er1
>conftest.err
4050 cat conftest.err
>&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } &&
4053 { ac_try
='test -z "$ac_c_werror_flag"
4054 || test ! -s conftest.err'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; } &&
4060 { ac_try
='test -s conftest$ac_exeext'
4061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }; }; then
4066 eval "$as_ac_var=yes"
4068 echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.
$ac_ext >&5
4071 eval "$as_ac_var=no"
4073 rm -f conftest.err conftest.
$ac_objext \
4074 conftest
$ac_exeext conftest.
$ac_ext
4076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4077 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4078 if test `eval echo '${'$as_ac_var'}'` = yes; then
4079 cat >>confdefs.h
<<_ACEOF
4080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4085 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
4098 if test $ac_cv_have_decl_memmem = no
; then
4104 echo "$as_me:$LINENO: checking for long long int" >&5
4105 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
4106 if test "${ac_cv_type_long_long_int+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 cat >conftest.
$ac_ext <<_ACEOF
4113 cat confdefs.h
>>conftest.
$ac_ext
4114 cat >>conftest.
$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4116 /* For now, do not test the preprocessor; as of 2007 there are too many
4117 implementations with broken preprocessors. Perhaps this can
4118 be revisited in 2012. In the meantime, code should not expect
4119 #if to work with literals wider than 32 bits. */
4120 /* Test literals. */
4121 long long int ll = 9223372036854775807ll;
4122 long long int nll = -9223372036854775807LL;
4123 unsigned long long int ull = 18446744073709551615ULL;
4124 /* Test constant expressions. */
4125 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4127 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4133 /* Test availability of runtime routines for shift and division. */
4134 long long int llmax = 9223372036854775807ll;
4135 unsigned long long int ullmax = 18446744073709551615ull;
4136 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4137 | (llmax / ll) | (llmax % ll)
4138 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4139 | (ullmax / ull) | (ullmax % ull));
4145 rm -f conftest.
$ac_objext conftest
$ac_exeext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4147 (eval $ac_link) 2>conftest.er1
4149 grep -v '^ *+' conftest.er1
>conftest.err
4151 cat conftest.err
>&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } &&
4154 { ac_try
='test -z "$ac_c_werror_flag"
4155 || test ! -s conftest.err'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; } &&
4161 { ac_try
='test -s conftest$ac_exeext'
4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4167 if test "$cross_compiling" = yes; then
4168 ac_cv_type_long_long_int
=yes
4170 cat >conftest.
$ac_ext <<_ACEOF
4173 cat confdefs.h
>>conftest.
$ac_ext
4174 cat >>conftest.
$ac_ext <<_ACEOF
4175 /* end confdefs.h. */
4179 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4180 # define LLONG_MAX (HALF - 1 + HALF)
4185 long long int n = 1;
4189 long long int m = n << i;
4192 if (LLONG_MAX / 2 < m)
4200 rm -f conftest
$ac_exeext
4201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4202 (eval $ac_link) 2>&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
4211 ac_cv_type_long_long_int
=yes
4213 echo "$as_me: program exited with status $ac_status" >&5
4214 echo "$as_me: failed program was:" >&5
4215 sed 's/^/| /' conftest.
$ac_ext >&5
4218 ac_cv_type_long_long_int
=no
4220 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.
$ac_ext >&5
4226 ac_cv_type_long_long_int
=no
4228 rm -f conftest.err conftest.
$ac_objext \
4229 conftest
$ac_exeext conftest.
$ac_ext
4231 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4232 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4233 if test $ac_cv_type_long_long_int = yes; then
4235 cat >>confdefs.h
<<\_ACEOF
4236 #define HAVE_LONG_LONG_INT 1
4242 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4243 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4244 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 cat >conftest.
$ac_ext <<_ACEOF
4251 cat confdefs.h
>>conftest.
$ac_ext
4252 cat >>conftest.
$ac_ext <<_ACEOF
4253 /* end confdefs.h. */
4254 /* For now, do not test the preprocessor; as of 2007 there are too many
4255 implementations with broken preprocessors. Perhaps this can
4256 be revisited in 2012. In the meantime, code should not expect
4257 #if to work with literals wider than 32 bits. */
4258 /* Test literals. */
4259 long long int ll = 9223372036854775807ll;
4260 long long int nll = -9223372036854775807LL;
4261 unsigned long long int ull = 18446744073709551615ULL;
4262 /* Test constant expressions. */
4263 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4265 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4271 /* Test availability of runtime routines for shift and division. */
4272 long long int llmax = 9223372036854775807ll;
4273 unsigned long long int ullmax = 18446744073709551615ull;
4274 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4275 | (llmax / ll) | (llmax % ll)
4276 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4277 | (ullmax / ull) | (ullmax % ull));
4283 rm -f conftest.
$ac_objext conftest
$ac_exeext
4284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4285 (eval $ac_link) 2>conftest.er1
4287 grep -v '^ *+' conftest.er1
>conftest.err
4289 cat conftest.err
>&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
4292 { ac_try
='test -z "$ac_c_werror_flag"
4293 || test ! -s conftest.err'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; } &&
4299 { ac_try
='test -s conftest$ac_exeext'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4305 ac_cv_type_unsigned_long_long_int
=yes
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.
$ac_ext >&5
4310 ac_cv_type_unsigned_long_long_int
=no
4312 rm -f conftest.err conftest.
$ac_objext \
4313 conftest
$ac_exeext conftest.
$ac_ext
4315 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4316 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4317 if test $ac_cv_type_unsigned_long_long_int = yes; then
4319 cat >>confdefs.h
<<\_ACEOF
4320 #define HAVE_UNSIGNED_LONG_LONG_INT 1
4327 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4328 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4329 if test "${gl_cv_have_include_next+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 rm -rf conftestd1 conftestd2
4333 mkdir conftestd1 conftestd2
4334 cat <<EOF > conftestd1/conftest.h
4335 #define DEFINED_IN_CONFTESTD1
4336 #include_next <conftest.h>
4337 #ifdef DEFINED_IN_CONFTESTD2
4340 #error "include_next doesn't work"
4343 cat <<EOF > conftestd2/conftest.h
4344 #ifndef DEFINED_IN_CONFTESTD1
4345 #error "include_next test doesn't work"
4347 #define DEFINED_IN_CONFTESTD2
4349 save_CPPFLAGS
="$CPPFLAGS"
4350 CPPFLAGS
="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4351 cat >conftest.
$ac_ext <<_ACEOF
4352 #include <conftest.h>
4354 rm -f conftest.
$ac_objext
4355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4356 (eval $ac_compile) 2>conftest.er1
4358 grep -v '^ *+' conftest.er1
>conftest.err
4360 cat conftest.err
>&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } &&
4363 { ac_try
='test -z "$ac_c_werror_flag"
4364 || test ! -s conftest.err'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; } &&
4370 { ac_try
='test -s conftest.$ac_objext'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 gl_cv_have_include_next
=yes
4378 echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.
$ac_ext >&5
4381 gl_cv_have_include_next
=no
4383 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4384 CPPFLAGS
="$save_CPPFLAGS"
4385 rm -rf conftestd1 conftestd2
4388 echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4389 echo "${ECHO_T}$gl_cv_have_include_next" >&6
4390 if test $gl_cv_have_include_next = yes; then
4393 cat >>confdefs.h
<<\_ACEOF
4394 #define HAVE_INCLUDE_NEXT 1
4398 INCLUDE_NEXT
=include_next
4400 INCLUDE_NEXT
=include
4409 for ac_header
in $gl_header_list
4411 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4413 echo "$as_me:$LINENO: checking for $ac_header" >&5
4414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4421 # Is the header compilable?
4422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4424 cat >conftest.
$ac_ext <<_ACEOF
4427 cat confdefs.h
>>conftest.
$ac_ext
4428 cat >>conftest.
$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4430 $ac_includes_default
4431 #include <$ac_header>
4433 rm -f conftest.
$ac_objext
4434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4435 (eval $ac_compile) 2>conftest.er1
4437 grep -v '^ *+' conftest.er1
>conftest.err
4439 cat conftest.err
>&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
4442 { ac_try
='test -z "$ac_c_werror_flag"
4443 || test ! -s conftest.err'
4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; } &&
4449 { ac_try
='test -s conftest.$ac_objext'
4450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; }; then
4455 ac_header_compiler
=yes
4457 echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.
$ac_ext >&5
4460 ac_header_compiler
=no
4462 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4464 echo "${ECHO_T}$ac_header_compiler" >&6
4466 # Is the header present?
4467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4469 cat >conftest.
$ac_ext <<_ACEOF
4472 cat confdefs.h
>>conftest.
$ac_ext
4473 cat >>conftest.
$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4475 #include <$ac_header>
4477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4478 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4480 grep -v '^ *+' conftest.er1
>conftest.err
4482 cat conftest.err
>&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } >/dev
/null
; then
4485 if test -s conftest.err
; then
4486 ac_cpp_err
=$ac_c_preproc_warn_flag
4487 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4494 if test -z "$ac_cpp_err"; then
4495 ac_header_preproc
=yes
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.
$ac_ext >&5
4500 ac_header_preproc
=no
4502 rm -f conftest.err conftest.
$ac_ext
4503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4504 echo "${ECHO_T}$ac_header_preproc" >&6
4506 # So? What about this header?
4507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4513 ac_header_preproc
=yes
4516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4530 ## ------------------------------------------ ##
4531 ## Report this to the AC_PACKAGE_NAME lists. ##
4532 ## ------------------------------------------ ##
4535 sed "s/^/$as_me: WARNING: /" >&2
4538 echo "$as_me:$LINENO: checking for $ac_header" >&5
4539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 eval "$as_ac_Header=\$ac_header_preproc"
4545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4550 cat >>confdefs.h
<<_ACEOF
4551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4569 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4570 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4571 if test "${ac_cv_c_restrict+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 # The order here caters to the fact that C++ does not require restrict.
4576 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
4577 cat >conftest.
$ac_ext <<_ACEOF
4580 cat confdefs.h
>>conftest.
$ac_ext
4581 cat >>conftest.
$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 typedef int * int_ptr;
4584 int foo (int_ptr $ac_kw ip) {
4598 rm -f conftest.
$ac_objext
4599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4600 (eval $ac_compile) 2>conftest.er1
4602 grep -v '^ *+' conftest.er1
>conftest.err
4604 cat conftest.err
>&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } &&
4607 { ac_try
='test -z "$ac_c_werror_flag"
4608 || test ! -s conftest.err'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; } &&
4614 { ac_try
='test -s conftest.$ac_objext'
4615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4620 ac_cv_c_restrict
=$ac_kw
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.
$ac_ext >&5
4626 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4627 test "$ac_cv_c_restrict" != no
&& break
4631 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4632 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4635 case $ac_cv_c_restrict in
4637 no
) cat >>confdefs.h
<<\_ACEOF
4641 *) cat >>confdefs.h
<<_ACEOF
4642 #define restrict $ac_cv_c_restrict
4667 if test $gl_cv_have_include_next = yes; then
4668 gl_cv_next_string_h
='<'string.h
'>'
4670 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4671 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4672 if test "${gl_cv_next_string_h+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 if test $ac_cv_header_string_h = yes; then
4677 cat >conftest.
$ac_ext <<_ACEOF
4680 cat confdefs.h
>>conftest.
$ac_ext
4681 cat >>conftest.
$ac_ext <<_ACEOF
4682 /* end confdefs.h. */
4686 gl_cv_next_string_h
='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4687 sed -n '\#/string.h#{
4688 s#.*"\(.*/string.h\)".*#\1#
4694 gl_cv_next_string_h
='<'string.h
'>'
4698 echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4699 echo "${ECHO_T}$gl_cv_next_string_h" >&6
4701 NEXT_STRING_H
=$gl_cv_next_string_h
4708 HAVE_DECL_WCWIDTH
=1;
4717 GL_COND_LIBTOOL_TRUE
=
4718 GL_COND_LIBTOOL_FALSE
='#'
4720 GL_COND_LIBTOOL_TRUE
='#'
4721 GL_COND_LIBTOOL_FALSE
=
4724 gl_cond_libtool
=false
4730 gl_source_base
='gnulib'
4740 for ac_func
in memchr
4742 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4743 echo "$as_me:$LINENO: checking for $ac_func" >&5
4744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4745 if eval "test \"\${$as_ac_var+set}\" = set"; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 cat >conftest.
$ac_ext <<_ACEOF
4751 cat confdefs.h
>>conftest.
$ac_ext
4752 cat >>conftest.
$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4756 #define $ac_func innocuous_$ac_func
4758 /* System header to define __stub macros and hopefully few prototypes,
4759 which can conflict with char $ac_func (); below.
4760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4761 <limits.h> exists even on freestanding compilers. */
4764 # include <limits.h>
4766 # include <assert.h>
4771 /* Override any gcc2 internal prototype to avoid an error. */
4776 /* We use char because int might match the return type of a gcc2
4777 builtin and then its argument prototype would still apply. */
4779 /* The GNU C library defines this for functions which it implements
4780 to always fail with ENOSYS. Some functions are actually named
4781 something starting with __ and the normal name is an alias. */
4782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4785 char (*f) () = $ac_func;
4794 return f != $ac_func;
4799 rm -f conftest.
$ac_objext conftest
$ac_exeext
4800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4801 (eval $ac_link) 2>conftest.er1
4803 grep -v '^ *+' conftest.er1
>conftest.err
4805 cat conftest.err
>&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } &&
4808 { ac_try
='test -z "$ac_c_werror_flag"
4809 || test ! -s conftest.err'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; } &&
4815 { ac_try
='test -s conftest$ac_exeext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 eval "$as_ac_var=yes"
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.
$ac_ext >&5
4826 eval "$as_ac_var=no"
4828 rm -f conftest.err conftest.
$ac_objext \
4829 conftest
$ac_exeext conftest.
$ac_ext
4831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4833 if test `eval echo '${'$as_ac_var'}'` = yes; then
4834 cat >>confdefs.h
<<_ACEOF
4835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4840 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
4846 if test $ac_cv_func_memchr = no
; then
4849 for ac_header
in bp-sym.h
4851 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4853 echo "$as_me:$LINENO: checking for $ac_header" >&5
4854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4861 # Is the header compilable?
4862 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4864 cat >conftest.
$ac_ext <<_ACEOF
4867 cat confdefs.h
>>conftest.
$ac_ext
4868 cat >>conftest.
$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 $ac_includes_default
4871 #include <$ac_header>
4873 rm -f conftest.
$ac_objext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4875 (eval $ac_compile) 2>conftest.er1
4877 grep -v '^ *+' conftest.er1
>conftest.err
4879 cat conftest.err
>&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } &&
4882 { ac_try
='test -z "$ac_c_werror_flag"
4883 || test ! -s conftest.err'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; } &&
4889 { ac_try
='test -s conftest.$ac_objext'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4895 ac_header_compiler
=yes
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.
$ac_ext >&5
4900 ac_header_compiler
=no
4902 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4903 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4904 echo "${ECHO_T}$ac_header_compiler" >&6
4906 # Is the header present?
4907 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4909 cat >conftest.
$ac_ext <<_ACEOF
4912 cat confdefs.h
>>conftest.
$ac_ext
4913 cat >>conftest.
$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4915 #include <$ac_header>
4917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4918 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4920 grep -v '^ *+' conftest.er1
>conftest.err
4922 cat conftest.err
>&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); } >/dev
/null
; then
4925 if test -s conftest.err
; then
4926 ac_cpp_err
=$ac_c_preproc_warn_flag
4927 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4934 if test -z "$ac_cpp_err"; then
4935 ac_header_preproc
=yes
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.
$ac_ext >&5
4940 ac_header_preproc
=no
4942 rm -f conftest.err conftest.
$ac_ext
4943 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4944 echo "${ECHO_T}$ac_header_preproc" >&6
4946 # So? What about this header?
4947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4953 ac_header_preproc
=yes
4956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4959 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4963 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4970 ## ------------------------------------------ ##
4971 ## Report this to the AC_PACKAGE_NAME lists. ##
4972 ## ------------------------------------------ ##
4975 sed "s/^/$as_me: WARNING: /" >&2
4978 echo "$as_me:$LINENO: checking for $ac_header" >&5
4979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 eval "$as_ac_Header=\$ac_header_preproc"
4985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4990 cat >>confdefs.h
<<_ACEOF
4991 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5002 echo "$as_me:$LINENO: checking for working memcmp" >&5
5003 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
5004 if test "${ac_cv_func_memcmp_working+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 if test "$cross_compiling" = yes; then
5008 ac_cv_func_memcmp_working
=no
5010 cat >conftest.
$ac_ext <<_ACEOF
5013 cat confdefs.h
>>conftest.
$ac_ext
5014 cat >>conftest.
$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5016 $ac_includes_default
5021 /* Some versions of memcmp are not 8-bit clean. */
5022 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5023 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5026 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5027 or more and with at least one buffer not starting on a 4-byte boundary.
5028 William Lewis provided this test program. */
5033 for (i = 0; i < 4; i++)
5037 strcpy (a, "--------01111111");
5038 strcpy (b, "--------10000000");
5039 if (memcmp (a, b, 16) >= 0)
5049 rm -f conftest
$ac_exeext
5050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5051 (eval $ac_link) 2>&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; }; then
5060 ac_cv_func_memcmp_working
=yes
5062 echo "$as_me: program exited with status $ac_status" >&5
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.
$ac_ext >&5
5067 ac_cv_func_memcmp_working
=no
5069 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5072 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5073 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5074 test $ac_cv_func_memcmp_working = no
&&
5081 gl_LIBOBJS
="$gl_LIBOBJS memcmp.$ac_objext"
5084 if test $ac_cv_func_memcmp_working = no
; then
5086 cat >>confdefs.h
<<\_ACEOF
5087 #define memcmp rpl_memcmp
5095 if test $ac_cv_have_decl_memmem = yes; then
5096 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
5097 echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
5098 if test "${gl_cv_func_memmem_works+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 if test "$cross_compiling" = yes; then
5102 gl_cv_func_memmem_works
="guessing no"
5104 cat >conftest.
$ac_ext <<_ACEOF
5107 cat confdefs.h
>>conftest.
$ac_ext
5108 cat >>conftest.
$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5111 #include <string.h> /* for memmem */
5112 #include <stdlib.h> /* for malloc */
5113 #include <unistd.h> /* for alarm */
5119 char *haystack = (char *) malloc (2 * m + 1);
5120 char *needle = (char *) malloc (m + 1);
5122 /* Failure to compile this test due to missing alarm is okay,
5123 since all such platforms (mingw) also lack memmem. */
5125 /* Check for quadratic performance. */
5126 if (haystack && needle)
5128 memset (haystack, 'A', 2 * m);
5129 haystack[2 * m] = 'B';
5130 memset (needle, 'A', m);
5132 result = memmem (haystack, 2 * m + 1, needle, m + 1);
5134 /* Check for empty needle behavior. */
5135 return !result || !memmem ("a", 1, 0, 0);
5140 rm -f conftest
$ac_exeext
5141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5142 (eval $ac_link) 2>&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); }; }; then
5151 gl_cv_func_memmem_works
=yes
5153 echo "$as_me: program exited with status $ac_status" >&5
5154 echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.
$ac_ext >&5
5158 gl_cv_func_memmem_works
=no
5160 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5163 echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
5164 echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
5165 if test "$gl_cv_func_memmem_works" != yes; then
5174 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
5191 for ac_func
in memmem
5193 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5194 echo "$as_me:$LINENO: checking for $ac_func" >&5
5195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5196 if eval "test \"\${$as_ac_var+set}\" = set"; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 cat >conftest.
$ac_ext <<_ACEOF
5202 cat confdefs.h
>>conftest.
$ac_ext
5203 cat >>conftest.
$ac_ext <<_ACEOF
5204 /* end confdefs.h. */
5205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5207 #define $ac_func innocuous_$ac_func
5209 /* System header to define __stub macros and hopefully few prototypes,
5210 which can conflict with char $ac_func (); below.
5211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5212 <limits.h> exists even on freestanding compilers. */
5215 # include <limits.h>
5217 # include <assert.h>
5222 /* Override any gcc2 internal prototype to avoid an error. */
5227 /* We use char because int might match the return type of a gcc2
5228 builtin and then its argument prototype would still apply. */
5230 /* The GNU C library defines this for functions which it implements
5231 to always fail with ENOSYS. Some functions are actually named
5232 something starting with __ and the normal name is an alias. */
5233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5236 char (*f) () = $ac_func;
5245 return f != $ac_func;
5250 rm -f conftest.
$ac_objext conftest
$ac_exeext
5251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5252 (eval $ac_link) 2>conftest.er1
5254 grep -v '^ *+' conftest.er1
>conftest.err
5256 cat conftest.err
>&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } &&
5259 { ac_try
='test -z "$ac_c_werror_flag"
5260 || test ! -s conftest.err'
5261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }; } &&
5266 { ac_try
='test -s conftest$ac_exeext'
5267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; }; then
5272 eval "$as_ac_var=yes"
5274 echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.
$ac_ext >&5
5277 eval "$as_ac_var=no"
5279 rm -f conftest.err conftest.
$ac_objext \
5280 conftest
$ac_exeext conftest.
$ac_ext
5282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5284 if test `eval echo '${'$as_ac_var'}'` = yes; then
5285 cat >>confdefs.h
<<_ACEOF
5286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5291 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
5304 if test $ac_cv_have_decl_memmem = no
; then
5316 if test $ac_cv_type_long_long_int = yes; then
5317 HAVE_LONG_LONG_INT
=1
5319 HAVE_LONG_LONG_INT
=0
5323 if test $ac_cv_type_unsigned_long_long_int = yes; then
5324 HAVE_UNSIGNED_LONG_LONG_INT
=1
5326 HAVE_UNSIGNED_LONG_LONG_INT
=0
5330 if test $ac_cv_header_inttypes_h = yes; then
5337 if test $ac_cv_header_sys_types_h = yes; then
5355 if test $gl_cv_have_include_next = yes; then
5356 gl_cv_next_stdint_h
='<'stdint.h
'>'
5358 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5359 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5360 if test "${gl_cv_next_stdint_h+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5364 if test $ac_cv_header_stdint_h = yes; then
5365 cat >conftest.
$ac_ext <<_ACEOF
5368 cat confdefs.h
>>conftest.
$ac_ext
5369 cat >>conftest.
$ac_ext <<_ACEOF
5370 /* end confdefs.h. */
5374 gl_cv_next_stdint_h
='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5375 sed -n '\#/stdint.h#{
5376 s#.*"\(.*/stdint.h\)".*#\1#
5382 gl_cv_next_stdint_h
='<'stdint.h
'>'
5386 echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5387 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5389 NEXT_STDINT_H
=$gl_cv_next_stdint_h
5393 if test $ac_cv_header_stdint_h = yes; then
5400 if test $ac_cv_header_stdint_h = yes; then
5401 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5402 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5403 if test "${gl_cv_header_working_stdint_h+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 gl_cv_header_working_stdint_h
=no
5407 cat >conftest.
$ac_ext <<_ACEOF
5411 cat confdefs.h
>>conftest.
$ac_ext
5412 cat >>conftest.
$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5415 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5416 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5417 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5419 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5420 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5421 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5425 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5426 included before <wchar.h>. */
5437 int8_t a1 = INT8_MAX;
5438 int8_t a1min = INT8_MIN;
5441 int16_t a2 = INT16_MAX;
5442 int16_t a2min = INT16_MIN;
5445 int32_t a3 = INT32_MAX;
5446 int32_t a3min = INT32_MIN;
5449 int64_t a4 = INT64_MAX;
5450 int64_t a4min = INT64_MIN;
5453 uint8_t b1 = UINT8_MAX;
5455 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5458 uint16_t b2 = UINT16_MAX;
5461 uint32_t b3 = UINT32_MAX;
5464 uint64_t b4 = UINT64_MAX;
5466 int_least8_t c1 = INT8_C (0x7f);
5467 int_least8_t c1max = INT_LEAST8_MAX;
5468 int_least8_t c1min = INT_LEAST8_MIN;
5469 int_least16_t c2 = INT16_C (0x7fff);
5470 int_least16_t c2max = INT_LEAST16_MAX;
5471 int_least16_t c2min = INT_LEAST16_MIN;
5472 int_least32_t c3 = INT32_C (0x7fffffff);
5473 int_least32_t c3max = INT_LEAST32_MAX;
5474 int_least32_t c3min = INT_LEAST32_MIN;
5475 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5476 int_least64_t c4max = INT_LEAST64_MAX;
5477 int_least64_t c4min = INT_LEAST64_MIN;
5478 uint_least8_t d1 = UINT8_C (0xff);
5479 uint_least8_t d1max = UINT_LEAST8_MAX;
5480 uint_least16_t d2 = UINT16_C (0xffff);
5481 uint_least16_t d2max = UINT_LEAST16_MAX;
5482 uint_least32_t d3 = UINT32_C (0xffffffff);
5483 uint_least32_t d3max = UINT_LEAST32_MAX;
5484 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5485 uint_least64_t d4max = UINT_LEAST64_MAX;
5486 int_fast8_t e1 = INT_FAST8_MAX;
5487 int_fast8_t e1min = INT_FAST8_MIN;
5488 int_fast16_t e2 = INT_FAST16_MAX;
5489 int_fast16_t e2min = INT_FAST16_MIN;
5490 int_fast32_t e3 = INT_FAST32_MAX;
5491 int_fast32_t e3min = INT_FAST32_MIN;
5492 int_fast64_t e4 = INT_FAST64_MAX;
5493 int_fast64_t e4min = INT_FAST64_MIN;
5494 uint_fast8_t f1 = UINT_FAST8_MAX;
5495 uint_fast16_t f2 = UINT_FAST16_MAX;
5496 uint_fast32_t f3 = UINT_FAST32_MAX;
5497 uint_fast64_t f4 = UINT_FAST64_MAX;
5499 intptr_t g = INTPTR_MAX;
5500 intptr_t gmin = INTPTR_MIN;
5503 uintptr_t h = UINTPTR_MAX;
5505 intmax_t i = INTMAX_MAX;
5506 uintmax_t j = UINTMAX_MAX;
5508 #include <limits.h> /* for CHAR_BIT */
5509 #define TYPE_MINIMUM(t) \
5510 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5511 #define TYPE_MAXIMUM(t) \
5512 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5515 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5516 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5518 /* Detect bug in FreeBSD 6.0 / ia64. */
5519 int check_SIG_ATOMIC:
5520 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5521 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5523 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5525 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5526 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5528 /* Detect bug in mingw. */
5530 WINT_MIN == TYPE_MINIMUM (wint_t)
5531 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5534 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5536 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5538 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5540 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5542 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5545 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5548 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5551 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5553 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5554 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5555 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5556 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5557 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5558 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5559 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5560 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5561 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5562 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5563 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5574 rm -f conftest.
$ac_objext
5575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5576 (eval $ac_compile) 2>conftest.er1
5578 grep -v '^ *+' conftest.er1
>conftest.err
5580 cat conftest.err
>&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } &&
5583 { ac_try
='test -z "$ac_c_werror_flag"
5584 || test ! -s conftest.err'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; } &&
5590 { ac_try
='test -s conftest.$ac_objext'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; }; then
5596 gl_cv_header_working_stdint_h
=yes
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.
$ac_ext >&5
5602 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5604 echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5605 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5607 if test "$gl_cv_header_working_stdint_h" = yes; then
5612 for ac_header
in sys
/inttypes.h sys
/bitypes.h
5614 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5616 echo "$as_me:$LINENO: checking for $ac_header" >&5
5617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5624 # Is the header compilable?
5625 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5627 cat >conftest.
$ac_ext <<_ACEOF
5630 cat confdefs.h
>>conftest.
$ac_ext
5631 cat >>conftest.
$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5633 $ac_includes_default
5634 #include <$ac_header>
5636 rm -f conftest.
$ac_objext
5637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5638 (eval $ac_compile) 2>conftest.er1
5640 grep -v '^ *+' conftest.er1
>conftest.err
5642 cat conftest.err
>&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } &&
5645 { ac_try
='test -z "$ac_c_werror_flag"
5646 || test ! -s conftest.err'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; } &&
5652 { ac_try
='test -s conftest.$ac_objext'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; }; then
5658 ac_header_compiler
=yes
5660 echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.
$ac_ext >&5
5663 ac_header_compiler
=no
5665 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5666 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5667 echo "${ECHO_T}$ac_header_compiler" >&6
5669 # Is the header present?
5670 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5672 cat >conftest.
$ac_ext <<_ACEOF
5675 cat confdefs.h
>>conftest.
$ac_ext
5676 cat >>conftest.
$ac_ext <<_ACEOF
5677 /* end confdefs.h. */
5678 #include <$ac_header>
5680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5681 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5683 grep -v '^ *+' conftest.er1
>conftest.err
5685 cat conftest.err
>&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } >/dev
/null
; then
5688 if test -s conftest.err
; then
5689 ac_cpp_err
=$ac_c_preproc_warn_flag
5690 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5697 if test -z "$ac_cpp_err"; then
5698 ac_header_preproc
=yes
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.
$ac_ext >&5
5703 ac_header_preproc
=no
5705 rm -f conftest.err conftest.
$ac_ext
5706 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5707 echo "${ECHO_T}$ac_header_preproc" >&6
5709 # So? What about this header?
5710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5716 ac_header_preproc
=yes
5719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5726 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5733 ## ------------------------------------------ ##
5734 ## Report this to the AC_PACKAGE_NAME lists. ##
5735 ## ------------------------------------------ ##
5738 sed "s/^/$as_me: WARNING: /" >&2
5741 echo "$as_me:$LINENO: checking for $ac_header" >&5
5742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5746 eval "$as_ac_Header=\$ac_header_preproc"
5748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5753 cat >>confdefs.h
<<_ACEOF
5754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5761 if test $ac_cv_header_sys_inttypes_h = yes; then
5762 HAVE_SYS_INTTYPES_H
=1
5764 HAVE_SYS_INTTYPES_H
=0
5767 if test $ac_cv_header_sys_bitypes_h = yes; then
5768 HAVE_SYS_BITYPES_H
=1
5770 HAVE_SYS_BITYPES_H
=0
5790 for gltype
in ptrdiff_t sig_atomic_t size_t wchar_t wint_t
; do
5791 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5792 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5793 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 if test "$cross_compiling" = yes; then
5797 # Depending upon the size, compute the lo and hi bounds.
5798 cat >conftest.
$ac_ext <<_ACEOF
5801 cat confdefs.h
>>conftest.
$ac_ext
5802 cat >>conftest.
$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5805 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5806 included before <wchar.h>. */
5819 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5826 rm -f conftest.
$ac_objext
5827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5828 (eval $ac_compile) 2>conftest.er1
5830 grep -v '^ *+' conftest.er1
>conftest.err
5832 cat conftest.err
>&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } &&
5835 { ac_try
='test -z "$ac_c_werror_flag"
5836 || test ! -s conftest.err'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; } &&
5842 { ac_try
='test -s conftest.$ac_objext'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5850 cat >conftest.
$ac_ext <<_ACEOF
5853 cat confdefs.h
>>conftest.
$ac_ext
5854 cat >>conftest.
$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5857 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5858 included before <wchar.h>. */
5871 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5878 rm -f conftest.
$ac_objext
5879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5880 (eval $ac_compile) 2>conftest.er1
5882 grep -v '^ *+' conftest.er1
>conftest.err
5884 cat conftest.err
>&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); } &&
5887 { ac_try
='test -z "$ac_c_werror_flag"
5888 || test ! -s conftest.err'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; } &&
5894 { ac_try
='test -s conftest.$ac_objext'
5895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; }; then
5900 ac_hi
=$ac_mid; break
5902 echo "$as_me: failed program was:" >&5
5903 sed 's/^/| /' conftest.
$ac_ext >&5
5905 ac_lo
=`expr $ac_mid + 1`
5906 if test $ac_lo -le $ac_mid; then
5910 ac_mid
=`expr 2 '*' $ac_mid + 1`
5912 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5915 echo "$as_me: failed program was:" >&5
5916 sed 's/^/| /' conftest.
$ac_ext >&5
5918 cat >conftest.
$ac_ext <<_ACEOF
5921 cat confdefs.h
>>conftest.
$ac_ext
5922 cat >>conftest.
$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5925 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5926 included before <wchar.h>. */
5939 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5946 rm -f conftest.
$ac_objext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5948 (eval $ac_compile) 2>conftest.er1
5950 grep -v '^ *+' conftest.er1
>conftest.err
5952 cat conftest.err
>&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try
='test -z "$ac_c_werror_flag"
5956 || test ! -s conftest.err'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; } &&
5962 { ac_try
='test -s conftest.$ac_objext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5970 cat >conftest.
$ac_ext <<_ACEOF
5973 cat confdefs.h
>>conftest.
$ac_ext
5974 cat >>conftest.
$ac_ext <<_ACEOF
5975 /* end confdefs.h. */
5977 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5978 included before <wchar.h>. */
5991 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5998 rm -f conftest.
$ac_objext
5999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6000 (eval $ac_compile) 2>conftest.er1
6002 grep -v '^ *+' conftest.er1
>conftest.err
6004 cat conftest.err
>&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } &&
6007 { ac_try
='test -z "$ac_c_werror_flag"
6008 || test ! -s conftest.err'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; } &&
6014 { ac_try
='test -s conftest.$ac_objext'
6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; }; then
6020 ac_lo
=$ac_mid; break
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.
$ac_ext >&5
6025 ac_hi
=`expr '(' $ac_mid ')' - 1`
6026 if test $ac_mid -le $ac_hi; then
6030 ac_mid
=`expr 2 '*' $ac_mid`
6032 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.
$ac_ext >&5
6040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6042 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6043 # Binary search between lo and hi bounds.
6044 while test "x$ac_lo" != "x$ac_hi"; do
6045 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6046 cat >conftest.
$ac_ext <<_ACEOF
6049 cat confdefs.h
>>conftest.
$ac_ext
6050 cat >>conftest.
$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6053 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6054 included before <wchar.h>. */
6067 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
6074 rm -f conftest.
$ac_objext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6076 (eval $ac_compile) 2>conftest.er1
6078 grep -v '^ *+' conftest.er1
>conftest.err
6080 cat conftest.err
>&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } &&
6083 { ac_try
='test -z "$ac_c_werror_flag"
6084 || test ! -s conftest.err'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; } &&
6090 { ac_try
='test -s conftest.$ac_objext'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.
$ac_ext >&5
6101 ac_lo
=`expr '(' $ac_mid ')' + 1`
6103 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6107 '') result
=unknown
;;
6110 if test "$cross_compiling" = yes; then
6111 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6112 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6113 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6114 See \`config.log' for more details." >&5
6115 echo "$as_me: error: cannot run test program while cross compiling
6116 See \`config.log' for more details." >&2;}
6117 { (exit 1); exit 1; }; }; }
6119 cat >conftest.
$ac_ext <<_ACEOF
6122 cat confdefs.h
>>conftest.
$ac_ext
6123 cat >>conftest.
$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6126 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6127 included before <wchar.h>. */
6137 long longval () { return sizeof ($gltype) * CHAR_BIT; }
6138 unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
6145 FILE *f = fopen ("conftest.val", "w");
6148 if ((sizeof ($gltype) * CHAR_BIT) < 0)
6150 long i = longval ();
6151 if (i != (sizeof ($gltype) * CHAR_BIT))
6153 fprintf (f, "%ld\n", i);
6157 unsigned long i = ulongval ();
6158 if (i != (sizeof ($gltype) * CHAR_BIT))
6160 fprintf (f, "%lu\n", i);
6162 exit (ferror (f) || fclose (f) != 0);
6168 rm -f conftest
$ac_exeext
6169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6170 (eval $ac_link) 2>&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
6179 result
=`cat conftest.val`
6181 echo "$as_me: program exited with status $ac_status" >&5
6182 echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.
$ac_ext >&5
6188 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6192 eval gl_cv_bitsizeof_
${gltype}=\
$result
6195 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
6196 echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
6197 eval result
=\
$gl_cv_bitsizeof_${gltype}
6198 if test $result = unknown
; then
6201 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6202 cat >>confdefs.h
<<_ACEOF
6203 #define BITSIZEOF_${GLTYPE} $result
6206 eval BITSIZEOF_
${GLTYPE}=\
$result
6215 for gltype
in sig_atomic_t wchar_t wint_t
; do
6216 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
6217 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
6218 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 cat >conftest.
$ac_ext <<_ACEOF
6224 cat confdefs.h
>>conftest.
$ac_ext
6225 cat >>conftest.
$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6228 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6229 included before <wchar.h>. */
6238 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6247 rm -f conftest.
$ac_objext
6248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6249 (eval $ac_compile) 2>conftest.er1
6251 grep -v '^ *+' conftest.er1
>conftest.err
6253 cat conftest.err
>&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } &&
6256 { ac_try
='test -z "$ac_c_werror_flag"
6257 || test ! -s conftest.err'
6258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; } &&
6263 { ac_try
='test -s conftest.$ac_objext'
6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; }; then
6271 echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.
$ac_ext >&5
6276 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6277 eval gl_cv_type_
${gltype}_signed
=\
$result
6280 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6281 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6282 eval result
=\
$gl_cv_type_${gltype}_signed
6283 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6284 if test "$result" = yes; then
6285 cat >>confdefs.h
<<_ACEOF
6286 #define HAVE_SIGNED_${GLTYPE} 1
6289 eval HAVE_SIGNED_
${GLTYPE}=1
6291 eval HAVE_SIGNED_
${GLTYPE}=0
6296 gl_cv_type_ptrdiff_t_signed
=yes
6297 gl_cv_type_size_t_signed
=no
6305 for gltype
in ptrdiff_t sig_atomic_t size_t wchar_t wint_t
; do
6306 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6307 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6308 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 eval gl_cv_type_
${gltype}_suffix
=no
6312 eval result
=\
$gl_cv_type_${gltype}_signed
6313 if test "$result" = yes; then
6318 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
6321 l
) gltype1
='long int';;
6322 ll
) gltype1
='long long int';;
6323 i64
) gltype1
='__int64';;
6324 u
) gltype1
='unsigned int';;
6325 ul
) gltype1
='unsigned long int';;
6326 ull
) gltype1
='unsigned long long int';;
6327 ui64
)gltype1
='unsigned __int64';;
6329 cat >conftest.
$ac_ext <<_ACEOF
6332 cat confdefs.h
>>conftest.
$ac_ext
6333 cat >>conftest.
$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6336 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6337 included before <wchar.h>. */
6347 extern $gltype1 foo;
6356 rm -f conftest.
$ac_objext
6357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6358 (eval $ac_compile) 2>conftest.er1
6360 grep -v '^ *+' conftest.er1
>conftest.err
6362 cat conftest.err
>&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } &&
6365 { ac_try
='test -z "$ac_c_werror_flag"
6366 || test ! -s conftest.err'
6367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); }; } &&
6372 { ac_try
='test -s conftest.$ac_objext'
6373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; }; then
6378 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
6380 echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.
$ac_ext >&5
6384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6385 eval result
=\
$gl_cv_type_${gltype}_suffix
6386 test "$result" != no
&& break
6389 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6390 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6391 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6392 eval result
=\
$gl_cv_type_${gltype}_suffix
6393 test "$result" = no
&& result
=
6394 eval ${GLTYPE}_SUFFIX
=\
$result
6395 cat >>confdefs.h
<<_ACEOF
6396 #define ${GLTYPE}_SUFFIX $result
6412 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6413 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6414 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6417 cat >conftest.
$ac_ext <<_ACEOF
6421 rm -f conftest.
$ac_objext
6422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6423 (eval $ac_compile) 2>conftest.er1
6425 grep -v '^ *+' conftest.er1
>conftest.err
6427 cat conftest.err
>&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } &&
6430 { ac_try
='test -z "$ac_c_werror_flag"
6431 || test ! -s conftest.err'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; } &&
6437 { ac_try
='test -s conftest.$ac_objext'
6438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; }; then
6443 gl_cv_header_wchar_h_standalone
=yes
6445 echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.
$ac_ext >&5
6448 gl_cv_header_wchar_h_standalone
=no
6450 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6452 echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6453 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6454 if test $gl_cv_header_wchar_h_standalone != yes; then
6465 if test $ac_cv_header_wchar_h = yes; then
6482 if test $gl_cv_have_include_next = yes; then
6483 gl_cv_next_wchar_h
='<'wchar.h
'>'
6485 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6486 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6487 if test "${gl_cv_next_wchar_h+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 if test $ac_cv_header_wchar_h = yes; then
6492 cat >conftest.
$ac_ext <<_ACEOF
6495 cat confdefs.h
>>conftest.
$ac_ext
6496 cat >>conftest.
$ac_ext <<_ACEOF
6497 /* end confdefs.h. */
6501 gl_cv_next_wchar_h
='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6502 sed -n '\#/wchar.h#{
6503 s#.*"\(.*/wchar.h\)".*#\1#
6509 gl_cv_next_wchar_h
='<'wchar.h
'>'
6513 echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6514 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6516 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
6530 gl_source_base
='tests'
6535 LIBGNU_LIBDEPS
="$gl_libdeps"
6537 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
6541 # For Makefile dependencies.
6543 if test x
"$STDINT_H" != x
; then
6544 GNULIB_STDINT_H
=gnulib
/$STDINT_H
6550 cat >>confdefs.h
<<_ACEOF
6551 #define PACKAGE "$PACKAGE"
6556 # GDB does not use automake, but gnulib does. This line lets us
6557 # generate its Makefile.in.
6558 am__api_version
="1.9"
6559 # Find a good install program. We prefer a C program (faster),
6560 # so one script is as good as another. But avoid the broken or
6561 # incompatible versions:
6562 # SysV /etc/install, /usr/sbin/install
6563 # SunOS /usr/etc/install
6564 # IRIX /sbin/install
6566 # AmigaOS /C/install, which installs bootblocks on floppy discs
6567 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6568 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6569 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6570 # OS/2's system install, which has a completely different semantic
6571 # ./install, which can be erroneously created by make from ./install.sh.
6572 # Reject install programs that cannot install multiple files.
6573 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6574 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6575 if test -z "$INSTALL"; then
6576 if test "${ac_cv_path_install+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6583 test -z "$as_dir" && as_dir
=.
6584 # Account for people who put trailing slashes in PATH elements.
6586 .
/ | .
// |
/cC
/* | \
6587 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6588 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
6591 # OSF1 and SCO ODT 3.0 have their own names for install.
6592 # Don't use installbsd from OSF since it installs stuff as root
6594 for ac_prog
in ginstall scoinst
install; do
6595 for ac_exec_ext
in '' $ac_executable_extensions; do
6596 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6597 if test $ac_prog = install &&
6598 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6599 # AIX install. It has an incompatible calling convention.
6601 elif test $ac_prog = install &&
6602 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6603 # program-specific install script used by HP pwplus--don't use.
6606 rm -rf conftest.one conftest.two conftest.dir
6607 echo one
> conftest.one
6608 echo two
> conftest.two
6610 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
6611 test -s conftest.one
&& test -s conftest.two
&&
6612 test -s conftest.dir
/conftest.one
&&
6613 test -s conftest.dir
/conftest.two
6615 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6626 rm -rf conftest.one conftest.two conftest.dir
6629 if test "${ac_cv_path_install+set}" = set; then
6630 INSTALL
=$ac_cv_path_install
6632 # As a last resort, use the slow shell script. Don't cache a
6633 # value for INSTALL within a source directory, because that will
6634 # break other packages using the cache if that directory is
6635 # removed, or if the value is a relative name.
6636 INSTALL
=$ac_install_sh
6639 echo "$as_me:$LINENO: result: $INSTALL" >&5
6640 echo "${ECHO_T}$INSTALL" >&6
6642 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6643 # It thinks the first close brace ends the variable substitution.
6644 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6646 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6648 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6650 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6651 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6654 echo timestamp
> conftest.
file
6655 # Do `set' in a subshell so we don't clobber the current shell's
6656 # arguments. Must try -L first in case configure is actually a
6657 # symlink; some systems play weird games with the mod time of symlinks
6658 # (eg FreeBSD returns the mod time of the symlink's containing
6661 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6662 if test "$*" = "X"; then
6664 set X
`ls -t $srcdir/configure conftest.file`
6667 if test "$*" != "X $srcdir/configure conftest.file" \
6668 && test "$*" != "X conftest.file $srcdir/configure"; then
6670 # If neither matched, then we have a broken ls. This can happen
6671 # if, for instance, CONFIG_SHELL is bash and it inherits a
6672 # broken ls alias from the environment. This has actually
6673 # happened. Such a system could not be considered "sane".
6674 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6675 alias in your environment" >&5
6676 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6677 alias in your environment" >&2;}
6678 { (exit 1); exit 1; }; }
6681 test "$2" = conftest.
file
6687 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6688 Check your system clock" >&5
6689 echo "$as_me: error: newly created file is older than distributed files!
6690 Check your system clock" >&2;}
6691 { (exit 1); exit 1; }; }
6693 echo "$as_me:$LINENO: result: yes" >&5
6694 echo "${ECHO_T}yes" >&6
6695 test "$program_prefix" != NONE
&&
6696 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
6697 # Use a double $ so make ignores it.
6698 test "$program_suffix" != NONE
&&
6699 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
6700 # Double any \ or $. echo might interpret backslashes.
6701 # By default was `s,x,x', remove it if useless.
6702 cat <<\_ACEOF
>conftest.
sed
6703 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
6705 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
6708 # expand $ac_aux_dir to an absolute path
6709 am_aux_dir
=`cd $ac_aux_dir && pwd`
6711 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
6712 # Use eval to expand $SHELL
6713 if eval "$MISSING --run true"; then
6714 am_missing_run
="$MISSING --run "
6717 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6718 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6721 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
6722 # We used to keeping the `.' as first argument, in order to
6723 # allow $(mkdir_p) to be used without argument. As in
6724 # $(mkdir_p) $(somedir)
6725 # where $(somedir) is conditionally defined. However this is wrong
6727 # 1. if the package is installed by a user who cannot write `.'
6728 # make install will fail,
6729 # 2. the above comment should most certainly read
6730 # $(mkdir_p) $(DESTDIR)$(somedir)
6731 # so it does not work when $(somedir) is undefined and
6732 # $(DESTDIR) is not.
6733 # To support the latter case, we have to write
6734 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6735 # so the `.' trick is pointless.
6736 mkdir_p
='mkdir -p --'
6738 # On NextStep and OpenStep, the `mkdir' command does not
6739 # recognize any option. It will interpret all options as
6740 # directories to create, and then abort because `.' already
6742 for d
in .
/-p .
/--version;
6744 test -d $d && rmdir $d
6746 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6747 if test -f "$ac_aux_dir/mkinstalldirs"; then
6748 mkdir_p
='$(mkinstalldirs)'
6750 mkdir_p
='$(install_sh) -d'
6754 for ac_prog
in gawk mawk nawk
awk
6756 # Extract the first word of "$ac_prog", so it can be a program name with args.
6757 set dummy
$ac_prog; ac_word
=$2
6758 echo "$as_me:$LINENO: checking for $ac_word" >&5
6759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6760 if test "${ac_cv_prog_AWK+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 if test -n "$AWK"; then
6764 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6766 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6770 test -z "$as_dir" && as_dir
=.
6771 for ac_exec_ext
in '' $ac_executable_extensions; do
6772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6773 ac_cv_prog_AWK
="$ac_prog"
6774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 if test -n "$AWK"; then
6784 echo "$as_me:$LINENO: result: $AWK" >&5
6785 echo "${ECHO_T}$AWK" >&6
6787 echo "$as_me:$LINENO: result: no" >&5
6788 echo "${ECHO_T}no" >&6
6791 test -n "$AWK" && break
6794 ac_config_commands
="$ac_config_commands depfiles"
6797 am_make
=${MAKE-make}
6798 cat > confinc
<< 'END'
6803 # If we don't find an include directive, just comment out the code.
6804 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6805 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6809 # First try GNU make style include.
6810 echo "include confinc" > confmf
6811 # We grep out `Entering directory' and `Leaving directory'
6812 # messages which can occur if `w' ends up in MAKEFLAGS.
6813 # In particular we don't look at `^make:' because GNU make might
6814 # be invoked under some other name (usually "gmake"), in which
6815 # case it prints its new name instead of `make'.
6816 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6821 # Now try BSD make style include.
6822 if test "$am__include" = "#"; then
6823 echo '.include "confinc"' > confmf
6824 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6825 am__include
=.include
6832 echo "$as_me:$LINENO: result: $_am_result" >&5
6833 echo "${ECHO_T}$_am_result" >&6
6834 rm -f confinc confmf
6836 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6837 if test "${enable_dependency_tracking+set}" = set; then
6838 enableval
="$enable_dependency_tracking"
6841 if test "x$enable_dependency_tracking" != xno
; then
6842 am_depcomp
="$ac_aux_dir/depcomp"
6847 if test "x$enable_dependency_tracking" != xno; then
6857 # test to see if srcdir already configured
6858 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6859 test -f $srcdir/config.status
; then
6860 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6861 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6862 { (exit 1); exit 1; }; }
6865 # test whether we have cygpath
6866 if test -z "$CYGPATH_W"; then
6867 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
6868 CYGPATH_W
='cygpath -w'
6875 # Define the identity of the package.
6877 VERSION
=UNUSED-VERSION
6880 # Some tools Automake needs.
6882 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6885 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
6888 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6891 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
6894 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
6896 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
6898 # Installed binaries are usually stripped using `strip' when the user
6899 # run `make install-strip'. However `strip' might not be the right
6900 # tool to use in cross-compilation environments, therefore Automake
6901 # will honor the `STRIP' environment variable to overrule this program.
6902 if test "$cross_compiling" != no
; then
6903 if test -n "$ac_tool_prefix"; then
6904 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6905 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6906 echo "$as_me:$LINENO: checking for $ac_word" >&5
6907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6908 if test "${ac_cv_prog_STRIP+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6911 if test -n "$STRIP"; then
6912 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6918 test -z "$as_dir" && as_dir
=.
6919 for ac_exec_ext
in '' $ac_executable_extensions; do
6920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6921 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6930 STRIP
=$ac_cv_prog_STRIP
6931 if test -n "$STRIP"; then
6932 echo "$as_me:$LINENO: result: $STRIP" >&5
6933 echo "${ECHO_T}$STRIP" >&6
6935 echo "$as_me:$LINENO: result: no" >&5
6936 echo "${ECHO_T}no" >&6
6940 if test -z "$ac_cv_prog_STRIP"; then
6942 # Extract the first word of "strip", so it can be a program name with args.
6943 set dummy strip
; ac_word
=$2
6944 echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6946 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 if test -n "$ac_ct_STRIP"; then
6950 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6956 test -z "$as_dir" && as_dir
=.
6957 for ac_exec_ext
in '' $ac_executable_extensions; do
6958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6959 ac_cv_prog_ac_ct_STRIP
="strip"
6960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
6969 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6970 if test -n "$ac_ct_STRIP"; then
6971 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6972 echo "${ECHO_T}$ac_ct_STRIP" >&6
6974 echo "$as_me:$LINENO: result: no" >&5
6975 echo "${ECHO_T}no" >&6
6980 STRIP
="$ac_cv_prog_STRIP"
6984 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
6986 # We need awk for the "check" target. The system "awk" is bad on
6988 # Always define AMTAR for backward compatibility.
6990 AMTAR
=${AMTAR-"${am_missing_run}tar"}
6992 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
6997 depcc
="$CC" am_compiler_list
=
6999 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7000 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7001 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7005 # We make a subdir and do the tests there. Otherwise we can end up
7006 # making bogus files that we don't know about and never remove. For
7007 # instance it was reported that on HP-UX the gcc test will end up
7008 # making a dummy file named `D' -- because `-MD' means `put the output
7011 # Copy depcomp to subdir because otherwise we won't find it if we're
7012 # using a relative directory.
7013 cp "$am_depcomp" conftest.dir
7015 # We will build objects and dependencies in a subdirectory because
7016 # it helps to detect inapplicable dependency modes. For instance
7017 # both Tru64's cc and ICC support -MD to output dependencies as a
7018 # side effect of compilation, but ICC will put the dependencies in
7019 # the current directory while Tru64 will put them in the object
7023 am_cv_CC_dependencies_compiler_type
=none
7024 if test "$am_compiler_list" = ""; then
7025 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7027 for depmode
in $am_compiler_list; do
7028 # Setup a source with many dependencies, because some compilers
7029 # like to wrap large dependency lists on column 80 (with \), and
7030 # we should not choose a depcomp mode which is confused by this.
7032 # We need to recreate these files for each test, as the compiler may
7033 # overwrite some of them when testing with obscure command lines.
7034 # This happens at least with the AIX C compiler.
7036 for i
in 1 2 3 4 5 6; do
7037 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
7038 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7039 # Solaris 8's {/usr,}/bin/sh.
7040 touch sub
/conftst
$i.h
7042 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7046 # after this tag, mechanisms are not by side-effect, so they'll
7047 # only be used when explicitly requested
7048 if test "x$enable_dependency_tracking" = xyes
; then
7056 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7057 # mode. It turns out that the SunPro C++ compiler does not properly
7058 # handle `-M -o', and we need to detect this.
7059 if depmode
=$depmode \
7060 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
7061 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
7062 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
7063 >/dev
/null
2>conftest.err
&&
7064 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7065 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
7066 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
7067 # icc doesn't choke on unknown options, it will just issue warnings
7068 # or remarks (even with -Werror). So we grep stderr for any message
7069 # that says an option was ignored or not supported.
7070 # When given -MP, icc 7.0 and 7.1 complain thusly:
7071 # icc: Command line warning: ignoring option '-M'; no argument required
7072 # The diagnosis changed in icc 8.0:
7073 # icc: Command line remark: option '-MP' not supported
7074 if (grep 'ignoring option' conftest.err ||
7075 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
7076 am_cv_CC_dependencies_compiler_type
=$depmode
7085 am_cv_CC_dependencies_compiler_type
=none
7089 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7090 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
7091 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
7096 test "x$enable_dependency_tracking" != xno \
7097 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
7099 am__fastdepCC_FALSE
='#'
7101 am__fastdepCC_TRUE
='#'
7102 am__fastdepCC_FALSE
=
7108 debugdir
=${libdir}/debug
7111 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
7112 if test "${with_separate_debug_dir+set}" = set; then
7113 withval
="$with_separate_debug_dir"
7114 debugdir
="${withval}"
7118 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7119 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7120 ac_define_dir
=`eval echo $debugdir`
7121 ac_define_dir
=`eval echo $ac_define_dir`
7123 cat >>confdefs.h
<<_ACEOF
7124 #define DEBUGDIR "$ac_define_dir"
7128 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
7130 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7131 if test "x$prefix" = xNONE
; then
7132 test_prefix
=/usr
/local
7137 test_prefix
=$exec_prefix
7140 "${test_prefix}"|
"${test_prefix}/"*|\
7141 '${exec_prefix}'|
'${exec_prefix}/'*)
7143 cat >>confdefs.h
<<\_ACEOF
7144 #define DEBUGDIR_RELOCATABLE 1
7151 # Check whether --with-relocated-sources or --without-relocated-sources was given.
7152 if test "${with_relocated_sources+set}" = set; then
7153 withval
="$with_relocated_sources"
7154 reloc_srcdir
="${withval}"
7156 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7157 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7158 ac_define_dir
=`eval echo $reloc_srcdir`
7159 ac_define_dir
=`eval echo $ac_define_dir`
7161 cat >>confdefs.h
<<_ACEOF
7162 #define RELOC_SRCDIR "$ac_define_dir"
7171 subdirs
="$subdirs doc testsuite"
7174 # Check whether to support alternative target configurations
7175 # Check whether --enable-targets or --disable-targets was given.
7176 if test "${enable_targets+set}" = set; then
7177 enableval
="$enable_targets"
7178 case "${enableval}" in
7179 yes |
"") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
7180 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
7181 { (exit 1); exit 1; }; }
7183 no
) enable_targets
= ;;
7184 *) enable_targets
=$enableval ;;
7188 # Check whether to enable 64-bit support on 32-bit hosts
7189 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
7190 if test "${enable_64_bit_bfd+set}" = set; then
7191 enableval
="$enable_64_bit_bfd"
7192 case "${enableval}" in
7195 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
7196 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
7197 { (exit 1); exit 1; }; } ;;
7202 # Provide defaults for some variables set by the per-host and per-target
7204 gdb_host_obs
=posix-hdep.o
7206 if test "${target}" = "${host}"; then
7212 .
$srcdir/configure.
host
7214 # Accumulate some settings from configure.tgt over all enabled targets
7219 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7221 if test "$targ_alias" = "all"; then
7224 # Canonicalize the secondary target names.
7225 result
=`$ac_config_sub $targ_alias 2>/dev/null`
7226 if test -n "$result"; then
7232 .
${srcdir}/configure.tgt
7234 # Target-specific object files
7235 for i
in ${gdb_target_obs}; do
7236 case " $TARGET_OBS " in
7239 TARGET_OBS
="$TARGET_OBS ${i}"
7244 # Check whether this target needs 64-bit CORE_ADDR
7245 if test x
${want64} = xfalse
; then
7246 .
${srcdir}/..
/bfd
/config.bfd
7251 if test x
${all_targets} = xtrue
; then
7253 # We want all 64-bit targets if we either:
7254 # - run on a 64-bit host or
7255 # - already require 64-bit support for some other target or
7256 # - the --enable-64-bit-bfd option was supplied
7257 # Otherwise we only support all 32-bit targets.
7259 # NOTE: This test must be in sync with the corresponding
7262 if test x
${want64} = xfalse
; then
7263 echo "$as_me:$LINENO: checking for long" >&5
7264 echo $ECHO_N "checking for long... $ECHO_C" >&6
7265 if test "${ac_cv_type_long+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 cat >conftest.
$ac_ext <<_ACEOF
7271 cat confdefs.h
>>conftest.
$ac_ext
7272 cat >>conftest.
$ac_ext <<_ACEOF
7273 /* end confdefs.h. */
7274 $ac_includes_default
7286 rm -f conftest.
$ac_objext
7287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7288 (eval $ac_compile) 2>conftest.er1
7290 grep -v '^ *+' conftest.er1
>conftest.err
7292 cat conftest.err
>&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } &&
7295 { ac_try
='test -z "$ac_c_werror_flag"
7296 || test ! -s conftest.err'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; } &&
7302 { ac_try
='test -s conftest.$ac_objext'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.
$ac_ext >&5
7315 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7317 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7318 echo "${ECHO_T}$ac_cv_type_long" >&6
7320 echo "$as_me:$LINENO: checking size of long" >&5
7321 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7322 if test "${ac_cv_sizeof_long+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 if test "$ac_cv_type_long" = yes; then
7326 # The cast to unsigned long works around a bug in the HP C Compiler
7327 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7328 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7329 # This bug is HP SR number 8606223364.
7330 if test "$cross_compiling" = yes; then
7331 # Depending upon the size, compute the lo and hi bounds.
7332 cat >conftest.
$ac_ext <<_ACEOF
7335 cat confdefs.h
>>conftest.
$ac_ext
7336 cat >>conftest.
$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7338 $ac_includes_default
7342 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7349 rm -f conftest.
$ac_objext
7350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7351 (eval $ac_compile) 2>conftest.er1
7353 grep -v '^ *+' conftest.er1
>conftest.err
7355 cat conftest.err
>&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); } &&
7358 { ac_try
='test -z "$ac_c_werror_flag"
7359 || test ! -s conftest.err'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; } &&
7365 { ac_try
='test -s conftest.$ac_objext'
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7373 cat >conftest.
$ac_ext <<_ACEOF
7376 cat confdefs.h
>>conftest.
$ac_ext
7377 cat >>conftest.
$ac_ext <<_ACEOF
7378 /* end confdefs.h. */
7379 $ac_includes_default
7383 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7390 rm -f conftest.
$ac_objext
7391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7392 (eval $ac_compile) 2>conftest.er1
7394 grep -v '^ *+' conftest.er1
>conftest.err
7396 cat conftest.err
>&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } &&
7399 { ac_try
='test -z "$ac_c_werror_flag"
7400 || test ! -s conftest.err'
7401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); }; } &&
7406 { ac_try
='test -s conftest.$ac_objext'
7407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); }; }; then
7412 ac_hi
=$ac_mid; break
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.
$ac_ext >&5
7417 ac_lo
=`expr $ac_mid + 1`
7418 if test $ac_lo -le $ac_mid; then
7422 ac_mid
=`expr 2 '*' $ac_mid + 1`
7424 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7427 echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.
$ac_ext >&5
7430 cat >conftest.
$ac_ext <<_ACEOF
7433 cat confdefs.h
>>conftest.
$ac_ext
7434 cat >>conftest.
$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7436 $ac_includes_default
7440 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7447 rm -f conftest.
$ac_objext
7448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7449 (eval $ac_compile) 2>conftest.er1
7451 grep -v '^ *+' conftest.er1
>conftest.err
7453 cat conftest.err
>&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } &&
7456 { ac_try
='test -z "$ac_c_werror_flag"
7457 || test ! -s conftest.err'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; } &&
7463 { ac_try
='test -s conftest.$ac_objext'
7464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; }; then
7471 cat >conftest.
$ac_ext <<_ACEOF
7474 cat confdefs.h
>>conftest.
$ac_ext
7475 cat >>conftest.
$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7477 $ac_includes_default
7481 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7488 rm -f conftest.
$ac_objext
7489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7490 (eval $ac_compile) 2>conftest.er1
7492 grep -v '^ *+' conftest.er1
>conftest.err
7494 cat conftest.err
>&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); } &&
7497 { ac_try
='test -z "$ac_c_werror_flag"
7498 || test ! -s conftest.err'
7499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }; } &&
7504 { ac_try
='test -s conftest.$ac_objext'
7505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); }; }; then
7510 ac_lo
=$ac_mid; break
7512 echo "$as_me: failed program was:" >&5
7513 sed 's/^/| /' conftest.
$ac_ext >&5
7515 ac_hi
=`expr '(' $ac_mid ')' - 1`
7516 if test $ac_mid -le $ac_hi; then
7520 ac_mid
=`expr 2 '*' $ac_mid`
7522 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7525 echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.
$ac_ext >&5
7530 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7532 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7533 # Binary search between lo and hi bounds.
7534 while test "x$ac_lo" != "x$ac_hi"; do
7535 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7536 cat >conftest.
$ac_ext <<_ACEOF
7539 cat confdefs.h
>>conftest.
$ac_ext
7540 cat >>conftest.
$ac_ext <<_ACEOF
7541 /* end confdefs.h. */
7542 $ac_includes_default
7546 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7553 rm -f conftest.
$ac_objext
7554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7555 (eval $ac_compile) 2>conftest.er1
7557 grep -v '^ *+' conftest.er1
>conftest.err
7559 cat conftest.err
>&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } &&
7562 { ac_try
='test -z "$ac_c_werror_flag"
7563 || test ! -s conftest.err'
7564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); }; } &&
7569 { ac_try
='test -s conftest.$ac_objext'
7570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; }; then
7577 echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.
$ac_ext >&5
7580 ac_lo
=`expr '(' $ac_mid ')' + 1`
7582 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7585 ?
*) ac_cv_sizeof_long
=$ac_lo;;
7586 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7587 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7588 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7589 See \`config.log' for more details." >&5
7590 echo "$as_me: error: cannot compute sizeof (long), 77
7591 See \`config.log' for more details." >&2;}
7592 { (exit 1); exit 1; }; }; } ;;
7595 if test "$cross_compiling" = yes; then
7596 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7597 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7598 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7599 See \`config.log' for more details." >&5
7600 echo "$as_me: error: cannot run test program while cross compiling
7601 See \`config.log' for more details." >&2;}
7602 { (exit 1); exit 1; }; }; }
7604 cat >conftest.
$ac_ext <<_ACEOF
7607 cat confdefs.h
>>conftest.
$ac_ext
7608 cat >>conftest.
$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7610 $ac_includes_default
7611 long longval () { return (long) (sizeof (long)); }
7612 unsigned long ulongval () { return (long) (sizeof (long)); }
7619 FILE *f = fopen ("conftest.val", "w");
7622 if (((long) (sizeof (long))) < 0)
7624 long i = longval ();
7625 if (i != ((long) (sizeof (long))))
7627 fprintf (f, "%ld\n", i);
7631 unsigned long i = ulongval ();
7632 if (i != ((long) (sizeof (long))))
7634 fprintf (f, "%lu\n", i);
7636 exit (ferror (f) || fclose (f) != 0);
7642 rm -f conftest
$ac_exeext
7643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7644 (eval $ac_link) 2>&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; }; then
7653 ac_cv_sizeof_long
=`cat conftest.val`
7655 echo "$as_me: program exited with status $ac_status" >&5
7656 echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.
$ac_ext >&5
7660 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7661 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7662 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7663 See \`config.log' for more details." >&5
7664 echo "$as_me: error: cannot compute sizeof (long), 77
7665 See \`config.log' for more details." >&2;}
7666 { (exit 1); exit 1; }; }; }
7668 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7676 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7677 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7678 cat >>confdefs.h
<<_ACEOF
7679 #define SIZEOF_LONG $ac_cv_sizeof_long
7683 if test "x${ac_cv_sizeof_long}" = "x8"; then
7687 if test x
${want64} = xtrue
; then
7688 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7690 TARGET_OBS
='$(ALL_TARGET_OBS)'
7696 # For other settings, only the main target counts.
7700 targ
=$target; .
${srcdir}/configure.tgt
7702 # Fetch the default architecture and default target vector from BFD.
7703 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
7705 # We only want the first architecture, so strip off the others if
7706 # there is more than one.
7707 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
7709 if test "x$targ_archs" != x
; then
7711 cat >>confdefs.h
<<_ACEOF
7712 #define DEFAULT_BFD_ARCH $targ_archs
7716 if test "x$targ_defvec" != x
; then
7718 cat >>confdefs.h
<<_ACEOF
7719 #define DEFAULT_BFD_VEC $targ_defvec
7724 # The CLI cannot be disabled yet, but may be in the future.
7727 # Check whether --enable-gdbcli or --disable-gdbcli was given.
7728 if test "${enable_gdbcli+set}" = set; then
7729 enableval
="$enable_gdbcli"
7734 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7735 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7736 { (exit 1); exit 1; }; } ;;
7738 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7739 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7740 { (exit 1); exit 1; }; } ;;
7745 if test x
"$enable_gdbcli" = xyes
; then
7746 if test -d $srcdir/cli
; then
7747 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7748 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7749 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7750 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7755 # Check whether --enable-gdbmi or --disable-gdbmi was given.
7756 if test "${enable_gdbmi+set}" = set; then
7757 enableval
="$enable_gdbmi"
7762 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7763 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7764 { (exit 1); exit 1; }; } ;;
7769 if test x
"$enable_gdbmi" = xyes
; then
7770 if test -d $srcdir/mi
; then
7771 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7772 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7773 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7774 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7779 # Check whether --enable-tui or --disable-tui was given.
7780 if test "${enable_tui+set}" = set; then
7781 enableval
="$enable_tui"
7786 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7787 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7788 { (exit 1); exit 1; }; } ;;
7795 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7796 if test "${enable_gdbtk+set}" = set; then
7797 enableval
="$enable_gdbtk"
7802 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7803 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7804 { (exit 1); exit 1; }; } ;;
7807 if test -d $srcdir/gdbtk
; then
7813 # We unconditionally disable gdbtk tests on selected platforms.
7816 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7817 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7821 # Libunwind support.
7823 # Check whether --with-libunwind or --without-libunwind was given.
7824 if test "${with_libunwind+set}" = set; then
7825 withval
="$with_libunwind"
7826 case "${withval}" in
7827 yes) enable_libunwind
=yes ;;
7828 no
) enable_libunwind
=no
;;
7829 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7830 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7831 { (exit 1); exit 1; }; } ;;
7837 for ac_header
in libunwind.h libunwind-ia64.h
7839 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7841 echo "$as_me:$LINENO: checking for $ac_header" >&5
7842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7849 # Is the header compilable?
7850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7852 cat >conftest.
$ac_ext <<_ACEOF
7855 cat confdefs.h
>>conftest.
$ac_ext
7856 cat >>conftest.
$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7858 $ac_includes_default
7859 #include <$ac_header>
7861 rm -f conftest.
$ac_objext
7862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7863 (eval $ac_compile) 2>conftest.er1
7865 grep -v '^ *+' conftest.er1
>conftest.err
7867 cat conftest.err
>&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } &&
7870 { ac_try
='test -z "$ac_c_werror_flag"
7871 || test ! -s conftest.err'
7872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; } &&
7877 { ac_try
='test -s conftest.$ac_objext'
7878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; }; then
7883 ac_header_compiler
=yes
7885 echo "$as_me: failed program was:" >&5
7886 sed 's/^/| /' conftest.
$ac_ext >&5
7888 ac_header_compiler
=no
7890 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7892 echo "${ECHO_T}$ac_header_compiler" >&6
7894 # Is the header present?
7895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7897 cat >conftest.
$ac_ext <<_ACEOF
7900 cat confdefs.h
>>conftest.
$ac_ext
7901 cat >>conftest.
$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903 #include <$ac_header>
7905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7906 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7908 grep -v '^ *+' conftest.er1
>conftest.err
7910 cat conftest.err
>&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); } >/dev
/null
; then
7913 if test -s conftest.err
; then
7914 ac_cpp_err
=$ac_c_preproc_warn_flag
7915 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7922 if test -z "$ac_cpp_err"; then
7923 ac_header_preproc
=yes
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.
$ac_ext >&5
7928 ac_header_preproc
=no
7930 rm -f conftest.err conftest.
$ac_ext
7931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7932 echo "${ECHO_T}$ac_header_preproc" >&6
7934 # So? What about this header?
7935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7941 ac_header_preproc
=yes
7944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7958 ## ------------------------------------------ ##
7959 ## Report this to the AC_PACKAGE_NAME lists. ##
7960 ## ------------------------------------------ ##
7963 sed "s/^/$as_me: WARNING: /" >&2
7966 echo "$as_me:$LINENO: checking for $ac_header" >&5
7967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7969 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 eval "$as_ac_Header=\$ac_header_preproc"
7973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7978 cat >>confdefs.h
<<_ACEOF
7979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7986 if test x
"$ac_cv_header_libunwind_h" = xyes
-a x
"$ac_cv_header_libunwind_ia64_h" = xyes
; then
7987 enable_libunwind
=yes;
7992 if test x
"$enable_libunwind" = xyes
; then
7995 for ac_header
in libunwind.h libunwind-ia64.h
7997 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7999 echo "$as_me:$LINENO: checking for $ac_header" >&5
8000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8007 # Is the header compilable?
8008 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8010 cat >conftest.
$ac_ext <<_ACEOF
8013 cat confdefs.h
>>conftest.
$ac_ext
8014 cat >>conftest.
$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8016 $ac_includes_default
8017 #include <$ac_header>
8019 rm -f conftest.
$ac_objext
8020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8021 (eval $ac_compile) 2>conftest.er1
8023 grep -v '^ *+' conftest.er1
>conftest.err
8025 cat conftest.err
>&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } &&
8028 { ac_try
='test -z "$ac_c_werror_flag"
8029 || test ! -s conftest.err'
8030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); }; } &&
8035 { ac_try
='test -s conftest.$ac_objext'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; }; then
8041 ac_header_compiler
=yes
8043 echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.
$ac_ext >&5
8046 ac_header_compiler
=no
8048 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8050 echo "${ECHO_T}$ac_header_compiler" >&6
8052 # Is the header present?
8053 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8055 cat >conftest.
$ac_ext <<_ACEOF
8058 cat confdefs.h
>>conftest.
$ac_ext
8059 cat >>conftest.
$ac_ext <<_ACEOF
8060 /* end confdefs.h. */
8061 #include <$ac_header>
8063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8064 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8066 grep -v '^ *+' conftest.er1
>conftest.err
8068 cat conftest.err
>&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } >/dev
/null
; then
8071 if test -s conftest.err
; then
8072 ac_cpp_err
=$ac_c_preproc_warn_flag
8073 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8080 if test -z "$ac_cpp_err"; then
8081 ac_header_preproc
=yes
8083 echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.
$ac_ext >&5
8086 ac_header_preproc
=no
8088 rm -f conftest.err conftest.
$ac_ext
8089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8090 echo "${ECHO_T}$ac_header_preproc" >&6
8092 # So? What about this header?
8093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8099 ac_header_preproc
=yes
8102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8109 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8116 ## ------------------------------------------ ##
8117 ## Report this to the AC_PACKAGE_NAME lists. ##
8118 ## ------------------------------------------ ##
8121 sed "s/^/$as_me: WARNING: /" >&2
8124 echo "$as_me:$LINENO: checking for $ac_header" >&5
8125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8127 echo $ECHO_N "(cached) $ECHO_C" >&6
8129 eval "$as_ac_Header=\$ac_header_preproc"
8131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8136 cat >>confdefs.h
<<_ACEOF
8137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8145 cat >>confdefs.h
<<\_ACEOF
8146 #define HAVE_LIBUNWIND 1
8149 CONFIG_OBS
="$CONFIG_OBS libunwind-frame.o"
8150 CONFIG_DEPS
="$CONFIG_DEPS libunwind-frame.o"
8151 CONFIG_SRCS
="$CONFIG_SRCS libunwind-frame.c"
8156 # Check whether --with-curses or --without-curses was given.
8157 if test "${with_curses+set}" = set; then
8158 withval
="$with_curses"
8163 if test "$opt_curses" = "yes"; then
8167 # Profiling support.
8168 # Check whether --enable-profiling or --disable-profiling was given.
8169 if test "${enable_profiling+set}" = set; then
8170 enableval
="$enable_profiling"
8175 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8176 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8177 { (exit 1); exit 1; }; } ;;
8185 for ac_func
in monstartup _mcleanup
8187 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8188 echo "$as_me:$LINENO: checking for $ac_func" >&5
8189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8190 if eval "test \"\${$as_ac_var+set}\" = set"; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8193 cat >conftest.
$ac_ext <<_ACEOF
8196 cat confdefs.h
>>conftest.
$ac_ext
8197 cat >>conftest.
$ac_ext <<_ACEOF
8198 /* end confdefs.h. */
8199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8201 #define $ac_func innocuous_$ac_func
8203 /* System header to define __stub macros and hopefully few prototypes,
8204 which can conflict with char $ac_func (); below.
8205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8206 <limits.h> exists even on freestanding compilers. */
8209 # include <limits.h>
8211 # include <assert.h>
8216 /* Override any gcc2 internal prototype to avoid an error. */
8221 /* We use char because int might match the return type of a gcc2
8222 builtin and then its argument prototype would still apply. */
8224 /* The GNU C library defines this for functions which it implements
8225 to always fail with ENOSYS. Some functions are actually named
8226 something starting with __ and the normal name is an alias. */
8227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8230 char (*f) () = $ac_func;
8239 return f != $ac_func;
8244 rm -f conftest.
$ac_objext conftest
$ac_exeext
8245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8246 (eval $ac_link) 2>conftest.er1
8248 grep -v '^ *+' conftest.er1
>conftest.err
8250 cat conftest.err
>&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } &&
8253 { ac_try
='test -z "$ac_c_werror_flag"
8254 || test ! -s conftest.err'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; } &&
8260 { ac_try
='test -s conftest$ac_exeext'
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; }; then
8266 eval "$as_ac_var=yes"
8268 echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.
$ac_ext >&5
8271 eval "$as_ac_var=no"
8273 rm -f conftest.err conftest.
$ac_objext \
8274 conftest
$ac_exeext conftest.
$ac_ext
8276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8278 if test `eval echo '${'$as_ac_var'}'` = yes; then
8279 cat >>confdefs.h
<<_ACEOF
8280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8286 echo "$as_me:$LINENO: checking for _etext" >&5
8287 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8288 if test "${ac_cv_var__etext+set}" = set; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 cat >conftest.
$ac_ext <<_ACEOF
8294 cat confdefs.h
>>conftest.
$ac_ext
8295 cat >>conftest.
$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8308 rm -f conftest.
$ac_objext conftest
$ac_exeext
8309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8310 (eval $ac_link) 2>conftest.er1
8312 grep -v '^ *+' conftest.er1
>conftest.err
8314 cat conftest.err
>&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } &&
8317 { ac_try
='test -z "$ac_c_werror_flag"
8318 || test ! -s conftest.err'
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; } &&
8324 { ac_try
='test -s conftest$ac_exeext'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 ac_cv_var__etext
=yes
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.
$ac_ext >&5
8337 rm -f conftest.err conftest.
$ac_objext \
8338 conftest
$ac_exeext conftest.
$ac_ext
8340 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8341 echo "${ECHO_T}$ac_cv_var__etext" >&6
8342 if test $ac_cv_var__etext = yes; then
8344 cat >>confdefs.h
<<\_ACEOF
8345 #define HAVE__ETEXT 1
8349 echo "$as_me:$LINENO: checking for etext" >&5
8350 echo $ECHO_N "checking for etext... $ECHO_C" >&6
8351 if test "${ac_cv_var_etext+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8354 cat >conftest.
$ac_ext <<_ACEOF
8357 cat confdefs.h
>>conftest.
$ac_ext
8358 cat >>conftest.
$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8371 rm -f conftest.
$ac_objext conftest
$ac_exeext
8372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8373 (eval $ac_link) 2>conftest.er1
8375 grep -v '^ *+' conftest.er1
>conftest.err
8377 cat conftest.err
>&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } &&
8380 { ac_try
='test -z "$ac_c_werror_flag"
8381 || test ! -s conftest.err'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; } &&
8387 { ac_try
='test -s conftest$ac_exeext'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; }; then
8395 echo "$as_me: failed program was:" >&5
8396 sed 's/^/| /' conftest.
$ac_ext >&5
8400 rm -f conftest.err conftest.
$ac_objext \
8401 conftest
$ac_exeext conftest.
$ac_ext
8403 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8404 echo "${ECHO_T}$ac_cv_var_etext" >&6
8405 if test $ac_cv_var_etext = yes; then
8407 cat >>confdefs.h
<<\_ACEOF
8408 #define HAVE_ETEXT 1
8412 if test "$enable_profiling" = yes ; then
8413 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
8414 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8415 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8416 { (exit 1); exit 1; }; }
8419 OLD_CFLAGS
="$CFLAGS"
8420 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
8422 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8423 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8424 if test "${ac_cv_cc_supports_pg+set}" = set; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8427 cat >conftest.
$ac_ext <<_ACEOF
8430 cat confdefs.h
>>conftest.
$ac_ext
8431 cat >>conftest.
$ac_ext <<_ACEOF
8432 /* end confdefs.h. */
8442 rm -f conftest.
$ac_objext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8444 (eval $ac_compile) 2>conftest.er1
8446 grep -v '^ *+' conftest.er1
>conftest.err
8448 cat conftest.err
>&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } &&
8451 { ac_try
='test -z "$ac_c_werror_flag"
8452 || test ! -s conftest.err'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; } &&
8458 { ac_try
='test -s conftest.$ac_objext'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; }; then
8464 ac_cv_cc_supports_pg
=yes
8466 echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.
$ac_ext >&5
8469 ac_cv_cc_supports_pg
=no
8471 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8473 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8474 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8476 if test $ac_cv_cc_supports_pg = no
; then
8477 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8478 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8479 { (exit 1); exit 1; }; }
8482 CFLAGS
="$OLD_CFLAGS"
8487 # Check whether --with-pkgversion or --without-pkgversion was given.
8488 if test "${with_pkgversion+set}" = set; then
8489 withval
="$with_pkgversion"
8491 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8492 echo "$as_me: error: package version not specified" >&2;}
8493 { (exit 1); exit 1; }; } ;;
8495 *) PKGVERSION
="($withval) " ;;
8505 # Check whether --with-bugurl or --without-bugurl was given.
8506 if test "${with_bugurl+set}" = set; then
8507 withval
="$with_bugurl"
8509 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8510 echo "$as_me: error: bug URL not specified" >&2;}
8511 { (exit 1); exit 1; }; } ;;
8514 *) BUGURL
="$withval"
8518 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
8527 REPORT_BUGS_TO
="<$BUGURL>"
8528 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8535 cat >>confdefs.h
<<_ACEOF
8536 #define PKGVERSION "$PKGVERSION"
8540 cat >>confdefs.h
<<_ACEOF
8541 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8545 # --------------------- #
8546 # Checks for programs. #
8547 # --------------------- #
8549 for ac_prog
in gawk mawk nawk
awk
8551 # Extract the first word of "$ac_prog", so it can be a program name with args.
8552 set dummy
$ac_prog; ac_word
=$2
8553 echo "$as_me:$LINENO: checking for $ac_word" >&5
8554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8555 if test "${ac_cv_prog_AWK+set}" = set; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8558 if test -n "$AWK"; then
8559 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8565 test -z "$as_dir" && as_dir
=.
8566 for ac_exec_ext
in '' $ac_executable_extensions; do
8567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8568 ac_cv_prog_AWK
="$ac_prog"
8569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8578 if test -n "$AWK"; then
8579 echo "$as_me:$LINENO: result: $AWK" >&5
8580 echo "${ECHO_T}$AWK" >&6
8582 echo "$as_me:$LINENO: result: no" >&5
8583 echo "${ECHO_T}no" >&6
8586 test -n "$AWK" && break
8589 # Find a good install program. We prefer a C program (faster),
8590 # so one script is as good as another. But avoid the broken or
8591 # incompatible versions:
8592 # SysV /etc/install, /usr/sbin/install
8593 # SunOS /usr/etc/install
8594 # IRIX /sbin/install
8596 # AmigaOS /C/install, which installs bootblocks on floppy discs
8597 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8598 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8599 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8600 # OS/2's system install, which has a completely different semantic
8601 # ./install, which can be erroneously created by make from ./install.sh.
8602 # Reject install programs that cannot install multiple files.
8603 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8604 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8605 if test -z "$INSTALL"; then
8606 if test "${ac_cv_path_install+set}" = set; then
8607 echo $ECHO_N "(cached) $ECHO_C" >&6
8609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8613 test -z "$as_dir" && as_dir
=.
8614 # Account for people who put trailing slashes in PATH elements.
8616 .
/ | .
// |
/cC
/* | \
8617 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
8618 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
8621 # OSF1 and SCO ODT 3.0 have their own names for install.
8622 # Don't use installbsd from OSF since it installs stuff as root
8624 for ac_prog
in ginstall scoinst
install; do
8625 for ac_exec_ext
in '' $ac_executable_extensions; do
8626 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8627 if test $ac_prog = install &&
8628 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
8629 # AIX install. It has an incompatible calling convention.
8631 elif test $ac_prog = install &&
8632 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
8633 # program-specific install script used by HP pwplus--don't use.
8636 rm -rf conftest.one conftest.two conftest.dir
8637 echo one
> conftest.one
8638 echo two
> conftest.two
8640 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
8641 test -s conftest.one
&& test -s conftest.two
&&
8642 test -s conftest.dir
/conftest.one
&&
8643 test -s conftest.dir
/conftest.two
8645 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
8656 rm -rf conftest.one conftest.two conftest.dir
8659 if test "${ac_cv_path_install+set}" = set; then
8660 INSTALL
=$ac_cv_path_install
8662 # As a last resort, use the slow shell script. Don't cache a
8663 # value for INSTALL within a source directory, because that will
8664 # break other packages using the cache if that directory is
8665 # removed, or if the value is a relative name.
8666 INSTALL
=$ac_install_sh
8669 echo "$as_me:$LINENO: result: $INSTALL" >&5
8670 echo "${ECHO_T}$INSTALL" >&6
8672 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8673 # It thinks the first close brace ends the variable substitution.
8674 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8676 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
8678 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8680 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8681 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8683 if test "$LN_S" = "ln -s"; then
8684 echo "$as_me:$LINENO: result: yes" >&5
8685 echo "${ECHO_T}yes" >&6
8687 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8688 echo "${ECHO_T}no, using $LN_S" >&6
8691 if test -n "$ac_tool_prefix"; then
8692 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8693 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8694 echo "$as_me:$LINENO: checking for $ac_word" >&5
8695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8696 if test "${ac_cv_prog_RANLIB+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8699 if test -n "$RANLIB"; then
8700 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8706 test -z "$as_dir" && as_dir
=.
8707 for ac_exec_ext
in '' $ac_executable_extensions; do
8708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8709 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8718 RANLIB
=$ac_cv_prog_RANLIB
8719 if test -n "$RANLIB"; then
8720 echo "$as_me:$LINENO: result: $RANLIB" >&5
8721 echo "${ECHO_T}$RANLIB" >&6
8723 echo "$as_me:$LINENO: result: no" >&5
8724 echo "${ECHO_T}no" >&6
8728 if test -z "$ac_cv_prog_RANLIB"; then
8729 ac_ct_RANLIB
=$RANLIB
8730 # Extract the first word of "ranlib", so it can be a program name with args.
8731 set dummy ranlib
; ac_word
=$2
8732 echo "$as_me:$LINENO: checking for $ac_word" >&5
8733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8734 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8735 echo $ECHO_N "(cached) $ECHO_C" >&6
8737 if test -n "$ac_ct_RANLIB"; then
8738 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8744 test -z "$as_dir" && as_dir
=.
8745 for ac_exec_ext
in '' $ac_executable_extensions; do
8746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8747 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
8757 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8758 if test -n "$ac_ct_RANLIB"; then
8759 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8760 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8762 echo "$as_me:$LINENO: result: no" >&5
8763 echo "${ECHO_T}no" >&6
8766 RANLIB
=$ac_ct_RANLIB
8768 RANLIB
="$ac_cv_prog_RANLIB"
8771 for ac_prog
in 'bison -y' byacc
8773 # Extract the first word of "$ac_prog", so it can be a program name with args.
8774 set dummy
$ac_prog; ac_word
=$2
8775 echo "$as_me:$LINENO: checking for $ac_word" >&5
8776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8777 if test "${ac_cv_prog_YACC+set}" = set; then
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
8780 if test -n "$YACC"; then
8781 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
8783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8787 test -z "$as_dir" && as_dir
=.
8788 for ac_exec_ext
in '' $ac_executable_extensions; do
8789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8790 ac_cv_prog_YACC
="$ac_prog"
8791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8799 YACC
=$ac_cv_prog_YACC
8800 if test -n "$YACC"; then
8801 echo "$as_me:$LINENO: result: $YACC" >&5
8802 echo "${ECHO_T}$YACC" >&6
8804 echo "$as_me:$LINENO: result: no" >&5
8805 echo "${ECHO_T}no" >&6
8808 test -n "$YACC" && break
8810 test -n "$YACC" || YACC
="yacc"
8813 if test -n "$ac_tool_prefix"; then
8814 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8815 set dummy
${ac_tool_prefix}ar; ac_word
=$2
8816 echo "$as_me:$LINENO: checking for $ac_word" >&5
8817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8818 if test "${ac_cv_prog_AR+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8821 if test -n "$AR"; then
8822 ac_cv_prog_AR
="$AR" # Let the user override the test.
8824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8828 test -z "$as_dir" && as_dir
=.
8829 for ac_exec_ext
in '' $ac_executable_extensions; do
8830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8831 ac_cv_prog_AR
="${ac_tool_prefix}ar"
8832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8841 if test -n "$AR"; then
8842 echo "$as_me:$LINENO: result: $AR" >&5
8843 echo "${ECHO_T}$AR" >&6
8845 echo "$as_me:$LINENO: result: no" >&5
8846 echo "${ECHO_T}no" >&6
8850 if test -z "$ac_cv_prog_AR"; then
8852 # Extract the first word of "ar", so it can be a program name with args.
8853 set dummy
ar; ac_word
=$2
8854 echo "$as_me:$LINENO: checking for $ac_word" >&5
8855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8856 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 if test -n "$ac_ct_AR"; then
8860 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
8862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8866 test -z "$as_dir" && as_dir
=.
8867 for ac_exec_ext
in '' $ac_executable_extensions; do
8868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8869 ac_cv_prog_ac_ct_AR
="ar"
8870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8878 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
8879 if test -n "$ac_ct_AR"; then
8880 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8881 echo "${ECHO_T}$ac_ct_AR" >&6
8883 echo "$as_me:$LINENO: result: no" >&5
8884 echo "${ECHO_T}no" >&6
8892 if test -n "$ac_tool_prefix"; then
8893 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8894 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
8895 echo "$as_me:$LINENO: checking for $ac_word" >&5
8896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8897 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
8900 if test -n "$DLLTOOL"; then
8901 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
8903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8907 test -z "$as_dir" && as_dir
=.
8908 for ac_exec_ext
in '' $ac_executable_extensions; do
8909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8910 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
8911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8919 DLLTOOL
=$ac_cv_prog_DLLTOOL
8920 if test -n "$DLLTOOL"; then
8921 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8922 echo "${ECHO_T}$DLLTOOL" >&6
8924 echo "$as_me:$LINENO: result: no" >&5
8925 echo "${ECHO_T}no" >&6
8929 if test -z "$ac_cv_prog_DLLTOOL"; then
8930 ac_ct_DLLTOOL
=$DLLTOOL
8931 # Extract the first word of "dlltool", so it can be a program name with args.
8932 set dummy dlltool
; ac_word
=$2
8933 echo "$as_me:$LINENO: checking for $ac_word" >&5
8934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8935 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8936 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 if test -n "$ac_ct_DLLTOOL"; then
8939 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
8941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8945 test -z "$as_dir" && as_dir
=.
8946 for ac_exec_ext
in '' $ac_executable_extensions; do
8947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8948 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
8949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8957 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
8958 if test -n "$ac_ct_DLLTOOL"; then
8959 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8960 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
8962 echo "$as_me:$LINENO: result: no" >&5
8963 echo "${ECHO_T}no" >&6
8966 DLLTOOL
=$ac_ct_DLLTOOL
8968 DLLTOOL
="$ac_cv_prog_DLLTOOL"
8971 if test -n "$ac_tool_prefix"; then
8972 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8973 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
8974 echo "$as_me:$LINENO: checking for $ac_word" >&5
8975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8976 if test "${ac_cv_prog_WINDRES+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8979 if test -n "$WINDRES"; then
8980 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
8982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8986 test -z "$as_dir" && as_dir
=.
8987 for ac_exec_ext
in '' $ac_executable_extensions; do
8988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8989 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
8990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8998 WINDRES
=$ac_cv_prog_WINDRES
8999 if test -n "$WINDRES"; then
9000 echo "$as_me:$LINENO: result: $WINDRES" >&5
9001 echo "${ECHO_T}$WINDRES" >&6
9003 echo "$as_me:$LINENO: result: no" >&5
9004 echo "${ECHO_T}no" >&6
9008 if test -z "$ac_cv_prog_WINDRES"; then
9009 ac_ct_WINDRES
=$WINDRES
9010 # Extract the first word of "windres", so it can be a program name with args.
9011 set dummy windres
; ac_word
=$2
9012 echo "$as_me:$LINENO: checking for $ac_word" >&5
9013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9014 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
9017 if test -n "$ac_ct_WINDRES"; then
9018 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
9020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9024 test -z "$as_dir" && as_dir
=.
9025 for ac_exec_ext
in '' $ac_executable_extensions; do
9026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9027 ac_cv_prog_ac_ct_WINDRES
="windres"
9028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9036 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
9037 if test -n "$ac_ct_WINDRES"; then
9038 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9039 echo "${ECHO_T}$ac_ct_WINDRES" >&6
9041 echo "$as_me:$LINENO: result: no" >&5
9042 echo "${ECHO_T}no" >&6
9045 WINDRES
=$ac_ct_WINDRES
9047 WINDRES
="$ac_cv_prog_WINDRES"
9051 # Needed for GNU/Hurd.
9052 if test -n "$ac_tool_prefix"; then
9053 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9054 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
9055 echo "$as_me:$LINENO: checking for $ac_word" >&5
9056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9057 if test "${ac_cv_prog_MIG+set}" = set; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9060 if test -n "$MIG"; then
9061 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
9063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9067 test -z "$as_dir" && as_dir
=.
9068 for ac_exec_ext
in '' $ac_executable_extensions; do
9069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9070 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
9071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9080 if test -n "$MIG"; then
9081 echo "$as_me:$LINENO: result: $MIG" >&5
9082 echo "${ECHO_T}$MIG" >&6
9084 echo "$as_me:$LINENO: result: no" >&5
9085 echo "${ECHO_T}no" >&6
9089 if test -z "$ac_cv_prog_MIG"; then
9091 # Extract the first word of "mig", so it can be a program name with args.
9092 set dummy mig
; ac_word
=$2
9093 echo "$as_me:$LINENO: checking for $ac_word" >&5
9094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9095 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 if test -n "$ac_ct_MIG"; then
9099 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
9101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9105 test -z "$as_dir" && as_dir
=.
9106 for ac_exec_ext
in '' $ac_executable_extensions; do
9107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9108 ac_cv_prog_ac_ct_MIG
="mig"
9109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9117 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
9118 if test -n "$ac_ct_MIG"; then
9119 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9120 echo "${ECHO_T}$ac_ct_MIG" >&6
9122 echo "$as_me:$LINENO: result: no" >&5
9123 echo "${ECHO_T}no" >&6
9128 MIG
="$ac_cv_prog_MIG"
9132 # ---------------------- #
9133 # Checks for libraries. #
9134 # ---------------------- #
9136 # We might need to link with -lm; most simulators need it.
9138 echo "$as_me:$LINENO: checking for main in -lm" >&5
9139 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9140 if test "${ac_cv_lib_m_main+set}" = set; then
9141 echo $ECHO_N "(cached) $ECHO_C" >&6
9143 ac_check_lib_save_LIBS
=$LIBS
9145 cat >conftest.
$ac_ext <<_ACEOF
9148 cat confdefs.h
>>conftest.
$ac_ext
9149 cat >>conftest.
$ac_ext <<_ACEOF
9150 /* end confdefs.h. */
9161 rm -f conftest.
$ac_objext conftest
$ac_exeext
9162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9163 (eval $ac_link) 2>conftest.er1
9165 grep -v '^ *+' conftest.er1
>conftest.err
9167 cat conftest.err
>&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } &&
9170 { ac_try
='test -z "$ac_c_werror_flag"
9171 || test ! -s conftest.err'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; } &&
9177 { ac_try
='test -s conftest$ac_exeext'
9178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); }; }; then
9183 ac_cv_lib_m_main
=yes
9185 echo "$as_me: failed program was:" >&5
9186 sed 's/^/| /' conftest.
$ac_ext >&5
9190 rm -f conftest.err conftest.
$ac_objext \
9191 conftest
$ac_exeext conftest.
$ac_ext
9192 LIBS
=$ac_check_lib_save_LIBS
9194 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9195 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9196 if test $ac_cv_lib_m_main = yes; then
9197 cat >>confdefs.h
<<_ACEOF
9206 # We need to link with -lw to get `wctype' on Solaris before Solaris
9207 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9208 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9209 # is known to have this problem). Therefore we avoid libw if we can.
9210 echo "$as_me:$LINENO: checking for wctype" >&5
9211 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9212 if test "${ac_cv_func_wctype+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 cat >conftest.
$ac_ext <<_ACEOF
9218 cat confdefs.h
>>conftest.
$ac_ext
9219 cat >>conftest.
$ac_ext <<_ACEOF
9220 /* end confdefs.h. */
9221 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9223 #define wctype innocuous_wctype
9225 /* System header to define __stub macros and hopefully few prototypes,
9226 which can conflict with char wctype (); below.
9227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9228 <limits.h> exists even on freestanding compilers. */
9231 # include <limits.h>
9233 # include <assert.h>
9238 /* Override any gcc2 internal prototype to avoid an error. */
9243 /* We use char because int might match the return type of a gcc2
9244 builtin and then its argument prototype would still apply. */
9246 /* The GNU C library defines this for functions which it implements
9247 to always fail with ENOSYS. Some functions are actually named
9248 something starting with __ and the normal name is an alias. */
9249 #if defined (__stub_wctype) || defined (__stub___wctype)
9252 char (*f) () = wctype;
9266 rm -f conftest.
$ac_objext conftest
$ac_exeext
9267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9268 (eval $ac_link) 2>conftest.er1
9270 grep -v '^ *+' conftest.er1
>conftest.err
9272 cat conftest.err
>&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } &&
9275 { ac_try
='test -z "$ac_c_werror_flag"
9276 || test ! -s conftest.err'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; } &&
9282 { ac_try
='test -s conftest$ac_exeext'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; }; then
9288 ac_cv_func_wctype
=yes
9290 echo "$as_me: failed program was:" >&5
9291 sed 's/^/| /' conftest.
$ac_ext >&5
9293 ac_cv_func_wctype
=no
9295 rm -f conftest.err conftest.
$ac_objext \
9296 conftest
$ac_exeext conftest.
$ac_ext
9298 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9299 echo "${ECHO_T}$ac_cv_func_wctype" >&6
9300 if test $ac_cv_func_wctype = yes; then
9304 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9305 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9306 if test "${ac_cv_lib_w_wctype+set}" = set; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 ac_check_lib_save_LIBS
=$LIBS
9311 cat >conftest.
$ac_ext <<_ACEOF
9314 cat confdefs.h
>>conftest.
$ac_ext
9315 cat >>conftest.
$ac_ext <<_ACEOF
9316 /* end confdefs.h. */
9318 /* Override any gcc2 internal prototype to avoid an error. */
9322 /* We use char because int might match the return type of a gcc2
9323 builtin and then its argument prototype would still apply. */
9333 rm -f conftest.
$ac_objext conftest
$ac_exeext
9334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9335 (eval $ac_link) 2>conftest.er1
9337 grep -v '^ *+' conftest.er1
>conftest.err
9339 cat conftest.err
>&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); } &&
9342 { ac_try
='test -z "$ac_c_werror_flag"
9343 || test ! -s conftest.err'
9344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; } &&
9349 { ac_try
='test -s conftest$ac_exeext'
9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; }; then
9355 ac_cv_lib_w_wctype
=yes
9357 echo "$as_me: failed program was:" >&5
9358 sed 's/^/| /' conftest.
$ac_ext >&5
9360 ac_cv_lib_w_wctype
=no
9362 rm -f conftest.err conftest.
$ac_objext \
9363 conftest
$ac_exeext conftest.
$ac_ext
9364 LIBS
=$ac_check_lib_save_LIBS
9366 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9367 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9368 if test $ac_cv_lib_w_wctype = yes; then
9369 cat >>confdefs.h
<<_ACEOF
9380 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9381 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9382 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9383 if test "${ac_cv_search_gethostbyname+set}" = set; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
9386 ac_func_search_save_LIBS
=$LIBS
9387 ac_cv_search_gethostbyname
=no
9388 cat >conftest.
$ac_ext <<_ACEOF
9391 cat confdefs.h
>>conftest.
$ac_ext
9392 cat >>conftest.
$ac_ext <<_ACEOF
9393 /* end confdefs.h. */
9395 /* Override any gcc2 internal prototype to avoid an error. */
9399 /* We use char because int might match the return type of a gcc2
9400 builtin and then its argument prototype would still apply. */
9401 char gethostbyname ();
9410 rm -f conftest.
$ac_objext conftest
$ac_exeext
9411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9412 (eval $ac_link) 2>conftest.er1
9414 grep -v '^ *+' conftest.er1
>conftest.err
9416 cat conftest.err
>&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try
='test -z "$ac_c_werror_flag"
9420 || test ! -s conftest.err'
9421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; } &&
9426 { ac_try
='test -s conftest$ac_exeext'
9427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; }; then
9432 ac_cv_search_gethostbyname
="none required"
9434 echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.
$ac_ext >&5
9438 rm -f conftest.err conftest.
$ac_objext \
9439 conftest
$ac_exeext conftest.
$ac_ext
9440 if test "$ac_cv_search_gethostbyname" = no
; then
9441 for ac_lib
in nsl
; do
9442 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9443 cat >conftest.
$ac_ext <<_ACEOF
9446 cat confdefs.h
>>conftest.
$ac_ext
9447 cat >>conftest.
$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9450 /* Override any gcc2 internal prototype to avoid an error. */
9454 /* We use char because int might match the return type of a gcc2
9455 builtin and then its argument prototype would still apply. */
9456 char gethostbyname ();
9465 rm -f conftest.
$ac_objext conftest
$ac_exeext
9466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9467 (eval $ac_link) 2>conftest.er1
9469 grep -v '^ *+' conftest.er1
>conftest.err
9471 cat conftest.err
>&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); } &&
9474 { ac_try
='test -z "$ac_c_werror_flag"
9475 || test ! -s conftest.err'
9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; } &&
9481 { ac_try
='test -s conftest$ac_exeext'
9482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); }; }; then
9487 ac_cv_search_gethostbyname
="-l$ac_lib"
9490 echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.
$ac_ext >&5
9494 rm -f conftest.err conftest.
$ac_objext \
9495 conftest
$ac_exeext conftest.
$ac_ext
9498 LIBS
=$ac_func_search_save_LIBS
9500 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9501 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9502 if test "$ac_cv_search_gethostbyname" != no
; then
9503 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
9508 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9509 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9510 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9511 if test "${ac_cv_search_socketpair+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9514 ac_func_search_save_LIBS
=$LIBS
9515 ac_cv_search_socketpair
=no
9516 cat >conftest.
$ac_ext <<_ACEOF
9519 cat confdefs.h
>>conftest.
$ac_ext
9520 cat >>conftest.
$ac_ext <<_ACEOF
9521 /* end confdefs.h. */
9523 /* Override any gcc2 internal prototype to avoid an error. */
9527 /* We use char because int might match the return type of a gcc2
9528 builtin and then its argument prototype would still apply. */
9538 rm -f conftest.
$ac_objext conftest
$ac_exeext
9539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9540 (eval $ac_link) 2>conftest.er1
9542 grep -v '^ *+' conftest.er1
>conftest.err
9544 cat conftest.err
>&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } &&
9547 { ac_try
='test -z "$ac_c_werror_flag"
9548 || test ! -s conftest.err'
9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; } &&
9554 { ac_try
='test -s conftest$ac_exeext'
9555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; }; then
9560 ac_cv_search_socketpair
="none required"
9562 echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.
$ac_ext >&5
9566 rm -f conftest.err conftest.
$ac_objext \
9567 conftest
$ac_exeext conftest.
$ac_ext
9568 if test "$ac_cv_search_socketpair" = no
; then
9569 for ac_lib
in socket
; do
9570 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9571 cat >conftest.
$ac_ext <<_ACEOF
9574 cat confdefs.h
>>conftest.
$ac_ext
9575 cat >>conftest.
$ac_ext <<_ACEOF
9576 /* end confdefs.h. */
9578 /* Override any gcc2 internal prototype to avoid an error. */
9582 /* We use char because int might match the return type of a gcc2
9583 builtin and then its argument prototype would still apply. */
9593 rm -f conftest.
$ac_objext conftest
$ac_exeext
9594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9595 (eval $ac_link) 2>conftest.er1
9597 grep -v '^ *+' conftest.er1
>conftest.err
9599 cat conftest.err
>&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } &&
9602 { ac_try
='test -z "$ac_c_werror_flag"
9603 || test ! -s conftest.err'
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; } &&
9609 { ac_try
='test -s conftest$ac_exeext'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9615 ac_cv_search_socketpair
="-l$ac_lib"
9618 echo "$as_me: failed program was:" >&5
9619 sed 's/^/| /' conftest.
$ac_ext >&5
9622 rm -f conftest.err conftest.
$ac_objext \
9623 conftest
$ac_exeext conftest.
$ac_ext
9626 LIBS
=$ac_func_search_save_LIBS
9628 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9629 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9630 if test "$ac_cv_search_socketpair" != no
; then
9631 test "$ac_cv_search_socketpair" = "none required" || LIBS
="$ac_cv_search_socketpair $LIBS"
9636 # Link in zlib if we can. This allows us to read compressed debug sections.
9637 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9638 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9639 if test "${ac_cv_search_zlibVersion+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 ac_func_search_save_LIBS
=$LIBS
9643 ac_cv_search_zlibVersion
=no
9644 cat >conftest.
$ac_ext <<_ACEOF
9647 cat confdefs.h
>>conftest.
$ac_ext
9648 cat >>conftest.
$ac_ext <<_ACEOF
9649 /* end confdefs.h. */
9651 /* Override any gcc2 internal prototype to avoid an error. */
9655 /* We use char because int might match the return type of a gcc2
9656 builtin and then its argument prototype would still apply. */
9657 char zlibVersion ();
9666 rm -f conftest.
$ac_objext conftest
$ac_exeext
9667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9668 (eval $ac_link) 2>conftest.er1
9670 grep -v '^ *+' conftest.er1
>conftest.err
9672 cat conftest.err
>&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } &&
9675 { ac_try
='test -z "$ac_c_werror_flag"
9676 || test ! -s conftest.err'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; } &&
9682 { ac_try
='test -s conftest$ac_exeext'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; }; then
9688 ac_cv_search_zlibVersion
="none required"
9690 echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.
$ac_ext >&5
9694 rm -f conftest.err conftest.
$ac_objext \
9695 conftest
$ac_exeext conftest.
$ac_ext
9696 if test "$ac_cv_search_zlibVersion" = no
; then
9698 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9699 cat >conftest.
$ac_ext <<_ACEOF
9702 cat confdefs.h
>>conftest.
$ac_ext
9703 cat >>conftest.
$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9706 /* Override any gcc2 internal prototype to avoid an error. */
9710 /* We use char because int might match the return type of a gcc2
9711 builtin and then its argument prototype would still apply. */
9712 char zlibVersion ();
9721 rm -f conftest.
$ac_objext conftest
$ac_exeext
9722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9723 (eval $ac_link) 2>conftest.er1
9725 grep -v '^ *+' conftest.er1
>conftest.err
9727 cat conftest.err
>&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } &&
9730 { ac_try
='test -z "$ac_c_werror_flag"
9731 || test ! -s conftest.err'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; } &&
9737 { ac_try
='test -s conftest$ac_exeext'
9738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); }; }; then
9743 ac_cv_search_zlibVersion
="-l$ac_lib"
9746 echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.
$ac_ext >&5
9750 rm -f conftest.err conftest.
$ac_objext \
9751 conftest
$ac_exeext conftest.
$ac_ext
9754 LIBS
=$ac_func_search_save_LIBS
9756 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9757 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9758 if test "$ac_cv_search_zlibVersion" != no
; then
9759 test "$ac_cv_search_zlibVersion" = "none required" || LIBS
="$ac_cv_search_zlibVersion $LIBS"
9761 for ac_header
in zlib.h
9763 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9765 echo "$as_me:$LINENO: checking for $ac_header" >&5
9766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9773 # Is the header compilable?
9774 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9776 cat >conftest.
$ac_ext <<_ACEOF
9779 cat confdefs.h
>>conftest.
$ac_ext
9780 cat >>conftest.
$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9782 $ac_includes_default
9783 #include <$ac_header>
9785 rm -f conftest.
$ac_objext
9786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9787 (eval $ac_compile) 2>conftest.er1
9789 grep -v '^ *+' conftest.er1
>conftest.err
9791 cat conftest.err
>&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } &&
9794 { ac_try
='test -z "$ac_c_werror_flag"
9795 || test ! -s conftest.err'
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; } &&
9801 { ac_try
='test -s conftest.$ac_objext'
9802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; }; then
9807 ac_header_compiler
=yes
9809 echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.
$ac_ext >&5
9812 ac_header_compiler
=no
9814 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9815 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9816 echo "${ECHO_T}$ac_header_compiler" >&6
9818 # Is the header present?
9819 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9820 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9821 cat >conftest.
$ac_ext <<_ACEOF
9824 cat confdefs.h
>>conftest.
$ac_ext
9825 cat >>conftest.
$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9827 #include <$ac_header>
9829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9830 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9832 grep -v '^ *+' conftest.er1
>conftest.err
9834 cat conftest.err
>&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } >/dev
/null
; then
9837 if test -s conftest.err
; then
9838 ac_cpp_err
=$ac_c_preproc_warn_flag
9839 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9846 if test -z "$ac_cpp_err"; then
9847 ac_header_preproc
=yes
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.
$ac_ext >&5
9852 ac_header_preproc
=no
9854 rm -f conftest.err conftest.
$ac_ext
9855 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9856 echo "${ECHO_T}$ac_header_preproc" >&6
9858 # So? What about this header?
9859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9861 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9862 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9864 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9865 ac_header_preproc
=yes
9868 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9869 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9870 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9871 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9872 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9873 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9874 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9875 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9877 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9878 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9879 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9882 ## ------------------------------------------ ##
9883 ## Report this to the AC_PACKAGE_NAME lists. ##
9884 ## ------------------------------------------ ##
9887 sed "s/^/$as_me: WARNING: /" >&2
9890 echo "$as_me:$LINENO: checking for $ac_header" >&5
9891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
9895 eval "$as_ac_Header=\$ac_header_preproc"
9897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9902 cat >>confdefs.h
<<_ACEOF
9903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9913 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9914 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
9915 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
9916 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9919 ac_func_search_save_LIBS
=$LIBS
9920 ac_cv_search_dlgetmodinfo
=no
9921 cat >conftest.
$ac_ext <<_ACEOF
9924 cat confdefs.h
>>conftest.
$ac_ext
9925 cat >>conftest.
$ac_ext <<_ACEOF
9926 /* end confdefs.h. */
9928 /* Override any gcc2 internal prototype to avoid an error. */
9932 /* We use char because int might match the return type of a gcc2
9933 builtin and then its argument prototype would still apply. */
9934 char dlgetmodinfo ();
9943 rm -f conftest.
$ac_objext conftest
$ac_exeext
9944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9945 (eval $ac_link) 2>conftest.er1
9947 grep -v '^ *+' conftest.er1
>conftest.err
9949 cat conftest.err
>&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } &&
9952 { ac_try
='test -z "$ac_c_werror_flag"
9953 || test ! -s conftest.err'
9954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); }; } &&
9959 { ac_try
='test -s conftest$ac_exeext'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; }; then
9965 ac_cv_search_dlgetmodinfo
="none required"
9967 echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.
$ac_ext >&5
9971 rm -f conftest.err conftest.
$ac_objext \
9972 conftest
$ac_exeext conftest.
$ac_ext
9973 if test "$ac_cv_search_dlgetmodinfo" = no
; then
9974 for ac_lib
in dl xpdl
; do
9975 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9976 cat >conftest.
$ac_ext <<_ACEOF
9979 cat confdefs.h
>>conftest.
$ac_ext
9980 cat >>conftest.
$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9983 /* Override any gcc2 internal prototype to avoid an error. */
9987 /* We use char because int might match the return type of a gcc2
9988 builtin and then its argument prototype would still apply. */
9989 char dlgetmodinfo ();
9998 rm -f conftest.
$ac_objext conftest
$ac_exeext
9999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10000 (eval $ac_link) 2>conftest.er1
10002 grep -v '^ *+' conftest.er1
>conftest.err
10004 cat conftest.err
>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } &&
10007 { ac_try
='test -z "$ac_c_werror_flag"
10008 || test ! -s conftest.err'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; } &&
10014 { ac_try
='test -s conftest$ac_exeext'
10015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016 (eval $ac_try) 2>&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; }; then
10020 ac_cv_search_dlgetmodinfo
="-l$ac_lib"
10023 echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.
$ac_ext >&5
10027 rm -f conftest.err conftest.
$ac_objext \
10028 conftest
$ac_exeext conftest.
$ac_ext
10031 LIBS
=$ac_func_search_save_LIBS
10033 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10034 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10035 if test "$ac_cv_search_dlgetmodinfo" != no
; then
10036 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS
="$ac_cv_search_dlgetmodinfo $LIBS"
10044 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10045 if test "${with_libiconv_prefix+set}" = set; then
10046 withval
="$with_libiconv_prefix"
10048 for dir
in `echo "$withval" | tr : ' '`; do
10049 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
10050 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
10055 BUILD_LIBICONV_LIBDIR
="-L../libiconv/lib/.libs -L../libiconv/lib/_libs"
10056 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
10058 echo "$as_me:$LINENO: checking for iconv" >&5
10059 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10060 if test "${am_cv_func_iconv+set}" = set; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10064 am_cv_func_iconv
="no, consider installing GNU libiconv"
10066 am_cv_use_build_libiconv
=no
10067 # First, try to find iconv in libc.
10068 cat >conftest.
$ac_ext <<_ACEOF
10071 cat confdefs.h
>>conftest.
$ac_ext
10072 cat >>conftest.
$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 #include <stdlib.h>
10079 iconv_t cd = iconv_open("","");
10080 iconv(cd,NULL,NULL,NULL,NULL);
10086 rm -f conftest.
$ac_objext conftest
$ac_exeext
10087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10088 (eval $ac_link) 2>conftest.er1
10090 grep -v '^ *+' conftest.er1
>conftest.err
10092 cat conftest.err
>&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } &&
10095 { ac_try
='test -z "$ac_c_werror_flag"
10096 || test ! -s conftest.err'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; } &&
10102 { ac_try
='test -s conftest$ac_exeext'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; }; then
10108 am_cv_func_iconv
=yes
10110 echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.
$ac_ext >&5
10114 rm -f conftest.err conftest.
$ac_objext \
10115 conftest
$ac_exeext conftest.
$ac_ext
10117 # If iconv was not in libc, try -liconv. In this case, arrange to
10118 # look in the libiconv prefix, if it was specified by the user.
10119 if test "$am_cv_func_iconv" != yes; then
10120 am_save_CPPFLAGS
="$CPPFLAGS"
10121 am_save_LIBS
="$LIBS"
10122 if test -n "$LIBICONV_INCLUDE"; then
10123 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
10124 LIBS
="$LIBS $LIBICONV_LIBDIR"
10126 LIBS
="$LIBS -liconv"
10127 cat >conftest.
$ac_ext <<_ACEOF
10130 cat confdefs.h
>>conftest.
$ac_ext
10131 cat >>conftest.
$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10133 #include <stdlib.h>
10138 iconv_t cd = iconv_open("","");
10139 iconv(cd,NULL,NULL,NULL,NULL);
10145 rm -f conftest.
$ac_objext conftest
$ac_exeext
10146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10147 (eval $ac_link) 2>conftest.er1
10149 grep -v '^ *+' conftest.er1
>conftest.err
10151 cat conftest.err
>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } &&
10154 { ac_try
='test -z "$ac_c_werror_flag"
10155 || test ! -s conftest.err'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; } &&
10161 { ac_try
='test -s conftest$ac_exeext'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 am_cv_lib_iconv
=yes
10168 am_cv_func_iconv
=yes
10170 echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.
$ac_ext >&5
10174 rm -f conftest.err conftest.
$ac_objext \
10175 conftest
$ac_exeext conftest.
$ac_ext
10176 LIBS
="$am_save_LIBS"
10177 CPPFLAGS
="$am_save_CPPFLAGS"
10180 # If that didn't work, try to find libiconv in the build tree.
10181 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
10182 am_save_LIBS
="$LIBS"
10183 am_save_CPPFLAGS
="$CPPFLAGS"
10184 LIBS
="$LIBS $BUILD_LIBICONV_LIBDIR -liconv"
10185 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
10186 cat >conftest.
$ac_ext <<_ACEOF
10189 cat confdefs.h
>>conftest.
$ac_ext
10190 cat >>conftest.
$ac_ext <<_ACEOF
10191 /* end confdefs.h. */
10192 #include <stdlib.h>
10197 iconv_t cd = iconv_open("","");
10198 iconv(cd,NULL,NULL,NULL,NULL);
10204 rm -f conftest.
$ac_objext conftest
$ac_exeext
10205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10206 (eval $ac_link) 2>conftest.er1
10208 grep -v '^ *+' conftest.er1
>conftest.err
10210 cat conftest.err
>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); } &&
10213 { ac_try
='test -z "$ac_c_werror_flag"
10214 || test ! -s conftest.err'
10215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216 (eval $ac_try) 2>&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; } &&
10220 { ac_try
='test -s conftest$ac_exeext'
10221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222 (eval $ac_try) 2>&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; }; then
10226 am_cv_use_build_libiconv
=yes
10227 am_cv_lib_iconv
=yes
10228 am_cv_func_iconv
=yes
10230 echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.
$ac_ext >&5
10234 rm -f conftest.err conftest.
$ac_objext \
10235 conftest
$ac_exeext conftest.
$ac_ext
10236 LIBS
="$am_save_LIBS"
10237 CPPFLAGS
="$am_save_CPPFLAGS"
10241 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10242 echo "${ECHO_T}$am_cv_func_iconv" >&6
10244 # Set the various flags based on the cache variables. We can't rely
10245 # on the flags to remain set from the above code, due to caching.
10247 if test "$am_cv_lib_iconv" = yes; then
10253 if test "$am_cv_use_build_libiconv" = yes; then
10254 LIBICONV_LIBDIR
="$BUILD_LIBICONV_LIBDIR"
10255 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
10257 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
10258 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
10260 if test "$am_cv_func_iconv" = yes; then
10262 cat >>confdefs.h
<<\_ACEOF
10263 #define HAVE_ICONV 1
10266 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10267 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10268 if test "${am_cv_proto_iconv+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10272 cat >conftest.
$ac_ext <<_ACEOF
10275 cat confdefs.h
>>conftest.
$ac_ext
10276 cat >>conftest.
$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10279 #include <stdlib.h>
10285 #if defined(__STDC__) || defined(__cplusplus)
10286 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10299 rm -f conftest.
$ac_objext
10300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10301 (eval $ac_compile) 2>conftest.er1
10303 grep -v '^ *+' conftest.er1
>conftest.err
10305 cat conftest.err
>&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } &&
10308 { ac_try
='test -z "$ac_c_werror_flag"
10309 || test ! -s conftest.err'
10310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10311 (eval $ac_try) 2>&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); }; } &&
10315 { ac_try
='test -s conftest.$ac_objext'
10316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10317 (eval $ac_try) 2>&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; }; then
10321 am_cv_proto_iconv_arg1
=""
10323 echo "$as_me: failed program was:" >&5
10324 sed 's/^/| /' conftest.
$ac_ext >&5
10326 am_cv_proto_iconv_arg1
="const"
10328 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10329 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);"
10332 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10333 echo "$as_me:$LINENO: result: ${ac_t:-
10334 }$am_cv_proto_iconv" >&5
10335 echo "${ECHO_T}${ac_t:-
10336 }$am_cv_proto_iconv" >&6
10338 cat >>confdefs.h
<<_ACEOF
10339 #define ICONV_CONST $am_cv_proto_iconv_arg1
10345 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
10346 # There is a very specific comment in /usr/include/curses.h explaining that
10347 # termcap routines built into libcurses must not be used.
10349 # The symptoms we observed so far is GDB unexpectedly changing
10350 # the terminal settings when tgetent is called - this is particularly
10351 # visible as the output is missing carriage returns, and so rapidly
10352 # becomes very hard to read.
10354 # The readline configure script has already decided that libtermcap
10355 # was enough for its purposes, and so decided to build readline using
10356 # libtermcap. Since the TUI mode requires curses, building GDB with
10357 # TUI enabled results in both libraries to be used at the same time,
10358 # which is not allowed. This basically means that GDB with TUI is
10359 # broken on alpha-osf.
10363 if "$enable_tui" = "yes"; then
10364 { { echo "$as_me:$LINENO: error: Building GDB with TUI mode is not supported on this host" >&5
10365 echo "$as_me: error: Building GDB with TUI mode is not supported on this host" >&2;}
10366 { (exit 1); exit 1; }; }
10368 if "$enable_tui" = "auto"; then
10374 # For the TUI, we need enhanced curses functionality.
10375 if test x
"$enable_tui" != xno
; then
10380 if test x
"$prefer_curses" = xyes
; then
10381 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
10382 # curses library because the latter might not provide all the
10383 # functionality we need. However, this leads to problems on systems
10384 # where the linker searches /usr/local/lib, but the compiler doesn't
10385 # search /usr/local/include, if ncurses is installed in /usr/local. A
10386 # default installation of ncurses on alpha*-dec-osf* will lead to such
10388 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
10389 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
10390 if test "${ac_cv_search_waddstr+set}" = set; then
10391 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 ac_func_search_save_LIBS
=$LIBS
10394 ac_cv_search_waddstr
=no
10395 cat >conftest.
$ac_ext <<_ACEOF
10398 cat confdefs.h
>>conftest.
$ac_ext
10399 cat >>conftest.
$ac_ext <<_ACEOF
10400 /* end confdefs.h. */
10402 /* Override any gcc2 internal prototype to avoid an error. */
10406 /* We use char because int might match the return type of a gcc2
10407 builtin and then its argument prototype would still apply. */
10417 rm -f conftest.
$ac_objext conftest
$ac_exeext
10418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10419 (eval $ac_link) 2>conftest.er1
10421 grep -v '^ *+' conftest.er1
>conftest.err
10423 cat conftest.err
>&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } &&
10426 { ac_try
='test -z "$ac_c_werror_flag"
10427 || test ! -s conftest.err'
10428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429 (eval $ac_try) 2>&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; } &&
10433 { ac_try
='test -s conftest$ac_exeext'
10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; }; then
10439 ac_cv_search_waddstr
="none required"
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.
$ac_ext >&5
10445 rm -f conftest.err conftest.
$ac_objext \
10446 conftest
$ac_exeext conftest.
$ac_ext
10447 if test "$ac_cv_search_waddstr" = no
; then
10448 for ac_lib
in ncurses cursesX curses
; do
10449 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10450 cat >conftest.
$ac_ext <<_ACEOF
10453 cat confdefs.h
>>conftest.
$ac_ext
10454 cat >>conftest.
$ac_ext <<_ACEOF
10455 /* end confdefs.h. */
10457 /* Override any gcc2 internal prototype to avoid an error. */
10461 /* We use char because int might match the return type of a gcc2
10462 builtin and then its argument prototype would still apply. */
10472 rm -f conftest.
$ac_objext conftest
$ac_exeext
10473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10474 (eval $ac_link) 2>conftest.er1
10476 grep -v '^ *+' conftest.er1
>conftest.err
10478 cat conftest.err
>&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } &&
10481 { ac_try
='test -z "$ac_c_werror_flag"
10482 || test ! -s conftest.err'
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; } &&
10488 { ac_try
='test -s conftest$ac_exeext'
10489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10490 (eval $ac_try) 2>&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }; }; then
10494 ac_cv_search_waddstr
="-l$ac_lib"
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.
$ac_ext >&5
10501 rm -f conftest.err conftest.
$ac_objext \
10502 conftest
$ac_exeext conftest.
$ac_ext
10505 LIBS
=$ac_func_search_save_LIBS
10507 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10508 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10509 if test "$ac_cv_search_waddstr" != no
; then
10510 test "$ac_cv_search_waddstr" = "none required" || LIBS
="$ac_cv_search_waddstr $LIBS"
10515 if test "$ac_cv_search_waddstr" != no
; then
10520 # Check whether we should enable the TUI, but only do so if we really
10522 if test x
"$enable_tui" != xno
; then
10523 if test -d $srcdir/tui
; then
10524 if test "$curses_found" != no
; then
10525 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
10526 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
10527 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
10528 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
10529 CONFIG_ALL
="${CONFIG_ALL} all-tui"
10530 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-tui"
10531 CONFIG_INSTALL
="${CONFIG_INSTALL} install-tui"
10532 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-tui"
10534 if test x
"$enable_tui" = xyes
; then
10535 { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
10536 echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
10537 { (exit 1); exit 1; }; }
10539 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
10540 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
10546 # Since GDB uses Readline, we need termcap functionality. In many
10547 # cases this will be provided by the curses library, but some systems
10548 # have a seperate termcap library, or no curses library at all.
10552 if test -d $srcdir/libtermcap
; then
10553 LIBS
="../libtermcap/libtermcap.a $LIBS"
10554 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
10557 ac_cv_search_tgetent
="none required"
10560 ac_cv_search_tgetent
="none required"
10561 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
10565 # These are the libraries checked by Readline.
10566 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10567 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10568 if test "${ac_cv_search_tgetent+set}" = set; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
10571 ac_func_search_save_LIBS
=$LIBS
10572 ac_cv_search_tgetent
=no
10573 cat >conftest.
$ac_ext <<_ACEOF
10576 cat confdefs.h
>>conftest.
$ac_ext
10577 cat >>conftest.
$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10580 /* Override any gcc2 internal prototype to avoid an error. */
10584 /* We use char because int might match the return type of a gcc2
10585 builtin and then its argument prototype would still apply. */
10595 rm -f conftest.
$ac_objext conftest
$ac_exeext
10596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10597 (eval $ac_link) 2>conftest.er1
10599 grep -v '^ *+' conftest.er1
>conftest.err
10601 cat conftest.err
>&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); } &&
10604 { ac_try
='test -z "$ac_c_werror_flag"
10605 || test ! -s conftest.err'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; } &&
10611 { ac_try
='test -s conftest$ac_exeext'
10612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10613 (eval $ac_try) 2>&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; }; then
10617 ac_cv_search_tgetent
="none required"
10619 echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.
$ac_ext >&5
10623 rm -f conftest.err conftest.
$ac_objext \
10624 conftest
$ac_exeext conftest.
$ac_ext
10625 if test "$ac_cv_search_tgetent" = no
; then
10626 for ac_lib
in termcap tinfo curses ncurses
; do
10627 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10628 cat >conftest.
$ac_ext <<_ACEOF
10631 cat confdefs.h
>>conftest.
$ac_ext
10632 cat >>conftest.
$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10635 /* Override any gcc2 internal prototype to avoid an error. */
10639 /* We use char because int might match the return type of a gcc2
10640 builtin and then its argument prototype would still apply. */
10650 rm -f conftest.
$ac_objext conftest
$ac_exeext
10651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10652 (eval $ac_link) 2>conftest.er1
10654 grep -v '^ *+' conftest.er1
>conftest.err
10656 cat conftest.err
>&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); } &&
10659 { ac_try
='test -z "$ac_c_werror_flag"
10660 || test ! -s conftest.err'
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; } &&
10666 { ac_try
='test -s conftest$ac_exeext'
10667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; }; then
10672 ac_cv_search_tgetent
="-l$ac_lib"
10675 echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.
$ac_ext >&5
10679 rm -f conftest.err conftest.
$ac_objext \
10680 conftest
$ac_exeext conftest.
$ac_ext
10683 LIBS
=$ac_func_search_save_LIBS
10685 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10686 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10687 if test "$ac_cv_search_tgetent" != no
; then
10688 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
10693 if test "$ac_cv_search_tgetent" = no
; then
10694 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10695 echo "$as_me: error: no termcap library found" >&2;}
10696 { (exit 1); exit 1; }; }
10700 # Check whether --with-system-readline or --without-system-readline was given.
10701 if test "${with_system_readline+set}" = set; then
10702 withval
="$with_system_readline"
10706 if test "$with_system_readline" = yes; then
10707 READLINE
=-lreadline
10711 READLINE
='$(READLINE_DIR)/libreadline.a'
10712 READLINE_DEPS
='$(READLINE)'
10713 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
10720 # Check whether --with-expat or --without-expat was given.
10721 if test "${with_expat+set}" = set; then
10722 withval
="$with_expat"
10727 echo "$as_me:$LINENO: checking whether to use expat" >&5
10728 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10729 echo "$as_me:$LINENO: result: $with_expat" >&5
10730 echo "${ECHO_T}$with_expat" >&6
10732 if test "${with_expat}" = no
; then
10733 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10734 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10738 if test "X$prefix" = "XNONE"; then
10739 acl_final_prefix
="$ac_default_prefix"
10741 acl_final_prefix
="$prefix"
10743 if test "X$exec_prefix" = "XNONE"; then
10744 acl_final_exec_prefix
='${prefix}'
10746 acl_final_exec_prefix
="$exec_prefix"
10748 acl_save_prefix
="$prefix"
10749 prefix
="$acl_final_prefix"
10750 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10751 prefix
="$acl_save_prefix"
10754 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10755 if test "${with_gnu_ld+set}" = set; then
10756 withval
="$with_gnu_ld"
10757 test "$withval" = no || with_gnu_ld
=yes
10761 # Prepare PATH_SEPARATOR.
10762 # The user is always right.
10763 if test "${PATH_SEPARATOR+set}" != set; then
10764 echo "#! /bin/sh" >conf$$.sh
10765 echo "exit 0" >>conf$$.sh
10767 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10775 if test "$GCC" = yes; then
10776 # Check if gcc -print-prog-name=ld gives a path.
10777 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10778 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10781 # gcc leaves a trailing carriage return which upsets mingw
10782 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10784 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10787 # Accept absolute paths.
10788 [\\/]* |
[A-Za-z
]:[\\/]*)
10789 re_direlt
='/[^/][^/]*/\.\./'
10790 # Canonicalize the path of ld
10791 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10792 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10793 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10795 test -z "$LD" && LD
="$ac_prog"
10798 # If it fails, then pretend we aren't using GCC.
10802 # If it is relative, then search for the first ld in PATH.
10803 with_gnu_ld
=unknown
10806 elif test "$with_gnu_ld" = yes; then
10807 echo "$as_me:$LINENO: checking for GNU ld" >&5
10808 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10810 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10811 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10813 if test "${acl_cv_path_LD+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 if test -z "$LD"; then
10817 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10818 for ac_dir
in $PATH; do
10819 test -z "$ac_dir" && ac_dir
=.
10820 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10821 acl_cv_path_LD
="$ac_dir/$ac_prog"
10822 # Check to see if the program is GNU ld. I'd rather use --version,
10823 # but apparently some GNU ld's only accept -v.
10824 # Break only if it was the GNU/non-GNU ld that we prefer.
10825 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10826 test "$with_gnu_ld" != no
&& break
10828 test "$with_gnu_ld" != yes && break
10834 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10838 LD
="$acl_cv_path_LD"
10839 if test -n "$LD"; then
10840 echo "$as_me:$LINENO: result: $LD" >&5
10841 echo "${ECHO_T}$LD" >&6
10843 echo "$as_me:$LINENO: result: no" >&5
10844 echo "${ECHO_T}no" >&6
10846 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10847 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10848 { (exit 1); exit 1; }; }
10849 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10850 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10851 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10854 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10855 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10856 acl_cv_prog_gnu_ld
=yes
10858 acl_cv_prog_gnu_ld
=no
10861 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10862 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10863 with_gnu_ld
=$acl_cv_prog_gnu_ld
10867 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10868 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10869 if test "${acl_cv_rpath+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10874 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10876 rm -f .
/conftest.sh
10880 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10881 echo "${ECHO_T}$acl_cv_rpath" >&6
10883 libext
="$acl_cv_libext"
10884 shlibext
="$acl_cv_shlibext"
10885 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10886 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10887 hardcode_direct
="$acl_cv_hardcode_direct"
10888 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10889 # Check whether --enable-rpath or --disable-rpath was given.
10890 if test "${enable_rpath+set}" = set; then
10891 enableval
="$enable_rpath"
10907 acl_save_prefix
="$prefix"
10908 prefix
="$acl_final_prefix"
10909 acl_save_exec_prefix
="$exec_prefix"
10910 exec_prefix
="$acl_final_exec_prefix"
10912 eval additional_includedir
=\"$includedir\"
10913 eval additional_libdir
=\"$libdir\"
10915 exec_prefix
="$acl_save_exec_prefix"
10916 prefix
="$acl_save_prefix"
10919 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10920 if test "${with_libexpat_prefix+set}" = set; then
10921 withval
="$with_libexpat_prefix"
10923 if test "X$withval" = "Xno"; then
10926 if test "X$withval" = "X"; then
10928 acl_save_prefix
="$prefix"
10929 prefix
="$acl_final_prefix"
10930 acl_save_exec_prefix
="$exec_prefix"
10931 exec_prefix
="$acl_final_exec_prefix"
10933 eval additional_includedir
=\"$includedir\"
10934 eval additional_libdir
=\"$libdir\"
10936 exec_prefix
="$acl_save_exec_prefix"
10937 prefix
="$acl_save_prefix"
10940 additional_includedir
="$withval/include"
10941 additional_libdir
="$withval/lib"
10951 names_already_handled
=
10952 names_next_round
='expat '
10953 while test -n "$names_next_round"; do
10954 names_this_round
="$names_next_round"
10956 for name
in $names_this_round; do
10958 for n
in $names_already_handled; do
10959 if test "$n" = "$name"; then
10960 already_handled
=yes
10964 if test -z "$already_handled"; then
10965 names_already_handled
="$names_already_handled $name"
10966 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10967 eval value
=\"\
$HAVE_LIB$uppername\"
10968 if test -n "$value"; then
10969 if test "$value" = yes; then
10970 eval value
=\"\
$LIB$uppername\"
10971 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
10972 eval value
=\"\
$LTLIB$uppername\"
10973 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10982 if test $use_additional = yes; then
10983 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10984 found_dir
="$additional_libdir"
10985 found_so
="$additional_libdir/lib$name.$shlibext"
10986 if test -f "$additional_libdir/lib$name.la"; then
10987 found_la
="$additional_libdir/lib$name.la"
10990 if test -f "$additional_libdir/lib$name.$libext"; then
10991 found_dir
="$additional_libdir"
10992 found_a
="$additional_libdir/lib$name.$libext"
10993 if test -f "$additional_libdir/lib$name.la"; then
10994 found_la
="$additional_libdir/lib$name.la"
10999 if test "X$found_dir" = "X"; then
11000 for x
in $LDFLAGS $LTLIBEXPAT; do
11002 acl_save_prefix
="$prefix"
11003 prefix
="$acl_final_prefix"
11004 acl_save_exec_prefix
="$exec_prefix"
11005 exec_prefix
="$acl_final_exec_prefix"
11007 exec_prefix
="$acl_save_exec_prefix"
11008 prefix
="$acl_save_prefix"
11012 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11013 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11015 found_so
="$dir/lib$name.$shlibext"
11016 if test -f "$dir/lib$name.la"; then
11017 found_la
="$dir/lib$name.la"
11020 if test -f "$dir/lib$name.$libext"; then
11022 found_a
="$dir/lib$name.$libext"
11023 if test -f "$dir/lib$name.la"; then
11024 found_la
="$dir/lib$name.la"
11030 if test "X$found_dir" != "X"; then
11035 if test "X$found_dir" != "X"; then
11036 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
11037 if test "X$found_so" != "X"; then
11038 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11039 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11042 for x
in $ltrpathdirs; do
11043 if test "X$x" = "X$found_dir"; then
11048 if test -z "$haveit"; then
11049 ltrpathdirs
="$ltrpathdirs $found_dir"
11051 if test "$hardcode_direct" = yes; then
11052 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11054 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11055 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11057 for x
in $rpathdirs; do
11058 if test "X$x" = "X$found_dir"; then
11063 if test -z "$haveit"; then
11064 rpathdirs
="$rpathdirs $found_dir"
11068 for x
in $LDFLAGS $LIBEXPAT; do
11070 acl_save_prefix
="$prefix"
11071 prefix
="$acl_final_prefix"
11072 acl_save_exec_prefix
="$exec_prefix"
11073 exec_prefix
="$acl_final_exec_prefix"
11075 exec_prefix
="$acl_save_exec_prefix"
11076 prefix
="$acl_save_prefix"
11078 if test "X$x" = "X-L$found_dir"; then
11083 if test -z "$haveit"; then
11084 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
11086 if test "$hardcode_minus_L" != no
; then
11087 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11089 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11095 if test "X$found_a" != "X"; then
11096 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
11098 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
11101 additional_includedir
=
11102 case "$found_dir" in
11104 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11105 additional_includedir
="$basedir/include"
11108 if test "X$additional_includedir" != "X"; then
11109 if test "X$additional_includedir" != "X/usr/include"; then
11111 if test "X$additional_includedir" = "X/usr/local/include"; then
11112 if test -n "$GCC"; then
11114 linux
*) haveit
=yes;;
11118 if test -z "$haveit"; then
11119 for x
in $CPPFLAGS $INCEXPAT; do
11121 acl_save_prefix
="$prefix"
11122 prefix
="$acl_final_prefix"
11123 acl_save_exec_prefix
="$exec_prefix"
11124 exec_prefix
="$acl_final_exec_prefix"
11126 exec_prefix
="$acl_save_exec_prefix"
11127 prefix
="$acl_save_prefix"
11129 if test "X$x" = "X-I$additional_includedir"; then
11134 if test -z "$haveit"; then
11135 if test -d "$additional_includedir"; then
11136 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
11142 if test -n "$found_la"; then
11143 save_libdir
="$libdir"
11144 case "$found_la" in
11145 */* |
*\\*) .
"$found_la" ;;
11146 *) .
"./$found_la" ;;
11148 libdir
="$save_libdir"
11149 for dep
in $dependency_libs; do
11152 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11153 if test "X$additional_libdir" != "X/usr/lib"; then
11155 if test "X$additional_libdir" = "X/usr/local/lib"; then
11156 if test -n "$GCC"; then
11158 linux
*) haveit
=yes;;
11162 if test -z "$haveit"; then
11164 for x
in $LDFLAGS $LIBEXPAT; do
11166 acl_save_prefix
="$prefix"
11167 prefix
="$acl_final_prefix"
11168 acl_save_exec_prefix
="$exec_prefix"
11169 exec_prefix
="$acl_final_exec_prefix"
11171 exec_prefix
="$acl_save_exec_prefix"
11172 prefix
="$acl_save_prefix"
11174 if test "X$x" = "X-L$additional_libdir"; then
11179 if test -z "$haveit"; then
11180 if test -d "$additional_libdir"; then
11181 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
11185 for x
in $LDFLAGS $LTLIBEXPAT; do
11187 acl_save_prefix
="$prefix"
11188 prefix
="$acl_final_prefix"
11189 acl_save_exec_prefix
="$exec_prefix"
11190 exec_prefix
="$acl_final_exec_prefix"
11192 exec_prefix
="$acl_save_exec_prefix"
11193 prefix
="$acl_save_prefix"
11195 if test "X$x" = "X-L$additional_libdir"; then
11200 if test -z "$haveit"; then
11201 if test -d "$additional_libdir"; then
11202 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
11209 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11210 if test "$enable_rpath" != no
; then
11212 for x
in $rpathdirs; do
11213 if test "X$x" = "X$dir"; then
11218 if test -z "$haveit"; then
11219 rpathdirs
="$rpathdirs $dir"
11222 for x
in $ltrpathdirs; do
11223 if test "X$x" = "X$dir"; then
11228 if test -z "$haveit"; then
11229 ltrpathdirs
="$ltrpathdirs $dir"
11234 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11237 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11240 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
11241 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
11247 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11248 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
11254 if test "X$rpathdirs" != "X"; then
11255 if test -n "$hardcode_libdir_separator"; then
11257 for found_dir
in $rpathdirs; do
11258 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11260 acl_save_libdir
="$libdir"
11262 eval flag
=\"$hardcode_libdir_flag_spec\"
11263 libdir
="$acl_save_libdir"
11264 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11266 for found_dir
in $rpathdirs; do
11267 acl_save_libdir
="$libdir"
11268 libdir
="$found_dir"
11269 eval flag
=\"$hardcode_libdir_flag_spec\"
11270 libdir
="$acl_save_libdir"
11271 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11275 if test "X$ltrpathdirs" != "X"; then
11276 for found_dir
in $ltrpathdirs; do
11277 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
11282 ac_save_CPPFLAGS
="$CPPFLAGS"
11284 for element
in $INCEXPAT; do
11286 for x
in $CPPFLAGS; do
11288 acl_save_prefix
="$prefix"
11289 prefix
="$acl_final_prefix"
11290 acl_save_exec_prefix
="$exec_prefix"
11291 exec_prefix
="$acl_final_exec_prefix"
11293 exec_prefix
="$acl_save_exec_prefix"
11294 prefix
="$acl_save_prefix"
11296 if test "X$x" = "X$element"; then
11301 if test -z "$haveit"; then
11302 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11307 echo "$as_me:$LINENO: checking for libexpat" >&5
11308 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11309 if test "${ac_cv_libexpat+set}" = set; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11313 ac_save_LIBS
="$LIBS"
11314 LIBS
="$LIBS $LIBEXPAT"
11315 cat >conftest.
$ac_ext <<_ACEOF
11318 cat confdefs.h
>>conftest.
$ac_ext
11319 cat >>conftest.
$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11325 XML_Parser p = XML_ParserCreate (0);
11330 rm -f conftest.
$ac_objext conftest
$ac_exeext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11332 (eval $ac_link) 2>conftest.er1
11334 grep -v '^ *+' conftest.er1
>conftest.err
11336 cat conftest.err
>&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try
='test -z "$ac_c_werror_flag"
11340 || test ! -s conftest.err'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; } &&
11346 { ac_try
='test -s conftest$ac_exeext'
11347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348 (eval $ac_try) 2>&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); }; }; then
11354 echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.
$ac_ext >&5
11359 rm -f conftest.err conftest.
$ac_objext \
11360 conftest
$ac_exeext conftest.
$ac_ext
11361 LIBS
="$ac_save_LIBS"
11364 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11365 echo "${ECHO_T}$ac_cv_libexpat" >&6
11366 if test "$ac_cv_libexpat" = yes; then
11369 cat >>confdefs.h
<<\_ACEOF
11370 #define HAVE_LIBEXPAT 1
11373 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11374 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11375 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11376 echo "${ECHO_T}$LIBEXPAT" >&6
11379 CPPFLAGS
="$ac_save_CPPFLAGS"
11389 if test "$HAVE_LIBEXPAT" != yes; then
11390 if test "$with_expat" = yes; then
11391 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11392 echo "$as_me: error: expat is missing or unusable" >&2;}
11393 { (exit 1); exit 1; }; }
11395 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11396 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11400 LIBS
="$LIBS $LIBEXPAT"
11402 for ac_func
in XML_StopParser
11404 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11405 echo "$as_me:$LINENO: checking for $ac_func" >&5
11406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11407 if eval "test \"\${$as_ac_var+set}\" = set"; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11410 cat >conftest.
$ac_ext <<_ACEOF
11413 cat confdefs.h
>>conftest.
$ac_ext
11414 cat >>conftest.
$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11418 #define $ac_func innocuous_$ac_func
11420 /* System header to define __stub macros and hopefully few prototypes,
11421 which can conflict with char $ac_func (); below.
11422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11423 <limits.h> exists even on freestanding compilers. */
11426 # include <limits.h>
11428 # include <assert.h>
11433 /* Override any gcc2 internal prototype to avoid an error. */
11438 /* We use char because int might match the return type of a gcc2
11439 builtin and then its argument prototype would still apply. */
11441 /* The GNU C library defines this for functions which it implements
11442 to always fail with ENOSYS. Some functions are actually named
11443 something starting with __ and the normal name is an alias. */
11444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11447 char (*f) () = $ac_func;
11456 return f != $ac_func;
11461 rm -f conftest.
$ac_objext conftest
$ac_exeext
11462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11463 (eval $ac_link) 2>conftest.er1
11465 grep -v '^ *+' conftest.er1
>conftest.err
11467 cat conftest.err
>&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } &&
11470 { ac_try
='test -z "$ac_c_werror_flag"
11471 || test ! -s conftest.err'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; } &&
11477 { ac_try
='test -s conftest$ac_exeext'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11483 eval "$as_ac_var=yes"
11485 echo "$as_me: failed program was:" >&5
11486 sed 's/^/| /' conftest.
$ac_ext >&5
11488 eval "$as_ac_var=no"
11490 rm -f conftest.err conftest.
$ac_objext \
11491 conftest
$ac_exeext conftest.
$ac_ext
11493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11495 if test `eval echo '${'$as_ac_var'}'` = yes; then
11496 cat >>confdefs.h
<<_ACEOF
11497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11510 # Check whether --with-python or --without-python was given.
11511 if test "${with_python+set}" = set; then
11512 withval
="$with_python"
11517 echo "$as_me:$LINENO: checking whether to use python" >&5
11518 echo $ECHO_N "checking whether to use python... $ECHO_C" >&6
11519 echo "$as_me:$LINENO: result: $with_python" >&5
11520 echo "${ECHO_T}$with_python" >&6
11522 if test "${with_python}" = no
; then
11523 { echo "$as_me:$LINENO: WARNING: python support disabled; some features may be unavailable." >&5
11524 echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11527 case "${with_python}" in
11529 # Leave as empty, use defaults.
11534 python_includes
="-I${with_python}/include"
11535 python_libs
="-L${with_python}/lib"
11538 { { echo "$as_me:$LINENO: error: invalid value for --with-python" >&5
11539 echo "$as_me: error: invalid value for --with-python" >&2;}
11540 { (exit 1); exit 1; }; }
11544 save_CPPFLAGS
=$CPPFLAGS
11545 CPPFLAGS
="$CPPFLAGS ${python_includes}"
11547 LIBS
="$LIBS ${python_libs}"
11549 if test "${have_libpython}" = no
; then
11554 HAVE_LIBPYTHON2_6
=no
11555 echo "$as_me:$LINENO: checking for ${version}" >&5
11556 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11558 LIBS
="$LIBS -l${version}"
11559 cat >conftest.
$ac_ext <<_ACEOF
11562 cat confdefs.h
>>conftest.
$ac_ext
11563 cat >>conftest.
$ac_ext <<_ACEOF
11564 /* end confdefs.h. */
11565 #include "${version}/Python.h"
11574 rm -f conftest.
$ac_objext conftest
$ac_exeext
11575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11576 (eval $ac_link) 2>conftest.er1
11578 grep -v '^ *+' conftest.er1
>conftest.err
11580 cat conftest.err
>&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); } &&
11583 { ac_try
='test -z "$ac_c_werror_flag"
11584 || test ! -s conftest.err'
11585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; } &&
11590 { ac_try
='test -s conftest$ac_exeext'
11591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592 (eval $ac_try) 2>&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 HAVE_LIBPYTHON2_6
=yes
11599 echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.
$ac_ext >&5
11604 rm -f conftest.err conftest.
$ac_objext \
11605 conftest
$ac_exeext conftest.
$ac_ext
11606 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_6" >&5
11607 echo "${ECHO_T}$HAVE_LIBPYTHON2_6" >&6
11609 if test "${HAVE_LIBPYTHON2_6}" = yes; then
11611 cat >>confdefs.h
<<\_ACEOF
11612 #define HAVE_LIBPYTHON2_6 1
11617 if test ${have_libpython} = no
; then
11622 HAVE_LIBPYTHON2_5
=no
11623 echo "$as_me:$LINENO: checking for ${version}" >&5
11624 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11626 LIBS
="$LIBS -l${version}"
11627 cat >conftest.
$ac_ext <<_ACEOF
11630 cat confdefs.h
>>conftest.
$ac_ext
11631 cat >>conftest.
$ac_ext <<_ACEOF
11632 /* end confdefs.h. */
11633 #include "${version}/Python.h"
11642 rm -f conftest.
$ac_objext conftest
$ac_exeext
11643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11644 (eval $ac_link) 2>conftest.er1
11646 grep -v '^ *+' conftest.er1
>conftest.err
11648 cat conftest.err
>&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } &&
11651 { ac_try
='test -z "$ac_c_werror_flag"
11652 || test ! -s conftest.err'
11653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654 (eval $ac_try) 2>&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; } &&
11658 { ac_try
='test -s conftest$ac_exeext'
11659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; }; then
11664 HAVE_LIBPYTHON2_5
=yes
11667 echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.
$ac_ext >&5
11672 rm -f conftest.err conftest.
$ac_objext \
11673 conftest
$ac_exeext conftest.
$ac_ext
11674 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_5" >&5
11675 echo "${ECHO_T}$HAVE_LIBPYTHON2_5" >&6
11677 if test "${HAVE_LIBPYTHON2_5}" = yes; then
11679 cat >>confdefs.h
<<\_ACEOF
11680 #define HAVE_LIBPYTHON2_5 1
11685 if test ${have_libpython} = no
; then
11690 HAVE_LIBPYTHON2_4
=no
11691 echo "$as_me:$LINENO: checking for ${version}" >&5
11692 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11694 LIBS
="$LIBS -l${version}"
11695 cat >conftest.
$ac_ext <<_ACEOF
11698 cat confdefs.h
>>conftest.
$ac_ext
11699 cat >>conftest.
$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 #include "${version}/Python.h"
11710 rm -f conftest.
$ac_objext conftest
$ac_exeext
11711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11712 (eval $ac_link) 2>conftest.er1
11714 grep -v '^ *+' conftest.er1
>conftest.err
11716 cat conftest.err
>&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
11719 { ac_try
='test -z "$ac_c_werror_flag"
11720 || test ! -s conftest.err'
11721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722 (eval $ac_try) 2>&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; } &&
11726 { ac_try
='test -s conftest$ac_exeext'
11727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728 (eval $ac_try) 2>&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; }; then
11732 HAVE_LIBPYTHON2_4
=yes
11735 echo "$as_me: failed program was:" >&5
11736 sed 's/^/| /' conftest.
$ac_ext >&5
11740 rm -f conftest.err conftest.
$ac_objext \
11741 conftest
$ac_exeext conftest.
$ac_ext
11742 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_4" >&5
11743 echo "${ECHO_T}$HAVE_LIBPYTHON2_4" >&6
11745 if test "${HAVE_LIBPYTHON2_4}" = yes; then
11747 cat >>confdefs.h
<<\_ACEOF
11748 #define HAVE_LIBPYTHON2_4 1
11753 if test ${have_libpython} = no
; then
11754 case "${with_python}" in
11756 { { echo "$as_me:$LINENO: error: python is missing or unusable" >&5
11757 echo "$as_me: error: python is missing or unusable" >&2;}
11758 { (exit 1); exit 1; }; }
11761 { echo "$as_me:$LINENO: WARNING: python is missing or unusable; some features may be unavailable." >&5
11762 echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11765 { { echo "$as_me:$LINENO: error: no usable python found at ${with_python}" >&5
11766 echo "$as_me: error: no usable python found at ${with_python}" >&2;}
11767 { (exit 1); exit 1; }; }
11770 CPPFLAGS
=$save_CPPFLAGS
11775 if test "${have_libpython}" = yes; then
11777 cat >>confdefs.h
<<\_ACEOF
11778 #define HAVE_PYTHON 1
11781 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11782 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11783 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11784 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11786 # Flags needed to compile Python code (taken from python-config --cflags).
11787 # We cannot call python-config directly because it will output whatever was
11788 # used when compiling the Python interpreter itself, including flags which
11789 # would make the python-related objects be compiled differently from the
11790 # rest of GDB (e.g., -O2 and -fPIC).
11791 if test "${GCC}" = yes; then
11792 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
11795 if test "x${tentative_python_cflags}" != x
; then
11796 echo "$as_me:$LINENO: checking compiler flags for python code" >&5
11797 echo $ECHO_N "checking compiler flags for python code... $ECHO_C" >&6
11798 for flag
in ${tentative_python_cflags}; do
11799 # Check that the compiler accepts it
11800 saved_CFLAGS
="$CFLAGS"
11801 CFLAGS
="$CFLAGS $flag"
11802 cat >conftest.
$ac_ext <<_ACEOF
11805 cat confdefs.h
>>conftest.
$ac_ext
11806 cat >>conftest.
$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11817 rm -f conftest.
$ac_objext
11818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11819 (eval $ac_compile) 2>conftest.er1
11821 grep -v '^ *+' conftest.er1
>conftest.err
11823 cat conftest.err
>&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } &&
11826 { ac_try
='test -z "$ac_c_werror_flag"
11827 || test ! -s conftest.err'
11828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829 (eval $ac_try) 2>&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; } &&
11833 { ac_try
='test -s conftest.$ac_objext'
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; }; then
11839 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
11841 echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.
$ac_ext >&5
11845 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11846 CFLAGS
="$saved_CFLAGS"
11848 echo "$as_me:$LINENO: result: ${PYTHON_CFLAGS}" >&5
11849 echo "${ECHO_T}${PYTHON_CFLAGS}" >&6
11852 # Even if Python support is not compiled in, we need to have these files
11853 # included in order to recognize the GDB command "python".
11854 CONFIG_OBS
="$CONFIG_OBS python.o python-value.o"
11855 CONFIG_SRCS
="$CONFIG_SRCS python/python.c python/python-value.c"
11859 # ------------------------- #
11860 # Checks for header files. #
11861 # ------------------------- #
11868 ac_header_dirent
=no
11869 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
11870 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11871 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11872 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 cat >conftest.
$ac_ext <<_ACEOF
11879 cat confdefs.h
>>conftest.
$ac_ext
11880 cat >>conftest.
$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11882 #include <sys/types.h>
11894 rm -f conftest.
$ac_objext
11895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11896 (eval $ac_compile) 2>conftest.er1
11898 grep -v '^ *+' conftest.er1
>conftest.err
11900 cat conftest.err
>&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } &&
11903 { ac_try
='test -z "$ac_c_werror_flag"
11904 || test ! -s conftest.err'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; } &&
11910 { ac_try
='test -s conftest.$ac_objext'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; }; then
11916 eval "$as_ac_Header=yes"
11918 echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.
$ac_ext >&5
11921 eval "$as_ac_Header=no"
11923 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11928 cat >>confdefs.h
<<_ACEOF
11929 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11932 ac_header_dirent
=$ac_hdr; break
11936 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11937 if test $ac_header_dirent = dirent.h
; then
11938 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11939 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11940 if test "${ac_cv_search_opendir+set}" = set; then
11941 echo $ECHO_N "(cached) $ECHO_C" >&6
11943 ac_func_search_save_LIBS
=$LIBS
11944 ac_cv_search_opendir
=no
11945 cat >conftest.
$ac_ext <<_ACEOF
11948 cat confdefs.h
>>conftest.
$ac_ext
11949 cat >>conftest.
$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11952 /* Override any gcc2 internal prototype to avoid an error. */
11956 /* We use char because int might match the return type of a gcc2
11957 builtin and then its argument prototype would still apply. */
11967 rm -f conftest.
$ac_objext conftest
$ac_exeext
11968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11969 (eval $ac_link) 2>conftest.er1
11971 grep -v '^ *+' conftest.er1
>conftest.err
11973 cat conftest.err
>&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } &&
11976 { ac_try
='test -z "$ac_c_werror_flag"
11977 || test ! -s conftest.err'
11978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979 (eval $ac_try) 2>&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; } &&
11983 { ac_try
='test -s conftest$ac_exeext'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
11989 ac_cv_search_opendir
="none required"
11991 echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.
$ac_ext >&5
11995 rm -f conftest.err conftest.
$ac_objext \
11996 conftest
$ac_exeext conftest.
$ac_ext
11997 if test "$ac_cv_search_opendir" = no
; then
11998 for ac_lib
in dir
; do
11999 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12000 cat >conftest.
$ac_ext <<_ACEOF
12003 cat confdefs.h
>>conftest.
$ac_ext
12004 cat >>conftest.
$ac_ext <<_ACEOF
12005 /* end confdefs.h. */
12007 /* Override any gcc2 internal prototype to avoid an error. */
12011 /* We use char because int might match the return type of a gcc2
12012 builtin and then its argument prototype would still apply. */
12022 rm -f conftest.
$ac_objext conftest
$ac_exeext
12023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12024 (eval $ac_link) 2>conftest.er1
12026 grep -v '^ *+' conftest.er1
>conftest.err
12028 cat conftest.err
>&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } &&
12031 { ac_try
='test -z "$ac_c_werror_flag"
12032 || test ! -s conftest.err'
12033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12034 (eval $ac_try) 2>&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; } &&
12038 { ac_try
='test -s conftest$ac_exeext'
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; }; then
12044 ac_cv_search_opendir
="-l$ac_lib"
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.
$ac_ext >&5
12051 rm -f conftest.err conftest.
$ac_objext \
12052 conftest
$ac_exeext conftest.
$ac_ext
12055 LIBS
=$ac_func_search_save_LIBS
12057 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12058 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12059 if test "$ac_cv_search_opendir" != no
; then
12060 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
12065 echo "$as_me:$LINENO: checking for library containing opendir" >&5
12066 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
12067 if test "${ac_cv_search_opendir+set}" = set; then
12068 echo $ECHO_N "(cached) $ECHO_C" >&6
12070 ac_func_search_save_LIBS
=$LIBS
12071 ac_cv_search_opendir
=no
12072 cat >conftest.
$ac_ext <<_ACEOF
12075 cat confdefs.h
>>conftest.
$ac_ext
12076 cat >>conftest.
$ac_ext <<_ACEOF
12077 /* end confdefs.h. */
12079 /* Override any gcc2 internal prototype to avoid an error. */
12083 /* We use char because int might match the return type of a gcc2
12084 builtin and then its argument prototype would still apply. */
12094 rm -f conftest.
$ac_objext conftest
$ac_exeext
12095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12096 (eval $ac_link) 2>conftest.er1
12098 grep -v '^ *+' conftest.er1
>conftest.err
12100 cat conftest.err
>&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } &&
12103 { ac_try
='test -z "$ac_c_werror_flag"
12104 || test ! -s conftest.err'
12105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106 (eval $ac_try) 2>&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; } &&
12110 { ac_try
='test -s conftest$ac_exeext'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; }; then
12116 ac_cv_search_opendir
="none required"
12118 echo "$as_me: failed program was:" >&5
12119 sed 's/^/| /' conftest.
$ac_ext >&5
12122 rm -f conftest.err conftest.
$ac_objext \
12123 conftest
$ac_exeext conftest.
$ac_ext
12124 if test "$ac_cv_search_opendir" = no
; then
12125 for ac_lib
in x
; do
12126 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12127 cat >conftest.
$ac_ext <<_ACEOF
12130 cat confdefs.h
>>conftest.
$ac_ext
12131 cat >>conftest.
$ac_ext <<_ACEOF
12132 /* end confdefs.h. */
12134 /* Override any gcc2 internal prototype to avoid an error. */
12138 /* We use char because int might match the return type of a gcc2
12139 builtin and then its argument prototype would still apply. */
12149 rm -f conftest.
$ac_objext conftest
$ac_exeext
12150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12151 (eval $ac_link) 2>conftest.er1
12153 grep -v '^ *+' conftest.er1
>conftest.err
12155 cat conftest.err
>&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); } &&
12158 { ac_try
='test -z "$ac_c_werror_flag"
12159 || test ! -s conftest.err'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; } &&
12165 { ac_try
='test -s conftest$ac_exeext'
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; }; then
12171 ac_cv_search_opendir
="-l$ac_lib"
12174 echo "$as_me: failed program was:" >&5
12175 sed 's/^/| /' conftest.
$ac_ext >&5
12178 rm -f conftest.err conftest.
$ac_objext \
12179 conftest
$ac_exeext conftest.
$ac_ext
12182 LIBS
=$ac_func_search_save_LIBS
12184 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12185 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12186 if test "$ac_cv_search_opendir" != no
; then
12187 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
12193 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12194 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12195 if test "${ac_cv_header_stat_broken+set}" = set; then
12196 echo $ECHO_N "(cached) $ECHO_C" >&6
12198 cat >conftest.
$ac_ext <<_ACEOF
12201 cat confdefs.h
>>conftest.
$ac_ext
12202 cat >>conftest.
$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204 #include <sys/types.h>
12205 #include <sys/stat.h>
12207 #if defined(S_ISBLK) && defined(S_IFDIR)
12208 # if S_ISBLK (S_IFDIR)
12213 #if defined(S_ISBLK) && defined(S_IFCHR)
12214 # if S_ISBLK (S_IFCHR)
12219 #if defined(S_ISLNK) && defined(S_IFREG)
12220 # if S_ISLNK (S_IFREG)
12225 #if defined(S_ISSOCK) && defined(S_IFREG)
12226 # if S_ISSOCK (S_IFREG)
12232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12233 $EGREP "You lose" >/dev
/null
2>&1; then
12234 ac_cv_header_stat_broken
=yes
12236 ac_cv_header_stat_broken
=no
12241 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12242 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12243 if test $ac_cv_header_stat_broken = yes; then
12245 cat >>confdefs.h
<<\_ACEOF
12246 #define STAT_MACROS_BROKEN 1
12251 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12252 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12253 if test "${ac_cv_header_stdc+set}" = set; then
12254 echo $ECHO_N "(cached) $ECHO_C" >&6
12256 cat >conftest.
$ac_ext <<_ACEOF
12259 cat confdefs.h
>>conftest.
$ac_ext
12260 cat >>conftest.
$ac_ext <<_ACEOF
12261 /* end confdefs.h. */
12262 #include <stdlib.h>
12263 #include <stdarg.h>
12264 #include <string.h>
12275 rm -f conftest.
$ac_objext
12276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12277 (eval $ac_compile) 2>conftest.er1
12279 grep -v '^ *+' conftest.er1
>conftest.err
12281 cat conftest.err
>&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } &&
12284 { ac_try
='test -z "$ac_c_werror_flag"
12285 || test ! -s conftest.err'
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; } &&
12291 { ac_try
='test -s conftest.$ac_objext'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; }; then
12297 ac_cv_header_stdc
=yes
12299 echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.
$ac_ext >&5
12302 ac_cv_header_stdc
=no
12304 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12306 if test $ac_cv_header_stdc = yes; then
12307 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12308 cat >conftest.
$ac_ext <<_ACEOF
12311 cat confdefs.h
>>conftest.
$ac_ext
12312 cat >>conftest.
$ac_ext <<_ACEOF
12313 /* end confdefs.h. */
12314 #include <string.h>
12317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12318 $EGREP "memchr" >/dev
/null
2>&1; then
12321 ac_cv_header_stdc
=no
12327 if test $ac_cv_header_stdc = yes; then
12328 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12329 cat >conftest.
$ac_ext <<_ACEOF
12332 cat confdefs.h
>>conftest.
$ac_ext
12333 cat >>conftest.
$ac_ext <<_ACEOF
12334 /* end confdefs.h. */
12335 #include <stdlib.h>
12338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12339 $EGREP "free" >/dev
/null
2>&1; then
12342 ac_cv_header_stdc
=no
12348 if test $ac_cv_header_stdc = yes; then
12349 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12350 if test "$cross_compiling" = yes; then
12353 cat >conftest.
$ac_ext <<_ACEOF
12356 cat confdefs.h
>>conftest.
$ac_ext
12357 cat >>conftest.
$ac_ext <<_ACEOF
12358 /* end confdefs.h. */
12360 #if ((' ' & 0x0FF) == 0x020)
12361 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12362 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12364 # define ISLOWER(c) \
12365 (('a' <= (c) && (c) <= 'i') \
12366 || ('j' <= (c) && (c) <= 'r') \
12367 || ('s' <= (c) && (c) <= 'z'))
12368 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12371 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12376 for (i = 0; i < 256; i++)
12377 if (XOR (islower (i), ISLOWER (i))
12378 || toupper (i) != TOUPPER (i))
12383 rm -f conftest
$ac_exeext
12384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12385 (eval $ac_link) 2>&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390 (eval $ac_try) 2>&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; }; then
12396 echo "$as_me: program exited with status $ac_status" >&5
12397 echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.
$ac_ext >&5
12400 ( exit $ac_status )
12401 ac_cv_header_stdc
=no
12403 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12407 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12408 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12409 if test $ac_cv_header_stdc = yes; then
12411 cat >>confdefs.h
<<\_ACEOF
12412 #define STDC_HEADERS 1
12417 # elf_hp.h is for HP/UX 64-bit shared library support.
12418 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
12419 # unconditionally, so what's the point in checking these?
12457 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
12458 thread_db.h gnu
/libc-version.h signal.h stddef.h \
12459 stdlib.h string.h memory.h
strings.h sys
/fault.h \
12460 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
12461 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
12462 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
12463 sys
/types.h sys
/wait.h
wait.h termios.h termio.h \
12464 sgtty.h unistd.h elf_hp.h ctype.h
time.h locale.h
12466 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12468 echo "$as_me:$LINENO: checking for $ac_header" >&5
12469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12476 # Is the header compilable?
12477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12479 cat >conftest.
$ac_ext <<_ACEOF
12482 cat confdefs.h
>>conftest.
$ac_ext
12483 cat >>conftest.
$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12485 $ac_includes_default
12486 #include <$ac_header>
12488 rm -f conftest.
$ac_objext
12489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12490 (eval $ac_compile) 2>conftest.er1
12492 grep -v '^ *+' conftest.er1
>conftest.err
12494 cat conftest.err
>&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } &&
12497 { ac_try
='test -z "$ac_c_werror_flag"
12498 || test ! -s conftest.err'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; } &&
12504 { ac_try
='test -s conftest.$ac_objext'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; }; then
12510 ac_header_compiler
=yes
12512 echo "$as_me: failed program was:" >&5
12513 sed 's/^/| /' conftest.
$ac_ext >&5
12515 ac_header_compiler
=no
12517 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12519 echo "${ECHO_T}$ac_header_compiler" >&6
12521 # Is the header present?
12522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12524 cat >conftest.
$ac_ext <<_ACEOF
12527 cat confdefs.h
>>conftest.
$ac_ext
12528 cat >>conftest.
$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12530 #include <$ac_header>
12532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12533 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12535 grep -v '^ *+' conftest.er1
>conftest.err
12537 cat conftest.err
>&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } >/dev
/null
; then
12540 if test -s conftest.err
; then
12541 ac_cpp_err
=$ac_c_preproc_warn_flag
12542 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12549 if test -z "$ac_cpp_err"; then
12550 ac_header_preproc
=yes
12552 echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.
$ac_ext >&5
12555 ac_header_preproc
=no
12557 rm -f conftest.err conftest.
$ac_ext
12558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12559 echo "${ECHO_T}$ac_header_preproc" >&6
12561 # So? What about this header?
12562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12568 ac_header_preproc
=yes
12571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12585 ## ------------------------------------------ ##
12586 ## Report this to the AC_PACKAGE_NAME lists. ##
12587 ## ------------------------------------------ ##
12590 sed "s/^/$as_me: WARNING: /" >&2
12593 echo "$as_me:$LINENO: checking for $ac_header" >&5
12594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12596 echo $ECHO_N "(cached) $ECHO_C" >&6
12598 eval "$as_ac_Header=\$ac_header_preproc"
12600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12605 cat >>confdefs.h
<<_ACEOF
12606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12614 for ac_header
in link.h
12616 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12617 echo "$as_me:$LINENO: checking for $ac_header" >&5
12618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12622 cat >conftest.
$ac_ext <<_ACEOF
12625 cat confdefs.h
>>conftest.
$ac_ext
12626 cat >>conftest.
$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12628 #if HAVE_SYS_TYPES_H
12629 # include <sys/types.h>
12632 # include <nlist.h>
12636 #include <$ac_header>
12638 rm -f conftest.
$ac_objext
12639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12640 (eval $ac_compile) 2>conftest.er1
12642 grep -v '^ *+' conftest.er1
>conftest.err
12644 cat conftest.err
>&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } &&
12647 { ac_try
='test -z "$ac_c_werror_flag"
12648 || test ! -s conftest.err'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; } &&
12654 { ac_try
='test -s conftest.$ac_objext'
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; }; then
12660 eval "$as_ac_Header=yes"
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.
$ac_ext >&5
12665 eval "$as_ac_Header=no"
12667 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12672 cat >>confdefs.h
<<_ACEOF
12673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12681 for ac_header
in sys
/proc.h
12683 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12684 echo "$as_me:$LINENO: checking for $ac_header" >&5
12685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
12689 cat >conftest.
$ac_ext <<_ACEOF
12692 cat confdefs.h
>>conftest.
$ac_ext
12693 cat >>conftest.
$ac_ext <<_ACEOF
12694 /* end confdefs.h. */
12695 #if HAVE_SYS_PARAM_H
12696 # include <sys/param.h>
12700 #include <$ac_header>
12702 rm -f conftest.
$ac_objext
12703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12704 (eval $ac_compile) 2>conftest.er1
12706 grep -v '^ *+' conftest.er1
>conftest.err
12708 cat conftest.err
>&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } &&
12711 { ac_try
='test -z "$ac_c_werror_flag"
12712 || test ! -s conftest.err'
12713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714 (eval $ac_try) 2>&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; } &&
12718 { ac_try
='test -s conftest.$ac_objext'
12719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12720 (eval $ac_try) 2>&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); }; }; then
12724 eval "$as_ac_Header=yes"
12726 echo "$as_me: failed program was:" >&5
12727 sed 's/^/| /' conftest.
$ac_ext >&5
12729 eval "$as_ac_Header=no"
12731 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12736 cat >>confdefs.h
<<_ACEOF
12737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12745 for ac_header
in sys
/user.h
12747 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12748 echo "$as_me:$LINENO: checking for $ac_header" >&5
12749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12753 cat >conftest.
$ac_ext <<_ACEOF
12756 cat confdefs.h
>>conftest.
$ac_ext
12757 cat >>conftest.
$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12759 #if HAVE_SYS_PARAM_H
12760 # include <sys/param.h>
12764 #include <$ac_header>
12766 rm -f conftest.
$ac_objext
12767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12768 (eval $ac_compile) 2>conftest.er1
12770 grep -v '^ *+' conftest.er1
>conftest.err
12772 cat conftest.err
>&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } &&
12775 { ac_try
='test -z "$ac_c_werror_flag"
12776 || test ! -s conftest.err'
12777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12778 (eval $ac_try) 2>&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; } &&
12782 { ac_try
='test -s conftest.$ac_objext'
12783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12784 (eval $ac_try) 2>&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); }; }; then
12788 eval "$as_ac_Header=yes"
12790 echo "$as_me: failed program was:" >&5
12791 sed 's/^/| /' conftest.
$ac_ext >&5
12793 eval "$as_ac_Header=no"
12795 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12800 cat >>confdefs.h
<<_ACEOF
12801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12809 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12810 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12811 # think that we don't have <curses.h> if we're using GCC.
12814 if test "$GCC" = yes; then
12816 cat >>confdefs.h
<<\_ACEOF
12817 #define _MSE_INT_H 1
12827 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
12829 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12831 echo "$as_me:$LINENO: checking for $ac_header" >&5
12832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12839 # Is the header compilable?
12840 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12842 cat >conftest.
$ac_ext <<_ACEOF
12845 cat confdefs.h
>>conftest.
$ac_ext
12846 cat >>conftest.
$ac_ext <<_ACEOF
12847 /* end confdefs.h. */
12848 $ac_includes_default
12849 #include <$ac_header>
12851 rm -f conftest.
$ac_objext
12852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12853 (eval $ac_compile) 2>conftest.er1
12855 grep -v '^ *+' conftest.er1
>conftest.err
12857 cat conftest.err
>&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } &&
12860 { ac_try
='test -z "$ac_c_werror_flag"
12861 || test ! -s conftest.err'
12862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863 (eval $ac_try) 2>&5
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; } &&
12867 { ac_try
='test -s conftest.$ac_objext'
12868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869 (eval $ac_try) 2>&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; }; then
12873 ac_header_compiler
=yes
12875 echo "$as_me: failed program was:" >&5
12876 sed 's/^/| /' conftest.
$ac_ext >&5
12878 ac_header_compiler
=no
12880 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12881 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12882 echo "${ECHO_T}$ac_header_compiler" >&6
12884 # Is the header present?
12885 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12887 cat >conftest.
$ac_ext <<_ACEOF
12890 cat confdefs.h
>>conftest.
$ac_ext
12891 cat >>conftest.
$ac_ext <<_ACEOF
12892 /* end confdefs.h. */
12893 #include <$ac_header>
12895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12896 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12898 grep -v '^ *+' conftest.er1
>conftest.err
12900 cat conftest.err
>&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } >/dev
/null
; then
12903 if test -s conftest.err
; then
12904 ac_cpp_err
=$ac_c_preproc_warn_flag
12905 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12912 if test -z "$ac_cpp_err"; then
12913 ac_header_preproc
=yes
12915 echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.
$ac_ext >&5
12918 ac_header_preproc
=no
12920 rm -f conftest.err conftest.
$ac_ext
12921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12922 echo "${ECHO_T}$ac_header_preproc" >&6
12924 # So? What about this header?
12925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12931 ac_header_preproc
=yes
12934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12938 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12940 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12941 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12944 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12948 ## ------------------------------------------ ##
12949 ## Report this to the AC_PACKAGE_NAME lists. ##
12950 ## ------------------------------------------ ##
12953 sed "s/^/$as_me: WARNING: /" >&2
12956 echo "$as_me:$LINENO: checking for $ac_header" >&5
12957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12961 eval "$as_ac_Header=\$ac_header_preproc"
12963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12968 cat >>confdefs.h
<<_ACEOF
12969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12977 for ac_header
in term.h
12979 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12980 echo "$as_me:$LINENO: checking for $ac_header" >&5
12981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12983 echo $ECHO_N "(cached) $ECHO_C" >&6
12985 cat >conftest.
$ac_ext <<_ACEOF
12988 cat confdefs.h
>>conftest.
$ac_ext
12989 cat >>conftest.
$ac_ext <<_ACEOF
12990 /* end confdefs.h. */
12992 # include <curses.h>
12996 #include <$ac_header>
12998 rm -f conftest.
$ac_objext
12999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13000 (eval $ac_compile) 2>conftest.er1
13002 grep -v '^ *+' conftest.er1
>conftest.err
13004 cat conftest.err
>&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); } &&
13007 { ac_try
='test -z "$ac_c_werror_flag"
13008 || test ! -s conftest.err'
13009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010 (eval $ac_try) 2>&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; } &&
13014 { ac_try
='test -s conftest.$ac_objext'
13015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; }; then
13020 eval "$as_ac_Header=yes"
13022 echo "$as_me: failed program was:" >&5
13023 sed 's/^/| /' conftest.
$ac_ext >&5
13025 eval "$as_ac_Header=no"
13027 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13032 cat >>confdefs.h
<<_ACEOF
13033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13041 # ------------------------- #
13042 # Checks for declarations. #
13043 # ------------------------- #
13045 echo "$as_me:$LINENO: checking whether free is declared" >&5
13046 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
13047 if test "${ac_cv_have_decl_free+set}" = set; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13050 cat >conftest.
$ac_ext <<_ACEOF
13053 cat confdefs.h
>>conftest.
$ac_ext
13054 cat >>conftest.
$ac_ext <<_ACEOF
13055 /* end confdefs.h. */
13056 $ac_includes_default
13061 char *p = (char *) free;
13068 rm -f conftest.
$ac_objext
13069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13070 (eval $ac_compile) 2>conftest.er1
13072 grep -v '^ *+' conftest.er1
>conftest.err
13074 cat conftest.err
>&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); } &&
13077 { ac_try
='test -z "$ac_c_werror_flag"
13078 || test ! -s conftest.err'
13079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080 (eval $ac_try) 2>&5
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; } &&
13084 { ac_try
='test -s conftest.$ac_objext'
13085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13086 (eval $ac_try) 2>&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); }; }; then
13090 ac_cv_have_decl_free
=yes
13092 echo "$as_me: failed program was:" >&5
13093 sed 's/^/| /' conftest.
$ac_ext >&5
13095 ac_cv_have_decl_free
=no
13097 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13099 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
13100 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
13101 if test $ac_cv_have_decl_free = yes; then
13103 cat >>confdefs.h
<<_ACEOF
13104 #define HAVE_DECL_FREE 1
13109 cat >>confdefs.h
<<_ACEOF
13110 #define HAVE_DECL_FREE 0
13115 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13116 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13117 if test "${ac_cv_have_decl_malloc+set}" = set; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13120 cat >conftest.
$ac_ext <<_ACEOF
13123 cat confdefs.h
>>conftest.
$ac_ext
13124 cat >>conftest.
$ac_ext <<_ACEOF
13125 /* end confdefs.h. */
13126 $ac_includes_default
13131 char *p = (char *) malloc;
13138 rm -f conftest.
$ac_objext
13139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13140 (eval $ac_compile) 2>conftest.er1
13142 grep -v '^ *+' conftest.er1
>conftest.err
13144 cat conftest.err
>&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } &&
13147 { ac_try
='test -z "$ac_c_werror_flag"
13148 || test ! -s conftest.err'
13149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150 (eval $ac_try) 2>&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; } &&
13154 { ac_try
='test -s conftest.$ac_objext'
13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
13160 ac_cv_have_decl_malloc
=yes
13162 echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.
$ac_ext >&5
13165 ac_cv_have_decl_malloc
=no
13167 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13169 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13170 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13171 if test $ac_cv_have_decl_malloc = yes; then
13173 cat >>confdefs.h
<<_ACEOF
13174 #define HAVE_DECL_MALLOC 1
13179 cat >>confdefs.h
<<_ACEOF
13180 #define HAVE_DECL_MALLOC 0
13185 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13186 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13187 if test "${ac_cv_have_decl_realloc+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13190 cat >conftest.
$ac_ext <<_ACEOF
13193 cat confdefs.h
>>conftest.
$ac_ext
13194 cat >>conftest.
$ac_ext <<_ACEOF
13195 /* end confdefs.h. */
13196 $ac_includes_default
13201 char *p = (char *) realloc;
13208 rm -f conftest.
$ac_objext
13209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13210 (eval $ac_compile) 2>conftest.er1
13212 grep -v '^ *+' conftest.er1
>conftest.err
13214 cat conftest.err
>&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } &&
13217 { ac_try
='test -z "$ac_c_werror_flag"
13218 || test ! -s conftest.err'
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; } &&
13224 { ac_try
='test -s conftest.$ac_objext'
13225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13226 (eval $ac_try) 2>&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13230 ac_cv_have_decl_realloc
=yes
13232 echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.
$ac_ext >&5
13235 ac_cv_have_decl_realloc
=no
13237 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13239 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13240 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13241 if test $ac_cv_have_decl_realloc = yes; then
13243 cat >>confdefs.h
<<_ACEOF
13244 #define HAVE_DECL_REALLOC 1
13249 cat >>confdefs.h
<<_ACEOF
13250 #define HAVE_DECL_REALLOC 0
13255 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13256 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13257 if test "${ac_cv_have_decl_strerror+set}" = set; then
13258 echo $ECHO_N "(cached) $ECHO_C" >&6
13260 cat >conftest.
$ac_ext <<_ACEOF
13263 cat confdefs.h
>>conftest.
$ac_ext
13264 cat >>conftest.
$ac_ext <<_ACEOF
13265 /* end confdefs.h. */
13266 $ac_includes_default
13271 char *p = (char *) strerror;
13278 rm -f conftest.
$ac_objext
13279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13280 (eval $ac_compile) 2>conftest.er1
13282 grep -v '^ *+' conftest.er1
>conftest.err
13284 cat conftest.err
>&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } &&
13287 { ac_try
='test -z "$ac_c_werror_flag"
13288 || test ! -s conftest.err'
13289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13290 (eval $ac_try) 2>&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); }; } &&
13294 { ac_try
='test -s conftest.$ac_objext'
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; }; then
13300 ac_cv_have_decl_strerror
=yes
13302 echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.
$ac_ext >&5
13305 ac_cv_have_decl_strerror
=no
13307 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13309 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13310 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13311 if test $ac_cv_have_decl_strerror = yes; then
13313 cat >>confdefs.h
<<_ACEOF
13314 #define HAVE_DECL_STRERROR 1
13319 cat >>confdefs.h
<<_ACEOF
13320 #define HAVE_DECL_STRERROR 0
13325 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13326 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13327 if test "${ac_cv_have_decl_strstr+set}" = set; then
13328 echo $ECHO_N "(cached) $ECHO_C" >&6
13330 cat >conftest.
$ac_ext <<_ACEOF
13333 cat confdefs.h
>>conftest.
$ac_ext
13334 cat >>conftest.
$ac_ext <<_ACEOF
13335 /* end confdefs.h. */
13336 $ac_includes_default
13341 char *p = (char *) strstr;
13348 rm -f conftest.
$ac_objext
13349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13350 (eval $ac_compile) 2>conftest.er1
13352 grep -v '^ *+' conftest.er1
>conftest.err
13354 cat conftest.err
>&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } &&
13357 { ac_try
='test -z "$ac_c_werror_flag"
13358 || test ! -s conftest.err'
13359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360 (eval $ac_try) 2>&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; } &&
13364 { ac_try
='test -s conftest.$ac_objext'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; }; then
13370 ac_cv_have_decl_strstr
=yes
13372 echo "$as_me: failed program was:" >&5
13373 sed 's/^/| /' conftest.
$ac_ext >&5
13375 ac_cv_have_decl_strstr
=no
13377 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13379 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13380 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13381 if test $ac_cv_have_decl_strstr = yes; then
13383 cat >>confdefs.h
<<_ACEOF
13384 #define HAVE_DECL_STRSTR 1
13389 cat >>confdefs.h
<<_ACEOF
13390 #define HAVE_DECL_STRSTR 0
13395 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13396 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13397 if test "${ac_cv_have_decl_getopt+set}" = set; then
13398 echo $ECHO_N "(cached) $ECHO_C" >&6
13400 cat >conftest.
$ac_ext <<_ACEOF
13403 cat confdefs.h
>>conftest.
$ac_ext
13404 cat >>conftest.
$ac_ext <<_ACEOF
13405 /* end confdefs.h. */
13406 $ac_includes_default
13411 char *p = (char *) getopt;
13418 rm -f conftest.
$ac_objext
13419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13420 (eval $ac_compile) 2>conftest.er1
13422 grep -v '^ *+' conftest.er1
>conftest.err
13424 cat conftest.err
>&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } &&
13427 { ac_try
='test -z "$ac_c_werror_flag"
13428 || test ! -s conftest.err'
13429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430 (eval $ac_try) 2>&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; } &&
13434 { ac_try
='test -s conftest.$ac_objext'
13435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436 (eval $ac_try) 2>&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); }; }; then
13440 ac_cv_have_decl_getopt
=yes
13442 echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.
$ac_ext >&5
13445 ac_cv_have_decl_getopt
=no
13447 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13449 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13450 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13451 if test $ac_cv_have_decl_getopt = yes; then
13453 cat >>confdefs.h
<<_ACEOF
13454 #define HAVE_DECL_GETOPT 1
13459 cat >>confdefs.h
<<_ACEOF
13460 #define HAVE_DECL_GETOPT 0
13465 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13466 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13467 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
13470 cat >conftest.
$ac_ext <<_ACEOF
13473 cat confdefs.h
>>conftest.
$ac_ext
13474 cat >>conftest.
$ac_ext <<_ACEOF
13475 /* end confdefs.h. */
13476 $ac_includes_default
13481 char *p = (char *) snprintf;
13488 rm -f conftest.
$ac_objext
13489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13490 (eval $ac_compile) 2>conftest.er1
13492 grep -v '^ *+' conftest.er1
>conftest.err
13494 cat conftest.err
>&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); } &&
13497 { ac_try
='test -z "$ac_c_werror_flag"
13498 || test ! -s conftest.err'
13499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13500 (eval $ac_try) 2>&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); }; } &&
13504 { ac_try
='test -s conftest.$ac_objext'
13505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506 (eval $ac_try) 2>&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; }; then
13510 ac_cv_have_decl_snprintf
=yes
13512 echo "$as_me: failed program was:" >&5
13513 sed 's/^/| /' conftest.
$ac_ext >&5
13515 ac_cv_have_decl_snprintf
=no
13517 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13519 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13520 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13521 if test $ac_cv_have_decl_snprintf = yes; then
13523 cat >>confdefs.h
<<_ACEOF
13524 #define HAVE_DECL_SNPRINTF 1
13529 cat >>confdefs.h
<<_ACEOF
13530 #define HAVE_DECL_SNPRINTF 0
13535 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13536 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13537 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 cat >conftest.
$ac_ext <<_ACEOF
13543 cat confdefs.h
>>conftest.
$ac_ext
13544 cat >>conftest.
$ac_ext <<_ACEOF
13545 /* end confdefs.h. */
13546 $ac_includes_default
13551 char *p = (char *) vsnprintf;
13558 rm -f conftest.
$ac_objext
13559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13560 (eval $ac_compile) 2>conftest.er1
13562 grep -v '^ *+' conftest.er1
>conftest.err
13564 cat conftest.err
>&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } &&
13567 { ac_try
='test -z "$ac_c_werror_flag"
13568 || test ! -s conftest.err'
13569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570 (eval $ac_try) 2>&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; } &&
13574 { ac_try
='test -s conftest.$ac_objext'
13575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576 (eval $ac_try) 2>&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; }; then
13580 ac_cv_have_decl_vsnprintf
=yes
13582 echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.
$ac_ext >&5
13585 ac_cv_have_decl_vsnprintf
=no
13587 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13589 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13590 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13591 if test $ac_cv_have_decl_vsnprintf = yes; then
13593 cat >>confdefs.h
<<_ACEOF
13594 #define HAVE_DECL_VSNPRINTF 1
13599 cat >>confdefs.h
<<_ACEOF
13600 #define HAVE_DECL_VSNPRINTF 0
13608 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13609 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13610 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13613 cat >conftest.
$ac_ext <<_ACEOF
13616 cat confdefs.h
>>conftest.
$ac_ext
13617 cat >>conftest.
$ac_ext <<_ACEOF
13618 /* end confdefs.h. */
13619 #include <locale.h>
13628 rm -f conftest.
$ac_objext conftest
$ac_exeext
13629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13630 (eval $ac_link) 2>conftest.er1
13632 grep -v '^ *+' conftest.er1
>conftest.err
13634 cat conftest.err
>&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } &&
13637 { ac_try
='test -z "$ac_c_werror_flag"
13638 || test ! -s conftest.err'
13639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640 (eval $ac_try) 2>&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; } &&
13644 { ac_try
='test -s conftest$ac_exeext'
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; }; then
13650 am_cv_val_LC_MESSAGES
=yes
13652 echo "$as_me: failed program was:" >&5
13653 sed 's/^/| /' conftest.
$ac_ext >&5
13655 am_cv_val_LC_MESSAGES
=no
13657 rm -f conftest.err conftest.
$ac_objext \
13658 conftest
$ac_exeext conftest.
$ac_ext
13660 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13661 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13662 if test $am_cv_val_LC_MESSAGES = yes; then
13664 cat >>confdefs.h
<<\_ACEOF
13665 #define HAVE_LC_MESSAGES 1
13671 # ----------------------- #
13672 # Checks for structures. #
13673 # ----------------------- #
13675 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13676 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13677 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13680 cat >conftest.
$ac_ext <<_ACEOF
13683 cat confdefs.h
>>conftest.
$ac_ext
13684 cat >>conftest.
$ac_ext <<_ACEOF
13685 /* end confdefs.h. */
13686 $ac_includes_default
13690 static struct stat ac_aggr;
13691 if (ac_aggr.st_blocks)
13697 rm -f conftest.
$ac_objext
13698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13699 (eval $ac_compile) 2>conftest.er1
13701 grep -v '^ *+' conftest.er1
>conftest.err
13703 cat conftest.err
>&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } &&
13706 { ac_try
='test -z "$ac_c_werror_flag"
13707 || test ! -s conftest.err'
13708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709 (eval $ac_try) 2>&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; } &&
13713 { ac_try
='test -s conftest.$ac_objext'
13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; }; then
13719 ac_cv_member_struct_stat_st_blocks
=yes
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.
$ac_ext >&5
13724 cat >conftest.
$ac_ext <<_ACEOF
13727 cat confdefs.h
>>conftest.
$ac_ext
13728 cat >>conftest.
$ac_ext <<_ACEOF
13729 /* end confdefs.h. */
13730 $ac_includes_default
13734 static struct stat ac_aggr;
13735 if (sizeof ac_aggr.st_blocks)
13741 rm -f conftest.
$ac_objext
13742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13743 (eval $ac_compile) 2>conftest.er1
13745 grep -v '^ *+' conftest.er1
>conftest.err
13747 cat conftest.err
>&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); } &&
13750 { ac_try
='test -z "$ac_c_werror_flag"
13751 || test ! -s conftest.err'
13752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 (eval $ac_try) 2>&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; } &&
13757 { ac_try
='test -s conftest.$ac_objext'
13758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759 (eval $ac_try) 2>&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; }; then
13763 ac_cv_member_struct_stat_st_blocks
=yes
13765 echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.
$ac_ext >&5
13768 ac_cv_member_struct_stat_st_blocks
=no
13770 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13772 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13774 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13775 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13776 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13778 cat >>confdefs.h
<<_ACEOF
13779 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13784 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13785 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13786 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13787 echo $ECHO_N "(cached) $ECHO_C" >&6
13789 cat >conftest.
$ac_ext <<_ACEOF
13792 cat confdefs.h
>>conftest.
$ac_ext
13793 cat >>conftest.
$ac_ext <<_ACEOF
13794 /* end confdefs.h. */
13795 $ac_includes_default
13799 static struct stat ac_aggr;
13800 if (ac_aggr.st_blksize)
13806 rm -f conftest.
$ac_objext
13807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13808 (eval $ac_compile) 2>conftest.er1
13810 grep -v '^ *+' conftest.er1
>conftest.err
13812 cat conftest.err
>&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } &&
13815 { ac_try
='test -z "$ac_c_werror_flag"
13816 || test ! -s conftest.err'
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; } &&
13822 { ac_try
='test -s conftest.$ac_objext'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
13828 ac_cv_member_struct_stat_st_blksize
=yes
13830 echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.
$ac_ext >&5
13833 cat >conftest.
$ac_ext <<_ACEOF
13836 cat confdefs.h
>>conftest.
$ac_ext
13837 cat >>conftest.
$ac_ext <<_ACEOF
13838 /* end confdefs.h. */
13839 $ac_includes_default
13843 static struct stat ac_aggr;
13844 if (sizeof ac_aggr.st_blksize)
13850 rm -f conftest.
$ac_objext
13851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13852 (eval $ac_compile) 2>conftest.er1
13854 grep -v '^ *+' conftest.er1
>conftest.err
13856 cat conftest.err
>&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); } &&
13859 { ac_try
='test -z "$ac_c_werror_flag"
13860 || test ! -s conftest.err'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; } &&
13866 { ac_try
='test -s conftest.$ac_objext'
13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; }; then
13872 ac_cv_member_struct_stat_st_blksize
=yes
13874 echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.
$ac_ext >&5
13877 ac_cv_member_struct_stat_st_blksize
=no
13879 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13881 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13883 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13884 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13885 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13887 cat >>confdefs.h
<<_ACEOF
13888 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13895 # ------------------ #
13896 # Checks for types. #
13897 # ------------------ #
13899 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13900 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13901 if test "${ac_cv_type_signal+set}" = set; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 cat >conftest.
$ac_ext <<_ACEOF
13907 cat confdefs.h
>>conftest.
$ac_ext
13908 cat >>conftest.
$ac_ext <<_ACEOF
13909 /* end confdefs.h. */
13910 #include <sys/types.h>
13911 #include <signal.h>
13916 extern "C" void (*signal (int, void (*)(int)))(int);
13918 void (*signal ()) ();
13929 rm -f conftest.
$ac_objext
13930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13931 (eval $ac_compile) 2>conftest.er1
13933 grep -v '^ *+' conftest.er1
>conftest.err
13935 cat conftest.err
>&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } &&
13938 { ac_try
='test -z "$ac_c_werror_flag"
13939 || test ! -s conftest.err'
13940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941 (eval $ac_try) 2>&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; } &&
13945 { ac_try
='test -s conftest.$ac_objext'
13946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947 (eval $ac_try) 2>&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); }; }; then
13951 ac_cv_type_signal
=void
13953 echo "$as_me: failed program was:" >&5
13954 sed 's/^/| /' conftest.
$ac_ext >&5
13956 ac_cv_type_signal
=int
13958 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13960 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13961 echo "${ECHO_T}$ac_cv_type_signal" >&6
13963 cat >>confdefs.h
<<_ACEOF
13964 #define RETSIGTYPE $ac_cv_type_signal
13968 echo "$as_me:$LINENO: checking for socklen_t" >&5
13969 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13970 if test "${ac_cv_type_socklen_t+set}" = set; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13973 cat >conftest.
$ac_ext <<_ACEOF
13976 cat confdefs.h
>>conftest.
$ac_ext
13977 cat >>conftest.
$ac_ext <<_ACEOF
13978 /* end confdefs.h. */
13979 #include <sys/types.h>
13980 #include <sys/socket.h>
13986 if ((socklen_t *) 0)
13988 if (sizeof (socklen_t))
13994 rm -f conftest.
$ac_objext
13995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13996 (eval $ac_compile) 2>conftest.er1
13998 grep -v '^ *+' conftest.er1
>conftest.err
14000 cat conftest.err
>&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } &&
14003 { ac_try
='test -z "$ac_c_werror_flag"
14004 || test ! -s conftest.err'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; } &&
14010 { ac_try
='test -s conftest.$ac_objext'
14011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012 (eval $ac_try) 2>&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; }; then
14016 ac_cv_type_socklen_t
=yes
14018 echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.
$ac_ext >&5
14021 ac_cv_type_socklen_t
=no
14023 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14025 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
14026 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
14027 if test $ac_cv_type_socklen_t = yes; then
14029 cat >>confdefs.h
<<_ACEOF
14030 #define HAVE_SOCKLEN_T 1
14037 # ------------------------------------- #
14038 # Checks for compiler characteristics. #
14039 # ------------------------------------- #
14041 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14042 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14043 if test "${ac_cv_c_const+set}" = set; then
14044 echo $ECHO_N "(cached) $ECHO_C" >&6
14046 cat >conftest.
$ac_ext <<_ACEOF
14049 cat confdefs.h
>>conftest.
$ac_ext
14050 cat >>conftest.
$ac_ext <<_ACEOF
14051 /* end confdefs.h. */
14056 /* FIXME: Include the comments suggested by Paul. */
14057 #ifndef __cplusplus
14058 /* Ultrix mips cc rejects this. */
14059 typedef int charset[2];
14061 /* SunOS 4.1.1 cc rejects this. */
14062 char const *const *ccp;
14064 /* NEC SVR4.0.2 mips cc rejects this. */
14065 struct point {int x, y;};
14066 static struct point const zero = {0,0};
14067 /* AIX XL C 1.02.0.0 rejects this.
14068 It does not let you subtract one const X* pointer from another in
14069 an arm of an if-expression whose if-part is not a constant
14071 const char *g = "string";
14072 ccp = &g + (g ? g-g : 0);
14073 /* HPUX 7.0 cc rejects these. */
14076 ccp = (char const *const *) p;
14077 { /* SCO 3.2v4 cc rejects this. */
14079 char const *s = 0 ? (char *) 0 : (char const *) 0;
14083 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14084 int x[] = {25, 17};
14085 const int *foo = &x[0];
14088 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14089 typedef const int *iptr;
14093 { /* AIX XL C 1.02.0.0 rejects this saying
14094 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14095 struct s { int j; const int *ap[3]; };
14096 struct s *b; b->j = 5;
14098 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14099 const int foo = 10;
14107 rm -f conftest.
$ac_objext
14108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14109 (eval $ac_compile) 2>conftest.er1
14111 grep -v '^ *+' conftest.er1
>conftest.err
14113 cat conftest.err
>&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); } &&
14116 { ac_try
='test -z "$ac_c_werror_flag"
14117 || test ! -s conftest.err'
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; } &&
14123 { ac_try
='test -s conftest.$ac_objext'
14124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125 (eval $ac_try) 2>&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); }; }; then
14131 echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.
$ac_ext >&5
14136 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14138 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14139 echo "${ECHO_T}$ac_cv_c_const" >&6
14140 if test $ac_cv_c_const = no
; then
14142 cat >>confdefs.h
<<\_ACEOF
14148 echo "$as_me:$LINENO: checking for inline" >&5
14149 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14150 if test "${ac_cv_c_inline+set}" = set; then
14151 echo $ECHO_N "(cached) $ECHO_C" >&6
14154 for ac_kw
in inline __inline__ __inline
; do
14155 cat >conftest.
$ac_ext <<_ACEOF
14158 cat confdefs.h
>>conftest.
$ac_ext
14159 cat >>conftest.
$ac_ext <<_ACEOF
14160 /* end confdefs.h. */
14161 #ifndef __cplusplus
14163 static $ac_kw foo_t static_foo () {return 0; }
14164 $ac_kw foo_t foo () {return 0; }
14168 rm -f conftest.
$ac_objext
14169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14170 (eval $ac_compile) 2>conftest.er1
14172 grep -v '^ *+' conftest.er1
>conftest.err
14174 cat conftest.err
>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
14177 { ac_try
='test -z "$ac_c_werror_flag"
14178 || test ! -s conftest.err'
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; } &&
14184 { ac_try
='test -s conftest.$ac_objext'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14190 ac_cv_c_inline
=$ac_kw; break
14192 echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.
$ac_ext >&5
14196 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14200 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14201 echo "${ECHO_T}$ac_cv_c_inline" >&6
14204 case $ac_cv_c_inline in
14207 case $ac_cv_c_inline in
14209 *) ac_val
=$ac_cv_c_inline;;
14211 cat >>confdefs.h
<<_ACEOF
14212 #ifndef __cplusplus
14213 #define inline $ac_val
14219 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14220 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14221 if test "${ac_cv_c_bigendian+set}" = set; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 # See if sys/param.h defines the BYTE_ORDER macro.
14225 cat >conftest.
$ac_ext <<_ACEOF
14228 cat confdefs.h
>>conftest.
$ac_ext
14229 cat >>conftest.
$ac_ext <<_ACEOF
14230 /* end confdefs.h. */
14231 #include <sys/types.h>
14232 #include <sys/param.h>
14237 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14238 bogus endian macros
14245 rm -f conftest.
$ac_objext
14246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14247 (eval $ac_compile) 2>conftest.er1
14249 grep -v '^ *+' conftest.er1
>conftest.err
14251 cat conftest.err
>&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); } &&
14254 { ac_try
='test -z "$ac_c_werror_flag"
14255 || test ! -s conftest.err'
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; } &&
14261 { ac_try
='test -s conftest.$ac_objext'
14262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14263 (eval $ac_try) 2>&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); }; }; then
14267 # It does; now see whether it defined to BIG_ENDIAN or not.
14268 cat >conftest.
$ac_ext <<_ACEOF
14271 cat confdefs.h
>>conftest.
$ac_ext
14272 cat >>conftest.
$ac_ext <<_ACEOF
14273 /* end confdefs.h. */
14274 #include <sys/types.h>
14275 #include <sys/param.h>
14280 #if BYTE_ORDER != BIG_ENDIAN
14288 rm -f conftest.
$ac_objext
14289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14290 (eval $ac_compile) 2>conftest.er1
14292 grep -v '^ *+' conftest.er1
>conftest.err
14294 cat conftest.err
>&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } &&
14297 { ac_try
='test -z "$ac_c_werror_flag"
14298 || test ! -s conftest.err'
14299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14300 (eval $ac_try) 2>&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); }; } &&
14304 { ac_try
='test -s conftest.$ac_objext'
14305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306 (eval $ac_try) 2>&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; }; then
14310 ac_cv_c_bigendian
=yes
14312 echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.
$ac_ext >&5
14315 ac_cv_c_bigendian
=no
14317 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14319 echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.
$ac_ext >&5
14322 # It does not; compile a test program.
14323 if test "$cross_compiling" = yes; then
14324 # try to guess the endianness by grepping values into an object file
14325 ac_cv_c_bigendian
=unknown
14326 cat >conftest.
$ac_ext <<_ACEOF
14329 cat confdefs.h
>>conftest.
$ac_ext
14330 cat >>conftest.
$ac_ext <<_ACEOF
14331 /* end confdefs.h. */
14332 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14333 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14334 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14335 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14336 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14337 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14341 _ascii (); _ebcdic ();
14346 rm -f conftest.
$ac_objext
14347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14348 (eval $ac_compile) 2>conftest.er1
14350 grep -v '^ *+' conftest.er1
>conftest.err
14352 cat conftest.err
>&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); } &&
14355 { ac_try
='test -z "$ac_c_werror_flag"
14356 || test ! -s conftest.err'
14357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358 (eval $ac_try) 2>&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; } &&
14362 { ac_try
='test -s conftest.$ac_objext'
14363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364 (eval $ac_try) 2>&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); }; }; then
14368 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
14369 ac_cv_c_bigendian
=yes
14371 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
14372 if test "$ac_cv_c_bigendian" = unknown
; then
14373 ac_cv_c_bigendian
=no
14375 # finding both strings is unlikely to happen, but who knows?
14376 ac_cv_c_bigendian
=unknown
14380 echo "$as_me: failed program was:" >&5
14381 sed 's/^/| /' conftest.
$ac_ext >&5
14384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14386 cat >conftest.
$ac_ext <<_ACEOF
14389 cat confdefs.h
>>conftest.
$ac_ext
14390 cat >>conftest.
$ac_ext <<_ACEOF
14391 /* end confdefs.h. */
14395 /* Are we little or big endian? From Harbison&Steele. */
14399 char c[sizeof (long)];
14402 exit (u.c[sizeof (long) - 1] == 1);
14405 rm -f conftest
$ac_exeext
14406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14407 (eval $ac_link) 2>&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412 (eval $ac_try) 2>&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; }; then
14416 ac_cv_c_bigendian
=no
14418 echo "$as_me: program exited with status $ac_status" >&5
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.
$ac_ext >&5
14422 ( exit $ac_status )
14423 ac_cv_c_bigendian
=yes
14425 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14428 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14430 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14431 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14432 case $ac_cv_c_bigendian in
14435 cat >>confdefs.h
<<\_ACEOF
14436 #define WORDS_BIGENDIAN 1
14442 { { echo "$as_me:$LINENO: error: unknown endianness
14443 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14444 echo "$as_me: error: unknown endianness
14445 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14446 { (exit 1); exit 1; }; } ;;
14450 # ------------------------------ #
14451 # Checks for library functions. #
14452 # ------------------------------ #
14454 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14455 # for constant arguments. Useless!
14456 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14457 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14458 if test "${ac_cv_working_alloca_h+set}" = set; then
14459 echo $ECHO_N "(cached) $ECHO_C" >&6
14461 cat >conftest.
$ac_ext <<_ACEOF
14464 cat confdefs.h
>>conftest.
$ac_ext
14465 cat >>conftest.
$ac_ext <<_ACEOF
14466 /* end confdefs.h. */
14467 #include <alloca.h>
14471 char *p = (char *) alloca (2 * sizeof (int));
14476 rm -f conftest.
$ac_objext conftest
$ac_exeext
14477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14478 (eval $ac_link) 2>conftest.er1
14480 grep -v '^ *+' conftest.er1
>conftest.err
14482 cat conftest.err
>&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } &&
14485 { ac_try
='test -z "$ac_c_werror_flag"
14486 || test ! -s conftest.err'
14487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488 (eval $ac_try) 2>&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); }; } &&
14492 { ac_try
='test -s conftest$ac_exeext'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
14498 ac_cv_working_alloca_h
=yes
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.
$ac_ext >&5
14503 ac_cv_working_alloca_h
=no
14505 rm -f conftest.err conftest.
$ac_objext \
14506 conftest
$ac_exeext conftest.
$ac_ext
14508 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14509 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14510 if test $ac_cv_working_alloca_h = yes; then
14512 cat >>confdefs.h
<<\_ACEOF
14513 #define HAVE_ALLOCA_H 1
14518 echo "$as_me:$LINENO: checking for alloca" >&5
14519 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14520 if test "${ac_cv_func_alloca_works+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14523 cat >conftest.
$ac_ext <<_ACEOF
14526 cat confdefs.h
>>conftest.
$ac_ext
14527 cat >>conftest.
$ac_ext <<_ACEOF
14528 /* end confdefs.h. */
14530 # define alloca __builtin_alloca
14533 # include <malloc.h>
14534 # define alloca _alloca
14537 # include <alloca.h>
14542 # ifndef alloca /* predefined by HP cc +Olibcalls */
14553 char *p = (char *) alloca (1);
14558 rm -f conftest.
$ac_objext conftest
$ac_exeext
14559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14560 (eval $ac_link) 2>conftest.er1
14562 grep -v '^ *+' conftest.er1
>conftest.err
14564 cat conftest.err
>&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
14567 { ac_try
='test -z "$ac_c_werror_flag"
14568 || test ! -s conftest.err'
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; } &&
14574 { ac_try
='test -s conftest$ac_exeext'
14575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576 (eval $ac_try) 2>&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; }; then
14580 ac_cv_func_alloca_works
=yes
14582 echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.
$ac_ext >&5
14585 ac_cv_func_alloca_works
=no
14587 rm -f conftest.err conftest.
$ac_objext \
14588 conftest
$ac_exeext conftest.
$ac_ext
14590 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14591 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14593 if test $ac_cv_func_alloca_works = yes; then
14595 cat >>confdefs.h
<<\_ACEOF
14596 #define HAVE_ALLOCA 1
14600 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14601 # that cause trouble. Some versions do not even contain alloca or
14602 # contain a buggy version. If you still want to use their alloca,
14603 # use ar to extract alloca.o from them instead of compiling alloca.c.
14605 ALLOCA
=alloca.
$ac_objext
14607 cat >>confdefs.h
<<\_ACEOF
14612 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14613 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14614 if test "${ac_cv_os_cray+set}" = set; then
14615 echo $ECHO_N "(cached) $ECHO_C" >&6
14617 cat >conftest.
$ac_ext <<_ACEOF
14620 cat confdefs.h
>>conftest.
$ac_ext
14621 cat >>conftest.
$ac_ext <<_ACEOF
14622 /* end confdefs.h. */
14623 #if defined(CRAY) && ! defined(CRAY2)
14630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14631 $EGREP "webecray" >/dev
/null
2>&1; then
14639 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14640 echo "${ECHO_T}$ac_cv_os_cray" >&6
14641 if test $ac_cv_os_cray = yes; then
14642 for ac_func
in _getb67 GETB67 getb67
; do
14643 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14644 echo "$as_me:$LINENO: checking for $ac_func" >&5
14645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14646 if eval "test \"\${$as_ac_var+set}\" = set"; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14649 cat >conftest.
$ac_ext <<_ACEOF
14652 cat confdefs.h
>>conftest.
$ac_ext
14653 cat >>conftest.
$ac_ext <<_ACEOF
14654 /* end confdefs.h. */
14655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14657 #define $ac_func innocuous_$ac_func
14659 /* System header to define __stub macros and hopefully few prototypes,
14660 which can conflict with char $ac_func (); below.
14661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14662 <limits.h> exists even on freestanding compilers. */
14665 # include <limits.h>
14667 # include <assert.h>
14672 /* Override any gcc2 internal prototype to avoid an error. */
14677 /* We use char because int might match the return type of a gcc2
14678 builtin and then its argument prototype would still apply. */
14680 /* The GNU C library defines this for functions which it implements
14681 to always fail with ENOSYS. Some functions are actually named
14682 something starting with __ and the normal name is an alias. */
14683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14686 char (*f) () = $ac_func;
14695 return f != $ac_func;
14700 rm -f conftest.
$ac_objext conftest
$ac_exeext
14701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14702 (eval $ac_link) 2>conftest.er1
14704 grep -v '^ *+' conftest.er1
>conftest.err
14706 cat conftest.err
>&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } &&
14709 { ac_try
='test -z "$ac_c_werror_flag"
14710 || test ! -s conftest.err'
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; } &&
14716 { ac_try
='test -s conftest$ac_exeext'
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; }; then
14722 eval "$as_ac_var=yes"
14724 echo "$as_me: failed program was:" >&5
14725 sed 's/^/| /' conftest.
$ac_ext >&5
14727 eval "$as_ac_var=no"
14729 rm -f conftest.err conftest.
$ac_objext \
14730 conftest
$ac_exeext conftest.
$ac_ext
14732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14734 if test `eval echo '${'$as_ac_var'}'` = yes; then
14736 cat >>confdefs.h
<<_ACEOF
14737 #define CRAY_STACKSEG_END $ac_func
14746 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14747 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14748 if test "${ac_cv_c_stack_direction+set}" = set; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14751 if test "$cross_compiling" = yes; then
14752 ac_cv_c_stack_direction
=0
14754 cat >conftest.
$ac_ext <<_ACEOF
14757 cat confdefs.h
>>conftest.
$ac_ext
14758 cat >>conftest.
$ac_ext <<_ACEOF
14759 /* end confdefs.h. */
14761 find_stack_direction ()
14763 static char *addr = 0;
14768 return find_stack_direction ();
14771 return (&dummy > addr) ? 1 : -1;
14777 exit (find_stack_direction () < 0);
14780 rm -f conftest
$ac_exeext
14781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14782 (eval $ac_link) 2>&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; }; then
14791 ac_cv_c_stack_direction
=1
14793 echo "$as_me: program exited with status $ac_status" >&5
14794 echo "$as_me: failed program was:" >&5
14795 sed 's/^/| /' conftest.
$ac_ext >&5
14797 ( exit $ac_status )
14798 ac_cv_c_stack_direction
=-1
14800 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14803 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14804 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14806 cat >>confdefs.h
<<_ACEOF
14807 #define STACK_DIRECTION $ac_cv_c_stack_direction
14815 for ac_header
in stdlib.h unistd.h
14817 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14819 echo "$as_me:$LINENO: checking for $ac_header" >&5
14820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14827 # Is the header compilable?
14828 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14830 cat >conftest.
$ac_ext <<_ACEOF
14833 cat confdefs.h
>>conftest.
$ac_ext
14834 cat >>conftest.
$ac_ext <<_ACEOF
14835 /* end confdefs.h. */
14836 $ac_includes_default
14837 #include <$ac_header>
14839 rm -f conftest.
$ac_objext
14840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14841 (eval $ac_compile) 2>conftest.er1
14843 grep -v '^ *+' conftest.er1
>conftest.err
14845 cat conftest.err
>&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); } &&
14848 { ac_try
='test -z "$ac_c_werror_flag"
14849 || test ! -s conftest.err'
14850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851 (eval $ac_try) 2>&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); }; } &&
14855 { ac_try
='test -s conftest.$ac_objext'
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; }; then
14861 ac_header_compiler
=yes
14863 echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.
$ac_ext >&5
14866 ac_header_compiler
=no
14868 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14869 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14870 echo "${ECHO_T}$ac_header_compiler" >&6
14872 # Is the header present?
14873 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14875 cat >conftest.
$ac_ext <<_ACEOF
14878 cat confdefs.h
>>conftest.
$ac_ext
14879 cat >>conftest.
$ac_ext <<_ACEOF
14880 /* end confdefs.h. */
14881 #include <$ac_header>
14883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14884 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14886 grep -v '^ *+' conftest.er1
>conftest.err
14888 cat conftest.err
>&5
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); } >/dev
/null
; then
14891 if test -s conftest.err
; then
14892 ac_cpp_err
=$ac_c_preproc_warn_flag
14893 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14900 if test -z "$ac_cpp_err"; then
14901 ac_header_preproc
=yes
14903 echo "$as_me: failed program was:" >&5
14904 sed 's/^/| /' conftest.
$ac_ext >&5
14906 ac_header_preproc
=no
14908 rm -f conftest.err conftest.
$ac_ext
14909 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14910 echo "${ECHO_T}$ac_header_preproc" >&6
14912 # So? What about this header?
14913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14915 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14919 ac_header_preproc
=yes
14922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14925 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14927 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14928 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14929 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14932 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14933 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14936 ## ------------------------------------------ ##
14937 ## Report this to the AC_PACKAGE_NAME lists. ##
14938 ## ------------------------------------------ ##
14941 sed "s/^/$as_me: WARNING: /" >&2
14944 echo "$as_me:$LINENO: checking for $ac_header" >&5
14945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14947 echo $ECHO_N "(cached) $ECHO_C" >&6
14949 eval "$as_ac_Header=\$ac_header_preproc"
14951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14956 cat >>confdefs.h
<<_ACEOF
14957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14965 for ac_func
in getpagesize
14967 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14968 echo "$as_me:$LINENO: checking for $ac_func" >&5
14969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14970 if eval "test \"\${$as_ac_var+set}\" = set"; then
14971 echo $ECHO_N "(cached) $ECHO_C" >&6
14973 cat >conftest.
$ac_ext <<_ACEOF
14976 cat confdefs.h
>>conftest.
$ac_ext
14977 cat >>conftest.
$ac_ext <<_ACEOF
14978 /* end confdefs.h. */
14979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14981 #define $ac_func innocuous_$ac_func
14983 /* System header to define __stub macros and hopefully few prototypes,
14984 which can conflict with char $ac_func (); below.
14985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14986 <limits.h> exists even on freestanding compilers. */
14989 # include <limits.h>
14991 # include <assert.h>
14996 /* Override any gcc2 internal prototype to avoid an error. */
15001 /* We use char because int might match the return type of a gcc2
15002 builtin and then its argument prototype would still apply. */
15004 /* The GNU C library defines this for functions which it implements
15005 to always fail with ENOSYS. Some functions are actually named
15006 something starting with __ and the normal name is an alias. */
15007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15010 char (*f) () = $ac_func;
15019 return f != $ac_func;
15024 rm -f conftest.
$ac_objext conftest
$ac_exeext
15025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15026 (eval $ac_link) 2>conftest.er1
15028 grep -v '^ *+' conftest.er1
>conftest.err
15030 cat conftest.err
>&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); } &&
15033 { ac_try
='test -z "$ac_c_werror_flag"
15034 || test ! -s conftest.err'
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; } &&
15040 { ac_try
='test -s conftest$ac_exeext'
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }; then
15046 eval "$as_ac_var=yes"
15048 echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.
$ac_ext >&5
15051 eval "$as_ac_var=no"
15053 rm -f conftest.err conftest.
$ac_objext \
15054 conftest
$ac_exeext conftest.
$ac_ext
15056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15058 if test `eval echo '${'$as_ac_var'}'` = yes; then
15059 cat >>confdefs.h
<<_ACEOF
15060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15066 echo "$as_me:$LINENO: checking for working mmap" >&5
15067 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15068 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15069 echo $ECHO_N "(cached) $ECHO_C" >&6
15071 if test "$cross_compiling" = yes; then
15072 ac_cv_func_mmap_fixed_mapped
=no
15074 cat >conftest.
$ac_ext <<_ACEOF
15077 cat confdefs.h
>>conftest.
$ac_ext
15078 cat >>conftest.
$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15080 $ac_includes_default
15081 /* malloc might have been renamed as rpl_malloc. */
15084 /* Thanks to Mike Haertel and Jim Avera for this test.
15085 Here is a matrix of mmap possibilities:
15086 mmap private not fixed
15087 mmap private fixed at somewhere currently unmapped
15088 mmap private fixed at somewhere already mapped
15089 mmap shared not fixed
15090 mmap shared fixed at somewhere currently unmapped
15091 mmap shared fixed at somewhere already mapped
15092 For private mappings, we should verify that changes cannot be read()
15093 back from the file, nor mmap's back from the file at a different
15094 address. (There have been systems where private was not correctly
15095 implemented like the infamous i386 svr4.0, and systems where the
15096 VM page cache was not coherent with the file system buffer cache
15097 like early versions of FreeBSD and possibly contemporary NetBSD.)
15098 For shared mappings, we should conversely verify that changes get
15099 propagated back to all the places they're supposed to be.
15101 Grep wants private fixed already mapped.
15102 The main things grep needs to know about mmap are:
15103 * does it exist and is it safe to write into the mmap'd area
15104 * how to use it (BSD variants) */
15107 #include <sys/mman.h>
15109 #if !STDC_HEADERS && !HAVE_STDLIB_H
15113 /* This mess was copied from the GNU getpagesize.h. */
15114 #if !HAVE_GETPAGESIZE
15115 /* Assume that all systems that can run configure have sys/param.h. */
15116 # if !HAVE_SYS_PARAM_H
15117 # define HAVE_SYS_PARAM_H 1
15120 # ifdef _SC_PAGESIZE
15121 # define getpagesize() sysconf(_SC_PAGESIZE)
15122 # else /* no _SC_PAGESIZE */
15123 # if HAVE_SYS_PARAM_H
15124 # include <sys/param.h>
15125 # ifdef EXEC_PAGESIZE
15126 # define getpagesize() EXEC_PAGESIZE
15127 # else /* no EXEC_PAGESIZE */
15129 # define getpagesize() NBPG * CLSIZE
15132 # endif /* no CLSIZE */
15133 # else /* no NBPG */
15135 # define getpagesize() NBPC
15136 # else /* no NBPC */
15138 # define getpagesize() PAGESIZE
15139 # endif /* PAGESIZE */
15140 # endif /* no NBPC */
15141 # endif /* no NBPG */
15142 # endif /* no EXEC_PAGESIZE */
15143 # else /* no HAVE_SYS_PARAM_H */
15144 # define getpagesize() 8192 /* punt totally */
15145 # endif /* no HAVE_SYS_PARAM_H */
15146 # endif /* no _SC_PAGESIZE */
15148 #endif /* no HAVE_GETPAGESIZE */
15153 char *data, *data2, *data3;
15157 pagesize = getpagesize ();
15159 /* First, make a file with some known garbage in it. */
15160 data = (char *) malloc (pagesize);
15163 for (i = 0; i < pagesize; ++i)
15164 *(data + i) = rand ();
15166 fd = creat ("conftest.mmap", 0600);
15169 if (write (fd, data, pagesize) != pagesize)
15173 /* Next, try to mmap the file at a fixed address which already has
15174 something else allocated at it. If we can, also make sure that
15175 we see the same garbage. */
15176 fd = open ("conftest.mmap", O_RDWR);
15179 data2 = (char *) malloc (2 * pagesize);
15182 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15183 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15184 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15186 for (i = 0; i < pagesize; ++i)
15187 if (*(data + i) != *(data2 + i))
15190 /* Finally, make sure that changes to the mapped area do not
15191 percolate back to the file as seen by read(). (This is a bug on
15192 some variants of i386 svr4.0.) */
15193 for (i = 0; i < pagesize; ++i)
15194 *(data2 + i) = *(data2 + i) + 1;
15195 data3 = (char *) malloc (pagesize);
15198 if (read (fd, data3, pagesize) != pagesize)
15200 for (i = 0; i < pagesize; ++i)
15201 if (*(data + i) != *(data3 + i))
15207 rm -f conftest
$ac_exeext
15208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15209 (eval $ac_link) 2>&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15214 (eval $ac_try) 2>&5
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); }; }; then
15218 ac_cv_func_mmap_fixed_mapped
=yes
15220 echo "$as_me: program exited with status $ac_status" >&5
15221 echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.
$ac_ext >&5
15224 ( exit $ac_status )
15225 ac_cv_func_mmap_fixed_mapped
=no
15227 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15230 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15231 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15232 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15234 cat >>confdefs.h
<<\_ACEOF
15235 #define HAVE_MMAP 1
15239 rm -f conftest.mmap
15241 echo "$as_me:$LINENO: checking for pid_t" >&5
15242 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15243 if test "${ac_cv_type_pid_t+set}" = set; then
15244 echo $ECHO_N "(cached) $ECHO_C" >&6
15246 cat >conftest.
$ac_ext <<_ACEOF
15249 cat confdefs.h
>>conftest.
$ac_ext
15250 cat >>conftest.
$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15252 $ac_includes_default
15258 if (sizeof (pid_t))
15264 rm -f conftest.
$ac_objext
15265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15266 (eval $ac_compile) 2>conftest.er1
15268 grep -v '^ *+' conftest.er1
>conftest.err
15270 cat conftest.err
>&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } &&
15273 { ac_try
='test -z "$ac_c_werror_flag"
15274 || test ! -s conftest.err'
15275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276 (eval $ac_try) 2>&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; } &&
15280 { ac_try
='test -s conftest.$ac_objext'
15281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282 (eval $ac_try) 2>&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); }; }; then
15286 ac_cv_type_pid_t
=yes
15288 echo "$as_me: failed program was:" >&5
15289 sed 's/^/| /' conftest.
$ac_ext >&5
15291 ac_cv_type_pid_t
=no
15293 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15295 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15296 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15297 if test $ac_cv_type_pid_t = yes; then
15301 cat >>confdefs.h
<<_ACEOF
15309 for ac_header
in unistd.h vfork.h
15311 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15313 echo "$as_me:$LINENO: checking for $ac_header" >&5
15314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15316 echo $ECHO_N "(cached) $ECHO_C" >&6
15318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15321 # Is the header compilable?
15322 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15324 cat >conftest.
$ac_ext <<_ACEOF
15327 cat confdefs.h
>>conftest.
$ac_ext
15328 cat >>conftest.
$ac_ext <<_ACEOF
15329 /* end confdefs.h. */
15330 $ac_includes_default
15331 #include <$ac_header>
15333 rm -f conftest.
$ac_objext
15334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15335 (eval $ac_compile) 2>conftest.er1
15337 grep -v '^ *+' conftest.er1
>conftest.err
15339 cat conftest.err
>&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); } &&
15342 { ac_try
='test -z "$ac_c_werror_flag"
15343 || test ! -s conftest.err'
15344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345 (eval $ac_try) 2>&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; } &&
15349 { ac_try
='test -s conftest.$ac_objext'
15350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351 (eval $ac_try) 2>&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; }; then
15355 ac_header_compiler
=yes
15357 echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.
$ac_ext >&5
15360 ac_header_compiler
=no
15362 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15364 echo "${ECHO_T}$ac_header_compiler" >&6
15366 # Is the header present?
15367 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15369 cat >conftest.
$ac_ext <<_ACEOF
15372 cat confdefs.h
>>conftest.
$ac_ext
15373 cat >>conftest.
$ac_ext <<_ACEOF
15374 /* end confdefs.h. */
15375 #include <$ac_header>
15377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15378 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15380 grep -v '^ *+' conftest.er1
>conftest.err
15382 cat conftest.err
>&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); } >/dev
/null
; then
15385 if test -s conftest.err
; then
15386 ac_cpp_err
=$ac_c_preproc_warn_flag
15387 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15394 if test -z "$ac_cpp_err"; then
15395 ac_header_preproc
=yes
15397 echo "$as_me: failed program was:" >&5
15398 sed 's/^/| /' conftest.
$ac_ext >&5
15400 ac_header_preproc
=no
15402 rm -f conftest.err conftest.
$ac_ext
15403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15404 echo "${ECHO_T}$ac_header_preproc" >&6
15406 # So? What about this header?
15407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15413 ac_header_preproc
=yes
15416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15419 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15420 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15422 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15423 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15426 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15430 ## ------------------------------------------ ##
15431 ## Report this to the AC_PACKAGE_NAME lists. ##
15432 ## ------------------------------------------ ##
15435 sed "s/^/$as_me: WARNING: /" >&2
15438 echo "$as_me:$LINENO: checking for $ac_header" >&5
15439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15441 echo $ECHO_N "(cached) $ECHO_C" >&6
15443 eval "$as_ac_Header=\$ac_header_preproc"
15445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15450 cat >>confdefs.h
<<_ACEOF
15451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15460 for ac_func
in fork vfork
15462 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15463 echo "$as_me:$LINENO: checking for $ac_func" >&5
15464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15465 if eval "test \"\${$as_ac_var+set}\" = set"; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6
15468 cat >conftest.
$ac_ext <<_ACEOF
15471 cat confdefs.h
>>conftest.
$ac_ext
15472 cat >>conftest.
$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15476 #define $ac_func innocuous_$ac_func
15478 /* System header to define __stub macros and hopefully few prototypes,
15479 which can conflict with char $ac_func (); below.
15480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15481 <limits.h> exists even on freestanding compilers. */
15484 # include <limits.h>
15486 # include <assert.h>
15491 /* Override any gcc2 internal prototype to avoid an error. */
15496 /* We use char because int might match the return type of a gcc2
15497 builtin and then its argument prototype would still apply. */
15499 /* The GNU C library defines this for functions which it implements
15500 to always fail with ENOSYS. Some functions are actually named
15501 something starting with __ and the normal name is an alias. */
15502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15505 char (*f) () = $ac_func;
15514 return f != $ac_func;
15519 rm -f conftest.
$ac_objext conftest
$ac_exeext
15520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15521 (eval $ac_link) 2>conftest.er1
15523 grep -v '^ *+' conftest.er1
>conftest.err
15525 cat conftest.err
>&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); } &&
15528 { ac_try
='test -z "$ac_c_werror_flag"
15529 || test ! -s conftest.err'
15530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15531 (eval $ac_try) 2>&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); }; } &&
15535 { ac_try
='test -s conftest$ac_exeext'
15536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537 (eval $ac_try) 2>&5
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); }; }; then
15541 eval "$as_ac_var=yes"
15543 echo "$as_me: failed program was:" >&5
15544 sed 's/^/| /' conftest.
$ac_ext >&5
15546 eval "$as_ac_var=no"
15548 rm -f conftest.err conftest.
$ac_objext \
15549 conftest
$ac_exeext conftest.
$ac_ext
15551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15552 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15553 if test `eval echo '${'$as_ac_var'}'` = yes; then
15554 cat >>confdefs.h
<<_ACEOF
15555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15561 if test "x$ac_cv_func_fork" = xyes
; then
15562 echo "$as_me:$LINENO: checking for working fork" >&5
15563 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15564 if test "${ac_cv_func_fork_works+set}" = set; then
15565 echo $ECHO_N "(cached) $ECHO_C" >&6
15567 if test "$cross_compiling" = yes; then
15568 ac_cv_func_fork_works
=cross
15570 cat >conftest.
$ac_ext <<_ACEOF
15571 /* By Ruediger Kuhlmann. */
15572 #include <sys/types.h>
15574 # include <unistd.h>
15576 /* Some systems only have a dummy stub for fork() */
15584 rm -f conftest
$ac_exeext
15585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15586 (eval $ac_link) 2>&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_cv_func_fork_works
=yes
15597 echo "$as_me: program exited with status $ac_status" >&5
15598 echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.
$ac_ext >&5
15601 ( exit $ac_status )
15602 ac_cv_func_fork_works
=no
15604 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15607 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15608 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15611 ac_cv_func_fork_works
=$ac_cv_func_fork
15613 if test "x$ac_cv_func_fork_works" = xcross
; then
15615 *-*-amigaos* |
*-*-msdosdjgpp*)
15616 # Override, as these systems have only a dummy fork() stub
15617 ac_cv_func_fork_works
=no
15620 ac_cv_func_fork_works
=yes
15623 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15624 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15626 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15627 if test "x$ac_cv_func_vfork" = xyes
; then
15628 echo "$as_me:$LINENO: checking for working vfork" >&5
15629 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15630 if test "${ac_cv_func_vfork_works+set}" = set; then
15631 echo $ECHO_N "(cached) $ECHO_C" >&6
15633 if test "$cross_compiling" = yes; then
15634 ac_cv_func_vfork_works
=cross
15636 cat >conftest.
$ac_ext <<_ACEOF
15639 cat confdefs.h
>>conftest.
$ac_ext
15640 cat >>conftest.
$ac_ext <<_ACEOF
15641 /* end confdefs.h. */
15642 /* Thanks to Paul Eggert for this test. */
15644 #include <stdlib.h>
15645 #include <sys/types.h>
15646 #include <sys/stat.h>
15647 #include <sys/wait.h>
15649 # include <unistd.h>
15652 # include <vfork.h>
15654 /* On some sparc systems, changes by the child to local and incoming
15655 argument registers are propagated back to the parent. The compiler
15656 is told about this with #include <vfork.h>, but some compilers
15657 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15658 static variable whose address is put into a register that is
15659 clobbered by the vfork. */
15662 sparc_address_test (int arg)
15664 sparc_address_test (arg) int arg;
15667 static pid_t child;
15685 pid_t parent = getpid ();
15688 sparc_address_test (0);
15693 /* Here is another test for sparc vfork register problems. This
15694 test uses lots of local variables, at least as many local
15695 variables as main has allocated so far including compiler
15696 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15697 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15698 reuse the register of parent for one of the local variables,
15699 since it will think that parent can't possibly be used any more
15700 in this routine. Assigning to the local variable will thus
15701 munge parent in the parent process. */
15703 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15704 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15705 /* Convince the compiler that p..p7 are live; otherwise, it might
15706 use the same hardware register for all 8 local variables. */
15707 if (p != p1 || p != p2 || p != p3 || p != p4
15708 || p != p5 || p != p6 || p != p7)
15711 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15712 from child file descriptors. If the child closes a descriptor
15713 before it execs or exits, this munges the parent's descriptor
15714 as well. Test for this by closing stdout in the child. */
15715 _exit(close(fileno(stdout)) != 0);
15720 while (wait(&status) != child)
15723 /* Was there some problem with vforking? */
15726 /* Did the child fail? (This shouldn't happen.) */
15729 /* Did the vfork/compiler bug occur? */
15730 || parent != getpid()
15732 /* Did the file descriptor bug occur? */
15733 || fstat(fileno(stdout), &st) != 0
15738 rm -f conftest
$ac_exeext
15739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15740 (eval $ac_link) 2>&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745 (eval $ac_try) 2>&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; }; then
15749 ac_cv_func_vfork_works
=yes
15751 echo "$as_me: program exited with status $ac_status" >&5
15752 echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.
$ac_ext >&5
15755 ( exit $ac_status )
15756 ac_cv_func_vfork_works
=no
15758 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15761 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15762 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15765 if test "x$ac_cv_func_fork_works" = xcross
; then
15766 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15767 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15768 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15771 if test "x$ac_cv_func_vfork_works" = xyes
; then
15773 cat >>confdefs.h
<<\_ACEOF
15774 #define HAVE_WORKING_VFORK 1
15779 cat >>confdefs.h
<<\_ACEOF
15784 if test "x$ac_cv_func_fork_works" = xyes
; then
15786 cat >>confdefs.h
<<\_ACEOF
15787 #define HAVE_WORKING_FORK 1
15814 for ac_func
in canonicalize_file_name realpath getrusage getuid \
15815 getgid poll pread64 sbrk setpgid setpgrp setsid \
15816 sigaction sigprocmask sigsetmask socketpair syscall \
15817 ttrace wborder setlocale iconvlist libiconvlist btowc
15819 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15820 echo "$as_me:$LINENO: checking for $ac_func" >&5
15821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15822 if eval "test \"\${$as_ac_var+set}\" = set"; then
15823 echo $ECHO_N "(cached) $ECHO_C" >&6
15825 cat >conftest.
$ac_ext <<_ACEOF
15828 cat confdefs.h
>>conftest.
$ac_ext
15829 cat >>conftest.
$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15833 #define $ac_func innocuous_$ac_func
15835 /* System header to define __stub macros and hopefully few prototypes,
15836 which can conflict with char $ac_func (); below.
15837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15838 <limits.h> exists even on freestanding compilers. */
15841 # include <limits.h>
15843 # include <assert.h>
15848 /* Override any gcc2 internal prototype to avoid an error. */
15853 /* We use char because int might match the return type of a gcc2
15854 builtin and then its argument prototype would still apply. */
15856 /* The GNU C library defines this for functions which it implements
15857 to always fail with ENOSYS. Some functions are actually named
15858 something starting with __ and the normal name is an alias. */
15859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15862 char (*f) () = $ac_func;
15871 return f != $ac_func;
15876 rm -f conftest.
$ac_objext conftest
$ac_exeext
15877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15878 (eval $ac_link) 2>conftest.er1
15880 grep -v '^ *+' conftest.er1
>conftest.err
15882 cat conftest.err
>&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } &&
15885 { ac_try
='test -z "$ac_c_werror_flag"
15886 || test ! -s conftest.err'
15887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888 (eval $ac_try) 2>&5
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); }; } &&
15892 { ac_try
='test -s conftest$ac_exeext'
15893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15894 (eval $ac_try) 2>&5
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); }; }; then
15898 eval "$as_ac_var=yes"
15900 echo "$as_me: failed program was:" >&5
15901 sed 's/^/| /' conftest.
$ac_ext >&5
15903 eval "$as_ac_var=no"
15905 rm -f conftest.err conftest.
$ac_objext \
15906 conftest
$ac_exeext conftest.
$ac_ext
15908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15910 if test `eval echo '${'$as_ac_var'}'` = yes; then
15911 cat >>confdefs.h
<<_ACEOF
15912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15919 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15920 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15921 if test "${am_cv_langinfo_codeset+set}" = set; then
15922 echo $ECHO_N "(cached) $ECHO_C" >&6
15924 cat >conftest.
$ac_ext <<_ACEOF
15927 cat confdefs.h
>>conftest.
$ac_ext
15928 cat >>conftest.
$ac_ext <<_ACEOF
15929 /* end confdefs.h. */
15930 #include <langinfo.h>
15934 char* cs = nl_langinfo(CODESET);
15939 rm -f conftest.
$ac_objext conftest
$ac_exeext
15940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15941 (eval $ac_link) 2>conftest.er1
15943 grep -v '^ *+' conftest.er1
>conftest.err
15945 cat conftest.err
>&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } &&
15948 { ac_try
='test -z "$ac_c_werror_flag"
15949 || test ! -s conftest.err'
15950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15951 (eval $ac_try) 2>&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); }; } &&
15955 { ac_try
='test -s conftest$ac_exeext'
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; }; then
15961 am_cv_langinfo_codeset
=yes
15963 echo "$as_me: failed program was:" >&5
15964 sed 's/^/| /' conftest.
$ac_ext >&5
15966 am_cv_langinfo_codeset
=no
15968 rm -f conftest.err conftest.
$ac_objext \
15969 conftest
$ac_exeext conftest.
$ac_ext
15972 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
15973 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
15974 if test $am_cv_langinfo_codeset = yes; then
15976 cat >>confdefs.h
<<\_ACEOF
15977 #define HAVE_LANGINFO_CODESET 1
15983 # Check the return and argument types of ptrace. No canned test for
15984 # this, so roll our own.
15985 gdb_ptrace_headers
='
15986 #if HAVE_SYS_TYPES_H
15987 # include <sys/types.h>
15989 #if HAVE_SYS_PTRACE_H
15990 # include <sys/ptrace.h>
15993 # include <unistd.h>
15996 # There is no point in checking if we don't have a prototype.
15997 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
15998 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
15999 if test "${ac_cv_have_decl_ptrace+set}" = set; then
16000 echo $ECHO_N "(cached) $ECHO_C" >&6
16002 cat >conftest.
$ac_ext <<_ACEOF
16005 cat confdefs.h
>>conftest.
$ac_ext
16006 cat >>conftest.
$ac_ext <<_ACEOF
16007 /* end confdefs.h. */
16008 $gdb_ptrace_headers
16014 char *p = (char *) ptrace;
16021 rm -f conftest.
$ac_objext
16022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16023 (eval $ac_compile) 2>conftest.er1
16025 grep -v '^ *+' conftest.er1
>conftest.err
16027 cat conftest.err
>&5
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); } &&
16030 { ac_try
='test -z "$ac_c_werror_flag"
16031 || test ! -s conftest.err'
16032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16033 (eval $ac_try) 2>&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); }; } &&
16037 { ac_try
='test -s conftest.$ac_objext'
16038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039 (eval $ac_try) 2>&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; }; then
16043 ac_cv_have_decl_ptrace
=yes
16045 echo "$as_me: failed program was:" >&5
16046 sed 's/^/| /' conftest.
$ac_ext >&5
16048 ac_cv_have_decl_ptrace
=no
16050 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16052 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16053 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16054 if test $ac_cv_have_decl_ptrace = yes; then
16056 cat >>confdefs.h
<<_ACEOF
16057 #define HAVE_DECL_PTRACE 1
16062 cat >>confdefs.h
<<_ACEOF
16063 #define HAVE_DECL_PTRACE 0
16067 : ${gdb_cv_func_ptrace_ret='int'}
16068 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16073 # Check return type. Varargs (used on GNU/Linux) conflict with the
16074 # empty argument list, so check for that explicitly.
16075 echo "$as_me:$LINENO: checking return type of ptrace" >&5
16076 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16077 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
16078 echo $ECHO_N "(cached) $ECHO_C" >&6
16080 cat >conftest.
$ac_ext <<_ACEOF
16083 cat confdefs.h
>>conftest.
$ac_ext
16084 cat >>conftest.
$ac_ext <<_ACEOF
16085 /* end confdefs.h. */
16086 $gdb_ptrace_headers
16090 extern long ptrace (enum __ptrace_request, ...);
16095 rm -f conftest.
$ac_objext
16096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16097 (eval $ac_compile) 2>conftest.er1
16099 grep -v '^ *+' conftest.er1
>conftest.err
16101 cat conftest.err
>&5
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); } &&
16104 { ac_try
='test -z "$ac_c_werror_flag"
16105 || test ! -s conftest.err'
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; } &&
16111 { ac_try
='test -s conftest.$ac_objext'
16112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16113 (eval $ac_try) 2>&5
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); }; }; then
16117 gdb_cv_func_ptrace_ret
='long'
16119 echo "$as_me: failed program was:" >&5
16120 sed 's/^/| /' conftest.
$ac_ext >&5
16122 cat >conftest.
$ac_ext <<_ACEOF
16125 cat confdefs.h
>>conftest.
$ac_ext
16126 cat >>conftest.
$ac_ext <<_ACEOF
16127 /* end confdefs.h. */
16128 $gdb_ptrace_headers
16132 extern int ptrace ();
16137 rm -f conftest.
$ac_objext
16138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16139 (eval $ac_compile) 2>conftest.er1
16141 grep -v '^ *+' conftest.er1
>conftest.err
16143 cat conftest.err
>&5
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); } &&
16146 { ac_try
='test -z "$ac_c_werror_flag"
16147 || test ! -s conftest.err'
16148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; } &&
16153 { ac_try
='test -s conftest.$ac_objext'
16154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16155 (eval $ac_try) 2>&5
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); }; }; then
16159 gdb_cv_func_ptrace_ret
='int'
16161 echo "$as_me: failed program was:" >&5
16162 sed 's/^/| /' conftest.
$ac_ext >&5
16164 gdb_cv_func_ptrace_ret
='long'
16166 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16168 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16170 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16171 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
16173 cat >>confdefs.h
<<_ACEOF
16174 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
16177 # Check argument types.
16178 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16179 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16180 if test "${gdb_cv_func_ptrace_args+set}" = set; then
16181 echo $ECHO_N "(cached) $ECHO_C" >&6
16184 cat >conftest.
$ac_ext <<_ACEOF
16187 cat confdefs.h
>>conftest.
$ac_ext
16188 cat >>conftest.
$ac_ext <<_ACEOF
16189 /* end confdefs.h. */
16190 $gdb_ptrace_headers
16194 extern long ptrace (enum __ptrace_request, ...);
16199 rm -f conftest.
$ac_objext
16200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16201 (eval $ac_compile) 2>conftest.er1
16203 grep -v '^ *+' conftest.er1
>conftest.err
16205 cat conftest.err
>&5
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); } &&
16208 { ac_try
='test -z "$ac_c_werror_flag"
16209 || test ! -s conftest.err'
16210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211 (eval $ac_try) 2>&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }; } &&
16215 { ac_try
='test -s conftest.$ac_objext'
16216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16217 (eval $ac_try) 2>&5
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); }; }; then
16221 gdb_cv_func_ptrace_args
='int,int,long,long'
16223 echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.
$ac_ext >&5
16227 for gdb_arg1
in 'int' 'long'; do
16228 for gdb_arg2
in 'pid_t' 'int' 'long'; do
16229 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
16230 for gdb_arg4
in 'int' 'long'; do
16231 cat >conftest.
$ac_ext <<_ACEOF
16234 cat confdefs.h
>>conftest.
$ac_ext
16235 cat >>conftest.
$ac_ext <<_ACEOF
16236 /* end confdefs.h. */
16237 $gdb_ptrace_headers
16242 extern $gdb_cv_func_ptrace_ret
16243 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16249 rm -f conftest.
$ac_objext
16250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16251 (eval $ac_compile) 2>conftest.er1
16253 grep -v '^ *+' conftest.er1
>conftest.err
16255 cat conftest.err
>&5
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); } &&
16258 { ac_try
='test -z "$ac_c_werror_flag"
16259 || test ! -s conftest.err'
16260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16261 (eval $ac_try) 2>&5
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); }; } &&
16265 { ac_try
='test -s conftest.$ac_objext'
16266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267 (eval $ac_try) 2>&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; }; then
16271 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16274 echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.
$ac_ext >&5
16278 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16279 for gdb_arg5
in 'int *' 'int' 'long'; do
16280 cat >conftest.
$ac_ext <<_ACEOF
16283 cat confdefs.h
>>conftest.
$ac_ext
16284 cat >>conftest.
$ac_ext <<_ACEOF
16285 /* end confdefs.h. */
16286 $gdb_ptrace_headers
16291 extern $gdb_cv_func_ptrace_ret
16292 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16298 rm -f conftest.
$ac_objext
16299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16300 (eval $ac_compile) 2>conftest.er1
16302 grep -v '^ *+' conftest.er1
>conftest.err
16304 cat conftest.err
>&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } &&
16307 { ac_try
='test -z "$ac_c_werror_flag"
16308 || test ! -s conftest.err'
16309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16310 (eval $ac_try) 2>&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; } &&
16314 { ac_try
='test -s conftest.$ac_objext'
16315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316 (eval $ac_try) 2>&5
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; }; then
16321 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16324 echo "$as_me: failed program was:" >&5
16325 sed 's/^/| /' conftest.
$ac_ext >&5
16328 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16334 # Provide a safe default value.
16335 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16338 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16340 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16341 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16342 ac_save_IFS
=$IFS; IFS
=','
16343 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16347 cat >>confdefs.h
<<_ACEOF
16348 #define PTRACE_TYPE_ARG3 $3
16351 if test -n "$5"; then
16353 cat >>confdefs.h
<<_ACEOF
16354 #define PTRACE_TYPE_ARG5 $5
16359 if test "$cross_compiling" = no
; then
16360 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16361 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16362 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16363 echo $ECHO_N "(cached) $ECHO_C" >&6
16365 if test "$cross_compiling" = yes; then
16366 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16367 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16368 { (exit 1); exit 1; }; }
16370 cat >conftest.
$ac_ext <<_ACEOF
16373 cat confdefs.h
>>conftest.
$ac_ext
16374 cat >>conftest.
$ac_ext <<_ACEOF
16375 /* end confdefs.h. */
16377 # include <unistd.h>
16383 /* If this system has a BSD-style setpgrp which takes arguments,
16384 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16385 exit successfully. */
16386 exit (setpgrp (1,1) == -1 ? 0 : 1);
16391 rm -f conftest
$ac_exeext
16392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16393 (eval $ac_link) 2>&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 ac_cv_func_setpgrp_void
=no
16404 echo "$as_me: program exited with status $ac_status" >&5
16405 echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.
$ac_ext >&5
16408 ( exit $ac_status )
16409 ac_cv_func_setpgrp_void
=yes
16411 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16414 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16415 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16416 if test $ac_cv_func_setpgrp_void = yes; then
16418 cat >>confdefs.h
<<\_ACEOF
16419 #define SETPGRP_VOID 1
16425 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16426 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16427 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16428 echo $ECHO_N "(cached) $ECHO_C" >&6
16430 cat >conftest.
$ac_ext <<_ACEOF
16433 cat confdefs.h
>>conftest.
$ac_ext
16434 cat >>conftest.
$ac_ext <<_ACEOF
16435 /* end confdefs.h. */
16437 #include <unistd.h>
16443 if (setpgrp(1,1) == -1)
16452 rm -f conftest.
$ac_objext
16453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16454 (eval $ac_compile) 2>conftest.er1
16456 grep -v '^ *+' conftest.er1
>conftest.err
16458 cat conftest.err
>&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); } &&
16461 { ac_try
='test -z "$ac_c_werror_flag"
16462 || test ! -s conftest.err'
16463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16464 (eval $ac_try) 2>&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); }; } &&
16468 { ac_try
='test -s conftest.$ac_objext'
16469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470 (eval $ac_try) 2>&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; }; then
16474 ac_cv_func_setpgrp_void
=no
16476 echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.
$ac_ext >&5
16479 ac_cv_func_setpgrp_void
=yes
16481 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16483 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16484 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16485 if test $ac_cv_func_setpgrp_void = yes; then
16486 cat >>confdefs.h
<<\_ACEOF
16487 #define SETPGRP_VOID 1
16493 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16494 # since sigsetjmp might only be defined as a macro.
16495 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16496 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16497 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16500 cat >conftest.
$ac_ext <<_ACEOF
16503 cat confdefs.h
>>conftest.
$ac_ext
16504 cat >>conftest.
$ac_ext <<_ACEOF
16505 /* end confdefs.h. */
16507 #include <setjmp.h>
16512 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16517 rm -f conftest.
$ac_objext
16518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16519 (eval $ac_compile) 2>conftest.er1
16521 grep -v '^ *+' conftest.er1
>conftest.err
16523 cat conftest.err
>&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } &&
16526 { ac_try
='test -z "$ac_c_werror_flag"
16527 || test ! -s conftest.err'
16528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16529 (eval $ac_try) 2>&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); }; } &&
16533 { ac_try
='test -s conftest.$ac_objext'
16534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16535 (eval $ac_try) 2>&5
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); }; }; then
16539 gdb_cv_func_sigsetjmp
=yes
16541 echo "$as_me: failed program was:" >&5
16542 sed 's/^/| /' conftest.
$ac_ext >&5
16544 gdb_cv_func_sigsetjmp
=no
16546 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16548 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16549 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16550 if test $gdb_cv_func_sigsetjmp = yes; then
16552 cat >>confdefs.h
<<\_ACEOF
16553 #define HAVE_SIGSETJMP 1
16558 # Assume we'll default to using the included libiberty regex.
16559 gdb_use_included_regex
=yes
16561 # However, if the system regex is GNU regex, then default to *not*
16562 # using the included regex.
16563 echo "$as_me:$LINENO: checking for GNU regex" >&5
16564 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16565 if test "${gdb_cv_have_gnu_regex+set}" = set; then
16566 echo $ECHO_N "(cached) $ECHO_C" >&6
16568 cat >conftest.
$ac_ext <<_ACEOF
16571 cat confdefs.h
>>conftest.
$ac_ext
16572 cat >>conftest.
$ac_ext <<_ACEOF
16573 /* end confdefs.h. */
16574 #include <gnu-versions.h>
16578 #define REGEX_INTERFACE_VERSION 1
16579 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16580 # error "Version mismatch"
16586 rm -f conftest.
$ac_objext
16587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16588 (eval $ac_compile) 2>conftest.er1
16590 grep -v '^ *+' conftest.er1
>conftest.err
16592 cat conftest.err
>&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } &&
16595 { ac_try
='test -z "$ac_c_werror_flag"
16596 || test ! -s conftest.err'
16597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16598 (eval $ac_try) 2>&5
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); }; } &&
16602 { ac_try
='test -s conftest.$ac_objext'
16603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604 (eval $ac_try) 2>&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; }; then
16608 gdb_cv_have_gnu_regex
=yes
16610 echo "$as_me: failed program was:" >&5
16611 sed 's/^/| /' conftest.
$ac_ext >&5
16613 gdb_cv_have_gnu_regex
=no
16615 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16617 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16618 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16619 if test $gdb_cv_have_gnu_regex = yes; then
16620 gdb_use_included_regex
=no
16624 # Check whether --with-included-regex or --without-included-regex was given.
16625 if test "${with_included_regex+set}" = set; then
16626 withval
="$with_included_regex"
16627 gdb_with_regex
=$withval
16629 gdb_with_regex
=$gdb_use_included_regex
16631 if test "$gdb_with_regex" = yes; then
16633 cat >>confdefs.h
<<\_ACEOF
16634 #define USE_INCLUDED_REGEX 1
16639 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
16640 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
16641 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
16642 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16645 cat >conftest.
$ac_ext <<_ACEOF
16648 cat confdefs.h
>>conftest.
$ac_ext
16649 cat >>conftest.
$ac_ext <<_ACEOF
16650 /* end confdefs.h. */
16651 #include <sys/param.h>
16652 #include <sys/proc.h>
16658 static struct thread ac_aggr;
16659 if (ac_aggr.td_pcb)
16665 rm -f conftest.
$ac_objext
16666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16667 (eval $ac_compile) 2>conftest.er1
16669 grep -v '^ *+' conftest.er1
>conftest.err
16671 cat conftest.err
>&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); } &&
16674 { ac_try
='test -z "$ac_c_werror_flag"
16675 || test ! -s conftest.err'
16676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16677 (eval $ac_try) 2>&5
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); }; } &&
16681 { ac_try
='test -s conftest.$ac_objext'
16682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16683 (eval $ac_try) 2>&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); }; }; then
16687 ac_cv_member_struct_thread_td_pcb
=yes
16689 echo "$as_me: failed program was:" >&5
16690 sed 's/^/| /' conftest.
$ac_ext >&5
16692 cat >conftest.
$ac_ext <<_ACEOF
16695 cat confdefs.h
>>conftest.
$ac_ext
16696 cat >>conftest.
$ac_ext <<_ACEOF
16697 /* end confdefs.h. */
16698 #include <sys/param.h>
16699 #include <sys/proc.h>
16705 static struct thread ac_aggr;
16706 if (sizeof ac_aggr.td_pcb)
16712 rm -f conftest.
$ac_objext
16713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16714 (eval $ac_compile) 2>conftest.er1
16716 grep -v '^ *+' conftest.er1
>conftest.err
16718 cat conftest.err
>&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } &&
16721 { ac_try
='test -z "$ac_c_werror_flag"
16722 || test ! -s conftest.err'
16723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16724 (eval $ac_try) 2>&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }; } &&
16728 { ac_try
='test -s conftest.$ac_objext'
16729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16730 (eval $ac_try) 2>&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); }; }; then
16734 ac_cv_member_struct_thread_td_pcb
=yes
16736 echo "$as_me: failed program was:" >&5
16737 sed 's/^/| /' conftest.
$ac_ext >&5
16739 ac_cv_member_struct_thread_td_pcb
=no
16741 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16743 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16745 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
16746 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
16747 if test $ac_cv_member_struct_thread_td_pcb = yes; then
16749 cat >>confdefs.h
<<_ACEOF
16750 #define HAVE_STRUCT_THREAD_TD_PCB 1
16757 # See if <sys/lwp.h> defines `struct lwp`.
16758 echo "$as_me:$LINENO: checking for struct lwp" >&5
16759 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16760 if test "${gdb_cv_struct_lwp+set}" = set; then
16761 echo $ECHO_N "(cached) $ECHO_C" >&6
16763 cat >conftest.
$ac_ext <<_ACEOF
16766 cat confdefs.h
>>conftest.
$ac_ext
16767 cat >>conftest.
$ac_ext <<_ACEOF
16768 /* end confdefs.h. */
16769 #include <sys/param.h>
16770 #include <sys/lwp.h>
16779 rm -f conftest.
$ac_objext
16780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16781 (eval $ac_compile) 2>conftest.er1
16783 grep -v '^ *+' conftest.er1
>conftest.err
16785 cat conftest.err
>&5
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); } &&
16788 { ac_try
='test -z "$ac_c_werror_flag"
16789 || test ! -s conftest.err'
16790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16791 (eval $ac_try) 2>&5
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); }; } &&
16795 { ac_try
='test -s conftest.$ac_objext'
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; }; then
16801 gdb_cv_struct_lwp
=yes
16803 echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.
$ac_ext >&5
16806 gdb_cv_struct_lwp
=no
16808 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16810 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16811 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
16812 if test $gdb_cv_struct_lwp = yes; then
16814 cat >>confdefs.h
<<\_ACEOF
16815 #define HAVE_STRUCT_LWP 1
16820 # See if <machine/reg.h> degines `struct reg'.
16821 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16822 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16823 if test "${gdb_cv_struct_reg+set}" = set; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16826 cat >conftest.
$ac_ext <<_ACEOF
16829 cat confdefs.h
>>conftest.
$ac_ext
16830 cat >>conftest.
$ac_ext <<_ACEOF
16831 /* end confdefs.h. */
16832 #include <sys/types.h>
16833 #include <machine/reg.h>
16842 rm -f conftest.
$ac_objext
16843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16844 (eval $ac_compile) 2>conftest.er1
16846 grep -v '^ *+' conftest.er1
>conftest.err
16848 cat conftest.err
>&5
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); } &&
16851 { ac_try
='test -z "$ac_c_werror_flag"
16852 || test ! -s conftest.err'
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; } &&
16858 { ac_try
='test -s conftest.$ac_objext'
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864 gdb_cv_struct_reg
=yes
16866 echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.
$ac_ext >&5
16869 gdb_cv_struct_reg
=no
16871 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16873 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16874 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
16875 if test $gdb_cv_struct_reg = yes; then
16877 cat >>confdefs.h
<<\_ACEOF
16878 #define HAVE_STRUCT_REG 1
16883 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16884 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16885 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
16886 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
16887 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16890 cat >conftest.
$ac_ext <<_ACEOF
16893 cat confdefs.h
>>conftest.
$ac_ext
16894 cat >>conftest.
$ac_ext <<_ACEOF
16895 /* end confdefs.h. */
16896 #include <machine/reg.h>
16901 static struct reg ac_aggr;
16908 rm -f conftest.
$ac_objext
16909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16910 (eval $ac_compile) 2>conftest.er1
16912 grep -v '^ *+' conftest.er1
>conftest.err
16914 cat conftest.err
>&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); } &&
16917 { ac_try
='test -z "$ac_c_werror_flag"
16918 || test ! -s conftest.err'
16919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920 (eval $ac_try) 2>&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; } &&
16924 { ac_try
='test -s conftest.$ac_objext'
16925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16930 ac_cv_member_struct_reg_r_fs
=yes
16932 echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.
$ac_ext >&5
16935 cat >conftest.
$ac_ext <<_ACEOF
16938 cat confdefs.h
>>conftest.
$ac_ext
16939 cat >>conftest.
$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16941 #include <machine/reg.h>
16946 static struct reg ac_aggr;
16947 if (sizeof ac_aggr.r_fs)
16953 rm -f conftest.
$ac_objext
16954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16955 (eval $ac_compile) 2>conftest.er1
16957 grep -v '^ *+' conftest.er1
>conftest.err
16959 cat conftest.err
>&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } &&
16962 { ac_try
='test -z "$ac_c_werror_flag"
16963 || test ! -s conftest.err'
16964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965 (eval $ac_try) 2>&5
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); }; } &&
16969 { ac_try
='test -s conftest.$ac_objext'
16970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16971 (eval $ac_try) 2>&5
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }; }; then
16975 ac_cv_member_struct_reg_r_fs
=yes
16977 echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.
$ac_ext >&5
16980 ac_cv_member_struct_reg_r_fs
=no
16982 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16984 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16986 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
16987 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
16988 if test $ac_cv_member_struct_reg_r_fs = yes; then
16990 cat >>confdefs.h
<<_ACEOF
16991 #define HAVE_STRUCT_REG_R_FS 1
16996 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
16997 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
16998 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
16999 echo $ECHO_N "(cached) $ECHO_C" >&6
17001 cat >conftest.
$ac_ext <<_ACEOF
17004 cat confdefs.h
>>conftest.
$ac_ext
17005 cat >>conftest.
$ac_ext <<_ACEOF
17006 /* end confdefs.h. */
17007 #include <machine/reg.h>
17012 static struct reg ac_aggr;
17019 rm -f conftest.
$ac_objext
17020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17021 (eval $ac_compile) 2>conftest.er1
17023 grep -v '^ *+' conftest.er1
>conftest.err
17025 cat conftest.err
>&5
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); } &&
17028 { ac_try
='test -z "$ac_c_werror_flag"
17029 || test ! -s conftest.err'
17030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031 (eval $ac_try) 2>&5
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; } &&
17035 { ac_try
='test -s conftest.$ac_objext'
17036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037 (eval $ac_try) 2>&5
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; }; then
17041 ac_cv_member_struct_reg_r_gs
=yes
17043 echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.
$ac_ext >&5
17046 cat >conftest.
$ac_ext <<_ACEOF
17049 cat confdefs.h
>>conftest.
$ac_ext
17050 cat >>conftest.
$ac_ext <<_ACEOF
17051 /* end confdefs.h. */
17052 #include <machine/reg.h>
17057 static struct reg ac_aggr;
17058 if (sizeof ac_aggr.r_gs)
17064 rm -f conftest.
$ac_objext
17065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17066 (eval $ac_compile) 2>conftest.er1
17068 grep -v '^ *+' conftest.er1
>conftest.err
17070 cat conftest.err
>&5
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); } &&
17073 { ac_try
='test -z "$ac_c_werror_flag"
17074 || test ! -s conftest.err'
17075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17076 (eval $ac_try) 2>&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); }; } &&
17080 { ac_try
='test -s conftest.$ac_objext'
17081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17082 (eval $ac_try) 2>&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; }; then
17086 ac_cv_member_struct_reg_r_gs
=yes
17088 echo "$as_me: failed program was:" >&5
17089 sed 's/^/| /' conftest.
$ac_ext >&5
17091 ac_cv_member_struct_reg_r_gs
=no
17093 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17095 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17097 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17098 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17099 if test $ac_cv_member_struct_reg_r_gs = yes; then
17101 cat >>confdefs.h
<<_ACEOF
17102 #define HAVE_STRUCT_REG_R_GS 1
17109 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17110 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17111 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17112 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
17113 echo $ECHO_N "(cached) $ECHO_C" >&6
17115 cat >conftest.
$ac_ext <<_ACEOF
17118 cat confdefs.h
>>conftest.
$ac_ext
17119 cat >>conftest.
$ac_ext <<_ACEOF
17120 /* end confdefs.h. */
17121 #include <sys/ptrace.h>
17130 rm -f conftest.
$ac_objext
17131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17132 (eval $ac_compile) 2>conftest.er1
17134 grep -v '^ *+' conftest.er1
>conftest.err
17136 cat conftest.err
>&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); } &&
17139 { ac_try
='test -z "$ac_c_werror_flag"
17140 || test ! -s conftest.err'
17141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17142 (eval $ac_try) 2>&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; } &&
17146 { ac_try
='test -s conftest.$ac_objext'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; }; then
17152 gdb_cv_have_ptrace_getregs
=yes
17154 echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.
$ac_ext >&5
17157 gdb_cv_have_ptrace_getregs
=no
17159 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17162 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17163 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17164 if test $gdb_cv_have_ptrace_getregs = yes; then
17166 cat >>confdefs.h
<<\_ACEOF
17167 #define HAVE_PTRACE_GETREGS 1
17172 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17173 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17174 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17175 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
17176 echo $ECHO_N "(cached) $ECHO_C" >&6
17178 cat >conftest.
$ac_ext <<_ACEOF
17181 cat confdefs.h
>>conftest.
$ac_ext
17182 cat >>conftest.
$ac_ext <<_ACEOF
17183 /* end confdefs.h. */
17184 #include <sys/ptrace.h>
17193 rm -f conftest.
$ac_objext
17194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17195 (eval $ac_compile) 2>conftest.er1
17197 grep -v '^ *+' conftest.er1
>conftest.err
17199 cat conftest.err
>&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); } &&
17202 { ac_try
='test -z "$ac_c_werror_flag"
17203 || test ! -s conftest.err'
17204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17205 (eval $ac_try) 2>&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; } &&
17209 { ac_try
='test -s conftest.$ac_objext'
17210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17211 (eval $ac_try) 2>&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; }; then
17215 gdb_cv_have_ptrace_getfpxregs
=yes
17217 echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.
$ac_ext >&5
17220 gdb_cv_have_ptrace_getfpxregs
=no
17222 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17225 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17226 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17227 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
17229 cat >>confdefs.h
<<\_ACEOF
17230 #define HAVE_PTRACE_GETFPXREGS 1
17235 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17236 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17237 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17238 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
17239 echo $ECHO_N "(cached) $ECHO_C" >&6
17241 cat >conftest.
$ac_ext <<_ACEOF
17244 cat confdefs.h
>>conftest.
$ac_ext
17245 cat >>conftest.
$ac_ext <<_ACEOF
17246 /* end confdefs.h. */
17247 #include <sys/types.h>
17248 #include <sys/ptrace.h>
17257 rm -f conftest.
$ac_objext
17258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17259 (eval $ac_compile) 2>conftest.er1
17261 grep -v '^ *+' conftest.er1
>conftest.err
17263 cat conftest.err
>&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } &&
17266 { ac_try
='test -z "$ac_c_werror_flag"
17267 || test ! -s conftest.err'
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; } &&
17273 { ac_try
='test -s conftest.$ac_objext'
17274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17275 (eval $ac_try) 2>&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; }; then
17279 gdb_cv_have_pt_getdbregs
=yes
17281 echo "$as_me: failed program was:" >&5
17282 sed 's/^/| /' conftest.
$ac_ext >&5
17284 gdb_cv_have_pt_getdbregs
=no
17286 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17289 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17290 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17291 if test $gdb_cv_have_pt_getdbregs = yes; then
17293 cat >>confdefs.h
<<\_ACEOF
17294 #define HAVE_PT_GETDBREGS 1
17299 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17300 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17301 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17302 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17305 cat >conftest.
$ac_ext <<_ACEOF
17308 cat confdefs.h
>>conftest.
$ac_ext
17309 cat >>conftest.
$ac_ext <<_ACEOF
17310 /* end confdefs.h. */
17311 #include <sys/types.h>
17312 #include <sys/ptrace.h>
17321 rm -f conftest.
$ac_objext
17322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17323 (eval $ac_compile) 2>conftest.er1
17325 grep -v '^ *+' conftest.er1
>conftest.err
17327 cat conftest.err
>&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } &&
17330 { ac_try
='test -z "$ac_c_werror_flag"
17331 || test ! -s conftest.err'
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; } &&
17337 { ac_try
='test -s conftest.$ac_objext'
17338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339 (eval $ac_try) 2>&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; }; then
17343 gdb_cv_have_pt_getxmmregs
=yes
17345 echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.
$ac_ext >&5
17348 gdb_cv_have_pt_getxmmregs
=no
17350 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17353 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17354 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17355 if test $gdb_cv_have_pt_getxmmregs = yes; then
17357 cat >>confdefs.h
<<\_ACEOF
17358 #define HAVE_PT_GETXMMREGS 1
17363 # Detect which type of /proc is in use, such as for Unixware or Solaris.
17365 if test "${target}" = "${host}"; then
17367 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
17369 cat >>confdefs.h
<<\_ACEOF
17370 #define NEW_PROC_API 1
17374 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
17376 cat >>confdefs.h
<<\_ACEOF
17377 #define NEW_PROC_API 1
17382 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17384 cat >>confdefs.h
<<\_ACEOF
17385 #define _KMEMUSER 1
17392 if test "$ac_cv_header_sys_procfs_h" = yes; then
17393 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17394 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17395 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17398 cat >conftest.
$ac_ext <<_ACEOF
17401 cat confdefs.h
>>conftest.
$ac_ext
17402 cat >>conftest.
$ac_ext <<_ACEOF
17403 /* end confdefs.h. */
17406 #include <sys/procfs.h>
17415 rm -f conftest.
$ac_objext
17416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17417 (eval $ac_compile) 2>conftest.er1
17419 grep -v '^ *+' conftest.er1
>conftest.err
17421 cat conftest.err
>&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } &&
17424 { ac_try
='test -z "$ac_c_werror_flag"
17425 || test ! -s conftest.err'
17426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427 (eval $ac_try) 2>&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; } &&
17431 { ac_try
='test -s conftest.$ac_objext'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
17439 echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.
$ac_ext >&5
17442 bfd_cv_have_sys_procfs_type_pstatus_t
=no
17445 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17448 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17450 cat >>confdefs.h
<<\_ACEOF
17451 #define HAVE_PSTATUS_T 1
17455 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17456 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17458 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17459 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17460 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 cat >conftest.
$ac_ext <<_ACEOF
17466 cat confdefs.h
>>conftest.
$ac_ext
17467 cat >>conftest.
$ac_ext <<_ACEOF
17468 /* end confdefs.h. */
17471 #include <sys/procfs.h>
17480 rm -f conftest.
$ac_objext
17481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17482 (eval $ac_compile) 2>conftest.er1
17484 grep -v '^ *+' conftest.er1
>conftest.err
17486 cat conftest.err
>&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } &&
17489 { ac_try
='test -z "$ac_c_werror_flag"
17490 || test ! -s conftest.err'
17491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492 (eval $ac_try) 2>&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; } &&
17496 { ac_try
='test -s conftest.$ac_objext'
17497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498 (eval $ac_try) 2>&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; }; then
17502 bfd_cv_have_sys_procfs_type_prrun_t
=yes
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.
$ac_ext >&5
17507 bfd_cv_have_sys_procfs_type_prrun_t
=no
17510 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17513 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17515 cat >>confdefs.h
<<\_ACEOF
17516 #define HAVE_PRRUN_T 1
17520 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17521 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17523 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17524 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17525 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17526 echo $ECHO_N "(cached) $ECHO_C" >&6
17528 cat >conftest.
$ac_ext <<_ACEOF
17531 cat confdefs.h
>>conftest.
$ac_ext
17532 cat >>conftest.
$ac_ext <<_ACEOF
17533 /* end confdefs.h. */
17536 #include <sys/procfs.h>
17545 rm -f conftest.
$ac_objext
17546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17547 (eval $ac_compile) 2>conftest.er1
17549 grep -v '^ *+' conftest.er1
>conftest.err
17551 cat conftest.err
>&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); } &&
17554 { ac_try
='test -z "$ac_c_werror_flag"
17555 || test ! -s conftest.err'
17556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557 (eval $ac_try) 2>&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; } &&
17561 { ac_try
='test -s conftest.$ac_objext'
17562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; }; then
17567 bfd_cv_have_sys_procfs_type_gregset_t
=yes
17569 echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.
$ac_ext >&5
17572 bfd_cv_have_sys_procfs_type_gregset_t
=no
17575 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17578 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17580 cat >>confdefs.h
<<\_ACEOF
17581 #define HAVE_GREGSET_T 1
17585 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17586 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17588 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17589 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17590 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17593 cat >conftest.
$ac_ext <<_ACEOF
17596 cat confdefs.h
>>conftest.
$ac_ext
17597 cat >>conftest.
$ac_ext <<_ACEOF
17598 /* end confdefs.h. */
17601 #include <sys/procfs.h>
17610 rm -f conftest.
$ac_objext
17611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17612 (eval $ac_compile) 2>conftest.er1
17614 grep -v '^ *+' conftest.er1
>conftest.err
17616 cat conftest.err
>&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } &&
17619 { ac_try
='test -z "$ac_c_werror_flag"
17620 || test ! -s conftest.err'
17621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17622 (eval $ac_try) 2>&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); }; } &&
17626 { ac_try
='test -s conftest.$ac_objext'
17627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628 (eval $ac_try) 2>&5
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; }; then
17632 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
17634 echo "$as_me: failed program was:" >&5
17635 sed 's/^/| /' conftest.
$ac_ext >&5
17637 bfd_cv_have_sys_procfs_type_fpregset_t
=no
17640 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17643 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
17645 cat >>confdefs.h
<<\_ACEOF
17646 #define HAVE_FPREGSET_T 1
17650 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17651 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
17653 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17654 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17655 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17658 cat >conftest.
$ac_ext <<_ACEOF
17661 cat confdefs.h
>>conftest.
$ac_ext
17662 cat >>conftest.
$ac_ext <<_ACEOF
17663 /* end confdefs.h. */
17666 #include <sys/procfs.h>
17675 rm -f conftest.
$ac_objext
17676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17677 (eval $ac_compile) 2>conftest.er1
17679 grep -v '^ *+' conftest.er1
>conftest.err
17681 cat conftest.err
>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } &&
17684 { ac_try
='test -z "$ac_c_werror_flag"
17685 || test ! -s conftest.err'
17686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687 (eval $ac_try) 2>&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; } &&
17691 { ac_try
='test -s conftest.$ac_objext'
17692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 (eval $ac_try) 2>&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; }; then
17697 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
17699 echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.
$ac_ext >&5
17702 bfd_cv_have_sys_procfs_type_prgregset_t
=no
17705 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17708 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
17710 cat >>confdefs.h
<<\_ACEOF
17711 #define HAVE_PRGREGSET_T 1
17715 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17716 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
17718 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17719 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17720 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17721 echo $ECHO_N "(cached) $ECHO_C" >&6
17723 cat >conftest.
$ac_ext <<_ACEOF
17726 cat confdefs.h
>>conftest.
$ac_ext
17727 cat >>conftest.
$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17731 #include <sys/procfs.h>
17740 rm -f conftest.
$ac_objext
17741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17742 (eval $ac_compile) 2>conftest.er1
17744 grep -v '^ *+' conftest.er1
>conftest.err
17746 cat conftest.err
>&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); } &&
17749 { ac_try
='test -z "$ac_c_werror_flag"
17750 || test ! -s conftest.err'
17751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752 (eval $ac_try) 2>&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; } &&
17756 { ac_try
='test -s conftest.$ac_objext'
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; }; then
17762 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
17764 echo "$as_me: failed program was:" >&5
17765 sed 's/^/| /' conftest.
$ac_ext >&5
17767 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
17770 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17773 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17775 cat >>confdefs.h
<<\_ACEOF
17776 #define HAVE_PRFPREGSET_T 1
17780 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17781 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
17783 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17784 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
17785 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17786 echo $ECHO_N "(cached) $ECHO_C" >&6
17788 cat >conftest.
$ac_ext <<_ACEOF
17791 cat confdefs.h
>>conftest.
$ac_ext
17792 cat >>conftest.
$ac_ext <<_ACEOF
17793 /* end confdefs.h. */
17796 #include <sys/procfs.h>
17805 rm -f conftest.
$ac_objext
17806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17807 (eval $ac_compile) 2>conftest.er1
17809 grep -v '^ *+' conftest.er1
>conftest.err
17811 cat conftest.err
>&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } &&
17814 { ac_try
='test -z "$ac_c_werror_flag"
17815 || test ! -s conftest.err'
17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; } &&
17821 { ac_try
='test -s conftest.$ac_objext'
17822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823 (eval $ac_try) 2>&5
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); }; }; then
17827 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
17829 echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.
$ac_ext >&5
17832 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
17835 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17838 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
17840 cat >>confdefs.h
<<\_ACEOF
17841 #define HAVE_PRGREGSET32_T 1
17845 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
17846 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
17848 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
17849 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
17850 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
17851 echo $ECHO_N "(cached) $ECHO_C" >&6
17853 cat >conftest.
$ac_ext <<_ACEOF
17856 cat confdefs.h
>>conftest.
$ac_ext
17857 cat >>conftest.
$ac_ext <<_ACEOF
17858 /* end confdefs.h. */
17861 #include <sys/procfs.h>
17865 prfpregset32_t avar
17870 rm -f conftest.
$ac_objext
17871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17872 (eval $ac_compile) 2>conftest.er1
17874 grep -v '^ *+' conftest.er1
>conftest.err
17876 cat conftest.err
>&5
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); } &&
17879 { ac_try
='test -z "$ac_c_werror_flag"
17880 || test ! -s conftest.err'
17881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17882 (eval $ac_try) 2>&5
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); }; } &&
17886 { ac_try
='test -s conftest.$ac_objext'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; }; then
17892 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
17894 echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.
$ac_ext >&5
17897 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
17900 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17903 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
17905 cat >>confdefs.h
<<\_ACEOF
17906 #define HAVE_PRFPREGSET32_T 1
17910 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
17911 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
17913 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
17914 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
17915 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
17916 echo $ECHO_N "(cached) $ECHO_C" >&6
17918 cat >conftest.
$ac_ext <<_ACEOF
17921 cat confdefs.h
>>conftest.
$ac_ext
17922 cat >>conftest.
$ac_ext <<_ACEOF
17923 /* end confdefs.h. */
17926 #include <sys/procfs.h>
17935 rm -f conftest.
$ac_objext
17936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17937 (eval $ac_compile) 2>conftest.er1
17939 grep -v '^ *+' conftest.er1
>conftest.err
17941 cat conftest.err
>&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); } &&
17944 { ac_try
='test -z "$ac_c_werror_flag"
17945 || test ! -s conftest.err'
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; } &&
17951 { ac_try
='test -s conftest.$ac_objext'
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; }; then
17957 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
17959 echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.
$ac_ext >&5
17962 bfd_cv_have_sys_procfs_type_lwpid_t
=no
17965 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17968 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
17970 cat >>confdefs.h
<<\_ACEOF
17971 #define HAVE_LWPID_T 1
17975 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
17976 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
17978 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
17979 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
17980 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
17983 cat >conftest.
$ac_ext <<_ACEOF
17986 cat confdefs.h
>>conftest.
$ac_ext
17987 cat >>conftest.
$ac_ext <<_ACEOF
17988 /* end confdefs.h. */
17991 #include <sys/procfs.h>
18000 rm -f conftest.
$ac_objext
18001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18002 (eval $ac_compile) 2>conftest.er1
18004 grep -v '^ *+' conftest.er1
>conftest.err
18006 cat conftest.err
>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } &&
18009 { ac_try
='test -z "$ac_c_werror_flag"
18010 || test ! -s conftest.err'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; } &&
18016 { ac_try
='test -s conftest.$ac_objext'
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; }; then
18022 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
18024 echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.
$ac_ext >&5
18027 bfd_cv_have_sys_procfs_type_psaddr_t
=no
18030 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18033 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
18035 cat >>confdefs.h
<<\_ACEOF
18036 #define HAVE_PSADDR_T 1
18040 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18041 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
18043 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18044 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18045 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18046 echo $ECHO_N "(cached) $ECHO_C" >&6
18048 cat >conftest.
$ac_ext <<_ACEOF
18051 cat confdefs.h
>>conftest.
$ac_ext
18052 cat >>conftest.
$ac_ext <<_ACEOF
18053 /* end confdefs.h. */
18056 #include <sys/procfs.h>
18065 rm -f conftest.
$ac_objext
18066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18067 (eval $ac_compile) 2>conftest.er1
18069 grep -v '^ *+' conftest.er1
>conftest.err
18071 cat conftest.err
>&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); } &&
18074 { ac_try
='test -z "$ac_c_werror_flag"
18075 || test ! -s conftest.err'
18076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18077 (eval $ac_try) 2>&5
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); }; } &&
18081 { ac_try
='test -s conftest.$ac_objext'
18082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18083 (eval $ac_try) 2>&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); }; }; then
18087 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
18089 echo "$as_me: failed program was:" >&5
18090 sed 's/^/| /' conftest.
$ac_ext >&5
18092 bfd_cv_have_sys_procfs_type_prsysent_t
=no
18095 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18098 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18100 cat >>confdefs.h
<<\_ACEOF
18101 #define HAVE_PRSYSENT_T 1
18105 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18106 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18108 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18109 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18110 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18111 echo $ECHO_N "(cached) $ECHO_C" >&6
18113 cat >conftest.
$ac_ext <<_ACEOF
18116 cat confdefs.h
>>conftest.
$ac_ext
18117 cat >>conftest.
$ac_ext <<_ACEOF
18118 /* end confdefs.h. */
18121 #include <sys/procfs.h>
18130 rm -f conftest.
$ac_objext
18131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18132 (eval $ac_compile) 2>conftest.er1
18134 grep -v '^ *+' conftest.er1
>conftest.err
18136 cat conftest.err
>&5
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); } &&
18139 { ac_try
='test -z "$ac_c_werror_flag"
18140 || test ! -s conftest.err'
18141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18142 (eval $ac_try) 2>&5
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); }; } &&
18146 { ac_try
='test -s conftest.$ac_objext'
18147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148 (eval $ac_try) 2>&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); }; }; then
18152 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
18154 echo "$as_me: failed program was:" >&5
18155 sed 's/^/| /' conftest.
$ac_ext >&5
18157 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
18160 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18163 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18165 cat >>confdefs.h
<<\_ACEOF
18166 #define HAVE_PR_SIGSET_T 1
18170 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18171 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18173 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18174 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18175 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18176 echo $ECHO_N "(cached) $ECHO_C" >&6
18178 cat >conftest.
$ac_ext <<_ACEOF
18181 cat confdefs.h
>>conftest.
$ac_ext
18182 cat >>conftest.
$ac_ext <<_ACEOF
18183 /* end confdefs.h. */
18186 #include <sys/procfs.h>
18190 pr_sigaction64_t avar
18195 rm -f conftest.
$ac_objext
18196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18197 (eval $ac_compile) 2>conftest.er1
18199 grep -v '^ *+' conftest.er1
>conftest.err
18201 cat conftest.err
>&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } &&
18204 { ac_try
='test -z "$ac_c_werror_flag"
18205 || test ! -s conftest.err'
18206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207 (eval $ac_try) 2>&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; } &&
18211 { ac_try
='test -s conftest.$ac_objext'
18212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213 (eval $ac_try) 2>&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; }; then
18217 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
18219 echo "$as_me: failed program was:" >&5
18220 sed 's/^/| /' conftest.
$ac_ext >&5
18222 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
18225 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18228 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18230 cat >>confdefs.h
<<\_ACEOF
18231 #define HAVE_PR_SIGACTION64_T 1
18235 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18236 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18238 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18239 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18240 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18241 echo $ECHO_N "(cached) $ECHO_C" >&6
18243 cat >conftest.
$ac_ext <<_ACEOF
18246 cat confdefs.h
>>conftest.
$ac_ext
18247 cat >>conftest.
$ac_ext <<_ACEOF
18248 /* end confdefs.h. */
18251 #include <sys/procfs.h>
18255 pr_siginfo64_t avar
18260 rm -f conftest.
$ac_objext
18261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18262 (eval $ac_compile) 2>conftest.er1
18264 grep -v '^ *+' conftest.er1
>conftest.err
18266 cat conftest.err
>&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } &&
18269 { ac_try
='test -z "$ac_c_werror_flag"
18270 || test ! -s conftest.err'
18271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18272 (eval $ac_try) 2>&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); }; } &&
18276 { ac_try
='test -s conftest.$ac_objext'
18277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278 (eval $ac_try) 2>&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); }; }; then
18282 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
18284 echo "$as_me: failed program was:" >&5
18285 sed 's/^/| /' conftest.
$ac_ext >&5
18287 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
18290 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18293 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18295 cat >>confdefs.h
<<\_ACEOF
18296 #define HAVE_PR_SIGINFO64_T 1
18300 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18301 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18307 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18308 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18309 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18310 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18311 echo $ECHO_N "(cached) $ECHO_C" >&6
18313 if test "$cross_compiling" = yes; then
18314 gdb_cv_prfpregset_t_broken
=yes
18316 cat >conftest.
$ac_ext <<_ACEOF
18319 cat confdefs.h
>>conftest.
$ac_ext
18320 cat >>conftest.
$ac_ext <<_ACEOF
18321 /* end confdefs.h. */
18322 #include <sys/procfs.h>
18325 if (sizeof (prfpregset_t) == sizeof (void *))
18330 rm -f conftest
$ac_exeext
18331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18332 (eval $ac_link) 2>&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18337 (eval $ac_try) 2>&5
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); }; }; then
18341 gdb_cv_prfpregset_t_broken
=no
18343 echo "$as_me: program exited with status $ac_status" >&5
18344 echo "$as_me: failed program was:" >&5
18345 sed 's/^/| /' conftest.
$ac_ext >&5
18347 ( exit $ac_status )
18348 gdb_cv_prfpregset_t_broken
=yes
18350 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18354 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18355 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18356 if test $gdb_cv_prfpregset_t_broken = yes; then
18358 cat >>confdefs.h
<<\_ACEOF
18359 #define PRFPREGSET_T_BROKEN 1
18366 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18367 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18368 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18369 echo $ECHO_N "(cached) $ECHO_C" >&6
18371 cat >conftest.
$ac_ext <<_ACEOF
18374 cat confdefs.h
>>conftest.
$ac_ext
18375 cat >>conftest.
$ac_ext <<_ACEOF
18376 /* end confdefs.h. */
18377 #include <unistd.h>
18378 #include <sys/types.h>
18379 #include <sys/procfs.h>
18386 dummy = ioctl(0, PIOCSET, &dummy);
18392 rm -f conftest.
$ac_objext
18393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18394 (eval $ac_compile) 2>conftest.er1
18396 grep -v '^ *+' conftest.er1
>conftest.err
18398 cat conftest.err
>&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); } &&
18401 { ac_try
='test -z "$ac_c_werror_flag"
18402 || test ! -s conftest.err'
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; } &&
18408 { ac_try
='test -s conftest.$ac_objext'
18409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18410 (eval $ac_try) 2>&5
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; }; then
18414 gdb_cv_have_procfs_piocset
=yes
18416 echo "$as_me: failed program was:" >&5
18417 sed 's/^/| /' conftest.
$ac_ext >&5
18419 gdb_cv_have_procfs_piocset
=no
18421 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18424 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18425 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18426 if test $gdb_cv_have_procfs_piocset = yes; then
18428 cat >>confdefs.h
<<\_ACEOF
18429 #define HAVE_PROCFS_PIOCSET 1
18435 if test ${host} = ${target} ; then
18437 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18438 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18439 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18440 echo $ECHO_N "(cached) $ECHO_C" >&6
18442 cat >conftest.
$ac_ext <<_ACEOF
18445 cat confdefs.h
>>conftest.
$ac_ext
18446 cat >>conftest.
$ac_ext <<_ACEOF
18447 /* end confdefs.h. */
18452 struct link_map lm; (void) lm.l_addr;
18457 rm -f conftest.
$ac_objext
18458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18459 (eval $ac_compile) 2>conftest.er1
18461 grep -v '^ *+' conftest.er1
>conftest.err
18463 cat conftest.err
>&5
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); } &&
18466 { ac_try
='test -z "$ac_c_werror_flag"
18467 || test ! -s conftest.err'
18468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469 (eval $ac_try) 2>&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; } &&
18473 { ac_try
='test -s conftest.$ac_objext'
18474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18475 (eval $ac_try) 2>&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); }; }; then
18479 gdb_cv_have_struct_link_map_with_l_members
=yes
18481 echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.
$ac_ext >&5
18484 gdb_cv_have_struct_link_map_with_l_members
=no
18486 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18489 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18490 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18491 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18493 cat >>confdefs.h
<<\_ACEOF
18494 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18500 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18501 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18502 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18503 echo $ECHO_N "(cached) $ECHO_C" >&6
18505 cat >conftest.
$ac_ext <<_ACEOF
18508 cat confdefs.h
>>conftest.
$ac_ext
18509 cat >>conftest.
$ac_ext <<_ACEOF
18510 /* end confdefs.h. */
18511 #include <sys/types.h>
18516 struct link_map lm; (void) lm.lm_addr;
18521 rm -f conftest.
$ac_objext
18522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18523 (eval $ac_compile) 2>conftest.er1
18525 grep -v '^ *+' conftest.er1
>conftest.err
18527 cat conftest.err
>&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } &&
18530 { ac_try
='test -z "$ac_c_werror_flag"
18531 || test ! -s conftest.err'
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; } &&
18537 { ac_try
='test -s conftest.$ac_objext'
18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539 (eval $ac_try) 2>&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
18543 gdb_cv_have_struct_link_map_with_lm_members
=yes
18545 echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.
$ac_ext >&5
18548 gdb_cv_have_struct_link_map_with_lm_members
=no
18550 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18553 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18554 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18555 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18557 cat >>confdefs.h
<<\_ACEOF
18558 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18564 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18565 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18566 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18567 echo $ECHO_N "(cached) $ECHO_C" >&6
18569 cat >conftest.
$ac_ext <<_ACEOF
18572 cat confdefs.h
>>conftest.
$ac_ext
18573 cat >>conftest.
$ac_ext <<_ACEOF
18574 /* end confdefs.h. */
18575 #include <sys/types.h>
18576 #ifdef HAVE_NLIST_H
18583 struct so_map lm; (void) lm.som_addr;
18588 rm -f conftest.
$ac_objext
18589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18590 (eval $ac_compile) 2>conftest.er1
18592 grep -v '^ *+' conftest.er1
>conftest.err
18594 cat conftest.err
>&5
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); } &&
18597 { ac_try
='test -z "$ac_c_werror_flag"
18598 || test ! -s conftest.err'
18599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18600 (eval $ac_try) 2>&5
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); }; } &&
18604 { ac_try
='test -s conftest.$ac_objext'
18605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18606 (eval $ac_try) 2>&5
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); }; }; then
18610 gdb_cv_have_struct_so_map_with_som_members
=yes
18612 echo "$as_me: failed program was:" >&5
18613 sed 's/^/| /' conftest.
$ac_ext >&5
18615 gdb_cv_have_struct_so_map_with_som_members
=no
18617 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18620 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18621 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
18622 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
18624 cat >>confdefs.h
<<\_ACEOF
18625 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
18631 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18632 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18633 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18634 echo $ECHO_N "(cached) $ECHO_C" >&6
18636 cat >conftest.
$ac_ext <<_ACEOF
18639 cat confdefs.h
>>conftest.
$ac_ext
18640 cat >>conftest.
$ac_ext <<_ACEOF
18641 /* end confdefs.h. */
18643 #include <sys/link.h>
18647 struct link_map32 l;
18652 rm -f conftest.
$ac_objext
18653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18654 (eval $ac_compile) 2>conftest.er1
18656 grep -v '^ *+' conftest.er1
>conftest.err
18658 cat conftest.err
>&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); } &&
18661 { ac_try
='test -z "$ac_c_werror_flag"
18662 || test ! -s conftest.err'
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; } &&
18668 { ac_try
='test -s conftest.$ac_objext'
18669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670 (eval $ac_try) 2>&5
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; }; then
18674 gdb_cv_have_struct_link_map32
=yes
18676 echo "$as_me: failed program was:" >&5
18677 sed 's/^/| /' conftest.
$ac_ext >&5
18679 gdb_cv_have_struct_link_map32
=no
18681 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18684 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18685 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
18686 if test $gdb_cv_have_struct_link_map32 = yes; then
18688 cat >>confdefs.h
<<\_ACEOF
18689 #define HAVE_STRUCT_LINK_MAP32 1
18693 cat >>confdefs.h
<<\_ACEOF
18694 #define _SYSCALL32 1
18700 # Check if the compiler supports the `long long' type.
18702 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18703 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18704 if test "${gdb_cv_c_long_long+set}" = set; then
18705 echo $ECHO_N "(cached) $ECHO_C" >&6
18707 cat >conftest.
$ac_ext <<_ACEOF
18710 cat confdefs.h
>>conftest.
$ac_ext
18711 cat >>conftest.
$ac_ext <<_ACEOF
18712 /* end confdefs.h. */
18713 extern long long foo;
18717 switch (foo & 2) { case 0: return 1; }
18722 rm -f conftest.
$ac_objext
18723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18724 (eval $ac_compile) 2>conftest.er1
18726 grep -v '^ *+' conftest.er1
>conftest.err
18728 cat conftest.err
>&5
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } &&
18731 { ac_try
='test -z "$ac_c_werror_flag"
18732 || test ! -s conftest.err'
18733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734 (eval $ac_try) 2>&5
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; } &&
18738 { ac_try
='test -s conftest.$ac_objext'
18739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18740 (eval $ac_try) 2>&5
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); }; }; then
18744 gdb_cv_c_long_long
=yes
18746 echo "$as_me: failed program was:" >&5
18747 sed 's/^/| /' conftest.
$ac_ext >&5
18749 gdb_cv_c_long_long
=no
18751 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18753 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18754 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
18755 if test $gdb_cv_c_long_long = yes; then
18757 cat >>confdefs.h
<<\_ACEOF
18758 #define CC_HAS_LONG_LONG 1
18763 # Check if the compiler and runtime support printing long longs.
18765 echo "$as_me:$LINENO: checking for long long support in printf" >&5
18766 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18767 if test "${gdb_cv_printf_has_long_long+set}" = set; then
18768 echo $ECHO_N "(cached) $ECHO_C" >&6
18770 if test "$cross_compiling" = yes; then
18771 gdb_cv_printf_has_long_long
=no
18773 cat >conftest.
$ac_ext <<_ACEOF
18776 cat confdefs.h
>>conftest.
$ac_ext
18777 cat >>conftest.
$ac_ext <<_ACEOF
18778 /* end confdefs.h. */
18779 $ac_includes_default
18785 l = (l << 16) + 0x0123;
18786 l = (l << 16) + 0x4567;
18787 l = (l << 16) + 0x89ab;
18788 l = (l << 16) + 0xcdef;
18789 sprintf (buf, "0x%016llx", l);
18790 return (strcmp ("0x0123456789abcdef", buf));
18795 rm -f conftest
$ac_exeext
18796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18797 (eval $ac_link) 2>&5
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802 (eval $ac_try) 2>&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); }; }; then
18806 gdb_cv_printf_has_long_long
=yes
18808 echo "$as_me: program exited with status $ac_status" >&5
18809 echo "$as_me: failed program was:" >&5
18810 sed 's/^/| /' conftest.
$ac_ext >&5
18812 ( exit $ac_status )
18813 gdb_cv_printf_has_long_long
=no
18815 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18818 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18819 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
18820 if test $gdb_cv_printf_has_long_long = yes; then
18822 cat >>confdefs.h
<<\_ACEOF
18823 #define PRINTF_HAS_LONG_LONG 1
18828 # Check if the compiler and runtime support printing decfloats.
18830 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
18831 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
18832 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
18833 echo $ECHO_N "(cached) $ECHO_C" >&6
18835 if test "$cross_compiling" = yes; then
18836 gdb_cv_printf_has_decfloat
=no
18838 cat >conftest.
$ac_ext <<_ACEOF
18841 cat confdefs.h
>>conftest.
$ac_ext
18842 cat >>conftest.
$ac_ext <<_ACEOF
18843 /* end confdefs.h. */
18844 $ac_includes_default
18849 _Decimal32 d32 = 1.2345df;
18850 _Decimal64 d64 = 1.2345dd;
18851 _Decimal128 d128 = 1.2345dl;
18852 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
18853 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
18858 rm -f conftest
$ac_exeext
18859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18860 (eval $ac_link) 2>&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865 (eval $ac_try) 2>&5
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; }; then
18869 gdb_cv_printf_has_decfloat
=yes
18871 echo "$as_me: program exited with status $ac_status" >&5
18872 echo "$as_me: failed program was:" >&5
18873 sed 's/^/| /' conftest.
$ac_ext >&5
18875 ( exit $ac_status )
18876 gdb_cv_printf_has_decfloat
=no
18878 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18881 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
18882 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
18883 if test $gdb_cv_printf_has_decfloat = yes; then
18885 cat >>confdefs.h
<<\_ACEOF
18886 #define PRINTF_HAS_DECFLOAT 1
18891 # Check if the compiler supports the `long double' type. We can't use
18892 # AC_C_LONG_DOUBLE because that one does additional checks on the
18893 # constants defined in <float.h> that fail on some systems,
18894 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
18896 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
18897 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
18898 if test "${gdb_cv_c_long_double+set}" = set; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18901 cat >conftest.
$ac_ext <<_ACEOF
18904 cat confdefs.h
>>conftest.
$ac_ext
18905 cat >>conftest.
$ac_ext <<_ACEOF
18906 /* end confdefs.h. */
18909 rm -f conftest.
$ac_objext
18910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18911 (eval $ac_compile) 2>conftest.er1
18913 grep -v '^ *+' conftest.er1
>conftest.err
18915 cat conftest.err
>&5
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); } &&
18918 { ac_try
='test -z "$ac_c_werror_flag"
18919 || test ! -s conftest.err'
18920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18921 (eval $ac_try) 2>&5
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); }; } &&
18925 { ac_try
='test -s conftest.$ac_objext'
18926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18927 (eval $ac_try) 2>&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; }; then
18931 gdb_cv_c_long_double
=yes
18933 echo "$as_me: failed program was:" >&5
18934 sed 's/^/| /' conftest.
$ac_ext >&5
18936 gdb_cv_c_long_double
=no
18938 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18940 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
18941 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
18942 if test $gdb_cv_c_long_double = yes; then
18944 cat >>confdefs.h
<<\_ACEOF
18945 #define HAVE_LONG_DOUBLE 1
18950 # Check if the compiler and runtime support printing long doubles.
18952 echo "$as_me:$LINENO: checking for long double support in printf" >&5
18953 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
18954 if test "${gdb_cv_printf_has_long_double+set}" = set; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18957 if test "$cross_compiling" = yes; then
18958 gdb_cv_printf_has_long_double
=no
18960 cat >conftest.
$ac_ext <<_ACEOF
18963 cat confdefs.h
>>conftest.
$ac_ext
18964 cat >>conftest.
$ac_ext <<_ACEOF
18965 /* end confdefs.h. */
18966 $ac_includes_default
18971 long double f = 3.141592653;
18972 sprintf (buf, "%Lg", f);
18973 return (strncmp ("3.14159", buf, 7));
18978 rm -f conftest
$ac_exeext
18979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18980 (eval $ac_link) 2>&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985 (eval $ac_try) 2>&5
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); }; }; then
18989 gdb_cv_printf_has_long_double
=yes
18991 echo "$as_me: program exited with status $ac_status" >&5
18992 echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.
$ac_ext >&5
18995 ( exit $ac_status )
18996 gdb_cv_printf_has_long_double
=no
18998 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19001 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19002 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
19003 if test $gdb_cv_printf_has_long_double = yes; then
19005 cat >>confdefs.h
<<\_ACEOF
19006 #define PRINTF_HAS_LONG_DOUBLE 1
19011 # Check if the compiler and runtime support scanning long doubles.
19013 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19014 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19015 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19016 echo $ECHO_N "(cached) $ECHO_C" >&6
19018 if test "$cross_compiling" = yes; then
19019 gdb_cv_scanf_has_long_double
=no
19021 cat >conftest.
$ac_ext <<_ACEOF
19024 cat confdefs.h
>>conftest.
$ac_ext
19025 cat >>conftest.
$ac_ext <<_ACEOF
19026 /* end confdefs.h. */
19031 char *buf = "3.141592653";
19033 sscanf (buf, "%Lg", &f);
19034 return !(f > 3.14159 && f < 3.14160);
19039 rm -f conftest
$ac_exeext
19040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19041 (eval $ac_link) 2>&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046 (eval $ac_try) 2>&5
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; }; then
19050 gdb_cv_scanf_has_long_double
=yes
19052 echo "$as_me: program exited with status $ac_status" >&5
19053 echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.
$ac_ext >&5
19056 ( exit $ac_status )
19057 gdb_cv_scanf_has_long_double
=no
19059 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19062 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19063 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19064 if test $gdb_cv_scanf_has_long_double = yes; then
19066 cat >>confdefs.h
<<\_ACEOF
19067 #define SCANF_HAS_LONG_DOUBLE 1
19074 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19075 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19076 if test "${gdb_cv_bigtoc+set}" = set; then
19077 echo $ECHO_N "(cached) $ECHO_C" >&6
19080 SAVE_LDFLAGS
=$LDFLAGS
19083 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
19084 *) gdb_cv_bigtoc
=-bbigtoc ;;
19087 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
19088 cat >conftest.
$ac_ext <<_ACEOF
19091 cat confdefs.h
>>conftest.
$ac_ext
19092 cat >>conftest.
$ac_ext <<_ACEOF
19093 /* end confdefs.h. */
19103 rm -f conftest.
$ac_objext conftest
$ac_exeext
19104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19105 (eval $ac_link) 2>conftest.er1
19107 grep -v '^ *+' conftest.er1
>conftest.err
19109 cat conftest.err
>&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } &&
19112 { ac_try
='test -z "$ac_c_werror_flag"
19113 || test ! -s conftest.err'
19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115 (eval $ac_try) 2>&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; } &&
19119 { ac_try
='test -s conftest$ac_exeext'
19120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 (eval $ac_try) 2>&5
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; }; then
19127 echo "$as_me: failed program was:" >&5
19128 sed 's/^/| /' conftest.
$ac_ext >&5
19132 rm -f conftest.err conftest.
$ac_objext \
19133 conftest
$ac_exeext conftest.
$ac_ext
19134 LDFLAGS
="${SAVE_LDFLAGS}"
19137 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19138 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19139 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19145 if test ${build} = ${host} -a ${host} = ${target} ; then
19148 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19149 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19150 if test -f /usr
/include
/dce
/cma_config.h
; then
19151 if test "$GCC" = "yes" ; then
19152 echo "$as_me:$LINENO: result: yes" >&5
19153 echo "${ECHO_T}yes" >&6
19155 cat >>confdefs.h
<<\_ACEOF
19156 #define HAVE_HPUX_THREAD_SUPPORT 1
19159 CONFIG_OBS
="${CONFIG_OBS} hpux-thread.o"
19160 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
19162 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19163 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19166 echo "$as_me:$LINENO: result: no" >&5
19167 echo "${ECHO_T}no" >&6
19171 # See if thread_db library is around for Solaris thread debugging.
19172 # Note that we must explicitly test for version 1 of the library
19173 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19175 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19176 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19177 if test -f /usr
/lib
/libthread_db.so
.1 ; then
19178 echo "$as_me:$LINENO: result: yes" >&5
19179 echo "${ECHO_T}yes" >&6
19181 cat >>confdefs.h
<<\_ACEOF
19182 #define HAVE_THREAD_DB_LIB 1
19185 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
19186 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
19188 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19189 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19190 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19191 echo $ECHO_N "(cached) $ECHO_C" >&6
19193 ac_check_lib_save_LIBS
=$LIBS
19195 cat >conftest.
$ac_ext <<_ACEOF
19198 cat confdefs.h
>>conftest.
$ac_ext
19199 cat >>conftest.
$ac_ext <<_ACEOF
19200 /* end confdefs.h. */
19202 /* Override any gcc2 internal prototype to avoid an error. */
19206 /* We use char because int might match the return type of a gcc2
19207 builtin and then its argument prototype would still apply. */
19217 rm -f conftest.
$ac_objext conftest
$ac_exeext
19218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19219 (eval $ac_link) 2>conftest.er1
19221 grep -v '^ *+' conftest.er1
>conftest.err
19223 cat conftest.err
>&5
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } &&
19226 { ac_try
='test -z "$ac_c_werror_flag"
19227 || test ! -s conftest.err'
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; } &&
19233 { ac_try
='test -s conftest$ac_exeext'
19234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235 (eval $ac_try) 2>&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; }; then
19239 ac_cv_lib_dl_dlopen
=yes
19241 echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.
$ac_ext >&5
19244 ac_cv_lib_dl_dlopen
=no
19246 rm -f conftest.err conftest.
$ac_objext \
19247 conftest
$ac_exeext conftest.
$ac_ext
19248 LIBS
=$ac_check_lib_save_LIBS
19250 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19251 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19252 if test $ac_cv_lib_dl_dlopen = yes; then
19253 cat >>confdefs.h
<<_ACEOF
19254 #define HAVE_LIBDL 1
19261 if test "$GCC" = "yes" ; then
19262 # The GNU linker requires the -export-dynamic option to make
19263 # all symbols visible in the dynamic symbol table.
19264 hold_ldflags
=$LDFLAGS
19265 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19266 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19267 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
19268 cat >conftest.
$ac_ext <<_ACEOF
19271 cat confdefs.h
>>conftest.
$ac_ext
19272 cat >>conftest.
$ac_ext <<_ACEOF
19273 /* end confdefs.h. */
19283 rm -f conftest.
$ac_objext conftest
$ac_exeext
19284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19285 (eval $ac_link) 2>conftest.er1
19287 grep -v '^ *+' conftest.er1
>conftest.err
19289 cat conftest.err
>&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } &&
19292 { ac_try
='test -z "$ac_c_werror_flag"
19293 || test ! -s conftest.err'
19294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19295 (eval $ac_try) 2>&5
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); }; } &&
19299 { ac_try
='test -s conftest$ac_exeext'
19300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301 (eval $ac_try) 2>&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); }; }; then
19307 echo "$as_me: failed program was:" >&5
19308 sed 's/^/| /' conftest.
$ac_ext >&5
19312 rm -f conftest.err conftest.
$ac_objext \
19313 conftest
$ac_exeext conftest.
$ac_ext
19314 LDFLAGS
=$hold_ldflags
19315 echo "$as_me:$LINENO: result: $found" >&5
19316 echo "${ECHO_T}$found" >&6
19317 if test $found = yes; then
19318 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19321 # Sun randomly tweaked the prototypes in <proc_service.h>
19323 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19324 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19325 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19326 echo $ECHO_N "(cached) $ECHO_C" >&6
19329 cat >conftest.
$ac_ext <<_ACEOF
19332 cat confdefs.h
>>conftest.
$ac_ext
19333 cat >>conftest.
$ac_ext <<_ACEOF
19334 /* end confdefs.h. */
19336 #include <proc_service.h>
19337 ps_err_e ps_pdwrite
19338 (struct ps_prochandle*, psaddr_t, const void*, size_t);
19348 rm -f conftest.
$ac_objext
19349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19350 (eval $ac_compile) 2>conftest.er1
19352 grep -v '^ *+' conftest.er1
>conftest.err
19354 cat conftest.err
>&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); } &&
19357 { ac_try
='test -z "$ac_c_werror_flag"
19358 || test ! -s conftest.err'
19359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360 (eval $ac_try) 2>&5
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; } &&
19364 { ac_try
='test -s conftest.$ac_objext'
19365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366 (eval $ac_try) 2>&5
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; }; then
19370 gdb_cv_proc_service_is_old
=no
19372 echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.
$ac_ext >&5
19375 gdb_cv_proc_service_is_old
=yes
19377 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19381 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19382 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19383 if test $gdb_cv_proc_service_is_old = yes; then
19385 cat >>confdefs.h
<<\_ACEOF
19386 #define PROC_SERVICE_IS_OLD 1
19391 echo "$as_me:$LINENO: result: no" >&5
19392 echo "${ECHO_T}no" >&6
19396 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19397 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19398 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19399 echo $ECHO_N "(cached) $ECHO_C" >&6
19401 cat >conftest.
$ac_ext <<_ACEOF
19404 cat confdefs.h
>>conftest.
$ac_ext
19405 cat >>conftest.
$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19407 #include <sys/pthdebug.h>
19411 #ifndef PTHDB_VERSION_3
19418 rm -f conftest.
$ac_objext
19419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19420 (eval $ac_compile) 2>conftest.er1
19422 grep -v '^ *+' conftest.er1
>conftest.err
19424 cat conftest.err
>&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); } &&
19427 { ac_try
='test -z "$ac_c_werror_flag"
19428 || test ! -s conftest.err'
19429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430 (eval $ac_try) 2>&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; } &&
19434 { ac_try
='test -s conftest.$ac_objext'
19435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19436 (eval $ac_try) 2>&5
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; }; then
19440 gdb_cv_have_aix_thread_debug
=yes
19442 echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.
$ac_ext >&5
19445 gdb_cv_have_aix_thread_debug
=no
19447 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19450 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19451 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19452 if test $gdb_cv_have_aix_thread_debug = yes; then
19453 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
19454 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
19455 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
19462 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19463 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19464 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19465 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19468 cat >conftest.
$ac_ext <<_ACEOF
19471 cat confdefs.h
>>conftest.
$ac_ext
19472 cat >>conftest.
$ac_ext <<_ACEOF
19473 /* end confdefs.h. */
19474 #include <thread_db.h>
19478 int i = TD_NOTALLOC;
19483 rm -f conftest.
$ac_objext
19484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19485 (eval $ac_compile) 2>conftest.er1
19487 grep -v '^ *+' conftest.er1
>conftest.err
19489 cat conftest.err
>&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); } &&
19492 { ac_try
='test -z "$ac_c_werror_flag"
19493 || test ! -s conftest.err'
19494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19495 (eval $ac_try) 2>&5
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); }; } &&
19499 { ac_try
='test -s conftest.$ac_objext'
19500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19501 (eval $ac_try) 2>&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); }; }; then
19505 gdb_cv_thread_db_h_has_td_notalloc
=yes
19507 echo "$as_me: failed program was:" >&5
19508 sed 's/^/| /' conftest.
$ac_ext >&5
19510 gdb_cv_thread_db_h_has_td_notalloc
=no
19513 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19516 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19517 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19518 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
19519 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
19520 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19523 cat >conftest.
$ac_ext <<_ACEOF
19526 cat confdefs.h
>>conftest.
$ac_ext
19527 cat >>conftest.
$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19529 #include <thread_db.h>
19533 int i = TD_VERSION;
19538 rm -f conftest.
$ac_objext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19540 (eval $ac_compile) 2>conftest.er1
19542 grep -v '^ *+' conftest.er1
>conftest.err
19544 cat conftest.err
>&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
19547 { ac_try
='test -z "$ac_c_werror_flag"
19548 || test ! -s conftest.err'
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; } &&
19554 { ac_try
='test -s conftest.$ac_objext'
19555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19556 (eval $ac_try) 2>&5
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); }; }; then
19560 gdb_cv_thread_db_h_has_td_version
=yes
19562 echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.
$ac_ext >&5
19565 gdb_cv_thread_db_h_has_td_version
=no
19568 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19571 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
19572 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
19573 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
19574 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
19575 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
19576 echo $ECHO_N "(cached) $ECHO_C" >&6
19578 cat >conftest.
$ac_ext <<_ACEOF
19581 cat confdefs.h
>>conftest.
$ac_ext
19582 cat >>conftest.
$ac_ext <<_ACEOF
19583 /* end confdefs.h. */
19584 #include <thread_db.h>
19593 rm -f conftest.
$ac_objext
19594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19595 (eval $ac_compile) 2>conftest.er1
19597 grep -v '^ *+' conftest.er1
>conftest.err
19599 cat conftest.err
>&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); } &&
19602 { ac_try
='test -z "$ac_c_werror_flag"
19603 || test ! -s conftest.err'
19604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605 (eval $ac_try) 2>&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; } &&
19609 { ac_try
='test -s conftest.$ac_objext'
19610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611 (eval $ac_try) 2>&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; }; then
19615 gdb_cv_thread_db_h_has_td_notls
=yes
19617 echo "$as_me: failed program was:" >&5
19618 sed 's/^/| /' conftest.
$ac_ext >&5
19620 gdb_cv_thread_db_h_has_td_notls
=no
19623 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19626 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
19627 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
19629 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19631 cat >>confdefs.h
<<\_ACEOF
19632 #define THREAD_DB_HAS_TD_NOTALLOC 1
19636 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
19638 cat >>confdefs.h
<<\_ACEOF
19639 #define THREAD_DB_HAS_TD_VERSION 1
19643 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
19645 cat >>confdefs.h
<<\_ACEOF
19646 #define THREAD_DB_HAS_TD_NOTLS 1
19651 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19652 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19653 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19654 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19655 echo $ECHO_N "(cached) $ECHO_C" >&6
19657 cat >conftest.
$ac_ext <<_ACEOF
19660 cat confdefs.h
>>conftest.
$ac_ext
19661 cat >>conftest.
$ac_ext <<_ACEOF
19662 /* end confdefs.h. */
19663 #include <sys/syscall.h>
19667 int i = __NR_tkill;
19672 rm -f conftest.
$ac_objext
19673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19674 (eval $ac_compile) 2>conftest.er1
19676 grep -v '^ *+' conftest.er1
>conftest.err
19678 cat conftest.err
>&5
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); } &&
19681 { ac_try
='test -z "$ac_c_werror_flag"
19682 || test ! -s conftest.err'
19683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19684 (eval $ac_try) 2>&5
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); }; } &&
19688 { ac_try
='test -s conftest.$ac_objext'
19689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19690 (eval $ac_try) 2>&5
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); }; }; then
19694 gdb_cv_sys_syscall_h_has_tkill
=yes
19696 echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.
$ac_ext >&5
19699 gdb_cv_sys_syscall_h_has_tkill
=no
19702 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19705 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19706 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19708 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19710 cat >>confdefs.h
<<\_ACEOF
19711 #define HAVE_TKILL_SYSCALL 1
19716 echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
19717 echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
19718 if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
19719 echo $ECHO_N "(cached) $ECHO_C" >&6
19721 cat >conftest.
$ac_ext <<_ACEOF
19724 cat confdefs.h
>>conftest.
$ac_ext
19725 cat >>conftest.
$ac_ext <<_ACEOF
19726 /* end confdefs.h. */
19727 #include <sys/personality.h>
19732 #ifndef ADDR_NO_RANDOMIZE
19733 char *p = (char *) ADDR_NO_RANDOMIZE;
19740 rm -f conftest.
$ac_objext
19741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19742 (eval $ac_compile) 2>conftest.er1
19744 grep -v '^ *+' conftest.er1
>conftest.err
19746 cat conftest.err
>&5
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); } &&
19749 { ac_try
='test -z "$ac_c_werror_flag"
19750 || test ! -s conftest.err'
19751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19752 (eval $ac_try) 2>&5
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); }; } &&
19756 { ac_try
='test -s conftest.$ac_objext'
19757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19758 (eval $ac_try) 2>&5
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); }; }; then
19762 ac_cv_have_decl_ADDR_NO_RANDOMIZE
=yes
19764 echo "$as_me: failed program was:" >&5
19765 sed 's/^/| /' conftest.
$ac_ext >&5
19767 ac_cv_have_decl_ADDR_NO_RANDOMIZE
=no
19769 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19771 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
19772 echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
19773 if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
19775 cat >>confdefs.h
<<_ACEOF
19776 #define HAVE_DECL_ADDR_NO_RANDOMIZE 1
19781 cat >>confdefs.h
<<_ACEOF
19782 #define HAVE_DECL_ADDR_NO_RANDOMIZE 0
19790 if test "$cross_compiling" = yes; then
19791 cat >conftest.
$ac_ext <<_ACEOF
19794 cat confdefs.h
>>conftest.
$ac_ext
19795 cat >>conftest.
$ac_ext <<_ACEOF
19796 /* end confdefs.h. */
19797 #include <sys/personality.h>
19802 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
19803 # define ADDR_NO_RANDOMIZE 0x0040000
19805 /* Test the flag could be set and stays set. */
19806 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19807 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19813 rm -f conftest.
$ac_objext conftest
$ac_exeext
19814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19815 (eval $ac_link) 2>conftest.er1
19817 grep -v '^ *+' conftest.er1
>conftest.err
19819 cat conftest.err
>&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } &&
19822 { ac_try
='test -z "$ac_c_werror_flag"
19823 || test ! -s conftest.err'
19824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19825 (eval $ac_try) 2>&5
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); }; } &&
19829 { ac_try
='test -s conftest$ac_exeext'
19830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19831 (eval $ac_try) 2>&5
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); }; }; then
19835 have_personality
=true
19837 echo "$as_me: failed program was:" >&5
19838 sed 's/^/| /' conftest.
$ac_ext >&5
19840 have_personality
=false
19842 rm -f conftest.err conftest.
$ac_objext \
19843 conftest
$ac_exeext conftest.
$ac_ext
19845 cat >conftest.
$ac_ext <<_ACEOF
19848 cat confdefs.h
>>conftest.
$ac_ext
19849 cat >>conftest.
$ac_ext <<_ACEOF
19850 /* end confdefs.h. */
19851 #include <sys/personality.h>
19856 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
19857 # define ADDR_NO_RANDOMIZE 0x0040000
19859 /* Test the flag could be set and stays set. */
19860 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19861 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19867 rm -f conftest
$ac_exeext
19868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19869 (eval $ac_link) 2>&5
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874 (eval $ac_try) 2>&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; }; then
19878 have_personality
=true
19880 echo "$as_me: program exited with status $ac_status" >&5
19881 echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.
$ac_ext >&5
19884 ( exit $ac_status )
19885 have_personality
=false
19887 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19889 if $have_personality
19892 cat >>confdefs.h
<<\_ACEOF
19893 #define HAVE_PERSONALITY 1
19900 # Check whether --with-sysroot or --without-sysroot was given.
19901 if test "${with_sysroot+set}" = set; then
19902 withval
="$with_sysroot"
19904 case ${with_sysroot} in
19905 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
19906 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
19909 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19911 if test "x$prefix" = xNONE
; then
19912 test_prefix
=/usr
/local
19914 test_prefix
=$prefix
19916 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
19917 test_exec_prefix
=$test_prefix
19919 test_exec_prefix
=$exec_prefix
19921 case ${TARGET_SYSTEM_ROOT} in
19922 "${test_prefix}"|
"${test_prefix}/"*|\
19923 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
19924 '${prefix}'|
'${prefix}/'*|\
19925 '${exec_prefix}'|
'${exec_prefix}/'*)
19926 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19927 TARGET_SYSTEM_ROOT_DEFINE
="$t"
19933 TARGET_SYSTEM_ROOT
=
19934 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
19942 # Check whether --with-system-gdbinit or --without-system-gdbinit was given.
19943 if test "${with_system_gdbinit+set}" = set; then
19944 withval
="$with_system_gdbinit"
19945 system_gdbinit
=${withval}
19949 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
19950 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19951 ac_define_dir
=`eval echo $system_gdbinit`
19952 ac_define_dir
=`eval echo $ac_define_dir`
19954 cat >>confdefs.h
<<_ACEOF
19955 #define SYSTEM_GDBINIT "$ac_define_dir"
19960 if test "x$prefix" = xNONE
; then
19961 test_prefix
=$ac_default_prefix
19963 test_prefix
=$prefix
19965 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
19966 test_exec_prefix
=$test_prefix
19968 test_exec_prefix
=$exec_prefix
19970 case ${system_gdbinit} in
19971 "${test_prefix}"|
"${test_prefix}/"*|\
19972 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
19973 '${prefix}'|
'${prefix}/'*|\
19974 '${exec_prefix}'|
'${exec_prefix}/'*)
19976 cat >>confdefs.h
<<\_ACEOF
19977 #define SYSTEM_GDBINIT_RELOCATABLE 1
19983 # Check whether --enable-werror or --disable-werror was given.
19984 if test "${enable_werror+set}" = set; then
19985 enableval
="$enable_werror"
19986 case "${enableval}" in
19987 yes | y
) ERROR_ON_WARNING
="yes" ;;
19988 no | n
) ERROR_ON_WARNING
="no" ;;
19989 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
19990 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
19991 { (exit 1); exit 1; }; } ;;
19995 # Enable -Werror by default when using gcc
19996 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
19997 ERROR_ON_WARNING
=yes
20001 if test "${ERROR_ON_WARNING}" = yes ; then
20002 WERROR_CFLAGS
="-Werror"
20005 # The entries after -Wno-pointer-sign are disabled warnings which may
20006 # be enabled in the future, which can not currently be used to build
20008 # NOTE: If you change this list, remember to update
20009 # gdb/doc/gdbint.texinfo.
20010 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
20011 -Wformat-nonliteral -Wno-pointer-sign \
20012 -Wno-unused -Wno-switch -Wno-char-subscripts"
20014 # Enable -Wno-format by default when using gcc on mingw since many
20015 # GCC versions complain about %I64.
20017 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
20020 # Check whether --enable-build-warnings or --disable-build-warnings was given.
20021 if test "${enable_build_warnings+set}" = set; then
20022 enableval
="$enable_build_warnings"
20023 case "${enableval}" in
20025 no
) build_warnings
="-w";;
20026 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
20027 build_warnings
="${build_warnings} ${t}";;
20028 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
20029 build_warnings
="${t} ${build_warnings}";;
20030 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20032 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
20033 echo "Setting compiler warning flags = $build_warnings" 6>&1
20035 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
20036 if test "${enable_gdb_build_warnings+set}" = set; then
20037 enableval
="$enable_gdb_build_warnings"
20038 case "${enableval}" in
20040 no
) build_warnings
="-w";;
20041 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
20042 build_warnings
="${build_warnings} ${t}";;
20043 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
20044 build_warnings
="${t} ${build_warnings}";;
20045 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20047 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
20048 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
20051 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
20053 echo "$as_me:$LINENO: checking compiler warning flags" >&5
20054 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
20055 # Separate out the -Werror flag as some files just cannot be
20056 # compiled with it enabled.
20057 for w
in ${build_warnings}; do
20059 -Werr*) WERROR_CFLAGS
=-Werror ;;
20060 *) # Check that GCC accepts it
20061 saved_CFLAGS
="$CFLAGS"
20062 CFLAGS
="$CFLAGS $w"
20063 cat >conftest.
$ac_ext <<_ACEOF
20066 cat confdefs.h
>>conftest.
$ac_ext
20067 cat >>conftest.
$ac_ext <<_ACEOF
20068 /* end confdefs.h. */
20078 rm -f conftest.
$ac_objext
20079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20080 (eval $ac_compile) 2>conftest.er1
20082 grep -v '^ *+' conftest.er1
>conftest.err
20084 cat conftest.err
>&5
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); } &&
20087 { ac_try
='test -z "$ac_c_werror_flag"
20088 || test ! -s conftest.err'
20089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090 (eval $ac_try) 2>&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); }; } &&
20094 { ac_try
='test -s conftest.$ac_objext'
20095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096 (eval $ac_try) 2>&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); }; }; then
20100 WARN_CFLAGS
="${WARN_CFLAGS} $w"
20102 echo "$as_me: failed program was:" >&5
20103 sed 's/^/| /' conftest.
$ac_ext >&5
20106 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20107 CFLAGS
="$saved_CFLAGS"
20110 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
20111 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
20116 # In the Cygwin environment, we need some additional flags.
20117 echo "$as_me:$LINENO: checking for cygwin" >&5
20118 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20119 if test "${gdb_cv_os_cygwin+set}" = set; then
20120 echo $ECHO_N "(cached) $ECHO_C" >&6
20122 cat >conftest.
$ac_ext <<_ACEOF
20125 cat confdefs.h
>>conftest.
$ac_ext
20126 cat >>conftest.
$ac_ext <<_ACEOF
20127 /* end confdefs.h. */
20129 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
20133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20134 $EGREP "lose" >/dev
/null
2>&1; then
20135 gdb_cv_os_cygwin
=yes
20137 gdb_cv_os_cygwin
=no
20142 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20143 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
20146 SER_HARDWIRE
="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
20148 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
20149 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
20150 *mingw32
*) SER_HARDWIRE
="ser-base.o ser-tcp.o ser-mingw.o" ;;
20154 # libreadline needs libuser32.a in a cygwin environment
20156 if test x
$gdb_cv_os_cygwin = xyes
; then
20157 WIN32LIBS
="-luser32"
20158 case "${target}" in
20159 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
20164 # The ser-tcp.c module requires sockets.
20168 cat >>confdefs.h
<<\_ACEOF
20169 #define USE_WIN32API 1
20172 WIN32LIBS
="$WIN32LIBS -lws2_32"
20177 # Add ELF support to GDB, but only if BFD includes ELF support.
20179 OLD_LDFLAGS
=$LDFLAGS
20181 CFLAGS
="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
20182 LDFLAGS
="$LDFLAGS -L../bfd -L../libiberty"
20183 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
20184 LIBS
="-lbfd -liberty $intl $LIBS"
20185 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
20186 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
20187 if test "${gdb_cv_var_elf+set}" = set; then
20188 echo $ECHO_N "(cached) $ECHO_C" >&6
20190 cat >conftest.
$ac_ext <<_ACEOF
20193 cat confdefs.h
>>conftest.
$ac_ext
20194 cat >>conftest.
$ac_ext <<_ACEOF
20195 /* end confdefs.h. */
20196 #include <stdlib.h>
20198 #include "elf-bfd.h"
20203 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
20208 rm -f conftest.
$ac_objext conftest
$ac_exeext
20209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20210 (eval $ac_link) 2>conftest.er1
20212 grep -v '^ *+' conftest.er1
>conftest.err
20214 cat conftest.err
>&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); } &&
20217 { ac_try
='test -z "$ac_c_werror_flag"
20218 || test ! -s conftest.err'
20219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20220 (eval $ac_try) 2>&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); }; } &&
20224 { ac_try
='test -s conftest$ac_exeext'
20225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20226 (eval $ac_try) 2>&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; }; then
20232 echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.
$ac_ext >&5
20237 rm -f conftest.err conftest.
$ac_objext \
20238 conftest
$ac_exeext conftest.
$ac_ext
20240 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
20241 echo "${ECHO_T}$gdb_cv_var_elf" >&6
20242 if test $gdb_cv_var_elf = yes; then
20243 CONFIG_OBS
="$CONFIG_OBS elfread.o"
20245 cat >>confdefs.h
<<\_ACEOF
20251 LDFLAGS
=$OLD_LDFLAGS
20254 # Add any host-specific objects to GDB.
20255 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
20257 LIBGUI
="../libgui/src/libgui.a"
20258 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
20267 *-*-cygwin* |
*-*-mingw* )
20276 if test "${enable_gdbtk}" = "yes"; then
20278 # Gdbtk must have an absolute path to srcdir in order to run
20279 # properly when not installed.
20282 GDBTK_SRC_DIR
=`pwd`
20287 # Ok, lets find the tcl configuration
20288 # First, look for one uninstalled.
20289 # the alternative search directory is invoked by --with-tcl
20292 if test x
"${no_tcl}" = x
; then
20293 # we reset no_tcl in case something fails here
20296 # Check whether --with-tcl or --without-tcl was given.
20297 if test "${with_tcl+set}" = set; then
20298 withval
="$with_tcl"
20299 with_tclconfig
=${withval}
20301 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20302 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20303 if test "${ac_cv_c_tclconfig+set}" = set; then
20304 echo $ECHO_N "(cached) $ECHO_C" >&6
20308 # First check to see if --with-tcl was specified.
20310 *-*-cygwin*) platDir
="win" ;;
20311 *) platDir
="unix" ;;
20313 if test x
"${with_tclconfig}" != x
; then
20314 if test -f "${with_tclconfig}/tclConfig.sh" ; then
20315 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
20317 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20318 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20319 { (exit 1); exit 1; }; }
20323 # then check for a private Tcl installation
20324 if test x
"${ac_cv_c_tclconfig}" = x
; then
20327 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20328 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
20329 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
20331 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20332 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
20333 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
20335 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20336 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
20337 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
20338 if test -f "$i/$platDir/tclConfig.sh" ; then
20339 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
20345 # on Darwin, check in Framework installation locations
20346 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
20347 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
20348 `ls -d /Library/Frameworks 2>/dev/null` \
20349 `ls -d /Network/Library/Frameworks 2>/dev/null` \
20350 `ls -d /System/Library/Frameworks 2>/dev/null` \
20352 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
20353 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
20359 # check in a few common install locations
20360 if test x
"${ac_cv_c_tclconfig}" = x
; then
20361 for i
in `ls -d ${libdir} 2>/dev/null` \
20362 `ls -d ${exec_prefix}/lib 2>/dev/null` \
20363 `ls -d ${prefix}/lib 2>/dev/null` \
20364 `ls -d /usr/local/lib 2>/dev/null` \
20365 `ls -d /usr/contrib/lib 2>/dev/null` \
20366 `ls -d /usr/lib 2>/dev/null` \
20368 if test -f "$i/tclConfig.sh" ; then
20369 ac_cv_c_tclconfig
=`(cd $i; pwd)`
20375 # check in a few other private locations
20376 if test x
"${ac_cv_c_tclconfig}" = x
; then
20379 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20380 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
20381 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
20382 if test -f "$i/$platDir/tclConfig.sh" ; then
20383 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
20392 if test x
"${ac_cv_c_tclconfig}" = x
; then
20393 TCL_BIN_DIR
="# no Tcl configs found"
20394 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20395 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
20398 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
20399 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
20400 echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
20405 # If $no_tk is nonempty, then we can't do Tk, and there is no
20406 # point to doing Tcl.
20409 # Ok, lets find the tk configuration
20410 # First, look for one uninstalled.
20411 # the alternative search directory is invoked by --with-tk
20414 if test x
"${no_tk}" = x
; then
20415 # we reset no_tk in case something fails here
20418 # Check whether --with-tk or --without-tk was given.
20419 if test "${with_tk+set}" = set; then
20421 with_tkconfig
=${withval}
20423 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20424 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20425 if test "${ac_cv_c_tkconfig+set}" = set; then
20426 echo $ECHO_N "(cached) $ECHO_C" >&6
20430 # First check to see if --with-tkconfig was specified.
20431 if test x
"${with_tkconfig}" != x
; then
20432 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20433 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
20435 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20436 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20437 { (exit 1); exit 1; }; }
20441 # then check for a private Tk library
20443 *-*-cygwin*) platDir
="win" ;;
20444 *) platDir
="unix" ;;
20446 if test x
"${ac_cv_c_tkconfig}" = x
; then
20449 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20450 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
20451 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
20453 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20454 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
20455 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
20457 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20458 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
20459 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
20460 if test -f "$i/$platDir/tkConfig.sh" ; then
20461 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
20467 # on Darwin, check in Framework installation locations
20468 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
20469 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
20470 `ls -d /Library/Frameworks 2>/dev/null` \
20471 `ls -d /Network/Library/Frameworks 2>/dev/null` \
20472 `ls -d /System/Library/Frameworks 2>/dev/null` \
20474 if test -f "$i/Tk.framework/tkConfig.sh" ; then
20475 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
20481 # check in a few common install locations
20482 if test x
"${ac_cv_c_tkconfig}" = x
; then
20483 for i
in `ls -d ${libdir} 2>/dev/null` \
20484 `ls -d ${exec_prefix}/lib 2>/dev/null` \
20485 `ls -d ${prefix}/lib 2>/dev/null` \
20486 `ls -d /usr/local/lib 2>/dev/null` \
20487 `ls -d /usr/contrib/lib 2>/dev/null` \
20488 `ls -d /usr/lib 2>/dev/null` \
20490 if test -f "$i/tkConfig.sh" ; then
20491 ac_cv_c_tkconfig
=`(cd $i; pwd)`
20496 # check in a few other private locations
20497 if test x
"${ac_cv_c_tkconfig}" = x
; then
20500 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20501 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
20502 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
20503 if test -f "$i/$platDir/tkConfig.sh" ; then
20504 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
20513 if test x
"${ac_cv_c_tkconfig}" = x
; then
20514 TK_BIN_DIR
="# no Tk configs found"
20515 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20516 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20519 TK_BIN_DIR
=${ac_cv_c_tkconfig}
20520 echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
20521 echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
20526 if test -z "${no_tcl}" -a -z "${no_tk}"; then
20528 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
20529 echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
20531 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
20532 echo "$as_me:$LINENO: result: loading" >&5
20533 echo "${ECHO_T}loading" >&6
20534 .
${TCL_BIN_DIR}/tclConfig.sh
20536 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
20537 echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
20540 # eval is required to do the TCL_DBGX substitution
20541 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
20542 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
20544 # If the TCL_BIN_DIR is the build directory (not the install directory),
20545 # then set the common variable name to the value of the build variables.
20546 # For example, the variable TCL_LIB_SPEC will be set to the value
20547 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
20548 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
20549 # installed and uninstalled version of Tcl.
20550 if test -f "${TCL_BIN_DIR}/Makefile" ; then
20551 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
20552 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
20553 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
20554 elif test "`uname -s`" = "Darwin"; then
20555 # If Tcl was built as a framework, attempt to use the libraries
20556 # from the framework at the given location so that linking works
20557 # against Tcl.framework installed in an arbitary location.
20558 case ${TCL_DEFS} in
20560 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
20561 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
20562 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
20563 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
20564 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
20569 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
20570 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
20571 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
20577 # eval is required to do the TCL_DBGX substitution
20578 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
20579 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
20580 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
20581 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
20597 # Check for in-tree tcl
20604 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
20608 # Find Tcl private headers
20609 if test x
"${intree}" = xno
; then
20611 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
20612 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
20614 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
20615 if test -f ${dir}/tclInt.h
; then
20619 if test x
"${private_dir}" = x
; then
20620 { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
20621 echo "$as_me: error: could not find private Tcl headers" >&2;}
20622 { (exit 1); exit 1; }; }
20624 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
20625 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20626 echo "${ECHO_T}${private_dir}" >&6
20629 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
20630 TCL_LIBRARY
="${TCL_LIB_SPEC}"
20633 # If building tcl in the same src tree, private headers
20634 # are not needed, but we need to be sure to use the right
20636 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
20637 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
20638 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
20645 echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
20646 echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
20648 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
20649 echo "$as_me:$LINENO: result: loading" >&5
20650 echo "${ECHO_T}loading" >&6
20651 .
${TK_BIN_DIR}/tkConfig.sh
20653 echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
20654 echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
20657 # eval is required to do the TK_DBGX substitution
20658 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
20659 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
20661 # If the TK_BIN_DIR is the build directory (not the install directory),
20662 # then set the common variable name to the value of the build variables.
20663 # For example, the variable TK_LIB_SPEC will be set to the value
20664 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
20665 # instead of TK_BUILD_LIB_SPEC since it will work with both an
20666 # installed and uninstalled version of Tcl.
20667 if test -f "${TK_BIN_DIR}/Makefile" ; then
20668 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
20669 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
20670 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
20671 elif test "`uname -s`" = "Darwin"; then
20672 # If Tk was built as a framework, attempt to use the libraries
20673 # from the framework at the given location so that linking works
20674 # against Tk.framework installed in an arbitary location.
20677 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
20678 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
20679 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
20680 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
20681 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
20686 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
20687 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
20688 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
20694 # eval is required to do the TK_DBGX substitution
20695 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
20696 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
20697 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
20698 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
20713 # Check for in-tree Tk
20715 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
20719 # Find Tk private headers
20720 if test x
"${intree}" = xno
; then
20722 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20723 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20725 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
20726 if test -f ${dir}/tkInt.h
; then
20730 if test x
"${private_dir}" = x
; then
20731 { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
20732 echo "$as_me: error: could not find Tk private headers" >&2;}
20733 { (exit 1); exit 1; }; }
20735 TK_PRIVATE_INCLUDE
="-I${private_dir}"
20736 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20737 echo "${ECHO_T}${private_dir}" >&6
20740 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
20741 TK_LIBRARY
=${TK_LIB_SPEC}
20744 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
20745 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
20746 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
20753 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
20755 # Include some libraries that Tcl and Tk want.
20756 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
20757 # Yes, the ordering seems wrong here. But it isn't.
20758 # TK_LIBS is the list of libraries that need to be linked
20759 # after Tcl/Tk. Note that this isn't put into LIBS. If it
20760 # were in LIBS then any link tests after this point would
20761 # try to include things like `$(LIBGUI)', which wouldn't work.
20762 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
20764 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20765 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20766 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
20767 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
20768 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
20769 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
20770 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
20772 if test x
$gdb_cv_os_cygwin = xyes
; then
20773 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20774 WIN32LDAPP
="-Wl,--subsystem,console"
20775 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
20780 subdirs
="$subdirs gdbtk"
20792 echo "$as_me:$LINENO: checking for X" >&5
20793 echo $ECHO_N "checking for X... $ECHO_C" >&6
20796 # Check whether --with-x or --without-x was given.
20797 if test "${with_x+set}" = set; then
20801 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20802 if test "x$with_x" = xno
; then
20803 # The user explicitly disabled X.
20806 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
20807 # Both variables are already set.
20810 if test "${ac_cv_have_x+set}" = set; then
20811 echo $ECHO_N "(cached) $ECHO_C" >&6
20813 # One or both of the vars are not set, and there is no cached value.
20814 ac_x_includes
=no ac_x_libraries
=no
20815 rm -fr conftest.dir
20816 if mkdir conftest.dir
; then
20818 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20819 cat >Imakefile
<<'_ACEOF'
20821 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20823 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
20824 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20825 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20826 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20827 for ac_extension
in a so sl
; do
20828 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
20829 test -f $ac_im_libdir/libX11.
$ac_extension; then
20830 ac_im_usrlibdir
=$ac_im_libdir; break
20833 # Screen out bogus values from the imake configuration. They are
20834 # bogus both because they are the default anyway, and because
20835 # using them would break gcc on systems where it needs fixed includes.
20836 case $ac_im_incroot in
20838 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
20840 case $ac_im_usrlibdir in
20841 /usr
/lib |
/lib
) ;;
20842 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
20846 rm -fr conftest.dir
20849 # Standard set of common directories for X headers.
20850 # Check X11 before X11Rn because it is often a symlink to the current release.
20862 /usr/local/X11/include
20863 /usr/local/X11R6/include
20864 /usr/local/X11R5/include
20865 /usr/local/X11R4/include
20867 /usr/local/include/X11
20868 /usr/local/include/X11R6
20869 /usr/local/include/X11R5
20870 /usr/local/include/X11R4
20874 /usr/XFree86/include/X11
20878 /usr/unsupported/include
20879 /usr/athena/include
20880 /usr/local/x11r5/include
20881 /usr/lpp/Xamples/include
20883 /usr/openwin/include
20884 /usr/openwin/share/include'
20886 if test "$ac_x_includes" = no
; then
20887 # Guess where to find include files, by looking for Intrinsic.h.
20888 # First, try using that file with no special directory specified.
20889 cat >conftest.
$ac_ext <<_ACEOF
20892 cat confdefs.h
>>conftest.
$ac_ext
20893 cat >>conftest.
$ac_ext <<_ACEOF
20894 /* end confdefs.h. */
20895 #include <X11/Intrinsic.h>
20897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20898 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20900 grep -v '^ *+' conftest.er1
>conftest.err
20902 cat conftest.err
>&5
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); } >/dev
/null
; then
20905 if test -s conftest.err
; then
20906 ac_cpp_err
=$ac_c_preproc_warn_flag
20907 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20914 if test -z "$ac_cpp_err"; then
20915 # We can compile using X headers with no special include directory.
20918 echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.
$ac_ext >&5
20921 for ac_dir
in $ac_x_header_dirs; do
20922 if test -r "$ac_dir/X11/Intrinsic.h"; then
20923 ac_x_includes
=$ac_dir
20928 rm -f conftest.err conftest.
$ac_ext
20929 fi # $ac_x_includes = no
20931 if test "$ac_x_libraries" = no
; then
20932 # Check for the libraries.
20933 # See if we find them without any special options.
20934 # Don't add to $LIBS permanently.
20937 cat >conftest.
$ac_ext <<_ACEOF
20940 cat confdefs.h
>>conftest.
$ac_ext
20941 cat >>conftest.
$ac_ext <<_ACEOF
20942 /* end confdefs.h. */
20943 #include <X11/Intrinsic.h>
20952 rm -f conftest.
$ac_objext conftest
$ac_exeext
20953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20954 (eval $ac_link) 2>conftest.er1
20956 grep -v '^ *+' conftest.er1
>conftest.err
20958 cat conftest.err
>&5
20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); } &&
20961 { ac_try
='test -z "$ac_c_werror_flag"
20962 || test ! -s conftest.err'
20963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20964 (eval $ac_try) 2>&5
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); }; } &&
20968 { ac_try
='test -s conftest$ac_exeext'
20969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20970 (eval $ac_try) 2>&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); }; }; then
20975 # We can link X programs with no special library path.
20978 echo "$as_me: failed program was:" >&5
20979 sed 's/^/| /' conftest.
$ac_ext >&5
20982 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20984 # Don't even attempt the hair of trying to link an X program!
20985 for ac_extension
in a so sl
; do
20986 if test -r $ac_dir/libXt.
$ac_extension; then
20987 ac_x_libraries
=$ac_dir
20993 rm -f conftest.err conftest.
$ac_objext \
20994 conftest
$ac_exeext conftest.
$ac_ext
20995 fi # $ac_x_libraries = no
20997 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
20998 # Didn't find X anywhere. Cache the known absence of X.
20999 ac_cv_have_x
="have_x=no"
21001 # Record where we found X for the cache.
21002 ac_cv_have_x
="have_x=yes \
21003 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21008 eval "$ac_cv_have_x"
21011 if test "$have_x" != yes; then
21012 echo "$as_me:$LINENO: result: $have_x" >&5
21013 echo "${ECHO_T}$have_x" >&6
21016 # If each of the values was on the command line, it overrides each guess.
21017 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
21018 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
21019 # Update the cache value to reflect the command line values.
21020 ac_cv_have_x
="have_x=yes \
21021 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21022 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21023 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21027 # Unlike the sim directory, whether a simulator is linked is controlled by
21028 # presence of a gdb_sim definition in the target configure.tgt entry.
21029 # This code just checks for a few cases where we'd like to ignore those
21030 # definitions, even when they're present in the '.mt' file. These cases
21031 # are when --disable-sim is specified, or if the simulator directory is
21032 # not part of the source tree.
21034 # Check whether --enable-sim or --disable-sim was given.
21035 if test "${enable_sim+set}" = set; then
21036 enableval
="$enable_sim"
21037 echo "enable_sim = $enable_sim";
21038 echo "enableval = ${enableval}";
21039 case "${enableval}" in
21040 yes) ignore_sim
=false
;;
21041 no
) ignore_sim
=true
;;
21042 *) ignore_sim
=false
;;
21048 if test ! -d "${srcdir}/../sim"; then
21054 if test "${ignore_sim}" = "false"; then
21055 if test x
"${gdb_sim}" != x
; then
21057 SIM_OBS
="remote-sim.o"
21059 cat >>confdefs.h
<<\_ACEOF
21079 # List of host floatformats.
21081 cat >>confdefs.h
<<_ACEOF
21082 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21086 cat >>confdefs.h
<<_ACEOF
21087 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21091 cat >>confdefs.h
<<_ACEOF
21092 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21096 # target_subdir is used by the testsuite to find the target libraries.
21098 if test "${host}" != "${target}"; then
21099 target_subdir
="${target_alias}/"
21104 if test "${gdb_native}" = "yes"; then
21105 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21106 if test ! -f ${host_makefile_frag}; then
21107 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21108 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21109 { (exit 1); exit 1; }; }
21111 frags
="$frags $host_makefile_frag"
21113 host_makefile_frag
=/dev
/null
21119 if test "${gdb_native}" = "yes"; then
21120 # We pick this up from the host configuration file (.mh) because we
21121 # do not have a native configuration Makefile fragment.
21122 nativefile
=`sed -n '
21123 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21124 ' ${host_makefile_frag}`
21128 if test x
"${gdb_osabi}" != x
; then
21130 cat >>confdefs.h
<<_ACEOF
21131 #define GDB_OSABI_DEFAULT $gdb_osabi
21136 # Enable multi-ice-gdb-server.
21137 # Check whether --enable-multi-ice or --disable-multi-ice was given.
21138 if test "${enable_multi_ice+set}" = set; then
21139 enableval
="$enable_multi_ice"
21143 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21144 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21145 { (exit 1); exit 1; }; } ;;
21148 if test "x$enable_multi_ice" = xyes
; then
21151 subdirs
="$subdirs multi-ice"
21155 # We only build gdbserver automatically in a native configuration.
21156 if test "$gdb_native" = "yes"; then
21157 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21158 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21159 if test "x$build_gdbserver" = xyes
; then
21160 echo "$as_me:$LINENO: result: yes" >&5
21161 echo "${ECHO_T}yes" >&6
21164 subdirs
="$subdirs gdbserver"
21167 echo "$as_me:$LINENO: result: no" >&5
21168 echo "${ECHO_T}no" >&6
21172 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21173 # to an empty version.
21179 if test "${nativefile}" != ""; then
21180 case "${nativefile}" in
21181 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
21182 * ) GDB_NM_FILE
="${nativefile}"
21184 files
="${files} ${GDB_NM_FILE}"
21185 links
="${links} nm.h"
21187 cat >>confdefs.h
<<_ACEOF
21188 #define GDB_NM_FILE "${GDB_NM_FILE}"
21194 ac_sources
="$files"
21196 while test -n "$ac_sources"; do
21197 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
21198 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
21199 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
21201 ac_config_links
="$ac_config_links $ac_config_links_1"
21207 cat >>confdefs.h
<<\_ACEOF
21208 #define GDB_DEFAULT_HOST_CHARSET "UTF-8"
21212 # Flags needed to enable html installing and building
21214 # Check whether --with-datarootdir or --without-datarootdir was given.
21215 if test "${with_datarootdir+set}" = set; then
21216 withval
="$with_datarootdir"
21217 datarootdir
="\${prefix}/${withval}"
21219 datarootdir
="\${prefix}/share"
21223 # Check whether --with-docdir or --without-docdir was given.
21224 if test "${with_docdir+set}" = set; then
21225 withval
="$with_docdir"
21226 docdir
="\${prefix}/${withval}"
21228 docdir
="\${datarootdir}/doc"
21232 # Check whether --with-pdfdir or --without-pdfdir was given.
21233 if test "${with_pdfdir+set}" = set; then
21234 withval
="$with_pdfdir"
21235 pdfdir
="\${prefix}/${withval}"
21237 pdfdir
="\${docdir}"
21241 # Check whether --with-htmldir or --without-htmldir was given.
21242 if test "${with_htmldir+set}" = set; then
21243 withval
="$with_htmldir"
21244 htmldir
="\${prefix}/${withval}"
21246 htmldir
="\${docdir}"
21254 ac_config_files
="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
21255 ac_config_commands
="$ac_config_commands default"
21256 cat >confcache
<<\_ACEOF
21257 # This file is a shell script that caches the results of configure
21258 # tests run on this system so they can be shared between configure
21259 # scripts and configure runs, see configure's option --config-cache.
21260 # It is not useful on other systems. If it contains results you don't
21261 # want to keep, you may remove or edit it.
21263 # config.status only pays attention to the cache file if you give it
21264 # the --recheck option to rerun configure.
21266 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21267 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21268 # following values.
21272 # The following way of writing the cache mishandles newlines in values,
21273 # but we know of no workaround that is simple, portable, and efficient.
21274 # So, don't put newlines in cache variables' values.
21275 # Ultrix sh set writes to stderr and can't be redirected directly,
21276 # and sets the high bit in the cache file unless we assign to the vars.
21279 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21281 # `set' does not quote correctly, so add quotes (double-quote
21282 # substitution turns \\\\ into \\, and sed turns \\ into \).
21285 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21288 # `set' quotes correctly as required by POSIX, so do not add quotes.
21290 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21297 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21299 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21301 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
21302 if test -w $cache_file; then
21303 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21304 cat confcache
>$cache_file
21306 echo "not updating unwritable cache $cache_file"
21311 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21312 # Let make expand exec_prefix.
21313 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21315 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21316 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21317 # trailing colons and then remove the whole line if VPATH becomes empty
21318 # (actually we leave an empty line to preserve line numbers).
21319 if test "x$srcdir" = x.
; then
21320 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21321 s/:*\$(srcdir):*/:/;
21322 s/:*\${srcdir}:*/:/;
21324 s/^\([^=]*=[ ]*\):*/\1/;
21330 DEFS
=-DHAVE_CONFIG_H
21334 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21335 # 1. Remove the extension, and $U if already installed.
21336 ac_i
=`echo "$ac_i" |
21337 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21339 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
21340 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
21342 LIBOBJS
=$ac_libobjs
21344 LTLIBOBJS
=$ac_ltlibobjs
21347 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21348 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21349 Usually this means the macro was only invoked conditionally." >&5
21350 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21351 Usually this means the macro was only invoked conditionally." >&2;}
21352 { (exit 1); exit 1; }; }
21354 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
21355 { { echo "$as_me:$LINENO: error: conditional \"GMAKE\" was never defined.
21356 Usually this means the macro was only invoked conditionally." >&5
21357 echo "$as_me: error: conditional \"GMAKE\" was never defined.
21358 Usually this means the macro was only invoked conditionally." >&2;}
21359 { (exit 1); exit 1; }; }
21361 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21362 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21363 Usually this means the macro was only invoked conditionally." >&5
21364 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21365 Usually this means the macro was only invoked conditionally." >&2;}
21366 { (exit 1); exit 1; }; }
21371 if test -n "$gl_LIBOBJS"; then
21372 # Remove the extension.
21373 sed_drop_objext
='s/\.o$//;s/\.obj$//'
21374 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21375 gl_libobjs
="$gl_libobjs $i.$ac_objext"
21376 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
21379 gl_LIBOBJS
=$gl_libobjs
21381 gl_LTLIBOBJS
=$gl_ltlibobjs
21387 if test -n "$gltests_LIBOBJS"; then
21388 # Remove the extension.
21389 sed_drop_objext
='s/\.o$//;s/\.obj$//'
21390 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21391 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
21392 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
21395 gltests_LIBOBJS
=$gltests_libobjs
21397 gltests_LTLIBOBJS
=$gltests_ltlibobjs
21400 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21401 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21402 Usually this means the macro was only invoked conditionally." >&5
21403 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21404 Usually this means the macro was only invoked conditionally." >&2;}
21405 { (exit 1); exit 1; }; }
21407 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21408 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21409 Usually this means the macro was only invoked conditionally." >&5
21410 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21411 Usually this means the macro was only invoked conditionally." >&2;}
21412 { (exit 1); exit 1; }; }
21415 : ${CONFIG_STATUS=./config.status}
21416 ac_clean_files_save
=$ac_clean_files
21417 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21418 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21419 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21420 cat >$CONFIG_STATUS <<_ACEOF
21422 # Generated by $as_me.
21423 # Run this file to recreate the current configuration.
21424 # Compiler output produced by configure, useful for debugging
21425 # configure, is in config.log if it exists.
21428 ac_cs_recheck=false
21430 SHELL=\${CONFIG_SHELL-$SHELL}
21433 cat >>$CONFIG_STATUS <<\_ACEOF
21434 ## --------------------- ##
21435 ## M4sh Initialization. ##
21436 ## --------------------- ##
21438 # Be Bourne compatible
21439 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21442 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21443 # is contrary to our usage. Disable this feature.
21444 alias -g '${1+"$@"}'='"$@"'
21445 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
21448 DUALCASE
=1; export DUALCASE
# for MKS sh
21450 # Support unset when possible.
21451 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
21458 # Work around bugs in pre-3.0 UWIN ksh.
21459 $as_unset ENV MAIL MAILPATH
21466 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21467 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21468 LC_TELEPHONE LC_TIME
21470 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21471 eval $as_var=C
; export $as_var
21477 # Required to use basename.
21478 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21484 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
21485 as_basename
=basename
21491 # Name of the executable.
21492 as_me
=`$as_basename "$0" ||
21493 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21494 X"$0" : 'X\(//\)$' \| \
21495 X"$0" : 'X\(/\)$' \| \
21496 . : '\(.\)' 2>/dev/null ||
21498 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21499 /^X\/\(\/\/\)$/{ s//\1/; q; }
21500 /^X\/\(\/\).*/{ s//\1/; q; }
21504 # PATH needs CR, and LINENO needs CR and PATH.
21505 # Avoid depending upon Character Ranges.
21506 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
21507 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21508 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
21509 as_cr_digits
='0123456789'
21510 as_cr_alnum
=$as_cr_Letters$as_cr_digits
21512 # The user is always right.
21513 if test "${PATH_SEPARATOR+set}" != set; then
21514 echo "#! /bin/sh" >conf$$.sh
21515 echo "exit 0" >>conf$$.sh
21517 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
21526 as_lineno_1
=$LINENO
21527 as_lineno_2
=$LINENO
21528 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
21529 test "x$as_lineno_1" != "x$as_lineno_2" &&
21530 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
21531 # Find who we are. Look in the path if we contain no path at all
21534 *[\\/]* ) as_myself
=$0 ;;
21535 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21536 for as_dir
in $PATH
21539 test -z "$as_dir" && as_dir
=.
21540 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
21545 # We did not find ourselves, most probably we were run as `sh COMMAND'
21546 # in which case we are not to be found in the path.
21547 if test "x$as_myself" = x
; then
21550 if test ! -f "$as_myself"; then
21551 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21552 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21553 { (exit 1); exit 1; }; }
21555 case $CONFIG_SHELL in
21557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21558 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
21561 test -z "$as_dir" && as_dir
=.
21562 for as_base
in sh bash ksh sh5
; do
21565 if ("$as_dir/$as_base" -c '
21566 as_lineno_1=$LINENO
21567 as_lineno_2=$LINENO
21568 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21569 test "x$as_lineno_1" != "x$as_lineno_2" &&
21570 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
21571 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
21572 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
21573 CONFIG_SHELL
=$as_dir/$as_base
21574 export CONFIG_SHELL
21575 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21583 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21584 # uniformly replaced by the line number. The first 'sed' inserts a
21585 # line-number line before each line; the second 'sed' does the real
21586 # work. The second script uses 'N' to pair each line-number line
21587 # with the numbered line, and appends trailing '-' during
21588 # substitution so that $LINENO is not a special case at line end.
21589 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21590 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21591 sed '=' <$as_myself |
21596 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21599 s,^['$as_cr_digits']*\n,,
21600 ' >$as_me.lineno
&&
21601 chmod +x
$as_me.lineno ||
21602 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21603 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21604 { (exit 1); exit 1; }; }
21606 # Don't try to exec as it changes $[0], causing all sort of problems
21607 # (the dirname of $[0] is not the place where we might find the
21608 # original and so on. Autoconf is especially sensible to this).
21610 # Exit status is that of the last command.
21615 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21616 *c
*,-n*) ECHO_N
= ECHO_C
='
21618 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
21619 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
21622 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21628 rm -f conf$$ conf$$.exe conf$$.
file
21630 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
21631 # We could just check for DJGPP; but this test a) works b) is more generic
21632 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21633 if test -f conf$$.exe
; then
21634 # Don't use ln at all; we don't have any links
21639 elif ln conf$$.
file conf$$
2>/dev
/null
; then
21644 rm -f conf$$ conf$$.exe conf$$.
file
21646 if mkdir
-p .
2>/dev
/null
; then
21649 test -d .
/-p && rmdir .
/-p
21653 as_executable_p
="test -f"
21655 # Sed expression to map a string onto a valid CPP name.
21656 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21658 # Sed expression to map a string onto a valid variable name.
21659 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21663 # We need space, tab and new line, in precisely that order.
21673 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21674 # report actual input values of CONFIG_FILES etc. instead of their
21675 # values after options handling. Logging --version etc. is OK.
21679 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21680 ## Running $as_me. ##
21685 This file was extended by $as_me, which was
21686 generated by GNU Autoconf 2.59. Invocation command line was
21688 CONFIG_FILES = $CONFIG_FILES
21689 CONFIG_HEADERS = $CONFIG_HEADERS
21690 CONFIG_LINKS = $CONFIG_LINKS
21691 CONFIG_COMMANDS = $CONFIG_COMMANDS
21695 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21699 # Files that config.status was made for.
21700 if test -n "$ac_config_files"; then
21701 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21704 if test -n "$ac_config_headers"; then
21705 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21708 if test -n "$ac_config_links"; then
21709 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21712 if test -n "$ac_config_commands"; then
21713 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21716 cat >>$CONFIG_STATUS <<\_ACEOF
21719 \`$as_me' instantiates files from templates according to the
21720 current configuration.
21722 Usage: $0 [OPTIONS] [FILE]...
21724 -h, --help print this help, then exit
21725 -V, --version print version number, then exit
21726 -q, --quiet do not print progress messages
21727 -d, --debug don't remove temporary files
21728 --recheck update $as_me by reconfiguring in the same conditions
21729 --file=FILE[:TEMPLATE]
21730 instantiate the configuration file FILE
21731 --header=FILE[:TEMPLATE]
21732 instantiate the configuration header FILE
21734 Configuration files:
21737 Configuration headers:
21740 Configuration links:
21743 Configuration commands:
21746 Report bugs to <bug-autoconf@gnu.org>."
21749 cat >>$CONFIG_STATUS <<_ACEOF
21752 configured by $0, generated by GNU Autoconf 2.59,
21753 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21755 Copyright (C) 2003 Free Software Foundation, Inc.
21756 This config.status script is free software; the Free Software Foundation
21757 gives unlimited permission to copy, distribute and modify it."
21762 cat >>$CONFIG_STATUS <<\_ACEOF
21763 # If no file are specified by the user, then we need to provide default
21764 # value. By we need to know if files were specified by the user.
21770 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
21771 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
21779 *) # This is not an option, so the user has probably given explicit
21782 ac_need_defaults
=false
;;
21786 # Handling of the options.
21788 cat >>$CONFIG_STATUS <<\_ACEOF
21789 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
21791 --version |
--vers* |
-V )
21792 echo "$ac_cs_version"; exit 0 ;;
21794 # Conflict between --help and --header
21795 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21796 Try \`$0 --help' for more information." >&5
21797 echo "$as_me: error: ambiguous option: $1
21798 Try \`$0 --help' for more information." >&2;}
21799 { (exit 1); exit 1; }; };;
21800 --help |
--hel |
-h )
21801 echo "$ac_cs_usage"; exit 0 ;;
21802 --debug |
--d* |
-d )
21804 --file |
--fil |
--fi |
--f )
21806 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
21807 ac_need_defaults
=false
;;
21808 --header |
--heade |
--head |
--hea )
21810 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
21811 ac_need_defaults
=false
;;
21812 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
21813 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
21816 # This is an error.
21817 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21818 Try \`$0 --help' for more information." >&5
21819 echo "$as_me: error: unrecognized option: $1
21820 Try \`$0 --help' for more information." >&2;}
21821 { (exit 1); exit 1; }; } ;;
21823 *) ac_config_targets
="$ac_config_targets $1" ;;
21829 ac_configure_extra_args
=
21831 if $ac_cs_silent; then
21833 ac_configure_extra_args
="$ac_configure_extra_args --silent"
21837 cat >>$CONFIG_STATUS <<_ACEOF
21838 if \$ac_cs_recheck; then
21839 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21840 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21845 cat >>$CONFIG_STATUS <<_ACEOF
21847 # INIT-COMMANDS section.
21850 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
21851 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21857 cat >>$CONFIG_STATUS <<\_ACEOF
21858 for ac_config_target
in $ac_config_targets
21860 case "$ac_config_target" in
21861 # Handling of arguments.
21862 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
21863 ".gdbinit" ) CONFIG_FILES
="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
21864 "gnulib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES gnulib/Makefile" ;;
21865 "$ac_config_links_1" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
21866 "depdir" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
21867 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
21868 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
21869 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
21870 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21871 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21872 { (exit 1); exit 1; }; };;
21876 # If the user did not use the arguments to specify the items to instantiate,
21877 # then the envvar interface is used. Set only those that are not.
21878 # We use the long form for the default assignment because of an extremely
21879 # bizarre bug on SunOS 4.1.3.
21880 if $ac_need_defaults; then
21881 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21882 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21883 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
21884 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21887 # Have a temporary directory for convenience. Make it in the build tree
21888 # simply because there is no reason to put it here, and in addition,
21889 # creating and moving files from /tmp can sometimes cause problems.
21890 # Create a temporary directory, and hook for its removal unless debugging.
21893 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21894 trap '{ (exit 1); exit 1; }' 1 2 13 15
21897 # Create a (secure) tmp directory for tmp files.
21900 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21901 test -n "$tmp" && test -d "$tmp"
21904 tmp
=.
/confstat$$
-$RANDOM
21905 (umask 077 && mkdir
$tmp)
21908 echo "$me: cannot create a temporary directory in ." >&2
21909 { (exit 1); exit 1; }
21914 cat >>$CONFIG_STATUS <<_ACEOF
21917 # CONFIG_FILES section.
21920 # No need to generate the scripts if there are no CONFIG_FILES.
21921 # This happens for instance when ./config.status config.h
21922 if test -n "\$CONFIG_FILES"; then
21923 # Protect against being on the right side of a sed subst in config.status.
21924 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21925 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21926 s,@SHELL@,$SHELL,;t t
21927 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21928 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21929 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21930 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21931 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21932 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21933 s,@exec_prefix@,$exec_prefix,;t t
21934 s,@prefix@,$prefix,;t t
21935 s,@program_transform_name@,$program_transform_name,;t t
21936 s,@bindir@,$bindir,;t t
21937 s,@sbindir@,$sbindir,;t t
21938 s,@libexecdir@,$libexecdir,;t t
21939 s,@datadir@,$datadir,;t t
21940 s,@sysconfdir@,$sysconfdir,;t t
21941 s,@sharedstatedir@,$sharedstatedir,;t t
21942 s,@localstatedir@,$localstatedir,;t t
21943 s,@libdir@,$libdir,;t t
21944 s,@includedir@,$includedir,;t t
21945 s,@oldincludedir@,$oldincludedir,;t t
21946 s,@infodir@,$infodir,;t t
21947 s,@mandir@,$mandir,;t t
21948 s,@build_alias@,$build_alias,;t t
21949 s,@host_alias@,$host_alias,;t t
21950 s,@target_alias@,$target_alias,;t t
21951 s,@DEFS@,$DEFS,;t t
21952 s,@ECHO_C@,$ECHO_C,;t t
21953 s,@ECHO_N@,$ECHO_N,;t t
21954 s,@ECHO_T@,$ECHO_T,;t t
21955 s,@LIBS@,$LIBS,;t t
21956 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21957 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21958 s,@MAINT@,$MAINT,;t t
21960 s,@CFLAGS@,$CFLAGS,;t t
21961 s,@LDFLAGS@,$LDFLAGS,;t t
21962 s,@CPPFLAGS@,$CPPFLAGS,;t t
21963 s,@ac_ct_CC@,$ac_ct_CC,;t t
21964 s,@EXEEXT@,$EXEEXT,;t t
21965 s,@OBJEXT@,$OBJEXT,;t t
21967 s,@EGREP@,$EGREP,;t t
21968 s,@RANLIB@,$RANLIB,;t t
21969 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21970 s,@build@,$build,;t t
21971 s,@build_cpu@,$build_cpu,;t t
21972 s,@build_vendor@,$build_vendor,;t t
21973 s,@build_os@,$build_os,;t t
21974 s,@host@,$host,;t t
21975 s,@host_cpu@,$host_cpu,;t t
21976 s,@host_vendor@,$host_vendor,;t t
21977 s,@host_os@,$host_os,;t t
21978 s,@target@,$target,;t t
21979 s,@target_cpu@,$target_cpu,;t t
21980 s,@target_vendor@,$target_vendor,;t t
21981 s,@target_os@,$target_os,;t t
21982 s,@am__leading_dot@,$am__leading_dot,;t t
21983 s,@DEPDIR@,$DEPDIR,;t t
21984 s,@CCDEPMODE@,$CCDEPMODE,;t t
21985 s,@MAKE@,$MAKE,;t t
21986 s,@GMAKE_TRUE@,$GMAKE_TRUE,;t t
21987 s,@GMAKE_FALSE@,$GMAKE_FALSE,;t t
21988 s,@SET_MAKE@,$SET_MAKE,;t t
21989 s,@USE_NLS@,$USE_NLS,;t t
21990 s,@LIBINTL@,$LIBINTL,;t t
21991 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21992 s,@INCINTL@,$INCINTL,;t t
21993 s,@XGETTEXT@,$XGETTEXT,;t t
21994 s,@GMSGFMT@,$GMSGFMT,;t t
21995 s,@POSUB@,$POSUB,;t t
21996 s,@CATALOGS@,$CATALOGS,;t t
21997 s,@DATADIRNAME@,$DATADIRNAME,;t t
21998 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
21999 s,@GENCAT@,$GENCAT,;t t
22000 s,@CATOBJEXT@,$CATOBJEXT,;t t
22001 s,@localedir@,$localedir,;t t
22002 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
22003 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
22004 s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
22005 s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
22006 s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
22007 s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
22008 s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
22009 s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
22010 s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
22011 s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
22012 s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
22013 s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
22014 s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
22015 s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
22016 s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
22017 s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
22018 s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
22019 s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
22020 s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
22021 s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
22022 s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
22023 s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
22024 s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
22025 s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
22026 s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
22027 s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
22028 s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
22029 s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
22030 s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
22031 s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
22032 s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
22033 s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
22034 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
22035 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
22036 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
22037 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
22038 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
22039 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
22040 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
22041 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
22042 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
22043 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
22044 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
22045 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
22046 s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
22047 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
22048 s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
22049 s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
22050 s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
22051 s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
22052 s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
22053 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
22054 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
22055 s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
22056 s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
22057 s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
22058 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
22059 s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
22060 s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
22061 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
22062 s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
22063 s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
22064 s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
22065 s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
22066 s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
22067 s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
22068 s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
22069 s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
22070 s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
22071 s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
22072 s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
22073 s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
22074 s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
22075 s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
22076 s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
22077 s,@STDINT_H@,$STDINT_H,;t t
22078 s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
22079 s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
22080 s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
22081 s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
22082 s,@WCHAR_H@,$WCHAR_H,;t t
22083 s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
22084 s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
22085 s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
22086 s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
22087 s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
22088 s,@PACKAGE@,$PACKAGE,;t t
22089 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22090 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22091 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22092 s,@CYGPATH_W@,$CYGPATH_W,;t t
22093 s,@PYTHON2_4@,$PYTHON2_4,;t t
22094 s,@ACLOCAL@,$ACLOCAL,;t t
22095 s,@AUTOCONF@,$AUTOCONF,;t t
22096 s,@AUTOMAKE@,$AUTOMAKE,;t t
22097 s,@AUTOHEADER@,$AUTOHEADER,;t t
22098 s,@MAKEINFO@,$MAKEINFO,;t t
22099 s,@install_sh@,$install_sh,;t t
22100 s,@STRIP@,$STRIP,;t t
22101 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22102 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22103 s,@mkdir_p@,$mkdir_p,;t t
22105 s,@AMTAR@,$AMTAR,;t t
22106 s,@am__tar@,$am__tar,;t t
22107 s,@am__untar@,$am__untar,;t t
22108 s,@am__include@,$am__include,;t t
22109 s,@am__quote@,$am__quote,;t t
22110 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22111 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22112 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22113 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22114 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22115 s,@subdirs@,$subdirs,;t t
22116 s,@TARGET_OBS@,$TARGET_OBS,;t t
22117 s,@PKGVERSION@,$PKGVERSION,;t t
22118 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
22119 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
22120 s,@LN_S@,$LN_S,;t t
22121 s,@YACC@,$YACC,;t t
22123 s,@ac_ct_AR@,$ac_ct_AR,;t t
22124 s,@DLLTOOL@,$DLLTOOL,;t t
22125 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22126 s,@WINDRES@,$WINDRES,;t t
22127 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22129 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22130 s,@READLINE@,$READLINE,;t t
22131 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
22132 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
22133 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
22134 s,@LIBEXPAT@,$LIBEXPAT,;t t
22135 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
22136 s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
22137 s,@ALLOCA@,$ALLOCA,;t t
22138 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22139 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22140 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22141 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22142 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22143 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22144 s,@WIN32LIBS@,$WIN32LIBS,;t t
22145 s,@LIBGUI@,$LIBGUI,;t t
22146 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22147 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22148 s,@TCL_VERSION@,$TCL_VERSION,;t t
22149 s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
22150 s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
22151 s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
22152 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
22153 s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
22154 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22155 s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
22156 s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
22157 s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
22158 s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
22159 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
22160 s,@TCL_DEPS@,$TCL_DEPS,;t t
22161 s,@TK_VERSION@,$TK_VERSION,;t t
22162 s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
22163 s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
22164 s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
22165 s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
22166 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22167 s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
22168 s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
22169 s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
22170 s,@TK_INCLUDE@,$TK_INCLUDE,;t t
22171 s,@TK_LIBRARY@,$TK_LIBRARY,;t t
22172 s,@TK_DEPS@,$TK_DEPS,;t t
22173 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22174 s,@X_CFLAGS@,$X_CFLAGS,;t t
22175 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22176 s,@X_LIBS@,$X_LIBS,;t t
22177 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22178 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22179 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22181 s,@SIM_OBS@,$SIM_OBS,;t t
22182 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22183 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22184 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22185 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22186 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22187 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22188 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22189 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22190 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22191 s,@target_subdir@,$target_subdir,;t t
22192 s,@frags@,$frags,;t t
22193 s,@GDB_NM_FILE@,$GDB_NM_FILE,;t t
22194 s,@datarootdir@,$datarootdir,;t t
22195 s,@docdir@,$docdir,;t t
22196 s,@htmldir@,$htmldir,;t t
22197 s,@pdfdir@,$pdfdir,;t t
22198 s,@LIBOBJS@,$LIBOBJS,;t t
22199 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22200 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
22201 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
22202 s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
22203 s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
22204 /@host_makefile_frag@/r $host_makefile_frag
22205 s,@host_makefile_frag@,,;t t
22210 cat >>$CONFIG_STATUS <<\_ACEOF
22211 # Split the substitutions into bite-sized pieces for seds with
22212 # small command number limits, like on Digital OSF/1 and HP-UX.
22213 ac_max_sed_lines
=48
22214 ac_sed_frag
=1 # Number of current file.
22215 ac_beg
=1 # First line for current file.
22216 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22219 while $ac_more_lines; do
22220 if test $ac_beg -gt 1; then
22221 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22223 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22225 if test ! -s $tmp/subs.frag
; then
22226 ac_more_lines
=false
22228 # The purpose of the label and of the branching condition is to
22229 # speed up the sed processing (if there are no `@' at all, there
22230 # is no need to browse any of the substitutions).
22231 # These are the two extra sed commands mentioned above.
22233 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22234 if test -z "$ac_sed_cmds"; then
22235 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22237 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22239 ac_sed_frag
=`expr $ac_sed_frag + 1`
22241 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22244 if test -z "$ac_sed_cmds"; then
22247 fi # test -n "$CONFIG_FILES"
22250 cat >>$CONFIG_STATUS <<\_ACEOF
22251 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22252 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22254 - |
*:- |
*:-:* ) # input from stdin
22256 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22257 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22258 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22259 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22260 * ) ac_file_in
=$ac_file.
in ;;
22263 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22264 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22265 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22266 X"$ac_file" : 'X\(//\)[^/]' \| \
22267 X"$ac_file" : 'X\(//\)$' \| \
22268 X"$ac_file" : 'X\(/\)' \| \
22269 . : '\(.\)' 2>/dev/null ||
22271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22272 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22273 /^X\(\/\/\)$/{ s//\1/; q; }
22274 /^X\(\/\).*/{ s//\1/; q; }
22276 { if $as_mkdir_p; then
22281 while test ! -d "$as_dir"; do
22282 as_dirs
="$as_dir $as_dirs"
22283 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22285 X"$as_dir" : 'X\(//\)[^/]' \| \
22286 X"$as_dir" : 'X\(//\)$' \| \
22287 X"$as_dir" : 'X\(/\)' \| \
22288 . : '\(.\)' 2>/dev/null ||
22290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22291 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22292 /^X\(\/\/\)$/{ s//\1/; q; }
22293 /^X\(\/\).*/{ s//\1/; q; }
22296 test ! -n "$as_dirs" || mkdir
$as_dirs
22297 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22298 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22299 { (exit 1); exit 1; }; }; }
22303 if test "$ac_dir" != .
; then
22304 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22305 # A "../" for each directory in $ac_dir_suffix.
22306 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22308 ac_dir_suffix
= ac_top_builddir
=
22312 .
) # No --srcdir option. We are building in place.
22314 if test -z "$ac_top_builddir"; then
22317 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22319 [\\/]* | ?
:[\\/]* ) # Absolute path.
22320 ac_srcdir
=$srcdir$ac_dir_suffix;
22321 ac_top_srcdir
=$srcdir ;;
22322 *) # Relative path.
22323 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22324 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22327 # Do not use `cd foo && pwd` to compute absolute paths, because
22328 # the directories may not exist.
22330 .
) ac_abs_builddir
="$ac_dir";;
22333 .
) ac_abs_builddir
=`pwd`;;
22334 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22335 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22338 case $ac_abs_builddir in
22339 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22341 case ${ac_top_builddir}.
in
22342 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22343 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22344 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22347 case $ac_abs_builddir in
22348 .
) ac_abs_srcdir
=$ac_srcdir;;
22351 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22352 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22353 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22356 case $ac_abs_builddir in
22357 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22359 case $ac_top_srcdir in
22360 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22361 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22362 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22368 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22369 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22372 if test x
"$ac_file" != x-
; then
22373 { echo "$as_me:$LINENO: creating $ac_file" >&5
22374 echo "$as_me: creating $ac_file" >&6;}
22377 # Let's still pretend it is `configure' which instantiates (i.e., don't
22378 # use $as_me), people would be surprised to read:
22379 # /* config.h. Generated by config.status. */
22380 if test x
"$ac_file" = x-
; then
22383 configure_input
="$ac_file. "
22385 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22386 sed 's,.*/,,'` by configure."
22388 # First look for the input files in the build tree, otherwise in the
22390 ac_file_inputs
=`IFS=:
22391 for f in $ac_file_in; do
22393 -) echo $tmp/stdin ;;
22395 # Absolute (can't be DOS-style, as IFS=:)
22396 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22397 echo "$as_me: error: cannot find input file: $f" >&2;}
22398 { (exit 1); exit 1; }; }
22401 if test -f "$f"; then
22404 elif test -f "$srcdir/$f"; then
22409 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22410 echo "$as_me: error: cannot find input file: $f" >&2;}
22411 { (exit 1); exit 1; }; }
22414 done` ||
{ (exit 1); exit 1; }
22416 cat >>$CONFIG_STATUS <<_ACEOF
22420 cat >>$CONFIG_STATUS <<\_ACEOF
22422 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22423 s
,@configure_input@
,$configure_input,;t t
22424 s
,@srcdir@
,$ac_srcdir,;t t
22425 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22426 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22427 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22428 s
,@builddir@
,$ac_builddir,;t t
22429 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22430 s
,@top_builddir@
,$ac_top_builddir,;t t
22431 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22432 s
,@INSTALL@
,$ac_INSTALL,;t t
22433 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22435 if test x"$ac_file" != x-; then
22436 mv $tmp/out $ac_file
22444 cat >>$CONFIG_STATUS <<\_ACEOF
22447 # CONFIG_HEADER section.
22450 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22451 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22453 # ac_d sets the value in "#define NAME VALUE" lines.
22454 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22455 ac_dB
='[ ].*$,\1#\2'
22458 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22459 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22460 ac_uB
='$,\1#\2define\3'
22464 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22465 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22467 - |
*:- |
*:-:* ) # input from stdin
22469 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22470 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22471 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22472 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22473 * ) ac_file_in
=$ac_file.
in ;;
22476 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22477 echo "$as_me: creating $ac_file" >&6;}
22479 # First look for the input files in the build tree, otherwise in the
22481 ac_file_inputs
=`IFS=:
22482 for f in $ac_file_in; do
22484 -) echo $tmp/stdin ;;
22486 # Absolute (can't be DOS-style, as IFS=:)
22487 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22488 echo "$as_me: error: cannot find input file: $f" >&2;}
22489 { (exit 1); exit 1; }; }
22490 # Do quote $f, to prevent DOS paths from being IFS'd.
22493 if test -f "$f"; then
22496 elif test -f "$srcdir/$f"; then
22501 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22502 echo "$as_me: error: cannot find input file: $f" >&2;}
22503 { (exit 1); exit 1; }; }
22506 done` ||
{ (exit 1); exit 1; }
22507 # Remove the trailing spaces.
22508 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22512 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22513 # `conftest.undefs', that substitutes the proper values into
22514 # config.h.in to produce config.h. The first handles `#define'
22515 # templates, and the second `#undef' templates.
22516 # And first: Protect against being on the right side of a sed subst in
22517 # config.status. Protect against being in an unquoted here document
22518 # in config.status.
22519 rm -f conftest.defines conftest.undefs
22520 # Using a here document instead of a string reduces the quoting nightmare.
22521 # Putting comments in sed scripts is not portable.
22523 # `end' is used to avoid that the second main sed command (meant for
22524 # 0-ary CPP macros) applies to n-ary macro definitions.
22525 # See the Autoconf documentation for `clear'.
22526 cat >confdef2sed.
sed <<\_ACEOF
22531 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22533 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22536 # If some macros were called several times there might be several times
22537 # the same #defines, which is useless. Nevertheless, we may not want to
22538 # sort them, since we want the *last* AC-DEFINE to be honored.
22539 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22540 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22541 rm -f confdef2sed.sed
22543 # This sed command replaces #undef with comments. This is necessary, for
22544 # example, in the case of _POSIX_SOURCE, which is predefined and required
22545 # on some systems where configure will not decide to define it.
22546 cat >>conftest.undefs <<\_ACEOF
22547 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22550 # Break up conftest.defines because some shells have a limit on the size
22551 # of here documents, and old seds have small limits too (100 cmds).
22552 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22553 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22554 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22555 echo ' :' >>$CONFIG_STATUS
22556 rm -f conftest.tail
22557 while grep . conftest.defines >/dev/null
22559 # Write a limited-size here document to $tmp/defines.sed.
22560 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22561 # Speed up: don't consider the non `#define' lines.
22562 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22563 # Work around the forget-to-reset-the-flag bug.
22564 echo 't clr' >>$CONFIG_STATUS
22565 echo ': clr' >>$CONFIG_STATUS
22566 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
22568 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22570 mv $tmp/out $tmp/in
22572 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
22573 rm -f conftest.defines
22574 mv conftest.
tail conftest.defines
22576 rm -f conftest.defines
22577 echo ' fi # grep' >>$CONFIG_STATUS
22578 echo >>$CONFIG_STATUS
22580 # Break up conftest.undefs because some shells have a limit on the size
22581 # of here documents, and old seds have small limits too (100 cmds).
22582 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22583 rm -f conftest.
tail
22584 while grep . conftest.undefs
>/dev
/null
22586 # Write a limited-size here document to $tmp/undefs.sed.
22587 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22588 # Speed up: don't consider the non
`#undef'
22589 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22590 # Work around the forget-to-reset-the-flag bug.
22591 echo 't clr' >>$CONFIG_STATUS
22592 echo ': clr' >>$CONFIG_STATUS
22593 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22595 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22597 mv $tmp/out $tmp/in
22599 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22600 rm -f conftest.undefs
22601 mv conftest.tail conftest.undefs
22603 rm -f conftest.undefs
22605 cat >>$CONFIG_STATUS <<\_ACEOF
22606 # Let's still pretend it is `configure
' which instantiates (i.e., don't
22607 # use $as_me), people would be surprised to read:
22608 # /* config.h. Generated by config.status. */
22609 if test x
"$ac_file" = x-
; then
22610 echo "/* Generated by configure. */" >$tmp/config.h
22612 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22614 cat $tmp/in >>$tmp/config.h
22616 if test x
"$ac_file" != x-
; then
22617 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
22618 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22619 echo "$as_me: $ac_file is unchanged" >&6;}
22621 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22622 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22623 X"$ac_file" : 'X\(//\)[^/]' \| \
22624 X"$ac_file" : 'X\(//\)$' \| \
22625 X"$ac_file" : 'X\(/\)' \| \
22626 . : '\(.\)' 2>/dev/null ||
22628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22629 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22630 /^X\(\/\/\)$/{ s//\1/; q; }
22631 /^X\(\/\).*/{ s//\1/; q; }
22633 { if $as_mkdir_p; then
22638 while test ! -d "$as_dir"; do
22639 as_dirs
="$as_dir $as_dirs"
22640 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22641 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22642 X"$as_dir" : 'X\(//\)[^/]' \| \
22643 X"$as_dir" : 'X\(//\)$' \| \
22644 X"$as_dir" : 'X\(/\)' \| \
22645 . : '\(.\)' 2>/dev/null ||
22647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22648 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22649 /^X\(\/\/\)$/{ s//\1/; q; }
22650 /^X\(\/\).*/{ s//\1/; q; }
22653 test ! -n "$as_dirs" || mkdir
$as_dirs
22654 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22655 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22656 { (exit 1); exit 1; }; }; }
22659 mv $tmp/config.h
$ac_file
22663 rm -f $tmp/config.h
22665 # Compute $ac_file's index in $config_headers.
22667 for _am_header
in $config_headers :; do
22668 case $_am_header in
22669 $ac_file |
$ac_file:* )
22672 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
22675 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22676 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22677 X$ac_file : 'X\(//\)[^/]' \| \
22678 X$ac_file : 'X\(//\)$' \| \
22679 X$ac_file : 'X\(/\)' \| \
22680 . : '\(.\)' 2>/dev/null ||
22682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22683 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22684 /^X\(\/\/\)$/{ s//\1/; q; }
22685 /^X\(\/\).*/{ s//\1/; q; }
22686 s/.*/./; q'`/stamp-h
$_am_stamp_count
22689 cat >>$CONFIG_STATUS <<\_ACEOF
22692 # CONFIG_LINKS section.
22695 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
22696 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
22697 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22699 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22700 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22702 if test ! -r $srcdir/$ac_source; then
22703 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22704 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22705 { (exit 1); exit 1; }; }
22709 # Make relative symlinks.
22710 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
22711 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22712 X"$ac_dest" : 'X\(//\)[^/]' \| \
22713 X"$ac_dest" : 'X\(//\)$' \| \
22714 X"$ac_dest" : 'X\(/\)' \| \
22715 . : '\(.\)' 2>/dev/null ||
22717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22719 /^X\(\/\/\)$/{ s//\1/; q; }
22720 /^X\(\/\).*/{ s//\1/; q; }
22722 { if $as_mkdir_p; then
22723 mkdir
-p "$ac_dest_dir"
22725 as_dir
="$ac_dest_dir"
22727 while test ! -d "$as_dir"; do
22728 as_dirs
="$as_dir $as_dirs"
22729 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22731 X"$as_dir" : 'X\(//\)[^/]' \| \
22732 X"$as_dir" : 'X\(//\)$' \| \
22733 X"$as_dir" : 'X\(/\)' \| \
22734 . : '\(.\)' 2>/dev/null ||
22736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22737 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22738 /^X\(\/\/\)$/{ s//\1/; q; }
22739 /^X\(\/\).*/{ s//\1/; q; }
22742 test ! -n "$as_dirs" || mkdir
$as_dirs
22743 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22744 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22745 { (exit 1); exit 1; }; }; }
22749 if test "$ac_dest_dir" != .
; then
22750 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22751 # A "../" for each directory in $ac_dir_suffix.
22752 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22754 ac_dir_suffix
= ac_top_builddir
=
22758 .
) # No --srcdir option. We are building in place.
22760 if test -z "$ac_top_builddir"; then
22763 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22765 [\\/]* | ?
:[\\/]* ) # Absolute path.
22766 ac_srcdir
=$srcdir$ac_dir_suffix;
22767 ac_top_srcdir
=$srcdir ;;
22768 *) # Relative path.
22769 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22770 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22773 # Do not use `cd foo && pwd` to compute absolute paths, because
22774 # the directories may not exist.
22776 .
) ac_abs_builddir
="$ac_dest_dir";;
22778 case "$ac_dest_dir" in
22779 .
) ac_abs_builddir
=`pwd`;;
22780 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
22781 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
22784 case $ac_abs_builddir in
22785 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22787 case ${ac_top_builddir}.
in
22788 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22789 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22790 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22793 case $ac_abs_builddir in
22794 .
) ac_abs_srcdir
=$ac_srcdir;;
22797 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22798 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22799 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22802 case $ac_abs_builddir in
22803 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22805 case $ac_top_srcdir in
22806 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22807 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22808 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22814 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
22815 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
22818 # Try a symlink, then a hard link, then a copy.
22819 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
22820 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
22821 cp -p $srcdir/$ac_source $ac_dest ||
22822 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
22823 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
22824 { (exit 1); exit 1; }; }
22827 cat >>$CONFIG_STATUS <<\_ACEOF
22830 # CONFIG_COMMANDS section.
22832 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
22833 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
22834 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22835 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
22836 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22837 X"$ac_dest" : 'X\(//\)[^/]' \| \
22838 X"$ac_dest" : 'X\(//\)$' \| \
22839 X"$ac_dest" : 'X\(/\)' \| \
22840 . : '\(.\)' 2>/dev/null ||
22842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22843 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22844 /^X\(\/\/\)$/{ s//\1/; q; }
22845 /^X\(\/\).*/{ s//\1/; q; }
22847 { if $as_mkdir_p; then
22852 while test ! -d "$as_dir"; do
22853 as_dirs
="$as_dir $as_dirs"
22854 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22855 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22856 X"$as_dir" : 'X\(//\)[^/]' \| \
22857 X"$as_dir" : 'X\(//\)$' \| \
22858 X"$as_dir" : 'X\(/\)' \| \
22859 . : '\(.\)' 2>/dev/null ||
22861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22862 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22863 /^X\(\/\/\)$/{ s//\1/; q; }
22864 /^X\(\/\).*/{ s//\1/; q; }
22867 test ! -n "$as_dirs" || mkdir
$as_dirs
22868 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22869 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22870 { (exit 1); exit 1; }; }; }
22874 if test "$ac_dir" != .
; then
22875 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22876 # A "../" for each directory in $ac_dir_suffix.
22877 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22879 ac_dir_suffix
= ac_top_builddir
=
22883 .
) # No --srcdir option. We are building in place.
22885 if test -z "$ac_top_builddir"; then
22888 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22890 [\\/]* | ?
:[\\/]* ) # Absolute path.
22891 ac_srcdir
=$srcdir$ac_dir_suffix;
22892 ac_top_srcdir
=$srcdir ;;
22893 *) # Relative path.
22894 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22895 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22898 # Do not use `cd foo && pwd` to compute absolute paths, because
22899 # the directories may not exist.
22901 .
) ac_abs_builddir
="$ac_dir";;
22904 .
) ac_abs_builddir
=`pwd`;;
22905 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22906 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22909 case $ac_abs_builddir in
22910 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22912 case ${ac_top_builddir}.
in
22913 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22914 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22915 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22918 case $ac_abs_builddir in
22919 .
) ac_abs_srcdir
=$ac_srcdir;;
22922 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22923 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22924 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22927 case $ac_abs_builddir in
22928 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22930 case $ac_top_srcdir in
22931 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22932 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22933 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22938 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22939 echo "$as_me: executing $ac_dest commands" >&6;}
22941 depdir
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
22942 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
22943 # Strip MF so we end up with the name of the file.
22944 mf
=`echo "$mf" | sed -e 's/:.*$//'`
22945 # Check whether this is an Automake generated Makefile or not.
22946 # We used to match only the files named `Makefile.in', but
22947 # some people rename them; so instead we look at the file content.
22948 # Grep'ing the first line is not enough: some people post-process
22949 # each Makefile.in and add a new line on top of each file to say so.
22950 # So let's grep whole file.
22951 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
22952 dirpart
=`(dirname "$mf") 2>/dev/null ||
22953 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22954 X"$mf" : 'X\(//\)[^/]' \| \
22955 X"$mf" : 'X\(//\)$' \| \
22956 X"$mf" : 'X\(/\)' \| \
22957 . : '\(.\)' 2>/dev/null ||
22959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22960 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22961 /^X\(\/\/\)$/{ s//\1/; q; }
22962 /^X\(\/\).*/{ s//\1/; q; }
22967 # Extract the definition of DEPDIR, am__include, and am__quote
22968 # from the Makefile without running `make'.
22969 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
22970 test -z "$DEPDIR" && continue
22971 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
22972 test -z "am__include" && continue
22973 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
22974 # When using ansi2knr, U may be empty or an underscore; expand it
22975 U
=`sed -n 's/^U = //p' < "$mf"`
22976 # Find all dependency output files, they are included files with
22977 # $(DEPDIR) in their names. We invoke sed twice because it is the
22978 # simplest approach to changing $(DEPDIR) to its actual value in the
22980 for file in `sed -n "
22981 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22982 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22983 # Make sure the directory exists.
22984 test -f "$dirpart/$file" && continue
22985 fdir
=`(dirname "$file") 2>/dev/null ||
22986 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22987 X"$file" : 'X\(//\)[^/]' \| \
22988 X"$file" : 'X\(//\)$' \| \
22989 X"$file" : 'X\(/\)' \| \
22990 . : '\(.\)' 2>/dev/null ||
22992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22993 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22994 /^X\(\/\/\)$/{ s//\1/; q; }
22995 /^X\(\/\).*/{ s//\1/; q; }
22997 { if $as_mkdir_p; then
22998 mkdir
-p $dirpart/$fdir
23000 as_dir
=$dirpart/$fdir
23002 while test ! -d "$as_dir"; do
23003 as_dirs
="$as_dir $as_dirs"
23004 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23006 X"$as_dir" : 'X\(//\)[^/]' \| \
23007 X"$as_dir" : 'X\(//\)$' \| \
23008 X"$as_dir" : 'X\(/\)' \| \
23009 . : '\(.\)' 2>/dev/null ||
23011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23012 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23013 /^X\(\/\/\)$/{ s//\1/; q; }
23014 /^X\(\/\).*/{ s//\1/; q; }
23017 test ! -n "$as_dirs" || mkdir
$as_dirs
23018 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23019 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23020 { (exit 1); exit 1; }; }; }
23022 # echo "creating $dirpart/$file"
23023 echo '# dummy' > "$dirpart/$file"
23028 case x
$CONFIG_HEADERS in
23029 xconfig.h
:config.
in)
23037 cat >>$CONFIG_STATUS <<\_ACEOF
23039 { (exit 0); exit 0; }
23041 chmod +x
$CONFIG_STATUS
23042 ac_clean_files
=$ac_clean_files_save
23045 # configure is writing to config.log, and then calls config.status.
23046 # config.status does its own redirection, appending to config.log.
23047 # Unfortunately, on DOS this fails, as config.log is still kept open
23048 # by configure, so config.status won't be able to write to it; its
23049 # output is simply discarded. So we exec the FD to /dev/null,
23050 # effectively closing config.log, so it can be properly (re)opened and
23051 # appended to by config.status. When coming back to configure, we
23052 # need to make the FD available again.
23053 if test "$no_create" != yes; then
23055 ac_config_status_args
=
23056 test "$silent" = yes &&
23057 ac_config_status_args
="$ac_config_status_args --quiet"
23059 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23061 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23062 # would make configure fail if this is the last instruction.
23063 $ac_cs_success ||
{ (exit 1); exit 1; }
23067 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
23069 if test "$no_recursion" != yes; then
23071 # Remove --cache-file and --srcdir arguments so they do not pile up.
23072 ac_sub_configure_args
=
23074 eval "set x $ac_configure_args"
23078 if test -n "$ac_prev"; then
23083 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
23084 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
23085 ac_prev
=cache_file
;;
23086 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
23087 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
23090 --config-cache |
-C)
23092 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
23094 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
23096 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
23098 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
23102 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23104 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
23108 # Always prepend --prefix to ensure using the same prefix
23109 # in subdir configurations.
23110 ac_arg
="--prefix=$prefix"
23112 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23114 ac_sub_configure_args
="$ac_arg $ac_sub_configure_args"
23117 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
23119 # Do not complain, so a configure script can configure whichever
23120 # parts of a large source tree are present.
23121 test -d "$srcdir/$ac_dir" ||
continue
23123 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23124 echo "$as_me: configuring in $ac_dir" >&6;}
23125 { if $as_mkdir_p; then
23130 while test ! -d "$as_dir"; do
23131 as_dirs
="$as_dir $as_dirs"
23132 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23133 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23134 X"$as_dir" : 'X\(//\)[^/]' \| \
23135 X"$as_dir" : 'X\(//\)$' \| \
23136 X"$as_dir" : 'X\(/\)' \| \
23137 . : '\(.\)' 2>/dev/null ||
23139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23140 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23141 /^X\(\/\/\)$/{ s//\1/; q; }
23142 /^X\(\/\).*/{ s//\1/; q; }
23145 test ! -n "$as_dirs" || mkdir
$as_dirs
23146 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23147 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23148 { (exit 1); exit 1; }; }; }
23152 if test "$ac_dir" != .
; then
23153 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23154 # A "../" for each directory in $ac_dir_suffix.
23155 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23157 ac_dir_suffix
= ac_top_builddir
=
23161 .
) # No --srcdir option. We are building in place.
23163 if test -z "$ac_top_builddir"; then
23166 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23168 [\\/]* | ?
:[\\/]* ) # Absolute path.
23169 ac_srcdir
=$srcdir$ac_dir_suffix;
23170 ac_top_srcdir
=$srcdir ;;
23171 *) # Relative path.
23172 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23173 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23176 # Do not use `cd foo && pwd` to compute absolute paths, because
23177 # the directories may not exist.
23179 .
) ac_abs_builddir
="$ac_dir";;
23182 .
) ac_abs_builddir
=`pwd`;;
23183 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23184 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23187 case $ac_abs_builddir in
23188 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23190 case ${ac_top_builddir}.
in
23191 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23192 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23193 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23196 case $ac_abs_builddir in
23197 .
) ac_abs_srcdir
=$ac_srcdir;;
23200 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23201 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23202 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23205 case $ac_abs_builddir in
23206 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23208 case $ac_top_srcdir in
23209 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23210 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23211 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23218 # Check for guested configure; otherwise get Cygnus style configure.
23219 if test -f "$ac_srcdir/configure.gnu"; then
23220 ac_sub_configure
=$ac_srcdir/configure.gnu
23221 elif test -f "$ac_srcdir/configure"; then
23222 ac_sub_configure
=$ac_srcdir/configure
23223 elif test -f "$ac_srcdir/configure.in"; then
23224 # This should be Cygnus configure.
23225 ac_sub_configure
=$ac_aux_dir/configure
23227 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23228 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23232 # The recursion is here.
23233 if test -n "$ac_sub_configure"; then
23234 # Make the cache file name correct relative to the subdirectory.
23235 case $cache_file in
23236 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
23237 *) # Relative path.
23238 ac_sub_cache_file
=$ac_top_builddir$cache_file ;;
23241 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23242 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23243 # The eval makes quoting arguments work.
23244 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23245 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23246 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23247 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23248 { (exit 1); exit 1; }; }