2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="main.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
313 ac_subdirs_all="$ac_subdirs_all doc testsuite"
314 ac_subdirs_all="$ac_subdirs_all gdbtk"
315 ac_subdirs_all="$ac_subdirs_all multi-ice"
316 ac_subdirs_all="$ac_subdirs_all gdbserver"
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os am__leading_dot DEPDIR CCDEPMODE MAKE GMAKE_TRUE GMAKE_FALSE SET_MAKE USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir GL_COND_LIBTOOL_TRUE GL_COND_LIBTOOL_FALSE GNULIB_MEMMEM GNULIB_MEMPCPY GNULIB_MEMRCHR GNULIB_STPCPY GNULIB_STPNCPY GNULIB_STRCHRNUL GNULIB_STRDUP GNULIB_STRNDUP GNULIB_STRNLEN GNULIB_STRPBRK GNULIB_STRSEP GNULIB_STRSTR GNULIB_STRCASESTR GNULIB_STRTOK_R GNULIB_MBSLEN GNULIB_MBSNLEN GNULIB_MBSCHR GNULIB_MBSRCHR GNULIB_MBSSTR GNULIB_MBSCASECMP GNULIB_MBSNCASECMP GNULIB_MBSPCASECMP GNULIB_MBSCASESTR GNULIB_MBSCSPN GNULIB_MBSPBRK GNULIB_MBSSPN GNULIB_MBSSEP GNULIB_MBSTOK_R GNULIB_STRERROR GNULIB_STRSIGNAL HAVE_DECL_MEMMEM HAVE_MEMPCPY HAVE_DECL_MEMRCHR HAVE_STPCPY HAVE_STPNCPY HAVE_STRCHRNUL HAVE_DECL_STRDUP HAVE_STRNDUP HAVE_DECL_STRNDUP HAVE_DECL_STRNLEN HAVE_STRPBRK HAVE_STRSEP HAVE_STRCASESTR HAVE_DECL_STRTOK_R HAVE_DECL_STRERROR HAVE_DECL_STRSIGNAL REPLACE_STRERROR REPLACE_STRSIGNAL REPLACE_MEMMEM REPLACE_STRCASESTR REPLACE_STRSTR HAVE_LONG_LONG_INT HAVE_UNSIGNED_LONG_LONG_INT HAVE_INTTYPES_H HAVE_SYS_TYPES_H INCLUDE_NEXT NEXT_STDINT_H HAVE_STDINT_H HAVE_SYS_INTTYPES_H HAVE_SYS_BITYPES_H BITSIZEOF_PTRDIFF_T BITSIZEOF_SIG_ATOMIC_T BITSIZEOF_SIZE_T BITSIZEOF_WCHAR_T BITSIZEOF_WINT_T HAVE_SIGNED_SIG_ATOMIC_T HAVE_SIGNED_WCHAR_T HAVE_SIGNED_WINT_T PTRDIFF_T_SUFFIX SIG_ATOMIC_T_SUFFIX SIZE_T_SUFFIX WCHAR_T_SUFFIX WINT_T_SUFFIX STDINT_H NEXT_STRING_H GNULIB_WCWIDTH HAVE_DECL_WCWIDTH REPLACE_WCWIDTH WCHAR_H HAVE_WCHAR_H NEXT_WCHAR_H LIBGNU_LIBDEPS LIBGNU_LTLIBDEPS GNULIB_STDINT_H PACKAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK AMTAR am__tar am__untar am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH am__fastdepCC_TRUE am__fastdepCC_FALSE subdirs TARGET_OBS PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT PYTHON_CFLAGS ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_PATCH_LEVEL TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_INCLUDE TCL_LIBRARY TCL_DEPS TK_VERSION TK_BIN_DIR TK_SRC_DIR TK_LIB_FILE TK_LIB_FLAG TK_LIB_SPEC TK_STUB_LIB_FILE TK_STUB_LIB_FLAG TK_STUB_LIB_SPEC TK_INCLUDE TK_LIBRARY TK_DEPS TK_XINCLUDES X_CFLAGS X_LDFLAGS X_LIBS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h datarootdir docdir htmldir pdfdir LIBOBJS LTLIBOBJS gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS'
318 ac_subst_files='host_makefile_frag'
321 # Initialize some variables set by options.
323 ac_init_version=false
324 # The variables have the same names as the options, with
325 # dashes changed to underlines.
333 program_transform_name=s,x,x,
341 # Installation directory options.
342 # These are left unexpanded so users can "make install exec_prefix=/foo"
343 # and all the variables that are supposed to be based on exec_prefix
344 # by default will actually change.
345 # Use braces instead of parens because sh, perl, etc. also accept them.
346 bindir='${exec_prefix}/bin'
347 sbindir='${exec_prefix}/sbin'
348 libexecdir='${exec_prefix}/libexec'
349 datadir='${prefix}/share'
350 sysconfdir='${prefix}/etc'
351 sharedstatedir='${prefix}/com'
352 localstatedir='${prefix}/var'
353 libdir='${exec_prefix}/lib'
354 includedir='${prefix}/include'
355 oldincludedir='/usr/include'
356 infodir='${prefix}/info'
357 mandir='${prefix}/man'
362 # If the previous option needs an argument, assign it.
363 if test -n "$ac_prev"; then
364 eval "$ac_prev=\$ac_option"
369 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
371 # Accept the important Cygnus configure options, so we can diagnose typos.
375 -bindir | --bindir | --bindi | --bind | --bin | --bi)
377 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
380 -build | --build | --buil | --bui | --bu)
381 ac_prev=build_alias ;;
382 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
383 build_alias=$ac_optarg ;;
385 -cache-file | --cache-file | --cache-fil | --cache-fi \
386 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
387 ac_prev=cache_file ;;
388 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
389 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
390 cache_file=$ac_optarg ;;
393 cache_file=config.cache ;;
395 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
397 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
399 datadir=$ac_optarg ;;
401 -disable-* | --disable-*)
402 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408 eval "enable_$ac_feature=no" ;;
410 -enable-* | --enable-*)
411 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
412 # Reject names that are not valid shell variable names.
413 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
414 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
415 { (exit 1); exit 1; }; }
416 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
418 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
421 eval "enable_$ac_feature='$ac_optarg'" ;;
423 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
424 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
425 | --exec | --exe | --ex)
426 ac_prev=exec_prefix ;;
427 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
428 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
429 | --exec=* | --exe=* | --ex=*)
430 exec_prefix=$ac_optarg ;;
432 -gas | --gas | --ga | --g)
433 # Obsolete; use --with-gas.
436 -help | --help | --hel | --he | -h)
438 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
439 ac_init_help=recursive ;;
440 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
441 ac_init_help=short ;;
443 -host | --host | --hos | --ho)
444 ac_prev=host_alias ;;
445 -host=* | --host=* | --hos=* | --ho=*)
446 host_alias=$ac_optarg ;;
448 -includedir | --includedir | --includedi | --included | --include \
449 | --includ | --inclu | --incl | --inc)
450 ac_prev=includedir ;;
451 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
452 | --includ=* | --inclu=* | --incl=* | --inc=*)
453 includedir=$ac_optarg ;;
455 -infodir | --infodir | --infodi | --infod | --info | --inf)
457 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
458 infodir=$ac_optarg ;;
460 -libdir | --libdir | --libdi | --libd)
462 -libdir=* | --libdir=* | --libdi=* | --libd=*)
465 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
466 | --libexe | --libex | --libe)
467 ac_prev=libexecdir ;;
468 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
469 | --libexe=* | --libex=* | --libe=*)
470 libexecdir=$ac_optarg ;;
472 -localstatedir | --localstatedir | --localstatedi | --localstated \
473 | --localstate | --localstat | --localsta | --localst \
474 | --locals | --local | --loca | --loc | --lo)
475 ac_prev=localstatedir ;;
476 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
477 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
478 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
479 localstatedir=$ac_optarg ;;
481 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
483 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
487 # Obsolete; use --without-fp.
490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
491 | --no-cr | --no-c | -n)
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
498 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
499 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
500 | --oldin | --oldi | --old | --ol | --o)
501 ac_prev=oldincludedir ;;
502 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
503 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
504 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
505 oldincludedir=$ac_optarg ;;
507 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
509 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
512 -program-prefix | --program-prefix | --program-prefi | --program-pref \
513 | --program-pre | --program-pr | --program-p)
514 ac_prev=program_prefix ;;
515 -program-prefix=* | --program-prefix=* | --program-prefi=* \
516 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
517 program_prefix=$ac_optarg ;;
519 -program-suffix | --program-suffix | --program-suffi | --program-suff \
520 | --program-suf | --program-su | --program-s)
521 ac_prev=program_suffix ;;
522 -program-suffix=* | --program-suffix=* | --program-suffi=* \
523 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
524 program_suffix=$ac_optarg ;;
526 -program-transform-name | --program-transform-name \
527 | --program-transform-nam | --program-transform-na \
528 | --program-transform-n | --program-transform- \
529 | --program-transform | --program-transfor \
530 | --program-transfo | --program-transf \
531 | --program-trans | --program-tran \
532 | --progr-tra | --program-tr | --program-t)
533 ac_prev=program_transform_name ;;
534 -program-transform-name=* | --program-transform-name=* \
535 | --program-transform-nam=* | --program-transform-na=* \
536 | --program-transform-n=* | --program-transform-=* \
537 | --program-transform=* | --program-transfor=* \
538 | --program-transfo=* | --program-transf=* \
539 | --program-trans=* | --program-tran=* \
540 | --progr-tra=* | --program-tr=* | --program-t=*)
541 program_transform_name=$ac_optarg ;;
543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
544 | -silent | --silent | --silen | --sile | --sil)
547 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
549 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
551 sbindir=$ac_optarg ;;
553 -sharedstatedir | --sharedstatedir | --sharedstatedi \
554 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555 | --sharedst | --shareds | --shared | --share | --shar \
557 ac_prev=sharedstatedir ;;
558 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
562 sharedstatedir=$ac_optarg ;;
564 -site | --site | --sit)
566 -site=* | --site=* | --sit=*)
569 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
571 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
574 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
575 | --syscon | --sysco | --sysc | --sys | --sy)
576 ac_prev=sysconfdir ;;
577 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
578 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
579 sysconfdir=$ac_optarg ;;
581 -target | --target | --targe | --targ | --tar | --ta | --t)
582 ac_prev=target_alias ;;
583 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
584 target_alias=$ac_optarg ;;
586 -v | -verbose | --verbose | --verbos | --verbo | --verb)
589 -version | --version | --versio | --versi | --vers | -V)
593 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
594 # Reject names that are not valid shell variable names.
595 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596 { echo "$as_me: error: invalid package name: $ac_package" >&2
597 { (exit 1); exit 1; }; }
598 ac_package=`echo $ac_package| sed 's/-/_/g'`
600 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
603 eval "with_$ac_package='$ac_optarg'" ;;
605 -without-* | --without-*)
606 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
607 # Reject names that are not valid shell variable names.
608 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
609 { echo "$as_me: error: invalid package name: $ac_package" >&2
610 { (exit 1); exit 1; }; }
611 ac_package=`echo $ac_package | sed 's/-/_/g'`
612 eval "with_$ac_package=no" ;;
615 # Obsolete; use --with-x.
618 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619 | --x-incl | --x-inc | --x-in | --x-i)
620 ac_prev=x_includes ;;
621 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
623 x_includes=$ac_optarg ;;
625 -x-libraries | --x-libraries | --x-librarie | --x-librari \
626 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627 ac_prev=x_libraries ;;
628 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
630 x_libraries=$ac_optarg ;;
632 -*) { echo "$as_me: error: unrecognized option: $ac_option
633 Try \`$0 --help' for more information." >&2
634 { (exit 1); exit 1; }; }
638 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
639 # Reject names that are not valid shell variable names.
640 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
641 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
642 { (exit 1); exit 1; }; }
643 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644 eval "$ac_envvar='$ac_optarg'"
648 # FIXME: should be removed in autoconf 3.0.
649 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
650 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
651 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
652 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
658 if test -n "$ac_prev"; then
659 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
660 { echo "$as_me: error: missing argument to $ac_option" >&2
661 { (exit 1); exit 1; }; }
664 # Be sure to have absolute paths.
665 for ac_var in exec_prefix prefix
667 eval ac_val=$`echo $ac_var`
669 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671 { (exit 1); exit 1; }; };;
675 # Be sure to have absolute paths.
676 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677 localstatedir libdir includedir oldincludedir infodir mandir
679 eval ac_val=$`echo $ac_var`
681 [\\/$]* | ?:[\\/]* ) ;;
682 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683 { (exit 1); exit 1; }; };;
687 # There might be people who depend on the old broken behavior: `$host'
688 # used to hold the argument of --host etc.
689 # FIXME: To remove some day.
694 # FIXME: To remove some day.
695 if test "x$host_alias" != x; then
696 if test "x$build_alias" = x; then
697 cross_compiling=maybe
698 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
699 If a cross compiler is detected then cross compile mode will be used." >&2
700 elif test "x$build_alias" != "x$host_alias"; then
706 test -n "$host_alias" && ac_tool_prefix=$host_alias-
708 test "$silent" = yes && exec 6>/dev/null
711 # Find the source files, if location was not specified.
712 if test -z "$srcdir"; then
713 ac_srcdir_defaulted=yes
714 # Try the directory containing this script, then its parent.
715 ac_confdir=`(dirname "$0") 2>/dev/null ||
716 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717 X"$0" : 'X\(//\)[^/]' \| \
718 X"$0" : 'X\(//\)$' \| \
719 X"$0" : 'X\(/\)' \| \
720 . : '\(.\)' 2>/dev/null ||
722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
724 /^X\(\/\/\)$/{ s//\1/; q; }
725 /^X\(\/\).*/{ s//\1/; q; }
728 if test ! -r $srcdir/$ac_unique_file; then
732 ac_srcdir_defaulted=no
734 if test ! -r $srcdir/$ac_unique_file; then
735 if test "$ac_srcdir_defaulted" = yes; then
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
737 { (exit 1); exit 1; }; }
739 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740 { (exit 1); exit 1; }; }
743 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
744 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
745 { (exit 1); exit 1; }; }
746 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747 ac_env_build_alias_set=${build_alias+set}
748 ac_env_build_alias_value=$build_alias
749 ac_cv_env_build_alias_set=${build_alias+set}
750 ac_cv_env_build_alias_value=$build_alias
751 ac_env_host_alias_set=${host_alias+set}
752 ac_env_host_alias_value=$host_alias
753 ac_cv_env_host_alias_set=${host_alias+set}
754 ac_cv_env_host_alias_value=$host_alias
755 ac_env_target_alias_set=${target_alias+set}
756 ac_env_target_alias_value=$target_alias
757 ac_cv_env_target_alias_set=${target_alias+set}
758 ac_cv_env_target_alias_value=$target_alias
759 ac_env_CC_set=${CC+set}
761 ac_cv_env_CC_set=${CC+set}
762 ac_cv_env_CC_value=$CC
763 ac_env_CFLAGS_set=${CFLAGS+set}
764 ac_env_CFLAGS_value=$CFLAGS
765 ac_cv_env_CFLAGS_set=${CFLAGS+set}
766 ac_cv_env_CFLAGS_value=$CFLAGS
767 ac_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_env_LDFLAGS_value=$LDFLAGS
769 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770 ac_cv_env_LDFLAGS_value=$LDFLAGS
771 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_env_CPPFLAGS_value=$CPPFLAGS
773 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775 ac_env_CPP_set=${CPP+set}
776 ac_env_CPP_value=$CPP
777 ac_cv_env_CPP_set=${CPP+set}
778 ac_cv_env_CPP_value=$CPP
781 # Report the --help message.
783 if test "$ac_init_help" = "long"; then
784 # Omit some internal or obsolete options to make the list less imposing.
785 # This message is too long to be a string in the A/UX 3.1 sh.
787 \`configure' configures this package to adapt to many kinds of systems.
789 Usage: $0 [OPTION]... [VAR=VALUE]...
791 To assign environment variables (e.g., CC, CFLAGS...), specify them as
792 VAR=VALUE. See below for descriptions of some of the useful variables.
794 Defaults for the options are specified in brackets.
797 -h, --help display this help and exit
798 --help=short display options specific to this package
799 --help=recursive display the short help of all the included packages
800 -V, --version display version information and exit
801 -q, --quiet, --silent do not print \`checking...' messages
802 --cache-file=FILE cache test results in FILE [disabled]
803 -C, --config-cache alias for \`--cache-file=config.cache'
804 -n, --no-create do not create output files
805 --srcdir=DIR find the sources in DIR [configure dir or \`..']
810 Installation directories:
811 --prefix=PREFIX install architecture-independent files in PREFIX
813 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 By default, \`make install' will install all the files in
817 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
818 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819 for instance \`--prefix=\$HOME'.
821 For better control, use the options below.
823 Fine tuning of the installation directories:
824 --bindir=DIR user executables [EPREFIX/bin]
825 --sbindir=DIR system admin executables [EPREFIX/sbin]
826 --libexecdir=DIR program executables [EPREFIX/libexec]
827 --datadir=DIR read-only architecture-independent data [PREFIX/share]
828 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
829 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
830 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
831 --libdir=DIR object code libraries [EPREFIX/lib]
832 --includedir=DIR C header files [PREFIX/include]
833 --oldincludedir=DIR C header files for non-gcc [/usr/include]
834 --infodir=DIR info documentation [PREFIX/info]
835 --mandir=DIR man documentation [PREFIX/man]
841 --program-prefix=PREFIX prepend PREFIX to installed program names
842 --program-suffix=SUFFIX append SUFFIX to installed program names
843 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
846 --x-includes=DIR X include files are in DIR
847 --x-libraries=DIR X library files are in DIR
850 --build=BUILD configure for building on BUILD [guessed]
851 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 --target=TARGET configure for building compilers for TARGET [HOST]
856 if test -n "$ac_init_help"; then
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
865 --disable-dependency-tracking speeds up one-time build
866 --enable-dependency-tracking do not reject slow dependency extractors
867 --enable-targets=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)
909 --with-sysroot=DIR Search for usr/lib et al within DIR.
910 --with-system-gdbinit=FILE
911 Automatically load a system-wide gdbinit file
912 --with-tcl directory containing tcl configuration (tclConfig.sh)
913 --with-tk directory containing tk configuration (tkConfig.sh)
914 --with-x use the X Window System
916 Some influential environment variables:
917 CC C compiler command
918 CFLAGS C compiler flags
919 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
920 nonstandard directory <lib dir>
921 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
922 headers in a nonstandard directory <include dir>
925 Use these variables to override the choices made by `configure' or to help
926 it to find libraries and programs with nonstandard names/locations.
931 if test "$ac_init_help" = "recursive"; then
932 # If there are subdirs, report their specific --help.
934 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
935 test -d $ac_dir || continue
938 if test "$ac_dir" != .; then
939 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
940 # A "../" for each directory in $ac_dir_suffix.
941 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
943 ac_dir_suffix= ac_top_builddir=
947 .) # No --srcdir option. We are building in place.
949 if test -z "$ac_top_builddir"; then
952 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
954 [\\/]* | ?:[\\/]* ) # Absolute path.
955 ac_srcdir=$srcdir$ac_dir_suffix;
956 ac_top_srcdir=$srcdir ;;
958 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
959 ac_top_srcdir=$ac_top_builddir$srcdir ;;
962 # Do not use `cd foo && pwd` to compute absolute paths, because
963 # the directories may not exist.
965 .) ac_abs_builddir="$ac_dir";;
968 .) ac_abs_builddir=`pwd`;;
969 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
970 *) ac_abs_builddir=`pwd`/"$ac_dir";;
973 case $ac_abs_builddir in
974 .) ac_abs_top_builddir=${ac_top_builddir}.;;
976 case ${ac_top_builddir}. in
977 .) ac_abs_top_builddir=$ac_abs_builddir;;
978 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
979 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
982 case $ac_abs_builddir in
983 .) ac_abs_srcdir=$ac_srcdir;;
986 .) ac_abs_srcdir=$ac_abs_builddir;;
987 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
988 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
991 case $ac_abs_builddir in
992 .) ac_abs_top_srcdir=$ac_top_srcdir;;
994 case $ac_top_srcdir in
995 .) ac_abs_top_srcdir=$ac_abs_builddir;;
996 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
997 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1002 # Check for guested configure; otherwise get Cygnus style configure.
1003 if test -f $ac_srcdir/configure.gnu; then
1005 $SHELL $ac_srcdir/configure.gnu --help=recursive
1006 elif test -f $ac_srcdir/configure; then
1008 $SHELL $ac_srcdir/configure --help=recursive
1009 elif test -f $ac_srcdir/configure.ac ||
1010 test -f $ac_srcdir/configure.in; then
1012 $ac_configure --help
1014 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1020 test -n "$ac_init_help" && exit 0
1021 if $ac_init_version; then
1024 Copyright (C) 2003 Free Software Foundation, Inc.
1025 This configure script is free software; the Free Software Foundation
1026 gives unlimited permission to copy, distribute and modify it.
1032 This file contains any messages produced by compilers while
1033 running configure, to aid debugging if configure makes a mistake.
1035 It was created by $as_me, which was
1036 generated by GNU Autoconf 2.59. Invocation command line was
1047 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1048 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1049 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1050 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1051 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1053 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1054 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1056 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1057 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1058 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1059 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1060 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1061 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1062 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1070 test -z "$as_dir" && as_dir=.
1071 echo "PATH: $as_dir"
1086 # Keep a trace of the command line.
1087 # Strip out --no-create and --no-recursion so they do not pile up.
1088 # Strip out --silent because we don't want to record it for future runs.
1089 # Also quote any args containing shell meta-characters.
1090 # Make two passes to allow for proper duplicate-argument suppression.
1095 ac_must_keep_next=false
1101 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1105 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1106 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1109 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1111 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1112 if test $ac_must_keep_next = true; then
1113 ac_must_keep_next=false # Got value, back to normal.
1116 *=* | --config-cache | -C | -disable-* | --disable-* \
1117 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1118 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1119 | -with-* | --with-* | -without-* | --without-* | --x)
1120 case "$ac_configure_args0 " in
1121 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1124 -* ) ac_must_keep_next=true ;;
1127 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1128 # Get rid of the leading space.
1134 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1135 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1137 # When interrupted or exit'd, cleanup temporary files, and complete
1138 # config.log. We remove comments because anyway the quotes in there
1139 # would cause problems or look ugly.
1140 # WARNING: Be sure not to use single quotes in there, as some shells,
1141 # such as our DU 5.0 friend, will then `close' the trap.
1142 trap 'exit_status=$?
1143 # Save into config.log some information that might help in debugging.
1148 ## ---------------- ##
1149 ## Cache variables. ##
1150 ## ---------------- ##
1153 # The following way of writing the cache mishandles newlines in values,
1156 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1159 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1160 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1164 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1171 ## ----------------- ##
1172 ## Output variables. ##
1173 ## ----------------- ##
1176 for ac_var in $ac_subst_vars
1178 eval ac_val=$`echo $ac_var`
1179 echo "$ac_var='"'"'$ac_val'"'"'"
1183 if test -n "$ac_subst_files"; then
1190 for ac_var in $ac_subst_files
1192 eval ac_val=$`echo $ac_var`
1193 echo "$ac_var='"'"'$ac_val'"'"'"
1198 if test -s confdefs.h; then
1205 sed "/^$/d" confdefs.h | sort
1208 test "$ac_signal" != 0 &&
1209 echo "$as_me: caught signal $ac_signal"
1210 echo "$as_me: exit $exit_status"
1212 rm -f core *.core &&
1213 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1216 for ac_signal in 1 2 13 15; do
1217 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1221 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1222 rm -rf conftest* confdefs.h
1223 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1226 # Predefined preprocessor variables.
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_NAME "$PACKAGE_NAME"
1233 cat >>confdefs.h <<_ACEOF
1234 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1243 cat >>confdefs.h <<_ACEOF
1244 #define PACKAGE_STRING "$PACKAGE_STRING"
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1253 # Let the site file select an alternate cache file if it wants to.
1254 # Prefer explicitly selected file to automatically selected ones.
1255 if test -z "$CONFIG_SITE"; then
1256 if test "x$prefix" != xNONE; then
1257 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1259 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1262 for ac_site_file in $CONFIG_SITE; do
1263 if test -r "$ac_site_file"; then
1264 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1265 echo "$as_me: loading site script $ac_site_file" >&6;}
1266 sed 's/^/| /' "$ac_site_file" >&5
1271 if test -r "$cache_file"; then
1272 # Some versions of bash will fail to source /dev/null (special
1273 # files actually), so we avoid doing that.
1274 if test -f "$cache_file"; then
1275 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1276 echo "$as_me: loading cache $cache_file" >&6;}
1278 [\\/]* | ?:[\\/]* ) . $cache_file;;
1279 *) . ./$cache_file;;
1283 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1284 echo "$as_me: creating cache $cache_file" >&6;}
1288 # Check that the precious variables saved in the cache have kept the same
1290 ac_cache_corrupted=false
1291 for ac_var in `(set) 2>&1 |
1292 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1293 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1294 eval ac_new_set=\$ac_env_${ac_var}_set
1295 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1296 eval ac_new_val="\$ac_env_${ac_var}_value"
1297 case $ac_old_set,$ac_new_set in
1299 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1300 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1301 ac_cache_corrupted=: ;;
1303 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1304 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1305 ac_cache_corrupted=: ;;
1308 if test "x$ac_old_val" != "x$ac_new_val"; then
1309 # differences in whitespace do not lead to failure.
1310 ac_old_val_w=`echo x $ac_old_val`
1311 ac_new_val_w=`echo x $ac_new_val`
1312 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1313 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1314 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1315 ac_cache_corrupted=:
1317 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1318 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1319 eval $ac_var=\$ac_old_val
1321 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1322 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1323 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1324 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1327 # Pass precious variables to config.status.
1328 if test "$ac_new_set" = set; then
1330 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1331 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1332 *) ac_arg=$ac_var=$ac_new_val ;;
1334 case " $ac_configure_args " in
1335 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1336 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1340 if $ac_cache_corrupted; then
1341 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1342 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1343 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1344 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1345 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1346 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1347 { (exit 1); exit 1; }; }
1351 ac_cpp='$CPP $CPPFLAGS'
1352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1357 gl_header_list="$gl_header_list stdint.h"
1358 gl_header_list="$gl_header_list wchar.h"
1359 gl_header_list="$gl_header_list string.h"
1380 ac_config_headers="$ac_config_headers config.h:config.in"
1382 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1383 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1384 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1385 if test "${enable_maintainer_mode+set}" = set; then
1386 enableval="$enable_maintainer_mode"
1387 USE_MAINTAINER_MODE=$enableval
1389 USE_MAINTAINER_MODE=no
1391 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1392 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1395 if test $USE_MAINTAINER_MODE = yes; then
1396 MAINTAINER_MODE_TRUE=
1397 MAINTAINER_MODE_FALSE='#'
1399 MAINTAINER_MODE_TRUE='#'
1400 MAINTAINER_MODE_FALSE=
1403 MAINT=$MAINTAINER_MODE_TRUE
1408 ac_cpp='$CPP $CPPFLAGS'
1409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1412 if test -n "$ac_tool_prefix"; then
1413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1414 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1415 echo "$as_me:$LINENO: checking for $ac_word" >&5
1416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417 if test "${ac_cv_prog_CC+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1420 if test -n "$CC"; then
1421 ac_cv_prog_CC="$CC" # Let the user override the test.
1423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1427 test -z "$as_dir" && as_dir=.
1428 for ac_exec_ext in '' $ac_executable_extensions; do
1429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1430 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1440 if test -n "$CC"; then
1441 echo "$as_me:$LINENO: result: $CC" >&5
1442 echo "${ECHO_T}$CC" >&6
1444 echo "$as_me:$LINENO: result: no" >&5
1445 echo "${ECHO_T}no" >&6
1449 if test -z "$ac_cv_prog_CC"; then
1451 # Extract the first word of "gcc", so it can be a program name with args.
1452 set dummy gcc; ac_word=$2
1453 echo "$as_me:$LINENO: checking for $ac_word" >&5
1454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1455 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1456 echo $ECHO_N "(cached) $ECHO_C" >&6
1458 if test -n "$ac_ct_CC"; then
1459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1465 test -z "$as_dir" && as_dir=.
1466 for ac_exec_ext in '' $ac_executable_extensions; do
1467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1468 ac_cv_prog_ac_ct_CC="gcc"
1469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1478 if test -n "$ac_ct_CC"; then
1479 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1480 echo "${ECHO_T}$ac_ct_CC" >&6
1482 echo "$as_me:$LINENO: result: no" >&5
1483 echo "${ECHO_T}no" >&6
1491 if test -z "$CC"; then
1492 if test -n "$ac_tool_prefix"; then
1493 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1494 set dummy ${ac_tool_prefix}cc; ac_word=$2
1495 echo "$as_me:$LINENO: checking for $ac_word" >&5
1496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1497 if test "${ac_cv_prog_CC+set}" = set; then
1498 echo $ECHO_N "(cached) $ECHO_C" >&6
1500 if test -n "$CC"; then
1501 ac_cv_prog_CC="$CC" # Let the user override the test.
1503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1507 test -z "$as_dir" && as_dir=.
1508 for ac_exec_ext in '' $ac_executable_extensions; do
1509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1510 ac_cv_prog_CC="${ac_tool_prefix}cc"
1511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1520 if test -n "$CC"; then
1521 echo "$as_me:$LINENO: result: $CC" >&5
1522 echo "${ECHO_T}$CC" >&6
1524 echo "$as_me:$LINENO: result: no" >&5
1525 echo "${ECHO_T}no" >&6
1529 if test -z "$ac_cv_prog_CC"; then
1531 # Extract the first word of "cc", so it can be a program name with args.
1532 set dummy cc; ac_word=$2
1533 echo "$as_me:$LINENO: checking for $ac_word" >&5
1534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1535 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1538 if test -n "$ac_ct_CC"; then
1539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1545 test -z "$as_dir" && as_dir=.
1546 for ac_exec_ext in '' $ac_executable_extensions; do
1547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1548 ac_cv_prog_ac_ct_CC="cc"
1549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1557 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1558 if test -n "$ac_ct_CC"; then
1559 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1560 echo "${ECHO_T}$ac_ct_CC" >&6
1562 echo "$as_me:$LINENO: result: no" >&5
1563 echo "${ECHO_T}no" >&6
1572 if test -z "$CC"; then
1573 # Extract the first word of "cc", so it can be a program name with args.
1574 set dummy cc; ac_word=$2
1575 echo "$as_me:$LINENO: checking for $ac_word" >&5
1576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1577 if test "${ac_cv_prog_CC+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 if test -n "$CC"; then
1581 ac_cv_prog_CC="$CC" # Let the user override the test.
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 test -z "$as_dir" && as_dir=.
1589 for ac_exec_ext in '' $ac_executable_extensions; do
1590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1592 ac_prog_rejected=yes
1596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1602 if test $ac_prog_rejected = yes; then
1603 # We found a bogon in the path, so make sure we never use it.
1604 set dummy $ac_cv_prog_CC
1606 if test $# != 0; then
1607 # We chose a different compiler from the bogus one.
1608 # However, it has the same basename, so the bogon will be chosen
1609 # first if we set CC to just the basename; use the full file name.
1611 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1617 if test -n "$CC"; then
1618 echo "$as_me:$LINENO: result: $CC" >&5
1619 echo "${ECHO_T}$CC" >&6
1621 echo "$as_me:$LINENO: result: no" >&5
1622 echo "${ECHO_T}no" >&6
1626 if test -z "$CC"; then
1627 if test -n "$ac_tool_prefix"; then
1630 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1631 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1632 echo "$as_me:$LINENO: checking for $ac_word" >&5
1633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1634 if test "${ac_cv_prog_CC+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1637 if test -n "$CC"; then
1638 ac_cv_prog_CC="$CC" # Let the user override the test.
1640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644 test -z "$as_dir" && as_dir=.
1645 for ac_exec_ext in '' $ac_executable_extensions; do
1646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1647 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657 if test -n "$CC"; then
1658 echo "$as_me:$LINENO: result: $CC" >&5
1659 echo "${ECHO_T}$CC" >&6
1661 echo "$as_me:$LINENO: result: no" >&5
1662 echo "${ECHO_T}no" >&6
1665 test -n "$CC" && break
1668 if test -z "$CC"; then
1672 # Extract the first word of "$ac_prog", so it can be a program name with args.
1673 set dummy $ac_prog; ac_word=$2
1674 echo "$as_me:$LINENO: checking for $ac_word" >&5
1675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1679 if test -n "$ac_ct_CC"; then
1680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686 test -z "$as_dir" && as_dir=.
1687 for ac_exec_ext in '' $ac_executable_extensions; do
1688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689 ac_cv_prog_ac_ct_CC="$ac_prog"
1690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1698 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1699 if test -n "$ac_ct_CC"; then
1700 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1701 echo "${ECHO_T}$ac_ct_CC" >&6
1703 echo "$as_me:$LINENO: result: no" >&5
1704 echo "${ECHO_T}no" >&6
1707 test -n "$ac_ct_CC" && break
1716 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1717 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1718 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1719 See \`config.log' for more details." >&5
1720 echo "$as_me: error: no acceptable C compiler found in \$PATH
1721 See \`config.log' for more details." >&2;}
1722 { (exit 1); exit 1; }; }; }
1724 # Provide some information about the compiler.
1725 echo "$as_me:$LINENO:" \
1726 "checking for C compiler version" >&5
1727 ac_compiler=`set X $ac_compile; echo $2`
1728 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1729 (eval $ac_compiler --version </dev/null >&5) 2>&5
1731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732 (exit $ac_status); }
1733 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1734 (eval $ac_compiler -v </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); }
1744 cat >conftest.$ac_ext <<_ACEOF
1747 cat confdefs.h >>conftest.$ac_ext
1748 cat >>conftest.$ac_ext <<_ACEOF
1749 /* end confdefs.h. */
1759 ac_clean_files_save=$ac_clean_files
1760 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1761 # Try to create an executable without -o first, disregard a.out.
1762 # It will help us diagnose broken compilers, and finding out an intuition
1764 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1765 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1766 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1767 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1768 (eval $ac_link_default) 2>&5
1770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1771 (exit $ac_status); }; then
1772 # Find the output, starting from the most likely. This scheme is
1773 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1776 # Be careful to initialize this variable, since it used to be cached.
1777 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1779 # b.out is created by i960 compilers.
1780 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1782 test -f "$ac_file" || continue
1784 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1787 # This is the source file.
1790 # We found the default executable, but exeext='' is most
1794 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1795 # FIXME: I believe we export ac_cv_exeext for Libtool,
1796 # but it would be cool to find out if it's true. Does anybody
1797 # maintain Libtool? --akim.
1805 echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1808 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1809 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1810 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1811 See \`config.log' for more details." >&5
1812 echo "$as_me: error: C compiler cannot create executables
1813 See \`config.log' for more details." >&2;}
1814 { (exit 77); exit 77; }; }; }
1817 ac_exeext=$ac_cv_exeext
1818 echo "$as_me:$LINENO: result: $ac_file" >&5
1819 echo "${ECHO_T}$ac_file" >&6
1821 # Check the compiler produces executables we can run. If not, either
1822 # the compiler is broken, or we cross compile.
1823 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1824 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1825 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1826 # If not cross compiling, check that we can run a simple program.
1827 if test "$cross_compiling" != yes; then
1828 if { ac_try='./$ac_file'
1829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833 (exit $ac_status); }; }; then
1836 if test "$cross_compiling" = maybe; then
1839 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1840 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1841 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1842 If you meant to cross compile, use \`--host'.
1843 See \`config.log' for more details." >&5
1844 echo "$as_me: error: cannot run C compiled programs.
1845 If you meant to cross compile, use \`--host'.
1846 See \`config.log' for more details." >&2;}
1847 { (exit 1); exit 1; }; }; }
1851 echo "$as_me:$LINENO: result: yes" >&5
1852 echo "${ECHO_T}yes" >&6
1854 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1855 ac_clean_files=$ac_clean_files_save
1856 # Check the compiler produces executables we can run. If not, either
1857 # the compiler is broken, or we cross compile.
1858 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1859 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1860 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1861 echo "${ECHO_T}$cross_compiling" >&6
1863 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1864 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1866 (eval $ac_link) 2>&5
1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869 (exit $ac_status); }; then
1870 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1871 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1872 # work properly (i.e., refer to `conftest.exe'), while it won't with
1874 for ac_file in conftest.exe conftest conftest.*; do
1875 test -f "$ac_file" || continue
1877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1878 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1885 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1886 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1887 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1888 See \`config.log' for more details." >&5
1889 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1890 See \`config.log' for more details." >&2;}
1891 { (exit 1); exit 1; }; }; }
1894 rm -f conftest$ac_cv_exeext
1895 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1896 echo "${ECHO_T}$ac_cv_exeext" >&6
1898 rm -f conftest.$ac_ext
1899 EXEEXT=$ac_cv_exeext
1901 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1902 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1903 if test "${ac_cv_objext+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 cat >conftest.$ac_ext <<_ACEOF
1909 cat confdefs.h >>conftest.$ac_ext
1910 cat >>conftest.$ac_ext <<_ACEOF
1911 /* end confdefs.h. */
1921 rm -f conftest.o conftest.obj
1922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1923 (eval $ac_compile) 2>&5
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }; then
1927 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1930 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1935 echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1938 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1939 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1940 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1941 See \`config.log' for more details." >&5
1942 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1943 See \`config.log' for more details." >&2;}
1944 { (exit 1); exit 1; }; }; }
1947 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1949 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1950 echo "${ECHO_T}$ac_cv_objext" >&6
1951 OBJEXT=$ac_cv_objext
1953 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1954 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1955 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 cat >conftest.$ac_ext <<_ACEOF
1961 cat confdefs.h >>conftest.$ac_ext
1962 cat >>conftest.$ac_ext <<_ACEOF
1963 /* end confdefs.h. */
1976 rm -f conftest.$ac_objext
1977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1978 (eval $ac_compile) 2>conftest.er1
1980 grep -v '^ *+' conftest.er1 >conftest.err
1982 cat conftest.err >&5
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); } &&
1985 { ac_try='test -z "$ac_c_werror_flag"
1986 || test ! -s conftest.err'
1987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); }; } &&
1992 { ac_try='test -s conftest.$ac_objext'
1993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); }; }; then
2000 echo "$as_me: failed program was:" >&5
2001 sed 's/^/| /' conftest.$ac_ext >&5
2005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2006 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2009 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2010 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2011 GCC=`test $ac_compiler_gnu = yes && echo yes`
2012 ac_test_CFLAGS=${CFLAGS+set}
2013 ac_save_CFLAGS=$CFLAGS
2015 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2016 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2017 if test "${ac_cv_prog_cc_g+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 cat >conftest.$ac_ext <<_ACEOF
2023 cat confdefs.h >>conftest.$ac_ext
2024 cat >>conftest.$ac_ext <<_ACEOF
2025 /* end confdefs.h. */
2035 rm -f conftest.$ac_objext
2036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2037 (eval $ac_compile) 2>conftest.er1
2039 grep -v '^ *+' conftest.er1 >conftest.err
2041 cat conftest.err >&5
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); } &&
2044 { ac_try='test -z "$ac_c_werror_flag"
2045 || test ! -s conftest.err'
2046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); }; } &&
2051 { ac_try='test -s conftest.$ac_objext'
2052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }; }; then
2059 echo "$as_me: failed program was:" >&5
2060 sed 's/^/| /' conftest.$ac_ext >&5
2064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2066 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2067 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2068 if test "$ac_test_CFLAGS" = set; then
2069 CFLAGS=$ac_save_CFLAGS
2070 elif test $ac_cv_prog_cc_g = yes; then
2071 if test "$GCC" = yes; then
2077 if test "$GCC" = yes; then
2083 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2084 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2085 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2088 ac_cv_prog_cc_stdc=no
2090 cat >conftest.$ac_ext <<_ACEOF
2093 cat confdefs.h >>conftest.$ac_ext
2094 cat >>conftest.$ac_ext <<_ACEOF
2095 /* end confdefs.h. */
2098 #include <sys/types.h>
2099 #include <sys/stat.h>
2100 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2101 struct buf { int x; };
2102 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2103 static char *e (p, i)
2109 static char *f (char * (*g) (char **, int), char **p, ...)
2114 s = g (p, va_arg (v,int));
2119 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2120 function prototypes and stuff, but not '\xHH' hex character constants.
2121 These don't provoke an error unfortunately, instead are silently treated
2122 as 'x'. The following induces an error, until -std1 is added to get
2123 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2124 array size at least. It's necessary to write '\x00'==0 to get something
2125 that's true only with -std1. */
2126 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2128 int test (int i, double x);
2129 struct s1 {int (*f) (int a);};
2130 struct s2 {int (*f) (double a);};
2131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2137 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2142 # Don't try gcc -ansi; that turns off useful extensions and
2143 # breaks some systems' header files.
2144 # AIX -qlanglvl=ansi
2145 # Ultrix and OSF/1 -std1
2146 # HP-UX 10.20 and later -Ae
2147 # HP-UX older versions -Aa -D_HPUX_SOURCE
2148 # SVR4 -Xc -D__EXTENSIONS__
2149 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2151 CC="$ac_save_CC $ac_arg"
2152 rm -f conftest.$ac_objext
2153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154 (eval $ac_compile) 2>conftest.er1
2156 grep -v '^ *+' conftest.er1 >conftest.err
2158 cat conftest.err >&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); } &&
2161 { ac_try='test -z "$ac_c_werror_flag"
2162 || test ! -s conftest.err'
2163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; } &&
2168 { ac_try='test -s conftest.$ac_objext'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; }; then
2174 ac_cv_prog_cc_stdc=$ac_arg
2177 echo "$as_me: failed program was:" >&5
2178 sed 's/^/| /' conftest.$ac_ext >&5
2181 rm -f conftest.err conftest.$ac_objext
2183 rm -f conftest.$ac_ext conftest.$ac_objext
2188 case "x$ac_cv_prog_cc_stdc" in
2190 echo "$as_me:$LINENO: result: none needed" >&5
2191 echo "${ECHO_T}none needed" >&6 ;;
2193 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2194 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2195 CC="$CC $ac_cv_prog_cc_stdc" ;;
2198 # Some people use a C++ compiler to compile C. Since we use `exit',
2199 # in C++ we need to declare it. In case someone uses the same compiler
2200 # for both compiling C and C++ we need to have the C++ compiler decide
2201 # the declaration of exit, since it's the most demanding environment.
2202 cat >conftest.$ac_ext <<_ACEOF
2207 rm -f conftest.$ac_objext
2208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2209 (eval $ac_compile) 2>conftest.er1
2211 grep -v '^ *+' conftest.er1 >conftest.err
2213 cat conftest.err >&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); } &&
2216 { ac_try='test -z "$ac_c_werror_flag"
2217 || test ! -s conftest.err'
2218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; } &&
2223 { ac_try='test -s conftest.$ac_objext'
2224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; }; then
2229 for ac_declaration in \
2231 'extern "C" void std::exit (int) throw (); using std::exit;' \
2232 'extern "C" void std::exit (int); using std::exit;' \
2233 'extern "C" void exit (int) throw ();' \
2234 'extern "C" void exit (int);' \
2237 cat >conftest.$ac_ext <<_ACEOF
2240 cat confdefs.h >>conftest.$ac_ext
2241 cat >>conftest.$ac_ext <<_ACEOF
2242 /* end confdefs.h. */
2253 rm -f conftest.$ac_objext
2254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2255 (eval $ac_compile) 2>conftest.er1
2257 grep -v '^ *+' conftest.er1 >conftest.err
2259 cat conftest.err >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); } &&
2262 { ac_try='test -z "$ac_c_werror_flag"
2263 || test ! -s conftest.err'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; } &&
2269 { ac_try='test -s conftest.$ac_objext'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2277 echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2283 cat >conftest.$ac_ext <<_ACEOF
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h. */
2298 rm -f conftest.$ac_objext
2299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300 (eval $ac_compile) 2>conftest.er1
2302 grep -v '^ *+' conftest.er1 >conftest.err
2304 cat conftest.err >&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); } &&
2307 { ac_try='test -z "$ac_c_werror_flag"
2308 || test ! -s conftest.err'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; } &&
2314 { ac_try='test -s conftest.$ac_objext'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; }; then
2322 echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2329 if test -n "$ac_declaration"; then
2330 echo '#ifdef __cplusplus' >>confdefs.h
2331 echo $ac_declaration >>confdefs.h
2332 echo '#endif' >>confdefs.h
2336 echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2342 ac_cpp='$CPP $CPPFLAGS'
2343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2348 cat >>confdefs.h <<\_ACEOF
2349 #define _GNU_SOURCE 1
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2360 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2361 # On Suns, sometimes $CPP names a directory.
2362 if test -n "$CPP" && test -d "$CPP"; then
2365 if test -z "$CPP"; then
2366 if test "${ac_cv_prog_CPP+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 # Double quotes because CPP needs to be expanded
2370 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2373 for ac_c_preproc_warn_flag in '' yes
2375 # Use a header file that comes with gcc, so configuring glibc
2376 # with a fresh cross-compiler works.
2377 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2378 # <limits.h> exists even on freestanding compilers.
2379 # On the NeXT, cc -E runs the code through the compiler's parser,
2380 # not just through cpp. "Syntax error" is here to catch this case.
2381 cat >conftest.$ac_ext <<_ACEOF
2384 cat confdefs.h >>conftest.$ac_ext
2385 cat >>conftest.$ac_ext <<_ACEOF
2386 /* end confdefs.h. */
2388 # include <limits.h>
2390 # include <assert.h>
2394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2397 grep -v '^ *+' conftest.er1 >conftest.err
2399 cat conftest.err >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } >/dev/null; then
2402 if test -s conftest.err; then
2403 ac_cpp_err=$ac_c_preproc_warn_flag
2404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2411 if test -z "$ac_cpp_err"; then
2414 echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2417 # Broken: fails on valid input.
2420 rm -f conftest.err conftest.$ac_ext
2422 # OK, works on sane cases. Now check whether non-existent headers
2423 # can be detected and how.
2424 cat >conftest.$ac_ext <<_ACEOF
2427 cat confdefs.h >>conftest.$ac_ext
2428 cat >>conftest.$ac_ext <<_ACEOF
2429 /* end confdefs.h. */
2430 #include <ac_nonexistent.h>
2432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2435 grep -v '^ *+' conftest.er1 >conftest.err
2437 cat conftest.err >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); } >/dev/null; then
2440 if test -s conftest.err; then
2441 ac_cpp_err=$ac_c_preproc_warn_flag
2442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2449 if test -z "$ac_cpp_err"; then
2450 # Broken: success on invalid input.
2453 echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2456 # Passes both tests.
2460 rm -f conftest.err conftest.$ac_ext
2463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2464 rm -f conftest.err conftest.$ac_ext
2465 if $ac_preproc_ok; then
2477 echo "$as_me:$LINENO: result: $CPP" >&5
2478 echo "${ECHO_T}$CPP" >&6
2480 for ac_c_preproc_warn_flag in '' yes
2482 # Use a header file that comes with gcc, so configuring glibc
2483 # with a fresh cross-compiler works.
2484 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2485 # <limits.h> exists even on freestanding compilers.
2486 # On the NeXT, cc -E runs the code through the compiler's parser,
2487 # not just through cpp. "Syntax error" is here to catch this case.
2488 cat >conftest.$ac_ext <<_ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h. */
2495 # include <limits.h>
2497 # include <assert.h>
2501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2504 grep -v '^ *+' conftest.er1 >conftest.err
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } >/dev/null; then
2509 if test -s conftest.err; then
2510 ac_cpp_err=$ac_c_preproc_warn_flag
2511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2518 if test -z "$ac_cpp_err"; then
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2524 # Broken: fails on valid input.
2527 rm -f conftest.err conftest.$ac_ext
2529 # OK, works on sane cases. Now check whether non-existent headers
2530 # can be detected and how.
2531 cat >conftest.$ac_ext <<_ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h. */
2537 #include <ac_nonexistent.h>
2539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2542 grep -v '^ *+' conftest.er1 >conftest.err
2544 cat conftest.err >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); } >/dev/null; then
2547 if test -s conftest.err; then
2548 ac_cpp_err=$ac_c_preproc_warn_flag
2549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2556 if test -z "$ac_cpp_err"; then
2557 # Broken: success on invalid input.
2560 echo "$as_me: failed program was:" >&5
2561 sed 's/^/| /' conftest.$ac_ext >&5
2563 # Passes both tests.
2567 rm -f conftest.err conftest.$ac_ext
2570 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2571 rm -f conftest.err conftest.$ac_ext
2572 if $ac_preproc_ok; then
2575 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2576 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2577 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2578 See \`config.log' for more details." >&5
2579 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2580 See \`config.log' for more details." >&2;}
2581 { (exit 1); exit 1; }; }; }
2585 ac_cpp='$CPP $CPPFLAGS'
2586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2591 echo "$as_me:$LINENO: checking for egrep" >&5
2592 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2593 if test "${ac_cv_prog_egrep+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2597 then ac_cv_prog_egrep='grep -E'
2598 else ac_cv_prog_egrep='egrep'
2601 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2602 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2603 EGREP=$ac_cv_prog_egrep
2607 echo "$as_me:$LINENO: checking for AIX" >&5
2608 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2609 cat >conftest.$ac_ext <<_ACEOF
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h. */
2620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2621 $EGREP "yes" >/dev/null 2>&1; then
2622 echo "$as_me:$LINENO: result: yes" >&5
2623 echo "${ECHO_T}yes" >&6
2624 cat >>confdefs.h <<\_ACEOF
2625 #define _ALL_SOURCE 1
2629 echo "$as_me:$LINENO: result: no" >&5
2630 echo "${ECHO_T}no" >&6
2635 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2636 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2637 if test "${ac_cv_search_strerror+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 ac_func_search_save_LIBS=$LIBS
2641 ac_cv_search_strerror=no
2642 cat >conftest.$ac_ext <<_ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2649 /* Override any gcc2 internal prototype to avoid an error. */
2653 /* We use char because int might match the return type of a gcc2
2654 builtin and then its argument prototype would still apply. */
2664 rm -f conftest.$ac_objext conftest$ac_exeext
2665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2666 (eval $ac_link) 2>conftest.er1
2668 grep -v '^ *+' conftest.er1 >conftest.err
2670 cat conftest.err >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); } &&
2673 { ac_try='test -z "$ac_c_werror_flag"
2674 || test ! -s conftest.err'
2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; } &&
2680 { ac_try='test -s conftest$ac_exeext'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; }; then
2686 ac_cv_search_strerror="none required"
2688 echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2692 rm -f conftest.err conftest.$ac_objext \
2693 conftest$ac_exeext conftest.$ac_ext
2694 if test "$ac_cv_search_strerror" = no; then
2695 for ac_lib in cposix; do
2696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2697 cat >conftest.$ac_ext <<_ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h. */
2704 /* Override any gcc2 internal prototype to avoid an error. */
2708 /* We use char because int might match the return type of a gcc2
2709 builtin and then its argument prototype would still apply. */
2719 rm -f conftest.$ac_objext conftest$ac_exeext
2720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2721 (eval $ac_link) 2>conftest.er1
2723 grep -v '^ *+' conftest.er1 >conftest.err
2725 cat conftest.err >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } &&
2728 { ac_try='test -z "$ac_c_werror_flag"
2729 || test ! -s conftest.err'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; } &&
2735 { ac_try='test -s conftest$ac_exeext'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 ac_cv_search_strerror="-l$ac_lib"
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2748 rm -f conftest.err conftest.$ac_objext \
2749 conftest$ac_exeext conftest.$ac_ext
2752 LIBS=$ac_func_search_save_LIBS
2754 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2755 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2756 if test "$ac_cv_search_strerror" != no; then
2757 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2761 if test -n "$ac_tool_prefix"; then
2762 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2763 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2764 echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2766 if test "${ac_cv_prog_RANLIB+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 if test -n "$RANLIB"; then
2770 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2779 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 RANLIB=$ac_cv_prog_RANLIB
2789 if test -n "$RANLIB"; then
2790 echo "$as_me:$LINENO: result: $RANLIB" >&5
2791 echo "${ECHO_T}$RANLIB" >&6
2793 echo "$as_me:$LINENO: result: no" >&5
2794 echo "${ECHO_T}no" >&6
2798 if test -z "$ac_cv_prog_RANLIB"; then
2799 ac_ct_RANLIB=$RANLIB
2800 # Extract the first word of "ranlib", so it can be a program name with args.
2801 set dummy ranlib; ac_word=$2
2802 echo "$as_me:$LINENO: checking for $ac_word" >&5
2803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2804 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 if test -n "$ac_ct_RANLIB"; then
2808 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2817 ac_cv_prog_ac_ct_RANLIB="ranlib"
2818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2827 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2828 if test -n "$ac_ct_RANLIB"; then
2829 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2830 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2832 echo "$as_me:$LINENO: result: no" >&5
2833 echo "${ECHO_T}no" >&6
2836 RANLIB=$ac_ct_RANLIB
2838 RANLIB="$ac_cv_prog_RANLIB"
2841 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2842 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2843 if test "${ac_cv_header_stdc+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2846 cat >conftest.$ac_ext <<_ACEOF
2849 cat confdefs.h >>conftest.$ac_ext
2850 cat >>conftest.$ac_ext <<_ACEOF
2851 /* end confdefs.h. */
2865 rm -f conftest.$ac_objext
2866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2867 (eval $ac_compile) 2>conftest.er1
2869 grep -v '^ *+' conftest.er1 >conftest.err
2871 cat conftest.err >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); } &&
2874 { ac_try='test -z "$ac_c_werror_flag"
2875 || test ! -s conftest.err'
2876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; } &&
2881 { ac_try='test -s conftest.$ac_objext'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; }; then
2887 ac_cv_header_stdc=yes
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2892 ac_cv_header_stdc=no
2894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2896 if test $ac_cv_header_stdc = yes; then
2897 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2898 cat >conftest.$ac_ext <<_ACEOF
2901 cat confdefs.h >>conftest.$ac_ext
2902 cat >>conftest.$ac_ext <<_ACEOF
2903 /* end confdefs.h. */
2907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2908 $EGREP "memchr" >/dev/null 2>&1; then
2911 ac_cv_header_stdc=no
2917 if test $ac_cv_header_stdc = yes; then
2918 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2919 cat >conftest.$ac_ext <<_ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2929 $EGREP "free" >/dev/null 2>&1; then
2932 ac_cv_header_stdc=no
2938 if test $ac_cv_header_stdc = yes; then
2939 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2940 if test "$cross_compiling" = yes; then
2943 cat >conftest.$ac_ext <<_ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2950 #if ((' ' & 0x0FF) == 0x020)
2951 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2952 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2954 # define ISLOWER(c) \
2955 (('a' <= (c) && (c) <= 'i') \
2956 || ('j' <= (c) && (c) <= 'r') \
2957 || ('s' <= (c) && (c) <= 'z'))
2958 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2961 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2966 for (i = 0; i < 256; i++)
2967 if (XOR (islower (i), ISLOWER (i))
2968 || toupper (i) != TOUPPER (i))
2973 rm -f conftest$ac_exeext
2974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2975 (eval $ac_link) 2>&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
2986 echo "$as_me: program exited with status $ac_status" >&5
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2991 ac_cv_header_stdc=no
2993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2997 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2998 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2999 if test $ac_cv_header_stdc = yes; then
3001 cat >>confdefs.h <<\_ACEOF
3002 #define STDC_HEADERS 1
3007 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3017 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3018 inttypes.h stdint.h unistd.h
3020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3021 echo "$as_me:$LINENO: checking for $ac_header" >&5
3022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 cat >conftest.$ac_ext <<_ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3032 $ac_includes_default
3034 #include <$ac_header>
3036 rm -f conftest.$ac_objext
3037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3038 (eval $ac_compile) 2>conftest.er1
3040 grep -v '^ *+' conftest.er1 >conftest.err
3042 cat conftest.err >&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } &&
3045 { ac_try='test -z "$ac_c_werror_flag"
3046 || test ! -s conftest.err'
3047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; } &&
3052 { ac_try='test -s conftest.$ac_objext'
3053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; }; then
3058 eval "$as_ac_Header=yes"
3060 echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3063 eval "$as_ac_Header=no"
3065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3070 cat >>confdefs.h <<_ACEOF
3071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3080 if test "${ac_cv_header_minix_config_h+set}" = set; then
3081 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3082 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3083 if test "${ac_cv_header_minix_config_h+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3087 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3089 # Is the header compilable?
3090 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3091 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3092 cat >conftest.$ac_ext <<_ACEOF
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h. */
3098 $ac_includes_default
3099 #include <minix/config.h>
3101 rm -f conftest.$ac_objext
3102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3103 (eval $ac_compile) 2>conftest.er1
3105 grep -v '^ *+' conftest.er1 >conftest.err
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } &&
3110 { ac_try='test -z "$ac_c_werror_flag"
3111 || test ! -s conftest.err'
3112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; } &&
3117 { ac_try='test -s conftest.$ac_objext'
3118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; }; then
3123 ac_header_compiler=yes
3125 echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3128 ac_header_compiler=no
3130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3132 echo "${ECHO_T}$ac_header_compiler" >&6
3134 # Is the header present?
3135 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3136 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3137 cat >conftest.$ac_ext <<_ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3143 #include <minix/config.h>
3145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3148 grep -v '^ *+' conftest.er1 >conftest.err
3150 cat conftest.err >&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); } >/dev/null; then
3153 if test -s conftest.err; then
3154 ac_cpp_err=$ac_c_preproc_warn_flag
3155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3162 if test -z "$ac_cpp_err"; then
3163 ac_header_preproc=yes
3165 echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3168 ac_header_preproc=no
3170 rm -f conftest.err conftest.$ac_ext
3171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3172 echo "${ECHO_T}$ac_header_preproc" >&6
3174 # So? What about this header?
3175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3177 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3178 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3179 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3180 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3181 ac_header_preproc=yes
3184 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3185 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3186 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3187 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3188 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3189 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3190 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3191 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3192 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3193 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3194 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3195 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3198 ## ------------------------------------------ ##
3199 ## Report this to the AC_PACKAGE_NAME lists. ##
3200 ## ------------------------------------------ ##
3203 sed "s/^/$as_me: WARNING: /" >&2
3206 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3207 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3208 if test "${ac_cv_header_minix_config_h+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 ac_cv_header_minix_config_h=$ac_header_preproc
3213 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3214 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3217 if test $ac_cv_header_minix_config_h = yes; then
3224 if test "$MINIX" = yes; then
3226 cat >>confdefs.h <<\_ACEOF
3227 #define _POSIX_SOURCE 1
3231 cat >>confdefs.h <<\_ACEOF
3232 #define _POSIX_1_SOURCE 2
3236 cat >>confdefs.h <<\_ACEOF
3244 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3245 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3246 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 cat >conftest.$ac_ext <<_ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3256 # define __EXTENSIONS__ 1
3257 $ac_includes_default
3266 rm -f conftest.$ac_objext
3267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3268 (eval $ac_compile) 2>conftest.er1
3270 grep -v '^ *+' conftest.er1 >conftest.err
3272 cat conftest.err >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } &&
3275 { ac_try='test -z "$ac_c_werror_flag"
3276 || test ! -s conftest.err'
3277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }; } &&
3282 { ac_try='test -s conftest.$ac_objext'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; }; then
3288 ac_cv_safe_to_define___extensions__=yes
3290 echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3293 ac_cv_safe_to_define___extensions__=no
3295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3297 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3298 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3299 test $ac_cv_safe_to_define___extensions__ = yes &&
3300 cat >>confdefs.h <<\_ACEOF
3301 #define __EXTENSIONS__ 1
3304 cat >>confdefs.h <<\_ACEOF
3305 #define _ALL_SOURCE 1
3308 cat >>confdefs.h <<\_ACEOF
3309 #define _GNU_SOURCE 1
3312 cat >>confdefs.h <<\_ACEOF
3313 #define _POSIX_PTHREAD_SEMANTICS 1
3316 cat >>confdefs.h <<\_ACEOF
3317 #define _TANDEM_SOURCE 1
3329 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3330 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3331 if test "${am_cv_prog_cc_stdc+set}" = set; then
3332 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 am_cv_prog_cc_stdc=no
3336 # Don't try gcc -ansi; that turns off useful extensions and
3337 # breaks some systems' header files.
3338 # AIX -qlanglvl=ansi
3339 # Ultrix and OSF/1 -std1
3340 # HP-UX 10.20 and later -Ae
3341 # HP-UX older versions -Aa -D_HPUX_SOURCE
3342 # SVR4 -Xc -D__EXTENSIONS__
3343 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3345 CC="$ac_save_CC $ac_arg"
3346 cat >conftest.$ac_ext <<_ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3354 #include <sys/types.h>
3355 #include <sys/stat.h>
3356 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3357 struct buf { int x; };
3358 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3359 static char *e (p, i)
3365 static char *f (char * (*g) (char **, int), char **p, ...)
3370 s = g (p, va_arg (v,int));
3374 int test (int i, double x);
3375 struct s1 {int (*f) (int a);};
3376 struct s2 {int (*f) (double a);};
3377 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3385 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3391 rm -f conftest.$ac_objext
3392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3393 (eval $ac_compile) 2>conftest.er1
3395 grep -v '^ *+' conftest.er1 >conftest.err
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } &&
3400 { ac_try='test -z "$ac_c_werror_flag"
3401 || test ! -s conftest.err'
3402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; } &&
3407 { ac_try='test -s conftest.$ac_objext'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; }; then
3413 am_cv_prog_cc_stdc="$ac_arg"; break
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3425 if test -z "$am_cv_prog_cc_stdc"; then
3426 echo "$as_me:$LINENO: result: none needed" >&5
3427 echo "${ECHO_T}none needed" >&6
3429 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3430 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3432 case "x$am_cv_prog_cc_stdc" in
3434 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3439 for ac_dir in .. $srcdir/..; do
3440 if test -f $ac_dir/install-sh; then
3442 ac_install_sh="$ac_aux_dir/install-sh -c"
3444 elif test -f $ac_dir/install.sh; then
3446 ac_install_sh="$ac_aux_dir/install.sh -c"
3448 elif test -f $ac_dir/shtool; then
3450 ac_install_sh="$ac_aux_dir/shtool install -c"
3454 if test -z "$ac_aux_dir"; then
3455 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3456 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3457 { (exit 1); exit 1; }; }
3459 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3460 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3461 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3463 # Make sure we can run config.sub.
3464 $ac_config_sub sun4 >/dev/null 2>&1 ||
3465 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3466 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3467 { (exit 1); exit 1; }; }
3469 echo "$as_me:$LINENO: checking build system type" >&5
3470 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3471 if test "${ac_cv_build+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3474 ac_cv_build_alias=$build_alias
3475 test -z "$ac_cv_build_alias" &&
3476 ac_cv_build_alias=`$ac_config_guess`
3477 test -z "$ac_cv_build_alias" &&
3478 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3479 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3480 { (exit 1); exit 1; }; }
3481 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3482 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3483 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3484 { (exit 1); exit 1; }; }
3487 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3488 echo "${ECHO_T}$ac_cv_build" >&6
3490 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3491 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3492 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3495 echo "$as_me:$LINENO: checking host system type" >&5
3496 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3497 if test "${ac_cv_host+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 ac_cv_host_alias=$host_alias
3501 test -z "$ac_cv_host_alias" &&
3502 ac_cv_host_alias=$ac_cv_build_alias
3503 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3504 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3505 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3506 { (exit 1); exit 1; }; }
3509 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3510 echo "${ECHO_T}$ac_cv_host" >&6
3512 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3513 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3514 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3517 echo "$as_me:$LINENO: checking target system type" >&5
3518 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3519 if test "${ac_cv_target+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3522 ac_cv_target_alias=$target_alias
3523 test "x$ac_cv_target_alias" = "x" &&
3524 ac_cv_target_alias=$ac_cv_host_alias
3525 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3526 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3527 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3528 { (exit 1); exit 1; }; }
3531 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3532 echo "${ECHO_T}$ac_cv_target" >&6
3533 target=$ac_cv_target
3534 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3535 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3536 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3539 # The aliases save the names the user supplied, while $host etc.
3540 # will get canonicalized.
3541 test -n "$target_alias" &&
3542 test "$program_prefix$program_suffix$program_transform_name" = \
3544 program_prefix=${target_alias}-
3546 # Dependency checking.
3547 rm -rf .tst 2>/dev/null
3548 mkdir .tst 2>/dev/null
3549 if test -d .tst; then
3554 rmdir .tst 2>/dev/null
3556 DEPDIR="${am__leading_dot}deps"
3558 ac_config_commands="$ac_config_commands depdir"
3561 depcc="$CC" am_compiler_list=
3563 am_depcomp=$ac_aux_dir/depcomp
3564 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3565 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3566 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 if test -f "$am_depcomp"; then
3570 # We make a subdir and do the tests there. Otherwise we can end up
3571 # making bogus files that we don't know about and never remove. For
3572 # instance it was reported that on HP-UX the gcc test will end up
3573 # making a dummy file named `D' -- because `-MD' means `put the output
3576 # Copy depcomp to subdir because otherwise we won't find it if we're
3577 # using a relative directory.
3578 cp "$am_depcomp" conftest.dir
3580 # We will build objects and dependencies in a subdirectory because
3581 # it helps to detect inapplicable dependency modes. For instance
3582 # both Tru64's cc and ICC support -MD to output dependencies as a
3583 # side effect of compilation, but ICC will put the dependencies in
3584 # the current directory while Tru64 will put them in the object
3588 am_cv_CC_dependencies_compiler_type=none
3589 if test "$am_compiler_list" = ""; then
3590 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3592 for depmode in $am_compiler_list; do
3593 if test $depmode = none; then break; fi
3595 echo "$as_me:$LINENO: trying $depmode" >&5
3596 # Setup a source with many dependencies, because some compilers
3597 # like to wrap large dependency lists on column 80 (with \), and
3598 # we should not choose a depcomp mode which is confused by this.
3600 # We need to recreate these files for each test, as the compiler may
3601 # overwrite some of them when testing with obscure command lines.
3602 # This happens at least with the AIX C compiler.
3604 for i in 1 2 3 4 5 6; do
3605 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3606 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3607 # Solaris 8's {/usr,}/bin/sh.
3608 touch sub/conftst$i.h
3610 echo "include sub/conftest.Po" > confmf
3612 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3613 # mode. It turns out that the SunPro C++ compiler does not properly
3614 # handle `-M -o', and we need to detect this.
3615 depcmd="depmode=$depmode \
3616 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3617 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3618 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
3619 echo "| $depcmd" | sed -e 's/ */ /g' >&5
3620 if env $depcmd > conftest.err 2>&1 &&
3621 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
3622 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
3623 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
3624 # icc doesn't choke on unknown options, it will just issue warnings
3625 # or remarks (even with -Werror). So we grep stderr for any message
3626 # that says an option was ignored or not supported.
3627 # When given -MP, icc 7.0 and 7.1 complain thusly:
3628 # icc: Command line warning: ignoring option '-M'; no argument required
3629 # The diagnosis changed in icc 8.0:
3630 # icc: Command line remark: option '-MP' not supported
3631 if (grep 'ignoring option' conftest.err ||
3632 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3633 am_cv_CC_dependencies_compiler_type=$depmode
3634 echo "$as_me:$LINENO: success" >&5
3638 echo "$as_me:$LINENO: failure, diagnostics are:" >&5
3639 sed -e 's/^/| /' < conftest.err >&5
3645 am_cv_CC_dependencies_compiler_type=none
3649 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3650 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3651 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
3652 then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
3653 echo "$as_me: error: no usable dependency style found" >&2;}
3654 { (exit 1); exit 1; }; }
3655 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3660 # Check for the 'make' the user wants to use.
3663 # Extract the first word of "$ac_prog", so it can be a program name with args.
3664 set dummy $ac_prog; ac_word=$2
3665 echo "$as_me:$LINENO: checking for $ac_word" >&5
3666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3667 if test "${ac_cv_prog_MAKE+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 if test -n "$MAKE"; then
3671 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 test -z "$as_dir" && as_dir=.
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3680 ac_cv_prog_MAKE="$ac_prog"
3681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 MAKE=$ac_cv_prog_MAKE
3690 if test -n "$MAKE"; then
3691 echo "$as_me:$LINENO: result: $MAKE" >&5
3692 echo "${ECHO_T}$MAKE" >&6
3694 echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3698 test -n "$MAKE" && break
3702 case "`$MAKE --version 2>&1 | sed 1q`" in
3709 if test "$MAKE_IS_GNU" = yes; then
3717 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3718 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3719 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3720 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 cat >conftest.make <<\_ACEOF
3725 @echo 'ac_maketemp="$(MAKE)"'
3727 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3728 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3729 if test -n "$ac_maketemp"; then
3730 eval ac_cv_prog_make_${ac_make}_set=yes
3732 eval ac_cv_prog_make_${ac_make}_set=no
3736 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3737 echo "$as_me:$LINENO: result: yes" >&5
3738 echo "${ECHO_T}yes" >&6
3741 echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6
3743 SET_MAKE="MAKE=${MAKE-make}"
3758 # If we haven't got the data from the intl directory,
3759 # assume NLS is disabled.
3768 if test -f ../intl/config.intl; then
3769 . ../intl/config.intl
3771 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3772 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3773 if test x"$USE_NLS" != xyes; then
3774 echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3777 echo "$as_me:$LINENO: result: yes" >&5
3778 echo "${ECHO_T}yes" >&6
3780 cat >>confdefs.h <<\_ACEOF
3781 #define ENABLE_NLS 1
3785 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3786 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3787 # Look for .po and .gmo files in the source directory.
3790 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3791 # If there aren't any .gmo files the shell will give us the
3792 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3794 case "$cat" in *\**)
3797 # The quadruple backslash is collapsed to a double backslash
3798 # by the backticks, then collapsed again by the double quotes,
3799 # leaving us with one backslash in the sed expression (right
3800 # before the dot that mustn't act as a wildcard).
3801 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3802 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3803 # The user is allowed to set LINGUAS to a list of languages to
3804 # install catalogs for. If it's empty that means "all of them."
3805 if test "x$LINGUAS" = x; then
3806 CATALOGS="$CATALOGS $cat"
3807 XLINGUAS="$XLINGUAS $lang"
3809 case "$LINGUAS" in *$lang*)
3810 CATALOGS="$CATALOGS $cat"
3811 XLINGUAS="$XLINGUAS $lang"
3817 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3818 echo "${ECHO_T}$LINGUAS" >&6
3831 localedir='${datadir}/locale'
3834 if test x"$USE_NLS" = xyes; then
3835 CONFIG_ALL="$CONFIG_ALL all-po"
3836 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3837 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3838 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3854 GNULIB_STRCASESTR=0;
3861 GNULIB_MBSCASECMP=0;
3862 GNULIB_MBSNCASECMP=0;
3863 GNULIB_MBSPCASECMP=0;
3864 GNULIB_MBSCASESTR=0;
3874 HAVE_DECL_MEMRCHR=1;
3880 HAVE_DECL_STRNDUP=1;
3881 HAVE_DECL_STRNLEN=1;
3885 HAVE_DECL_STRTOK_R=1;
3886 HAVE_DECL_STRERROR=1;
3887 HAVE_DECL_STRSIGNAL=1;
3889 REPLACE_STRSIGNAL=0;
3891 REPLACE_STRCASESTR=0;
3895 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3896 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3897 if test "${ac_cv_have_decl_memmem+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 cat >conftest.$ac_ext <<_ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3906 $ac_includes_default
3911 char *p = (char *) memmem;
3918 rm -f conftest.$ac_objext
3919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3920 (eval $ac_compile) 2>conftest.er1
3922 grep -v '^ *+' conftest.er1 >conftest.err
3924 cat conftest.err >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } &&
3927 { ac_try='test -z "$ac_c_werror_flag"
3928 || test ! -s conftest.err'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; } &&
3934 { ac_try='test -s conftest.$ac_objext'
3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; }; then
3940 ac_cv_have_decl_memmem=yes
3942 echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3945 ac_cv_have_decl_memmem=no
3947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3949 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3950 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3951 if test $ac_cv_have_decl_memmem = yes; then
3953 cat >>confdefs.h <<_ACEOF
3954 #define HAVE_DECL_MEMMEM 1
3959 cat >>confdefs.h <<_ACEOF
3960 #define HAVE_DECL_MEMMEM 0
3980 for ac_func in memmem
3982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3983 echo "$as_me:$LINENO: checking for $ac_func" >&5
3984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3985 if eval "test \"\${$as_ac_var+set}\" = set"; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 cat >conftest.$ac_ext <<_ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3996 #define $ac_func innocuous_$ac_func
3998 /* System header to define __stub macros and hopefully few prototypes,
3999 which can conflict with char $ac_func (); below.
4000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4001 <limits.h> exists even on freestanding compilers. */
4004 # include <limits.h>
4006 # include <assert.h>
4011 /* Override any gcc2 internal prototype to avoid an error. */
4016 /* We use char because int might match the return type of a gcc2
4017 builtin and then its argument prototype would still apply. */
4019 /* The GNU C library defines this for functions which it implements
4020 to always fail with ENOSYS. Some functions are actually named
4021 something starting with __ and the normal name is an alias. */
4022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4025 char (*f) () = $ac_func;
4034 return f != $ac_func;
4039 rm -f conftest.$ac_objext conftest$ac_exeext
4040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4041 (eval $ac_link) 2>conftest.er1
4043 grep -v '^ *+' conftest.er1 >conftest.err
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } &&
4048 { ac_try='test -z "$ac_c_werror_flag"
4049 || test ! -s conftest.err'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; } &&
4055 { ac_try='test -s conftest$ac_exeext'
4056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4061 eval "$as_ac_var=yes"
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4066 eval "$as_ac_var=no"
4068 rm -f conftest.err conftest.$ac_objext \
4069 conftest$ac_exeext conftest.$ac_ext
4071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4073 if test `eval echo '${'$as_ac_var'}'` = yes; then
4074 cat >>confdefs.h <<_ACEOF
4075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4080 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4093 if test $ac_cv_have_decl_memmem = no; then
4099 echo "$as_me:$LINENO: checking for long long int" >&5
4100 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
4101 if test "${ac_cv_type_long_long_int+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 cat >conftest.$ac_ext <<_ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h. */
4111 /* For now, do not test the preprocessor; as of 2007 there are too many
4112 implementations with broken preprocessors. Perhaps this can
4113 be revisited in 2012. In the meantime, code should not expect
4114 #if to work with literals wider than 32 bits. */
4115 /* Test literals. */
4116 long long int ll = 9223372036854775807ll;
4117 long long int nll = -9223372036854775807LL;
4118 unsigned long long int ull = 18446744073709551615ULL;
4119 /* Test constant expressions. */
4120 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4122 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4128 /* Test availability of runtime routines for shift and division. */
4129 long long int llmax = 9223372036854775807ll;
4130 unsigned long long int ullmax = 18446744073709551615ull;
4131 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4132 | (llmax / ll) | (llmax % ll)
4133 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4134 | (ullmax / ull) | (ullmax % ull));
4140 rm -f conftest.$ac_objext conftest$ac_exeext
4141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4142 (eval $ac_link) 2>conftest.er1
4144 grep -v '^ *+' conftest.er1 >conftest.err
4146 cat conftest.err >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } &&
4149 { ac_try='test -z "$ac_c_werror_flag"
4150 || test ! -s conftest.err'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; } &&
4156 { ac_try='test -s conftest$ac_exeext'
4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; }; then
4162 if test "$cross_compiling" = yes; then
4163 ac_cv_type_long_long_int=yes
4165 cat >conftest.$ac_ext <<_ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4174 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4175 # define LLONG_MAX (HALF - 1 + HALF)
4180 long long int n = 1;
4184 long long int m = n << i;
4187 if (LLONG_MAX / 2 < m)
4195 rm -f conftest$ac_exeext
4196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4197 (eval $ac_link) 2>&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; }; then
4206 ac_cv_type_long_long_int=yes
4208 echo "$as_me: program exited with status $ac_status" >&5
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4213 ac_cv_type_long_long_int=no
4215 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4218 echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4221 ac_cv_type_long_long_int=no
4223 rm -f conftest.err conftest.$ac_objext \
4224 conftest$ac_exeext conftest.$ac_ext
4226 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4227 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4228 if test $ac_cv_type_long_long_int = yes; then
4230 cat >>confdefs.h <<\_ACEOF
4231 #define HAVE_LONG_LONG_INT 1
4237 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4238 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4239 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 cat >conftest.$ac_ext <<_ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4249 /* For now, do not test the preprocessor; as of 2007 there are too many
4250 implementations with broken preprocessors. Perhaps this can
4251 be revisited in 2012. In the meantime, code should not expect
4252 #if to work with literals wider than 32 bits. */
4253 /* Test literals. */
4254 long long int ll = 9223372036854775807ll;
4255 long long int nll = -9223372036854775807LL;
4256 unsigned long long int ull = 18446744073709551615ULL;
4257 /* Test constant expressions. */
4258 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4260 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4266 /* Test availability of runtime routines for shift and division. */
4267 long long int llmax = 9223372036854775807ll;
4268 unsigned long long int ullmax = 18446744073709551615ull;
4269 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4270 | (llmax / ll) | (llmax % ll)
4271 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4272 | (ullmax / ull) | (ullmax % ull));
4278 rm -f conftest.$ac_objext conftest$ac_exeext
4279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4280 (eval $ac_link) 2>conftest.er1
4282 grep -v '^ *+' conftest.er1 >conftest.err
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try='test -z "$ac_c_werror_flag"
4288 || test ! -s conftest.err'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; } &&
4294 { ac_try='test -s conftest$ac_exeext'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4300 ac_cv_type_unsigned_long_long_int=yes
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4305 ac_cv_type_unsigned_long_long_int=no
4307 rm -f conftest.err conftest.$ac_objext \
4308 conftest$ac_exeext conftest.$ac_ext
4310 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4311 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4312 if test $ac_cv_type_unsigned_long_long_int = yes; then
4314 cat >>confdefs.h <<\_ACEOF
4315 #define HAVE_UNSIGNED_LONG_LONG_INT 1
4322 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4323 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4324 if test "${gl_cv_have_include_next+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 rm -rf conftestd1 conftestd2
4328 mkdir conftestd1 conftestd2
4329 cat <<EOF > conftestd1/conftest.h
4330 #define DEFINED_IN_CONFTESTD1
4331 #include_next <conftest.h>
4332 #ifdef DEFINED_IN_CONFTESTD2
4335 #error "include_next doesn't work"
4338 cat <<EOF > conftestd2/conftest.h
4339 #ifndef DEFINED_IN_CONFTESTD1
4340 #error "include_next test doesn't work"
4342 #define DEFINED_IN_CONFTESTD2
4344 save_CPPFLAGS="$CPPFLAGS"
4345 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4346 cat >conftest.$ac_ext <<_ACEOF
4347 #include <conftest.h>
4349 rm -f conftest.$ac_objext
4350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351 (eval $ac_compile) 2>conftest.er1
4353 grep -v '^ *+' conftest.er1 >conftest.err
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } &&
4358 { ac_try='test -z "$ac_c_werror_flag"
4359 || test ! -s conftest.err'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; } &&
4365 { ac_try='test -s conftest.$ac_objext'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; }; then
4371 gl_cv_have_include_next=yes
4373 echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4376 gl_cv_have_include_next=no
4378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4379 CPPFLAGS="$save_CPPFLAGS"
4380 rm -rf conftestd1 conftestd2
4383 echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4384 echo "${ECHO_T}$gl_cv_have_include_next" >&6
4385 if test $gl_cv_have_include_next = yes; then
4388 cat >>confdefs.h <<\_ACEOF
4389 #define HAVE_INCLUDE_NEXT 1
4393 INCLUDE_NEXT=include_next
4395 INCLUDE_NEXT=include
4404 for ac_header in $gl_header_list
4406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4408 echo "$as_me:$LINENO: checking for $ac_header" >&5
4409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4416 # Is the header compilable?
4417 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4419 cat >conftest.$ac_ext <<_ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4425 $ac_includes_default
4426 #include <$ac_header>
4428 rm -f conftest.$ac_objext
4429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4430 (eval $ac_compile) 2>conftest.er1
4432 grep -v '^ *+' conftest.er1 >conftest.err
4434 cat conftest.err >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } &&
4437 { ac_try='test -z "$ac_c_werror_flag"
4438 || test ! -s conftest.err'
4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); }; } &&
4444 { ac_try='test -s conftest.$ac_objext'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; }; then
4450 ac_header_compiler=yes
4452 echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4455 ac_header_compiler=no
4457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4459 echo "${ECHO_T}$ac_header_compiler" >&6
4461 # Is the header present?
4462 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4464 cat >conftest.$ac_ext <<_ACEOF
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h. */
4470 #include <$ac_header>
4472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4475 grep -v '^ *+' conftest.er1 >conftest.err
4477 cat conftest.err >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } >/dev/null; then
4480 if test -s conftest.err; then
4481 ac_cpp_err=$ac_c_preproc_warn_flag
4482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4489 if test -z "$ac_cpp_err"; then
4490 ac_header_preproc=yes
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4495 ac_header_preproc=no
4497 rm -f conftest.err conftest.$ac_ext
4498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4499 echo "${ECHO_T}$ac_header_preproc" >&6
4501 # So? What about this header?
4502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4508 ac_header_preproc=yes
4511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4518 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4525 ## ------------------------------------------ ##
4526 ## Report this to the AC_PACKAGE_NAME lists. ##
4527 ## ------------------------------------------ ##
4530 sed "s/^/$as_me: WARNING: /" >&2
4533 echo "$as_me:$LINENO: checking for $ac_header" >&5
4534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 eval "$as_ac_Header=\$ac_header_preproc"
4540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4545 cat >>confdefs.h <<_ACEOF
4546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4564 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4565 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4566 if test "${ac_cv_c_restrict+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 # The order here caters to the fact that C++ does not require restrict.
4571 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4572 cat >conftest.$ac_ext <<_ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4578 typedef int * int_ptr;
4579 int foo (int_ptr $ac_kw ip) {
4593 rm -f conftest.$ac_objext
4594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4595 (eval $ac_compile) 2>conftest.er1
4597 grep -v '^ *+' conftest.er1 >conftest.err
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } &&
4602 { ac_try='test -z "$ac_c_werror_flag"
4603 || test ! -s conftest.err'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; } &&
4609 { ac_try='test -s conftest.$ac_objext'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
4615 ac_cv_c_restrict=$ac_kw
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4622 test "$ac_cv_c_restrict" != no && break
4626 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4627 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4630 case $ac_cv_c_restrict in
4632 no) cat >>confdefs.h <<\_ACEOF
4636 *) cat >>confdefs.h <<_ACEOF
4637 #define restrict $ac_cv_c_restrict
4662 if test $gl_cv_have_include_next = yes; then
4663 gl_cv_next_string_h='<'string.h'>'
4665 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4666 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4667 if test "${gl_cv_next_string_h+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4671 if test $ac_cv_header_string_h = yes; then
4672 cat >conftest.$ac_ext <<_ACEOF
4675 cat confdefs.h >>conftest.$ac_ext
4676 cat >>conftest.$ac_ext <<_ACEOF
4677 /* end confdefs.h. */
4681 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4682 sed -n '\#/string.h#{
4683 s#.*"\(.*/string.h\)".*#\1#
4689 gl_cv_next_string_h='<'string.h'>'
4693 echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4694 echo "${ECHO_T}$gl_cv_next_string_h" >&6
4696 NEXT_STRING_H=$gl_cv_next_string_h
4703 HAVE_DECL_WCWIDTH=1;
4712 GL_COND_LIBTOOL_TRUE=
4713 GL_COND_LIBTOOL_FALSE='#'
4715 GL_COND_LIBTOOL_TRUE='#'
4716 GL_COND_LIBTOOL_FALSE=
4719 gl_cond_libtool=false
4725 gl_source_base='gnulib'
4735 for ac_func in memchr
4737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4738 echo "$as_me:$LINENO: checking for $ac_func" >&5
4739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4740 if eval "test \"\${$as_ac_var+set}\" = set"; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 cat >conftest.$ac_ext <<_ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4751 #define $ac_func innocuous_$ac_func
4753 /* System header to define __stub macros and hopefully few prototypes,
4754 which can conflict with char $ac_func (); below.
4755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4756 <limits.h> exists even on freestanding compilers. */
4759 # include <limits.h>
4761 # include <assert.h>
4766 /* Override any gcc2 internal prototype to avoid an error. */
4771 /* We use char because int might match the return type of a gcc2
4772 builtin and then its argument prototype would still apply. */
4774 /* The GNU C library defines this for functions which it implements
4775 to always fail with ENOSYS. Some functions are actually named
4776 something starting with __ and the normal name is an alias. */
4777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4780 char (*f) () = $ac_func;
4789 return f != $ac_func;
4794 rm -f conftest.$ac_objext conftest$ac_exeext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4796 (eval $ac_link) 2>conftest.er1
4798 grep -v '^ *+' conftest.er1 >conftest.err
4800 cat conftest.err >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } &&
4803 { ac_try='test -z "$ac_c_werror_flag"
4804 || test ! -s conftest.err'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; } &&
4810 { ac_try='test -s conftest$ac_exeext'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; }; then
4816 eval "$as_ac_var=yes"
4818 echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4821 eval "$as_ac_var=no"
4823 rm -f conftest.err conftest.$ac_objext \
4824 conftest$ac_exeext conftest.$ac_ext
4826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4828 if test `eval echo '${'$as_ac_var'}'` = yes; then
4829 cat >>confdefs.h <<_ACEOF
4830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4835 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4841 if test $ac_cv_func_memchr = no; then
4844 for ac_header in bp-sym.h
4846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4848 echo "$as_me:$LINENO: checking for $ac_header" >&5
4849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4856 # Is the header compilable?
4857 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4859 cat >conftest.$ac_ext <<_ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4865 $ac_includes_default
4866 #include <$ac_header>
4868 rm -f conftest.$ac_objext
4869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4870 (eval $ac_compile) 2>conftest.er1
4872 grep -v '^ *+' conftest.er1 >conftest.err
4874 cat conftest.err >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); } &&
4877 { ac_try='test -z "$ac_c_werror_flag"
4878 || test ! -s conftest.err'
4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; } &&
4884 { ac_try='test -s conftest.$ac_objext'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; }; then
4890 ac_header_compiler=yes
4892 echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4895 ac_header_compiler=no
4897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4898 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4899 echo "${ECHO_T}$ac_header_compiler" >&6
4901 # Is the header present?
4902 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4904 cat >conftest.$ac_ext <<_ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4910 #include <$ac_header>
4912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4915 grep -v '^ *+' conftest.er1 >conftest.err
4917 cat conftest.err >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } >/dev/null; then
4920 if test -s conftest.err; then
4921 ac_cpp_err=$ac_c_preproc_warn_flag
4922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4929 if test -z "$ac_cpp_err"; then
4930 ac_header_preproc=yes
4932 echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4935 ac_header_preproc=no
4937 rm -f conftest.err conftest.$ac_ext
4938 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4939 echo "${ECHO_T}$ac_header_preproc" >&6
4941 # So? What about this header?
4942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4947 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4948 ac_header_preproc=yes
4951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4955 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4956 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4957 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4958 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4961 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4962 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4965 ## ------------------------------------------ ##
4966 ## Report this to the AC_PACKAGE_NAME lists. ##
4967 ## ------------------------------------------ ##
4970 sed "s/^/$as_me: WARNING: /" >&2
4973 echo "$as_me:$LINENO: checking for $ac_header" >&5
4974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 eval "$as_ac_Header=\$ac_header_preproc"
4980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4985 cat >>confdefs.h <<_ACEOF
4986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4997 echo "$as_me:$LINENO: checking for working memcmp" >&5
4998 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4999 if test "${ac_cv_func_memcmp_working+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5002 if test "$cross_compiling" = yes; then
5003 ac_cv_func_memcmp_working=no
5005 cat >conftest.$ac_ext <<_ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5011 $ac_includes_default
5016 /* Some versions of memcmp are not 8-bit clean. */
5017 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5018 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5021 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5022 or more and with at least one buffer not starting on a 4-byte boundary.
5023 William Lewis provided this test program. */
5028 for (i = 0; i < 4; i++)
5032 strcpy (a, "--------01111111");
5033 strcpy (b, "--------10000000");
5034 if (memcmp (a, b, 16) >= 0)
5044 rm -f conftest$ac_exeext
5045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5046 (eval $ac_link) 2>&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; }; then
5055 ac_cv_func_memcmp_working=yes
5057 echo "$as_me: program exited with status $ac_status" >&5
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5062 ac_cv_func_memcmp_working=no
5064 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5067 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5068 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5069 test $ac_cv_func_memcmp_working = no &&
5076 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
5079 if test $ac_cv_func_memcmp_working = no; then
5081 cat >>confdefs.h <<\_ACEOF
5082 #define memcmp rpl_memcmp
5090 if test $ac_cv_have_decl_memmem = yes; then
5091 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
5092 echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
5093 if test "${gl_cv_func_memmem_works+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 if test "$cross_compiling" = yes; then
5097 gl_cv_func_memmem_works="guessing no"
5099 cat >conftest.$ac_ext <<_ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5106 #include <string.h> /* for memmem */
5107 #include <stdlib.h> /* for malloc */
5108 #include <unistd.h> /* for alarm */
5114 char *haystack = (char *) malloc (2 * m + 1);
5115 char *needle = (char *) malloc (m + 1);
5117 /* Failure to compile this test due to missing alarm is okay,
5118 since all such platforms (mingw) also lack memmem. */
5120 /* Check for quadratic performance. */
5121 if (haystack && needle)
5123 memset (haystack, 'A', 2 * m);
5124 haystack[2 * m] = 'B';
5125 memset (needle, 'A', m);
5127 result = memmem (haystack, 2 * m + 1, needle, m + 1);
5129 /* Check for empty needle behavior. */
5130 return !result || !memmem ("a", 1, 0, 0);
5135 rm -f conftest$ac_exeext
5136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5137 (eval $ac_link) 2>&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); }; }; then
5146 gl_cv_func_memmem_works=yes
5148 echo "$as_me: program exited with status $ac_status" >&5
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5153 gl_cv_func_memmem_works=no
5155 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5158 echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
5159 echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
5160 if test "$gl_cv_func_memmem_works" != yes; then
5169 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
5186 for ac_func in memmem
5188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5189 echo "$as_me:$LINENO: checking for $ac_func" >&5
5190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5191 if eval "test \"\${$as_ac_var+set}\" = set"; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 cat >conftest.$ac_ext <<_ACEOF
5197 cat confdefs.h >>conftest.$ac_ext
5198 cat >>conftest.$ac_ext <<_ACEOF
5199 /* end confdefs.h. */
5200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5202 #define $ac_func innocuous_$ac_func
5204 /* System header to define __stub macros and hopefully few prototypes,
5205 which can conflict with char $ac_func (); below.
5206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5207 <limits.h> exists even on freestanding compilers. */
5210 # include <limits.h>
5212 # include <assert.h>
5217 /* Override any gcc2 internal prototype to avoid an error. */
5222 /* We use char because int might match the return type of a gcc2
5223 builtin and then its argument prototype would still apply. */
5225 /* The GNU C library defines this for functions which it implements
5226 to always fail with ENOSYS. Some functions are actually named
5227 something starting with __ and the normal name is an alias. */
5228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5231 char (*f) () = $ac_func;
5240 return f != $ac_func;
5245 rm -f conftest.$ac_objext conftest$ac_exeext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5247 (eval $ac_link) 2>conftest.er1
5249 grep -v '^ *+' conftest.er1 >conftest.err
5251 cat conftest.err >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } &&
5254 { ac_try='test -z "$ac_c_werror_flag"
5255 || test ! -s conftest.err'
5256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }; } &&
5261 { ac_try='test -s conftest$ac_exeext'
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; }; then
5267 eval "$as_ac_var=yes"
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5272 eval "$as_ac_var=no"
5274 rm -f conftest.err conftest.$ac_objext \
5275 conftest$ac_exeext conftest.$ac_ext
5277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5279 if test `eval echo '${'$as_ac_var'}'` = yes; then
5280 cat >>confdefs.h <<_ACEOF
5281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5286 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5299 if test $ac_cv_have_decl_memmem = no; then
5311 if test $ac_cv_type_long_long_int = yes; then
5312 HAVE_LONG_LONG_INT=1
5314 HAVE_LONG_LONG_INT=0
5318 if test $ac_cv_type_unsigned_long_long_int = yes; then
5319 HAVE_UNSIGNED_LONG_LONG_INT=1
5321 HAVE_UNSIGNED_LONG_LONG_INT=0
5325 if test $ac_cv_header_inttypes_h = yes; then
5332 if test $ac_cv_header_sys_types_h = yes; then
5350 if test $gl_cv_have_include_next = yes; then
5351 gl_cv_next_stdint_h='<'stdint.h'>'
5353 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5354 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5355 if test "${gl_cv_next_stdint_h+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 if test $ac_cv_header_stdint_h = yes; then
5360 cat >conftest.$ac_ext <<_ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5369 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5370 sed -n '\#/stdint.h#{
5371 s#.*"\(.*/stdint.h\)".*#\1#
5377 gl_cv_next_stdint_h='<'stdint.h'>'
5381 echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5382 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5384 NEXT_STDINT_H=$gl_cv_next_stdint_h
5388 if test $ac_cv_header_stdint_h = yes; then
5395 if test $ac_cv_header_stdint_h = yes; then
5396 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5397 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5398 if test "${gl_cv_header_working_stdint_h+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5401 gl_cv_header_working_stdint_h=no
5402 cat >conftest.$ac_ext <<_ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5410 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5411 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5412 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5414 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5415 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5416 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5420 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5421 included before <wchar.h>. */
5432 int8_t a1 = INT8_MAX;
5433 int8_t a1min = INT8_MIN;
5436 int16_t a2 = INT16_MAX;
5437 int16_t a2min = INT16_MIN;
5440 int32_t a3 = INT32_MAX;
5441 int32_t a3min = INT32_MIN;
5444 int64_t a4 = INT64_MAX;
5445 int64_t a4min = INT64_MIN;
5448 uint8_t b1 = UINT8_MAX;
5450 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5453 uint16_t b2 = UINT16_MAX;
5456 uint32_t b3 = UINT32_MAX;
5459 uint64_t b4 = UINT64_MAX;
5461 int_least8_t c1 = INT8_C (0x7f);
5462 int_least8_t c1max = INT_LEAST8_MAX;
5463 int_least8_t c1min = INT_LEAST8_MIN;
5464 int_least16_t c2 = INT16_C (0x7fff);
5465 int_least16_t c2max = INT_LEAST16_MAX;
5466 int_least16_t c2min = INT_LEAST16_MIN;
5467 int_least32_t c3 = INT32_C (0x7fffffff);
5468 int_least32_t c3max = INT_LEAST32_MAX;
5469 int_least32_t c3min = INT_LEAST32_MIN;
5470 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5471 int_least64_t c4max = INT_LEAST64_MAX;
5472 int_least64_t c4min = INT_LEAST64_MIN;
5473 uint_least8_t d1 = UINT8_C (0xff);
5474 uint_least8_t d1max = UINT_LEAST8_MAX;
5475 uint_least16_t d2 = UINT16_C (0xffff);
5476 uint_least16_t d2max = UINT_LEAST16_MAX;
5477 uint_least32_t d3 = UINT32_C (0xffffffff);
5478 uint_least32_t d3max = UINT_LEAST32_MAX;
5479 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5480 uint_least64_t d4max = UINT_LEAST64_MAX;
5481 int_fast8_t e1 = INT_FAST8_MAX;
5482 int_fast8_t e1min = INT_FAST8_MIN;
5483 int_fast16_t e2 = INT_FAST16_MAX;
5484 int_fast16_t e2min = INT_FAST16_MIN;
5485 int_fast32_t e3 = INT_FAST32_MAX;
5486 int_fast32_t e3min = INT_FAST32_MIN;
5487 int_fast64_t e4 = INT_FAST64_MAX;
5488 int_fast64_t e4min = INT_FAST64_MIN;
5489 uint_fast8_t f1 = UINT_FAST8_MAX;
5490 uint_fast16_t f2 = UINT_FAST16_MAX;
5491 uint_fast32_t f3 = UINT_FAST32_MAX;
5492 uint_fast64_t f4 = UINT_FAST64_MAX;
5494 intptr_t g = INTPTR_MAX;
5495 intptr_t gmin = INTPTR_MIN;
5498 uintptr_t h = UINTPTR_MAX;
5500 intmax_t i = INTMAX_MAX;
5501 uintmax_t j = UINTMAX_MAX;
5503 #include <limits.h> /* for CHAR_BIT */
5504 #define TYPE_MINIMUM(t) \
5505 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5506 #define TYPE_MAXIMUM(t) \
5507 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5510 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5511 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5513 /* Detect bug in FreeBSD 6.0 / ia64. */
5514 int check_SIG_ATOMIC:
5515 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5516 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5518 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5520 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5521 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5523 /* Detect bug in mingw. */
5525 WINT_MIN == TYPE_MINIMUM (wint_t)
5526 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5529 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5531 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5533 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5535 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5537 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5540 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5543 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5546 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5548 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5549 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5550 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5551 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5552 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5553 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5554 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5555 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5556 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5557 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5558 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5569 rm -f conftest.$ac_objext
5570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5571 (eval $ac_compile) 2>conftest.er1
5573 grep -v '^ *+' conftest.er1 >conftest.err
5575 cat conftest.err >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } &&
5578 { ac_try='test -z "$ac_c_werror_flag"
5579 || test ! -s conftest.err'
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; } &&
5585 { ac_try='test -s conftest.$ac_objext'
5586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; }; then
5591 gl_cv_header_working_stdint_h=yes
5593 echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5599 echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5600 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5602 if test "$gl_cv_header_working_stdint_h" = yes; then
5607 for ac_header in sys/inttypes.h sys/bitypes.h
5609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5611 echo "$as_me:$LINENO: checking for $ac_header" >&5
5612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5619 # Is the header compilable?
5620 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5622 cat >conftest.$ac_ext <<_ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628 $ac_includes_default
5629 #include <$ac_header>
5631 rm -f conftest.$ac_objext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633 (eval $ac_compile) 2>conftest.er1
5635 grep -v '^ *+' conftest.er1 >conftest.err
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try='test -z "$ac_c_werror_flag"
5641 || test ! -s conftest.err'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; } &&
5647 { ac_try='test -s conftest.$ac_objext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5653 ac_header_compiler=yes
5655 echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5658 ac_header_compiler=no
5660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5661 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5662 echo "${ECHO_T}$ac_header_compiler" >&6
5664 # Is the header present?
5665 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5666 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5667 cat >conftest.$ac_ext <<_ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h. */
5673 #include <$ac_header>
5675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5678 grep -v '^ *+' conftest.er1 >conftest.err
5680 cat conftest.err >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } >/dev/null; then
5683 if test -s conftest.err; then
5684 ac_cpp_err=$ac_c_preproc_warn_flag
5685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5692 if test -z "$ac_cpp_err"; then
5693 ac_header_preproc=yes
5695 echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5698 ac_header_preproc=no
5700 rm -f conftest.err conftest.$ac_ext
5701 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5702 echo "${ECHO_T}$ac_header_preproc" >&6
5704 # So? What about this header?
5705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5707 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5708 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5710 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5711 ac_header_preproc=yes
5714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5717 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5718 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5719 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5720 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5721 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5724 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5725 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5728 ## ------------------------------------------ ##
5729 ## Report this to the AC_PACKAGE_NAME lists. ##
5730 ## ------------------------------------------ ##
5733 sed "s/^/$as_me: WARNING: /" >&2
5736 echo "$as_me:$LINENO: checking for $ac_header" >&5
5737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 eval "$as_ac_Header=\$ac_header_preproc"
5743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5748 cat >>confdefs.h <<_ACEOF
5749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5756 if test $ac_cv_header_sys_inttypes_h = yes; then
5757 HAVE_SYS_INTTYPES_H=1
5759 HAVE_SYS_INTTYPES_H=0
5762 if test $ac_cv_header_sys_bitypes_h = yes; then
5763 HAVE_SYS_BITYPES_H=1
5765 HAVE_SYS_BITYPES_H=0
5785 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5786 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5787 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5788 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 if test "$cross_compiling" = yes; then
5792 # Depending upon the size, compute the lo and hi bounds.
5793 cat >conftest.$ac_ext <<_ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5800 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5801 included before <wchar.h>. */
5814 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5821 rm -f conftest.$ac_objext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823 (eval $ac_compile) 2>conftest.er1
5825 grep -v '^ *+' conftest.er1 >conftest.err
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -z "$ac_c_werror_flag"
5831 || test ! -s conftest.err'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; } &&
5837 { ac_try='test -s conftest.$ac_objext'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; }; then
5845 cat >conftest.$ac_ext <<_ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5852 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5853 included before <wchar.h>. */
5866 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5873 rm -f conftest.$ac_objext
5874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5875 (eval $ac_compile) 2>conftest.er1
5877 grep -v '^ *+' conftest.er1 >conftest.err
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } &&
5882 { ac_try='test -z "$ac_c_werror_flag"
5883 || test ! -s conftest.err'
5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; } &&
5889 { ac_try='test -s conftest.$ac_objext'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; }; then
5895 ac_hi=$ac_mid; break
5897 echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5900 ac_lo=`expr $ac_mid + 1`
5901 if test $ac_lo -le $ac_mid; then
5905 ac_mid=`expr 2 '*' $ac_mid + 1`
5907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5910 echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5913 cat >conftest.$ac_ext <<_ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5920 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5921 included before <wchar.h>. */
5934 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5941 rm -f conftest.$ac_objext
5942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5943 (eval $ac_compile) 2>conftest.er1
5945 grep -v '^ *+' conftest.er1 >conftest.err
5947 cat conftest.err >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } &&
5950 { ac_try='test -z "$ac_c_werror_flag"
5951 || test ! -s conftest.err'
5952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); }; } &&
5957 { ac_try='test -s conftest.$ac_objext'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; }; then
5965 cat >conftest.$ac_ext <<_ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h. */
5972 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5973 included before <wchar.h>. */
5986 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5993 rm -f conftest.$ac_objext
5994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5995 (eval $ac_compile) 2>conftest.er1
5997 grep -v '^ *+' conftest.er1 >conftest.err
5999 cat conftest.err >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } &&
6002 { ac_try='test -z "$ac_c_werror_flag"
6003 || test ! -s conftest.err'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; } &&
6009 { ac_try='test -s conftest.$ac_objext'
6010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; }; then
6015 ac_lo=$ac_mid; break
6017 echo "$as_me: failed program was:" >&5
6018 sed 's/^/| /' conftest.$ac_ext >&5
6020 ac_hi=`expr '(' $ac_mid ')' - 1`
6021 if test $ac_mid -le $ac_hi; then
6025 ac_mid=`expr 2 '*' $ac_mid`
6027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6038 # Binary search between lo and hi bounds.
6039 while test "x$ac_lo" != "x$ac_hi"; do
6040 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6041 cat >conftest.$ac_ext <<_ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6048 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6049 included before <wchar.h>. */
6062 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
6069 rm -f conftest.$ac_objext
6070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071 (eval $ac_compile) 2>conftest.er1
6073 grep -v '^ *+' conftest.er1 >conftest.err
6075 cat conftest.err >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try='test -z "$ac_c_werror_flag"
6079 || test ! -s conftest.err'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; } &&
6085 { ac_try='test -s conftest.$ac_objext'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6096 ac_lo=`expr '(' $ac_mid ')' + 1`
6098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6102 '') result=unknown ;;
6105 if test "$cross_compiling" = yes; then
6106 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6107 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6108 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6109 See \`config.log' for more details." >&5
6110 echo "$as_me: error: cannot run test program while cross compiling
6111 See \`config.log' for more details." >&2;}
6112 { (exit 1); exit 1; }; }; }
6114 cat >conftest.$ac_ext <<_ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h. */
6121 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6122 included before <wchar.h>. */
6132 long longval () { return sizeof ($gltype) * CHAR_BIT; }
6133 unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
6140 FILE *f = fopen ("conftest.val", "w");
6143 if ((sizeof ($gltype) * CHAR_BIT) < 0)
6145 long i = longval ();
6146 if (i != (sizeof ($gltype) * CHAR_BIT))
6148 fprintf (f, "%ld\n", i);
6152 unsigned long i = ulongval ();
6153 if (i != (sizeof ($gltype) * CHAR_BIT))
6155 fprintf (f, "%lu\n", i);
6157 exit (ferror (f) || fclose (f) != 0);
6163 rm -f conftest$ac_exeext
6164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6165 (eval $ac_link) 2>&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }; }; then
6174 result=`cat conftest.val`
6176 echo "$as_me: program exited with status $ac_status" >&5
6177 echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6187 eval gl_cv_bitsizeof_${gltype}=\$result
6190 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
6191 echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
6192 eval result=\$gl_cv_bitsizeof_${gltype}
6193 if test $result = unknown; then
6196 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6197 cat >>confdefs.h <<_ACEOF
6198 #define BITSIZEOF_${GLTYPE} $result
6201 eval BITSIZEOF_${GLTYPE}=\$result
6210 for gltype in sig_atomic_t wchar_t wint_t ; do
6211 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
6212 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
6213 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 cat >conftest.$ac_ext <<_ACEOF
6219 cat confdefs.h >>conftest.$ac_ext
6220 cat >>conftest.$ac_ext <<_ACEOF
6221 /* end confdefs.h. */
6223 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6224 included before <wchar.h>. */
6233 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6242 rm -f conftest.$ac_objext
6243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244 (eval $ac_compile) 2>conftest.er1
6246 grep -v '^ *+' conftest.er1 >conftest.err
6248 cat conftest.err >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } &&
6251 { ac_try='test -z "$ac_c_werror_flag"
6252 || test ! -s conftest.err'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; } &&
6258 { ac_try='test -s conftest.$ac_objext'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; }; then
6266 echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6272 eval gl_cv_type_${gltype}_signed=\$result
6275 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6276 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6277 eval result=\$gl_cv_type_${gltype}_signed
6278 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6279 if test "$result" = yes; then
6280 cat >>confdefs.h <<_ACEOF
6281 #define HAVE_SIGNED_${GLTYPE} 1
6284 eval HAVE_SIGNED_${GLTYPE}=1
6286 eval HAVE_SIGNED_${GLTYPE}=0
6291 gl_cv_type_ptrdiff_t_signed=yes
6292 gl_cv_type_size_t_signed=no
6300 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6301 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6302 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6303 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 eval gl_cv_type_${gltype}_suffix=no
6307 eval result=\$gl_cv_type_${gltype}_signed
6308 if test "$result" = yes; then
6313 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6316 l) gltype1='long int';;
6317 ll) gltype1='long long int';;
6318 i64) gltype1='__int64';;
6319 u) gltype1='unsigned int';;
6320 ul) gltype1='unsigned long int';;
6321 ull) gltype1='unsigned long long int';;
6322 ui64)gltype1='unsigned __int64';;
6324 cat >conftest.$ac_ext <<_ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6331 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6332 included before <wchar.h>. */
6342 extern $gltype1 foo;
6351 rm -f conftest.$ac_objext
6352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6353 (eval $ac_compile) 2>conftest.er1
6355 grep -v '^ *+' conftest.er1 >conftest.err
6357 cat conftest.err >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } &&
6360 { ac_try='test -z "$ac_c_werror_flag"
6361 || test ! -s conftest.err'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; } &&
6367 { ac_try='test -s conftest.$ac_objext'
6368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
6373 eval gl_cv_type_${gltype}_suffix=\$glsuf
6375 echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.$ac_ext >&5
6379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6380 eval result=\$gl_cv_type_${gltype}_suffix
6381 test "$result" != no && break
6384 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6385 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6386 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6387 eval result=\$gl_cv_type_${gltype}_suffix
6388 test "$result" = no && result=
6389 eval ${GLTYPE}_SUFFIX=\$result
6390 cat >>confdefs.h <<_ACEOF
6391 #define ${GLTYPE}_SUFFIX $result
6407 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6408 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6409 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 cat >conftest.$ac_ext <<_ACEOF
6416 rm -f conftest.$ac_objext
6417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6418 (eval $ac_compile) 2>conftest.er1
6420 grep -v '^ *+' conftest.er1 >conftest.err
6422 cat conftest.err >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } &&
6425 { ac_try='test -z "$ac_c_werror_flag"
6426 || test ! -s conftest.err'
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; } &&
6432 { ac_try='test -s conftest.$ac_objext'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6438 gl_cv_header_wchar_h_standalone=yes
6440 echo "$as_me: failed program was:" >&5
6441 sed 's/^/| /' conftest.$ac_ext >&5
6443 gl_cv_header_wchar_h_standalone=no
6445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6447 echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6448 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6449 if test $gl_cv_header_wchar_h_standalone != yes; then
6460 if test $ac_cv_header_wchar_h = yes; then
6477 if test $gl_cv_have_include_next = yes; then
6478 gl_cv_next_wchar_h='<'wchar.h'>'
6480 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6481 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6482 if test "${gl_cv_next_wchar_h+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 if test $ac_cv_header_wchar_h = yes; then
6487 cat >conftest.$ac_ext <<_ACEOF
6490 cat confdefs.h >>conftest.$ac_ext
6491 cat >>conftest.$ac_ext <<_ACEOF
6492 /* end confdefs.h. */
6496 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6497 sed -n '\#/wchar.h#{
6498 s#.*"\(.*/wchar.h\)".*#\1#
6504 gl_cv_next_wchar_h='<'wchar.h'>'
6508 echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6509 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6511 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6525 gl_source_base='tests'
6530 LIBGNU_LIBDEPS="$gl_libdeps"
6532 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6536 # For Makefile dependencies.
6538 if test x"$STDINT_H" != x; then
6539 GNULIB_STDINT_H=gnulib/$STDINT_H
6545 cat >>confdefs.h <<_ACEOF
6546 #define PACKAGE "$PACKAGE"
6551 # GDB does not use automake, but gnulib does. This line lets us
6552 # generate its Makefile.in.
6553 am__api_version="1.9"
6554 # Find a good install program. We prefer a C program (faster),
6555 # so one script is as good as another. But avoid the broken or
6556 # incompatible versions:
6557 # SysV /etc/install, /usr/sbin/install
6558 # SunOS /usr/etc/install
6559 # IRIX /sbin/install
6561 # AmigaOS /C/install, which installs bootblocks on floppy discs
6562 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6563 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6564 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6565 # OS/2's system install, which has a completely different semantic
6566 # ./install, which can be erroneously created by make from ./install.sh.
6567 # Reject install programs that cannot install multiple files.
6568 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6569 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6570 if test -z "$INSTALL"; then
6571 if test "${ac_cv_path_install+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 test -z "$as_dir" && as_dir=.
6579 # Account for people who put trailing slashes in PATH elements.
6581 ./ | .// | /cC/* | \
6582 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6583 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6586 # OSF1 and SCO ODT 3.0 have their own names for install.
6587 # Don't use installbsd from OSF since it installs stuff as root
6589 for ac_prog in ginstall scoinst install; do
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6592 if test $ac_prog = install &&
6593 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6594 # AIX install. It has an incompatible calling convention.
6596 elif test $ac_prog = install &&
6597 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6598 # program-specific install script used by HP pwplus--don't use.
6601 rm -rf conftest.one conftest.two conftest.dir
6602 echo one > conftest.one
6603 echo two > conftest.two
6605 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6606 test -s conftest.one && test -s conftest.two &&
6607 test -s conftest.dir/conftest.one &&
6608 test -s conftest.dir/conftest.two
6610 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6621 rm -rf conftest.one conftest.two conftest.dir
6624 if test "${ac_cv_path_install+set}" = set; then
6625 INSTALL=$ac_cv_path_install
6627 # As a last resort, use the slow shell script. Don't cache a
6628 # value for INSTALL within a source directory, because that will
6629 # break other packages using the cache if that directory is
6630 # removed, or if the value is a relative name.
6631 INSTALL=$ac_install_sh
6634 echo "$as_me:$LINENO: result: $INSTALL" >&5
6635 echo "${ECHO_T}$INSTALL" >&6
6637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6638 # It thinks the first close brace ends the variable substitution.
6639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6645 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6646 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6649 echo timestamp > conftest.file
6650 # Do `set' in a subshell so we don't clobber the current shell's
6651 # arguments. Must try -L first in case configure is actually a
6652 # symlink; some systems play weird games with the mod time of symlinks
6653 # (eg FreeBSD returns the mod time of the symlink's containing
6656 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6657 if test "$*" = "X"; then
6659 set X `ls -t $srcdir/configure conftest.file`
6662 if test "$*" != "X $srcdir/configure conftest.file" \
6663 && test "$*" != "X conftest.file $srcdir/configure"; then
6665 # If neither matched, then we have a broken ls. This can happen
6666 # if, for instance, CONFIG_SHELL is bash and it inherits a
6667 # broken ls alias from the environment. This has actually
6668 # happened. Such a system could not be considered "sane".
6669 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6670 alias in your environment" >&5
6671 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6672 alias in your environment" >&2;}
6673 { (exit 1); exit 1; }; }
6676 test "$2" = conftest.file
6682 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6683 Check your system clock" >&5
6684 echo "$as_me: error: newly created file is older than distributed files!
6685 Check your system clock" >&2;}
6686 { (exit 1); exit 1; }; }
6688 echo "$as_me:$LINENO: result: yes" >&5
6689 echo "${ECHO_T}yes" >&6
6690 test "$program_prefix" != NONE &&
6691 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6692 # Use a double $ so make ignores it.
6693 test "$program_suffix" != NONE &&
6694 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6695 # Double any \ or $. echo might interpret backslashes.
6696 # By default was `s,x,x', remove it if useless.
6697 cat <<\_ACEOF >conftest.sed
6698 s/[\\$]/&&/g;s/;s,x,x,$//
6700 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6703 # expand $ac_aux_dir to an absolute path
6704 am_aux_dir=`cd $ac_aux_dir && pwd`
6706 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6707 # Use eval to expand $SHELL
6708 if eval "$MISSING --run true"; then
6709 am_missing_run="$MISSING --run "
6712 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6713 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6716 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6717 # We used to keeping the `.' as first argument, in order to
6718 # allow $(mkdir_p) to be used without argument. As in
6719 # $(mkdir_p) $(somedir)
6720 # where $(somedir) is conditionally defined. However this is wrong
6722 # 1. if the package is installed by a user who cannot write `.'
6723 # make install will fail,
6724 # 2. the above comment should most certainly read
6725 # $(mkdir_p) $(DESTDIR)$(somedir)
6726 # so it does not work when $(somedir) is undefined and
6727 # $(DESTDIR) is not.
6728 # To support the latter case, we have to write
6729 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6730 # so the `.' trick is pointless.
6731 mkdir_p='mkdir -p --'
6733 # On NextStep and OpenStep, the `mkdir' command does not
6734 # recognize any option. It will interpret all options as
6735 # directories to create, and then abort because `.' already
6737 for d in ./-p ./--version;
6739 test -d $d && rmdir $d
6741 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6742 if test -f "$ac_aux_dir/mkinstalldirs"; then
6743 mkdir_p='$(mkinstalldirs)'
6745 mkdir_p='$(install_sh) -d'
6749 for ac_prog in gawk mawk nawk awk
6751 # Extract the first word of "$ac_prog", so it can be a program name with args.
6752 set dummy $ac_prog; ac_word=$2
6753 echo "$as_me:$LINENO: checking for $ac_word" >&5
6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6755 if test "${ac_cv_prog_AWK+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6758 if test -n "$AWK"; then
6759 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6768 ac_cv_prog_AWK="$ac_prog"
6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 if test -n "$AWK"; then
6779 echo "$as_me:$LINENO: result: $AWK" >&5
6780 echo "${ECHO_T}$AWK" >&6
6782 echo "$as_me:$LINENO: result: no" >&5
6783 echo "${ECHO_T}no" >&6
6786 test -n "$AWK" && break
6789 ac_config_commands="$ac_config_commands depfiles"
6792 am_make=${MAKE-make}
6793 cat > confinc << 'END'
6798 # If we don't find an include directive, just comment out the code.
6799 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6800 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6804 # First try GNU make style include.
6805 echo "include confinc" > confmf
6806 # We grep out `Entering directory' and `Leaving directory'
6807 # messages which can occur if `w' ends up in MAKEFLAGS.
6808 # In particular we don't look at `^make:' because GNU make might
6809 # be invoked under some other name (usually "gmake"), in which
6810 # case it prints its new name instead of `make'.
6811 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6816 # Now try BSD make style include.
6817 if test "$am__include" = "#"; then
6818 echo '.include "confinc"' > confmf
6819 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6820 am__include=.include
6827 echo "$as_me:$LINENO: result: $_am_result" >&5
6828 echo "${ECHO_T}$_am_result" >&6
6829 rm -f confinc confmf
6831 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6832 if test "${enable_dependency_tracking+set}" = set; then
6833 enableval="$enable_dependency_tracking"
6836 if test "x$enable_dependency_tracking" != xno; then
6837 am_depcomp="$ac_aux_dir/depcomp"
6842 if test "x$enable_dependency_tracking" != xno; then
6852 # test to see if srcdir already configured
6853 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6854 test -f $srcdir/config.status; then
6855 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6856 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6857 { (exit 1); exit 1; }; }
6860 # test whether we have cygpath
6861 if test -z "$CYGPATH_W"; then
6862 if (cygpath --version) >/dev/null 2>/dev/null; then
6863 CYGPATH_W='cygpath -w'
6870 # Define the identity of the package.
6872 VERSION=UNUSED-VERSION
6875 # Some tools Automake needs.
6877 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6880 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6883 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6886 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6889 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6891 install_sh=${install_sh-"$am_aux_dir/install-sh"}
6893 # Installed binaries are usually stripped using `strip' when the user
6894 # run `make install-strip'. However `strip' might not be the right
6895 # tool to use in cross-compilation environments, therefore Automake
6896 # will honor the `STRIP' environment variable to overrule this program.
6897 if test "$cross_compiling" != no; then
6898 if test -n "$ac_tool_prefix"; then
6899 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6900 set dummy ${ac_tool_prefix}strip; ac_word=$2
6901 echo "$as_me:$LINENO: checking for $ac_word" >&5
6902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6903 if test "${ac_cv_prog_STRIP+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 if test -n "$STRIP"; then
6907 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6916 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 STRIP=$ac_cv_prog_STRIP
6926 if test -n "$STRIP"; then
6927 echo "$as_me:$LINENO: result: $STRIP" >&5
6928 echo "${ECHO_T}$STRIP" >&6
6930 echo "$as_me:$LINENO: result: no" >&5
6931 echo "${ECHO_T}no" >&6
6935 if test -z "$ac_cv_prog_STRIP"; then
6937 # Extract the first word of "strip", so it can be a program name with args.
6938 set dummy strip; ac_word=$2
6939 echo "$as_me:$LINENO: checking for $ac_word" >&5
6940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6941 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6944 if test -n "$ac_ct_STRIP"; then
6945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6954 ac_cv_prog_ac_ct_STRIP="strip"
6955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6964 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6965 if test -n "$ac_ct_STRIP"; then
6966 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6967 echo "${ECHO_T}$ac_ct_STRIP" >&6
6969 echo "$as_me:$LINENO: result: no" >&5
6970 echo "${ECHO_T}no" >&6
6975 STRIP="$ac_cv_prog_STRIP"
6979 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6981 # We need awk for the "check" target. The system "awk" is bad on
6983 # Always define AMTAR for backward compatibility.
6985 AMTAR=${AMTAR-"${am_missing_run}tar"}
6987 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6992 depcc="$CC" am_compiler_list=
6994 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6995 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6996 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7000 # We make a subdir and do the tests there. Otherwise we can end up
7001 # making bogus files that we don't know about and never remove. For
7002 # instance it was reported that on HP-UX the gcc test will end up
7003 # making a dummy file named `D' -- because `-MD' means `put the output
7006 # Copy depcomp to subdir because otherwise we won't find it if we're
7007 # using a relative directory.
7008 cp "$am_depcomp" conftest.dir
7010 # We will build objects and dependencies in a subdirectory because
7011 # it helps to detect inapplicable dependency modes. For instance
7012 # both Tru64's cc and ICC support -MD to output dependencies as a
7013 # side effect of compilation, but ICC will put the dependencies in
7014 # the current directory while Tru64 will put them in the object
7018 am_cv_CC_dependencies_compiler_type=none
7019 if test "$am_compiler_list" = ""; then
7020 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7022 for depmode in $am_compiler_list; do
7023 # Setup a source with many dependencies, because some compilers
7024 # like to wrap large dependency lists on column 80 (with \), and
7025 # we should not choose a depcomp mode which is confused by this.
7027 # We need to recreate these files for each test, as the compiler may
7028 # overwrite some of them when testing with obscure command lines.
7029 # This happens at least with the AIX C compiler.
7031 for i in 1 2 3 4 5 6; do
7032 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7033 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7034 # Solaris 8's {/usr,}/bin/sh.
7035 touch sub/conftst$i.h
7037 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7041 # after this tag, mechanisms are not by side-effect, so they'll
7042 # only be used when explicitly requested
7043 if test "x$enable_dependency_tracking" = xyes; then
7051 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7052 # mode. It turns out that the SunPro C++ compiler does not properly
7053 # handle `-M -o', and we need to detect this.
7054 if depmode=$depmode \
7055 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7056 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7057 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7058 >/dev/null 2>conftest.err &&
7059 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7060 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7061 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7062 # icc doesn't choke on unknown options, it will just issue warnings
7063 # or remarks (even with -Werror). So we grep stderr for any message
7064 # that says an option was ignored or not supported.
7065 # When given -MP, icc 7.0 and 7.1 complain thusly:
7066 # icc: Command line warning: ignoring option '-M'; no argument required
7067 # The diagnosis changed in icc 8.0:
7068 # icc: Command line remark: option '-MP' not supported
7069 if (grep 'ignoring option' conftest.err ||
7070 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7071 am_cv_CC_dependencies_compiler_type=$depmode
7080 am_cv_CC_dependencies_compiler_type=none
7084 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7085 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
7086 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7091 test "x$enable_dependency_tracking" != xno \
7092 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7094 am__fastdepCC_FALSE='#'
7096 am__fastdepCC_TRUE='#'
7097 am__fastdepCC_FALSE=
7103 debugdir=${libdir}/debug
7106 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
7107 if test "${with_separate_debug_dir+set}" = set; then
7108 withval="$with_separate_debug_dir"
7109 debugdir="${withval}"
7113 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7114 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7115 ac_define_dir=`eval echo $debugdir`
7116 ac_define_dir=`eval echo $ac_define_dir`
7118 cat >>confdefs.h <<_ACEOF
7119 #define DEBUGDIR "$ac_define_dir"
7123 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
7125 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7126 if test "x$prefix" = xNONE; then
7127 test_prefix=/usr/local
7132 test_prefix=$exec_prefix
7135 "${test_prefix}"|"${test_prefix}/"*|\
7136 '${exec_prefix}'|'${exec_prefix}/'*)
7138 cat >>confdefs.h <<\_ACEOF
7139 #define DEBUGDIR_RELOCATABLE 1
7146 # Check whether --with-relocated-sources or --without-relocated-sources was given.
7147 if test "${with_relocated_sources+set}" = set; then
7148 withval="$with_relocated_sources"
7149 reloc_srcdir="${withval}"
7151 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7152 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7153 ac_define_dir=`eval echo $reloc_srcdir`
7154 ac_define_dir=`eval echo $ac_define_dir`
7156 cat >>confdefs.h <<_ACEOF
7157 #define RELOC_SRCDIR "$ac_define_dir"
7166 subdirs="$subdirs doc testsuite"
7169 # Check whether to support alternative target configurations
7170 # Check whether --enable-targets or --disable-targets was given.
7171 if test "${enable_targets+set}" = set; then
7172 enableval="$enable_targets"
7173 case "${enableval}" in
7174 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
7175 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
7176 { (exit 1); exit 1; }; }
7178 no) enable_targets= ;;
7179 *) enable_targets=$enableval ;;
7183 # Check whether to enable 64-bit support on 32-bit hosts
7184 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
7185 if test "${enable_64_bit_bfd+set}" = set; then
7186 enableval="$enable_64_bit_bfd"
7187 case "${enableval}" in
7190 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
7191 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
7192 { (exit 1); exit 1; }; } ;;
7197 # Provide defaults for some variables set by the per-host and per-target
7199 gdb_host_obs=posix-hdep.o
7201 if test "${target}" = "${host}"; then
7207 . $srcdir/configure.host
7209 # Accumulate some settings from configure.tgt over all enabled targets
7214 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7216 if test "$targ_alias" = "all"; then
7219 # Canonicalize the secondary target names.
7220 result=`$ac_config_sub $targ_alias 2>/dev/null`
7221 if test -n "$result"; then
7227 . ${srcdir}/configure.tgt
7229 # Target-specific object files
7230 for i in ${gdb_target_obs}; do
7231 case " $TARGET_OBS " in
7234 TARGET_OBS="$TARGET_OBS ${i}"
7239 # Check whether this target needs 64-bit CORE_ADDR
7240 if test x${want64} = xfalse; then
7241 . ${srcdir}/../bfd/config.bfd
7246 if test x${all_targets} = xtrue; then
7248 # We want all 64-bit targets if we either:
7249 # - run on a 64-bit host or
7250 # - already require 64-bit support for some other target or
7251 # - the --enable-64-bit-bfd option was supplied
7252 # Otherwise we only support all 32-bit targets.
7254 # NOTE: This test must be in sync with the corresponding
7257 if test x${want64} = xfalse; then
7258 echo "$as_me:$LINENO: checking for long" >&5
7259 echo $ECHO_N "checking for long... $ECHO_C" >&6
7260 if test "${ac_cv_type_long+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7263 cat >conftest.$ac_ext <<_ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h. */
7269 $ac_includes_default
7281 rm -f conftest.$ac_objext
7282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7283 (eval $ac_compile) 2>conftest.er1
7285 grep -v '^ *+' conftest.er1 >conftest.err
7287 cat conftest.err >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } &&
7290 { ac_try='test -z "$ac_c_werror_flag"
7291 || test ! -s conftest.err'
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; } &&
7297 { ac_try='test -s conftest.$ac_objext'
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; }; then
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7312 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7313 echo "${ECHO_T}$ac_cv_type_long" >&6
7315 echo "$as_me:$LINENO: checking size of long" >&5
7316 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7317 if test "${ac_cv_sizeof_long+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7320 if test "$ac_cv_type_long" = yes; then
7321 # The cast to unsigned long works around a bug in the HP C Compiler
7322 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7323 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7324 # This bug is HP SR number 8606223364.
7325 if test "$cross_compiling" = yes; then
7326 # Depending upon the size, compute the lo and hi bounds.
7327 cat >conftest.$ac_ext <<_ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7333 $ac_includes_default
7337 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7344 rm -f conftest.$ac_objext
7345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7346 (eval $ac_compile) 2>conftest.er1
7348 grep -v '^ *+' conftest.er1 >conftest.err
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } &&
7353 { ac_try='test -z "$ac_c_werror_flag"
7354 || test ! -s conftest.err'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; } &&
7360 { ac_try='test -s conftest.$ac_objext'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; }; then
7368 cat >conftest.$ac_ext <<_ACEOF
7371 cat confdefs.h >>conftest.$ac_ext
7372 cat >>conftest.$ac_ext <<_ACEOF
7373 /* end confdefs.h. */
7374 $ac_includes_default
7378 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7385 rm -f conftest.$ac_objext
7386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7387 (eval $ac_compile) 2>conftest.er1
7389 grep -v '^ *+' conftest.er1 >conftest.err
7391 cat conftest.err >&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); } &&
7394 { ac_try='test -z "$ac_c_werror_flag"
7395 || test ! -s conftest.err'
7396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); }; } &&
7401 { ac_try='test -s conftest.$ac_objext'
7402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); }; }; then
7407 ac_hi=$ac_mid; break
7409 echo "$as_me: failed program was:" >&5
7410 sed 's/^/| /' conftest.$ac_ext >&5
7412 ac_lo=`expr $ac_mid + 1`
7413 if test $ac_lo -le $ac_mid; then
7417 ac_mid=`expr 2 '*' $ac_mid + 1`
7419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7422 echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7425 cat >conftest.$ac_ext <<_ACEOF
7428 cat confdefs.h >>conftest.$ac_ext
7429 cat >>conftest.$ac_ext <<_ACEOF
7430 /* end confdefs.h. */
7431 $ac_includes_default
7435 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7442 rm -f conftest.$ac_objext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7444 (eval $ac_compile) 2>conftest.er1
7446 grep -v '^ *+' conftest.er1 >conftest.err
7448 cat conftest.err >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } &&
7451 { ac_try='test -z "$ac_c_werror_flag"
7452 || test ! -s conftest.err'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; } &&
7458 { ac_try='test -s conftest.$ac_objext'
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; }; then
7466 cat >conftest.$ac_ext <<_ACEOF
7469 cat confdefs.h >>conftest.$ac_ext
7470 cat >>conftest.$ac_ext <<_ACEOF
7471 /* end confdefs.h. */
7472 $ac_includes_default
7476 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7483 rm -f conftest.$ac_objext
7484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7485 (eval $ac_compile) 2>conftest.er1
7487 grep -v '^ *+' conftest.er1 >conftest.err
7489 cat conftest.err >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); } &&
7492 { ac_try='test -z "$ac_c_werror_flag"
7493 || test ! -s conftest.err'
7494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); }; } &&
7499 { ac_try='test -s conftest.$ac_objext'
7500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; }; then
7505 ac_lo=$ac_mid; break
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7510 ac_hi=`expr '(' $ac_mid ')' - 1`
7511 if test $ac_mid -le $ac_hi; then
7515 ac_mid=`expr 2 '*' $ac_mid`
7517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7520 echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7528 # Binary search between lo and hi bounds.
7529 while test "x$ac_lo" != "x$ac_hi"; do
7530 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7531 cat >conftest.$ac_ext <<_ACEOF
7534 cat confdefs.h >>conftest.$ac_ext
7535 cat >>conftest.$ac_ext <<_ACEOF
7536 /* end confdefs.h. */
7537 $ac_includes_default
7541 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7548 rm -f conftest.$ac_objext
7549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7550 (eval $ac_compile) 2>conftest.er1
7552 grep -v '^ *+' conftest.er1 >conftest.err
7554 cat conftest.err >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } &&
7557 { ac_try='test -z "$ac_c_werror_flag"
7558 || test ! -s conftest.err'
7559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); }; } &&
7564 { ac_try='test -s conftest.$ac_objext'
7565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); }; }; then
7572 echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7575 ac_lo=`expr '(' $ac_mid ')' + 1`
7577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7580 ?*) ac_cv_sizeof_long=$ac_lo;;
7581 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7582 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7583 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7584 See \`config.log' for more details." >&5
7585 echo "$as_me: error: cannot compute sizeof (long), 77
7586 See \`config.log' for more details." >&2;}
7587 { (exit 1); exit 1; }; }; } ;;
7590 if test "$cross_compiling" = yes; then
7591 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7592 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7593 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7594 See \`config.log' for more details." >&5
7595 echo "$as_me: error: cannot run test program while cross compiling
7596 See \`config.log' for more details." >&2;}
7597 { (exit 1); exit 1; }; }; }
7599 cat >conftest.$ac_ext <<_ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h. */
7605 $ac_includes_default
7606 long longval () { return (long) (sizeof (long)); }
7607 unsigned long ulongval () { return (long) (sizeof (long)); }
7614 FILE *f = fopen ("conftest.val", "w");
7617 if (((long) (sizeof (long))) < 0)
7619 long i = longval ();
7620 if (i != ((long) (sizeof (long))))
7622 fprintf (f, "%ld\n", i);
7626 unsigned long i = ulongval ();
7627 if (i != ((long) (sizeof (long))))
7629 fprintf (f, "%lu\n", i);
7631 exit (ferror (f) || fclose (f) != 0);
7637 rm -f conftest$ac_exeext
7638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7639 (eval $ac_link) 2>&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); }; }; then
7648 ac_cv_sizeof_long=`cat conftest.val`
7650 echo "$as_me: program exited with status $ac_status" >&5
7651 echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.$ac_ext >&5
7655 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7656 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7657 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7658 See \`config.log' for more details." >&5
7659 echo "$as_me: error: cannot compute sizeof (long), 77
7660 See \`config.log' for more details." >&2;}
7661 { (exit 1); exit 1; }; }; }
7663 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7671 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7672 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7673 cat >>confdefs.h <<_ACEOF
7674 #define SIZEOF_LONG $ac_cv_sizeof_long
7678 if test "x${ac_cv_sizeof_long}" = "x8"; then
7682 if test x${want64} = xtrue; then
7683 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7685 TARGET_OBS='$(ALL_TARGET_OBS)'
7691 # For other settings, only the main target counts.
7695 targ=$target; . ${srcdir}/configure.tgt
7697 # Fetch the default architecture and default target vector from BFD.
7698 targ=$target; . $srcdir/../bfd/config.bfd
7700 # We only want the first architecture, so strip off the others if
7701 # there is more than one.
7702 targ_archs=`echo $targ_archs | sed 's/ .*//'`
7704 if test "x$targ_archs" != x; then
7706 cat >>confdefs.h <<_ACEOF
7707 #define DEFAULT_BFD_ARCH $targ_archs
7711 if test "x$targ_defvec" != x; then
7713 cat >>confdefs.h <<_ACEOF
7714 #define DEFAULT_BFD_VEC $targ_defvec
7719 # The CLI cannot be disabled yet, but may be in the future.
7722 # Check whether --enable-gdbcli or --disable-gdbcli was given.
7723 if test "${enable_gdbcli+set}" = set; then
7724 enableval="$enable_gdbcli"
7729 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7730 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7731 { (exit 1); exit 1; }; } ;;
7733 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7734 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7735 { (exit 1); exit 1; }; } ;;
7740 if test x"$enable_gdbcli" = xyes; then
7741 if test -d $srcdir/cli; then
7742 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7743 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7744 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7745 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7750 # Check whether --enable-gdbmi or --disable-gdbmi was given.
7751 if test "${enable_gdbmi+set}" = set; then
7752 enableval="$enable_gdbmi"
7757 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7758 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7759 { (exit 1); exit 1; }; } ;;
7764 if test x"$enable_gdbmi" = xyes; then
7765 if test -d $srcdir/mi; then
7766 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7767 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7768 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7769 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7774 # Check whether --enable-tui or --disable-tui was given.
7775 if test "${enable_tui+set}" = set; then
7776 enableval="$enable_tui"
7781 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7782 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7783 { (exit 1); exit 1; }; } ;;
7790 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7791 if test "${enable_gdbtk+set}" = set; then
7792 enableval="$enable_gdbtk"
7797 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7798 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7799 { (exit 1); exit 1; }; } ;;
7802 if test -d $srcdir/gdbtk; then
7808 # We unconditionally disable gdbtk tests on selected platforms.
7811 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7812 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7816 # Libunwind support.
7818 # Check whether --with-libunwind or --without-libunwind was given.
7819 if test "${with_libunwind+set}" = set; then
7820 withval="$with_libunwind"
7821 case "${withval}" in
7822 yes) enable_libunwind=yes ;;
7823 no) enable_libunwind=no ;;
7824 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7825 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7826 { (exit 1); exit 1; }; } ;;
7832 for ac_header in libunwind.h libunwind-ia64.h
7834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7836 echo "$as_me:$LINENO: checking for $ac_header" >&5
7837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7844 # Is the header compilable?
7845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7847 cat >conftest.$ac_ext <<_ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h. */
7853 $ac_includes_default
7854 #include <$ac_header>
7856 rm -f conftest.$ac_objext
7857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7858 (eval $ac_compile) 2>conftest.er1
7860 grep -v '^ *+' conftest.er1 >conftest.err
7862 cat conftest.err >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } &&
7865 { ac_try='test -z "$ac_c_werror_flag"
7866 || test ! -s conftest.err'
7867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); }; } &&
7872 { ac_try='test -s conftest.$ac_objext'
7873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); }; }; then
7878 ac_header_compiler=yes
7880 echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7883 ac_header_compiler=no
7885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7887 echo "${ECHO_T}$ac_header_compiler" >&6
7889 # Is the header present?
7890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7892 cat >conftest.$ac_ext <<_ACEOF
7895 cat confdefs.h >>conftest.$ac_ext
7896 cat >>conftest.$ac_ext <<_ACEOF
7897 /* end confdefs.h. */
7898 #include <$ac_header>
7900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7903 grep -v '^ *+' conftest.er1 >conftest.err
7905 cat conftest.err >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } >/dev/null; then
7908 if test -s conftest.err; then
7909 ac_cpp_err=$ac_c_preproc_warn_flag
7910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7917 if test -z "$ac_cpp_err"; then
7918 ac_header_preproc=yes
7920 echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7923 ac_header_preproc=no
7925 rm -f conftest.err conftest.$ac_ext
7926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7927 echo "${ECHO_T}$ac_header_preproc" >&6
7929 # So? What about this header?
7930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7936 ac_header_preproc=yes
7939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7953 ## ------------------------------------------ ##
7954 ## Report this to the AC_PACKAGE_NAME lists. ##
7955 ## ------------------------------------------ ##
7958 sed "s/^/$as_me: WARNING: /" >&2
7961 echo "$as_me:$LINENO: checking for $ac_header" >&5
7962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 eval "$as_ac_Header=\$ac_header_preproc"
7968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7973 cat >>confdefs.h <<_ACEOF
7974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7981 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7982 enable_libunwind=yes;
7987 if test x"$enable_libunwind" = xyes; then
7990 for ac_header in libunwind.h libunwind-ia64.h
7992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7994 echo "$as_me:$LINENO: checking for $ac_header" >&5
7995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8002 # Is the header compilable?
8003 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8005 cat >conftest.$ac_ext <<_ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h. */
8011 $ac_includes_default
8012 #include <$ac_header>
8014 rm -f conftest.$ac_objext
8015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8016 (eval $ac_compile) 2>conftest.er1
8018 grep -v '^ *+' conftest.er1 >conftest.err
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } &&
8023 { ac_try='test -z "$ac_c_werror_flag"
8024 || test ! -s conftest.err'
8025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); }; } &&
8030 { ac_try='test -s conftest.$ac_objext'
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; }; then
8036 ac_header_compiler=yes
8038 echo "$as_me: failed program was:" >&5
8039 sed 's/^/| /' conftest.$ac_ext >&5
8041 ac_header_compiler=no
8043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8045 echo "${ECHO_T}$ac_header_compiler" >&6
8047 # Is the header present?
8048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8050 cat >conftest.$ac_ext <<_ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8056 #include <$ac_header>
8058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8061 grep -v '^ *+' conftest.er1 >conftest.err
8063 cat conftest.err >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } >/dev/null; then
8066 if test -s conftest.err; then
8067 ac_cpp_err=$ac_c_preproc_warn_flag
8068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8075 if test -z "$ac_cpp_err"; then
8076 ac_header_preproc=yes
8078 echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8081 ac_header_preproc=no
8083 rm -f conftest.err conftest.$ac_ext
8084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8085 echo "${ECHO_T}$ac_header_preproc" >&6
8087 # So? What about this header?
8088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8094 ac_header_preproc=yes
8097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8100 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8101 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8103 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8104 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8107 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8111 ## ------------------------------------------ ##
8112 ## Report this to the AC_PACKAGE_NAME lists. ##
8113 ## ------------------------------------------ ##
8116 sed "s/^/$as_me: WARNING: /" >&2
8119 echo "$as_me:$LINENO: checking for $ac_header" >&5
8120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8124 eval "$as_ac_Header=\$ac_header_preproc"
8126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8131 cat >>confdefs.h <<_ACEOF
8132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8140 cat >>confdefs.h <<\_ACEOF
8141 #define HAVE_LIBUNWIND 1
8144 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8145 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8146 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8151 # Check whether --with-curses or --without-curses was given.
8152 if test "${with_curses+set}" = set; then
8153 withval="$with_curses"
8158 if test "$opt_curses" = "yes"; then
8162 # Profiling support.
8163 # Check whether --enable-profiling or --disable-profiling was given.
8164 if test "${enable_profiling+set}" = set; then
8165 enableval="$enable_profiling"
8170 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8171 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8172 { (exit 1); exit 1; }; } ;;
8180 for ac_func in monstartup _mcleanup
8182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8183 echo "$as_me:$LINENO: checking for $ac_func" >&5
8184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8185 if eval "test \"\${$as_ac_var+set}\" = set"; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8188 cat >conftest.$ac_ext <<_ACEOF
8191 cat confdefs.h >>conftest.$ac_ext
8192 cat >>conftest.$ac_ext <<_ACEOF
8193 /* end confdefs.h. */
8194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8196 #define $ac_func innocuous_$ac_func
8198 /* System header to define __stub macros and hopefully few prototypes,
8199 which can conflict with char $ac_func (); below.
8200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8201 <limits.h> exists even on freestanding compilers. */
8204 # include <limits.h>
8206 # include <assert.h>
8211 /* Override any gcc2 internal prototype to avoid an error. */
8216 /* We use char because int might match the return type of a gcc2
8217 builtin and then its argument prototype would still apply. */
8219 /* The GNU C library defines this for functions which it implements
8220 to always fail with ENOSYS. Some functions are actually named
8221 something starting with __ and the normal name is an alias. */
8222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8225 char (*f) () = $ac_func;
8234 return f != $ac_func;
8239 rm -f conftest.$ac_objext conftest$ac_exeext
8240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8241 (eval $ac_link) 2>conftest.er1
8243 grep -v '^ *+' conftest.er1 >conftest.err
8245 cat conftest.err >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } &&
8248 { ac_try='test -z "$ac_c_werror_flag"
8249 || test ! -s conftest.err'
8250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; } &&
8255 { ac_try='test -s conftest$ac_exeext'
8256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); }; }; then
8261 eval "$as_ac_var=yes"
8263 echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8266 eval "$as_ac_var=no"
8268 rm -f conftest.err conftest.$ac_objext \
8269 conftest$ac_exeext conftest.$ac_ext
8271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8273 if test `eval echo '${'$as_ac_var'}'` = yes; then
8274 cat >>confdefs.h <<_ACEOF
8275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8281 echo "$as_me:$LINENO: checking for _etext" >&5
8282 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8283 if test "${ac_cv_var__etext+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 cat >conftest.$ac_ext <<_ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h. */
8303 rm -f conftest.$ac_objext conftest$ac_exeext
8304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8305 (eval $ac_link) 2>conftest.er1
8307 grep -v '^ *+' conftest.er1 >conftest.err
8309 cat conftest.err >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } &&
8312 { ac_try='test -z "$ac_c_werror_flag"
8313 || test ! -s conftest.err'
8314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; } &&
8319 { ac_try='test -s conftest$ac_exeext'
8320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); }; }; then
8325 ac_cv_var__etext=yes
8327 echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8332 rm -f conftest.err conftest.$ac_objext \
8333 conftest$ac_exeext conftest.$ac_ext
8335 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8336 echo "${ECHO_T}$ac_cv_var__etext" >&6
8337 if test $ac_cv_var__etext = yes; then
8339 cat >>confdefs.h <<\_ACEOF
8340 #define HAVE__ETEXT 1
8344 echo "$as_me:$LINENO: checking for etext" >&5
8345 echo $ECHO_N "checking for etext... $ECHO_C" >&6
8346 if test "${ac_cv_var_etext+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 cat >conftest.$ac_ext <<_ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8366 rm -f conftest.$ac_objext conftest$ac_exeext
8367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8368 (eval $ac_link) 2>conftest.er1
8370 grep -v '^ *+' conftest.er1 >conftest.err
8372 cat conftest.err >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } &&
8375 { ac_try='test -z "$ac_c_werror_flag"
8376 || test ! -s conftest.err'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; } &&
8382 { ac_try='test -s conftest$ac_exeext'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8395 rm -f conftest.err conftest.$ac_objext \
8396 conftest$ac_exeext conftest.$ac_ext
8398 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8399 echo "${ECHO_T}$ac_cv_var_etext" >&6
8400 if test $ac_cv_var_etext = yes; then
8402 cat >>confdefs.h <<\_ACEOF
8403 #define HAVE_ETEXT 1
8407 if test "$enable_profiling" = yes ; then
8408 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8409 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8410 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8411 { (exit 1); exit 1; }; }
8414 OLD_CFLAGS="$CFLAGS"
8415 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8417 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8418 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8419 if test "${ac_cv_cc_supports_pg+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 cat >conftest.$ac_ext <<_ACEOF
8425 cat confdefs.h >>conftest.$ac_ext
8426 cat >>conftest.$ac_ext <<_ACEOF
8427 /* end confdefs.h. */
8437 rm -f conftest.$ac_objext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8439 (eval $ac_compile) 2>conftest.er1
8441 grep -v '^ *+' conftest.er1 >conftest.err
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -z "$ac_c_werror_flag"
8447 || test ! -s conftest.err'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; } &&
8453 { ac_try='test -s conftest.$ac_objext'
8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8459 ac_cv_cc_supports_pg=yes
8461 echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8464 ac_cv_cc_supports_pg=no
8466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8468 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8469 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8471 if test $ac_cv_cc_supports_pg = no; then
8472 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8473 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8474 { (exit 1); exit 1; }; }
8477 CFLAGS="$OLD_CFLAGS"
8482 # Check whether --with-pkgversion or --without-pkgversion was given.
8483 if test "${with_pkgversion+set}" = set; then
8484 withval="$with_pkgversion"
8486 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8487 echo "$as_me: error: package version not specified" >&2;}
8488 { (exit 1); exit 1; }; } ;;
8490 *) PKGVERSION="($withval) " ;;
8500 # Check whether --with-bugurl or --without-bugurl was given.
8501 if test "${with_bugurl+set}" = set; then
8502 withval="$with_bugurl"
8504 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8505 echo "$as_me: error: bug URL not specified" >&2;}
8506 { (exit 1); exit 1; }; } ;;
8509 *) BUGURL="$withval"
8513 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8522 REPORT_BUGS_TO="<$BUGURL>"
8523 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8530 cat >>confdefs.h <<_ACEOF
8531 #define PKGVERSION "$PKGVERSION"
8535 cat >>confdefs.h <<_ACEOF
8536 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8540 # --------------------- #
8541 # Checks for programs. #
8542 # --------------------- #
8544 for ac_prog in gawk mawk nawk awk
8546 # Extract the first word of "$ac_prog", so it can be a program name with args.
8547 set dummy $ac_prog; ac_word=$2
8548 echo "$as_me:$LINENO: checking for $ac_word" >&5
8549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8550 if test "${ac_cv_prog_AWK+set}" = set; then
8551 echo $ECHO_N "(cached) $ECHO_C" >&6
8553 if test -n "$AWK"; then
8554 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560 test -z "$as_dir" && as_dir=.
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8563 ac_cv_prog_AWK="$ac_prog"
8564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8573 if test -n "$AWK"; then
8574 echo "$as_me:$LINENO: result: $AWK" >&5
8575 echo "${ECHO_T}$AWK" >&6
8577 echo "$as_me:$LINENO: result: no" >&5
8578 echo "${ECHO_T}no" >&6
8581 test -n "$AWK" && break
8584 # Find a good install program. We prefer a C program (faster),
8585 # so one script is as good as another. But avoid the broken or
8586 # incompatible versions:
8587 # SysV /etc/install, /usr/sbin/install
8588 # SunOS /usr/etc/install
8589 # IRIX /sbin/install
8591 # AmigaOS /C/install, which installs bootblocks on floppy discs
8592 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8593 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8594 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8595 # OS/2's system install, which has a completely different semantic
8596 # ./install, which can be erroneously created by make from ./install.sh.
8597 # Reject install programs that cannot install multiple files.
8598 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8599 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8600 if test -z "$INSTALL"; then
8601 if test "${ac_cv_path_install+set}" = set; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8608 test -z "$as_dir" && as_dir=.
8609 # Account for people who put trailing slashes in PATH elements.
8611 ./ | .// | /cC/* | \
8612 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8613 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8616 # OSF1 and SCO ODT 3.0 have their own names for install.
8617 # Don't use installbsd from OSF since it installs stuff as root
8619 for ac_prog in ginstall scoinst install; do
8620 for ac_exec_ext in '' $ac_executable_extensions; do
8621 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8622 if test $ac_prog = install &&
8623 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8624 # AIX install. It has an incompatible calling convention.
8626 elif test $ac_prog = install &&
8627 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8628 # program-specific install script used by HP pwplus--don't use.
8631 rm -rf conftest.one conftest.two conftest.dir
8632 echo one > conftest.one
8633 echo two > conftest.two
8635 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8636 test -s conftest.one && test -s conftest.two &&
8637 test -s conftest.dir/conftest.one &&
8638 test -s conftest.dir/conftest.two
8640 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8651 rm -rf conftest.one conftest.two conftest.dir
8654 if test "${ac_cv_path_install+set}" = set; then
8655 INSTALL=$ac_cv_path_install
8657 # As a last resort, use the slow shell script. Don't cache a
8658 # value for INSTALL within a source directory, because that will
8659 # break other packages using the cache if that directory is
8660 # removed, or if the value is a relative name.
8661 INSTALL=$ac_install_sh
8664 echo "$as_me:$LINENO: result: $INSTALL" >&5
8665 echo "${ECHO_T}$INSTALL" >&6
8667 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8668 # It thinks the first close brace ends the variable substitution.
8669 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8671 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8673 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8675 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8676 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8678 if test "$LN_S" = "ln -s"; then
8679 echo "$as_me:$LINENO: result: yes" >&5
8680 echo "${ECHO_T}yes" >&6
8682 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8683 echo "${ECHO_T}no, using $LN_S" >&6
8686 if test -n "$ac_tool_prefix"; then
8687 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8688 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8689 echo "$as_me:$LINENO: checking for $ac_word" >&5
8690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8691 if test "${ac_cv_prog_RANLIB+set}" = set; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
8694 if test -n "$RANLIB"; then
8695 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 test -z "$as_dir" && as_dir=.
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8704 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8713 RANLIB=$ac_cv_prog_RANLIB
8714 if test -n "$RANLIB"; then
8715 echo "$as_me:$LINENO: result: $RANLIB" >&5
8716 echo "${ECHO_T}$RANLIB" >&6
8718 echo "$as_me:$LINENO: result: no" >&5
8719 echo "${ECHO_T}no" >&6
8723 if test -z "$ac_cv_prog_RANLIB"; then
8724 ac_ct_RANLIB=$RANLIB
8725 # Extract the first word of "ranlib", so it can be a program name with args.
8726 set dummy ranlib; ac_word=$2
8727 echo "$as_me:$LINENO: checking for $ac_word" >&5
8728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8729 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8730 echo $ECHO_N "(cached) $ECHO_C" >&6
8732 if test -n "$ac_ct_RANLIB"; then
8733 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739 test -z "$as_dir" && as_dir=.
8740 for ac_exec_ext in '' $ac_executable_extensions; do
8741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8742 ac_cv_prog_ac_ct_RANLIB="ranlib"
8743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8749 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8752 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8753 if test -n "$ac_ct_RANLIB"; then
8754 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8755 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8757 echo "$as_me:$LINENO: result: no" >&5
8758 echo "${ECHO_T}no" >&6
8761 RANLIB=$ac_ct_RANLIB
8763 RANLIB="$ac_cv_prog_RANLIB"
8766 for ac_prog in 'bison -y' byacc
8768 # Extract the first word of "$ac_prog", so it can be a program name with args.
8769 set dummy $ac_prog; ac_word=$2
8770 echo "$as_me:$LINENO: checking for $ac_word" >&5
8771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8772 if test "${ac_cv_prog_YACC+set}" = set; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 if test -n "$YACC"; then
8776 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8782 test -z "$as_dir" && as_dir=.
8783 for ac_exec_ext in '' $ac_executable_extensions; do
8784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8785 ac_cv_prog_YACC="$ac_prog"
8786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8794 YACC=$ac_cv_prog_YACC
8795 if test -n "$YACC"; then
8796 echo "$as_me:$LINENO: result: $YACC" >&5
8797 echo "${ECHO_T}$YACC" >&6
8799 echo "$as_me:$LINENO: result: no" >&5
8800 echo "${ECHO_T}no" >&6
8803 test -n "$YACC" && break
8805 test -n "$YACC" || YACC="yacc"
8808 if test -n "$ac_tool_prefix"; then
8809 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8810 set dummy ${ac_tool_prefix}ar; ac_word=$2
8811 echo "$as_me:$LINENO: checking for $ac_word" >&5
8812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8813 if test "${ac_cv_prog_AR+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8816 if test -n "$AR"; then
8817 ac_cv_prog_AR="$AR" # Let the user override the test.
8819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8823 test -z "$as_dir" && as_dir=.
8824 for ac_exec_ext in '' $ac_executable_extensions; do
8825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8826 ac_cv_prog_AR="${ac_tool_prefix}ar"
8827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8836 if test -n "$AR"; then
8837 echo "$as_me:$LINENO: result: $AR" >&5
8838 echo "${ECHO_T}$AR" >&6
8840 echo "$as_me:$LINENO: result: no" >&5
8841 echo "${ECHO_T}no" >&6
8845 if test -z "$ac_cv_prog_AR"; then
8847 # Extract the first word of "ar", so it can be a program name with args.
8848 set dummy ar; ac_word=$2
8849 echo "$as_me:$LINENO: checking for $ac_word" >&5
8850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8851 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8854 if test -n "$ac_ct_AR"; then
8855 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8861 test -z "$as_dir" && as_dir=.
8862 for ac_exec_ext in '' $ac_executable_extensions; do
8863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8864 ac_cv_prog_ac_ct_AR="ar"
8865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8873 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8874 if test -n "$ac_ct_AR"; then
8875 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8876 echo "${ECHO_T}$ac_ct_AR" >&6
8878 echo "$as_me:$LINENO: result: no" >&5
8879 echo "${ECHO_T}no" >&6
8887 if test -n "$ac_tool_prefix"; then
8888 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8889 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8890 echo "$as_me:$LINENO: checking for $ac_word" >&5
8891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8892 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 if test -n "$DLLTOOL"; then
8896 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8902 test -z "$as_dir" && as_dir=.
8903 for ac_exec_ext in '' $ac_executable_extensions; do
8904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8905 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8914 DLLTOOL=$ac_cv_prog_DLLTOOL
8915 if test -n "$DLLTOOL"; then
8916 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8917 echo "${ECHO_T}$DLLTOOL" >&6
8919 echo "$as_me:$LINENO: result: no" >&5
8920 echo "${ECHO_T}no" >&6
8924 if test -z "$ac_cv_prog_DLLTOOL"; then
8925 ac_ct_DLLTOOL=$DLLTOOL
8926 # Extract the first word of "dlltool", so it can be a program name with args.
8927 set dummy dlltool; ac_word=$2
8928 echo "$as_me:$LINENO: checking for $ac_word" >&5
8929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8930 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8933 if test -n "$ac_ct_DLLTOOL"; then
8934 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8940 test -z "$as_dir" && as_dir=.
8941 for ac_exec_ext in '' $ac_executable_extensions; do
8942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8943 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8952 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8953 if test -n "$ac_ct_DLLTOOL"; then
8954 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8955 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
8957 echo "$as_me:$LINENO: result: no" >&5
8958 echo "${ECHO_T}no" >&6
8961 DLLTOOL=$ac_ct_DLLTOOL
8963 DLLTOOL="$ac_cv_prog_DLLTOOL"
8966 if test -n "$ac_tool_prefix"; then
8967 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8968 set dummy ${ac_tool_prefix}windres; ac_word=$2
8969 echo "$as_me:$LINENO: checking for $ac_word" >&5
8970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8971 if test "${ac_cv_prog_WINDRES+set}" = set; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8974 if test -n "$WINDRES"; then
8975 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8981 test -z "$as_dir" && as_dir=.
8982 for ac_exec_ext in '' $ac_executable_extensions; do
8983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8984 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8993 WINDRES=$ac_cv_prog_WINDRES
8994 if test -n "$WINDRES"; then
8995 echo "$as_me:$LINENO: result: $WINDRES" >&5
8996 echo "${ECHO_T}$WINDRES" >&6
8998 echo "$as_me:$LINENO: result: no" >&5
8999 echo "${ECHO_T}no" >&6
9003 if test -z "$ac_cv_prog_WINDRES"; then
9004 ac_ct_WINDRES=$WINDRES
9005 # Extract the first word of "windres", so it can be a program name with args.
9006 set dummy windres; ac_word=$2
9007 echo "$as_me:$LINENO: checking for $ac_word" >&5
9008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9009 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 if test -n "$ac_ct_WINDRES"; then
9013 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9019 test -z "$as_dir" && as_dir=.
9020 for ac_exec_ext in '' $ac_executable_extensions; do
9021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9022 ac_cv_prog_ac_ct_WINDRES="windres"
9023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9031 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9032 if test -n "$ac_ct_WINDRES"; then
9033 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9034 echo "${ECHO_T}$ac_ct_WINDRES" >&6
9036 echo "$as_me:$LINENO: result: no" >&5
9037 echo "${ECHO_T}no" >&6
9040 WINDRES=$ac_ct_WINDRES
9042 WINDRES="$ac_cv_prog_WINDRES"
9046 # Needed for GNU/Hurd.
9047 if test -n "$ac_tool_prefix"; then
9048 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9049 set dummy ${ac_tool_prefix}mig; ac_word=$2
9050 echo "$as_me:$LINENO: checking for $ac_word" >&5
9051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9052 if test "${ac_cv_prog_MIG+set}" = set; then
9053 echo $ECHO_N "(cached) $ECHO_C" >&6
9055 if test -n "$MIG"; then
9056 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9062 test -z "$as_dir" && as_dir=.
9063 for ac_exec_ext in '' $ac_executable_extensions; do
9064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9065 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9075 if test -n "$MIG"; then
9076 echo "$as_me:$LINENO: result: $MIG" >&5
9077 echo "${ECHO_T}$MIG" >&6
9079 echo "$as_me:$LINENO: result: no" >&5
9080 echo "${ECHO_T}no" >&6
9084 if test -z "$ac_cv_prog_MIG"; then
9086 # Extract the first word of "mig", so it can be a program name with args.
9087 set dummy mig; ac_word=$2
9088 echo "$as_me:$LINENO: checking for $ac_word" >&5
9089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9090 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9093 if test -n "$ac_ct_MIG"; then
9094 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9100 test -z "$as_dir" && as_dir=.
9101 for ac_exec_ext in '' $ac_executable_extensions; do
9102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9103 ac_cv_prog_ac_ct_MIG="mig"
9104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9112 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9113 if test -n "$ac_ct_MIG"; then
9114 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9115 echo "${ECHO_T}$ac_ct_MIG" >&6
9117 echo "$as_me:$LINENO: result: no" >&5
9118 echo "${ECHO_T}no" >&6
9123 MIG="$ac_cv_prog_MIG"
9127 # ---------------------- #
9128 # Checks for libraries. #
9129 # ---------------------- #
9131 # We might need to link with -lm; most simulators need it.
9133 echo "$as_me:$LINENO: checking for main in -lm" >&5
9134 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9135 if test "${ac_cv_lib_m_main+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9138 ac_check_lib_save_LIBS=$LIBS
9140 cat >conftest.$ac_ext <<_ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9156 rm -f conftest.$ac_objext conftest$ac_exeext
9157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9158 (eval $ac_link) 2>conftest.er1
9160 grep -v '^ *+' conftest.er1 >conftest.err
9162 cat conftest.err >&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); } &&
9165 { ac_try='test -z "$ac_c_werror_flag"
9166 || test ! -s conftest.err'
9167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; } &&
9172 { ac_try='test -s conftest$ac_exeext'
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; }; then
9178 ac_cv_lib_m_main=yes
9180 echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9185 rm -f conftest.err conftest.$ac_objext \
9186 conftest$ac_exeext conftest.$ac_ext
9187 LIBS=$ac_check_lib_save_LIBS
9189 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9190 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9191 if test $ac_cv_lib_m_main = yes; then
9192 cat >>confdefs.h <<_ACEOF
9201 # We need to link with -lw to get `wctype' on Solaris before Solaris
9202 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9203 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9204 # is known to have this problem). Therefore we avoid libw if we can.
9205 echo "$as_me:$LINENO: checking for wctype" >&5
9206 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9207 if test "${ac_cv_func_wctype+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 cat >conftest.$ac_ext <<_ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h. */
9216 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9218 #define wctype innocuous_wctype
9220 /* System header to define __stub macros and hopefully few prototypes,
9221 which can conflict with char wctype (); below.
9222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9223 <limits.h> exists even on freestanding compilers. */
9226 # include <limits.h>
9228 # include <assert.h>
9233 /* Override any gcc2 internal prototype to avoid an error. */
9238 /* We use char because int might match the return type of a gcc2
9239 builtin and then its argument prototype would still apply. */
9241 /* The GNU C library defines this for functions which it implements
9242 to always fail with ENOSYS. Some functions are actually named
9243 something starting with __ and the normal name is an alias. */
9244 #if defined (__stub_wctype) || defined (__stub___wctype)
9247 char (*f) () = wctype;
9261 rm -f conftest.$ac_objext conftest$ac_exeext
9262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9263 (eval $ac_link) 2>conftest.er1
9265 grep -v '^ *+' conftest.er1 >conftest.err
9267 cat conftest.err >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } &&
9270 { ac_try='test -z "$ac_c_werror_flag"
9271 || test ! -s conftest.err'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; } &&
9277 { ac_try='test -s conftest$ac_exeext'
9278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }; }; then
9283 ac_cv_func_wctype=yes
9285 echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.$ac_ext >&5
9288 ac_cv_func_wctype=no
9290 rm -f conftest.err conftest.$ac_objext \
9291 conftest$ac_exeext conftest.$ac_ext
9293 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9294 echo "${ECHO_T}$ac_cv_func_wctype" >&6
9295 if test $ac_cv_func_wctype = yes; then
9299 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9300 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9301 if test "${ac_cv_lib_w_wctype+set}" = set; then
9302 echo $ECHO_N "(cached) $ECHO_C" >&6
9304 ac_check_lib_save_LIBS=$LIBS
9306 cat >conftest.$ac_ext <<_ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9313 /* Override any gcc2 internal prototype to avoid an error. */
9317 /* We use char because int might match the return type of a gcc2
9318 builtin and then its argument prototype would still apply. */
9328 rm -f conftest.$ac_objext conftest$ac_exeext
9329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9330 (eval $ac_link) 2>conftest.er1
9332 grep -v '^ *+' conftest.er1 >conftest.err
9334 cat conftest.err >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
9337 { ac_try='test -z "$ac_c_werror_flag"
9338 || test ! -s conftest.err'
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; } &&
9344 { ac_try='test -s conftest$ac_exeext'
9345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; }; then
9350 ac_cv_lib_w_wctype=yes
9352 echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.$ac_ext >&5
9355 ac_cv_lib_w_wctype=no
9357 rm -f conftest.err conftest.$ac_objext \
9358 conftest$ac_exeext conftest.$ac_ext
9359 LIBS=$ac_check_lib_save_LIBS
9361 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9362 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9363 if test $ac_cv_lib_w_wctype = yes; then
9364 cat >>confdefs.h <<_ACEOF
9375 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9376 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9377 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9378 if test "${ac_cv_search_gethostbyname+set}" = set; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9381 ac_func_search_save_LIBS=$LIBS
9382 ac_cv_search_gethostbyname=no
9383 cat >conftest.$ac_ext <<_ACEOF
9386 cat confdefs.h >>conftest.$ac_ext
9387 cat >>conftest.$ac_ext <<_ACEOF
9388 /* end confdefs.h. */
9390 /* Override any gcc2 internal prototype to avoid an error. */
9394 /* We use char because int might match the return type of a gcc2
9395 builtin and then its argument prototype would still apply. */
9396 char gethostbyname ();
9405 rm -f conftest.$ac_objext conftest$ac_exeext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407 (eval $ac_link) 2>conftest.er1
9409 grep -v '^ *+' conftest.er1 >conftest.err
9411 cat conftest.err >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); } &&
9414 { ac_try='test -z "$ac_c_werror_flag"
9415 || test ! -s conftest.err'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; } &&
9421 { ac_try='test -s conftest$ac_exeext'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 ac_cv_search_gethostbyname="none required"
9429 echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9433 rm -f conftest.err conftest.$ac_objext \
9434 conftest$ac_exeext conftest.$ac_ext
9435 if test "$ac_cv_search_gethostbyname" = no; then
9436 for ac_lib in nsl; do
9437 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9438 cat >conftest.$ac_ext <<_ACEOF
9441 cat confdefs.h >>conftest.$ac_ext
9442 cat >>conftest.$ac_ext <<_ACEOF
9443 /* end confdefs.h. */
9445 /* Override any gcc2 internal prototype to avoid an error. */
9449 /* We use char because int might match the return type of a gcc2
9450 builtin and then its argument prototype would still apply. */
9451 char gethostbyname ();
9460 rm -f conftest.$ac_objext conftest$ac_exeext
9461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9462 (eval $ac_link) 2>conftest.er1
9464 grep -v '^ *+' conftest.er1 >conftest.err
9466 cat conftest.err >&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); } &&
9469 { ac_try='test -z "$ac_c_werror_flag"
9470 || test ! -s conftest.err'
9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; } &&
9476 { ac_try='test -s conftest$ac_exeext'
9477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; }; then
9482 ac_cv_search_gethostbyname="-l$ac_lib"
9485 echo "$as_me: failed program was:" >&5
9486 sed 's/^/| /' conftest.$ac_ext >&5
9489 rm -f conftest.err conftest.$ac_objext \
9490 conftest$ac_exeext conftest.$ac_ext
9493 LIBS=$ac_func_search_save_LIBS
9495 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9496 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9497 if test "$ac_cv_search_gethostbyname" != no; then
9498 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9503 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9504 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9505 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9506 if test "${ac_cv_search_socketpair+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9509 ac_func_search_save_LIBS=$LIBS
9510 ac_cv_search_socketpair=no
9511 cat >conftest.$ac_ext <<_ACEOF
9514 cat confdefs.h >>conftest.$ac_ext
9515 cat >>conftest.$ac_ext <<_ACEOF
9516 /* end confdefs.h. */
9518 /* Override any gcc2 internal prototype to avoid an error. */
9522 /* We use char because int might match the return type of a gcc2
9523 builtin and then its argument prototype would still apply. */
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9535 (eval $ac_link) 2>conftest.er1
9537 grep -v '^ *+' conftest.er1 >conftest.err
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } &&
9542 { ac_try='test -z "$ac_c_werror_flag"
9543 || test ! -s conftest.err'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; } &&
9549 { ac_try='test -s conftest$ac_exeext'
9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; }; then
9555 ac_cv_search_socketpair="none required"
9557 echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9561 rm -f conftest.err conftest.$ac_objext \
9562 conftest$ac_exeext conftest.$ac_ext
9563 if test "$ac_cv_search_socketpair" = no; then
9564 for ac_lib in socket; do
9565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9566 cat >conftest.$ac_ext <<_ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9573 /* Override any gcc2 internal prototype to avoid an error. */
9577 /* We use char because int might match the return type of a gcc2
9578 builtin and then its argument prototype would still apply. */
9588 rm -f conftest.$ac_objext conftest$ac_exeext
9589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9590 (eval $ac_link) 2>conftest.er1
9592 grep -v '^ *+' conftest.er1 >conftest.err
9594 cat conftest.err >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); } &&
9597 { ac_try='test -z "$ac_c_werror_flag"
9598 || test ! -s conftest.err'
9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; } &&
9604 { ac_try='test -s conftest$ac_exeext'
9605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; }; then
9610 ac_cv_search_socketpair="-l$ac_lib"
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9617 rm -f conftest.err conftest.$ac_objext \
9618 conftest$ac_exeext conftest.$ac_ext
9621 LIBS=$ac_func_search_save_LIBS
9623 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9624 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9625 if test "$ac_cv_search_socketpair" != no; then
9626 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9631 # Link in zlib if we can. This allows us to read compressed debug sections.
9632 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9633 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9634 if test "${ac_cv_search_zlibVersion+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9637 ac_func_search_save_LIBS=$LIBS
9638 ac_cv_search_zlibVersion=no
9639 cat >conftest.$ac_ext <<_ACEOF
9642 cat confdefs.h >>conftest.$ac_ext
9643 cat >>conftest.$ac_ext <<_ACEOF
9644 /* end confdefs.h. */
9646 /* Override any gcc2 internal prototype to avoid an error. */
9650 /* We use char because int might match the return type of a gcc2
9651 builtin and then its argument prototype would still apply. */
9652 char zlibVersion ();
9661 rm -f conftest.$ac_objext conftest$ac_exeext
9662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9663 (eval $ac_link) 2>conftest.er1
9665 grep -v '^ *+' conftest.er1 >conftest.err
9667 cat conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } &&
9670 { ac_try='test -z "$ac_c_werror_flag"
9671 || test ! -s conftest.err'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; } &&
9677 { ac_try='test -s conftest$ac_exeext'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; }; then
9683 ac_cv_search_zlibVersion="none required"
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9689 rm -f conftest.err conftest.$ac_objext \
9690 conftest$ac_exeext conftest.$ac_ext
9691 if test "$ac_cv_search_zlibVersion" = no; then
9693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9694 cat >conftest.$ac_ext <<_ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9701 /* Override any gcc2 internal prototype to avoid an error. */
9705 /* We use char because int might match the return type of a gcc2
9706 builtin and then its argument prototype would still apply. */
9707 char zlibVersion ();
9716 rm -f conftest.$ac_objext conftest$ac_exeext
9717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9718 (eval $ac_link) 2>conftest.er1
9720 grep -v '^ *+' conftest.er1 >conftest.err
9722 cat conftest.err >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } &&
9725 { ac_try='test -z "$ac_c_werror_flag"
9726 || test ! -s conftest.err'
9727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; } &&
9732 { ac_try='test -s conftest$ac_exeext'
9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; }; then
9738 ac_cv_search_zlibVersion="-l$ac_lib"
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9745 rm -f conftest.err conftest.$ac_objext \
9746 conftest$ac_exeext conftest.$ac_ext
9749 LIBS=$ac_func_search_save_LIBS
9751 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9752 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9753 if test "$ac_cv_search_zlibVersion" != no; then
9754 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9756 for ac_header in zlib.h
9758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9760 echo "$as_me:$LINENO: checking for $ac_header" >&5
9761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9768 # Is the header compilable?
9769 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9771 cat >conftest.$ac_ext <<_ACEOF
9774 cat confdefs.h >>conftest.$ac_ext
9775 cat >>conftest.$ac_ext <<_ACEOF
9776 /* end confdefs.h. */
9777 $ac_includes_default
9778 #include <$ac_header>
9780 rm -f conftest.$ac_objext
9781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9782 (eval $ac_compile) 2>conftest.er1
9784 grep -v '^ *+' conftest.er1 >conftest.err
9786 cat conftest.err >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } &&
9789 { ac_try='test -z "$ac_c_werror_flag"
9790 || test ! -s conftest.err'
9791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); }; } &&
9796 { ac_try='test -s conftest.$ac_objext'
9797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; }; then
9802 ac_header_compiler=yes
9804 echo "$as_me: failed program was:" >&5
9805 sed 's/^/| /' conftest.$ac_ext >&5
9807 ac_header_compiler=no
9809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9810 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9811 echo "${ECHO_T}$ac_header_compiler" >&6
9813 # Is the header present?
9814 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9816 cat >conftest.$ac_ext <<_ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9822 #include <$ac_header>
9824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9827 grep -v '^ *+' conftest.er1 >conftest.err
9829 cat conftest.err >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } >/dev/null; then
9832 if test -s conftest.err; then
9833 ac_cpp_err=$ac_c_preproc_warn_flag
9834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9841 if test -z "$ac_cpp_err"; then
9842 ac_header_preproc=yes
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9847 ac_header_preproc=no
9849 rm -f conftest.err conftest.$ac_ext
9850 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9851 echo "${ECHO_T}$ac_header_preproc" >&6
9853 # So? What about this header?
9854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9860 ac_header_preproc=yes
9863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9870 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9877 ## ------------------------------------------ ##
9878 ## Report this to the AC_PACKAGE_NAME lists. ##
9879 ## ------------------------------------------ ##
9882 sed "s/^/$as_me: WARNING: /" >&2
9885 echo "$as_me:$LINENO: checking for $ac_header" >&5
9886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 eval "$as_ac_Header=\$ac_header_preproc"
9892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9897 cat >>confdefs.h <<_ACEOF
9898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9908 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9909 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
9910 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
9911 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9914 ac_func_search_save_LIBS=$LIBS
9915 ac_cv_search_dlgetmodinfo=no
9916 cat >conftest.$ac_ext <<_ACEOF
9919 cat confdefs.h >>conftest.$ac_ext
9920 cat >>conftest.$ac_ext <<_ACEOF
9921 /* end confdefs.h. */
9923 /* Override any gcc2 internal prototype to avoid an error. */
9927 /* We use char because int might match the return type of a gcc2
9928 builtin and then its argument prototype would still apply. */
9929 char dlgetmodinfo ();
9938 rm -f conftest.$ac_objext conftest$ac_exeext
9939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9940 (eval $ac_link) 2>conftest.er1
9942 grep -v '^ *+' conftest.er1 >conftest.err
9944 cat conftest.err >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } &&
9947 { ac_try='test -z "$ac_c_werror_flag"
9948 || test ! -s conftest.err'
9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; } &&
9954 { ac_try='test -s conftest$ac_exeext'
9955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; }; then
9960 ac_cv_search_dlgetmodinfo="none required"
9962 echo "$as_me: failed program was:" >&5
9963 sed 's/^/| /' conftest.$ac_ext >&5
9966 rm -f conftest.err conftest.$ac_objext \
9967 conftest$ac_exeext conftest.$ac_ext
9968 if test "$ac_cv_search_dlgetmodinfo" = no; then
9969 for ac_lib in dl xpdl; do
9970 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9971 cat >conftest.$ac_ext <<_ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9978 /* Override any gcc2 internal prototype to avoid an error. */
9982 /* We use char because int might match the return type of a gcc2
9983 builtin and then its argument prototype would still apply. */
9984 char dlgetmodinfo ();
9993 rm -f conftest.$ac_objext conftest$ac_exeext
9994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9995 (eval $ac_link) 2>conftest.er1
9997 grep -v '^ *+' conftest.er1 >conftest.err
9999 cat conftest.err >&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); } &&
10002 { ac_try='test -z "$ac_c_werror_flag"
10003 || test ! -s conftest.err'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; } &&
10009 { ac_try='test -s conftest$ac_exeext'
10010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011 (eval $ac_try) 2>&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; }; then
10015 ac_cv_search_dlgetmodinfo="-l$ac_lib"
10018 echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10022 rm -f conftest.err conftest.$ac_objext \
10023 conftest$ac_exeext conftest.$ac_ext
10026 LIBS=$ac_func_search_save_LIBS
10028 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10029 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10030 if test "$ac_cv_search_dlgetmodinfo" != no; then
10031 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
10039 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10040 if test "${with_libiconv_prefix+set}" = set; then
10041 withval="$with_libiconv_prefix"
10043 for dir in `echo "$withval" | tr : ' '`; do
10044 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
10045 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
10050 BUILD_LIBICONV_LIBDIR="-L../libiconv/lib/.libs -L../libiconv/lib/_libs"
10051 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
10053 echo "$as_me:$LINENO: checking for iconv" >&5
10054 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10055 if test "${am_cv_func_iconv+set}" = set; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
10059 am_cv_func_iconv="no, consider installing GNU libiconv"
10061 am_cv_use_build_libiconv=no
10062 # First, try to find iconv in libc.
10063 cat >conftest.$ac_ext <<_ACEOF
10066 cat confdefs.h >>conftest.$ac_ext
10067 cat >>conftest.$ac_ext <<_ACEOF
10068 /* end confdefs.h. */
10069 #include <stdlib.h>
10074 iconv_t cd = iconv_open("","");
10075 iconv(cd,NULL,NULL,NULL,NULL);
10081 rm -f conftest.$ac_objext conftest$ac_exeext
10082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10083 (eval $ac_link) 2>conftest.er1
10085 grep -v '^ *+' conftest.er1 >conftest.err
10087 cat conftest.err >&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } &&
10090 { ac_try='test -z "$ac_c_werror_flag"
10091 || test ! -s conftest.err'
10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; } &&
10097 { ac_try='test -s conftest$ac_exeext'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; }; then
10103 am_cv_func_iconv=yes
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10109 rm -f conftest.err conftest.$ac_objext \
10110 conftest$ac_exeext conftest.$ac_ext
10112 # If iconv was not in libc, try -liconv. In this case, arrange to
10113 # look in the libiconv prefix, if it was specified by the user.
10114 if test "$am_cv_func_iconv" != yes; then
10115 am_save_CPPFLAGS="$CPPFLAGS"
10116 am_save_LIBS="$LIBS"
10117 if test -n "$LIBICONV_INCLUDE"; then
10118 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
10119 LIBS="$LIBS $LIBICONV_LIBDIR"
10121 LIBS="$LIBS -liconv"
10122 cat >conftest.$ac_ext <<_ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10128 #include <stdlib.h>
10133 iconv_t cd = iconv_open("","");
10134 iconv(cd,NULL,NULL,NULL,NULL);
10140 rm -f conftest.$ac_objext conftest$ac_exeext
10141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10142 (eval $ac_link) 2>conftest.er1
10144 grep -v '^ *+' conftest.er1 >conftest.err
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } &&
10149 { ac_try='test -z "$ac_c_werror_flag"
10150 || test ! -s conftest.err'
10151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152 (eval $ac_try) 2>&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; } &&
10156 { ac_try='test -s conftest$ac_exeext'
10157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158 (eval $ac_try) 2>&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); }; }; then
10162 am_cv_lib_iconv=yes
10163 am_cv_func_iconv=yes
10165 echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.$ac_ext >&5
10169 rm -f conftest.err conftest.$ac_objext \
10170 conftest$ac_exeext conftest.$ac_ext
10171 LIBS="$am_save_LIBS"
10172 CPPFLAGS="$am_save_CPPFLAGS"
10175 # If that didn't work, try to find libiconv in the build tree.
10176 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10177 am_save_LIBS="$LIBS"
10178 am_save_CPPFLAGS="$CPPFLAGS"
10179 LIBS="$LIBS $BUILD_LIBICONV_LIBDIR -liconv"
10180 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
10181 cat >conftest.$ac_ext <<_ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h. */
10187 #include <stdlib.h>
10192 iconv_t cd = iconv_open("","");
10193 iconv(cd,NULL,NULL,NULL,NULL);
10199 rm -f conftest.$ac_objext conftest$ac_exeext
10200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10201 (eval $ac_link) 2>conftest.er1
10203 grep -v '^ *+' conftest.er1 >conftest.err
10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } &&
10208 { ac_try='test -z "$ac_c_werror_flag"
10209 || test ! -s conftest.err'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try='test -s conftest$ac_exeext'
10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10221 am_cv_use_build_libiconv=yes
10222 am_cv_lib_iconv=yes
10223 am_cv_func_iconv=yes
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10229 rm -f conftest.err conftest.$ac_objext \
10230 conftest$ac_exeext conftest.$ac_ext
10231 LIBS="$am_save_LIBS"
10232 CPPFLAGS="$am_save_CPPFLAGS"
10236 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10237 echo "${ECHO_T}$am_cv_func_iconv" >&6
10239 # Set the various flags based on the cache variables. We can't rely
10240 # on the flags to remain set from the above code, due to caching.
10242 if test "$am_cv_lib_iconv" = yes; then
10248 if test "$am_cv_use_build_libiconv" = yes; then
10249 LIBICONV_LIBDIR="$BUILD_LIBICONV_LIBDIR"
10250 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
10252 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
10253 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
10255 if test "$am_cv_func_iconv" = yes; then
10257 cat >>confdefs.h <<\_ACEOF
10258 #define HAVE_ICONV 1
10261 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10262 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10263 if test "${am_cv_proto_iconv+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10267 cat >conftest.$ac_ext <<_ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h. */
10274 #include <stdlib.h>
10280 #if defined(__STDC__) || defined(__cplusplus)
10281 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10294 rm -f conftest.$ac_objext
10295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10296 (eval $ac_compile) 2>conftest.er1
10298 grep -v '^ *+' conftest.er1 >conftest.err
10300 cat conftest.err >&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } &&
10303 { ac_try='test -z "$ac_c_werror_flag"
10304 || test ! -s conftest.err'
10305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306 (eval $ac_try) 2>&5
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); }; } &&
10310 { ac_try='test -s conftest.$ac_objext'
10311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; }; then
10316 am_cv_proto_iconv_arg1=""
10318 echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10321 am_cv_proto_iconv_arg1="const"
10323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10324 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);"
10327 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10328 echo "$as_me:$LINENO: result: ${ac_t:-
10329 }$am_cv_proto_iconv" >&5
10330 echo "${ECHO_T}${ac_t:-
10331 }$am_cv_proto_iconv" >&6
10333 cat >>confdefs.h <<_ACEOF
10334 #define ICONV_CONST $am_cv_proto_iconv_arg1
10340 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
10341 # There is a very specific comment in /usr/include/curses.h explaining that
10342 # termcap routines built into libcurses must not be used.
10344 # The symptoms we observed so far is GDB unexpectedly changing
10345 # the terminal settings when tgetent is called - this is particularly
10346 # visible as the output is missing carriage returns, and so rapidly
10347 # becomes very hard to read.
10349 # The readline configure script has already decided that libtermcap
10350 # was enough for its purposes, and so decided to build readline using
10351 # libtermcap. Since the TUI mode requires curses, building GDB with
10352 # TUI enabled results in both libraries to be used at the same time,
10353 # which is not allowed. This basically means that GDB with TUI is
10354 # broken on alpha-osf.
10358 if "$enable_tui" = "yes"; then
10359 { { echo "$as_me:$LINENO: error: Building GDB with TUI mode is not supported on this host" >&5
10360 echo "$as_me: error: Building GDB with TUI mode is not supported on this host" >&2;}
10361 { (exit 1); exit 1; }; }
10363 if "$enable_tui" = "auto"; then
10369 # For the TUI, we need enhanced curses functionality.
10370 if test x"$enable_tui" != xno; then
10375 if test x"$prefer_curses" = xyes; then
10376 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
10377 # curses library because the latter might not provide all the
10378 # functionality we need. However, this leads to problems on systems
10379 # where the linker searches /usr/local/lib, but the compiler doesn't
10380 # search /usr/local/include, if ncurses is installed in /usr/local. A
10381 # default installation of ncurses on alpha*-dec-osf* will lead to such
10383 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
10384 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
10385 if test "${ac_cv_search_waddstr+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10388 ac_func_search_save_LIBS=$LIBS
10389 ac_cv_search_waddstr=no
10390 cat >conftest.$ac_ext <<_ACEOF
10393 cat confdefs.h >>conftest.$ac_ext
10394 cat >>conftest.$ac_ext <<_ACEOF
10395 /* end confdefs.h. */
10397 /* Override any gcc2 internal prototype to avoid an error. */
10401 /* We use char because int might match the return type of a gcc2
10402 builtin and then its argument prototype would still apply. */
10412 rm -f conftest.$ac_objext conftest$ac_exeext
10413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10414 (eval $ac_link) 2>conftest.er1
10416 grep -v '^ *+' conftest.er1 >conftest.err
10418 cat conftest.err >&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } &&
10421 { ac_try='test -z "$ac_c_werror_flag"
10422 || test ! -s conftest.err'
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; } &&
10428 { ac_try='test -s conftest$ac_exeext'
10429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430 (eval $ac_try) 2>&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; }; then
10434 ac_cv_search_waddstr="none required"
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10440 rm -f conftest.err conftest.$ac_objext \
10441 conftest$ac_exeext conftest.$ac_ext
10442 if test "$ac_cv_search_waddstr" = no; then
10443 for ac_lib in ncurses cursesX curses; do
10444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10445 cat >conftest.$ac_ext <<_ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10452 /* Override any gcc2 internal prototype to avoid an error. */
10456 /* We use char because int might match the return type of a gcc2
10457 builtin and then its argument prototype would still apply. */
10467 rm -f conftest.$ac_objext conftest$ac_exeext
10468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10469 (eval $ac_link) 2>conftest.er1
10471 grep -v '^ *+' conftest.er1 >conftest.err
10473 cat conftest.err >&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } &&
10476 { ac_try='test -z "$ac_c_werror_flag"
10477 || test ! -s conftest.err'
10478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479 (eval $ac_try) 2>&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; } &&
10483 { ac_try='test -s conftest$ac_exeext'
10484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485 (eval $ac_try) 2>&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); }; }; then
10489 ac_cv_search_waddstr="-l$ac_lib"
10492 echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10496 rm -f conftest.err conftest.$ac_objext \
10497 conftest$ac_exeext conftest.$ac_ext
10500 LIBS=$ac_func_search_save_LIBS
10502 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10503 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10504 if test "$ac_cv_search_waddstr" != no; then
10505 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
10510 if test "$ac_cv_search_waddstr" != no; then
10515 # Check whether we should enable the TUI, but only do so if we really
10517 if test x"$enable_tui" != xno; then
10518 if test -d $srcdir/tui; then
10519 if test "$curses_found" != no; then
10520 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
10521 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
10522 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
10523 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
10524 CONFIG_ALL="${CONFIG_ALL} all-tui"
10525 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
10526 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
10527 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
10529 if test x"$enable_tui" = xyes; then
10530 { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
10531 echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
10532 { (exit 1); exit 1; }; }
10534 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
10535 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
10541 # Since GDB uses Readline, we need termcap functionality. In many
10542 # cases this will be provided by the curses library, but some systems
10543 # have a seperate termcap library, or no curses library at all.
10547 if test -d $srcdir/libtermcap; then
10548 LIBS="../libtermcap/libtermcap.a $LIBS"
10549 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10552 ac_cv_search_tgetent="none required"
10555 ac_cv_search_tgetent="none required"
10556 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
10560 # These are the libraries checked by Readline.
10561 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10562 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10563 if test "${ac_cv_search_tgetent+set}" = set; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10566 ac_func_search_save_LIBS=$LIBS
10567 ac_cv_search_tgetent=no
10568 cat >conftest.$ac_ext <<_ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h. */
10575 /* Override any gcc2 internal prototype to avoid an error. */
10579 /* We use char because int might match the return type of a gcc2
10580 builtin and then its argument prototype would still apply. */
10590 rm -f conftest.$ac_objext conftest$ac_exeext
10591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10592 (eval $ac_link) 2>conftest.er1
10594 grep -v '^ *+' conftest.er1 >conftest.err
10596 cat conftest.err >&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); } &&
10599 { ac_try='test -z "$ac_c_werror_flag"
10600 || test ! -s conftest.err'
10601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10602 (eval $ac_try) 2>&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; } &&
10606 { ac_try='test -s conftest$ac_exeext'
10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; }; then
10612 ac_cv_search_tgetent="none required"
10614 echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.$ac_ext >&5
10618 rm -f conftest.err conftest.$ac_objext \
10619 conftest$ac_exeext conftest.$ac_ext
10620 if test "$ac_cv_search_tgetent" = no; then
10621 for ac_lib in termcap tinfo curses ncurses; do
10622 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10623 cat >conftest.$ac_ext <<_ACEOF
10626 cat confdefs.h >>conftest.$ac_ext
10627 cat >>conftest.$ac_ext <<_ACEOF
10628 /* end confdefs.h. */
10630 /* Override any gcc2 internal prototype to avoid an error. */
10634 /* We use char because int might match the return type of a gcc2
10635 builtin and then its argument prototype would still apply. */
10645 rm -f conftest.$ac_objext conftest$ac_exeext
10646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10647 (eval $ac_link) 2>conftest.er1
10649 grep -v '^ *+' conftest.er1 >conftest.err
10651 cat conftest.err >&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } &&
10654 { ac_try='test -z "$ac_c_werror_flag"
10655 || test ! -s conftest.err'
10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657 (eval $ac_try) 2>&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; } &&
10661 { ac_try='test -s conftest$ac_exeext'
10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663 (eval $ac_try) 2>&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; }; then
10667 ac_cv_search_tgetent="-l$ac_lib"
10670 echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10674 rm -f conftest.err conftest.$ac_objext \
10675 conftest$ac_exeext conftest.$ac_ext
10678 LIBS=$ac_func_search_save_LIBS
10680 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10681 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10682 if test "$ac_cv_search_tgetent" != no; then
10683 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
10688 if test "$ac_cv_search_tgetent" = no; then
10689 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10690 echo "$as_me: error: no termcap library found" >&2;}
10691 { (exit 1); exit 1; }; }
10695 # Check whether --with-system-readline or --without-system-readline was given.
10696 if test "${with_system_readline+set}" = set; then
10697 withval="$with_system_readline"
10701 if test "$with_system_readline" = yes; then
10702 READLINE=-lreadline
10706 READLINE='$(READLINE_DIR)/libreadline.a'
10707 READLINE_DEPS='$(READLINE)'
10708 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10715 # Check whether --with-expat or --without-expat was given.
10716 if test "${with_expat+set}" = set; then
10717 withval="$with_expat"
10722 echo "$as_me:$LINENO: checking whether to use expat" >&5
10723 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10724 echo "$as_me:$LINENO: result: $with_expat" >&5
10725 echo "${ECHO_T}$with_expat" >&6
10727 if test "${with_expat}" = no; then
10728 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10729 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10733 if test "X$prefix" = "XNONE"; then
10734 acl_final_prefix="$ac_default_prefix"
10736 acl_final_prefix="$prefix"
10738 if test "X$exec_prefix" = "XNONE"; then
10739 acl_final_exec_prefix='${prefix}'
10741 acl_final_exec_prefix="$exec_prefix"
10743 acl_save_prefix="$prefix"
10744 prefix="$acl_final_prefix"
10745 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10746 prefix="$acl_save_prefix"
10749 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10750 if test "${with_gnu_ld+set}" = set; then
10751 withval="$with_gnu_ld"
10752 test "$withval" = no || with_gnu_ld=yes
10756 # Prepare PATH_SEPARATOR.
10757 # The user is always right.
10758 if test "${PATH_SEPARATOR+set}" != set; then
10759 echo "#! /bin/sh" >conf$$.sh
10760 echo "exit 0" >>conf$$.sh
10762 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10770 if test "$GCC" = yes; then
10771 # Check if gcc -print-prog-name=ld gives a path.
10772 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10773 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10776 # gcc leaves a trailing carriage return which upsets mingw
10777 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10779 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10782 # Accept absolute paths.
10783 [\\/]* | [A-Za-z]:[\\/]*)
10784 re_direlt='/[^/][^/]*/\.\./'
10785 # Canonicalize the path of ld
10786 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10787 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10788 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10790 test -z "$LD" && LD="$ac_prog"
10793 # If it fails, then pretend we aren't using GCC.
10797 # If it is relative, then search for the first ld in PATH.
10798 with_gnu_ld=unknown
10801 elif test "$with_gnu_ld" = yes; then
10802 echo "$as_me:$LINENO: checking for GNU ld" >&5
10803 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10805 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10806 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10808 if test "${acl_cv_path_LD+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10811 if test -z "$LD"; then
10812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10813 for ac_dir in $PATH; do
10814 test -z "$ac_dir" && ac_dir=.
10815 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10816 acl_cv_path_LD="$ac_dir/$ac_prog"
10817 # Check to see if the program is GNU ld. I'd rather use --version,
10818 # but apparently some GNU ld's only accept -v.
10819 # Break only if it was the GNU/non-GNU ld that we prefer.
10820 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10821 test "$with_gnu_ld" != no && break
10823 test "$with_gnu_ld" != yes && break
10829 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10833 LD="$acl_cv_path_LD"
10834 if test -n "$LD"; then
10835 echo "$as_me:$LINENO: result: $LD" >&5
10836 echo "${ECHO_T}$LD" >&6
10838 echo "$as_me:$LINENO: result: no" >&5
10839 echo "${ECHO_T}no" >&6
10841 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10842 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10843 { (exit 1); exit 1; }; }
10844 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10845 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10846 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
10849 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10850 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10851 acl_cv_prog_gnu_ld=yes
10853 acl_cv_prog_gnu_ld=no
10856 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10857 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10858 with_gnu_ld=$acl_cv_prog_gnu_ld
10862 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10863 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10864 if test "${acl_cv_rpath+set}" = set; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10868 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10869 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10871 rm -f ./conftest.sh
10875 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10876 echo "${ECHO_T}$acl_cv_rpath" >&6
10878 libext="$acl_cv_libext"
10879 shlibext="$acl_cv_shlibext"
10880 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10881 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10882 hardcode_direct="$acl_cv_hardcode_direct"
10883 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10884 # Check whether --enable-rpath or --disable-rpath was given.
10885 if test "${enable_rpath+set}" = set; then
10886 enableval="$enable_rpath"
10902 acl_save_prefix="$prefix"
10903 prefix="$acl_final_prefix"
10904 acl_save_exec_prefix="$exec_prefix"
10905 exec_prefix="$acl_final_exec_prefix"
10907 eval additional_includedir=\"$includedir\"
10908 eval additional_libdir=\"$libdir\"
10910 exec_prefix="$acl_save_exec_prefix"
10911 prefix="$acl_save_prefix"
10914 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10915 if test "${with_libexpat_prefix+set}" = set; then
10916 withval="$with_libexpat_prefix"
10918 if test "X$withval" = "Xno"; then
10921 if test "X$withval" = "X"; then
10923 acl_save_prefix="$prefix"
10924 prefix="$acl_final_prefix"
10925 acl_save_exec_prefix="$exec_prefix"
10926 exec_prefix="$acl_final_exec_prefix"
10928 eval additional_includedir=\"$includedir\"
10929 eval additional_libdir=\"$libdir\"
10931 exec_prefix="$acl_save_exec_prefix"
10932 prefix="$acl_save_prefix"
10935 additional_includedir="$withval/include"
10936 additional_libdir="$withval/lib"
10946 names_already_handled=
10947 names_next_round='expat '
10948 while test -n "$names_next_round"; do
10949 names_this_round="$names_next_round"
10951 for name in $names_this_round; do
10953 for n in $names_already_handled; do
10954 if test "$n" = "$name"; then
10955 already_handled=yes
10959 if test -z "$already_handled"; then
10960 names_already_handled="$names_already_handled $name"
10961 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10962 eval value=\"\$HAVE_LIB$uppername\"
10963 if test -n "$value"; then
10964 if test "$value" = yes; then
10965 eval value=\"\$LIB$uppername\"
10966 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10967 eval value=\"\$LTLIB$uppername\"
10968 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10977 if test $use_additional = yes; then
10978 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10979 found_dir="$additional_libdir"
10980 found_so="$additional_libdir/lib$name.$shlibext"
10981 if test -f "$additional_libdir/lib$name.la"; then
10982 found_la="$additional_libdir/lib$name.la"
10985 if test -f "$additional_libdir/lib$name.$libext"; then
10986 found_dir="$additional_libdir"
10987 found_a="$additional_libdir/lib$name.$libext"
10988 if test -f "$additional_libdir/lib$name.la"; then
10989 found_la="$additional_libdir/lib$name.la"
10994 if test "X$found_dir" = "X"; then
10995 for x in $LDFLAGS $LTLIBEXPAT; do
10997 acl_save_prefix="$prefix"
10998 prefix="$acl_final_prefix"
10999 acl_save_exec_prefix="$exec_prefix"
11000 exec_prefix="$acl_final_exec_prefix"
11002 exec_prefix="$acl_save_exec_prefix"
11003 prefix="$acl_save_prefix"
11007 dir=`echo "X$x" | sed -e 's/^X-L//'`
11008 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11010 found_so="$dir/lib$name.$shlibext"
11011 if test -f "$dir/lib$name.la"; then
11012 found_la="$dir/lib$name.la"
11015 if test -f "$dir/lib$name.$libext"; then
11017 found_a="$dir/lib$name.$libext"
11018 if test -f "$dir/lib$name.la"; then
11019 found_la="$dir/lib$name.la"
11025 if test "X$found_dir" != "X"; then
11030 if test "X$found_dir" != "X"; then
11031 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
11032 if test "X$found_so" != "X"; then
11033 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11034 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11037 for x in $ltrpathdirs; do
11038 if test "X$x" = "X$found_dir"; then
11043 if test -z "$haveit"; then
11044 ltrpathdirs="$ltrpathdirs $found_dir"
11046 if test "$hardcode_direct" = yes; then
11047 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11049 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11050 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11052 for x in $rpathdirs; do
11053 if test "X$x" = "X$found_dir"; then
11058 if test -z "$haveit"; then
11059 rpathdirs="$rpathdirs $found_dir"
11063 for x in $LDFLAGS $LIBEXPAT; do
11065 acl_save_prefix="$prefix"
11066 prefix="$acl_final_prefix"
11067 acl_save_exec_prefix="$exec_prefix"
11068 exec_prefix="$acl_final_exec_prefix"
11070 exec_prefix="$acl_save_exec_prefix"
11071 prefix="$acl_save_prefix"
11073 if test "X$x" = "X-L$found_dir"; then
11078 if test -z "$haveit"; then
11079 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
11081 if test "$hardcode_minus_L" != no; then
11082 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11084 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11090 if test "X$found_a" != "X"; then
11091 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
11093 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
11096 additional_includedir=
11097 case "$found_dir" in
11099 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11100 additional_includedir="$basedir/include"
11103 if test "X$additional_includedir" != "X"; then
11104 if test "X$additional_includedir" != "X/usr/include"; then
11106 if test "X$additional_includedir" = "X/usr/local/include"; then
11107 if test -n "$GCC"; then
11109 linux*) haveit=yes;;
11113 if test -z "$haveit"; then
11114 for x in $CPPFLAGS $INCEXPAT; do
11116 acl_save_prefix="$prefix"
11117 prefix="$acl_final_prefix"
11118 acl_save_exec_prefix="$exec_prefix"
11119 exec_prefix="$acl_final_exec_prefix"
11121 exec_prefix="$acl_save_exec_prefix"
11122 prefix="$acl_save_prefix"
11124 if test "X$x" = "X-I$additional_includedir"; then
11129 if test -z "$haveit"; then
11130 if test -d "$additional_includedir"; then
11131 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
11137 if test -n "$found_la"; then
11138 save_libdir="$libdir"
11139 case "$found_la" in
11140 */* | *\\*) . "$found_la" ;;
11141 *) . "./$found_la" ;;
11143 libdir="$save_libdir"
11144 for dep in $dependency_libs; do
11147 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11148 if test "X$additional_libdir" != "X/usr/lib"; then
11150 if test "X$additional_libdir" = "X/usr/local/lib"; then
11151 if test -n "$GCC"; then
11153 linux*) haveit=yes;;
11157 if test -z "$haveit"; then
11159 for x in $LDFLAGS $LIBEXPAT; do
11161 acl_save_prefix="$prefix"
11162 prefix="$acl_final_prefix"
11163 acl_save_exec_prefix="$exec_prefix"
11164 exec_prefix="$acl_final_exec_prefix"
11166 exec_prefix="$acl_save_exec_prefix"
11167 prefix="$acl_save_prefix"
11169 if test "X$x" = "X-L$additional_libdir"; then
11174 if test -z "$haveit"; then
11175 if test -d "$additional_libdir"; then
11176 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
11180 for x in $LDFLAGS $LTLIBEXPAT; do
11182 acl_save_prefix="$prefix"
11183 prefix="$acl_final_prefix"
11184 acl_save_exec_prefix="$exec_prefix"
11185 exec_prefix="$acl_final_exec_prefix"
11187 exec_prefix="$acl_save_exec_prefix"
11188 prefix="$acl_save_prefix"
11190 if test "X$x" = "X-L$additional_libdir"; then
11195 if test -z "$haveit"; then
11196 if test -d "$additional_libdir"; then
11197 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
11204 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11205 if test "$enable_rpath" != no; then
11207 for x in $rpathdirs; do
11208 if test "X$x" = "X$dir"; then
11213 if test -z "$haveit"; then
11214 rpathdirs="$rpathdirs $dir"
11217 for x in $ltrpathdirs; do
11218 if test "X$x" = "X$dir"; then
11223 if test -z "$haveit"; then
11224 ltrpathdirs="$ltrpathdirs $dir"
11229 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11232 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11235 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
11236 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
11242 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11243 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
11249 if test "X$rpathdirs" != "X"; then
11250 if test -n "$hardcode_libdir_separator"; then
11252 for found_dir in $rpathdirs; do
11253 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11255 acl_save_libdir="$libdir"
11257 eval flag=\"$hardcode_libdir_flag_spec\"
11258 libdir="$acl_save_libdir"
11259 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11261 for found_dir in $rpathdirs; do
11262 acl_save_libdir="$libdir"
11263 libdir="$found_dir"
11264 eval flag=\"$hardcode_libdir_flag_spec\"
11265 libdir="$acl_save_libdir"
11266 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11270 if test "X$ltrpathdirs" != "X"; then
11271 for found_dir in $ltrpathdirs; do
11272 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
11277 ac_save_CPPFLAGS="$CPPFLAGS"
11279 for element in $INCEXPAT; do
11281 for x in $CPPFLAGS; do
11283 acl_save_prefix="$prefix"
11284 prefix="$acl_final_prefix"
11285 acl_save_exec_prefix="$exec_prefix"
11286 exec_prefix="$acl_final_exec_prefix"
11288 exec_prefix="$acl_save_exec_prefix"
11289 prefix="$acl_save_prefix"
11291 if test "X$x" = "X$element"; then
11296 if test -z "$haveit"; then
11297 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11302 echo "$as_me:$LINENO: checking for libexpat" >&5
11303 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11304 if test "${ac_cv_libexpat+set}" = set; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11308 ac_save_LIBS="$LIBS"
11309 LIBS="$LIBS $LIBEXPAT"
11310 cat >conftest.$ac_ext <<_ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h. */
11320 XML_Parser p = XML_ParserCreate (0);
11325 rm -f conftest.$ac_objext conftest$ac_exeext
11326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11327 (eval $ac_link) 2>conftest.er1
11329 grep -v '^ *+' conftest.er1 >conftest.err
11331 cat conftest.err >&5
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); } &&
11334 { ac_try='test -z "$ac_c_werror_flag"
11335 || test ! -s conftest.err'
11336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; } &&
11341 { ac_try='test -s conftest$ac_exeext'
11342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343 (eval $ac_try) 2>&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; }; then
11349 echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11354 rm -f conftest.err conftest.$ac_objext \
11355 conftest$ac_exeext conftest.$ac_ext
11356 LIBS="$ac_save_LIBS"
11359 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11360 echo "${ECHO_T}$ac_cv_libexpat" >&6
11361 if test "$ac_cv_libexpat" = yes; then
11364 cat >>confdefs.h <<\_ACEOF
11365 #define HAVE_LIBEXPAT 1
11368 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11369 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11370 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11371 echo "${ECHO_T}$LIBEXPAT" >&6
11374 CPPFLAGS="$ac_save_CPPFLAGS"
11384 if test "$HAVE_LIBEXPAT" != yes; then
11385 if test "$with_expat" = yes; then
11386 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11387 echo "$as_me: error: expat is missing or unusable" >&2;}
11388 { (exit 1); exit 1; }; }
11390 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11391 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11395 LIBS="$LIBS $LIBEXPAT"
11397 for ac_func in XML_StopParser
11399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11400 echo "$as_me:$LINENO: checking for $ac_func" >&5
11401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11402 if eval "test \"\${$as_ac_var+set}\" = set"; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11405 cat >conftest.$ac_ext <<_ACEOF
11408 cat confdefs.h >>conftest.$ac_ext
11409 cat >>conftest.$ac_ext <<_ACEOF
11410 /* end confdefs.h. */
11411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11413 #define $ac_func innocuous_$ac_func
11415 /* System header to define __stub macros and hopefully few prototypes,
11416 which can conflict with char $ac_func (); below.
11417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11418 <limits.h> exists even on freestanding compilers. */
11421 # include <limits.h>
11423 # include <assert.h>
11428 /* Override any gcc2 internal prototype to avoid an error. */
11433 /* We use char because int might match the return type of a gcc2
11434 builtin and then its argument prototype would still apply. */
11436 /* The GNU C library defines this for functions which it implements
11437 to always fail with ENOSYS. Some functions are actually named
11438 something starting with __ and the normal name is an alias. */
11439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11442 char (*f) () = $ac_func;
11451 return f != $ac_func;
11456 rm -f conftest.$ac_objext conftest$ac_exeext
11457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11458 (eval $ac_link) 2>conftest.er1
11460 grep -v '^ *+' conftest.er1 >conftest.err
11462 cat conftest.err >&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
11465 { ac_try='test -z "$ac_c_werror_flag"
11466 || test ! -s conftest.err'
11467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11468 (eval $ac_try) 2>&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); }; } &&
11472 { ac_try='test -s conftest$ac_exeext'
11473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474 (eval $ac_try) 2>&5
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); }; }; then
11478 eval "$as_ac_var=yes"
11480 echo "$as_me: failed program was:" >&5
11481 sed 's/^/| /' conftest.$ac_ext >&5
11483 eval "$as_ac_var=no"
11485 rm -f conftest.err conftest.$ac_objext \
11486 conftest$ac_exeext conftest.$ac_ext
11488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11489 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11490 if test `eval echo '${'$as_ac_var'}'` = yes; then
11491 cat >>confdefs.h <<_ACEOF
11492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11505 # Check whether --with-python or --without-python was given.
11506 if test "${with_python+set}" = set; then
11507 withval="$with_python"
11512 echo "$as_me:$LINENO: checking whether to use python" >&5
11513 echo $ECHO_N "checking whether to use python... $ECHO_C" >&6
11514 echo "$as_me:$LINENO: result: $with_python" >&5
11515 echo "${ECHO_T}$with_python" >&6
11517 if test "${with_python}" = no; then
11518 { echo "$as_me:$LINENO: WARNING: python support disabled; some features may be unavailable." >&5
11519 echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11522 case "${with_python}" in
11524 # Leave as empty, use defaults.
11529 python_includes="-I${with_python}/include"
11530 python_libs="-L${with_python}/lib"
11533 { { echo "$as_me:$LINENO: error: invalid value for --with-python" >&5
11534 echo "$as_me: error: invalid value for --with-python" >&2;}
11535 { (exit 1); exit 1; }; }
11539 save_CPPFLAGS=$CPPFLAGS
11540 CPPFLAGS="$CPPFLAGS ${python_includes}"
11542 LIBS="$LIBS ${python_libs}"
11544 if test "${have_libpython}" = no; then
11549 HAVE_LIBPYTHON2_6=no
11550 echo "$as_me:$LINENO: checking for ${version}" >&5
11551 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11553 LIBS="$LIBS -l${version}"
11554 cat >conftest.$ac_ext <<_ACEOF
11557 cat confdefs.h >>conftest.$ac_ext
11558 cat >>conftest.$ac_ext <<_ACEOF
11559 /* end confdefs.h. */
11560 #include "${version}/Python.h"
11569 rm -f conftest.$ac_objext conftest$ac_exeext
11570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11571 (eval $ac_link) 2>conftest.er1
11573 grep -v '^ *+' conftest.er1 >conftest.err
11575 cat conftest.err >&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } &&
11578 { ac_try='test -z "$ac_c_werror_flag"
11579 || test ! -s conftest.err'
11580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581 (eval $ac_try) 2>&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); }; } &&
11585 { ac_try='test -s conftest$ac_exeext'
11586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11587 (eval $ac_try) 2>&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); }; }; then
11591 HAVE_LIBPYTHON2_6=yes
11594 echo "$as_me: failed program was:" >&5
11595 sed 's/^/| /' conftest.$ac_ext >&5
11599 rm -f conftest.err conftest.$ac_objext \
11600 conftest$ac_exeext conftest.$ac_ext
11601 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_6" >&5
11602 echo "${ECHO_T}$HAVE_LIBPYTHON2_6" >&6
11604 if test "${HAVE_LIBPYTHON2_6}" = yes; then
11606 cat >>confdefs.h <<\_ACEOF
11607 #define HAVE_LIBPYTHON2_6 1
11612 if test ${have_libpython} = no; then
11617 HAVE_LIBPYTHON2_5=no
11618 echo "$as_me:$LINENO: checking for ${version}" >&5
11619 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11621 LIBS="$LIBS -l${version}"
11622 cat >conftest.$ac_ext <<_ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h. */
11628 #include "${version}/Python.h"
11637 rm -f conftest.$ac_objext conftest$ac_exeext
11638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11639 (eval $ac_link) 2>conftest.er1
11641 grep -v '^ *+' conftest.er1 >conftest.err
11643 cat conftest.err >&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); } &&
11646 { ac_try='test -z "$ac_c_werror_flag"
11647 || test ! -s conftest.err'
11648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11649 (eval $ac_try) 2>&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; } &&
11653 { ac_try='test -s conftest$ac_exeext'
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; }; then
11659 HAVE_LIBPYTHON2_5=yes
11662 echo "$as_me: failed program was:" >&5
11663 sed 's/^/| /' conftest.$ac_ext >&5
11667 rm -f conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext
11669 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_5" >&5
11670 echo "${ECHO_T}$HAVE_LIBPYTHON2_5" >&6
11672 if test "${HAVE_LIBPYTHON2_5}" = yes; then
11674 cat >>confdefs.h <<\_ACEOF
11675 #define HAVE_LIBPYTHON2_5 1
11680 if test ${have_libpython} = no; then
11685 HAVE_LIBPYTHON2_4=no
11686 echo "$as_me:$LINENO: checking for ${version}" >&5
11687 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11689 LIBS="$LIBS -l${version}"
11690 cat >conftest.$ac_ext <<_ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h. */
11696 #include "${version}/Python.h"
11705 rm -f conftest.$ac_objext conftest$ac_exeext
11706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11707 (eval $ac_link) 2>conftest.er1
11709 grep -v '^ *+' conftest.er1 >conftest.err
11711 cat conftest.err >&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); } &&
11714 { ac_try='test -z "$ac_c_werror_flag"
11715 || test ! -s conftest.err'
11716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717 (eval $ac_try) 2>&5
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; } &&
11721 { ac_try='test -s conftest$ac_exeext'
11722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11723 (eval $ac_try) 2>&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; }; then
11727 HAVE_LIBPYTHON2_4=yes
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11735 rm -f conftest.err conftest.$ac_objext \
11736 conftest$ac_exeext conftest.$ac_ext
11737 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_4" >&5
11738 echo "${ECHO_T}$HAVE_LIBPYTHON2_4" >&6
11740 if test "${HAVE_LIBPYTHON2_4}" = yes; then
11742 cat >>confdefs.h <<\_ACEOF
11743 #define HAVE_LIBPYTHON2_4 1
11748 if test ${have_libpython} = no; then
11749 case "${with_python}" in
11751 { { echo "$as_me:$LINENO: error: python is missing or unusable" >&5
11752 echo "$as_me: error: python is missing or unusable" >&2;}
11753 { (exit 1); exit 1; }; }
11756 { echo "$as_me:$LINENO: WARNING: python is missing or unusable; some features may be unavailable." >&5
11757 echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11760 { { echo "$as_me:$LINENO: error: no usable python found at ${with_python}" >&5
11761 echo "$as_me: error: no usable python found at ${with_python}" >&2;}
11762 { (exit 1); exit 1; }; }
11765 CPPFLAGS=$save_CPPFLAGS
11770 if test "${have_libpython}" = yes; then
11772 cat >>confdefs.h <<\_ACEOF
11773 #define HAVE_PYTHON 1
11776 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11777 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11778 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11779 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11781 # Flags needed to compile Python code (taken from python-config --cflags).
11782 # We cannot call python-config directly because it will output whatever was
11783 # used when compiling the Python interpreter itself, including flags which
11784 # would make the python-related objects be compiled differently from the
11785 # rest of GDB (e.g., -O2 and -fPIC).
11786 if test "${GCC}" = yes; then
11787 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
11790 if test "x${tentative_python_cflags}" != x; then
11791 echo "$as_me:$LINENO: checking compiler flags for python code" >&5
11792 echo $ECHO_N "checking compiler flags for python code... $ECHO_C" >&6
11793 for flag in ${tentative_python_cflags}; do
11794 # Check that the compiler accepts it
11795 saved_CFLAGS="$CFLAGS"
11796 CFLAGS="$CFLAGS $flag"
11797 cat >conftest.$ac_ext <<_ACEOF
11800 cat confdefs.h >>conftest.$ac_ext
11801 cat >>conftest.$ac_ext <<_ACEOF
11802 /* end confdefs.h. */
11812 rm -f conftest.$ac_objext
11813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11814 (eval $ac_compile) 2>conftest.er1
11816 grep -v '^ *+' conftest.er1 >conftest.err
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } &&
11821 { ac_try='test -z "$ac_c_werror_flag"
11822 || test ! -s conftest.err'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; } &&
11828 { ac_try='test -s conftest.$ac_objext'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11834 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11841 CFLAGS="$saved_CFLAGS"
11843 echo "$as_me:$LINENO: result: ${PYTHON_CFLAGS}" >&5
11844 echo "${ECHO_T}${PYTHON_CFLAGS}" >&6
11847 # Even if Python support is not compiled in, we need to have these files
11848 # included in order to recognize the GDB command "python".
11849 CONFIG_OBS="$CONFIG_OBS python.o python-value.o"
11850 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/python-value.c"
11854 # ------------------------- #
11855 # Checks for header files. #
11856 # ------------------------- #
11863 ac_header_dirent=no
11864 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11865 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11866 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11867 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11871 cat >conftest.$ac_ext <<_ACEOF
11874 cat confdefs.h >>conftest.$ac_ext
11875 cat >>conftest.$ac_ext <<_ACEOF
11876 /* end confdefs.h. */
11877 #include <sys/types.h>
11889 rm -f conftest.$ac_objext
11890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11891 (eval $ac_compile) 2>conftest.er1
11893 grep -v '^ *+' conftest.er1 >conftest.err
11895 cat conftest.err >&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } &&
11898 { ac_try='test -z "$ac_c_werror_flag"
11899 || test ! -s conftest.err'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; } &&
11905 { ac_try='test -s conftest.$ac_objext'
11906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907 (eval $ac_try) 2>&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; }; then
11911 eval "$as_ac_Header=yes"
11913 echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11916 eval "$as_ac_Header=no"
11918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11923 cat >>confdefs.h <<_ACEOF
11924 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11927 ac_header_dirent=$ac_hdr; break
11931 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11932 if test $ac_header_dirent = dirent.h; then
11933 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11934 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11935 if test "${ac_cv_search_opendir+set}" = set; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11938 ac_func_search_save_LIBS=$LIBS
11939 ac_cv_search_opendir=no
11940 cat >conftest.$ac_ext <<_ACEOF
11943 cat confdefs.h >>conftest.$ac_ext
11944 cat >>conftest.$ac_ext <<_ACEOF
11945 /* end confdefs.h. */
11947 /* Override any gcc2 internal prototype to avoid an error. */
11951 /* We use char because int might match the return type of a gcc2
11952 builtin and then its argument prototype would still apply. */
11962 rm -f conftest.$ac_objext conftest$ac_exeext
11963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11964 (eval $ac_link) 2>conftest.er1
11966 grep -v '^ *+' conftest.er1 >conftest.err
11968 cat conftest.err >&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); } &&
11971 { ac_try='test -z "$ac_c_werror_flag"
11972 || test ! -s conftest.err'
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; } &&
11978 { ac_try='test -s conftest$ac_exeext'
11979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980 (eval $ac_try) 2>&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; }; then
11984 ac_cv_search_opendir="none required"
11986 echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.$ac_ext >&5
11990 rm -f conftest.err conftest.$ac_objext \
11991 conftest$ac_exeext conftest.$ac_ext
11992 if test "$ac_cv_search_opendir" = no; then
11993 for ac_lib in dir; do
11994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11995 cat >conftest.$ac_ext <<_ACEOF
11998 cat confdefs.h >>conftest.$ac_ext
11999 cat >>conftest.$ac_ext <<_ACEOF
12000 /* end confdefs.h. */
12002 /* Override any gcc2 internal prototype to avoid an error. */
12006 /* We use char because int might match the return type of a gcc2
12007 builtin and then its argument prototype would still apply. */
12017 rm -f conftest.$ac_objext conftest$ac_exeext
12018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12019 (eval $ac_link) 2>conftest.er1
12021 grep -v '^ *+' conftest.er1 >conftest.err
12023 cat conftest.err >&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } &&
12026 { ac_try='test -z "$ac_c_werror_flag"
12027 || test ! -s conftest.err'
12028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029 (eval $ac_try) 2>&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }; } &&
12033 { ac_try='test -s conftest$ac_exeext'
12034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; }; then
12039 ac_cv_search_opendir="-l$ac_lib"
12042 echo "$as_me: failed program was:" >&5
12043 sed 's/^/| /' conftest.$ac_ext >&5
12046 rm -f conftest.err conftest.$ac_objext \
12047 conftest$ac_exeext conftest.$ac_ext
12050 LIBS=$ac_func_search_save_LIBS
12052 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12053 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12054 if test "$ac_cv_search_opendir" != no; then
12055 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12060 echo "$as_me:$LINENO: checking for library containing opendir" >&5
12061 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
12062 if test "${ac_cv_search_opendir+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12065 ac_func_search_save_LIBS=$LIBS
12066 ac_cv_search_opendir=no
12067 cat >conftest.$ac_ext <<_ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h. */
12074 /* Override any gcc2 internal prototype to avoid an error. */
12078 /* We use char because int might match the return type of a gcc2
12079 builtin and then its argument prototype would still apply. */
12089 rm -f conftest.$ac_objext conftest$ac_exeext
12090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12091 (eval $ac_link) 2>conftest.er1
12093 grep -v '^ *+' conftest.er1 >conftest.err
12095 cat conftest.err >&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } &&
12098 { ac_try='test -z "$ac_c_werror_flag"
12099 || test ! -s conftest.err'
12100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12101 (eval $ac_try) 2>&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; } &&
12105 { ac_try='test -s conftest$ac_exeext'
12106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107 (eval $ac_try) 2>&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; }; then
12111 ac_cv_search_opendir="none required"
12113 echo "$as_me: failed program was:" >&5
12114 sed 's/^/| /' conftest.$ac_ext >&5
12117 rm -f conftest.err conftest.$ac_objext \
12118 conftest$ac_exeext conftest.$ac_ext
12119 if test "$ac_cv_search_opendir" = no; then
12120 for ac_lib in x; do
12121 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12122 cat >conftest.$ac_ext <<_ACEOF
12125 cat confdefs.h >>conftest.$ac_ext
12126 cat >>conftest.$ac_ext <<_ACEOF
12127 /* end confdefs.h. */
12129 /* Override any gcc2 internal prototype to avoid an error. */
12133 /* We use char because int might match the return type of a gcc2
12134 builtin and then its argument prototype would still apply. */
12144 rm -f conftest.$ac_objext conftest$ac_exeext
12145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12146 (eval $ac_link) 2>conftest.er1
12148 grep -v '^ *+' conftest.er1 >conftest.err
12150 cat conftest.err >&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
12153 { ac_try='test -z "$ac_c_werror_flag"
12154 || test ! -s conftest.err'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; } &&
12160 { ac_try='test -s conftest$ac_exeext'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 ac_cv_search_opendir="-l$ac_lib"
12169 echo "$as_me: failed program was:" >&5
12170 sed 's/^/| /' conftest.$ac_ext >&5
12173 rm -f conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
12177 LIBS=$ac_func_search_save_LIBS
12179 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12180 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12181 if test "$ac_cv_search_opendir" != no; then
12182 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12188 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12189 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12190 if test "${ac_cv_header_stat_broken+set}" = set; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12193 cat >conftest.$ac_ext <<_ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h. */
12199 #include <sys/types.h>
12200 #include <sys/stat.h>
12202 #if defined(S_ISBLK) && defined(S_IFDIR)
12203 # if S_ISBLK (S_IFDIR)
12208 #if defined(S_ISBLK) && defined(S_IFCHR)
12209 # if S_ISBLK (S_IFCHR)
12214 #if defined(S_ISLNK) && defined(S_IFREG)
12215 # if S_ISLNK (S_IFREG)
12220 #if defined(S_ISSOCK) && defined(S_IFREG)
12221 # if S_ISSOCK (S_IFREG)
12227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12228 $EGREP "You lose" >/dev/null 2>&1; then
12229 ac_cv_header_stat_broken=yes
12231 ac_cv_header_stat_broken=no
12236 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12237 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12238 if test $ac_cv_header_stat_broken = yes; then
12240 cat >>confdefs.h <<\_ACEOF
12241 #define STAT_MACROS_BROKEN 1
12246 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12247 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12248 if test "${ac_cv_header_stdc+set}" = set; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12251 cat >conftest.$ac_ext <<_ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12257 #include <stdlib.h>
12258 #include <stdarg.h>
12259 #include <string.h>
12270 rm -f conftest.$ac_objext
12271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12272 (eval $ac_compile) 2>conftest.er1
12274 grep -v '^ *+' conftest.er1 >conftest.err
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } &&
12279 { ac_try='test -z "$ac_c_werror_flag"
12280 || test ! -s conftest.err'
12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282 (eval $ac_try) 2>&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; } &&
12286 { ac_try='test -s conftest.$ac_objext'
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; }; then
12292 ac_cv_header_stdc=yes
12294 echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12297 ac_cv_header_stdc=no
12299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12301 if test $ac_cv_header_stdc = yes; then
12302 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12303 cat >conftest.$ac_ext <<_ACEOF
12306 cat confdefs.h >>conftest.$ac_ext
12307 cat >>conftest.$ac_ext <<_ACEOF
12308 /* end confdefs.h. */
12309 #include <string.h>
12312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12313 $EGREP "memchr" >/dev/null 2>&1; then
12316 ac_cv_header_stdc=no
12322 if test $ac_cv_header_stdc = yes; then
12323 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12324 cat >conftest.$ac_ext <<_ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12330 #include <stdlib.h>
12333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12334 $EGREP "free" >/dev/null 2>&1; then
12337 ac_cv_header_stdc=no
12343 if test $ac_cv_header_stdc = yes; then
12344 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12345 if test "$cross_compiling" = yes; then
12348 cat >conftest.$ac_ext <<_ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12355 #if ((' ' & 0x0FF) == 0x020)
12356 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12357 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12359 # define ISLOWER(c) \
12360 (('a' <= (c) && (c) <= 'i') \
12361 || ('j' <= (c) && (c) <= 'r') \
12362 || ('s' <= (c) && (c) <= 'z'))
12363 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12366 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12371 for (i = 0; i < 256; i++)
12372 if (XOR (islower (i), ISLOWER (i))
12373 || toupper (i) != TOUPPER (i))
12378 rm -f conftest$ac_exeext
12379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12380 (eval $ac_link) 2>&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12385 (eval $ac_try) 2>&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; }; then
12391 echo "$as_me: program exited with status $ac_status" >&5
12392 echo "$as_me: failed program was:" >&5
12393 sed 's/^/| /' conftest.$ac_ext >&5
12395 ( exit $ac_status )
12396 ac_cv_header_stdc=no
12398 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12402 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12403 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12404 if test $ac_cv_header_stdc = yes; then
12406 cat >>confdefs.h <<\_ACEOF
12407 #define STDC_HEADERS 1
12412 # elf_hp.h is for HP/UX 64-bit shared library support.
12413 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
12414 # unconditionally, so what's the point in checking these?
12452 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
12453 thread_db.h gnu/libc-version.h signal.h stddef.h \
12454 stdlib.h string.h memory.h strings.h sys/fault.h \
12455 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
12456 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
12457 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
12458 sys/types.h sys/wait.h wait.h termios.h termio.h \
12459 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
12461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12463 echo "$as_me:$LINENO: checking for $ac_header" >&5
12464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12471 # Is the header compilable?
12472 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12474 cat >conftest.$ac_ext <<_ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h. */
12480 $ac_includes_default
12481 #include <$ac_header>
12483 rm -f conftest.$ac_objext
12484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>conftest.er1
12487 grep -v '^ *+' conftest.er1 >conftest.err
12489 cat conftest.err >&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } &&
12492 { ac_try='test -z "$ac_c_werror_flag"
12493 || test ! -s conftest.err'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; } &&
12499 { ac_try='test -s conftest.$ac_objext'
12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; }; then
12505 ac_header_compiler=yes
12507 echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12510 ac_header_compiler=no
12512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12514 echo "${ECHO_T}$ac_header_compiler" >&6
12516 # Is the header present?
12517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12519 cat >conftest.$ac_ext <<_ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h. */
12525 #include <$ac_header>
12527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12530 grep -v '^ *+' conftest.er1 >conftest.err
12532 cat conftest.err >&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } >/dev/null; then
12535 if test -s conftest.err; then
12536 ac_cpp_err=$ac_c_preproc_warn_flag
12537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12544 if test -z "$ac_cpp_err"; then
12545 ac_header_preproc=yes
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12550 ac_header_preproc=no
12552 rm -f conftest.err conftest.$ac_ext
12553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12554 echo "${ECHO_T}$ac_header_preproc" >&6
12556 # So? What about this header?
12557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12563 ac_header_preproc=yes
12566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12573 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12580 ## ------------------------------------------ ##
12581 ## Report this to the AC_PACKAGE_NAME lists. ##
12582 ## ------------------------------------------ ##
12585 sed "s/^/$as_me: WARNING: /" >&2
12588 echo "$as_me:$LINENO: checking for $ac_header" >&5
12589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 eval "$as_ac_Header=\$ac_header_preproc"
12595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12600 cat >>confdefs.h <<_ACEOF
12601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12609 for ac_header in link.h
12611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12612 echo "$as_me:$LINENO: checking for $ac_header" >&5
12613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12615 echo $ECHO_N "(cached) $ECHO_C" >&6
12617 cat >conftest.$ac_ext <<_ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12623 #if HAVE_SYS_TYPES_H
12624 # include <sys/types.h>
12627 # include <nlist.h>
12631 #include <$ac_header>
12633 rm -f conftest.$ac_objext
12634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12635 (eval $ac_compile) 2>conftest.er1
12637 grep -v '^ *+' conftest.er1 >conftest.err
12639 cat conftest.err >&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } &&
12642 { ac_try='test -z "$ac_c_werror_flag"
12643 || test ! -s conftest.err'
12644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12645 (eval $ac_try) 2>&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; } &&
12649 { ac_try='test -s conftest.$ac_objext'
12650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651 (eval $ac_try) 2>&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; }; then
12655 eval "$as_ac_Header=yes"
12657 echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12660 eval "$as_ac_Header=no"
12662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12667 cat >>confdefs.h <<_ACEOF
12668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12676 for ac_header in sys/proc.h
12678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12679 echo "$as_me:$LINENO: checking for $ac_header" >&5
12680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 cat >conftest.$ac_ext <<_ACEOF
12687 cat confdefs.h >>conftest.$ac_ext
12688 cat >>conftest.$ac_ext <<_ACEOF
12689 /* end confdefs.h. */
12690 #if HAVE_SYS_PARAM_H
12691 # include <sys/param.h>
12695 #include <$ac_header>
12697 rm -f conftest.$ac_objext
12698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12699 (eval $ac_compile) 2>conftest.er1
12701 grep -v '^ *+' conftest.er1 >conftest.err
12703 cat conftest.err >&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } &&
12706 { ac_try='test -z "$ac_c_werror_flag"
12707 || test ! -s conftest.err'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; } &&
12713 { ac_try='test -s conftest.$ac_objext'
12714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715 (eval $ac_try) 2>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; }; then
12719 eval "$as_ac_Header=yes"
12721 echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12724 eval "$as_ac_Header=no"
12726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12731 cat >>confdefs.h <<_ACEOF
12732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12740 for ac_header in sys/user.h
12742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12743 echo "$as_me:$LINENO: checking for $ac_header" >&5
12744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12748 cat >conftest.$ac_ext <<_ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h. */
12754 #if HAVE_SYS_PARAM_H
12755 # include <sys/param.h>
12759 #include <$ac_header>
12761 rm -f conftest.$ac_objext
12762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12763 (eval $ac_compile) 2>conftest.er1
12765 grep -v '^ *+' conftest.er1 >conftest.err
12767 cat conftest.err >&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } &&
12770 { ac_try='test -z "$ac_c_werror_flag"
12771 || test ! -s conftest.err'
12772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773 (eval $ac_try) 2>&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; } &&
12777 { ac_try='test -s conftest.$ac_objext'
12778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12779 (eval $ac_try) 2>&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; }; then
12783 eval "$as_ac_Header=yes"
12785 echo "$as_me: failed program was:" >&5
12786 sed 's/^/| /' conftest.$ac_ext >&5
12788 eval "$as_ac_Header=no"
12790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12795 cat >>confdefs.h <<_ACEOF
12796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12804 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12805 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12806 # think that we don't have <curses.h> if we're using GCC.
12809 if test "$GCC" = yes; then
12811 cat >>confdefs.h <<\_ACEOF
12812 #define _MSE_INT_H 1
12822 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
12824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12826 echo "$as_me:$LINENO: checking for $ac_header" >&5
12827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12829 echo $ECHO_N "(cached) $ECHO_C" >&6
12831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12834 # Is the header compilable?
12835 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12836 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12837 cat >conftest.$ac_ext <<_ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12843 $ac_includes_default
12844 #include <$ac_header>
12846 rm -f conftest.$ac_objext
12847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12848 (eval $ac_compile) 2>conftest.er1
12850 grep -v '^ *+' conftest.er1 >conftest.err
12852 cat conftest.err >&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } &&
12855 { ac_try='test -z "$ac_c_werror_flag"
12856 || test ! -s conftest.err'
12857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858 (eval $ac_try) 2>&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; } &&
12862 { ac_try='test -s conftest.$ac_objext'
12863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12864 (eval $ac_try) 2>&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); }; }; then
12868 ac_header_compiler=yes
12870 echo "$as_me: failed program was:" >&5
12871 sed 's/^/| /' conftest.$ac_ext >&5
12873 ac_header_compiler=no
12875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12877 echo "${ECHO_T}$ac_header_compiler" >&6
12879 # Is the header present?
12880 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12882 cat >conftest.$ac_ext <<_ACEOF
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h. */
12888 #include <$ac_header>
12890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12893 grep -v '^ *+' conftest.er1 >conftest.err
12895 cat conftest.err >&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } >/dev/null; then
12898 if test -s conftest.err; then
12899 ac_cpp_err=$ac_c_preproc_warn_flag
12900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12907 if test -z "$ac_cpp_err"; then
12908 ac_header_preproc=yes
12910 echo "$as_me: failed program was:" >&5
12911 sed 's/^/| /' conftest.$ac_ext >&5
12913 ac_header_preproc=no
12915 rm -f conftest.err conftest.$ac_ext
12916 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12917 echo "${ECHO_T}$ac_header_preproc" >&6
12919 # So? What about this header?
12920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12925 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12926 ac_header_preproc=yes
12929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12930 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12932 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12933 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12934 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12935 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12936 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12939 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12940 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12943 ## ------------------------------------------ ##
12944 ## Report this to the AC_PACKAGE_NAME lists. ##
12945 ## ------------------------------------------ ##
12948 sed "s/^/$as_me: WARNING: /" >&2
12951 echo "$as_me:$LINENO: checking for $ac_header" >&5
12952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12956 eval "$as_ac_Header=\$ac_header_preproc"
12958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12963 cat >>confdefs.h <<_ACEOF
12964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12972 for ac_header in term.h
12974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12975 echo "$as_me:$LINENO: checking for $ac_header" >&5
12976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12978 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 cat >conftest.$ac_ext <<_ACEOF
12983 cat confdefs.h >>conftest.$ac_ext
12984 cat >>conftest.$ac_ext <<_ACEOF
12985 /* end confdefs.h. */
12987 # include <curses.h>
12991 #include <$ac_header>
12993 rm -f conftest.$ac_objext
12994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12995 (eval $ac_compile) 2>conftest.er1
12997 grep -v '^ *+' conftest.er1 >conftest.err
12999 cat conftest.err >&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } &&
13002 { ac_try='test -z "$ac_c_werror_flag"
13003 || test ! -s conftest.err'
13004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005 (eval $ac_try) 2>&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; } &&
13009 { ac_try='test -s conftest.$ac_objext'
13010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13011 (eval $ac_try) 2>&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; }; then
13015 eval "$as_ac_Header=yes"
13017 echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13020 eval "$as_ac_Header=no"
13022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13027 cat >>confdefs.h <<_ACEOF
13028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13036 # ------------------------- #
13037 # Checks for declarations. #
13038 # ------------------------- #
13040 echo "$as_me:$LINENO: checking whether free is declared" >&5
13041 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
13042 if test "${ac_cv_have_decl_free+set}" = set; then
13043 echo $ECHO_N "(cached) $ECHO_C" >&6
13045 cat >conftest.$ac_ext <<_ACEOF
13048 cat confdefs.h >>conftest.$ac_ext
13049 cat >>conftest.$ac_ext <<_ACEOF
13050 /* end confdefs.h. */
13051 $ac_includes_default
13056 char *p = (char *) free;
13063 rm -f conftest.$ac_objext
13064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13065 (eval $ac_compile) 2>conftest.er1
13067 grep -v '^ *+' conftest.er1 >conftest.err
13069 cat conftest.err >&5
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); } &&
13072 { ac_try='test -z "$ac_c_werror_flag"
13073 || test ! -s conftest.err'
13074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13075 (eval $ac_try) 2>&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; } &&
13079 { ac_try='test -s conftest.$ac_objext'
13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081 (eval $ac_try) 2>&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; }; then
13085 ac_cv_have_decl_free=yes
13087 echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13090 ac_cv_have_decl_free=no
13092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13094 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
13095 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
13096 if test $ac_cv_have_decl_free = yes; then
13098 cat >>confdefs.h <<_ACEOF
13099 #define HAVE_DECL_FREE 1
13104 cat >>confdefs.h <<_ACEOF
13105 #define HAVE_DECL_FREE 0
13110 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13111 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13112 if test "${ac_cv_have_decl_malloc+set}" = set; then
13113 echo $ECHO_N "(cached) $ECHO_C" >&6
13115 cat >conftest.$ac_ext <<_ACEOF
13118 cat confdefs.h >>conftest.$ac_ext
13119 cat >>conftest.$ac_ext <<_ACEOF
13120 /* end confdefs.h. */
13121 $ac_includes_default
13126 char *p = (char *) malloc;
13133 rm -f conftest.$ac_objext
13134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13135 (eval $ac_compile) 2>conftest.er1
13137 grep -v '^ *+' conftest.er1 >conftest.err
13139 cat conftest.err >&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } &&
13142 { ac_try='test -z "$ac_c_werror_flag"
13143 || test ! -s conftest.err'
13144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13145 (eval $ac_try) 2>&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); }; } &&
13149 { ac_try='test -s conftest.$ac_objext'
13150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13151 (eval $ac_try) 2>&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; }; then
13155 ac_cv_have_decl_malloc=yes
13157 echo "$as_me: failed program was:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13160 ac_cv_have_decl_malloc=no
13162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13164 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13165 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13166 if test $ac_cv_have_decl_malloc = yes; then
13168 cat >>confdefs.h <<_ACEOF
13169 #define HAVE_DECL_MALLOC 1
13174 cat >>confdefs.h <<_ACEOF
13175 #define HAVE_DECL_MALLOC 0
13180 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13181 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13182 if test "${ac_cv_have_decl_realloc+set}" = set; then
13183 echo $ECHO_N "(cached) $ECHO_C" >&6
13185 cat >conftest.$ac_ext <<_ACEOF
13188 cat confdefs.h >>conftest.$ac_ext
13189 cat >>conftest.$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13191 $ac_includes_default
13196 char *p = (char *) realloc;
13203 rm -f conftest.$ac_objext
13204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13205 (eval $ac_compile) 2>conftest.er1
13207 grep -v '^ *+' conftest.er1 >conftest.err
13209 cat conftest.err >&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } &&
13212 { ac_try='test -z "$ac_c_werror_flag"
13213 || test ! -s conftest.err'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; } &&
13219 { ac_try='test -s conftest.$ac_objext'
13220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13221 (eval $ac_try) 2>&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); }; }; then
13225 ac_cv_have_decl_realloc=yes
13227 echo "$as_me: failed program was:" >&5
13228 sed 's/^/| /' conftest.$ac_ext >&5
13230 ac_cv_have_decl_realloc=no
13232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13234 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13235 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13236 if test $ac_cv_have_decl_realloc = yes; then
13238 cat >>confdefs.h <<_ACEOF
13239 #define HAVE_DECL_REALLOC 1
13244 cat >>confdefs.h <<_ACEOF
13245 #define HAVE_DECL_REALLOC 0
13250 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13251 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13252 if test "${ac_cv_have_decl_strerror+set}" = set; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13255 cat >conftest.$ac_ext <<_ACEOF
13258 cat confdefs.h >>conftest.$ac_ext
13259 cat >>conftest.$ac_ext <<_ACEOF
13260 /* end confdefs.h. */
13261 $ac_includes_default
13266 char *p = (char *) strerror;
13273 rm -f conftest.$ac_objext
13274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13275 (eval $ac_compile) 2>conftest.er1
13277 grep -v '^ *+' conftest.er1 >conftest.err
13279 cat conftest.err >&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } &&
13282 { ac_try='test -z "$ac_c_werror_flag"
13283 || test ! -s conftest.err'
13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; } &&
13289 { ac_try='test -s conftest.$ac_objext'
13290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291 (eval $ac_try) 2>&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); }; }; then
13295 ac_cv_have_decl_strerror=yes
13297 echo "$as_me: failed program was:" >&5
13298 sed 's/^/| /' conftest.$ac_ext >&5
13300 ac_cv_have_decl_strerror=no
13302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13304 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13305 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13306 if test $ac_cv_have_decl_strerror = yes; then
13308 cat >>confdefs.h <<_ACEOF
13309 #define HAVE_DECL_STRERROR 1
13314 cat >>confdefs.h <<_ACEOF
13315 #define HAVE_DECL_STRERROR 0
13320 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13321 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13322 if test "${ac_cv_have_decl_strstr+set}" = set; then
13323 echo $ECHO_N "(cached) $ECHO_C" >&6
13325 cat >conftest.$ac_ext <<_ACEOF
13328 cat confdefs.h >>conftest.$ac_ext
13329 cat >>conftest.$ac_ext <<_ACEOF
13330 /* end confdefs.h. */
13331 $ac_includes_default
13336 char *p = (char *) strstr;
13343 rm -f conftest.$ac_objext
13344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13345 (eval $ac_compile) 2>conftest.er1
13347 grep -v '^ *+' conftest.er1 >conftest.err
13349 cat conftest.err >&5
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); } &&
13352 { ac_try='test -z "$ac_c_werror_flag"
13353 || test ! -s conftest.err'
13354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13355 (eval $ac_try) 2>&5
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; } &&
13359 { ac_try='test -s conftest.$ac_objext'
13360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13361 (eval $ac_try) 2>&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }; }; then
13365 ac_cv_have_decl_strstr=yes
13367 echo "$as_me: failed program was:" >&5
13368 sed 's/^/| /' conftest.$ac_ext >&5
13370 ac_cv_have_decl_strstr=no
13372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13374 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13375 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13376 if test $ac_cv_have_decl_strstr = yes; then
13378 cat >>confdefs.h <<_ACEOF
13379 #define HAVE_DECL_STRSTR 1
13384 cat >>confdefs.h <<_ACEOF
13385 #define HAVE_DECL_STRSTR 0
13390 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13391 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13392 if test "${ac_cv_have_decl_getopt+set}" = set; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13395 cat >conftest.$ac_ext <<_ACEOF
13398 cat confdefs.h >>conftest.$ac_ext
13399 cat >>conftest.$ac_ext <<_ACEOF
13400 /* end confdefs.h. */
13401 $ac_includes_default
13406 char *p = (char *) getopt;
13413 rm -f conftest.$ac_objext
13414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13415 (eval $ac_compile) 2>conftest.er1
13417 grep -v '^ *+' conftest.er1 >conftest.err
13419 cat conftest.err >&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } &&
13422 { ac_try='test -z "$ac_c_werror_flag"
13423 || test ! -s conftest.err'
13424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425 (eval $ac_try) 2>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; } &&
13429 { ac_try='test -s conftest.$ac_objext'
13430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; }; then
13435 ac_cv_have_decl_getopt=yes
13437 echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.$ac_ext >&5
13440 ac_cv_have_decl_getopt=no
13442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13444 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13445 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13446 if test $ac_cv_have_decl_getopt = yes; then
13448 cat >>confdefs.h <<_ACEOF
13449 #define HAVE_DECL_GETOPT 1
13454 cat >>confdefs.h <<_ACEOF
13455 #define HAVE_DECL_GETOPT 0
13460 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13461 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13462 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13463 echo $ECHO_N "(cached) $ECHO_C" >&6
13465 cat >conftest.$ac_ext <<_ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13471 $ac_includes_default
13476 char *p = (char *) snprintf;
13483 rm -f conftest.$ac_objext
13484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13485 (eval $ac_compile) 2>conftest.er1
13487 grep -v '^ *+' conftest.er1 >conftest.err
13489 cat conftest.err >&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
13492 { ac_try='test -z "$ac_c_werror_flag"
13493 || test ! -s conftest.err'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; } &&
13499 { ac_try='test -s conftest.$ac_objext'
13500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13501 (eval $ac_try) 2>&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); }; }; then
13505 ac_cv_have_decl_snprintf=yes
13507 echo "$as_me: failed program was:" >&5
13508 sed 's/^/| /' conftest.$ac_ext >&5
13510 ac_cv_have_decl_snprintf=no
13512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13514 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13515 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13516 if test $ac_cv_have_decl_snprintf = yes; then
13518 cat >>confdefs.h <<_ACEOF
13519 #define HAVE_DECL_SNPRINTF 1
13524 cat >>confdefs.h <<_ACEOF
13525 #define HAVE_DECL_SNPRINTF 0
13530 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13531 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13532 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13535 cat >conftest.$ac_ext <<_ACEOF
13538 cat confdefs.h >>conftest.$ac_ext
13539 cat >>conftest.$ac_ext <<_ACEOF
13540 /* end confdefs.h. */
13541 $ac_includes_default
13546 char *p = (char *) vsnprintf;
13553 rm -f conftest.$ac_objext
13554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13555 (eval $ac_compile) 2>conftest.er1
13557 grep -v '^ *+' conftest.er1 >conftest.err
13559 cat conftest.err >&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); } &&
13562 { ac_try='test -z "$ac_c_werror_flag"
13563 || test ! -s conftest.err'
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; } &&
13569 { ac_try='test -s conftest.$ac_objext'
13570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13571 (eval $ac_try) 2>&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); }; }; then
13575 ac_cv_have_decl_vsnprintf=yes
13577 echo "$as_me: failed program was:" >&5
13578 sed 's/^/| /' conftest.$ac_ext >&5
13580 ac_cv_have_decl_vsnprintf=no
13582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13584 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13585 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13586 if test $ac_cv_have_decl_vsnprintf = yes; then
13588 cat >>confdefs.h <<_ACEOF
13589 #define HAVE_DECL_VSNPRINTF 1
13594 cat >>confdefs.h <<_ACEOF
13595 #define HAVE_DECL_VSNPRINTF 0
13603 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13604 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13605 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13608 cat >conftest.$ac_ext <<_ACEOF
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h. */
13614 #include <locale.h>
13623 rm -f conftest.$ac_objext conftest$ac_exeext
13624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13625 (eval $ac_link) 2>conftest.er1
13627 grep -v '^ *+' conftest.er1 >conftest.err
13629 cat conftest.err >&5
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); } &&
13632 { ac_try='test -z "$ac_c_werror_flag"
13633 || test ! -s conftest.err'
13634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635 (eval $ac_try) 2>&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; } &&
13639 { ac_try='test -s conftest$ac_exeext'
13640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641 (eval $ac_try) 2>&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; }; then
13645 am_cv_val_LC_MESSAGES=yes
13647 echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.$ac_ext >&5
13650 am_cv_val_LC_MESSAGES=no
13652 rm -f conftest.err conftest.$ac_objext \
13653 conftest$ac_exeext conftest.$ac_ext
13655 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13656 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13657 if test $am_cv_val_LC_MESSAGES = yes; then
13659 cat >>confdefs.h <<\_ACEOF
13660 #define HAVE_LC_MESSAGES 1
13666 # ----------------------- #
13667 # Checks for structures. #
13668 # ----------------------- #
13670 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13671 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13672 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13675 cat >conftest.$ac_ext <<_ACEOF
13678 cat confdefs.h >>conftest.$ac_ext
13679 cat >>conftest.$ac_ext <<_ACEOF
13680 /* end confdefs.h. */
13681 $ac_includes_default
13685 static struct stat ac_aggr;
13686 if (ac_aggr.st_blocks)
13692 rm -f conftest.$ac_objext
13693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13694 (eval $ac_compile) 2>conftest.er1
13696 grep -v '^ *+' conftest.er1 >conftest.err
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } &&
13701 { ac_try='test -z "$ac_c_werror_flag"
13702 || test ! -s conftest.err'
13703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704 (eval $ac_try) 2>&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; } &&
13708 { ac_try='test -s conftest.$ac_objext'
13709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710 (eval $ac_try) 2>&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; }; then
13714 ac_cv_member_struct_stat_st_blocks=yes
13716 echo "$as_me: failed program was:" >&5
13717 sed 's/^/| /' conftest.$ac_ext >&5
13719 cat >conftest.$ac_ext <<_ACEOF
13722 cat confdefs.h >>conftest.$ac_ext
13723 cat >>conftest.$ac_ext <<_ACEOF
13724 /* end confdefs.h. */
13725 $ac_includes_default
13729 static struct stat ac_aggr;
13730 if (sizeof ac_aggr.st_blocks)
13736 rm -f conftest.$ac_objext
13737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13738 (eval $ac_compile) 2>conftest.er1
13740 grep -v '^ *+' conftest.er1 >conftest.err
13742 cat conftest.err >&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); } &&
13745 { ac_try='test -z "$ac_c_werror_flag"
13746 || test ! -s conftest.err'
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; } &&
13752 { ac_try='test -s conftest.$ac_objext'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; }; then
13758 ac_cv_member_struct_stat_st_blocks=yes
13760 echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13763 ac_cv_member_struct_stat_st_blocks=no
13765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13769 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13770 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13771 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13773 cat >>confdefs.h <<_ACEOF
13774 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13779 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13780 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13781 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13782 echo $ECHO_N "(cached) $ECHO_C" >&6
13784 cat >conftest.$ac_ext <<_ACEOF
13787 cat confdefs.h >>conftest.$ac_ext
13788 cat >>conftest.$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13790 $ac_includes_default
13794 static struct stat ac_aggr;
13795 if (ac_aggr.st_blksize)
13801 rm -f conftest.$ac_objext
13802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13803 (eval $ac_compile) 2>conftest.er1
13805 grep -v '^ *+' conftest.er1 >conftest.err
13807 cat conftest.err >&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); } &&
13810 { ac_try='test -z "$ac_c_werror_flag"
13811 || test ! -s conftest.err'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; } &&
13817 { ac_try='test -s conftest.$ac_objext'
13818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819 (eval $ac_try) 2>&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; }; then
13823 ac_cv_member_struct_stat_st_blksize=yes
13825 echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13828 cat >conftest.$ac_ext <<_ACEOF
13831 cat confdefs.h >>conftest.$ac_ext
13832 cat >>conftest.$ac_ext <<_ACEOF
13833 /* end confdefs.h. */
13834 $ac_includes_default
13838 static struct stat ac_aggr;
13839 if (sizeof ac_aggr.st_blksize)
13845 rm -f conftest.$ac_objext
13846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13847 (eval $ac_compile) 2>conftest.er1
13849 grep -v '^ *+' conftest.er1 >conftest.err
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } &&
13854 { ac_try='test -z "$ac_c_werror_flag"
13855 || test ! -s conftest.err'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; } &&
13861 { ac_try='test -s conftest.$ac_objext'
13862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13863 (eval $ac_try) 2>&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); }; }; then
13867 ac_cv_member_struct_stat_st_blksize=yes
13869 echo "$as_me: failed program was:" >&5
13870 sed 's/^/| /' conftest.$ac_ext >&5
13872 ac_cv_member_struct_stat_st_blksize=no
13874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13878 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13879 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13880 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13882 cat >>confdefs.h <<_ACEOF
13883 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13890 # ------------------ #
13891 # Checks for types. #
13892 # ------------------ #
13894 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13895 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13896 if test "${ac_cv_type_signal+set}" = set; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13899 cat >conftest.$ac_ext <<_ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h. */
13905 #include <sys/types.h>
13906 #include <signal.h>
13911 extern "C" void (*signal (int, void (*)(int)))(int);
13913 void (*signal ()) ();
13924 rm -f conftest.$ac_objext
13925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13926 (eval $ac_compile) 2>conftest.er1
13928 grep -v '^ *+' conftest.er1 >conftest.err
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
13933 { ac_try='test -z "$ac_c_werror_flag"
13934 || test ! -s conftest.err'
13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; } &&
13940 { ac_try='test -s conftest.$ac_objext'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; }; then
13946 ac_cv_type_signal=void
13948 echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.$ac_ext >&5
13951 ac_cv_type_signal=int
13953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13955 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13956 echo "${ECHO_T}$ac_cv_type_signal" >&6
13958 cat >>confdefs.h <<_ACEOF
13959 #define RETSIGTYPE $ac_cv_type_signal
13963 echo "$as_me:$LINENO: checking for socklen_t" >&5
13964 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13965 if test "${ac_cv_type_socklen_t+set}" = set; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13968 cat >conftest.$ac_ext <<_ACEOF
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h. */
13974 #include <sys/types.h>
13975 #include <sys/socket.h>
13981 if ((socklen_t *) 0)
13983 if (sizeof (socklen_t))
13989 rm -f conftest.$ac_objext
13990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13991 (eval $ac_compile) 2>conftest.er1
13993 grep -v '^ *+' conftest.er1 >conftest.err
13995 cat conftest.err >&5
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); } &&
13998 { ac_try='test -z "$ac_c_werror_flag"
13999 || test ! -s conftest.err'
14000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14001 (eval $ac_try) 2>&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; } &&
14005 { ac_try='test -s conftest.$ac_objext'
14006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007 (eval $ac_try) 2>&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; }; then
14011 ac_cv_type_socklen_t=yes
14013 echo "$as_me: failed program was:" >&5
14014 sed 's/^/| /' conftest.$ac_ext >&5
14016 ac_cv_type_socklen_t=no
14018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14020 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
14021 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
14022 if test $ac_cv_type_socklen_t = yes; then
14024 cat >>confdefs.h <<_ACEOF
14025 #define HAVE_SOCKLEN_T 1
14032 # ------------------------------------- #
14033 # Checks for compiler characteristics. #
14034 # ------------------------------------- #
14036 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14037 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14038 if test "${ac_cv_c_const+set}" = set; then
14039 echo $ECHO_N "(cached) $ECHO_C" >&6
14041 cat >conftest.$ac_ext <<_ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h. */
14051 /* FIXME: Include the comments suggested by Paul. */
14052 #ifndef __cplusplus
14053 /* Ultrix mips cc rejects this. */
14054 typedef int charset[2];
14056 /* SunOS 4.1.1 cc rejects this. */
14057 char const *const *ccp;
14059 /* NEC SVR4.0.2 mips cc rejects this. */
14060 struct point {int x, y;};
14061 static struct point const zero = {0,0};
14062 /* AIX XL C 1.02.0.0 rejects this.
14063 It does not let you subtract one const X* pointer from another in
14064 an arm of an if-expression whose if-part is not a constant
14066 const char *g = "string";
14067 ccp = &g + (g ? g-g : 0);
14068 /* HPUX 7.0 cc rejects these. */
14071 ccp = (char const *const *) p;
14072 { /* SCO 3.2v4 cc rejects this. */
14074 char const *s = 0 ? (char *) 0 : (char const *) 0;
14078 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14079 int x[] = {25, 17};
14080 const int *foo = &x[0];
14083 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14084 typedef const int *iptr;
14088 { /* AIX XL C 1.02.0.0 rejects this saying
14089 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14090 struct s { int j; const int *ap[3]; };
14091 struct s *b; b->j = 5;
14093 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14094 const int foo = 10;
14102 rm -f conftest.$ac_objext
14103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14104 (eval $ac_compile) 2>conftest.er1
14106 grep -v '^ *+' conftest.er1 >conftest.err
14108 cat conftest.err >&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } &&
14111 { ac_try='test -z "$ac_c_werror_flag"
14112 || test ! -s conftest.err'
14113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14114 (eval $ac_try) 2>&5
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); }; } &&
14118 { ac_try='test -s conftest.$ac_objext'
14119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120 (eval $ac_try) 2>&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; }; then
14126 echo "$as_me: failed program was:" >&5
14127 sed 's/^/| /' conftest.$ac_ext >&5
14131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14133 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14134 echo "${ECHO_T}$ac_cv_c_const" >&6
14135 if test $ac_cv_c_const = no; then
14137 cat >>confdefs.h <<\_ACEOF
14143 echo "$as_me:$LINENO: checking for inline" >&5
14144 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14145 if test "${ac_cv_c_inline+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 for ac_kw in inline __inline__ __inline; do
14150 cat >conftest.$ac_ext <<_ACEOF
14153 cat confdefs.h >>conftest.$ac_ext
14154 cat >>conftest.$ac_ext <<_ACEOF
14155 /* end confdefs.h. */
14156 #ifndef __cplusplus
14158 static $ac_kw foo_t static_foo () {return 0; }
14159 $ac_kw foo_t foo () {return 0; }
14163 rm -f conftest.$ac_objext
14164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14165 (eval $ac_compile) 2>conftest.er1
14167 grep -v '^ *+' conftest.er1 >conftest.err
14169 cat conftest.err >&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } &&
14172 { ac_try='test -z "$ac_c_werror_flag"
14173 || test ! -s conftest.err'
14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175 (eval $ac_try) 2>&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; } &&
14179 { ac_try='test -s conftest.$ac_objext'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; }; then
14185 ac_cv_c_inline=$ac_kw; break
14187 echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14195 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14196 echo "${ECHO_T}$ac_cv_c_inline" >&6
14199 case $ac_cv_c_inline in
14202 case $ac_cv_c_inline in
14204 *) ac_val=$ac_cv_c_inline;;
14206 cat >>confdefs.h <<_ACEOF
14207 #ifndef __cplusplus
14208 #define inline $ac_val
14214 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14215 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14216 if test "${ac_cv_c_bigendian+set}" = set; then
14217 echo $ECHO_N "(cached) $ECHO_C" >&6
14219 # See if sys/param.h defines the BYTE_ORDER macro.
14220 cat >conftest.$ac_ext <<_ACEOF
14223 cat confdefs.h >>conftest.$ac_ext
14224 cat >>conftest.$ac_ext <<_ACEOF
14225 /* end confdefs.h. */
14226 #include <sys/types.h>
14227 #include <sys/param.h>
14232 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14233 bogus endian macros
14240 rm -f conftest.$ac_objext
14241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14242 (eval $ac_compile) 2>conftest.er1
14244 grep -v '^ *+' conftest.er1 >conftest.err
14246 cat conftest.err >&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); } &&
14249 { ac_try='test -z "$ac_c_werror_flag"
14250 || test ! -s conftest.err'
14251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252 (eval $ac_try) 2>&5
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; } &&
14256 { ac_try='test -s conftest.$ac_objext'
14257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14258 (eval $ac_try) 2>&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); }; }; then
14262 # It does; now see whether it defined to BIG_ENDIAN or not.
14263 cat >conftest.$ac_ext <<_ACEOF
14266 cat confdefs.h >>conftest.$ac_ext
14267 cat >>conftest.$ac_ext <<_ACEOF
14268 /* end confdefs.h. */
14269 #include <sys/types.h>
14270 #include <sys/param.h>
14275 #if BYTE_ORDER != BIG_ENDIAN
14283 rm -f conftest.$ac_objext
14284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14285 (eval $ac_compile) 2>conftest.er1
14287 grep -v '^ *+' conftest.er1 >conftest.err
14289 cat conftest.err >&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); } &&
14292 { ac_try='test -z "$ac_c_werror_flag"
14293 || test ! -s conftest.err'
14294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295 (eval $ac_try) 2>&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; } &&
14299 { ac_try='test -s conftest.$ac_objext'
14300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301 (eval $ac_try) 2>&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); }; }; then
14305 ac_cv_c_bigendian=yes
14307 echo "$as_me: failed program was:" >&5
14308 sed 's/^/| /' conftest.$ac_ext >&5
14310 ac_cv_c_bigendian=no
14312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14314 echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.$ac_ext >&5
14317 # It does not; compile a test program.
14318 if test "$cross_compiling" = yes; then
14319 # try to guess the endianness by grepping values into an object file
14320 ac_cv_c_bigendian=unknown
14321 cat >conftest.$ac_ext <<_ACEOF
14324 cat confdefs.h >>conftest.$ac_ext
14325 cat >>conftest.$ac_ext <<_ACEOF
14326 /* end confdefs.h. */
14327 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14328 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14329 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14330 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14331 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14332 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14336 _ascii (); _ebcdic ();
14341 rm -f conftest.$ac_objext
14342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14343 (eval $ac_compile) 2>conftest.er1
14345 grep -v '^ *+' conftest.er1 >conftest.err
14347 cat conftest.err >&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); } &&
14350 { ac_try='test -z "$ac_c_werror_flag"
14351 || test ! -s conftest.err'
14352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353 (eval $ac_try) 2>&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; } &&
14357 { ac_try='test -s conftest.$ac_objext'
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; }; then
14363 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14364 ac_cv_c_bigendian=yes
14366 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14367 if test "$ac_cv_c_bigendian" = unknown; then
14368 ac_cv_c_bigendian=no
14370 # finding both strings is unlikely to happen, but who knows?
14371 ac_cv_c_bigendian=unknown
14375 echo "$as_me: failed program was:" >&5
14376 sed 's/^/| /' conftest.$ac_ext >&5
14379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14381 cat >conftest.$ac_ext <<_ACEOF
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h. */
14390 /* Are we little or big endian? From Harbison&Steele. */
14394 char c[sizeof (long)];
14397 exit (u.c[sizeof (long) - 1] == 1);
14400 rm -f conftest$ac_exeext
14401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14402 (eval $ac_link) 2>&5
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14407 (eval $ac_try) 2>&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); }; }; then
14411 ac_cv_c_bigendian=no
14413 echo "$as_me: program exited with status $ac_status" >&5
14414 echo "$as_me: failed program was:" >&5
14415 sed 's/^/| /' conftest.$ac_ext >&5
14417 ( exit $ac_status )
14418 ac_cv_c_bigendian=yes
14420 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14425 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14426 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14427 case $ac_cv_c_bigendian in
14430 cat >>confdefs.h <<\_ACEOF
14431 #define WORDS_BIGENDIAN 1
14437 { { echo "$as_me:$LINENO: error: unknown endianness
14438 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14439 echo "$as_me: error: unknown endianness
14440 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14441 { (exit 1); exit 1; }; } ;;
14445 # ------------------------------ #
14446 # Checks for library functions. #
14447 # ------------------------------ #
14449 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14450 # for constant arguments. Useless!
14451 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14452 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14453 if test "${ac_cv_working_alloca_h+set}" = set; then
14454 echo $ECHO_N "(cached) $ECHO_C" >&6
14456 cat >conftest.$ac_ext <<_ACEOF
14459 cat confdefs.h >>conftest.$ac_ext
14460 cat >>conftest.$ac_ext <<_ACEOF
14461 /* end confdefs.h. */
14462 #include <alloca.h>
14466 char *p = (char *) alloca (2 * sizeof (int));
14471 rm -f conftest.$ac_objext conftest$ac_exeext
14472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14473 (eval $ac_link) 2>conftest.er1
14475 grep -v '^ *+' conftest.er1 >conftest.err
14477 cat conftest.err >&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } &&
14480 { ac_try='test -z "$ac_c_werror_flag"
14481 || test ! -s conftest.err'
14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483 (eval $ac_try) 2>&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; } &&
14487 { ac_try='test -s conftest$ac_exeext'
14488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; }; then
14493 ac_cv_working_alloca_h=yes
14495 echo "$as_me: failed program was:" >&5
14496 sed 's/^/| /' conftest.$ac_ext >&5
14498 ac_cv_working_alloca_h=no
14500 rm -f conftest.err conftest.$ac_objext \
14501 conftest$ac_exeext conftest.$ac_ext
14503 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14504 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14505 if test $ac_cv_working_alloca_h = yes; then
14507 cat >>confdefs.h <<\_ACEOF
14508 #define HAVE_ALLOCA_H 1
14513 echo "$as_me:$LINENO: checking for alloca" >&5
14514 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14515 if test "${ac_cv_func_alloca_works+set}" = set; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14518 cat >conftest.$ac_ext <<_ACEOF
14521 cat confdefs.h >>conftest.$ac_ext
14522 cat >>conftest.$ac_ext <<_ACEOF
14523 /* end confdefs.h. */
14525 # define alloca __builtin_alloca
14528 # include <malloc.h>
14529 # define alloca _alloca
14532 # include <alloca.h>
14537 # ifndef alloca /* predefined by HP cc +Olibcalls */
14548 char *p = (char *) alloca (1);
14553 rm -f conftest.$ac_objext conftest$ac_exeext
14554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14555 (eval $ac_link) 2>conftest.er1
14557 grep -v '^ *+' conftest.er1 >conftest.err
14559 cat conftest.err >&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } &&
14562 { ac_try='test -z "$ac_c_werror_flag"
14563 || test ! -s conftest.err'
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; } &&
14569 { ac_try='test -s conftest$ac_exeext'
14570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571 (eval $ac_try) 2>&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; }; then
14575 ac_cv_func_alloca_works=yes
14577 echo "$as_me: failed program was:" >&5
14578 sed 's/^/| /' conftest.$ac_ext >&5
14580 ac_cv_func_alloca_works=no
14582 rm -f conftest.err conftest.$ac_objext \
14583 conftest$ac_exeext conftest.$ac_ext
14585 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14586 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14588 if test $ac_cv_func_alloca_works = yes; then
14590 cat >>confdefs.h <<\_ACEOF
14591 #define HAVE_ALLOCA 1
14595 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14596 # that cause trouble. Some versions do not even contain alloca or
14597 # contain a buggy version. If you still want to use their alloca,
14598 # use ar to extract alloca.o from them instead of compiling alloca.c.
14600 ALLOCA=alloca.$ac_objext
14602 cat >>confdefs.h <<\_ACEOF
14607 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14608 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14609 if test "${ac_cv_os_cray+set}" = set; then
14610 echo $ECHO_N "(cached) $ECHO_C" >&6
14612 cat >conftest.$ac_ext <<_ACEOF
14615 cat confdefs.h >>conftest.$ac_ext
14616 cat >>conftest.$ac_ext <<_ACEOF
14617 /* end confdefs.h. */
14618 #if defined(CRAY) && ! defined(CRAY2)
14625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14626 $EGREP "webecray" >/dev/null 2>&1; then
14634 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14635 echo "${ECHO_T}$ac_cv_os_cray" >&6
14636 if test $ac_cv_os_cray = yes; then
14637 for ac_func in _getb67 GETB67 getb67; do
14638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14639 echo "$as_me:$LINENO: checking for $ac_func" >&5
14640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14641 if eval "test \"\${$as_ac_var+set}\" = set"; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
14644 cat >conftest.$ac_ext <<_ACEOF
14647 cat confdefs.h >>conftest.$ac_ext
14648 cat >>conftest.$ac_ext <<_ACEOF
14649 /* end confdefs.h. */
14650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14652 #define $ac_func innocuous_$ac_func
14654 /* System header to define __stub macros and hopefully few prototypes,
14655 which can conflict with char $ac_func (); below.
14656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14657 <limits.h> exists even on freestanding compilers. */
14660 # include <limits.h>
14662 # include <assert.h>
14667 /* Override any gcc2 internal prototype to avoid an error. */
14672 /* We use char because int might match the return type of a gcc2
14673 builtin and then its argument prototype would still apply. */
14675 /* The GNU C library defines this for functions which it implements
14676 to always fail with ENOSYS. Some functions are actually named
14677 something starting with __ and the normal name is an alias. */
14678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14681 char (*f) () = $ac_func;
14690 return f != $ac_func;
14695 rm -f conftest.$ac_objext conftest$ac_exeext
14696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14697 (eval $ac_link) 2>conftest.er1
14699 grep -v '^ *+' conftest.er1 >conftest.err
14701 cat conftest.err >&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } &&
14704 { ac_try='test -z "$ac_c_werror_flag"
14705 || test ! -s conftest.err'
14706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707 (eval $ac_try) 2>&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); }; } &&
14711 { ac_try='test -s conftest$ac_exeext'
14712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713 (eval $ac_try) 2>&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; }; then
14717 eval "$as_ac_var=yes"
14719 echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14722 eval "$as_ac_var=no"
14724 rm -f conftest.err conftest.$ac_objext \
14725 conftest$ac_exeext conftest.$ac_ext
14727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14729 if test `eval echo '${'$as_ac_var'}'` = yes; then
14731 cat >>confdefs.h <<_ACEOF
14732 #define CRAY_STACKSEG_END $ac_func
14741 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14742 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14743 if test "${ac_cv_c_stack_direction+set}" = set; then
14744 echo $ECHO_N "(cached) $ECHO_C" >&6
14746 if test "$cross_compiling" = yes; then
14747 ac_cv_c_stack_direction=0
14749 cat >conftest.$ac_ext <<_ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14756 find_stack_direction ()
14758 static char *addr = 0;
14763 return find_stack_direction ();
14766 return (&dummy > addr) ? 1 : -1;
14772 exit (find_stack_direction () < 0);
14775 rm -f conftest$ac_exeext
14776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14777 (eval $ac_link) 2>&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; }; then
14786 ac_cv_c_stack_direction=1
14788 echo "$as_me: program exited with status $ac_status" >&5
14789 echo "$as_me: failed program was:" >&5
14790 sed 's/^/| /' conftest.$ac_ext >&5
14792 ( exit $ac_status )
14793 ac_cv_c_stack_direction=-1
14795 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14798 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14799 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14801 cat >>confdefs.h <<_ACEOF
14802 #define STACK_DIRECTION $ac_cv_c_stack_direction
14810 for ac_header in stdlib.h unistd.h
14812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14814 echo "$as_me:$LINENO: checking for $ac_header" >&5
14815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14817 echo $ECHO_N "(cached) $ECHO_C" >&6
14819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14822 # Is the header compilable?
14823 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14825 cat >conftest.$ac_ext <<_ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h. */
14831 $ac_includes_default
14832 #include <$ac_header>
14834 rm -f conftest.$ac_objext
14835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14836 (eval $ac_compile) 2>conftest.er1
14838 grep -v '^ *+' conftest.er1 >conftest.err
14840 cat conftest.err >&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } &&
14843 { ac_try='test -z "$ac_c_werror_flag"
14844 || test ! -s conftest.err'
14845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846 (eval $ac_try) 2>&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; } &&
14850 { ac_try='test -s conftest.$ac_objext'
14851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14852 (eval $ac_try) 2>&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); }; }; then
14856 ac_header_compiler=yes
14858 echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14861 ac_header_compiler=no
14863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14864 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14865 echo "${ECHO_T}$ac_header_compiler" >&6
14867 # Is the header present?
14868 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14870 cat >conftest.$ac_ext <<_ACEOF
14873 cat confdefs.h >>conftest.$ac_ext
14874 cat >>conftest.$ac_ext <<_ACEOF
14875 /* end confdefs.h. */
14876 #include <$ac_header>
14878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14881 grep -v '^ *+' conftest.er1 >conftest.err
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } >/dev/null; then
14886 if test -s conftest.err; then
14887 ac_cpp_err=$ac_c_preproc_warn_flag
14888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14895 if test -z "$ac_cpp_err"; then
14896 ac_header_preproc=yes
14898 echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14901 ac_header_preproc=no
14903 rm -f conftest.err conftest.$ac_ext
14904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14905 echo "${ECHO_T}$ac_header_preproc" >&6
14907 # So? What about this header?
14908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14914 ac_header_preproc=yes
14917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14931 ## ------------------------------------------ ##
14932 ## Report this to the AC_PACKAGE_NAME lists. ##
14933 ## ------------------------------------------ ##
14936 sed "s/^/$as_me: WARNING: /" >&2
14939 echo "$as_me:$LINENO: checking for $ac_header" >&5
14940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14944 eval "$as_ac_Header=\$ac_header_preproc"
14946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14951 cat >>confdefs.h <<_ACEOF
14952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14960 for ac_func in getpagesize
14962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14963 echo "$as_me:$LINENO: checking for $ac_func" >&5
14964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14965 if eval "test \"\${$as_ac_var+set}\" = set"; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 cat >conftest.$ac_ext <<_ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h. */
14974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14976 #define $ac_func innocuous_$ac_func
14978 /* System header to define __stub macros and hopefully few prototypes,
14979 which can conflict with char $ac_func (); below.
14980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14981 <limits.h> exists even on freestanding compilers. */
14984 # include <limits.h>
14986 # include <assert.h>
14991 /* Override any gcc2 internal prototype to avoid an error. */
14996 /* We use char because int might match the return type of a gcc2
14997 builtin and then its argument prototype would still apply. */
14999 /* The GNU C library defines this for functions which it implements
15000 to always fail with ENOSYS. Some functions are actually named
15001 something starting with __ and the normal name is an alias. */
15002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15005 char (*f) () = $ac_func;
15014 return f != $ac_func;
15019 rm -f conftest.$ac_objext conftest$ac_exeext
15020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15021 (eval $ac_link) 2>conftest.er1
15023 grep -v '^ *+' conftest.er1 >conftest.err
15025 cat conftest.err >&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } &&
15028 { ac_try='test -z "$ac_c_werror_flag"
15029 || test ! -s conftest.err'
15030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031 (eval $ac_try) 2>&5
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); }; } &&
15035 { ac_try='test -s conftest$ac_exeext'
15036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037 (eval $ac_try) 2>&5
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); }; }; then
15041 eval "$as_ac_var=yes"
15043 echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15046 eval "$as_ac_var=no"
15048 rm -f conftest.err conftest.$ac_objext \
15049 conftest$ac_exeext conftest.$ac_ext
15051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15053 if test `eval echo '${'$as_ac_var'}'` = yes; then
15054 cat >>confdefs.h <<_ACEOF
15055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15061 echo "$as_me:$LINENO: checking for working mmap" >&5
15062 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15063 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15064 echo $ECHO_N "(cached) $ECHO_C" >&6
15066 if test "$cross_compiling" = yes; then
15067 ac_cv_func_mmap_fixed_mapped=no
15069 cat >conftest.$ac_ext <<_ACEOF
15072 cat confdefs.h >>conftest.$ac_ext
15073 cat >>conftest.$ac_ext <<_ACEOF
15074 /* end confdefs.h. */
15075 $ac_includes_default
15076 /* malloc might have been renamed as rpl_malloc. */
15079 /* Thanks to Mike Haertel and Jim Avera for this test.
15080 Here is a matrix of mmap possibilities:
15081 mmap private not fixed
15082 mmap private fixed at somewhere currently unmapped
15083 mmap private fixed at somewhere already mapped
15084 mmap shared not fixed
15085 mmap shared fixed at somewhere currently unmapped
15086 mmap shared fixed at somewhere already mapped
15087 For private mappings, we should verify that changes cannot be read()
15088 back from the file, nor mmap's back from the file at a different
15089 address. (There have been systems where private was not correctly
15090 implemented like the infamous i386 svr4.0, and systems where the
15091 VM page cache was not coherent with the file system buffer cache
15092 like early versions of FreeBSD and possibly contemporary NetBSD.)
15093 For shared mappings, we should conversely verify that changes get
15094 propagated back to all the places they're supposed to be.
15096 Grep wants private fixed already mapped.
15097 The main things grep needs to know about mmap are:
15098 * does it exist and is it safe to write into the mmap'd area
15099 * how to use it (BSD variants) */
15102 #include <sys/mman.h>
15104 #if !STDC_HEADERS && !HAVE_STDLIB_H
15108 /* This mess was copied from the GNU getpagesize.h. */
15109 #if !HAVE_GETPAGESIZE
15110 /* Assume that all systems that can run configure have sys/param.h. */
15111 # if !HAVE_SYS_PARAM_H
15112 # define HAVE_SYS_PARAM_H 1
15115 # ifdef _SC_PAGESIZE
15116 # define getpagesize() sysconf(_SC_PAGESIZE)
15117 # else /* no _SC_PAGESIZE */
15118 # if HAVE_SYS_PARAM_H
15119 # include <sys/param.h>
15120 # ifdef EXEC_PAGESIZE
15121 # define getpagesize() EXEC_PAGESIZE
15122 # else /* no EXEC_PAGESIZE */
15124 # define getpagesize() NBPG * CLSIZE
15127 # endif /* no CLSIZE */
15128 # else /* no NBPG */
15130 # define getpagesize() NBPC
15131 # else /* no NBPC */
15133 # define getpagesize() PAGESIZE
15134 # endif /* PAGESIZE */
15135 # endif /* no NBPC */
15136 # endif /* no NBPG */
15137 # endif /* no EXEC_PAGESIZE */
15138 # else /* no HAVE_SYS_PARAM_H */
15139 # define getpagesize() 8192 /* punt totally */
15140 # endif /* no HAVE_SYS_PARAM_H */
15141 # endif /* no _SC_PAGESIZE */
15143 #endif /* no HAVE_GETPAGESIZE */
15148 char *data, *data2, *data3;
15152 pagesize = getpagesize ();
15154 /* First, make a file with some known garbage in it. */
15155 data = (char *) malloc (pagesize);
15158 for (i = 0; i < pagesize; ++i)
15159 *(data + i) = rand ();
15161 fd = creat ("conftest.mmap", 0600);
15164 if (write (fd, data, pagesize) != pagesize)
15168 /* Next, try to mmap the file at a fixed address which already has
15169 something else allocated at it. If we can, also make sure that
15170 we see the same garbage. */
15171 fd = open ("conftest.mmap", O_RDWR);
15174 data2 = (char *) malloc (2 * pagesize);
15177 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15178 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15179 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15181 for (i = 0; i < pagesize; ++i)
15182 if (*(data + i) != *(data2 + i))
15185 /* Finally, make sure that changes to the mapped area do not
15186 percolate back to the file as seen by read(). (This is a bug on
15187 some variants of i386 svr4.0.) */
15188 for (i = 0; i < pagesize; ++i)
15189 *(data2 + i) = *(data2 + i) + 1;
15190 data3 = (char *) malloc (pagesize);
15193 if (read (fd, data3, pagesize) != pagesize)
15195 for (i = 0; i < pagesize; ++i)
15196 if (*(data + i) != *(data3 + i))
15202 rm -f conftest$ac_exeext
15203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15204 (eval $ac_link) 2>&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; }; then
15213 ac_cv_func_mmap_fixed_mapped=yes
15215 echo "$as_me: program exited with status $ac_status" >&5
15216 echo "$as_me: failed program was:" >&5
15217 sed 's/^/| /' conftest.$ac_ext >&5
15219 ( exit $ac_status )
15220 ac_cv_func_mmap_fixed_mapped=no
15222 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15225 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15226 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15227 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15229 cat >>confdefs.h <<\_ACEOF
15230 #define HAVE_MMAP 1
15234 rm -f conftest.mmap
15236 echo "$as_me:$LINENO: checking for pid_t" >&5
15237 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15238 if test "${ac_cv_type_pid_t+set}" = set; then
15239 echo $ECHO_N "(cached) $ECHO_C" >&6
15241 cat >conftest.$ac_ext <<_ACEOF
15244 cat confdefs.h >>conftest.$ac_ext
15245 cat >>conftest.$ac_ext <<_ACEOF
15246 /* end confdefs.h. */
15247 $ac_includes_default
15253 if (sizeof (pid_t))
15259 rm -f conftest.$ac_objext
15260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15261 (eval $ac_compile) 2>conftest.er1
15263 grep -v '^ *+' conftest.er1 >conftest.err
15265 cat conftest.err >&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } &&
15268 { ac_try='test -z "$ac_c_werror_flag"
15269 || test ! -s conftest.err'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; } &&
15275 { ac_try='test -s conftest.$ac_objext'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281 ac_cv_type_pid_t=yes
15283 echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15286 ac_cv_type_pid_t=no
15288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15290 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15291 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15292 if test $ac_cv_type_pid_t = yes; then
15296 cat >>confdefs.h <<_ACEOF
15304 for ac_header in unistd.h vfork.h
15306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15308 echo "$as_me:$LINENO: checking for $ac_header" >&5
15309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15316 # Is the header compilable?
15317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15319 cat >conftest.$ac_ext <<_ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h. */
15325 $ac_includes_default
15326 #include <$ac_header>
15328 rm -f conftest.$ac_objext
15329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15330 (eval $ac_compile) 2>conftest.er1
15332 grep -v '^ *+' conftest.er1 >conftest.err
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } &&
15337 { ac_try='test -z "$ac_c_werror_flag"
15338 || test ! -s conftest.err'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; } &&
15344 { ac_try='test -s conftest.$ac_objext'
15345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346 (eval $ac_try) 2>&5
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; }; then
15350 ac_header_compiler=yes
15352 echo "$as_me: failed program was:" >&5
15353 sed 's/^/| /' conftest.$ac_ext >&5
15355 ac_header_compiler=no
15357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15359 echo "${ECHO_T}$ac_header_compiler" >&6
15361 # Is the header present?
15362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15364 cat >conftest.$ac_ext <<_ACEOF
15367 cat confdefs.h >>conftest.$ac_ext
15368 cat >>conftest.$ac_ext <<_ACEOF
15369 /* end confdefs.h. */
15370 #include <$ac_header>
15372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15375 grep -v '^ *+' conftest.er1 >conftest.err
15377 cat conftest.err >&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } >/dev/null; then
15380 if test -s conftest.err; then
15381 ac_cpp_err=$ac_c_preproc_warn_flag
15382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15389 if test -z "$ac_cpp_err"; then
15390 ac_header_preproc=yes
15392 echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15395 ac_header_preproc=no
15397 rm -f conftest.err conftest.$ac_ext
15398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15399 echo "${ECHO_T}$ac_header_preproc" >&6
15401 # So? What about this header?
15402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15408 ac_header_preproc=yes
15411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15425 ## ------------------------------------------ ##
15426 ## Report this to the AC_PACKAGE_NAME lists. ##
15427 ## ------------------------------------------ ##
15430 sed "s/^/$as_me: WARNING: /" >&2
15433 echo "$as_me:$LINENO: checking for $ac_header" >&5
15434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15436 echo $ECHO_N "(cached) $ECHO_C" >&6
15438 eval "$as_ac_Header=\$ac_header_preproc"
15440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15445 cat >>confdefs.h <<_ACEOF
15446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15455 for ac_func in fork vfork
15457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15458 echo "$as_me:$LINENO: checking for $ac_func" >&5
15459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15460 if eval "test \"\${$as_ac_var+set}\" = set"; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15463 cat >conftest.$ac_ext <<_ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h. */
15469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15471 #define $ac_func innocuous_$ac_func
15473 /* System header to define __stub macros and hopefully few prototypes,
15474 which can conflict with char $ac_func (); below.
15475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15476 <limits.h> exists even on freestanding compilers. */
15479 # include <limits.h>
15481 # include <assert.h>
15486 /* Override any gcc2 internal prototype to avoid an error. */
15491 /* We use char because int might match the return type of a gcc2
15492 builtin and then its argument prototype would still apply. */
15494 /* The GNU C library defines this for functions which it implements
15495 to always fail with ENOSYS. Some functions are actually named
15496 something starting with __ and the normal name is an alias. */
15497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15500 char (*f) () = $ac_func;
15509 return f != $ac_func;
15514 rm -f conftest.$ac_objext conftest$ac_exeext
15515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15516 (eval $ac_link) 2>conftest.er1
15518 grep -v '^ *+' conftest.er1 >conftest.err
15520 cat conftest.err >&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); } &&
15523 { ac_try='test -z "$ac_c_werror_flag"
15524 || test ! -s conftest.err'
15525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15526 (eval $ac_try) 2>&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); }; } &&
15530 { ac_try='test -s conftest$ac_exeext'
15531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15532 (eval $ac_try) 2>&5
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); }; }; then
15536 eval "$as_ac_var=yes"
15538 echo "$as_me: failed program was:" >&5
15539 sed 's/^/| /' conftest.$ac_ext >&5
15541 eval "$as_ac_var=no"
15543 rm -f conftest.err conftest.$ac_objext \
15544 conftest$ac_exeext conftest.$ac_ext
15546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15547 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15548 if test `eval echo '${'$as_ac_var'}'` = yes; then
15549 cat >>confdefs.h <<_ACEOF
15550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15556 if test "x$ac_cv_func_fork" = xyes; then
15557 echo "$as_me:$LINENO: checking for working fork" >&5
15558 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15559 if test "${ac_cv_func_fork_works+set}" = set; then
15560 echo $ECHO_N "(cached) $ECHO_C" >&6
15562 if test "$cross_compiling" = yes; then
15563 ac_cv_func_fork_works=cross
15565 cat >conftest.$ac_ext <<_ACEOF
15566 /* By Ruediger Kuhlmann. */
15567 #include <sys/types.h>
15569 # include <unistd.h>
15571 /* Some systems only have a dummy stub for fork() */
15579 rm -f conftest$ac_exeext
15580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15581 (eval $ac_link) 2>&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
15590 ac_cv_func_fork_works=yes
15592 echo "$as_me: program exited with status $ac_status" >&5
15593 echo "$as_me: failed program was:" >&5
15594 sed 's/^/| /' conftest.$ac_ext >&5
15596 ( exit $ac_status )
15597 ac_cv_func_fork_works=no
15599 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15602 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15603 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15606 ac_cv_func_fork_works=$ac_cv_func_fork
15608 if test "x$ac_cv_func_fork_works" = xcross; then
15610 *-*-amigaos* | *-*-msdosdjgpp*)
15611 # Override, as these systems have only a dummy fork() stub
15612 ac_cv_func_fork_works=no
15615 ac_cv_func_fork_works=yes
15618 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15619 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15621 ac_cv_func_vfork_works=$ac_cv_func_vfork
15622 if test "x$ac_cv_func_vfork" = xyes; then
15623 echo "$as_me:$LINENO: checking for working vfork" >&5
15624 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15625 if test "${ac_cv_func_vfork_works+set}" = set; then
15626 echo $ECHO_N "(cached) $ECHO_C" >&6
15628 if test "$cross_compiling" = yes; then
15629 ac_cv_func_vfork_works=cross
15631 cat >conftest.$ac_ext <<_ACEOF
15634 cat confdefs.h >>conftest.$ac_ext
15635 cat >>conftest.$ac_ext <<_ACEOF
15636 /* end confdefs.h. */
15637 /* Thanks to Paul Eggert for this test. */
15639 #include <stdlib.h>
15640 #include <sys/types.h>
15641 #include <sys/stat.h>
15642 #include <sys/wait.h>
15644 # include <unistd.h>
15647 # include <vfork.h>
15649 /* On some sparc systems, changes by the child to local and incoming
15650 argument registers are propagated back to the parent. The compiler
15651 is told about this with #include <vfork.h>, but some compilers
15652 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15653 static variable whose address is put into a register that is
15654 clobbered by the vfork. */
15657 sparc_address_test (int arg)
15659 sparc_address_test (arg) int arg;
15662 static pid_t child;
15680 pid_t parent = getpid ();
15683 sparc_address_test (0);
15688 /* Here is another test for sparc vfork register problems. This
15689 test uses lots of local variables, at least as many local
15690 variables as main has allocated so far including compiler
15691 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15692 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15693 reuse the register of parent for one of the local variables,
15694 since it will think that parent can't possibly be used any more
15695 in this routine. Assigning to the local variable will thus
15696 munge parent in the parent process. */
15698 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15699 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15700 /* Convince the compiler that p..p7 are live; otherwise, it might
15701 use the same hardware register for all 8 local variables. */
15702 if (p != p1 || p != p2 || p != p3 || p != p4
15703 || p != p5 || p != p6 || p != p7)
15706 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15707 from child file descriptors. If the child closes a descriptor
15708 before it execs or exits, this munges the parent's descriptor
15709 as well. Test for this by closing stdout in the child. */
15710 _exit(close(fileno(stdout)) != 0);
15715 while (wait(&status) != child)
15718 /* Was there some problem with vforking? */
15721 /* Did the child fail? (This shouldn't happen.) */
15724 /* Did the vfork/compiler bug occur? */
15725 || parent != getpid()
15727 /* Did the file descriptor bug occur? */
15728 || fstat(fileno(stdout), &st) != 0
15733 rm -f conftest$ac_exeext
15734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15735 (eval $ac_link) 2>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; }; then
15744 ac_cv_func_vfork_works=yes
15746 echo "$as_me: program exited with status $ac_status" >&5
15747 echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15750 ( exit $ac_status )
15751 ac_cv_func_vfork_works=no
15753 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15756 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15757 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15760 if test "x$ac_cv_func_fork_works" = xcross; then
15761 ac_cv_func_vfork_works=$ac_cv_func_vfork
15762 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15763 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15766 if test "x$ac_cv_func_vfork_works" = xyes; then
15768 cat >>confdefs.h <<\_ACEOF
15769 #define HAVE_WORKING_VFORK 1
15774 cat >>confdefs.h <<\_ACEOF
15779 if test "x$ac_cv_func_fork_works" = xyes; then
15781 cat >>confdefs.h <<\_ACEOF
15782 #define HAVE_WORKING_FORK 1
15809 for ac_func in canonicalize_file_name realpath getrusage getuid \
15810 getgid poll pread64 sbrk setpgid setpgrp setsid \
15811 sigaction sigprocmask sigsetmask socketpair syscall \
15812 ttrace wborder setlocale iconvlist libiconvlist btowc
15814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15815 echo "$as_me:$LINENO: checking for $ac_func" >&5
15816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15817 if eval "test \"\${$as_ac_var+set}\" = set"; then
15818 echo $ECHO_N "(cached) $ECHO_C" >&6
15820 cat >conftest.$ac_ext <<_ACEOF
15823 cat confdefs.h >>conftest.$ac_ext
15824 cat >>conftest.$ac_ext <<_ACEOF
15825 /* end confdefs.h. */
15826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15828 #define $ac_func innocuous_$ac_func
15830 /* System header to define __stub macros and hopefully few prototypes,
15831 which can conflict with char $ac_func (); below.
15832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15833 <limits.h> exists even on freestanding compilers. */
15836 # include <limits.h>
15838 # include <assert.h>
15843 /* Override any gcc2 internal prototype to avoid an error. */
15848 /* We use char because int might match the return type of a gcc2
15849 builtin and then its argument prototype would still apply. */
15851 /* The GNU C library defines this for functions which it implements
15852 to always fail with ENOSYS. Some functions are actually named
15853 something starting with __ and the normal name is an alias. */
15854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15857 char (*f) () = $ac_func;
15866 return f != $ac_func;
15871 rm -f conftest.$ac_objext conftest$ac_exeext
15872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15873 (eval $ac_link) 2>conftest.er1
15875 grep -v '^ *+' conftest.er1 >conftest.err
15877 cat conftest.err >&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); } &&
15880 { ac_try='test -z "$ac_c_werror_flag"
15881 || test ! -s conftest.err'
15882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883 (eval $ac_try) 2>&5
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; } &&
15887 { ac_try='test -s conftest$ac_exeext'
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; }; then
15893 eval "$as_ac_var=yes"
15895 echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15898 eval "$as_ac_var=no"
15900 rm -f conftest.err conftest.$ac_objext \
15901 conftest$ac_exeext conftest.$ac_ext
15903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15905 if test `eval echo '${'$as_ac_var'}'` = yes; then
15906 cat >>confdefs.h <<_ACEOF
15907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15914 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15915 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15916 if test "${am_cv_langinfo_codeset+set}" = set; then
15917 echo $ECHO_N "(cached) $ECHO_C" >&6
15919 cat >conftest.$ac_ext <<_ACEOF
15922 cat confdefs.h >>conftest.$ac_ext
15923 cat >>conftest.$ac_ext <<_ACEOF
15924 /* end confdefs.h. */
15925 #include <langinfo.h>
15929 char* cs = nl_langinfo(CODESET);
15934 rm -f conftest.$ac_objext conftest$ac_exeext
15935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15936 (eval $ac_link) 2>conftest.er1
15938 grep -v '^ *+' conftest.er1 >conftest.err
15940 cat conftest.err >&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } &&
15943 { ac_try='test -z "$ac_c_werror_flag"
15944 || test ! -s conftest.err'
15945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946 (eval $ac_try) 2>&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; } &&
15950 { ac_try='test -s conftest$ac_exeext'
15951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; }; then
15956 am_cv_langinfo_codeset=yes
15958 echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15961 am_cv_langinfo_codeset=no
15963 rm -f conftest.err conftest.$ac_objext \
15964 conftest$ac_exeext conftest.$ac_ext
15967 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
15968 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
15969 if test $am_cv_langinfo_codeset = yes; then
15971 cat >>confdefs.h <<\_ACEOF
15972 #define HAVE_LANGINFO_CODESET 1
15978 # Check the return and argument types of ptrace. No canned test for
15979 # this, so roll our own.
15980 gdb_ptrace_headers='
15981 #if HAVE_SYS_TYPES_H
15982 # include <sys/types.h>
15984 #if HAVE_SYS_PTRACE_H
15985 # include <sys/ptrace.h>
15988 # include <unistd.h>
15991 # There is no point in checking if we don't have a prototype.
15992 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
15993 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
15994 if test "${ac_cv_have_decl_ptrace+set}" = set; then
15995 echo $ECHO_N "(cached) $ECHO_C" >&6
15997 cat >conftest.$ac_ext <<_ACEOF
16000 cat confdefs.h >>conftest.$ac_ext
16001 cat >>conftest.$ac_ext <<_ACEOF
16002 /* end confdefs.h. */
16003 $gdb_ptrace_headers
16009 char *p = (char *) ptrace;
16016 rm -f conftest.$ac_objext
16017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16018 (eval $ac_compile) 2>conftest.er1
16020 grep -v '^ *+' conftest.er1 >conftest.err
16022 cat conftest.err >&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); } &&
16025 { ac_try='test -z "$ac_c_werror_flag"
16026 || test ! -s conftest.err'
16027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028 (eval $ac_try) 2>&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; } &&
16032 { ac_try='test -s conftest.$ac_objext'
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; }; then
16038 ac_cv_have_decl_ptrace=yes
16040 echo "$as_me: failed program was:" >&5
16041 sed 's/^/| /' conftest.$ac_ext >&5
16043 ac_cv_have_decl_ptrace=no
16045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16047 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16048 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16049 if test $ac_cv_have_decl_ptrace = yes; then
16051 cat >>confdefs.h <<_ACEOF
16052 #define HAVE_DECL_PTRACE 1
16057 cat >>confdefs.h <<_ACEOF
16058 #define HAVE_DECL_PTRACE 0
16062 : ${gdb_cv_func_ptrace_ret='int'}
16063 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16068 # Check return type. Varargs (used on GNU/Linux) conflict with the
16069 # empty argument list, so check for that explicitly.
16070 echo "$as_me:$LINENO: checking return type of ptrace" >&5
16071 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16072 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16075 cat >conftest.$ac_ext <<_ACEOF
16078 cat confdefs.h >>conftest.$ac_ext
16079 cat >>conftest.$ac_ext <<_ACEOF
16080 /* end confdefs.h. */
16081 $gdb_ptrace_headers
16085 extern long ptrace (enum __ptrace_request, ...);
16090 rm -f conftest.$ac_objext
16091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16092 (eval $ac_compile) 2>conftest.er1
16094 grep -v '^ *+' conftest.er1 >conftest.err
16096 cat conftest.err >&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } &&
16099 { ac_try='test -z "$ac_c_werror_flag"
16100 || test ! -s conftest.err'
16101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; } &&
16106 { ac_try='test -s conftest.$ac_objext'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; }; then
16112 gdb_cv_func_ptrace_ret='long'
16114 echo "$as_me: failed program was:" >&5
16115 sed 's/^/| /' conftest.$ac_ext >&5
16117 cat >conftest.$ac_ext <<_ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h. */
16123 $gdb_ptrace_headers
16127 extern int ptrace ();
16132 rm -f conftest.$ac_objext
16133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16134 (eval $ac_compile) 2>conftest.er1
16136 grep -v '^ *+' conftest.er1 >conftest.err
16138 cat conftest.err >&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } &&
16141 { ac_try='test -z "$ac_c_werror_flag"
16142 || test ! -s conftest.err'
16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144 (eval $ac_try) 2>&5
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; } &&
16148 { ac_try='test -s conftest.$ac_objext'
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16154 gdb_cv_func_ptrace_ret='int'
16156 echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16159 gdb_cv_func_ptrace_ret='long'
16161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16165 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16166 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
16168 cat >>confdefs.h <<_ACEOF
16169 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
16172 # Check argument types.
16173 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16174 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16175 if test "${gdb_cv_func_ptrace_args+set}" = set; then
16176 echo $ECHO_N "(cached) $ECHO_C" >&6
16179 cat >conftest.$ac_ext <<_ACEOF
16182 cat confdefs.h >>conftest.$ac_ext
16183 cat >>conftest.$ac_ext <<_ACEOF
16184 /* end confdefs.h. */
16185 $gdb_ptrace_headers
16189 extern long ptrace (enum __ptrace_request, ...);
16194 rm -f conftest.$ac_objext
16195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16196 (eval $ac_compile) 2>conftest.er1
16198 grep -v '^ *+' conftest.er1 >conftest.err
16200 cat conftest.err >&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); } &&
16203 { ac_try='test -z "$ac_c_werror_flag"
16204 || test ! -s conftest.err'
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; } &&
16210 { ac_try='test -s conftest.$ac_objext'
16211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212 (eval $ac_try) 2>&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; }; then
16216 gdb_cv_func_ptrace_args='int,int,long,long'
16218 echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.$ac_ext >&5
16222 for gdb_arg1 in 'int' 'long'; do
16223 for gdb_arg2 in 'pid_t' 'int' 'long'; do
16224 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
16225 for gdb_arg4 in 'int' 'long'; do
16226 cat >conftest.$ac_ext <<_ACEOF
16229 cat confdefs.h >>conftest.$ac_ext
16230 cat >>conftest.$ac_ext <<_ACEOF
16231 /* end confdefs.h. */
16232 $gdb_ptrace_headers
16237 extern $gdb_cv_func_ptrace_ret
16238 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16244 rm -f conftest.$ac_objext
16245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16246 (eval $ac_compile) 2>conftest.er1
16248 grep -v '^ *+' conftest.er1 >conftest.err
16250 cat conftest.err >&5
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); } &&
16253 { ac_try='test -z "$ac_c_werror_flag"
16254 || test ! -s conftest.err'
16255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; } &&
16260 { ac_try='test -s conftest.$ac_objext'
16261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16262 (eval $ac_try) 2>&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; }; then
16266 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16269 echo "$as_me: failed program was:" >&5
16270 sed 's/^/| /' conftest.$ac_ext >&5
16273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16274 for gdb_arg5 in 'int *' 'int' 'long'; do
16275 cat >conftest.$ac_ext <<_ACEOF
16278 cat confdefs.h >>conftest.$ac_ext
16279 cat >>conftest.$ac_ext <<_ACEOF
16280 /* end confdefs.h. */
16281 $gdb_ptrace_headers
16286 extern $gdb_cv_func_ptrace_ret
16287 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16293 rm -f conftest.$ac_objext
16294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16295 (eval $ac_compile) 2>conftest.er1
16297 grep -v '^ *+' conftest.er1 >conftest.err
16299 cat conftest.err >&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); } &&
16302 { ac_try='test -z "$ac_c_werror_flag"
16303 || test ! -s conftest.err'
16304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16305 (eval $ac_try) 2>&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); }; } &&
16309 { ac_try='test -s conftest.$ac_objext'
16310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16311 (eval $ac_try) 2>&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); }; }; then
16316 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16319 echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.$ac_ext >&5
16323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16329 # Provide a safe default value.
16330 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16335 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16336 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16337 ac_save_IFS=$IFS; IFS=','
16338 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16342 cat >>confdefs.h <<_ACEOF
16343 #define PTRACE_TYPE_ARG3 $3
16346 if test -n "$5"; then
16348 cat >>confdefs.h <<_ACEOF
16349 #define PTRACE_TYPE_ARG5 $5
16354 if test "$cross_compiling" = no; then
16355 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16356 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16357 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16360 if test "$cross_compiling" = yes; then
16361 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16362 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16363 { (exit 1); exit 1; }; }
16365 cat >conftest.$ac_ext <<_ACEOF
16368 cat confdefs.h >>conftest.$ac_ext
16369 cat >>conftest.$ac_ext <<_ACEOF
16370 /* end confdefs.h. */
16372 # include <unistd.h>
16378 /* If this system has a BSD-style setpgrp which takes arguments,
16379 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16380 exit successfully. */
16381 exit (setpgrp (1,1) == -1 ? 0 : 1);
16386 rm -f conftest$ac_exeext
16387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16388 (eval $ac_link) 2>&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16393 (eval $ac_try) 2>&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); }; }; then
16397 ac_cv_func_setpgrp_void=no
16399 echo "$as_me: program exited with status $ac_status" >&5
16400 echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16403 ( exit $ac_status )
16404 ac_cv_func_setpgrp_void=yes
16406 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16409 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16410 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16411 if test $ac_cv_func_setpgrp_void = yes; then
16413 cat >>confdefs.h <<\_ACEOF
16414 #define SETPGRP_VOID 1
16420 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16421 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16422 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16423 echo $ECHO_N "(cached) $ECHO_C" >&6
16425 cat >conftest.$ac_ext <<_ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h. */
16432 #include <unistd.h>
16438 if (setpgrp(1,1) == -1)
16447 rm -f conftest.$ac_objext
16448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16449 (eval $ac_compile) 2>conftest.er1
16451 grep -v '^ *+' conftest.er1 >conftest.err
16453 cat conftest.err >&5
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); } &&
16456 { ac_try='test -z "$ac_c_werror_flag"
16457 || test ! -s conftest.err'
16458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16459 (eval $ac_try) 2>&5
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; } &&
16463 { ac_try='test -s conftest.$ac_objext'
16464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465 (eval $ac_try) 2>&5
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; }; then
16469 ac_cv_func_setpgrp_void=no
16471 echo "$as_me: failed program was:" >&5
16472 sed 's/^/| /' conftest.$ac_ext >&5
16474 ac_cv_func_setpgrp_void=yes
16476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16478 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16479 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16480 if test $ac_cv_func_setpgrp_void = yes; then
16481 cat >>confdefs.h <<\_ACEOF
16482 #define SETPGRP_VOID 1
16488 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16489 # since sigsetjmp might only be defined as a macro.
16490 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16491 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16492 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16495 cat >conftest.$ac_ext <<_ACEOF
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h. */
16502 #include <setjmp.h>
16507 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16512 rm -f conftest.$ac_objext
16513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16514 (eval $ac_compile) 2>conftest.er1
16516 grep -v '^ *+' conftest.er1 >conftest.err
16518 cat conftest.err >&5
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); } &&
16521 { ac_try='test -z "$ac_c_werror_flag"
16522 || test ! -s conftest.err'
16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524 (eval $ac_try) 2>&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; } &&
16528 { ac_try='test -s conftest.$ac_objext'
16529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16530 (eval $ac_try) 2>&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; }; then
16534 gdb_cv_func_sigsetjmp=yes
16536 echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16539 gdb_cv_func_sigsetjmp=no
16541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16543 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16544 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16545 if test $gdb_cv_func_sigsetjmp = yes; then
16547 cat >>confdefs.h <<\_ACEOF
16548 #define HAVE_SIGSETJMP 1
16553 # Assume we'll default to using the included libiberty regex.
16554 gdb_use_included_regex=yes
16556 # However, if the system regex is GNU regex, then default to *not*
16557 # using the included regex.
16558 echo "$as_me:$LINENO: checking for GNU regex" >&5
16559 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16560 if test "${gdb_cv_have_gnu_regex+set}" = set; then
16561 echo $ECHO_N "(cached) $ECHO_C" >&6
16563 cat >conftest.$ac_ext <<_ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h. */
16569 #include <gnu-versions.h>
16573 #define REGEX_INTERFACE_VERSION 1
16574 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16575 # error "Version mismatch"
16581 rm -f conftest.$ac_objext
16582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16583 (eval $ac_compile) 2>conftest.er1
16585 grep -v '^ *+' conftest.er1 >conftest.err
16587 cat conftest.err >&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); } &&
16590 { ac_try='test -z "$ac_c_werror_flag"
16591 || test ! -s conftest.err'
16592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16593 (eval $ac_try) 2>&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; } &&
16597 { ac_try='test -s conftest.$ac_objext'
16598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16599 (eval $ac_try) 2>&5
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }; }; then
16603 gdb_cv_have_gnu_regex=yes
16605 echo "$as_me: failed program was:" >&5
16606 sed 's/^/| /' conftest.$ac_ext >&5
16608 gdb_cv_have_gnu_regex=no
16610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16612 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16613 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16614 if test $gdb_cv_have_gnu_regex = yes; then
16615 gdb_use_included_regex=no
16619 # Check whether --with-included-regex or --without-included-regex was given.
16620 if test "${with_included_regex+set}" = set; then
16621 withval="$with_included_regex"
16622 gdb_with_regex=$withval
16624 gdb_with_regex=$gdb_use_included_regex
16626 if test "$gdb_with_regex" = yes; then
16628 cat >>confdefs.h <<\_ACEOF
16629 #define USE_INCLUDED_REGEX 1
16634 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
16635 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
16636 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
16637 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
16638 echo $ECHO_N "(cached) $ECHO_C" >&6
16640 cat >conftest.$ac_ext <<_ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h. */
16646 #include <sys/param.h>
16647 #include <sys/proc.h>
16653 static struct thread ac_aggr;
16654 if (ac_aggr.td_pcb)
16660 rm -f conftest.$ac_objext
16661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16662 (eval $ac_compile) 2>conftest.er1
16664 grep -v '^ *+' conftest.er1 >conftest.err
16666 cat conftest.err >&5
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); } &&
16669 { ac_try='test -z "$ac_c_werror_flag"
16670 || test ! -s conftest.err'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; } &&
16676 { ac_try='test -s conftest.$ac_objext'
16677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678 (eval $ac_try) 2>&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; }; then
16682 ac_cv_member_struct_thread_td_pcb=yes
16684 echo "$as_me: failed program was:" >&5
16685 sed 's/^/| /' conftest.$ac_ext >&5
16687 cat >conftest.$ac_ext <<_ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16693 #include <sys/param.h>
16694 #include <sys/proc.h>
16700 static struct thread ac_aggr;
16701 if (sizeof ac_aggr.td_pcb)
16707 rm -f conftest.$ac_objext
16708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16709 (eval $ac_compile) 2>conftest.er1
16711 grep -v '^ *+' conftest.er1 >conftest.err
16713 cat conftest.err >&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } &&
16716 { ac_try='test -z "$ac_c_werror_flag"
16717 || test ! -s conftest.err'
16718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719 (eval $ac_try) 2>&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; } &&
16723 { ac_try='test -s conftest.$ac_objext'
16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; }; then
16729 ac_cv_member_struct_thread_td_pcb=yes
16731 echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16734 ac_cv_member_struct_thread_td_pcb=no
16736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16740 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
16741 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
16742 if test $ac_cv_member_struct_thread_td_pcb = yes; then
16744 cat >>confdefs.h <<_ACEOF
16745 #define HAVE_STRUCT_THREAD_TD_PCB 1
16752 # See if <sys/lwp.h> defines `struct lwp`.
16753 echo "$as_me:$LINENO: checking for struct lwp" >&5
16754 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16755 if test "${gdb_cv_struct_lwp+set}" = set; then
16756 echo $ECHO_N "(cached) $ECHO_C" >&6
16758 cat >conftest.$ac_ext <<_ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16764 #include <sys/param.h>
16765 #include <sys/lwp.h>
16774 rm -f conftest.$ac_objext
16775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16776 (eval $ac_compile) 2>conftest.er1
16778 grep -v '^ *+' conftest.er1 >conftest.err
16780 cat conftest.err >&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } &&
16783 { ac_try='test -z "$ac_c_werror_flag"
16784 || test ! -s conftest.err'
16785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16786 (eval $ac_try) 2>&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); }; } &&
16790 { ac_try='test -s conftest.$ac_objext'
16791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16792 (eval $ac_try) 2>&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); }; }; then
16796 gdb_cv_struct_lwp=yes
16798 echo "$as_me: failed program was:" >&5
16799 sed 's/^/| /' conftest.$ac_ext >&5
16801 gdb_cv_struct_lwp=no
16803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16805 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16806 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
16807 if test $gdb_cv_struct_lwp = yes; then
16809 cat >>confdefs.h <<\_ACEOF
16810 #define HAVE_STRUCT_LWP 1
16815 # See if <machine/reg.h> degines `struct reg'.
16816 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16817 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16818 if test "${gdb_cv_struct_reg+set}" = set; then
16819 echo $ECHO_N "(cached) $ECHO_C" >&6
16821 cat >conftest.$ac_ext <<_ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16827 #include <sys/types.h>
16828 #include <machine/reg.h>
16837 rm -f conftest.$ac_objext
16838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16839 (eval $ac_compile) 2>conftest.er1
16841 grep -v '^ *+' conftest.er1 >conftest.err
16843 cat conftest.err >&5
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); } &&
16846 { ac_try='test -z "$ac_c_werror_flag"
16847 || test ! -s conftest.err'
16848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849 (eval $ac_try) 2>&5
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; } &&
16853 { ac_try='test -s conftest.$ac_objext'
16854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16855 (eval $ac_try) 2>&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; }; then
16859 gdb_cv_struct_reg=yes
16861 echo "$as_me: failed program was:" >&5
16862 sed 's/^/| /' conftest.$ac_ext >&5
16864 gdb_cv_struct_reg=no
16866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16868 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16869 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
16870 if test $gdb_cv_struct_reg = yes; then
16872 cat >>confdefs.h <<\_ACEOF
16873 #define HAVE_STRUCT_REG 1
16878 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16879 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16880 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
16881 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
16882 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
16883 echo $ECHO_N "(cached) $ECHO_C" >&6
16885 cat >conftest.$ac_ext <<_ACEOF
16888 cat confdefs.h >>conftest.$ac_ext
16889 cat >>conftest.$ac_ext <<_ACEOF
16890 /* end confdefs.h. */
16891 #include <machine/reg.h>
16896 static struct reg ac_aggr;
16903 rm -f conftest.$ac_objext
16904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16905 (eval $ac_compile) 2>conftest.er1
16907 grep -v '^ *+' conftest.er1 >conftest.err
16909 cat conftest.err >&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } &&
16912 { ac_try='test -z "$ac_c_werror_flag"
16913 || test ! -s conftest.err'
16914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16915 (eval $ac_try) 2>&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; } &&
16919 { ac_try='test -s conftest.$ac_objext'
16920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921 (eval $ac_try) 2>&5
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; }; then
16925 ac_cv_member_struct_reg_r_fs=yes
16927 echo "$as_me: failed program was:" >&5
16928 sed 's/^/| /' conftest.$ac_ext >&5
16930 cat >conftest.$ac_ext <<_ACEOF
16933 cat confdefs.h >>conftest.$ac_ext
16934 cat >>conftest.$ac_ext <<_ACEOF
16935 /* end confdefs.h. */
16936 #include <machine/reg.h>
16941 static struct reg ac_aggr;
16942 if (sizeof ac_aggr.r_fs)
16948 rm -f conftest.$ac_objext
16949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16950 (eval $ac_compile) 2>conftest.er1
16952 grep -v '^ *+' conftest.er1 >conftest.err
16954 cat conftest.err >&5
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); } &&
16957 { ac_try='test -z "$ac_c_werror_flag"
16958 || test ! -s conftest.err'
16959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16960 (eval $ac_try) 2>&5
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); }; } &&
16964 { ac_try='test -s conftest.$ac_objext'
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; }; then
16970 ac_cv_member_struct_reg_r_fs=yes
16972 echo "$as_me: failed program was:" >&5
16973 sed 's/^/| /' conftest.$ac_ext >&5
16975 ac_cv_member_struct_reg_r_fs=no
16977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16981 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
16982 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
16983 if test $ac_cv_member_struct_reg_r_fs = yes; then
16985 cat >>confdefs.h <<_ACEOF
16986 #define HAVE_STRUCT_REG_R_FS 1
16991 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
16992 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
16993 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
16994 echo $ECHO_N "(cached) $ECHO_C" >&6
16996 cat >conftest.$ac_ext <<_ACEOF
16999 cat confdefs.h >>conftest.$ac_ext
17000 cat >>conftest.$ac_ext <<_ACEOF
17001 /* end confdefs.h. */
17002 #include <machine/reg.h>
17007 static struct reg ac_aggr;
17014 rm -f conftest.$ac_objext
17015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17016 (eval $ac_compile) 2>conftest.er1
17018 grep -v '^ *+' conftest.er1 >conftest.err
17020 cat conftest.err >&5
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); } &&
17023 { ac_try='test -z "$ac_c_werror_flag"
17024 || test ! -s conftest.err'
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; } &&
17030 { ac_try='test -s conftest.$ac_objext'
17031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17032 (eval $ac_try) 2>&5
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; }; then
17036 ac_cv_member_struct_reg_r_gs=yes
17038 echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.$ac_ext >&5
17041 cat >conftest.$ac_ext <<_ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17047 #include <machine/reg.h>
17052 static struct reg ac_aggr;
17053 if (sizeof ac_aggr.r_gs)
17059 rm -f conftest.$ac_objext
17060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17061 (eval $ac_compile) 2>conftest.er1
17063 grep -v '^ *+' conftest.er1 >conftest.err
17065 cat conftest.err >&5
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); } &&
17068 { ac_try='test -z "$ac_c_werror_flag"
17069 || test ! -s conftest.err'
17070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071 (eval $ac_try) 2>&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; } &&
17075 { ac_try='test -s conftest.$ac_objext'
17076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077 (eval $ac_try) 2>&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); }; }; then
17081 ac_cv_member_struct_reg_r_gs=yes
17083 echo "$as_me: failed program was:" >&5
17084 sed 's/^/| /' conftest.$ac_ext >&5
17086 ac_cv_member_struct_reg_r_gs=no
17088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17092 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17093 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17094 if test $ac_cv_member_struct_reg_r_gs = yes; then
17096 cat >>confdefs.h <<_ACEOF
17097 #define HAVE_STRUCT_REG_R_GS 1
17104 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17105 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17106 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17107 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17110 cat >conftest.$ac_ext <<_ACEOF
17113 cat confdefs.h >>conftest.$ac_ext
17114 cat >>conftest.$ac_ext <<_ACEOF
17115 /* end confdefs.h. */
17116 #include <sys/ptrace.h>
17125 rm -f conftest.$ac_objext
17126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17127 (eval $ac_compile) 2>conftest.er1
17129 grep -v '^ *+' conftest.er1 >conftest.err
17131 cat conftest.err >&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } &&
17134 { ac_try='test -z "$ac_c_werror_flag"
17135 || test ! -s conftest.err'
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; } &&
17141 { ac_try='test -s conftest.$ac_objext'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 gdb_cv_have_ptrace_getregs=yes
17149 echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17152 gdb_cv_have_ptrace_getregs=no
17154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17157 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17158 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17159 if test $gdb_cv_have_ptrace_getregs = yes; then
17161 cat >>confdefs.h <<\_ACEOF
17162 #define HAVE_PTRACE_GETREGS 1
17167 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17168 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17169 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17170 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17173 cat >conftest.$ac_ext <<_ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h. */
17179 #include <sys/ptrace.h>
17188 rm -f conftest.$ac_objext
17189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17190 (eval $ac_compile) 2>conftest.er1
17192 grep -v '^ *+' conftest.er1 >conftest.err
17194 cat conftest.err >&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } &&
17197 { ac_try='test -z "$ac_c_werror_flag"
17198 || test ! -s conftest.err'
17199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200 (eval $ac_try) 2>&5
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; } &&
17204 { ac_try='test -s conftest.$ac_objext'
17205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17206 (eval $ac_try) 2>&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; }; then
17210 gdb_cv_have_ptrace_getfpxregs=yes
17212 echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17215 gdb_cv_have_ptrace_getfpxregs=no
17217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17220 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17221 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17222 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
17224 cat >>confdefs.h <<\_ACEOF
17225 #define HAVE_PTRACE_GETFPXREGS 1
17230 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17231 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17232 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17233 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
17234 echo $ECHO_N "(cached) $ECHO_C" >&6
17236 cat >conftest.$ac_ext <<_ACEOF
17239 cat confdefs.h >>conftest.$ac_ext
17240 cat >>conftest.$ac_ext <<_ACEOF
17241 /* end confdefs.h. */
17242 #include <sys/types.h>
17243 #include <sys/ptrace.h>
17252 rm -f conftest.$ac_objext
17253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17254 (eval $ac_compile) 2>conftest.er1
17256 grep -v '^ *+' conftest.er1 >conftest.err
17258 cat conftest.err >&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); } &&
17261 { ac_try='test -z "$ac_c_werror_flag"
17262 || test ! -s conftest.err'
17263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; } &&
17268 { ac_try='test -s conftest.$ac_objext'
17269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17270 (eval $ac_try) 2>&5
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); }; }; then
17274 gdb_cv_have_pt_getdbregs=yes
17276 echo "$as_me: failed program was:" >&5
17277 sed 's/^/| /' conftest.$ac_ext >&5
17279 gdb_cv_have_pt_getdbregs=no
17281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17284 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17285 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17286 if test $gdb_cv_have_pt_getdbregs = yes; then
17288 cat >>confdefs.h <<\_ACEOF
17289 #define HAVE_PT_GETDBREGS 1
17294 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17295 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17296 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17297 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
17298 echo $ECHO_N "(cached) $ECHO_C" >&6
17300 cat >conftest.$ac_ext <<_ACEOF
17303 cat confdefs.h >>conftest.$ac_ext
17304 cat >>conftest.$ac_ext <<_ACEOF
17305 /* end confdefs.h. */
17306 #include <sys/types.h>
17307 #include <sys/ptrace.h>
17316 rm -f conftest.$ac_objext
17317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17318 (eval $ac_compile) 2>conftest.er1
17320 grep -v '^ *+' conftest.er1 >conftest.err
17322 cat conftest.err >&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); } &&
17325 { ac_try='test -z "$ac_c_werror_flag"
17326 || test ! -s conftest.err'
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; } &&
17332 { ac_try='test -s conftest.$ac_objext'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; }; then
17338 gdb_cv_have_pt_getxmmregs=yes
17340 echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17343 gdb_cv_have_pt_getxmmregs=no
17345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17348 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17349 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17350 if test $gdb_cv_have_pt_getxmmregs = yes; then
17352 cat >>confdefs.h <<\_ACEOF
17353 #define HAVE_PT_GETXMMREGS 1
17358 # Detect which type of /proc is in use, such as for Unixware or Solaris.
17360 if test "${target}" = "${host}"; then
17362 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
17364 cat >>confdefs.h <<\_ACEOF
17365 #define NEW_PROC_API 1
17369 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
17371 cat >>confdefs.h <<\_ACEOF
17372 #define NEW_PROC_API 1
17377 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17379 cat >>confdefs.h <<\_ACEOF
17380 #define _KMEMUSER 1
17387 if test "$ac_cv_header_sys_procfs_h" = yes; then
17388 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17389 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17390 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17391 echo $ECHO_N "(cached) $ECHO_C" >&6
17393 cat >conftest.$ac_ext <<_ACEOF
17396 cat confdefs.h >>conftest.$ac_ext
17397 cat >>conftest.$ac_ext <<_ACEOF
17398 /* end confdefs.h. */
17401 #include <sys/procfs.h>
17410 rm -f conftest.$ac_objext
17411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17412 (eval $ac_compile) 2>conftest.er1
17414 grep -v '^ *+' conftest.er1 >conftest.err
17416 cat conftest.err >&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); } &&
17419 { ac_try='test -z "$ac_c_werror_flag"
17420 || test ! -s conftest.err'
17421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17422 (eval $ac_try) 2>&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; } &&
17426 { ac_try='test -s conftest.$ac_objext'
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; }; then
17432 bfd_cv_have_sys_procfs_type_pstatus_t=yes
17434 echo "$as_me: failed program was:" >&5
17435 sed 's/^/| /' conftest.$ac_ext >&5
17437 bfd_cv_have_sys_procfs_type_pstatus_t=no
17440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17443 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17445 cat >>confdefs.h <<\_ACEOF
17446 #define HAVE_PSTATUS_T 1
17450 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17451 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17453 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17454 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17455 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17456 echo $ECHO_N "(cached) $ECHO_C" >&6
17458 cat >conftest.$ac_ext <<_ACEOF
17461 cat confdefs.h >>conftest.$ac_ext
17462 cat >>conftest.$ac_ext <<_ACEOF
17463 /* end confdefs.h. */
17466 #include <sys/procfs.h>
17475 rm -f conftest.$ac_objext
17476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17477 (eval $ac_compile) 2>conftest.er1
17479 grep -v '^ *+' conftest.er1 >conftest.err
17481 cat conftest.err >&5
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); } &&
17484 { ac_try='test -z "$ac_c_werror_flag"
17485 || test ! -s conftest.err'
17486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487 (eval $ac_try) 2>&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; } &&
17491 { ac_try='test -s conftest.$ac_objext'
17492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493 (eval $ac_try) 2>&5
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; }; then
17497 bfd_cv_have_sys_procfs_type_prrun_t=yes
17499 echo "$as_me: failed program was:" >&5
17500 sed 's/^/| /' conftest.$ac_ext >&5
17502 bfd_cv_have_sys_procfs_type_prrun_t=no
17505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17508 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17510 cat >>confdefs.h <<\_ACEOF
17511 #define HAVE_PRRUN_T 1
17515 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17516 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17518 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17519 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17520 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17521 echo $ECHO_N "(cached) $ECHO_C" >&6
17523 cat >conftest.$ac_ext <<_ACEOF
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h. */
17531 #include <sys/procfs.h>
17540 rm -f conftest.$ac_objext
17541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17542 (eval $ac_compile) 2>conftest.er1
17544 grep -v '^ *+' conftest.er1 >conftest.err
17546 cat conftest.err >&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); } &&
17549 { ac_try='test -z "$ac_c_werror_flag"
17550 || test ! -s conftest.err'
17551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17552 (eval $ac_try) 2>&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; } &&
17556 { ac_try='test -s conftest.$ac_objext'
17557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17558 (eval $ac_try) 2>&5
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; }; then
17562 bfd_cv_have_sys_procfs_type_gregset_t=yes
17564 echo "$as_me: failed program was:" >&5
17565 sed 's/^/| /' conftest.$ac_ext >&5
17567 bfd_cv_have_sys_procfs_type_gregset_t=no
17570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17573 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17575 cat >>confdefs.h <<\_ACEOF
17576 #define HAVE_GREGSET_T 1
17580 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17581 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17583 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17584 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17585 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17586 echo $ECHO_N "(cached) $ECHO_C" >&6
17588 cat >conftest.$ac_ext <<_ACEOF
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h. */
17596 #include <sys/procfs.h>
17605 rm -f conftest.$ac_objext
17606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17607 (eval $ac_compile) 2>conftest.er1
17609 grep -v '^ *+' conftest.er1 >conftest.err
17611 cat conftest.err >&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } &&
17614 { ac_try='test -z "$ac_c_werror_flag"
17615 || test ! -s conftest.err'
17616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17617 (eval $ac_try) 2>&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); }; } &&
17621 { ac_try='test -s conftest.$ac_objext'
17622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17623 (eval $ac_try) 2>&5
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; }; then
17627 bfd_cv_have_sys_procfs_type_fpregset_t=yes
17629 echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17632 bfd_cv_have_sys_procfs_type_fpregset_t=no
17635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17638 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
17640 cat >>confdefs.h <<\_ACEOF
17641 #define HAVE_FPREGSET_T 1
17645 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17646 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
17648 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17649 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17650 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17651 echo $ECHO_N "(cached) $ECHO_C" >&6
17653 cat >conftest.$ac_ext <<_ACEOF
17656 cat confdefs.h >>conftest.$ac_ext
17657 cat >>conftest.$ac_ext <<_ACEOF
17658 /* end confdefs.h. */
17661 #include <sys/procfs.h>
17670 rm -f conftest.$ac_objext
17671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17672 (eval $ac_compile) 2>conftest.er1
17674 grep -v '^ *+' conftest.er1 >conftest.err
17676 cat conftest.err >&5
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); } &&
17679 { ac_try='test -z "$ac_c_werror_flag"
17680 || test ! -s conftest.err'
17681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17682 (eval $ac_try) 2>&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); }; } &&
17686 { ac_try='test -s conftest.$ac_objext'
17687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688 (eval $ac_try) 2>&5
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); }; }; then
17692 bfd_cv_have_sys_procfs_type_prgregset_t=yes
17694 echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17697 bfd_cv_have_sys_procfs_type_prgregset_t=no
17700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17703 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
17705 cat >>confdefs.h <<\_ACEOF
17706 #define HAVE_PRGREGSET_T 1
17710 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17711 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
17713 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17714 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17715 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17716 echo $ECHO_N "(cached) $ECHO_C" >&6
17718 cat >conftest.$ac_ext <<_ACEOF
17721 cat confdefs.h >>conftest.$ac_ext
17722 cat >>conftest.$ac_ext <<_ACEOF
17723 /* end confdefs.h. */
17726 #include <sys/procfs.h>
17735 rm -f conftest.$ac_objext
17736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17737 (eval $ac_compile) 2>conftest.er1
17739 grep -v '^ *+' conftest.er1 >conftest.err
17741 cat conftest.err >&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); } &&
17744 { ac_try='test -z "$ac_c_werror_flag"
17745 || test ! -s conftest.err'
17746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17747 (eval $ac_try) 2>&5
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); }; } &&
17751 { ac_try='test -s conftest.$ac_objext'
17752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753 (eval $ac_try) 2>&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; }; then
17757 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
17759 echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17762 bfd_cv_have_sys_procfs_type_prfpregset_t=no
17765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17768 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17770 cat >>confdefs.h <<\_ACEOF
17771 #define HAVE_PRFPREGSET_T 1
17775 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17776 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
17778 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17779 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
17780 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17781 echo $ECHO_N "(cached) $ECHO_C" >&6
17783 cat >conftest.$ac_ext <<_ACEOF
17786 cat confdefs.h >>conftest.$ac_ext
17787 cat >>conftest.$ac_ext <<_ACEOF
17788 /* end confdefs.h. */
17791 #include <sys/procfs.h>
17800 rm -f conftest.$ac_objext
17801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17802 (eval $ac_compile) 2>conftest.er1
17804 grep -v '^ *+' conftest.er1 >conftest.err
17806 cat conftest.err >&5
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); } &&
17809 { ac_try='test -z "$ac_c_werror_flag"
17810 || test ! -s conftest.err'
17811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812 (eval $ac_try) 2>&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; } &&
17816 { ac_try='test -s conftest.$ac_objext'
17817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818 (eval $ac_try) 2>&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); }; }; then
17822 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
17824 echo "$as_me: failed program was:" >&5
17825 sed 's/^/| /' conftest.$ac_ext >&5
17827 bfd_cv_have_sys_procfs_type_prgregset32_t=no
17830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17833 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
17835 cat >>confdefs.h <<\_ACEOF
17836 #define HAVE_PRGREGSET32_T 1
17840 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
17841 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
17843 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
17844 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
17845 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
17846 echo $ECHO_N "(cached) $ECHO_C" >&6
17848 cat >conftest.$ac_ext <<_ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17856 #include <sys/procfs.h>
17860 prfpregset32_t avar
17865 rm -f conftest.$ac_objext
17866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17867 (eval $ac_compile) 2>conftest.er1
17869 grep -v '^ *+' conftest.er1 >conftest.err
17871 cat conftest.err >&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } &&
17874 { ac_try='test -z "$ac_c_werror_flag"
17875 || test ! -s conftest.err'
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; } &&
17881 { ac_try='test -s conftest.$ac_objext'
17882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883 (eval $ac_try) 2>&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; }; then
17887 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
17889 echo "$as_me: failed program was:" >&5
17890 sed 's/^/| /' conftest.$ac_ext >&5
17892 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
17895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17898 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
17900 cat >>confdefs.h <<\_ACEOF
17901 #define HAVE_PRFPREGSET32_T 1
17905 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
17906 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
17908 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
17909 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
17910 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
17911 echo $ECHO_N "(cached) $ECHO_C" >&6
17913 cat >conftest.$ac_ext <<_ACEOF
17916 cat confdefs.h >>conftest.$ac_ext
17917 cat >>conftest.$ac_ext <<_ACEOF
17918 /* end confdefs.h. */
17921 #include <sys/procfs.h>
17930 rm -f conftest.$ac_objext
17931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17932 (eval $ac_compile) 2>conftest.er1
17934 grep -v '^ *+' conftest.er1 >conftest.err
17936 cat conftest.err >&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } &&
17939 { ac_try='test -z "$ac_c_werror_flag"
17940 || test ! -s conftest.err'
17941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17942 (eval $ac_try) 2>&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; } &&
17946 { ac_try='test -s conftest.$ac_objext'
17947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948 (eval $ac_try) 2>&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); }; }; then
17952 bfd_cv_have_sys_procfs_type_lwpid_t=yes
17954 echo "$as_me: failed program was:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17957 bfd_cv_have_sys_procfs_type_lwpid_t=no
17960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17963 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
17965 cat >>confdefs.h <<\_ACEOF
17966 #define HAVE_LWPID_T 1
17970 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
17971 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
17973 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
17974 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
17975 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
17976 echo $ECHO_N "(cached) $ECHO_C" >&6
17978 cat >conftest.$ac_ext <<_ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h. */
17986 #include <sys/procfs.h>
17995 rm -f conftest.$ac_objext
17996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17997 (eval $ac_compile) 2>conftest.er1
17999 grep -v '^ *+' conftest.er1 >conftest.err
18001 cat conftest.err >&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); } &&
18004 { ac_try='test -z "$ac_c_werror_flag"
18005 || test ! -s conftest.err'
18006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007 (eval $ac_try) 2>&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; } &&
18011 { ac_try='test -s conftest.$ac_objext'
18012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013 (eval $ac_try) 2>&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; }; then
18017 bfd_cv_have_sys_procfs_type_psaddr_t=yes
18019 echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18022 bfd_cv_have_sys_procfs_type_psaddr_t=no
18025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18028 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
18030 cat >>confdefs.h <<\_ACEOF
18031 #define HAVE_PSADDR_T 1
18035 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18036 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
18038 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18039 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18040 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18041 echo $ECHO_N "(cached) $ECHO_C" >&6
18043 cat >conftest.$ac_ext <<_ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h. */
18051 #include <sys/procfs.h>
18060 rm -f conftest.$ac_objext
18061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18062 (eval $ac_compile) 2>conftest.er1
18064 grep -v '^ *+' conftest.er1 >conftest.err
18066 cat conftest.err >&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } &&
18069 { ac_try='test -z "$ac_c_werror_flag"
18070 || test ! -s conftest.err'
18071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072 (eval $ac_try) 2>&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; } &&
18076 { ac_try='test -s conftest.$ac_objext'
18077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18078 (eval $ac_try) 2>&5
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); }; }; then
18082 bfd_cv_have_sys_procfs_type_prsysent_t=yes
18084 echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18087 bfd_cv_have_sys_procfs_type_prsysent_t=no
18090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18093 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18095 cat >>confdefs.h <<\_ACEOF
18096 #define HAVE_PRSYSENT_T 1
18100 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18101 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18103 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18104 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18105 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18108 cat >conftest.$ac_ext <<_ACEOF
18111 cat confdefs.h >>conftest.$ac_ext
18112 cat >>conftest.$ac_ext <<_ACEOF
18113 /* end confdefs.h. */
18116 #include <sys/procfs.h>
18125 rm -f conftest.$ac_objext
18126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18127 (eval $ac_compile) 2>conftest.er1
18129 grep -v '^ *+' conftest.er1 >conftest.err
18131 cat conftest.err >&5
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); } &&
18134 { ac_try='test -z "$ac_c_werror_flag"
18135 || test ! -s conftest.err'
18136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18137 (eval $ac_try) 2>&5
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); }; } &&
18141 { ac_try='test -s conftest.$ac_objext'
18142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18143 (eval $ac_try) 2>&5
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); }; }; then
18147 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
18149 echo "$as_me: failed program was:" >&5
18150 sed 's/^/| /' conftest.$ac_ext >&5
18152 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18158 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18160 cat >>confdefs.h <<\_ACEOF
18161 #define HAVE_PR_SIGSET_T 1
18165 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18166 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18168 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18169 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18170 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18171 echo $ECHO_N "(cached) $ECHO_C" >&6
18173 cat >conftest.$ac_ext <<_ACEOF
18176 cat confdefs.h >>conftest.$ac_ext
18177 cat >>conftest.$ac_ext <<_ACEOF
18178 /* end confdefs.h. */
18181 #include <sys/procfs.h>
18185 pr_sigaction64_t avar
18190 rm -f conftest.$ac_objext
18191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18192 (eval $ac_compile) 2>conftest.er1
18194 grep -v '^ *+' conftest.er1 >conftest.err
18196 cat conftest.err >&5
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); } &&
18199 { ac_try='test -z "$ac_c_werror_flag"
18200 || test ! -s conftest.err'
18201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18202 (eval $ac_try) 2>&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; } &&
18206 { ac_try='test -s conftest.$ac_objext'
18207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18208 (eval $ac_try) 2>&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); }; }; then
18212 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
18214 echo "$as_me: failed program was:" >&5
18215 sed 's/^/| /' conftest.$ac_ext >&5
18217 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18223 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18225 cat >>confdefs.h <<\_ACEOF
18226 #define HAVE_PR_SIGACTION64_T 1
18230 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18231 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18233 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18234 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18235 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18236 echo $ECHO_N "(cached) $ECHO_C" >&6
18238 cat >conftest.$ac_ext <<_ACEOF
18241 cat confdefs.h >>conftest.$ac_ext
18242 cat >>conftest.$ac_ext <<_ACEOF
18243 /* end confdefs.h. */
18246 #include <sys/procfs.h>
18250 pr_siginfo64_t avar
18255 rm -f conftest.$ac_objext
18256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18257 (eval $ac_compile) 2>conftest.er1
18259 grep -v '^ *+' conftest.er1 >conftest.err
18261 cat conftest.err >&5
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); } &&
18264 { ac_try='test -z "$ac_c_werror_flag"
18265 || test ! -s conftest.err'
18266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18267 (eval $ac_try) 2>&5
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; } &&
18271 { ac_try='test -s conftest.$ac_objext'
18272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18273 (eval $ac_try) 2>&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); }; }; then
18277 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18279 echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18282 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18288 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18290 cat >>confdefs.h <<\_ACEOF
18291 #define HAVE_PR_SIGINFO64_T 1
18295 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18296 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18302 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18303 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18304 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18305 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18306 echo $ECHO_N "(cached) $ECHO_C" >&6
18308 if test "$cross_compiling" = yes; then
18309 gdb_cv_prfpregset_t_broken=yes
18311 cat >conftest.$ac_ext <<_ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h. */
18317 #include <sys/procfs.h>
18320 if (sizeof (prfpregset_t) == sizeof (void *))
18325 rm -f conftest$ac_exeext
18326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18327 (eval $ac_link) 2>&5
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18332 (eval $ac_try) 2>&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); }; }; then
18336 gdb_cv_prfpregset_t_broken=no
18338 echo "$as_me: program exited with status $ac_status" >&5
18339 echo "$as_me: failed program was:" >&5
18340 sed 's/^/| /' conftest.$ac_ext >&5
18342 ( exit $ac_status )
18343 gdb_cv_prfpregset_t_broken=yes
18345 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18349 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18350 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18351 if test $gdb_cv_prfpregset_t_broken = yes; then
18353 cat >>confdefs.h <<\_ACEOF
18354 #define PRFPREGSET_T_BROKEN 1
18361 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18362 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18363 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18364 echo $ECHO_N "(cached) $ECHO_C" >&6
18366 cat >conftest.$ac_ext <<_ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18372 #include <unistd.h>
18373 #include <sys/types.h>
18374 #include <sys/procfs.h>
18381 dummy = ioctl(0, PIOCSET, &dummy);
18387 rm -f conftest.$ac_objext
18388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18389 (eval $ac_compile) 2>conftest.er1
18391 grep -v '^ *+' conftest.er1 >conftest.err
18393 cat conftest.err >&5
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } &&
18396 { ac_try='test -z "$ac_c_werror_flag"
18397 || test ! -s conftest.err'
18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399 (eval $ac_try) 2>&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); }; } &&
18403 { ac_try='test -s conftest.$ac_objext'
18404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405 (eval $ac_try) 2>&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; }; then
18409 gdb_cv_have_procfs_piocset=yes
18411 echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18414 gdb_cv_have_procfs_piocset=no
18416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18419 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18420 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18421 if test $gdb_cv_have_procfs_piocset = yes; then
18423 cat >>confdefs.h <<\_ACEOF
18424 #define HAVE_PROCFS_PIOCSET 1
18430 if test ${host} = ${target} ; then
18432 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18433 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18434 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18435 echo $ECHO_N "(cached) $ECHO_C" >&6
18437 cat >conftest.$ac_ext <<_ACEOF
18440 cat confdefs.h >>conftest.$ac_ext
18441 cat >>conftest.$ac_ext <<_ACEOF
18442 /* end confdefs.h. */
18447 struct link_map lm; (void) lm.l_addr;
18452 rm -f conftest.$ac_objext
18453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18454 (eval $ac_compile) 2>conftest.er1
18456 grep -v '^ *+' conftest.er1 >conftest.err
18458 cat conftest.err >&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); } &&
18461 { ac_try='test -z "$ac_c_werror_flag"
18462 || test ! -s conftest.err'
18463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18464 (eval $ac_try) 2>&5
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); }; } &&
18468 { ac_try='test -s conftest.$ac_objext'
18469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470 (eval $ac_try) 2>&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; }; then
18474 gdb_cv_have_struct_link_map_with_l_members=yes
18476 echo "$as_me: failed program was:" >&5
18477 sed 's/^/| /' conftest.$ac_ext >&5
18479 gdb_cv_have_struct_link_map_with_l_members=no
18481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18484 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18485 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18486 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18488 cat >>confdefs.h <<\_ACEOF
18489 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18495 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18496 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18497 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18498 echo $ECHO_N "(cached) $ECHO_C" >&6
18500 cat >conftest.$ac_ext <<_ACEOF
18503 cat confdefs.h >>conftest.$ac_ext
18504 cat >>conftest.$ac_ext <<_ACEOF
18505 /* end confdefs.h. */
18506 #include <sys/types.h>
18511 struct link_map lm; (void) lm.lm_addr;
18516 rm -f conftest.$ac_objext
18517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18518 (eval $ac_compile) 2>conftest.er1
18520 grep -v '^ *+' conftest.er1 >conftest.err
18522 cat conftest.err >&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } &&
18525 { ac_try='test -z "$ac_c_werror_flag"
18526 || test ! -s conftest.err'
18527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528 (eval $ac_try) 2>&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; } &&
18532 { ac_try='test -s conftest.$ac_objext'
18533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18534 (eval $ac_try) 2>&5
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; }; then
18538 gdb_cv_have_struct_link_map_with_lm_members=yes
18540 echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18543 gdb_cv_have_struct_link_map_with_lm_members=no
18545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18548 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18549 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18550 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18552 cat >>confdefs.h <<\_ACEOF
18553 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18559 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18560 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18561 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
18564 cat >conftest.$ac_ext <<_ACEOF
18567 cat confdefs.h >>conftest.$ac_ext
18568 cat >>conftest.$ac_ext <<_ACEOF
18569 /* end confdefs.h. */
18570 #include <sys/types.h>
18571 #ifdef HAVE_NLIST_H
18578 struct so_map lm; (void) lm.som_addr;
18583 rm -f conftest.$ac_objext
18584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18585 (eval $ac_compile) 2>conftest.er1
18587 grep -v '^ *+' conftest.er1 >conftest.err
18589 cat conftest.err >&5
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); } &&
18592 { ac_try='test -z "$ac_c_werror_flag"
18593 || test ! -s conftest.err'
18594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18595 (eval $ac_try) 2>&5
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; } &&
18599 { ac_try='test -s conftest.$ac_objext'
18600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18601 (eval $ac_try) 2>&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); }; }; then
18605 gdb_cv_have_struct_so_map_with_som_members=yes
18607 echo "$as_me: failed program was:" >&5
18608 sed 's/^/| /' conftest.$ac_ext >&5
18610 gdb_cv_have_struct_so_map_with_som_members=no
18612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18615 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18616 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
18617 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
18619 cat >>confdefs.h <<\_ACEOF
18620 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
18626 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18627 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18628 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18629 echo $ECHO_N "(cached) $ECHO_C" >&6
18631 cat >conftest.$ac_ext <<_ACEOF
18634 cat confdefs.h >>conftest.$ac_ext
18635 cat >>conftest.$ac_ext <<_ACEOF
18636 /* end confdefs.h. */
18638 #include <sys/link.h>
18642 struct link_map32 l;
18647 rm -f conftest.$ac_objext
18648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18649 (eval $ac_compile) 2>conftest.er1
18651 grep -v '^ *+' conftest.er1 >conftest.err
18653 cat conftest.err >&5
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); } &&
18656 { ac_try='test -z "$ac_c_werror_flag"
18657 || test ! -s conftest.err'
18658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18659 (eval $ac_try) 2>&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); }; } &&
18663 { ac_try='test -s conftest.$ac_objext'
18664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18665 (eval $ac_try) 2>&5
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); }; }; then
18669 gdb_cv_have_struct_link_map32=yes
18671 echo "$as_me: failed program was:" >&5
18672 sed 's/^/| /' conftest.$ac_ext >&5
18674 gdb_cv_have_struct_link_map32=no
18676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18679 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18680 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
18681 if test $gdb_cv_have_struct_link_map32 = yes; then
18683 cat >>confdefs.h <<\_ACEOF
18684 #define HAVE_STRUCT_LINK_MAP32 1
18688 cat >>confdefs.h <<\_ACEOF
18689 #define _SYSCALL32 1
18695 # Check if the compiler supports the `long long' type.
18697 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18698 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18699 if test "${gdb_cv_c_long_long+set}" = set; then
18700 echo $ECHO_N "(cached) $ECHO_C" >&6
18702 cat >conftest.$ac_ext <<_ACEOF
18705 cat confdefs.h >>conftest.$ac_ext
18706 cat >>conftest.$ac_ext <<_ACEOF
18707 /* end confdefs.h. */
18708 extern long long foo;
18712 switch (foo & 2) { case 0: return 1; }
18717 rm -f conftest.$ac_objext
18718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18719 (eval $ac_compile) 2>conftest.er1
18721 grep -v '^ *+' conftest.er1 >conftest.err
18723 cat conftest.err >&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } &&
18726 { ac_try='test -z "$ac_c_werror_flag"
18727 || test ! -s conftest.err'
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; } &&
18733 { ac_try='test -s conftest.$ac_objext'
18734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735 (eval $ac_try) 2>&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; }; then
18739 gdb_cv_c_long_long=yes
18741 echo "$as_me: failed program was:" >&5
18742 sed 's/^/| /' conftest.$ac_ext >&5
18744 gdb_cv_c_long_long=no
18746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18748 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18749 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
18750 if test $gdb_cv_c_long_long = yes; then
18752 cat >>confdefs.h <<\_ACEOF
18753 #define CC_HAS_LONG_LONG 1
18758 # Check if the compiler and runtime support printing long longs.
18760 echo "$as_me:$LINENO: checking for long long support in printf" >&5
18761 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18762 if test "${gdb_cv_printf_has_long_long+set}" = set; then
18763 echo $ECHO_N "(cached) $ECHO_C" >&6
18765 if test "$cross_compiling" = yes; then
18766 gdb_cv_printf_has_long_long=no
18768 cat >conftest.$ac_ext <<_ACEOF
18771 cat confdefs.h >>conftest.$ac_ext
18772 cat >>conftest.$ac_ext <<_ACEOF
18773 /* end confdefs.h. */
18774 $ac_includes_default
18780 l = (l << 16) + 0x0123;
18781 l = (l << 16) + 0x4567;
18782 l = (l << 16) + 0x89ab;
18783 l = (l << 16) + 0xcdef;
18784 sprintf (buf, "0x%016llx", l);
18785 return (strcmp ("0x0123456789abcdef", buf));
18790 rm -f conftest$ac_exeext
18791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18792 (eval $ac_link) 2>&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18797 (eval $ac_try) 2>&5
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; }; then
18801 gdb_cv_printf_has_long_long=yes
18803 echo "$as_me: program exited with status $ac_status" >&5
18804 echo "$as_me: failed program was:" >&5
18805 sed 's/^/| /' conftest.$ac_ext >&5
18807 ( exit $ac_status )
18808 gdb_cv_printf_has_long_long=no
18810 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18813 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18814 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
18815 if test $gdb_cv_printf_has_long_long = yes; then
18817 cat >>confdefs.h <<\_ACEOF
18818 #define PRINTF_HAS_LONG_LONG 1
18823 # Check if the compiler and runtime support printing decfloats.
18825 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
18826 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
18827 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
18828 echo $ECHO_N "(cached) $ECHO_C" >&6
18830 if test "$cross_compiling" = yes; then
18831 gdb_cv_printf_has_decfloat=no
18833 cat >conftest.$ac_ext <<_ACEOF
18836 cat confdefs.h >>conftest.$ac_ext
18837 cat >>conftest.$ac_ext <<_ACEOF
18838 /* end confdefs.h. */
18839 $ac_includes_default
18844 _Decimal32 d32 = 1.2345df;
18845 _Decimal64 d64 = 1.2345dd;
18846 _Decimal128 d128 = 1.2345dl;
18847 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
18848 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
18853 rm -f conftest$ac_exeext
18854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18855 (eval $ac_link) 2>&5
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18860 (eval $ac_try) 2>&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); }; }; then
18864 gdb_cv_printf_has_decfloat=yes
18866 echo "$as_me: program exited with status $ac_status" >&5
18867 echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18870 ( exit $ac_status )
18871 gdb_cv_printf_has_decfloat=no
18873 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18876 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
18877 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
18878 if test $gdb_cv_printf_has_decfloat = yes; then
18880 cat >>confdefs.h <<\_ACEOF
18881 #define PRINTF_HAS_DECFLOAT 1
18886 # Check if the compiler supports the `long double' type. We can't use
18887 # AC_C_LONG_DOUBLE because that one does additional checks on the
18888 # constants defined in <float.h> that fail on some systems,
18889 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
18891 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
18892 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
18893 if test "${gdb_cv_c_long_double+set}" = set; then
18894 echo $ECHO_N "(cached) $ECHO_C" >&6
18896 cat >conftest.$ac_ext <<_ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h. */
18904 rm -f conftest.$ac_objext
18905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18906 (eval $ac_compile) 2>conftest.er1
18908 grep -v '^ *+' conftest.er1 >conftest.err
18910 cat conftest.err >&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); } &&
18913 { ac_try='test -z "$ac_c_werror_flag"
18914 || test ! -s conftest.err'
18915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18916 (eval $ac_try) 2>&5
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); }; } &&
18920 { ac_try='test -s conftest.$ac_objext'
18921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18922 (eval $ac_try) 2>&5
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; }; then
18926 gdb_cv_c_long_double=yes
18928 echo "$as_me: failed program was:" >&5
18929 sed 's/^/| /' conftest.$ac_ext >&5
18931 gdb_cv_c_long_double=no
18933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18935 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
18936 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
18937 if test $gdb_cv_c_long_double = yes; then
18939 cat >>confdefs.h <<\_ACEOF
18940 #define HAVE_LONG_DOUBLE 1
18945 # Check if the compiler and runtime support printing long doubles.
18947 echo "$as_me:$LINENO: checking for long double support in printf" >&5
18948 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
18949 if test "${gdb_cv_printf_has_long_double+set}" = set; then
18950 echo $ECHO_N "(cached) $ECHO_C" >&6
18952 if test "$cross_compiling" = yes; then
18953 gdb_cv_printf_has_long_double=no
18955 cat >conftest.$ac_ext <<_ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h. */
18961 $ac_includes_default
18966 long double f = 3.141592653;
18967 sprintf (buf, "%Lg", f);
18968 return (strncmp ("3.14159", buf, 7));
18973 rm -f conftest$ac_exeext
18974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18975 (eval $ac_link) 2>&5
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18980 (eval $ac_try) 2>&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }; }; then
18984 gdb_cv_printf_has_long_double=yes
18986 echo "$as_me: program exited with status $ac_status" >&5
18987 echo "$as_me: failed program was:" >&5
18988 sed 's/^/| /' conftest.$ac_ext >&5
18990 ( exit $ac_status )
18991 gdb_cv_printf_has_long_double=no
18993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18996 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
18997 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
18998 if test $gdb_cv_printf_has_long_double = yes; then
19000 cat >>confdefs.h <<\_ACEOF
19001 #define PRINTF_HAS_LONG_DOUBLE 1
19006 # Check if the compiler and runtime support scanning long doubles.
19008 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19009 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19010 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19011 echo $ECHO_N "(cached) $ECHO_C" >&6
19013 if test "$cross_compiling" = yes; then
19014 gdb_cv_scanf_has_long_double=no
19016 cat >conftest.$ac_ext <<_ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h. */
19026 char *buf = "3.141592653";
19028 sscanf (buf, "%Lg", &f);
19029 return !(f > 3.14159 && f < 3.14160);
19034 rm -f conftest$ac_exeext
19035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19036 (eval $ac_link) 2>&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041 (eval $ac_try) 2>&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; }; then
19045 gdb_cv_scanf_has_long_double=yes
19047 echo "$as_me: program exited with status $ac_status" >&5
19048 echo "$as_me: failed program was:" >&5
19049 sed 's/^/| /' conftest.$ac_ext >&5
19051 ( exit $ac_status )
19052 gdb_cv_scanf_has_long_double=no
19054 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19057 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19058 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19059 if test $gdb_cv_scanf_has_long_double = yes; then
19061 cat >>confdefs.h <<\_ACEOF
19062 #define SCANF_HAS_LONG_DOUBLE 1
19069 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19070 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19071 if test "${gdb_cv_bigtoc+set}" = set; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19075 SAVE_LDFLAGS=$LDFLAGS
19078 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19079 *) gdb_cv_bigtoc=-bbigtoc ;;
19082 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
19083 cat >conftest.$ac_ext <<_ACEOF
19086 cat confdefs.h >>conftest.$ac_ext
19087 cat >>conftest.$ac_ext <<_ACEOF
19088 /* end confdefs.h. */
19098 rm -f conftest.$ac_objext conftest$ac_exeext
19099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19100 (eval $ac_link) 2>conftest.er1
19102 grep -v '^ *+' conftest.er1 >conftest.err
19104 cat conftest.err >&5
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); } &&
19107 { ac_try='test -z "$ac_c_werror_flag"
19108 || test ! -s conftest.err'
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; } &&
19114 { ac_try='test -s conftest$ac_exeext'
19115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; }; then
19122 echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19127 rm -f conftest.err conftest.$ac_objext \
19128 conftest$ac_exeext conftest.$ac_ext
19129 LDFLAGS="${SAVE_LDFLAGS}"
19132 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19133 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19134 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19140 if test ${build} = ${host} -a ${host} = ${target} ; then
19143 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19144 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19145 if test -f /usr/include/dce/cma_config.h ; then
19146 if test "$GCC" = "yes" ; then
19147 echo "$as_me:$LINENO: result: yes" >&5
19148 echo "${ECHO_T}yes" >&6
19150 cat >>confdefs.h <<\_ACEOF
19151 #define HAVE_HPUX_THREAD_SUPPORT 1
19154 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
19155 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19157 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19158 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19161 echo "$as_me:$LINENO: result: no" >&5
19162 echo "${ECHO_T}no" >&6
19166 # See if thread_db library is around for Solaris thread debugging.
19167 # Note that we must explicitly test for version 1 of the library
19168 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19170 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19171 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19172 if test -f /usr/lib/libthread_db.so.1 ; then
19173 echo "$as_me:$LINENO: result: yes" >&5
19174 echo "${ECHO_T}yes" >&6
19176 cat >>confdefs.h <<\_ACEOF
19177 #define HAVE_THREAD_DB_LIB 1
19180 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
19181 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
19183 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19184 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19185 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19186 echo $ECHO_N "(cached) $ECHO_C" >&6
19188 ac_check_lib_save_LIBS=$LIBS
19190 cat >conftest.$ac_ext <<_ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h. */
19197 /* Override any gcc2 internal prototype to avoid an error. */
19201 /* We use char because int might match the return type of a gcc2
19202 builtin and then its argument prototype would still apply. */
19212 rm -f conftest.$ac_objext conftest$ac_exeext
19213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19214 (eval $ac_link) 2>conftest.er1
19216 grep -v '^ *+' conftest.er1 >conftest.err
19218 cat conftest.err >&5
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); } &&
19221 { ac_try='test -z "$ac_c_werror_flag"
19222 || test ! -s conftest.err'
19223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224 (eval $ac_try) 2>&5
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; } &&
19228 { ac_try='test -s conftest$ac_exeext'
19229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19230 (eval $ac_try) 2>&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); }; }; then
19234 ac_cv_lib_dl_dlopen=yes
19236 echo "$as_me: failed program was:" >&5
19237 sed 's/^/| /' conftest.$ac_ext >&5
19239 ac_cv_lib_dl_dlopen=no
19241 rm -f conftest.err conftest.$ac_objext \
19242 conftest$ac_exeext conftest.$ac_ext
19243 LIBS=$ac_check_lib_save_LIBS
19245 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19246 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19247 if test $ac_cv_lib_dl_dlopen = yes; then
19248 cat >>confdefs.h <<_ACEOF
19249 #define HAVE_LIBDL 1
19256 if test "$GCC" = "yes" ; then
19257 # The GNU linker requires the -export-dynamic option to make
19258 # all symbols visible in the dynamic symbol table.
19259 hold_ldflags=$LDFLAGS
19260 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19261 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19262 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
19263 cat >conftest.$ac_ext <<_ACEOF
19266 cat confdefs.h >>conftest.$ac_ext
19267 cat >>conftest.$ac_ext <<_ACEOF
19268 /* end confdefs.h. */
19278 rm -f conftest.$ac_objext conftest$ac_exeext
19279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19280 (eval $ac_link) 2>conftest.er1
19282 grep -v '^ *+' conftest.er1 >conftest.err
19284 cat conftest.err >&5
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); } &&
19287 { ac_try='test -z "$ac_c_werror_flag"
19288 || test ! -s conftest.err'
19289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19290 (eval $ac_try) 2>&5
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; } &&
19294 { ac_try='test -s conftest$ac_exeext'
19295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296 (eval $ac_try) 2>&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; }; then
19302 echo "$as_me: failed program was:" >&5
19303 sed 's/^/| /' conftest.$ac_ext >&5
19307 rm -f conftest.err conftest.$ac_objext \
19308 conftest$ac_exeext conftest.$ac_ext
19309 LDFLAGS=$hold_ldflags
19310 echo "$as_me:$LINENO: result: $found" >&5
19311 echo "${ECHO_T}$found" >&6
19312 if test $found = yes; then
19313 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19316 # Sun randomly tweaked the prototypes in <proc_service.h>
19318 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19319 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19320 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19321 echo $ECHO_N "(cached) $ECHO_C" >&6
19324 cat >conftest.$ac_ext <<_ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h. */
19331 #include <proc_service.h>
19332 ps_err_e ps_pdwrite
19333 (struct ps_prochandle*, psaddr_t, const void*, size_t);
19343 rm -f conftest.$ac_objext
19344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19345 (eval $ac_compile) 2>conftest.er1
19347 grep -v '^ *+' conftest.er1 >conftest.err
19349 cat conftest.err >&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } &&
19352 { ac_try='test -z "$ac_c_werror_flag"
19353 || test ! -s conftest.err'
19354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355 (eval $ac_try) 2>&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); }; } &&
19359 { ac_try='test -s conftest.$ac_objext'
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; }; then
19365 gdb_cv_proc_service_is_old=no
19367 echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19370 gdb_cv_proc_service_is_old=yes
19372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19376 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19377 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19378 if test $gdb_cv_proc_service_is_old = yes; then
19380 cat >>confdefs.h <<\_ACEOF
19381 #define PROC_SERVICE_IS_OLD 1
19386 echo "$as_me:$LINENO: result: no" >&5
19387 echo "${ECHO_T}no" >&6
19391 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19392 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19393 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19394 echo $ECHO_N "(cached) $ECHO_C" >&6
19396 cat >conftest.$ac_ext <<_ACEOF
19399 cat confdefs.h >>conftest.$ac_ext
19400 cat >>conftest.$ac_ext <<_ACEOF
19401 /* end confdefs.h. */
19402 #include <sys/pthdebug.h>
19406 #ifndef PTHDB_VERSION_3
19413 rm -f conftest.$ac_objext
19414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19415 (eval $ac_compile) 2>conftest.er1
19417 grep -v '^ *+' conftest.er1 >conftest.err
19419 cat conftest.err >&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); } &&
19422 { ac_try='test -z "$ac_c_werror_flag"
19423 || test ! -s conftest.err'
19424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19425 (eval $ac_try) 2>&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; } &&
19429 { ac_try='test -s conftest.$ac_objext'
19430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431 (eval $ac_try) 2>&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; }; then
19435 gdb_cv_have_aix_thread_debug=yes
19437 echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19440 gdb_cv_have_aix_thread_debug=no
19442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19445 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19446 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19447 if test $gdb_cv_have_aix_thread_debug = yes; then
19448 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
19449 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
19450 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19457 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19458 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19459 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19460 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19461 echo $ECHO_N "(cached) $ECHO_C" >&6
19463 cat >conftest.$ac_ext <<_ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h. */
19469 #include <thread_db.h>
19473 int i = TD_NOTALLOC;
19478 rm -f conftest.$ac_objext
19479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19480 (eval $ac_compile) 2>conftest.er1
19482 grep -v '^ *+' conftest.er1 >conftest.err
19484 cat conftest.err >&5
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); } &&
19487 { ac_try='test -z "$ac_c_werror_flag"
19488 || test ! -s conftest.err'
19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; } &&
19494 { ac_try='test -s conftest.$ac_objext'
19495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496 (eval $ac_try) 2>&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; }; then
19500 gdb_cv_thread_db_h_has_td_notalloc=yes
19502 echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19505 gdb_cv_thread_db_h_has_td_notalloc=no
19508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19511 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19512 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19513 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
19514 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
19515 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
19516 echo $ECHO_N "(cached) $ECHO_C" >&6
19518 cat >conftest.$ac_ext <<_ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h. */
19524 #include <thread_db.h>
19528 int i = TD_VERSION;
19533 rm -f conftest.$ac_objext
19534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19535 (eval $ac_compile) 2>conftest.er1
19537 grep -v '^ *+' conftest.er1 >conftest.err
19539 cat conftest.err >&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); } &&
19542 { ac_try='test -z "$ac_c_werror_flag"
19543 || test ! -s conftest.err'
19544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19545 (eval $ac_try) 2>&5
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; } &&
19549 { ac_try='test -s conftest.$ac_objext'
19550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19551 (eval $ac_try) 2>&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; }; then
19555 gdb_cv_thread_db_h_has_td_version=yes
19557 echo "$as_me: failed program was:" >&5
19558 sed 's/^/| /' conftest.$ac_ext >&5
19560 gdb_cv_thread_db_h_has_td_version=no
19563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19566 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
19567 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
19568 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
19569 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
19570 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19573 cat >conftest.$ac_ext <<_ACEOF
19576 cat confdefs.h >>conftest.$ac_ext
19577 cat >>conftest.$ac_ext <<_ACEOF
19578 /* end confdefs.h. */
19579 #include <thread_db.h>
19588 rm -f conftest.$ac_objext
19589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19590 (eval $ac_compile) 2>conftest.er1
19592 grep -v '^ *+' conftest.er1 >conftest.err
19594 cat conftest.err >&5
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); } &&
19597 { ac_try='test -z "$ac_c_werror_flag"
19598 || test ! -s conftest.err'
19599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600 (eval $ac_try) 2>&5
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }; } &&
19604 { ac_try='test -s conftest.$ac_objext'
19605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606 (eval $ac_try) 2>&5
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); }; }; then
19610 gdb_cv_thread_db_h_has_td_notls=yes
19612 echo "$as_me: failed program was:" >&5
19613 sed 's/^/| /' conftest.$ac_ext >&5
19615 gdb_cv_thread_db_h_has_td_notls=no
19618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19621 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
19622 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
19624 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19626 cat >>confdefs.h <<\_ACEOF
19627 #define THREAD_DB_HAS_TD_NOTALLOC 1
19631 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
19633 cat >>confdefs.h <<\_ACEOF
19634 #define THREAD_DB_HAS_TD_VERSION 1
19638 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
19640 cat >>confdefs.h <<\_ACEOF
19641 #define THREAD_DB_HAS_TD_NOTLS 1
19646 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19647 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19648 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19649 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19650 echo $ECHO_N "(cached) $ECHO_C" >&6
19652 cat >conftest.$ac_ext <<_ACEOF
19655 cat confdefs.h >>conftest.$ac_ext
19656 cat >>conftest.$ac_ext <<_ACEOF
19657 /* end confdefs.h. */
19658 #include <sys/syscall.h>
19662 int i = __NR_tkill;
19667 rm -f conftest.$ac_objext
19668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19669 (eval $ac_compile) 2>conftest.er1
19671 grep -v '^ *+' conftest.er1 >conftest.err
19673 cat conftest.err >&5
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); } &&
19676 { ac_try='test -z "$ac_c_werror_flag"
19677 || test ! -s conftest.err'
19678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679 (eval $ac_try) 2>&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; } &&
19683 { ac_try='test -s conftest.$ac_objext'
19684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685 (eval $ac_try) 2>&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }; }; then
19689 gdb_cv_sys_syscall_h_has_tkill=yes
19691 echo "$as_me: failed program was:" >&5
19692 sed 's/^/| /' conftest.$ac_ext >&5
19694 gdb_cv_sys_syscall_h_has_tkill=no
19697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19700 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19701 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19703 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19705 cat >>confdefs.h <<\_ACEOF
19706 #define HAVE_TKILL_SYSCALL 1
19711 echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
19712 echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
19713 if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
19714 echo $ECHO_N "(cached) $ECHO_C" >&6
19716 cat >conftest.$ac_ext <<_ACEOF
19719 cat confdefs.h >>conftest.$ac_ext
19720 cat >>conftest.$ac_ext <<_ACEOF
19721 /* end confdefs.h. */
19722 #include <sys/personality.h>
19727 #ifndef ADDR_NO_RANDOMIZE
19728 char *p = (char *) ADDR_NO_RANDOMIZE;
19735 rm -f conftest.$ac_objext
19736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19737 (eval $ac_compile) 2>conftest.er1
19739 grep -v '^ *+' conftest.er1 >conftest.err
19741 cat conftest.err >&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } &&
19744 { ac_try='test -z "$ac_c_werror_flag"
19745 || test ! -s conftest.err'
19746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747 (eval $ac_try) 2>&5
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); }; } &&
19751 { ac_try='test -s conftest.$ac_objext'
19752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753 (eval $ac_try) 2>&5
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; }; then
19757 ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
19759 echo "$as_me: failed program was:" >&5
19760 sed 's/^/| /' conftest.$ac_ext >&5
19762 ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
19764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19766 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
19767 echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
19768 if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
19770 cat >>confdefs.h <<_ACEOF
19771 #define HAVE_DECL_ADDR_NO_RANDOMIZE 1
19776 cat >>confdefs.h <<_ACEOF
19777 #define HAVE_DECL_ADDR_NO_RANDOMIZE 0
19785 if test "$cross_compiling" = yes; then
19786 cat >conftest.$ac_ext <<_ACEOF
19789 cat confdefs.h >>conftest.$ac_ext
19790 cat >>conftest.$ac_ext <<_ACEOF
19791 /* end confdefs.h. */
19792 #include <sys/personality.h>
19797 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
19798 # define ADDR_NO_RANDOMIZE 0x0040000
19800 /* Test the flag could be set and stays set. */
19801 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19802 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19808 rm -f conftest.$ac_objext conftest$ac_exeext
19809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19810 (eval $ac_link) 2>conftest.er1
19812 grep -v '^ *+' conftest.er1 >conftest.err
19814 cat conftest.err >&5
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); } &&
19817 { ac_try='test -z "$ac_c_werror_flag"
19818 || test ! -s conftest.err'
19819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820 (eval $ac_try) 2>&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; } &&
19824 { ac_try='test -s conftest$ac_exeext'
19825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826 (eval $ac_try) 2>&5
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); }; }; then
19830 have_personality=true
19832 echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19835 have_personality=false
19837 rm -f conftest.err conftest.$ac_objext \
19838 conftest$ac_exeext conftest.$ac_ext
19840 cat >conftest.$ac_ext <<_ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h. */
19846 #include <sys/personality.h>
19851 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
19852 # define ADDR_NO_RANDOMIZE 0x0040000
19854 /* Test the flag could be set and stays set. */
19855 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19856 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19862 rm -f conftest$ac_exeext
19863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19864 (eval $ac_link) 2>&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19869 (eval $ac_try) 2>&5
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; }; then
19873 have_personality=true
19875 echo "$as_me: program exited with status $ac_status" >&5
19876 echo "$as_me: failed program was:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19879 ( exit $ac_status )
19880 have_personality=false
19882 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19884 if $have_personality
19887 cat >>confdefs.h <<\_ACEOF
19888 #define HAVE_PERSONALITY 1
19895 # Check whether --with-sysroot or --without-sysroot was given.
19896 if test "${with_sysroot+set}" = set; then
19897 withval="$with_sysroot"
19899 case ${with_sysroot} in
19900 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
19901 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19904 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19906 if test "x$prefix" = xNONE; then
19907 test_prefix=/usr/local
19909 test_prefix=$prefix
19911 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
19912 test_exec_prefix=$test_prefix
19914 test_exec_prefix=$exec_prefix
19916 case ${TARGET_SYSTEM_ROOT} in
19917 "${test_prefix}"|"${test_prefix}/"*|\
19918 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
19919 '${prefix}'|'${prefix}/'*|\
19920 '${exec_prefix}'|'${exec_prefix}/'*)
19921 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19922 TARGET_SYSTEM_ROOT_DEFINE="$t"
19928 TARGET_SYSTEM_ROOT=
19929 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19937 # Check whether --with-system-gdbinit or --without-system-gdbinit was given.
19938 if test "${with_system_gdbinit+set}" = set; then
19939 withval="$with_system_gdbinit"
19940 system_gdbinit=${withval}
19944 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19945 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19946 ac_define_dir=`eval echo $system_gdbinit`
19947 ac_define_dir=`eval echo $ac_define_dir`
19949 cat >>confdefs.h <<_ACEOF
19950 #define SYSTEM_GDBINIT "$ac_define_dir"
19955 if test "x$prefix" = xNONE; then
19956 test_prefix=$ac_default_prefix
19958 test_prefix=$prefix
19960 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
19961 test_exec_prefix=$test_prefix
19963 test_exec_prefix=$exec_prefix
19965 case ${system_gdbinit} in
19966 "${test_prefix}"|"${test_prefix}/"*|\
19967 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
19968 '${prefix}'|'${prefix}/'*|\
19969 '${exec_prefix}'|'${exec_prefix}/'*)
19971 cat >>confdefs.h <<\_ACEOF
19972 #define SYSTEM_GDBINIT_RELOCATABLE 1
19978 # Check whether --enable-werror or --disable-werror was given.
19979 if test "${enable_werror+set}" = set; then
19980 enableval="$enable_werror"
19981 case "${enableval}" in
19982 yes | y) ERROR_ON_WARNING="yes" ;;
19983 no | n) ERROR_ON_WARNING="no" ;;
19984 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
19985 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
19986 { (exit 1); exit 1; }; } ;;
19990 # Enable -Werror by default when using gcc
19991 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
19992 ERROR_ON_WARNING=yes
19996 if test "${ERROR_ON_WARNING}" = yes ; then
19997 WERROR_CFLAGS="-Werror"
20000 # The entries after -Wno-pointer-sign are disabled warnings which may
20001 # be enabled in the future, which can not currently be used to build
20003 # NOTE: If you change this list, remember to update
20004 # gdb/doc/gdbint.texinfo.
20005 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
20006 -Wformat-nonliteral -Wno-pointer-sign \
20007 -Wno-unused -Wno-switch -Wno-char-subscripts"
20009 # Enable -Wno-format by default when using gcc on mingw since many
20010 # GCC versions complain about %I64.
20012 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
20015 # Check whether --enable-build-warnings or --disable-build-warnings was given.
20016 if test "${enable_build_warnings+set}" = set; then
20017 enableval="$enable_build_warnings"
20018 case "${enableval}" in
20020 no) build_warnings="-w";;
20021 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20022 build_warnings="${build_warnings} ${t}";;
20023 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20024 build_warnings="${t} ${build_warnings}";;
20025 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20027 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20028 echo "Setting compiler warning flags = $build_warnings" 6>&1
20030 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
20031 if test "${enable_gdb_build_warnings+set}" = set; then
20032 enableval="$enable_gdb_build_warnings"
20033 case "${enableval}" in
20035 no) build_warnings="-w";;
20036 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20037 build_warnings="${build_warnings} ${t}";;
20038 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20039 build_warnings="${t} ${build_warnings}";;
20040 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20042 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20043 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
20046 if test "x${build_warnings}" != x -a "x$GCC" = xyes
20048 echo "$as_me:$LINENO: checking compiler warning flags" >&5
20049 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
20050 # Separate out the -Werror flag as some files just cannot be
20051 # compiled with it enabled.
20052 for w in ${build_warnings}; do
20054 -Werr*) WERROR_CFLAGS=-Werror ;;
20055 *) # Check that GCC accepts it
20056 saved_CFLAGS="$CFLAGS"
20057 CFLAGS="$CFLAGS $w"
20058 cat >conftest.$ac_ext <<_ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h. */
20073 rm -f conftest.$ac_objext
20074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20075 (eval $ac_compile) 2>conftest.er1
20077 grep -v '^ *+' conftest.er1 >conftest.err
20079 cat conftest.err >&5
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); } &&
20082 { ac_try='test -z "$ac_c_werror_flag"
20083 || test ! -s conftest.err'
20084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085 (eval $ac_try) 2>&5
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; } &&
20089 { ac_try='test -s conftest.$ac_objext'
20090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20091 (eval $ac_try) 2>&5
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); }; }; then
20095 WARN_CFLAGS="${WARN_CFLAGS} $w"
20097 echo "$as_me: failed program was:" >&5
20098 sed 's/^/| /' conftest.$ac_ext >&5
20101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20102 CFLAGS="$saved_CFLAGS"
20105 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
20106 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
20111 # In the Cygwin environment, we need some additional flags.
20112 echo "$as_me:$LINENO: checking for cygwin" >&5
20113 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20114 if test "${gdb_cv_os_cygwin+set}" = set; then
20115 echo $ECHO_N "(cached) $ECHO_C" >&6
20117 cat >conftest.$ac_ext <<_ACEOF
20120 cat confdefs.h >>conftest.$ac_ext
20121 cat >>conftest.$ac_ext <<_ACEOF
20122 /* end confdefs.h. */
20124 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
20128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20129 $EGREP "lose" >/dev/null 2>&1; then
20130 gdb_cv_os_cygwin=yes
20132 gdb_cv_os_cygwin=no
20137 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20138 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
20141 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
20143 *go32* ) SER_HARDWIRE=ser-go32.o ;;
20144 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
20145 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
20149 # libreadline needs libuser32.a in a cygwin environment
20151 if test x$gdb_cv_os_cygwin = xyes; then
20152 WIN32LIBS="-luser32"
20153 case "${target}" in
20154 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
20159 # The ser-tcp.c module requires sockets.
20163 cat >>confdefs.h <<\_ACEOF
20164 #define USE_WIN32API 1
20167 WIN32LIBS="$WIN32LIBS -lws2_32"
20172 # Add ELF support to GDB, but only if BFD includes ELF support.
20174 OLD_LDFLAGS=$LDFLAGS
20176 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
20177 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
20178 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
20179 LIBS="-lbfd -liberty $intl $LIBS"
20180 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
20181 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
20182 if test "${gdb_cv_var_elf+set}" = set; then
20183 echo $ECHO_N "(cached) $ECHO_C" >&6
20185 cat >conftest.$ac_ext <<_ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h. */
20191 #include <stdlib.h>
20193 #include "elf-bfd.h"
20198 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
20203 rm -f conftest.$ac_objext conftest$ac_exeext
20204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20205 (eval $ac_link) 2>conftest.er1
20207 grep -v '^ *+' conftest.er1 >conftest.err
20209 cat conftest.err >&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); } &&
20212 { ac_try='test -z "$ac_c_werror_flag"
20213 || test ! -s conftest.err'
20214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215 (eval $ac_try) 2>&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }; } &&
20219 { ac_try='test -s conftest$ac_exeext'
20220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20221 (eval $ac_try) 2>&5
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); }; }; then
20227 echo "$as_me: failed program was:" >&5
20228 sed 's/^/| /' conftest.$ac_ext >&5
20232 rm -f conftest.err conftest.$ac_objext \
20233 conftest$ac_exeext conftest.$ac_ext
20235 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
20236 echo "${ECHO_T}$gdb_cv_var_elf" >&6
20237 if test $gdb_cv_var_elf = yes; then
20238 CONFIG_OBS="$CONFIG_OBS elfread.o"
20240 cat >>confdefs.h <<\_ACEOF
20246 LDFLAGS=$OLD_LDFLAGS
20249 # Add any host-specific objects to GDB.
20250 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
20252 LIBGUI="../libgui/src/libgui.a"
20253 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
20262 *-*-cygwin* | *-*-mingw* )
20271 if test "${enable_gdbtk}" = "yes"; then
20273 # Gdbtk must have an absolute path to srcdir in order to run
20274 # properly when not installed.
20277 GDBTK_SRC_DIR=`pwd`
20282 # Ok, lets find the tcl configuration
20283 # First, look for one uninstalled.
20284 # the alternative search directory is invoked by --with-tcl
20287 if test x"${no_tcl}" = x ; then
20288 # we reset no_tcl in case something fails here
20291 # Check whether --with-tcl or --without-tcl was given.
20292 if test "${with_tcl+set}" = set; then
20293 withval="$with_tcl"
20294 with_tclconfig=${withval}
20296 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20297 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20298 if test "${ac_cv_c_tclconfig+set}" = set; then
20299 echo $ECHO_N "(cached) $ECHO_C" >&6
20303 # First check to see if --with-tcl was specified.
20305 *-*-cygwin*) platDir="win" ;;
20306 *) platDir="unix" ;;
20308 if test x"${with_tclconfig}" != x ; then
20309 if test -f "${with_tclconfig}/tclConfig.sh" ; then
20310 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
20312 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20313 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20314 { (exit 1); exit 1; }; }
20318 # then check for a private Tcl installation
20319 if test x"${ac_cv_c_tclconfig}" = x ; then
20322 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20323 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
20324 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
20326 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20327 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
20328 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
20330 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20331 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
20332 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
20333 if test -f "$i/$platDir/tclConfig.sh" ; then
20334 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
20340 # on Darwin, check in Framework installation locations
20341 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
20342 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
20343 `ls -d /Library/Frameworks 2>/dev/null` \
20344 `ls -d /Network/Library/Frameworks 2>/dev/null` \
20345 `ls -d /System/Library/Frameworks 2>/dev/null` \
20347 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
20348 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
20354 # check in a few common install locations
20355 if test x"${ac_cv_c_tclconfig}" = x ; then
20356 for i in `ls -d ${libdir} 2>/dev/null` \
20357 `ls -d ${exec_prefix}/lib 2>/dev/null` \
20358 `ls -d ${prefix}/lib 2>/dev/null` \
20359 `ls -d /usr/local/lib 2>/dev/null` \
20360 `ls -d /usr/contrib/lib 2>/dev/null` \
20361 `ls -d /usr/lib 2>/dev/null` \
20363 if test -f "$i/tclConfig.sh" ; then
20364 ac_cv_c_tclconfig=`(cd $i; pwd)`
20370 # check in a few other private locations
20371 if test x"${ac_cv_c_tclconfig}" = x ; then
20374 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20375 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
20376 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
20377 if test -f "$i/$platDir/tclConfig.sh" ; then
20378 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
20387 if test x"${ac_cv_c_tclconfig}" = x ; then
20388 TCL_BIN_DIR="# no Tcl configs found"
20389 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20390 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
20393 TCL_BIN_DIR=${ac_cv_c_tclconfig}
20394 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
20395 echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
20400 # If $no_tk is nonempty, then we can't do Tk, and there is no
20401 # point to doing Tcl.
20404 # Ok, lets find the tk configuration
20405 # First, look for one uninstalled.
20406 # the alternative search directory is invoked by --with-tk
20409 if test x"${no_tk}" = x ; then
20410 # we reset no_tk in case something fails here
20413 # Check whether --with-tk or --without-tk was given.
20414 if test "${with_tk+set}" = set; then
20416 with_tkconfig=${withval}
20418 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20419 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20420 if test "${ac_cv_c_tkconfig+set}" = set; then
20421 echo $ECHO_N "(cached) $ECHO_C" >&6
20425 # First check to see if --with-tkconfig was specified.
20426 if test x"${with_tkconfig}" != x ; then
20427 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20428 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20430 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20431 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20432 { (exit 1); exit 1; }; }
20436 # then check for a private Tk library
20438 *-*-cygwin*) platDir="win" ;;
20439 *) platDir="unix" ;;
20441 if test x"${ac_cv_c_tkconfig}" = x ; then
20444 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20445 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
20446 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
20448 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20449 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
20450 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
20452 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20453 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
20454 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
20455 if test -f "$i/$platDir/tkConfig.sh" ; then
20456 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
20462 # on Darwin, check in Framework installation locations
20463 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
20464 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
20465 `ls -d /Library/Frameworks 2>/dev/null` \
20466 `ls -d /Network/Library/Frameworks 2>/dev/null` \
20467 `ls -d /System/Library/Frameworks 2>/dev/null` \
20469 if test -f "$i/Tk.framework/tkConfig.sh" ; then
20470 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
20476 # check in a few common install locations
20477 if test x"${ac_cv_c_tkconfig}" = x ; then
20478 for i in `ls -d ${libdir} 2>/dev/null` \
20479 `ls -d ${exec_prefix}/lib 2>/dev/null` \
20480 `ls -d ${prefix}/lib 2>/dev/null` \
20481 `ls -d /usr/local/lib 2>/dev/null` \
20482 `ls -d /usr/contrib/lib 2>/dev/null` \
20483 `ls -d /usr/lib 2>/dev/null` \
20485 if test -f "$i/tkConfig.sh" ; then
20486 ac_cv_c_tkconfig=`(cd $i; pwd)`
20491 # check in a few other private locations
20492 if test x"${ac_cv_c_tkconfig}" = x ; then
20495 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20496 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
20497 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
20498 if test -f "$i/$platDir/tkConfig.sh" ; then
20499 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
20508 if test x"${ac_cv_c_tkconfig}" = x ; then
20509 TK_BIN_DIR="# no Tk configs found"
20510 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20511 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20514 TK_BIN_DIR=${ac_cv_c_tkconfig}
20515 echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
20516 echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
20521 if test -z "${no_tcl}" -a -z "${no_tk}"; then
20523 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
20524 echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
20526 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
20527 echo "$as_me:$LINENO: result: loading" >&5
20528 echo "${ECHO_T}loading" >&6
20529 . ${TCL_BIN_DIR}/tclConfig.sh
20531 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
20532 echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
20535 # eval is required to do the TCL_DBGX substitution
20536 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
20537 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
20539 # If the TCL_BIN_DIR is the build directory (not the install directory),
20540 # then set the common variable name to the value of the build variables.
20541 # For example, the variable TCL_LIB_SPEC will be set to the value
20542 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
20543 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
20544 # installed and uninstalled version of Tcl.
20545 if test -f "${TCL_BIN_DIR}/Makefile" ; then
20546 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
20547 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
20548 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
20549 elif test "`uname -s`" = "Darwin"; then
20550 # If Tcl was built as a framework, attempt to use the libraries
20551 # from the framework at the given location so that linking works
20552 # against Tcl.framework installed in an arbitary location.
20553 case ${TCL_DEFS} in
20555 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
20556 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
20557 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
20558 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
20559 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
20564 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
20565 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
20566 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
20572 # eval is required to do the TCL_DBGX substitution
20573 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
20574 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
20575 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
20576 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
20592 # Check for in-tree tcl
20599 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
20603 # Find Tcl private headers
20604 if test x"${intree}" = xno; then
20606 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
20607 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
20609 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
20610 if test -f ${dir}/tclInt.h ; then
20614 if test x"${private_dir}" = x; then
20615 { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
20616 echo "$as_me: error: could not find private Tcl headers" >&2;}
20617 { (exit 1); exit 1; }; }
20619 TCL_PRIVATE_INCLUDE="-I${private_dir}"
20620 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20621 echo "${ECHO_T}${private_dir}" >&6
20624 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
20625 TCL_LIBRARY="${TCL_LIB_SPEC}"
20628 # If building tcl in the same src tree, private headers
20629 # are not needed, but we need to be sure to use the right
20631 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
20632 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
20633 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
20640 echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
20641 echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
20643 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
20644 echo "$as_me:$LINENO: result: loading" >&5
20645 echo "${ECHO_T}loading" >&6
20646 . ${TK_BIN_DIR}/tkConfig.sh
20648 echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
20649 echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
20652 # eval is required to do the TK_DBGX substitution
20653 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
20654 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
20656 # If the TK_BIN_DIR is the build directory (not the install directory),
20657 # then set the common variable name to the value of the build variables.
20658 # For example, the variable TK_LIB_SPEC will be set to the value
20659 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
20660 # instead of TK_BUILD_LIB_SPEC since it will work with both an
20661 # installed and uninstalled version of Tcl.
20662 if test -f "${TK_BIN_DIR}/Makefile" ; then
20663 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
20664 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
20665 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
20666 elif test "`uname -s`" = "Darwin"; then
20667 # If Tk was built as a framework, attempt to use the libraries
20668 # from the framework at the given location so that linking works
20669 # against Tk.framework installed in an arbitary location.
20672 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
20673 for i in "`cd ${TK_BIN_DIR}; pwd`" \
20674 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
20675 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
20676 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
20681 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
20682 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
20683 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
20689 # eval is required to do the TK_DBGX substitution
20690 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
20691 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
20692 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
20693 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
20708 # Check for in-tree Tk
20710 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
20714 # Find Tk private headers
20715 if test x"${intree}" = xno; then
20717 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20718 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20720 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
20721 if test -f ${dir}/tkInt.h; then
20725 if test x"${private_dir}" = x; then
20726 { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
20727 echo "$as_me: error: could not find Tk private headers" >&2;}
20728 { (exit 1); exit 1; }; }
20730 TK_PRIVATE_INCLUDE="-I${private_dir}"
20731 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20732 echo "${ECHO_T}${private_dir}" >&6
20735 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
20736 TK_LIBRARY=${TK_LIB_SPEC}
20739 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
20740 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
20741 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
20748 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
20750 # Include some libraries that Tcl and Tk want.
20751 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
20752 # Yes, the ordering seems wrong here. But it isn't.
20753 # TK_LIBS is the list of libraries that need to be linked
20754 # after Tcl/Tk. Note that this isn't put into LIBS. If it
20755 # were in LIBS then any link tests after this point would
20756 # try to include things like `$(LIBGUI)', which wouldn't work.
20757 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
20759 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20760 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20761 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
20762 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
20763 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
20764 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
20765 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
20767 if test x$gdb_cv_os_cygwin = xyes; then
20768 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20769 WIN32LDAPP="-Wl,--subsystem,console"
20770 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
20775 subdirs="$subdirs gdbtk"
20787 echo "$as_me:$LINENO: checking for X" >&5
20788 echo $ECHO_N "checking for X... $ECHO_C" >&6
20791 # Check whether --with-x or --without-x was given.
20792 if test "${with_x+set}" = set; then
20796 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20797 if test "x$with_x" = xno; then
20798 # The user explicitly disabled X.
20801 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20802 # Both variables are already set.
20805 if test "${ac_cv_have_x+set}" = set; then
20806 echo $ECHO_N "(cached) $ECHO_C" >&6
20808 # One or both of the vars are not set, and there is no cached value.
20809 ac_x_includes=no ac_x_libraries=no
20810 rm -fr conftest.dir
20811 if mkdir conftest.dir; then
20813 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20814 cat >Imakefile <<'_ACEOF'
20816 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20818 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20819 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20820 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20821 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20822 for ac_extension in a so sl; do
20823 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20824 test -f $ac_im_libdir/libX11.$ac_extension; then
20825 ac_im_usrlibdir=$ac_im_libdir; break
20828 # Screen out bogus values from the imake configuration. They are
20829 # bogus both because they are the default anyway, and because
20830 # using them would break gcc on systems where it needs fixed includes.
20831 case $ac_im_incroot in
20833 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20835 case $ac_im_usrlibdir in
20836 /usr/lib | /lib) ;;
20837 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20841 rm -fr conftest.dir
20844 # Standard set of common directories for X headers.
20845 # Check X11 before X11Rn because it is often a symlink to the current release.
20857 /usr/local/X11/include
20858 /usr/local/X11R6/include
20859 /usr/local/X11R5/include
20860 /usr/local/X11R4/include
20862 /usr/local/include/X11
20863 /usr/local/include/X11R6
20864 /usr/local/include/X11R5
20865 /usr/local/include/X11R4
20869 /usr/XFree86/include/X11
20873 /usr/unsupported/include
20874 /usr/athena/include
20875 /usr/local/x11r5/include
20876 /usr/lpp/Xamples/include
20878 /usr/openwin/include
20879 /usr/openwin/share/include'
20881 if test "$ac_x_includes" = no; then
20882 # Guess where to find include files, by looking for Intrinsic.h.
20883 # First, try using that file with no special directory specified.
20884 cat >conftest.$ac_ext <<_ACEOF
20887 cat confdefs.h >>conftest.$ac_ext
20888 cat >>conftest.$ac_ext <<_ACEOF
20889 /* end confdefs.h. */
20890 #include <X11/Intrinsic.h>
20892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20895 grep -v '^ *+' conftest.er1 >conftest.err
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } >/dev/null; then
20900 if test -s conftest.err; then
20901 ac_cpp_err=$ac_c_preproc_warn_flag
20902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20909 if test -z "$ac_cpp_err"; then
20910 # We can compile using X headers with no special include directory.
20913 echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20916 for ac_dir in $ac_x_header_dirs; do
20917 if test -r "$ac_dir/X11/Intrinsic.h"; then
20918 ac_x_includes=$ac_dir
20923 rm -f conftest.err conftest.$ac_ext
20924 fi # $ac_x_includes = no
20926 if test "$ac_x_libraries" = no; then
20927 # Check for the libraries.
20928 # See if we find them without any special options.
20929 # Don't add to $LIBS permanently.
20932 cat >conftest.$ac_ext <<_ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h. */
20938 #include <X11/Intrinsic.h>
20947 rm -f conftest.$ac_objext conftest$ac_exeext
20948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20949 (eval $ac_link) 2>conftest.er1
20951 grep -v '^ *+' conftest.er1 >conftest.err
20953 cat conftest.err >&5
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); } &&
20956 { ac_try='test -z "$ac_c_werror_flag"
20957 || test ! -s conftest.err'
20958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20959 (eval $ac_try) 2>&5
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); }; } &&
20963 { ac_try='test -s conftest$ac_exeext'
20964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20965 (eval $ac_try) 2>&5
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); }; }; then
20970 # We can link X programs with no special library path.
20973 echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20977 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20979 # Don't even attempt the hair of trying to link an X program!
20980 for ac_extension in a so sl; do
20981 if test -r $ac_dir/libXt.$ac_extension; then
20982 ac_x_libraries=$ac_dir
20988 rm -f conftest.err conftest.$ac_objext \
20989 conftest$ac_exeext conftest.$ac_ext
20990 fi # $ac_x_libraries = no
20992 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
20993 # Didn't find X anywhere. Cache the known absence of X.
20994 ac_cv_have_x="have_x=no"
20996 # Record where we found X for the cache.
20997 ac_cv_have_x="have_x=yes \
20998 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21003 eval "$ac_cv_have_x"
21006 if test "$have_x" != yes; then
21007 echo "$as_me:$LINENO: result: $have_x" >&5
21008 echo "${ECHO_T}$have_x" >&6
21011 # If each of the values was on the command line, it overrides each guess.
21012 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21013 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21014 # Update the cache value to reflect the command line values.
21015 ac_cv_have_x="have_x=yes \
21016 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21017 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21018 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21022 # Unlike the sim directory, whether a simulator is linked is controlled by
21023 # presence of a gdb_sim definition in the target configure.tgt entry.
21024 # This code just checks for a few cases where we'd like to ignore those
21025 # definitions, even when they're present in the '.mt' file. These cases
21026 # are when --disable-sim is specified, or if the simulator directory is
21027 # not part of the source tree.
21029 # Check whether --enable-sim or --disable-sim was given.
21030 if test "${enable_sim+set}" = set; then
21031 enableval="$enable_sim"
21032 echo "enable_sim = $enable_sim";
21033 echo "enableval = ${enableval}";
21034 case "${enableval}" in
21035 yes) ignore_sim=false ;;
21036 no) ignore_sim=true ;;
21037 *) ignore_sim=false ;;
21043 if test ! -d "${srcdir}/../sim"; then
21049 if test "${ignore_sim}" = "false"; then
21050 if test x"${gdb_sim}" != x ; then
21052 SIM_OBS="remote-sim.o"
21054 cat >>confdefs.h <<\_ACEOF
21074 # List of host floatformats.
21076 cat >>confdefs.h <<_ACEOF
21077 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21081 cat >>confdefs.h <<_ACEOF
21082 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21086 cat >>confdefs.h <<_ACEOF
21087 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21091 # target_subdir is used by the testsuite to find the target libraries.
21093 if test "${host}" != "${target}"; then
21094 target_subdir="${target_alias}/"
21099 if test "${gdb_native}" = "yes"; then
21100 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21101 if test ! -f ${host_makefile_frag}; then
21102 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21103 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21104 { (exit 1); exit 1; }; }
21106 frags="$frags $host_makefile_frag"
21108 host_makefile_frag=/dev/null
21114 if test "${gdb_native}" = "yes"; then
21115 # We pick this up from the host configuration file (.mh) because we
21116 # do not have a native configuration Makefile fragment.
21117 nativefile=`sed -n '
21118 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21119 ' ${host_makefile_frag}`
21123 if test x"${gdb_osabi}" != x ; then
21125 cat >>confdefs.h <<_ACEOF
21126 #define GDB_OSABI_DEFAULT $gdb_osabi
21131 # Enable multi-ice-gdb-server.
21132 # Check whether --enable-multi-ice or --disable-multi-ice was given.
21133 if test "${enable_multi_ice+set}" = set; then
21134 enableval="$enable_multi_ice"
21138 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21139 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21140 { (exit 1); exit 1; }; } ;;
21143 if test "x$enable_multi_ice" = xyes; then
21146 subdirs="$subdirs multi-ice"
21150 # We only build gdbserver automatically in a native configuration.
21151 if test "$gdb_native" = "yes"; then
21152 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21153 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21154 if test "x$build_gdbserver" = xyes; then
21155 echo "$as_me:$LINENO: result: yes" >&5
21156 echo "${ECHO_T}yes" >&6
21159 subdirs="$subdirs gdbserver"
21162 echo "$as_me:$LINENO: result: no" >&5
21163 echo "${ECHO_T}no" >&6
21167 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21168 # to an empty version.
21175 if test "${nativefile}" != ""; then
21177 case "${nativefile}" in
21178 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21179 * ) GDB_NM_FILE="${nativefile}"
21181 files="${files} ${GDB_NM_FILE}"
21182 links="${links} nm.h"
21184 cat >>confdefs.h <<_ACEOF
21185 #define GDB_NM_FILE "${GDB_NM_FILE}"
21191 ac_sources="$files"
21193 while test -n "$ac_sources"; do
21194 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21195 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21196 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21198 ac_config_links="$ac_config_links $ac_config_links_1"
21204 cat >>confdefs.h <<\_ACEOF
21205 #define GDB_DEFAULT_HOST_CHARSET "UTF-8"
21214 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
21215 ac_config_commands="$ac_config_commands default"
21216 cat >confcache <<\_ACEOF
21217 # This file is a shell script that caches the results of configure
21218 # tests run on this system so they can be shared between configure
21219 # scripts and configure runs, see configure's option --config-cache.
21220 # It is not useful on other systems. If it contains results you don't
21221 # want to keep, you may remove or edit it.
21223 # config.status only pays attention to the cache file if you give it
21224 # the --recheck option to rerun configure.
21226 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21227 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21228 # following values.
21232 # The following way of writing the cache mishandles newlines in values,
21233 # but we know of no workaround that is simple, portable, and efficient.
21234 # So, don't put newlines in cache variables' values.
21235 # Ultrix sh set writes to stderr and can't be redirected directly,
21236 # and sets the high bit in the cache file unless we assign to the vars.
21239 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21241 # `set' does not quote correctly, so add quotes (double-quote
21242 # substitution turns \\\\ into \\, and sed turns \\ into \).
21245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21248 # `set' quotes correctly as required by POSIX, so do not add quotes.
21250 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21257 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21259 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21261 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21262 if test -w $cache_file; then
21263 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21264 cat confcache >$cache_file
21266 echo "not updating unwritable cache $cache_file"
21271 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21272 # Let make expand exec_prefix.
21273 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21275 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21276 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21277 # trailing colons and then remove the whole line if VPATH becomes empty
21278 # (actually we leave an empty line to preserve line numbers).
21279 if test "x$srcdir" = x.; then
21280 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21281 s/:*\$(srcdir):*/:/;
21282 s/:*\${srcdir}:*/:/;
21284 s/^\([^=]*=[ ]*\):*/\1/;
21290 DEFS=-DHAVE_CONFIG_H
21294 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21295 # 1. Remove the extension, and $U if already installed.
21296 ac_i=`echo "$ac_i" |
21297 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21299 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21300 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21302 LIBOBJS=$ac_libobjs
21304 LTLIBOBJS=$ac_ltlibobjs
21307 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21308 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21309 Usually this means the macro was only invoked conditionally." >&5
21310 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21311 Usually this means the macro was only invoked conditionally." >&2;}
21312 { (exit 1); exit 1; }; }
21314 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
21315 { { echo "$as_me:$LINENO: error: conditional \"GMAKE\" was never defined.
21316 Usually this means the macro was only invoked conditionally." >&5
21317 echo "$as_me: error: conditional \"GMAKE\" was never defined.
21318 Usually this means the macro was only invoked conditionally." >&2;}
21319 { (exit 1); exit 1; }; }
21321 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21322 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21323 Usually this means the macro was only invoked conditionally." >&5
21324 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21325 Usually this means the macro was only invoked conditionally." >&2;}
21326 { (exit 1); exit 1; }; }
21331 if test -n "$gl_LIBOBJS"; then
21332 # Remove the extension.
21333 sed_drop_objext='s/\.o$//;s/\.obj$//'
21334 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21335 gl_libobjs="$gl_libobjs $i.$ac_objext"
21336 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
21339 gl_LIBOBJS=$gl_libobjs
21341 gl_LTLIBOBJS=$gl_ltlibobjs
21347 if test -n "$gltests_LIBOBJS"; then
21348 # Remove the extension.
21349 sed_drop_objext='s/\.o$//;s/\.obj$//'
21350 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21351 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
21352 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
21355 gltests_LIBOBJS=$gltests_libobjs
21357 gltests_LTLIBOBJS=$gltests_ltlibobjs
21360 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21361 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21362 Usually this means the macro was only invoked conditionally." >&5
21363 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21364 Usually this means the macro was only invoked conditionally." >&2;}
21365 { (exit 1); exit 1; }; }
21367 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21368 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21369 Usually this means the macro was only invoked conditionally." >&5
21370 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21371 Usually this means the macro was only invoked conditionally." >&2;}
21372 { (exit 1); exit 1; }; }
21375 : ${CONFIG_STATUS=./config.status}
21376 ac_clean_files_save=$ac_clean_files
21377 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21378 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21379 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21380 cat >$CONFIG_STATUS <<_ACEOF
21382 # Generated by $as_me.
21383 # Run this file to recreate the current configuration.
21384 # Compiler output produced by configure, useful for debugging
21385 # configure, is in config.log if it exists.
21388 ac_cs_recheck=false
21390 SHELL=\${CONFIG_SHELL-$SHELL}
21393 cat >>$CONFIG_STATUS <<\_ACEOF
21394 ## --------------------- ##
21395 ## M4sh Initialization. ##
21396 ## --------------------- ##
21398 # Be Bourne compatible
21399 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21402 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21403 # is contrary to our usage. Disable this feature.
21404 alias -g '${1+"$@"}'='"$@"'
21405 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21408 DUALCASE=1; export DUALCASE # for MKS sh
21410 # Support unset when possible.
21411 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21418 # Work around bugs in pre-3.0 UWIN ksh.
21419 $as_unset ENV MAIL MAILPATH
21426 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21427 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21428 LC_TELEPHONE LC_TIME
21430 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21431 eval $as_var=C; export $as_var
21437 # Required to use basename.
21438 if expr a : '\(a\)' >/dev/null 2>&1; then
21444 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21445 as_basename=basename
21451 # Name of the executable.
21452 as_me=`$as_basename "$0" ||
21453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21454 X"$0" : 'X\(//\)$' \| \
21455 X"$0" : 'X\(/\)$' \| \
21456 . : '\(.\)' 2>/dev/null ||
21458 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21459 /^X\/\(\/\/\)$/{ s//\1/; q; }
21460 /^X\/\(\/\).*/{ s//\1/; q; }
21464 # PATH needs CR, and LINENO needs CR and PATH.
21465 # Avoid depending upon Character Ranges.
21466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21469 as_cr_digits='0123456789'
21470 as_cr_alnum=$as_cr_Letters$as_cr_digits
21472 # The user is always right.
21473 if test "${PATH_SEPARATOR+set}" != set; then
21474 echo "#! /bin/sh" >conf$$.sh
21475 echo "exit 0" >>conf$$.sh
21477 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21486 as_lineno_1=$LINENO
21487 as_lineno_2=$LINENO
21488 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21489 test "x$as_lineno_1" != "x$as_lineno_2" &&
21490 test "x$as_lineno_3" = "x$as_lineno_2" || {
21491 # Find who we are. Look in the path if we contain no path at all
21494 *[\\/]* ) as_myself=$0 ;;
21495 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21496 for as_dir in $PATH
21499 test -z "$as_dir" && as_dir=.
21500 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21505 # We did not find ourselves, most probably we were run as `sh COMMAND'
21506 # in which case we are not to be found in the path.
21507 if test "x$as_myself" = x; then
21510 if test ! -f "$as_myself"; then
21511 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21512 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21513 { (exit 1); exit 1; }; }
21515 case $CONFIG_SHELL in
21517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21518 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21521 test -z "$as_dir" && as_dir=.
21522 for as_base in sh bash ksh sh5; do
21525 if ("$as_dir/$as_base" -c '
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" ') 2>/dev/null; then
21531 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21532 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21533 CONFIG_SHELL=$as_dir/$as_base
21534 export CONFIG_SHELL
21535 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21543 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21544 # uniformly replaced by the line number. The first 'sed' inserts a
21545 # line-number line before each line; the second 'sed' does the real
21546 # work. The second script uses 'N' to pair each line-number line
21547 # with the numbered line, and appends trailing '-' during
21548 # substitution so that $LINENO is not a special case at line end.
21549 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21550 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21551 sed '=' <$as_myself |
21556 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21559 s,^['$as_cr_digits']*\n,,
21560 ' >$as_me.lineno &&
21561 chmod +x $as_me.lineno ||
21562 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21563 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21564 { (exit 1); exit 1; }; }
21566 # Don't try to exec as it changes $[0], causing all sort of problems
21567 # (the dirname of $[0] is not the place where we might find the
21568 # original and so on. Autoconf is especially sensible to this).
21570 # Exit status is that of the last command.
21575 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21576 *c*,-n*) ECHO_N= ECHO_C='
21578 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21579 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21582 if expr a : '\(a\)' >/dev/null 2>&1; then
21588 rm -f conf$$ conf$$.exe conf$$.file
21590 if ln -s conf$$.file conf$$ 2>/dev/null; then
21591 # We could just check for DJGPP; but this test a) works b) is more generic
21592 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21593 if test -f conf$$.exe; then
21594 # Don't use ln at all; we don't have any links
21599 elif ln conf$$.file conf$$ 2>/dev/null; then
21604 rm -f conf$$ conf$$.exe conf$$.file
21606 if mkdir -p . 2>/dev/null; then
21609 test -d ./-p && rmdir ./-p
21613 as_executable_p="test -f"
21615 # Sed expression to map a string onto a valid CPP name.
21616 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21618 # Sed expression to map a string onto a valid variable name.
21619 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21623 # We need space, tab and new line, in precisely that order.
21633 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21634 # report actual input values of CONFIG_FILES etc. instead of their
21635 # values after options handling. Logging --version etc. is OK.
21639 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21640 ## Running $as_me. ##
21645 This file was extended by $as_me, which was
21646 generated by GNU Autoconf 2.59. Invocation command line was
21648 CONFIG_FILES = $CONFIG_FILES
21649 CONFIG_HEADERS = $CONFIG_HEADERS
21650 CONFIG_LINKS = $CONFIG_LINKS
21651 CONFIG_COMMANDS = $CONFIG_COMMANDS
21655 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21659 # Files that config.status was made for.
21660 if test -n "$ac_config_files"; then
21661 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21664 if test -n "$ac_config_headers"; then
21665 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21668 if test -n "$ac_config_links"; then
21669 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21672 if test -n "$ac_config_commands"; then
21673 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21676 cat >>$CONFIG_STATUS <<\_ACEOF
21679 \`$as_me' instantiates files from templates according to the
21680 current configuration.
21682 Usage: $0 [OPTIONS] [FILE]...
21684 -h, --help print this help, then exit
21685 -V, --version print version number, then exit
21686 -q, --quiet do not print progress messages
21687 -d, --debug don't remove temporary files
21688 --recheck update $as_me by reconfiguring in the same conditions
21689 --file=FILE[:TEMPLATE]
21690 instantiate the configuration file FILE
21691 --header=FILE[:TEMPLATE]
21692 instantiate the configuration header FILE
21694 Configuration files:
21697 Configuration headers:
21700 Configuration links:
21703 Configuration commands:
21706 Report bugs to <bug-autoconf@gnu.org>."
21709 cat >>$CONFIG_STATUS <<_ACEOF
21712 configured by $0, generated by GNU Autoconf 2.59,
21713 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21715 Copyright (C) 2003 Free Software Foundation, Inc.
21716 This config.status script is free software; the Free Software Foundation
21717 gives unlimited permission to copy, distribute and modify it."
21722 cat >>$CONFIG_STATUS <<\_ACEOF
21723 # If no file are specified by the user, then we need to provide default
21724 # value. By we need to know if files were specified by the user.
21730 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21731 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21739 *) # This is not an option, so the user has probably given explicit
21742 ac_need_defaults=false;;
21746 # Handling of the options.
21748 cat >>$CONFIG_STATUS <<\_ACEOF
21749 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21751 --version | --vers* | -V )
21752 echo "$ac_cs_version"; exit 0 ;;
21754 # Conflict between --help and --header
21755 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21756 Try \`$0 --help' for more information." >&5
21757 echo "$as_me: error: ambiguous option: $1
21758 Try \`$0 --help' for more information." >&2;}
21759 { (exit 1); exit 1; }; };;
21760 --help | --hel | -h )
21761 echo "$ac_cs_usage"; exit 0 ;;
21762 --debug | --d* | -d )
21764 --file | --fil | --fi | --f )
21766 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21767 ac_need_defaults=false;;
21768 --header | --heade | --head | --hea )
21770 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21771 ac_need_defaults=false;;
21772 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21773 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21776 # This is an error.
21777 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21778 Try \`$0 --help' for more information." >&5
21779 echo "$as_me: error: unrecognized option: $1
21780 Try \`$0 --help' for more information." >&2;}
21781 { (exit 1); exit 1; }; } ;;
21783 *) ac_config_targets="$ac_config_targets $1" ;;
21789 ac_configure_extra_args=
21791 if $ac_cs_silent; then
21793 ac_configure_extra_args="$ac_configure_extra_args --silent"
21797 cat >>$CONFIG_STATUS <<_ACEOF
21798 if \$ac_cs_recheck; then
21799 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21800 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21805 cat >>$CONFIG_STATUS <<_ACEOF
21807 # INIT-COMMANDS section.
21810 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
21811 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21813 gdb_host_cpu=$gdb_host_cpu
21814 nativefile=$nativefile
21821 cat >>$CONFIG_STATUS <<\_ACEOF
21822 for ac_config_target in $ac_config_targets
21824 case "$ac_config_target" in
21825 # Handling of arguments.
21826 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21827 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
21828 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
21829 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
21830 "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
21831 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21832 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21833 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21834 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21835 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21836 { (exit 1); exit 1; }; };;
21840 # If the user did not use the arguments to specify the items to instantiate,
21841 # then the envvar interface is used. Set only those that are not.
21842 # We use the long form for the default assignment because of an extremely
21843 # bizarre bug on SunOS 4.1.3.
21844 if $ac_need_defaults; then
21845 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21846 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21847 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
21848 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21851 # Have a temporary directory for convenience. Make it in the build tree
21852 # simply because there is no reason to put it here, and in addition,
21853 # creating and moving files from /tmp can sometimes cause problems.
21854 # Create a temporary directory, and hook for its removal unless debugging.
21857 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21858 trap '{ (exit 1); exit 1; }' 1 2 13 15
21861 # Create a (secure) tmp directory for tmp files.
21864 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21865 test -n "$tmp" && test -d "$tmp"
21868 tmp=./confstat$$-$RANDOM
21869 (umask 077 && mkdir $tmp)
21872 echo "$me: cannot create a temporary directory in ." >&2
21873 { (exit 1); exit 1; }
21878 cat >>$CONFIG_STATUS <<_ACEOF
21881 # CONFIG_FILES section.
21884 # No need to generate the scripts if there are no CONFIG_FILES.
21885 # This happens for instance when ./config.status config.h
21886 if test -n "\$CONFIG_FILES"; then
21887 # Protect against being on the right side of a sed subst in config.status.
21888 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21889 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21890 s,@SHELL@,$SHELL,;t t
21891 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21892 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21893 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21894 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21895 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21896 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21897 s,@exec_prefix@,$exec_prefix,;t t
21898 s,@prefix@,$prefix,;t t
21899 s,@program_transform_name@,$program_transform_name,;t t
21900 s,@bindir@,$bindir,;t t
21901 s,@sbindir@,$sbindir,;t t
21902 s,@libexecdir@,$libexecdir,;t t
21903 s,@datadir@,$datadir,;t t
21904 s,@sysconfdir@,$sysconfdir,;t t
21905 s,@sharedstatedir@,$sharedstatedir,;t t
21906 s,@localstatedir@,$localstatedir,;t t
21907 s,@libdir@,$libdir,;t t
21908 s,@includedir@,$includedir,;t t
21909 s,@oldincludedir@,$oldincludedir,;t t
21910 s,@infodir@,$infodir,;t t
21911 s,@mandir@,$mandir,;t t
21912 s,@build_alias@,$build_alias,;t t
21913 s,@host_alias@,$host_alias,;t t
21914 s,@target_alias@,$target_alias,;t t
21915 s,@DEFS@,$DEFS,;t t
21916 s,@ECHO_C@,$ECHO_C,;t t
21917 s,@ECHO_N@,$ECHO_N,;t t
21918 s,@ECHO_T@,$ECHO_T,;t t
21919 s,@LIBS@,$LIBS,;t t
21920 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21921 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21922 s,@MAINT@,$MAINT,;t t
21924 s,@CFLAGS@,$CFLAGS,;t t
21925 s,@LDFLAGS@,$LDFLAGS,;t t
21926 s,@CPPFLAGS@,$CPPFLAGS,;t t
21927 s,@ac_ct_CC@,$ac_ct_CC,;t t
21928 s,@EXEEXT@,$EXEEXT,;t t
21929 s,@OBJEXT@,$OBJEXT,;t t
21931 s,@EGREP@,$EGREP,;t t
21932 s,@RANLIB@,$RANLIB,;t t
21933 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21934 s,@build@,$build,;t t
21935 s,@build_cpu@,$build_cpu,;t t
21936 s,@build_vendor@,$build_vendor,;t t
21937 s,@build_os@,$build_os,;t t
21938 s,@host@,$host,;t t
21939 s,@host_cpu@,$host_cpu,;t t
21940 s,@host_vendor@,$host_vendor,;t t
21941 s,@host_os@,$host_os,;t t
21942 s,@target@,$target,;t t
21943 s,@target_cpu@,$target_cpu,;t t
21944 s,@target_vendor@,$target_vendor,;t t
21945 s,@target_os@,$target_os,;t t
21946 s,@am__leading_dot@,$am__leading_dot,;t t
21947 s,@DEPDIR@,$DEPDIR,;t t
21948 s,@CCDEPMODE@,$CCDEPMODE,;t t
21949 s,@MAKE@,$MAKE,;t t
21950 s,@GMAKE_TRUE@,$GMAKE_TRUE,;t t
21951 s,@GMAKE_FALSE@,$GMAKE_FALSE,;t t
21952 s,@SET_MAKE@,$SET_MAKE,;t t
21953 s,@USE_NLS@,$USE_NLS,;t t
21954 s,@LIBINTL@,$LIBINTL,;t t
21955 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21956 s,@INCINTL@,$INCINTL,;t t
21957 s,@XGETTEXT@,$XGETTEXT,;t t
21958 s,@GMSGFMT@,$GMSGFMT,;t t
21959 s,@POSUB@,$POSUB,;t t
21960 s,@CATALOGS@,$CATALOGS,;t t
21961 s,@DATADIRNAME@,$DATADIRNAME,;t t
21962 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
21963 s,@GENCAT@,$GENCAT,;t t
21964 s,@CATOBJEXT@,$CATOBJEXT,;t t
21965 s,@localedir@,$localedir,;t t
21966 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
21967 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
21968 s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
21969 s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
21970 s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
21971 s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
21972 s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
21973 s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
21974 s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
21975 s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
21976 s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
21977 s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
21978 s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
21979 s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
21980 s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
21981 s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
21982 s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
21983 s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
21984 s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
21985 s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
21986 s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
21987 s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
21988 s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
21989 s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
21990 s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
21991 s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
21992 s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
21993 s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
21994 s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
21995 s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
21996 s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
21997 s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
21998 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
21999 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
22000 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
22001 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
22002 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
22003 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
22004 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
22005 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
22006 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
22007 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
22008 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
22009 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
22010 s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
22011 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
22012 s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
22013 s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
22014 s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
22015 s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
22016 s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
22017 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
22018 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
22019 s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
22020 s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
22021 s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
22022 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
22023 s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
22024 s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
22025 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
22026 s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
22027 s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
22028 s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
22029 s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
22030 s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
22031 s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
22032 s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
22033 s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
22034 s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
22035 s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
22036 s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
22037 s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
22038 s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
22039 s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
22040 s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
22041 s,@STDINT_H@,$STDINT_H,;t t
22042 s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
22043 s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
22044 s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
22045 s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
22046 s,@WCHAR_H@,$WCHAR_H,;t t
22047 s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
22048 s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
22049 s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
22050 s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
22051 s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
22052 s,@PACKAGE@,$PACKAGE,;t t
22053 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22054 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22055 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22056 s,@CYGPATH_W@,$CYGPATH_W,;t t
22057 s,@PYTHON2_4@,$PYTHON2_4,;t t
22058 s,@ACLOCAL@,$ACLOCAL,;t t
22059 s,@AUTOCONF@,$AUTOCONF,;t t
22060 s,@AUTOMAKE@,$AUTOMAKE,;t t
22061 s,@AUTOHEADER@,$AUTOHEADER,;t t
22062 s,@MAKEINFO@,$MAKEINFO,;t t
22063 s,@install_sh@,$install_sh,;t t
22064 s,@STRIP@,$STRIP,;t t
22065 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22066 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22067 s,@mkdir_p@,$mkdir_p,;t t
22069 s,@AMTAR@,$AMTAR,;t t
22070 s,@am__tar@,$am__tar,;t t
22071 s,@am__untar@,$am__untar,;t t
22072 s,@am__include@,$am__include,;t t
22073 s,@am__quote@,$am__quote,;t t
22074 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22075 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22076 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22077 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22078 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22079 s,@subdirs@,$subdirs,;t t
22080 s,@TARGET_OBS@,$TARGET_OBS,;t t
22081 s,@PKGVERSION@,$PKGVERSION,;t t
22082 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
22083 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
22084 s,@LN_S@,$LN_S,;t t
22085 s,@YACC@,$YACC,;t t
22087 s,@ac_ct_AR@,$ac_ct_AR,;t t
22088 s,@DLLTOOL@,$DLLTOOL,;t t
22089 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22090 s,@WINDRES@,$WINDRES,;t t
22091 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22093 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22094 s,@READLINE@,$READLINE,;t t
22095 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
22096 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
22097 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
22098 s,@LIBEXPAT@,$LIBEXPAT,;t t
22099 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
22100 s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
22101 s,@ALLOCA@,$ALLOCA,;t t
22102 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22103 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22104 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22105 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22106 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22107 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22108 s,@WIN32LIBS@,$WIN32LIBS,;t t
22109 s,@LIBGUI@,$LIBGUI,;t t
22110 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22111 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22112 s,@TCL_VERSION@,$TCL_VERSION,;t t
22113 s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
22114 s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
22115 s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
22116 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
22117 s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
22118 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22119 s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
22120 s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
22121 s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
22122 s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
22123 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
22124 s,@TCL_DEPS@,$TCL_DEPS,;t t
22125 s,@TK_VERSION@,$TK_VERSION,;t t
22126 s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
22127 s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
22128 s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
22129 s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
22130 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22131 s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
22132 s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
22133 s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
22134 s,@TK_INCLUDE@,$TK_INCLUDE,;t t
22135 s,@TK_LIBRARY@,$TK_LIBRARY,;t t
22136 s,@TK_DEPS@,$TK_DEPS,;t t
22137 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22138 s,@X_CFLAGS@,$X_CFLAGS,;t t
22139 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22140 s,@X_LIBS@,$X_LIBS,;t t
22141 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22142 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22143 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22145 s,@SIM_OBS@,$SIM_OBS,;t t
22146 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22147 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22148 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22149 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22150 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22151 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22152 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22153 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22154 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22155 s,@target_subdir@,$target_subdir,;t t
22156 s,@frags@,$frags,;t t
22157 s,@nm_h@,$nm_h,;t t
22158 s,@datarootdir@,$datarootdir,;t t
22159 s,@docdir@,$docdir,;t t
22160 s,@htmldir@,$htmldir,;t t
22161 s,@pdfdir@,$pdfdir,;t t
22162 s,@LIBOBJS@,$LIBOBJS,;t t
22163 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22164 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
22165 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
22166 s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
22167 s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
22168 /@host_makefile_frag@/r $host_makefile_frag
22169 s,@host_makefile_frag@,,;t t
22174 cat >>$CONFIG_STATUS <<\_ACEOF
22175 # Split the substitutions into bite-sized pieces for seds with
22176 # small command number limits, like on Digital OSF/1 and HP-UX.
22177 ac_max_sed_lines=48
22178 ac_sed_frag=1 # Number of current file.
22179 ac_beg=1 # First line for current file.
22180 ac_end=$ac_max_sed_lines # Line after last line for current file.
22183 while $ac_more_lines; do
22184 if test $ac_beg -gt 1; then
22185 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22187 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22189 if test ! -s $tmp/subs.frag; then
22190 ac_more_lines=false
22192 # The purpose of the label and of the branching condition is to
22193 # speed up the sed processing (if there are no `@' at all, there
22194 # is no need to browse any of the substitutions).
22195 # These are the two extra sed commands mentioned above.
22197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22198 if test -z "$ac_sed_cmds"; then
22199 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22201 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22203 ac_sed_frag=`expr $ac_sed_frag + 1`
22205 ac_end=`expr $ac_end + $ac_max_sed_lines`
22208 if test -z "$ac_sed_cmds"; then
22211 fi # test -n "$CONFIG_FILES"
22214 cat >>$CONFIG_STATUS <<\_ACEOF
22215 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22216 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22218 - | *:- | *:-:* ) # input from stdin
22220 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22221 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22222 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22223 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22224 * ) ac_file_in=$ac_file.in ;;
22227 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22228 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22229 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22230 X"$ac_file" : 'X\(//\)[^/]' \| \
22231 X"$ac_file" : 'X\(//\)$' \| \
22232 X"$ac_file" : 'X\(/\)' \| \
22233 . : '\(.\)' 2>/dev/null ||
22235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22236 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22237 /^X\(\/\/\)$/{ s//\1/; q; }
22238 /^X\(\/\).*/{ s//\1/; q; }
22240 { if $as_mkdir_p; then
22245 while test ! -d "$as_dir"; do
22246 as_dirs="$as_dir $as_dirs"
22247 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22248 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22249 X"$as_dir" : 'X\(//\)[^/]' \| \
22250 X"$as_dir" : 'X\(//\)$' \| \
22251 X"$as_dir" : 'X\(/\)' \| \
22252 . : '\(.\)' 2>/dev/null ||
22254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22255 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22256 /^X\(\/\/\)$/{ s//\1/; q; }
22257 /^X\(\/\).*/{ s//\1/; q; }
22260 test ! -n "$as_dirs" || mkdir $as_dirs
22261 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22262 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22263 { (exit 1); exit 1; }; }; }
22267 if test "$ac_dir" != .; then
22268 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22269 # A "../" for each directory in $ac_dir_suffix.
22270 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22272 ac_dir_suffix= ac_top_builddir=
22276 .) # No --srcdir option. We are building in place.
22278 if test -z "$ac_top_builddir"; then
22281 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22283 [\\/]* | ?:[\\/]* ) # Absolute path.
22284 ac_srcdir=$srcdir$ac_dir_suffix;
22285 ac_top_srcdir=$srcdir ;;
22286 *) # Relative path.
22287 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22288 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22291 # Do not use `cd foo && pwd` to compute absolute paths, because
22292 # the directories may not exist.
22294 .) ac_abs_builddir="$ac_dir";;
22297 .) ac_abs_builddir=`pwd`;;
22298 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22299 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22302 case $ac_abs_builddir in
22303 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22305 case ${ac_top_builddir}. in
22306 .) ac_abs_top_builddir=$ac_abs_builddir;;
22307 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22308 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22311 case $ac_abs_builddir in
22312 .) ac_abs_srcdir=$ac_srcdir;;
22315 .) ac_abs_srcdir=$ac_abs_builddir;;
22316 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22317 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22320 case $ac_abs_builddir in
22321 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22323 case $ac_top_srcdir in
22324 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22325 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22326 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22332 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22333 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22336 if test x"$ac_file" != x-; then
22337 { echo "$as_me:$LINENO: creating $ac_file" >&5
22338 echo "$as_me: creating $ac_file" >&6;}
22341 # Let's still pretend it is `configure' which instantiates (i.e., don't
22342 # use $as_me), people would be surprised to read:
22343 # /* config.h. Generated by config.status. */
22344 if test x"$ac_file" = x-; then
22347 configure_input="$ac_file. "
22349 configure_input=$configure_input"Generated from `echo $ac_file_in |
22350 sed 's,.*/,,'` by configure."
22352 # First look for the input files in the build tree, otherwise in the
22354 ac_file_inputs=`IFS=:
22355 for f in $ac_file_in; do
22357 -) echo $tmp/stdin ;;
22359 # Absolute (can't be DOS-style, as IFS=:)
22360 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22361 echo "$as_me: error: cannot find input file: $f" >&2;}
22362 { (exit 1); exit 1; }; }
22365 if test -f "$f"; then
22368 elif test -f "$srcdir/$f"; then
22373 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22374 echo "$as_me: error: cannot find input file: $f" >&2;}
22375 { (exit 1); exit 1; }; }
22378 done` || { (exit 1); exit 1; }
22380 cat >>$CONFIG_STATUS <<_ACEOF
22384 cat >>$CONFIG_STATUS <<\_ACEOF
22386 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22387 s,@configure_input@,$configure_input,;t t
22388 s,@srcdir@,$ac_srcdir,;t t
22389 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22390 s,@top_srcdir@,$ac_top_srcdir,;t t
22391 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22392 s,@builddir@,$ac_builddir,;t t
22393 s,@abs_builddir@,$ac_abs_builddir,;t t
22394 s,@top_builddir@,$ac_top_builddir,;t t
22395 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22396 s,@INSTALL@,$ac_INSTALL,;t t
22397 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22399 if test x"$ac_file" != x-; then
22400 mv $tmp/out $ac_file
22408 cat >>$CONFIG_STATUS <<\_ACEOF
22411 # CONFIG_HEADER section.
22414 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22415 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22417 # ac_d sets the value in "#define NAME VALUE" lines.
22418 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22419 ac_dB='[ ].*$,\1#\2'
22422 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22423 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22424 ac_uB='$,\1#\2define\3'
22428 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22429 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22431 - | *:- | *:-:* ) # input from stdin
22433 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22434 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22435 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22436 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22437 * ) ac_file_in=$ac_file.in ;;
22440 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22441 echo "$as_me: creating $ac_file" >&6;}
22443 # First look for the input files in the build tree, otherwise in the
22445 ac_file_inputs=`IFS=:
22446 for f in $ac_file_in; do
22448 -) echo $tmp/stdin ;;
22450 # Absolute (can't be DOS-style, as IFS=:)
22451 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22452 echo "$as_me: error: cannot find input file: $f" >&2;}
22453 { (exit 1); exit 1; }; }
22454 # Do quote $f, to prevent DOS paths from being IFS'd.
22457 if test -f "$f"; then
22460 elif test -f "$srcdir/$f"; then
22465 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22466 echo "$as_me: error: cannot find input file: $f" >&2;}
22467 { (exit 1); exit 1; }; }
22470 done` || { (exit 1); exit 1; }
22471 # Remove the trailing spaces.
22472 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22476 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22477 # `conftest.undefs', that substitutes the proper values into
22478 # config.h.in to produce config.h. The first handles `#define'
22479 # templates, and the second `#undef' templates.
22480 # And first: Protect against being on the right side of a sed subst in
22481 # config.status. Protect against being in an unquoted here document
22482 # in config.status.
22483 rm -f conftest.defines conftest.undefs
22484 # Using a here document instead of a string reduces the quoting nightmare.
22485 # Putting comments in sed scripts is not portable.
22487 # `end' is used to avoid that the second main sed command (meant for
22488 # 0-ary CPP macros) applies to n-ary macro definitions.
22489 # See the Autoconf documentation for `clear'.
22490 cat >confdef2sed.sed <<\_ACEOF
22495 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22497 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22500 # If some macros were called several times there might be several times
22501 # the same #defines, which is useless. Nevertheless, we may not want to
22502 # sort them, since we want the *last* AC-DEFINE to be honored.
22503 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22504 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22505 rm -f confdef2sed.sed
22507 # This sed command replaces #undef with comments. This is necessary, for
22508 # example, in the case of _POSIX_SOURCE, which is predefined and required
22509 # on some systems where configure will not decide to define it.
22510 cat >>conftest.undefs <<\_ACEOF
22511 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22514 # Break up conftest.defines because some shells have a limit on the size
22515 # of here documents, and old seds have small limits too (100 cmds).
22516 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22517 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22518 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22519 echo ' :' >>$CONFIG_STATUS
22520 rm -f conftest.tail
22521 while grep . conftest.defines >/dev/null
22523 # Write a limited-size here document to $tmp/defines.sed.
22524 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22525 # Speed up: don't consider the non `#define' lines.
22526 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22527 # Work around the forget-to-reset-the-flag bug.
22528 echo 't clr' >>$CONFIG_STATUS
22529 echo ': clr' >>$CONFIG_STATUS
22530 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22532 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22534 mv $tmp/out $tmp/in
22536 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22537 rm -f conftest.defines
22538 mv conftest.tail conftest.defines
22540 rm -f conftest.defines
22541 echo ' fi # grep' >>$CONFIG_STATUS
22542 echo >>$CONFIG_STATUS
22544 # Break up conftest.undefs because some shells have a limit on the size
22545 # of here documents, and old seds have small limits too (100 cmds).
22546 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22547 rm -f conftest.tail
22548 while grep . conftest.undefs >/dev/null
22550 # Write a limited-size here document to $tmp/undefs.sed.
22551 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22552 # Speed up: don't consider the non `#undef'
22553 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22554 # Work around the forget-to-reset-the-flag bug.
22555 echo 't clr' >>$CONFIG_STATUS
22556 echo ': clr' >>$CONFIG_STATUS
22557 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22559 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22561 mv $tmp/out $tmp/in
22563 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22564 rm -f conftest.undefs
22565 mv conftest.tail conftest.undefs
22567 rm -f conftest.undefs
22569 cat >>$CONFIG_STATUS <<\_ACEOF
22570 # Let's still pretend it is `configure' which instantiates (i.e., don't
22571 # use $as_me), people would be surprised to read:
22572 # /* config.h. Generated by config.status. */
22573 if test x"$ac_file" = x-; then
22574 echo "/* Generated by configure. */" >$tmp/config.h
22576 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22578 cat $tmp/in >>$tmp/config.h
22580 if test x"$ac_file" != x-; then
22581 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22582 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22583 echo "$as_me: $ac_file is unchanged" >&6;}
22585 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22586 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22587 X"$ac_file" : 'X\(//\)[^/]' \| \
22588 X"$ac_file" : 'X\(//\)$' \| \
22589 X"$ac_file" : 'X\(/\)' \| \
22590 . : '\(.\)' 2>/dev/null ||
22592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22593 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22594 /^X\(\/\/\)$/{ s//\1/; q; }
22595 /^X\(\/\).*/{ s//\1/; q; }
22597 { if $as_mkdir_p; then
22602 while test ! -d "$as_dir"; do
22603 as_dirs="$as_dir $as_dirs"
22604 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22605 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22606 X"$as_dir" : 'X\(//\)[^/]' \| \
22607 X"$as_dir" : 'X\(//\)$' \| \
22608 X"$as_dir" : 'X\(/\)' \| \
22609 . : '\(.\)' 2>/dev/null ||
22611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22613 /^X\(\/\/\)$/{ s//\1/; q; }
22614 /^X\(\/\).*/{ s//\1/; q; }
22617 test ! -n "$as_dirs" || mkdir $as_dirs
22618 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22619 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22620 { (exit 1); exit 1; }; }; }
22623 mv $tmp/config.h $ac_file
22627 rm -f $tmp/config.h
22629 # Compute $ac_file's index in $config_headers.
22631 for _am_header in $config_headers :; do
22632 case $_am_header in
22633 $ac_file | $ac_file:* )
22636 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22639 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22640 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22641 X$ac_file : 'X\(//\)[^/]' \| \
22642 X$ac_file : 'X\(//\)$' \| \
22643 X$ac_file : 'X\(/\)' \| \
22644 . : '\(.\)' 2>/dev/null ||
22646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22648 /^X\(\/\/\)$/{ s//\1/; q; }
22649 /^X\(\/\).*/{ s//\1/; q; }
22650 s/.*/./; q'`/stamp-h$_am_stamp_count
22653 cat >>$CONFIG_STATUS <<\_ACEOF
22656 # CONFIG_LINKS section.
22659 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22660 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22661 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22663 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22664 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22666 if test ! -r $srcdir/$ac_source; then
22667 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22668 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22669 { (exit 1); exit 1; }; }
22673 # Make relative symlinks.
22674 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
22675 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22676 X"$ac_dest" : 'X\(//\)[^/]' \| \
22677 X"$ac_dest" : 'X\(//\)$' \| \
22678 X"$ac_dest" : 'X\(/\)' \| \
22679 . : '\(.\)' 2>/dev/null ||
22681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22682 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22683 /^X\(\/\/\)$/{ s//\1/; q; }
22684 /^X\(\/\).*/{ s//\1/; q; }
22686 { if $as_mkdir_p; then
22687 mkdir -p "$ac_dest_dir"
22689 as_dir="$ac_dest_dir"
22691 while test ! -d "$as_dir"; do
22692 as_dirs="$as_dir $as_dirs"
22693 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22694 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22695 X"$as_dir" : 'X\(//\)[^/]' \| \
22696 X"$as_dir" : 'X\(//\)$' \| \
22697 X"$as_dir" : 'X\(/\)' \| \
22698 . : '\(.\)' 2>/dev/null ||
22700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22702 /^X\(\/\/\)$/{ s//\1/; q; }
22703 /^X\(\/\).*/{ s//\1/; q; }
22706 test ! -n "$as_dirs" || mkdir $as_dirs
22707 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22708 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22709 { (exit 1); exit 1; }; }; }
22713 if test "$ac_dest_dir" != .; then
22714 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22715 # A "../" for each directory in $ac_dir_suffix.
22716 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22718 ac_dir_suffix= ac_top_builddir=
22722 .) # No --srcdir option. We are building in place.
22724 if test -z "$ac_top_builddir"; then
22727 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22729 [\\/]* | ?:[\\/]* ) # Absolute path.
22730 ac_srcdir=$srcdir$ac_dir_suffix;
22731 ac_top_srcdir=$srcdir ;;
22732 *) # Relative path.
22733 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22734 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22737 # Do not use `cd foo && pwd` to compute absolute paths, because
22738 # the directories may not exist.
22740 .) ac_abs_builddir="$ac_dest_dir";;
22742 case "$ac_dest_dir" in
22743 .) ac_abs_builddir=`pwd`;;
22744 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
22745 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
22748 case $ac_abs_builddir in
22749 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22751 case ${ac_top_builddir}. in
22752 .) ac_abs_top_builddir=$ac_abs_builddir;;
22753 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22754 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22757 case $ac_abs_builddir in
22758 .) ac_abs_srcdir=$ac_srcdir;;
22761 .) ac_abs_srcdir=$ac_abs_builddir;;
22762 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22763 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22766 case $ac_abs_builddir in
22767 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22769 case $ac_top_srcdir in
22770 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22771 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22772 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22778 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
22779 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
22782 # Try a symlink, then a hard link, then a copy.
22783 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22784 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
22785 cp -p $srcdir/$ac_source $ac_dest ||
22786 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
22787 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
22788 { (exit 1); exit 1; }; }
22791 cat >>$CONFIG_STATUS <<\_ACEOF
22794 # CONFIG_COMMANDS section.
22796 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22797 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22798 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22799 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22800 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22801 X"$ac_dest" : 'X\(//\)[^/]' \| \
22802 X"$ac_dest" : 'X\(//\)$' \| \
22803 X"$ac_dest" : 'X\(/\)' \| \
22804 . : '\(.\)' 2>/dev/null ||
22806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22808 /^X\(\/\/\)$/{ s//\1/; q; }
22809 /^X\(\/\).*/{ s//\1/; q; }
22811 { if $as_mkdir_p; then
22816 while test ! -d "$as_dir"; do
22817 as_dirs="$as_dir $as_dirs"
22818 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22819 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22820 X"$as_dir" : 'X\(//\)[^/]' \| \
22821 X"$as_dir" : 'X\(//\)$' \| \
22822 X"$as_dir" : 'X\(/\)' \| \
22823 . : '\(.\)' 2>/dev/null ||
22825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22827 /^X\(\/\/\)$/{ s//\1/; q; }
22828 /^X\(\/\).*/{ s//\1/; q; }
22831 test ! -n "$as_dirs" || mkdir $as_dirs
22832 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22833 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22834 { (exit 1); exit 1; }; }; }
22838 if test "$ac_dir" != .; then
22839 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22840 # A "../" for each directory in $ac_dir_suffix.
22841 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22843 ac_dir_suffix= ac_top_builddir=
22847 .) # No --srcdir option. We are building in place.
22849 if test -z "$ac_top_builddir"; then
22852 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22854 [\\/]* | ?:[\\/]* ) # Absolute path.
22855 ac_srcdir=$srcdir$ac_dir_suffix;
22856 ac_top_srcdir=$srcdir ;;
22857 *) # Relative path.
22858 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22859 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22862 # Do not use `cd foo && pwd` to compute absolute paths, because
22863 # the directories may not exist.
22865 .) ac_abs_builddir="$ac_dir";;
22868 .) ac_abs_builddir=`pwd`;;
22869 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22870 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22873 case $ac_abs_builddir in
22874 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22876 case ${ac_top_builddir}. in
22877 .) ac_abs_top_builddir=$ac_abs_builddir;;
22878 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22879 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22882 case $ac_abs_builddir in
22883 .) ac_abs_srcdir=$ac_srcdir;;
22886 .) ac_abs_srcdir=$ac_abs_builddir;;
22887 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22888 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22891 case $ac_abs_builddir in
22892 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22894 case $ac_top_srcdir in
22895 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22896 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22897 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22902 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22903 echo "$as_me: executing $ac_dest commands" >&6;}
22905 depdir ) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
22906 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22907 # Strip MF so we end up with the name of the file.
22908 mf=`echo "$mf" | sed -e 's/:.*$//'`
22909 # Check whether this is an Automake generated Makefile or not.
22910 # We used to match only the files named `Makefile.in', but
22911 # some people rename them; so instead we look at the file content.
22912 # Grep'ing the first line is not enough: some people post-process
22913 # each Makefile.in and add a new line on top of each file to say so.
22914 # So let's grep whole file.
22915 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22916 dirpart=`(dirname "$mf") 2>/dev/null ||
22917 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22918 X"$mf" : 'X\(//\)[^/]' \| \
22919 X"$mf" : 'X\(//\)$' \| \
22920 X"$mf" : 'X\(/\)' \| \
22921 . : '\(.\)' 2>/dev/null ||
22923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22924 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22925 /^X\(\/\/\)$/{ s//\1/; q; }
22926 /^X\(\/\).*/{ s//\1/; q; }
22931 # Extract the definition of DEPDIR, am__include, and am__quote
22932 # from the Makefile without running `make'.
22933 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22934 test -z "$DEPDIR" && continue
22935 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22936 test -z "am__include" && continue
22937 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22938 # When using ansi2knr, U may be empty or an underscore; expand it
22939 U=`sed -n 's/^U = //p' < "$mf"`
22940 # Find all dependency output files, they are included files with
22941 # $(DEPDIR) in their names. We invoke sed twice because it is the
22942 # simplest approach to changing $(DEPDIR) to its actual value in the
22944 for file in `sed -n "
22945 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22946 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22947 # Make sure the directory exists.
22948 test -f "$dirpart/$file" && continue
22949 fdir=`(dirname "$file") 2>/dev/null ||
22950 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22951 X"$file" : 'X\(//\)[^/]' \| \
22952 X"$file" : 'X\(//\)$' \| \
22953 X"$file" : 'X\(/\)' \| \
22954 . : '\(.\)' 2>/dev/null ||
22956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22957 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22958 /^X\(\/\/\)$/{ s//\1/; q; }
22959 /^X\(\/\).*/{ s//\1/; q; }
22961 { if $as_mkdir_p; then
22962 mkdir -p $dirpart/$fdir
22964 as_dir=$dirpart/$fdir
22966 while test ! -d "$as_dir"; do
22967 as_dirs="$as_dir $as_dirs"
22968 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22969 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22970 X"$as_dir" : 'X\(//\)[^/]' \| \
22971 X"$as_dir" : 'X\(//\)$' \| \
22972 X"$as_dir" : 'X\(/\)' \| \
22973 . : '\(.\)' 2>/dev/null ||
22975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22976 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22977 /^X\(\/\/\)$/{ s//\1/; q; }
22978 /^X\(\/\).*/{ s//\1/; q; }
22981 test ! -n "$as_dirs" || mkdir $as_dirs
22982 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22983 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22984 { (exit 1); exit 1; }; }; }
22986 # echo "creating $dirpart/$file"
22987 echo '# dummy' > "$dirpart/$file"
22993 sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
22994 mv -f Makefile.tmp Makefile
22997 case x$CONFIG_HEADERS in
22998 xconfig.h:config.in)
23006 cat >>$CONFIG_STATUS <<\_ACEOF
23008 { (exit 0); exit 0; }
23010 chmod +x $CONFIG_STATUS
23011 ac_clean_files=$ac_clean_files_save
23014 # configure is writing to config.log, and then calls config.status.
23015 # config.status does its own redirection, appending to config.log.
23016 # Unfortunately, on DOS this fails, as config.log is still kept open
23017 # by configure, so config.status won't be able to write to it; its
23018 # output is simply discarded. So we exec the FD to /dev/null,
23019 # effectively closing config.log, so it can be properly (re)opened and
23020 # appended to by config.status. When coming back to configure, we
23021 # need to make the FD available again.
23022 if test "$no_create" != yes; then
23024 ac_config_status_args=
23025 test "$silent" = yes &&
23026 ac_config_status_args="$ac_config_status_args --quiet"
23028 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23030 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23031 # would make configure fail if this is the last instruction.
23032 $ac_cs_success || { (exit 1); exit 1; }
23036 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
23038 if test "$no_recursion" != yes; then
23040 # Remove --cache-file and --srcdir arguments so they do not pile up.
23041 ac_sub_configure_args=
23043 eval "set x $ac_configure_args"
23047 if test -n "$ac_prev"; then
23052 -cache-file | --cache-file | --cache-fil | --cache-fi \
23053 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23054 ac_prev=cache_file ;;
23055 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23056 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23059 --config-cache | -C)
23061 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23063 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23071 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23073 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23077 # Always prepend --prefix to ensure using the same prefix
23078 # in subdir configurations.
23079 ac_arg="--prefix=$prefix"
23081 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23083 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23086 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23088 # Do not complain, so a configure script can configure whichever
23089 # parts of a large source tree are present.
23090 test -d "$srcdir/$ac_dir" || continue
23092 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23093 echo "$as_me: configuring in $ac_dir" >&6;}
23094 { if $as_mkdir_p; then
23099 while test ! -d "$as_dir"; do
23100 as_dirs="$as_dir $as_dirs"
23101 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23102 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23103 X"$as_dir" : 'X\(//\)[^/]' \| \
23104 X"$as_dir" : 'X\(//\)$' \| \
23105 X"$as_dir" : 'X\(/\)' \| \
23106 . : '\(.\)' 2>/dev/null ||
23108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23109 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23110 /^X\(\/\/\)$/{ s//\1/; q; }
23111 /^X\(\/\).*/{ s//\1/; q; }
23114 test ! -n "$as_dirs" || mkdir $as_dirs
23115 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23116 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23117 { (exit 1); exit 1; }; }; }
23121 if test "$ac_dir" != .; then
23122 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23123 # A "../" for each directory in $ac_dir_suffix.
23124 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23126 ac_dir_suffix= ac_top_builddir=
23130 .) # No --srcdir option. We are building in place.
23132 if test -z "$ac_top_builddir"; then
23135 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23137 [\\/]* | ?:[\\/]* ) # Absolute path.
23138 ac_srcdir=$srcdir$ac_dir_suffix;
23139 ac_top_srcdir=$srcdir ;;
23140 *) # Relative path.
23141 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23142 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23145 # Do not use `cd foo && pwd` to compute absolute paths, because
23146 # the directories may not exist.
23148 .) ac_abs_builddir="$ac_dir";;
23151 .) ac_abs_builddir=`pwd`;;
23152 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23153 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23156 case $ac_abs_builddir in
23157 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23159 case ${ac_top_builddir}. in
23160 .) ac_abs_top_builddir=$ac_abs_builddir;;
23161 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23162 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23165 case $ac_abs_builddir in
23166 .) ac_abs_srcdir=$ac_srcdir;;
23169 .) ac_abs_srcdir=$ac_abs_builddir;;
23170 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23171 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23174 case $ac_abs_builddir in
23175 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23177 case $ac_top_srcdir in
23178 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23179 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23180 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23187 # Check for guested configure; otherwise get Cygnus style configure.
23188 if test -f "$ac_srcdir/configure.gnu"; then
23189 ac_sub_configure=$ac_srcdir/configure.gnu
23190 elif test -f "$ac_srcdir/configure"; then
23191 ac_sub_configure=$ac_srcdir/configure
23192 elif test -f "$ac_srcdir/configure.in"; then
23193 # This should be Cygnus configure.
23194 ac_sub_configure=$ac_aux_dir/configure
23196 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23197 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23201 # The recursion is here.
23202 if test -n "$ac_sub_configure"; then
23203 # Make the cache file name correct relative to the subdirectory.
23204 case $cache_file in
23205 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23206 *) # Relative path.
23207 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23210 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23211 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23212 # The eval makes quoting arguments work.
23213 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23214 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23215 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23216 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23217 { (exit 1); exit 1; }; }