* tcl.m4 (SC_PATH_TCLCONFIG): Add some simple logic to deal
[deliverable/binutils-gdb.git] / gdb / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
b4e70030 3# Generated by GNU Autoconf 2.59.
c906108c 4#
b4e70030 5# Copyright (C) 2003 Free Software Foundation, Inc.
c906108c
SS
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
bec39cab
AC
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
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+"$@"}'='"$@"'
b4e70030
JB
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
bec39cab
AC
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 33$as_unset ENV MAIL MAILPATH
bec39cab
AC
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
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 \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
b4e70030 47 $as_unset $as_var
bec39cab
AC
48 fi
49done
50
51# Required to use basename.
b4e70030 52if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
53 as_expr=expr
54else
55 as_expr=false
56fi
57
b4e70030 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
b4e70030 66as_me=`$as_basename "$0" ||
bec39cab
AC
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
bec39cab 71echo X/"$0" |
b4e70030
JB
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
bec39cab 76
4e8d927d 77
b4e70030
JB
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
4e8d927d 85
b4e70030
JB
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
4e8d927d
DJ
97fi
98
4e8d927d 99
b4e70030
JB
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
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
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
4e8d927d 116
b4e70030
JB
117 ;;
118 esac
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
122 as_myself=$0
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
bec39cab 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b4e70030 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
bec39cab
AC
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
b4e70030
JB
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
bec39cab 137 /*)
b4e70030 138 if ("$as_dir/$as_base" -c '
4e8d927d
DJ
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
b4e70030 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4e8d927d 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
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
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
bec39cab
AC
155
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
b4e70030
JB
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.
bec39cab 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
bec39cab
AC
165 sed '
166 N
b4e70030
JB
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 170 t loop
b4e70030
JB
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
bec39cab 173 ' >$as_me.lineno &&
b4e70030 174 chmod +x $as_me.lineno ||
bec39cab
AC
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
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
b4e70030
JB
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
bec39cab
AC
182 # Exit status is that of the last command.
183 exit
184}
185
186
b4e70030
JB
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
192esac
193
b4e70030 194if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
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
bec39cab 207 as_ln_s='cp -p'
b4e70030
JB
208 else
209 as_ln_s='ln -s'
210 fi
bec39cab
AC
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
b4e70030 216rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
b4e70030 225as_executable_p="test -f"
bec39cab
AC
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
b4e70030
JB
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
bec39cab 242
c906108c 243
bec39cab
AC
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
b4e70030
JB
249exec 6>&1
250
bec39cab
AC
251#
252# Initializations.
253#
c906108c 254ac_default_prefix=/usr/local
bec39cab
AC
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
b4e70030
JB
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}
266
bec39cab
AC
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="main.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
b4e70030
JB
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
bec39cab
AC
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
783e057b
DJ
312gl_header_list=
313ac_subdirs_all="$ac_subdirs_all doc testsuite"
b4e70030
JB
314ac_subdirs_all="$ac_subdirs_all gdbtk"
315ac_subdirs_all="$ac_subdirs_all multi-ice"
316ac_subdirs_all="$ac_subdirs_all gdbserver"
d5af19ba 317ac_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 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 SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE 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 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_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR 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 LIBICONV LIBOBJS LTLIBOBJS gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS'
a4ce5b0d 318ac_subst_files='host_makefile_frag'
d5af19ba 319ac_pwd=`pwd`
c906108c
SS
320
321# Initialize some variables set by options.
bec39cab
AC
322ac_init_help=
323ac_init_version=false
c906108c
SS
324# The variables have the same names as the options, with
325# dashes changed to underlines.
bec39cab 326cache_file=/dev/null
c906108c 327exec_prefix=NONE
c906108c 328no_create=
c906108c
SS
329no_recursion=
330prefix=NONE
331program_prefix=NONE
332program_suffix=NONE
333program_transform_name=s,x,x,
334silent=
335site=
336srcdir=
c906108c
SS
337verbose=
338x_includes=NONE
339x_libraries=NONE
bec39cab
AC
340
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.
c906108c
SS
346bindir='${exec_prefix}/bin'
347sbindir='${exec_prefix}/sbin'
348libexecdir='${exec_prefix}/libexec'
b4e70030 349datadir='${prefix}/share'
c906108c
SS
350sysconfdir='${prefix}/etc'
351sharedstatedir='${prefix}/com'
352localstatedir='${prefix}/var'
b4e70030 353libdir='${exec_prefix}/lib'
c906108c
SS
354includedir='${prefix}/include'
355oldincludedir='/usr/include'
b4e70030
JB
356infodir='${prefix}/info'
357mandir='${prefix}/man'
c906108c 358
c906108c
SS
359ac_prev=
360for ac_option
361do
c906108c
SS
362 # If the previous option needs an argument, assign it.
363 if test -n "$ac_prev"; then
b4e70030 364 eval "$ac_prev=\$ac_option"
c906108c
SS
365 ac_prev=
366 continue
367 fi
368
b4e70030 369 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
370
371 # Accept the important Cygnus configure options, so we can diagnose typos.
372
b4e70030 373 case $ac_option in
c906108c
SS
374
375 -bindir | --bindir | --bindi | --bind | --bin | --bi)
376 ac_prev=bindir ;;
377 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 378 bindir=$ac_optarg ;;
c906108c
SS
379
380 -build | --build | --buil | --bui | --bu)
bec39cab 381 ac_prev=build_alias ;;
c906108c 382 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 383 build_alias=$ac_optarg ;;
c906108c
SS
384
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=*)
bec39cab
AC
390 cache_file=$ac_optarg ;;
391
392 --config-cache | -C)
393 cache_file=config.cache ;;
c906108c 394
b4e70030 395 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
c906108c 396 ac_prev=datadir ;;
b4e70030
JB
397 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398 | --da=*)
bec39cab 399 datadir=$ac_optarg ;;
c906108c
SS
400
401 -disable-* | --disable-*)
bec39cab 402 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 403 # Reject names that are not valid shell variable names.
bec39cab
AC
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'`
b4e70030 408 eval "enable_$ac_feature=no" ;;
c906108c
SS
409
410 -enable-* | --enable-*)
bec39cab 411 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 412 # Reject names that are not valid shell variable names.
bec39cab
AC
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'`
b4e70030
JB
417 case $ac_option in
418 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
419 *) ac_optarg=yes ;;
420 esac
421 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
422
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=*)
bec39cab 430 exec_prefix=$ac_optarg ;;
c906108c
SS
431
432 -gas | --gas | --ga | --g)
433 # Obsolete; use --with-gas.
434 with_gas=yes ;;
435
bec39cab
AC
436 -help | --help | --hel | --he | -h)
437 ac_init_help=long ;;
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 ;;
c906108c
SS
442
443 -host | --host | --hos | --ho)
bec39cab 444 ac_prev=host_alias ;;
c906108c 445 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 446 host_alias=$ac_optarg ;;
c906108c
SS
447
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=*)
bec39cab 453 includedir=$ac_optarg ;;
c906108c
SS
454
455 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 ac_prev=infodir ;;
457 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 458 infodir=$ac_optarg ;;
c906108c
SS
459
460 -libdir | --libdir | --libdi | --libd)
461 ac_prev=libdir ;;
462 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 463 libdir=$ac_optarg ;;
c906108c
SS
464
465 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
466 | --libexe | --libex | --libe)
467 ac_prev=libexecdir ;;
468 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
469 | --libexe=* | --libex=* | --libe=*)
bec39cab 470 libexecdir=$ac_optarg ;;
c906108c
SS
471
472 -localstatedir | --localstatedir | --localstatedi | --localstated \
b4e70030
JB
473 | --localstate | --localstat | --localsta | --localst \
474 | --locals | --local | --loca | --loc | --lo)
c906108c
SS
475 ac_prev=localstatedir ;;
476 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
b4e70030
JB
477 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
478 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
bec39cab 479 localstatedir=$ac_optarg ;;
c906108c
SS
480
481 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 ac_prev=mandir ;;
483 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 484 mandir=$ac_optarg ;;
c906108c
SS
485
486 -nfp | --nfp | --nf)
487 # Obsolete; use --without-fp.
488 with_fp=no ;;
489
490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 491 | --no-cr | --no-c | -n)
c906108c
SS
492 no_create=yes ;;
493
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496 no_recursion=yes ;;
497
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=*)
bec39cab 505 oldincludedir=$ac_optarg ;;
c906108c
SS
506
507 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 ac_prev=prefix ;;
509 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 510 prefix=$ac_optarg ;;
c906108c
SS
511
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=*)
bec39cab 517 program_prefix=$ac_optarg ;;
c906108c
SS
518
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=*)
bec39cab 524 program_suffix=$ac_optarg ;;
c906108c
SS
525
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=*)
bec39cab 541 program_transform_name=$ac_optarg ;;
c906108c
SS
542
543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
544 | -silent | --silent | --silen | --sile | --sil)
545 silent=yes ;;
546
547 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 ac_prev=sbindir ;;
549 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 | --sbi=* | --sb=*)
bec39cab 551 sbindir=$ac_optarg ;;
c906108c
SS
552
553 -sharedstatedir | --sharedstatedir | --sharedstatedi \
554 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555 | --sharedst | --shareds | --shared | --share | --shar \
556 | --sha | --sh)
557 ac_prev=sharedstatedir ;;
558 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 | --sha=* | --sh=*)
bec39cab 562 sharedstatedir=$ac_optarg ;;
c906108c
SS
563
564 -site | --site | --sit)
565 ac_prev=site ;;
566 -site=* | --site=* | --sit=*)
bec39cab 567 site=$ac_optarg ;;
3ace7edb 568
c906108c
SS
569 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 ac_prev=srcdir ;;
571 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 572 srcdir=$ac_optarg ;;
c906108c
SS
573
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=*)
bec39cab 579 sysconfdir=$ac_optarg ;;
c906108c
SS
580
581 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 582 ac_prev=target_alias ;;
c906108c 583 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 584 target_alias=$ac_optarg ;;
c906108c
SS
585
586 -v | -verbose | --verbose | --verbos | --verbo | --verb)
587 verbose=yes ;;
588
bec39cab
AC
589 -version | --version | --versio | --versi | --vers | -V)
590 ac_init_version=: ;;
c906108c
SS
591
592 -with-* | --with-*)
bec39cab 593 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 594 # Reject names that are not valid shell variable names.
bec39cab
AC
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; }; }
c906108c 598 ac_package=`echo $ac_package| sed 's/-/_/g'`
b4e70030
JB
599 case $ac_option in
600 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
601 *) ac_optarg=yes ;;
602 esac
603 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
604
605 -without-* | --without-*)
bec39cab 606 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 607 # Reject names that are not valid shell variable names.
bec39cab
AC
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'`
b4e70030 612 eval "with_$ac_package=no" ;;
c906108c
SS
613
614 --x)
615 # Obsolete; use --with-x.
616 with_x=yes ;;
617
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=*)
bec39cab 623 x_includes=$ac_optarg ;;
c906108c
SS
624
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=*)
bec39cab 630 x_libraries=$ac_optarg ;;
c906108c 631
bec39cab
AC
632 -*) { echo "$as_me: error: unrecognized option: $ac_option
633Try \`$0 --help' for more information." >&2
634 { (exit 1); exit 1; }; }
c906108c
SS
635 ;;
636
bec39cab
AC
637 *=*)
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; }; }
b4e70030
JB
643 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644 eval "$ac_envvar='$ac_optarg'"
bec39cab
AC
645 export $ac_envvar ;;
646
c906108c 647 *)
bec39cab
AC
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}
c906108c
SS
653 ;;
654
655 esac
656done
657
658if test -n "$ac_prev"; then
bec39cab
AC
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; }; }
c906108c 662fi
c906108c 663
b4e70030
JB
664# Be sure to have absolute paths.
665for ac_var in exec_prefix prefix
c906108c 666do
b4e70030 667 eval ac_val=$`echo $ac_var`
bec39cab 668 case $ac_val in
b4e70030
JB
669 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671 { (exit 1); exit 1; }; };;
672 esac
673done
674
675# Be sure to have absolute paths.
676for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677 localstatedir libdir includedir oldincludedir infodir mandir
678do
679 eval ac_val=$`echo $ac_var`
680 case $ac_val in
681 [\\/$]* | ?:[\\/]* ) ;;
682 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683 { (exit 1); exit 1; }; };;
c906108c
SS
684 esac
685done
686
bec39cab
AC
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.
690build=$build_alias
691host=$host_alias
692target=$target_alias
693
694# FIXME: To remove some day.
695if 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
701 cross_compiling=yes
702 fi
703fi
c906108c 704
bec39cab
AC
705ac_tool_prefix=
706test -n "$host_alias" && ac_tool_prefix=$host_alias-
707
708test "$silent" = yes && exec 6>/dev/null
c906108c 709
c906108c
SS
710
711# Find the source files, if location was not specified.
712if test -z "$srcdir"; then
713 ac_srcdir_defaulted=yes
b4e70030
JB
714 # Try the directory containing this script, then its parent.
715 ac_confdir=`(dirname "$0") 2>/dev/null ||
bec39cab
AC
716$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717 X"$0" : 'X\(//\)[^/]' \| \
718 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
719 X"$0" : 'X\(/\)' \| \
720 . : '\(.\)' 2>/dev/null ||
bec39cab 721echo X"$0" |
b4e70030
JB
722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
724 /^X\(\/\/\)$/{ s//\1/; q; }
725 /^X\(\/\).*/{ s//\1/; q; }
726 s/.*/./; q'`
c906108c 727 srcdir=$ac_confdir
b4e70030 728 if test ! -r $srcdir/$ac_unique_file; then
c906108c
SS
729 srcdir=..
730 fi
731else
732 ac_srcdir_defaulted=no
733fi
b4e70030
JB
734if 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; }; }
738 else
739 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
bec39cab 740 { (exit 1); exit 1; }; }
b4e70030 741 fi
c906108c 742fi
b4e70030
JB
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
bec39cab 745 { (exit 1); exit 1; }; }
b4e70030
JB
746srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747ac_env_build_alias_set=${build_alias+set}
748ac_env_build_alias_value=$build_alias
749ac_cv_env_build_alias_set=${build_alias+set}
750ac_cv_env_build_alias_value=$build_alias
751ac_env_host_alias_set=${host_alias+set}
752ac_env_host_alias_value=$host_alias
753ac_cv_env_host_alias_set=${host_alias+set}
754ac_cv_env_host_alias_value=$host_alias
755ac_env_target_alias_set=${target_alias+set}
756ac_env_target_alias_value=$target_alias
757ac_cv_env_target_alias_set=${target_alias+set}
758ac_cv_env_target_alias_value=$target_alias
759ac_env_CC_set=${CC+set}
760ac_env_CC_value=$CC
761ac_cv_env_CC_set=${CC+set}
762ac_cv_env_CC_value=$CC
763ac_env_CFLAGS_set=${CFLAGS+set}
764ac_env_CFLAGS_value=$CFLAGS
765ac_cv_env_CFLAGS_set=${CFLAGS+set}
766ac_cv_env_CFLAGS_value=$CFLAGS
767ac_env_LDFLAGS_set=${LDFLAGS+set}
768ac_env_LDFLAGS_value=$LDFLAGS
769ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770ac_cv_env_LDFLAGS_value=$LDFLAGS
771ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_env_CPPFLAGS_value=$CPPFLAGS
773ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775ac_env_CPP_set=${CPP+set}
776ac_env_CPP_value=$CPP
777ac_cv_env_CPP_set=${CPP+set}
778ac_cv_env_CPP_value=$CPP
c906108c 779
bec39cab
AC
780#
781# Report the --help message.
782#
783if 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.
786 cat <<_ACEOF
787\`configure' configures this package to adapt to many kinds of systems.
788
789Usage: $0 [OPTION]... [VAR=VALUE]...
790
791To assign environment variables (e.g., CC, CFLAGS...), specify them as
792VAR=VALUE. See below for descriptions of some of the useful variables.
793
794Defaults for the options are specified in brackets.
795
796Configuration:
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 \`..']
806
b4e70030
JB
807_ACEOF
808
809 cat <<_ACEOF
bec39cab
AC
810Installation directories:
811 --prefix=PREFIX install architecture-independent files in PREFIX
812 [$ac_default_prefix]
813 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
814 [PREFIX]
815
816By default, \`make install' will install all the files in
817\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
818an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819for instance \`--prefix=\$HOME'.
820
821For better control, use the options below.
822
823Fine 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]
b4e70030 827 --datadir=DIR read-only architecture-independent data [PREFIX/share]
bec39cab
AC
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]
b4e70030
JB
834 --infodir=DIR info documentation [PREFIX/info]
835 --mandir=DIR man documentation [PREFIX/man]
bec39cab
AC
836_ACEOF
837
838 cat <<\_ACEOF
839
840Program names:
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
844
845X features:
846 --x-includes=DIR X include files are in DIR
847 --x-libraries=DIR X library files are in DIR
848
849System types:
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]
853_ACEOF
854fi
855
856if test -n "$ac_init_help"; then
857
858 cat <<\_ACEOF
859
860Optional Features:
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85981d60
AC
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
e28b3332
DJ
865 --disable-dependency-tracking speeds up one-time build
866 --enable-dependency-tracking do not reject slow dependency extractors
d0c678e6 867 --enable-targets alternative target configurations
c0993dbe 868 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
bec39cab
AC
869 --disable-gdbcli disable command-line interface (CLI)
870 --disable-gdbmi disable machine-interface (MI)
871 --enable-tui enable full-screen terminal user interface (TUI)
872 --enable-gdbtk enable gdbtk graphical user interface (GUI)
873 --enable-profiling enable profiling of GDB
3841debe 874 --disable-rpath do not hardcode runtime library paths
094a342e 875 --enable-werror treat compile warnings as errors
bec39cab
AC
876 --enable-build-warnings Enable build-time compiler warnings if gcc is used
877 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
878 --enable-sim Link gdb with simulator
879 --enable-multi-ice build the multi-ice-gdb-server
880
881Optional Packages:
882 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
883 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
bec39cab
AC
884 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
885 --with-libunwind Use libunwind frame unwinding support
c16158bc
JM
886 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
887 --with-bugurl=URL Direct users to URL to report a bug
6a30b0a5 888 --with-system-readline use installed readline library
5c39566f 889 --with-expat include expat support (auto/yes/no)
3841debe
DJ
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
892 --without-libexpat-prefix don't search for libexpat in includedir and libdir
bec39cab
AC
893 --without-included-regex don't use included regex; this is the default
894 on systems with version 2 of the GNU C library
895 (use with caution on other system)
896 --with-sysroot=DIR Search for usr/lib et al within DIR.
897 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
898 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
899 --with-tclinclude=DIR Directory where tcl private headers are
900 --with-tkinclude=DIR Directory where tk private headers are
901 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
902 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
903 --with-x use the X Window System
904 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
905
906Some influential environment variables:
907 CC C compiler command
908 CFLAGS C compiler flags
909 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
910 nonstandard directory <lib dir>
b4e70030
JB
911 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
912 headers in a nonstandard directory <include dir>
bec39cab
AC
913 CPP C preprocessor
914
915Use these variables to override the choices made by `configure' or to help
916it to find libraries and programs with nonstandard names/locations.
917
918_ACEOF
919fi
920
921if test "$ac_init_help" = "recursive"; then
922 # If there are subdirs, report their specific --help.
b4e70030 923 ac_popdir=`pwd`
bec39cab
AC
924 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925 test -d $ac_dir || continue
926 ac_builddir=.
927
b4e70030 928if test "$ac_dir" != .; then
bec39cab 929 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
930 # A "../" for each directory in $ac_dir_suffix.
931 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
932else
933 ac_dir_suffix= ac_top_builddir=
934fi
bec39cab
AC
935
936case $srcdir in
b4e70030 937 .) # No --srcdir option. We are building in place.
bec39cab 938 ac_srcdir=.
b4e70030
JB
939 if test -z "$ac_top_builddir"; then
940 ac_top_srcdir=.
941 else
942 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
943 fi ;;
944 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 945 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
946 ac_top_srcdir=$srcdir ;;
947 *) # Relative path.
948 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949 ac_top_srcdir=$ac_top_builddir$srcdir ;;
950esac
951
952# Do not use `cd foo && pwd` to compute absolute paths, because
953# the directories may not exist.
954case `pwd` in
955.) ac_abs_builddir="$ac_dir";;
956*)
957 case "$ac_dir" in
958 .) ac_abs_builddir=`pwd`;;
959 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960 *) ac_abs_builddir=`pwd`/"$ac_dir";;
961 esac;;
962esac
963case $ac_abs_builddir in
964.) ac_abs_top_builddir=${ac_top_builddir}.;;
965*)
966 case ${ac_top_builddir}. in
967 .) ac_abs_top_builddir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
969 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
970 esac;;
971esac
972case $ac_abs_builddir in
973.) ac_abs_srcdir=$ac_srcdir;;
974*)
975 case $ac_srcdir in
976 .) ac_abs_srcdir=$ac_abs_builddir;;
977 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
979 esac;;
980esac
981case $ac_abs_builddir in
982.) ac_abs_top_srcdir=$ac_top_srcdir;;
983*)
984 case $ac_top_srcdir in
985 .) ac_abs_top_srcdir=$ac_abs_builddir;;
986 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
987 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
988 esac;;
bec39cab
AC
989esac
990
b4e70030
JB
991 cd $ac_dir
992 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab 993 if test -f $ac_srcdir/configure.gnu; then
b4e70030 994 echo
bec39cab
AC
995 $SHELL $ac_srcdir/configure.gnu --help=recursive
996 elif test -f $ac_srcdir/configure; then
b4e70030 997 echo
bec39cab 998 $SHELL $ac_srcdir/configure --help=recursive
b4e70030
JB
999 elif test -f $ac_srcdir/configure.ac ||
1000 test -f $ac_srcdir/configure.in; then
1001 echo
1002 $ac_configure --help
3ace7edb 1003 else
bec39cab 1004 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
b4e70030
JB
1005 fi
1006 cd $ac_popdir
bec39cab
AC
1007 done
1008fi
1009
b4e70030 1010test -n "$ac_init_help" && exit 0
bec39cab
AC
1011if $ac_init_version; then
1012 cat <<\_ACEOF
1013
b4e70030 1014Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
1015This configure script is free software; the Free Software Foundation
1016gives unlimited permission to copy, distribute and modify it.
1017_ACEOF
b4e70030 1018 exit 0
bec39cab 1019fi
b4e70030
JB
1020exec 5>config.log
1021cat >&5 <<_ACEOF
bec39cab
AC
1022This file contains any messages produced by compilers while
1023running configure, to aid debugging if configure makes a mistake.
1024
1025It was created by $as_me, which was
b4e70030 1026generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
1027
1028 $ $0 $@
1029
1030_ACEOF
1031{
1032cat <<_ASUNAME
1033## --------- ##
1034## Platform. ##
1035## --------- ##
1036
1037hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1038uname -m = `(uname -m) 2>/dev/null || echo unknown`
1039uname -r = `(uname -r) 2>/dev/null || echo unknown`
1040uname -s = `(uname -s) 2>/dev/null || echo unknown`
1041uname -v = `(uname -v) 2>/dev/null || echo unknown`
1042
1043/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1044/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1045
1046/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1047/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1048/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
b4e70030 1049hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
bec39cab
AC
1050/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1051/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1052/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1053
1054_ASUNAME
1055
1056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1057for as_dir in $PATH
1058do
1059 IFS=$as_save_IFS
1060 test -z "$as_dir" && as_dir=.
1061 echo "PATH: $as_dir"
1062done
1063
1064} >&5
1065
1066cat >&5 <<_ACEOF
1067
1068
1069## ----------- ##
1070## Core tests. ##
1071## ----------- ##
1072
1073_ACEOF
1074
1075
1076# Keep a trace of the command line.
1077# Strip out --no-create and --no-recursion so they do not pile up.
1078# Strip out --silent because we don't want to record it for future runs.
1079# Also quote any args containing shell meta-characters.
1080# Make two passes to allow for proper duplicate-argument suppression.
1081ac_configure_args=
1082ac_configure_args0=
1083ac_configure_args1=
1084ac_sep=
1085ac_must_keep_next=false
1086for ac_pass in 1 2
1087do
1088 for ac_arg
1089 do
1090 case $ac_arg in
1091 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1094 continue ;;
b4e70030 1095 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
bec39cab
AC
1096 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1097 esac
1098 case $ac_pass in
1099 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1100 2)
1101 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1102 if test $ac_must_keep_next = true; then
1103 ac_must_keep_next=false # Got value, back to normal.
1104 else
1105 case $ac_arg in
1106 *=* | --config-cache | -C | -disable-* | --disable-* \
1107 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1108 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1109 | -with-* | --with-* | -without-* | --without-* | --x)
1110 case "$ac_configure_args0 " in
1111 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1112 esac
1113 ;;
1114 -* ) ac_must_keep_next=true ;;
1115 esac
1116 fi
1117 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1118 # Get rid of the leading space.
1119 ac_sep=" "
1120 ;;
1121 esac
1122 done
1123done
1124$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1125$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1126
1127# When interrupted or exit'd, cleanup temporary files, and complete
1128# config.log. We remove comments because anyway the quotes in there
1129# would cause problems or look ugly.
b4e70030
JB
1130# WARNING: Be sure not to use single quotes in there, as some shells,
1131# such as our DU 5.0 friend, will then `close' the trap.
bec39cab
AC
1132trap 'exit_status=$?
1133 # Save into config.log some information that might help in debugging.
1134 {
1135 echo
1136
1137 cat <<\_ASBOX
1138## ---------------- ##
1139## Cache variables. ##
1140## ---------------- ##
1141_ASBOX
1142 echo
1143 # The following way of writing the cache mishandles newlines in values,
b4e70030 1144{
bec39cab 1145 (set) 2>&1 |
b4e70030
JB
1146 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1147 *ac_space=\ *)
bec39cab 1148 sed -n \
b4e70030
JB
1149 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1151 ;;
bec39cab 1152 *)
b4e70030
JB
1153 sed -n \
1154 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 1155 ;;
b4e70030
JB
1156 esac;
1157}
bec39cab
AC
1158 echo
1159
1160 cat <<\_ASBOX
1161## ----------------- ##
1162## Output variables. ##
1163## ----------------- ##
1164_ASBOX
1165 echo
1166 for ac_var in $ac_subst_vars
1167 do
b4e70030
JB
1168 eval ac_val=$`echo $ac_var`
1169 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1170 done | sort
1171 echo
1172
1173 if test -n "$ac_subst_files"; then
1174 cat <<\_ASBOX
b4e70030
JB
1175## ------------- ##
1176## Output files. ##
1177## ------------- ##
bec39cab
AC
1178_ASBOX
1179 echo
1180 for ac_var in $ac_subst_files
1181 do
b4e70030
JB
1182 eval ac_val=$`echo $ac_var`
1183 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1184 done | sort
1185 echo
1186 fi
1187
1188 if test -s confdefs.h; then
1189 cat <<\_ASBOX
1190## ----------- ##
1191## confdefs.h. ##
1192## ----------- ##
1193_ASBOX
1194 echo
b4e70030 1195 sed "/^$/d" confdefs.h | sort
bec39cab 1196 echo
3ace7edb 1197 fi
bec39cab
AC
1198 test "$ac_signal" != 0 &&
1199 echo "$as_me: caught signal $ac_signal"
1200 echo "$as_me: exit $exit_status"
1201 } >&5
b4e70030
JB
1202 rm -f core *.core &&
1203 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 1204 exit $exit_status
b4e70030 1205 ' 0
bec39cab
AC
1206for ac_signal in 1 2 13 15; do
1207 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1208done
1209ac_signal=0
1210
1211# confdefs.h avoids OS command line length limits that DEFS can exceed.
b4e70030
JB
1212rm -rf conftest* confdefs.h
1213# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1214echo >confdefs.h
bec39cab
AC
1215
1216# Predefined preprocessor variables.
1217
1218cat >>confdefs.h <<_ACEOF
1219#define PACKAGE_NAME "$PACKAGE_NAME"
1220_ACEOF
1221
1222
1223cat >>confdefs.h <<_ACEOF
1224#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1225_ACEOF
1226
1227
1228cat >>confdefs.h <<_ACEOF
1229#define PACKAGE_VERSION "$PACKAGE_VERSION"
1230_ACEOF
1231
1232
1233cat >>confdefs.h <<_ACEOF
1234#define PACKAGE_STRING "$PACKAGE_STRING"
1235_ACEOF
1236
1237
1238cat >>confdefs.h <<_ACEOF
1239#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1240_ACEOF
1241
1242
1243# Let the site file select an alternate cache file if it wants to.
1244# Prefer explicitly selected file to automatically selected ones.
b4e70030
JB
1245if test -z "$CONFIG_SITE"; then
1246 if test "x$prefix" != xNONE; then
1247 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1248 else
1249 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1250 fi
c906108c 1251fi
b4e70030 1252for ac_site_file in $CONFIG_SITE; do
c906108c 1253 if test -r "$ac_site_file"; then
bec39cab
AC
1254 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1255echo "$as_me: loading site script $ac_site_file" >&6;}
1256 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1257 . "$ac_site_file"
1258 fi
1259done
1260
1261if test -r "$cache_file"; then
bec39cab
AC
1262 # Some versions of bash will fail to source /dev/null (special
1263 # files actually), so we avoid doing that.
1264 if test -f "$cache_file"; then
1265 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1266echo "$as_me: loading cache $cache_file" >&6;}
1267 case $cache_file in
1268 [\\/]* | ?:[\\/]* ) . $cache_file;;
1269 *) . ./$cache_file;;
1270 esac
1271 fi
c906108c 1272else
bec39cab
AC
1273 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1274echo "$as_me: creating cache $cache_file" >&6;}
1275 >$cache_file
1276fi
1277
1278# Check that the precious variables saved in the cache have kept the same
1279# value.
1280ac_cache_corrupted=false
b4e70030
JB
1281for ac_var in `(set) 2>&1 |
1282 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
bec39cab
AC
1283 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1284 eval ac_new_set=\$ac_env_${ac_var}_set
b4e70030
JB
1285 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1286 eval ac_new_val="\$ac_env_${ac_var}_value"
bec39cab
AC
1287 case $ac_old_set,$ac_new_set in
1288 set,)
1289 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1290echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1291 ac_cache_corrupted=: ;;
1292 ,set)
1293 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1294echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1295 ac_cache_corrupted=: ;;
1296 ,);;
1297 *)
1298 if test "x$ac_old_val" != "x$ac_new_val"; then
fdc59709
PB
1299 # differences in whitespace do not lead to failure.
1300 ac_old_val_w=`echo x $ac_old_val`
1301 ac_new_val_w=`echo x $ac_new_val`
1302 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1303 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
bec39cab 1304echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
fdc59709
PB
1305 ac_cache_corrupted=:
1306 else
1307 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1308echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1309 eval $ac_var=\$ac_old_val
1310 fi
1311 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1312echo "$as_me: former value: \`$ac_old_val'" >&2;}
1313 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1314echo "$as_me: current value: \`$ac_new_val'" >&2;}
bec39cab
AC
1315 fi;;
1316 esac
1317 # Pass precious variables to config.status.
1318 if test "$ac_new_set" = set; then
1319 case $ac_new_val in
b4e70030
JB
1320 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1321 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1322 *) ac_arg=$ac_var=$ac_new_val ;;
1323 esac
1324 case " $ac_configure_args " in
1325 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1326 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1327 esac
1328 fi
1329done
1330if $ac_cache_corrupted; then
d5af19ba
DJ
1331 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1332echo "$as_me: error: in \`$ac_pwd':" >&2;}
bec39cab
AC
1333 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1334echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1335 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1336echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1337 { (exit 1); exit 1; }; }
c906108c
SS
1338fi
1339
b4e70030
JB
1340ac_ext=c
1341ac_cpp='$CPP $CPPFLAGS'
1342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1344ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1345
1346
783e057b
DJ
1347gl_header_list="$gl_header_list stdint.h"
1348gl_header_list="$gl_header_list wchar.h"
1349gl_header_list="$gl_header_list string.h"
bec39cab
AC
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
bec39cab 1366
d5af19ba
DJ
1367
1368
1369
b4e70030
JB
1370 ac_config_headers="$ac_config_headers config.h:config.in"
1371
1372echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1373echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1374 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
413ccac7 1375if test "${enable_maintainer_mode+set}" = set; then
b4e70030
JB
1376 enableval="$enable_maintainer_mode"
1377 USE_MAINTAINER_MODE=$enableval
413ccac7
AC
1378else
1379 USE_MAINTAINER_MODE=no
b4e70030
JB
1380fi;
1381 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1382echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1383
413ccac7
AC
1384
1385if test $USE_MAINTAINER_MODE = yes; then
1386 MAINTAINER_MODE_TRUE=
1387 MAINTAINER_MODE_FALSE='#'
1388else
1389 MAINTAINER_MODE_TRUE='#'
1390 MAINTAINER_MODE_FALSE=
1391fi
85981d60 1392
413ccac7 1393 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1394
c906108c 1395
bec39cab
AC
1396
1397ac_ext=c
1398ac_cpp='$CPP $CPPFLAGS'
1399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1401ac_compiler_gnu=$ac_cv_c_compiler_gnu
1402if test -n "$ac_tool_prefix"; then
1403 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1404set dummy ${ac_tool_prefix}gcc; ac_word=$2
b4e70030
JB
1405echo "$as_me:$LINENO: checking for $ac_word" >&5
1406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1407if test "${ac_cv_prog_CC+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409else
1410 if test -n "$CC"; then
1411 ac_cv_prog_CC="$CC" # Let the user override the test.
1412else
1413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1414for as_dir in $PATH
1415do
1416 IFS=$as_save_IFS
1417 test -z "$as_dir" && as_dir=.
1418 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1420 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1422 break 2
1423 fi
1424done
1425done
1426
1427fi
1428fi
1429CC=$ac_cv_prog_CC
1430if test -n "$CC"; then
b4e70030
JB
1431 echo "$as_me:$LINENO: result: $CC" >&5
1432echo "${ECHO_T}$CC" >&6
bec39cab 1433else
b4e70030
JB
1434 echo "$as_me:$LINENO: result: no" >&5
1435echo "${ECHO_T}no" >&6
bec39cab
AC
1436fi
1437
1438fi
1439if test -z "$ac_cv_prog_CC"; then
1440 ac_ct_CC=$CC
1441 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1442set dummy gcc; ac_word=$2
b4e70030
JB
1443echo "$as_me:$LINENO: checking for $ac_word" >&5
1444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1445if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1447else
1448 if test -n "$ac_ct_CC"; then
1449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1450else
1451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452for as_dir in $PATH
1453do
1454 IFS=$as_save_IFS
1455 test -z "$as_dir" && as_dir=.
1456 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1458 ac_cv_prog_ac_ct_CC="gcc"
1459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1460 break 2
1461 fi
1462done
1463done
1464
1465fi
1466fi
1467ac_ct_CC=$ac_cv_prog_ac_ct_CC
1468if test -n "$ac_ct_CC"; then
b4e70030
JB
1469 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1470echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1471else
b4e70030
JB
1472 echo "$as_me:$LINENO: result: no" >&5
1473echo "${ECHO_T}no" >&6
bec39cab
AC
1474fi
1475
b4e70030 1476 CC=$ac_ct_CC
bec39cab
AC
1477else
1478 CC="$ac_cv_prog_CC"
1479fi
1480
1481if test -z "$CC"; then
b4e70030
JB
1482 if test -n "$ac_tool_prefix"; then
1483 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 1484set dummy ${ac_tool_prefix}cc; ac_word=$2
b4e70030
JB
1485echo "$as_me:$LINENO: checking for $ac_word" >&5
1486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1487if test "${ac_cv_prog_CC+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1489else
1490 if test -n "$CC"; then
1491 ac_cv_prog_CC="$CC" # Let the user override the test.
1492else
bec39cab
AC
1493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494for as_dir in $PATH
1495do
1496 IFS=$as_save_IFS
1497 test -z "$as_dir" && as_dir=.
1498 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1500 ac_cv_prog_CC="${ac_tool_prefix}cc"
1501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502 break 2
1503 fi
1504done
1505done
1506
c906108c
SS
1507fi
1508fi
bec39cab 1509CC=$ac_cv_prog_CC
c906108c 1510if test -n "$CC"; then
b4e70030
JB
1511 echo "$as_me:$LINENO: result: $CC" >&5
1512echo "${ECHO_T}$CC" >&6
c906108c 1513else
b4e70030
JB
1514 echo "$as_me:$LINENO: result: no" >&5
1515echo "${ECHO_T}no" >&6
c906108c
SS
1516fi
1517
b4e70030
JB
1518fi
1519if test -z "$ac_cv_prog_CC"; then
1520 ac_ct_CC=$CC
1521 # Extract the first word of "cc", so it can be a program name with args.
1522set dummy cc; ac_word=$2
1523echo "$as_me:$LINENO: checking for $ac_word" >&5
1524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1527else
1528 if test -n "$ac_ct_CC"; then
1529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1530else
1531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532for as_dir in $PATH
1533do
1534 IFS=$as_save_IFS
1535 test -z "$as_dir" && as_dir=.
1536 for ac_exec_ext in '' $ac_executable_extensions; do
1537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538 ac_cv_prog_ac_ct_CC="cc"
1539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540 break 2
4e8d927d 1541 fi
b4e70030
JB
1542done
1543done
1544
1545fi
1546fi
1547ac_ct_CC=$ac_cv_prog_ac_ct_CC
1548if test -n "$ac_ct_CC"; then
1549 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1550echo "${ECHO_T}$ac_ct_CC" >&6
1551else
1552 echo "$as_me:$LINENO: result: no" >&5
1553echo "${ECHO_T}no" >&6
1554fi
1555
1556 CC=$ac_ct_CC
1557else
1558 CC="$ac_cv_prog_CC"
1559fi
1560
bec39cab 1561fi
c906108c
SS
1562if test -z "$CC"; then
1563 # Extract the first word of "cc", so it can be a program name with args.
1564set dummy cc; ac_word=$2
b4e70030
JB
1565echo "$as_me:$LINENO: checking for $ac_word" >&5
1566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1567if test "${ac_cv_prog_CC+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1569else
1570 if test -n "$CC"; then
1571 ac_cv_prog_CC="$CC" # Let the user override the test.
1572else
c906108c 1573 ac_prog_rejected=no
bec39cab
AC
1574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575for as_dir in $PATH
1576do
1577 IFS=$as_save_IFS
1578 test -z "$as_dir" && as_dir=.
1579 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1581 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1582 ac_prog_rejected=yes
1583 continue
1584 fi
1585 ac_cv_prog_CC="cc"
1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587 break 2
1588 fi
1589done
1590done
1591
c906108c
SS
1592if test $ac_prog_rejected = yes; then
1593 # We found a bogon in the path, so make sure we never use it.
1594 set dummy $ac_cv_prog_CC
1595 shift
bec39cab 1596 if test $# != 0; then
c906108c
SS
1597 # We chose a different compiler from the bogus one.
1598 # However, it has the same basename, so the bogon will be chosen
1599 # first if we set CC to just the basename; use the full file name.
1600 shift
bec39cab 1601 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1602 fi
1603fi
1604fi
1605fi
bec39cab 1606CC=$ac_cv_prog_CC
c906108c 1607if test -n "$CC"; then
b4e70030
JB
1608 echo "$as_me:$LINENO: result: $CC" >&5
1609echo "${ECHO_T}$CC" >&6
c906108c 1610else
b4e70030
JB
1611 echo "$as_me:$LINENO: result: no" >&5
1612echo "${ECHO_T}no" >&6
c906108c
SS
1613fi
1614
bec39cab
AC
1615fi
1616if test -z "$CC"; then
1617 if test -n "$ac_tool_prefix"; then
b4e70030 1618 for ac_prog in cl
bec39cab
AC
1619 do
1620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1621set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b4e70030
JB
1622echo "$as_me:$LINENO: checking for $ac_word" >&5
1623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1624if test "${ac_cv_prog_CC+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1626else
1627 if test -n "$CC"; then
1628 ac_cv_prog_CC="$CC" # Let the user override the test.
1629else
bec39cab
AC
1630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631for as_dir in $PATH
1632do
1633 IFS=$as_save_IFS
1634 test -z "$as_dir" && as_dir=.
1635 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1637 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1639 break 2
1640 fi
1641done
1642done
1643
c906108c
SS
1644fi
1645fi
bec39cab 1646CC=$ac_cv_prog_CC
c906108c 1647if test -n "$CC"; then
b4e70030
JB
1648 echo "$as_me:$LINENO: result: $CC" >&5
1649echo "${ECHO_T}$CC" >&6
c906108c 1650else
b4e70030
JB
1651 echo "$as_me:$LINENO: result: no" >&5
1652echo "${ECHO_T}no" >&6
c906108c 1653fi
bec39cab
AC
1654
1655 test -n "$CC" && break
1656 done
1657fi
1658if test -z "$CC"; then
1659 ac_ct_CC=$CC
b4e70030 1660 for ac_prog in cl
bec39cab
AC
1661do
1662 # Extract the first word of "$ac_prog", so it can be a program name with args.
1663set dummy $ac_prog; ac_word=$2
b4e70030
JB
1664echo "$as_me:$LINENO: checking for $ac_word" >&5
1665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1666if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1668else
1669 if test -n "$ac_ct_CC"; then
1670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1671else
1672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673for as_dir in $PATH
1674do
1675 IFS=$as_save_IFS
1676 test -z "$as_dir" && as_dir=.
1677 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1679 ac_cv_prog_ac_ct_CC="$ac_prog"
1680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681 break 2
c906108c 1682 fi
bec39cab
AC
1683done
1684done
1685
1686fi
1687fi
1688ac_ct_CC=$ac_cv_prog_ac_ct_CC
1689if test -n "$ac_ct_CC"; then
b4e70030
JB
1690 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1691echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1692else
b4e70030
JB
1693 echo "$as_me:$LINENO: result: no" >&5
1694echo "${ECHO_T}no" >&6
c906108c
SS
1695fi
1696
bec39cab
AC
1697 test -n "$ac_ct_CC" && break
1698done
c906108c 1699
b4e70030 1700 CC=$ac_ct_CC
bec39cab
AC
1701fi
1702
1703fi
1704
1705
d5af19ba
DJ
1706test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1707echo "$as_me: error: in \`$ac_pwd':" >&2;}
1708{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
bec39cab
AC
1709See \`config.log' for more details." >&5
1710echo "$as_me: error: no acceptable C compiler found in \$PATH
1711See \`config.log' for more details." >&2;}
d5af19ba 1712 { (exit 1); exit 1; }; }; }
bec39cab
AC
1713
1714# Provide some information about the compiler.
b4e70030
JB
1715echo "$as_me:$LINENO:" \
1716 "checking for C compiler version" >&5
bec39cab 1717ac_compiler=`set X $ac_compile; echo $2`
b4e70030
JB
1718{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1719 (eval $ac_compiler --version </dev/null >&5) 2>&5
bec39cab
AC
1720 ac_status=$?
1721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1722 (exit $ac_status); }
b4e70030
JB
1723{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1724 (eval $ac_compiler -v </dev/null >&5) 2>&5
bec39cab
AC
1725 ac_status=$?
1726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1727 (exit $ac_status); }
b4e70030
JB
1728{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1729 (eval $ac_compiler -V </dev/null >&5) 2>&5
bec39cab
AC
1730 ac_status=$?
1731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732 (exit $ac_status); }
1733
1734cat >conftest.$ac_ext <<_ACEOF
1735/* confdefs.h. */
1736_ACEOF
1737cat confdefs.h >>conftest.$ac_ext
1738cat >>conftest.$ac_ext <<_ACEOF
1739/* end confdefs.h. */
1740
1741int
1742main ()
1743{
1744
1745 ;
1746 return 0;
1747}
1748_ACEOF
1749ac_clean_files_save=$ac_clean_files
b4e70030 1750ac_clean_files="$ac_clean_files a.out a.exe b.out"
bec39cab
AC
1751# Try to create an executable without -o first, disregard a.out.
1752# It will help us diagnose broken compilers, and finding out an intuition
1753# of exeext.
b4e70030
JB
1754echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1755echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
bec39cab
AC
1756ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1757if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1758 (eval $ac_link_default) 2>&5
1759 ac_status=$?
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }; then
b4e70030
JB
1762 # Find the output, starting from the most likely. This scheme is
1763# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1764# resort.
1765
1766# Be careful to initialize this variable, since it used to be cached.
1767# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1768ac_cv_exeext=
1769# b.out is created by i960 compilers.
1770for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
bec39cab
AC
1771do
1772 test -f "$ac_file" || continue
1773 case $ac_file in
b4e70030
JB
1774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1775 ;;
1776 conftest.$ac_ext )
1777 # This is the source file.
1778 ;;
1779 [ab].out )
1780 # We found the default executable, but exeext='' is most
1781 # certainly right.
1782 break;;
1783 *.* )
1784 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1785 # FIXME: I believe we export ac_cv_exeext for Libtool,
1786 # but it would be cool to find out if it's true. Does anybody
1787 # maintain Libtool? --akim.
1788 export ac_cv_exeext
1789 break;;
1790 * )
1791 break;;
bec39cab
AC
1792 esac
1793done
1794else
1795 echo "$as_me: failed program was:" >&5
1796sed 's/^/| /' conftest.$ac_ext >&5
1797
d5af19ba
DJ
1798{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1799echo "$as_me: error: in \`$ac_pwd':" >&2;}
bec39cab
AC
1800{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1801See \`config.log' for more details." >&5
1802echo "$as_me: error: C compiler cannot create executables
1803See \`config.log' for more details." >&2;}
d5af19ba 1804 { (exit 77); exit 77; }; }; }
bec39cab
AC
1805fi
1806
b4e70030
JB
1807ac_exeext=$ac_cv_exeext
1808echo "$as_me:$LINENO: result: $ac_file" >&5
1809echo "${ECHO_T}$ac_file" >&6
1810
1811# Check the compiler produces executables we can run. If not, either
bec39cab 1812# the compiler is broken, or we cross compile.
b4e70030
JB
1813echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1814echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
bec39cab
AC
1815# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1816# If not cross compiling, check that we can run a simple program.
1817if test "$cross_compiling" != yes; then
1818 if { ac_try='./$ac_file'
1819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1820 (eval $ac_try) 2>&5
1821 ac_status=$?
1822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823 (exit $ac_status); }; }; then
1824 cross_compiling=no
c906108c 1825 else
bec39cab
AC
1826 if test "$cross_compiling" = maybe; then
1827 cross_compiling=yes
1828 else
d5af19ba
DJ
1829 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1830echo "$as_me: error: in \`$ac_pwd':" >&2;}
1831{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
bec39cab
AC
1832If you meant to cross compile, use \`--host'.
1833See \`config.log' for more details." >&5
1834echo "$as_me: error: cannot run C compiled programs.
1835If you meant to cross compile, use \`--host'.
1836See \`config.log' for more details." >&2;}
d5af19ba 1837 { (exit 1); exit 1; }; }; }
bec39cab 1838 fi
c906108c 1839 fi
bec39cab 1840fi
b4e70030
JB
1841echo "$as_me:$LINENO: result: yes" >&5
1842echo "${ECHO_T}yes" >&6
bec39cab 1843
b4e70030
JB
1844rm -f a.out a.exe conftest$ac_cv_exeext b.out
1845ac_clean_files=$ac_clean_files_save
1846# Check the compiler produces executables we can run. If not, either
1847# the compiler is broken, or we cross compile.
1848echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1849echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1850echo "$as_me:$LINENO: result: $cross_compiling" >&5
1851echo "${ECHO_T}$cross_compiling" >&6
4e8d927d 1852
b4e70030
JB
1853echo "$as_me:$LINENO: checking for suffix of executables" >&5
1854echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
bec39cab
AC
1856 (eval $ac_link) 2>&5
1857 ac_status=$?
1858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1859 (exit $ac_status); }; then
b4e70030
JB
1860 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1861# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1862# work properly (i.e., refer to `conftest.exe'), while it won't with
1863# `rm'.
1864for ac_file in conftest.exe conftest conftest.*; do
1865 test -f "$ac_file" || continue
1866 case $ac_file in
1867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1868 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1869 export ac_cv_exeext
1870 break;;
1871 * ) break;;
1872 esac
1873done
c906108c 1874else
d5af19ba
DJ
1875 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1876echo "$as_me: error: in \`$ac_pwd':" >&2;}
1877{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
bec39cab
AC
1878See \`config.log' for more details." >&5
1879echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1880See \`config.log' for more details." >&2;}
d5af19ba 1881 { (exit 1); exit 1; }; }; }
c906108c 1882fi
c906108c 1883
b4e70030
JB
1884rm -f conftest$ac_cv_exeext
1885echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1886echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1887
b4e70030 1888rm -f conftest.$ac_ext
bec39cab
AC
1889EXEEXT=$ac_cv_exeext
1890ac_exeext=$EXEEXT
b4e70030
JB
1891echo "$as_me:$LINENO: checking for suffix of object files" >&5
1892echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
bec39cab
AC
1893if test "${ac_cv_objext+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1895else
b4e70030
JB
1896 cat >conftest.$ac_ext <<_ACEOF
1897/* confdefs.h. */
1898_ACEOF
1899cat confdefs.h >>conftest.$ac_ext
1900cat >>conftest.$ac_ext <<_ACEOF
1901/* end confdefs.h. */
1902
1903int
1904main ()
1905{
1906
1907 ;
1908 return 0;
1909}
1910_ACEOF
1911rm -f conftest.o conftest.obj
bec39cab
AC
1912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1913 (eval $ac_compile) 2>&5
1914 ac_status=$?
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }; then
b4e70030 1917 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
bec39cab 1918 case $ac_file in
b4e70030 1919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
bec39cab
AC
1920 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1921 break;;
1922 esac
1923done
c906108c 1924else
bec39cab
AC
1925 echo "$as_me: failed program was:" >&5
1926sed 's/^/| /' conftest.$ac_ext >&5
1927
d5af19ba
DJ
1928{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1929echo "$as_me: error: in \`$ac_pwd':" >&2;}
bec39cab
AC
1930{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1931See \`config.log' for more details." >&5
1932echo "$as_me: error: cannot compute suffix of object files: cannot compile
1933See \`config.log' for more details." >&2;}
d5af19ba 1934 { (exit 1); exit 1; }; }; }
c906108c
SS
1935fi
1936
b4e70030 1937rm -f conftest.$ac_cv_objext conftest.$ac_ext
bec39cab 1938fi
b4e70030
JB
1939echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1940echo "${ECHO_T}$ac_cv_objext" >&6
bec39cab
AC
1941OBJEXT=$ac_cv_objext
1942ac_objext=$OBJEXT
b4e70030
JB
1943echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1944echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
bec39cab
AC
1945if test "${ac_cv_c_compiler_gnu+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1947else
bec39cab
AC
1948 cat >conftest.$ac_ext <<_ACEOF
1949/* confdefs.h. */
1950_ACEOF
1951cat confdefs.h >>conftest.$ac_ext
1952cat >>conftest.$ac_ext <<_ACEOF
1953/* end confdefs.h. */
1954
1955int
1956main ()
1957{
1958#ifndef __GNUC__
1959 choke me
1960#endif
1961
1962 ;
1963 return 0;
1964}
1965_ACEOF
1966rm -f conftest.$ac_objext
1967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1968 (eval $ac_compile) 2>conftest.er1
1969 ac_status=$?
1970 grep -v '^ *+' conftest.er1 >conftest.err
1971 rm -f conftest.er1
1972 cat conftest.err >&5
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); } &&
b4e70030
JB
1975 { ac_try='test -z "$ac_c_werror_flag"
1976 || test ! -s conftest.err'
bec39cab
AC
1977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1978 (eval $ac_try) 2>&5
1979 ac_status=$?
1980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981 (exit $ac_status); }; } &&
1982 { ac_try='test -s conftest.$ac_objext'
1983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1984 (eval $ac_try) 2>&5
1985 ac_status=$?
1986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987 (exit $ac_status); }; }; then
1988 ac_compiler_gnu=yes
1989else
1990 echo "$as_me: failed program was:" >&5
1991sed 's/^/| /' conftest.$ac_ext >&5
1992
b4e70030 1993ac_compiler_gnu=no
bec39cab
AC
1994fi
1995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1996ac_cv_c_compiler_gnu=$ac_compiler_gnu
1997
1998fi
b4e70030
JB
1999echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2000echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
bec39cab
AC
2001GCC=`test $ac_compiler_gnu = yes && echo yes`
2002ac_test_CFLAGS=${CFLAGS+set}
2003ac_save_CFLAGS=$CFLAGS
b4e70030
JB
2004CFLAGS="-g"
2005echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2006echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
bec39cab
AC
2007if test "${ac_cv_prog_cc_g+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2009else
b4e70030 2010 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
2011/* confdefs.h. */
2012_ACEOF
2013cat confdefs.h >>conftest.$ac_ext
2014cat >>conftest.$ac_ext <<_ACEOF
2015/* end confdefs.h. */
2016
2017int
2018main ()
2019{
2020
2021 ;
2022 return 0;
2023}
2024_ACEOF
2025rm -f conftest.$ac_objext
2026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027 (eval $ac_compile) 2>conftest.er1
2028 ac_status=$?
2029 grep -v '^ *+' conftest.er1 >conftest.err
2030 rm -f conftest.er1
2031 cat conftest.err >&5
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); } &&
b4e70030
JB
2034 { ac_try='test -z "$ac_c_werror_flag"
2035 || test ! -s conftest.err'
bec39cab
AC
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 (eval $ac_try) 2>&5
2038 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; } &&
2041 { ac_try='test -s conftest.$ac_objext'
2042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2043 (eval $ac_try) 2>&5
2044 ac_status=$?
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; }; then
c906108c
SS
2047 ac_cv_prog_cc_g=yes
2048else
bec39cab
AC
2049 echo "$as_me: failed program was:" >&5
2050sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2051
b4e70030 2052ac_cv_prog_cc_g=no
4e8d927d 2053fi
bec39cab
AC
2054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2055fi
b4e70030
JB
2056echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2057echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2058if test "$ac_test_CFLAGS" = set; then
bec39cab 2059 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2060elif test $ac_cv_prog_cc_g = yes; then
2061 if test "$GCC" = yes; then
2062 CFLAGS="-g -O2"
2063 else
2064 CFLAGS="-g"
2065 fi
2066else
2067 if test "$GCC" = yes; then
2068 CFLAGS="-O2"
2069 else
2070 CFLAGS=
2071 fi
2072fi
b4e70030
JB
2073echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2074echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2075if test "${ac_cv_prog_cc_stdc+set}" = set; then
bec39cab
AC
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2077else
b4e70030 2078 ac_cv_prog_cc_stdc=no
bec39cab
AC
2079ac_save_CC=$CC
2080cat >conftest.$ac_ext <<_ACEOF
2081/* confdefs.h. */
2082_ACEOF
2083cat confdefs.h >>conftest.$ac_ext
2084cat >>conftest.$ac_ext <<_ACEOF
2085/* end confdefs.h. */
c906108c
SS
2086#include <stdarg.h>
2087#include <stdio.h>
2088#include <sys/types.h>
2089#include <sys/stat.h>
2090/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2091struct buf { int x; };
2092FILE * (*rcsopen) (struct buf *, struct stat *, int);
2093static char *e (p, i)
2094 char **p;
2095 int i;
2096{
2097 return p[i];
2098}
2099static char *f (char * (*g) (char **, int), char **p, ...)
2100{
2101 char *s;
2102 va_list v;
2103 va_start (v,p);
2104 s = g (p, va_arg (v,int));
2105 va_end (v);
2106 return s;
2107}
bec39cab
AC
2108
2109/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2110 function prototypes and stuff, but not '\xHH' hex character constants.
2111 These don't provoke an error unfortunately, instead are silently treated
b4e70030 2112 as 'x'. The following induces an error, until -std1 is added to get
bec39cab
AC
2113 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2114 array size at least. It's necessary to write '\x00'==0 to get something
b4e70030 2115 that's true only with -std1. */
bec39cab
AC
2116int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2117
c906108c
SS
2118int test (int i, double x);
2119struct s1 {int (*f) (int a);};
2120struct s2 {int (*f) (double a);};
2121int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2122int argc;
2123char **argv;
bec39cab
AC
2124int
2125main ()
2126{
c906108c 2127return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2128 ;
2129 return 0;
2130}
2131_ACEOF
b4e70030
JB
2132# Don't try gcc -ansi; that turns off useful extensions and
2133# breaks some systems' header files.
2134# AIX -qlanglvl=ansi
2135# Ultrix and OSF/1 -std1
2136# HP-UX 10.20 and later -Ae
2137# HP-UX older versions -Aa -D_HPUX_SOURCE
2138# SVR4 -Xc -D__EXTENSIONS__
2139for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
2140do
2141 CC="$ac_save_CC $ac_arg"
2142 rm -f conftest.$ac_objext
2143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144 (eval $ac_compile) 2>conftest.er1
2145 ac_status=$?
2146 grep -v '^ *+' conftest.er1 >conftest.err
2147 rm -f conftest.er1
2148 cat conftest.err >&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); } &&
b4e70030
JB
2151 { ac_try='test -z "$ac_c_werror_flag"
2152 || test ! -s conftest.err'
bec39cab
AC
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 (eval $ac_try) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; } &&
2158 { ac_try='test -s conftest.$ac_objext'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 (eval $ac_try) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; }; then
b4e70030
JB
2164 ac_cv_prog_cc_stdc=$ac_arg
2165break
c906108c 2166else
bec39cab
AC
2167 echo "$as_me: failed program was:" >&5
2168sed 's/^/| /' conftest.$ac_ext >&5
2169
c906108c 2170fi
bec39cab 2171rm -f conftest.err conftest.$ac_objext
c906108c 2172done
b4e70030 2173rm -f conftest.$ac_ext conftest.$ac_objext
bec39cab 2174CC=$ac_save_CC
c906108c
SS
2175
2176fi
b4e70030
JB
2177
2178case "x$ac_cv_prog_cc_stdc" in
2179 x|xno)
2180 echo "$as_me:$LINENO: result: none needed" >&5
2181echo "${ECHO_T}none needed" >&6 ;;
bec39cab 2182 *)
b4e70030
JB
2183 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2184echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2185 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2186esac
2187
b4e70030
JB
2188# Some people use a C++ compiler to compile C. Since we use `exit',
2189# in C++ we need to declare it. In case someone uses the same compiler
2190# for both compiling C and C++ we need to have the C++ compiler decide
2191# the declaration of exit, since it's the most demanding environment.
2192cat >conftest.$ac_ext <<_ACEOF
2193#ifndef __cplusplus
2194 choke me
2195#endif
2196_ACEOF
2197rm -f conftest.$ac_objext
2198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>conftest.er1
2200 ac_status=$?
2201 grep -v '^ *+' conftest.er1 >conftest.err
2202 rm -f conftest.er1
2203 cat conftest.err >&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); } &&
2206 { ac_try='test -z "$ac_c_werror_flag"
2207 || test ! -s conftest.err'
2208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209 (eval $ac_try) 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; } &&
2213 { ac_try='test -s conftest.$ac_objext'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 (eval $ac_try) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2219 for ac_declaration in \
2220 '' \
2221 'extern "C" void std::exit (int) throw (); using std::exit;' \
2222 'extern "C" void std::exit (int); using std::exit;' \
2223 'extern "C" void exit (int) throw ();' \
2224 'extern "C" void exit (int);' \
2225 'void exit (int);'
2226do
2227 cat >conftest.$ac_ext <<_ACEOF
2228/* confdefs.h. */
2229_ACEOF
2230cat confdefs.h >>conftest.$ac_ext
2231cat >>conftest.$ac_ext <<_ACEOF
2232/* end confdefs.h. */
2233$ac_declaration
2234#include <stdlib.h>
2235int
2236main ()
2237{
2238exit (42);
2239 ;
2240 return 0;
2241}
2242_ACEOF
2243rm -f conftest.$ac_objext
2244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>conftest.er1
2246 ac_status=$?
2247 grep -v '^ *+' conftest.er1 >conftest.err
2248 rm -f conftest.er1
2249 cat conftest.err >&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); } &&
2252 { ac_try='test -z "$ac_c_werror_flag"
2253 || test ! -s conftest.err'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 (eval $ac_try) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; } &&
2259 { ac_try='test -s conftest.$ac_objext'
2260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 (eval $ac_try) 2>&5
2262 ac_status=$?
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; }; then
2265 :
2266else
2267 echo "$as_me: failed program was:" >&5
2268sed 's/^/| /' conftest.$ac_ext >&5
2269
2270continue
2271fi
2272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2273 cat >conftest.$ac_ext <<_ACEOF
2274/* confdefs.h. */
2275_ACEOF
2276cat confdefs.h >>conftest.$ac_ext
2277cat >>conftest.$ac_ext <<_ACEOF
2278/* end confdefs.h. */
2279$ac_declaration
2280int
2281main ()
2282{
2283exit (42);
2284 ;
2285 return 0;
2286}
2287_ACEOF
2288rm -f conftest.$ac_objext
2289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290 (eval $ac_compile) 2>conftest.er1
2291 ac_status=$?
2292 grep -v '^ *+' conftest.er1 >conftest.err
2293 rm -f conftest.er1
2294 cat conftest.err >&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); } &&
2297 { ac_try='test -z "$ac_c_werror_flag"
2298 || test ! -s conftest.err'
2299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 (eval $ac_try) 2>&5
2301 ac_status=$?
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; } &&
2304 { ac_try='test -s conftest.$ac_objext'
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 (eval $ac_try) 2>&5
2307 ac_status=$?
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; }; then
2310 break
2311else
2312 echo "$as_me: failed program was:" >&5
2313sed 's/^/| /' conftest.$ac_ext >&5
2314
2315fi
2316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2317done
2318rm -f conftest*
2319if test -n "$ac_declaration"; then
2320 echo '#ifdef __cplusplus' >>confdefs.h
2321 echo $ac_declaration >>confdefs.h
2322 echo '#endif' >>confdefs.h
2323fi
2324
2325else
2326 echo "$as_me: failed program was:" >&5
2327sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2328
b4e70030
JB
2329fi
2330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
2331ac_ext=c
2332ac_cpp='$CPP $CPPFLAGS'
2333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2336
60ca704f 2337
bec39cab
AC
2338cat >>confdefs.h <<\_ACEOF
2339#define _GNU_SOURCE 1
2340_ACEOF
c906108c
SS
2341
2342
8bb2c122 2343
bec39cab
AC
2344ac_ext=c
2345ac_cpp='$CPP $CPPFLAGS'
2346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4e70030
JB
2349echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2350echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
bec39cab
AC
2351# On Suns, sometimes $CPP names a directory.
2352if test -n "$CPP" && test -d "$CPP"; then
2353 CPP=
8bb2c122 2354fi
bec39cab
AC
2355if test -z "$CPP"; then
2356 if test "${ac_cv_prog_CPP+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2358else
2359 # Double quotes because CPP needs to be expanded
2360 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2361 do
2362 ac_preproc_ok=false
2363for ac_c_preproc_warn_flag in '' yes
2364do
2365 # Use a header file that comes with gcc, so configuring glibc
2366 # with a fresh cross-compiler works.
2367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2368 # <limits.h> exists even on freestanding compilers.
2369 # On the NeXT, cc -E runs the code through the compiler's parser,
2370 # not just through cpp. "Syntax error" is here to catch this case.
2371 cat >conftest.$ac_ext <<_ACEOF
2372/* confdefs.h. */
2373_ACEOF
2374cat confdefs.h >>conftest.$ac_ext
2375cat >>conftest.$ac_ext <<_ACEOF
2376/* end confdefs.h. */
2377#ifdef __STDC__
2378# include <limits.h>
2379#else
2380# include <assert.h>
2381#endif
2382 Syntax error
2383_ACEOF
2384if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2386 ac_status=$?
2387 grep -v '^ *+' conftest.er1 >conftest.err
2388 rm -f conftest.er1
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } >/dev/null; then
2392 if test -s conftest.err; then
2393 ac_cpp_err=$ac_c_preproc_warn_flag
2394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2395 else
2396 ac_cpp_err=
2397 fi
8bb2c122 2398else
bec39cab 2399 ac_cpp_err=yes
8bb2c122 2400fi
bec39cab
AC
2401if test -z "$ac_cpp_err"; then
2402 :
8bb2c122 2403else
bec39cab
AC
2404 echo "$as_me: failed program was:" >&5
2405sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 # Broken: fails on valid input.
2408continue
2409fi
2410rm -f conftest.err conftest.$ac_ext
2411
b4e70030 2412 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2413 # can be detected and how.
2414 cat >conftest.$ac_ext <<_ACEOF
2415/* confdefs.h. */
2416_ACEOF
2417cat confdefs.h >>conftest.$ac_ext
2418cat >>conftest.$ac_ext <<_ACEOF
2419/* end confdefs.h. */
2420#include <ac_nonexistent.h>
2421_ACEOF
2422if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2424 ac_status=$?
2425 grep -v '^ *+' conftest.er1 >conftest.err
2426 rm -f conftest.er1
2427 cat conftest.err >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); } >/dev/null; then
2430 if test -s conftest.err; then
2431 ac_cpp_err=$ac_c_preproc_warn_flag
2432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2433 else
2434 ac_cpp_err=
2435 fi
8bb2c122 2436else
bec39cab 2437 ac_cpp_err=yes
8bb2c122 2438fi
bec39cab
AC
2439if test -z "$ac_cpp_err"; then
2440 # Broken: success on invalid input.
2441continue
8bb2c122 2442else
bec39cab
AC
2443 echo "$as_me: failed program was:" >&5
2444sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2445
bec39cab
AC
2446 # Passes both tests.
2447ac_preproc_ok=:
2448break
8bb2c122 2449fi
bec39cab 2450rm -f conftest.err conftest.$ac_ext
8bb2c122 2451
bec39cab
AC
2452done
2453# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2454rm -f conftest.err conftest.$ac_ext
2455if $ac_preproc_ok; then
2456 break
2457fi
8bb2c122 2458
bec39cab
AC
2459 done
2460 ac_cv_prog_CPP=$CPP
ddc9cd0f 2461
c906108c 2462fi
bec39cab
AC
2463 CPP=$ac_cv_prog_CPP
2464else
2465 ac_cv_prog_CPP=$CPP
c906108c 2466fi
b4e70030
JB
2467echo "$as_me:$LINENO: result: $CPP" >&5
2468echo "${ECHO_T}$CPP" >&6
bec39cab
AC
2469ac_preproc_ok=false
2470for ac_c_preproc_warn_flag in '' yes
2471do
2472 # Use a header file that comes with gcc, so configuring glibc
2473 # with a fresh cross-compiler works.
2474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2475 # <limits.h> exists even on freestanding compilers.
2476 # On the NeXT, cc -E runs the code through the compiler's parser,
2477 # not just through cpp. "Syntax error" is here to catch this case.
2478 cat >conftest.$ac_ext <<_ACEOF
2479/* confdefs.h. */
2480_ACEOF
2481cat confdefs.h >>conftest.$ac_ext
2482cat >>conftest.$ac_ext <<_ACEOF
2483/* end confdefs.h. */
2484#ifdef __STDC__
2485# include <limits.h>
2486#else
2487# include <assert.h>
2488#endif
2489 Syntax error
2490_ACEOF
2491if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2493 ac_status=$?
2494 grep -v '^ *+' conftest.er1 >conftest.err
2495 rm -f conftest.er1
2496 cat conftest.err >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } >/dev/null; then
2499 if test -s conftest.err; then
2500 ac_cpp_err=$ac_c_preproc_warn_flag
2501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2502 else
2503 ac_cpp_err=
2504 fi
c906108c 2505else
bec39cab 2506 ac_cpp_err=yes
c906108c 2507fi
bec39cab
AC
2508if test -z "$ac_cpp_err"; then
2509 :
c906108c 2510else
bec39cab
AC
2511 echo "$as_me: failed program was:" >&5
2512sed 's/^/| /' conftest.$ac_ext >&5
2513
2514 # Broken: fails on valid input.
2515continue
2516fi
2517rm -f conftest.err conftest.$ac_ext
2518
b4e70030 2519 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2520 # can be detected and how.
2521 cat >conftest.$ac_ext <<_ACEOF
2522/* confdefs.h. */
2523_ACEOF
2524cat confdefs.h >>conftest.$ac_ext
2525cat >>conftest.$ac_ext <<_ACEOF
2526/* end confdefs.h. */
2527#include <ac_nonexistent.h>
2528_ACEOF
2529if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2531 ac_status=$?
2532 grep -v '^ *+' conftest.er1 >conftest.err
2533 rm -f conftest.er1
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } >/dev/null; then
2537 if test -s conftest.err; then
2538 ac_cpp_err=$ac_c_preproc_warn_flag
2539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2540 else
2541 ac_cpp_err=
2542 fi
c906108c 2543else
bec39cab 2544 ac_cpp_err=yes
c906108c 2545fi
bec39cab
AC
2546if test -z "$ac_cpp_err"; then
2547 # Broken: success on invalid input.
2548continue
c906108c 2549else
bec39cab
AC
2550 echo "$as_me: failed program was:" >&5
2551sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2552
bec39cab
AC
2553 # Passes both tests.
2554ac_preproc_ok=:
2555break
c906108c 2556fi
bec39cab 2557rm -f conftest.err conftest.$ac_ext
c906108c 2558
bec39cab
AC
2559done
2560# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2561rm -f conftest.err conftest.$ac_ext
2562if $ac_preproc_ok; then
c906108c
SS
2563 :
2564else
d5af19ba
DJ
2565 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2566echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
bec39cab
AC
2568See \`config.log' for more details." >&5
2569echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2570See \`config.log' for more details." >&2;}
d5af19ba 2571 { (exit 1); exit 1; }; }; }
c906108c 2572fi
c906108c 2573
bec39cab
AC
2574ac_ext=c
2575ac_cpp='$CPP $CPPFLAGS'
2576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2578ac_compiler_gnu=$ac_cv_c_compiler_gnu
2579
2580
b4e70030
JB
2581echo "$as_me:$LINENO: checking for egrep" >&5
2582echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2583if test "${ac_cv_prog_egrep+set}" = set; then
4e8d927d
DJ
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2585else
b4e70030
JB
2586 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2587 then ac_cv_prog_egrep='grep -E'
2588 else ac_cv_prog_egrep='egrep'
bec39cab 2589 fi
4e8d927d 2590fi
b4e70030
JB
2591echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2592echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2593 EGREP=$ac_cv_prog_egrep
c906108c 2594
bec39cab
AC
2595
2596
b4e70030
JB
2597echo "$as_me:$LINENO: checking for AIX" >&5
2598echo $ECHO_N "checking for AIX... $ECHO_C" >&6
bec39cab
AC
2599cat >conftest.$ac_ext <<_ACEOF
2600/* confdefs.h. */
2601_ACEOF
2602cat confdefs.h >>conftest.$ac_ext
2603cat >>conftest.$ac_ext <<_ACEOF
2604/* end confdefs.h. */
2605#ifdef _AIX
2606 yes
2607#endif
2608
2609_ACEOF
c906108c 2610if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 2611 $EGREP "yes" >/dev/null 2>&1; then
b4e70030
JB
2612 echo "$as_me:$LINENO: result: yes" >&5
2613echo "${ECHO_T}yes" >&6
bec39cab
AC
2614cat >>confdefs.h <<\_ACEOF
2615#define _ALL_SOURCE 1
2616_ACEOF
2617
c906108c 2618else
b4e70030
JB
2619 echo "$as_me:$LINENO: result: no" >&5
2620echo "${ECHO_T}no" >&6
c906108c
SS
2621fi
2622rm -f conftest*
2623
c906108c 2624
b4e70030
JB
2625echo "$as_me:$LINENO: checking for library containing strerror" >&5
2626echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
bec39cab
AC
2627if test "${ac_cv_search_strerror+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2629else
bec39cab 2630 ac_func_search_save_LIBS=$LIBS
b4e70030 2631ac_cv_search_strerror=no
bec39cab
AC
2632cat >conftest.$ac_ext <<_ACEOF
2633/* confdefs.h. */
2634_ACEOF
2635cat confdefs.h >>conftest.$ac_ext
2636cat >>conftest.$ac_ext <<_ACEOF
2637/* end confdefs.h. */
c906108c 2638
b4e70030 2639/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
2640#ifdef __cplusplus
2641extern "C"
2642#endif
b4e70030
JB
2643/* We use char because int might match the return type of a gcc2
2644 builtin and then its argument prototype would still apply. */
bec39cab
AC
2645char strerror ();
2646int
2647main ()
2648{
b4e70030 2649strerror ();
bec39cab
AC
2650 ;
2651 return 0;
2652}
2653_ACEOF
b4e70030 2654rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
2655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2656 (eval $ac_link) 2>conftest.er1
2657 ac_status=$?
2658 grep -v '^ *+' conftest.er1 >conftest.err
2659 rm -f conftest.er1
2660 cat conftest.err >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); } &&
b4e70030
JB
2663 { ac_try='test -z "$ac_c_werror_flag"
2664 || test ! -s conftest.err'
bec39cab
AC
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 (eval $ac_try) 2>&5
2667 ac_status=$?
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; } &&
2670 { ac_try='test -s conftest$ac_exeext'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 (eval $ac_try) 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; }; then
b4e70030 2676 ac_cv_search_strerror="none required"
c906108c 2677else
bec39cab
AC
2678 echo "$as_me: failed program was:" >&5
2679sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2680
2681fi
bec39cab 2682rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
2683 conftest$ac_exeext conftest.$ac_ext
2684if test "$ac_cv_search_strerror" = no; then
2685 for ac_lib in cposix; do
2686 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2687 cat >conftest.$ac_ext <<_ACEOF
2688/* confdefs.h. */
2689_ACEOF
2690cat confdefs.h >>conftest.$ac_ext
2691cat >>conftest.$ac_ext <<_ACEOF
2692/* end confdefs.h. */
2693
2694/* Override any gcc2 internal prototype to avoid an error. */
2695#ifdef __cplusplus
2696extern "C"
2697#endif
2698/* We use char because int might match the return type of a gcc2
2699 builtin and then its argument prototype would still apply. */
2700char strerror ();
2701int
2702main ()
2703{
2704strerror ();
2705 ;
2706 return 0;
2707}
2708_ACEOF
2709rm -f conftest.$ac_objext conftest$ac_exeext
2710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2711 (eval $ac_link) 2>conftest.er1
2712 ac_status=$?
2713 grep -v '^ *+' conftest.er1 >conftest.err
2714 rm -f conftest.er1
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -z "$ac_c_werror_flag"
2719 || test ! -s conftest.err'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 (eval $ac_try) 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; } &&
2725 { ac_try='test -s conftest$ac_exeext'
2726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727 (eval $ac_try) 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; }; then
2731 ac_cv_search_strerror="-l$ac_lib"
2732break
4e8d927d 2733else
b4e70030
JB
2734 echo "$as_me: failed program was:" >&5
2735sed 's/^/| /' conftest.$ac_ext >&5
2736
2737fi
2738rm -f conftest.err conftest.$ac_objext \
2739 conftest$ac_exeext conftest.$ac_ext
2740 done
c906108c 2741fi
bec39cab 2742LIBS=$ac_func_search_save_LIBS
c906108c 2743fi
b4e70030
JB
2744echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2745echo "${ECHO_T}$ac_cv_search_strerror" >&6
2746if test "$ac_cv_search_strerror" != no; then
2747 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
bec39cab 2748
c906108c
SS
2749fi
2750
783e057b
DJ
2751if test -n "$ac_tool_prefix"; then
2752 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2753set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2754echo "$as_me:$LINENO: checking for $ac_word" >&5
2755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2756if test "${ac_cv_prog_RANLIB+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2758else
2759 if test -n "$RANLIB"; then
2760 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2761else
2762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763for as_dir in $PATH
2764do
2765 IFS=$as_save_IFS
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2769 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 break 2
2772 fi
2773done
2774done
c906108c 2775
783e057b
DJ
2776fi
2777fi
2778RANLIB=$ac_cv_prog_RANLIB
2779if test -n "$RANLIB"; then
2780 echo "$as_me:$LINENO: result: $RANLIB" >&5
2781echo "${ECHO_T}$RANLIB" >&6
2782else
2783 echo "$as_me:$LINENO: result: no" >&5
2784echo "${ECHO_T}no" >&6
2785fi
bec39cab 2786
783e057b
DJ
2787fi
2788if test -z "$ac_cv_prog_RANLIB"; then
2789 ac_ct_RANLIB=$RANLIB
2790 # Extract the first word of "ranlib", so it can be a program name with args.
2791set dummy ranlib; ac_word=$2
2792echo "$as_me:$LINENO: checking for $ac_word" >&5
2793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2794if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
bec39cab 2795 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2796else
783e057b
DJ
2797 if test -n "$ac_ct_RANLIB"; then
2798 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2799else
2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801for as_dir in $PATH
bec39cab 2802do
783e057b
DJ
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807 ac_cv_prog_ac_ct_RANLIB="ranlib"
2808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2810 fi
2811done
2812done
2813
2814 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2815fi
2816fi
2817ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2818if test -n "$ac_ct_RANLIB"; then
2819 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2820echo "${ECHO_T}$ac_ct_RANLIB" >&6
2821else
2822 echo "$as_me:$LINENO: result: no" >&5
2823echo "${ECHO_T}no" >&6
2824fi
2825
2826 RANLIB=$ac_ct_RANLIB
2827else
2828 RANLIB="$ac_cv_prog_RANLIB"
2829fi
2830
2831echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2832echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2833if test "${ac_cv_header_stdc+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2835else
bec39cab
AC
2836 cat >conftest.$ac_ext <<_ACEOF
2837/* confdefs.h. */
2838_ACEOF
2839cat confdefs.h >>conftest.$ac_ext
2840cat >>conftest.$ac_ext <<_ACEOF
2841/* end confdefs.h. */
783e057b 2842#include <stdlib.h>
bec39cab 2843#include <stdarg.h>
783e057b
DJ
2844#include <string.h>
2845#include <float.h>
c906108c 2846
bec39cab
AC
2847int
2848main ()
2849{
c906108c 2850
bec39cab
AC
2851 ;
2852 return 0;
2853}
2854_ACEOF
2855rm -f conftest.$ac_objext
2856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2857 (eval $ac_compile) 2>conftest.er1
2858 ac_status=$?
2859 grep -v '^ *+' conftest.er1 >conftest.err
2860 rm -f conftest.er1
2861 cat conftest.err >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); } &&
b4e70030
JB
2864 { ac_try='test -z "$ac_c_werror_flag"
2865 || test ! -s conftest.err'
bec39cab
AC
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 (eval $ac_try) 2>&5
2868 ac_status=$?
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; } &&
2871 { ac_try='test -s conftest.$ac_objext'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 (eval $ac_try) 2>&5
2874 ac_status=$?
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; }; then
783e057b 2877 ac_cv_header_stdc=yes
c906108c 2878else
bec39cab
AC
2879 echo "$as_me: failed program was:" >&5
2880sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2881
783e057b 2882ac_cv_header_stdc=no
c906108c 2883fi
bec39cab 2884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2885
783e057b
DJ
2886if test $ac_cv_header_stdc = yes; then
2887 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2888 cat >conftest.$ac_ext <<_ACEOF
2889/* confdefs.h. */
2890_ACEOF
2891cat confdefs.h >>conftest.$ac_ext
2892cat >>conftest.$ac_ext <<_ACEOF
2893/* end confdefs.h. */
2894#include <string.h>
c906108c 2895
783e057b
DJ
2896_ACEOF
2897if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2898 $EGREP "memchr" >/dev/null 2>&1; then
2899 :
c906108c 2900else
783e057b 2901 ac_cv_header_stdc=no
c906108c 2902fi
783e057b 2903rm -f conftest*
c906108c
SS
2904
2905fi
2906
783e057b
DJ
2907if test $ac_cv_header_stdc = yes; then
2908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2909 cat >conftest.$ac_ext <<_ACEOF
2910/* confdefs.h. */
2911_ACEOF
2912cat confdefs.h >>conftest.$ac_ext
2913cat >>conftest.$ac_ext <<_ACEOF
2914/* end confdefs.h. */
2915#include <stdlib.h>
bec39cab 2916
783e057b
DJ
2917_ACEOF
2918if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2919 $EGREP "free" >/dev/null 2>&1; then
2920 :
bec39cab 2921else
783e057b 2922 ac_cv_header_stdc=no
bec39cab 2923fi
783e057b 2924rm -f conftest*
bec39cab
AC
2925
2926fi
bec39cab 2927
783e057b
DJ
2928if test $ac_cv_header_stdc = yes; then
2929 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2930 if test "$cross_compiling" = yes; then
2931 :
bec39cab 2932else
783e057b
DJ
2933 cat >conftest.$ac_ext <<_ACEOF
2934/* confdefs.h. */
2935_ACEOF
2936cat confdefs.h >>conftest.$ac_ext
2937cat >>conftest.$ac_ext <<_ACEOF
2938/* end confdefs.h. */
2939#include <ctype.h>
2940#if ((' ' & 0x0FF) == 0x020)
2941# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2942# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2943#else
2944# define ISLOWER(c) \
2945 (('a' <= (c) && (c) <= 'i') \
2946 || ('j' <= (c) && (c) <= 'r') \
2947 || ('s' <= (c) && (c) <= 'z'))
2948# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2949#endif
2950
2951#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2952int
2953main ()
2954{
2955 int i;
2956 for (i = 0; i < 256; i++)
2957 if (XOR (islower (i), ISLOWER (i))
2958 || toupper (i) != TOUPPER (i))
2959 exit(2);
2960 exit (0);
2961}
2962_ACEOF
2963rm -f conftest$ac_exeext
2964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2965 (eval $ac_link) 2>&5
2966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970 (eval $ac_try) 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2974 :
2975else
2976 echo "$as_me: program exited with status $ac_status" >&5
2977echo "$as_me: failed program was:" >&5
2978sed 's/^/| /' conftest.$ac_ext >&5
2979
2980( exit $ac_status )
2981ac_cv_header_stdc=no
2982fi
2983rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2984fi
2985fi
2986fi
2987echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2988echo "${ECHO_T}$ac_cv_header_stdc" >&6
2989if test $ac_cv_header_stdc = yes; then
2990
2991cat >>confdefs.h <<\_ACEOF
2992#define STDC_HEADERS 1
2993_ACEOF
2994
2995fi
2996
2997# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3008 inttypes.h stdint.h unistd.h
3009do
3010as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3011echo "$as_me:$LINENO: checking for $ac_header" >&5
3012echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3013if eval "test \"\${$as_ac_Header+set}\" = set"; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3015else
3016 cat >conftest.$ac_ext <<_ACEOF
3017/* confdefs.h. */
3018_ACEOF
3019cat confdefs.h >>conftest.$ac_ext
3020cat >>conftest.$ac_ext <<_ACEOF
3021/* end confdefs.h. */
3022$ac_includes_default
3023
3024#include <$ac_header>
3025_ACEOF
3026rm -f conftest.$ac_objext
3027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3028 (eval $ac_compile) 2>conftest.er1
3029 ac_status=$?
3030 grep -v '^ *+' conftest.er1 >conftest.err
3031 rm -f conftest.er1
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -z "$ac_c_werror_flag"
3036 || test ! -s conftest.err'
3037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038 (eval $ac_try) 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; } &&
3042 { ac_try='test -s conftest.$ac_objext'
3043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044 (eval $ac_try) 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3048 eval "$as_ac_Header=yes"
3049else
3050 echo "$as_me: failed program was:" >&5
3051sed 's/^/| /' conftest.$ac_ext >&5
3052
3053eval "$as_ac_Header=no"
3054fi
3055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3056fi
3057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3058echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3059if test `eval echo '${'$as_ac_Header'}'` = yes; then
3060 cat >>confdefs.h <<_ACEOF
3061#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3062_ACEOF
3063
3064fi
3065
3066done
3067
3068
3069
3070 if test "${ac_cv_header_minix_config_h+set}" = set; then
3071 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3072echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3073if test "${ac_cv_header_minix_config_h+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3075fi
3076echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3077echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3078else
3079 # Is the header compilable?
3080echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3081echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3082cat >conftest.$ac_ext <<_ACEOF
3083/* confdefs.h. */
3084_ACEOF
3085cat confdefs.h >>conftest.$ac_ext
3086cat >>conftest.$ac_ext <<_ACEOF
3087/* end confdefs.h. */
3088$ac_includes_default
3089#include <minix/config.h>
3090_ACEOF
3091rm -f conftest.$ac_objext
3092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3093 (eval $ac_compile) 2>conftest.er1
3094 ac_status=$?
3095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } &&
3100 { ac_try='test -z "$ac_c_werror_flag"
3101 || test ! -s conftest.err'
3102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103 (eval $ac_try) 2>&5
3104 ac_status=$?
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; } &&
3107 { ac_try='test -s conftest.$ac_objext'
3108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 (eval $ac_try) 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3113 ac_header_compiler=yes
3114else
3115 echo "$as_me: failed program was:" >&5
3116sed 's/^/| /' conftest.$ac_ext >&5
3117
3118ac_header_compiler=no
3119fi
3120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3121echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3122echo "${ECHO_T}$ac_header_compiler" >&6
3123
3124# Is the header present?
3125echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3126echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3127cat >conftest.$ac_ext <<_ACEOF
3128/* confdefs.h. */
3129_ACEOF
3130cat confdefs.h >>conftest.$ac_ext
3131cat >>conftest.$ac_ext <<_ACEOF
3132/* end confdefs.h. */
3133#include <minix/config.h>
3134_ACEOF
3135if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } >/dev/null; then
3143 if test -s conftest.err; then
3144 ac_cpp_err=$ac_c_preproc_warn_flag
3145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3146 else
3147 ac_cpp_err=
3148 fi
3149else
3150 ac_cpp_err=yes
3151fi
3152if test -z "$ac_cpp_err"; then
3153 ac_header_preproc=yes
3154else
3155 echo "$as_me: failed program was:" >&5
3156sed 's/^/| /' conftest.$ac_ext >&5
3157
3158 ac_header_preproc=no
3159fi
3160rm -f conftest.err conftest.$ac_ext
3161echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3162echo "${ECHO_T}$ac_header_preproc" >&6
3163
3164# So? What about this header?
3165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3166 yes:no: )
3167 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3168echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3169 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3170echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3171 ac_header_preproc=yes
3172 ;;
3173 no:yes:* )
3174 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3175echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3176 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3177echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3178 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3179echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3180 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3181echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3182 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3183echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3184 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3185echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3186 (
3187 cat <<\_ASBOX
3188## ------------------------------------------ ##
3189## Report this to the AC_PACKAGE_NAME lists. ##
3190## ------------------------------------------ ##
3191_ASBOX
3192 ) |
3193 sed "s/^/$as_me: WARNING: /" >&2
3194 ;;
3195esac
3196echo "$as_me:$LINENO: checking for minix/config.h" >&5
3197echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3198if test "${ac_cv_header_minix_config_h+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3200else
3201 ac_cv_header_minix_config_h=$ac_header_preproc
3202fi
3203echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3204echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3205
3206fi
3207if test $ac_cv_header_minix_config_h = yes; then
3208 MINIX=yes
3209else
3210 MINIX=
3211fi
3212
3213
3214 if test "$MINIX" = yes; then
3215
3216cat >>confdefs.h <<\_ACEOF
3217#define _POSIX_SOURCE 1
3218_ACEOF
3219
3220
3221cat >>confdefs.h <<\_ACEOF
3222#define _POSIX_1_SOURCE 2
3223_ACEOF
3224
3225
3226cat >>confdefs.h <<\_ACEOF
3227#define _MINIX 1
3228_ACEOF
3229
3230 fi
3231
3232
3233
3234 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3235echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3236if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3238else
3239 cat >conftest.$ac_ext <<_ACEOF
3240/* confdefs.h. */
3241_ACEOF
3242cat confdefs.h >>conftest.$ac_ext
3243cat >>conftest.$ac_ext <<_ACEOF
3244/* end confdefs.h. */
3245
3246# define __EXTENSIONS__ 1
3247 $ac_includes_default
3248int
3249main ()
3250{
3251
3252 ;
3253 return 0;
3254}
3255_ACEOF
3256rm -f conftest.$ac_objext
3257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3258 (eval $ac_compile) 2>conftest.er1
3259 ac_status=$?
3260 grep -v '^ *+' conftest.er1 >conftest.err
3261 rm -f conftest.er1
3262 cat conftest.err >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } &&
3265 { ac_try='test -z "$ac_c_werror_flag"
3266 || test ! -s conftest.err'
3267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268 (eval $ac_try) 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; } &&
3272 { ac_try='test -s conftest.$ac_objext'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 (eval $ac_try) 2>&5
3275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; }; then
3278 ac_cv_safe_to_define___extensions__=yes
3279else
3280 echo "$as_me: failed program was:" >&5
3281sed 's/^/| /' conftest.$ac_ext >&5
3282
3283ac_cv_safe_to_define___extensions__=no
3284fi
3285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3286fi
3287echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3288echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3289 test $ac_cv_safe_to_define___extensions__ = yes &&
3290 cat >>confdefs.h <<\_ACEOF
3291#define __EXTENSIONS__ 1
3292_ACEOF
3293
3294 cat >>confdefs.h <<\_ACEOF
3295#define _ALL_SOURCE 1
3296_ACEOF
3297
3298 cat >>confdefs.h <<\_ACEOF
3299#define _GNU_SOURCE 1
3300_ACEOF
3301
3302 cat >>confdefs.h <<\_ACEOF
3303#define _POSIX_PTHREAD_SEMANTICS 1
3304_ACEOF
3305
3306 cat >>confdefs.h <<\_ACEOF
3307#define _TANDEM_SOURCE 1
3308_ACEOF
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3320echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3321if test "${am_cv_prog_cc_stdc+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3323else
3324 am_cv_prog_cc_stdc=no
3325ac_save_CC="$CC"
3326# Don't try gcc -ansi; that turns off useful extensions and
3327# breaks some systems' header files.
3328# AIX -qlanglvl=ansi
3329# Ultrix and OSF/1 -std1
3330# HP-UX 10.20 and later -Ae
3331# HP-UX older versions -Aa -D_HPUX_SOURCE
3332# SVR4 -Xc -D__EXTENSIONS__
3333for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3334do
3335 CC="$ac_save_CC $ac_arg"
3336 cat >conftest.$ac_ext <<_ACEOF
3337/* confdefs.h. */
3338_ACEOF
3339cat confdefs.h >>conftest.$ac_ext
3340cat >>conftest.$ac_ext <<_ACEOF
3341/* end confdefs.h. */
3342#include <stdarg.h>
3343#include <stdio.h>
3344#include <sys/types.h>
3345#include <sys/stat.h>
3346/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3347struct buf { int x; };
3348FILE * (*rcsopen) (struct buf *, struct stat *, int);
3349static char *e (p, i)
3350 char **p;
3351 int i;
3352{
3353 return p[i];
3354}
3355static char *f (char * (*g) (char **, int), char **p, ...)
3356{
3357 char *s;
3358 va_list v;
3359 va_start (v,p);
3360 s = g (p, va_arg (v,int));
3361 va_end (v);
3362 return s;
3363}
3364int test (int i, double x);
3365struct s1 {int (*f) (int a);};
3366struct s2 {int (*f) (double a);};
3367int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3368int argc;
3369char **argv;
3370
3371int
3372main ()
3373{
3374
3375return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3376
3377 ;
3378 return 0;
3379}
3380_ACEOF
3381rm -f conftest.$ac_objext
3382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3383 (eval $ac_compile) 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } &&
3390 { ac_try='test -z "$ac_c_werror_flag"
3391 || test ! -s conftest.err'
3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393 (eval $ac_try) 2>&5
3394 ac_status=$?
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; } &&
3397 { ac_try='test -s conftest.$ac_objext'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 (eval $ac_try) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
3403 am_cv_prog_cc_stdc="$ac_arg"; break
3404else
3405 echo "$as_me: failed program was:" >&5
3406sed 's/^/| /' conftest.$ac_ext >&5
3407
3408fi
3409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3410done
3411CC="$ac_save_CC"
3412
3413fi
3414
3415if test -z "$am_cv_prog_cc_stdc"; then
3416 echo "$as_me:$LINENO: result: none needed" >&5
3417echo "${ECHO_T}none needed" >&6
3418else
3419 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3420echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3421fi
3422case "x$am_cv_prog_cc_stdc" in
3423 x|xno) ;;
3424 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3425esac
3426
3427
3428ac_aux_dir=
3429for ac_dir in .. $srcdir/..; do
3430 if test -f $ac_dir/install-sh; then
3431 ac_aux_dir=$ac_dir
3432 ac_install_sh="$ac_aux_dir/install-sh -c"
3433 break
3434 elif test -f $ac_dir/install.sh; then
3435 ac_aux_dir=$ac_dir
3436 ac_install_sh="$ac_aux_dir/install.sh -c"
3437 break
3438 elif test -f $ac_dir/shtool; then
3439 ac_aux_dir=$ac_dir
3440 ac_install_sh="$ac_aux_dir/shtool install -c"
3441 break
3442 fi
3443done
3444if test -z "$ac_aux_dir"; then
3445 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3446echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3447 { (exit 1); exit 1; }; }
3448fi
3449ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3450ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3451ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3452
3453# Make sure we can run config.sub.
3454$ac_config_sub sun4 >/dev/null 2>&1 ||
3455 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3456echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3457 { (exit 1); exit 1; }; }
3458
3459echo "$as_me:$LINENO: checking build system type" >&5
3460echo $ECHO_N "checking build system type... $ECHO_C" >&6
3461if test "${ac_cv_build+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463else
3464 ac_cv_build_alias=$build_alias
3465test -z "$ac_cv_build_alias" &&
3466 ac_cv_build_alias=`$ac_config_guess`
3467test -z "$ac_cv_build_alias" &&
3468 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3469echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3470 { (exit 1); exit 1; }; }
3471ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3472 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3473echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3474 { (exit 1); exit 1; }; }
3475
3476fi
3477echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3478echo "${ECHO_T}$ac_cv_build" >&6
3479build=$ac_cv_build
3480build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3481build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3482build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3483
3484
3485echo "$as_me:$LINENO: checking host system type" >&5
3486echo $ECHO_N "checking host system type... $ECHO_C" >&6
3487if test "${ac_cv_host+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489else
3490 ac_cv_host_alias=$host_alias
3491test -z "$ac_cv_host_alias" &&
3492 ac_cv_host_alias=$ac_cv_build_alias
3493ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3494 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3495echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3496 { (exit 1); exit 1; }; }
3497
3498fi
3499echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3500echo "${ECHO_T}$ac_cv_host" >&6
3501host=$ac_cv_host
3502host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3503host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3504host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3505
3506
3507echo "$as_me:$LINENO: checking target system type" >&5
3508echo $ECHO_N "checking target system type... $ECHO_C" >&6
3509if test "${ac_cv_target+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3511else
3512 ac_cv_target_alias=$target_alias
3513test "x$ac_cv_target_alias" = "x" &&
b4e70030
JB
3514 ac_cv_target_alias=$ac_cv_host_alias
3515ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3517echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
bec39cab
AC
3518 { (exit 1); exit 1; }; }
3519
3520fi
783e057b
DJ
3521echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3522echo "${ECHO_T}$ac_cv_target" >&6
3523target=$ac_cv_target
3524target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3525target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3526target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3527
3528
3529# The aliases save the names the user supplied, while $host etc.
3530# will get canonicalized.
3531test -n "$target_alias" &&
3532 test "$program_prefix$program_suffix$program_transform_name" = \
3533 NONENONEs,x,x, &&
3534 program_prefix=${target_alias}-
3535
3536
3537CONFIG_OBS=
3538CONFIG_DEPS=
3539CONFIG_SRCS=
3540ENABLE_CFLAGS=
3541
3542CONFIG_ALL=
3543CONFIG_CLEAN=
3544CONFIG_INSTALL=
3545CONFIG_UNINSTALL=
3546
3547# If we haven't got the data from the intl directory,
3548# assume NLS is disabled.
3549USE_NLS=no
3550LIBINTL=
3551LIBINTL_DEP=
3552INCINTL=
3553XGETTEXT=
3554GMSGFMT=
3555POSUB=
3556
3557if test -f ../intl/config.intl; then
3558 . ../intl/config.intl
3559fi
3560echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3561echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3562if test x"$USE_NLS" != xyes; then
3563 echo "$as_me:$LINENO: result: no" >&5
3564echo "${ECHO_T}no" >&6
3565else
3566 echo "$as_me:$LINENO: result: yes" >&5
3567echo "${ECHO_T}yes" >&6
3568
3569cat >>confdefs.h <<\_ACEOF
3570#define ENABLE_NLS 1
3571_ACEOF
3572
3573
3574 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3575echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3576 # Look for .po and .gmo files in the source directory.
3577 CATALOGS=
3578 XLINGUAS=
3579 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3580 # If there aren't any .gmo files the shell will give us the
3581 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3582 # weeded out.
3583 case "$cat" in *\**)
3584 continue;;
3585 esac
3586 # The quadruple backslash is collapsed to a double backslash
3587 # by the backticks, then collapsed again by the double quotes,
3588 # leaving us with one backslash in the sed expression (right
3589 # before the dot that mustn't act as a wildcard).
3590 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3591 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3592 # The user is allowed to set LINGUAS to a list of languages to
3593 # install catalogs for. If it's empty that means "all of them."
3594 if test "x$LINGUAS" = x; then
3595 CATALOGS="$CATALOGS $cat"
3596 XLINGUAS="$XLINGUAS $lang"
3597 else
3598 case "$LINGUAS" in *$lang*)
3599 CATALOGS="$CATALOGS $cat"
3600 XLINGUAS="$XLINGUAS $lang"
3601 ;;
3602 esac
3603 fi
3604 done
3605 LINGUAS="$XLINGUAS"
3606 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3607echo "${ECHO_T}$LINGUAS" >&6
3608
3609
3610 DATADIRNAME=share
3611
3612 INSTOBJEXT=.mo
3613
3614 GENCAT=gencat
3615
3616 CATOBJEXT=.gmo
3617
3618fi
3619
3620localedir='${datadir}/locale'
3621
3622
3623if test x"$USE_NLS" = xyes; then
3624 CONFIG_ALL="$CONFIG_ALL all-po"
3625 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3626 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3627 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3628fi
3629
3630
3631 GNULIB_MEMMEM=0;
3632 GNULIB_MEMPCPY=0;
3633 GNULIB_MEMRCHR=0;
3634 GNULIB_STPCPY=0;
3635 GNULIB_STPNCPY=0;
3636 GNULIB_STRCHRNUL=0;
3637 GNULIB_STRDUP=0;
3638 GNULIB_STRNDUP=0;
3639 GNULIB_STRNLEN=0;
3640 GNULIB_STRPBRK=0;
3641 GNULIB_STRSEP=0;
3642 GNULIB_STRSTR=0;
3643 GNULIB_STRCASESTR=0;
3644 GNULIB_STRTOK_R=0;
3645 GNULIB_MBSLEN=0;
3646 GNULIB_MBSNLEN=0;
3647 GNULIB_MBSCHR=0;
3648 GNULIB_MBSRCHR=0;
3649 GNULIB_MBSSTR=0;
3650 GNULIB_MBSCASECMP=0;
3651 GNULIB_MBSNCASECMP=0;
3652 GNULIB_MBSPCASECMP=0;
3653 GNULIB_MBSCASESTR=0;
3654 GNULIB_MBSCSPN=0;
3655 GNULIB_MBSPBRK=0;
3656 GNULIB_MBSSPN=0;
3657 GNULIB_MBSSEP=0;
3658 GNULIB_MBSTOK_R=0;
3659 GNULIB_STRERROR=0;
3660 GNULIB_STRSIGNAL=0;
3661 HAVE_DECL_MEMMEM=1;
3662 HAVE_MEMPCPY=1;
3663 HAVE_DECL_MEMRCHR=1;
3664 HAVE_STPCPY=1;
3665 HAVE_STPNCPY=1;
3666 HAVE_STRCHRNUL=1;
3667 HAVE_DECL_STRDUP=1;
3668 HAVE_STRNDUP=1;
3669 HAVE_DECL_STRNDUP=1;
3670 HAVE_DECL_STRNLEN=1;
3671 HAVE_STRPBRK=1;
3672 HAVE_STRSEP=1;
3673 HAVE_STRCASESTR=1;
3674 HAVE_DECL_STRTOK_R=1;
3675 HAVE_DECL_STRERROR=1;
3676 HAVE_DECL_STRSIGNAL=1;
3677 REPLACE_STRERROR=0;
3678 REPLACE_STRSIGNAL=0;
3679 REPLACE_MEMMEM=0;
3680 REPLACE_STRCASESTR=0;
3681 REPLACE_STRSTR=0;
3682
3683
3684 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3685echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3686if test "${ac_cv_have_decl_memmem+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3688else
3689 cat >conftest.$ac_ext <<_ACEOF
3690/* confdefs.h. */
3691_ACEOF
3692cat confdefs.h >>conftest.$ac_ext
3693cat >>conftest.$ac_ext <<_ACEOF
3694/* end confdefs.h. */
3695$ac_includes_default
3696int
3697main ()
3698{
3699#ifndef memmem
3700 char *p = (char *) memmem;
3701#endif
3702
3703 ;
3704 return 0;
3705}
3706_ACEOF
3707rm -f conftest.$ac_objext
3708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3709 (eval $ac_compile) 2>conftest.er1
3710 ac_status=$?
3711 grep -v '^ *+' conftest.er1 >conftest.err
3712 rm -f conftest.er1
3713 cat conftest.err >&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } &&
3716 { ac_try='test -z "$ac_c_werror_flag"
3717 || test ! -s conftest.err'
3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719 (eval $ac_try) 2>&5
3720 ac_status=$?
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; } &&
3723 { ac_try='test -s conftest.$ac_objext'
3724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725 (eval $ac_try) 2>&5
3726 ac_status=$?
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; }; then
3729 ac_cv_have_decl_memmem=yes
3730else
3731 echo "$as_me: failed program was:" >&5
3732sed 's/^/| /' conftest.$ac_ext >&5
3733
3734ac_cv_have_decl_memmem=no
3735fi
3736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3737fi
3738echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3739echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3740if test $ac_cv_have_decl_memmem = yes; then
3741
3742cat >>confdefs.h <<_ACEOF
3743#define HAVE_DECL_MEMMEM 1
3744_ACEOF
3745
3746
3747else
3748 cat >>confdefs.h <<_ACEOF
3749#define HAVE_DECL_MEMMEM 0
3750_ACEOF
3751
3752
3753fi
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769for ac_func in memmem
3770do
3771as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3772echo "$as_me:$LINENO: checking for $ac_func" >&5
3773echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3774if eval "test \"\${$as_ac_var+set}\" = set"; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3776else
3777 cat >conftest.$ac_ext <<_ACEOF
3778/* confdefs.h. */
3779_ACEOF
3780cat confdefs.h >>conftest.$ac_ext
3781cat >>conftest.$ac_ext <<_ACEOF
3782/* end confdefs.h. */
3783/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3785#define $ac_func innocuous_$ac_func
3786
3787/* System header to define __stub macros and hopefully few prototypes,
3788 which can conflict with char $ac_func (); below.
3789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3790 <limits.h> exists even on freestanding compilers. */
3791
3792#ifdef __STDC__
3793# include <limits.h>
3794#else
3795# include <assert.h>
3796#endif
3797
3798#undef $ac_func
3799
3800/* Override any gcc2 internal prototype to avoid an error. */
3801#ifdef __cplusplus
3802extern "C"
3803{
3804#endif
3805/* We use char because int might match the return type of a gcc2
3806 builtin and then its argument prototype would still apply. */
3807char $ac_func ();
3808/* The GNU C library defines this for functions which it implements
3809 to always fail with ENOSYS. Some functions are actually named
3810 something starting with __ and the normal name is an alias. */
3811#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3812choke me
3813#else
3814char (*f) () = $ac_func;
3815#endif
3816#ifdef __cplusplus
3817}
3818#endif
3819
3820int
3821main ()
3822{
3823return f != $ac_func;
3824 ;
3825 return 0;
3826}
3827_ACEOF
3828rm -f conftest.$ac_objext conftest$ac_exeext
3829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3830 (eval $ac_link) 2>conftest.er1
3831 ac_status=$?
3832 grep -v '^ *+' conftest.er1 >conftest.err
3833 rm -f conftest.er1
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } &&
3837 { ac_try='test -z "$ac_c_werror_flag"
3838 || test ! -s conftest.err'
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 (eval $ac_try) 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try='test -s conftest$ac_exeext'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 (eval $ac_try) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3850 eval "$as_ac_var=yes"
3851else
3852 echo "$as_me: failed program was:" >&5
3853sed 's/^/| /' conftest.$ac_ext >&5
3854
3855eval "$as_ac_var=no"
3856fi
3857rm -f conftest.err conftest.$ac_objext \
3858 conftest$ac_exeext conftest.$ac_ext
3859fi
3860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3861echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3862if test `eval echo '${'$as_ac_var'}'` = yes; then
3863 cat >>confdefs.h <<_ACEOF
3864#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3865_ACEOF
3866
3867else
3868
3869 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
3870
3871fi
3872done
3873
3874
3875
3876 :
3877
3878
3879
3880
3881
3882 if test $ac_cv_have_decl_memmem = no; then
3883 HAVE_DECL_MEMMEM=0
3884 fi
3885 :
3886
3887
3888 echo "$as_me:$LINENO: checking for long long int" >&5
3889echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3890if test "${ac_cv_type_long_long_int+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3892else
3893 cat >conftest.$ac_ext <<_ACEOF
3894
3895 /* confdefs.h. */
3896_ACEOF
3897cat confdefs.h >>conftest.$ac_ext
3898cat >>conftest.$ac_ext <<_ACEOF
3899/* end confdefs.h. */
3900/* For now, do not test the preprocessor; as of 2007 there are too many
3901 implementations with broken preprocessors. Perhaps this can
3902 be revisited in 2012. In the meantime, code should not expect
3903 #if to work with literals wider than 32 bits. */
3904 /* Test literals. */
3905 long long int ll = 9223372036854775807ll;
3906 long long int nll = -9223372036854775807LL;
3907 unsigned long long int ull = 18446744073709551615ULL;
3908 /* Test constant expressions. */
3909 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
3910 ? 1 : -1)];
3911 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
3912 ? 1 : -1)];
3913 int i = 63;
3914int
3915main ()
3916{
3917/* Test availability of runtime routines for shift and division. */
3918 long long int llmax = 9223372036854775807ll;
3919 unsigned long long int ullmax = 18446744073709551615ull;
3920 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
3921 | (llmax / ll) | (llmax % ll)
3922 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
3923 | (ullmax / ull) | (ullmax % ull));
3924 ;
3925 return 0;
3926}
3927
3928_ACEOF
3929rm -f conftest.$ac_objext conftest$ac_exeext
3930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3931 (eval $ac_link) 2>conftest.er1
3932 ac_status=$?
3933 grep -v '^ *+' conftest.er1 >conftest.err
3934 rm -f conftest.er1
3935 cat conftest.err >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } &&
3938 { ac_try='test -z "$ac_c_werror_flag"
3939 || test ! -s conftest.err'
3940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941 (eval $ac_try) 2>&5
3942 ac_status=$?
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; } &&
3945 { ac_try='test -s conftest$ac_exeext'
3946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947 (eval $ac_try) 2>&5
3948 ac_status=$?
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); }; }; then
3951 if test "$cross_compiling" = yes; then
3952 ac_cv_type_long_long_int=yes
3953else
3954 cat >conftest.$ac_ext <<_ACEOF
3955/* confdefs.h. */
3956_ACEOF
3957cat confdefs.h >>conftest.$ac_ext
3958cat >>conftest.$ac_ext <<_ACEOF
3959/* end confdefs.h. */
3960#include <limits.h>
3961 #ifndef LLONG_MAX
3962 # define HALF \
3963 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
3964 # define LLONG_MAX (HALF - 1 + HALF)
3965 #endif
3966int
3967main ()
3968{
3969long long int n = 1;
3970 int i;
3971 for (i = 0; ; i++)
3972 {
3973 long long int m = n << i;
3974 if (m >> i != n)
3975 return 1;
3976 if (LLONG_MAX / 2 < m)
3977 break;
3978 }
3979 return 0;
3980 ;
3981 return 0;
3982}
3983_ACEOF
3984rm -f conftest$ac_exeext
3985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3986 (eval $ac_link) 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 (eval $ac_try) 2>&5
3992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; }; then
3995 ac_cv_type_long_long_int=yes
3996else
3997 echo "$as_me: program exited with status $ac_status" >&5
3998echo "$as_me: failed program was:" >&5
3999sed 's/^/| /' conftest.$ac_ext >&5
4000
4001( exit $ac_status )
4002ac_cv_type_long_long_int=no
4003fi
4004rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4005fi
4006else
4007 echo "$as_me: failed program was:" >&5
4008sed 's/^/| /' conftest.$ac_ext >&5
4009
4010ac_cv_type_long_long_int=no
4011fi
4012rm -f conftest.err conftest.$ac_objext \
4013 conftest$ac_exeext conftest.$ac_ext
4014fi
4015echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4016echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4017 if test $ac_cv_type_long_long_int = yes; then
4018
4019cat >>confdefs.h <<\_ACEOF
4020#define HAVE_LONG_LONG_INT 1
4021_ACEOF
4022
4023 fi
4024
4025
4026 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4027echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4028if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030else
4031 cat >conftest.$ac_ext <<_ACEOF
4032
4033 /* confdefs.h. */
4034_ACEOF
4035cat confdefs.h >>conftest.$ac_ext
4036cat >>conftest.$ac_ext <<_ACEOF
4037/* end confdefs.h. */
4038/* For now, do not test the preprocessor; as of 2007 there are too many
4039 implementations with broken preprocessors. Perhaps this can
4040 be revisited in 2012. In the meantime, code should not expect
4041 #if to work with literals wider than 32 bits. */
4042 /* Test literals. */
4043 long long int ll = 9223372036854775807ll;
4044 long long int nll = -9223372036854775807LL;
4045 unsigned long long int ull = 18446744073709551615ULL;
4046 /* Test constant expressions. */
4047 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4048 ? 1 : -1)];
4049 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4050 ? 1 : -1)];
4051 int i = 63;
4052int
4053main ()
4054{
4055/* Test availability of runtime routines for shift and division. */
4056 long long int llmax = 9223372036854775807ll;
4057 unsigned long long int ullmax = 18446744073709551615ull;
4058 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4059 | (llmax / ll) | (llmax % ll)
4060 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4061 | (ullmax / ull) | (ullmax % ull));
4062 ;
4063 return 0;
4064}
4065
4066_ACEOF
4067rm -f conftest.$ac_objext conftest$ac_exeext
4068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4069 (eval $ac_link) 2>conftest.er1
4070 ac_status=$?
4071 grep -v '^ *+' conftest.er1 >conftest.err
4072 rm -f conftest.er1
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } &&
4076 { ac_try='test -z "$ac_c_werror_flag"
4077 || test ! -s conftest.err'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 (eval $ac_try) 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; } &&
4083 { ac_try='test -s conftest$ac_exeext'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 (eval $ac_try) 2>&5
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; }; then
4089 ac_cv_type_unsigned_long_long_int=yes
4090else
4091 echo "$as_me: failed program was:" >&5
4092sed 's/^/| /' conftest.$ac_ext >&5
4093
4094ac_cv_type_unsigned_long_long_int=no
4095fi
4096rm -f conftest.err conftest.$ac_objext \
4097 conftest$ac_exeext conftest.$ac_ext
4098fi
4099echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4100echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4101 if test $ac_cv_type_unsigned_long_long_int = yes; then
4102
4103cat >>confdefs.h <<\_ACEOF
4104#define HAVE_UNSIGNED_LONG_LONG_INT 1
4105_ACEOF
4106
4107 fi
4108
4109
4110
4111 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4112echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4113if test "${gl_cv_have_include_next+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4115else
4116 rm -rf conftestd1 conftestd2
4117 mkdir conftestd1 conftestd2
4118 cat <<EOF > conftestd1/conftest.h
4119#define DEFINED_IN_CONFTESTD1
4120#include_next <conftest.h>
4121#ifdef DEFINED_IN_CONFTESTD2
4122int foo;
4123#else
4124#error "include_next doesn't work"
4125#endif
4126EOF
4127 cat <<EOF > conftestd2/conftest.h
4128#ifndef DEFINED_IN_CONFTESTD1
4129#error "include_next test doesn't work"
4130#endif
4131#define DEFINED_IN_CONFTESTD2
4132EOF
4133 save_CPPFLAGS="$CPPFLAGS"
4134 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4135 cat >conftest.$ac_ext <<_ACEOF
4136#include <conftest.h>
4137_ACEOF
4138rm -f conftest.$ac_objext
4139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4140 (eval $ac_compile) 2>conftest.er1
4141 ac_status=$?
4142 grep -v '^ *+' conftest.er1 >conftest.err
4143 rm -f conftest.er1
4144 cat conftest.err >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } &&
4147 { ac_try='test -z "$ac_c_werror_flag"
4148 || test ! -s conftest.err'
4149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150 (eval $ac_try) 2>&5
4151 ac_status=$?
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; } &&
4154 { ac_try='test -s conftest.$ac_objext'
4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 (eval $ac_try) 2>&5
4157 ac_status=$?
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; }; then
4160 gl_cv_have_include_next=yes
4161else
4162 echo "$as_me: failed program was:" >&5
4163sed 's/^/| /' conftest.$ac_ext >&5
4164
4165gl_cv_have_include_next=no
4166fi
4167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4168 CPPFLAGS="$save_CPPFLAGS"
4169 rm -rf conftestd1 conftestd2
4170
4171fi
4172echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4173echo "${ECHO_T}$gl_cv_have_include_next" >&6
4174 if test $gl_cv_have_include_next = yes; then
4175
4176
4177cat >>confdefs.h <<\_ACEOF
4178#define HAVE_INCLUDE_NEXT 1
4179_ACEOF
4180
4181
4182 INCLUDE_NEXT=include_next
4183 else
4184 INCLUDE_NEXT=include
4185 fi
4186
4187
4188
4189
4190
4191
4192
4193for ac_header in $gl_header_list
4194do
4195as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4196if eval "test \"\${$as_ac_Header+set}\" = set"; then
4197 echo "$as_me:$LINENO: checking for $ac_header" >&5
4198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4199if eval "test \"\${$as_ac_Header+set}\" = set"; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4201fi
4202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4203echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4204else
4205 # Is the header compilable?
4206echo "$as_me:$LINENO: checking $ac_header usability" >&5
4207echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4208cat >conftest.$ac_ext <<_ACEOF
4209/* confdefs.h. */
4210_ACEOF
4211cat confdefs.h >>conftest.$ac_ext
4212cat >>conftest.$ac_ext <<_ACEOF
4213/* end confdefs.h. */
4214$ac_includes_default
4215#include <$ac_header>
4216_ACEOF
4217rm -f conftest.$ac_objext
4218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4219 (eval $ac_compile) 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } &&
4226 { ac_try='test -z "$ac_c_werror_flag"
4227 || test ! -s conftest.err'
4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 (eval $ac_try) 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; } &&
4233 { ac_try='test -s conftest.$ac_objext'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 (eval $ac_try) 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4239 ac_header_compiler=yes
4240else
4241 echo "$as_me: failed program was:" >&5
4242sed 's/^/| /' conftest.$ac_ext >&5
4243
4244ac_header_compiler=no
4245fi
4246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4247echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4248echo "${ECHO_T}$ac_header_compiler" >&6
4249
4250# Is the header present?
4251echo "$as_me:$LINENO: checking $ac_header presence" >&5
4252echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4253cat >conftest.$ac_ext <<_ACEOF
4254/* confdefs.h. */
4255_ACEOF
4256cat confdefs.h >>conftest.$ac_ext
4257cat >>conftest.$ac_ext <<_ACEOF
4258/* end confdefs.h. */
4259#include <$ac_header>
4260_ACEOF
4261if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4263 ac_status=$?
4264 grep -v '^ *+' conftest.er1 >conftest.err
4265 rm -f conftest.er1
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } >/dev/null; then
4269 if test -s conftest.err; then
4270 ac_cpp_err=$ac_c_preproc_warn_flag
4271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4272 else
4273 ac_cpp_err=
4274 fi
4275else
4276 ac_cpp_err=yes
4277fi
4278if test -z "$ac_cpp_err"; then
4279 ac_header_preproc=yes
4280else
4281 echo "$as_me: failed program was:" >&5
4282sed 's/^/| /' conftest.$ac_ext >&5
4283
4284 ac_header_preproc=no
4285fi
4286rm -f conftest.err conftest.$ac_ext
4287echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4288echo "${ECHO_T}$ac_header_preproc" >&6
4289
4290# So? What about this header?
4291case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4292 yes:no: )
4293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4294echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4296echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4297 ac_header_preproc=yes
4298 ;;
4299 no:yes:* )
4300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4301echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4303echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4305echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4307echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4309echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4311echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4312 (
4313 cat <<\_ASBOX
4314## ------------------------------------------ ##
4315## Report this to the AC_PACKAGE_NAME lists. ##
4316## ------------------------------------------ ##
4317_ASBOX
4318 ) |
4319 sed "s/^/$as_me: WARNING: /" >&2
4320 ;;
4321esac
4322echo "$as_me:$LINENO: checking for $ac_header" >&5
4323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4324if eval "test \"\${$as_ac_Header+set}\" = set"; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4326else
4327 eval "$as_ac_Header=\$ac_header_preproc"
4328fi
4329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4330echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4331
4332fi
4333if test `eval echo '${'$as_ac_Header'}'` = yes; then
4334 cat >>confdefs.h <<_ACEOF
4335#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4336_ACEOF
4337
4338fi
4339
4340done
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4354echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4355if test "${ac_cv_c_restrict+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4357else
4358 ac_cv_c_restrict=no
4359 # The order here caters to the fact that C++ does not require restrict.
4360 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4361 cat >conftest.$ac_ext <<_ACEOF
4362/* confdefs.h. */
4363_ACEOF
4364cat confdefs.h >>conftest.$ac_ext
4365cat >>conftest.$ac_ext <<_ACEOF
4366/* end confdefs.h. */
4367typedef int * int_ptr;
4368 int foo (int_ptr $ac_kw ip) {
4369 return ip[0];
4370 }
4371int
4372main ()
4373{
4374int s[1];
4375 int * $ac_kw t = s;
4376 t[0] = 0;
4377 return foo(t)
4378 ;
4379 return 0;
4380}
4381_ACEOF
4382rm -f conftest.$ac_objext
4383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4384 (eval $ac_compile) 2>conftest.er1
4385 ac_status=$?
4386 grep -v '^ *+' conftest.er1 >conftest.err
4387 rm -f conftest.er1
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } &&
4391 { ac_try='test -z "$ac_c_werror_flag"
4392 || test ! -s conftest.err'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394 (eval $ac_try) 2>&5
4395 ac_status=$?
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; } &&
4398 { ac_try='test -s conftest.$ac_objext'
4399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 (eval $ac_try) 2>&5
4401 ac_status=$?
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; }; then
4404 ac_cv_c_restrict=$ac_kw
4405else
4406 echo "$as_me: failed program was:" >&5
4407sed 's/^/| /' conftest.$ac_ext >&5
4408
4409fi
4410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4411 test "$ac_cv_c_restrict" != no && break
4412 done
4413
4414fi
4415echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4416echo "${ECHO_T}$ac_cv_c_restrict" >&6
4417
4418
4419 case $ac_cv_c_restrict in
4420 restrict) ;;
4421 no) cat >>confdefs.h <<\_ACEOF
4422#define restrict
4423_ACEOF
4424 ;;
4425 *) cat >>confdefs.h <<_ACEOF
4426#define restrict $ac_cv_c_restrict
4427_ACEOF
4428 ;;
4429 esac
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443 :
4444
4445
4446
4447
4448
4449
4450
4451 if test $gl_cv_have_include_next = yes; then
4452 gl_cv_next_string_h='<'string.h'>'
4453 else
4454 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4455echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4456if test "${gl_cv_next_string_h+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458else
4459
4460 if test $ac_cv_header_string_h = yes; then
4461 cat >conftest.$ac_ext <<_ACEOF
4462/* confdefs.h. */
4463_ACEOF
4464cat confdefs.h >>conftest.$ac_ext
4465cat >>conftest.$ac_ext <<_ACEOF
4466/* end confdefs.h. */
4467#include <string.h>
4468
4469_ACEOF
4470 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4471 sed -n '\#/string.h#{
4472 s#.*"\(.*/string.h\)".*#\1#
4473 s#^/[^/]#//&#
4474 p
4475 q
4476 }'`'"'
4477 else
4478 gl_cv_next_string_h='<'string.h'>'
4479 fi
4480
4481fi
4482echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4483echo "${ECHO_T}$gl_cv_next_string_h" >&6
4484 fi
4485 NEXT_STRING_H=$gl_cv_next_string_h
4486
4487
4488
4489
4490
4491 GNULIB_WCWIDTH=0;
4492 HAVE_DECL_WCWIDTH=1;
4493 REPLACE_WCWIDTH=0;
4494 WCHAR_H=
4495
4496
4497
4498
4499
4500if false; then
4501 GL_COND_LIBTOOL_TRUE=
4502 GL_COND_LIBTOOL_FALSE='#'
4503else
4504 GL_COND_LIBTOOL_TRUE='#'
4505 GL_COND_LIBTOOL_FALSE=
4506fi
4507
4508 gl_cond_libtool=false
4509 gl_libdeps=
4510 gl_ltlibdeps=
4511
4512
4513
4514 gl_source_base='gnulib'
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524for ac_func in memchr
4525do
4526as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4527echo "$as_me:$LINENO: checking for $ac_func" >&5
4528echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4529if eval "test \"\${$as_ac_var+set}\" = set"; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531else
4532 cat >conftest.$ac_ext <<_ACEOF
4533/* confdefs.h. */
4534_ACEOF
4535cat confdefs.h >>conftest.$ac_ext
4536cat >>conftest.$ac_ext <<_ACEOF
4537/* end confdefs.h. */
4538/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4540#define $ac_func innocuous_$ac_func
4541
4542/* System header to define __stub macros and hopefully few prototypes,
4543 which can conflict with char $ac_func (); below.
4544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4545 <limits.h> exists even on freestanding compilers. */
4546
4547#ifdef __STDC__
4548# include <limits.h>
4549#else
4550# include <assert.h>
4551#endif
4552
4553#undef $ac_func
4554
4555/* Override any gcc2 internal prototype to avoid an error. */
4556#ifdef __cplusplus
4557extern "C"
4558{
4559#endif
4560/* We use char because int might match the return type of a gcc2
4561 builtin and then its argument prototype would still apply. */
4562char $ac_func ();
4563/* The GNU C library defines this for functions which it implements
4564 to always fail with ENOSYS. Some functions are actually named
4565 something starting with __ and the normal name is an alias. */
4566#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4567choke me
4568#else
4569char (*f) () = $ac_func;
4570#endif
4571#ifdef __cplusplus
4572}
4573#endif
4574
4575int
4576main ()
4577{
4578return f != $ac_func;
4579 ;
4580 return 0;
4581}
4582_ACEOF
4583rm -f conftest.$ac_objext conftest$ac_exeext
4584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4585 (eval $ac_link) 2>conftest.er1
4586 ac_status=$?
4587 grep -v '^ *+' conftest.er1 >conftest.err
4588 rm -f conftest.er1
4589 cat conftest.err >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } &&
4592 { ac_try='test -z "$ac_c_werror_flag"
4593 || test ! -s conftest.err'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 (eval $ac_try) 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; } &&
4599 { ac_try='test -s conftest$ac_exeext'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 (eval $ac_try) 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
4605 eval "$as_ac_var=yes"
4606else
4607 echo "$as_me: failed program was:" >&5
4608sed 's/^/| /' conftest.$ac_ext >&5
4609
4610eval "$as_ac_var=no"
4611fi
4612rm -f conftest.err conftest.$ac_objext \
4613 conftest$ac_exeext conftest.$ac_ext
4614fi
4615echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4616echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4617if test `eval echo '${'$as_ac_var'}'` = yes; then
4618 cat >>confdefs.h <<_ACEOF
4619#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4620_ACEOF
4621
4622else
4623
4624 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4625
4626fi
4627done
4628
4629
4630 if test $ac_cv_func_memchr = no; then
4631
4632
4633for ac_header in bp-sym.h
4634do
4635as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4636if eval "test \"\${$as_ac_Header+set}\" = set"; then
4637 echo "$as_me:$LINENO: checking for $ac_header" >&5
4638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4639if eval "test \"\${$as_ac_Header+set}\" = set"; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4641fi
4642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4644else
4645 # Is the header compilable?
4646echo "$as_me:$LINENO: checking $ac_header usability" >&5
4647echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4648cat >conftest.$ac_ext <<_ACEOF
4649/* confdefs.h. */
4650_ACEOF
4651cat confdefs.h >>conftest.$ac_ext
4652cat >>conftest.$ac_ext <<_ACEOF
4653/* end confdefs.h. */
4654$ac_includes_default
4655#include <$ac_header>
4656_ACEOF
4657rm -f conftest.$ac_objext
4658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4659 (eval $ac_compile) 2>conftest.er1
4660 ac_status=$?
4661 grep -v '^ *+' conftest.er1 >conftest.err
4662 rm -f conftest.er1
4663 cat conftest.err >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } &&
4666 { ac_try='test -z "$ac_c_werror_flag"
4667 || test ! -s conftest.err'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; } &&
4673 { ac_try='test -s conftest.$ac_objext'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 (eval $ac_try) 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; }; then
4679 ac_header_compiler=yes
4680else
4681 echo "$as_me: failed program was:" >&5
4682sed 's/^/| /' conftest.$ac_ext >&5
4683
4684ac_header_compiler=no
4685fi
4686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4687echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4688echo "${ECHO_T}$ac_header_compiler" >&6
4689
4690# Is the header present?
4691echo "$as_me:$LINENO: checking $ac_header presence" >&5
4692echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4693cat >conftest.$ac_ext <<_ACEOF
4694/* confdefs.h. */
4695_ACEOF
4696cat confdefs.h >>conftest.$ac_ext
4697cat >>conftest.$ac_ext <<_ACEOF
4698/* end confdefs.h. */
4699#include <$ac_header>
4700_ACEOF
4701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4703 ac_status=$?
4704 grep -v '^ *+' conftest.er1 >conftest.err
4705 rm -f conftest.er1
4706 cat conftest.err >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } >/dev/null; then
4709 if test -s conftest.err; then
4710 ac_cpp_err=$ac_c_preproc_warn_flag
4711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4712 else
4713 ac_cpp_err=
4714 fi
4715else
4716 ac_cpp_err=yes
4717fi
4718if test -z "$ac_cpp_err"; then
4719 ac_header_preproc=yes
4720else
4721 echo "$as_me: failed program was:" >&5
4722sed 's/^/| /' conftest.$ac_ext >&5
4723
4724 ac_header_preproc=no
4725fi
4726rm -f conftest.err conftest.$ac_ext
4727echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4728echo "${ECHO_T}$ac_header_preproc" >&6
4729
4730# So? What about this header?
4731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4732 yes:no: )
4733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4736echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4737 ac_header_preproc=yes
4738 ;;
4739 no:yes:* )
4740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4743echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4745echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4747echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4751echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4752 (
4753 cat <<\_ASBOX
4754## ------------------------------------------ ##
4755## Report this to the AC_PACKAGE_NAME lists. ##
4756## ------------------------------------------ ##
4757_ASBOX
4758 ) |
4759 sed "s/^/$as_me: WARNING: /" >&2
4760 ;;
4761esac
4762echo "$as_me:$LINENO: checking for $ac_header" >&5
4763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4764if eval "test \"\${$as_ac_Header+set}\" = set"; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766else
4767 eval "$as_ac_Header=\$ac_header_preproc"
4768fi
4769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4770echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4771
4772fi
4773if test `eval echo '${'$as_ac_Header'}'` = yes; then
4774 cat >>confdefs.h <<_ACEOF
4775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4776_ACEOF
4777
4778fi
4779
4780done
4781
4782
4783 fi
4784
4785
4786 echo "$as_me:$LINENO: checking for working memcmp" >&5
4787echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4788if test "${ac_cv_func_memcmp_working+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4790else
4791 if test "$cross_compiling" = yes; then
4792 ac_cv_func_memcmp_working=no
4793else
4794 cat >conftest.$ac_ext <<_ACEOF
4795/* confdefs.h. */
4796_ACEOF
4797cat confdefs.h >>conftest.$ac_ext
4798cat >>conftest.$ac_ext <<_ACEOF
4799/* end confdefs.h. */
4800$ac_includes_default
4801int
4802main ()
4803{
4804
4805 /* Some versions of memcmp are not 8-bit clean. */
4806 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4807 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4808 exit (1);
4809
4810 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4811 or more and with at least one buffer not starting on a 4-byte boundary.
4812 William Lewis provided this test program. */
4813 {
4814 char foo[21];
4815 char bar[21];
4816 int i;
4817 for (i = 0; i < 4; i++)
4818 {
4819 char *a = foo + i;
4820 char *b = bar + i;
4821 strcpy (a, "--------01111111");
4822 strcpy (b, "--------10000000");
4823 if (memcmp (a, b, 16) >= 0)
4824 exit (1);
4825 }
4826 exit (0);
4827 }
4828
4829 ;
4830 return 0;
4831}
4832_ACEOF
4833rm -f conftest$ac_exeext
4834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4835 (eval $ac_link) 2>&5
4836 ac_status=$?
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 ac_cv_func_memcmp_working=yes
4845else
4846 echo "$as_me: program exited with status $ac_status" >&5
4847echo "$as_me: failed program was:" >&5
4848sed 's/^/| /' conftest.$ac_ext >&5
4849
4850( exit $ac_status )
4851ac_cv_func_memcmp_working=no
4852fi
4853rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4854fi
4855fi
4856echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4857echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4858test $ac_cv_func_memcmp_working = no &&
4859
4860
4861
4862
4863
4864
4865 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
4866
4867
4868 if test $ac_cv_func_memcmp_working = no; then
4869
4870cat >>confdefs.h <<\_ACEOF
4871#define memcmp rpl_memcmp
4872_ACEOF
4873
4874 :
4875 fi
4876
4877
4878
4879 if test $ac_cv_have_decl_memmem = yes; then
4880 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
4881echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
4882if test "${gl_cv_func_memmem_works+set}" = set; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4884else
4885 if test "$cross_compiling" = yes; then
4886 gl_cv_func_memmem_works="guessing no"
4887else
4888 cat >conftest.$ac_ext <<_ACEOF
4889/* confdefs.h. */
4890_ACEOF
4891cat confdefs.h >>conftest.$ac_ext
4892cat >>conftest.$ac_ext <<_ACEOF
4893/* end confdefs.h. */
4894
4895#include <string.h> /* for memmem */
4896#include <stdlib.h> /* for malloc */
4897#include <unistd.h> /* for alarm */
4898
4899int
4900main ()
4901{
4902size_t m = 1000000;
4903 char *haystack = (char *) malloc (2 * m + 1);
4904 char *needle = (char *) malloc (m + 1);
4905 void *result = 0;
4906 /* Failure to compile this test due to missing alarm is okay,
4907 since all such platforms (mingw) also lack memmem. */
4908 alarm (5);
4909 /* Check for quadratic performance. */
4910 if (haystack && needle)
4911 {
4912 memset (haystack, 'A', 2 * m);
4913 haystack[2 * m] = 'B';
4914 memset (needle, 'A', m);
4915 needle[m] = 'B';
4916 result = memmem (haystack, 2 * m + 1, needle, m + 1);
4917 }
4918 /* Check for empty needle behavior. */
4919 return !result || !memmem ("a", 1, 0, 0);
4920 ;
4921 return 0;
4922}
4923_ACEOF
4924rm -f conftest$ac_exeext
4925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4926 (eval $ac_link) 2>&5
4927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931 (eval $ac_try) 2>&5
4932 ac_status=$?
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; }; then
4935 gl_cv_func_memmem_works=yes
4936else
4937 echo "$as_me: program exited with status $ac_status" >&5
4938echo "$as_me: failed program was:" >&5
4939sed 's/^/| /' conftest.$ac_ext >&5
4940
4941( exit $ac_status )
4942gl_cv_func_memmem_works=no
4943fi
4944rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4945fi
4946fi
4947echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
4948echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
4949 if test "$gl_cv_func_memmem_works" != yes; then
4950 REPLACE_MEMMEM=1
4951
4952
4953
4954
4955
4956
4957
4958 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
4959
4960 fi
4961 fi
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975for ac_func in memmem
4976do
4977as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4978echo "$as_me:$LINENO: checking for $ac_func" >&5
4979echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4980if eval "test \"\${$as_ac_var+set}\" = set"; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4982else
4983 cat >conftest.$ac_ext <<_ACEOF
4984/* confdefs.h. */
4985_ACEOF
4986cat confdefs.h >>conftest.$ac_ext
4987cat >>conftest.$ac_ext <<_ACEOF
4988/* end confdefs.h. */
4989/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4991#define $ac_func innocuous_$ac_func
4992
4993/* System header to define __stub macros and hopefully few prototypes,
4994 which can conflict with char $ac_func (); below.
4995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4996 <limits.h> exists even on freestanding compilers. */
4997
4998#ifdef __STDC__
4999# include <limits.h>
5000#else
5001# include <assert.h>
5002#endif
5003
5004#undef $ac_func
5005
5006/* Override any gcc2 internal prototype to avoid an error. */
5007#ifdef __cplusplus
5008extern "C"
5009{
5010#endif
5011/* We use char because int might match the return type of a gcc2
5012 builtin and then its argument prototype would still apply. */
5013char $ac_func ();
5014/* The GNU C library defines this for functions which it implements
5015 to always fail with ENOSYS. Some functions are actually named
5016 something starting with __ and the normal name is an alias. */
5017#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5018choke me
5019#else
5020char (*f) () = $ac_func;
5021#endif
5022#ifdef __cplusplus
5023}
5024#endif
5025
5026int
5027main ()
5028{
5029return f != $ac_func;
5030 ;
5031 return 0;
5032}
5033_ACEOF
5034rm -f conftest.$ac_objext conftest$ac_exeext
5035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5036 (eval $ac_link) 2>conftest.er1
5037 ac_status=$?
5038 grep -v '^ *+' conftest.er1 >conftest.err
5039 rm -f conftest.er1
5040 cat conftest.err >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); } &&
5043 { ac_try='test -z "$ac_c_werror_flag"
5044 || test ! -s conftest.err'
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 (eval $ac_try) 2>&5
5047 ac_status=$?
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; } &&
5050 { ac_try='test -s conftest$ac_exeext'
5051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052 (eval $ac_try) 2>&5
5053 ac_status=$?
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); }; }; then
5056 eval "$as_ac_var=yes"
5057else
5058 echo "$as_me: failed program was:" >&5
5059sed 's/^/| /' conftest.$ac_ext >&5
5060
5061eval "$as_ac_var=no"
5062fi
5063rm -f conftest.err conftest.$ac_objext \
5064 conftest$ac_exeext conftest.$ac_ext
5065fi
5066echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5067echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5068if test `eval echo '${'$as_ac_var'}'` = yes; then
5069 cat >>confdefs.h <<_ACEOF
5070#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5071_ACEOF
5072
5073else
5074
5075 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5076
5077fi
5078done
5079
5080
5081
5082 :
5083
5084
5085
5086
5087
5088 if test $ac_cv_have_decl_memmem = no; then
5089 HAVE_DECL_MEMMEM=0
5090 fi
5091 :
5092
5093
5094
5095 GNULIB_MEMMEM=1
5096
5097
5098
5099
5100 if test $ac_cv_type_long_long_int = yes; then
5101 HAVE_LONG_LONG_INT=1
5102 else
5103 HAVE_LONG_LONG_INT=0
5104 fi
5105
5106
5107 if test $ac_cv_type_unsigned_long_long_int = yes; then
5108 HAVE_UNSIGNED_LONG_LONG_INT=1
5109 else
5110 HAVE_UNSIGNED_LONG_LONG_INT=0
5111 fi
5112
5113
5114 if test $ac_cv_header_inttypes_h = yes; then
5115 HAVE_INTTYPES_H=1
5116 else
5117 HAVE_INTTYPES_H=0
5118 fi
5119
5120
5121 if test $ac_cv_header_sys_types_h = yes; then
5122 HAVE_SYS_TYPES_H=1
5123 else
5124 HAVE_SYS_TYPES_H=0
5125 fi
5126
5127
5128
5129
5130
5131 :
5132
5133
5134
5135
5136
5137
5138
5139 if test $gl_cv_have_include_next = yes; then
5140 gl_cv_next_stdint_h='<'stdint.h'>'
5141 else
5142 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5143echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5144if test "${gl_cv_next_stdint_h+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5146else
5147
5148 if test $ac_cv_header_stdint_h = yes; then
5149 cat >conftest.$ac_ext <<_ACEOF
5150/* confdefs.h. */
5151_ACEOF
5152cat confdefs.h >>conftest.$ac_ext
5153cat >>conftest.$ac_ext <<_ACEOF
5154/* end confdefs.h. */
5155#include <stdint.h>
5156
5157_ACEOF
5158 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5159 sed -n '\#/stdint.h#{
5160 s#.*"\(.*/stdint.h\)".*#\1#
5161 s#^/[^/]#//&#
5162 p
5163 q
5164 }'`'"'
5165 else
5166 gl_cv_next_stdint_h='<'stdint.h'>'
5167 fi
5168
5169fi
5170echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5171echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5172 fi
5173 NEXT_STDINT_H=$gl_cv_next_stdint_h
5174
5175
5176
5177 if test $ac_cv_header_stdint_h = yes; then
5178 HAVE_STDINT_H=1
5179 else
5180 HAVE_STDINT_H=0
5181 fi
5182
5183
5184 if test $ac_cv_header_stdint_h = yes; then
5185 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5186echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5187if test "${gl_cv_header_working_stdint_h+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5189else
5190 gl_cv_header_working_stdint_h=no
5191 cat >conftest.$ac_ext <<_ACEOF
5192
5193 /* confdefs.h. */
5194_ACEOF
5195cat confdefs.h >>conftest.$ac_ext
5196cat >>conftest.$ac_ext <<_ACEOF
5197/* end confdefs.h. */
5198
5199#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5200#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5201#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5202#include <stdint.h>
5203/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5204#if !(defined WCHAR_MIN && defined WCHAR_MAX)
5205#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5206#endif
5207
5208
5209 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5210 included before <wchar.h>. */
5211 #include <stddef.h>
5212 #include <signal.h>
5213 #if HAVE_WCHAR_H
5214 # include <stdio.h>
5215 # include <time.h>
5216 # include <wchar.h>
5217 #endif
5218
5219
5220#ifdef INT8_MAX
5221int8_t a1 = INT8_MAX;
5222int8_t a1min = INT8_MIN;
5223#endif
5224#ifdef INT16_MAX
5225int16_t a2 = INT16_MAX;
5226int16_t a2min = INT16_MIN;
5227#endif
5228#ifdef INT32_MAX
5229int32_t a3 = INT32_MAX;
5230int32_t a3min = INT32_MIN;
5231#endif
5232#ifdef INT64_MAX
5233int64_t a4 = INT64_MAX;
5234int64_t a4min = INT64_MIN;
5235#endif
5236#ifdef UINT8_MAX
5237uint8_t b1 = UINT8_MAX;
5238#else
5239typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5240#endif
5241#ifdef UINT16_MAX
5242uint16_t b2 = UINT16_MAX;
5243#endif
5244#ifdef UINT32_MAX
5245uint32_t b3 = UINT32_MAX;
5246#endif
5247#ifdef UINT64_MAX
5248uint64_t b4 = UINT64_MAX;
5249#endif
5250int_least8_t c1 = INT8_C (0x7f);
5251int_least8_t c1max = INT_LEAST8_MAX;
5252int_least8_t c1min = INT_LEAST8_MIN;
5253int_least16_t c2 = INT16_C (0x7fff);
5254int_least16_t c2max = INT_LEAST16_MAX;
5255int_least16_t c2min = INT_LEAST16_MIN;
5256int_least32_t c3 = INT32_C (0x7fffffff);
5257int_least32_t c3max = INT_LEAST32_MAX;
5258int_least32_t c3min = INT_LEAST32_MIN;
5259int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5260int_least64_t c4max = INT_LEAST64_MAX;
5261int_least64_t c4min = INT_LEAST64_MIN;
5262uint_least8_t d1 = UINT8_C (0xff);
5263uint_least8_t d1max = UINT_LEAST8_MAX;
5264uint_least16_t d2 = UINT16_C (0xffff);
5265uint_least16_t d2max = UINT_LEAST16_MAX;
5266uint_least32_t d3 = UINT32_C (0xffffffff);
5267uint_least32_t d3max = UINT_LEAST32_MAX;
5268uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5269uint_least64_t d4max = UINT_LEAST64_MAX;
5270int_fast8_t e1 = INT_FAST8_MAX;
5271int_fast8_t e1min = INT_FAST8_MIN;
5272int_fast16_t e2 = INT_FAST16_MAX;
5273int_fast16_t e2min = INT_FAST16_MIN;
5274int_fast32_t e3 = INT_FAST32_MAX;
5275int_fast32_t e3min = INT_FAST32_MIN;
5276int_fast64_t e4 = INT_FAST64_MAX;
5277int_fast64_t e4min = INT_FAST64_MIN;
5278uint_fast8_t f1 = UINT_FAST8_MAX;
5279uint_fast16_t f2 = UINT_FAST16_MAX;
5280uint_fast32_t f3 = UINT_FAST32_MAX;
5281uint_fast64_t f4 = UINT_FAST64_MAX;
5282#ifdef INTPTR_MAX
5283intptr_t g = INTPTR_MAX;
5284intptr_t gmin = INTPTR_MIN;
5285#endif
5286#ifdef UINTPTR_MAX
5287uintptr_t h = UINTPTR_MAX;
5288#endif
5289intmax_t i = INTMAX_MAX;
5290uintmax_t j = UINTMAX_MAX;
5291
5292#include <limits.h> /* for CHAR_BIT */
5293#define TYPE_MINIMUM(t) \
5294 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5295#define TYPE_MAXIMUM(t) \
5296 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5297struct s {
5298 int check_PTRDIFF:
5299 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5300 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5301 ? 1 : -1;
5302 /* Detect bug in FreeBSD 6.0 / ia64. */
5303 int check_SIG_ATOMIC:
5304 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5305 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5306 ? 1 : -1;
5307 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5308 int check_WCHAR:
5309 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5310 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5311 ? 1 : -1;
5312 /* Detect bug in mingw. */
5313 int check_WINT:
5314 WINT_MIN == TYPE_MINIMUM (wint_t)
5315 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5316 ? 1 : -1;
5317
5318 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5319 int check_UINT8_C:
5320 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5321 int check_UINT16_C:
5322 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5323
5324 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5325#ifdef UINT8_MAX
5326 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5327#endif
5328#ifdef UINT16_MAX
5329 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5330#endif
5331#ifdef UINT32_MAX
5332 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5333#endif
5334#ifdef UINT64_MAX
5335 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5336#endif
5337 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5338 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5339 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5340 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5341 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5342 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5343 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5344 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5345 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5346 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5347 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5348};
5349
5350int
5351main ()
5352{
5353
5354 ;
5355 return 0;
5356}
5357_ACEOF
5358rm -f conftest.$ac_objext
5359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5360 (eval $ac_compile) 2>conftest.er1
5361 ac_status=$?
5362 grep -v '^ *+' conftest.er1 >conftest.err
5363 rm -f conftest.er1
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } &&
5367 { ac_try='test -z "$ac_c_werror_flag"
5368 || test ! -s conftest.err'
5369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370 (eval $ac_try) 2>&5
5371 ac_status=$?
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; } &&
5374 { ac_try='test -s conftest.$ac_objext'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 (eval $ac_try) 2>&5
5377 ac_status=$?
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; }; then
5380 gl_cv_header_working_stdint_h=yes
5381else
5382 echo "$as_me: failed program was:" >&5
5383sed 's/^/| /' conftest.$ac_ext >&5
5384
5385fi
5386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5387fi
5388echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5389echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5390 fi
5391 if test "$gl_cv_header_working_stdint_h" = yes; then
5392 STDINT_H=
5393 else
5394
5395
5396for ac_header in sys/inttypes.h sys/bitypes.h
5397do
5398as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5399if eval "test \"\${$as_ac_Header+set}\" = set"; then
5400 echo "$as_me:$LINENO: checking for $ac_header" >&5
5401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5402if eval "test \"\${$as_ac_Header+set}\" = set"; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5404fi
5405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5406echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5407else
5408 # Is the header compilable?
5409echo "$as_me:$LINENO: checking $ac_header usability" >&5
5410echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5411cat >conftest.$ac_ext <<_ACEOF
5412/* confdefs.h. */
5413_ACEOF
5414cat confdefs.h >>conftest.$ac_ext
5415cat >>conftest.$ac_ext <<_ACEOF
5416/* end confdefs.h. */
5417$ac_includes_default
5418#include <$ac_header>
5419_ACEOF
5420rm -f conftest.$ac_objext
5421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422 (eval $ac_compile) 2>conftest.er1
5423 ac_status=$?
5424 grep -v '^ *+' conftest.er1 >conftest.err
5425 rm -f conftest.er1
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } &&
5429 { ac_try='test -z "$ac_c_werror_flag"
5430 || test ! -s conftest.err'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432 (eval $ac_try) 2>&5
5433 ac_status=$?
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; } &&
5436 { ac_try='test -s conftest.$ac_objext'
5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438 (eval $ac_try) 2>&5
5439 ac_status=$?
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }; }; then
5442 ac_header_compiler=yes
5443else
5444 echo "$as_me: failed program was:" >&5
5445sed 's/^/| /' conftest.$ac_ext >&5
5446
5447ac_header_compiler=no
5448fi
5449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5450echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5451echo "${ECHO_T}$ac_header_compiler" >&6
5452
5453# Is the header present?
5454echo "$as_me:$LINENO: checking $ac_header presence" >&5
5455echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5456cat >conftest.$ac_ext <<_ACEOF
5457/* confdefs.h. */
5458_ACEOF
5459cat confdefs.h >>conftest.$ac_ext
5460cat >>conftest.$ac_ext <<_ACEOF
5461/* end confdefs.h. */
5462#include <$ac_header>
5463_ACEOF
5464if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5466 ac_status=$?
5467 grep -v '^ *+' conftest.er1 >conftest.err
5468 rm -f conftest.er1
5469 cat conftest.err >&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } >/dev/null; then
5472 if test -s conftest.err; then
5473 ac_cpp_err=$ac_c_preproc_warn_flag
5474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5475 else
5476 ac_cpp_err=
5477 fi
5478else
5479 ac_cpp_err=yes
5480fi
5481if test -z "$ac_cpp_err"; then
5482 ac_header_preproc=yes
5483else
5484 echo "$as_me: failed program was:" >&5
5485sed 's/^/| /' conftest.$ac_ext >&5
5486
5487 ac_header_preproc=no
5488fi
5489rm -f conftest.err conftest.$ac_ext
5490echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5491echo "${ECHO_T}$ac_header_preproc" >&6
5492
5493# So? What about this header?
5494case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5495 yes:no: )
5496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5497echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5499echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5500 ac_header_preproc=yes
5501 ;;
5502 no:yes:* )
5503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5504echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5506echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5508echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5510echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5512echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5514echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5515 (
5516 cat <<\_ASBOX
5517## ------------------------------------------ ##
5518## Report this to the AC_PACKAGE_NAME lists. ##
5519## ------------------------------------------ ##
5520_ASBOX
5521 ) |
5522 sed "s/^/$as_me: WARNING: /" >&2
5523 ;;
5524esac
5525echo "$as_me:$LINENO: checking for $ac_header" >&5
5526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5527if eval "test \"\${$as_ac_Header+set}\" = set"; then
5528 echo $ECHO_N "(cached) $ECHO_C" >&6
5529else
5530 eval "$as_ac_Header=\$ac_header_preproc"
5531fi
5532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5533echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5534
5535fi
5536if test `eval echo '${'$as_ac_Header'}'` = yes; then
5537 cat >>confdefs.h <<_ACEOF
5538#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5539_ACEOF
5540
5541fi
5542
5543done
5544
5545 if test $ac_cv_header_sys_inttypes_h = yes; then
5546 HAVE_SYS_INTTYPES_H=1
5547 else
5548 HAVE_SYS_INTTYPES_H=0
5549 fi
5550
5551 if test $ac_cv_header_sys_bitypes_h = yes; then
5552 HAVE_SYS_BITYPES_H=1
5553 else
5554 HAVE_SYS_BITYPES_H=0
5555 fi
5556
5557
5558
5559 :
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5575 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5576echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5577if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5579else
5580 if test "$cross_compiling" = yes; then
5581 # Depending upon the size, compute the lo and hi bounds.
5582cat >conftest.$ac_ext <<_ACEOF
5583/* confdefs.h. */
5584_ACEOF
5585cat confdefs.h >>conftest.$ac_ext
5586cat >>conftest.$ac_ext <<_ACEOF
5587/* end confdefs.h. */
5588
5589 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5590 included before <wchar.h>. */
5591 #include <stddef.h>
5592 #include <signal.h>
5593 #if HAVE_WCHAR_H
5594 # include <stdio.h>
5595 # include <time.h>
5596 # include <wchar.h>
5597 #endif
5598
5599#include <limits.h>
5600int
5601main ()
5602{
5603static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5604test_array [0] = 0
5605
5606 ;
5607 return 0;
5608}
5609_ACEOF
5610rm -f conftest.$ac_objext
5611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5612 (eval $ac_compile) 2>conftest.er1
5613 ac_status=$?
5614 grep -v '^ *+' conftest.er1 >conftest.err
5615 rm -f conftest.er1
5616 cat conftest.err >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } &&
5619 { ac_try='test -z "$ac_c_werror_flag"
5620 || test ! -s conftest.err'
5621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622 (eval $ac_try) 2>&5
5623 ac_status=$?
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; } &&
5626 { ac_try='test -s conftest.$ac_objext'
5627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628 (eval $ac_try) 2>&5
5629 ac_status=$?
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; }; then
5632 ac_lo=0 ac_mid=0
5633 while :; do
5634 cat >conftest.$ac_ext <<_ACEOF
5635/* confdefs.h. */
5636_ACEOF
5637cat confdefs.h >>conftest.$ac_ext
5638cat >>conftest.$ac_ext <<_ACEOF
5639/* end confdefs.h. */
5640
5641 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5642 included before <wchar.h>. */
5643 #include <stddef.h>
5644 #include <signal.h>
5645 #if HAVE_WCHAR_H
5646 # include <stdio.h>
5647 # include <time.h>
5648 # include <wchar.h>
5649 #endif
5650
5651#include <limits.h>
5652int
5653main ()
5654{
5655static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5656test_array [0] = 0
5657
5658 ;
5659 return 0;
5660}
5661_ACEOF
5662rm -f conftest.$ac_objext
5663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5664 (eval $ac_compile) 2>conftest.er1
5665 ac_status=$?
5666 grep -v '^ *+' conftest.er1 >conftest.err
5667 rm -f conftest.er1
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -z "$ac_c_werror_flag"
5672 || test ! -s conftest.err'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 (eval $ac_try) 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; } &&
5678 { ac_try='test -s conftest.$ac_objext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 (eval $ac_try) 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_hi=$ac_mid; break
5685else
5686 echo "$as_me: failed program was:" >&5
5687sed 's/^/| /' conftest.$ac_ext >&5
5688
5689ac_lo=`expr $ac_mid + 1`
5690 if test $ac_lo -le $ac_mid; then
5691 ac_lo= ac_hi=
5692 break
5693 fi
5694 ac_mid=`expr 2 '*' $ac_mid + 1`
5695fi
5696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5697 done
5698else
5699 echo "$as_me: failed program was:" >&5
5700sed 's/^/| /' conftest.$ac_ext >&5
5701
5702cat >conftest.$ac_ext <<_ACEOF
5703/* confdefs.h. */
5704_ACEOF
5705cat confdefs.h >>conftest.$ac_ext
5706cat >>conftest.$ac_ext <<_ACEOF
5707/* end confdefs.h. */
5708
5709 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5710 included before <wchar.h>. */
5711 #include <stddef.h>
5712 #include <signal.h>
5713 #if HAVE_WCHAR_H
5714 # include <stdio.h>
5715 # include <time.h>
5716 # include <wchar.h>
5717 #endif
5718
5719#include <limits.h>
5720int
5721main ()
5722{
5723static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5724test_array [0] = 0
5725
5726 ;
5727 return 0;
5728}
5729_ACEOF
5730rm -f conftest.$ac_objext
5731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732 (eval $ac_compile) 2>conftest.er1
5733 ac_status=$?
5734 grep -v '^ *+' conftest.er1 >conftest.err
5735 rm -f conftest.er1
5736 cat conftest.err >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } &&
5739 { ac_try='test -z "$ac_c_werror_flag"
5740 || test ! -s conftest.err'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 (eval $ac_try) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; } &&
5746 { ac_try='test -s conftest.$ac_objext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 ac_hi=-1 ac_mid=-1
5753 while :; do
5754 cat >conftest.$ac_ext <<_ACEOF
5755/* confdefs.h. */
5756_ACEOF
5757cat confdefs.h >>conftest.$ac_ext
5758cat >>conftest.$ac_ext <<_ACEOF
5759/* end confdefs.h. */
5760
5761 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5762 included before <wchar.h>. */
5763 #include <stddef.h>
5764 #include <signal.h>
5765 #if HAVE_WCHAR_H
5766 # include <stdio.h>
5767 # include <time.h>
5768 # include <wchar.h>
5769 #endif
5770
5771#include <limits.h>
5772int
5773main ()
5774{
5775static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5776test_array [0] = 0
5777
5778 ;
5779 return 0;
5780}
5781_ACEOF
5782rm -f conftest.$ac_objext
5783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784 (eval $ac_compile) 2>conftest.er1
5785 ac_status=$?
5786 grep -v '^ *+' conftest.er1 >conftest.err
5787 rm -f conftest.er1
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } &&
5791 { ac_try='test -z "$ac_c_werror_flag"
5792 || test ! -s conftest.err'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; } &&
5798 { ac_try='test -s conftest.$ac_objext'
5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 (eval $ac_try) 2>&5
5801 ac_status=$?
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; }; then
5804 ac_lo=$ac_mid; break
5805else
5806 echo "$as_me: failed program was:" >&5
5807sed 's/^/| /' conftest.$ac_ext >&5
5808
5809ac_hi=`expr '(' $ac_mid ')' - 1`
5810 if test $ac_mid -le $ac_hi; then
5811 ac_lo= ac_hi=
5812 break
5813 fi
5814 ac_mid=`expr 2 '*' $ac_mid`
5815fi
5816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5817 done
5818else
5819 echo "$as_me: failed program was:" >&5
5820sed 's/^/| /' conftest.$ac_ext >&5
5821
5822ac_lo= ac_hi=
5823fi
5824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5825fi
5826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5827# Binary search between lo and hi bounds.
5828while test "x$ac_lo" != "x$ac_hi"; do
5829 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5830 cat >conftest.$ac_ext <<_ACEOF
5831/* confdefs.h. */
5832_ACEOF
5833cat confdefs.h >>conftest.$ac_ext
5834cat >>conftest.$ac_ext <<_ACEOF
5835/* end confdefs.h. */
5836
5837 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5838 included before <wchar.h>. */
5839 #include <stddef.h>
5840 #include <signal.h>
5841 #if HAVE_WCHAR_H
5842 # include <stdio.h>
5843 # include <time.h>
5844 # include <wchar.h>
5845 #endif
5846
5847#include <limits.h>
5848int
5849main ()
5850{
5851static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5852test_array [0] = 0
5853
5854 ;
5855 return 0;
5856}
5857_ACEOF
5858rm -f conftest.$ac_objext
5859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5860 (eval $ac_compile) 2>conftest.er1
5861 ac_status=$?
5862 grep -v '^ *+' conftest.er1 >conftest.err
5863 rm -f conftest.er1
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -z "$ac_c_werror_flag"
5868 || test ! -s conftest.err'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try='test -s conftest.$ac_objext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5880 ac_hi=$ac_mid
5881else
5882 echo "$as_me: failed program was:" >&5
5883sed 's/^/| /' conftest.$ac_ext >&5
5884
5885ac_lo=`expr '(' $ac_mid ')' + 1`
5886fi
5887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5888done
5889case $ac_lo in
5890?*) result=$ac_lo;;
5891'') result=unknown ;;
5892esac
5893else
5894 if test "$cross_compiling" = yes; then
d5af19ba
DJ
5895 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5896echo "$as_me: error: in \`$ac_pwd':" >&2;}
5897{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
783e057b
DJ
5898See \`config.log' for more details." >&5
5899echo "$as_me: error: cannot run test program while cross compiling
5900See \`config.log' for more details." >&2;}
d5af19ba 5901 { (exit 1); exit 1; }; }; }
783e057b
DJ
5902else
5903 cat >conftest.$ac_ext <<_ACEOF
5904/* confdefs.h. */
5905_ACEOF
5906cat confdefs.h >>conftest.$ac_ext
5907cat >>conftest.$ac_ext <<_ACEOF
5908/* end confdefs.h. */
5909
5910 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5911 included before <wchar.h>. */
5912 #include <stddef.h>
5913 #include <signal.h>
5914 #if HAVE_WCHAR_H
5915 # include <stdio.h>
5916 # include <time.h>
5917 # include <wchar.h>
5918 #endif
5919
5920#include <limits.h>
5921long longval () { return sizeof ($gltype) * CHAR_BIT; }
5922unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
5923#include <stdio.h>
5924#include <stdlib.h>
5925int
5926main ()
5927{
5928
5929 FILE *f = fopen ("conftest.val", "w");
5930 if (! f)
5931 exit (1);
5932 if ((sizeof ($gltype) * CHAR_BIT) < 0)
5933 {
5934 long i = longval ();
5935 if (i != (sizeof ($gltype) * CHAR_BIT))
5936 exit (1);
5937 fprintf (f, "%ld\n", i);
5938 }
5939 else
5940 {
5941 unsigned long i = ulongval ();
5942 if (i != (sizeof ($gltype) * CHAR_BIT))
5943 exit (1);
5944 fprintf (f, "%lu\n", i);
5945 }
5946 exit (ferror (f) || fclose (f) != 0);
5947
5948 ;
5949 return 0;
5950}
5951_ACEOF
5952rm -f conftest$ac_exeext
5953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5954 (eval $ac_link) 2>&5
5955 ac_status=$?
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 (eval $ac_try) 2>&5
5960 ac_status=$?
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; }; then
5963 result=`cat conftest.val`
5964else
5965 echo "$as_me: program exited with status $ac_status" >&5
5966echo "$as_me: failed program was:" >&5
5967sed 's/^/| /' conftest.$ac_ext >&5
5968
5969( exit $ac_status )
5970result=unknown
5971fi
5972rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5973fi
5974fi
5975rm -f conftest.val
5976 eval gl_cv_bitsizeof_${gltype}=\$result
c906108c 5977
783e057b
DJ
5978fi
5979echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
5980echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
5981 eval result=\$gl_cv_bitsizeof_${gltype}
5982 if test $result = unknown; then
5983 result=0
5984 fi
5985 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5986 cat >>confdefs.h <<_ACEOF
5987#define BITSIZEOF_${GLTYPE} $result
5988_ACEOF
c906108c 5989
783e057b
DJ
5990 eval BITSIZEOF_${GLTYPE}=\$result
5991 done
c906108c 5992
c906108c 5993
c906108c 5994
bec39cab 5995
3841debe 5996
783e057b
DJ
5997
5998
5999 for gltype in sig_atomic_t wchar_t wint_t ; do
6000 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
6001echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
6002if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6004else
6005 cat >conftest.$ac_ext <<_ACEOF
6006/* confdefs.h. */
6007_ACEOF
6008cat confdefs.h >>conftest.$ac_ext
6009cat >>conftest.$ac_ext <<_ACEOF
6010/* end confdefs.h. */
6011
6012 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6013 included before <wchar.h>. */
6014 #include <stddef.h>
6015 #include <signal.h>
6016 #if HAVE_WCHAR_H
6017 # include <stdio.h>
6018 # include <time.h>
6019 # include <wchar.h>
6020 #endif
6021
6022 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6023int
6024main ()
6025{
6026
6027 ;
6028 return 0;
6029}
6030_ACEOF
6031rm -f conftest.$ac_objext
6032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6033 (eval $ac_compile) 2>conftest.er1
6034 ac_status=$?
6035 grep -v '^ *+' conftest.er1 >conftest.err
6036 rm -f conftest.er1
6037 cat conftest.err >&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } &&
6040 { ac_try='test -z "$ac_c_werror_flag"
6041 || test ! -s conftest.err'
6042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043 (eval $ac_try) 2>&5
6044 ac_status=$?
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }; } &&
6047 { ac_try='test -s conftest.$ac_objext'
6048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049 (eval $ac_try) 2>&5
6050 ac_status=$?
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); }; }; then
6053 result=yes
6054else
6055 echo "$as_me: failed program was:" >&5
6056sed 's/^/| /' conftest.$ac_ext >&5
6057
6058result=no
20e95c23 6059fi
783e057b
DJ
6060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6061 eval gl_cv_type_${gltype}_signed=\$result
6062
6063fi
6064echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6065echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6066 eval result=\$gl_cv_type_${gltype}_signed
6067 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6068 if test "$result" = yes; then
6069 cat >>confdefs.h <<_ACEOF
6070#define HAVE_SIGNED_${GLTYPE} 1
6071_ACEOF
6072
6073 eval HAVE_SIGNED_${GLTYPE}=1
6074 else
6075 eval HAVE_SIGNED_${GLTYPE}=0
6076 fi
6077 done
6078
6079
6080 gl_cv_type_ptrdiff_t_signed=yes
6081 gl_cv_type_size_t_signed=no
6082
6083
6084
6085
6086
6087
6088
6089 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6090 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6091echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6092if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6094else
783e057b
DJ
6095 eval gl_cv_type_${gltype}_suffix=no
6096 eval result=\$gl_cv_type_${gltype}_signed
6097 if test "$result" = yes; then
6098 glsufu=
6099 else
6100 glsufu=u
6101 fi
6102 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6103 case $glsuf in
6104 '') gltype1='int';;
6105 l) gltype1='long int';;
6106 ll) gltype1='long long int';;
6107 i64) gltype1='__int64';;
6108 u) gltype1='unsigned int';;
6109 ul) gltype1='unsigned long int';;
6110 ull) gltype1='unsigned long long int';;
6111 ui64)gltype1='unsigned __int64';;
6112 esac
6113 cat >conftest.$ac_ext <<_ACEOF
6114/* confdefs.h. */
6115_ACEOF
6116cat confdefs.h >>conftest.$ac_ext
6117cat >>conftest.$ac_ext <<_ACEOF
6118/* end confdefs.h. */
6119
6120 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6121 included before <wchar.h>. */
6122 #include <stddef.h>
6123 #include <signal.h>
6124 #if HAVE_WCHAR_H
6125 # include <stdio.h>
6126 # include <time.h>
6127 # include <wchar.h>
6128 #endif
6129
6130 extern $gltype foo;
6131 extern $gltype1 foo;
6132int
6133main ()
6134{
6135
6136 ;
6137 return 0;
6138}
6139_ACEOF
6140rm -f conftest.$ac_objext
6141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6142 (eval $ac_compile) 2>conftest.er1
6143 ac_status=$?
6144 grep -v '^ *+' conftest.er1 >conftest.err
6145 rm -f conftest.er1
6146 cat conftest.err >&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); } &&
6149 { ac_try='test -z "$ac_c_werror_flag"
6150 || test ! -s conftest.err'
6151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 (eval $ac_try) 2>&5
6153 ac_status=$?
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; } &&
6156 { ac_try='test -s conftest.$ac_objext'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 (eval $ac_try) 2>&5
6159 ac_status=$?
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6162 eval gl_cv_type_${gltype}_suffix=\$glsuf
6163else
6164 echo "$as_me: failed program was:" >&5
6165sed 's/^/| /' conftest.$ac_ext >&5
6166
6167fi
6168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6169 eval result=\$gl_cv_type_${gltype}_suffix
6170 test "$result" != no && break
6171 done
6172fi
6173echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6174echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6175 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6176 eval result=\$gl_cv_type_${gltype}_suffix
6177 test "$result" = no && result=
6178 eval ${GLTYPE}_SUFFIX=\$result
6179 cat >>confdefs.h <<_ACEOF
6180#define ${GLTYPE}_SUFFIX $result
6181_ACEOF
6182
6183 done
6184
6185
6186
6187 STDINT_H=stdint.h
6188 fi
6189
6190
6191
6192
6193
6194
6195
6196 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6197echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6198if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200else
6201 cat >conftest.$ac_ext <<_ACEOF
6202#include <wchar.h>
6203wchar_t w;
6204_ACEOF
6205rm -f conftest.$ac_objext
6206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6207 (eval $ac_compile) 2>conftest.er1
6208 ac_status=$?
6209 grep -v '^ *+' conftest.er1 >conftest.err
6210 rm -f conftest.er1
6211 cat conftest.err >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } &&
6214 { ac_try='test -z "$ac_c_werror_flag"
6215 || test ! -s conftest.err'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 (eval $ac_try) 2>&5
6218 ac_status=$?
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; } &&
6221 { ac_try='test -s conftest.$ac_objext'
6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 (eval $ac_try) 2>&5
6224 ac_status=$?
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }; }; then
6227 gl_cv_header_wchar_h_standalone=yes
6228else
6229 echo "$as_me: failed program was:" >&5
6230sed 's/^/| /' conftest.$ac_ext >&5
6231
6232gl_cv_header_wchar_h_standalone=no
6233fi
6234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6235fi
6236echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6237echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6238 if test $gl_cv_header_wchar_h_standalone != yes; then
6239 WCHAR_H=wchar.h
6240 fi
6241
6242
6243 :
6244
6245
6246
6247
6248
6249 if test $ac_cv_header_wchar_h = yes; then
6250 HAVE_WCHAR_H=1
6251 else
6252 HAVE_WCHAR_H=0
6253 fi
6254
6255
6256
6257
6258 :
6259
6260
6261
6262
6263
6264
6265
6266 if test $gl_cv_have_include_next = yes; then
6267 gl_cv_next_wchar_h='<'wchar.h'>'
6268 else
6269 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6270echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6271if test "${gl_cv_next_wchar_h+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6273else
6274
6275 if test $ac_cv_header_wchar_h = yes; then
6276 cat >conftest.$ac_ext <<_ACEOF
6277/* confdefs.h. */
6278_ACEOF
6279cat confdefs.h >>conftest.$ac_ext
6280cat >>conftest.$ac_ext <<_ACEOF
6281/* end confdefs.h. */
6282#include <wchar.h>
6283
6284_ACEOF
6285 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6286 sed -n '\#/wchar.h#{
6287 s#.*"\(.*/wchar.h\)".*#\1#
6288 s#^/[^/]#//&#
6289 p
6290 q
6291 }'`'"'
6292 else
6293 gl_cv_next_wchar_h='<'wchar.h'>'
6294 fi
6295
6296fi
6297echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6298echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6299 fi
6300 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6301
c906108c 6302
c906108c 6303
c906108c 6304
c906108c 6305
c906108c 6306
c906108c 6307
c906108c 6308
783e057b
DJ
6309 gltests_libdeps=
6310 gltests_ltlibdeps=
20e95c23 6311
20e95c23 6312
20e95c23 6313
783e057b 6314 gl_source_base='tests'
c906108c 6315
bec39cab 6316
bec39cab 6317
783e057b
DJ
6318
6319 LIBGNU_LIBDEPS="$gl_libdeps"
6320
6321 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6322
6323
e28b3332 6324
d5af19ba
DJ
6325# For Makefile dependencies.
6326GNULIB_STDINT_H=
6327if test x"$STDINT_H" != x; then
6328 GNULIB_STDINT_H=gnulib/$STDINT_H
6329fi
6330
6331
bec39cab
AC
6332PACKAGE=gdb
6333
6334cat >>confdefs.h <<_ACEOF
6335#define PACKAGE "$PACKAGE"
6336_ACEOF
6337
6338
6339
e28b3332
DJ
6340# GDB does not use automake, but gnulib does. This line lets us
6341# generate its Makefile.in.
6342am__api_version="1.9"
6343# Find a good install program. We prefer a C program (faster),
6344# so one script is as good as another. But avoid the broken or
6345# incompatible versions:
6346# SysV /etc/install, /usr/sbin/install
6347# SunOS /usr/etc/install
6348# IRIX /sbin/install
6349# AIX /bin/install
6350# AmigaOS /C/install, which installs bootblocks on floppy discs
6351# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6352# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6353# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6354# OS/2's system install, which has a completely different semantic
6355# ./install, which can be erroneously created by make from ./install.sh.
6356echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6357echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6358if test -z "$INSTALL"; then
6359if test "${ac_cv_path_install+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6361else
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363for as_dir in $PATH
6364do
6365 IFS=$as_save_IFS
6366 test -z "$as_dir" && as_dir=.
6367 # Account for people who put trailing slashes in PATH elements.
6368case $as_dir/ in
6369 ./ | .// | /cC/* | \
6370 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6371 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6372 /usr/ucb/* ) ;;
6373 *)
6374 # OSF1 and SCO ODT 3.0 have their own names for install.
6375 # Don't use installbsd from OSF since it installs stuff as root
6376 # by default.
6377 for ac_prog in ginstall scoinst install; do
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6380 if test $ac_prog = install &&
6381 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6382 # AIX install. It has an incompatible calling convention.
6383 :
6384 elif test $ac_prog = install &&
6385 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6386 # program-specific install script used by HP pwplus--don't use.
6387 :
6388 else
6389 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6390 break 3
6391 fi
6392 fi
6393 done
6394 done
6395 ;;
6396esac
6397done
6398
6399
6400fi
6401 if test "${ac_cv_path_install+set}" = set; then
6402 INSTALL=$ac_cv_path_install
6403 else
6404 # As a last resort, use the slow shell script. We don't cache a
6405 # path for INSTALL within a source directory, because that will
6406 # break other packages using the cache if that directory is
6407 # removed, or if the path is relative.
6408 INSTALL=$ac_install_sh
6409 fi
6410fi
6411echo "$as_me:$LINENO: result: $INSTALL" >&5
6412echo "${ECHO_T}$INSTALL" >&6
6413
6414# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6415# It thinks the first close brace ends the variable substitution.
6416test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6417
6418test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6419
6420test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6421
6422echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6423echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6424# Just in case
6425sleep 1
6426echo timestamp > conftest.file
6427# Do `set' in a subshell so we don't clobber the current shell's
6428# arguments. Must try -L first in case configure is actually a
6429# symlink; some systems play weird games with the mod time of symlinks
6430# (eg FreeBSD returns the mod time of the symlink's containing
6431# directory).
6432if (
6433 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6434 if test "$*" = "X"; then
6435 # -L didn't work.
6436 set X `ls -t $srcdir/configure conftest.file`
6437 fi
6438 rm -f conftest.file
6439 if test "$*" != "X $srcdir/configure conftest.file" \
6440 && test "$*" != "X conftest.file $srcdir/configure"; then
6441
6442 # If neither matched, then we have a broken ls. This can happen
6443 # if, for instance, CONFIG_SHELL is bash and it inherits a
6444 # broken ls alias from the environment. This has actually
6445 # happened. Such a system could not be considered "sane".
6446 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6447alias in your environment" >&5
6448echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6449alias in your environment" >&2;}
6450 { (exit 1); exit 1; }; }
6451 fi
6452
6453 test "$2" = conftest.file
6454 )
6455then
6456 # Ok.
6457 :
6458else
6459 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6460Check your system clock" >&5
6461echo "$as_me: error: newly created file is older than distributed files!
6462Check your system clock" >&2;}
6463 { (exit 1); exit 1; }; }
6464fi
6465echo "$as_me:$LINENO: result: yes" >&5
6466echo "${ECHO_T}yes" >&6
6467test "$program_prefix" != NONE &&
6468 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6469# Use a double $ so make ignores it.
6470test "$program_suffix" != NONE &&
6471 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6472# Double any \ or $. echo might interpret backslashes.
6473# By default was `s,x,x', remove it if useless.
6474cat <<\_ACEOF >conftest.sed
6475s/[\\$]/&&/g;s/;s,x,x,$//
6476_ACEOF
6477program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6478rm conftest.sed
6479
6480# expand $ac_aux_dir to an absolute path
6481am_aux_dir=`cd $ac_aux_dir && pwd`
6482
6483test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6484# Use eval to expand $SHELL
6485if eval "$MISSING --run true"; then
6486 am_missing_run="$MISSING --run "
6487else
6488 am_missing_run=
6489 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6490echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6491fi
6492
6493if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6494 # We used to keeping the `.' as first argument, in order to
6495 # allow $(mkdir_p) to be used without argument. As in
6496 # $(mkdir_p) $(somedir)
6497 # where $(somedir) is conditionally defined. However this is wrong
6498 # for two reasons:
6499 # 1. if the package is installed by a user who cannot write `.'
6500 # make install will fail,
6501 # 2. the above comment should most certainly read
6502 # $(mkdir_p) $(DESTDIR)$(somedir)
6503 # so it does not work when $(somedir) is undefined and
6504 # $(DESTDIR) is not.
6505 # To support the latter case, we have to write
6506 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6507 # so the `.' trick is pointless.
6508 mkdir_p='mkdir -p --'
6509else
6510 # On NextStep and OpenStep, the `mkdir' command does not
6511 # recognize any option. It will interpret all options as
6512 # directories to create, and then abort because `.' already
6513 # exists.
6514 for d in ./-p ./--version;
6515 do
6516 test -d $d && rmdir $d
6517 done
6518 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6519 if test -f "$ac_aux_dir/mkinstalldirs"; then
6520 mkdir_p='$(mkinstalldirs)'
6521 else
6522 mkdir_p='$(install_sh) -d'
6523 fi
6524fi
6525
6526for ac_prog in gawk mawk nawk awk
6527do
6528 # Extract the first word of "$ac_prog", so it can be a program name with args.
6529set dummy $ac_prog; ac_word=$2
6530echo "$as_me:$LINENO: checking for $ac_word" >&5
6531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6532if test "${ac_cv_prog_AWK+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6534else
6535 if test -n "$AWK"; then
6536 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6537else
6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH
6540do
6541 IFS=$as_save_IFS
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6545 ac_cv_prog_AWK="$ac_prog"
6546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 break 2
6548 fi
6549done
6550done
6551
6552fi
6553fi
6554AWK=$ac_cv_prog_AWK
6555if test -n "$AWK"; then
6556 echo "$as_me:$LINENO: result: $AWK" >&5
6557echo "${ECHO_T}$AWK" >&6
6558else
6559 echo "$as_me:$LINENO: result: no" >&5
6560echo "${ECHO_T}no" >&6
6561fi
6562
6563 test -n "$AWK" && break
6564done
6565
6566echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6567echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6568set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6569if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6571else
6572 cat >conftest.make <<\_ACEOF
6573all:
6574 @echo 'ac_maketemp="$(MAKE)"'
6575_ACEOF
6576# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6577eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6578if test -n "$ac_maketemp"; then
6579 eval ac_cv_prog_make_${ac_make}_set=yes
6580else
6581 eval ac_cv_prog_make_${ac_make}_set=no
6582fi
6583rm -f conftest.make
6584fi
6585if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6586 echo "$as_me:$LINENO: result: yes" >&5
6587echo "${ECHO_T}yes" >&6
6588 SET_MAKE=
6589else
6590 echo "$as_me:$LINENO: result: no" >&5
6591echo "${ECHO_T}no" >&6
6592 SET_MAKE="MAKE=${MAKE-make}"
6593fi
6594
6595rm -rf .tst 2>/dev/null
6596mkdir .tst 2>/dev/null
6597if test -d .tst; then
6598 am__leading_dot=.
6599else
6600 am__leading_dot=_
6601fi
6602rmdir .tst 2>/dev/null
6603
6604DEPDIR="${am__leading_dot}deps"
6605
6606 ac_config_commands="$ac_config_commands depfiles"
6607
6608
6609am_make=${MAKE-make}
6610cat > confinc << 'END'
6611am__doit:
6612 @echo done
6613.PHONY: am__doit
6614END
6615# If we don't find an include directive, just comment out the code.
6616echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6617echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6618am__include="#"
6619am__quote=
6620_am_result=none
6621# First try GNU make style include.
6622echo "include confinc" > confmf
6623# We grep out `Entering directory' and `Leaving directory'
6624# messages which can occur if `w' ends up in MAKEFLAGS.
6625# In particular we don't look at `^make:' because GNU make might
6626# be invoked under some other name (usually "gmake"), in which
6627# case it prints its new name instead of `make'.
6628if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6629 am__include=include
6630 am__quote=
6631 _am_result=GNU
6632fi
6633# Now try BSD make style include.
6634if test "$am__include" = "#"; then
6635 echo '.include "confinc"' > confmf
6636 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6637 am__include=.include
6638 am__quote="\""
6639 _am_result=BSD
6640 fi
6641fi
6642
6643
6644echo "$as_me:$LINENO: result: $_am_result" >&5
6645echo "${ECHO_T}$_am_result" >&6
6646rm -f confinc confmf
6647
6648# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6649if test "${enable_dependency_tracking+set}" = set; then
6650 enableval="$enable_dependency_tracking"
6651
6652fi;
6653if test "x$enable_dependency_tracking" != xno; then
6654 am_depcomp="$ac_aux_dir/depcomp"
6655 AMDEPBACKSLASH='\'
6656fi
6657
6658
6659if test "x$enable_dependency_tracking" != xno; then
6660 AMDEP_TRUE=
6661 AMDEP_FALSE='#'
6662else
6663 AMDEP_TRUE='#'
6664 AMDEP_FALSE=
6665fi
6666
6667
6668
6669# test to see if srcdir already configured
6670if test "`cd $srcdir && pwd`" != "`pwd`" &&
6671 test -f $srcdir/config.status; then
6672 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6673echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6674 { (exit 1); exit 1; }; }
6675fi
6676
6677# test whether we have cygpath
6678if test -z "$CYGPATH_W"; then
6679 if (cygpath --version) >/dev/null 2>/dev/null; then
6680 CYGPATH_W='cygpath -w'
6681 else
6682 CYGPATH_W=echo
6683 fi
6684fi
6685
6686
6687# Define the identity of the package.
6688 PACKAGE=gdb
6689 VERSION=UNUSED-VERSION
6690
6691
6692# Some tools Automake needs.
6693
6694ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6695
6696
6697AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6698
6699
6700AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6701
6702
6703AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6704
6705
6706MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6707
6708install_sh=${install_sh-"$am_aux_dir/install-sh"}
6709
6710# Installed binaries are usually stripped using `strip' when the user
6711# run `make install-strip'. However `strip' might not be the right
6712# tool to use in cross-compilation environments, therefore Automake
6713# will honor the `STRIP' environment variable to overrule this program.
6714if test "$cross_compiling" != no; then
6715 if test -n "$ac_tool_prefix"; then
6716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6717set dummy ${ac_tool_prefix}strip; ac_word=$2
6718echo "$as_me:$LINENO: checking for $ac_word" >&5
6719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6720if test "${ac_cv_prog_STRIP+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6722else
6723 if test -n "$STRIP"; then
6724 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 break 2
6736 fi
6737done
6738done
6739
6740fi
6741fi
6742STRIP=$ac_cv_prog_STRIP
6743if test -n "$STRIP"; then
6744 echo "$as_me:$LINENO: result: $STRIP" >&5
6745echo "${ECHO_T}$STRIP" >&6
6746else
6747 echo "$as_me:$LINENO: result: no" >&5
6748echo "${ECHO_T}no" >&6
6749fi
6750
6751fi
6752if test -z "$ac_cv_prog_STRIP"; then
6753 ac_ct_STRIP=$STRIP
6754 # Extract the first word of "strip", so it can be a program name with args.
6755set dummy strip; ac_word=$2
6756echo "$as_me:$LINENO: checking for $ac_word" >&5
6757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6758if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6760else
6761 if test -n "$ac_ct_STRIP"; then
6762 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6763else
6764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765for as_dir in $PATH
6766do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6771 ac_cv_prog_ac_ct_STRIP="strip"
6772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 break 2
6774 fi
6775done
6776done
6777
6778 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6779fi
6780fi
6781ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6782if test -n "$ac_ct_STRIP"; then
6783 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6784echo "${ECHO_T}$ac_ct_STRIP" >&6
6785else
6786 echo "$as_me:$LINENO: result: no" >&5
6787echo "${ECHO_T}no" >&6
6788fi
6789
6790 STRIP=$ac_ct_STRIP
6791else
6792 STRIP="$ac_cv_prog_STRIP"
6793fi
6794
6795fi
6796INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6797
6798# We need awk for the "check" target. The system "awk" is bad on
6799# some platforms.
6800# Always define AMTAR for backward compatibility.
6801
6802AMTAR=${AMTAR-"${am_missing_run}tar"}
6803
6804am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6805
6806
6807
6808
6809depcc="$CC" am_compiler_list=
6810
6811echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6812echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6813if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815else
6816 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6817 # We make a subdir and do the tests there. Otherwise we can end up
6818 # making bogus files that we don't know about and never remove. For
6819 # instance it was reported that on HP-UX the gcc test will end up
6820 # making a dummy file named `D' -- because `-MD' means `put the output
6821 # in D'.
6822 mkdir conftest.dir
6823 # Copy depcomp to subdir because otherwise we won't find it if we're
6824 # using a relative directory.
6825 cp "$am_depcomp" conftest.dir
6826 cd conftest.dir
6827 # We will build objects and dependencies in a subdirectory because
6828 # it helps to detect inapplicable dependency modes. For instance
6829 # both Tru64's cc and ICC support -MD to output dependencies as a
6830 # side effect of compilation, but ICC will put the dependencies in
6831 # the current directory while Tru64 will put them in the object
6832 # directory.
6833 mkdir sub
6834
6835 am_cv_CC_dependencies_compiler_type=none
6836 if test "$am_compiler_list" = ""; then
6837 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6838 fi
6839 for depmode in $am_compiler_list; do
6840 # Setup a source with many dependencies, because some compilers
6841 # like to wrap large dependency lists on column 80 (with \), and
6842 # we should not choose a depcomp mode which is confused by this.
6843 #
6844 # We need to recreate these files for each test, as the compiler may
6845 # overwrite some of them when testing with obscure command lines.
6846 # This happens at least with the AIX C compiler.
6847 : > sub/conftest.c
6848 for i in 1 2 3 4 5 6; do
6849 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6850 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6851 # Solaris 8's {/usr,}/bin/sh.
6852 touch sub/conftst$i.h
6853 done
6854 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6855
6856 case $depmode in
6857 nosideeffect)
6858 # after this tag, mechanisms are not by side-effect, so they'll
6859 # only be used when explicitly requested
6860 if test "x$enable_dependency_tracking" = xyes; then
6861 continue
6862 else
6863 break
6864 fi
6865 ;;
6866 none) break ;;
6867 esac
6868 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6869 # mode. It turns out that the SunPro C++ compiler does not properly
6870 # handle `-M -o', and we need to detect this.
6871 if depmode=$depmode \
6872 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6873 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6874 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6875 >/dev/null 2>conftest.err &&
6876 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6877 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6878 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6879 # icc doesn't choke on unknown options, it will just issue warnings
6880 # or remarks (even with -Werror). So we grep stderr for any message
6881 # that says an option was ignored or not supported.
6882 # When given -MP, icc 7.0 and 7.1 complain thusly:
6883 # icc: Command line warning: ignoring option '-M'; no argument required
6884 # The diagnosis changed in icc 8.0:
6885 # icc: Command line remark: option '-MP' not supported
6886 if (grep 'ignoring option' conftest.err ||
6887 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6888 am_cv_CC_dependencies_compiler_type=$depmode
6889 break
6890 fi
6891 fi
6892 done
6893
6894 cd ..
6895 rm -rf conftest.dir
6896else
6897 am_cv_CC_dependencies_compiler_type=none
6898fi
6899
6900fi
6901echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6902echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6903CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6904
6905
6906
6907if
6908 test "x$enable_dependency_tracking" != xno \
6909 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6910 am__fastdepCC_TRUE=
6911 am__fastdepCC_FALSE='#'
6912else
6913 am__fastdepCC_TRUE='#'
6914 am__fastdepCC_FALSE=
6915fi
6916
6917
6918
6919
bec39cab
AC
6920debugdir=${libdir}/debug
6921
6922
b4e70030 6923# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
bec39cab 6924if test "${with_separate_debug_dir+set}" = set; then
783e057b
DJ
6925 withval="$with_separate_debug_dir"
6926 debugdir="${withval}"
6927fi;
20e95c23 6928
20e95c23 6929
783e057b
DJ
6930 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6931 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6932 ac_define_dir=`eval echo $debugdir`
6933 ac_define_dir=`eval echo $ac_define_dir`
20e95c23 6934
783e057b
DJ
6935cat >>confdefs.h <<_ACEOF
6936#define DEBUGDIR "$ac_define_dir"
20e95c23 6937_ACEOF
20e95c23 6938
20e95c23 6939
783e057b 6940#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
20e95c23 6941
783e057b
DJ
6942if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6943 if test "x$prefix" = xNONE; then
6944 test_prefix=/usr/local
6945 else
6946 test_prefix=$prefix
6947 fi
20e95c23 6948else
783e057b 6949 test_prefix=$exec_prefix
20e95c23 6950fi
783e057b
DJ
6951case ${debugdir} in
6952"${test_prefix}"|"${test_prefix}/"*|\
6953'${exec_prefix}'|'${exec_prefix}/'*)
20e95c23
DJ
6954
6955cat >>confdefs.h <<\_ACEOF
783e057b 6956#define DEBUGDIR_RELOCATABLE 1
20e95c23
DJ
6957_ACEOF
6958
783e057b
DJ
6959 ;;
6960esac
6961
20e95c23 6962
20e95c23 6963
783e057b 6964subdirs="$subdirs doc testsuite"
20e95c23
DJ
6965
6966
783e057b
DJ
6967# Check whether to support alternative target configurations
6968# Check whether --enable-targets or --disable-targets was given.
6969if test "${enable_targets+set}" = set; then
6970 enableval="$enable_targets"
6971 case "${enableval}" in
6972 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
6973echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
6974 { (exit 1); exit 1; }; }
6975 ;;
6976 no) enable_targets= ;;
6977 *) enable_targets=$enableval ;;
6978esac
6979fi;
20e95c23 6980
783e057b
DJ
6981# Check whether to enable 64-bit support on 32-bit hosts
6982# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
6983if test "${enable_64_bit_bfd+set}" = set; then
6984 enableval="$enable_64_bit_bfd"
6985 case "${enableval}" in
6986 yes) want64=true ;;
6987 no) want64=false ;;
6988 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
6989echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
6990 { (exit 1); exit 1; }; } ;;
6991esac
6992else
6993 want64=false
6994fi;
6995# Provide defaults for some variables set by the per-host and per-target
6996# configuration.
6997gdb_host_obs=posix-hdep.o
20e95c23 6998
783e057b
DJ
6999if test "${target}" = "${host}"; then
7000 gdb_native=yes
7001else
7002 gdb_native=no
7003fi
20e95c23 7004
783e057b 7005. $srcdir/configure.host
20e95c23 7006
783e057b 7007# Accumulate some settings from configure.tgt over all enabled targets
20e95c23 7008
783e057b
DJ
7009TARGET_OBS=
7010all_targets=
20e95c23 7011
783e057b 7012for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
20e95c23 7013do
783e057b
DJ
7014 if test "$targ_alias" = "all"; then
7015 all_targets=true
7016 else
7017 # Canonicalize the secondary target names.
7018 result=`$ac_config_sub $targ_alias 2>/dev/null`
7019 if test -n "$result"; then
7020 targ=$result
7021 else
7022 targ=$targ_alias
7023 fi
20e95c23 7024
783e057b 7025 . ${srcdir}/configure.tgt
20e95c23 7026
783e057b
DJ
7027 # Target-specific object files
7028 for i in ${gdb_target_obs}; do
7029 case " $TARGET_OBS " in
7030 *" ${i} "*) ;;
7031 *)
7032 TARGET_OBS="$TARGET_OBS ${i}"
7033 ;;
7034 esac
7035 done
20e95c23 7036
783e057b
DJ
7037 # Check whether this target needs 64-bit CORE_ADDR
7038 if test x${want64} = xfalse; then
7039 . ${srcdir}/../bfd/config.bfd
7040 fi
7041 fi
20e95c23
DJ
7042done
7043
783e057b
DJ
7044if test x${all_targets} = xtrue; then
7045
7046 # We want all 64-bit targets if we either:
7047 # - run on a 64-bit host or
7048 # - already require 64-bit support for some other target or
7049 # - the --enable-64-bit-bfd option was supplied
7050 # Otherwise we only support all 32-bit targets.
7051 #
7052 # NOTE: This test must be in sync with the corresponding
7053 # tests in BFD!
20e95c23 7054
783e057b
DJ
7055 if test x${want64} = xfalse; then
7056 echo "$as_me:$LINENO: checking for long" >&5
c0993dbe
UW
7057echo $ECHO_N "checking for long... $ECHO_C" >&6
7058if test "${ac_cv_type_long+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7060else
7061 cat >conftest.$ac_ext <<_ACEOF
7062/* confdefs.h. */
7063_ACEOF
7064cat confdefs.h >>conftest.$ac_ext
7065cat >>conftest.$ac_ext <<_ACEOF
7066/* end confdefs.h. */
7067$ac_includes_default
7068int
7069main ()
7070{
7071if ((long *) 0)
7072 return 0;
7073if (sizeof (long))
7074 return 0;
7075 ;
7076 return 0;
7077}
7078_ACEOF
7079rm -f conftest.$ac_objext
7080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7081 (eval $ac_compile) 2>conftest.er1
7082 ac_status=$?
7083 grep -v '^ *+' conftest.er1 >conftest.err
7084 rm -f conftest.er1
7085 cat conftest.err >&5
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); } &&
7088 { ac_try='test -z "$ac_c_werror_flag"
7089 || test ! -s conftest.err'
7090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091 (eval $ac_try) 2>&5
7092 ac_status=$?
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; } &&
7095 { ac_try='test -s conftest.$ac_objext'
7096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097 (eval $ac_try) 2>&5
7098 ac_status=$?
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); }; }; then
7101 ac_cv_type_long=yes
7102else
7103 echo "$as_me: failed program was:" >&5
7104sed 's/^/| /' conftest.$ac_ext >&5
7105
7106ac_cv_type_long=no
7107fi
7108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7109fi
7110echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7111echo "${ECHO_T}$ac_cv_type_long" >&6
7112
7113echo "$as_me:$LINENO: checking size of long" >&5
7114echo $ECHO_N "checking size of long... $ECHO_C" >&6
7115if test "${ac_cv_sizeof_long+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7117else
7118 if test "$ac_cv_type_long" = yes; then
7119 # The cast to unsigned long works around a bug in the HP C Compiler
7120 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7121 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7122 # This bug is HP SR number 8606223364.
7123 if test "$cross_compiling" = yes; then
7124 # Depending upon the size, compute the lo and hi bounds.
7125cat >conftest.$ac_ext <<_ACEOF
7126/* confdefs.h. */
7127_ACEOF
7128cat confdefs.h >>conftest.$ac_ext
7129cat >>conftest.$ac_ext <<_ACEOF
7130/* end confdefs.h. */
7131$ac_includes_default
7132int
7133main ()
7134{
7135static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7136test_array [0] = 0
7137
7138 ;
7139 return 0;
7140}
7141_ACEOF
7142rm -f conftest.$ac_objext
7143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7144 (eval $ac_compile) 2>conftest.er1
7145 ac_status=$?
7146 grep -v '^ *+' conftest.er1 >conftest.err
7147 rm -f conftest.er1
7148 cat conftest.err >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); } &&
7151 { ac_try='test -z "$ac_c_werror_flag"
7152 || test ! -s conftest.err'
7153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154 (eval $ac_try) 2>&5
7155 ac_status=$?
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); }; } &&
7158 { ac_try='test -s conftest.$ac_objext'
7159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160 (eval $ac_try) 2>&5
7161 ac_status=$?
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; }; then
7164 ac_lo=0 ac_mid=0
7165 while :; do
7166 cat >conftest.$ac_ext <<_ACEOF
7167/* confdefs.h. */
7168_ACEOF
7169cat confdefs.h >>conftest.$ac_ext
7170cat >>conftest.$ac_ext <<_ACEOF
7171/* end confdefs.h. */
7172$ac_includes_default
7173int
7174main ()
7175{
7176static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7177test_array [0] = 0
7178
7179 ;
7180 return 0;
7181}
7182_ACEOF
7183rm -f conftest.$ac_objext
7184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7185 (eval $ac_compile) 2>conftest.er1
7186 ac_status=$?
7187 grep -v '^ *+' conftest.er1 >conftest.err
7188 rm -f conftest.er1
7189 cat conftest.err >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } &&
7192 { ac_try='test -z "$ac_c_werror_flag"
7193 || test ! -s conftest.err'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 (eval $ac_try) 2>&5
7196 ac_status=$?
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; } &&
7199 { ac_try='test -s conftest.$ac_objext'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 (eval $ac_try) 2>&5
7202 ac_status=$?
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; }; then
7205 ac_hi=$ac_mid; break
7206else
7207 echo "$as_me: failed program was:" >&5
7208sed 's/^/| /' conftest.$ac_ext >&5
7209
7210ac_lo=`expr $ac_mid + 1`
7211 if test $ac_lo -le $ac_mid; then
7212 ac_lo= ac_hi=
7213 break
7214 fi
7215 ac_mid=`expr 2 '*' $ac_mid + 1`
7216fi
7217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7218 done
7219else
7220 echo "$as_me: failed program was:" >&5
7221sed 's/^/| /' conftest.$ac_ext >&5
7222
7223cat >conftest.$ac_ext <<_ACEOF
7224/* confdefs.h. */
7225_ACEOF
7226cat confdefs.h >>conftest.$ac_ext
7227cat >>conftest.$ac_ext <<_ACEOF
7228/* end confdefs.h. */
7229$ac_includes_default
7230int
7231main ()
7232{
7233static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7234test_array [0] = 0
7235
7236 ;
7237 return 0;
7238}
7239_ACEOF
7240rm -f conftest.$ac_objext
7241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7242 (eval $ac_compile) 2>conftest.er1
7243 ac_status=$?
7244 grep -v '^ *+' conftest.er1 >conftest.err
7245 rm -f conftest.er1
7246 cat conftest.err >&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); } &&
7249 { ac_try='test -z "$ac_c_werror_flag"
7250 || test ! -s conftest.err'
7251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252 (eval $ac_try) 2>&5
7253 ac_status=$?
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); }; } &&
7256 { ac_try='test -s conftest.$ac_objext'
7257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258 (eval $ac_try) 2>&5
7259 ac_status=$?
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; }; then
7262 ac_hi=-1 ac_mid=-1
7263 while :; do
7264 cat >conftest.$ac_ext <<_ACEOF
7265/* confdefs.h. */
7266_ACEOF
7267cat confdefs.h >>conftest.$ac_ext
7268cat >>conftest.$ac_ext <<_ACEOF
7269/* end confdefs.h. */
7270$ac_includes_default
7271int
7272main ()
7273{
7274static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7275test_array [0] = 0
7276
7277 ;
7278 return 0;
7279}
7280_ACEOF
7281rm -f conftest.$ac_objext
7282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7283 (eval $ac_compile) 2>conftest.er1
7284 ac_status=$?
7285 grep -v '^ *+' conftest.er1 >conftest.err
7286 rm -f conftest.er1
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
7293 (eval $ac_try) 2>&5
7294 ac_status=$?
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
7299 (eval $ac_try) 2>&5
7300 ac_status=$?
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; }; then
7303 ac_lo=$ac_mid; break
7304else
7305 echo "$as_me: failed program was:" >&5
7306sed 's/^/| /' conftest.$ac_ext >&5
7307
7308ac_hi=`expr '(' $ac_mid ')' - 1`
7309 if test $ac_mid -le $ac_hi; then
7310 ac_lo= ac_hi=
7311 break
7312 fi
7313 ac_mid=`expr 2 '*' $ac_mid`
7314fi
7315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7316 done
7317else
7318 echo "$as_me: failed program was:" >&5
7319sed 's/^/| /' conftest.$ac_ext >&5
7320
7321ac_lo= ac_hi=
7322fi
7323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7324fi
7325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7326# Binary search between lo and hi bounds.
7327while test "x$ac_lo" != "x$ac_hi"; do
7328 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7329 cat >conftest.$ac_ext <<_ACEOF
7330/* confdefs.h. */
7331_ACEOF
7332cat confdefs.h >>conftest.$ac_ext
7333cat >>conftest.$ac_ext <<_ACEOF
7334/* end confdefs.h. */
7335$ac_includes_default
7336int
7337main ()
7338{
7339static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7340test_array [0] = 0
7341
7342 ;
7343 return 0;
7344}
7345_ACEOF
7346rm -f conftest.$ac_objext
7347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7348 (eval $ac_compile) 2>conftest.er1
7349 ac_status=$?
7350 grep -v '^ *+' conftest.er1 >conftest.err
7351 rm -f conftest.er1
7352 cat conftest.err >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } &&
7355 { ac_try='test -z "$ac_c_werror_flag"
7356 || test ! -s conftest.err'
7357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358 (eval $ac_try) 2>&5
7359 ac_status=$?
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); }; } &&
7362 { ac_try='test -s conftest.$ac_objext'
7363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364 (eval $ac_try) 2>&5
7365 ac_status=$?
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); }; }; then
7368 ac_hi=$ac_mid
7369else
7370 echo "$as_me: failed program was:" >&5
7371sed 's/^/| /' conftest.$ac_ext >&5
7372
7373ac_lo=`expr '(' $ac_mid ')' + 1`
7374fi
7375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7376done
7377case $ac_lo in
7378?*) ac_cv_sizeof_long=$ac_lo;;
d5af19ba
DJ
7379'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7380echo "$as_me: error: in \`$ac_pwd':" >&2;}
7381{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
c0993dbe
UW
7382See \`config.log' for more details." >&5
7383echo "$as_me: error: cannot compute sizeof (long), 77
7384See \`config.log' for more details." >&2;}
d5af19ba 7385 { (exit 1); exit 1; }; }; } ;;
c0993dbe
UW
7386esac
7387else
7388 if test "$cross_compiling" = yes; then
d5af19ba
DJ
7389 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7390echo "$as_me: error: in \`$ac_pwd':" >&2;}
7391{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
c0993dbe
UW
7392See \`config.log' for more details." >&5
7393echo "$as_me: error: cannot run test program while cross compiling
7394See \`config.log' for more details." >&2;}
d5af19ba 7395 { (exit 1); exit 1; }; }; }
c0993dbe
UW
7396else
7397 cat >conftest.$ac_ext <<_ACEOF
7398/* confdefs.h. */
7399_ACEOF
7400cat confdefs.h >>conftest.$ac_ext
7401cat >>conftest.$ac_ext <<_ACEOF
7402/* end confdefs.h. */
7403$ac_includes_default
7404long longval () { return (long) (sizeof (long)); }
7405unsigned long ulongval () { return (long) (sizeof (long)); }
7406#include <stdio.h>
7407#include <stdlib.h>
7408int
7409main ()
7410{
7411
7412 FILE *f = fopen ("conftest.val", "w");
7413 if (! f)
7414 exit (1);
7415 if (((long) (sizeof (long))) < 0)
7416 {
7417 long i = longval ();
7418 if (i != ((long) (sizeof (long))))
7419 exit (1);
7420 fprintf (f, "%ld\n", i);
7421 }
7422 else
7423 {
7424 unsigned long i = ulongval ();
7425 if (i != ((long) (sizeof (long))))
7426 exit (1);
7427 fprintf (f, "%lu\n", i);
7428 }
7429 exit (ferror (f) || fclose (f) != 0);
7430
7431 ;
7432 return 0;
7433}
7434_ACEOF
7435rm -f conftest$ac_exeext
7436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7437 (eval $ac_link) 2>&5
7438 ac_status=$?
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442 (eval $ac_try) 2>&5
7443 ac_status=$?
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); }; }; then
7446 ac_cv_sizeof_long=`cat conftest.val`
7447else
7448 echo "$as_me: program exited with status $ac_status" >&5
7449echo "$as_me: failed program was:" >&5
7450sed 's/^/| /' conftest.$ac_ext >&5
7451
7452( exit $ac_status )
d5af19ba
DJ
7453{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7454echo "$as_me: error: in \`$ac_pwd':" >&2;}
c0993dbe
UW
7455{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7456See \`config.log' for more details." >&5
7457echo "$as_me: error: cannot compute sizeof (long), 77
7458See \`config.log' for more details." >&2;}
d5af19ba 7459 { (exit 1); exit 1; }; }; }
c0993dbe
UW
7460fi
7461rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7462fi
7463fi
7464rm -f conftest.val
7465else
7466 ac_cv_sizeof_long=0
7467fi
7468fi
7469echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7470echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7471cat >>confdefs.h <<_ACEOF
7472#define SIZEOF_LONG $ac_cv_sizeof_long
7473_ACEOF
7474
7475
7476 if test "x${ac_cv_sizeof_long}" = "x8"; then
7477 want64=true
7478 fi
7479 fi
7480 if test x${want64} = xtrue; then
7481 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7482 else
7483 TARGET_OBS='$(ALL_TARGET_OBS)'
7484 fi
7485fi
7486
7487
7488
7489# For other settings, only the main target counts.
7490gdb_sim=
7491gdb_osabi=
7492build_gdbserver=
7493targ=$target; . ${srcdir}/configure.tgt
7494
7495# Fetch the default architecture and default target vector from BFD.
7496targ=$target; . $srcdir/../bfd/config.bfd
7497
7498# We only want the first architecture, so strip off the others if
7499# there is more than one.
7500targ_archs=`echo $targ_archs | sed 's/ .*//'`
7501
7502if test "x$targ_archs" != x; then
7503
7504cat >>confdefs.h <<_ACEOF
7505#define DEFAULT_BFD_ARCH $targ_archs
7506_ACEOF
7507
7508fi
7509if test "x$targ_defvec" != x; then
7510
7511cat >>confdefs.h <<_ACEOF
7512#define DEFAULT_BFD_VEC $targ_defvec
7513_ACEOF
7514
7515fi
7516
c0993dbe
UW
7517# The CLI cannot be disabled yet, but may be in the future.
7518
7519# Enable CLI.
7520# Check whether --enable-gdbcli or --disable-gdbcli was given.
7521if test "${enable_gdbcli+set}" = set; then
7522 enableval="$enable_gdbcli"
7523 case $enableval in
7524 yes)
7525 ;;
7526 no)
7527 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7528echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7529 { (exit 1); exit 1; }; } ;;
7530 *)
7531 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7532echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7533 { (exit 1); exit 1; }; } ;;
7534 esac
7535else
7536 enable_gdbcli=yes
7537fi;
7538if test x"$enable_gdbcli" = xyes; then
7539 if test -d $srcdir/cli; then
7540 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7541 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7542 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7543 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7544 fi
7545fi
7546
7547# Enable MI.
7548# Check whether --enable-gdbmi or --disable-gdbmi was given.
7549if test "${enable_gdbmi+set}" = set; then
7550 enableval="$enable_gdbmi"
7551 case $enableval in
7552 yes | no)
7553 ;;
7554 *)
7555 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7556echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7557 { (exit 1); exit 1; }; } ;;
7558 esac
7559else
7560 enable_gdbmi=yes
7561fi;
7562if test x"$enable_gdbmi" = xyes; then
7563 if test -d $srcdir/mi; then
7564 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7565 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7566 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7567 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7568 fi
7569fi
7570
7571# Enable TUI.
7572# Check whether --enable-tui or --disable-tui was given.
7573if test "${enable_tui+set}" = set; then
7574 enableval="$enable_tui"
7575 case $enableval in
3ca64bd3 7576 yes | no | auto)
c0993dbe
UW
7577 ;;
7578 *)
7579 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7580echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7581 { (exit 1); exit 1; }; } ;;
7582 esac
7583else
3ca64bd3 7584 enable_tui=auto
c0993dbe
UW
7585fi;
7586
7587# Enable gdbtk.
7588# Check whether --enable-gdbtk or --disable-gdbtk was given.
7589if test "${enable_gdbtk+set}" = set; then
7590 enableval="$enable_gdbtk"
7591 case $enableval in
7592 yes | no)
7593 ;;
7594 *)
7595 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7596echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7597 { (exit 1); exit 1; }; } ;;
7598 esac
7599else
7600 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
7601 enable_gdbtk=yes
7602 else
7603 enable_gdbtk=no
7604 fi
7605fi;
7606# We unconditionally disable gdbtk tests on selected platforms.
7607case $host_os in
7608 go32* | windows*)
7609 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7610echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7611 enable_gdbtk=no ;;
7612esac
7613
7614# Libunwind support.
bec39cab 7615
b4e70030 7616# Check whether --with-libunwind or --without-libunwind was given.
bec39cab 7617if test "${with_libunwind+set}" = set; then
b4e70030
JB
7618 withval="$with_libunwind"
7619 case "${withval}" in
bec39cab
AC
7620 yes) enable_libunwind=yes ;;
7621 no) enable_libunwind=no ;;
7622 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7623echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7624 { (exit 1); exit 1; }; } ;;
7625esac
7626else
7627
7628
7629for ac_header in libunwind.h
7630do
7631as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7632if eval "test \"\${$as_ac_Header+set}\" = set"; then
7633 echo "$as_me:$LINENO: checking for $ac_header" >&5
7634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7635if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7637fi
b4e70030
JB
7638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7640else
7641 # Is the header compilable?
b4e70030
JB
7642echo "$as_me:$LINENO: checking $ac_header usability" >&5
7643echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7644cat >conftest.$ac_ext <<_ACEOF
7645/* confdefs.h. */
7646_ACEOF
7647cat confdefs.h >>conftest.$ac_ext
7648cat >>conftest.$ac_ext <<_ACEOF
7649/* end confdefs.h. */
7650$ac_includes_default
7651#include <$ac_header>
7652_ACEOF
7653rm -f conftest.$ac_objext
7654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7655 (eval $ac_compile) 2>conftest.er1
7656 ac_status=$?
7657 grep -v '^ *+' conftest.er1 >conftest.err
7658 rm -f conftest.er1
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } &&
b4e70030
JB
7662 { ac_try='test -z "$ac_c_werror_flag"
7663 || test ! -s conftest.err'
bec39cab
AC
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665 (eval $ac_try) 2>&5
7666 ac_status=$?
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; } &&
7669 { ac_try='test -s conftest.$ac_objext'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 (eval $ac_try) 2>&5
7672 ac_status=$?
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; }; then
7675 ac_header_compiler=yes
7676else
7677 echo "$as_me: failed program was:" >&5
7678sed 's/^/| /' conftest.$ac_ext >&5
7679
b4e70030 7680ac_header_compiler=no
bec39cab
AC
7681fi
7682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7683echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7684echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7685
7686# Is the header present?
b4e70030
JB
7687echo "$as_me:$LINENO: checking $ac_header presence" >&5
7688echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7689cat >conftest.$ac_ext <<_ACEOF
7690/* confdefs.h. */
7691_ACEOF
7692cat confdefs.h >>conftest.$ac_ext
7693cat >>conftest.$ac_ext <<_ACEOF
7694/* end confdefs.h. */
7695#include <$ac_header>
7696_ACEOF
7697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7699 ac_status=$?
7700 grep -v '^ *+' conftest.er1 >conftest.err
7701 rm -f conftest.er1
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } >/dev/null; then
7705 if test -s conftest.err; then
7706 ac_cpp_err=$ac_c_preproc_warn_flag
7707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7708 else
7709 ac_cpp_err=
7710 fi
7711else
7712 ac_cpp_err=yes
7713fi
7714if test -z "$ac_cpp_err"; then
7715 ac_header_preproc=yes
7716else
7717 echo "$as_me: failed program was:" >&5
7718sed 's/^/| /' conftest.$ac_ext >&5
7719
7720 ac_header_preproc=no
7721fi
7722rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7723echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7724echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7725
7726# So? What about this header?
7727case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7728 yes:no: )
7729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7730echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7732echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7733 ac_header_preproc=yes
7734 ;;
7735 no:yes:* )
7736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7737echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7739echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7741echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7743echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7745echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7747echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7748 (
7749 cat <<\_ASBOX
7750## ------------------------------------------ ##
7751## Report this to the AC_PACKAGE_NAME lists. ##
7752## ------------------------------------------ ##
7753_ASBOX
7754 ) |
7755 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7756 ;;
7757esac
b4e70030
JB
7758echo "$as_me:$LINENO: checking for $ac_header" >&5
7759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7760if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7762else
7763 eval "$as_ac_Header=\$ac_header_preproc"
7764fi
b4e70030
JB
7765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7767
7768fi
7769if test `eval echo '${'$as_ac_Header'}'` = yes; then
7770 cat >>confdefs.h <<_ACEOF
7771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7772_ACEOF
7773
7774fi
7775
7776done
7777
7778
7779for ac_header in libunwind-ia64.h
7780do
7781as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7782if eval "test \"\${$as_ac_Header+set}\" = set"; then
7783 echo "$as_me:$LINENO: checking for $ac_header" >&5
7784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7785if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787fi
b4e70030
JB
7788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7790else
7791 # Is the header compilable?
b4e70030
JB
7792echo "$as_me:$LINENO: checking $ac_header usability" >&5
7793echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7794cat >conftest.$ac_ext <<_ACEOF
7795/* confdefs.h. */
7796_ACEOF
7797cat confdefs.h >>conftest.$ac_ext
7798cat >>conftest.$ac_ext <<_ACEOF
7799/* end confdefs.h. */
7800$ac_includes_default
7801#include <$ac_header>
7802_ACEOF
7803rm -f conftest.$ac_objext
7804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7805 (eval $ac_compile) 2>conftest.er1
7806 ac_status=$?
7807 grep -v '^ *+' conftest.er1 >conftest.err
7808 rm -f conftest.er1
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } &&
b4e70030
JB
7812 { ac_try='test -z "$ac_c_werror_flag"
7813 || test ! -s conftest.err'
bec39cab
AC
7814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815 (eval $ac_try) 2>&5
7816 ac_status=$?
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); }; } &&
7819 { ac_try='test -s conftest.$ac_objext'
7820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821 (eval $ac_try) 2>&5
7822 ac_status=$?
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; }; then
7825 ac_header_compiler=yes
7826else
7827 echo "$as_me: failed program was:" >&5
7828sed 's/^/| /' conftest.$ac_ext >&5
7829
b4e70030 7830ac_header_compiler=no
bec39cab
AC
7831fi
7832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7833echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7834echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7835
7836# Is the header present?
b4e70030
JB
7837echo "$as_me:$LINENO: checking $ac_header presence" >&5
7838echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7839cat >conftest.$ac_ext <<_ACEOF
7840/* confdefs.h. */
7841_ACEOF
7842cat confdefs.h >>conftest.$ac_ext
7843cat >>conftest.$ac_ext <<_ACEOF
7844/* end confdefs.h. */
7845#include <$ac_header>
7846_ACEOF
7847if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7849 ac_status=$?
7850 grep -v '^ *+' conftest.er1 >conftest.err
7851 rm -f conftest.er1
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } >/dev/null; then
7855 if test -s conftest.err; then
7856 ac_cpp_err=$ac_c_preproc_warn_flag
7857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7858 else
7859 ac_cpp_err=
7860 fi
7861else
7862 ac_cpp_err=yes
7863fi
7864if test -z "$ac_cpp_err"; then
7865 ac_header_preproc=yes
7866else
7867 echo "$as_me: failed program was:" >&5
7868sed 's/^/| /' conftest.$ac_ext >&5
7869
7870 ac_header_preproc=no
7871fi
7872rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7873echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7874echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7875
7876# So? What about this header?
7877case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7878 yes:no: )
7879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7880echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7882echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7883 ac_header_preproc=yes
7884 ;;
7885 no:yes:* )
7886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7887echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7889echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7891echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7893echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7895echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7897echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7898 (
7899 cat <<\_ASBOX
7900## ------------------------------------------ ##
7901## Report this to the AC_PACKAGE_NAME lists. ##
7902## ------------------------------------------ ##
7903_ASBOX
7904 ) |
7905 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7906 ;;
7907esac
b4e70030
JB
7908echo "$as_me:$LINENO: checking for $ac_header" >&5
7909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7910if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7912else
7913 eval "$as_ac_Header=\$ac_header_preproc"
7914fi
b4e70030
JB
7915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7916echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7917
7918fi
7919if test `eval echo '${'$as_ac_Header'}'` = yes; then
7920 cat >>confdefs.h <<_ACEOF
7921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7922_ACEOF
7923
7924fi
7925
7926done
7927
7928 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7929 enable_libunwind=yes;
7930 fi
7931
b4e70030 7932fi;
bec39cab
AC
7933
7934if test x"$enable_libunwind" = xyes; then
7935
7936for ac_header in libunwind.h
7937do
7938as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7939if eval "test \"\${$as_ac_Header+set}\" = set"; then
7940 echo "$as_me:$LINENO: checking for $ac_header" >&5
7941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7942if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7944fi
b4e70030
JB
7945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7946echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7947else
7948 # Is the header compilable?
b4e70030
JB
7949echo "$as_me:$LINENO: checking $ac_header usability" >&5
7950echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7951cat >conftest.$ac_ext <<_ACEOF
7952/* confdefs.h. */
7953_ACEOF
7954cat confdefs.h >>conftest.$ac_ext
7955cat >>conftest.$ac_ext <<_ACEOF
7956/* end confdefs.h. */
7957$ac_includes_default
7958#include <$ac_header>
7959_ACEOF
7960rm -f conftest.$ac_objext
7961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7962 (eval $ac_compile) 2>conftest.er1
7963 ac_status=$?
7964 grep -v '^ *+' conftest.er1 >conftest.err
7965 rm -f conftest.er1
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } &&
b4e70030
JB
7969 { ac_try='test -z "$ac_c_werror_flag"
7970 || test ! -s conftest.err'
bec39cab
AC
7971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 (eval $ac_try) 2>&5
7973 ac_status=$?
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; } &&
7976 { ac_try='test -s conftest.$ac_objext'
7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 (eval $ac_try) 2>&5
7979 ac_status=$?
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; }; then
7982 ac_header_compiler=yes
7983else
7984 echo "$as_me: failed program was:" >&5
7985sed 's/^/| /' conftest.$ac_ext >&5
7986
b4e70030 7987ac_header_compiler=no
bec39cab
AC
7988fi
7989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7990echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7991echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7992
7993# Is the header present?
b4e70030
JB
7994echo "$as_me:$LINENO: checking $ac_header presence" >&5
7995echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7996cat >conftest.$ac_ext <<_ACEOF
7997/* confdefs.h. */
7998_ACEOF
7999cat confdefs.h >>conftest.$ac_ext
8000cat >>conftest.$ac_ext <<_ACEOF
8001/* end confdefs.h. */
8002#include <$ac_header>
8003_ACEOF
8004if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8006 ac_status=$?
8007 grep -v '^ *+' conftest.er1 >conftest.err
8008 rm -f conftest.er1
8009 cat conftest.err >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } >/dev/null; then
8012 if test -s conftest.err; then
8013 ac_cpp_err=$ac_c_preproc_warn_flag
8014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8015 else
8016 ac_cpp_err=
8017 fi
8018else
8019 ac_cpp_err=yes
8020fi
8021if test -z "$ac_cpp_err"; then
8022 ac_header_preproc=yes
8023else
8024 echo "$as_me: failed program was:" >&5
8025sed 's/^/| /' conftest.$ac_ext >&5
8026
8027 ac_header_preproc=no
8028fi
8029rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8030echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8031echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8032
8033# So? What about this header?
8034case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8035 yes:no: )
8036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8037echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8039echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8040 ac_header_preproc=yes
8041 ;;
8042 no:yes:* )
8043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8044echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8046echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8048echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8050echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8052echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8054echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8055 (
8056 cat <<\_ASBOX
8057## ------------------------------------------ ##
8058## Report this to the AC_PACKAGE_NAME lists. ##
8059## ------------------------------------------ ##
8060_ASBOX
8061 ) |
8062 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8063 ;;
8064esac
b4e70030
JB
8065echo "$as_me:$LINENO: checking for $ac_header" >&5
8066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8067if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8068 echo $ECHO_N "(cached) $ECHO_C" >&6
8069else
8070 eval "$as_ac_Header=\$ac_header_preproc"
8071fi
b4e70030
JB
8072echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8073echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8074
8075fi
8076if test `eval echo '${'$as_ac_Header'}'` = yes; then
8077 cat >>confdefs.h <<_ACEOF
8078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8079_ACEOF
8080
8081fi
8082
8083done
8084
8085
8086for ac_header in libunwind-ia64.h
8087do
8088as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8089if eval "test \"\${$as_ac_Header+set}\" = set"; then
8090 echo "$as_me:$LINENO: checking for $ac_header" >&5
8091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8092if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8094fi
b4e70030
JB
8095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8096echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8097else
8098 # Is the header compilable?
b4e70030
JB
8099echo "$as_me:$LINENO: checking $ac_header usability" >&5
8100echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8101cat >conftest.$ac_ext <<_ACEOF
8102/* confdefs.h. */
8103_ACEOF
8104cat confdefs.h >>conftest.$ac_ext
8105cat >>conftest.$ac_ext <<_ACEOF
8106/* end confdefs.h. */
8107$ac_includes_default
8108#include <$ac_header>
8109_ACEOF
8110rm -f conftest.$ac_objext
8111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8112 (eval $ac_compile) 2>conftest.er1
8113 ac_status=$?
8114 grep -v '^ *+' conftest.er1 >conftest.err
8115 rm -f conftest.er1
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } &&
b4e70030
JB
8119 { ac_try='test -z "$ac_c_werror_flag"
8120 || test ! -s conftest.err'
bec39cab
AC
8121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122 (eval $ac_try) 2>&5
8123 ac_status=$?
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); }; } &&
8126 { ac_try='test -s conftest.$ac_objext'
8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128 (eval $ac_try) 2>&5
8129 ac_status=$?
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; }; then
8132 ac_header_compiler=yes
8133else
8134 echo "$as_me: failed program was:" >&5
8135sed 's/^/| /' conftest.$ac_ext >&5
8136
b4e70030 8137ac_header_compiler=no
bec39cab
AC
8138fi
8139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8140echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8141echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8142
8143# Is the header present?
b4e70030
JB
8144echo "$as_me:$LINENO: checking $ac_header presence" >&5
8145echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8146cat >conftest.$ac_ext <<_ACEOF
8147/* confdefs.h. */
8148_ACEOF
8149cat confdefs.h >>conftest.$ac_ext
8150cat >>conftest.$ac_ext <<_ACEOF
8151/* end confdefs.h. */
8152#include <$ac_header>
8153_ACEOF
8154if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8156 ac_status=$?
8157 grep -v '^ *+' conftest.er1 >conftest.err
8158 rm -f conftest.er1
8159 cat conftest.err >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } >/dev/null; then
8162 if test -s conftest.err; then
8163 ac_cpp_err=$ac_c_preproc_warn_flag
8164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8165 else
8166 ac_cpp_err=
8167 fi
8168else
8169 ac_cpp_err=yes
8170fi
8171if test -z "$ac_cpp_err"; then
8172 ac_header_preproc=yes
8173else
8174 echo "$as_me: failed program was:" >&5
8175sed 's/^/| /' conftest.$ac_ext >&5
8176
8177 ac_header_preproc=no
8178fi
8179rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8180echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8181echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8182
8183# So? What about this header?
8184case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8185 yes:no: )
8186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8187echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8189echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8190 ac_header_preproc=yes
8191 ;;
8192 no:yes:* )
8193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8194echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8196echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8198echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8200echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8202echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8204echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8205 (
8206 cat <<\_ASBOX
8207## ------------------------------------------ ##
8208## Report this to the AC_PACKAGE_NAME lists. ##
8209## ------------------------------------------ ##
8210_ASBOX
8211 ) |
8212 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8213 ;;
8214esac
b4e70030
JB
8215echo "$as_me:$LINENO: checking for $ac_header" >&5
8216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8217if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8219else
8220 eval "$as_ac_Header=\$ac_header_preproc"
8221fi
b4e70030
JB
8222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8223echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8224
8225fi
8226if test `eval echo '${'$as_ac_Header'}'` = yes; then
8227 cat >>confdefs.h <<_ACEOF
8228#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8229_ACEOF
8230
8231fi
8232
8233done
8234
60ca704f
SE
8235
8236cat >>confdefs.h <<\_ACEOF
bec39cab
AC
8237#define HAVE_LIBUNWIND 1
8238_ACEOF
8239
8240 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8241 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8242 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8243fi
8244
8245# Profiling support.
b4e70030 8246# Check whether --enable-profiling or --disable-profiling was given.
bec39cab 8247if test "${enable_profiling+set}" = set; then
b4e70030
JB
8248 enableval="$enable_profiling"
8249 case $enableval in
bec39cab
AC
8250 yes | no)
8251 ;;
8252 *)
8253 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8254echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8255 { (exit 1); exit 1; }; } ;;
8256 esac
8257else
8258 enable_profiling=no
b4e70030 8259fi;
bec39cab
AC
8260
8261
8262
8263for ac_func in monstartup _mcleanup
8264do
8265as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
8266echo "$as_me:$LINENO: checking for $ac_func" >&5
8267echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8268if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8270else
8271 cat >conftest.$ac_ext <<_ACEOF
8272/* confdefs.h. */
8273_ACEOF
8274cat confdefs.h >>conftest.$ac_ext
8275cat >>conftest.$ac_ext <<_ACEOF
8276/* end confdefs.h. */
8277/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8279#define $ac_func innocuous_$ac_func
8280
8281/* System header to define __stub macros and hopefully few prototypes,
8282 which can conflict with char $ac_func (); below.
8283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8284 <limits.h> exists even on freestanding compilers. */
8285
8286#ifdef __STDC__
8287# include <limits.h>
8288#else
8289# include <assert.h>
8290#endif
8291
8292#undef $ac_func
8293
b4e70030 8294/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
8295#ifdef __cplusplus
8296extern "C"
b4e70030 8297{
bec39cab 8298#endif
b4e70030
JB
8299/* We use char because int might match the return type of a gcc2
8300 builtin and then its argument prototype would still apply. */
bec39cab
AC
8301char $ac_func ();
8302/* The GNU C library defines this for functions which it implements
8303 to always fail with ENOSYS. Some functions are actually named
8304 something starting with __ and the normal name is an alias. */
b4e70030 8305#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 8306choke me
b4e70030
JB
8307#else
8308char (*f) () = $ac_func;
8309#endif
8310#ifdef __cplusplus
8311}
bec39cab
AC
8312#endif
8313
8314int
8315main ()
8316{
b4e70030 8317return f != $ac_func;
bec39cab
AC
8318 ;
8319 return 0;
8320}
8321_ACEOF
8322rm -f conftest.$ac_objext conftest$ac_exeext
8323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324 (eval $ac_link) 2>conftest.er1
8325 ac_status=$?
8326 grep -v '^ *+' conftest.er1 >conftest.err
8327 rm -f conftest.er1
8328 cat conftest.err >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); } &&
b4e70030
JB
8331 { ac_try='test -z "$ac_c_werror_flag"
8332 || test ! -s conftest.err'
bec39cab
AC
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 (eval $ac_try) 2>&5
8335 ac_status=$?
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; } &&
8338 { ac_try='test -s conftest$ac_exeext'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 (eval $ac_try) 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8344 eval "$as_ac_var=yes"
8345else
8346 echo "$as_me: failed program was:" >&5
8347sed 's/^/| /' conftest.$ac_ext >&5
8348
b4e70030 8349eval "$as_ac_var=no"
bec39cab
AC
8350fi
8351rm -f conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext conftest.$ac_ext
8353fi
b4e70030
JB
8354echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8355echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
8356if test `eval echo '${'$as_ac_var'}'` = yes; then
8357 cat >>confdefs.h <<_ACEOF
8358#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8359_ACEOF
8360
8361fi
8362done
8363
b4e70030
JB
8364echo "$as_me:$LINENO: checking for _etext" >&5
8365echo $ECHO_N "checking for _etext... $ECHO_C" >&6
bec39cab
AC
8366if test "${ac_cv_var__etext+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8368else
8369 cat >conftest.$ac_ext <<_ACEOF
8370/* confdefs.h. */
8371_ACEOF
8372cat confdefs.h >>conftest.$ac_ext
8373cat >>conftest.$ac_ext <<_ACEOF
8374/* end confdefs.h. */
8375#include <stdlib.h>
8376extern char _etext;
8377
8378int
8379main ()
8380{
8381free (&_etext);
8382 ;
8383 return 0;
8384}
8385_ACEOF
8386rm -f conftest.$ac_objext conftest$ac_exeext
8387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8388 (eval $ac_link) 2>conftest.er1
8389 ac_status=$?
8390 grep -v '^ *+' conftest.er1 >conftest.err
8391 rm -f conftest.er1
8392 cat conftest.err >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } &&
b4e70030
JB
8395 { ac_try='test -z "$ac_c_werror_flag"
8396 || test ! -s conftest.err'
bec39cab
AC
8397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398 (eval $ac_try) 2>&5
8399 ac_status=$?
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; } &&
8402 { ac_try='test -s conftest$ac_exeext'
8403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404 (eval $ac_try) 2>&5
8405 ac_status=$?
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; }; then
8408 ac_cv_var__etext=yes
8409else
8410 echo "$as_me: failed program was:" >&5
8411sed 's/^/| /' conftest.$ac_ext >&5
8412
b4e70030 8413ac_cv_var__etext=no
bec39cab
AC
8414fi
8415rm -f conftest.err conftest.$ac_objext \
8416 conftest$ac_exeext conftest.$ac_ext
8417fi
b4e70030
JB
8418echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8419echo "${ECHO_T}$ac_cv_var__etext" >&6
bec39cab
AC
8420if test $ac_cv_var__etext = yes; then
8421
8422cat >>confdefs.h <<\_ACEOF
8423#define HAVE__ETEXT 1
8424_ACEOF
8425
01fe12f6
JB
8426fi
8427echo "$as_me:$LINENO: checking for etext" >&5
8428echo $ECHO_N "checking for etext... $ECHO_C" >&6
8429if test "${ac_cv_var_etext+set}" = set; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8431else
8432 cat >conftest.$ac_ext <<_ACEOF
8433/* confdefs.h. */
8434_ACEOF
8435cat confdefs.h >>conftest.$ac_ext
8436cat >>conftest.$ac_ext <<_ACEOF
8437/* end confdefs.h. */
8438#include <stdlib.h>
8439extern char etext;
8440
8441int
8442main ()
8443{
8444free (&etext);
8445 ;
8446 return 0;
8447}
8448_ACEOF
8449rm -f conftest.$ac_objext conftest$ac_exeext
8450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8451 (eval $ac_link) 2>conftest.er1
8452 ac_status=$?
8453 grep -v '^ *+' conftest.er1 >conftest.err
8454 rm -f conftest.er1
8455 cat conftest.err >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } &&
8458 { ac_try='test -z "$ac_c_werror_flag"
8459 || test ! -s conftest.err'
8460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 (eval $ac_try) 2>&5
8462 ac_status=$?
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; } &&
8465 { ac_try='test -s conftest$ac_exeext'
8466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 (eval $ac_try) 2>&5
8468 ac_status=$?
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; }; then
8471 ac_cv_var_etext=yes
8472else
8473 echo "$as_me: failed program was:" >&5
8474sed 's/^/| /' conftest.$ac_ext >&5
8475
8476ac_cv_var_etext=no
8477fi
8478rm -f conftest.err conftest.$ac_objext \
8479 conftest$ac_exeext conftest.$ac_ext
8480fi
8481echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8482echo "${ECHO_T}$ac_cv_var_etext" >&6
8483if test $ac_cv_var_etext = yes; then
8484
8485cat >>confdefs.h <<\_ACEOF
8486#define HAVE_ETEXT 1
8487_ACEOF
8488
bec39cab
AC
8489fi
8490if test "$enable_profiling" = yes ; then
8491 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8492 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8493echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8494 { (exit 1); exit 1; }; }
8495 fi
8496 PROFILE_CFLAGS=-pg
8497 OLD_CFLAGS="$CFLAGS"
8498 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8499
b4e70030
JB
8500 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8501echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
bec39cab
AC
8502if test "${ac_cv_cc_supports_pg+set}" = set; then
8503 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 8504else
bec39cab
AC
8505 cat >conftest.$ac_ext <<_ACEOF
8506/* confdefs.h. */
8507_ACEOF
8508cat confdefs.h >>conftest.$ac_ext
8509cat >>conftest.$ac_ext <<_ACEOF
8510/* end confdefs.h. */
8511
8512int
8513main ()
8514{
8515int x;
8516 ;
8517 return 0;
8518}
8519_ACEOF
8520rm -f conftest.$ac_objext
8521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8522 (eval $ac_compile) 2>conftest.er1
8523 ac_status=$?
8524 grep -v '^ *+' conftest.er1 >conftest.err
8525 rm -f conftest.er1
8526 cat conftest.err >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } &&
b4e70030
JB
8529 { ac_try='test -z "$ac_c_werror_flag"
8530 || test ! -s conftest.err'
bec39cab
AC
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 (eval $ac_try) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; } &&
8536 { ac_try='test -s conftest.$ac_objext'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 (eval $ac_try) 2>&5
8539 ac_status=$?
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; }; then
8542 ac_cv_cc_supports_pg=yes
8543else
8544 echo "$as_me: failed program was:" >&5
8545sed 's/^/| /' conftest.$ac_ext >&5
8546
b4e70030 8547ac_cv_cc_supports_pg=no
bec39cab
AC
8548fi
8549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8550fi
b4e70030
JB
8551echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8552echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
bec39cab
AC
8553
8554 if test $ac_cv_cc_supports_pg = no; then
8555 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8556echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8557 { (exit 1); exit 1; }; }
8558 fi
8559
8560 CFLAGS="$OLD_CFLAGS"
8561fi
8562
c16158bc
JM
8563
8564
8565# Check whether --with-pkgversion or --without-pkgversion was given.
8566if test "${with_pkgversion+set}" = set; then
8567 withval="$with_pkgversion"
8568 case "$withval" in
8569 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8570echo "$as_me: error: package version not specified" >&2;}
8571 { (exit 1); exit 1; }; } ;;
8572 no) PKGVERSION= ;;
8573 *) PKGVERSION="($withval) " ;;
8574 esac
8575else
8576 PKGVERSION="(GDB) "
8577
8578fi;
8579
8580
8581
8582
8583# Check whether --with-bugurl or --without-bugurl was given.
8584if test "${with_bugurl+set}" = set; then
8585 withval="$with_bugurl"
8586 case "$withval" in
8587 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8588echo "$as_me: error: bug URL not specified" >&2;}
8589 { (exit 1); exit 1; }; } ;;
8590 no) BUGURL=
8591 ;;
8592 *) BUGURL="$withval"
8593 ;;
8594 esac
8595else
8596 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8597
8598fi;
8599 case ${BUGURL} in
8600 "")
8601 REPORT_BUGS_TO=
8602 REPORT_BUGS_TEXI=
8603 ;;
8604 *)
8605 REPORT_BUGS_TO="<$BUGURL>"
8606 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8607 ;;
8608 esac;
8609
8610
8611
8612
8613cat >>confdefs.h <<_ACEOF
8614#define PKGVERSION "$PKGVERSION"
8615_ACEOF
8616
8617
8618cat >>confdefs.h <<_ACEOF
8619#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8620_ACEOF
8621
8622
bec39cab
AC
8623# --------------------- #
8624# Checks for programs. #
8625# --------------------- #
8626
8627for ac_prog in gawk mawk nawk awk
8628do
8629 # Extract the first word of "$ac_prog", so it can be a program name with args.
8630set dummy $ac_prog; ac_word=$2
b4e70030
JB
8631echo "$as_me:$LINENO: checking for $ac_word" >&5
8632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8633if test "${ac_cv_prog_AWK+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8635else
8636 if test -n "$AWK"; then
8637 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8638else
8639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640for as_dir in $PATH
8641do
8642 IFS=$as_save_IFS
8643 test -z "$as_dir" && as_dir=.
8644 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8646 ac_cv_prog_AWK="$ac_prog"
8647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8648 break 2
8649 fi
8650done
8651done
8652
8653fi
8654fi
8655AWK=$ac_cv_prog_AWK
8656if test -n "$AWK"; then
b4e70030
JB
8657 echo "$as_me:$LINENO: result: $AWK" >&5
8658echo "${ECHO_T}$AWK" >&6
bec39cab 8659else
b4e70030
JB
8660 echo "$as_me:$LINENO: result: no" >&5
8661echo "${ECHO_T}no" >&6
bec39cab
AC
8662fi
8663
8664 test -n "$AWK" && break
8665done
8666
8667# Find a good install program. We prefer a C program (faster),
8668# so one script is as good as another. But avoid the broken or
8669# incompatible versions:
8670# SysV /etc/install, /usr/sbin/install
8671# SunOS /usr/etc/install
8672# IRIX /sbin/install
8673# AIX /bin/install
8674# AmigaOS /C/install, which installs bootblocks on floppy discs
8675# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8676# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8677# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8678# OS/2's system install, which has a completely different semantic
8679# ./install, which can be erroneously created by make from ./install.sh.
b4e70030
JB
8680echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8681echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
bec39cab
AC
8682if test -z "$INSTALL"; then
8683if test "${ac_cv_path_install+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8685else
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687for as_dir in $PATH
8688do
8689 IFS=$as_save_IFS
8690 test -z "$as_dir" && as_dir=.
8691 # Account for people who put trailing slashes in PATH elements.
8692case $as_dir/ in
8693 ./ | .// | /cC/* | \
8694 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8695 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8696 /usr/ucb/* ) ;;
c906108c 8697 *)
bec39cab
AC
8698 # OSF1 and SCO ODT 3.0 have their own names for install.
8699 # Don't use installbsd from OSF since it installs stuff as root
8700 # by default.
8701 for ac_prog in ginstall scoinst install; do
8702 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8703 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bec39cab
AC
8704 if test $ac_prog = install &&
8705 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8706 # AIX install. It has an incompatible calling convention.
8707 :
8708 elif test $ac_prog = install &&
8709 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8710 # program-specific install script used by HP pwplus--don't use.
8711 :
8712 else
8713 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8714 break 3
8715 fi
8716 fi
8717 done
8718 done
8719 ;;
c906108c 8720esac
bec39cab
AC
8721done
8722
8723
8724fi
8725 if test "${ac_cv_path_install+set}" = set; then
8726 INSTALL=$ac_cv_path_install
8727 else
b4e70030
JB
8728 # As a last resort, use the slow shell script. We don't cache a
8729 # path for INSTALL within a source directory, because that will
bec39cab 8730 # break other packages using the cache if that directory is
b4e70030 8731 # removed, or if the path is relative.
bec39cab
AC
8732 INSTALL=$ac_install_sh
8733 fi
8734fi
b4e70030
JB
8735echo "$as_me:$LINENO: result: $INSTALL" >&5
8736echo "${ECHO_T}$INSTALL" >&6
bec39cab
AC
8737
8738# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8739# It thinks the first close brace ends the variable substitution.
8740test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8741
8742test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8743
8744test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8745
b4e70030
JB
8746echo "$as_me:$LINENO: checking whether ln -s works" >&5
8747echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
bec39cab
AC
8748LN_S=$as_ln_s
8749if test "$LN_S" = "ln -s"; then
b4e70030
JB
8750 echo "$as_me:$LINENO: result: yes" >&5
8751echo "${ECHO_T}yes" >&6
bec39cab 8752else
b4e70030
JB
8753 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8754echo "${ECHO_T}no, using $LN_S" >&6
bec39cab
AC
8755fi
8756
8757if test -n "$ac_tool_prefix"; then
8758 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8759set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b4e70030
JB
8760echo "$as_me:$LINENO: checking for $ac_word" >&5
8761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8762if test "${ac_cv_prog_RANLIB+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8764else
8765 if test -n "$RANLIB"; then
8766 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8767else
8768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8769for as_dir in $PATH
8770do
8771 IFS=$as_save_IFS
8772 test -z "$as_dir" && as_dir=.
8773 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8775 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8777 break 2
8778 fi
8779done
8780done
8781
8782fi
8783fi
8784RANLIB=$ac_cv_prog_RANLIB
8785if test -n "$RANLIB"; then
b4e70030
JB
8786 echo "$as_me:$LINENO: result: $RANLIB" >&5
8787echo "${ECHO_T}$RANLIB" >&6
bec39cab 8788else
b4e70030
JB
8789 echo "$as_me:$LINENO: result: no" >&5
8790echo "${ECHO_T}no" >&6
bec39cab
AC
8791fi
8792
8793fi
8794if test -z "$ac_cv_prog_RANLIB"; then
8795 ac_ct_RANLIB=$RANLIB
8796 # Extract the first word of "ranlib", so it can be a program name with args.
8797set dummy ranlib; ac_word=$2
b4e70030
JB
8798echo "$as_me:$LINENO: checking for $ac_word" >&5
8799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8800if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8801 echo $ECHO_N "(cached) $ECHO_C" >&6
8802else
8803 if test -n "$ac_ct_RANLIB"; then
8804 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8805else
8806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807for as_dir in $PATH
8808do
8809 IFS=$as_save_IFS
8810 test -z "$as_dir" && as_dir=.
8811 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8813 ac_cv_prog_ac_ct_RANLIB="ranlib"
8814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8815 break 2
8816 fi
8817done
8818done
8819
b4e70030 8820 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bec39cab
AC
8821fi
8822fi
8823ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8824if test -n "$ac_ct_RANLIB"; then
b4e70030
JB
8825 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8826echo "${ECHO_T}$ac_ct_RANLIB" >&6
bec39cab 8827else
b4e70030
JB
8828 echo "$as_me:$LINENO: result: no" >&5
8829echo "${ECHO_T}no" >&6
bec39cab
AC
8830fi
8831
b4e70030 8832 RANLIB=$ac_ct_RANLIB
bec39cab
AC
8833else
8834 RANLIB="$ac_cv_prog_RANLIB"
8835fi
8836
8837for ac_prog in 'bison -y' byacc
8838do
8839 # Extract the first word of "$ac_prog", so it can be a program name with args.
8840set dummy $ac_prog; ac_word=$2
b4e70030
JB
8841echo "$as_me:$LINENO: checking for $ac_word" >&5
8842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8843if test "${ac_cv_prog_YACC+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8845else
8846 if test -n "$YACC"; then
8847 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8848else
8849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850for as_dir in $PATH
8851do
8852 IFS=$as_save_IFS
8853 test -z "$as_dir" && as_dir=.
8854 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8856 ac_cv_prog_YACC="$ac_prog"
8857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8858 break 2
8859 fi
8860done
8861done
8862
8863fi
8864fi
8865YACC=$ac_cv_prog_YACC
8866if test -n "$YACC"; then
b4e70030
JB
8867 echo "$as_me:$LINENO: result: $YACC" >&5
8868echo "${ECHO_T}$YACC" >&6
bec39cab 8869else
b4e70030
JB
8870 echo "$as_me:$LINENO: result: no" >&5
8871echo "${ECHO_T}no" >&6
bec39cab
AC
8872fi
8873
8874 test -n "$YACC" && break
8875done
8876test -n "$YACC" || YACC="yacc"
8877
8878
8879if test -n "$ac_tool_prefix"; then
8880 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8881set dummy ${ac_tool_prefix}ar; ac_word=$2
b4e70030
JB
8882echo "$as_me:$LINENO: checking for $ac_word" >&5
8883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8884if test "${ac_cv_prog_AR+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8886else
8887 if test -n "$AR"; then
8888 ac_cv_prog_AR="$AR" # Let the user override the test.
8889else
8890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8891for as_dir in $PATH
8892do
8893 IFS=$as_save_IFS
8894 test -z "$as_dir" && as_dir=.
8895 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8897 ac_cv_prog_AR="${ac_tool_prefix}ar"
8898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8899 break 2
8900 fi
8901done
8902done
8903
8904fi
8905fi
8906AR=$ac_cv_prog_AR
8907if test -n "$AR"; then
b4e70030
JB
8908 echo "$as_me:$LINENO: result: $AR" >&5
8909echo "${ECHO_T}$AR" >&6
bec39cab 8910else
b4e70030
JB
8911 echo "$as_me:$LINENO: result: no" >&5
8912echo "${ECHO_T}no" >&6
bec39cab
AC
8913fi
8914
8915fi
8916if test -z "$ac_cv_prog_AR"; then
8917 ac_ct_AR=$AR
8918 # Extract the first word of "ar", so it can be a program name with args.
8919set dummy ar; ac_word=$2
b4e70030
JB
8920echo "$as_me:$LINENO: checking for $ac_word" >&5
8921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8922if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8924else
8925 if test -n "$ac_ct_AR"; then
8926 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8927else
8928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929for as_dir in $PATH
8930do
8931 IFS=$as_save_IFS
8932 test -z "$as_dir" && as_dir=.
8933 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8935 ac_cv_prog_ac_ct_AR="ar"
8936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8937 break 2
8938 fi
8939done
8940done
8941
8942fi
8943fi
8944ac_ct_AR=$ac_cv_prog_ac_ct_AR
8945if test -n "$ac_ct_AR"; then
b4e70030
JB
8946 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8947echo "${ECHO_T}$ac_ct_AR" >&6
bec39cab 8948else
b4e70030
JB
8949 echo "$as_me:$LINENO: result: no" >&5
8950echo "${ECHO_T}no" >&6
bec39cab
AC
8951fi
8952
b4e70030 8953 AR=$ac_ct_AR
bec39cab
AC
8954else
8955 AR="$ac_cv_prog_AR"
8956fi
8957
8958if test -n "$ac_tool_prefix"; then
8959 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8960set dummy ${ac_tool_prefix}dlltool; ac_word=$2
b4e70030
JB
8961echo "$as_me:$LINENO: checking for $ac_word" >&5
8962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8963if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8965else
8966 if test -n "$DLLTOOL"; then
8967 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8968else
8969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8970for as_dir in $PATH
8971do
8972 IFS=$as_save_IFS
8973 test -z "$as_dir" && as_dir=.
8974 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8976 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8978 break 2
8979 fi
8980done
8981done
8982
8983fi
8984fi
8985DLLTOOL=$ac_cv_prog_DLLTOOL
8986if test -n "$DLLTOOL"; then
b4e70030
JB
8987 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8988echo "${ECHO_T}$DLLTOOL" >&6
bec39cab 8989else
b4e70030
JB
8990 echo "$as_me:$LINENO: result: no" >&5
8991echo "${ECHO_T}no" >&6
bec39cab
AC
8992fi
8993
8994fi
8995if test -z "$ac_cv_prog_DLLTOOL"; then
8996 ac_ct_DLLTOOL=$DLLTOOL
8997 # Extract the first word of "dlltool", so it can be a program name with args.
8998set dummy dlltool; ac_word=$2
b4e70030
JB
8999echo "$as_me:$LINENO: checking for $ac_word" >&5
9000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9001if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9003else
9004 if test -n "$ac_ct_DLLTOOL"; then
9005 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9006else
9007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008for as_dir in $PATH
9009do
9010 IFS=$as_save_IFS
9011 test -z "$as_dir" && as_dir=.
9012 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9014 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9016 break 2
9017 fi
9018done
9019done
9020
9021fi
9022fi
9023ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9024if test -n "$ac_ct_DLLTOOL"; then
b4e70030
JB
9025 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
9026echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
bec39cab 9027else
b4e70030
JB
9028 echo "$as_me:$LINENO: result: no" >&5
9029echo "${ECHO_T}no" >&6
bec39cab
AC
9030fi
9031
b4e70030 9032 DLLTOOL=$ac_ct_DLLTOOL
bec39cab
AC
9033else
9034 DLLTOOL="$ac_cv_prog_DLLTOOL"
9035fi
9036
9037if test -n "$ac_tool_prefix"; then
9038 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9039set dummy ${ac_tool_prefix}windres; ac_word=$2
b4e70030
JB
9040echo "$as_me:$LINENO: checking for $ac_word" >&5
9041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9042if test "${ac_cv_prog_WINDRES+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9044else
9045 if test -n "$WINDRES"; then
9046 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9047else
9048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049for as_dir in $PATH
9050do
9051 IFS=$as_save_IFS
9052 test -z "$as_dir" && as_dir=.
9053 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9055 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9057 break 2
9058 fi
9059done
9060done
9061
9062fi
9063fi
9064WINDRES=$ac_cv_prog_WINDRES
9065if test -n "$WINDRES"; then
b4e70030
JB
9066 echo "$as_me:$LINENO: result: $WINDRES" >&5
9067echo "${ECHO_T}$WINDRES" >&6
bec39cab 9068else
b4e70030
JB
9069 echo "$as_me:$LINENO: result: no" >&5
9070echo "${ECHO_T}no" >&6
bec39cab
AC
9071fi
9072
9073fi
9074if test -z "$ac_cv_prog_WINDRES"; then
9075 ac_ct_WINDRES=$WINDRES
9076 # Extract the first word of "windres", so it can be a program name with args.
9077set dummy windres; ac_word=$2
b4e70030
JB
9078echo "$as_me:$LINENO: checking for $ac_word" >&5
9079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9080if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9082else
9083 if test -n "$ac_ct_WINDRES"; then
9084 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9085else
9086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087for as_dir in $PATH
9088do
9089 IFS=$as_save_IFS
9090 test -z "$as_dir" && as_dir=.
9091 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9093 ac_cv_prog_ac_ct_WINDRES="windres"
9094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9095 break 2
9096 fi
9097done
9098done
9099
9100fi
9101fi
9102ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9103if test -n "$ac_ct_WINDRES"; then
b4e70030
JB
9104 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9105echo "${ECHO_T}$ac_ct_WINDRES" >&6
bec39cab 9106else
b4e70030
JB
9107 echo "$as_me:$LINENO: result: no" >&5
9108echo "${ECHO_T}no" >&6
c906108c 9109fi
bec39cab 9110
b4e70030 9111 WINDRES=$ac_ct_WINDRES
c906108c 9112else
bec39cab 9113 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
9114fi
9115
bec39cab
AC
9116
9117# Needed for GNU/Hurd.
9118if test -n "$ac_tool_prefix"; then
9119 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9120set dummy ${ac_tool_prefix}mig; ac_word=$2
b4e70030
JB
9121echo "$as_me:$LINENO: checking for $ac_word" >&5
9122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9123if test "${ac_cv_prog_MIG+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 9125else
bec39cab
AC
9126 if test -n "$MIG"; then
9127 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9128else
9129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130for as_dir in $PATH
9131do
9132 IFS=$as_save_IFS
9133 test -z "$as_dir" && as_dir=.
9134 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9136 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9138 break 2
9139 fi
9140done
9141done
9142
c906108c 9143fi
bec39cab
AC
9144fi
9145MIG=$ac_cv_prog_MIG
9146if test -n "$MIG"; then
b4e70030
JB
9147 echo "$as_me:$LINENO: result: $MIG" >&5
9148echo "${ECHO_T}$MIG" >&6
c906108c 9149else
b4e70030
JB
9150 echo "$as_me:$LINENO: result: no" >&5
9151echo "${ECHO_T}no" >&6
c906108c
SS
9152fi
9153
bec39cab
AC
9154fi
9155if test -z "$ac_cv_prog_MIG"; then
9156 ac_ct_MIG=$MIG
9157 # Extract the first word of "mig", so it can be a program name with args.
9158set dummy mig; ac_word=$2
b4e70030
JB
9159echo "$as_me:$LINENO: checking for $ac_word" >&5
9160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9161if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9163else
9164 if test -n "$ac_ct_MIG"; then
9165 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9166else
9167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9168for as_dir in $PATH
9169do
9170 IFS=$as_save_IFS
9171 test -z "$as_dir" && as_dir=.
9172 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9174 ac_cv_prog_ac_ct_MIG="mig"
9175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9176 break 2
9177 fi
9178done
9179done
c906108c 9180
bec39cab
AC
9181fi
9182fi
9183ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9184if test -n "$ac_ct_MIG"; then
b4e70030
JB
9185 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9186echo "${ECHO_T}$ac_ct_MIG" >&6
bec39cab 9187else
b4e70030
JB
9188 echo "$as_me:$LINENO: result: no" >&5
9189echo "${ECHO_T}no" >&6
bec39cab 9190fi
c906108c 9191
b4e70030 9192 MIG=$ac_ct_MIG
bec39cab
AC
9193else
9194 MIG="$ac_cv_prog_MIG"
9195fi
c906108c 9196
c906108c 9197
bec39cab
AC
9198# ---------------------- #
9199# Checks for libraries. #
9200# ---------------------- #
c906108c 9201
bec39cab 9202# We might need to link with -lm; most simulators need it.
c906108c 9203
b4e70030
JB
9204echo "$as_me:$LINENO: checking for main in -lm" >&5
9205echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
bec39cab
AC
9206if test "${ac_cv_lib_m_main+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9208else
9209 ac_check_lib_save_LIBS=$LIBS
9210LIBS="-lm $LIBS"
9211cat >conftest.$ac_ext <<_ACEOF
9212/* confdefs.h. */
9213_ACEOF
9214cat confdefs.h >>conftest.$ac_ext
9215cat >>conftest.$ac_ext <<_ACEOF
9216/* end confdefs.h. */
c906108c 9217
c906108c 9218
bec39cab
AC
9219int
9220main ()
9221{
b4e70030 9222main ();
bec39cab
AC
9223 ;
9224 return 0;
9225}
9226_ACEOF
9227rm -f conftest.$ac_objext conftest$ac_exeext
9228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9229 (eval $ac_link) 2>conftest.er1
9230 ac_status=$?
9231 grep -v '^ *+' conftest.er1 >conftest.err
9232 rm -f conftest.er1
9233 cat conftest.err >&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } &&
b4e70030
JB
9236 { ac_try='test -z "$ac_c_werror_flag"
9237 || test ! -s conftest.err'
bec39cab
AC
9238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239 (eval $ac_try) 2>&5
9240 ac_status=$?
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; } &&
9243 { ac_try='test -s conftest$ac_exeext'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 (eval $ac_try) 2>&5
9246 ac_status=$?
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; }; then
9249 ac_cv_lib_m_main=yes
9250else
9251 echo "$as_me: failed program was:" >&5
9252sed 's/^/| /' conftest.$ac_ext >&5
9253
b4e70030 9254ac_cv_lib_m_main=no
bec39cab
AC
9255fi
9256rm -f conftest.err conftest.$ac_objext \
9257 conftest$ac_exeext conftest.$ac_ext
9258LIBS=$ac_check_lib_save_LIBS
9259fi
b4e70030
JB
9260echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9261echo "${ECHO_T}$ac_cv_lib_m_main" >&6
bec39cab
AC
9262if test $ac_cv_lib_m_main = yes; then
9263 cat >>confdefs.h <<_ACEOF
9264#define HAVE_LIBM 1
9265_ACEOF
9266
9267 LIBS="-lm $LIBS"
c906108c 9268
c906108c 9269fi
bec39cab
AC
9270
9271
9272# We need to link with -lw to get `wctype' on Solaris before Solaris
9273# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9274# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9275# is known to have this problem). Therefore we avoid libw if we can.
b4e70030
JB
9276echo "$as_me:$LINENO: checking for wctype" >&5
9277echo $ECHO_N "checking for wctype... $ECHO_C" >&6
bec39cab
AC
9278if test "${ac_cv_func_wctype+set}" = set; then
9279 echo $ECHO_N "(cached) $ECHO_C" >&6
9280else
9281 cat >conftest.$ac_ext <<_ACEOF
9282/* confdefs.h. */
9283_ACEOF
9284cat confdefs.h >>conftest.$ac_ext
9285cat >>conftest.$ac_ext <<_ACEOF
9286/* end confdefs.h. */
9287/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9289#define wctype innocuous_wctype
9290
9291/* System header to define __stub macros and hopefully few prototypes,
9292 which can conflict with char wctype (); below.
9293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9294 <limits.h> exists even on freestanding compilers. */
9295
9296#ifdef __STDC__
9297# include <limits.h>
9298#else
9299# include <assert.h>
9300#endif
9301
9302#undef wctype
9303
b4e70030 9304/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9305#ifdef __cplusplus
9306extern "C"
b4e70030 9307{
bec39cab 9308#endif
b4e70030
JB
9309/* We use char because int might match the return type of a gcc2
9310 builtin and then its argument prototype would still apply. */
bec39cab
AC
9311char wctype ();
9312/* The GNU C library defines this for functions which it implements
9313 to always fail with ENOSYS. Some functions are actually named
9314 something starting with __ and the normal name is an alias. */
b4e70030 9315#if defined (__stub_wctype) || defined (__stub___wctype)
bec39cab 9316choke me
b4e70030
JB
9317#else
9318char (*f) () = wctype;
9319#endif
9320#ifdef __cplusplus
9321}
bec39cab
AC
9322#endif
9323
9324int
9325main ()
9326{
b4e70030 9327return f != wctype;
bec39cab
AC
9328 ;
9329 return 0;
9330}
9331_ACEOF
9332rm -f conftest.$ac_objext conftest$ac_exeext
9333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9334 (eval $ac_link) 2>conftest.er1
9335 ac_status=$?
9336 grep -v '^ *+' conftest.er1 >conftest.err
9337 rm -f conftest.er1
9338 cat conftest.err >&5
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); } &&
b4e70030
JB
9341 { ac_try='test -z "$ac_c_werror_flag"
9342 || test ! -s conftest.err'
bec39cab
AC
9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 (eval $ac_try) 2>&5
9345 ac_status=$?
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; } &&
9348 { ac_try='test -s conftest$ac_exeext'
9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350 (eval $ac_try) 2>&5
9351 ac_status=$?
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; }; then
9354 ac_cv_func_wctype=yes
9355else
9356 echo "$as_me: failed program was:" >&5
9357sed 's/^/| /' conftest.$ac_ext >&5
9358
b4e70030 9359ac_cv_func_wctype=no
bec39cab
AC
9360fi
9361rm -f conftest.err conftest.$ac_objext \
9362 conftest$ac_exeext conftest.$ac_ext
9363fi
b4e70030
JB
9364echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9365echo "${ECHO_T}$ac_cv_func_wctype" >&6
bec39cab
AC
9366if test $ac_cv_func_wctype = yes; then
9367 :
c906108c 9368else
c906108c 9369
b4e70030
JB
9370echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9371echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
bec39cab
AC
9372if test "${ac_cv_lib_w_wctype+set}" = set; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9374else
9375 ac_check_lib_save_LIBS=$LIBS
9376LIBS="-lw $LIBS"
9377cat >conftest.$ac_ext <<_ACEOF
9378/* confdefs.h. */
9379_ACEOF
9380cat confdefs.h >>conftest.$ac_ext
9381cat >>conftest.$ac_ext <<_ACEOF
9382/* end confdefs.h. */
c906108c 9383
b4e70030 9384/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9385#ifdef __cplusplus
9386extern "C"
9387#endif
b4e70030
JB
9388/* We use char because int might match the return type of a gcc2
9389 builtin and then its argument prototype would still apply. */
bec39cab
AC
9390char wctype ();
9391int
9392main ()
9393{
b4e70030 9394wctype ();
bec39cab
AC
9395 ;
9396 return 0;
9397}
9398_ACEOF
9399rm -f conftest.$ac_objext conftest$ac_exeext
9400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9401 (eval $ac_link) 2>conftest.er1
9402 ac_status=$?
9403 grep -v '^ *+' conftest.er1 >conftest.err
9404 rm -f conftest.er1
9405 cat conftest.err >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } &&
b4e70030
JB
9408 { ac_try='test -z "$ac_c_werror_flag"
9409 || test ! -s conftest.err'
bec39cab
AC
9410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411 (eval $ac_try) 2>&5
9412 ac_status=$?
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); }; } &&
9415 { ac_try='test -s conftest$ac_exeext'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417 (eval $ac_try) 2>&5
9418 ac_status=$?
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; }; then
9421 ac_cv_lib_w_wctype=yes
9422else
9423 echo "$as_me: failed program was:" >&5
9424sed 's/^/| /' conftest.$ac_ext >&5
9425
b4e70030 9426ac_cv_lib_w_wctype=no
bec39cab
AC
9427fi
9428rm -f conftest.err conftest.$ac_objext \
9429 conftest$ac_exeext conftest.$ac_ext
9430LIBS=$ac_check_lib_save_LIBS
9431fi
b4e70030
JB
9432echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9433echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
bec39cab
AC
9434if test $ac_cv_lib_w_wctype = yes; then
9435 cat >>confdefs.h <<_ACEOF
9436#define HAVE_LIBW 1
9437_ACEOF
c906108c 9438
bec39cab 9439 LIBS="-lw $LIBS"
c906108c 9440
bec39cab 9441fi
c906108c 9442
bec39cab 9443fi
c906108c 9444
ddc9cd0f 9445
bec39cab 9446# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
b4e70030
JB
9447echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9448echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
bec39cab
AC
9449if test "${ac_cv_search_gethostbyname+set}" = set; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9451else
9452 ac_func_search_save_LIBS=$LIBS
b4e70030 9453ac_cv_search_gethostbyname=no
bec39cab
AC
9454cat >conftest.$ac_ext <<_ACEOF
9455/* confdefs.h. */
9456_ACEOF
9457cat confdefs.h >>conftest.$ac_ext
9458cat >>conftest.$ac_ext <<_ACEOF
9459/* end confdefs.h. */
ddc9cd0f 9460
b4e70030 9461/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9462#ifdef __cplusplus
9463extern "C"
9464#endif
b4e70030
JB
9465/* We use char because int might match the return type of a gcc2
9466 builtin and then its argument prototype would still apply. */
bec39cab
AC
9467char gethostbyname ();
9468int
9469main ()
9470{
b4e70030 9471gethostbyname ();
bec39cab
AC
9472 ;
9473 return 0;
9474}
9475_ACEOF
b4e70030 9476rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
9477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9478 (eval $ac_link) 2>conftest.er1
9479 ac_status=$?
9480 grep -v '^ *+' conftest.er1 >conftest.err
9481 rm -f conftest.er1
9482 cat conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } &&
b4e70030
JB
9485 { ac_try='test -z "$ac_c_werror_flag"
9486 || test ! -s conftest.err'
bec39cab
AC
9487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488 (eval $ac_try) 2>&5
9489 ac_status=$?
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); }; } &&
9492 { ac_try='test -s conftest$ac_exeext'
9493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494 (eval $ac_try) 2>&5
9495 ac_status=$?
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; }; then
b4e70030 9498 ac_cv_search_gethostbyname="none required"
bec39cab
AC
9499else
9500 echo "$as_me: failed program was:" >&5
9501sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 9502
bec39cab
AC
9503fi
9504rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
9505 conftest$ac_exeext conftest.$ac_ext
9506if test "$ac_cv_search_gethostbyname" = no; then
9507 for ac_lib in nsl; do
9508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9509 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9510/* confdefs.h. */
9511_ACEOF
9512cat confdefs.h >>conftest.$ac_ext
9513cat >>conftest.$ac_ext <<_ACEOF
9514/* end confdefs.h. */
ddc9cd0f 9515
b4e70030 9516/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9517#ifdef __cplusplus
9518extern "C"
9519#endif
b4e70030
JB
9520/* We use char because int might match the return type of a gcc2
9521 builtin and then its argument prototype would still apply. */
9522char gethostbyname ();
bec39cab
AC
9523int
9524main ()
9525{
b4e70030 9526gethostbyname ();
bec39cab
AC
9527 ;
9528 return 0;
9529}
9530_ACEOF
b4e70030 9531rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
9532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9533 (eval $ac_link) 2>conftest.er1
9534 ac_status=$?
9535 grep -v '^ *+' conftest.er1 >conftest.err
9536 rm -f conftest.er1
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } &&
b4e70030
JB
9540 { ac_try='test -z "$ac_c_werror_flag"
9541 || test ! -s conftest.err'
bec39cab
AC
9542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543 (eval $ac_try) 2>&5
9544 ac_status=$?
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }; } &&
9547 { ac_try='test -s conftest$ac_exeext'
9548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549 (eval $ac_try) 2>&5
9550 ac_status=$?
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; }; then
b4e70030
JB
9553 ac_cv_search_gethostbyname="-l$ac_lib"
9554break
bec39cab
AC
9555else
9556 echo "$as_me: failed program was:" >&5
9557sed 's/^/| /' conftest.$ac_ext >&5
9558
9559fi
9560rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
9561 conftest$ac_exeext conftest.$ac_ext
9562 done
bec39cab
AC
9563fi
9564LIBS=$ac_func_search_save_LIBS
9565fi
b4e70030
JB
9566echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9567echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9568if test "$ac_cv_search_gethostbyname" != no; then
9569 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
96baa820 9570
bec39cab 9571fi
96baa820 9572
c906108c 9573
b4e70030
JB
9574# Some systems (e.g. Solaris) have `socketpair' in libsocket.
9575echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9576echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9577if test "${ac_cv_search_socketpair+set}" = set; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9579else
9580 ac_func_search_save_LIBS=$LIBS
9581ac_cv_search_socketpair=no
9582cat >conftest.$ac_ext <<_ACEOF
9583/* confdefs.h. */
9584_ACEOF
9585cat confdefs.h >>conftest.$ac_ext
9586cat >>conftest.$ac_ext <<_ACEOF
9587/* end confdefs.h. */
9588
9589/* Override any gcc2 internal prototype to avoid an error. */
9590#ifdef __cplusplus
9591extern "C"
9592#endif
9593/* We use char because int might match the return type of a gcc2
9594 builtin and then its argument prototype would still apply. */
9595char socketpair ();
9596int
9597main ()
9598{
9599socketpair ();
9600 ;
9601 return 0;
9602}
9603_ACEOF
9604rm -f conftest.$ac_objext conftest$ac_exeext
9605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9606 (eval $ac_link) 2>conftest.er1
9607 ac_status=$?
9608 grep -v '^ *+' conftest.er1 >conftest.err
9609 rm -f conftest.er1
9610 cat conftest.err >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } &&
9613 { ac_try='test -z "$ac_c_werror_flag"
9614 || test ! -s conftest.err'
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 (eval $ac_try) 2>&5
9617 ac_status=$?
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; } &&
9620 { ac_try='test -s conftest$ac_exeext'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 (eval $ac_try) 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9626 ac_cv_search_socketpair="none required"
9627else
9628 echo "$as_me: failed program was:" >&5
9629sed 's/^/| /' conftest.$ac_ext >&5
9630
9631fi
9632rm -f conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9634if test "$ac_cv_search_socketpair" = no; then
9635 for ac_lib in socket; do
9636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9637 cat >conftest.$ac_ext <<_ACEOF
9638/* confdefs.h. */
9639_ACEOF
9640cat confdefs.h >>conftest.$ac_ext
9641cat >>conftest.$ac_ext <<_ACEOF
9642/* end confdefs.h. */
9643
9644/* Override any gcc2 internal prototype to avoid an error. */
9645#ifdef __cplusplus
9646extern "C"
9647#endif
9648/* We use char because int might match the return type of a gcc2
9649 builtin and then its argument prototype would still apply. */
9650char socketpair ();
9651int
9652main ()
9653{
9654socketpair ();
9655 ;
9656 return 0;
9657}
9658_ACEOF
9659rm -f conftest.$ac_objext conftest$ac_exeext
9660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9661 (eval $ac_link) 2>conftest.er1
9662 ac_status=$?
9663 grep -v '^ *+' conftest.er1 >conftest.err
9664 rm -f conftest.er1
9665 cat conftest.err >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } &&
9668 { ac_try='test -z "$ac_c_werror_flag"
9669 || test ! -s conftest.err'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671 (eval $ac_try) 2>&5
9672 ac_status=$?
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; } &&
9675 { ac_try='test -s conftest$ac_exeext'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677 (eval $ac_try) 2>&5
9678 ac_status=$?
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; }; then
9681 ac_cv_search_socketpair="-l$ac_lib"
9682break
9683else
9684 echo "$as_me: failed program was:" >&5
9685sed 's/^/| /' conftest.$ac_ext >&5
9686
9687fi
9688rm -f conftest.err conftest.$ac_objext \
9689 conftest$ac_exeext conftest.$ac_ext
9690 done
9691fi
9692LIBS=$ac_func_search_save_LIBS
9693fi
9694echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9695echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9696if test "$ac_cv_search_socketpair" != no; then
9697 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9698
9699fi
9700
9701
233a11ab
CS
9702# Link in zlib if we can. This allows us to read compressed debug sections.
9703echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9704echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9705if test "${ac_cv_search_zlibVersion+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9707else
9708 ac_func_search_save_LIBS=$LIBS
9709ac_cv_search_zlibVersion=no
9710cat >conftest.$ac_ext <<_ACEOF
9711/* confdefs.h. */
9712_ACEOF
9713cat confdefs.h >>conftest.$ac_ext
9714cat >>conftest.$ac_ext <<_ACEOF
9715/* end confdefs.h. */
9716
9717/* Override any gcc2 internal prototype to avoid an error. */
9718#ifdef __cplusplus
9719extern "C"
9720#endif
9721/* We use char because int might match the return type of a gcc2
9722 builtin and then its argument prototype would still apply. */
9723char zlibVersion ();
9724int
9725main ()
9726{
9727zlibVersion ();
9728 ;
9729 return 0;
9730}
9731_ACEOF
9732rm -f conftest.$ac_objext conftest$ac_exeext
9733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9734 (eval $ac_link) 2>conftest.er1
9735 ac_status=$?
9736 grep -v '^ *+' conftest.er1 >conftest.err
9737 rm -f conftest.er1
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -z "$ac_c_werror_flag"
9742 || test ! -s conftest.err'
9743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744 (eval $ac_try) 2>&5
9745 ac_status=$?
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; } &&
9748 { ac_try='test -s conftest$ac_exeext'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 (eval $ac_try) 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
9754 ac_cv_search_zlibVersion="none required"
9755else
9756 echo "$as_me: failed program was:" >&5
9757sed 's/^/| /' conftest.$ac_ext >&5
9758
9759fi
9760rm -f conftest.err conftest.$ac_objext \
9761 conftest$ac_exeext conftest.$ac_ext
9762if test "$ac_cv_search_zlibVersion" = no; then
9763 for ac_lib in z; do
9764 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9765 cat >conftest.$ac_ext <<_ACEOF
9766/* confdefs.h. */
9767_ACEOF
9768cat confdefs.h >>conftest.$ac_ext
9769cat >>conftest.$ac_ext <<_ACEOF
9770/* end confdefs.h. */
9771
9772/* Override any gcc2 internal prototype to avoid an error. */
9773#ifdef __cplusplus
9774extern "C"
9775#endif
9776/* We use char because int might match the return type of a gcc2
9777 builtin and then its argument prototype would still apply. */
9778char zlibVersion ();
9779int
9780main ()
9781{
9782zlibVersion ();
9783 ;
9784 return 0;
9785}
9786_ACEOF
9787rm -f conftest.$ac_objext conftest$ac_exeext
9788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789 (eval $ac_link) 2>conftest.er1
9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try='test -z "$ac_c_werror_flag"
9797 || test ! -s conftest.err'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 (eval $ac_try) 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try='test -s conftest$ac_exeext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 (eval $ac_try) 2>&5
9806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_cv_search_zlibVersion="-l$ac_lib"
9810break
9811else
9812 echo "$as_me: failed program was:" >&5
9813sed 's/^/| /' conftest.$ac_ext >&5
9814
9815fi
9816rm -f conftest.err conftest.$ac_objext \
9817 conftest$ac_exeext conftest.$ac_ext
9818 done
9819fi
9820LIBS=$ac_func_search_save_LIBS
9821fi
9822echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9823echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9824if test "$ac_cv_search_zlibVersion" != no; then
9825 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9826
9827for ac_header in zlib.h
9828do
9829as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9830if eval "test \"\${$as_ac_Header+set}\" = set"; then
9831 echo "$as_me:$LINENO: checking for $ac_header" >&5
9832echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9833if eval "test \"\${$as_ac_Header+set}\" = set"; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9835fi
9836echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9837echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9838else
9839 # Is the header compilable?
9840echo "$as_me:$LINENO: checking $ac_header usability" >&5
9841echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9842cat >conftest.$ac_ext <<_ACEOF
9843/* confdefs.h. */
9844_ACEOF
9845cat confdefs.h >>conftest.$ac_ext
9846cat >>conftest.$ac_ext <<_ACEOF
9847/* end confdefs.h. */
9848$ac_includes_default
9849#include <$ac_header>
9850_ACEOF
9851rm -f conftest.$ac_objext
9852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9853 (eval $ac_compile) 2>conftest.er1
9854 ac_status=$?
9855 grep -v '^ *+' conftest.er1 >conftest.err
9856 rm -f conftest.er1
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -z "$ac_c_werror_flag"
9861 || test ! -s conftest.err'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 (eval $ac_try) 2>&5
9864 ac_status=$?
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; } &&
9867 { ac_try='test -s conftest.$ac_objext'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 ac_header_compiler=yes
9874else
9875 echo "$as_me: failed program was:" >&5
9876sed 's/^/| /' conftest.$ac_ext >&5
9877
9878ac_header_compiler=no
9879fi
9880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9881echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9882echo "${ECHO_T}$ac_header_compiler" >&6
9883
9884# Is the header present?
9885echo "$as_me:$LINENO: checking $ac_header presence" >&5
9886echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9887cat >conftest.$ac_ext <<_ACEOF
9888/* confdefs.h. */
9889_ACEOF
9890cat confdefs.h >>conftest.$ac_ext
9891cat >>conftest.$ac_ext <<_ACEOF
9892/* end confdefs.h. */
9893#include <$ac_header>
9894_ACEOF
9895if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9897 ac_status=$?
9898 grep -v '^ *+' conftest.er1 >conftest.err
9899 rm -f conftest.er1
9900 cat conftest.err >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } >/dev/null; then
9903 if test -s conftest.err; then
9904 ac_cpp_err=$ac_c_preproc_warn_flag
9905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9906 else
9907 ac_cpp_err=
9908 fi
9909else
9910 ac_cpp_err=yes
9911fi
9912if test -z "$ac_cpp_err"; then
9913 ac_header_preproc=yes
9914else
9915 echo "$as_me: failed program was:" >&5
9916sed 's/^/| /' conftest.$ac_ext >&5
9917
9918 ac_header_preproc=no
9919fi
9920rm -f conftest.err conftest.$ac_ext
9921echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9922echo "${ECHO_T}$ac_header_preproc" >&6
9923
9924# So? What about this header?
9925case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9926 yes:no: )
9927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9928echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9930echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9931 ac_header_preproc=yes
9932 ;;
9933 no:yes:* )
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9935echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9937echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9938 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9939echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9940 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9941echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9943echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9944 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9945echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9946 (
9947 cat <<\_ASBOX
9948## ------------------------------------------ ##
9949## Report this to the AC_PACKAGE_NAME lists. ##
9950## ------------------------------------------ ##
9951_ASBOX
9952 ) |
9953 sed "s/^/$as_me: WARNING: /" >&2
9954 ;;
9955esac
9956echo "$as_me:$LINENO: checking for $ac_header" >&5
9957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9958if eval "test \"\${$as_ac_Header+set}\" = set"; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9960else
9961 eval "$as_ac_Header=\$ac_header_preproc"
9962fi
9963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9964echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9965
9966fi
9967if test `eval echo '${'$as_ac_Header'}'` = yes; then
9968 cat >>confdefs.h <<_ACEOF
9969#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9970_ACEOF
9971
9972fi
9973
9974done
9975
9976fi
9977
9978
b4e70030 9979# For the TUI, we need enhanced curses functionality.
bec39cab
AC
9980#
9981# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9982# curses library because the latter might not provide all the
9983# functionality we need. However, this leads to problems on systems
9984# where the linker searches /usr/local/lib, but the compiler doesn't
9985# search /usr/local/include, if ncurses is installed in /usr/local. A
9986# default installation of ncurses on alpha*-dec-osf* will lead to such
9987# a situation.
b4e70030
JB
9988echo "$as_me:$LINENO: checking for library containing waddstr" >&5
9989echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
bec39cab
AC
9990if test "${ac_cv_search_waddstr+set}" = set; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9992else
9993 ac_func_search_save_LIBS=$LIBS
b4e70030 9994ac_cv_search_waddstr=no
bec39cab
AC
9995cat >conftest.$ac_ext <<_ACEOF
9996/* confdefs.h. */
9997_ACEOF
9998cat confdefs.h >>conftest.$ac_ext
9999cat >>conftest.$ac_ext <<_ACEOF
10000/* end confdefs.h. */
c906108c 10001
b4e70030 10002/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
10003#ifdef __cplusplus
10004extern "C"
10005#endif
b4e70030
JB
10006/* We use char because int might match the return type of a gcc2
10007 builtin and then its argument prototype would still apply. */
bec39cab
AC
10008char waddstr ();
10009int
10010main ()
10011{
b4e70030 10012waddstr ();
bec39cab
AC
10013 ;
10014 return 0;
10015}
10016_ACEOF
b4e70030 10017rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
10018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10019 (eval $ac_link) 2>conftest.er1
10020 ac_status=$?
10021 grep -v '^ *+' conftest.er1 >conftest.err
10022 rm -f conftest.er1
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } &&
b4e70030
JB
10026 { ac_try='test -z "$ac_c_werror_flag"
10027 || test ! -s conftest.err'
bec39cab
AC
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10030 ac_status=$?
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; } &&
10033 { ac_try='test -s conftest$ac_exeext'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10036 ac_status=$?
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; }; then
b4e70030 10039 ac_cv_search_waddstr="none required"
bec39cab
AC
10040else
10041 echo "$as_me: failed program was:" >&5
10042sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
10043
10044fi
bec39cab 10045rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
10046 conftest$ac_exeext conftest.$ac_ext
10047if test "$ac_cv_search_waddstr" = no; then
10048 for ac_lib in ncurses cursesX curses; do
10049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10050 cat >conftest.$ac_ext <<_ACEOF
10051/* confdefs.h. */
10052_ACEOF
10053cat confdefs.h >>conftest.$ac_ext
10054cat >>conftest.$ac_ext <<_ACEOF
10055/* end confdefs.h. */
10056
10057/* Override any gcc2 internal prototype to avoid an error. */
10058#ifdef __cplusplus
10059extern "C"
10060#endif
10061/* We use char because int might match the return type of a gcc2
10062 builtin and then its argument prototype would still apply. */
10063char waddstr ();
10064int
10065main ()
10066{
10067waddstr ();
10068 ;
10069 return 0;
10070}
10071_ACEOF
10072rm -f conftest.$ac_objext conftest$ac_exeext
10073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10074 (eval $ac_link) 2>conftest.er1
10075 ac_status=$?
10076 grep -v '^ *+' conftest.er1 >conftest.err
10077 rm -f conftest.er1
10078 cat conftest.err >&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } &&
10081 { ac_try='test -z "$ac_c_werror_flag"
10082 || test ! -s conftest.err'
10083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10084 (eval $ac_try) 2>&5
10085 ac_status=$?
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; } &&
10088 { ac_try='test -s conftest$ac_exeext'
10089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10090 (eval $ac_try) 2>&5
10091 ac_status=$?
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); }; }; then
10094 ac_cv_search_waddstr="-l$ac_lib"
10095break
4e8d927d 10096else
b4e70030
JB
10097 echo "$as_me: failed program was:" >&5
10098sed 's/^/| /' conftest.$ac_ext >&5
10099
10100fi
10101rm -f conftest.err conftest.$ac_objext \
10102 conftest$ac_exeext conftest.$ac_ext
10103 done
1ba607ad 10104fi
bec39cab
AC
10105LIBS=$ac_func_search_save_LIBS
10106fi
b4e70030
JB
10107echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10108echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10109if test "$ac_cv_search_waddstr" != no; then
10110 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 10111
8bb2c122 10112fi
8bb2c122 10113
8bb2c122 10114
d542061a
UW
10115# On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
10116echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
10117echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
10118if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10120else
10121 ac_func_search_save_LIBS=$LIBS
10122ac_cv_search_dlgetmodinfo=no
10123cat >conftest.$ac_ext <<_ACEOF
10124/* confdefs.h. */
10125_ACEOF
10126cat confdefs.h >>conftest.$ac_ext
10127cat >>conftest.$ac_ext <<_ACEOF
10128/* end confdefs.h. */
10129
10130/* Override any gcc2 internal prototype to avoid an error. */
10131#ifdef __cplusplus
10132extern "C"
10133#endif
10134/* We use char because int might match the return type of a gcc2
10135 builtin and then its argument prototype would still apply. */
10136char dlgetmodinfo ();
10137int
10138main ()
10139{
10140dlgetmodinfo ();
10141 ;
10142 return 0;
10143}
10144_ACEOF
10145rm -f conftest.$ac_objext conftest$ac_exeext
10146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10147 (eval $ac_link) 2>conftest.er1
10148 ac_status=$?
10149 grep -v '^ *+' conftest.er1 >conftest.err
10150 rm -f conftest.er1
10151 cat conftest.err >&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } &&
10154 { ac_try='test -z "$ac_c_werror_flag"
10155 || test ! -s conftest.err'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; } &&
10161 { ac_try='test -s conftest$ac_exeext'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 ac_cv_search_dlgetmodinfo="none required"
10168else
10169 echo "$as_me: failed program was:" >&5
10170sed 's/^/| /' conftest.$ac_ext >&5
10171
10172fi
10173rm -f conftest.err conftest.$ac_objext \
10174 conftest$ac_exeext conftest.$ac_ext
10175if test "$ac_cv_search_dlgetmodinfo" = no; then
10176 for ac_lib in dl xpdl; do
10177 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10178 cat >conftest.$ac_ext <<_ACEOF
10179/* confdefs.h. */
10180_ACEOF
10181cat confdefs.h >>conftest.$ac_ext
10182cat >>conftest.$ac_ext <<_ACEOF
10183/* end confdefs.h. */
10184
10185/* Override any gcc2 internal prototype to avoid an error. */
10186#ifdef __cplusplus
10187extern "C"
10188#endif
10189/* We use char because int might match the return type of a gcc2
10190 builtin and then its argument prototype would still apply. */
10191char dlgetmodinfo ();
10192int
10193main ()
10194{
10195dlgetmodinfo ();
10196 ;
10197 return 0;
10198}
10199_ACEOF
10200rm -f conftest.$ac_objext conftest$ac_exeext
10201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10202 (eval $ac_link) 2>conftest.er1
10203 ac_status=$?
10204 grep -v '^ *+' conftest.er1 >conftest.err
10205 rm -f conftest.er1
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try='test -z "$ac_c_werror_flag"
10210 || test ! -s conftest.err'
10211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212 (eval $ac_try) 2>&5
10213 ac_status=$?
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; } &&
10216 { ac_try='test -s conftest$ac_exeext'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10222 ac_cv_search_dlgetmodinfo="-l$ac_lib"
10223break
10224else
10225 echo "$as_me: failed program was:" >&5
10226sed 's/^/| /' conftest.$ac_ext >&5
10227
10228fi
10229rm -f conftest.err conftest.$ac_objext \
10230 conftest$ac_exeext conftest.$ac_ext
10231 done
10232fi
10233LIBS=$ac_func_search_save_LIBS
10234fi
10235echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10236echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10237if test "$ac_cv_search_dlgetmodinfo" != no; then
10238 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
10239
10240fi
10241
10242
bec39cab
AC
10243# Since GDB uses Readline, we need termcap functionality. In many
10244# cases this will be provided by the curses library, but some systems
10245# have a seperate termcap library, or no curses library at all.
8bb2c122 10246
bec39cab
AC
10247case $host_os in
10248 cygwin*)
10249 if test -d $srcdir/libtermcap; then
10250 LIBS="../libtermcap/libtermcap.a $LIBS"
10251 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10252 fi ;;
10253 go32* | *djgpp*)
10254 ac_cv_search_tgetent="none required"
10255 ;;
7ef34f2c
MM
10256 *mingw32*)
10257 ac_cv_search_tgetent="none required"
10258 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
10259 ;;
bec39cab 10260esac
627af7ea 10261
bec39cab 10262# These are the libraries checked by Readline.
b4e70030
JB
10263echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10264echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
bec39cab
AC
10265if test "${ac_cv_search_tgetent+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10267else
10268 ac_func_search_save_LIBS=$LIBS
b4e70030 10269ac_cv_search_tgetent=no
bec39cab
AC
10270cat >conftest.$ac_ext <<_ACEOF
10271/* confdefs.h. */
10272_ACEOF
10273cat confdefs.h >>conftest.$ac_ext
10274cat >>conftest.$ac_ext <<_ACEOF
10275/* end confdefs.h. */
10276
b4e70030 10277/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
10278#ifdef __cplusplus
10279extern "C"
10280#endif
b4e70030
JB
10281/* We use char because int might match the return type of a gcc2
10282 builtin and then its argument prototype would still apply. */
bec39cab
AC
10283char tgetent ();
10284int
10285main ()
10286{
b4e70030 10287tgetent ();
bec39cab
AC
10288 ;
10289 return 0;
10290}
10291_ACEOF
b4e70030 10292rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
10293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10294 (eval $ac_link) 2>conftest.er1
10295 ac_status=$?
10296 grep -v '^ *+' conftest.er1 >conftest.err
10297 rm -f conftest.er1
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } &&
b4e70030
JB
10301 { ac_try='test -z "$ac_c_werror_flag"
10302 || test ! -s conftest.err'
bec39cab
AC
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; } &&
10308 { ac_try='test -s conftest$ac_exeext'
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10311 ac_status=$?
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; }; then
b4e70030 10314 ac_cv_search_tgetent="none required"
627af7ea 10315else
bec39cab
AC
10316 echo "$as_me: failed program was:" >&5
10317sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 10318
627af7ea 10319fi
bec39cab 10320rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
10321 conftest$ac_exeext conftest.$ac_ext
10322if test "$ac_cv_search_tgetent" = no; then
10323 for ac_lib in termcap tinfo curses ncurses; do
10324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10325 cat >conftest.$ac_ext <<_ACEOF
10326/* confdefs.h. */
10327_ACEOF
10328cat confdefs.h >>conftest.$ac_ext
10329cat >>conftest.$ac_ext <<_ACEOF
10330/* end confdefs.h. */
10331
10332/* Override any gcc2 internal prototype to avoid an error. */
10333#ifdef __cplusplus
10334extern "C"
10335#endif
10336/* We use char because int might match the return type of a gcc2
10337 builtin and then its argument prototype would still apply. */
10338char tgetent ();
10339int
10340main ()
10341{
10342tgetent ();
10343 ;
10344 return 0;
10345}
10346_ACEOF
10347rm -f conftest.$ac_objext conftest$ac_exeext
10348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10349 (eval $ac_link) 2>conftest.er1
10350 ac_status=$?
10351 grep -v '^ *+' conftest.er1 >conftest.err
10352 rm -f conftest.er1
10353 cat conftest.err >&5
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); } &&
10356 { ac_try='test -z "$ac_c_werror_flag"
10357 || test ! -s conftest.err'
10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10360 ac_status=$?
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; } &&
10363 { ac_try='test -s conftest$ac_exeext'
10364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365 (eval $ac_try) 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; }; then
10369 ac_cv_search_tgetent="-l$ac_lib"
10370break
4e8d927d 10371else
b4e70030
JB
10372 echo "$as_me: failed program was:" >&5
10373sed 's/^/| /' conftest.$ac_ext >&5
10374
10375fi
10376rm -f conftest.err conftest.$ac_objext \
10377 conftest$ac_exeext conftest.$ac_ext
10378 done
bec39cab
AC
10379fi
10380LIBS=$ac_func_search_save_LIBS
10381fi
b4e70030
JB
10382echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10383echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10384if test "$ac_cv_search_tgetent" != no; then
10385 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 10386
06825bd1
MK
10387fi
10388
06825bd1 10389
bec39cab
AC
10390if test "$ac_cv_search_tgetent" = no; then
10391 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10392echo "$as_me: error: no termcap library found" >&2;}
10393 { (exit 1); exit 1; }; }
8ee53726
MK
10394fi
10395
3841debe 10396
6a30b0a5
AS
10397# Check whether --with-system-readline or --without-system-readline was given.
10398if test "${with_system_readline+set}" = set; then
10399 withval="$with_system_readline"
10400
10401fi;
10402
10403if test "$with_system_readline" = yes; then
10404 READLINE=-lreadline
10405 READLINE_DEPS=
10406 READLINE_CFLAGS=
10407else
10408 READLINE='$(READLINE_DIR)/libreadline.a'
10409 READLINE_DEPS='$(READLINE)'
10410 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10411fi
10412
10413
10414
10415
10416
5c39566f
DJ
10417# Check whether --with-expat or --without-expat was given.
10418if test "${with_expat+set}" = set; then
10419 withval="$with_expat"
10420
10421else
10422 with_expat=auto
10423fi;
10424echo "$as_me:$LINENO: checking whether to use expat" >&5
10425echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10426echo "$as_me:$LINENO: result: $with_expat" >&5
10427echo "${ECHO_T}$with_expat" >&6
10428
10429if test "${with_expat}" = no; then
10430 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10431echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10432 HAVE_LIBEXPAT=no
10433else
10434
3841debe
DJ
10435 if test "X$prefix" = "XNONE"; then
10436 acl_final_prefix="$ac_default_prefix"
10437 else
10438 acl_final_prefix="$prefix"
10439 fi
10440 if test "X$exec_prefix" = "XNONE"; then
10441 acl_final_exec_prefix='${prefix}'
10442 else
10443 acl_final_exec_prefix="$exec_prefix"
10444 fi
10445 acl_save_prefix="$prefix"
10446 prefix="$acl_final_prefix"
10447 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10448 prefix="$acl_save_prefix"
10449
10450
10451# Check whether --with-gnu-ld or --without-gnu-ld was given.
10452if test "${with_gnu_ld+set}" = set; then
10453 withval="$with_gnu_ld"
10454 test "$withval" = no || with_gnu_ld=yes
10455else
10456 with_gnu_ld=no
10457fi;
10458# Prepare PATH_SEPARATOR.
10459# The user is always right.
10460if test "${PATH_SEPARATOR+set}" != set; then
10461 echo "#! /bin/sh" >conf$$.sh
10462 echo "exit 0" >>conf$$.sh
10463 chmod +x conf$$.sh
10464 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10465 PATH_SEPARATOR=';'
10466 else
10467 PATH_SEPARATOR=:
10468 fi
10469 rm -f conf$$.sh
10470fi
10471ac_prog=ld
10472if test "$GCC" = yes; then
10473 # Check if gcc -print-prog-name=ld gives a path.
10474 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10475echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10476 case $host in
10477 *-*-mingw*)
10478 # gcc leaves a trailing carriage return which upsets mingw
10479 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10480 *)
10481 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10482 esac
10483 case $ac_prog in
10484 # Accept absolute paths.
10485 [\\/]* | [A-Za-z]:[\\/]*)
10486 re_direlt='/[^/][^/]*/\.\./'
10487 # Canonicalize the path of ld
10488 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10489 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10490 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10491 done
10492 test -z "$LD" && LD="$ac_prog"
10493 ;;
10494 "")
10495 # If it fails, then pretend we aren't using GCC.
10496 ac_prog=ld
10497 ;;
10498 *)
10499 # If it is relative, then search for the first ld in PATH.
10500 with_gnu_ld=unknown
10501 ;;
10502 esac
10503elif test "$with_gnu_ld" = yes; then
10504 echo "$as_me:$LINENO: checking for GNU ld" >&5
10505echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10506else
10507 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10508echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10509fi
10510if test "${acl_cv_path_LD+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10512else
10513 if test -z "$LD"; then
10514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10515 for ac_dir in $PATH; do
10516 test -z "$ac_dir" && ac_dir=.
10517 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10518 acl_cv_path_LD="$ac_dir/$ac_prog"
10519 # Check to see if the program is GNU ld. I'd rather use --version,
10520 # but apparently some GNU ld's only accept -v.
10521 # Break only if it was the GNU/non-GNU ld that we prefer.
10522 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10523 test "$with_gnu_ld" != no && break
10524 else
10525 test "$with_gnu_ld" != yes && break
10526 fi
10527 fi
10528 done
10529 IFS="$ac_save_ifs"
10530else
10531 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10532fi
10533fi
10534
10535LD="$acl_cv_path_LD"
10536if test -n "$LD"; then
10537 echo "$as_me:$LINENO: result: $LD" >&5
10538echo "${ECHO_T}$LD" >&6
10539else
10540 echo "$as_me:$LINENO: result: no" >&5
10541echo "${ECHO_T}no" >&6
10542fi
10543test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10544echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10545 { (exit 1); exit 1; }; }
10546echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10547echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10548if test "${acl_cv_prog_gnu_ld+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10550else
10551 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10552if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10553 acl_cv_prog_gnu_ld=yes
10554else
10555 acl_cv_prog_gnu_ld=no
10556fi
10557fi
10558echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10559echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10560with_gnu_ld=$acl_cv_prog_gnu_ld
10561
10562
10563
10564 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10565echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10566if test "${acl_cv_rpath+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10568else
10569
10570 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10571 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10572 . ./conftest.sh
10573 rm -f ./conftest.sh
10574 acl_cv_rpath=done
10575
10576fi
10577echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10578echo "${ECHO_T}$acl_cv_rpath" >&6
10579 wl="$acl_cv_wl"
10580 libext="$acl_cv_libext"
10581 shlibext="$acl_cv_shlibext"
10582 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10583 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10584 hardcode_direct="$acl_cv_hardcode_direct"
10585 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10586 # Check whether --enable-rpath or --disable-rpath was given.
10587if test "${enable_rpath+set}" = set; then
10588 enableval="$enable_rpath"
10589 :
10590else
10591 enable_rpath=yes
10592fi;
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602 use_additional=yes
10603
10604 acl_save_prefix="$prefix"
10605 prefix="$acl_final_prefix"
10606 acl_save_exec_prefix="$exec_prefix"
10607 exec_prefix="$acl_final_exec_prefix"
10608
10609 eval additional_includedir=\"$includedir\"
10610 eval additional_libdir=\"$libdir\"
10611
10612 exec_prefix="$acl_save_exec_prefix"
10613 prefix="$acl_save_prefix"
10614
10615
10616# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10617if test "${with_libexpat_prefix+set}" = set; then
10618 withval="$with_libexpat_prefix"
10619
10620 if test "X$withval" = "Xno"; then
10621 use_additional=no
10622 else
10623 if test "X$withval" = "X"; then
10624
10625 acl_save_prefix="$prefix"
10626 prefix="$acl_final_prefix"
10627 acl_save_exec_prefix="$exec_prefix"
10628 exec_prefix="$acl_final_exec_prefix"
10629
10630 eval additional_includedir=\"$includedir\"
10631 eval additional_libdir=\"$libdir\"
10632
10633 exec_prefix="$acl_save_exec_prefix"
10634 prefix="$acl_save_prefix"
10635
10636 else
10637 additional_includedir="$withval/include"
10638 additional_libdir="$withval/lib"
10639 fi
10640 fi
10641
10642fi;
10643 LIBEXPAT=
10644 LTLIBEXPAT=
10645 INCEXPAT=
10646 rpathdirs=
10647 ltrpathdirs=
10648 names_already_handled=
10649 names_next_round='expat '
10650 while test -n "$names_next_round"; do
10651 names_this_round="$names_next_round"
10652 names_next_round=
10653 for name in $names_this_round; do
10654 already_handled=
10655 for n in $names_already_handled; do
10656 if test "$n" = "$name"; then
10657 already_handled=yes
10658 break
10659 fi
10660 done
10661 if test -z "$already_handled"; then
10662 names_already_handled="$names_already_handled $name"
10663 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10664 eval value=\"\$HAVE_LIB$uppername\"
10665 if test -n "$value"; then
10666 if test "$value" = yes; then
10667 eval value=\"\$LIB$uppername\"
10668 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10669 eval value=\"\$LTLIB$uppername\"
10670 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10671 else
10672 :
10673 fi
10674 else
10675 found_dir=
10676 found_la=
10677 found_so=
10678 found_a=
10679 if test $use_additional = yes; then
10680 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10681 found_dir="$additional_libdir"
10682 found_so="$additional_libdir/lib$name.$shlibext"
10683 if test -f "$additional_libdir/lib$name.la"; then
10684 found_la="$additional_libdir/lib$name.la"
10685 fi
10686 else
10687 if test -f "$additional_libdir/lib$name.$libext"; then
10688 found_dir="$additional_libdir"
10689 found_a="$additional_libdir/lib$name.$libext"
10690 if test -f "$additional_libdir/lib$name.la"; then
10691 found_la="$additional_libdir/lib$name.la"
10692 fi
10693 fi
10694 fi
10695 fi
10696 if test "X$found_dir" = "X"; then
10697 for x in $LDFLAGS $LTLIBEXPAT; do
10698
10699 acl_save_prefix="$prefix"
10700 prefix="$acl_final_prefix"
10701 acl_save_exec_prefix="$exec_prefix"
10702 exec_prefix="$acl_final_exec_prefix"
10703 eval x=\"$x\"
10704 exec_prefix="$acl_save_exec_prefix"
10705 prefix="$acl_save_prefix"
10706
10707 case "$x" in
10708 -L*)
10709 dir=`echo "X$x" | sed -e 's/^X-L//'`
10710 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10711 found_dir="$dir"
10712 found_so="$dir/lib$name.$shlibext"
10713 if test -f "$dir/lib$name.la"; then
10714 found_la="$dir/lib$name.la"
10715 fi
10716 else
10717 if test -f "$dir/lib$name.$libext"; then
10718 found_dir="$dir"
10719 found_a="$dir/lib$name.$libext"
10720 if test -f "$dir/lib$name.la"; then
10721 found_la="$dir/lib$name.la"
10722 fi
10723 fi
10724 fi
10725 ;;
10726 esac
10727 if test "X$found_dir" != "X"; then
10728 break
10729 fi
10730 done
10731 fi
10732 if test "X$found_dir" != "X"; then
10733 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10734 if test "X$found_so" != "X"; then
10735 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10736 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10737 else
10738 haveit=
10739 for x in $ltrpathdirs; do
10740 if test "X$x" = "X$found_dir"; then
10741 haveit=yes
10742 break
10743 fi
10744 done
10745 if test -z "$haveit"; then
10746 ltrpathdirs="$ltrpathdirs $found_dir"
10747 fi
10748 if test "$hardcode_direct" = yes; then
10749 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10750 else
10751 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10752 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10753 haveit=
10754 for x in $rpathdirs; do
10755 if test "X$x" = "X$found_dir"; then
10756 haveit=yes
10757 break
10758 fi
10759 done
10760 if test -z "$haveit"; then
10761 rpathdirs="$rpathdirs $found_dir"
10762 fi
10763 else
10764 haveit=
10765 for x in $LDFLAGS $LIBEXPAT; do
10766
10767 acl_save_prefix="$prefix"
10768 prefix="$acl_final_prefix"
10769 acl_save_exec_prefix="$exec_prefix"
10770 exec_prefix="$acl_final_exec_prefix"
10771 eval x=\"$x\"
10772 exec_prefix="$acl_save_exec_prefix"
10773 prefix="$acl_save_prefix"
10774
10775 if test "X$x" = "X-L$found_dir"; then
10776 haveit=yes
10777 break
10778 fi
10779 done
10780 if test -z "$haveit"; then
10781 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10782 fi
10783 if test "$hardcode_minus_L" != no; then
10784 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10785 else
10786 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10787 fi
10788 fi
10789 fi
10790 fi
10791 else
10792 if test "X$found_a" != "X"; then
10793 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10794 else
10795 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10796 fi
10797 fi
10798 additional_includedir=
10799 case "$found_dir" in
10800 */lib | */lib/)
10801 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10802 additional_includedir="$basedir/include"
10803 ;;
10804 esac
10805 if test "X$additional_includedir" != "X"; then
10806 if test "X$additional_includedir" != "X/usr/include"; then
10807 haveit=
10808 if test "X$additional_includedir" = "X/usr/local/include"; then
10809 if test -n "$GCC"; then
10810 case $host_os in
10811 linux*) haveit=yes;;
10812 esac
10813 fi
10814 fi
10815 if test -z "$haveit"; then
10816 for x in $CPPFLAGS $INCEXPAT; do
10817
10818 acl_save_prefix="$prefix"
10819 prefix="$acl_final_prefix"
10820 acl_save_exec_prefix="$exec_prefix"
10821 exec_prefix="$acl_final_exec_prefix"
10822 eval x=\"$x\"
10823 exec_prefix="$acl_save_exec_prefix"
10824 prefix="$acl_save_prefix"
10825
10826 if test "X$x" = "X-I$additional_includedir"; then
10827 haveit=yes
10828 break
10829 fi
10830 done
10831 if test -z "$haveit"; then
10832 if test -d "$additional_includedir"; then
10833 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10834 fi
10835 fi
10836 fi
10837 fi
10838 fi
10839 if test -n "$found_la"; then
10840 save_libdir="$libdir"
10841 case "$found_la" in
10842 */* | *\\*) . "$found_la" ;;
10843 *) . "./$found_la" ;;
10844 esac
10845 libdir="$save_libdir"
10846 for dep in $dependency_libs; do
10847 case "$dep" in
10848 -L*)
10849 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10850 if test "X$additional_libdir" != "X/usr/lib"; then
10851 haveit=
10852 if test "X$additional_libdir" = "X/usr/local/lib"; then
10853 if test -n "$GCC"; then
10854 case $host_os in
10855 linux*) haveit=yes;;
10856 esac
10857 fi
10858 fi
10859 if test -z "$haveit"; then
10860 haveit=
10861 for x in $LDFLAGS $LIBEXPAT; do
10862
10863 acl_save_prefix="$prefix"
10864 prefix="$acl_final_prefix"
10865 acl_save_exec_prefix="$exec_prefix"
10866 exec_prefix="$acl_final_exec_prefix"
10867 eval x=\"$x\"
10868 exec_prefix="$acl_save_exec_prefix"
10869 prefix="$acl_save_prefix"
10870
10871 if test "X$x" = "X-L$additional_libdir"; then
10872 haveit=yes
10873 break
10874 fi
10875 done
10876 if test -z "$haveit"; then
10877 if test -d "$additional_libdir"; then
10878 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10879 fi
10880 fi
10881 haveit=
10882 for x in $LDFLAGS $LTLIBEXPAT; do
10883
10884 acl_save_prefix="$prefix"
10885 prefix="$acl_final_prefix"
10886 acl_save_exec_prefix="$exec_prefix"
10887 exec_prefix="$acl_final_exec_prefix"
10888 eval x=\"$x\"
10889 exec_prefix="$acl_save_exec_prefix"
10890 prefix="$acl_save_prefix"
10891
10892 if test "X$x" = "X-L$additional_libdir"; then
10893 haveit=yes
10894 break
10895 fi
10896 done
10897 if test -z "$haveit"; then
10898 if test -d "$additional_libdir"; then
10899 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10900 fi
10901 fi
10902 fi
10903 fi
10904 ;;
10905 -R*)
10906 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10907 if test "$enable_rpath" != no; then
10908 haveit=
10909 for x in $rpathdirs; do
10910 if test "X$x" = "X$dir"; then
10911 haveit=yes
10912 break
10913 fi
10914 done
10915 if test -z "$haveit"; then
10916 rpathdirs="$rpathdirs $dir"
10917 fi
10918 haveit=
10919 for x in $ltrpathdirs; do
10920 if test "X$x" = "X$dir"; then
10921 haveit=yes
10922 break
10923 fi
10924 done
10925 if test -z "$haveit"; then
10926 ltrpathdirs="$ltrpathdirs $dir"
10927 fi
10928 fi
10929 ;;
10930 -l*)
10931 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10932 ;;
10933 *.la)
10934 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10935 ;;
10936 *)
10937 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10938 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10939 ;;
10940 esac
10941 done
10942 fi
10943 else
10944 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10945 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10946 fi
10947 fi
10948 fi
10949 done
10950 done
10951 if test "X$rpathdirs" != "X"; then
10952 if test -n "$hardcode_libdir_separator"; then
10953 alldirs=
10954 for found_dir in $rpathdirs; do
10955 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10956 done
10957 acl_save_libdir="$libdir"
10958 libdir="$alldirs"
10959 eval flag=\"$hardcode_libdir_flag_spec\"
10960 libdir="$acl_save_libdir"
10961 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10962 else
10963 for found_dir in $rpathdirs; do
10964 acl_save_libdir="$libdir"
10965 libdir="$found_dir"
10966 eval flag=\"$hardcode_libdir_flag_spec\"
10967 libdir="$acl_save_libdir"
10968 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10969 done
10970 fi
10971 fi
10972 if test "X$ltrpathdirs" != "X"; then
10973 for found_dir in $ltrpathdirs; do
10974 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10975 done
10976 fi
10977
10978
10979 ac_save_CPPFLAGS="$CPPFLAGS"
10980
10981 for element in $INCEXPAT; do
10982 haveit=
10983 for x in $CPPFLAGS; do
10984
10985 acl_save_prefix="$prefix"
10986 prefix="$acl_final_prefix"
10987 acl_save_exec_prefix="$exec_prefix"
10988 exec_prefix="$acl_final_exec_prefix"
10989 eval x=\"$x\"
10990 exec_prefix="$acl_save_exec_prefix"
10991 prefix="$acl_save_prefix"
10992
10993 if test "X$x" = "X$element"; then
10994 haveit=yes
10995 break
10996 fi
10997 done
10998 if test -z "$haveit"; then
10999 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11000 fi
11001 done
11002
11003
11004 echo "$as_me:$LINENO: checking for libexpat" >&5
11005echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11006if test "${ac_cv_libexpat+set}" = set; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11008else
11009
11010 ac_save_LIBS="$LIBS"
11011 LIBS="$LIBS $LIBEXPAT"
11012 cat >conftest.$ac_ext <<_ACEOF
11013/* confdefs.h. */
11014_ACEOF
11015cat confdefs.h >>conftest.$ac_ext
11016cat >>conftest.$ac_ext <<_ACEOF
11017/* end confdefs.h. */
11018#include "expat.h"
11019int
11020main ()
11021{
11022XML_Parser p = XML_ParserCreate (0);
11023 ;
11024 return 0;
11025}
11026_ACEOF
11027rm -f conftest.$ac_objext conftest$ac_exeext
11028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11029 (eval $ac_link) 2>conftest.er1
11030 ac_status=$?
11031 grep -v '^ *+' conftest.er1 >conftest.err
11032 rm -f conftest.er1
11033 cat conftest.err >&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } &&
11036 { ac_try='test -z "$ac_c_werror_flag"
11037 || test ! -s conftest.err'
11038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039 (eval $ac_try) 2>&5
11040 ac_status=$?
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; } &&
11043 { ac_try='test -s conftest$ac_exeext'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
11049 ac_cv_libexpat=yes
11050else
11051 echo "$as_me: failed program was:" >&5
11052sed 's/^/| /' conftest.$ac_ext >&5
11053
11054ac_cv_libexpat=no
11055fi
11056rm -f conftest.err conftest.$ac_objext \
11057 conftest$ac_exeext conftest.$ac_ext
11058 LIBS="$ac_save_LIBS"
11059
11060fi
11061echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11062echo "${ECHO_T}$ac_cv_libexpat" >&6
11063 if test "$ac_cv_libexpat" = yes; then
11064 HAVE_LIBEXPAT=yes
11065
11066cat >>confdefs.h <<\_ACEOF
11067#define HAVE_LIBEXPAT 1
11068_ACEOF
11069
11070 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11071echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11072 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11073echo "${ECHO_T}$LIBEXPAT" >&6
11074 else
11075 HAVE_LIBEXPAT=no
11076 CPPFLAGS="$ac_save_CPPFLAGS"
11077 LIBEXPAT=
11078 LTLIBEXPAT=
11079 fi
11080
11081
11082
11083
11084
11085
5c39566f
DJ
11086 if test "$HAVE_LIBEXPAT" != yes; then
11087 if test "$with_expat" = yes; then
11088 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11089echo "$as_me: error: expat is missing or unusable" >&2;}
11090 { (exit 1); exit 1; }; }
11091 else
11092 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11093echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11094 fi
11095 else
11096 save_LIBS=$LIBS
11097 LIBS="$LIBS $LIBEXPAT"
ca4ca11e
DJ
11098
11099for ac_func in XML_StopParser
11100do
11101as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11102echo "$as_me:$LINENO: checking for $ac_func" >&5
11103echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11104if eval "test \"\${$as_ac_var+set}\" = set"; then
11105 echo $ECHO_N "(cached) $ECHO_C" >&6
11106else
11107 cat >conftest.$ac_ext <<_ACEOF
11108/* confdefs.h. */
11109_ACEOF
11110cat confdefs.h >>conftest.$ac_ext
11111cat >>conftest.$ac_ext <<_ACEOF
11112/* end confdefs.h. */
11113/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11115#define $ac_func innocuous_$ac_func
11116
11117/* System header to define __stub macros and hopefully few prototypes,
11118 which can conflict with char $ac_func (); below.
11119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11120 <limits.h> exists even on freestanding compilers. */
11121
11122#ifdef __STDC__
11123# include <limits.h>
11124#else
11125# include <assert.h>
11126#endif
11127
11128#undef $ac_func
11129
11130/* Override any gcc2 internal prototype to avoid an error. */
11131#ifdef __cplusplus
11132extern "C"
11133{
11134#endif
11135/* We use char because int might match the return type of a gcc2
11136 builtin and then its argument prototype would still apply. */
11137char $ac_func ();
11138/* The GNU C library defines this for functions which it implements
11139 to always fail with ENOSYS. Some functions are actually named
11140 something starting with __ and the normal name is an alias. */
11141#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11142choke me
11143#else
11144char (*f) () = $ac_func;
11145#endif
11146#ifdef __cplusplus
11147}
11148#endif
11149
11150int
11151main ()
11152{
11153return f != $ac_func;
11154 ;
11155 return 0;
11156}
11157_ACEOF
11158rm -f conftest.$ac_objext conftest$ac_exeext
11159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11160 (eval $ac_link) 2>conftest.er1
11161 ac_status=$?
11162 grep -v '^ *+' conftest.er1 >conftest.err
11163 rm -f conftest.er1
11164 cat conftest.err >&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } &&
11167 { ac_try='test -z "$ac_c_werror_flag"
11168 || test ! -s conftest.err'
11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11171 ac_status=$?
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; } &&
11174 { ac_try='test -s conftest$ac_exeext'
11175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11176 (eval $ac_try) 2>&5
11177 ac_status=$?
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; }; then
11180 eval "$as_ac_var=yes"
11181else
11182 echo "$as_me: failed program was:" >&5
11183sed 's/^/| /' conftest.$ac_ext >&5
11184
11185eval "$as_ac_var=no"
11186fi
11187rm -f conftest.err conftest.$ac_objext \
11188 conftest$ac_exeext conftest.$ac_ext
11189fi
11190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11191echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11192if test `eval echo '${'$as_ac_var'}'` = yes; then
11193 cat >>confdefs.h <<_ACEOF
11194#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11195_ACEOF
11196
11197fi
11198done
11199
5c39566f
DJ
11200 LIBS=$save_LIBS
11201 fi
3841debe
DJ
11202fi
11203
bec39cab
AC
11204# ------------------------- #
11205# Checks for header files. #
11206# ------------------------- #
8ee53726 11207
0e5d83e3 11208
bec39cab
AC
11209
11210
11211
11212
11213ac_header_dirent=no
11214for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11215 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
b4e70030
JB
11216echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11217echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11218if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11220else
11221 cat >conftest.$ac_ext <<_ACEOF
11222/* confdefs.h. */
11223_ACEOF
11224cat confdefs.h >>conftest.$ac_ext
11225cat >>conftest.$ac_ext <<_ACEOF
11226/* end confdefs.h. */
11227#include <sys/types.h>
0e5d83e3 11228#include <$ac_hdr>
bec39cab
AC
11229
11230int
11231main ()
11232{
11233if ((DIR *) 0)
11234return 0;
11235 ;
11236 return 0;
11237}
11238_ACEOF
11239rm -f conftest.$ac_objext
11240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11241 (eval $ac_compile) 2>conftest.er1
11242 ac_status=$?
11243 grep -v '^ *+' conftest.er1 >conftest.err
11244 rm -f conftest.er1
11245 cat conftest.err >&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); } &&
b4e70030
JB
11248 { ac_try='test -z "$ac_c_werror_flag"
11249 || test ! -s conftest.err'
bec39cab
AC
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11252 ac_status=$?
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; } &&
11255 { ac_try='test -s conftest.$ac_objext'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11258 ac_status=$?
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; }; then
11261 eval "$as_ac_Header=yes"
11262else
11263 echo "$as_me: failed program was:" >&5
11264sed 's/^/| /' conftest.$ac_ext >&5
11265
b4e70030 11266eval "$as_ac_Header=no"
bec39cab
AC
11267fi
11268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11269fi
b4e70030
JB
11270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11272if test `eval echo '${'$as_ac_Header'}'` = yes; then
11273 cat >>confdefs.h <<_ACEOF
11274#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11275_ACEOF
11276
11277ac_header_dirent=$ac_hdr; break
0e5d83e3 11278fi
0e5d83e3 11279
bec39cab
AC
11280done
11281# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11282if test $ac_header_dirent = dirent.h; then
b4e70030
JB
11283 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11284echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
11285if test "${ac_cv_search_opendir+set}" = set; then
11286 echo $ECHO_N "(cached) $ECHO_C" >&6
11287else
11288 ac_func_search_save_LIBS=$LIBS
b4e70030 11289ac_cv_search_opendir=no
bec39cab
AC
11290cat >conftest.$ac_ext <<_ACEOF
11291/* confdefs.h. */
11292_ACEOF
11293cat confdefs.h >>conftest.$ac_ext
11294cat >>conftest.$ac_ext <<_ACEOF
11295/* end confdefs.h. */
0e5d83e3 11296
b4e70030 11297/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
11298#ifdef __cplusplus
11299extern "C"
11300#endif
b4e70030
JB
11301/* We use char because int might match the return type of a gcc2
11302 builtin and then its argument prototype would still apply. */
bec39cab
AC
11303char opendir ();
11304int
11305main ()
11306{
b4e70030 11307opendir ();
bec39cab
AC
11308 ;
11309 return 0;
11310}
11311_ACEOF
b4e70030 11312rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
11313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11314 (eval $ac_link) 2>conftest.er1
11315 ac_status=$?
11316 grep -v '^ *+' conftest.er1 >conftest.err
11317 rm -f conftest.er1
11318 cat conftest.err >&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } &&
b4e70030
JB
11321 { ac_try='test -z "$ac_c_werror_flag"
11322 || test ! -s conftest.err'
bec39cab
AC
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; } &&
11328 { ac_try='test -s conftest$ac_exeext'
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; }; then
b4e70030 11334 ac_cv_search_opendir="none required"
bec39cab
AC
11335else
11336 echo "$as_me: failed program was:" >&5
11337sed 's/^/| /' conftest.$ac_ext >&5
11338
11339fi
bec39cab 11340rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
11341 conftest$ac_exeext conftest.$ac_ext
11342if test "$ac_cv_search_opendir" = no; then
11343 for ac_lib in dir; do
11344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11345 cat >conftest.$ac_ext <<_ACEOF
11346/* confdefs.h. */
11347_ACEOF
11348cat confdefs.h >>conftest.$ac_ext
11349cat >>conftest.$ac_ext <<_ACEOF
11350/* end confdefs.h. */
11351
11352/* Override any gcc2 internal prototype to avoid an error. */
11353#ifdef __cplusplus
11354extern "C"
11355#endif
11356/* We use char because int might match the return type of a gcc2
11357 builtin and then its argument prototype would still apply. */
11358char opendir ();
11359int
11360main ()
11361{
11362opendir ();
11363 ;
11364 return 0;
11365}
11366_ACEOF
11367rm -f conftest.$ac_objext conftest$ac_exeext
11368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11369 (eval $ac_link) 2>conftest.er1
11370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } &&
11376 { ac_try='test -z "$ac_c_werror_flag"
11377 || test ! -s conftest.err'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11380 ac_status=$?
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; } &&
11383 { ac_try='test -s conftest$ac_exeext'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; }; then
11389 ac_cv_search_opendir="-l$ac_lib"
11390break
4e8d927d 11391else
b4e70030
JB
11392 echo "$as_me: failed program was:" >&5
11393sed 's/^/| /' conftest.$ac_ext >&5
11394
11395fi
11396rm -f conftest.err conftest.$ac_objext \
11397 conftest$ac_exeext conftest.$ac_ext
11398 done
0e5d83e3 11399fi
bec39cab 11400LIBS=$ac_func_search_save_LIBS
0e5d83e3 11401fi
b4e70030
JB
11402echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11403echo "${ECHO_T}$ac_cv_search_opendir" >&6
11404if test "$ac_cv_search_opendir" != no; then
11405 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 11406
0e5d83e3
JJ
11407fi
11408
d28f9cdf 11409else
b4e70030
JB
11410 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11411echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
11412if test "${ac_cv_search_opendir+set}" = set; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11414else
11415 ac_func_search_save_LIBS=$LIBS
b4e70030 11416ac_cv_search_opendir=no
bec39cab
AC
11417cat >conftest.$ac_ext <<_ACEOF
11418/* confdefs.h. */
11419_ACEOF
11420cat confdefs.h >>conftest.$ac_ext
11421cat >>conftest.$ac_ext <<_ACEOF
11422/* end confdefs.h. */
d28f9cdf 11423
b4e70030 11424/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
11425#ifdef __cplusplus
11426extern "C"
d28f9cdf 11427#endif
b4e70030
JB
11428/* We use char because int might match the return type of a gcc2
11429 builtin and then its argument prototype would still apply. */
bec39cab
AC
11430char opendir ();
11431int
11432main ()
11433{
b4e70030 11434opendir ();
bec39cab
AC
11435 ;
11436 return 0;
11437}
11438_ACEOF
b4e70030 11439rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
11440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11441 (eval $ac_link) 2>conftest.er1
11442 ac_status=$?
11443 grep -v '^ *+' conftest.er1 >conftest.err
11444 rm -f conftest.er1
11445 cat conftest.err >&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } &&
b4e70030
JB
11448 { ac_try='test -z "$ac_c_werror_flag"
11449 || test ! -s conftest.err'
bec39cab
AC
11450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451 (eval $ac_try) 2>&5
11452 ac_status=$?
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; } &&
11455 { ac_try='test -s conftest$ac_exeext'
11456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457 (eval $ac_try) 2>&5
11458 ac_status=$?
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; }; then
b4e70030 11461 ac_cv_search_opendir="none required"
d28f9cdf 11462else
bec39cab
AC
11463 echo "$as_me: failed program was:" >&5
11464sed 's/^/| /' conftest.$ac_ext >&5
11465
d28f9cdf 11466fi
bec39cab 11467rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
11468 conftest$ac_exeext conftest.$ac_ext
11469if test "$ac_cv_search_opendir" = no; then
11470 for ac_lib in x; do
11471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11472 cat >conftest.$ac_ext <<_ACEOF
11473/* confdefs.h. */
11474_ACEOF
11475cat confdefs.h >>conftest.$ac_ext
11476cat >>conftest.$ac_ext <<_ACEOF
11477/* end confdefs.h. */
11478
11479/* Override any gcc2 internal prototype to avoid an error. */
11480#ifdef __cplusplus
11481extern "C"
11482#endif
11483/* We use char because int might match the return type of a gcc2
11484 builtin and then its argument prototype would still apply. */
11485char opendir ();
11486int
11487main ()
11488{
11489opendir ();
11490 ;
11491 return 0;
11492}
11493_ACEOF
11494rm -f conftest.$ac_objext conftest$ac_exeext
11495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11496 (eval $ac_link) 2>conftest.er1
11497 ac_status=$?
11498 grep -v '^ *+' conftest.er1 >conftest.err
11499 rm -f conftest.er1
11500 cat conftest.err >&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } &&
11503 { ac_try='test -z "$ac_c_werror_flag"
11504 || test ! -s conftest.err'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; } &&
11510 { ac_try='test -s conftest$ac_exeext'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11513 ac_status=$?
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
11516 ac_cv_search_opendir="-l$ac_lib"
11517break
4e8d927d 11518else
b4e70030
JB
11519 echo "$as_me: failed program was:" >&5
11520sed 's/^/| /' conftest.$ac_ext >&5
11521
11522fi
11523rm -f conftest.err conftest.$ac_objext \
11524 conftest$ac_exeext conftest.$ac_ext
11525 done
bec39cab
AC
11526fi
11527LIBS=$ac_func_search_save_LIBS
d28f9cdf 11528fi
b4e70030
JB
11529echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11530echo "${ECHO_T}$ac_cv_search_opendir" >&6
11531if test "$ac_cv_search_opendir" != no; then
11532 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 11533
d28f9cdf
DJ
11534fi
11535
bec39cab 11536fi
b0b1c2c0 11537
b4e70030
JB
11538echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11539echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
bec39cab
AC
11540if test "${ac_cv_header_stat_broken+set}" = set; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 11542else
bec39cab
AC
11543 cat >conftest.$ac_ext <<_ACEOF
11544/* confdefs.h. */
11545_ACEOF
11546cat confdefs.h >>conftest.$ac_ext
11547cat >>conftest.$ac_ext <<_ACEOF
11548/* end confdefs.h. */
11549#include <sys/types.h>
11550#include <sys/stat.h>
b0b1c2c0 11551
b4e70030 11552#if defined(S_ISBLK) && defined(S_IFDIR)
bec39cab
AC
11553# if S_ISBLK (S_IFDIR)
11554You lose.
11555# endif
11556#endif
b0b1c2c0 11557
b4e70030 11558#if defined(S_ISBLK) && defined(S_IFCHR)
bec39cab
AC
11559# if S_ISBLK (S_IFCHR)
11560You lose.
11561# endif
11562#endif
d28f9cdf 11563
b4e70030 11564#if defined(S_ISLNK) && defined(S_IFREG)
bec39cab
AC
11565# if S_ISLNK (S_IFREG)
11566You lose.
11567# endif
11568#endif
d28f9cdf 11569
b4e70030 11570#if defined(S_ISSOCK) && defined(S_IFREG)
bec39cab
AC
11571# if S_ISSOCK (S_IFREG)
11572You lose.
11573# endif
11574#endif
11575
11576_ACEOF
11577if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11578 $EGREP "You lose" >/dev/null 2>&1; then
11579 ac_cv_header_stat_broken=yes
d28f9cdf 11580else
bec39cab 11581 ac_cv_header_stat_broken=no
d28f9cdf
DJ
11582fi
11583rm -f conftest*
d28f9cdf 11584
d28f9cdf 11585fi
b4e70030
JB
11586echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11587echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
bec39cab 11588if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 11589
bec39cab
AC
11590cat >>confdefs.h <<\_ACEOF
11591#define STAT_MACROS_BROKEN 1
11592_ACEOF
8bb2c122 11593
7a292a7a 11594fi
bec39cab 11595
b4e70030
JB
11596echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11597echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
bec39cab
AC
11598if test "${ac_cv_header_stdc+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 11600else
bec39cab
AC
11601 cat >conftest.$ac_ext <<_ACEOF
11602/* confdefs.h. */
11603_ACEOF
11604cat confdefs.h >>conftest.$ac_ext
11605cat >>conftest.$ac_ext <<_ACEOF
11606/* end confdefs.h. */
11607#include <stdlib.h>
11608#include <stdarg.h>
11609#include <string.h>
11610#include <float.h>
7a292a7a 11611
bec39cab
AC
11612int
11613main ()
11614{
7a292a7a 11615
bec39cab
AC
11616 ;
11617 return 0;
11618}
11619_ACEOF
11620rm -f conftest.$ac_objext
11621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11622 (eval $ac_compile) 2>conftest.er1
11623 ac_status=$?
11624 grep -v '^ *+' conftest.er1 >conftest.err
11625 rm -f conftest.er1
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } &&
b4e70030
JB
11629 { ac_try='test -z "$ac_c_werror_flag"
11630 || test ! -s conftest.err'
bec39cab
AC
11631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632 (eval $ac_try) 2>&5
11633 ac_status=$?
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; } &&
11636 { ac_try='test -s conftest.$ac_objext'
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; }; then
11642 ac_cv_header_stdc=yes
c906108c 11643else
bec39cab
AC
11644 echo "$as_me: failed program was:" >&5
11645sed 's/^/| /' conftest.$ac_ext >&5
c906108c 11646
b4e70030 11647ac_cv_header_stdc=no
c906108c 11648fi
bec39cab 11649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11650
bec39cab
AC
11651if test $ac_cv_header_stdc = yes; then
11652 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11653 cat >conftest.$ac_ext <<_ACEOF
11654/* confdefs.h. */
11655_ACEOF
11656cat confdefs.h >>conftest.$ac_ext
11657cat >>conftest.$ac_ext <<_ACEOF
11658/* end confdefs.h. */
11659#include <string.h>
c906108c 11660
bec39cab
AC
11661_ACEOF
11662if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11663 $EGREP "memchr" >/dev/null 2>&1; then
11664 :
8bb2c122 11665else
bec39cab 11666 ac_cv_header_stdc=no
8bb2c122 11667fi
bec39cab
AC
11668rm -f conftest*
11669
c906108c
SS
11670fi
11671
bec39cab
AC
11672if test $ac_cv_header_stdc = yes; then
11673 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11674 cat >conftest.$ac_ext <<_ACEOF
11675/* confdefs.h. */
11676_ACEOF
11677cat confdefs.h >>conftest.$ac_ext
11678cat >>conftest.$ac_ext <<_ACEOF
11679/* end confdefs.h. */
11680#include <stdlib.h>
11681
11682_ACEOF
11683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11684 $EGREP "free" >/dev/null 2>&1; then
11685 :
c906108c 11686else
bec39cab 11687 ac_cv_header_stdc=no
c906108c 11688fi
bec39cab
AC
11689rm -f conftest*
11690
c906108c
SS
11691fi
11692
bec39cab
AC
11693if test $ac_cv_header_stdc = yes; then
11694 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11695 if test "$cross_compiling" = yes; then
11696 :
c906108c 11697else
bec39cab
AC
11698 cat >conftest.$ac_ext <<_ACEOF
11699/* confdefs.h. */
11700_ACEOF
11701cat confdefs.h >>conftest.$ac_ext
11702cat >>conftest.$ac_ext <<_ACEOF
11703/* end confdefs.h. */
11704#include <ctype.h>
11705#if ((' ' & 0x0FF) == 0x020)
11706# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11707# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11708#else
11709# define ISLOWER(c) \
11710 (('a' <= (c) && (c) <= 'i') \
11711 || ('j' <= (c) && (c) <= 'r') \
11712 || ('s' <= (c) && (c) <= 'z'))
11713# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11714#endif
11715
11716#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11717int
11718main ()
11719{
11720 int i;
11721 for (i = 0; i < 256; i++)
11722 if (XOR (islower (i), ISLOWER (i))
11723 || toupper (i) != TOUPPER (i))
b4e70030
JB
11724 exit(2);
11725 exit (0);
bec39cab
AC
11726}
11727_ACEOF
11728rm -f conftest$ac_exeext
11729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11730 (eval $ac_link) 2>&5
11731 ac_status=$?
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11735 (eval $ac_try) 2>&5
11736 ac_status=$?
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; }; then
11739 :
11740else
11741 echo "$as_me: program exited with status $ac_status" >&5
11742echo "$as_me: failed program was:" >&5
11743sed 's/^/| /' conftest.$ac_ext >&5
11744
11745( exit $ac_status )
11746ac_cv_header_stdc=no
c906108c 11747fi
b4e70030 11748rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 11749fi
c906108c 11750fi
bec39cab 11751fi
b4e70030
JB
11752echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11753echo "${ECHO_T}$ac_cv_header_stdc" >&6
bec39cab 11754if test $ac_cv_header_stdc = yes; then
c906108c 11755
bec39cab
AC
11756cat >>confdefs.h <<\_ACEOF
11757#define STDC_HEADERS 1
11758_ACEOF
c906108c 11759
bec39cab 11760fi
8bb2c122 11761
bec39cab 11762
7cb9022a 11763for ac_header in nlist.h
bec39cab
AC
11764do
11765as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11766if eval "test \"\${$as_ac_Header+set}\" = set"; then
11767 echo "$as_me:$LINENO: checking for $ac_header" >&5
11768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11769if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11771fi
b4e70030
JB
11772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11773echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11774else
11775 # Is the header compilable?
b4e70030
JB
11776echo "$as_me:$LINENO: checking $ac_header usability" >&5
11777echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11778cat >conftest.$ac_ext <<_ACEOF
11779/* confdefs.h. */
11780_ACEOF
11781cat confdefs.h >>conftest.$ac_ext
11782cat >>conftest.$ac_ext <<_ACEOF
11783/* end confdefs.h. */
11784$ac_includes_default
11785#include <$ac_header>
11786_ACEOF
11787rm -f conftest.$ac_objext
11788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
b4e70030
JB
11796 { ac_try='test -z "$ac_c_werror_flag"
11797 || test ! -s conftest.err'
bec39cab
AC
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try='test -s conftest.$ac_objext'
11804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 ac_header_compiler=yes
11810else
11811 echo "$as_me: failed program was:" >&5
11812sed 's/^/| /' conftest.$ac_ext >&5
11813
b4e70030 11814ac_header_compiler=no
bec39cab
AC
11815fi
11816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11817echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11818echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11819
11820# Is the header present?
b4e70030
JB
11821echo "$as_me:$LINENO: checking $ac_header presence" >&5
11822echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11823cat >conftest.$ac_ext <<_ACEOF
11824/* confdefs.h. */
11825_ACEOF
11826cat confdefs.h >>conftest.$ac_ext
11827cat >>conftest.$ac_ext <<_ACEOF
11828/* end confdefs.h. */
11829#include <$ac_header>
11830_ACEOF
11831if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11833 ac_status=$?
11834 grep -v '^ *+' conftest.er1 >conftest.err
11835 rm -f conftest.er1
11836 cat conftest.err >&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } >/dev/null; then
11839 if test -s conftest.err; then
11840 ac_cpp_err=$ac_c_preproc_warn_flag
11841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11842 else
11843 ac_cpp_err=
11844 fi
c906108c 11845else
bec39cab 11846 ac_cpp_err=yes
c906108c 11847fi
bec39cab
AC
11848if test -z "$ac_cpp_err"; then
11849 ac_header_preproc=yes
c906108c 11850else
bec39cab
AC
11851 echo "$as_me: failed program was:" >&5
11852sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 11853
bec39cab
AC
11854 ac_header_preproc=no
11855fi
11856rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11857echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11858echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 11859
bec39cab
AC
11860# So? What about this header?
11861case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11862 yes:no: )
11863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11864echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11866echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11867 ac_header_preproc=yes
11868 ;;
11869 no:yes:* )
11870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11871echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11873echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11875echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11877echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11879echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11881echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11882 (
11883 cat <<\_ASBOX
11884## ------------------------------------------ ##
11885## Report this to the AC_PACKAGE_NAME lists. ##
11886## ------------------------------------------ ##
11887_ASBOX
11888 ) |
11889 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11890 ;;
11891esac
b4e70030
JB
11892echo "$as_me:$LINENO: checking for $ac_header" >&5
11893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11894if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11895 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 11896else
bec39cab 11897 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 11898fi
b4e70030
JB
11899echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11900echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11901
95ca63c4 11902fi
bec39cab
AC
11903if test `eval echo '${'$as_ac_Header'}'` = yes; then
11904 cat >>confdefs.h <<_ACEOF
11905#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11906_ACEOF
11907
95ca63c4
CF
11908fi
11909
bec39cab 11910done
95ca63c4
CF
11911
11912
7cb9022a 11913for ac_header in link.h
bec39cab
AC
11914do
11915as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11916echo "$as_me:$LINENO: checking for $ac_header" >&5
11917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11918if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11919 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 11920else
7cb9022a 11921 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11922/* confdefs.h. */
11923_ACEOF
11924cat confdefs.h >>conftest.$ac_ext
11925cat >>conftest.$ac_ext <<_ACEOF
11926/* end confdefs.h. */
7cb9022a
MK
11927#if HAVE_SYS_TYPES_H
11928# include <sys/types.h>
11929#endif
11930#if HAVE_NLIST_H
11931# include <nlist.h>
11932#endif
11933
11934
bec39cab
AC
11935#include <$ac_header>
11936_ACEOF
11937rm -f conftest.$ac_objext
11938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11939 (eval $ac_compile) 2>conftest.er1
11940 ac_status=$?
11941 grep -v '^ *+' conftest.er1 >conftest.err
11942 rm -f conftest.er1
11943 cat conftest.err >&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } &&
b4e70030
JB
11946 { ac_try='test -z "$ac_c_werror_flag"
11947 || test ! -s conftest.err'
bec39cab
AC
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; } &&
11953 { ac_try='test -s conftest.$ac_objext'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
7cb9022a 11959 eval "$as_ac_Header=yes"
bec39cab
AC
11960else
11961 echo "$as_me: failed program was:" >&5
11962sed 's/^/| /' conftest.$ac_ext >&5
11963
b4e70030 11964eval "$as_ac_Header=no"
bec39cab
AC
11965fi
11966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 11967fi
b4e70030
JB
11968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11969echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11970if test `eval echo '${'$as_ac_Header'}'` = yes; then
11971 cat >>confdefs.h <<_ACEOF
11972#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11973_ACEOF
95ca63c4 11974
bec39cab 11975fi
95ca63c4 11976
bec39cab 11977done
95ca63c4 11978
c906108c 11979
7cb9022a 11980for ac_header in machine/reg.h
bec39cab
AC
11981do
11982as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11983if eval "test \"\${$as_ac_Header+set}\" = set"; then
11984 echo "$as_me:$LINENO: checking for $ac_header" >&5
11985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11986if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11987 echo $ECHO_N "(cached) $ECHO_C" >&6
11988fi
b4e70030
JB
11989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11990echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11991else
11992 # Is the header compilable?
b4e70030
JB
11993echo "$as_me:$LINENO: checking $ac_header usability" >&5
11994echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11995cat >conftest.$ac_ext <<_ACEOF
11996/* confdefs.h. */
11997_ACEOF
11998cat confdefs.h >>conftest.$ac_ext
11999cat >>conftest.$ac_ext <<_ACEOF
12000/* end confdefs.h. */
12001$ac_includes_default
12002#include <$ac_header>
12003_ACEOF
12004rm -f conftest.$ac_objext
12005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12006 (eval $ac_compile) 2>conftest.er1
12007 ac_status=$?
12008 grep -v '^ *+' conftest.er1 >conftest.err
12009 rm -f conftest.er1
12010 cat conftest.err >&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } &&
b4e70030
JB
12013 { ac_try='test -z "$ac_c_werror_flag"
12014 || test ! -s conftest.err'
bec39cab
AC
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; } &&
12020 { ac_try='test -s conftest.$ac_objext'
12021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
12026 ac_header_compiler=yes
12027else
12028 echo "$as_me: failed program was:" >&5
12029sed 's/^/| /' conftest.$ac_ext >&5
12030
b4e70030 12031ac_header_compiler=no
bec39cab
AC
12032fi
12033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12034echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12035echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12036
12037# Is the header present?
b4e70030
JB
12038echo "$as_me:$LINENO: checking $ac_header presence" >&5
12039echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12040cat >conftest.$ac_ext <<_ACEOF
12041/* confdefs.h. */
12042_ACEOF
12043cat confdefs.h >>conftest.$ac_ext
12044cat >>conftest.$ac_ext <<_ACEOF
12045/* end confdefs.h. */
12046#include <$ac_header>
12047_ACEOF
12048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12050 ac_status=$?
12051 grep -v '^ *+' conftest.er1 >conftest.err
12052 rm -f conftest.er1
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } >/dev/null; then
12056 if test -s conftest.err; then
12057 ac_cpp_err=$ac_c_preproc_warn_flag
12058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12059 else
12060 ac_cpp_err=
12061 fi
75c6e08a 12062else
bec39cab 12063 ac_cpp_err=yes
75c6e08a 12064fi
bec39cab
AC
12065if test -z "$ac_cpp_err"; then
12066 ac_header_preproc=yes
12067else
12068 echo "$as_me: failed program was:" >&5
12069sed 's/^/| /' conftest.$ac_ext >&5
12070
12071 ac_header_preproc=no
75c6e08a 12072fi
bec39cab 12073rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12074echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12075echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12076
12077# So? What about this header?
12078case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12079 yes:no: )
12080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12081echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12083echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12084 ac_header_preproc=yes
12085 ;;
12086 no:yes:* )
12087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12088echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12090echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12092echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12094echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12096echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12098echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12099 (
12100 cat <<\_ASBOX
12101## ------------------------------------------ ##
12102## Report this to the AC_PACKAGE_NAME lists. ##
12103## ------------------------------------------ ##
12104_ASBOX
12105 ) |
12106 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12107 ;;
12108esac
b4e70030
JB
12109echo "$as_me:$LINENO: checking for $ac_header" >&5
12110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12111if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12112 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 12113else
bec39cab
AC
12114 eval "$as_ac_Header=\$ac_header_preproc"
12115fi
b4e70030
JB
12116echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12117echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12118
75c6e08a 12119fi
bec39cab
AC
12120if test `eval echo '${'$as_ac_Header'}'` = yes; then
12121 cat >>confdefs.h <<_ACEOF
12122#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12123_ACEOF
75c6e08a 12124
bec39cab 12125fi
75c6e08a 12126
bec39cab 12127done
75c6e08a
MK
12128
12129
9a156167 12130
bec39cab
AC
12131for ac_header in poll.h sys/poll.h
12132do
12133as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12134if eval "test \"\${$as_ac_Header+set}\" = set"; then
12135 echo "$as_me:$LINENO: checking for $ac_header" >&5
12136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12137if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12139fi
b4e70030
JB
12140echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12141echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12142else
12143 # Is the header compilable?
b4e70030
JB
12144echo "$as_me:$LINENO: checking $ac_header usability" >&5
12145echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12146cat >conftest.$ac_ext <<_ACEOF
12147/* confdefs.h. */
12148_ACEOF
12149cat confdefs.h >>conftest.$ac_ext
12150cat >>conftest.$ac_ext <<_ACEOF
12151/* end confdefs.h. */
12152$ac_includes_default
12153#include <$ac_header>
12154_ACEOF
12155rm -f conftest.$ac_objext
12156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12157 (eval $ac_compile) 2>conftest.er1
12158 ac_status=$?
12159 grep -v '^ *+' conftest.er1 >conftest.err
12160 rm -f conftest.er1
12161 cat conftest.err >&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } &&
b4e70030
JB
12164 { ac_try='test -z "$ac_c_werror_flag"
12165 || test ! -s conftest.err'
bec39cab
AC
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12168 ac_status=$?
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; } &&
12171 { ac_try='test -s conftest.$ac_objext'
12172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173 (eval $ac_try) 2>&5
12174 ac_status=$?
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); }; }; then
12177 ac_header_compiler=yes
12178else
12179 echo "$as_me: failed program was:" >&5
12180sed 's/^/| /' conftest.$ac_ext >&5
12181
b4e70030 12182ac_header_compiler=no
bec39cab
AC
12183fi
12184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12185echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12186echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12187
12188# Is the header present?
b4e70030
JB
12189echo "$as_me:$LINENO: checking $ac_header presence" >&5
12190echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12191cat >conftest.$ac_ext <<_ACEOF
12192/* confdefs.h. */
12193_ACEOF
12194cat confdefs.h >>conftest.$ac_ext
12195cat >>conftest.$ac_ext <<_ACEOF
12196/* end confdefs.h. */
12197#include <$ac_header>
12198_ACEOF
12199if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12201 ac_status=$?
12202 grep -v '^ *+' conftest.er1 >conftest.err
12203 rm -f conftest.er1
12204 cat conftest.err >&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } >/dev/null; then
12207 if test -s conftest.err; then
12208 ac_cpp_err=$ac_c_preproc_warn_flag
12209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12210 else
12211 ac_cpp_err=
12212 fi
9a156167 12213else
bec39cab 12214 ac_cpp_err=yes
9a156167 12215fi
bec39cab
AC
12216if test -z "$ac_cpp_err"; then
12217 ac_header_preproc=yes
12218else
12219 echo "$as_me: failed program was:" >&5
12220sed 's/^/| /' conftest.$ac_ext >&5
9a156167 12221
bec39cab 12222 ac_header_preproc=no
9a156167 12223fi
bec39cab 12224rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12225echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12226echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 12227
bec39cab
AC
12228# So? What about this header?
12229case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12230 yes:no: )
12231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12232echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12234echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12235 ac_header_preproc=yes
12236 ;;
12237 no:yes:* )
12238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12239echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12241echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12242 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12243echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12244 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12245echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12247echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12248 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12249echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12250 (
12251 cat <<\_ASBOX
12252## ------------------------------------------ ##
12253## Report this to the AC_PACKAGE_NAME lists. ##
12254## ------------------------------------------ ##
12255_ASBOX
12256 ) |
12257 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12258 ;;
12259esac
b4e70030
JB
12260echo "$as_me:$LINENO: checking for $ac_header" >&5
12261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12262if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12263 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 12264else
bec39cab 12265 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 12266fi
b4e70030
JB
12267echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12268echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 12269
bec39cab
AC
12270fi
12271if test `eval echo '${'$as_ac_Header'}'` = yes; then
12272 cat >>confdefs.h <<_ACEOF
12273#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12274_ACEOF
9a156167 12275
bec39cab 12276fi
9a156167 12277
bec39cab 12278done
9a156167 12279
9a156167 12280
9a156167 12281
bec39cab
AC
12282
12283for ac_header in proc_service.h thread_db.h gnu/libc-version.h
12284do
12285as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12286if eval "test \"\${$as_ac_Header+set}\" = set"; then
12287 echo "$as_me:$LINENO: checking for $ac_header" >&5
12288echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12289if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12290 echo $ECHO_N "(cached) $ECHO_C" >&6
12291fi
b4e70030
JB
12292echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12293echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12294else
12295 # Is the header compilable?
b4e70030
JB
12296echo "$as_me:$LINENO: checking $ac_header usability" >&5
12297echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12298cat >conftest.$ac_ext <<_ACEOF
12299/* confdefs.h. */
12300_ACEOF
12301cat confdefs.h >>conftest.$ac_ext
12302cat >>conftest.$ac_ext <<_ACEOF
436868fb
DP
12303/* end confdefs.h. */
12304$ac_includes_default
12305#include <$ac_header>
12306_ACEOF
12307rm -f conftest.$ac_objext
12308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12309 (eval $ac_compile) 2>conftest.er1
12310 ac_status=$?
12311 grep -v '^ *+' conftest.er1 >conftest.err
12312 rm -f conftest.er1
12313 cat conftest.err >&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); } &&
12316 { ac_try='test -z "$ac_c_werror_flag"
12317 || test ! -s conftest.err'
12318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12319 (eval $ac_try) 2>&5
12320 ac_status=$?
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }; } &&
12323 { ac_try='test -s conftest.$ac_objext'
12324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12326 ac_status=$?
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; }; then
12329 ac_header_compiler=yes
12330else
12331 echo "$as_me: failed program was:" >&5
12332sed 's/^/| /' conftest.$ac_ext >&5
12333
12334ac_header_compiler=no
12335fi
12336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12337echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12338echo "${ECHO_T}$ac_header_compiler" >&6
12339
12340# Is the header present?
12341echo "$as_me:$LINENO: checking $ac_header presence" >&5
12342echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12343cat >conftest.$ac_ext <<_ACEOF
12344/* confdefs.h. */
12345_ACEOF
12346cat confdefs.h >>conftest.$ac_ext
12347cat >>conftest.$ac_ext <<_ACEOF
12348/* end confdefs.h. */
12349#include <$ac_header>
12350_ACEOF
12351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12353 ac_status=$?
12354 grep -v '^ *+' conftest.er1 >conftest.err
12355 rm -f conftest.er1
12356 cat conftest.err >&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } >/dev/null; then
12359 if test -s conftest.err; then
12360 ac_cpp_err=$ac_c_preproc_warn_flag
12361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12362 else
12363 ac_cpp_err=
12364 fi
12365else
12366 ac_cpp_err=yes
12367fi
12368if test -z "$ac_cpp_err"; then
12369 ac_header_preproc=yes
12370else
12371 echo "$as_me: failed program was:" >&5
12372sed 's/^/| /' conftest.$ac_ext >&5
12373
12374 ac_header_preproc=no
12375fi
12376rm -f conftest.err conftest.$ac_ext
12377echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12378echo "${ECHO_T}$ac_header_preproc" >&6
12379
12380# So? What about this header?
12381case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12382 yes:no: )
12383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12384echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12386echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12387 ac_header_preproc=yes
12388 ;;
12389 no:yes:* )
12390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12391echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12393echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12395echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12397echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12399echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12401echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12402 (
12403 cat <<\_ASBOX
12404## ------------------------------------------ ##
12405## Report this to the AC_PACKAGE_NAME lists. ##
12406## ------------------------------------------ ##
12407_ASBOX
12408 ) |
12409 sed "s/^/$as_me: WARNING: /" >&2
12410 ;;
12411esac
12412echo "$as_me:$LINENO: checking for $ac_header" >&5
12413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12414if eval "test \"\${$as_ac_Header+set}\" = set"; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12416else
12417 eval "$as_ac_Header=\$ac_header_preproc"
12418fi
12419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12421
12422fi
12423if test `eval echo '${'$as_ac_Header'}'` = yes; then
12424 cat >>confdefs.h <<_ACEOF
12425#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12426_ACEOF
12427
12428fi
12429
12430done
12431
12432
12433for ac_header in signal.h
12434do
12435as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12436if eval "test \"\${$as_ac_Header+set}\" = set"; then
12437 echo "$as_me:$LINENO: checking for $ac_header" >&5
12438echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12439if eval "test \"\${$as_ac_Header+set}\" = set"; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12441fi
12442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12443echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12444else
12445 # Is the header compilable?
12446echo "$as_me:$LINENO: checking $ac_header usability" >&5
12447echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12448cat >conftest.$ac_ext <<_ACEOF
12449/* confdefs.h. */
12450_ACEOF
12451cat confdefs.h >>conftest.$ac_ext
12452cat >>conftest.$ac_ext <<_ACEOF
bec39cab
AC
12453/* end confdefs.h. */
12454$ac_includes_default
12455#include <$ac_header>
12456_ACEOF
12457rm -f conftest.$ac_objext
12458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12459 (eval $ac_compile) 2>conftest.er1
12460 ac_status=$?
12461 grep -v '^ *+' conftest.er1 >conftest.err
12462 rm -f conftest.er1
12463 cat conftest.err >&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } &&
b4e70030
JB
12466 { ac_try='test -z "$ac_c_werror_flag"
12467 || test ! -s conftest.err'
bec39cab
AC
12468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12470 ac_status=$?
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; } &&
12473 { ac_try='test -s conftest.$ac_objext'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; }; then
12479 ac_header_compiler=yes
12480else
12481 echo "$as_me: failed program was:" >&5
12482sed 's/^/| /' conftest.$ac_ext >&5
12483
b4e70030 12484ac_header_compiler=no
bec39cab
AC
12485fi
12486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12487echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12488echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12489
12490# Is the header present?
b4e70030
JB
12491echo "$as_me:$LINENO: checking $ac_header presence" >&5
12492echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12493cat >conftest.$ac_ext <<_ACEOF
12494/* confdefs.h. */
12495_ACEOF
12496cat confdefs.h >>conftest.$ac_ext
12497cat >>conftest.$ac_ext <<_ACEOF
12498/* end confdefs.h. */
12499#include <$ac_header>
12500_ACEOF
12501if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12503 ac_status=$?
12504 grep -v '^ *+' conftest.er1 >conftest.err
12505 rm -f conftest.er1
12506 cat conftest.err >&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } >/dev/null; then
12509 if test -s conftest.err; then
12510 ac_cpp_err=$ac_c_preproc_warn_flag
12511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12512 else
12513 ac_cpp_err=
12514 fi
9a156167 12515else
bec39cab 12516 ac_cpp_err=yes
9a156167 12517fi
bec39cab
AC
12518if test -z "$ac_cpp_err"; then
12519 ac_header_preproc=yes
12520else
12521 echo "$as_me: failed program was:" >&5
12522sed 's/^/| /' conftest.$ac_ext >&5
9a156167 12523
bec39cab 12524 ac_header_preproc=no
9a156167 12525fi
bec39cab 12526rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12527echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12528echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 12529
bec39cab
AC
12530# So? What about this header?
12531case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12532 yes:no: )
12533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12534echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12536echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12537 ac_header_preproc=yes
12538 ;;
12539 no:yes:* )
12540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12541echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12543echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12544 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12545echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12546 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12547echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12549echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12550 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12551echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12552 (
12553 cat <<\_ASBOX
12554## ------------------------------------------ ##
12555## Report this to the AC_PACKAGE_NAME lists. ##
12556## ------------------------------------------ ##
12557_ASBOX
12558 ) |
12559 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12560 ;;
12561esac
b4e70030
JB
12562echo "$as_me:$LINENO: checking for $ac_header" >&5
12563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12564if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12565 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 12566else
bec39cab 12567 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 12568fi
b4e70030
JB
12569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12570echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
12571
12572fi
bec39cab
AC
12573if test `eval echo '${'$as_ac_Header'}'` = yes; then
12574 cat >>confdefs.h <<_ACEOF
12575#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12576_ACEOF
9a156167 12577
bec39cab
AC
12578fi
12579
12580done
9a156167 12581
c890192f 12582
bec39cab
AC
12583for ac_header in stddef.h
12584do
12585as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12586if eval "test \"\${$as_ac_Header+set}\" = set"; then
12587 echo "$as_me:$LINENO: checking for $ac_header" >&5
12588echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12589if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12591fi
b4e70030
JB
12592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12593echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12594else
12595 # Is the header compilable?
b4e70030
JB
12596echo "$as_me:$LINENO: checking $ac_header usability" >&5
12597echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12598cat >conftest.$ac_ext <<_ACEOF
12599/* confdefs.h. */
12600_ACEOF
12601cat confdefs.h >>conftest.$ac_ext
12602cat >>conftest.$ac_ext <<_ACEOF
12603/* end confdefs.h. */
12604$ac_includes_default
12605#include <$ac_header>
12606_ACEOF
12607rm -f conftest.$ac_objext
12608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12609 (eval $ac_compile) 2>conftest.er1
12610 ac_status=$?
12611 grep -v '^ *+' conftest.er1 >conftest.err
12612 rm -f conftest.er1
12613 cat conftest.err >&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); } &&
b4e70030
JB
12616 { ac_try='test -z "$ac_c_werror_flag"
12617 || test ! -s conftest.err'
bec39cab
AC
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; } &&
12623 { ac_try='test -s conftest.$ac_objext'
12624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12625 (eval $ac_try) 2>&5
12626 ac_status=$?
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); }; }; then
12629 ac_header_compiler=yes
12630else
12631 echo "$as_me: failed program was:" >&5
12632sed 's/^/| /' conftest.$ac_ext >&5
12633
b4e70030 12634ac_header_compiler=no
bec39cab
AC
12635fi
12636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12637echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12638echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12639
12640# Is the header present?
b4e70030
JB
12641echo "$as_me:$LINENO: checking $ac_header presence" >&5
12642echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12643cat >conftest.$ac_ext <<_ACEOF
12644/* confdefs.h. */
12645_ACEOF
12646cat confdefs.h >>conftest.$ac_ext
12647cat >>conftest.$ac_ext <<_ACEOF
12648/* end confdefs.h. */
12649#include <$ac_header>
12650_ACEOF
12651if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12653 ac_status=$?
12654 grep -v '^ *+' conftest.er1 >conftest.err
12655 rm -f conftest.er1
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } >/dev/null; then
12659 if test -s conftest.err; then
12660 ac_cpp_err=$ac_c_preproc_warn_flag
12661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12662 else
12663 ac_cpp_err=
12664 fi
c890192f 12665else
bec39cab
AC
12666 ac_cpp_err=yes
12667fi
12668if test -z "$ac_cpp_err"; then
12669 ac_header_preproc=yes
c890192f 12670else
bec39cab
AC
12671 echo "$as_me: failed program was:" >&5
12672sed 's/^/| /' conftest.$ac_ext >&5
12673
12674 ac_header_preproc=no
c890192f 12675fi
bec39cab 12676rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12677echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12678echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12679
12680# So? What about this header?
12681case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12682 yes:no: )
12683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12684echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12686echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12687 ac_header_preproc=yes
12688 ;;
12689 no:yes:* )
12690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12691echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12693echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12695echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12697echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12699echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12701echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12702 (
12703 cat <<\_ASBOX
12704## ------------------------------------------ ##
12705## Report this to the AC_PACKAGE_NAME lists. ##
12706## ------------------------------------------ ##
12707_ASBOX
12708 ) |
12709 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12710 ;;
12711esac
b4e70030
JB
12712echo "$as_me:$LINENO: checking for $ac_header" >&5
12713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12714if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12715 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 12716else
bec39cab 12717 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 12718fi
b4e70030
JB
12719echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12720echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12721
c890192f 12722fi
bec39cab
AC
12723if test `eval echo '${'$as_ac_Header'}'` = yes; then
12724 cat >>confdefs.h <<_ACEOF
12725#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12726_ACEOF
c890192f 12727
c890192f
MK
12728fi
12729
bec39cab 12730done
9a156167 12731
bec39cab
AC
12732
12733for ac_header in stdlib.h
12734do
12735as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12736if eval "test \"\${$as_ac_Header+set}\" = set"; then
12737 echo "$as_me:$LINENO: checking for $ac_header" >&5
12738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12739if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12740 echo $ECHO_N "(cached) $ECHO_C" >&6
12741fi
b4e70030
JB
12742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12744else
12745 # Is the header compilable?
b4e70030
JB
12746echo "$as_me:$LINENO: checking $ac_header usability" >&5
12747echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12748cat >conftest.$ac_ext <<_ACEOF
12749/* confdefs.h. */
12750_ACEOF
12751cat confdefs.h >>conftest.$ac_ext
12752cat >>conftest.$ac_ext <<_ACEOF
12753/* end confdefs.h. */
12754$ac_includes_default
12755#include <$ac_header>
12756_ACEOF
12757rm -f conftest.$ac_objext
12758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12759 (eval $ac_compile) 2>conftest.er1
12760 ac_status=$?
12761 grep -v '^ *+' conftest.er1 >conftest.err
12762 rm -f conftest.er1
12763 cat conftest.err >&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); } &&
b4e70030
JB
12766 { ac_try='test -z "$ac_c_werror_flag"
12767 || test ! -s conftest.err'
bec39cab
AC
12768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769 (eval $ac_try) 2>&5
12770 ac_status=$?
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; } &&
12773 { ac_try='test -s conftest.$ac_objext'
12774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775 (eval $ac_try) 2>&5
12776 ac_status=$?
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); }; }; then
12779 ac_header_compiler=yes
12780else
12781 echo "$as_me: failed program was:" >&5
12782sed 's/^/| /' conftest.$ac_ext >&5
12783
b4e70030 12784ac_header_compiler=no
bec39cab
AC
12785fi
12786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12787echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12788echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12789
12790# Is the header present?
b4e70030
JB
12791echo "$as_me:$LINENO: checking $ac_header presence" >&5
12792echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12793cat >conftest.$ac_ext <<_ACEOF
12794/* confdefs.h. */
12795_ACEOF
12796cat confdefs.h >>conftest.$ac_ext
12797cat >>conftest.$ac_ext <<_ACEOF
12798/* end confdefs.h. */
12799#include <$ac_header>
12800_ACEOF
12801if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12803 ac_status=$?
12804 grep -v '^ *+' conftest.er1 >conftest.err
12805 rm -f conftest.er1
12806 cat conftest.err >&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } >/dev/null; then
12809 if test -s conftest.err; then
12810 ac_cpp_err=$ac_c_preproc_warn_flag
12811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12812 else
12813 ac_cpp_err=
12814 fi
9a156167 12815else
bec39cab
AC
12816 ac_cpp_err=yes
12817fi
12818if test -z "$ac_cpp_err"; then
12819 ac_header_preproc=yes
9a156167 12820else
bec39cab
AC
12821 echo "$as_me: failed program was:" >&5
12822sed 's/^/| /' conftest.$ac_ext >&5
12823
12824 ac_header_preproc=no
9a156167 12825fi
bec39cab 12826rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12827echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12828echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12829
12830# So? What about this header?
12831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12832 yes:no: )
12833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12834echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12836echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12837 ac_header_preproc=yes
12838 ;;
12839 no:yes:* )
12840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12841echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12843echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12844 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12845echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12846 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12847echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12849echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12850 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12851echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12852 (
12853 cat <<\_ASBOX
12854## ------------------------------------------ ##
12855## Report this to the AC_PACKAGE_NAME lists. ##
12856## ------------------------------------------ ##
12857_ASBOX
12858 ) |
12859 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12860 ;;
12861esac
b4e70030
JB
12862echo "$as_me:$LINENO: checking for $ac_header" >&5
12863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12864if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12865 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 12866else
bec39cab 12867 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 12868fi
b4e70030
JB
12869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12870echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12871
9a156167 12872fi
bec39cab
AC
12873if test `eval echo '${'$as_ac_Header'}'` = yes; then
12874 cat >>confdefs.h <<_ACEOF
12875#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12876_ACEOF
9a156167 12877
9a156167
MK
12878fi
12879
bec39cab
AC
12880done
12881
06825bd1 12882
06825bd1 12883
bec39cab
AC
12884
12885for ac_header in string.h memory.h strings.h
12886do
12887as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12888if eval "test \"\${$as_ac_Header+set}\" = set"; then
12889 echo "$as_me:$LINENO: checking for $ac_header" >&5
12890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12891if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12892 echo $ECHO_N "(cached) $ECHO_C" >&6
12893fi
b4e70030
JB
12894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12895echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12896else
12897 # Is the header compilable?
b4e70030
JB
12898echo "$as_me:$LINENO: checking $ac_header usability" >&5
12899echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12900cat >conftest.$ac_ext <<_ACEOF
12901/* confdefs.h. */
12902_ACEOF
12903cat confdefs.h >>conftest.$ac_ext
12904cat >>conftest.$ac_ext <<_ACEOF
12905/* end confdefs.h. */
12906$ac_includes_default
12907#include <$ac_header>
12908_ACEOF
12909rm -f conftest.$ac_objext
12910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12911 (eval $ac_compile) 2>conftest.er1
12912 ac_status=$?
12913 grep -v '^ *+' conftest.er1 >conftest.err
12914 rm -f conftest.er1
12915 cat conftest.err >&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); } &&
b4e70030
JB
12918 { ac_try='test -z "$ac_c_werror_flag"
12919 || test ! -s conftest.err'
bec39cab
AC
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12922 ac_status=$?
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; } &&
12925 { ac_try='test -s conftest.$ac_objext'
12926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927 (eval $ac_try) 2>&5
12928 ac_status=$?
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; }; then
12931 ac_header_compiler=yes
12932else
12933 echo "$as_me: failed program was:" >&5
12934sed 's/^/| /' conftest.$ac_ext >&5
12935
b4e70030 12936ac_header_compiler=no
bec39cab
AC
12937fi
12938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12939echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12940echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12941
12942# Is the header present?
b4e70030
JB
12943echo "$as_me:$LINENO: checking $ac_header presence" >&5
12944echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12945cat >conftest.$ac_ext <<_ACEOF
12946/* confdefs.h. */
12947_ACEOF
12948cat confdefs.h >>conftest.$ac_ext
12949cat >>conftest.$ac_ext <<_ACEOF
12950/* end confdefs.h. */
12951#include <$ac_header>
12952_ACEOF
12953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12955 ac_status=$?
12956 grep -v '^ *+' conftest.er1 >conftest.err
12957 rm -f conftest.er1
12958 cat conftest.err >&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } >/dev/null; then
12961 if test -s conftest.err; then
12962 ac_cpp_err=$ac_c_preproc_warn_flag
12963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12964 else
12965 ac_cpp_err=
12966 fi
06825bd1 12967else
bec39cab
AC
12968 ac_cpp_err=yes
12969fi
12970if test -z "$ac_cpp_err"; then
12971 ac_header_preproc=yes
06825bd1 12972else
bec39cab
AC
12973 echo "$as_me: failed program was:" >&5
12974sed 's/^/| /' conftest.$ac_ext >&5
12975
12976 ac_header_preproc=no
06825bd1 12977fi
bec39cab 12978rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12979echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12980echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12981
12982# So? What about this header?
12983case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12984 yes:no: )
12985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12986echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12988echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12989 ac_header_preproc=yes
12990 ;;
12991 no:yes:* )
12992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12993echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12995echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12997echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12999echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13001echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13003echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13004 (
13005 cat <<\_ASBOX
13006## ------------------------------------------ ##
13007## Report this to the AC_PACKAGE_NAME lists. ##
13008## ------------------------------------------ ##
13009_ASBOX
13010 ) |
13011 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13012 ;;
13013esac
b4e70030
JB
13014echo "$as_me:$LINENO: checking for $ac_header" >&5
13015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13016if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13017 echo $ECHO_N "(cached) $ECHO_C" >&6
13018else
13019 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 13020fi
b4e70030
JB
13021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13022echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 13023
06825bd1 13024fi
bec39cab
AC
13025if test `eval echo '${'$as_ac_Header'}'` = yes; then
13026 cat >>confdefs.h <<_ACEOF
13027#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13028_ACEOF
06825bd1 13029
06825bd1
MK
13030fi
13031
bec39cab 13032done
5ee754fc 13033
bec39cab
AC
13034
13035for ac_header in sys/fault.h
5ee754fc 13036do
bec39cab 13037as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13038if eval "test \"\${$as_ac_Header+set}\" = set"; then
13039 echo "$as_me:$LINENO: checking for $ac_header" >&5
13040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13041if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13043fi
b4e70030
JB
13044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13045echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13046else
13047 # Is the header compilable?
b4e70030
JB
13048echo "$as_me:$LINENO: checking $ac_header usability" >&5
13049echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13050cat >conftest.$ac_ext <<_ACEOF
13051/* confdefs.h. */
13052_ACEOF
13053cat confdefs.h >>conftest.$ac_ext
13054cat >>conftest.$ac_ext <<_ACEOF
13055/* end confdefs.h. */
13056$ac_includes_default
13057#include <$ac_header>
13058_ACEOF
13059rm -f conftest.$ac_objext
13060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13061 (eval $ac_compile) 2>conftest.er1
13062 ac_status=$?
13063 grep -v '^ *+' conftest.er1 >conftest.err
13064 rm -f conftest.er1
13065 cat conftest.err >&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); } &&
b4e70030
JB
13068 { ac_try='test -z "$ac_c_werror_flag"
13069 || test ! -s conftest.err'
bec39cab
AC
13070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071 (eval $ac_try) 2>&5
13072 ac_status=$?
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; } &&
13075 { ac_try='test -s conftest.$ac_objext'
13076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13077 (eval $ac_try) 2>&5
13078 ac_status=$?
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); }; }; then
13081 ac_header_compiler=yes
13082else
13083 echo "$as_me: failed program was:" >&5
13084sed 's/^/| /' conftest.$ac_ext >&5
13085
b4e70030 13086ac_header_compiler=no
bec39cab
AC
13087fi
13088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13089echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13090echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13091
13092# Is the header present?
b4e70030
JB
13093echo "$as_me:$LINENO: checking $ac_header presence" >&5
13094echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13095cat >conftest.$ac_ext <<_ACEOF
13096/* confdefs.h. */
13097_ACEOF
13098cat confdefs.h >>conftest.$ac_ext
13099cat >>conftest.$ac_ext <<_ACEOF
13100/* end confdefs.h. */
13101#include <$ac_header>
13102_ACEOF
13103if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13105 ac_status=$?
13106 grep -v '^ *+' conftest.er1 >conftest.err
13107 rm -f conftest.er1
13108 cat conftest.err >&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } >/dev/null; then
13111 if test -s conftest.err; then
13112 ac_cpp_err=$ac_c_preproc_warn_flag
13113 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13114 else
13115 ac_cpp_err=
13116 fi
5ee754fc 13117else
bec39cab 13118 ac_cpp_err=yes
5ee754fc 13119fi
bec39cab
AC
13120if test -z "$ac_cpp_err"; then
13121 ac_header_preproc=yes
13122else
13123 echo "$as_me: failed program was:" >&5
13124sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13125
bec39cab 13126 ac_header_preproc=no
5ee754fc 13127fi
bec39cab 13128rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13129echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13130echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
13131
13132# So? What about this header?
13133case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13134 yes:no: )
13135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13136echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13138echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13139 ac_header_preproc=yes
13140 ;;
13141 no:yes:* )
13142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13143echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13145echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13147echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13149echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13151echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13153echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13154 (
13155 cat <<\_ASBOX
13156## ------------------------------------------ ##
13157## Report this to the AC_PACKAGE_NAME lists. ##
13158## ------------------------------------------ ##
13159_ASBOX
13160 ) |
13161 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13162 ;;
13163esac
b4e70030
JB
13164echo "$as_me:$LINENO: checking for $ac_header" >&5
13165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13166if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13167 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 13168else
bec39cab 13169 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 13170fi
b4e70030
JB
13171echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13172echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 13173
5ee754fc 13174fi
bec39cab
AC
13175if test `eval echo '${'$as_ac_Header'}'` = yes; then
13176 cat >>confdefs.h <<_ACEOF
13177#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13178_ACEOF
c906108c 13179
5ee754fc 13180fi
bec39cab
AC
13181
13182done
13183
13184
13185for ac_header in sys/file.h
13186do
13187as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13188if eval "test \"\${$as_ac_Header+set}\" = set"; then
13189 echo "$as_me:$LINENO: checking for $ac_header" >&5
13190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13191if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
13193fi
b4e70030
JB
13194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13196else
13197 # Is the header compilable?
b4e70030
JB
13198echo "$as_me:$LINENO: checking $ac_header usability" >&5
13199echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13200cat >conftest.$ac_ext <<_ACEOF
13201/* confdefs.h. */
13202_ACEOF
13203cat confdefs.h >>conftest.$ac_ext
13204cat >>conftest.$ac_ext <<_ACEOF
13205/* end confdefs.h. */
13206$ac_includes_default
13207#include <$ac_header>
13208_ACEOF
13209rm -f conftest.$ac_objext
13210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13211 (eval $ac_compile) 2>conftest.er1
13212 ac_status=$?
13213 grep -v '^ *+' conftest.er1 >conftest.err
13214 rm -f conftest.er1
13215 cat conftest.err >&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } &&
b4e70030
JB
13218 { ac_try='test -z "$ac_c_werror_flag"
13219 || test ! -s conftest.err'
bec39cab
AC
13220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13221 (eval $ac_try) 2>&5
13222 ac_status=$?
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); }; } &&
13225 { ac_try='test -s conftest.$ac_objext'
13226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227 (eval $ac_try) 2>&5
13228 ac_status=$?
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; }; then
13231 ac_header_compiler=yes
13232else
13233 echo "$as_me: failed program was:" >&5
13234sed 's/^/| /' conftest.$ac_ext >&5
13235
b4e70030 13236ac_header_compiler=no
bec39cab
AC
13237fi
13238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13239echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13240echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13241
13242# Is the header present?
b4e70030
JB
13243echo "$as_me:$LINENO: checking $ac_header presence" >&5
13244echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13245cat >conftest.$ac_ext <<_ACEOF
13246/* confdefs.h. */
13247_ACEOF
13248cat confdefs.h >>conftest.$ac_ext
13249cat >>conftest.$ac_ext <<_ACEOF
13250/* end confdefs.h. */
13251#include <$ac_header>
13252_ACEOF
13253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13255 ac_status=$?
13256 grep -v '^ *+' conftest.er1 >conftest.err
13257 rm -f conftest.er1
13258 cat conftest.err >&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } >/dev/null; then
13261 if test -s conftest.err; then
13262 ac_cpp_err=$ac_c_preproc_warn_flag
13263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13264 else
13265 ac_cpp_err=
13266 fi
5ee754fc 13267else
bec39cab 13268 ac_cpp_err=yes
5ee754fc 13269fi
bec39cab
AC
13270if test -z "$ac_cpp_err"; then
13271 ac_header_preproc=yes
13272else
13273 echo "$as_me: failed program was:" >&5
13274sed 's/^/| /' conftest.$ac_ext >&5
c906108c 13275
bec39cab 13276 ac_header_preproc=no
5ee754fc 13277fi
bec39cab 13278rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13279echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13280echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 13281
bec39cab
AC
13282# So? What about this header?
13283case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13284 yes:no: )
13285 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13286echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13288echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13289 ac_header_preproc=yes
13290 ;;
13291 no:yes:* )
13292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13293echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13295echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13296 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13297echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13298 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13299echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13301echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13302 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13303echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13304 (
13305 cat <<\_ASBOX
13306## ------------------------------------------ ##
13307## Report this to the AC_PACKAGE_NAME lists. ##
13308## ------------------------------------------ ##
13309_ASBOX
13310 ) |
13311 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13312 ;;
13313esac
b4e70030
JB
13314echo "$as_me:$LINENO: checking for $ac_header" >&5
13315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13316if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13317 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 13318else
bec39cab
AC
13319 eval "$as_ac_Header=\$ac_header_preproc"
13320fi
b4e70030
JB
13321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13322echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 13323
bec39cab
AC
13324fi
13325if test `eval echo '${'$as_ac_Header'}'` = yes; then
13326 cat >>confdefs.h <<_ACEOF
13327#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13328_ACEOF
5ee754fc 13329
bec39cab 13330fi
5ee754fc 13331
bec39cab 13332done
5ee754fc 13333
5ee754fc 13334
bec39cab
AC
13335for ac_header in sys/filio.h
13336do
13337as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13338if eval "test \"\${$as_ac_Header+set}\" = set"; then
13339 echo "$as_me:$LINENO: checking for $ac_header" >&5
13340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13341if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13342 echo $ECHO_N "(cached) $ECHO_C" >&6
13343fi
b4e70030
JB
13344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13345echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13346else
13347 # Is the header compilable?
b4e70030
JB
13348echo "$as_me:$LINENO: checking $ac_header usability" >&5
13349echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13350cat >conftest.$ac_ext <<_ACEOF
13351/* confdefs.h. */
13352_ACEOF
13353cat confdefs.h >>conftest.$ac_ext
13354cat >>conftest.$ac_ext <<_ACEOF
13355/* end confdefs.h. */
13356$ac_includes_default
13357#include <$ac_header>
13358_ACEOF
13359rm -f conftest.$ac_objext
13360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13361 (eval $ac_compile) 2>conftest.er1
13362 ac_status=$?
13363 grep -v '^ *+' conftest.er1 >conftest.err
13364 rm -f conftest.er1
13365 cat conftest.err >&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } &&
b4e70030
JB
13368 { ac_try='test -z "$ac_c_werror_flag"
13369 || test ! -s conftest.err'
bec39cab
AC
13370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371 (eval $ac_try) 2>&5
13372 ac_status=$?
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }; } &&
13375 { ac_try='test -s conftest.$ac_objext'
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13378 ac_status=$?
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; }; then
13381 ac_header_compiler=yes
13382else
13383 echo "$as_me: failed program was:" >&5
13384sed 's/^/| /' conftest.$ac_ext >&5
13385
b4e70030 13386ac_header_compiler=no
bec39cab
AC
13387fi
13388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13389echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13390echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13391
13392# Is the header present?
b4e70030
JB
13393echo "$as_me:$LINENO: checking $ac_header presence" >&5
13394echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13395cat >conftest.$ac_ext <<_ACEOF
13396/* confdefs.h. */
13397_ACEOF
13398cat confdefs.h >>conftest.$ac_ext
13399cat >>conftest.$ac_ext <<_ACEOF
13400/* end confdefs.h. */
13401#include <$ac_header>
13402_ACEOF
13403if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13405 ac_status=$?
13406 grep -v '^ *+' conftest.er1 >conftest.err
13407 rm -f conftest.er1
13408 cat conftest.err >&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); } >/dev/null; then
13411 if test -s conftest.err; then
13412 ac_cpp_err=$ac_c_preproc_warn_flag
13413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13414 else
13415 ac_cpp_err=
13416 fi
5ee754fc 13417else
bec39cab 13418 ac_cpp_err=yes
5ee754fc 13419fi
bec39cab
AC
13420if test -z "$ac_cpp_err"; then
13421 ac_header_preproc=yes
13422else
13423 echo "$as_me: failed program was:" >&5
13424sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13425
bec39cab 13426 ac_header_preproc=no
5ee754fc 13427fi
bec39cab 13428rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13429echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13430echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 13431
bec39cab
AC
13432# So? What about this header?
13433case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13434 yes:no: )
13435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13436echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13438echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13439 ac_header_preproc=yes
13440 ;;
13441 no:yes:* )
13442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13443echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13445echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13447echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13449echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13451echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13453echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13454 (
13455 cat <<\_ASBOX
13456## ------------------------------------------ ##
13457## Report this to the AC_PACKAGE_NAME lists. ##
13458## ------------------------------------------ ##
13459_ASBOX
13460 ) |
13461 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13462 ;;
13463esac
b4e70030
JB
13464echo "$as_me:$LINENO: checking for $ac_header" >&5
13465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13466if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13467 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 13468else
bec39cab 13469 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 13470fi
b4e70030
JB
13471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 13473
5ee754fc 13474fi
bec39cab
AC
13475if test `eval echo '${'$as_ac_Header'}'` = yes; then
13476 cat >>confdefs.h <<_ACEOF
13477#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13478_ACEOF
5ee754fc
MK
13479
13480fi
13481
bec39cab
AC
13482done
13483
13484
13485for ac_header in sys/ioctl.h
13486do
13487as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13488if eval "test \"\${$as_ac_Header+set}\" = set"; then
13489 echo "$as_me:$LINENO: checking for $ac_header" >&5
13490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13491if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13493fi
b4e70030
JB
13494echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13495echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13496else
13497 # Is the header compilable?
b4e70030
JB
13498echo "$as_me:$LINENO: checking $ac_header usability" >&5
13499echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13500cat >conftest.$ac_ext <<_ACEOF
13501/* confdefs.h. */
13502_ACEOF
13503cat confdefs.h >>conftest.$ac_ext
13504cat >>conftest.$ac_ext <<_ACEOF
13505/* end confdefs.h. */
13506$ac_includes_default
13507#include <$ac_header>
13508_ACEOF
13509rm -f conftest.$ac_objext
13510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13511 (eval $ac_compile) 2>conftest.er1
13512 ac_status=$?
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
b4e70030
JB
13518 { ac_try='test -z "$ac_c_werror_flag"
13519 || test ! -s conftest.err'
bec39cab
AC
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13522 ac_status=$?
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; } &&
13525 { ac_try='test -s conftest.$ac_objext'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 ac_header_compiler=yes
13532else
13533 echo "$as_me: failed program was:" >&5
13534sed 's/^/| /' conftest.$ac_ext >&5
13535
b4e70030 13536ac_header_compiler=no
bec39cab
AC
13537fi
13538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13539echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13540echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13541
13542# Is the header present?
b4e70030
JB
13543echo "$as_me:$LINENO: checking $ac_header presence" >&5
13544echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13545cat >conftest.$ac_ext <<_ACEOF
13546/* confdefs.h. */
13547_ACEOF
13548cat confdefs.h >>conftest.$ac_ext
13549cat >>conftest.$ac_ext <<_ACEOF
13550/* end confdefs.h. */
13551#include <$ac_header>
13552_ACEOF
13553if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13555 ac_status=$?
13556 grep -v '^ *+' conftest.er1 >conftest.err
13557 rm -f conftest.er1
13558 cat conftest.err >&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } >/dev/null; then
13561 if test -s conftest.err; then
13562 ac_cpp_err=$ac_c_preproc_warn_flag
13563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13564 else
13565 ac_cpp_err=
13566 fi
5ee754fc 13567else
bec39cab 13568 ac_cpp_err=yes
5ee754fc 13569fi
bec39cab
AC
13570if test -z "$ac_cpp_err"; then
13571 ac_header_preproc=yes
13572else
13573 echo "$as_me: failed program was:" >&5
13574sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13575
bec39cab 13576 ac_header_preproc=no
5ee754fc 13577fi
bec39cab 13578rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13579echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13580echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 13581
bec39cab
AC
13582# So? What about this header?
13583case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13584 yes:no: )
13585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13586echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13588echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13589 ac_header_preproc=yes
13590 ;;
13591 no:yes:* )
13592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13593echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13595echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13597echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13599echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13601echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13603echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13604 (
13605 cat <<\_ASBOX
13606## ------------------------------------------ ##
13607## Report this to the AC_PACKAGE_NAME lists. ##
13608## ------------------------------------------ ##
13609_ASBOX
13610 ) |
13611 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13612 ;;
13613esac
b4e70030
JB
13614echo "$as_me:$LINENO: checking for $ac_header" >&5
13615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13616if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13617 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 13618else
bec39cab 13619 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 13620fi
b4e70030
JB
13621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13622echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
13623
13624fi
bec39cab
AC
13625if test `eval echo '${'$as_ac_Header'}'` = yes; then
13626 cat >>confdefs.h <<_ACEOF
13627#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13628_ACEOF
13629
5ee754fc
MK
13630fi
13631
bec39cab 13632done
5ee754fc 13633
5ee754fc 13634
bec39cab 13635for ac_header in sys/param.h
5ee754fc 13636do
bec39cab 13637as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13638if eval "test \"\${$as_ac_Header+set}\" = set"; then
13639 echo "$as_me:$LINENO: checking for $ac_header" >&5
13640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13641if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13642 echo $ECHO_N "(cached) $ECHO_C" >&6
13643fi
b4e70030
JB
13644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13645echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13646else
13647 # Is the header compilable?
b4e70030
JB
13648echo "$as_me:$LINENO: checking $ac_header usability" >&5
13649echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13650cat >conftest.$ac_ext <<_ACEOF
13651/* confdefs.h. */
13652_ACEOF
13653cat confdefs.h >>conftest.$ac_ext
13654cat >>conftest.$ac_ext <<_ACEOF
13655/* end confdefs.h. */
13656$ac_includes_default
13657#include <$ac_header>
13658_ACEOF
13659rm -f conftest.$ac_objext
13660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13661 (eval $ac_compile) 2>conftest.er1
13662 ac_status=$?
13663 grep -v '^ *+' conftest.er1 >conftest.err
13664 rm -f conftest.er1
13665 cat conftest.err >&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); } &&
b4e70030
JB
13668 { ac_try='test -z "$ac_c_werror_flag"
13669 || test ! -s conftest.err'
bec39cab
AC
13670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671 (eval $ac_try) 2>&5
13672 ac_status=$?
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; } &&
13675 { ac_try='test -s conftest.$ac_objext'
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13678 ac_status=$?
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13681 ac_header_compiler=yes
13682else
13683 echo "$as_me: failed program was:" >&5
13684sed 's/^/| /' conftest.$ac_ext >&5
13685
b4e70030 13686ac_header_compiler=no
bec39cab
AC
13687fi
13688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13689echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13690echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13691
13692# Is the header present?
b4e70030
JB
13693echo "$as_me:$LINENO: checking $ac_header presence" >&5
13694echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13695cat >conftest.$ac_ext <<_ACEOF
13696/* confdefs.h. */
13697_ACEOF
13698cat confdefs.h >>conftest.$ac_ext
13699cat >>conftest.$ac_ext <<_ACEOF
13700/* end confdefs.h. */
13701#include <$ac_header>
13702_ACEOF
13703if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13705 ac_status=$?
13706 grep -v '^ *+' conftest.er1 >conftest.err
13707 rm -f conftest.er1
13708 cat conftest.err >&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); } >/dev/null; then
13711 if test -s conftest.err; then
13712 ac_cpp_err=$ac_c_preproc_warn_flag
13713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13714 else
13715 ac_cpp_err=
13716 fi
5ee754fc 13717else
bec39cab 13718 ac_cpp_err=yes
5ee754fc 13719fi
bec39cab
AC
13720if test -z "$ac_cpp_err"; then
13721 ac_header_preproc=yes
13722else
13723 echo "$as_me: failed program was:" >&5
13724sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13725
bec39cab 13726 ac_header_preproc=no
5ee754fc 13727fi
bec39cab 13728rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13729echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13730echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
13731
13732# So? What about this header?
13733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13734 yes:no: )
13735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13736echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13738echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13739 ac_header_preproc=yes
13740 ;;
13741 no:yes:* )
13742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13743echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13745echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13747echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13749echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13751echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13753echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13754 (
13755 cat <<\_ASBOX
13756## ------------------------------------------ ##
13757## Report this to the AC_PACKAGE_NAME lists. ##
13758## ------------------------------------------ ##
13759_ASBOX
13760 ) |
13761 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13762 ;;
13763esac
b4e70030
JB
13764echo "$as_me:$LINENO: checking for $ac_header" >&5
13765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13766if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13767 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 13768else
bec39cab 13769 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 13770fi
b4e70030
JB
13771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13772echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 13773
5ee754fc 13774fi
bec39cab
AC
13775if test `eval echo '${'$as_ac_Header'}'` = yes; then
13776 cat >>confdefs.h <<_ACEOF
13777#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13778_ACEOF
13779
5ee754fc 13780fi
bec39cab 13781
5ee754fc
MK
13782done
13783
bec39cab 13784
7eb368b3
NR
13785for ac_header in sys/resource.h
13786do
13787as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13788if eval "test \"\${$as_ac_Header+set}\" = set"; then
13789 echo "$as_me:$LINENO: checking for $ac_header" >&5
13790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13791if eval "test \"\${$as_ac_Header+set}\" = set"; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13793fi
13794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13796else
13797 # Is the header compilable?
13798echo "$as_me:$LINENO: checking $ac_header usability" >&5
13799echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13800cat >conftest.$ac_ext <<_ACEOF
13801/* confdefs.h. */
13802_ACEOF
13803cat confdefs.h >>conftest.$ac_ext
13804cat >>conftest.$ac_ext <<_ACEOF
13805/* end confdefs.h. */
13806$ac_includes_default
13807#include <$ac_header>
13808_ACEOF
13809rm -f conftest.$ac_objext
13810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13811 (eval $ac_compile) 2>conftest.er1
13812 ac_status=$?
13813 grep -v '^ *+' conftest.er1 >conftest.err
13814 rm -f conftest.er1
13815 cat conftest.err >&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } &&
13818 { ac_try='test -z "$ac_c_werror_flag"
13819 || test ! -s conftest.err'
13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13822 ac_status=$?
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; } &&
13825 { ac_try='test -s conftest.$ac_objext'
13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827 (eval $ac_try) 2>&5
13828 ac_status=$?
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; }; then
13831 ac_header_compiler=yes
13832else
13833 echo "$as_me: failed program was:" >&5
13834sed 's/^/| /' conftest.$ac_ext >&5
13835
13836ac_header_compiler=no
13837fi
13838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13839echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13840echo "${ECHO_T}$ac_header_compiler" >&6
13841
13842# Is the header present?
13843echo "$as_me:$LINENO: checking $ac_header presence" >&5
13844echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13845cat >conftest.$ac_ext <<_ACEOF
13846/* confdefs.h. */
13847_ACEOF
13848cat confdefs.h >>conftest.$ac_ext
13849cat >>conftest.$ac_ext <<_ACEOF
13850/* end confdefs.h. */
13851#include <$ac_header>
13852_ACEOF
13853if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13855 ac_status=$?
13856 grep -v '^ *+' conftest.er1 >conftest.err
13857 rm -f conftest.er1
13858 cat conftest.err >&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); } >/dev/null; then
13861 if test -s conftest.err; then
13862 ac_cpp_err=$ac_c_preproc_warn_flag
13863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13864 else
13865 ac_cpp_err=
13866 fi
13867else
13868 ac_cpp_err=yes
13869fi
13870if test -z "$ac_cpp_err"; then
13871 ac_header_preproc=yes
13872else
13873 echo "$as_me: failed program was:" >&5
13874sed 's/^/| /' conftest.$ac_ext >&5
13875
13876 ac_header_preproc=no
13877fi
13878rm -f conftest.err conftest.$ac_ext
13879echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13880echo "${ECHO_T}$ac_header_preproc" >&6
13881
13882# So? What about this header?
13883case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13884 yes:no: )
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13886echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13888echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13889 ac_header_preproc=yes
13890 ;;
13891 no:yes:* )
13892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13893echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13895echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13897echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13899echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13901echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13903echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13904 (
13905 cat <<\_ASBOX
13906## ------------------------------------------ ##
13907## Report this to the AC_PACKAGE_NAME lists. ##
13908## ------------------------------------------ ##
13909_ASBOX
13910 ) |
13911 sed "s/^/$as_me: WARNING: /" >&2
13912 ;;
13913esac
13914echo "$as_me:$LINENO: checking for $ac_header" >&5
13915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13916if eval "test \"\${$as_ac_Header+set}\" = set"; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13918else
13919 eval "$as_ac_Header=\$ac_header_preproc"
13920fi
13921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13922echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13923
13924fi
13925if test `eval echo '${'$as_ac_Header'}'` = yes; then
13926 cat >>confdefs.h <<_ACEOF
13927#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13928_ACEOF
13929
13930fi
13931
13932done
13933
13934
bec39cab 13935for ac_header in sys/proc.h
5ee754fc 13936do
bec39cab 13937as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13938echo "$as_me:$LINENO: checking for $ac_header" >&5
13939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13940if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13941 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 13942else
7cb9022a 13943 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
13944/* confdefs.h. */
13945_ACEOF
13946cat confdefs.h >>conftest.$ac_ext
13947cat >>conftest.$ac_ext <<_ACEOF
13948/* end confdefs.h. */
7cb9022a
MK
13949#if HAVE_SYS_PARAM_H
13950# include <sys/param.h>
13951#endif
13952
13953
bec39cab
AC
13954#include <$ac_header>
13955_ACEOF
13956rm -f conftest.$ac_objext
13957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13958 (eval $ac_compile) 2>conftest.er1
13959 ac_status=$?
13960 grep -v '^ *+' conftest.er1 >conftest.err
13961 rm -f conftest.er1
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
b4e70030
JB
13965 { ac_try='test -z "$ac_c_werror_flag"
13966 || test ! -s conftest.err'
bec39cab
AC
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } &&
13972 { ac_try='test -s conftest.$ac_objext'
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13975 ac_status=$?
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; }; then
7cb9022a 13978 eval "$as_ac_Header=yes"
bec39cab
AC
13979else
13980 echo "$as_me: failed program was:" >&5
13981sed 's/^/| /' conftest.$ac_ext >&5
13982
b4e70030 13983eval "$as_ac_Header=no"
bec39cab
AC
13984fi
13985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 13986fi
b4e70030
JB
13987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13988echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13989if test `eval echo '${'$as_ac_Header'}'` = yes; then
13990 cat >>confdefs.h <<_ACEOF
13991#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13992_ACEOF
13993
5ee754fc 13994fi
bec39cab 13995
5ee754fc
MK
13996done
13997
bec39cab
AC
13998
13999for ac_header in sys/procfs.h
5ee754fc 14000do
bec39cab 14001as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14002if eval "test \"\${$as_ac_Header+set}\" = set"; then
14003 echo "$as_me:$LINENO: checking for $ac_header" >&5
14004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14005if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14007fi
b4e70030
JB
14008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14009echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14010else
14011 # Is the header compilable?
b4e70030
JB
14012echo "$as_me:$LINENO: checking $ac_header usability" >&5
14013echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14014cat >conftest.$ac_ext <<_ACEOF
14015/* confdefs.h. */
14016_ACEOF
14017cat confdefs.h >>conftest.$ac_ext
14018cat >>conftest.$ac_ext <<_ACEOF
14019/* end confdefs.h. */
14020$ac_includes_default
14021#include <$ac_header>
14022_ACEOF
14023rm -f conftest.$ac_objext
14024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14025 (eval $ac_compile) 2>conftest.er1
14026 ac_status=$?
14027 grep -v '^ *+' conftest.er1 >conftest.err
14028 rm -f conftest.er1
14029 cat conftest.err >&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } &&
b4e70030
JB
14032 { ac_try='test -z "$ac_c_werror_flag"
14033 || test ! -s conftest.err'
bec39cab
AC
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14036 ac_status=$?
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; } &&
14039 { ac_try='test -s conftest.$ac_objext'
14040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041 (eval $ac_try) 2>&5
14042 ac_status=$?
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; }; then
14045 ac_header_compiler=yes
14046else
14047 echo "$as_me: failed program was:" >&5
14048sed 's/^/| /' conftest.$ac_ext >&5
14049
b4e70030 14050ac_header_compiler=no
bec39cab
AC
14051fi
14052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14053echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14054echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14055
14056# Is the header present?
b4e70030
JB
14057echo "$as_me:$LINENO: checking $ac_header presence" >&5
14058echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14059cat >conftest.$ac_ext <<_ACEOF
14060/* confdefs.h. */
14061_ACEOF
14062cat confdefs.h >>conftest.$ac_ext
14063cat >>conftest.$ac_ext <<_ACEOF
14064/* end confdefs.h. */
14065#include <$ac_header>
14066_ACEOF
14067if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14069 ac_status=$?
14070 grep -v '^ *+' conftest.er1 >conftest.err
14071 rm -f conftest.er1
14072 cat conftest.err >&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } >/dev/null; then
14075 if test -s conftest.err; then
14076 ac_cpp_err=$ac_c_preproc_warn_flag
14077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14078 else
14079 ac_cpp_err=
14080 fi
14081else
14082 ac_cpp_err=yes
5ee754fc 14083fi
bec39cab
AC
14084if test -z "$ac_cpp_err"; then
14085 ac_header_preproc=yes
5ee754fc 14086else
bec39cab
AC
14087 echo "$as_me: failed program was:" >&5
14088sed 's/^/| /' conftest.$ac_ext >&5
14089
14090 ac_header_preproc=no
5ee754fc 14091fi
bec39cab 14092rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14093echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14094echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14095
bec39cab
AC
14096# So? What about this header?
14097case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14098 yes:no: )
14099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14100echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14102echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14103 ac_header_preproc=yes
14104 ;;
14105 no:yes:* )
14106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14107echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14109echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14111echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14113echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14115echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14117echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14118 (
14119 cat <<\_ASBOX
14120## ------------------------------------------ ##
14121## Report this to the AC_PACKAGE_NAME lists. ##
14122## ------------------------------------------ ##
14123_ASBOX
14124 ) |
14125 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14126 ;;
14127esac
b4e70030
JB
14128echo "$as_me:$LINENO: checking for $ac_header" >&5
14129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14130if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14132else
14133 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14134fi
b4e70030
JB
14135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14136echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14137
5ee754fc 14138fi
bec39cab
AC
14139if test `eval echo '${'$as_ac_Header'}'` = yes; then
14140 cat >>confdefs.h <<_ACEOF
14141#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14142_ACEOF
14143
5ee754fc 14144fi
bec39cab 14145
5ee754fc
MK
14146done
14147
bec39cab
AC
14148
14149
14150for ac_header in sys/ptrace.h ptrace.h
5ee754fc 14151do
bec39cab 14152as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14153if eval "test \"\${$as_ac_Header+set}\" = set"; then
14154 echo "$as_me:$LINENO: checking for $ac_header" >&5
14155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14156if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14158fi
b4e70030
JB
14159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14160echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14161else
14162 # Is the header compilable?
b4e70030
JB
14163echo "$as_me:$LINENO: checking $ac_header usability" >&5
14164echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14165cat >conftest.$ac_ext <<_ACEOF
14166/* confdefs.h. */
14167_ACEOF
14168cat confdefs.h >>conftest.$ac_ext
14169cat >>conftest.$ac_ext <<_ACEOF
14170/* end confdefs.h. */
14171$ac_includes_default
14172#include <$ac_header>
14173_ACEOF
14174rm -f conftest.$ac_objext
14175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14176 (eval $ac_compile) 2>conftest.er1
14177 ac_status=$?
14178 grep -v '^ *+' conftest.er1 >conftest.err
14179 rm -f conftest.er1
14180 cat conftest.err >&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } &&
b4e70030
JB
14183 { ac_try='test -z "$ac_c_werror_flag"
14184 || test ! -s conftest.err'
bec39cab
AC
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14187 ac_status=$?
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; } &&
14190 { ac_try='test -s conftest.$ac_objext'
14191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192 (eval $ac_try) 2>&5
14193 ac_status=$?
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; }; then
14196 ac_header_compiler=yes
14197else
14198 echo "$as_me: failed program was:" >&5
14199sed 's/^/| /' conftest.$ac_ext >&5
14200
b4e70030 14201ac_header_compiler=no
bec39cab
AC
14202fi
14203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14204echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14205echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14206
14207# Is the header present?
b4e70030
JB
14208echo "$as_me:$LINENO: checking $ac_header presence" >&5
14209echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14210cat >conftest.$ac_ext <<_ACEOF
14211/* confdefs.h. */
14212_ACEOF
14213cat confdefs.h >>conftest.$ac_ext
14214cat >>conftest.$ac_ext <<_ACEOF
14215/* end confdefs.h. */
14216#include <$ac_header>
14217_ACEOF
14218if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14220 ac_status=$?
14221 grep -v '^ *+' conftest.er1 >conftest.err
14222 rm -f conftest.er1
14223 cat conftest.err >&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); } >/dev/null; then
14226 if test -s conftest.err; then
14227 ac_cpp_err=$ac_c_preproc_warn_flag
14228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14229 else
14230 ac_cpp_err=
14231 fi
14232else
14233 ac_cpp_err=yes
5ee754fc 14234fi
bec39cab
AC
14235if test -z "$ac_cpp_err"; then
14236 ac_header_preproc=yes
5ee754fc 14237else
bec39cab
AC
14238 echo "$as_me: failed program was:" >&5
14239sed 's/^/| /' conftest.$ac_ext >&5
14240
14241 ac_header_preproc=no
5ee754fc 14242fi
bec39cab 14243rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14244echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14245echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14246
bec39cab
AC
14247# So? What about this header?
14248case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14249 yes:no: )
14250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14251echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14253echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14254 ac_header_preproc=yes
14255 ;;
14256 no:yes:* )
14257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14258echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14260echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14262echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14264echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14266echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14268echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14269 (
14270 cat <<\_ASBOX
14271## ------------------------------------------ ##
14272## Report this to the AC_PACKAGE_NAME lists. ##
14273## ------------------------------------------ ##
14274_ASBOX
14275 ) |
14276 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14277 ;;
14278esac
b4e70030
JB
14279echo "$as_me:$LINENO: checking for $ac_header" >&5
14280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14281if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14282 echo $ECHO_N "(cached) $ECHO_C" >&6
14283else
14284 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14285fi
b4e70030
JB
14286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14287echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14288
5ee754fc 14289fi
bec39cab
AC
14290if test `eval echo '${'$as_ac_Header'}'` = yes; then
14291 cat >>confdefs.h <<_ACEOF
14292#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14293_ACEOF
14294
5ee754fc 14295fi
bec39cab 14296
5ee754fc
MK
14297done
14298
bec39cab
AC
14299
14300
14301for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 14302do
bec39cab 14303as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14304if eval "test \"\${$as_ac_Header+set}\" = set"; then
14305 echo "$as_me:$LINENO: checking for $ac_header" >&5
14306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14307if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14308 echo $ECHO_N "(cached) $ECHO_C" >&6
14309fi
b4e70030
JB
14310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14312else
14313 # Is the header compilable?
b4e70030
JB
14314echo "$as_me:$LINENO: checking $ac_header usability" >&5
14315echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14316cat >conftest.$ac_ext <<_ACEOF
14317/* confdefs.h. */
14318_ACEOF
14319cat confdefs.h >>conftest.$ac_ext
14320cat >>conftest.$ac_ext <<_ACEOF
14321/* end confdefs.h. */
14322$ac_includes_default
14323#include <$ac_header>
14324_ACEOF
14325rm -f conftest.$ac_objext
14326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14327 (eval $ac_compile) 2>conftest.er1
14328 ac_status=$?
14329 grep -v '^ *+' conftest.er1 >conftest.err
14330 rm -f conftest.er1
14331 cat conftest.err >&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); } &&
b4e70030
JB
14334 { ac_try='test -z "$ac_c_werror_flag"
14335 || test ! -s conftest.err'
bec39cab
AC
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14338 ac_status=$?
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; } &&
14341 { ac_try='test -s conftest.$ac_objext'
14342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343 (eval $ac_try) 2>&5
14344 ac_status=$?
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); }; }; then
14347 ac_header_compiler=yes
14348else
14349 echo "$as_me: failed program was:" >&5
14350sed 's/^/| /' conftest.$ac_ext >&5
14351
b4e70030 14352ac_header_compiler=no
bec39cab
AC
14353fi
14354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14355echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14356echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14357
14358# Is the header present?
b4e70030
JB
14359echo "$as_me:$LINENO: checking $ac_header presence" >&5
14360echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14361cat >conftest.$ac_ext <<_ACEOF
14362/* confdefs.h. */
14363_ACEOF
14364cat confdefs.h >>conftest.$ac_ext
14365cat >>conftest.$ac_ext <<_ACEOF
14366/* end confdefs.h. */
14367#include <$ac_header>
14368_ACEOF
14369if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14371 ac_status=$?
14372 grep -v '^ *+' conftest.er1 >conftest.err
14373 rm -f conftest.er1
14374 cat conftest.err >&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } >/dev/null; then
14377 if test -s conftest.err; then
14378 ac_cpp_err=$ac_c_preproc_warn_flag
14379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14380 else
14381 ac_cpp_err=
14382 fi
14383else
14384 ac_cpp_err=yes
5ee754fc 14385fi
bec39cab
AC
14386if test -z "$ac_cpp_err"; then
14387 ac_header_preproc=yes
5ee754fc 14388else
bec39cab
AC
14389 echo "$as_me: failed program was:" >&5
14390sed 's/^/| /' conftest.$ac_ext >&5
14391
14392 ac_header_preproc=no
5ee754fc 14393fi
bec39cab 14394rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14395echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14396echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14397
bec39cab
AC
14398# So? What about this header?
14399case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14400 yes:no: )
14401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14402echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14404echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14405 ac_header_preproc=yes
14406 ;;
14407 no:yes:* )
14408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14409echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14411echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14413echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14415echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14417echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14419echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14420 (
14421 cat <<\_ASBOX
14422## ------------------------------------------ ##
14423## Report this to the AC_PACKAGE_NAME lists. ##
14424## ------------------------------------------ ##
14425_ASBOX
14426 ) |
14427 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14428 ;;
14429esac
b4e70030
JB
14430echo "$as_me:$LINENO: checking for $ac_header" >&5
14431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14432if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14433 echo $ECHO_N "(cached) $ECHO_C" >&6
14434else
14435 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14436fi
b4e70030
JB
14437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14439
5ee754fc 14440fi
bec39cab
AC
14441if test `eval echo '${'$as_ac_Header'}'` = yes; then
14442 cat >>confdefs.h <<_ACEOF
14443#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14444_ACEOF
14445
5ee754fc 14446fi
bec39cab 14447
5ee754fc
MK
14448done
14449
bec39cab
AC
14450
14451for ac_header in sys/select.h
5ee754fc 14452do
bec39cab 14453as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14454if eval "test \"\${$as_ac_Header+set}\" = set"; then
14455 echo "$as_me:$LINENO: checking for $ac_header" >&5
14456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14457if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14458 echo $ECHO_N "(cached) $ECHO_C" >&6
14459fi
b4e70030
JB
14460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14462else
14463 # Is the header compilable?
b4e70030
JB
14464echo "$as_me:$LINENO: checking $ac_header usability" >&5
14465echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14466cat >conftest.$ac_ext <<_ACEOF
14467/* confdefs.h. */
14468_ACEOF
14469cat confdefs.h >>conftest.$ac_ext
14470cat >>conftest.$ac_ext <<_ACEOF
14471/* end confdefs.h. */
14472$ac_includes_default
14473#include <$ac_header>
14474_ACEOF
14475rm -f conftest.$ac_objext
14476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14477 (eval $ac_compile) 2>conftest.er1
14478 ac_status=$?
14479 grep -v '^ *+' conftest.er1 >conftest.err
14480 rm -f conftest.er1
14481 cat conftest.err >&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } &&
b4e70030
JB
14484 { ac_try='test -z "$ac_c_werror_flag"
14485 || test ! -s conftest.err'
bec39cab
AC
14486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14488 ac_status=$?
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; } &&
14491 { ac_try='test -s conftest.$ac_objext'
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14494 ac_status=$?
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; }; then
14497 ac_header_compiler=yes
14498else
14499 echo "$as_me: failed program was:" >&5
14500sed 's/^/| /' conftest.$ac_ext >&5
14501
b4e70030 14502ac_header_compiler=no
bec39cab
AC
14503fi
14504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14505echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14506echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14507
14508# Is the header present?
b4e70030
JB
14509echo "$as_me:$LINENO: checking $ac_header presence" >&5
14510echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14511cat >conftest.$ac_ext <<_ACEOF
14512/* confdefs.h. */
14513_ACEOF
14514cat confdefs.h >>conftest.$ac_ext
14515cat >>conftest.$ac_ext <<_ACEOF
14516/* end confdefs.h. */
14517#include <$ac_header>
14518_ACEOF
14519if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14521 ac_status=$?
14522 grep -v '^ *+' conftest.er1 >conftest.err
14523 rm -f conftest.er1
14524 cat conftest.err >&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); } >/dev/null; then
14527 if test -s conftest.err; then
14528 ac_cpp_err=$ac_c_preproc_warn_flag
14529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14530 else
14531 ac_cpp_err=
14532 fi
14533else
14534 ac_cpp_err=yes
5ee754fc 14535fi
bec39cab
AC
14536if test -z "$ac_cpp_err"; then
14537 ac_header_preproc=yes
5ee754fc 14538else
bec39cab
AC
14539 echo "$as_me: failed program was:" >&5
14540sed 's/^/| /' conftest.$ac_ext >&5
14541
14542 ac_header_preproc=no
5ee754fc 14543fi
bec39cab 14544rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14545echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14546echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14547
bec39cab
AC
14548# So? What about this header?
14549case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14550 yes:no: )
14551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14552echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14554echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14555 ac_header_preproc=yes
14556 ;;
14557 no:yes:* )
14558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14559echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14561echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14562 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14563echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14564 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14565echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14567echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14568 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14569echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14570 (
14571 cat <<\_ASBOX
14572## ------------------------------------------ ##
14573## Report this to the AC_PACKAGE_NAME lists. ##
14574## ------------------------------------------ ##
14575_ASBOX
14576 ) |
14577 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14578 ;;
14579esac
b4e70030
JB
14580echo "$as_me:$LINENO: checking for $ac_header" >&5
14581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14582if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14583 echo $ECHO_N "(cached) $ECHO_C" >&6
14584else
14585 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14586fi
b4e70030
JB
14587echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14588echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14589
5ee754fc 14590fi
bec39cab
AC
14591if test `eval echo '${'$as_ac_Header'}'` = yes; then
14592 cat >>confdefs.h <<_ACEOF
14593#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14594_ACEOF
14595
5ee754fc 14596fi
bec39cab 14597
5ee754fc
MK
14598done
14599
bec39cab
AC
14600
14601for ac_header in sys/syscall.h
5ee754fc 14602do
bec39cab 14603as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14604if eval "test \"\${$as_ac_Header+set}\" = set"; then
14605 echo "$as_me:$LINENO: checking for $ac_header" >&5
14606echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14607if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14608 echo $ECHO_N "(cached) $ECHO_C" >&6
14609fi
b4e70030
JB
14610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14611echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14612else
14613 # Is the header compilable?
b4e70030
JB
14614echo "$as_me:$LINENO: checking $ac_header usability" >&5
14615echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14616cat >conftest.$ac_ext <<_ACEOF
14617/* confdefs.h. */
14618_ACEOF
14619cat confdefs.h >>conftest.$ac_ext
14620cat >>conftest.$ac_ext <<_ACEOF
14621/* end confdefs.h. */
14622$ac_includes_default
14623#include <$ac_header>
14624_ACEOF
14625rm -f conftest.$ac_objext
14626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14627 (eval $ac_compile) 2>conftest.er1
14628 ac_status=$?
14629 grep -v '^ *+' conftest.er1 >conftest.err
14630 rm -f conftest.er1
14631 cat conftest.err >&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } &&
b4e70030
JB
14634 { ac_try='test -z "$ac_c_werror_flag"
14635 || test ! -s conftest.err'
bec39cab
AC
14636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637 (eval $ac_try) 2>&5
14638 ac_status=$?
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }; } &&
14641 { ac_try='test -s conftest.$ac_objext'
14642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14643 (eval $ac_try) 2>&5
14644 ac_status=$?
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; }; then
14647 ac_header_compiler=yes
14648else
14649 echo "$as_me: failed program was:" >&5
14650sed 's/^/| /' conftest.$ac_ext >&5
14651
b4e70030 14652ac_header_compiler=no
bec39cab
AC
14653fi
14654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14655echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14656echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14657
14658# Is the header present?
b4e70030
JB
14659echo "$as_me:$LINENO: checking $ac_header presence" >&5
14660echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14661cat >conftest.$ac_ext <<_ACEOF
14662/* confdefs.h. */
14663_ACEOF
14664cat confdefs.h >>conftest.$ac_ext
14665cat >>conftest.$ac_ext <<_ACEOF
14666/* end confdefs.h. */
14667#include <$ac_header>
14668_ACEOF
14669if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14671 ac_status=$?
14672 grep -v '^ *+' conftest.er1 >conftest.err
14673 rm -f conftest.er1
14674 cat conftest.err >&5
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); } >/dev/null; then
14677 if test -s conftest.err; then
14678 ac_cpp_err=$ac_c_preproc_warn_flag
14679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14680 else
14681 ac_cpp_err=
14682 fi
14683else
14684 ac_cpp_err=yes
5ee754fc 14685fi
bec39cab
AC
14686if test -z "$ac_cpp_err"; then
14687 ac_header_preproc=yes
5ee754fc 14688else
bec39cab
AC
14689 echo "$as_me: failed program was:" >&5
14690sed 's/^/| /' conftest.$ac_ext >&5
14691
14692 ac_header_preproc=no
5ee754fc 14693fi
bec39cab 14694rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14695echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14696echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14697
bec39cab
AC
14698# So? What about this header?
14699case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14700 yes:no: )
14701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14702echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14704echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14705 ac_header_preproc=yes
14706 ;;
14707 no:yes:* )
14708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14709echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14711echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14713echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14715echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14717echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14719echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14720 (
14721 cat <<\_ASBOX
14722## ------------------------------------------ ##
14723## Report this to the AC_PACKAGE_NAME lists. ##
14724## ------------------------------------------ ##
14725_ASBOX
14726 ) |
14727 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14728 ;;
14729esac
b4e70030
JB
14730echo "$as_me:$LINENO: checking for $ac_header" >&5
14731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14732if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14734else
14735 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14736fi
b4e70030
JB
14737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14738echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14739
5ee754fc 14740fi
bec39cab
AC
14741if test `eval echo '${'$as_ac_Header'}'` = yes; then
14742 cat >>confdefs.h <<_ACEOF
14743#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14744_ACEOF
14745
5ee754fc 14746fi
bec39cab 14747
5ee754fc
MK
14748done
14749
bec39cab
AC
14750
14751for ac_header in sys/types.h
5ee754fc 14752do
bec39cab 14753as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14754if eval "test \"\${$as_ac_Header+set}\" = set"; then
14755 echo "$as_me:$LINENO: checking for $ac_header" >&5
14756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14757if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
14759fi
b4e70030
JB
14760echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14761echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14762else
14763 # Is the header compilable?
b4e70030
JB
14764echo "$as_me:$LINENO: checking $ac_header usability" >&5
14765echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14766cat >conftest.$ac_ext <<_ACEOF
14767/* confdefs.h. */
14768_ACEOF
14769cat confdefs.h >>conftest.$ac_ext
14770cat >>conftest.$ac_ext <<_ACEOF
14771/* end confdefs.h. */
14772$ac_includes_default
14773#include <$ac_header>
14774_ACEOF
14775rm -f conftest.$ac_objext
14776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14777 (eval $ac_compile) 2>conftest.er1
14778 ac_status=$?
14779 grep -v '^ *+' conftest.er1 >conftest.err
14780 rm -f conftest.er1
14781 cat conftest.err >&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } &&
b4e70030
JB
14784 { ac_try='test -z "$ac_c_werror_flag"
14785 || test ! -s conftest.err'
bec39cab
AC
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14788 ac_status=$?
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; } &&
14791 { ac_try='test -s conftest.$ac_objext'
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14794 ac_status=$?
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14797 ac_header_compiler=yes
14798else
14799 echo "$as_me: failed program was:" >&5
14800sed 's/^/| /' conftest.$ac_ext >&5
14801
b4e70030 14802ac_header_compiler=no
bec39cab
AC
14803fi
14804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14805echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14806echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14807
14808# Is the header present?
b4e70030
JB
14809echo "$as_me:$LINENO: checking $ac_header presence" >&5
14810echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14811cat >conftest.$ac_ext <<_ACEOF
14812/* confdefs.h. */
14813_ACEOF
14814cat confdefs.h >>conftest.$ac_ext
14815cat >>conftest.$ac_ext <<_ACEOF
14816/* end confdefs.h. */
14817#include <$ac_header>
14818_ACEOF
14819if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14821 ac_status=$?
14822 grep -v '^ *+' conftest.er1 >conftest.err
14823 rm -f conftest.er1
14824 cat conftest.err >&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } >/dev/null; then
14827 if test -s conftest.err; then
14828 ac_cpp_err=$ac_c_preproc_warn_flag
14829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14830 else
14831 ac_cpp_err=
14832 fi
14833else
14834 ac_cpp_err=yes
5ee754fc 14835fi
bec39cab
AC
14836if test -z "$ac_cpp_err"; then
14837 ac_header_preproc=yes
5ee754fc 14838else
bec39cab
AC
14839 echo "$as_me: failed program was:" >&5
14840sed 's/^/| /' conftest.$ac_ext >&5
14841
14842 ac_header_preproc=no
5ee754fc 14843fi
bec39cab 14844rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14845echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14846echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14847
bec39cab
AC
14848# So? What about this header?
14849case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14850 yes:no: )
14851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14852echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14854echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14855 ac_header_preproc=yes
14856 ;;
14857 no:yes:* )
14858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14859echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14861echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14863echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14865echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14869echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14870 (
14871 cat <<\_ASBOX
14872## ------------------------------------------ ##
14873## Report this to the AC_PACKAGE_NAME lists. ##
14874## ------------------------------------------ ##
14875_ASBOX
14876 ) |
14877 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14878 ;;
14879esac
b4e70030
JB
14880echo "$as_me:$LINENO: checking for $ac_header" >&5
14881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14882if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
14884else
14885 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14886fi
b4e70030
JB
14887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14888echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14889
5ee754fc 14890fi
bec39cab
AC
14891if test `eval echo '${'$as_ac_Header'}'` = yes; then
14892 cat >>confdefs.h <<_ACEOF
14893#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14894_ACEOF
14895
5ee754fc 14896fi
bec39cab 14897
5ee754fc
MK
14898done
14899
bec39cab
AC
14900
14901for ac_header in sys/user.h
5ee754fc 14902do
bec39cab 14903as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14904echo "$as_me:$LINENO: checking for $ac_header" >&5
14905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14906if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 14907 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 14908else
7cb9022a 14909 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14910/* confdefs.h. */
14911_ACEOF
14912cat confdefs.h >>conftest.$ac_ext
14913cat >>conftest.$ac_ext <<_ACEOF
14914/* end confdefs.h. */
7cb9022a
MK
14915#if HAVE_SYS_PARAM_H
14916# include <sys/param.h>
14917#endif
14918
14919
bec39cab
AC
14920#include <$ac_header>
14921_ACEOF
14922rm -f conftest.$ac_objext
14923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14924 (eval $ac_compile) 2>conftest.er1
14925 ac_status=$?
14926 grep -v '^ *+' conftest.er1 >conftest.err
14927 rm -f conftest.er1
14928 cat conftest.err >&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); } &&
b4e70030
JB
14931 { ac_try='test -z "$ac_c_werror_flag"
14932 || test ! -s conftest.err'
bec39cab
AC
14933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934 (eval $ac_try) 2>&5
14935 ac_status=$?
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; } &&
14938 { ac_try='test -s conftest.$ac_objext'
14939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940 (eval $ac_try) 2>&5
14941 ac_status=$?
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; }; then
7cb9022a 14944 eval "$as_ac_Header=yes"
bec39cab
AC
14945else
14946 echo "$as_me: failed program was:" >&5
14947sed 's/^/| /' conftest.$ac_ext >&5
14948
b4e70030 14949eval "$as_ac_Header=no"
bec39cab
AC
14950fi
14951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 14952fi
b4e70030
JB
14953echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14954echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14955if test `eval echo '${'$as_ac_Header'}'` = yes; then
14956 cat >>confdefs.h <<_ACEOF
14957#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14958_ACEOF
14959
5ee754fc 14960fi
bec39cab 14961
5ee754fc
MK
14962done
14963
bec39cab
AC
14964
14965
14966for ac_header in sys/wait.h wait.h
5ee754fc 14967do
bec39cab 14968as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14969if eval "test \"\${$as_ac_Header+set}\" = set"; then
14970 echo "$as_me:$LINENO: checking for $ac_header" >&5
14971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14972if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14974fi
b4e70030
JB
14975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14976echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14977else
14978 # Is the header compilable?
b4e70030
JB
14979echo "$as_me:$LINENO: checking $ac_header usability" >&5
14980echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14981cat >conftest.$ac_ext <<_ACEOF
14982/* confdefs.h. */
14983_ACEOF
14984cat confdefs.h >>conftest.$ac_ext
14985cat >>conftest.$ac_ext <<_ACEOF
14986/* end confdefs.h. */
14987$ac_includes_default
14988#include <$ac_header>
14989_ACEOF
14990rm -f conftest.$ac_objext
14991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14992 (eval $ac_compile) 2>conftest.er1
14993 ac_status=$?
14994 grep -v '^ *+' conftest.er1 >conftest.err
14995 rm -f conftest.er1
14996 cat conftest.err >&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } &&
b4e70030
JB
14999 { ac_try='test -z "$ac_c_werror_flag"
15000 || test ! -s conftest.err'
bec39cab
AC
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15003 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; } &&
15006 { ac_try='test -s conftest.$ac_objext'
15007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15008 (eval $ac_try) 2>&5
15009 ac_status=$?
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); }; }; then
15012 ac_header_compiler=yes
15013else
15014 echo "$as_me: failed program was:" >&5
15015sed 's/^/| /' conftest.$ac_ext >&5
15016
b4e70030 15017ac_header_compiler=no
bec39cab
AC
15018fi
15019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15020echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15021echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15022
15023# Is the header present?
b4e70030
JB
15024echo "$as_me:$LINENO: checking $ac_header presence" >&5
15025echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15026cat >conftest.$ac_ext <<_ACEOF
15027/* confdefs.h. */
15028_ACEOF
15029cat confdefs.h >>conftest.$ac_ext
15030cat >>conftest.$ac_ext <<_ACEOF
15031/* end confdefs.h. */
15032#include <$ac_header>
15033_ACEOF
15034if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15036 ac_status=$?
15037 grep -v '^ *+' conftest.er1 >conftest.err
15038 rm -f conftest.er1
15039 cat conftest.err >&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); } >/dev/null; then
15042 if test -s conftest.err; then
15043 ac_cpp_err=$ac_c_preproc_warn_flag
15044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15045 else
15046 ac_cpp_err=
15047 fi
15048else
15049 ac_cpp_err=yes
5ee754fc 15050fi
bec39cab
AC
15051if test -z "$ac_cpp_err"; then
15052 ac_header_preproc=yes
5ee754fc 15053else
bec39cab
AC
15054 echo "$as_me: failed program was:" >&5
15055sed 's/^/| /' conftest.$ac_ext >&5
15056
15057 ac_header_preproc=no
5ee754fc 15058fi
bec39cab 15059rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15060echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15061echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 15062
bec39cab
AC
15063# So? What about this header?
15064case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15065 yes:no: )
15066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15067echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15069echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15070 ac_header_preproc=yes
15071 ;;
15072 no:yes:* )
15073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15074echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15076echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15078echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15080echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15082echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15084echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15085 (
15086 cat <<\_ASBOX
15087## ------------------------------------------ ##
15088## Report this to the AC_PACKAGE_NAME lists. ##
15089## ------------------------------------------ ##
15090_ASBOX
15091 ) |
15092 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15093 ;;
15094esac
b4e70030
JB
15095echo "$as_me:$LINENO: checking for $ac_header" >&5
15096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15097if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15098 echo $ECHO_N "(cached) $ECHO_C" >&6
15099else
15100 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 15101fi
b4e70030
JB
15102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15103echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15104
9608ab8b 15105fi
bec39cab
AC
15106if test `eval echo '${'$as_ac_Header'}'` = yes; then
15107 cat >>confdefs.h <<_ACEOF
15108#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15109_ACEOF
15110
9608ab8b 15111fi
bec39cab 15112
9608ab8b 15113done
5ee754fc 15114
bec39cab
AC
15115
15116
15117
15118for ac_header in termios.h termio.h sgtty.h
5ee754fc 15119do
bec39cab 15120as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15121if eval "test \"\${$as_ac_Header+set}\" = set"; then
15122 echo "$as_me:$LINENO: checking for $ac_header" >&5
15123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15124if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15125 echo $ECHO_N "(cached) $ECHO_C" >&6
15126fi
b4e70030
JB
15127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15128echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15129else
15130 # Is the header compilable?
b4e70030
JB
15131echo "$as_me:$LINENO: checking $ac_header usability" >&5
15132echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15133cat >conftest.$ac_ext <<_ACEOF
15134/* confdefs.h. */
15135_ACEOF
15136cat confdefs.h >>conftest.$ac_ext
15137cat >>conftest.$ac_ext <<_ACEOF
15138/* end confdefs.h. */
15139$ac_includes_default
15140#include <$ac_header>
15141_ACEOF
15142rm -f conftest.$ac_objext
15143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15144 (eval $ac_compile) 2>conftest.er1
15145 ac_status=$?
15146 grep -v '^ *+' conftest.er1 >conftest.err
15147 rm -f conftest.er1
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
b4e70030
JB
15151 { ac_try='test -z "$ac_c_werror_flag"
15152 || test ! -s conftest.err'
bec39cab
AC
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15155 ac_status=$?
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; } &&
15158 { ac_try='test -s conftest.$ac_objext'
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15164 ac_header_compiler=yes
15165else
15166 echo "$as_me: failed program was:" >&5
15167sed 's/^/| /' conftest.$ac_ext >&5
15168
b4e70030 15169ac_header_compiler=no
bec39cab
AC
15170fi
15171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15172echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15173echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15174
15175# Is the header present?
b4e70030
JB
15176echo "$as_me:$LINENO: checking $ac_header presence" >&5
15177echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15178cat >conftest.$ac_ext <<_ACEOF
15179/* confdefs.h. */
15180_ACEOF
15181cat confdefs.h >>conftest.$ac_ext
15182cat >>conftest.$ac_ext <<_ACEOF
15183/* end confdefs.h. */
15184#include <$ac_header>
15185_ACEOF
15186if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15188 ac_status=$?
15189 grep -v '^ *+' conftest.er1 >conftest.err
15190 rm -f conftest.er1
15191 cat conftest.err >&5
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); } >/dev/null; then
15194 if test -s conftest.err; then
15195 ac_cpp_err=$ac_c_preproc_warn_flag
15196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15197 else
15198 ac_cpp_err=
15199 fi
15200else
15201 ac_cpp_err=yes
9608ab8b 15202fi
bec39cab
AC
15203if test -z "$ac_cpp_err"; then
15204 ac_header_preproc=yes
9608ab8b 15205else
bec39cab
AC
15206 echo "$as_me: failed program was:" >&5
15207sed 's/^/| /' conftest.$ac_ext >&5
15208
15209 ac_header_preproc=no
9608ab8b 15210fi
bec39cab 15211rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15212echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15213echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 15214
bec39cab
AC
15215# So? What about this header?
15216case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15217 yes:no: )
15218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15219echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15221echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15222 ac_header_preproc=yes
15223 ;;
15224 no:yes:* )
15225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15226echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15228echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15230echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15232echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15234echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15236echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15237 (
15238 cat <<\_ASBOX
15239## ------------------------------------------ ##
15240## Report this to the AC_PACKAGE_NAME lists. ##
15241## ------------------------------------------ ##
15242_ASBOX
15243 ) |
15244 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15245 ;;
15246esac
b4e70030
JB
15247echo "$as_me:$LINENO: checking for $ac_header" >&5
15248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15249if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15250 echo $ECHO_N "(cached) $ECHO_C" >&6
15251else
15252 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 15253fi
b4e70030
JB
15254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15255echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15256
9608ab8b 15257fi
bec39cab
AC
15258if test `eval echo '${'$as_ac_Header'}'` = yes; then
15259 cat >>confdefs.h <<_ACEOF
15260#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15261_ACEOF
15262
9608ab8b 15263fi
bec39cab 15264
5ee754fc 15265done
9608ab8b 15266
bec39cab
AC
15267
15268for ac_header in unistd.h
78434e59 15269do
bec39cab 15270as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15271if eval "test \"\${$as_ac_Header+set}\" = set"; then
15272 echo "$as_me:$LINENO: checking for $ac_header" >&5
15273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15274if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15275 echo $ECHO_N "(cached) $ECHO_C" >&6
15276fi
b4e70030
JB
15277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15278echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15279else
15280 # Is the header compilable?
b4e70030
JB
15281echo "$as_me:$LINENO: checking $ac_header usability" >&5
15282echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15283cat >conftest.$ac_ext <<_ACEOF
15284/* confdefs.h. */
15285_ACEOF
15286cat confdefs.h >>conftest.$ac_ext
15287cat >>conftest.$ac_ext <<_ACEOF
15288/* end confdefs.h. */
15289$ac_includes_default
15290#include <$ac_header>
15291_ACEOF
15292rm -f conftest.$ac_objext
15293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15294 (eval $ac_compile) 2>conftest.er1
15295 ac_status=$?
15296 grep -v '^ *+' conftest.er1 >conftest.err
15297 rm -f conftest.er1
15298 cat conftest.err >&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); } &&
b4e70030
JB
15301 { ac_try='test -z "$ac_c_werror_flag"
15302 || test ! -s conftest.err'
bec39cab
AC
15303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304 (eval $ac_try) 2>&5
15305 ac_status=$?
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; } &&
15308 { ac_try='test -s conftest.$ac_objext'
15309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310 (eval $ac_try) 2>&5
15311 ac_status=$?
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; }; then
15314 ac_header_compiler=yes
15315else
15316 echo "$as_me: failed program was:" >&5
15317sed 's/^/| /' conftest.$ac_ext >&5
15318
b4e70030 15319ac_header_compiler=no
bec39cab
AC
15320fi
15321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15322echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15323echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15324
15325# Is the header present?
b4e70030
JB
15326echo "$as_me:$LINENO: checking $ac_header presence" >&5
15327echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15328cat >conftest.$ac_ext <<_ACEOF
15329/* confdefs.h. */
15330_ACEOF
15331cat confdefs.h >>conftest.$ac_ext
15332cat >>conftest.$ac_ext <<_ACEOF
15333/* end confdefs.h. */
15334#include <$ac_header>
15335_ACEOF
15336if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15338 ac_status=$?
15339 grep -v '^ *+' conftest.er1 >conftest.err
15340 rm -f conftest.er1
15341 cat conftest.err >&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } >/dev/null; then
15344 if test -s conftest.err; then
15345 ac_cpp_err=$ac_c_preproc_warn_flag
15346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15347 else
15348 ac_cpp_err=
15349 fi
15350else
15351 ac_cpp_err=yes
78434e59 15352fi
bec39cab
AC
15353if test -z "$ac_cpp_err"; then
15354 ac_header_preproc=yes
78434e59 15355else
bec39cab
AC
15356 echo "$as_me: failed program was:" >&5
15357sed 's/^/| /' conftest.$ac_ext >&5
15358
15359 ac_header_preproc=no
78434e59 15360fi
bec39cab 15361rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15362echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15363echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 15364
bec39cab
AC
15365# So? What about this header?
15366case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15367 yes:no: )
15368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15369echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15371echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15372 ac_header_preproc=yes
15373 ;;
15374 no:yes:* )
15375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15376echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15378echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15379 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15380echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15381 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15382echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15384echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15385 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15386echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15387 (
15388 cat <<\_ASBOX
15389## ------------------------------------------ ##
15390## Report this to the AC_PACKAGE_NAME lists. ##
15391## ------------------------------------------ ##
15392_ASBOX
15393 ) |
15394 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15395 ;;
15396esac
b4e70030
JB
15397echo "$as_me:$LINENO: checking for $ac_header" >&5
15398echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15399if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15400 echo $ECHO_N "(cached) $ECHO_C" >&6
15401else
15402 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 15403fi
b4e70030
JB
15404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15405echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15406
086ec9eb 15407fi
bec39cab
AC
15408if test `eval echo '${'$as_ac_Header'}'` = yes; then
15409 cat >>confdefs.h <<_ACEOF
15410#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15411_ACEOF
15412
086ec9eb 15413fi
bec39cab 15414
086ec9eb
MK
15415done
15416
9608ab8b 15417
b1d19a62 15418# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
15419# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
15420# think that we don't have <curses.h> if we're using GCC.
15421case $host_os in
b1d19a62 15422 solaris2.[789])
5ee754fc 15423 if test "$GCC" = yes; then
bec39cab
AC
15424
15425cat >>confdefs.h <<\_ACEOF
5ee754fc 15426#define _MSE_INT_H 1
bec39cab 15427_ACEOF
5ee754fc
MK
15428
15429 fi ;;
15430esac
bec39cab
AC
15431
15432
15433
15434
15435for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 15436do
bec39cab 15437as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15438if eval "test \"\${$as_ac_Header+set}\" = set"; then
15439 echo "$as_me:$LINENO: checking for $ac_header" >&5
15440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15441if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15442 echo $ECHO_N "(cached) $ECHO_C" >&6
15443fi
b4e70030
JB
15444echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15445echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15446else
15447 # Is the header compilable?
b4e70030
JB
15448echo "$as_me:$LINENO: checking $ac_header usability" >&5
15449echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15450cat >conftest.$ac_ext <<_ACEOF
15451/* confdefs.h. */
15452_ACEOF
15453cat confdefs.h >>conftest.$ac_ext
15454cat >>conftest.$ac_ext <<_ACEOF
15455/* end confdefs.h. */
15456$ac_includes_default
15457#include <$ac_header>
15458_ACEOF
15459rm -f conftest.$ac_objext
15460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15461 (eval $ac_compile) 2>conftest.er1
15462 ac_status=$?
15463 grep -v '^ *+' conftest.er1 >conftest.err
15464 rm -f conftest.er1
15465 cat conftest.err >&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } &&
b4e70030
JB
15468 { ac_try='test -z "$ac_c_werror_flag"
15469 || test ! -s conftest.err'
bec39cab
AC
15470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471 (eval $ac_try) 2>&5
15472 ac_status=$?
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; } &&
15475 { ac_try='test -s conftest.$ac_objext'
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15478 ac_status=$?
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }; then
15481 ac_header_compiler=yes
15482else
15483 echo "$as_me: failed program was:" >&5
15484sed 's/^/| /' conftest.$ac_ext >&5
15485
b4e70030 15486ac_header_compiler=no
bec39cab
AC
15487fi
15488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15489echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15490echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15491
15492# Is the header present?
b4e70030
JB
15493echo "$as_me:$LINENO: checking $ac_header presence" >&5
15494echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15495cat >conftest.$ac_ext <<_ACEOF
15496/* confdefs.h. */
15497_ACEOF
15498cat confdefs.h >>conftest.$ac_ext
15499cat >>conftest.$ac_ext <<_ACEOF
15500/* end confdefs.h. */
15501#include <$ac_header>
15502_ACEOF
15503if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15505 ac_status=$?
15506 grep -v '^ *+' conftest.er1 >conftest.err
15507 rm -f conftest.er1
15508 cat conftest.err >&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } >/dev/null; then
15511 if test -s conftest.err; then
15512 ac_cpp_err=$ac_c_preproc_warn_flag
15513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15514 else
15515 ac_cpp_err=
15516 fi
15517else
15518 ac_cpp_err=yes
c906108c 15519fi
bec39cab
AC
15520if test -z "$ac_cpp_err"; then
15521 ac_header_preproc=yes
15522else
15523 echo "$as_me: failed program was:" >&5
15524sed 's/^/| /' conftest.$ac_ext >&5
15525
15526 ac_header_preproc=no
c906108c 15527fi
bec39cab 15528rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15529echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15530echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
15531
15532# So? What about this header?
15533case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15534 yes:no: )
15535 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15536echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15538echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15539 ac_header_preproc=yes
15540 ;;
15541 no:yes:* )
15542 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15543echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15544 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15545echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15546 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15547echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15548 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15549echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15551echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15552 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15553echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15554 (
15555 cat <<\_ASBOX
15556## ------------------------------------------ ##
15557## Report this to the AC_PACKAGE_NAME lists. ##
15558## ------------------------------------------ ##
15559_ASBOX
15560 ) |
15561 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15562 ;;
15563esac
b4e70030
JB
15564echo "$as_me:$LINENO: checking for $ac_header" >&5
15565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15566if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15567 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 15568else
bec39cab 15569 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 15570fi
b4e70030
JB
15571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15572echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15573
15574fi
15575if test `eval echo '${'$as_ac_Header'}'` = yes; then
15576 cat >>confdefs.h <<_ACEOF
15577#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15578_ACEOF
15579
15580fi
15581
5ee754fc 15582done
c906108c 15583
bec39cab 15584
065a1afc 15585for ac_header in ncurses/term.h
3b78cdbb 15586do
bec39cab 15587as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15588if eval "test \"\${$as_ac_Header+set}\" = set"; then
15589 echo "$as_me:$LINENO: checking for $ac_header" >&5
15590echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15591if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15592 echo $ECHO_N "(cached) $ECHO_C" >&6
15593fi
b4e70030
JB
15594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15595echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15596else
15597 # Is the header compilable?
b4e70030
JB
15598echo "$as_me:$LINENO: checking $ac_header usability" >&5
15599echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15600cat >conftest.$ac_ext <<_ACEOF
15601/* confdefs.h. */
15602_ACEOF
15603cat confdefs.h >>conftest.$ac_ext
15604cat >>conftest.$ac_ext <<_ACEOF
15605/* end confdefs.h. */
15606$ac_includes_default
15607#include <$ac_header>
15608_ACEOF
15609rm -f conftest.$ac_objext
15610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15611 (eval $ac_compile) 2>conftest.er1
15612 ac_status=$?
15613 grep -v '^ *+' conftest.er1 >conftest.err
15614 rm -f conftest.er1
15615 cat conftest.err >&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); } &&
b4e70030
JB
15618 { ac_try='test -z "$ac_c_werror_flag"
15619 || test ! -s conftest.err'
bec39cab
AC
15620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15621 (eval $ac_try) 2>&5
15622 ac_status=$?
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); }; } &&
15625 { ac_try='test -s conftest.$ac_objext'
15626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627 (eval $ac_try) 2>&5
15628 ac_status=$?
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; }; then
15631 ac_header_compiler=yes
15632else
15633 echo "$as_me: failed program was:" >&5
15634sed 's/^/| /' conftest.$ac_ext >&5
15635
b4e70030 15636ac_header_compiler=no
bec39cab
AC
15637fi
15638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15639echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15640echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15641
15642# Is the header present?
b4e70030
JB
15643echo "$as_me:$LINENO: checking $ac_header presence" >&5
15644echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15645cat >conftest.$ac_ext <<_ACEOF
15646/* confdefs.h. */
15647_ACEOF
15648cat confdefs.h >>conftest.$ac_ext
15649cat >>conftest.$ac_ext <<_ACEOF
15650/* end confdefs.h. */
15651#include <$ac_header>
15652_ACEOF
15653if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15655 ac_status=$?
15656 grep -v '^ *+' conftest.er1 >conftest.err
15657 rm -f conftest.er1
15658 cat conftest.err >&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); } >/dev/null; then
15661 if test -s conftest.err; then
15662 ac_cpp_err=$ac_c_preproc_warn_flag
15663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15664 else
15665 ac_cpp_err=
15666 fi
15667else
15668 ac_cpp_err=yes
3b78cdbb 15669fi
bec39cab
AC
15670if test -z "$ac_cpp_err"; then
15671 ac_header_preproc=yes
15672else
15673 echo "$as_me: failed program was:" >&5
15674sed 's/^/| /' conftest.$ac_ext >&5
15675
15676 ac_header_preproc=no
3b78cdbb 15677fi
bec39cab 15678rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15679echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15680echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
15681
15682# So? What about this header?
15683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15684 yes:no: )
15685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15686echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15688echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15689 ac_header_preproc=yes
15690 ;;
15691 no:yes:* )
15692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15693echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15695echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15697echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15699echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15701echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15703echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15704 (
15705 cat <<\_ASBOX
15706## ------------------------------------------ ##
15707## Report this to the AC_PACKAGE_NAME lists. ##
15708## ------------------------------------------ ##
15709_ASBOX
15710 ) |
15711 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15712 ;;
15713esac
b4e70030
JB
15714echo "$as_me:$LINENO: checking for $ac_header" >&5
15715echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15716if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15717 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 15718else
bec39cab
AC
15719 eval "$as_ac_Header=\$ac_header_preproc"
15720fi
b4e70030
JB
15721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15722echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15723
3b78cdbb 15724fi
bec39cab
AC
15725if test `eval echo '${'$as_ac_Header'}'` = yes; then
15726 cat >>confdefs.h <<_ACEOF
15727#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15728_ACEOF
15729
15730fi
15731
3b78cdbb
DA
15732done
15733
c906108c 15734
065a1afc
JB
15735for ac_header in term.h
15736do
15737as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15738echo "$as_me:$LINENO: checking for $ac_header" >&5
15739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15740if eval "test \"\${$as_ac_Header+set}\" = set"; then
065a1afc
JB
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15742else
15743 cat >conftest.$ac_ext <<_ACEOF
15744/* confdefs.h. */
15745_ACEOF
15746cat confdefs.h >>conftest.$ac_ext
15747cat >>conftest.$ac_ext <<_ACEOF
15748/* end confdefs.h. */
15749#if HAVE_CURSES_H
15750# include <curses.h>
15751#endif
15752
15753
15754#include <$ac_header>
15755_ACEOF
15756rm -f conftest.$ac_objext
15757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15758 (eval $ac_compile) 2>conftest.er1
15759 ac_status=$?
15760 grep -v '^ *+' conftest.er1 >conftest.err
15761 rm -f conftest.er1
15762 cat conftest.err >&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } &&
b4e70030
JB
15765 { ac_try='test -z "$ac_c_werror_flag"
15766 || test ! -s conftest.err'
065a1afc
JB
15767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15768 (eval $ac_try) 2>&5
15769 ac_status=$?
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); }; } &&
15772 { ac_try='test -s conftest.$ac_objext'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; }; then
15778 eval "$as_ac_Header=yes"
15779else
15780 echo "$as_me: failed program was:" >&5
15781sed 's/^/| /' conftest.$ac_ext >&5
15782
b4e70030 15783eval "$as_ac_Header=no"
065a1afc
JB
15784fi
15785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15786fi
b4e70030
JB
15787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
065a1afc
JB
15789if test `eval echo '${'$as_ac_Header'}'` = yes; then
15790 cat >>confdefs.h <<_ACEOF
15791#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15792_ACEOF
15793
15794fi
15795
15796done
15797
15798
d542061a
UW
15799# Check for HP/UX 64-bit shared library support
15800
15801for ac_header in elf_hp.h
15802do
15803as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15804if eval "test \"\${$as_ac_Header+set}\" = set"; then
15805 echo "$as_me:$LINENO: checking for $ac_header" >&5
15806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15807if eval "test \"\${$as_ac_Header+set}\" = set"; then
15808 echo $ECHO_N "(cached) $ECHO_C" >&6
15809fi
15810echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15811echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15812else
15813 # Is the header compilable?
15814echo "$as_me:$LINENO: checking $ac_header usability" >&5
15815echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15816cat >conftest.$ac_ext <<_ACEOF
15817/* confdefs.h. */
15818_ACEOF
15819cat confdefs.h >>conftest.$ac_ext
15820cat >>conftest.$ac_ext <<_ACEOF
15821/* end confdefs.h. */
15822$ac_includes_default
15823#include <$ac_header>
15824_ACEOF
15825rm -f conftest.$ac_objext
15826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15827 (eval $ac_compile) 2>conftest.er1
15828 ac_status=$?
15829 grep -v '^ *+' conftest.er1 >conftest.err
15830 rm -f conftest.er1
15831 cat conftest.err >&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } &&
15834 { ac_try='test -z "$ac_c_werror_flag"
15835 || test ! -s conftest.err'
15836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837 (eval $ac_try) 2>&5
15838 ac_status=$?
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }; } &&
15841 { ac_try='test -s conftest.$ac_objext'
15842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843 (eval $ac_try) 2>&5
15844 ac_status=$?
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); }; }; then
15847 ac_header_compiler=yes
15848else
15849 echo "$as_me: failed program was:" >&5
15850sed 's/^/| /' conftest.$ac_ext >&5
15851
15852ac_header_compiler=no
15853fi
15854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15855echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15856echo "${ECHO_T}$ac_header_compiler" >&6
15857
15858# Is the header present?
15859echo "$as_me:$LINENO: checking $ac_header presence" >&5
15860echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15861cat >conftest.$ac_ext <<_ACEOF
15862/* confdefs.h. */
15863_ACEOF
15864cat confdefs.h >>conftest.$ac_ext
15865cat >>conftest.$ac_ext <<_ACEOF
15866/* end confdefs.h. */
15867#include <$ac_header>
15868_ACEOF
15869if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15871 ac_status=$?
15872 grep -v '^ *+' conftest.er1 >conftest.err
15873 rm -f conftest.er1
15874 cat conftest.err >&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } >/dev/null; then
15877 if test -s conftest.err; then
15878 ac_cpp_err=$ac_c_preproc_warn_flag
15879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15880 else
15881 ac_cpp_err=
15882 fi
15883else
15884 ac_cpp_err=yes
15885fi
15886if test -z "$ac_cpp_err"; then
15887 ac_header_preproc=yes
15888else
15889 echo "$as_me: failed program was:" >&5
15890sed 's/^/| /' conftest.$ac_ext >&5
15891
15892 ac_header_preproc=no
15893fi
15894rm -f conftest.err conftest.$ac_ext
15895echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15896echo "${ECHO_T}$ac_header_preproc" >&6
15897
15898# So? What about this header?
15899case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15900 yes:no: )
15901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15902echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15904echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15905 ac_header_preproc=yes
15906 ;;
15907 no:yes:* )
15908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15909echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15911echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15913echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15915echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15917echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15919echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15920 (
15921 cat <<\_ASBOX
15922## ------------------------------------------ ##
15923## Report this to the AC_PACKAGE_NAME lists. ##
15924## ------------------------------------------ ##
15925_ASBOX
15926 ) |
15927 sed "s/^/$as_me: WARNING: /" >&2
15928 ;;
15929esac
15930echo "$as_me:$LINENO: checking for $ac_header" >&5
15931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15932if eval "test \"\${$as_ac_Header+set}\" = set"; then
15933 echo $ECHO_N "(cached) $ECHO_C" >&6
15934else
15935 eval "$as_ac_Header=\$ac_header_preproc"
15936fi
15937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15938echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15939
15940fi
15941if test `eval echo '${'$as_ac_Header'}'` = yes; then
15942 cat >>confdefs.h <<_ACEOF
15943#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15944_ACEOF
15945
15946fi
15947
15948done
15949
15950
5ee754fc
MK
15951# FIXME: kettenis/20030102: In most cases we include these
15952# unconditionally, so what's the point in checking these?
bec39cab
AC
15953
15954
15955for ac_header in ctype.h time.h
c906108c 15956do
bec39cab 15957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15958if eval "test \"\${$as_ac_Header+set}\" = set"; then
15959 echo "$as_me:$LINENO: checking for $ac_header" >&5
15960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15961if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15962 echo $ECHO_N "(cached) $ECHO_C" >&6
15963fi
b4e70030
JB
15964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15966else
15967 # Is the header compilable?
b4e70030
JB
15968echo "$as_me:$LINENO: checking $ac_header usability" >&5
15969echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15970cat >conftest.$ac_ext <<_ACEOF
15971/* confdefs.h. */
15972_ACEOF
15973cat confdefs.h >>conftest.$ac_ext
15974cat >>conftest.$ac_ext <<_ACEOF
15975/* end confdefs.h. */
15976$ac_includes_default
15977#include <$ac_header>
15978_ACEOF
15979rm -f conftest.$ac_objext
15980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15981 (eval $ac_compile) 2>conftest.er1
15982 ac_status=$?
15983 grep -v '^ *+' conftest.er1 >conftest.err
15984 rm -f conftest.er1
15985 cat conftest.err >&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); } &&
b4e70030
JB
15988 { ac_try='test -z "$ac_c_werror_flag"
15989 || test ! -s conftest.err'
bec39cab
AC
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15992 ac_status=$?
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; } &&
15995 { ac_try='test -s conftest.$ac_objext'
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15998 ac_status=$?
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; }; then
16001 ac_header_compiler=yes
16002else
16003 echo "$as_me: failed program was:" >&5
16004sed 's/^/| /' conftest.$ac_ext >&5
16005
b4e70030 16006ac_header_compiler=no
bec39cab
AC
16007fi
16008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
16009echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16010echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
16011
16012# Is the header present?
b4e70030
JB
16013echo "$as_me:$LINENO: checking $ac_header presence" >&5
16014echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
16015cat >conftest.$ac_ext <<_ACEOF
16016/* confdefs.h. */
16017_ACEOF
16018cat confdefs.h >>conftest.$ac_ext
16019cat >>conftest.$ac_ext <<_ACEOF
16020/* end confdefs.h. */
16021#include <$ac_header>
16022_ACEOF
16023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16025 ac_status=$?
16026 grep -v '^ *+' conftest.er1 >conftest.err
16027 rm -f conftest.er1
16028 cat conftest.err >&5
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); } >/dev/null; then
16031 if test -s conftest.err; then
16032 ac_cpp_err=$ac_c_preproc_warn_flag
16033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16034 else
16035 ac_cpp_err=
16036 fi
16037else
16038 ac_cpp_err=yes
c906108c 16039fi
bec39cab
AC
16040if test -z "$ac_cpp_err"; then
16041 ac_header_preproc=yes
16042else
16043 echo "$as_me: failed program was:" >&5
16044sed 's/^/| /' conftest.$ac_ext >&5
16045
16046 ac_header_preproc=no
c906108c 16047fi
bec39cab 16048rm -f conftest.err conftest.$ac_ext
b4e70030
JB
16049echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16050echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
16051
16052# So? What about this header?
16053case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16054 yes:no: )
16055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16056echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16058echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16059 ac_header_preproc=yes
16060 ;;
16061 no:yes:* )
16062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16063echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16065echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16067echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16069echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16071echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16073echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
16074 (
16075 cat <<\_ASBOX
16076## ------------------------------------------ ##
16077## Report this to the AC_PACKAGE_NAME lists. ##
16078## ------------------------------------------ ##
16079_ASBOX
16080 ) |
16081 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
16082 ;;
16083esac
b4e70030
JB
16084echo "$as_me:$LINENO: checking for $ac_header" >&5
16085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16086if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 16087 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 16088else
bec39cab
AC
16089 eval "$as_ac_Header=\$ac_header_preproc"
16090fi
b4e70030
JB
16091echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16092echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
16093
16094fi
16095if test `eval echo '${'$as_ac_Header'}'` = yes; then
16096 cat >>confdefs.h <<_ACEOF
16097#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16098_ACEOF
16099
c906108c 16100fi
bec39cab 16101
c906108c
SS
16102done
16103
5ee754fc 16104
d5af19ba
DJ
16105# ------------------------- #
16106# Checks for declarations. #
16107# ------------------------- #
4e8d927d 16108
d5af19ba
DJ
16109echo "$as_me:$LINENO: checking whether free is declared" >&5
16110echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16111if test "${ac_cv_have_decl_free+set}" = set; then
bec39cab 16112 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 16113else
bec39cab
AC
16114 cat >conftest.$ac_ext <<_ACEOF
16115/* confdefs.h. */
16116_ACEOF
16117cat confdefs.h >>conftest.$ac_ext
16118cat >>conftest.$ac_ext <<_ACEOF
16119/* end confdefs.h. */
d5af19ba 16120$ac_includes_default
bec39cab
AC
16121int
16122main ()
16123{
d5af19ba
DJ
16124#ifndef free
16125 char *p = (char *) free;
16126#endif
16127
4e8d927d 16128 ;
bec39cab
AC
16129 return 0;
16130}
16131_ACEOF
16132rm -f conftest.$ac_objext
16133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16134 (eval $ac_compile) 2>conftest.er1
16135 ac_status=$?
16136 grep -v '^ *+' conftest.er1 >conftest.err
16137 rm -f conftest.er1
16138 cat conftest.err >&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } &&
b4e70030
JB
16141 { ac_try='test -z "$ac_c_werror_flag"
16142 || test ! -s conftest.err'
bec39cab
AC
16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144 (eval $ac_try) 2>&5
16145 ac_status=$?
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
16151 ac_status=$?
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
d5af19ba 16154 ac_cv_have_decl_free=yes
40a7debc 16155else
bec39cab
AC
16156 echo "$as_me: failed program was:" >&5
16157sed 's/^/| /' conftest.$ac_ext >&5
16158
d5af19ba 16159ac_cv_have_decl_free=no
40a7debc 16160fi
bec39cab 16161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 16162fi
d5af19ba
DJ
16163echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16164echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16165if test $ac_cv_have_decl_free = yes; then
16166
16167cat >>confdefs.h <<_ACEOF
16168#define HAVE_DECL_FREE 1
16169_ACEOF
16170
16171
666ec76f 16172else
d5af19ba
DJ
16173 cat >>confdefs.h <<_ACEOF
16174#define HAVE_DECL_FREE 0
16175_ACEOF
16176
4e8d927d 16177
d5af19ba
DJ
16178fi
16179echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16180echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16181if test "${ac_cv_have_decl_malloc+set}" = set; then
bec39cab
AC
16182 echo $ECHO_N "(cached) $ECHO_C" >&6
16183else
16184 cat >conftest.$ac_ext <<_ACEOF
16185/* confdefs.h. */
16186_ACEOF
16187cat confdefs.h >>conftest.$ac_ext
16188cat >>conftest.$ac_ext <<_ACEOF
16189/* end confdefs.h. */
d5af19ba 16190$ac_includes_default
666ec76f
MK
16191int
16192main ()
16193{
d5af19ba
DJ
16194#ifndef malloc
16195 char *p = (char *) malloc;
16196#endif
16197
666ec76f
MK
16198 ;
16199 return 0;
16200}
16201_ACEOF
16202rm -f conftest.$ac_objext
16203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16204 (eval $ac_compile) 2>conftest.er1
16205 ac_status=$?
16206 grep -v '^ *+' conftest.er1 >conftest.err
16207 rm -f conftest.er1
16208 cat conftest.err >&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } &&
b4e70030
JB
16211 { ac_try='test -z "$ac_c_werror_flag"
16212 || test ! -s conftest.err'
666ec76f
MK
16213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214 (eval $ac_try) 2>&5
16215 ac_status=$?
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; } &&
16218 { ac_try='test -s conftest.$ac_objext'
16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5
16221 ac_status=$?
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; }; then
d5af19ba 16224 ac_cv_have_decl_malloc=yes
666ec76f
MK
16225else
16226 echo "$as_me: failed program was:" >&5
16227sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 16228
d5af19ba 16229ac_cv_have_decl_malloc=no
a3828db0
MK
16230fi
16231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16232fi
d5af19ba
DJ
16233echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16234echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
16235if test $ac_cv_have_decl_malloc = yes; then
16236
16237cat >>confdefs.h <<_ACEOF
16238#define HAVE_DECL_MALLOC 1
16239_ACEOF
16240
16241
a3828db0 16242else
d5af19ba
DJ
16243 cat >>confdefs.h <<_ACEOF
16244#define HAVE_DECL_MALLOC 0
16245_ACEOF
16246
4e8d927d 16247
d5af19ba
DJ
16248fi
16249echo "$as_me:$LINENO: checking whether realloc is declared" >&5
16250echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
16251if test "${ac_cv_have_decl_realloc+set}" = set; then
a3828db0
MK
16252 echo $ECHO_N "(cached) $ECHO_C" >&6
16253else
16254 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
16255/* confdefs.h. */
16256_ACEOF
16257cat confdefs.h >>conftest.$ac_ext
16258cat >>conftest.$ac_ext <<_ACEOF
16259/* end confdefs.h. */
d5af19ba 16260$ac_includes_default
bec39cab
AC
16261int
16262main ()
16263{
d5af19ba
DJ
16264#ifndef realloc
16265 char *p = (char *) realloc;
16266#endif
16267
bec39cab
AC
16268 ;
16269 return 0;
16270}
16271_ACEOF
16272rm -f conftest.$ac_objext
16273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16274 (eval $ac_compile) 2>conftest.er1
16275 ac_status=$?
16276 grep -v '^ *+' conftest.er1 >conftest.err
16277 rm -f conftest.er1
16278 cat conftest.err >&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); } &&
b4e70030
JB
16281 { ac_try='test -z "$ac_c_werror_flag"
16282 || test ! -s conftest.err'
bec39cab
AC
16283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284 (eval $ac_try) 2>&5
16285 ac_status=$?
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; } &&
16288 { ac_try='test -s conftest.$ac_objext'
16289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290 (eval $ac_try) 2>&5
16291 ac_status=$?
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; }; then
d5af19ba 16294 ac_cv_have_decl_realloc=yes
b9362cc7 16295else
bec39cab
AC
16296 echo "$as_me: failed program was:" >&5
16297sed 's/^/| /' conftest.$ac_ext >&5
16298
d5af19ba 16299ac_cv_have_decl_realloc=no
4e8d927d 16300fi
4e8d927d
DJ
16301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16302fi
b4e70030
JB
16303echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
16304echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
4e8d927d
DJ
16305if test $ac_cv_have_decl_realloc = yes; then
16306
16307cat >>confdefs.h <<_ACEOF
16308#define HAVE_DECL_REALLOC 1
16309_ACEOF
16310
16311
16312else
16313 cat >>confdefs.h <<_ACEOF
16314#define HAVE_DECL_REALLOC 0
16315_ACEOF
16316
16317
16318fi
16319
16320
b4e70030
JB
16321echo "$as_me:$LINENO: checking whether strerror is declared" >&5
16322echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
4e8d927d
DJ
16323if test "${ac_cv_have_decl_strerror+set}" = set; then
16324 echo $ECHO_N "(cached) $ECHO_C" >&6
16325else
16326 cat >conftest.$ac_ext <<_ACEOF
16327/* confdefs.h. */
16328_ACEOF
16329cat confdefs.h >>conftest.$ac_ext
16330cat >>conftest.$ac_ext <<_ACEOF
16331/* end confdefs.h. */
16332$ac_includes_default
16333int
16334main ()
16335{
16336#ifndef strerror
16337 char *p = (char *) strerror;
4e8d927d
DJ
16338#endif
16339
16340 ;
16341 return 0;
16342}
16343_ACEOF
16344rm -f conftest.$ac_objext
16345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16346 (eval $ac_compile) 2>conftest.er1
16347 ac_status=$?
16348 grep -v '^ *+' conftest.er1 >conftest.err
16349 rm -f conftest.er1
16350 cat conftest.err >&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); } &&
b4e70030
JB
16353 { ac_try='test -z "$ac_c_werror_flag"
16354 || test ! -s conftest.err'
4e8d927d
DJ
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16357 ac_status=$?
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; } &&
16360 { ac_try='test -s conftest.$ac_objext'
16361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362 (eval $ac_try) 2>&5
16363 ac_status=$?
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; }; then
16366 ac_cv_have_decl_strerror=yes
16367else
16368 echo "$as_me: failed program was:" >&5
16369sed 's/^/| /' conftest.$ac_ext >&5
16370
b4e70030 16371ac_cv_have_decl_strerror=no
4e8d927d 16372fi
4e8d927d
DJ
16373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16374fi
b4e70030
JB
16375echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
16376echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
4e8d927d
DJ
16377if test $ac_cv_have_decl_strerror = yes; then
16378
16379cat >>confdefs.h <<_ACEOF
16380#define HAVE_DECL_STRERROR 1
16381_ACEOF
16382
16383
16384else
16385 cat >>confdefs.h <<_ACEOF
16386#define HAVE_DECL_STRERROR 0
16387_ACEOF
16388
16389
16390fi
b4e70030
JB
16391echo "$as_me:$LINENO: checking whether strstr is declared" >&5
16392echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
4e8d927d
DJ
16393if test "${ac_cv_have_decl_strstr+set}" = set; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
16395else
16396 cat >conftest.$ac_ext <<_ACEOF
16397/* confdefs.h. */
16398_ACEOF
16399cat confdefs.h >>conftest.$ac_ext
16400cat >>conftest.$ac_ext <<_ACEOF
16401/* end confdefs.h. */
16402$ac_includes_default
16403int
16404main ()
16405{
16406#ifndef strstr
16407 char *p = (char *) strstr;
4e8d927d
DJ
16408#endif
16409
16410 ;
16411 return 0;
16412}
16413_ACEOF
16414rm -f conftest.$ac_objext
16415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16416 (eval $ac_compile) 2>conftest.er1
16417 ac_status=$?
16418 grep -v '^ *+' conftest.er1 >conftest.err
16419 rm -f conftest.er1
16420 cat conftest.err >&5
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); } &&
b4e70030
JB
16423 { ac_try='test -z "$ac_c_werror_flag"
16424 || test ! -s conftest.err'
4e8d927d
DJ
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16427 ac_status=$?
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; } &&
16430 { ac_try='test -s conftest.$ac_objext'
16431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16432 (eval $ac_try) 2>&5
16433 ac_status=$?
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; }; then
16436 ac_cv_have_decl_strstr=yes
16437else
16438 echo "$as_me: failed program was:" >&5
16439sed 's/^/| /' conftest.$ac_ext >&5
16440
b4e70030 16441ac_cv_have_decl_strstr=no
4e8d927d 16442fi
4e8d927d
DJ
16443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16444fi
b4e70030
JB
16445echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
16446echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
4e8d927d
DJ
16447if test $ac_cv_have_decl_strstr = yes; then
16448
16449cat >>confdefs.h <<_ACEOF
16450#define HAVE_DECL_STRSTR 1
16451_ACEOF
16452
16453
16454else
16455 cat >>confdefs.h <<_ACEOF
16456#define HAVE_DECL_STRSTR 0
16457_ACEOF
16458
16459
16460fi
16461
16462
b4e70030
JB
16463echo "$as_me:$LINENO: checking whether getopt is declared" >&5
16464echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
4e8d927d
DJ
16465if test "${ac_cv_have_decl_getopt+set}" = set; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16467else
16468 cat >conftest.$ac_ext <<_ACEOF
16469/* confdefs.h. */
16470_ACEOF
16471cat confdefs.h >>conftest.$ac_ext
16472cat >>conftest.$ac_ext <<_ACEOF
16473/* end confdefs.h. */
16474$ac_includes_default
16475int
16476main ()
16477{
16478#ifndef getopt
16479 char *p = (char *) getopt;
4e8d927d
DJ
16480#endif
16481
16482 ;
16483 return 0;
16484}
16485_ACEOF
16486rm -f conftest.$ac_objext
16487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16488 (eval $ac_compile) 2>conftest.er1
16489 ac_status=$?
16490 grep -v '^ *+' conftest.er1 >conftest.err
16491 rm -f conftest.er1
16492 cat conftest.err >&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); } &&
b4e70030
JB
16495 { ac_try='test -z "$ac_c_werror_flag"
16496 || test ! -s conftest.err'
4e8d927d
DJ
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; } &&
16502 { ac_try='test -s conftest.$ac_objext'
16503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504 (eval $ac_try) 2>&5
16505 ac_status=$?
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; }; then
16508 ac_cv_have_decl_getopt=yes
16509else
16510 echo "$as_me: failed program was:" >&5
16511sed 's/^/| /' conftest.$ac_ext >&5
16512
b4e70030 16513ac_cv_have_decl_getopt=no
4e8d927d 16514fi
4e8d927d
DJ
16515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16516fi
b4e70030
JB
16517echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
16518echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
4e8d927d
DJ
16519if test $ac_cv_have_decl_getopt = yes; then
16520
16521cat >>confdefs.h <<_ACEOF
16522#define HAVE_DECL_GETOPT 1
16523_ACEOF
16524
16525
16526else
16527 cat >>confdefs.h <<_ACEOF
16528#define HAVE_DECL_GETOPT 0
16529_ACEOF
16530
16531
16532fi
b4e70030
JB
16533echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16534echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
16535if test "${ac_cv_have_decl_snprintf+set}" = set; then
16536 echo $ECHO_N "(cached) $ECHO_C" >&6
16537else
16538 cat >conftest.$ac_ext <<_ACEOF
16539/* confdefs.h. */
16540_ACEOF
16541cat confdefs.h >>conftest.$ac_ext
16542cat >>conftest.$ac_ext <<_ACEOF
16543/* end confdefs.h. */
16544$ac_includes_default
16545int
16546main ()
16547{
16548#ifndef snprintf
16549 char *p = (char *) snprintf;
4e8d927d
DJ
16550#endif
16551
16552 ;
16553 return 0;
16554}
16555_ACEOF
16556rm -f conftest.$ac_objext
16557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16558 (eval $ac_compile) 2>conftest.er1
16559 ac_status=$?
16560 grep -v '^ *+' conftest.er1 >conftest.err
16561 rm -f conftest.er1
16562 cat conftest.err >&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); } &&
b4e70030
JB
16565 { ac_try='test -z "$ac_c_werror_flag"
16566 || test ! -s conftest.err'
4e8d927d
DJ
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16569 ac_status=$?
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; } &&
16572 { ac_try='test -s conftest.$ac_objext'
16573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574 (eval $ac_try) 2>&5
16575 ac_status=$?
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; }; then
16578 ac_cv_have_decl_snprintf=yes
16579else
16580 echo "$as_me: failed program was:" >&5
16581sed 's/^/| /' conftest.$ac_ext >&5
16582
b4e70030 16583ac_cv_have_decl_snprintf=no
4e8d927d 16584fi
4e8d927d
DJ
16585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16586fi
b4e70030
JB
16587echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16588echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
4e8d927d
DJ
16589if test $ac_cv_have_decl_snprintf = yes; then
16590
16591cat >>confdefs.h <<_ACEOF
16592#define HAVE_DECL_SNPRINTF 1
16593_ACEOF
16594
16595
16596else
16597 cat >>confdefs.h <<_ACEOF
16598#define HAVE_DECL_SNPRINTF 0
16599_ACEOF
16600
16601
16602fi
b4e70030
JB
16603echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16604echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
16605if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16606 echo $ECHO_N "(cached) $ECHO_C" >&6
16607else
16608 cat >conftest.$ac_ext <<_ACEOF
16609/* confdefs.h. */
16610_ACEOF
16611cat confdefs.h >>conftest.$ac_ext
16612cat >>conftest.$ac_ext <<_ACEOF
16613/* end confdefs.h. */
16614$ac_includes_default
16615int
16616main ()
16617{
16618#ifndef vsnprintf
16619 char *p = (char *) vsnprintf;
4e8d927d
DJ
16620#endif
16621
16622 ;
16623 return 0;
16624}
16625_ACEOF
16626rm -f conftest.$ac_objext
16627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16628 (eval $ac_compile) 2>conftest.er1
16629 ac_status=$?
16630 grep -v '^ *+' conftest.er1 >conftest.err
16631 rm -f conftest.er1
16632 cat conftest.err >&5
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); } &&
b4e70030
JB
16635 { ac_try='test -z "$ac_c_werror_flag"
16636 || test ! -s conftest.err'
4e8d927d
DJ
16637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16638 (eval $ac_try) 2>&5
16639 ac_status=$?
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; } &&
16642 { ac_try='test -s conftest.$ac_objext'
16643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644 (eval $ac_try) 2>&5
16645 ac_status=$?
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; }; then
16648 ac_cv_have_decl_vsnprintf=yes
16649else
16650 echo "$as_me: failed program was:" >&5
16651sed 's/^/| /' conftest.$ac_ext >&5
16652
b4e70030 16653ac_cv_have_decl_vsnprintf=no
4e8d927d 16654fi
4e8d927d
DJ
16655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16656fi
b4e70030
JB
16657echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16658echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
4e8d927d
DJ
16659if test $ac_cv_have_decl_vsnprintf = yes; then
16660
16661cat >>confdefs.h <<_ACEOF
16662#define HAVE_DECL_VSNPRINTF 1
16663_ACEOF
16664
16665
16666else
16667 cat >>confdefs.h <<_ACEOF
16668#define HAVE_DECL_VSNPRINTF 0
16669_ACEOF
16670
16671
16672fi
16673
16674
16675
16676# ----------------------- #
16677# Checks for structures. #
16678# ----------------------- #
16679
b4e70030
JB
16680echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16681echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4e8d927d
DJ
16682if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16684else
16685 cat >conftest.$ac_ext <<_ACEOF
16686/* confdefs.h. */
16687_ACEOF
16688cat confdefs.h >>conftest.$ac_ext
16689cat >>conftest.$ac_ext <<_ACEOF
16690/* end confdefs.h. */
16691$ac_includes_default
16692int
16693main ()
16694{
16695static struct stat ac_aggr;
16696if (ac_aggr.st_blocks)
16697return 0;
16698 ;
16699 return 0;
16700}
16701_ACEOF
16702rm -f conftest.$ac_objext
16703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16704 (eval $ac_compile) 2>conftest.er1
16705 ac_status=$?
16706 grep -v '^ *+' conftest.er1 >conftest.err
16707 rm -f conftest.er1
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } &&
b4e70030
JB
16711 { ac_try='test -z "$ac_c_werror_flag"
16712 || test ! -s conftest.err'
4e8d927d
DJ
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; } &&
16718 { ac_try='test -s conftest.$ac_objext'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 ac_cv_member_struct_stat_st_blocks=yes
16725else
16726 echo "$as_me: failed program was:" >&5
16727sed 's/^/| /' conftest.$ac_ext >&5
16728
b4e70030 16729cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
16730/* confdefs.h. */
16731_ACEOF
16732cat confdefs.h >>conftest.$ac_ext
16733cat >>conftest.$ac_ext <<_ACEOF
16734/* end confdefs.h. */
16735$ac_includes_default
16736int
16737main ()
16738{
16739static struct stat ac_aggr;
16740if (sizeof ac_aggr.st_blocks)
16741return 0;
16742 ;
16743 return 0;
16744}
16745_ACEOF
16746rm -f conftest.$ac_objext
16747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16748 (eval $ac_compile) 2>conftest.er1
16749 ac_status=$?
16750 grep -v '^ *+' conftest.er1 >conftest.err
16751 rm -f conftest.er1
16752 cat conftest.err >&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); } &&
b4e70030
JB
16755 { ac_try='test -z "$ac_c_werror_flag"
16756 || test ! -s conftest.err'
4e8d927d
DJ
16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758 (eval $ac_try) 2>&5
16759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; } &&
16762 { ac_try='test -s conftest.$ac_objext'
16763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764 (eval $ac_try) 2>&5
16765 ac_status=$?
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; }; then
16768 ac_cv_member_struct_stat_st_blocks=yes
16769else
16770 echo "$as_me: failed program was:" >&5
16771sed 's/^/| /' conftest.$ac_ext >&5
16772
b4e70030 16773ac_cv_member_struct_stat_st_blocks=no
4e8d927d 16774fi
4e8d927d
DJ
16775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16776fi
4e8d927d
DJ
16777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16778fi
b4e70030
JB
16779echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16780echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4e8d927d
DJ
16781if test $ac_cv_member_struct_stat_st_blocks = yes; then
16782
16783cat >>confdefs.h <<_ACEOF
16784#define HAVE_STRUCT_STAT_ST_BLOCKS 1
16785_ACEOF
16786
16787
16788fi
16789
b4e70030
JB
16790echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
16791echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4e8d927d
DJ
16792if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
16793 echo $ECHO_N "(cached) $ECHO_C" >&6
16794else
16795 cat >conftest.$ac_ext <<_ACEOF
16796/* confdefs.h. */
16797_ACEOF
16798cat confdefs.h >>conftest.$ac_ext
16799cat >>conftest.$ac_ext <<_ACEOF
16800/* end confdefs.h. */
16801$ac_includes_default
16802int
16803main ()
16804{
16805static struct stat ac_aggr;
16806if (ac_aggr.st_blksize)
16807return 0;
16808 ;
16809 return 0;
16810}
16811_ACEOF
16812rm -f conftest.$ac_objext
16813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16814 (eval $ac_compile) 2>conftest.er1
16815 ac_status=$?
16816 grep -v '^ *+' conftest.er1 >conftest.err
16817 rm -f conftest.er1
16818 cat conftest.err >&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } &&
b4e70030
JB
16821 { ac_try='test -z "$ac_c_werror_flag"
16822 || test ! -s conftest.err'
4e8d927d
DJ
16823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824 (eval $ac_try) 2>&5
16825 ac_status=$?
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; } &&
16828 { ac_try='test -s conftest.$ac_objext'
16829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16830 (eval $ac_try) 2>&5
16831 ac_status=$?
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; }; then
16834 ac_cv_member_struct_stat_st_blksize=yes
16835else
16836 echo "$as_me: failed program was:" >&5
16837sed 's/^/| /' conftest.$ac_ext >&5
16838
b4e70030 16839cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
16840/* confdefs.h. */
16841_ACEOF
16842cat confdefs.h >>conftest.$ac_ext
16843cat >>conftest.$ac_ext <<_ACEOF
16844/* end confdefs.h. */
16845$ac_includes_default
16846int
16847main ()
16848{
16849static struct stat ac_aggr;
16850if (sizeof ac_aggr.st_blksize)
16851return 0;
16852 ;
16853 return 0;
16854}
16855_ACEOF
16856rm -f conftest.$ac_objext
16857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16858 (eval $ac_compile) 2>conftest.er1
16859 ac_status=$?
16860 grep -v '^ *+' conftest.er1 >conftest.err
16861 rm -f conftest.er1
16862 cat conftest.err >&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
b4e70030
JB
16865 { ac_try='test -z "$ac_c_werror_flag"
16866 || test ! -s conftest.err'
4e8d927d
DJ
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16869 ac_status=$?
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; } &&
16872 { ac_try='test -s conftest.$ac_objext'
16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16875 ac_status=$?
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; }; then
16878 ac_cv_member_struct_stat_st_blksize=yes
16879else
16880 echo "$as_me: failed program was:" >&5
16881sed 's/^/| /' conftest.$ac_ext >&5
16882
b4e70030 16883ac_cv_member_struct_stat_st_blksize=no
4e8d927d 16884fi
4e8d927d
DJ
16885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16886fi
4e8d927d
DJ
16887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16888fi
b4e70030
JB
16889echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
16890echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4e8d927d
DJ
16891if test $ac_cv_member_struct_stat_st_blksize = yes; then
16892
16893cat >>confdefs.h <<_ACEOF
16894#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16895_ACEOF
16896
16897
16898fi
16899
16900
16901# ------------------ #
16902# Checks for types. #
16903# ------------------ #
16904
b4e70030
JB
16905echo "$as_me:$LINENO: checking return type of signal handlers" >&5
16906echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4e8d927d
DJ
16907if test "${ac_cv_type_signal+set}" = set; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16909else
16910 cat >conftest.$ac_ext <<_ACEOF
16911/* confdefs.h. */
16912_ACEOF
16913cat confdefs.h >>conftest.$ac_ext
16914cat >>conftest.$ac_ext <<_ACEOF
16915/* end confdefs.h. */
16916#include <sys/types.h>
16917#include <signal.h>
b4e70030
JB
16918#ifdef signal
16919# undef signal
16920#endif
16921#ifdef __cplusplus
16922extern "C" void (*signal (int, void (*)(int)))(int);
16923#else
16924void (*signal ()) ();
16925#endif
4e8d927d
DJ
16926
16927int
16928main ()
16929{
b4e70030 16930int i;
4e8d927d
DJ
16931 ;
16932 return 0;
16933}
16934_ACEOF
16935rm -f conftest.$ac_objext
16936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16937 (eval $ac_compile) 2>conftest.er1
16938 ac_status=$?
16939 grep -v '^ *+' conftest.er1 >conftest.err
16940 rm -f conftest.er1
16941 cat conftest.err >&5
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); } &&
b4e70030
JB
16944 { ac_try='test -z "$ac_c_werror_flag"
16945 || test ! -s conftest.err'
4e8d927d
DJ
16946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16947 (eval $ac_try) 2>&5
16948 ac_status=$?
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); }; } &&
16951 { ac_try='test -s conftest.$ac_objext'
16952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953 (eval $ac_try) 2>&5
16954 ac_status=$?
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; }; then
b4e70030 16957 ac_cv_type_signal=void
4e8d927d
DJ
16958else
16959 echo "$as_me: failed program was:" >&5
16960sed 's/^/| /' conftest.$ac_ext >&5
16961
b4e70030 16962ac_cv_type_signal=int
4e8d927d 16963fi
4e8d927d
DJ
16964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16965fi
b4e70030
JB
16966echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
16967echo "${ECHO_T}$ac_cv_type_signal" >&6
4e8d927d
DJ
16968
16969cat >>confdefs.h <<_ACEOF
16970#define RETSIGTYPE $ac_cv_type_signal
16971_ACEOF
16972
16973
b4e70030
JB
16974echo "$as_me:$LINENO: checking for socklen_t" >&5
16975echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4e8d927d
DJ
16976if test "${ac_cv_type_socklen_t+set}" = set; then
16977 echo $ECHO_N "(cached) $ECHO_C" >&6
16978else
16979 cat >conftest.$ac_ext <<_ACEOF
16980/* confdefs.h. */
16981_ACEOF
16982cat confdefs.h >>conftest.$ac_ext
16983cat >>conftest.$ac_ext <<_ACEOF
16984/* end confdefs.h. */
16985#include <sys/types.h>
16986#include <sys/socket.h>
16987
16988
4e8d927d
DJ
16989int
16990main ()
16991{
b4e70030 16992if ((socklen_t *) 0)
4e8d927d 16993 return 0;
b4e70030 16994if (sizeof (socklen_t))
4e8d927d
DJ
16995 return 0;
16996 ;
16997 return 0;
16998}
16999_ACEOF
17000rm -f conftest.$ac_objext
17001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17002 (eval $ac_compile) 2>conftest.er1
17003 ac_status=$?
17004 grep -v '^ *+' conftest.er1 >conftest.err
17005 rm -f conftest.er1
17006 cat conftest.err >&5
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); } &&
b4e70030
JB
17009 { ac_try='test -z "$ac_c_werror_flag"
17010 || test ! -s conftest.err'
4e8d927d
DJ
17011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012 (eval $ac_try) 2>&5
17013 ac_status=$?
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; } &&
17016 { ac_try='test -s conftest.$ac_objext'
17017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018 (eval $ac_try) 2>&5
17019 ac_status=$?
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; }; then
17022 ac_cv_type_socklen_t=yes
17023else
17024 echo "$as_me: failed program was:" >&5
17025sed 's/^/| /' conftest.$ac_ext >&5
17026
b4e70030 17027ac_cv_type_socklen_t=no
4e8d927d 17028fi
4e8d927d
DJ
17029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17030fi
b4e70030
JB
17031echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
17032echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4e8d927d
DJ
17033if test $ac_cv_type_socklen_t = yes; then
17034
17035cat >>confdefs.h <<_ACEOF
17036#define HAVE_SOCKLEN_T 1
17037_ACEOF
17038
17039
4e8d927d
DJ
17040fi
17041
17042
17043# ------------------------------------- #
17044# Checks for compiler characteristics. #
17045# ------------------------------------- #
17046
b4e70030
JB
17047echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17048echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4e8d927d
DJ
17049if test "${ac_cv_c_const+set}" = set; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17051else
17052 cat >conftest.$ac_ext <<_ACEOF
17053/* confdefs.h. */
17054_ACEOF
17055cat confdefs.h >>conftest.$ac_ext
17056cat >>conftest.$ac_ext <<_ACEOF
17057/* end confdefs.h. */
17058
17059int
17060main ()
17061{
17062/* FIXME: Include the comments suggested by Paul. */
17063#ifndef __cplusplus
17064 /* Ultrix mips cc rejects this. */
17065 typedef int charset[2];
17066 const charset x;
17067 /* SunOS 4.1.1 cc rejects this. */
17068 char const *const *ccp;
17069 char **p;
17070 /* NEC SVR4.0.2 mips cc rejects this. */
17071 struct point {int x, y;};
17072 static struct point const zero = {0,0};
17073 /* AIX XL C 1.02.0.0 rejects this.
17074 It does not let you subtract one const X* pointer from another in
17075 an arm of an if-expression whose if-part is not a constant
17076 expression */
17077 const char *g = "string";
17078 ccp = &g + (g ? g-g : 0);
17079 /* HPUX 7.0 cc rejects these. */
17080 ++ccp;
17081 p = (char**) ccp;
17082 ccp = (char const *const *) p;
17083 { /* SCO 3.2v4 cc rejects this. */
17084 char *t;
17085 char const *s = 0 ? (char *) 0 : (char const *) 0;
17086
17087 *t++ = 0;
4e8d927d
DJ
17088 }
17089 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17090 int x[] = {25, 17};
17091 const int *foo = &x[0];
17092 ++foo;
17093 }
17094 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17095 typedef const int *iptr;
17096 iptr p = 0;
17097 ++p;
17098 }
17099 { /* AIX XL C 1.02.0.0 rejects this saying
17100 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17101 struct s { int j; const int *ap[3]; };
17102 struct s *b; b->j = 5;
17103 }
17104 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17105 const int foo = 10;
4e8d927d 17106 }
4e8d927d
DJ
17107#endif
17108
17109 ;
17110 return 0;
17111}
17112_ACEOF
17113rm -f conftest.$ac_objext
17114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17115 (eval $ac_compile) 2>conftest.er1
17116 ac_status=$?
17117 grep -v '^ *+' conftest.er1 >conftest.err
17118 rm -f conftest.er1
17119 cat conftest.err >&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } &&
b4e70030
JB
17122 { ac_try='test -z "$ac_c_werror_flag"
17123 || test ! -s conftest.err'
4e8d927d
DJ
17124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17126 ac_status=$?
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; } &&
17129 { ac_try='test -s conftest.$ac_objext'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17132 ac_status=$?
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; }; then
17135 ac_cv_c_const=yes
17136else
17137 echo "$as_me: failed program was:" >&5
17138sed 's/^/| /' conftest.$ac_ext >&5
17139
b4e70030 17140ac_cv_c_const=no
4e8d927d 17141fi
4e8d927d
DJ
17142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17143fi
b4e70030
JB
17144echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17145echo "${ECHO_T}$ac_cv_c_const" >&6
4e8d927d
DJ
17146if test $ac_cv_c_const = no; then
17147
17148cat >>confdefs.h <<\_ACEOF
17149#define const
17150_ACEOF
17151
17152fi
17153
b4e70030
JB
17154echo "$as_me:$LINENO: checking for inline" >&5
17155echo $ECHO_N "checking for inline... $ECHO_C" >&6
4e8d927d
DJ
17156if test "${ac_cv_c_inline+set}" = set; then
17157 echo $ECHO_N "(cached) $ECHO_C" >&6
17158else
17159 ac_cv_c_inline=no
17160for ac_kw in inline __inline__ __inline; do
17161 cat >conftest.$ac_ext <<_ACEOF
17162/* confdefs.h. */
17163_ACEOF
17164cat confdefs.h >>conftest.$ac_ext
17165cat >>conftest.$ac_ext <<_ACEOF
17166/* end confdefs.h. */
17167#ifndef __cplusplus
17168typedef int foo_t;
17169static $ac_kw foo_t static_foo () {return 0; }
17170$ac_kw foo_t foo () {return 0; }
17171#endif
17172
17173_ACEOF
17174rm -f conftest.$ac_objext
17175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17176 (eval $ac_compile) 2>conftest.er1
17177 ac_status=$?
17178 grep -v '^ *+' conftest.er1 >conftest.err
17179 rm -f conftest.er1
17180 cat conftest.err >&5
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); } &&
b4e70030
JB
17183 { ac_try='test -z "$ac_c_werror_flag"
17184 || test ! -s conftest.err'
4e8d927d
DJ
17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17187 ac_status=$?
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; } &&
17190 { ac_try='test -s conftest.$ac_objext'
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17193 ac_status=$?
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; }; then
b4e70030 17196 ac_cv_c_inline=$ac_kw; break
4e8d927d
DJ
17197else
17198 echo "$as_me: failed program was:" >&5
17199sed 's/^/| /' conftest.$ac_ext >&5
17200
4e8d927d 17201fi
4e8d927d 17202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
17203done
17204
17205fi
b4e70030
JB
17206echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17207echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 17208
bec39cab 17209
a3828db0
MK
17210case $ac_cv_c_inline in
17211 inline | yes) ;;
17212 *)
17213 case $ac_cv_c_inline in
17214 no) ac_val=;;
17215 *) ac_val=$ac_cv_c_inline;;
17216 esac
17217 cat >>confdefs.h <<_ACEOF
17218#ifndef __cplusplus
17219#define inline $ac_val
17220#endif
17221_ACEOF
bec39cab
AC
17222 ;;
17223esac
bec39cab 17224
9b913628
TJB
17225echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17226echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17227if test "${ac_cv_c_bigendian+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17229else
17230 # See if sys/param.h defines the BYTE_ORDER macro.
17231cat >conftest.$ac_ext <<_ACEOF
17232/* confdefs.h. */
17233_ACEOF
17234cat confdefs.h >>conftest.$ac_ext
17235cat >>conftest.$ac_ext <<_ACEOF
17236/* end confdefs.h. */
17237#include <sys/types.h>
17238#include <sys/param.h>
17239
17240int
17241main ()
17242{
17243#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17244 bogus endian macros
17245#endif
17246
17247 ;
17248 return 0;
17249}
17250_ACEOF
17251rm -f conftest.$ac_objext
17252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17253 (eval $ac_compile) 2>conftest.er1
17254 ac_status=$?
17255 grep -v '^ *+' conftest.er1 >conftest.err
17256 rm -f conftest.er1
17257 cat conftest.err >&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } &&
17260 { ac_try='test -z "$ac_c_werror_flag"
17261 || test ! -s conftest.err'
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17264 ac_status=$?
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; } &&
17267 { ac_try='test -s conftest.$ac_objext'
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17270 ac_status=$?
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; }; then
17273 # It does; now see whether it defined to BIG_ENDIAN or not.
17274cat >conftest.$ac_ext <<_ACEOF
17275/* confdefs.h. */
17276_ACEOF
17277cat confdefs.h >>conftest.$ac_ext
17278cat >>conftest.$ac_ext <<_ACEOF
17279/* end confdefs.h. */
17280#include <sys/types.h>
17281#include <sys/param.h>
17282
17283int
17284main ()
17285{
17286#if BYTE_ORDER != BIG_ENDIAN
17287 not big endian
17288#endif
17289
17290 ;
17291 return 0;
17292}
17293_ACEOF
17294rm -f conftest.$ac_objext
17295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17296 (eval $ac_compile) 2>conftest.er1
17297 ac_status=$?
17298 grep -v '^ *+' conftest.er1 >conftest.err
17299 rm -f conftest.er1
17300 cat conftest.err >&5
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); } &&
17303 { ac_try='test -z "$ac_c_werror_flag"
17304 || test ! -s conftest.err'
17305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306 (eval $ac_try) 2>&5
17307 ac_status=$?
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; } &&
17310 { ac_try='test -s conftest.$ac_objext'
17311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312 (eval $ac_try) 2>&5
17313 ac_status=$?
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); }; }; then
17316 ac_cv_c_bigendian=yes
17317else
17318 echo "$as_me: failed program was:" >&5
17319sed 's/^/| /' conftest.$ac_ext >&5
17320
17321ac_cv_c_bigendian=no
17322fi
17323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17324else
17325 echo "$as_me: failed program was:" >&5
17326sed 's/^/| /' conftest.$ac_ext >&5
17327
17328# It does not; compile a test program.
17329if test "$cross_compiling" = yes; then
17330 # try to guess the endianness by grepping values into an object file
17331 ac_cv_c_bigendian=unknown
17332 cat >conftest.$ac_ext <<_ACEOF
17333/* confdefs.h. */
17334_ACEOF
17335cat confdefs.h >>conftest.$ac_ext
17336cat >>conftest.$ac_ext <<_ACEOF
17337/* end confdefs.h. */
17338short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17339short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17340void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
17341short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17342short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17343void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
17344int
17345main ()
17346{
17347 _ascii (); _ebcdic ();
17348 ;
17349 return 0;
17350}
17351_ACEOF
17352rm -f conftest.$ac_objext
17353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17354 (eval $ac_compile) 2>conftest.er1
17355 ac_status=$?
17356 grep -v '^ *+' conftest.er1 >conftest.err
17357 rm -f conftest.er1
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } &&
17361 { ac_try='test -z "$ac_c_werror_flag"
17362 || test ! -s conftest.err'
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17365 ac_status=$?
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; } &&
17368 { ac_try='test -s conftest.$ac_objext'
17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17371 ac_status=$?
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; }; then
17374 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
17375 ac_cv_c_bigendian=yes
17376fi
17377if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17378 if test "$ac_cv_c_bigendian" = unknown; then
17379 ac_cv_c_bigendian=no
17380 else
17381 # finding both strings is unlikely to happen, but who knows?
17382 ac_cv_c_bigendian=unknown
17383 fi
17384fi
17385else
17386 echo "$as_me: failed program was:" >&5
17387sed 's/^/| /' conftest.$ac_ext >&5
17388
17389fi
17390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17391else
17392 cat >conftest.$ac_ext <<_ACEOF
17393/* confdefs.h. */
17394_ACEOF
17395cat confdefs.h >>conftest.$ac_ext
17396cat >>conftest.$ac_ext <<_ACEOF
17397/* end confdefs.h. */
17398int
17399main ()
17400{
17401 /* Are we little or big endian? From Harbison&Steele. */
17402 union
17403 {
17404 long l;
17405 char c[sizeof (long)];
17406 } u;
17407 u.l = 1;
17408 exit (u.c[sizeof (long) - 1] == 1);
17409}
17410_ACEOF
17411rm -f conftest$ac_exeext
17412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17413 (eval $ac_link) 2>&5
17414 ac_status=$?
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17419 ac_status=$?
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; }; then
17422 ac_cv_c_bigendian=no
17423else
17424 echo "$as_me: program exited with status $ac_status" >&5
17425echo "$as_me: failed program was:" >&5
17426sed 's/^/| /' conftest.$ac_ext >&5
17427
17428( exit $ac_status )
17429ac_cv_c_bigendian=yes
17430fi
17431rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17432fi
17433fi
17434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17435fi
17436echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17437echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17438case $ac_cv_c_bigendian in
17439 yes)
17440
17441cat >>confdefs.h <<\_ACEOF
17442#define WORDS_BIGENDIAN 1
17443_ACEOF
17444 ;;
17445 no)
17446 ;;
17447 *)
17448 { { echo "$as_me:$LINENO: error: unknown endianness
17449presetting ac_cv_c_bigendian=no (or yes) will help" >&5
17450echo "$as_me: error: unknown endianness
17451presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
17452 { (exit 1); exit 1; }; } ;;
17453esac
17454
74c1b268 17455
a3828db0
MK
17456# ------------------------------ #
17457# Checks for library functions. #
17458# ------------------------------ #
bec39cab 17459
a3828db0
MK
17460# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17461# for constant arguments. Useless!
b4e70030
JB
17462echo "$as_me:$LINENO: checking for working alloca.h" >&5
17463echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
a3828db0 17464if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
17466else
17467 cat >conftest.$ac_ext <<_ACEOF
17468/* confdefs.h. */
17469_ACEOF
17470cat confdefs.h >>conftest.$ac_ext
17471cat >>conftest.$ac_ext <<_ACEOF
17472/* end confdefs.h. */
a3828db0 17473#include <alloca.h>
bec39cab
AC
17474int
17475main ()
17476{
a3828db0 17477char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
17478 ;
17479 return 0;
17480}
17481_ACEOF
17482rm -f conftest.$ac_objext conftest$ac_exeext
17483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17484 (eval $ac_link) 2>conftest.er1
17485 ac_status=$?
17486 grep -v '^ *+' conftest.er1 >conftest.err
17487 rm -f conftest.er1
17488 cat conftest.err >&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } &&
b4e70030
JB
17491 { ac_try='test -z "$ac_c_werror_flag"
17492 || test ! -s conftest.err'
bec39cab
AC
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; } &&
17498 { ac_try='test -s conftest$ac_exeext'
17499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500 (eval $ac_try) 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; }; then
a3828db0 17504 ac_cv_working_alloca_h=yes
bec39cab
AC
17505else
17506 echo "$as_me: failed program was:" >&5
17507sed 's/^/| /' conftest.$ac_ext >&5
17508
b4e70030 17509ac_cv_working_alloca_h=no
bec39cab
AC
17510fi
17511rm -f conftest.err conftest.$ac_objext \
17512 conftest$ac_exeext conftest.$ac_ext
17513fi
b4e70030
JB
17514echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17515echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
a3828db0
MK
17516if test $ac_cv_working_alloca_h = yes; then
17517
17518cat >>confdefs.h <<\_ACEOF
17519#define HAVE_ALLOCA_H 1
bec39cab 17520_ACEOF
74c1b268 17521
74c1b268
AC
17522fi
17523
b4e70030
JB
17524echo "$as_me:$LINENO: checking for alloca" >&5
17525echo $ECHO_N "checking for alloca... $ECHO_C" >&6
a3828db0 17526if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 17527 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 17528else
bec39cab
AC
17529 cat >conftest.$ac_ext <<_ACEOF
17530/* confdefs.h. */
17531_ACEOF
17532cat confdefs.h >>conftest.$ac_ext
17533cat >>conftest.$ac_ext <<_ACEOF
17534/* end confdefs.h. */
a3828db0
MK
17535#ifdef __GNUC__
17536# define alloca __builtin_alloca
17537#else
17538# ifdef _MSC_VER
17539# include <malloc.h>
17540# define alloca _alloca
17541# else
17542# if HAVE_ALLOCA_H
17543# include <alloca.h>
17544# else
17545# ifdef _AIX
17546 #pragma alloca
17547# else
17548# ifndef alloca /* predefined by HP cc +Olibcalls */
17549char *alloca ();
17550# endif
17551# endif
17552# endif
97bf5e38 17553# endif
a3828db0 17554#endif
97bf5e38 17555
bec39cab
AC
17556int
17557main ()
17558{
a3828db0 17559char *p = (char *) alloca (1);
bec39cab
AC
17560 ;
17561 return 0;
17562}
17563_ACEOF
a3828db0
MK
17564rm -f conftest.$ac_objext conftest$ac_exeext
17565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17566 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17567 ac_status=$?
17568 grep -v '^ *+' conftest.er1 >conftest.err
17569 rm -f conftest.er1
17570 cat conftest.err >&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } &&
b4e70030
JB
17573 { ac_try='test -z "$ac_c_werror_flag"
17574 || test ! -s conftest.err'
bec39cab
AC
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17577 ac_status=$?
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; } &&
a3828db0 17580 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17583 ac_status=$?
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; }; then
a3828db0 17586 ac_cv_func_alloca_works=yes
0200359f 17587else
bec39cab
AC
17588 echo "$as_me: failed program was:" >&5
17589sed 's/^/| /' conftest.$ac_ext >&5
0200359f 17590
b4e70030 17591ac_cv_func_alloca_works=no
0200359f 17592fi
a3828db0
MK
17593rm -f conftest.err conftest.$ac_objext \
17594 conftest$ac_exeext conftest.$ac_ext
72473524 17595fi
b4e70030
JB
17596echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17597echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 17598
a3828db0
MK
17599if test $ac_cv_func_alloca_works = yes; then
17600
17601cat >>confdefs.h <<\_ACEOF
17602#define HAVE_ALLOCA 1
bec39cab
AC
17603_ACEOF
17604
a3828db0
MK
17605else
17606 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17607# that cause trouble. Some versions do not even contain alloca or
17608# contain a buggy version. If you still want to use their alloca,
17609# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 17610
b4e70030 17611ALLOCA=alloca.$ac_objext
bec39cab 17612
a3828db0
MK
17613cat >>confdefs.h <<\_ACEOF
17614#define C_ALLOCA 1
17615_ACEOF
bec39cab 17616
a3828db0 17617
b4e70030
JB
17618echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17619echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
a3828db0 17620if test "${ac_cv_os_cray+set}" = set; then
bec39cab 17621 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 17622else
a3828db0 17623 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17624/* confdefs.h. */
17625_ACEOF
17626cat confdefs.h >>conftest.$ac_ext
17627cat >>conftest.$ac_ext <<_ACEOF
17628/* end confdefs.h. */
b4e70030 17629#if defined(CRAY) && ! defined(CRAY2)
a3828db0
MK
17630webecray
17631#else
17632wenotbecray
17633#endif
17634
17635_ACEOF
17636if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17637 $EGREP "webecray" >/dev/null 2>&1; then
17638 ac_cv_os_cray=yes
17639else
17640 ac_cv_os_cray=no
17641fi
17642rm -f conftest*
17643
17644fi
b4e70030
JB
17645echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17646echo "${ECHO_T}$ac_cv_os_cray" >&6
a3828db0
MK
17647if test $ac_cv_os_cray = yes; then
17648 for ac_func in _getb67 GETB67 getb67; do
17649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17650echo "$as_me:$LINENO: checking for $ac_func" >&5
17651echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17652if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
17653 echo $ECHO_N "(cached) $ECHO_C" >&6
17654else
17655 cat >conftest.$ac_ext <<_ACEOF
17656/* confdefs.h. */
17657_ACEOF
17658cat confdefs.h >>conftest.$ac_ext
17659cat >>conftest.$ac_ext <<_ACEOF
17660/* end confdefs.h. */
17661/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17663#define $ac_func innocuous_$ac_func
17664
17665/* System header to define __stub macros and hopefully few prototypes,
17666 which can conflict with char $ac_func (); below.
17667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17668 <limits.h> exists even on freestanding compilers. */
17669
17670#ifdef __STDC__
17671# include <limits.h>
17672#else
17673# include <assert.h>
17674#endif
17675
17676#undef $ac_func
17677
b4e70030 17678/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17679#ifdef __cplusplus
17680extern "C"
b4e70030 17681{
a3828db0 17682#endif
b4e70030
JB
17683/* We use char because int might match the return type of a gcc2
17684 builtin and then its argument prototype would still apply. */
a3828db0
MK
17685char $ac_func ();
17686/* The GNU C library defines this for functions which it implements
17687 to always fail with ENOSYS. Some functions are actually named
17688 something starting with __ and the normal name is an alias. */
b4e70030 17689#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17690choke me
b4e70030
JB
17691#else
17692char (*f) () = $ac_func;
17693#endif
17694#ifdef __cplusplus
17695}
a3828db0
MK
17696#endif
17697
17698int
17699main ()
17700{
b4e70030 17701return f != $ac_func;
a3828db0
MK
17702 ;
17703 return 0;
17704}
17705_ACEOF
17706rm -f conftest.$ac_objext conftest$ac_exeext
17707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17708 (eval $ac_link) 2>conftest.er1
17709 ac_status=$?
17710 grep -v '^ *+' conftest.er1 >conftest.err
17711 rm -f conftest.er1
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
b4e70030
JB
17715 { ac_try='test -z "$ac_c_werror_flag"
17716 || test ! -s conftest.err'
a3828db0
MK
17717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718 (eval $ac_try) 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; } &&
17722 { ac_try='test -s conftest$ac_exeext'
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; }; then
17728 eval "$as_ac_var=yes"
17729else
17730 echo "$as_me: failed program was:" >&5
17731sed 's/^/| /' conftest.$ac_ext >&5
17732
b4e70030 17733eval "$as_ac_var=no"
a3828db0
MK
17734fi
17735rm -f conftest.err conftest.$ac_objext \
17736 conftest$ac_exeext conftest.$ac_ext
17737fi
b4e70030
JB
17738echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17739echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17740if test `eval echo '${'$as_ac_var'}'` = yes; then
17741
17742cat >>confdefs.h <<_ACEOF
17743#define CRAY_STACKSEG_END $ac_func
17744_ACEOF
17745
17746 break
17747fi
17748
17749 done
17750fi
17751
b4e70030
JB
17752echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17753echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
a3828db0
MK
17754if test "${ac_cv_c_stack_direction+set}" = set; then
17755 echo $ECHO_N "(cached) $ECHO_C" >&6
17756else
17757 if test "$cross_compiling" = yes; then
17758 ac_cv_c_stack_direction=0
17759else
17760 cat >conftest.$ac_ext <<_ACEOF
17761/* confdefs.h. */
17762_ACEOF
17763cat confdefs.h >>conftest.$ac_ext
17764cat >>conftest.$ac_ext <<_ACEOF
17765/* end confdefs.h. */
17766int
17767find_stack_direction ()
17768{
17769 static char *addr = 0;
17770 auto char dummy;
17771 if (addr == 0)
17772 {
17773 addr = &dummy;
17774 return find_stack_direction ();
17775 }
17776 else
17777 return (&dummy > addr) ? 1 : -1;
17778}
17779
17780int
17781main ()
17782{
b4e70030 17783 exit (find_stack_direction () < 0);
a3828db0
MK
17784}
17785_ACEOF
17786rm -f conftest$ac_exeext
17787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17788 (eval $ac_link) 2>&5
17789 ac_status=$?
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17793 (eval $ac_try) 2>&5
17794 ac_status=$?
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); }; }; then
17797 ac_cv_c_stack_direction=1
17798else
17799 echo "$as_me: program exited with status $ac_status" >&5
17800echo "$as_me: failed program was:" >&5
17801sed 's/^/| /' conftest.$ac_ext >&5
17802
17803( exit $ac_status )
17804ac_cv_c_stack_direction=-1
17805fi
b4e70030 17806rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
17807fi
17808fi
b4e70030
JB
17809echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17810echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
a3828db0
MK
17811
17812cat >>confdefs.h <<_ACEOF
17813#define STACK_DIRECTION $ac_cv_c_stack_direction
17814_ACEOF
17815
17816
17817fi
17818
17819
17820
17821for ac_header in stdlib.h unistd.h
17822do
17823as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
17824if eval "test \"\${$as_ac_Header+set}\" = set"; then
17825 echo "$as_me:$LINENO: checking for $ac_header" >&5
17826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17827if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
17828 echo $ECHO_N "(cached) $ECHO_C" >&6
17829fi
b4e70030
JB
17830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0
MK
17832else
17833 # Is the header compilable?
b4e70030
JB
17834echo "$as_me:$LINENO: checking $ac_header usability" >&5
17835echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0
MK
17836cat >conftest.$ac_ext <<_ACEOF
17837/* confdefs.h. */
17838_ACEOF
17839cat confdefs.h >>conftest.$ac_ext
17840cat >>conftest.$ac_ext <<_ACEOF
17841/* end confdefs.h. */
17842$ac_includes_default
17843#include <$ac_header>
17844_ACEOF
17845rm -f conftest.$ac_objext
17846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17847 (eval $ac_compile) 2>conftest.er1
17848 ac_status=$?
bec39cab
AC
17849 grep -v '^ *+' conftest.er1 >conftest.err
17850 rm -f conftest.er1
17851 cat conftest.err >&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); } &&
b4e70030
JB
17854 { ac_try='test -z "$ac_c_werror_flag"
17855 || test ! -s conftest.err'
bec39cab
AC
17856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857 (eval $ac_try) 2>&5
17858 ac_status=$?
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); }; } &&
17861 { ac_try='test -s conftest.$ac_objext'
17862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863 (eval $ac_try) 2>&5
17864 ac_status=$?
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); }; }; then
17867 ac_header_compiler=yes
17868else
17869 echo "$as_me: failed program was:" >&5
17870sed 's/^/| /' conftest.$ac_ext >&5
17871
b4e70030 17872ac_header_compiler=no
bec39cab
AC
17873fi
17874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
17875echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17876echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
17877
17878# Is the header present?
b4e70030
JB
17879echo "$as_me:$LINENO: checking $ac_header presence" >&5
17880echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
17881cat >conftest.$ac_ext <<_ACEOF
17882/* confdefs.h. */
17883_ACEOF
17884cat confdefs.h >>conftest.$ac_ext
17885cat >>conftest.$ac_ext <<_ACEOF
17886/* end confdefs.h. */
17887#include <$ac_header>
17888_ACEOF
17889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17891 ac_status=$?
17892 grep -v '^ *+' conftest.er1 >conftest.err
17893 rm -f conftest.er1
17894 cat conftest.err >&5
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); } >/dev/null; then
17897 if test -s conftest.err; then
17898 ac_cpp_err=$ac_c_preproc_warn_flag
17899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17900 else
17901 ac_cpp_err=
17902 fi
17903else
17904 ac_cpp_err=yes
17905fi
17906if test -z "$ac_cpp_err"; then
17907 ac_header_preproc=yes
97bf5e38 17908else
bec39cab
AC
17909 echo "$as_me: failed program was:" >&5
17910sed 's/^/| /' conftest.$ac_ext >&5
17911
17912 ac_header_preproc=no
72473524 17913fi
bec39cab 17914rm -f conftest.err conftest.$ac_ext
b4e70030
JB
17915echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17916echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 17917
bec39cab
AC
17918# So? What about this header?
17919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17920 yes:no: )
17921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17922echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17924echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17925 ac_header_preproc=yes
17926 ;;
17927 no:yes:* )
17928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17929echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17931echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17933echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17935echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17937echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17939echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
17940 (
17941 cat <<\_ASBOX
17942## ------------------------------------------ ##
17943## Report this to the AC_PACKAGE_NAME lists. ##
17944## ------------------------------------------ ##
17945_ASBOX
17946 ) |
17947 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
17948 ;;
17949esac
b4e70030
JB
17950echo "$as_me:$LINENO: checking for $ac_header" >&5
17951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17952if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 17953 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 17954else
bec39cab
AC
17955 eval "$as_ac_Header=\$ac_header_preproc"
17956fi
b4e70030
JB
17957echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17958echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
17959
17960fi
17961if test `eval echo '${'$as_ac_Header'}'` = yes; then
17962 cat >>confdefs.h <<_ACEOF
17963#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17964_ACEOF
17965
17966fi
17967
17968done
17969
17970
a3828db0 17971for ac_func in getpagesize
bec39cab
AC
17972do
17973as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17974echo "$as_me:$LINENO: checking for $ac_func" >&5
17975echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17976if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17977 echo $ECHO_N "(cached) $ECHO_C" >&6
17978else
17979 cat >conftest.$ac_ext <<_ACEOF
17980/* confdefs.h. */
17981_ACEOF
17982cat confdefs.h >>conftest.$ac_ext
17983cat >>conftest.$ac_ext <<_ACEOF
17984/* end confdefs.h. */
17985/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17987#define $ac_func innocuous_$ac_func
17988
97bf5e38 17989/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17990 which can conflict with char $ac_func (); below.
17991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17992 <limits.h> exists even on freestanding compilers. */
2b2d558c 17993
bec39cab
AC
17994#ifdef __STDC__
17995# include <limits.h>
17996#else
17997# include <assert.h>
17998#endif
97bf5e38 17999
bec39cab
AC
18000#undef $ac_func
18001
b4e70030 18002/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
18003#ifdef __cplusplus
18004extern "C"
b4e70030 18005{
bec39cab 18006#endif
b4e70030
JB
18007/* We use char because int might match the return type of a gcc2
18008 builtin and then its argument prototype would still apply. */
bec39cab 18009char $ac_func ();
97bf5e38
MK
18010/* The GNU C library defines this for functions which it implements
18011 to always fail with ENOSYS. Some functions are actually named
18012 something starting with __ and the normal name is an alias. */
b4e70030 18013#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 18014choke me
b4e70030
JB
18015#else
18016char (*f) () = $ac_func;
18017#endif
18018#ifdef __cplusplus
18019}
97bf5e38
MK
18020#endif
18021
bec39cab
AC
18022int
18023main ()
18024{
b4e70030 18025return f != $ac_func;
bec39cab
AC
18026 ;
18027 return 0;
18028}
18029_ACEOF
18030rm -f conftest.$ac_objext conftest$ac_exeext
18031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18032 (eval $ac_link) 2>conftest.er1
18033 ac_status=$?
18034 grep -v '^ *+' conftest.er1 >conftest.err
18035 rm -f conftest.er1
18036 cat conftest.err >&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); } &&
b4e70030
JB
18039 { ac_try='test -z "$ac_c_werror_flag"
18040 || test ! -s conftest.err'
bec39cab
AC
18041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18042 (eval $ac_try) 2>&5
18043 ac_status=$?
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); }; } &&
18046 { ac_try='test -s conftest$ac_exeext'
18047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18048 (eval $ac_try) 2>&5
18049 ac_status=$?
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); }; }; then
18052 eval "$as_ac_var=yes"
18053else
18054 echo "$as_me: failed program was:" >&5
18055sed 's/^/| /' conftest.$ac_ext >&5
18056
b4e70030 18057eval "$as_ac_var=no"
bec39cab
AC
18058fi
18059rm -f conftest.err conftest.$ac_objext \
18060 conftest$ac_exeext conftest.$ac_ext
18061fi
b4e70030
JB
18062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18063echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18064if test `eval echo '${'$as_ac_var'}'` = yes; then
18065 cat >>confdefs.h <<_ACEOF
18066#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18067_ACEOF
18068
2b2d558c 18069fi
bec39cab 18070done
2b2d558c 18071
b4e70030
JB
18072echo "$as_me:$LINENO: checking for working mmap" >&5
18073echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
a3828db0 18074if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 18075 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18076else
bec39cab 18077 if test "$cross_compiling" = yes; then
a3828db0 18078 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
18079else
18080 cat >conftest.$ac_ext <<_ACEOF
a3828db0 18081/* confdefs.h. */
bec39cab
AC
18082_ACEOF
18083cat confdefs.h >>conftest.$ac_ext
18084cat >>conftest.$ac_ext <<_ACEOF
18085/* end confdefs.h. */
a3828db0
MK
18086$ac_includes_default
18087/* malloc might have been renamed as rpl_malloc. */
18088#undef malloc
bec39cab 18089
a3828db0
MK
18090/* Thanks to Mike Haertel and Jim Avera for this test.
18091 Here is a matrix of mmap possibilities:
18092 mmap private not fixed
18093 mmap private fixed at somewhere currently unmapped
18094 mmap private fixed at somewhere already mapped
18095 mmap shared not fixed
18096 mmap shared fixed at somewhere currently unmapped
18097 mmap shared fixed at somewhere already mapped
18098 For private mappings, we should verify that changes cannot be read()
18099 back from the file, nor mmap's back from the file at a different
18100 address. (There have been systems where private was not correctly
18101 implemented like the infamous i386 svr4.0, and systems where the
18102 VM page cache was not coherent with the file system buffer cache
18103 like early versions of FreeBSD and possibly contemporary NetBSD.)
18104 For shared mappings, we should conversely verify that changes get
18105 propagated back to all the places they're supposed to be.
7dfa765c 18106
a3828db0
MK
18107 Grep wants private fixed already mapped.
18108 The main things grep needs to know about mmap are:
18109 * does it exist and is it safe to write into the mmap'd area
18110 * how to use it (BSD variants) */
7dfa765c 18111
a3828db0
MK
18112#include <fcntl.h>
18113#include <sys/mman.h>
7dfa765c 18114
a3828db0
MK
18115#if !STDC_HEADERS && !HAVE_STDLIB_H
18116char *malloc ();
18117#endif
7dfa765c 18118
a3828db0
MK
18119/* This mess was copied from the GNU getpagesize.h. */
18120#if !HAVE_GETPAGESIZE
18121/* Assume that all systems that can run configure have sys/param.h. */
18122# if !HAVE_SYS_PARAM_H
18123# define HAVE_SYS_PARAM_H 1
18124# endif
64bb1671 18125
a3828db0
MK
18126# ifdef _SC_PAGESIZE
18127# define getpagesize() sysconf(_SC_PAGESIZE)
18128# else /* no _SC_PAGESIZE */
18129# if HAVE_SYS_PARAM_H
18130# include <sys/param.h>
18131# ifdef EXEC_PAGESIZE
18132# define getpagesize() EXEC_PAGESIZE
18133# else /* no EXEC_PAGESIZE */
18134# ifdef NBPG
18135# define getpagesize() NBPG * CLSIZE
18136# ifndef CLSIZE
18137# define CLSIZE 1
18138# endif /* no CLSIZE */
18139# else /* no NBPG */
18140# ifdef NBPC
18141# define getpagesize() NBPC
18142# else /* no NBPC */
18143# ifdef PAGESIZE
18144# define getpagesize() PAGESIZE
18145# endif /* PAGESIZE */
18146# endif /* no NBPC */
18147# endif /* no NBPG */
18148# endif /* no EXEC_PAGESIZE */
18149# else /* no HAVE_SYS_PARAM_H */
18150# define getpagesize() 8192 /* punt totally */
18151# endif /* no HAVE_SYS_PARAM_H */
18152# endif /* no _SC_PAGESIZE */
64bb1671 18153
a3828db0 18154#endif /* no HAVE_GETPAGESIZE */
64bb1671 18155
a3828db0
MK
18156int
18157main ()
18158{
18159 char *data, *data2, *data3;
18160 int i, pagesize;
18161 int fd;
97bf5e38 18162
a3828db0
MK
18163 pagesize = getpagesize ();
18164
18165 /* First, make a file with some known garbage in it. */
18166 data = (char *) malloc (pagesize);
18167 if (!data)
b4e70030 18168 exit (1);
a3828db0
MK
18169 for (i = 0; i < pagesize; ++i)
18170 *(data + i) = rand ();
18171 umask (0);
18172 fd = creat ("conftest.mmap", 0600);
18173 if (fd < 0)
b4e70030 18174 exit (1);
a3828db0 18175 if (write (fd, data, pagesize) != pagesize)
b4e70030 18176 exit (1);
a3828db0
MK
18177 close (fd);
18178
18179 /* Next, try to mmap the file at a fixed address which already has
18180 something else allocated at it. If we can, also make sure that
18181 we see the same garbage. */
18182 fd = open ("conftest.mmap", O_RDWR);
18183 if (fd < 0)
b4e70030 18184 exit (1);
a3828db0
MK
18185 data2 = (char *) malloc (2 * pagesize);
18186 if (!data2)
b4e70030
JB
18187 exit (1);
18188 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
a3828db0
MK
18189 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18190 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b4e70030 18191 exit (1);
a3828db0
MK
18192 for (i = 0; i < pagesize; ++i)
18193 if (*(data + i) != *(data2 + i))
b4e70030 18194 exit (1);
a3828db0
MK
18195
18196 /* Finally, make sure that changes to the mapped area do not
18197 percolate back to the file as seen by read(). (This is a bug on
18198 some variants of i386 svr4.0.) */
18199 for (i = 0; i < pagesize; ++i)
18200 *(data2 + i) = *(data2 + i) + 1;
18201 data3 = (char *) malloc (pagesize);
18202 if (!data3)
b4e70030 18203 exit (1);
a3828db0 18204 if (read (fd, data3, pagesize) != pagesize)
b4e70030 18205 exit (1);
a3828db0
MK
18206 for (i = 0; i < pagesize; ++i)
18207 if (*(data + i) != *(data3 + i))
b4e70030 18208 exit (1);
a3828db0 18209 close (fd);
b4e70030 18210 exit (0);
97bf5e38 18211}
bec39cab
AC
18212_ACEOF
18213rm -f conftest$ac_exeext
18214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18215 (eval $ac_link) 2>&5
18216 ac_status=$?
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
a3828db0 18224 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 18225else
bec39cab
AC
18226 echo "$as_me: program exited with status $ac_status" >&5
18227echo "$as_me: failed program was:" >&5
18228sed 's/^/| /' conftest.$ac_ext >&5
18229
18230( exit $ac_status )
a3828db0 18231ac_cv_func_mmap_fixed_mapped=no
0afdd437 18232fi
b4e70030 18233rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 18234fi
a3828db0 18235fi
b4e70030
JB
18236echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18237echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
a3828db0 18238if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
18239
18240cat >>confdefs.h <<\_ACEOF
a3828db0 18241#define HAVE_MMAP 1
bec39cab 18242_ACEOF
0afdd437
MK
18243
18244fi
a3828db0 18245rm -f conftest.mmap
0afdd437 18246
b4e70030
JB
18247echo "$as_me:$LINENO: checking for pid_t" >&5
18248echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
a3828db0 18249if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18251else
18252 cat >conftest.$ac_ext <<_ACEOF
18253/* confdefs.h. */
18254_ACEOF
18255cat confdefs.h >>conftest.$ac_ext
18256cat >>conftest.$ac_ext <<_ACEOF
18257/* end confdefs.h. */
a3828db0 18258$ac_includes_default
bec39cab
AC
18259int
18260main ()
18261{
b4e70030 18262if ((pid_t *) 0)
a3828db0 18263 return 0;
b4e70030 18264if (sizeof (pid_t))
a3828db0 18265 return 0;
bec39cab
AC
18266 ;
18267 return 0;
18268}
18269_ACEOF
a3828db0
MK
18270rm -f conftest.$ac_objext
18271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18272 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
18273 ac_status=$?
18274 grep -v '^ *+' conftest.er1 >conftest.err
18275 rm -f conftest.er1
18276 cat conftest.err >&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } &&
b4e70030
JB
18279 { ac_try='test -z "$ac_c_werror_flag"
18280 || test ! -s conftest.err'
bec39cab
AC
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; } &&
a3828db0 18286 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
18287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288 (eval $ac_try) 2>&5
18289 ac_status=$?
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; }; then
a3828db0 18292 ac_cv_type_pid_t=yes
bec39cab
AC
18293else
18294 echo "$as_me: failed program was:" >&5
18295sed 's/^/| /' conftest.$ac_ext >&5
18296
b4e70030 18297ac_cv_type_pid_t=no
bec39cab 18298fi
a3828db0 18299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 18300fi
b4e70030
JB
18301echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18302echo "${ECHO_T}$ac_cv_type_pid_t" >&6
a3828db0
MK
18303if test $ac_cv_type_pid_t = yes; then
18304 :
18305else
18306
18307cat >>confdefs.h <<_ACEOF
18308#define pid_t int
bec39cab 18309_ACEOF
7e89e357 18310
7e89e357
JT
18311fi
18312
bec39cab 18313
b4e70030
JB
18314
18315for ac_header in unistd.h vfork.h
7be570e7 18316do
a3828db0 18317as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
18318if eval "test \"\${$as_ac_Header+set}\" = set"; then
18319 echo "$as_me:$LINENO: checking for $ac_header" >&5
18320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18321if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 18322 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0 18323fi
b4e70030
JB
18324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18325echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 18326else
a3828db0 18327 # Is the header compilable?
b4e70030
JB
18328echo "$as_me:$LINENO: checking $ac_header usability" >&5
18329echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0 18330cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18331/* confdefs.h. */
18332_ACEOF
18333cat confdefs.h >>conftest.$ac_ext
18334cat >>conftest.$ac_ext <<_ACEOF
18335/* end confdefs.h. */
a3828db0
MK
18336$ac_includes_default
18337#include <$ac_header>
bec39cab 18338_ACEOF
a3828db0
MK
18339rm -f conftest.$ac_objext
18340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18341 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
18342 ac_status=$?
18343 grep -v '^ *+' conftest.er1 >conftest.err
18344 rm -f conftest.er1
18345 cat conftest.err >&5
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); } &&
b4e70030
JB
18348 { ac_try='test -z "$ac_c_werror_flag"
18349 || test ! -s conftest.err'
bec39cab
AC
18350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351 (eval $ac_try) 2>&5
18352 ac_status=$?
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; } &&
a3828db0 18355 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
18356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18357 (eval $ac_try) 2>&5
18358 ac_status=$?
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); }; }; then
a3828db0 18361 ac_header_compiler=yes
bec39cab
AC
18362else
18363 echo "$as_me: failed program was:" >&5
18364sed 's/^/| /' conftest.$ac_ext >&5
18365
b4e70030 18366ac_header_compiler=no
bec39cab 18367fi
a3828db0 18368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
18369echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18370echo "${ECHO_T}$ac_header_compiler" >&6
a3828db0
MK
18371
18372# Is the header present?
b4e70030
JB
18373echo "$as_me:$LINENO: checking $ac_header presence" >&5
18374echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a3828db0
MK
18375cat >conftest.$ac_ext <<_ACEOF
18376/* confdefs.h. */
18377_ACEOF
18378cat confdefs.h >>conftest.$ac_ext
18379cat >>conftest.$ac_ext <<_ACEOF
18380/* end confdefs.h. */
18381#include <$ac_header>
18382_ACEOF
18383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18385 ac_status=$?
18386 grep -v '^ *+' conftest.er1 >conftest.err
18387 rm -f conftest.er1
18388 cat conftest.err >&5
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); } >/dev/null; then
18391 if test -s conftest.err; then
18392 ac_cpp_err=$ac_c_preproc_warn_flag
18393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18394 else
18395 ac_cpp_err=
18396 fi
18397else
18398 ac_cpp_err=yes
18399fi
18400if test -z "$ac_cpp_err"; then
18401 ac_header_preproc=yes
18402else
18403 echo "$as_me: failed program was:" >&5
18404sed 's/^/| /' conftest.$ac_ext >&5
18405
18406 ac_header_preproc=no
18407fi
18408rm -f conftest.err conftest.$ac_ext
b4e70030
JB
18409echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18410echo "${ECHO_T}$ac_header_preproc" >&6
a3828db0
MK
18411
18412# So? What about this header?
18413case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18414 yes:no: )
18415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18416echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18418echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18419 ac_header_preproc=yes
18420 ;;
18421 no:yes:* )
18422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18423echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18425echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18427echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18429echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18431echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18433echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
18434 (
18435 cat <<\_ASBOX
18436## ------------------------------------------ ##
18437## Report this to the AC_PACKAGE_NAME lists. ##
18438## ------------------------------------------ ##
18439_ASBOX
18440 ) |
18441 sed "s/^/$as_me: WARNING: /" >&2
a3828db0
MK
18442 ;;
18443esac
b4e70030
JB
18444echo "$as_me:$LINENO: checking for $ac_header" >&5
18445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18446if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
18447 echo $ECHO_N "(cached) $ECHO_C" >&6
18448else
18449 eval "$as_ac_Header=\$ac_header_preproc"
18450fi
b4e70030
JB
18451echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18452echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0 18453
bec39cab 18454fi
a3828db0 18455if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 18456 cat >>confdefs.h <<_ACEOF
a3828db0 18457#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 18458_ACEOF
14abd0fb 18459
14abd0fb 18460fi
a3828db0 18461
14abd0fb
MK
18462done
18463
bec39cab 18464
a3828db0
MK
18465
18466for ac_func in fork vfork
14abd0fb 18467do
bec39cab 18468as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18469echo "$as_me:$LINENO: checking for $ac_func" >&5
18470echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18471if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18472 echo $ECHO_N "(cached) $ECHO_C" >&6
18473else
18474 cat >conftest.$ac_ext <<_ACEOF
18475/* confdefs.h. */
18476_ACEOF
18477cat confdefs.h >>conftest.$ac_ext
18478cat >>conftest.$ac_ext <<_ACEOF
18479/* end confdefs.h. */
18480/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18482#define $ac_func innocuous_$ac_func
18483
14abd0fb 18484/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18485 which can conflict with char $ac_func (); below.
18486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18487 <limits.h> exists even on freestanding compilers. */
18488
18489#ifdef __STDC__
18490# include <limits.h>
18491#else
18492# include <assert.h>
18493#endif
14abd0fb 18494
bec39cab 18495#undef $ac_func
14abd0fb 18496
b4e70030 18497/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
18498#ifdef __cplusplus
18499extern "C"
b4e70030 18500{
bec39cab 18501#endif
b4e70030
JB
18502/* We use char because int might match the return type of a gcc2
18503 builtin and then its argument prototype would still apply. */
bec39cab 18504char $ac_func ();
14abd0fb
MK
18505/* The GNU C library defines this for functions which it implements
18506 to always fail with ENOSYS. Some functions are actually named
18507 something starting with __ and the normal name is an alias. */
b4e70030 18508#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14abd0fb 18509choke me
b4e70030
JB
18510#else
18511char (*f) () = $ac_func;
18512#endif
18513#ifdef __cplusplus
18514}
14abd0fb
MK
18515#endif
18516
bec39cab
AC
18517int
18518main ()
18519{
b4e70030 18520return f != $ac_func;
bec39cab
AC
18521 ;
18522 return 0;
18523}
18524_ACEOF
18525rm -f conftest.$ac_objext conftest$ac_exeext
18526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18527 (eval $ac_link) 2>conftest.er1
18528 ac_status=$?
18529 grep -v '^ *+' conftest.er1 >conftest.err
18530 rm -f conftest.er1
18531 cat conftest.err >&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); } &&
b4e70030
JB
18534 { ac_try='test -z "$ac_c_werror_flag"
18535 || test ! -s conftest.err'
bec39cab
AC
18536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537 (eval $ac_try) 2>&5
18538 ac_status=$?
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); }; } &&
18541 { ac_try='test -s conftest$ac_exeext'
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; }; then
18547 eval "$as_ac_var=yes"
18548else
18549 echo "$as_me: failed program was:" >&5
18550sed 's/^/| /' conftest.$ac_ext >&5
18551
b4e70030 18552eval "$as_ac_var=no"
bec39cab
AC
18553fi
18554rm -f conftest.err conftest.$ac_objext \
18555 conftest$ac_exeext conftest.$ac_ext
18556fi
b4e70030
JB
18557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18558echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18559if test `eval echo '${'$as_ac_var'}'` = yes; then
18560 cat >>confdefs.h <<_ACEOF
18561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18562_ACEOF
7be570e7 18563
7be570e7
JM
18564fi
18565done
18566
a3828db0 18567if test "x$ac_cv_func_fork" = xyes; then
b4e70030
JB
18568 echo "$as_me:$LINENO: checking for working fork" >&5
18569echo $ECHO_N "checking for working fork... $ECHO_C" >&6
a3828db0
MK
18570if test "${ac_cv_func_fork_works+set}" = set; then
18571 echo $ECHO_N "(cached) $ECHO_C" >&6
18572else
18573 if test "$cross_compiling" = yes; then
18574 ac_cv_func_fork_works=cross
18575else
18576 cat >conftest.$ac_ext <<_ACEOF
b4e70030
JB
18577/* By Ruediger Kuhlmann. */
18578 #include <sys/types.h>
18579 #if HAVE_UNISTD_H
18580 # include <unistd.h>
18581 #endif
18582 /* Some systems only have a dummy stub for fork() */
18583 int main ()
18584 {
18585 if (fork() < 0)
18586 exit (1);
18587 exit (0);
18588 }
a3828db0
MK
18589_ACEOF
18590rm -f conftest$ac_exeext
18591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18592 (eval $ac_link) 2>&5
18593 ac_status=$?
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18597 (eval $ac_try) 2>&5
18598 ac_status=$?
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; }; then
18601 ac_cv_func_fork_works=yes
18602else
18603 echo "$as_me: program exited with status $ac_status" >&5
18604echo "$as_me: failed program was:" >&5
18605sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 18606
a3828db0
MK
18607( exit $ac_status )
18608ac_cv_func_fork_works=no
18609fi
b4e70030 18610rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18611fi
18612fi
b4e70030
JB
18613echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18614echo "${ECHO_T}$ac_cv_func_fork_works" >&6
a3828db0
MK
18615
18616else
18617 ac_cv_func_fork_works=$ac_cv_func_fork
18618fi
18619if test "x$ac_cv_func_fork_works" = xcross; then
18620 case $host in
18621 *-*-amigaos* | *-*-msdosdjgpp*)
18622 # Override, as these systems have only a dummy fork() stub
18623 ac_cv_func_fork_works=no
18624 ;;
18625 *)
18626 ac_cv_func_fork_works=yes
18627 ;;
18628 esac
18629 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18630echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18631fi
18632ac_cv_func_vfork_works=$ac_cv_func_vfork
18633if test "x$ac_cv_func_vfork" = xyes; then
b4e70030
JB
18634 echo "$as_me:$LINENO: checking for working vfork" >&5
18635echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
a3828db0 18636if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 18637 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
18638else
18639 if test "$cross_compiling" = yes; then
18640 ac_cv_func_vfork_works=cross
bec39cab
AC
18641else
18642 cat >conftest.$ac_ext <<_ACEOF
18643/* confdefs.h. */
18644_ACEOF
18645cat confdefs.h >>conftest.$ac_ext
18646cat >>conftest.$ac_ext <<_ACEOF
18647/* end confdefs.h. */
a3828db0 18648/* Thanks to Paul Eggert for this test. */
b4e70030
JB
18649#include <stdio.h>
18650#include <stdlib.h>
18651#include <sys/types.h>
18652#include <sys/stat.h>
a3828db0 18653#include <sys/wait.h>
b4e70030
JB
18654#if HAVE_UNISTD_H
18655# include <unistd.h>
18656#endif
a3828db0
MK
18657#if HAVE_VFORK_H
18658# include <vfork.h>
bec39cab 18659#endif
a3828db0
MK
18660/* On some sparc systems, changes by the child to local and incoming
18661 argument registers are propagated back to the parent. The compiler
18662 is told about this with #include <vfork.h>, but some compilers
18663 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18664 static variable whose address is put into a register that is
18665 clobbered by the vfork. */
18666static void
bec39cab 18667#ifdef __cplusplus
a3828db0
MK
18668sparc_address_test (int arg)
18669# else
18670sparc_address_test (arg) int arg;
c906108c 18671#endif
a3828db0
MK
18672{
18673 static pid_t child;
18674 if (!child) {
18675 child = vfork ();
18676 if (child < 0) {
18677 perror ("vfork");
18678 _exit(2);
18679 }
18680 if (!child) {
18681 arg = getpid();
18682 write(-1, "", 0);
18683 _exit (arg);
18684 }
18685 }
18686}
97bf5e38 18687
bec39cab
AC
18688int
18689main ()
18690{
a3828db0
MK
18691 pid_t parent = getpid ();
18692 pid_t child;
18693
18694 sparc_address_test (0);
18695
18696 child = vfork ();
18697
18698 if (child == 0) {
18699 /* Here is another test for sparc vfork register problems. This
18700 test uses lots of local variables, at least as many local
18701 variables as main has allocated so far including compiler
18702 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18703 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18704 reuse the register of parent for one of the local variables,
18705 since it will think that parent can't possibly be used any more
18706 in this routine. Assigning to the local variable will thus
18707 munge parent in the parent process. */
18708 pid_t
18709 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18710 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18711 /* Convince the compiler that p..p7 are live; otherwise, it might
18712 use the same hardware register for all 8 local variables. */
18713 if (p != p1 || p != p2 || p != p3 || p != p4
18714 || p != p5 || p != p6 || p != p7)
18715 _exit(1);
18716
18717 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18718 from child file descriptors. If the child closes a descriptor
18719 before it execs or exits, this munges the parent's descriptor
18720 as well. Test for this by closing stdout in the child. */
18721 _exit(close(fileno(stdout)) != 0);
18722 } else {
18723 int status;
18724 struct stat st;
18725
18726 while (wait(&status) != child)
18727 ;
b4e70030 18728 exit(
a3828db0
MK
18729 /* Was there some problem with vforking? */
18730 child < 0
18731
18732 /* Did the child fail? (This shouldn't happen.) */
18733 || status
18734
18735 /* Did the vfork/compiler bug occur? */
18736 || parent != getpid()
18737
18738 /* Did the file descriptor bug occur? */
18739 || fstat(fileno(stdout), &st) != 0
18740 );
18741 }
bec39cab
AC
18742}
18743_ACEOF
a3828db0 18744rm -f conftest$ac_exeext
bec39cab 18745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 18746 (eval $ac_link) 2>&5
bec39cab
AC
18747 ac_status=$?
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 18749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
18750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18751 (eval $ac_try) 2>&5
18752 ac_status=$?
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); }; }; then
a3828db0
MK
18755 ac_cv_func_vfork_works=yes
18756else
18757 echo "$as_me: program exited with status $ac_status" >&5
18758echo "$as_me: failed program was:" >&5
18759sed 's/^/| /' conftest.$ac_ext >&5
18760
18761( exit $ac_status )
18762ac_cv_func_vfork_works=no
18763fi
b4e70030 18764rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18765fi
18766fi
b4e70030
JB
18767echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18768echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
a3828db0
MK
18769
18770fi;
18771if test "x$ac_cv_func_fork_works" = xcross; then
18772 ac_cv_func_vfork_works=$ac_cv_func_vfork
18773 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18774echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18775fi
18776
18777if test "x$ac_cv_func_vfork_works" = xyes; then
18778
18779cat >>confdefs.h <<\_ACEOF
18780#define HAVE_WORKING_VFORK 1
18781_ACEOF
18782
bec39cab 18783else
bec39cab 18784
a3828db0
MK
18785cat >>confdefs.h <<\_ACEOF
18786#define vfork fork
18787_ACEOF
18788
bec39cab 18789fi
a3828db0
MK
18790if test "x$ac_cv_func_fork_works" = xyes; then
18791
18792cat >>confdefs.h <<\_ACEOF
18793#define HAVE_WORKING_FORK 1
bec39cab 18794_ACEOF
c906108c 18795
c906108c
SS
18796fi
18797
bec39cab
AC
18798
18799
a3828db0 18800for ac_func in canonicalize_file_name realpath
97bf5e38 18801do
bec39cab 18802as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030 18803echo "$as_me:$LINENO: checking for $ac_func" >&5
7eb368b3
NR
18804echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18805if eval "test \"\${$as_ac_var+set}\" = set"; then
18806 echo $ECHO_N "(cached) $ECHO_C" >&6
18807else
18808 cat >conftest.$ac_ext <<_ACEOF
18809/* confdefs.h. */
18810_ACEOF
18811cat confdefs.h >>conftest.$ac_ext
18812cat >>conftest.$ac_ext <<_ACEOF
18813/* end confdefs.h. */
18814/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18816#define $ac_func innocuous_$ac_func
18817
18818/* System header to define __stub macros and hopefully few prototypes,
18819 which can conflict with char $ac_func (); below.
18820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18821 <limits.h> exists even on freestanding compilers. */
18822
18823#ifdef __STDC__
18824# include <limits.h>
18825#else
18826# include <assert.h>
18827#endif
18828
18829#undef $ac_func
18830
18831/* Override any gcc2 internal prototype to avoid an error. */
18832#ifdef __cplusplus
18833extern "C"
18834{
18835#endif
18836/* We use char because int might match the return type of a gcc2
18837 builtin and then its argument prototype would still apply. */
18838char $ac_func ();
18839/* The GNU C library defines this for functions which it implements
18840 to always fail with ENOSYS. Some functions are actually named
18841 something starting with __ and the normal name is an alias. */
18842#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18843choke me
18844#else
18845char (*f) () = $ac_func;
18846#endif
18847#ifdef __cplusplus
18848}
18849#endif
18850
18851int
18852main ()
18853{
18854return f != $ac_func;
18855 ;
18856 return 0;
18857}
18858_ACEOF
18859rm -f conftest.$ac_objext conftest$ac_exeext
18860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18861 (eval $ac_link) 2>conftest.er1
18862 ac_status=$?
18863 grep -v '^ *+' conftest.er1 >conftest.err
18864 rm -f conftest.er1
18865 cat conftest.err >&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); } &&
18868 { ac_try='test -z "$ac_c_werror_flag"
18869 || test ! -s conftest.err'
18870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871 (eval $ac_try) 2>&5
18872 ac_status=$?
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; } &&
18875 { ac_try='test -s conftest$ac_exeext'
18876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18877 (eval $ac_try) 2>&5
18878 ac_status=$?
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; }; then
18881 eval "$as_ac_var=yes"
18882else
18883 echo "$as_me: failed program was:" >&5
18884sed 's/^/| /' conftest.$ac_ext >&5
18885
18886eval "$as_ac_var=no"
18887fi
18888rm -f conftest.err conftest.$ac_objext \
18889 conftest$ac_exeext conftest.$ac_ext
18890fi
18891echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18892echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18893if test `eval echo '${'$as_ac_var'}'` = yes; then
18894 cat >>confdefs.h <<_ACEOF
18895#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18896_ACEOF
18897
18898fi
18899done
18900
18901
18902for ac_func in getrusage
18903do
18904as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18905echo "$as_me:$LINENO: checking for $ac_func" >&5
b4e70030
JB
18906echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18907if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18908 echo $ECHO_N "(cached) $ECHO_C" >&6
18909else
18910 cat >conftest.$ac_ext <<_ACEOF
18911/* confdefs.h. */
18912_ACEOF
18913cat confdefs.h >>conftest.$ac_ext
18914cat >>conftest.$ac_ext <<_ACEOF
18915/* end confdefs.h. */
18916/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18918#define $ac_func innocuous_$ac_func
18919
d3ea6809
MM
18920/* System header to define __stub macros and hopefully few prototypes,
18921 which can conflict with char $ac_func (); below.
18922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18923 <limits.h> exists even on freestanding compilers. */
18924
18925#ifdef __STDC__
18926# include <limits.h>
18927#else
18928# include <assert.h>
18929#endif
18930
18931#undef $ac_func
18932
b4e70030 18933/* Override any gcc2 internal prototype to avoid an error. */
d3ea6809
MM
18934#ifdef __cplusplus
18935extern "C"
b4e70030 18936{
d3ea6809 18937#endif
b4e70030
JB
18938/* We use char because int might match the return type of a gcc2
18939 builtin and then its argument prototype would still apply. */
d3ea6809
MM
18940char $ac_func ();
18941/* The GNU C library defines this for functions which it implements
18942 to always fail with ENOSYS. Some functions are actually named
18943 something starting with __ and the normal name is an alias. */
b4e70030 18944#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d3ea6809 18945choke me
b4e70030
JB
18946#else
18947char (*f) () = $ac_func;
18948#endif
18949#ifdef __cplusplus
18950}
d3ea6809
MM
18951#endif
18952
18953int
18954main ()
18955{
b4e70030 18956return f != $ac_func;
d3ea6809
MM
18957 ;
18958 return 0;
18959}
18960_ACEOF
18961rm -f conftest.$ac_objext conftest$ac_exeext
18962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18963 (eval $ac_link) 2>conftest.er1
18964 ac_status=$?
18965 grep -v '^ *+' conftest.er1 >conftest.err
18966 rm -f conftest.er1
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } &&
b4e70030
JB
18970 { ac_try='test -z "$ac_c_werror_flag"
18971 || test ! -s conftest.err'
d3ea6809
MM
18972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973 (eval $ac_try) 2>&5
18974 ac_status=$?
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; } &&
18977 { ac_try='test -s conftest$ac_exeext'
18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18980 ac_status=$?
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; }; then
18983 eval "$as_ac_var=yes"
18984else
18985 echo "$as_me: failed program was:" >&5
18986sed 's/^/| /' conftest.$ac_ext >&5
18987
b4e70030 18988eval "$as_ac_var=no"
d3ea6809
MM
18989fi
18990rm -f conftest.err conftest.$ac_objext \
18991 conftest$ac_exeext conftest.$ac_ext
18992fi
b4e70030
JB
18993echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18994echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d3ea6809
MM
18995if test `eval echo '${'$as_ac_var'}'` = yes; then
18996 cat >>confdefs.h <<_ACEOF
18997#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18998_ACEOF
18999
19000fi
19001done
19002
19003
19004
19005for ac_func in getuid getgid
19006do
19007as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19008echo "$as_me:$LINENO: checking for $ac_func" >&5
19009echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19010if eval "test \"\${$as_ac_var+set}\" = set"; then
d3ea6809
MM
19011 echo $ECHO_N "(cached) $ECHO_C" >&6
19012else
19013 cat >conftest.$ac_ext <<_ACEOF
19014/* confdefs.h. */
19015_ACEOF
19016cat confdefs.h >>conftest.$ac_ext
19017cat >>conftest.$ac_ext <<_ACEOF
19018/* end confdefs.h. */
19019/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19021#define $ac_func innocuous_$ac_func
19022
97bf5e38 19023/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19024 which can conflict with char $ac_func (); below.
19025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19026 <limits.h> exists even on freestanding compilers. */
c906108c 19027
bec39cab
AC
19028#ifdef __STDC__
19029# include <limits.h>
19030#else
19031# include <assert.h>
19032#endif
97bf5e38 19033
bec39cab
AC
19034#undef $ac_func
19035
b4e70030 19036/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19037#ifdef __cplusplus
19038extern "C"
b4e70030 19039{
bec39cab 19040#endif
b4e70030
JB
19041/* We use char because int might match the return type of a gcc2
19042 builtin and then its argument prototype would still apply. */
bec39cab 19043char $ac_func ();
97bf5e38
MK
19044/* The GNU C library defines this for functions which it implements
19045 to always fail with ENOSYS. Some functions are actually named
19046 something starting with __ and the normal name is an alias. */
b4e70030 19047#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 19048choke me
b4e70030
JB
19049#else
19050char (*f) () = $ac_func;
19051#endif
19052#ifdef __cplusplus
19053}
c906108c 19054#endif
97bf5e38 19055
bec39cab
AC
19056int
19057main ()
19058{
b4e70030 19059return f != $ac_func;
bec39cab
AC
19060 ;
19061 return 0;
19062}
19063_ACEOF
19064rm -f conftest.$ac_objext conftest$ac_exeext
19065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19066 (eval $ac_link) 2>conftest.er1
19067 ac_status=$?
19068 grep -v '^ *+' conftest.er1 >conftest.err
19069 rm -f conftest.er1
19070 cat conftest.err >&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); } &&
b4e70030
JB
19073 { ac_try='test -z "$ac_c_werror_flag"
19074 || test ! -s conftest.err'
bec39cab
AC
19075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19076 (eval $ac_try) 2>&5
19077 ac_status=$?
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); }; } &&
19080 { ac_try='test -s conftest$ac_exeext'
19081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19082 (eval $ac_try) 2>&5
19083 ac_status=$?
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); }; }; then
19086 eval "$as_ac_var=yes"
19087else
19088 echo "$as_me: failed program was:" >&5
19089sed 's/^/| /' conftest.$ac_ext >&5
19090
b4e70030 19091eval "$as_ac_var=no"
bec39cab
AC
19092fi
19093rm -f conftest.err conftest.$ac_objext \
19094 conftest$ac_exeext conftest.$ac_ext
19095fi
b4e70030
JB
19096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19097echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19098if test `eval echo '${'$as_ac_var'}'` = yes; then
19099 cat >>confdefs.h <<_ACEOF
19100#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19101_ACEOF
c906108c 19102
c906108c 19103fi
97bf5e38 19104done
c906108c 19105
bec39cab 19106
a3828db0 19107for ac_func in poll
97bf5e38 19108do
bec39cab 19109as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19110echo "$as_me:$LINENO: checking for $ac_func" >&5
19111echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19112if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19113 echo $ECHO_N "(cached) $ECHO_C" >&6
19114else
19115 cat >conftest.$ac_ext <<_ACEOF
19116/* confdefs.h. */
19117_ACEOF
19118cat confdefs.h >>conftest.$ac_ext
19119cat >>conftest.$ac_ext <<_ACEOF
19120/* end confdefs.h. */
19121/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19123#define $ac_func innocuous_$ac_func
19124
97bf5e38 19125/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19126 which can conflict with char $ac_func (); below.
19127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19128 <limits.h> exists even on freestanding compilers. */
19129
19130#ifdef __STDC__
19131# include <limits.h>
19132#else
19133# include <assert.h>
19134#endif
c906108c 19135
bec39cab 19136#undef $ac_func
97bf5e38 19137
b4e70030 19138/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19139#ifdef __cplusplus
19140extern "C"
b4e70030 19141{
bec39cab 19142#endif
b4e70030
JB
19143/* We use char because int might match the return type of a gcc2
19144 builtin and then its argument prototype would still apply. */
bec39cab 19145char $ac_func ();
97bf5e38
MK
19146/* The GNU C library defines this for functions which it implements
19147 to always fail with ENOSYS. Some functions are actually named
19148 something starting with __ and the normal name is an alias. */
b4e70030 19149#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 19150choke me
b4e70030
JB
19151#else
19152char (*f) () = $ac_func;
19153#endif
19154#ifdef __cplusplus
19155}
c906108c 19156#endif
97bf5e38 19157
bec39cab
AC
19158int
19159main ()
19160{
b4e70030 19161return f != $ac_func;
bec39cab
AC
19162 ;
19163 return 0;
19164}
19165_ACEOF
19166rm -f conftest.$ac_objext conftest$ac_exeext
19167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19168 (eval $ac_link) 2>conftest.er1
19169 ac_status=$?
19170 grep -v '^ *+' conftest.er1 >conftest.err
19171 rm -f conftest.er1
19172 cat conftest.err >&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); } &&
b4e70030
JB
19175 { ac_try='test -z "$ac_c_werror_flag"
19176 || test ! -s conftest.err'
bec39cab
AC
19177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178 (eval $ac_try) 2>&5
19179 ac_status=$?
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; } &&
19182 { ac_try='test -s conftest$ac_exeext'
19183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184 (eval $ac_try) 2>&5
19185 ac_status=$?
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); }; }; then
19188 eval "$as_ac_var=yes"
19189else
19190 echo "$as_me: failed program was:" >&5
19191sed 's/^/| /' conftest.$ac_ext >&5
19192
b4e70030 19193eval "$as_ac_var=no"
bec39cab
AC
19194fi
19195rm -f conftest.err conftest.$ac_objext \
19196 conftest$ac_exeext conftest.$ac_ext
19197fi
b4e70030
JB
19198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19199echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19200if test `eval echo '${'$as_ac_var'}'` = yes; then
19201 cat >>confdefs.h <<_ACEOF
19202#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19203_ACEOF
c906108c 19204
c906108c 19205fi
97bf5e38 19206done
c906108c 19207
bec39cab 19208
a3828db0 19209for ac_func in pread64
97bf5e38 19210do
bec39cab 19211as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19212echo "$as_me:$LINENO: checking for $ac_func" >&5
19213echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19214if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19215 echo $ECHO_N "(cached) $ECHO_C" >&6
19216else
19217 cat >conftest.$ac_ext <<_ACEOF
19218/* confdefs.h. */
19219_ACEOF
19220cat confdefs.h >>conftest.$ac_ext
19221cat >>conftest.$ac_ext <<_ACEOF
19222/* end confdefs.h. */
19223/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19225#define $ac_func innocuous_$ac_func
19226
97bf5e38 19227/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19228 which can conflict with char $ac_func (); below.
19229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19230 <limits.h> exists even on freestanding compilers. */
19231
19232#ifdef __STDC__
19233# include <limits.h>
19234#else
19235# include <assert.h>
19236#endif
c906108c 19237
bec39cab 19238#undef $ac_func
97bf5e38 19239
b4e70030 19240/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19241#ifdef __cplusplus
19242extern "C"
b4e70030 19243{
bec39cab 19244#endif
b4e70030
JB
19245/* We use char because int might match the return type of a gcc2
19246 builtin and then its argument prototype would still apply. */
bec39cab 19247char $ac_func ();
97bf5e38
MK
19248/* The GNU C library defines this for functions which it implements
19249 to always fail with ENOSYS. Some functions are actually named
19250 something starting with __ and the normal name is an alias. */
b4e70030 19251#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 19252choke me
b4e70030
JB
19253#else
19254char (*f) () = $ac_func;
19255#endif
19256#ifdef __cplusplus
19257}
c906108c 19258#endif
97bf5e38 19259
bec39cab
AC
19260int
19261main ()
19262{
b4e70030 19263return f != $ac_func;
bec39cab
AC
19264 ;
19265 return 0;
19266}
19267_ACEOF
19268rm -f conftest.$ac_objext conftest$ac_exeext
19269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19270 (eval $ac_link) 2>conftest.er1
19271 ac_status=$?
19272 grep -v '^ *+' conftest.er1 >conftest.err
19273 rm -f conftest.er1
19274 cat conftest.err >&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); } &&
b4e70030
JB
19277 { ac_try='test -z "$ac_c_werror_flag"
19278 || test ! -s conftest.err'
bec39cab
AC
19279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19280 (eval $ac_try) 2>&5
19281 ac_status=$?
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; } &&
19284 { ac_try='test -s conftest$ac_exeext'
19285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19286 (eval $ac_try) 2>&5
19287 ac_status=$?
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); }; }; then
19290 eval "$as_ac_var=yes"
19291else
19292 echo "$as_me: failed program was:" >&5
19293sed 's/^/| /' conftest.$ac_ext >&5
19294
b4e70030 19295eval "$as_ac_var=no"
bec39cab
AC
19296fi
19297rm -f conftest.err conftest.$ac_objext \
19298 conftest$ac_exeext conftest.$ac_ext
19299fi
b4e70030
JB
19300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19301echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19302if test `eval echo '${'$as_ac_var'}'` = yes; then
19303 cat >>confdefs.h <<_ACEOF
19304#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19305_ACEOF
c906108c 19306
c906108c 19307fi
97bf5e38 19308done
c906108c 19309
bec39cab 19310
a3828db0 19311for ac_func in sbrk
b757528f 19312do
bec39cab 19313as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19314echo "$as_me:$LINENO: checking for $ac_func" >&5
19315echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19316if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19317 echo $ECHO_N "(cached) $ECHO_C" >&6
19318else
19319 cat >conftest.$ac_ext <<_ACEOF
19320/* confdefs.h. */
19321_ACEOF
19322cat confdefs.h >>conftest.$ac_ext
19323cat >>conftest.$ac_ext <<_ACEOF
19324/* end confdefs.h. */
19325/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19327#define $ac_func innocuous_$ac_func
19328
b757528f 19329/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19330 which can conflict with char $ac_func (); below.
19331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19332 <limits.h> exists even on freestanding compilers. */
19333
19334#ifdef __STDC__
19335# include <limits.h>
19336#else
19337# include <assert.h>
19338#endif
b757528f 19339
bec39cab 19340#undef $ac_func
b757528f 19341
b4e70030 19342/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19343#ifdef __cplusplus
19344extern "C"
b4e70030 19345{
bec39cab 19346#endif
b4e70030
JB
19347/* We use char because int might match the return type of a gcc2
19348 builtin and then its argument prototype would still apply. */
bec39cab 19349char $ac_func ();
b757528f
JJ
19350/* The GNU C library defines this for functions which it implements
19351 to always fail with ENOSYS. Some functions are actually named
19352 something starting with __ and the normal name is an alias. */
b4e70030 19353#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
b757528f 19354choke me
b4e70030
JB
19355#else
19356char (*f) () = $ac_func;
19357#endif
19358#ifdef __cplusplus
19359}
b757528f
JJ
19360#endif
19361
bec39cab
AC
19362int
19363main ()
19364{
b4e70030 19365return f != $ac_func;
bec39cab
AC
19366 ;
19367 return 0;
19368}
19369_ACEOF
19370rm -f conftest.$ac_objext conftest$ac_exeext
19371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19372 (eval $ac_link) 2>conftest.er1
19373 ac_status=$?
19374 grep -v '^ *+' conftest.er1 >conftest.err
19375 rm -f conftest.er1
19376 cat conftest.err >&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); } &&
b4e70030
JB
19379 { ac_try='test -z "$ac_c_werror_flag"
19380 || test ! -s conftest.err'
bec39cab
AC
19381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382 (eval $ac_try) 2>&5
19383 ac_status=$?
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; } &&
19386 { ac_try='test -s conftest$ac_exeext'
19387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19388 (eval $ac_try) 2>&5
19389 ac_status=$?
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; }; then
19392 eval "$as_ac_var=yes"
19393else
19394 echo "$as_me: failed program was:" >&5
19395sed 's/^/| /' conftest.$ac_ext >&5
19396
b4e70030 19397eval "$as_ac_var=no"
bec39cab
AC
19398fi
19399rm -f conftest.err conftest.$ac_objext \
19400 conftest$ac_exeext conftest.$ac_ext
19401fi
b4e70030
JB
19402echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19403echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19404if test `eval echo '${'$as_ac_var'}'` = yes; then
19405 cat >>confdefs.h <<_ACEOF
19406#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19407_ACEOF
b757528f 19408
b757528f
JJ
19409fi
19410done
19411
bec39cab 19412
a3828db0 19413
83116857
TJB
19414
19415for ac_func in setpgid setpgrp setsid
bcb3dc3d 19416do
bec39cab 19417as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19418echo "$as_me:$LINENO: checking for $ac_func" >&5
19419echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19420if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19421 echo $ECHO_N "(cached) $ECHO_C" >&6
19422else
19423 cat >conftest.$ac_ext <<_ACEOF
19424/* confdefs.h. */
19425_ACEOF
19426cat confdefs.h >>conftest.$ac_ext
19427cat >>conftest.$ac_ext <<_ACEOF
19428/* end confdefs.h. */
19429/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19431#define $ac_func innocuous_$ac_func
19432
bcb3dc3d 19433/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19434 which can conflict with char $ac_func (); below.
19435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19436 <limits.h> exists even on freestanding compilers. */
19437
19438#ifdef __STDC__
19439# include <limits.h>
19440#else
19441# include <assert.h>
19442#endif
bcb3dc3d 19443
bec39cab 19444#undef $ac_func
bcb3dc3d 19445
b4e70030 19446/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19447#ifdef __cplusplus
19448extern "C"
b4e70030 19449{
bec39cab 19450#endif
b4e70030
JB
19451/* We use char because int might match the return type of a gcc2
19452 builtin and then its argument prototype would still apply. */
bec39cab 19453char $ac_func ();
bcb3dc3d
MK
19454/* The GNU C library defines this for functions which it implements
19455 to always fail with ENOSYS. Some functions are actually named
19456 something starting with __ and the normal name is an alias. */
b4e70030 19457#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bcb3dc3d 19458choke me
b4e70030
JB
19459#else
19460char (*f) () = $ac_func;
19461#endif
19462#ifdef __cplusplus
19463}
bcb3dc3d
MK
19464#endif
19465
bec39cab
AC
19466int
19467main ()
19468{
b4e70030 19469return f != $ac_func;
bec39cab
AC
19470 ;
19471 return 0;
19472}
19473_ACEOF
19474rm -f conftest.$ac_objext conftest$ac_exeext
19475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19476 (eval $ac_link) 2>conftest.er1
19477 ac_status=$?
19478 grep -v '^ *+' conftest.er1 >conftest.err
19479 rm -f conftest.er1
19480 cat conftest.err >&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } &&
b4e70030
JB
19483 { ac_try='test -z "$ac_c_werror_flag"
19484 || test ! -s conftest.err'
bec39cab
AC
19485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19486 (eval $ac_try) 2>&5
19487 ac_status=$?
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; } &&
19490 { ac_try='test -s conftest$ac_exeext'
19491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492 (eval $ac_try) 2>&5
19493 ac_status=$?
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); }; }; then
19496 eval "$as_ac_var=yes"
19497else
19498 echo "$as_me: failed program was:" >&5
19499sed 's/^/| /' conftest.$ac_ext >&5
19500
b4e70030 19501eval "$as_ac_var=no"
bec39cab
AC
19502fi
19503rm -f conftest.err conftest.$ac_objext \
19504 conftest$ac_exeext conftest.$ac_ext
19505fi
b4e70030
JB
19506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19507echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19508if test `eval echo '${'$as_ac_var'}'` = yes; then
19509 cat >>confdefs.h <<_ACEOF
19510#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19511_ACEOF
bcb3dc3d 19512
bcb3dc3d
MK
19513fi
19514done
19515
bec39cab 19516
a3828db0
MK
19517
19518
19519for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 19520do
bec39cab 19521as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19522echo "$as_me:$LINENO: checking for $ac_func" >&5
19523echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19524if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19525 echo $ECHO_N "(cached) $ECHO_C" >&6
19526else
19527 cat >conftest.$ac_ext <<_ACEOF
19528/* confdefs.h. */
19529_ACEOF
19530cat confdefs.h >>conftest.$ac_ext
19531cat >>conftest.$ac_ext <<_ACEOF
19532/* end confdefs.h. */
19533/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19535#define $ac_func innocuous_$ac_func
19536
8b9cf735 19537/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19538 which can conflict with char $ac_func (); below.
19539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19540 <limits.h> exists even on freestanding compilers. */
19541
19542#ifdef __STDC__
19543# include <limits.h>
19544#else
19545# include <assert.h>
19546#endif
8b9cf735 19547
bec39cab 19548#undef $ac_func
8b9cf735 19549
b4e70030 19550/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19551#ifdef __cplusplus
19552extern "C"
b4e70030 19553{
a3828db0 19554#endif
b4e70030
JB
19555/* We use char because int might match the return type of a gcc2
19556 builtin and then its argument prototype would still apply. */
a3828db0
MK
19557char $ac_func ();
19558/* The GNU C library defines this for functions which it implements
19559 to always fail with ENOSYS. Some functions are actually named
19560 something starting with __ and the normal name is an alias. */
b4e70030 19561#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19562choke me
b4e70030
JB
19563#else
19564char (*f) () = $ac_func;
19565#endif
19566#ifdef __cplusplus
19567}
a3828db0
MK
19568#endif
19569
bec39cab
AC
19570int
19571main ()
19572{
b4e70030 19573return f != $ac_func;
bec39cab
AC
19574 ;
19575 return 0;
19576}
19577_ACEOF
a3828db0
MK
19578rm -f conftest.$ac_objext conftest$ac_exeext
19579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19580 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19581 ac_status=$?
19582 grep -v '^ *+' conftest.er1 >conftest.err
19583 rm -f conftest.er1
19584 cat conftest.err >&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); } &&
b4e70030
JB
19587 { ac_try='test -z "$ac_c_werror_flag"
19588 || test ! -s conftest.err'
bec39cab
AC
19589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19590 (eval $ac_try) 2>&5
19591 ac_status=$?
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; } &&
a3828db0 19594 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19596 (eval $ac_try) 2>&5
19597 ac_status=$?
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); }; }; then
a3828db0 19600 eval "$as_ac_var=yes"
086ec9eb 19601else
bec39cab
AC
19602 echo "$as_me: failed program was:" >&5
19603sed 's/^/| /' conftest.$ac_ext >&5
19604
b4e70030 19605eval "$as_ac_var=no"
a3828db0
MK
19606fi
19607rm -f conftest.err conftest.$ac_objext \
19608 conftest$ac_exeext conftest.$ac_ext
19609fi
b4e70030
JB
19610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19611echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
19612if test `eval echo '${'$as_ac_var'}'` = yes; then
19613 cat >>confdefs.h <<_ACEOF
19614#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19615_ACEOF
19616
086ec9eb 19617fi
a3828db0
MK
19618done
19619
19620
19621for ac_func in socketpair
19622do
19623as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19624echo "$as_me:$LINENO: checking for $ac_func" >&5
19625echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19626if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
19627 echo $ECHO_N "(cached) $ECHO_C" >&6
19628else
19629 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
19630/* confdefs.h. */
19631_ACEOF
19632cat confdefs.h >>conftest.$ac_ext
19633cat >>conftest.$ac_ext <<_ACEOF
19634/* end confdefs.h. */
a3828db0
MK
19635/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19637#define $ac_func innocuous_$ac_func
19638
19639/* System header to define __stub macros and hopefully few prototypes,
19640 which can conflict with char $ac_func (); below.
19641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19642 <limits.h> exists even on freestanding compilers. */
19643
19644#ifdef __STDC__
19645# include <limits.h>
19646#else
19647# include <assert.h>
19648#endif
19649
19650#undef $ac_func
19651
b4e70030 19652/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19653#ifdef __cplusplus
19654extern "C"
b4e70030 19655{
a3828db0 19656#endif
b4e70030
JB
19657/* We use char because int might match the return type of a gcc2
19658 builtin and then its argument prototype would still apply. */
a3828db0
MK
19659char $ac_func ();
19660/* The GNU C library defines this for functions which it implements
19661 to always fail with ENOSYS. Some functions are actually named
19662 something starting with __ and the normal name is an alias. */
b4e70030 19663#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19664choke me
b4e70030
JB
19665#else
19666char (*f) () = $ac_func;
19667#endif
19668#ifdef __cplusplus
19669}
a3828db0
MK
19670#endif
19671
bec39cab
AC
19672int
19673main ()
19674{
b4e70030 19675return f != $ac_func;
bec39cab
AC
19676 ;
19677 return 0;
19678}
19679_ACEOF
a3828db0
MK
19680rm -f conftest.$ac_objext conftest$ac_exeext
19681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19682 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19683 ac_status=$?
19684 grep -v '^ *+' conftest.er1 >conftest.err
19685 rm -f conftest.er1
19686 cat conftest.err >&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); } &&
b4e70030
JB
19689 { ac_try='test -z "$ac_c_werror_flag"
19690 || test ! -s conftest.err'
bec39cab
AC
19691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692 (eval $ac_try) 2>&5
19693 ac_status=$?
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; } &&
a3828db0 19696 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698 (eval $ac_try) 2>&5
19699 ac_status=$?
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; }; then
a3828db0 19702 eval "$as_ac_var=yes"
086ec9eb 19703else
bec39cab
AC
19704 echo "$as_me: failed program was:" >&5
19705sed 's/^/| /' conftest.$ac_ext >&5
19706
b4e70030 19707eval "$as_ac_var=no"
086ec9eb 19708fi
a3828db0
MK
19709rm -f conftest.err conftest.$ac_objext \
19710 conftest$ac_exeext conftest.$ac_ext
086ec9eb 19711fi
b4e70030
JB
19712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19713echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
19714if test `eval echo '${'$as_ac_var'}'` = yes; then
19715 cat >>confdefs.h <<_ACEOF
19716#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 19717_ACEOF
086ec9eb
MK
19718
19719fi
a3828db0 19720done
086ec9eb 19721
a3828db0
MK
19722
19723for ac_func in syscall
19724do
19725as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19726echo "$as_me:$LINENO: checking for $ac_func" >&5
19727echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19728if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 19729 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
19730else
19731 cat >conftest.$ac_ext <<_ACEOF
19732/* confdefs.h. */
19733_ACEOF
19734cat confdefs.h >>conftest.$ac_ext
19735cat >>conftest.$ac_ext <<_ACEOF
19736/* end confdefs.h. */
a3828db0
MK
19737/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19739#define $ac_func innocuous_$ac_func
19740
19741/* System header to define __stub macros and hopefully few prototypes,
19742 which can conflict with char $ac_func (); below.
19743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19744 <limits.h> exists even on freestanding compilers. */
19745
19746#ifdef __STDC__
19747# include <limits.h>
19748#else
19749# include <assert.h>
19750#endif
19751
19752#undef $ac_func
19753
b4e70030 19754/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19755#ifdef __cplusplus
19756extern "C"
b4e70030 19757{
a3828db0 19758#endif
b4e70030
JB
19759/* We use char because int might match the return type of a gcc2
19760 builtin and then its argument prototype would still apply. */
a3828db0
MK
19761char $ac_func ();
19762/* The GNU C library defines this for functions which it implements
19763 to always fail with ENOSYS. Some functions are actually named
19764 something starting with __ and the normal name is an alias. */
b4e70030 19765#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19766choke me
b4e70030
JB
19767#else
19768char (*f) () = $ac_func;
19769#endif
19770#ifdef __cplusplus
19771}
c906108c 19772#endif
97bf5e38 19773
bec39cab
AC
19774int
19775main ()
97bf5e38 19776{
b4e70030 19777return f != $ac_func;
bec39cab
AC
19778 ;
19779 return 0;
97bf5e38 19780}
bec39cab 19781_ACEOF
a3828db0 19782rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 19783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 19784 (eval $ac_link) 2>conftest.er1
bec39cab 19785 ac_status=$?
a3828db0
MK
19786 grep -v '^ *+' conftest.er1 >conftest.err
19787 rm -f conftest.er1
19788 cat conftest.err >&5
bec39cab 19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 19790 (exit $ac_status); } &&
b4e70030
JB
19791 { ac_try='test -z "$ac_c_werror_flag"
19792 || test ! -s conftest.err'
a3828db0
MK
19793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19794 (eval $ac_try) 2>&5
19795 ac_status=$?
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); }; } &&
19798 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800 (eval $ac_try) 2>&5
19801 ac_status=$?
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; }; then
a3828db0 19804 eval "$as_ac_var=yes"
c906108c 19805else
a3828db0 19806 echo "$as_me: failed program was:" >&5
bec39cab
AC
19807sed 's/^/| /' conftest.$ac_ext >&5
19808
b4e70030 19809eval "$as_ac_var=no"
97bf5e38 19810fi
a3828db0
MK
19811rm -f conftest.err conftest.$ac_objext \
19812 conftest$ac_exeext conftest.$ac_ext
19813fi
b4e70030
JB
19814echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19815echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
19816if test `eval echo '${'$as_ac_var'}'` = yes; then
19817 cat >>confdefs.h <<_ACEOF
19818#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 19819_ACEOF
c906108c
SS
19820
19821fi
a3828db0 19822done
c906108c 19823
a3828db0
MK
19824
19825for ac_func in ttrace
19826do
19827as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19828echo "$as_me:$LINENO: checking for $ac_func" >&5
19829echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19830if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 19831 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 19832else
bec39cab
AC
19833 cat >conftest.$ac_ext <<_ACEOF
19834/* confdefs.h. */
19835_ACEOF
19836cat confdefs.h >>conftest.$ac_ext
19837cat >>conftest.$ac_ext <<_ACEOF
19838/* end confdefs.h. */
a3828db0
MK
19839/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19841#define $ac_func innocuous_$ac_func
b83266a0 19842
a3828db0
MK
19843/* System header to define __stub macros and hopefully few prototypes,
19844 which can conflict with char $ac_func (); below.
19845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19846 <limits.h> exists even on freestanding compilers. */
19847
19848#ifdef __STDC__
19849# include <limits.h>
19850#else
19851# include <assert.h>
19852#endif
19853
19854#undef $ac_func
19855
b4e70030 19856/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19857#ifdef __cplusplus
19858extern "C"
b4e70030 19859{
a3828db0 19860#endif
b4e70030
JB
19861/* We use char because int might match the return type of a gcc2
19862 builtin and then its argument prototype would still apply. */
a3828db0
MK
19863char $ac_func ();
19864/* The GNU C library defines this for functions which it implements
19865 to always fail with ENOSYS. Some functions are actually named
19866 something starting with __ and the normal name is an alias. */
b4e70030 19867#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19868choke me
b4e70030
JB
19869#else
19870char (*f) () = $ac_func;
19871#endif
19872#ifdef __cplusplus
19873}
a3828db0 19874#endif
97bf5e38 19875
bec39cab
AC
19876int
19877main ()
19878{
b4e70030 19879return f != $ac_func;
bec39cab
AC
19880 ;
19881 return 0;
19882}
19883_ACEOF
a3828db0
MK
19884rm -f conftest.$ac_objext conftest$ac_exeext
19885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19886 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19887 ac_status=$?
19888 grep -v '^ *+' conftest.er1 >conftest.err
19889 rm -f conftest.er1
19890 cat conftest.err >&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); } &&
b4e70030
JB
19893 { ac_try='test -z "$ac_c_werror_flag"
19894 || test ! -s conftest.err'
bec39cab
AC
19895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896 (eval $ac_try) 2>&5
19897 ac_status=$?
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; } &&
a3828db0 19900 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19902 (eval $ac_try) 2>&5
19903 ac_status=$?
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); }; }; then
a3828db0 19906 eval "$as_ac_var=yes"
b83266a0 19907else
bec39cab
AC
19908 echo "$as_me: failed program was:" >&5
19909sed 's/^/| /' conftest.$ac_ext >&5
19910
b4e70030 19911eval "$as_ac_var=no"
b83266a0 19912fi
a3828db0
MK
19913rm -f conftest.err conftest.$ac_objext \
19914 conftest$ac_exeext conftest.$ac_ext
b83266a0 19915fi
b4e70030
JB
19916echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19917echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
19918if test `eval echo '${'$as_ac_var'}'` = yes; then
19919 cat >>confdefs.h <<_ACEOF
19920#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 19921_ACEOF
b83266a0 19922
97bf5e38 19923fi
a3828db0 19924done
b83266a0 19925
a3828db0
MK
19926
19927for ac_func in wborder
19928do
19929as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19930echo "$as_me:$LINENO: checking for $ac_func" >&5
19931echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19932if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19934else
19935 cat >conftest.$ac_ext <<_ACEOF
19936/* confdefs.h. */
19937_ACEOF
19938cat confdefs.h >>conftest.$ac_ext
19939cat >>conftest.$ac_ext <<_ACEOF
19940/* end confdefs.h. */
a3828db0
MK
19941/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19943#define $ac_func innocuous_$ac_func
a4db0f07 19944
a3828db0
MK
19945/* System header to define __stub macros and hopefully few prototypes,
19946 which can conflict with char $ac_func (); below.
19947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19948 <limits.h> exists even on freestanding compilers. */
19949
19950#ifdef __STDC__
19951# include <limits.h>
19952#else
19953# include <assert.h>
19954#endif
19955
19956#undef $ac_func
19957
b4e70030 19958/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19959#ifdef __cplusplus
19960extern "C"
b4e70030 19961{
a3828db0 19962#endif
b4e70030
JB
19963/* We use char because int might match the return type of a gcc2
19964 builtin and then its argument prototype would still apply. */
a3828db0
MK
19965char $ac_func ();
19966/* The GNU C library defines this for functions which it implements
19967 to always fail with ENOSYS. Some functions are actually named
19968 something starting with __ and the normal name is an alias. */
b4e70030 19969#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19970choke me
b4e70030
JB
19971#else
19972char (*f) () = $ac_func;
19973#endif
19974#ifdef __cplusplus
19975}
a3828db0 19976#endif
97bf5e38 19977
bec39cab
AC
19978int
19979main ()
19980{
b4e70030 19981return f != $ac_func;
bec39cab
AC
19982 ;
19983 return 0;
19984}
19985_ACEOF
a3828db0
MK
19986rm -f conftest.$ac_objext conftest$ac_exeext
19987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19988 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19989 ac_status=$?
19990 grep -v '^ *+' conftest.er1 >conftest.err
19991 rm -f conftest.er1
19992 cat conftest.err >&5
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } &&
b4e70030
JB
19995 { ac_try='test -z "$ac_c_werror_flag"
19996 || test ! -s conftest.err'
bec39cab
AC
19997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19998 (eval $ac_try) 2>&5
19999 ac_status=$?
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }; } &&
a3828db0 20002 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
20003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20004 (eval $ac_try) 2>&5
20005 ac_status=$?
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); }; }; then
a3828db0 20008 eval "$as_ac_var=yes"
a4db0f07 20009else
bec39cab
AC
20010 echo "$as_me: failed program was:" >&5
20011sed 's/^/| /' conftest.$ac_ext >&5
20012
b4e70030 20013eval "$as_ac_var=no"
a4db0f07 20014fi
a3828db0
MK
20015rm -f conftest.err conftest.$ac_objext \
20016 conftest$ac_exeext conftest.$ac_ext
a4db0f07 20017fi
b4e70030
JB
20018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20019echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
20020if test `eval echo '${'$as_ac_var'}'` = yes; then
20021 cat >>confdefs.h <<_ACEOF
20022#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 20023_ACEOF
a4db0f07
RH
20024
20025fi
a3828db0 20026done
c906108c 20027
06825bd1 20028
a3828db0
MK
20029# Check the return and argument types of ptrace. No canned test for
20030# this, so roll our own.
20031gdb_ptrace_headers='
20032#if HAVE_SYS_TYPES_H
20033# include <sys/types.h>
20034#endif
20035#if HAVE_SYS_PTRACE_H
20036# include <sys/ptrace.h>
20037#endif
20038#if HAVE_UNISTD_H
20039# include <unistd.h>
20040#endif
20041'
20042# There is no point in checking if we don't have a prototype.
b4e70030
JB
20043echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
20044echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
a3828db0 20045if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
20046 echo $ECHO_N "(cached) $ECHO_C" >&6
20047else
20048 cat >conftest.$ac_ext <<_ACEOF
20049/* confdefs.h. */
20050_ACEOF
20051cat confdefs.h >>conftest.$ac_ext
20052cat >>conftest.$ac_ext <<_ACEOF
20053/* end confdefs.h. */
a3828db0
MK
20054$gdb_ptrace_headers
20055
bec39cab
AC
20056int
20057main ()
20058{
a3828db0
MK
20059#ifndef ptrace
20060 char *p = (char *) ptrace;
06825bd1 20061#endif
a3828db0 20062
bec39cab
AC
20063 ;
20064 return 0;
20065}
20066_ACEOF
20067rm -f conftest.$ac_objext
20068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20069 (eval $ac_compile) 2>conftest.er1
20070 ac_status=$?
20071 grep -v '^ *+' conftest.er1 >conftest.err
20072 rm -f conftest.er1
20073 cat conftest.err >&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } &&
b4e70030
JB
20076 { ac_try='test -z "$ac_c_werror_flag"
20077 || test ! -s conftest.err'
bec39cab
AC
20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079 (eval $ac_try) 2>&5
20080 ac_status=$?
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; } &&
20083 { ac_try='test -s conftest.$ac_objext'
20084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085 (eval $ac_try) 2>&5
20086 ac_status=$?
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; }; then
a3828db0 20089 ac_cv_have_decl_ptrace=yes
06825bd1 20090else
bec39cab
AC
20091 echo "$as_me: failed program was:" >&5
20092sed 's/^/| /' conftest.$ac_ext >&5
20093
b4e70030 20094ac_cv_have_decl_ptrace=no
06825bd1 20095fi
bec39cab 20096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 20097fi
b4e70030
JB
20098echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
20099echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
a3828db0 20100if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 20101
a3828db0
MK
20102cat >>confdefs.h <<_ACEOF
20103#define HAVE_DECL_PTRACE 1
20104_ACEOF
bec39cab 20105
bec39cab 20106
a3828db0
MK
20107else
20108 cat >>confdefs.h <<_ACEOF
20109#define HAVE_DECL_PTRACE 0
bec39cab 20110_ACEOF
06825bd1 20111
a3828db0
MK
20112
20113 : ${gdb_cv_func_ptrace_ret='int'}
20114 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
20115
06825bd1
MK
20116fi
20117
a3828db0 20118
064ef605
DJ
20119# Check return type. Varargs (used on GNU/Linux) conflict with the
20120# empty argument list, so check for that explicitly.
b4e70030
JB
20121echo "$as_me:$LINENO: checking return type of ptrace" >&5
20122echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
a3828db0 20123if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
20124 echo $ECHO_N "(cached) $ECHO_C" >&6
20125else
20126 cat >conftest.$ac_ext <<_ACEOF
20127/* confdefs.h. */
20128_ACEOF
20129cat confdefs.h >>conftest.$ac_ext
20130cat >>conftest.$ac_ext <<_ACEOF
20131/* end confdefs.h. */
a3828db0 20132$gdb_ptrace_headers
bec39cab
AC
20133int
20134main ()
20135{
064ef605
DJ
20136extern long ptrace (enum __ptrace_request, ...);
20137 ;
20138 return 0;
20139}
20140_ACEOF
20141rm -f conftest.$ac_objext
20142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20143 (eval $ac_compile) 2>conftest.er1
20144 ac_status=$?
20145 grep -v '^ *+' conftest.er1 >conftest.err
20146 rm -f conftest.er1
20147 cat conftest.err >&5
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); } &&
20150 { ac_try='test -z "$ac_c_werror_flag"
20151 || test ! -s conftest.err'
20152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20153 (eval $ac_try) 2>&5
20154 ac_status=$?
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); }; } &&
20157 { ac_try='test -s conftest.$ac_objext'
20158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159 (eval $ac_try) 2>&5
20160 ac_status=$?
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; }; then
20163 gdb_cv_func_ptrace_ret='long'
20164else
20165 echo "$as_me: failed program was:" >&5
20166sed 's/^/| /' conftest.$ac_ext >&5
20167
20168cat >conftest.$ac_ext <<_ACEOF
20169/* confdefs.h. */
20170_ACEOF
20171cat confdefs.h >>conftest.$ac_ext
20172cat >>conftest.$ac_ext <<_ACEOF
20173/* end confdefs.h. */
20174$gdb_ptrace_headers
20175int
20176main ()
20177{
a3828db0 20178extern int ptrace ();
bec39cab
AC
20179 ;
20180 return 0;
20181}
20182_ACEOF
20183rm -f conftest.$ac_objext
20184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20185 (eval $ac_compile) 2>conftest.er1
20186 ac_status=$?
20187 grep -v '^ *+' conftest.er1 >conftest.err
20188 rm -f conftest.er1
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } &&
b4e70030
JB
20192 { ac_try='test -z "$ac_c_werror_flag"
20193 || test ! -s conftest.err'
bec39cab
AC
20194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195 (eval $ac_try) 2>&5
20196 ac_status=$?
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; } &&
20199 { ac_try='test -s conftest.$ac_objext'
20200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201 (eval $ac_try) 2>&5
20202 ac_status=$?
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; }; then
a3828db0 20205 gdb_cv_func_ptrace_ret='int'
70f9f479 20206else
bec39cab
AC
20207 echo "$as_me: failed program was:" >&5
20208sed 's/^/| /' conftest.$ac_ext >&5
20209
b4e70030 20210gdb_cv_func_ptrace_ret='long'
70f9f479 20211fi
bec39cab 20212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 20213fi
064ef605
DJ
20214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20215fi
b4e70030
JB
20216echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
20217echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 20218
a3828db0
MK
20219cat >>confdefs.h <<_ACEOF
20220#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 20221_ACEOF
70f9f479 20222
a3828db0 20223# Check argument types.
b4e70030
JB
20224echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
20225echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
a3828db0 20226if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
20227 echo $ECHO_N "(cached) $ECHO_C" >&6
20228else
a3828db0 20229
064ef605
DJ
20230 cat >conftest.$ac_ext <<_ACEOF
20231/* confdefs.h. */
20232_ACEOF
20233cat confdefs.h >>conftest.$ac_ext
20234cat >>conftest.$ac_ext <<_ACEOF
20235/* end confdefs.h. */
20236$gdb_ptrace_headers
20237int
20238main ()
20239{
20240extern long ptrace (enum __ptrace_request, ...);
20241 ;
20242 return 0;
20243}
20244_ACEOF
20245rm -f conftest.$ac_objext
20246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20247 (eval $ac_compile) 2>conftest.er1
20248 ac_status=$?
20249 grep -v '^ *+' conftest.er1 >conftest.err
20250 rm -f conftest.er1
20251 cat conftest.err >&5
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); } &&
20254 { ac_try='test -z "$ac_c_werror_flag"
20255 || test ! -s conftest.err'
20256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20257 (eval $ac_try) 2>&5
20258 ac_status=$?
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); }; } &&
20261 { ac_try='test -s conftest.$ac_objext'
20262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20263 (eval $ac_try) 2>&5
20264 ac_status=$?
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); }; }; then
20267 gdb_cv_func_ptrace_args='int,int,long,long'
20268else
20269 echo "$as_me: failed program was:" >&5
20270sed 's/^/| /' conftest.$ac_ext >&5
20271
20272
a3828db0
MK
20273for gdb_arg1 in 'int' 'long'; do
20274 for gdb_arg2 in 'pid_t' 'int' 'long'; do
5ed10e6e 20275 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
a3828db0
MK
20276 for gdb_arg4 in 'int' 'long'; do
20277 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
20278/* confdefs.h. */
20279_ACEOF
20280cat confdefs.h >>conftest.$ac_ext
20281cat >>conftest.$ac_ext <<_ACEOF
20282/* end confdefs.h. */
a3828db0 20283$gdb_ptrace_headers
bec39cab
AC
20284int
20285main ()
20286{
a3828db0
MK
20287
20288extern $gdb_cv_func_ptrace_ret
20289 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
20290
bec39cab
AC
20291 ;
20292 return 0;
20293}
20294_ACEOF
20295rm -f conftest.$ac_objext
20296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20297 (eval $ac_compile) 2>conftest.er1
20298 ac_status=$?
20299 grep -v '^ *+' conftest.er1 >conftest.err
20300 rm -f conftest.er1
20301 cat conftest.err >&5
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); } &&
b4e70030
JB
20304 { ac_try='test -z "$ac_c_werror_flag"
20305 || test ! -s conftest.err'
bec39cab
AC
20306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307 (eval $ac_try) 2>&5
20308 ac_status=$?
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }; } &&
20311 { ac_try='test -s conftest.$ac_objext'
20312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20313 (eval $ac_try) 2>&5
20314 ac_status=$?
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); }; }; then
a3828db0
MK
20317 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
20318 break 4;
5c7f2947 20319else
bec39cab
AC
20320 echo "$as_me: failed program was:" >&5
20321sed 's/^/| /' conftest.$ac_ext >&5
20322
5c7f2947 20323fi
bec39cab 20324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
20325 for gdb_arg5 in 'int *' 'int' 'long'; do
20326 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
20327/* confdefs.h. */
20328_ACEOF
20329cat confdefs.h >>conftest.$ac_ext
20330cat >>conftest.$ac_ext <<_ACEOF
20331/* end confdefs.h. */
a3828db0 20332$gdb_ptrace_headers
bec39cab
AC
20333int
20334main ()
20335{
a3828db0
MK
20336
20337extern $gdb_cv_func_ptrace_ret
20338 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
20339
bec39cab
AC
20340 ;
20341 return 0;
20342}
20343_ACEOF
20344rm -f conftest.$ac_objext
20345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20346 (eval $ac_compile) 2>conftest.er1
20347 ac_status=$?
20348 grep -v '^ *+' conftest.er1 >conftest.err
20349 rm -f conftest.er1
20350 cat conftest.err >&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); } &&
b4e70030
JB
20353 { ac_try='test -z "$ac_c_werror_flag"
20354 || test ! -s conftest.err'
bec39cab
AC
20355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20356 (eval $ac_try) 2>&5
20357 ac_status=$?
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); }; } &&
20360 { ac_try='test -s conftest.$ac_objext'
20361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20362 (eval $ac_try) 2>&5
20363 ac_status=$?
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); }; }; then
a3828db0
MK
20366
20367gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
20368 break 5;
78434e59 20369else
bec39cab
AC
20370 echo "$as_me: failed program was:" >&5
20371sed 's/^/| /' conftest.$ac_ext >&5
20372
78434e59 20373fi
bec39cab 20374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
20375 done
20376 done
20377 done
20378 done
20379done
20380# Provide a safe default value.
20381: ${gdb_cv_func_ptrace_args='int,int,long,long'}
20382
064ef605
DJ
20383fi
20384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
78434e59 20385fi
b4e70030
JB
20386echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
20387echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
a3828db0
MK
20388ac_save_IFS=$IFS; IFS=','
20389set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
20390IFS=$ac_save_IFS
20391shift
bec39cab 20392
a3828db0
MK
20393cat >>confdefs.h <<_ACEOF
20394#define PTRACE_TYPE_ARG3 $3
20395_ACEOF
20396
20397if test -n "$5"; then
20398
20399cat >>confdefs.h <<_ACEOF
20400#define PTRACE_TYPE_ARG5 $5
bec39cab 20401_ACEOF
78434e59
MK
20402
20403fi
20404
a3828db0 20405if test "$cross_compiling" = no; then
b4e70030
JB
20406 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20407echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 20408if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 20409 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
20410else
20411 if test "$cross_compiling" = yes; then
20412 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20413echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20414 { (exit 1); exit 1; }; }
bec39cab
AC
20415else
20416 cat >conftest.$ac_ext <<_ACEOF
20417/* confdefs.h. */
20418_ACEOF
20419cat confdefs.h >>conftest.$ac_ext
20420cat >>conftest.$ac_ext <<_ACEOF
20421/* end confdefs.h. */
b4e70030
JB
20422#if HAVE_UNISTD_H
20423# include <unistd.h>
20424#endif
20425
bec39cab
AC
20426int
20427main ()
20428{
a3828db0
MK
20429/* If this system has a BSD-style setpgrp which takes arguments,
20430 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20431 exit successfully. */
b4e70030 20432 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
20433 ;
20434 return 0;
20435}
20436_ACEOF
a3828db0
MK
20437rm -f conftest$ac_exeext
20438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20439 (eval $ac_link) 2>&5
bec39cab
AC
20440 ac_status=$?
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 20442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
20443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20444 (eval $ac_try) 2>&5
20445 ac_status=$?
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); }; }; then
a3828db0 20448 ac_cv_func_setpgrp_void=no
c906108c 20449else
a3828db0
MK
20450 echo "$as_me: program exited with status $ac_status" >&5
20451echo "$as_me: failed program was:" >&5
bec39cab
AC
20452sed 's/^/| /' conftest.$ac_ext >&5
20453
a3828db0
MK
20454( exit $ac_status )
20455ac_cv_func_setpgrp_void=yes
c906108c 20456fi
b4e70030 20457rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 20458fi
a3828db0 20459fi
b4e70030
JB
20460echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20461echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0
MK
20462if test $ac_cv_func_setpgrp_void = yes; then
20463
20464cat >>confdefs.h <<\_ACEOF
20465#define SETPGRP_VOID 1
bec39cab 20466_ACEOF
97bf5e38
MK
20467
20468fi
a3828db0
MK
20469
20470else
b4e70030
JB
20471 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20472echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 20473if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 20474 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20475else
bec39cab
AC
20476 cat >conftest.$ac_ext <<_ACEOF
20477/* confdefs.h. */
20478_ACEOF
20479cat confdefs.h >>conftest.$ac_ext
20480cat >>conftest.$ac_ext <<_ACEOF
20481/* end confdefs.h. */
a3828db0
MK
20482
20483#include <unistd.h>
20484
bec39cab
AC
20485int
20486main ()
20487{
a3828db0
MK
20488
20489 if (setpgrp(1,1) == -1)
20490 exit (0);
20491 else
20492 exit (1);
20493
bec39cab
AC
20494 ;
20495 return 0;
20496}
20497_ACEOF
20498rm -f conftest.$ac_objext
20499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20500 (eval $ac_compile) 2>conftest.er1
20501 ac_status=$?
20502 grep -v '^ *+' conftest.er1 >conftest.err
20503 rm -f conftest.er1
20504 cat conftest.err >&5
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); } &&
b4e70030
JB
20507 { ac_try='test -z "$ac_c_werror_flag"
20508 || test ! -s conftest.err'
bec39cab
AC
20509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20510 (eval $ac_try) 2>&5
20511 ac_status=$?
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); }; } &&
20514 { ac_try='test -s conftest.$ac_objext'
20515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516 (eval $ac_try) 2>&5
20517 ac_status=$?
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); }; }; then
a3828db0 20520 ac_cv_func_setpgrp_void=no
c906108c 20521else
bec39cab
AC
20522 echo "$as_me: failed program was:" >&5
20523sed 's/^/| /' conftest.$ac_ext >&5
20524
b4e70030 20525ac_cv_func_setpgrp_void=yes
c906108c 20526fi
bec39cab 20527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20528fi
b4e70030
JB
20529echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20530echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0 20531if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 20532 cat >>confdefs.h <<\_ACEOF
a3828db0 20533#define SETPGRP_VOID 1
bec39cab 20534_ACEOF
c3f6f71d 20535
a3828db0 20536fi
c906108c
SS
20537fi
20538
a3828db0
MK
20539# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
20540# since sigsetjmp might only be defined as a macro.
b4e70030
JB
20541echo "$as_me:$LINENO: checking for sigsetjmp" >&5
20542echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
a3828db0 20543if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
20544 echo $ECHO_N "(cached) $ECHO_C" >&6
20545else
20546 cat >conftest.$ac_ext <<_ACEOF
20547/* confdefs.h. */
20548_ACEOF
20549cat confdefs.h >>conftest.$ac_ext
20550cat >>conftest.$ac_ext <<_ACEOF
20551/* end confdefs.h. */
a3828db0
MK
20552
20553#include <setjmp.h>
20554
bec39cab
AC
20555int
20556main ()
20557{
a3828db0 20558sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
20559 ;
20560 return 0;
20561}
20562_ACEOF
20563rm -f conftest.$ac_objext
20564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20565 (eval $ac_compile) 2>conftest.er1
20566 ac_status=$?
20567 grep -v '^ *+' conftest.er1 >conftest.err
20568 rm -f conftest.er1
20569 cat conftest.err >&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); } &&
b4e70030
JB
20572 { ac_try='test -z "$ac_c_werror_flag"
20573 || test ! -s conftest.err'
bec39cab
AC
20574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20575 (eval $ac_try) 2>&5
20576 ac_status=$?
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); }; } &&
20579 { ac_try='test -s conftest.$ac_objext'
20580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20581 (eval $ac_try) 2>&5
20582 ac_status=$?
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); }; }; then
a3828db0 20585 gdb_cv_func_sigsetjmp=yes
c906108c 20586else
bec39cab
AC
20587 echo "$as_me: failed program was:" >&5
20588sed 's/^/| /' conftest.$ac_ext >&5
20589
b4e70030 20590gdb_cv_func_sigsetjmp=no
c906108c 20591fi
bec39cab 20592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20593fi
b4e70030
JB
20594echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
20595echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
a3828db0 20596if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 20597
a3828db0
MK
20598cat >>confdefs.h <<\_ACEOF
20599#define HAVE_SIGSETJMP 1
bec39cab 20600_ACEOF
c906108c 20601
97bf5e38 20602fi
c906108c 20603
a3828db0
MK
20604# Assume we'll default to using the included libiberty regex.
20605gdb_use_included_regex=yes
20606
20607# However, if the system regex is GNU regex, then default to *not*
20608# using the included regex.
b4e70030
JB
20609echo "$as_me:$LINENO: checking for GNU regex" >&5
20610echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
a3828db0 20611if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
20612 echo $ECHO_N "(cached) $ECHO_C" >&6
20613else
20614 cat >conftest.$ac_ext <<_ACEOF
20615/* confdefs.h. */
20616_ACEOF
20617cat confdefs.h >>conftest.$ac_ext
20618cat >>conftest.$ac_ext <<_ACEOF
20619/* end confdefs.h. */
a3828db0 20620#include <gnu-versions.h>
bec39cab
AC
20621int
20622main ()
20623{
a3828db0
MK
20624#define REGEX_INTERFACE_VERSION 1
20625#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
20626# error "Version mismatch"
20627#endif
bec39cab
AC
20628 ;
20629 return 0;
20630}
20631_ACEOF
20632rm -f conftest.$ac_objext
20633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20634 (eval $ac_compile) 2>conftest.er1
20635 ac_status=$?
20636 grep -v '^ *+' conftest.er1 >conftest.err
20637 rm -f conftest.er1
20638 cat conftest.err >&5
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); } &&
b4e70030
JB
20641 { ac_try='test -z "$ac_c_werror_flag"
20642 || test ! -s conftest.err'
bec39cab
AC
20643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20644 (eval $ac_try) 2>&5
20645 ac_status=$?
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; } &&
20648 { ac_try='test -s conftest.$ac_objext'
20649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20650 (eval $ac_try) 2>&5
20651 ac_status=$?
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); }; }; then
a3828db0 20654 gdb_cv_have_gnu_regex=yes
c906108c 20655else
bec39cab
AC
20656 echo "$as_me: failed program was:" >&5
20657sed 's/^/| /' conftest.$ac_ext >&5
20658
b4e70030 20659gdb_cv_have_gnu_regex=no
c906108c 20660fi
bec39cab 20661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20662fi
b4e70030
JB
20663echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
20664echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
a3828db0
MK
20665if test $gdb_cv_have_gnu_regex = yes; then
20666 gdb_use_included_regex=no
20667fi
c906108c 20668
a3828db0 20669
b4e70030 20670# Check whether --with-included-regex or --without-included-regex was given.
a3828db0 20671if test "${with_included_regex+set}" = set; then
b4e70030
JB
20672 withval="$with_included_regex"
20673 gdb_with_regex=$withval
a3828db0
MK
20674else
20675 gdb_with_regex=$gdb_use_included_regex
b4e70030 20676fi;
a3828db0
MK
20677if test "$gdb_with_regex" = yes; then
20678
20679cat >>confdefs.h <<\_ACEOF
20680#define USE_INCLUDED_REGEX 1
bec39cab 20681_ACEOF
c906108c 20682
97bf5e38 20683fi
c906108c 20684
5c45e068 20685# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
b4e70030
JB
20686echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
20687echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
5c45e068 20688if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
20689 echo $ECHO_N "(cached) $ECHO_C" >&6
20690else
20691 cat >conftest.$ac_ext <<_ACEOF
20692/* confdefs.h. */
20693_ACEOF
20694cat confdefs.h >>conftest.$ac_ext
20695cat >>conftest.$ac_ext <<_ACEOF
20696/* end confdefs.h. */
a3828db0
MK
20697#include <sys/param.h>
20698#include <sys/proc.h>
5c45e068
MK
20699
20700
bec39cab
AC
20701int
20702main ()
20703{
5c45e068
MK
20704static struct thread ac_aggr;
20705if (ac_aggr.td_pcb)
20706return 0;
bec39cab
AC
20707 ;
20708 return 0;
20709}
20710_ACEOF
20711rm -f conftest.$ac_objext
20712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20713 (eval $ac_compile) 2>conftest.er1
20714 ac_status=$?
20715 grep -v '^ *+' conftest.er1 >conftest.err
20716 rm -f conftest.er1
20717 cat conftest.err >&5
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); } &&
b4e70030
JB
20720 { ac_try='test -z "$ac_c_werror_flag"
20721 || test ! -s conftest.err'
bec39cab
AC
20722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20723 (eval $ac_try) 2>&5
20724 ac_status=$?
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); }; } &&
20727 { ac_try='test -s conftest.$ac_objext'
20728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20729 (eval $ac_try) 2>&5
20730 ac_status=$?
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); }; }; then
5c45e068 20733 ac_cv_member_struct_thread_td_pcb=yes
c906108c 20734else
bec39cab
AC
20735 echo "$as_me: failed program was:" >&5
20736sed 's/^/| /' conftest.$ac_ext >&5
20737
b4e70030 20738cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
20739/* confdefs.h. */
20740_ACEOF
20741cat confdefs.h >>conftest.$ac_ext
20742cat >>conftest.$ac_ext <<_ACEOF
20743/* end confdefs.h. */
20744#include <sys/param.h>
20745#include <sys/proc.h>
20746
20747
20748int
20749main ()
20750{
20751static struct thread ac_aggr;
20752if (sizeof ac_aggr.td_pcb)
20753return 0;
20754 ;
20755 return 0;
20756}
20757_ACEOF
20758rm -f conftest.$ac_objext
20759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20760 (eval $ac_compile) 2>conftest.er1
20761 ac_status=$?
20762 grep -v '^ *+' conftest.er1 >conftest.err
20763 rm -f conftest.er1
20764 cat conftest.err >&5
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); } &&
b4e70030
JB
20767 { ac_try='test -z "$ac_c_werror_flag"
20768 || test ! -s conftest.err'
5c45e068
MK
20769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20770 (eval $ac_try) 2>&5
20771 ac_status=$?
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; } &&
20774 { ac_try='test -s conftest.$ac_objext'
20775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20776 (eval $ac_try) 2>&5
20777 ac_status=$?
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); }; }; then
20780 ac_cv_member_struct_thread_td_pcb=yes
20781else
20782 echo "$as_me: failed program was:" >&5
20783sed 's/^/| /' conftest.$ac_ext >&5
20784
b4e70030 20785ac_cv_member_struct_thread_td_pcb=no
5c45e068
MK
20786fi
20787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20788fi
bec39cab 20789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20790fi
b4e70030
JB
20791echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
20792echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
5c45e068 20793if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 20794
5c45e068 20795cat >>confdefs.h <<_ACEOF
a3828db0 20796#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 20797_ACEOF
c906108c 20798
5c45e068 20799
97bf5e38 20800fi
c906108c 20801
5c45e068 20802
a3828db0 20803# See if <sys/lwp.h> defines `struct lwp`.
b4e70030
JB
20804echo "$as_me:$LINENO: checking for struct lwp" >&5
20805echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
a3828db0 20806if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
20807 echo $ECHO_N "(cached) $ECHO_C" >&6
20808else
20809 cat >conftest.$ac_ext <<_ACEOF
20810/* confdefs.h. */
20811_ACEOF
20812cat confdefs.h >>conftest.$ac_ext
20813cat >>conftest.$ac_ext <<_ACEOF
20814/* end confdefs.h. */
a3828db0
MK
20815#include <sys/param.h>
20816#include <sys/lwp.h>
bec39cab
AC
20817int
20818main ()
20819{
a3828db0 20820struct lwp l;
bec39cab
AC
20821 ;
20822 return 0;
20823}
20824_ACEOF
20825rm -f conftest.$ac_objext
20826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20827 (eval $ac_compile) 2>conftest.er1
20828 ac_status=$?
20829 grep -v '^ *+' conftest.er1 >conftest.err
20830 rm -f conftest.er1
20831 cat conftest.err >&5
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); } &&
b4e70030
JB
20834 { ac_try='test -z "$ac_c_werror_flag"
20835 || test ! -s conftest.err'
bec39cab
AC
20836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20837 (eval $ac_try) 2>&5
20838 ac_status=$?
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); }; } &&
20841 { ac_try='test -s conftest.$ac_objext'
20842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20843 (eval $ac_try) 2>&5
20844 ac_status=$?
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); }; }; then
a3828db0 20847 gdb_cv_struct_lwp=yes
c906108c 20848else
bec39cab
AC
20849 echo "$as_me: failed program was:" >&5
20850sed 's/^/| /' conftest.$ac_ext >&5
20851
b4e70030 20852gdb_cv_struct_lwp=no
c906108c 20853fi
bec39cab 20854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20855fi
b4e70030
JB
20856echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
20857echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
a3828db0 20858if test $gdb_cv_struct_lwp = yes; then
c906108c 20859
a3828db0
MK
20860cat >>confdefs.h <<\_ACEOF
20861#define HAVE_STRUCT_LWP 1
bec39cab 20862_ACEOF
c906108c 20863
97bf5e38 20864fi
c906108c 20865
a3828db0 20866# See if <machine/reg.h> degines `struct reg'.
b4e70030
JB
20867echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
20868echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
a3828db0 20869if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
20870 echo $ECHO_N "(cached) $ECHO_C" >&6
20871else
20872 cat >conftest.$ac_ext <<_ACEOF
20873/* confdefs.h. */
20874_ACEOF
20875cat confdefs.h >>conftest.$ac_ext
20876cat >>conftest.$ac_ext <<_ACEOF
20877/* end confdefs.h. */
a3828db0
MK
20878#include <sys/types.h>
20879#include <machine/reg.h>
bec39cab
AC
20880int
20881main ()
20882{
a3828db0 20883struct reg r;
bec39cab
AC
20884 ;
20885 return 0;
20886}
20887_ACEOF
20888rm -f conftest.$ac_objext
20889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20890 (eval $ac_compile) 2>conftest.er1
20891 ac_status=$?
20892 grep -v '^ *+' conftest.er1 >conftest.err
20893 rm -f conftest.er1
20894 cat conftest.err >&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); } &&
b4e70030
JB
20897 { ac_try='test -z "$ac_c_werror_flag"
20898 || test ! -s conftest.err'
bec39cab
AC
20899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20900 (eval $ac_try) 2>&5
20901 ac_status=$?
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); }; } &&
20904 { ac_try='test -s conftest.$ac_objext'
20905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906 (eval $ac_try) 2>&5
20907 ac_status=$?
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; }; then
a3828db0 20910 gdb_cv_struct_reg=yes
27ca5dad 20911else
bec39cab
AC
20912 echo "$as_me: failed program was:" >&5
20913sed 's/^/| /' conftest.$ac_ext >&5
20914
b4e70030 20915gdb_cv_struct_reg=no
27ca5dad 20916fi
bec39cab 20917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 20918fi
b4e70030
JB
20919echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
20920echo "${ECHO_T}$gdb_cv_struct_reg" >&6
a3828db0 20921if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
20922
20923cat >>confdefs.h <<\_ACEOF
a3828db0 20924#define HAVE_STRUCT_REG 1
bec39cab 20925_ACEOF
27ca5dad
MC
20926
20927fi
97bf5e38 20928
a3828db0
MK
20929# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
20930# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
b4e70030
JB
20931echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
20932echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
5c45e068 20933if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 20934 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 20935else
bec39cab
AC
20936 cat >conftest.$ac_ext <<_ACEOF
20937/* confdefs.h. */
20938_ACEOF
20939cat confdefs.h >>conftest.$ac_ext
20940cat >>conftest.$ac_ext <<_ACEOF
20941/* end confdefs.h. */
a3828db0 20942#include <machine/reg.h>
5c45e068
MK
20943
20944int
20945main ()
20946{
20947static struct reg ac_aggr;
20948if (ac_aggr.r_fs)
20949return 0;
20950 ;
20951 return 0;
20952}
20953_ACEOF
20954rm -f conftest.$ac_objext
20955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20956 (eval $ac_compile) 2>conftest.er1
20957 ac_status=$?
20958 grep -v '^ *+' conftest.er1 >conftest.err
20959 rm -f conftest.er1
20960 cat conftest.err >&5
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); } &&
b4e70030
JB
20963 { ac_try='test -z "$ac_c_werror_flag"
20964 || test ! -s conftest.err'
5c45e068
MK
20965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966 (eval $ac_try) 2>&5
20967 ac_status=$?
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); }; } &&
20970 { ac_try='test -s conftest.$ac_objext'
20971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20972 (eval $ac_try) 2>&5
20973 ac_status=$?
20974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975 (exit $ac_status); }; }; then
20976 ac_cv_member_struct_reg_r_fs=yes
20977else
20978 echo "$as_me: failed program was:" >&5
20979sed 's/^/| /' conftest.$ac_ext >&5
20980
b4e70030 20981cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
20982/* confdefs.h. */
20983_ACEOF
20984cat confdefs.h >>conftest.$ac_ext
20985cat >>conftest.$ac_ext <<_ACEOF
20986/* end confdefs.h. */
20987#include <machine/reg.h>
20988
bec39cab
AC
20989int
20990main ()
20991{
5c45e068
MK
20992static struct reg ac_aggr;
20993if (sizeof ac_aggr.r_fs)
20994return 0;
bec39cab
AC
20995 ;
20996 return 0;
20997}
20998_ACEOF
20999rm -f conftest.$ac_objext
21000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21001 (eval $ac_compile) 2>conftest.er1
21002 ac_status=$?
21003 grep -v '^ *+' conftest.er1 >conftest.err
21004 rm -f conftest.er1
21005 cat conftest.err >&5
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); } &&
b4e70030
JB
21008 { ac_try='test -z "$ac_c_werror_flag"
21009 || test ! -s conftest.err'
bec39cab
AC
21010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011 (eval $ac_try) 2>&5
21012 ac_status=$?
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; } &&
21015 { ac_try='test -s conftest.$ac_objext'
21016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21017 (eval $ac_try) 2>&5
21018 ac_status=$?
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); }; }; then
5c45e068 21021 ac_cv_member_struct_reg_r_fs=yes
3862412b 21022else
bec39cab
AC
21023 echo "$as_me: failed program was:" >&5
21024sed 's/^/| /' conftest.$ac_ext >&5
21025
b4e70030 21026ac_cv_member_struct_reg_r_fs=no
3862412b 21027fi
bec39cab 21028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 21029fi
5c45e068
MK
21030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21031fi
b4e70030
JB
21032echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
21033echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
5c45e068
MK
21034if test $ac_cv_member_struct_reg_r_fs = yes; then
21035
21036cat >>confdefs.h <<_ACEOF
a3828db0 21037#define HAVE_STRUCT_REG_R_FS 1
bec39cab 21038_ACEOF
3862412b 21039
5c45e068 21040
97bf5e38 21041fi
b4e70030
JB
21042echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
21043echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
5c45e068 21044if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 21045 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 21046else
bec39cab
AC
21047 cat >conftest.$ac_ext <<_ACEOF
21048/* confdefs.h. */
21049_ACEOF
21050cat confdefs.h >>conftest.$ac_ext
21051cat >>conftest.$ac_ext <<_ACEOF
21052/* end confdefs.h. */
a3828db0 21053#include <machine/reg.h>
5c45e068 21054
bec39cab
AC
21055int
21056main ()
21057{
5c45e068
MK
21058static struct reg ac_aggr;
21059if (ac_aggr.r_gs)
21060return 0;
bec39cab
AC
21061 ;
21062 return 0;
21063}
21064_ACEOF
21065rm -f conftest.$ac_objext
21066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21067 (eval $ac_compile) 2>conftest.er1
21068 ac_status=$?
21069 grep -v '^ *+' conftest.er1 >conftest.err
21070 rm -f conftest.er1
21071 cat conftest.err >&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } &&
b4e70030
JB
21074 { ac_try='test -z "$ac_c_werror_flag"
21075 || test ! -s conftest.err'
bec39cab
AC
21076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077 (eval $ac_try) 2>&5
21078 ac_status=$?
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; } &&
21081 { ac_try='test -s conftest.$ac_objext'
21082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083 (eval $ac_try) 2>&5
21084 ac_status=$?
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); }; }; then
5c45e068 21087 ac_cv_member_struct_reg_r_gs=yes
3862412b 21088else
bec39cab
AC
21089 echo "$as_me: failed program was:" >&5
21090sed 's/^/| /' conftest.$ac_ext >&5
21091
b4e70030 21092cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
21093/* confdefs.h. */
21094_ACEOF
21095cat confdefs.h >>conftest.$ac_ext
21096cat >>conftest.$ac_ext <<_ACEOF
21097/* end confdefs.h. */
21098#include <machine/reg.h>
21099
21100int
21101main ()
21102{
21103static struct reg ac_aggr;
21104if (sizeof ac_aggr.r_gs)
21105return 0;
21106 ;
21107 return 0;
21108}
21109_ACEOF
21110rm -f conftest.$ac_objext
21111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21112 (eval $ac_compile) 2>conftest.er1
21113 ac_status=$?
21114 grep -v '^ *+' conftest.er1 >conftest.err
21115 rm -f conftest.er1
21116 cat conftest.err >&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } &&
b4e70030
JB
21119 { ac_try='test -z "$ac_c_werror_flag"
21120 || test ! -s conftest.err'
5c45e068
MK
21121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122 (eval $ac_try) 2>&5
21123 ac_status=$?
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); }; } &&
21126 { ac_try='test -s conftest.$ac_objext'
21127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21128 (eval $ac_try) 2>&5
21129 ac_status=$?
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); }; }; then
21132 ac_cv_member_struct_reg_r_gs=yes
21133else
21134 echo "$as_me: failed program was:" >&5
21135sed 's/^/| /' conftest.$ac_ext >&5
21136
b4e70030 21137ac_cv_member_struct_reg_r_gs=no
3862412b 21138fi
bec39cab 21139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 21140fi
5c45e068
MK
21141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21142fi
b4e70030
JB
21143echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
21144echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
5c45e068
MK
21145if test $ac_cv_member_struct_reg_r_gs = yes; then
21146
21147cat >>confdefs.h <<_ACEOF
a3828db0 21148#define HAVE_STRUCT_REG_R_GS 1
bec39cab 21149_ACEOF
3862412b 21150
5c45e068 21151
97bf5e38 21152fi
3862412b 21153
5c45e068 21154
a3828db0 21155# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
b4e70030
JB
21156echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
21157echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
a3828db0 21158if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 21159 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 21160else
bec39cab
AC
21161 cat >conftest.$ac_ext <<_ACEOF
21162/* confdefs.h. */
21163_ACEOF
21164cat confdefs.h >>conftest.$ac_ext
21165cat >>conftest.$ac_ext <<_ACEOF
21166/* end confdefs.h. */
a3828db0 21167#include <sys/ptrace.h>
bec39cab
AC
21168int
21169main ()
21170{
a3828db0 21171PTRACE_GETREGS;
bec39cab
AC
21172 ;
21173 return 0;
21174}
21175_ACEOF
21176rm -f conftest.$ac_objext
21177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21178 (eval $ac_compile) 2>conftest.er1
21179 ac_status=$?
21180 grep -v '^ *+' conftest.er1 >conftest.err
21181 rm -f conftest.er1
21182 cat conftest.err >&5
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); } &&
b4e70030
JB
21185 { ac_try='test -z "$ac_c_werror_flag"
21186 || test ! -s conftest.err'
bec39cab
AC
21187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21188 (eval $ac_try) 2>&5
21189 ac_status=$?
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); }; } &&
21192 { ac_try='test -s conftest.$ac_objext'
21193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21194 (eval $ac_try) 2>&5
21195 ac_status=$?
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); }; }; then
a3828db0 21198 gdb_cv_have_ptrace_getregs=yes
451928c5 21199else
bec39cab
AC
21200 echo "$as_me: failed program was:" >&5
21201sed 's/^/| /' conftest.$ac_ext >&5
21202
b4e70030 21203gdb_cv_have_ptrace_getregs=no
451928c5 21204fi
bec39cab 21205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
21206fi
21207
b4e70030
JB
21208echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
21209echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
a3828db0 21210if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
21211
21212cat >>confdefs.h <<\_ACEOF
a3828db0 21213#define HAVE_PTRACE_GETREGS 1
bec39cab 21214_ACEOF
451928c5 21215
97bf5e38 21216fi
451928c5 21217
a3828db0 21218# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
b4e70030
JB
21219echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
21220echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
a3828db0 21221if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 21222 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 21223else
bec39cab
AC
21224 cat >conftest.$ac_ext <<_ACEOF
21225/* confdefs.h. */
21226_ACEOF
21227cat confdefs.h >>conftest.$ac_ext
21228cat >>conftest.$ac_ext <<_ACEOF
21229/* end confdefs.h. */
a3828db0 21230#include <sys/ptrace.h>
bec39cab
AC
21231int
21232main ()
21233{
a3828db0 21234PTRACE_GETFPXREGS;
bec39cab
AC
21235 ;
21236 return 0;
21237}
21238_ACEOF
21239rm -f conftest.$ac_objext
21240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21241 (eval $ac_compile) 2>conftest.er1
21242 ac_status=$?
21243 grep -v '^ *+' conftest.er1 >conftest.err
21244 rm -f conftest.er1
21245 cat conftest.err >&5
21246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247 (exit $ac_status); } &&
b4e70030
JB
21248 { ac_try='test -z "$ac_c_werror_flag"
21249 || test ! -s conftest.err'
bec39cab
AC
21250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21251 (eval $ac_try) 2>&5
21252 ac_status=$?
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); }; } &&
21255 { ac_try='test -s conftest.$ac_objext'
21256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21257 (eval $ac_try) 2>&5
21258 ac_status=$?
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); }; }; then
a3828db0 21261 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 21262else
bec39cab
AC
21263 echo "$as_me: failed program was:" >&5
21264sed 's/^/| /' conftest.$ac_ext >&5
21265
b4e70030 21266gdb_cv_have_ptrace_getfpxregs=no
451928c5 21267fi
bec39cab 21268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
21269fi
21270
b4e70030
JB
21271echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
21272echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
a3828db0 21273if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
21274
21275cat >>confdefs.h <<\_ACEOF
a3828db0 21276#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 21277_ACEOF
451928c5 21278
97bf5e38 21279fi
451928c5 21280
a3828db0 21281# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
b4e70030
JB
21282echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
21283echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
a3828db0 21284if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 21285 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 21286else
bec39cab
AC
21287 cat >conftest.$ac_ext <<_ACEOF
21288/* confdefs.h. */
21289_ACEOF
21290cat confdefs.h >>conftest.$ac_ext
21291cat >>conftest.$ac_ext <<_ACEOF
21292/* end confdefs.h. */
a3828db0
MK
21293#include <sys/types.h>
21294#include <sys/ptrace.h>
bec39cab
AC
21295int
21296main ()
21297{
a3828db0 21298PT_GETDBREGS;
bec39cab
AC
21299 ;
21300 return 0;
21301}
21302_ACEOF
21303rm -f conftest.$ac_objext
21304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21305 (eval $ac_compile) 2>conftest.er1
21306 ac_status=$?
21307 grep -v '^ *+' conftest.er1 >conftest.err
21308 rm -f conftest.er1
21309 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } &&
b4e70030
JB
21312 { ac_try='test -z "$ac_c_werror_flag"
21313 || test ! -s conftest.err'
bec39cab
AC
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21316 ac_status=$?
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; } &&
21319 { ac_try='test -s conftest.$ac_objext'
21320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21321 (eval $ac_try) 2>&5
21322 ac_status=$?
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); }; }; then
a3828db0 21325 gdb_cv_have_pt_getdbregs=yes
3862412b 21326else
bec39cab
AC
21327 echo "$as_me: failed program was:" >&5
21328sed 's/^/| /' conftest.$ac_ext >&5
21329
b4e70030 21330gdb_cv_have_pt_getdbregs=no
3862412b 21331fi
bec39cab 21332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
21333fi
21334
b4e70030
JB
21335echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
21336echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
a3828db0 21337if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
21338
21339cat >>confdefs.h <<\_ACEOF
a3828db0 21340#define HAVE_PT_GETDBREGS 1
bec39cab 21341_ACEOF
3862412b 21342
97bf5e38 21343fi
3862412b 21344
a3828db0 21345# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
b4e70030
JB
21346echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
21347echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
a3828db0 21348if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 21349 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 21350else
bec39cab
AC
21351 cat >conftest.$ac_ext <<_ACEOF
21352/* confdefs.h. */
21353_ACEOF
21354cat confdefs.h >>conftest.$ac_ext
21355cat >>conftest.$ac_ext <<_ACEOF
21356/* end confdefs.h. */
a3828db0
MK
21357#include <sys/types.h>
21358#include <sys/ptrace.h>
bec39cab
AC
21359int
21360main ()
21361{
a3828db0 21362PT_GETXMMREGS;
bec39cab
AC
21363 ;
21364 return 0;
21365}
21366_ACEOF
21367rm -f conftest.$ac_objext
21368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21369 (eval $ac_compile) 2>conftest.er1
21370 ac_status=$?
21371 grep -v '^ *+' conftest.er1 >conftest.err
21372 rm -f conftest.er1
21373 cat conftest.err >&5
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); } &&
b4e70030
JB
21376 { ac_try='test -z "$ac_c_werror_flag"
21377 || test ! -s conftest.err'
bec39cab
AC
21378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21379 (eval $ac_try) 2>&5
21380 ac_status=$?
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); }; } &&
21383 { ac_try='test -s conftest.$ac_objext'
21384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385 (eval $ac_try) 2>&5
21386 ac_status=$?
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); }; }; then
a3828db0 21389 gdb_cv_have_pt_getxmmregs=yes
3862412b 21390else
bec39cab
AC
21391 echo "$as_me: failed program was:" >&5
21392sed 's/^/| /' conftest.$ac_ext >&5
21393
b4e70030 21394gdb_cv_have_pt_getxmmregs=no
3862412b 21395fi
bec39cab 21396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
21397fi
21398
b4e70030
JB
21399echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
21400echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
a3828db0 21401if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
21402
21403cat >>confdefs.h <<\_ACEOF
a3828db0 21404#define HAVE_PT_GETXMMREGS 1
bec39cab 21405_ACEOF
3862412b 21406
97bf5e38 21407fi
3862412b 21408
eb368090 21409# Detect which type of /proc is in use, such as for Unixware or Solaris.
97bf5e38
MK
21410
21411if test "${target}" = "${host}"; then
21412 case "${host}" in
97bf5e38 21413 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
21414
21415cat >>confdefs.h <<\_ACEOF
97bf5e38 21416#define NEW_PROC_API 1
bec39cab 21417_ACEOF
97bf5e38
MK
21418
21419 ;;
c162e8c9 21420 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
60ca704f
SE
21421
21422cat >>confdefs.h <<\_ACEOF
97bf5e38 21423#define NEW_PROC_API 1
bec39cab 21424_ACEOF
c960c18f
AC
21425
21426 ;;
21427 mips-sgi-irix5*)
21428 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
21429
21430cat >>confdefs.h <<\_ACEOF
c960c18f 21431#define _KMEMUSER 1
bec39cab 21432_ACEOF
97bf5e38
MK
21433
21434 ;;
21435 esac
21436fi
21437
21438if test "$ac_cv_header_sys_procfs_h" = yes; then
b4e70030
JB
21439 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
21440echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21441 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
21442 echo $ECHO_N "(cached) $ECHO_C" >&6
21443else
21444 cat >conftest.$ac_ext <<_ACEOF
21445/* confdefs.h. */
21446_ACEOF
21447cat confdefs.h >>conftest.$ac_ext
21448cat >>conftest.$ac_ext <<_ACEOF
21449/* end confdefs.h. */
596c9d4b
KB
21450
21451#define _SYSCALL32
21452#include <sys/procfs.h>
bec39cab
AC
21453int
21454main ()
21455{
97bf5e38 21456pstatus_t avar
bec39cab
AC
21457 ;
21458 return 0;
21459}
21460_ACEOF
21461rm -f conftest.$ac_objext
21462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21463 (eval $ac_compile) 2>conftest.er1
21464 ac_status=$?
21465 grep -v '^ *+' conftest.er1 >conftest.err
21466 rm -f conftest.er1
21467 cat conftest.err >&5
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); } &&
b4e70030
JB
21470 { ac_try='test -z "$ac_c_werror_flag"
21471 || test ! -s conftest.err'
bec39cab
AC
21472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21473 (eval $ac_try) 2>&5
21474 ac_status=$?
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); }; } &&
21477 { ac_try='test -s conftest.$ac_objext'
21478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21479 (eval $ac_try) 2>&5
21480 ac_status=$?
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); }; }; then
97bf5e38 21483 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 21484else
bec39cab
AC
21485 echo "$as_me: failed program was:" >&5
21486sed 's/^/| /' conftest.$ac_ext >&5
21487
b4e70030 21488bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 21489
596c9d4b 21490fi
bec39cab 21491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
21492fi
21493
97bf5e38 21494 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
21495
21496cat >>confdefs.h <<\_ACEOF
97bf5e38 21497#define HAVE_PSTATUS_T 1
bec39cab 21498_ACEOF
596c9d4b
KB
21499
21500 fi
b4e70030
JB
21501 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
21502echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 21503
b4e70030
JB
21504 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
21505echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21506 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
21507 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 21508else
bec39cab
AC
21509 cat >conftest.$ac_ext <<_ACEOF
21510/* confdefs.h. */
21511_ACEOF
21512cat confdefs.h >>conftest.$ac_ext
21513cat >>conftest.$ac_ext <<_ACEOF
21514/* end confdefs.h. */
596c9d4b
KB
21515
21516#define _SYSCALL32
21517#include <sys/procfs.h>
bec39cab
AC
21518int
21519main ()
21520{
97bf5e38 21521prrun_t avar
bec39cab
AC
21522 ;
21523 return 0;
21524}
21525_ACEOF
21526rm -f conftest.$ac_objext
21527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21528 (eval $ac_compile) 2>conftest.er1
21529 ac_status=$?
21530 grep -v '^ *+' conftest.er1 >conftest.err
21531 rm -f conftest.er1
21532 cat conftest.err >&5
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); } &&
b4e70030
JB
21535 { ac_try='test -z "$ac_c_werror_flag"
21536 || test ! -s conftest.err'
bec39cab
AC
21537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538 (eval $ac_try) 2>&5
21539 ac_status=$?
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); }; } &&
21542 { ac_try='test -s conftest.$ac_objext'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21545 ac_status=$?
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; }; then
97bf5e38 21548 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 21549else
bec39cab
AC
21550 echo "$as_me: failed program was:" >&5
21551sed 's/^/| /' conftest.$ac_ext >&5
21552
b4e70030 21553bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 21554
596c9d4b 21555fi
bec39cab 21556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
21557fi
21558
97bf5e38 21559 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
21560
21561cat >>confdefs.h <<\_ACEOF
97bf5e38 21562#define HAVE_PRRUN_T 1
bec39cab 21563_ACEOF
596c9d4b
KB
21564
21565 fi
b4e70030
JB
21566 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
21567echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 21568
b4e70030
JB
21569 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
21570echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21571 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
21572 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 21573else
bec39cab
AC
21574 cat >conftest.$ac_ext <<_ACEOF
21575/* confdefs.h. */
21576_ACEOF
21577cat confdefs.h >>conftest.$ac_ext
21578cat >>conftest.$ac_ext <<_ACEOF
21579/* end confdefs.h. */
596c9d4b
KB
21580
21581#define _SYSCALL32
21582#include <sys/procfs.h>
bec39cab
AC
21583int
21584main ()
21585{
97bf5e38 21586gregset_t avar
bec39cab
AC
21587 ;
21588 return 0;
21589}
21590_ACEOF
21591rm -f conftest.$ac_objext
21592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21593 (eval $ac_compile) 2>conftest.er1
21594 ac_status=$?
21595 grep -v '^ *+' conftest.er1 >conftest.err
21596 rm -f conftest.er1
21597 cat conftest.err >&5
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); } &&
b4e70030
JB
21600 { ac_try='test -z "$ac_c_werror_flag"
21601 || test ! -s conftest.err'
bec39cab
AC
21602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21603 (eval $ac_try) 2>&5
21604 ac_status=$?
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); }; } &&
21607 { ac_try='test -s conftest.$ac_objext'
21608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21609 (eval $ac_try) 2>&5
21610 ac_status=$?
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); }; }; then
97bf5e38 21613 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 21614else
bec39cab
AC
21615 echo "$as_me: failed program was:" >&5
21616sed 's/^/| /' conftest.$ac_ext >&5
21617
b4e70030 21618bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 21619
596c9d4b 21620fi
bec39cab 21621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
21622fi
21623
97bf5e38 21624 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
21625
21626cat >>confdefs.h <<\_ACEOF
97bf5e38 21627#define HAVE_GREGSET_T 1
bec39cab 21628_ACEOF
596c9d4b
KB
21629
21630 fi
b4e70030
JB
21631 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
21632echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 21633
b4e70030
JB
21634 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
21635echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21636 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
21637 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 21638else
bec39cab
AC
21639 cat >conftest.$ac_ext <<_ACEOF
21640/* confdefs.h. */
21641_ACEOF
21642cat confdefs.h >>conftest.$ac_ext
21643cat >>conftest.$ac_ext <<_ACEOF
21644/* end confdefs.h. */
97bf5e38
MK
21645
21646#define _SYSCALL32
d84dd0c5 21647#include <sys/procfs.h>
bec39cab
AC
21648int
21649main ()
21650{
97bf5e38 21651fpregset_t avar
bec39cab
AC
21652 ;
21653 return 0;
21654}
21655_ACEOF
21656rm -f conftest.$ac_objext
21657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21658 (eval $ac_compile) 2>conftest.er1
21659 ac_status=$?
21660 grep -v '^ *+' conftest.er1 >conftest.err
21661 rm -f conftest.er1
21662 cat conftest.err >&5
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); } &&
b4e70030
JB
21665 { ac_try='test -z "$ac_c_werror_flag"
21666 || test ! -s conftest.err'
bec39cab
AC
21667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21668 (eval $ac_try) 2>&5
21669 ac_status=$?
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); }; } &&
21672 { ac_try='test -s conftest.$ac_objext'
21673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674 (eval $ac_try) 2>&5
21675 ac_status=$?
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; }; then
97bf5e38 21678 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 21679else
bec39cab
AC
21680 echo "$as_me: failed program was:" >&5
21681sed 's/^/| /' conftest.$ac_ext >&5
21682
b4e70030 21683bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 21684
d84dd0c5 21685fi
bec39cab 21686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
21687fi
21688
97bf5e38 21689 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
21690
21691cat >>confdefs.h <<\_ACEOF
97bf5e38 21692#define HAVE_FPREGSET_T 1
bec39cab 21693_ACEOF
d84dd0c5 21694
97bf5e38 21695 fi
b4e70030
JB
21696 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
21697echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 21698
b4e70030
JB
21699 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
21700echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21701 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
21702 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21703else
bec39cab
AC
21704 cat >conftest.$ac_ext <<_ACEOF
21705/* confdefs.h. */
21706_ACEOF
21707cat confdefs.h >>conftest.$ac_ext
21708cat >>conftest.$ac_ext <<_ACEOF
21709/* end confdefs.h. */
c906108c 21710
97bf5e38
MK
21711#define _SYSCALL32
21712#include <sys/procfs.h>
bec39cab
AC
21713int
21714main ()
21715{
97bf5e38 21716prgregset_t avar
bec39cab
AC
21717 ;
21718 return 0;
21719}
21720_ACEOF
21721rm -f conftest.$ac_objext
21722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21723 (eval $ac_compile) 2>conftest.er1
21724 ac_status=$?
21725 grep -v '^ *+' conftest.er1 >conftest.err
21726 rm -f conftest.er1
21727 cat conftest.err >&5
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); } &&
b4e70030
JB
21730 { ac_try='test -z "$ac_c_werror_flag"
21731 || test ! -s conftest.err'
bec39cab
AC
21732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21733 (eval $ac_try) 2>&5
21734 ac_status=$?
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); }; } &&
21737 { ac_try='test -s conftest.$ac_objext'
21738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21739 (eval $ac_try) 2>&5
21740 ac_status=$?
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); }; }; then
97bf5e38 21743 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 21744else
bec39cab
AC
21745 echo "$as_me: failed program was:" >&5
21746sed 's/^/| /' conftest.$ac_ext >&5
21747
b4e70030 21748bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 21749
c906108c 21750fi
bec39cab 21751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21752fi
21753
97bf5e38 21754 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
21755
21756cat >>confdefs.h <<\_ACEOF
97bf5e38 21757#define HAVE_PRGREGSET_T 1
bec39cab 21758_ACEOF
c906108c 21759
97bf5e38 21760 fi
b4e70030
JB
21761 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
21762echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 21763
b4e70030
JB
21764 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
21765echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21766 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
21767 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 21768else
bec39cab
AC
21769 cat >conftest.$ac_ext <<_ACEOF
21770/* confdefs.h. */
21771_ACEOF
21772cat confdefs.h >>conftest.$ac_ext
21773cat >>conftest.$ac_ext <<_ACEOF
21774/* end confdefs.h. */
97bf5e38
MK
21775
21776#define _SYSCALL32
21777#include <sys/procfs.h>
bec39cab
AC
21778int
21779main ()
21780{
97bf5e38 21781prfpregset_t avar
bec39cab
AC
21782 ;
21783 return 0;
21784}
21785_ACEOF
21786rm -f conftest.$ac_objext
21787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21788 (eval $ac_compile) 2>conftest.er1
21789 ac_status=$?
21790 grep -v '^ *+' conftest.er1 >conftest.err
21791 rm -f conftest.er1
21792 cat conftest.err >&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); } &&
b4e70030
JB
21795 { ac_try='test -z "$ac_c_werror_flag"
21796 || test ! -s conftest.err'
bec39cab
AC
21797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21798 (eval $ac_try) 2>&5
21799 ac_status=$?
21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801 (exit $ac_status); }; } &&
21802 { ac_try='test -s conftest.$ac_objext'
21803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21804 (eval $ac_try) 2>&5
21805 ac_status=$?
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); }; }; then
97bf5e38 21808 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 21809else
bec39cab
AC
21810 echo "$as_me: failed program was:" >&5
21811sed 's/^/| /' conftest.$ac_ext >&5
21812
b4e70030 21813bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 21814
d45fe813 21815fi
bec39cab 21816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
21817fi
21818
97bf5e38 21819 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
21820
21821cat >>confdefs.h <<\_ACEOF
97bf5e38 21822#define HAVE_PRFPREGSET_T 1
bec39cab 21823_ACEOF
d45fe813 21824
97bf5e38 21825 fi
b4e70030
JB
21826 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
21827echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 21828
b4e70030
JB
21829 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
21830echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21831 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
21832 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 21833else
bec39cab
AC
21834 cat >conftest.$ac_ext <<_ACEOF
21835/* confdefs.h. */
21836_ACEOF
21837cat confdefs.h >>conftest.$ac_ext
21838cat >>conftest.$ac_ext <<_ACEOF
21839/* end confdefs.h. */
97bf5e38
MK
21840
21841#define _SYSCALL32
21842#include <sys/procfs.h>
bec39cab
AC
21843int
21844main ()
21845{
97bf5e38 21846prgregset32_t avar
bec39cab
AC
21847 ;
21848 return 0;
21849}
21850_ACEOF
21851rm -f conftest.$ac_objext
21852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21853 (eval $ac_compile) 2>conftest.er1
21854 ac_status=$?
21855 grep -v '^ *+' conftest.er1 >conftest.err
21856 rm -f conftest.er1
21857 cat conftest.err >&5
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); } &&
b4e70030
JB
21860 { ac_try='test -z "$ac_c_werror_flag"
21861 || test ! -s conftest.err'
bec39cab
AC
21862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21863 (eval $ac_try) 2>&5
21864 ac_status=$?
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); }; } &&
21867 { ac_try='test -s conftest.$ac_objext'
21868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21869 (eval $ac_try) 2>&5
21870 ac_status=$?
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); }; }; then
97bf5e38 21873 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 21874else
bec39cab
AC
21875 echo "$as_me: failed program was:" >&5
21876sed 's/^/| /' conftest.$ac_ext >&5
21877
b4e70030 21878bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 21879
d45fe813 21880fi
bec39cab 21881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
21882fi
21883
97bf5e38 21884 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
21885
21886cat >>confdefs.h <<\_ACEOF
97bf5e38 21887#define HAVE_PRGREGSET32_T 1
bec39cab 21888_ACEOF
d45fe813 21889
97bf5e38 21890 fi
b4e70030
JB
21891 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
21892echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 21893
b4e70030
JB
21894 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
21895echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21896 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
21897 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 21898else
bec39cab
AC
21899 cat >conftest.$ac_ext <<_ACEOF
21900/* confdefs.h. */
21901_ACEOF
21902cat confdefs.h >>conftest.$ac_ext
21903cat >>conftest.$ac_ext <<_ACEOF
21904/* end confdefs.h. */
97bf5e38
MK
21905
21906#define _SYSCALL32
21907#include <sys/procfs.h>
bec39cab
AC
21908int
21909main ()
21910{
97bf5e38 21911prfpregset32_t avar
bec39cab
AC
21912 ;
21913 return 0;
21914}
21915_ACEOF
21916rm -f conftest.$ac_objext
21917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21918 (eval $ac_compile) 2>conftest.er1
21919 ac_status=$?
21920 grep -v '^ *+' conftest.er1 >conftest.err
21921 rm -f conftest.er1
21922 cat conftest.err >&5
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); } &&
b4e70030
JB
21925 { ac_try='test -z "$ac_c_werror_flag"
21926 || test ! -s conftest.err'
bec39cab
AC
21927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928 (eval $ac_try) 2>&5
21929 ac_status=$?
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); }; } &&
21932 { ac_try='test -s conftest.$ac_objext'
21933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934 (eval $ac_try) 2>&5
21935 ac_status=$?
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); }; }; then
97bf5e38 21938 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 21939else
bec39cab
AC
21940 echo "$as_me: failed program was:" >&5
21941sed 's/^/| /' conftest.$ac_ext >&5
21942
b4e70030 21943bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 21944
d45fe813 21945fi
bec39cab 21946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
21947fi
21948
97bf5e38 21949 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
21950
21951cat >>confdefs.h <<\_ACEOF
97bf5e38 21952#define HAVE_PRFPREGSET32_T 1
bec39cab 21953_ACEOF
d45fe813 21954
97bf5e38 21955 fi
b4e70030
JB
21956 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
21957echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 21958
b4e70030
JB
21959 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
21960echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21961 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
21962 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 21963else
bec39cab
AC
21964 cat >conftest.$ac_ext <<_ACEOF
21965/* confdefs.h. */
21966_ACEOF
21967cat confdefs.h >>conftest.$ac_ext
21968cat >>conftest.$ac_ext <<_ACEOF
21969/* end confdefs.h. */
97bf5e38 21970
d45fe813 21971#define _SYSCALL32
97bf5e38 21972#include <sys/procfs.h>
bec39cab
AC
21973int
21974main ()
21975{
97bf5e38 21976lwpid_t avar
bec39cab
AC
21977 ;
21978 return 0;
21979}
21980_ACEOF
21981rm -f conftest.$ac_objext
21982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21983 (eval $ac_compile) 2>conftest.er1
21984 ac_status=$?
21985 grep -v '^ *+' conftest.er1 >conftest.err
21986 rm -f conftest.er1
21987 cat conftest.err >&5
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); } &&
b4e70030
JB
21990 { ac_try='test -z "$ac_c_werror_flag"
21991 || test ! -s conftest.err'
bec39cab
AC
21992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21993 (eval $ac_try) 2>&5
21994 ac_status=$?
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); }; } &&
21997 { ac_try='test -s conftest.$ac_objext'
21998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21999 (eval $ac_try) 2>&5
22000 ac_status=$?
22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); }; }; then
97bf5e38 22003 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 22004else
bec39cab
AC
22005 echo "$as_me: failed program was:" >&5
22006sed 's/^/| /' conftest.$ac_ext >&5
22007
b4e70030 22008bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 22009
d45fe813 22010fi
bec39cab 22011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
22012fi
22013
97bf5e38 22014 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
22015
22016cat >>confdefs.h <<\_ACEOF
97bf5e38 22017#define HAVE_LWPID_T 1
bec39cab 22018_ACEOF
d45fe813 22019
97bf5e38 22020 fi
b4e70030
JB
22021 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
22022echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 22023
b4e70030
JB
22024 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
22025echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22026 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
22027 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22028else
bec39cab
AC
22029 cat >conftest.$ac_ext <<_ACEOF
22030/* confdefs.h. */
22031_ACEOF
22032cat confdefs.h >>conftest.$ac_ext
22033cat >>conftest.$ac_ext <<_ACEOF
22034/* end confdefs.h. */
c906108c 22035
97bf5e38
MK
22036#define _SYSCALL32
22037#include <sys/procfs.h>
bec39cab
AC
22038int
22039main ()
22040{
97bf5e38 22041psaddr_t avar
bec39cab
AC
22042 ;
22043 return 0;
22044}
22045_ACEOF
22046rm -f conftest.$ac_objext
22047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22048 (eval $ac_compile) 2>conftest.er1
22049 ac_status=$?
22050 grep -v '^ *+' conftest.er1 >conftest.err
22051 rm -f conftest.er1
22052 cat conftest.err >&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); } &&
b4e70030
JB
22055 { ac_try='test -z "$ac_c_werror_flag"
22056 || test ! -s conftest.err'
bec39cab
AC
22057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22058 (eval $ac_try) 2>&5
22059 ac_status=$?
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); }; } &&
22062 { ac_try='test -s conftest.$ac_objext'
22063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22064 (eval $ac_try) 2>&5
22065 ac_status=$?
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); }; }; then
97bf5e38 22068 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 22069else
bec39cab
AC
22070 echo "$as_me: failed program was:" >&5
22071sed 's/^/| /' conftest.$ac_ext >&5
22072
b4e70030 22073bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 22074
c906108c 22075fi
bec39cab 22076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22077fi
22078
97bf5e38 22079 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
22080
22081cat >>confdefs.h <<\_ACEOF
97bf5e38 22082#define HAVE_PSADDR_T 1
bec39cab 22083_ACEOF
c906108c 22084
97bf5e38 22085 fi
b4e70030
JB
22086 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
22087echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 22088
b4e70030
JB
22089 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
22090echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22091 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
22092 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22093else
bec39cab
AC
22094 cat >conftest.$ac_ext <<_ACEOF
22095/* confdefs.h. */
22096_ACEOF
22097cat confdefs.h >>conftest.$ac_ext
22098cat >>conftest.$ac_ext <<_ACEOF
22099/* end confdefs.h. */
c906108c 22100
97bf5e38
MK
22101#define _SYSCALL32
22102#include <sys/procfs.h>
bec39cab
AC
22103int
22104main ()
22105{
97bf5e38 22106prsysent_t avar
bec39cab
AC
22107 ;
22108 return 0;
22109}
22110_ACEOF
22111rm -f conftest.$ac_objext
22112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22113 (eval $ac_compile) 2>conftest.er1
22114 ac_status=$?
22115 grep -v '^ *+' conftest.er1 >conftest.err
22116 rm -f conftest.er1
22117 cat conftest.err >&5
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); } &&
b4e70030
JB
22120 { ac_try='test -z "$ac_c_werror_flag"
22121 || test ! -s conftest.err'
bec39cab
AC
22122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22123 (eval $ac_try) 2>&5
22124 ac_status=$?
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); }; } &&
22127 { ac_try='test -s conftest.$ac_objext'
22128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22129 (eval $ac_try) 2>&5
22130 ac_status=$?
22131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132 (exit $ac_status); }; }; then
97bf5e38 22133 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 22134else
bec39cab
AC
22135 echo "$as_me: failed program was:" >&5
22136sed 's/^/| /' conftest.$ac_ext >&5
22137
b4e70030 22138bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 22139
c906108c 22140fi
bec39cab 22141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22142fi
22143
97bf5e38 22144 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
22145
22146cat >>confdefs.h <<\_ACEOF
97bf5e38 22147#define HAVE_PRSYSENT_T 1
bec39cab 22148_ACEOF
c906108c 22149
97bf5e38 22150 fi
b4e70030
JB
22151 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
22152echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 22153
b4e70030
JB
22154 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
22155echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22156 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
22157 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22158else
bec39cab
AC
22159 cat >conftest.$ac_ext <<_ACEOF
22160/* confdefs.h. */
22161_ACEOF
22162cat confdefs.h >>conftest.$ac_ext
22163cat >>conftest.$ac_ext <<_ACEOF
22164/* end confdefs.h. */
c906108c 22165
97bf5e38
MK
22166#define _SYSCALL32
22167#include <sys/procfs.h>
bec39cab
AC
22168int
22169main ()
22170{
97bf5e38 22171pr_sigset_t avar
bec39cab
AC
22172 ;
22173 return 0;
22174}
22175_ACEOF
22176rm -f conftest.$ac_objext
22177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22178 (eval $ac_compile) 2>conftest.er1
22179 ac_status=$?
22180 grep -v '^ *+' conftest.er1 >conftest.err
22181 rm -f conftest.er1
22182 cat conftest.err >&5
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); } &&
b4e70030
JB
22185 { ac_try='test -z "$ac_c_werror_flag"
22186 || test ! -s conftest.err'
bec39cab
AC
22187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22188 (eval $ac_try) 2>&5
22189 ac_status=$?
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); }; } &&
22192 { ac_try='test -s conftest.$ac_objext'
22193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22194 (eval $ac_try) 2>&5
22195 ac_status=$?
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); }; }; then
97bf5e38 22198 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 22199else
bec39cab
AC
22200 echo "$as_me: failed program was:" >&5
22201sed 's/^/| /' conftest.$ac_ext >&5
22202
b4e70030 22203bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 22204
c906108c 22205fi
bec39cab 22206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22207fi
22208
97bf5e38 22209 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
22210
22211cat >>confdefs.h <<\_ACEOF
97bf5e38 22212#define HAVE_PR_SIGSET_T 1
bec39cab 22213_ACEOF
c906108c 22214
97bf5e38 22215 fi
b4e70030
JB
22216 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
22217echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 22218
b4e70030
JB
22219 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
22220echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22221 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
22222 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22223else
bec39cab
AC
22224 cat >conftest.$ac_ext <<_ACEOF
22225/* confdefs.h. */
22226_ACEOF
22227cat confdefs.h >>conftest.$ac_ext
22228cat >>conftest.$ac_ext <<_ACEOF
22229/* end confdefs.h. */
c906108c 22230
97bf5e38
MK
22231#define _SYSCALL32
22232#include <sys/procfs.h>
bec39cab
AC
22233int
22234main ()
22235{
97bf5e38 22236pr_sigaction64_t avar
bec39cab
AC
22237 ;
22238 return 0;
22239}
22240_ACEOF
22241rm -f conftest.$ac_objext
22242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22243 (eval $ac_compile) 2>conftest.er1
22244 ac_status=$?
22245 grep -v '^ *+' conftest.er1 >conftest.err
22246 rm -f conftest.er1
22247 cat conftest.err >&5
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); } &&
b4e70030
JB
22250 { ac_try='test -z "$ac_c_werror_flag"
22251 || test ! -s conftest.err'
bec39cab
AC
22252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22253 (eval $ac_try) 2>&5
22254 ac_status=$?
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); }; } &&
22257 { ac_try='test -s conftest.$ac_objext'
22258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22259 (eval $ac_try) 2>&5
22260 ac_status=$?
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); }; }; then
97bf5e38 22263 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 22264else
bec39cab
AC
22265 echo "$as_me: failed program was:" >&5
22266sed 's/^/| /' conftest.$ac_ext >&5
22267
b4e70030 22268bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 22269
c906108c 22270fi
bec39cab 22271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22272fi
22273
97bf5e38 22274 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
22275
22276cat >>confdefs.h <<\_ACEOF
97bf5e38 22277#define HAVE_PR_SIGACTION64_T 1
bec39cab 22278_ACEOF
c906108c 22279
97bf5e38 22280 fi
b4e70030
JB
22281 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
22282echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 22283
b4e70030
JB
22284 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
22285echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22286 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
22287 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 22288else
bec39cab
AC
22289 cat >conftest.$ac_ext <<_ACEOF
22290/* confdefs.h. */
22291_ACEOF
22292cat confdefs.h >>conftest.$ac_ext
22293cat >>conftest.$ac_ext <<_ACEOF
22294/* end confdefs.h. */
97bf5e38
MK
22295
22296#define _SYSCALL32
22297#include <sys/procfs.h>
bec39cab
AC
22298int
22299main ()
22300{
97bf5e38 22301pr_siginfo64_t avar
bec39cab
AC
22302 ;
22303 return 0;
22304}
22305_ACEOF
22306rm -f conftest.$ac_objext
22307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22308 (eval $ac_compile) 2>conftest.er1
22309 ac_status=$?
22310 grep -v '^ *+' conftest.er1 >conftest.err
22311 rm -f conftest.er1
22312 cat conftest.err >&5
22313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314 (exit $ac_status); } &&
b4e70030
JB
22315 { ac_try='test -z "$ac_c_werror_flag"
22316 || test ! -s conftest.err'
bec39cab
AC
22317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318 (eval $ac_try) 2>&5
22319 ac_status=$?
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; } &&
22322 { ac_try='test -s conftest.$ac_objext'
22323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22324 (eval $ac_try) 2>&5
22325 ac_status=$?
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); }; }; then
97bf5e38
MK
22328 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
22329else
bec39cab
AC
22330 echo "$as_me: failed program was:" >&5
22331sed 's/^/| /' conftest.$ac_ext >&5
22332
b4e70030 22333bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 22334
97bf5e38 22335fi
bec39cab 22336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 22337fi
c906108c 22338
97bf5e38 22339 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
22340
22341cat >>confdefs.h <<\_ACEOF
97bf5e38 22342#define HAVE_PR_SIGINFO64_T 1
bec39cab 22343_ACEOF
c906108c 22344
97bf5e38 22345 fi
b4e70030
JB
22346 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
22347echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
bec39cab
AC
22348
22349
97bf5e38
MK
22350
22351
22352
97bf5e38 22353 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
b4e70030
JB
22354 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
22355echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
bec39cab
AC
22356 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
22357 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
22358else
22359 if test "$cross_compiling" = yes; then
97bf5e38 22360 gdb_cv_prfpregset_t_broken=yes
c906108c 22361else
bec39cab
AC
22362 cat >conftest.$ac_ext <<_ACEOF
22363/* confdefs.h. */
22364_ACEOF
22365cat confdefs.h >>conftest.$ac_ext
22366cat >>conftest.$ac_ext <<_ACEOF
22367/* end confdefs.h. */
97bf5e38
MK
22368#include <sys/procfs.h>
22369 int main ()
22370 {
22371 if (sizeof (prfpregset_t) == sizeof (void *))
22372 return 1;
22373 return 0;
22374 }
bec39cab
AC
22375_ACEOF
22376rm -f conftest$ac_exeext
22377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22378 (eval $ac_link) 2>&5
22379 ac_status=$?
22380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22383 (eval $ac_try) 2>&5
22384 ac_status=$?
22385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); }; }; then
97bf5e38 22387 gdb_cv_prfpregset_t_broken=no
c906108c 22388else
bec39cab
AC
22389 echo "$as_me: program exited with status $ac_status" >&5
22390echo "$as_me: failed program was:" >&5
22391sed 's/^/| /' conftest.$ac_ext >&5
22392
22393( exit $ac_status )
22394gdb_cv_prfpregset_t_broken=yes
c906108c 22395fi
b4e70030 22396rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 22397fi
c906108c
SS
22398fi
22399
b4e70030
JB
22400 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
22401echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 22402 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
22403
22404cat >>confdefs.h <<\_ACEOF
97bf5e38 22405#define PRFPREGSET_T_BROKEN 1
bec39cab 22406_ACEOF
c906108c 22407
97bf5e38
MK
22408 fi
22409 fi
c906108c 22410
bec39cab 22411
b4e70030
JB
22412 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
22413echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22414 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
22415 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22416else
bec39cab
AC
22417 cat >conftest.$ac_ext <<_ACEOF
22418/* confdefs.h. */
22419_ACEOF
22420cat confdefs.h >>conftest.$ac_ext
22421cat >>conftest.$ac_ext <<_ACEOF
22422/* end confdefs.h. */
97bf5e38
MK
22423#include <unistd.h>
22424#include <sys/types.h>
22425#include <sys/procfs.h>
22426
bec39cab
AC
22427int
22428main ()
22429{
97bf5e38
MK
22430
22431 int dummy;;
22432 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
22433
22434 ;
22435 return 0;
22436}
22437_ACEOF
22438rm -f conftest.$ac_objext
22439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22440 (eval $ac_compile) 2>conftest.er1
22441 ac_status=$?
22442 grep -v '^ *+' conftest.er1 >conftest.err
22443 rm -f conftest.er1
22444 cat conftest.err >&5
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); } &&
b4e70030
JB
22447 { ac_try='test -z "$ac_c_werror_flag"
22448 || test ! -s conftest.err'
bec39cab
AC
22449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450 (eval $ac_try) 2>&5
22451 ac_status=$?
22452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); }; } &&
22454 { ac_try='test -s conftest.$ac_objext'
22455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22456 (eval $ac_try) 2>&5
22457 ac_status=$?
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); }; }; then
97bf5e38 22460 gdb_cv_have_procfs_piocset=yes
c906108c 22461else
bec39cab
AC
22462 echo "$as_me: failed program was:" >&5
22463sed 's/^/| /' conftest.$ac_ext >&5
22464
b4e70030 22465gdb_cv_have_procfs_piocset=no
c906108c 22466fi
bec39cab 22467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 22468fi
97bf5e38 22469
b4e70030
JB
22470 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
22471echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 22472 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
22473
22474cat >>confdefs.h <<\_ACEOF
97bf5e38 22475#define HAVE_PROCFS_PIOCSET 1
bec39cab 22476_ACEOF
97bf5e38
MK
22477
22478 fi
c906108c 22479fi
c906108c 22480
97bf5e38 22481if test ${host} = ${target} ; then
bec39cab 22482
b4e70030
JB
22483 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
22484echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
22485 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
22486 echo $ECHO_N "(cached) $ECHO_C" >&6
22487else
22488 cat >conftest.$ac_ext <<_ACEOF
22489/* confdefs.h. */
22490_ACEOF
22491cat confdefs.h >>conftest.$ac_ext
22492cat >>conftest.$ac_ext <<_ACEOF
22493/* end confdefs.h. */
97bf5e38 22494#include <link.h>
bec39cab
AC
22495int
22496main ()
22497{
97bf5e38 22498struct link_map lm; (void) lm.l_addr;
bec39cab
AC
22499 ;
22500 return 0;
22501}
22502_ACEOF
22503rm -f conftest.$ac_objext
22504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22505 (eval $ac_compile) 2>conftest.er1
22506 ac_status=$?
22507 grep -v '^ *+' conftest.er1 >conftest.err
22508 rm -f conftest.er1
22509 cat conftest.err >&5
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); } &&
b4e70030
JB
22512 { ac_try='test -z "$ac_c_werror_flag"
22513 || test ! -s conftest.err'
bec39cab
AC
22514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22515 (eval $ac_try) 2>&5
22516 ac_status=$?
22517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518 (exit $ac_status); }; } &&
22519 { ac_try='test -s conftest.$ac_objext'
22520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22521 (eval $ac_try) 2>&5
22522 ac_status=$?
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); }; }; then
97bf5e38 22525 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 22526else
bec39cab
AC
22527 echo "$as_me: failed program was:" >&5
22528sed 's/^/| /' conftest.$ac_ext >&5
22529
b4e70030 22530gdb_cv_have_struct_link_map_with_l_members=no
c906108c 22531fi
bec39cab 22532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22533fi
22534
b4e70030
JB
22535 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
22536echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 22537 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
22538
22539cat >>confdefs.h <<\_ACEOF
97bf5e38 22540#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 22541_ACEOF
97bf5e38
MK
22542
22543 fi
22544
bec39cab 22545
b4e70030
JB
22546 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
22547echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
22548 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
22549 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22550else
bec39cab
AC
22551 cat >conftest.$ac_ext <<_ACEOF
22552/* confdefs.h. */
22553_ACEOF
22554cat confdefs.h >>conftest.$ac_ext
22555cat >>conftest.$ac_ext <<_ACEOF
22556/* end confdefs.h. */
97bf5e38
MK
22557#include <sys/types.h>
22558#include <link.h>
bec39cab
AC
22559int
22560main ()
22561{
97bf5e38 22562struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
22563 ;
22564 return 0;
22565}
22566_ACEOF
22567rm -f conftest.$ac_objext
22568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22569 (eval $ac_compile) 2>conftest.er1
22570 ac_status=$?
22571 grep -v '^ *+' conftest.er1 >conftest.err
22572 rm -f conftest.er1
22573 cat conftest.err >&5
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); } &&
b4e70030
JB
22576 { ac_try='test -z "$ac_c_werror_flag"
22577 || test ! -s conftest.err'
bec39cab
AC
22578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22579 (eval $ac_try) 2>&5
22580 ac_status=$?
22581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582 (exit $ac_status); }; } &&
22583 { ac_try='test -s conftest.$ac_objext'
22584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22585 (eval $ac_try) 2>&5
22586 ac_status=$?
22587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588 (exit $ac_status); }; }; then
97bf5e38
MK
22589 gdb_cv_have_struct_link_map_with_lm_members=yes
22590else
bec39cab
AC
22591 echo "$as_me: failed program was:" >&5
22592sed 's/^/| /' conftest.$ac_ext >&5
22593
b4e70030 22594gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 22595fi
bec39cab 22596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 22597fi
c906108c 22598
b4e70030
JB
22599 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
22600echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 22601 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
22602
22603cat >>confdefs.h <<\_ACEOF
97bf5e38 22604#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 22605_ACEOF
97bf5e38
MK
22606
22607 fi
22608
bec39cab 22609
b4e70030
JB
22610 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
22611echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
bec39cab
AC
22612 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
22613 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22614else
bec39cab
AC
22615 cat >conftest.$ac_ext <<_ACEOF
22616/* confdefs.h. */
22617_ACEOF
22618cat confdefs.h >>conftest.$ac_ext
22619cat >>conftest.$ac_ext <<_ACEOF
22620/* end confdefs.h. */
97bf5e38
MK
22621#include <sys/types.h>
22622#ifdef HAVE_NLIST_H
22623#include <nlist.h>
22624#endif
22625#include <link.h>
bec39cab
AC
22626int
22627main ()
22628{
97bf5e38 22629struct so_map lm; (void) lm.som_addr;
bec39cab
AC
22630 ;
22631 return 0;
22632}
22633_ACEOF
22634rm -f conftest.$ac_objext
22635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22636 (eval $ac_compile) 2>conftest.er1
22637 ac_status=$?
22638 grep -v '^ *+' conftest.er1 >conftest.err
22639 rm -f conftest.er1
22640 cat conftest.err >&5
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); } &&
b4e70030
JB
22643 { ac_try='test -z "$ac_c_werror_flag"
22644 || test ! -s conftest.err'
bec39cab
AC
22645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22646 (eval $ac_try) 2>&5
22647 ac_status=$?
22648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649 (exit $ac_status); }; } &&
22650 { ac_try='test -s conftest.$ac_objext'
22651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22652 (eval $ac_try) 2>&5
22653 ac_status=$?
22654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655 (exit $ac_status); }; }; then
97bf5e38
MK
22656 gdb_cv_have_struct_so_map_with_som_members=yes
22657else
bec39cab
AC
22658 echo "$as_me: failed program was:" >&5
22659sed 's/^/| /' conftest.$ac_ext >&5
22660
b4e70030 22661gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 22662fi
bec39cab 22663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 22664fi
c906108c 22665
b4e70030
JB
22666 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
22667echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 22668 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
22669
22670cat >>confdefs.h <<\_ACEOF
97bf5e38 22671#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 22672_ACEOF
c906108c 22673
97bf5e38 22674 fi
c906108c 22675
bec39cab 22676
b4e70030
JB
22677 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
22678echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
bec39cab
AC
22679 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
22680 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 22681else
bec39cab
AC
22682 cat >conftest.$ac_ext <<_ACEOF
22683/* confdefs.h. */
22684_ACEOF
22685cat confdefs.h >>conftest.$ac_ext
22686cat >>conftest.$ac_ext <<_ACEOF
22687/* end confdefs.h. */
97bf5e38
MK
22688#define _SYSCALL32
22689#include <sys/link.h>
bec39cab
AC
22690int
22691main ()
22692{
97bf5e38 22693struct link_map32 l;
bec39cab
AC
22694 ;
22695 return 0;
22696}
22697_ACEOF
22698rm -f conftest.$ac_objext
22699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22700 (eval $ac_compile) 2>conftest.er1
22701 ac_status=$?
22702 grep -v '^ *+' conftest.er1 >conftest.err
22703 rm -f conftest.er1
22704 cat conftest.err >&5
22705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706 (exit $ac_status); } &&
b4e70030
JB
22707 { ac_try='test -z "$ac_c_werror_flag"
22708 || test ! -s conftest.err'
bec39cab
AC
22709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22710 (eval $ac_try) 2>&5
22711 ac_status=$?
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); }; } &&
22714 { ac_try='test -s conftest.$ac_objext'
22715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716 (eval $ac_try) 2>&5
22717 ac_status=$?
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); }; }; then
97bf5e38
MK
22720 gdb_cv_have_struct_link_map32=yes
22721else
bec39cab
AC
22722 echo "$as_me: failed program was:" >&5
22723sed 's/^/| /' conftest.$ac_ext >&5
22724
b4e70030 22725gdb_cv_have_struct_link_map32=no
97bf5e38 22726fi
bec39cab 22727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 22728fi
c906108c 22729
b4e70030
JB
22730 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
22731echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 22732 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
22733
22734cat >>confdefs.h <<\_ACEOF
97bf5e38 22735#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 22736_ACEOF
c906108c 22737
60ca704f
SE
22738
22739cat >>confdefs.h <<\_ACEOF
97bf5e38 22740#define _SYSCALL32 1
bec39cab 22741_ACEOF
c906108c 22742
97bf5e38
MK
22743 fi
22744fi
c906108c 22745
bc8bcb4b 22746# Check if the compiler supports the `long long' type.
c906108c 22747
b4e70030
JB
22748echo "$as_me:$LINENO: checking for long long support in compiler" >&5
22749echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
bec39cab
AC
22750if test "${gdb_cv_c_long_long+set}" = set; then
22751 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 22752else
bec39cab
AC
22753 cat >conftest.$ac_ext <<_ACEOF
22754/* confdefs.h. */
22755_ACEOF
22756cat confdefs.h >>conftest.$ac_ext
22757cat >>conftest.$ac_ext <<_ACEOF
22758/* end confdefs.h. */
bc8bcb4b 22759extern long long foo;
bec39cab
AC
22760int
22761main ()
22762{
bc8bcb4b 22763switch (foo & 2) { case 0: return 1; }
bec39cab
AC
22764 ;
22765 return 0;
22766}
22767_ACEOF
22768rm -f conftest.$ac_objext
22769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22770 (eval $ac_compile) 2>conftest.er1
22771 ac_status=$?
22772 grep -v '^ *+' conftest.er1 >conftest.err
22773 rm -f conftest.er1
22774 cat conftest.err >&5
22775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); } &&
b4e70030
JB
22777 { ac_try='test -z "$ac_c_werror_flag"
22778 || test ! -s conftest.err'
bec39cab
AC
22779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22780 (eval $ac_try) 2>&5
22781 ac_status=$?
22782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22783 (exit $ac_status); }; } &&
22784 { ac_try='test -s conftest.$ac_objext'
22785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22786 (eval $ac_try) 2>&5
22787 ac_status=$?
22788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789 (exit $ac_status); }; }; then
97bf5e38
MK
22790 gdb_cv_c_long_long=yes
22791else
bec39cab
AC
22792 echo "$as_me: failed program was:" >&5
22793sed 's/^/| /' conftest.$ac_ext >&5
22794
b4e70030 22795gdb_cv_c_long_long=no
97bf5e38 22796fi
bec39cab 22797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 22798fi
b4e70030
JB
22799echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
22800echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 22801if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
22802
22803cat >>confdefs.h <<\_ACEOF
97bf5e38 22804#define CC_HAS_LONG_LONG 1
bec39cab 22805_ACEOF
97bf5e38
MK
22806
22807fi
22808
bc8bcb4b 22809# Check if the compiler and runtime support printing long longs.
97bf5e38 22810
b4e70030
JB
22811echo "$as_me:$LINENO: checking for long long support in printf" >&5
22812echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
bec39cab
AC
22813if test "${gdb_cv_printf_has_long_long+set}" = set; then
22814 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
22815else
22816 if test "$cross_compiling" = yes; then
22817 gdb_cv_printf_has_long_long=no
22818else
bec39cab
AC
22819 cat >conftest.$ac_ext <<_ACEOF
22820/* confdefs.h. */
22821_ACEOF
22822cat confdefs.h >>conftest.$ac_ext
22823cat >>conftest.$ac_ext <<_ACEOF
22824/* end confdefs.h. */
bc8bcb4b
MK
22825$ac_includes_default
22826int
22827main ()
22828{
22829char buf[32];
97bf5e38
MK
22830 long long l = 0;
22831 l = (l << 16) + 0x0123;
22832 l = (l << 16) + 0x4567;
22833 l = (l << 16) + 0x89ab;
22834 l = (l << 16) + 0xcdef;
22835 sprintf (buf, "0x%016llx", l);
22836 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
22837 ;
22838 return 0;
c906108c 22839}
bec39cab
AC
22840_ACEOF
22841rm -f conftest$ac_exeext
22842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22843 (eval $ac_link) 2>&5
22844 ac_status=$?
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22848 (eval $ac_try) 2>&5
22849 ac_status=$?
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); }; }; then
97bf5e38
MK
22852 gdb_cv_printf_has_long_long=yes
22853else
bec39cab
AC
22854 echo "$as_me: program exited with status $ac_status" >&5
22855echo "$as_me: failed program was:" >&5
22856sed 's/^/| /' conftest.$ac_ext >&5
22857
22858( exit $ac_status )
22859gdb_cv_printf_has_long_long=no
97bf5e38 22860fi
b4e70030 22861rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 22862fi
97bf5e38 22863fi
b4e70030
JB
22864echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
22865echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 22866if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
22867
22868cat >>confdefs.h <<\_ACEOF
97bf5e38 22869#define PRINTF_HAS_LONG_LONG 1
bec39cab 22870_ACEOF
97bf5e38
MK
22871
22872fi
97bf5e38 22873
1a619819
LM
22874# Check if the compiler and runtime support printing decfloats.
22875
22876echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
22877echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
22878if test "${gdb_cv_printf_has_decfloat+set}" = set; then
22879 echo $ECHO_N "(cached) $ECHO_C" >&6
22880else
22881 if test "$cross_compiling" = yes; then
22882 gdb_cv_printf_has_decfloat=no
22883else
22884 cat >conftest.$ac_ext <<_ACEOF
22885/* confdefs.h. */
22886_ACEOF
22887cat confdefs.h >>conftest.$ac_ext
22888cat >>conftest.$ac_ext <<_ACEOF
22889/* end confdefs.h. */
22890$ac_includes_default
22891int
22892main ()
22893{
22894char buf[64];
22895 _Decimal32 d32 = 1.2345df;
22896 _Decimal64 d64 = 1.2345dd;
22897 _Decimal128 d128 = 1.2345dl;
22898 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
22899 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
22900 ;
22901 return 0;
22902}
22903_ACEOF
22904rm -f conftest$ac_exeext
22905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22906 (eval $ac_link) 2>&5
22907 ac_status=$?
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22911 (eval $ac_try) 2>&5
22912 ac_status=$?
22913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914 (exit $ac_status); }; }; then
22915 gdb_cv_printf_has_decfloat=yes
22916else
22917 echo "$as_me: program exited with status $ac_status" >&5
22918echo "$as_me: failed program was:" >&5
22919sed 's/^/| /' conftest.$ac_ext >&5
22920
22921( exit $ac_status )
22922gdb_cv_printf_has_decfloat=no
22923fi
22924rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22925fi
22926fi
22927echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
22928echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
22929if test $gdb_cv_printf_has_decfloat = yes; then
22930
22931cat >>confdefs.h <<\_ACEOF
22932#define PRINTF_HAS_DECFLOAT 1
22933_ACEOF
22934
22935fi
22936
bc8bcb4b
MK
22937# Check if the compiler supports the `long double' type. We can't use
22938# AC_C_LONG_DOUBLE because that one does additional checks on the
22939# constants defined in <float.h> that fail on some systems,
22940# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 22941
b4e70030
JB
22942echo "$as_me:$LINENO: checking for long double support in compiler" >&5
22943echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 22944if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 22945 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 22946else
bec39cab
AC
22947 cat >conftest.$ac_ext <<_ACEOF
22948/* confdefs.h. */
22949_ACEOF
22950cat confdefs.h >>conftest.$ac_ext
22951cat >>conftest.$ac_ext <<_ACEOF
22952/* end confdefs.h. */
97bf5e38 22953long double foo;
bec39cab
AC
22954_ACEOF
22955rm -f conftest.$ac_objext
22956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22957 (eval $ac_compile) 2>conftest.er1
22958 ac_status=$?
22959 grep -v '^ *+' conftest.er1 >conftest.err
22960 rm -f conftest.er1
22961 cat conftest.err >&5
22962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963 (exit $ac_status); } &&
b4e70030
JB
22964 { ac_try='test -z "$ac_c_werror_flag"
22965 || test ! -s conftest.err'
bec39cab
AC
22966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22967 (eval $ac_try) 2>&5
22968 ac_status=$?
22969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970 (exit $ac_status); }; } &&
22971 { ac_try='test -s conftest.$ac_objext'
22972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973 (eval $ac_try) 2>&5
22974 ac_status=$?
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); }; }; then
bc8bcb4b 22977 gdb_cv_c_long_double=yes
97bf5e38 22978else
bec39cab
AC
22979 echo "$as_me: failed program was:" >&5
22980sed 's/^/| /' conftest.$ac_ext >&5
22981
b4e70030 22982gdb_cv_c_long_double=no
97bf5e38 22983fi
bec39cab 22984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 22985fi
b4e70030
JB
22986echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
22987echo "${ECHO_T}$gdb_cv_c_long_double" >&6
bc8bcb4b 22988if test $gdb_cv_c_long_double = yes; then
c906108c 22989
bc8bcb4b 22990cat >>confdefs.h <<\_ACEOF
97bf5e38 22991#define HAVE_LONG_DOUBLE 1
bec39cab 22992_ACEOF
97bf5e38
MK
22993
22994fi
22995
bc8bcb4b 22996# Check if the compiler and runtime support printing long doubles.
97bf5e38 22997
b4e70030
JB
22998echo "$as_me:$LINENO: checking for long double support in printf" >&5
22999echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
bec39cab
AC
23000if test "${gdb_cv_printf_has_long_double+set}" = set; then
23001 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
23002else
23003 if test "$cross_compiling" = yes; then
23004 gdb_cv_printf_has_long_double=no
23005else
bec39cab
AC
23006 cat >conftest.$ac_ext <<_ACEOF
23007/* confdefs.h. */
23008_ACEOF
23009cat confdefs.h >>conftest.$ac_ext
23010cat >>conftest.$ac_ext <<_ACEOF
23011/* end confdefs.h. */
bc8bcb4b
MK
23012$ac_includes_default
23013int
23014main ()
23015{
23016char buf[16];
97bf5e38
MK
23017 long double f = 3.141592653;
23018 sprintf (buf, "%Lg", f);
23019 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
23020 ;
23021 return 0;
97bf5e38 23022}
bec39cab
AC
23023_ACEOF
23024rm -f conftest$ac_exeext
23025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23026 (eval $ac_link) 2>&5
23027 ac_status=$?
23028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23031 (eval $ac_try) 2>&5
23032 ac_status=$?
23033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034 (exit $ac_status); }; }; then
97bf5e38 23035 gdb_cv_printf_has_long_double=yes
c906108c 23036else
bec39cab
AC
23037 echo "$as_me: program exited with status $ac_status" >&5
23038echo "$as_me: failed program was:" >&5
23039sed 's/^/| /' conftest.$ac_ext >&5
23040
23041( exit $ac_status )
23042gdb_cv_printf_has_long_double=no
c906108c 23043fi
b4e70030 23044rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 23045fi
c906108c 23046fi
b4e70030
JB
23047echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
23048echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 23049if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
23050
23051cat >>confdefs.h <<\_ACEOF
97bf5e38 23052#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 23053_ACEOF
97bf5e38
MK
23054
23055fi
97bf5e38 23056
bc8bcb4b 23057# Check if the compiler and runtime support scanning long doubles.
97bf5e38 23058
b4e70030
JB
23059echo "$as_me:$LINENO: checking for long double support in scanf" >&5
23060echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
bec39cab
AC
23061if test "${gdb_cv_scanf_has_long_double+set}" = set; then
23062 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
23063else
23064 if test "$cross_compiling" = yes; then
23065 gdb_cv_scanf_has_long_double=no
23066else
bec39cab
AC
23067 cat >conftest.$ac_ext <<_ACEOF
23068/* confdefs.h. */
23069_ACEOF
23070cat confdefs.h >>conftest.$ac_ext
23071cat >>conftest.$ac_ext <<_ACEOF
23072/* end confdefs.h. */
bc8bcb4b
MK
23073#include <stdio.h>
23074int
23075main ()
23076{
23077char *buf = "3.141592653";
97bf5e38
MK
23078 long double f = 0;
23079 sscanf (buf, "%Lg", &f);
23080 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
23081 ;
23082 return 0;
97bf5e38 23083}
bec39cab
AC
23084_ACEOF
23085rm -f conftest$ac_exeext
23086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23087 (eval $ac_link) 2>&5
23088 ac_status=$?
23089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23092 (eval $ac_try) 2>&5
23093 ac_status=$?
23094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095 (exit $ac_status); }; }; then
97bf5e38
MK
23096 gdb_cv_scanf_has_long_double=yes
23097else
bec39cab
AC
23098 echo "$as_me: program exited with status $ac_status" >&5
23099echo "$as_me: failed program was:" >&5
23100sed 's/^/| /' conftest.$ac_ext >&5
23101
23102( exit $ac_status )
23103gdb_cv_scanf_has_long_double=no
97bf5e38 23104fi
b4e70030 23105rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 23106fi
c906108c 23107fi
b4e70030
JB
23108echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
23109echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 23110if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
23111
23112cat >>confdefs.h <<\_ACEOF
97bf5e38 23113#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 23114_ACEOF
97bf5e38
MK
23115
23116fi
c906108c 23117
438013df
AO
23118case ${host_os} in
23119aix*)
b4e70030
JB
23120 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
23121echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
bec39cab
AC
23122if test "${gdb_cv_bigtoc+set}" = set; then
23123 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 23124else
bec39cab 23125
438013df
AO
23126 SAVE_LDFLAGS=$LDFLAGS
23127
23128 case $GCC in
23129 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
23130 *) gdb_cv_bigtoc=-bbigtoc ;;
23131 esac
23132
23133 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
23134 cat >conftest.$ac_ext <<_ACEOF
23135/* confdefs.h. */
23136_ACEOF
23137cat confdefs.h >>conftest.$ac_ext
23138cat >>conftest.$ac_ext <<_ACEOF
23139/* end confdefs.h. */
438013df 23140
bec39cab
AC
23141int
23142main ()
23143{
438013df 23144int i;
bec39cab
AC
23145 ;
23146 return 0;
23147}
23148_ACEOF
23149rm -f conftest.$ac_objext conftest$ac_exeext
23150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23151 (eval $ac_link) 2>conftest.er1
23152 ac_status=$?
23153 grep -v '^ *+' conftest.er1 >conftest.err
23154 rm -f conftest.er1
23155 cat conftest.err >&5
23156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157 (exit $ac_status); } &&
b4e70030
JB
23158 { ac_try='test -z "$ac_c_werror_flag"
23159 || test ! -s conftest.err'
bec39cab
AC
23160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23161 (eval $ac_try) 2>&5
23162 ac_status=$?
23163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164 (exit $ac_status); }; } &&
23165 { ac_try='test -s conftest$ac_exeext'
23166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23167 (eval $ac_try) 2>&5
23168 ac_status=$?
23169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170 (exit $ac_status); }; }; then
438013df
AO
23171 :
23172else
bec39cab
AC
23173 echo "$as_me: failed program was:" >&5
23174sed 's/^/| /' conftest.$ac_ext >&5
23175
b4e70030 23176gdb_cv_bigtoc=
438013df 23177fi
bec39cab
AC
23178rm -f conftest.err conftest.$ac_objext \
23179 conftest$ac_exeext conftest.$ac_ext
ec76baa5 23180 LDFLAGS="${SAVE_LDFLAGS}"
438013df 23181
bec39cab 23182fi
b4e70030
JB
23183echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
23184echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
23185 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
23186 ;;
23187esac
23188
c906108c
SS
23189
23190
23191if test ${build} = ${host} -a ${host} = ${target} ; then
23192 case ${host_os} in
23193 hpux*)
b4e70030
JB
23194 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
23195echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
23196 if test -f /usr/include/dce/cma_config.h ; then
23197 if test "$GCC" = "yes" ; then
b4e70030
JB
23198 echo "$as_me:$LINENO: result: yes" >&5
23199echo "${ECHO_T}yes" >&6
60ca704f
SE
23200
23201cat >>confdefs.h <<\_ACEOF
c906108c 23202#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 23203_ACEOF
c906108c 23204
3483b318 23205 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
23206 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
23207 else
b4e70030
JB
23208 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
23209echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
23210 fi
23211 else
b4e70030
JB
23212 echo "$as_me:$LINENO: result: no" >&5
23213echo "${ECHO_T}no" >&6
c906108c
SS
23214 fi
23215 ;;
23216 solaris*)
d92419e5
JB
23217 # See if thread_db library is around for Solaris thread debugging.
23218 # Note that we must explicitly test for version 1 of the library
23219 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
23220 # the same API.
b4e70030
JB
23221 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
23222echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 23223 if test -f /usr/lib/libthread_db.so.1 ; then
b4e70030
JB
23224 echo "$as_me:$LINENO: result: yes" >&5
23225echo "${ECHO_T}yes" >&6
60ca704f
SE
23226
23227cat >>confdefs.h <<\_ACEOF
c906108c 23228#define HAVE_THREAD_DB_LIB 1
bec39cab 23229_ACEOF
c906108c 23230
3483b318 23231 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 23232 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab 23233
b4e70030
JB
23234echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23235echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
bec39cab
AC
23236if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23237 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 23238else
bec39cab 23239 ac_check_lib_save_LIBS=$LIBS
c906108c 23240LIBS="-ldl $LIBS"
bec39cab
AC
23241cat >conftest.$ac_ext <<_ACEOF
23242/* confdefs.h. */
23243_ACEOF
23244cat confdefs.h >>conftest.$ac_ext
23245cat >>conftest.$ac_ext <<_ACEOF
23246/* end confdefs.h. */
23247
b4e70030 23248/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
23249#ifdef __cplusplus
23250extern "C"
23251#endif
b4e70030
JB
23252/* We use char because int might match the return type of a gcc2
23253 builtin and then its argument prototype would still apply. */
bec39cab
AC
23254char dlopen ();
23255int
23256main ()
23257{
b4e70030 23258dlopen ();
bec39cab
AC
23259 ;
23260 return 0;
23261}
23262_ACEOF
23263rm -f conftest.$ac_objext conftest$ac_exeext
23264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23265 (eval $ac_link) 2>conftest.er1
23266 ac_status=$?
23267 grep -v '^ *+' conftest.er1 >conftest.err
23268 rm -f conftest.er1
23269 cat conftest.err >&5
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); } &&
b4e70030
JB
23272 { ac_try='test -z "$ac_c_werror_flag"
23273 || test ! -s conftest.err'
bec39cab
AC
23274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23275 (eval $ac_try) 2>&5
23276 ac_status=$?
23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); }; } &&
23279 { ac_try='test -s conftest$ac_exeext'
23280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23281 (eval $ac_try) 2>&5
23282 ac_status=$?
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); }; }; then
23285 ac_cv_lib_dl_dlopen=yes
23286else
23287 echo "$as_me: failed program was:" >&5
23288sed 's/^/| /' conftest.$ac_ext >&5
23289
b4e70030 23290ac_cv_lib_dl_dlopen=no
bec39cab
AC
23291fi
23292rm -f conftest.err conftest.$ac_objext \
23293 conftest$ac_exeext conftest.$ac_ext
23294LIBS=$ac_check_lib_save_LIBS
23295fi
b4e70030
JB
23296echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23297echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
bec39cab
AC
23298if test $ac_cv_lib_dl_dlopen = yes; then
23299 cat >>confdefs.h <<_ACEOF
23300#define HAVE_LIBDL 1
23301_ACEOF
c906108c
SS
23302
23303 LIBS="-ldl $LIBS"
23304
c906108c
SS
23305fi
23306
23307 if test "$GCC" = "yes" ; then
23308 # The GNU linker requires the -export-dynamic option to make
23309 # all symbols visible in the dynamic symbol table.
23310 hold_ldflags=$LDFLAGS
b4e70030
JB
23311 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
23312echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 23313 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
23314 cat >conftest.$ac_ext <<_ACEOF
23315/* confdefs.h. */
23316_ACEOF
23317cat confdefs.h >>conftest.$ac_ext
23318cat >>conftest.$ac_ext <<_ACEOF
23319/* end confdefs.h. */
c906108c 23320
bec39cab
AC
23321int
23322main ()
23323{
c906108c 23324int i;
bec39cab
AC
23325 ;
23326 return 0;
23327}
23328_ACEOF
23329rm -f conftest.$ac_objext conftest$ac_exeext
23330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23331 (eval $ac_link) 2>conftest.er1
23332 ac_status=$?
23333 grep -v '^ *+' conftest.er1 >conftest.err
23334 rm -f conftest.er1
23335 cat conftest.err >&5
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); } &&
b4e70030
JB
23338 { ac_try='test -z "$ac_c_werror_flag"
23339 || test ! -s conftest.err'
bec39cab
AC
23340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341 (eval $ac_try) 2>&5
23342 ac_status=$?
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); }; } &&
23345 { ac_try='test -s conftest$ac_exeext'
23346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347 (eval $ac_try) 2>&5
23348 ac_status=$?
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); }; }; then
c906108c
SS
23351 found=yes
23352else
bec39cab
AC
23353 echo "$as_me: failed program was:" >&5
23354sed 's/^/| /' conftest.$ac_ext >&5
23355
b4e70030 23356found=no
c906108c 23357fi
bec39cab
AC
23358rm -f conftest.err conftest.$ac_objext \
23359 conftest$ac_exeext conftest.$ac_ext
c906108c 23360 LDFLAGS=$hold_ldflags
b4e70030
JB
23361 echo "$as_me:$LINENO: result: $found" >&5
23362echo "${ECHO_T}$found" >&6
c906108c
SS
23363 if test $found = yes; then
23364 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
23365 fi
23366 fi
23367 # Sun randomly tweaked the prototypes in <proc_service.h>
23368 # at one point.
b4e70030
JB
23369 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
23370echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
bec39cab
AC
23371 if test "${gdb_cv_proc_service_is_old+set}" = set; then
23372 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 23373else
bec39cab
AC
23374
23375 cat >conftest.$ac_ext <<_ACEOF
23376/* confdefs.h. */
23377_ACEOF
23378cat confdefs.h >>conftest.$ac_ext
23379cat >>conftest.$ac_ext <<_ACEOF
23380/* end confdefs.h. */
c906108c
SS
23381
23382 #include <proc_service.h>
23383 ps_err_e ps_pdwrite
23384 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 23385
bec39cab
AC
23386int
23387main ()
23388{
23389
23390 ;
23391 return 0;
23392}
23393_ACEOF
23394rm -f conftest.$ac_objext
23395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23396 (eval $ac_compile) 2>conftest.er1
23397 ac_status=$?
23398 grep -v '^ *+' conftest.er1 >conftest.err
23399 rm -f conftest.er1
23400 cat conftest.err >&5
23401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23402 (exit $ac_status); } &&
b4e70030
JB
23403 { ac_try='test -z "$ac_c_werror_flag"
23404 || test ! -s conftest.err'
bec39cab
AC
23405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23406 (eval $ac_try) 2>&5
23407 ac_status=$?
23408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409 (exit $ac_status); }; } &&
23410 { ac_try='test -s conftest.$ac_objext'
23411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23412 (eval $ac_try) 2>&5
23413 ac_status=$?
23414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415 (exit $ac_status); }; }; then
c906108c
SS
23416 gdb_cv_proc_service_is_old=no
23417else
bec39cab
AC
23418 echo "$as_me: failed program was:" >&5
23419sed 's/^/| /' conftest.$ac_ext >&5
23420
b4e70030 23421gdb_cv_proc_service_is_old=yes
c906108c 23422fi
bec39cab
AC
23423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23424
c906108c
SS
23425fi
23426
b4e70030
JB
23427 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
23428echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 23429 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
23430
23431cat >>confdefs.h <<\_ACEOF
c906108c 23432#define PROC_SERVICE_IS_OLD 1
bec39cab 23433_ACEOF
c906108c
SS
23434
23435 fi
23436 else
b4e70030
JB
23437 echo "$as_me:$LINENO: result: no" >&5
23438echo "${ECHO_T}no" >&6
c906108c
SS
23439 fi
23440 ;;
d92419e5 23441 aix*)
b4e70030
JB
23442 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
23443echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
bec39cab
AC
23444 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
23445 echo $ECHO_N "(cached) $ECHO_C" >&6
23446else
23447 cat >conftest.$ac_ext <<_ACEOF
23448/* confdefs.h. */
23449_ACEOF
23450cat confdefs.h >>conftest.$ac_ext
23451cat >>conftest.$ac_ext <<_ACEOF
23452/* end confdefs.h. */
d92419e5 23453#include <sys/pthdebug.h>
bec39cab
AC
23454int
23455main ()
23456{
d92419e5
JB
23457#ifndef PTHDB_VERSION_3
23458 #error
23459 #endif
bec39cab
AC
23460 ;
23461 return 0;
23462}
23463_ACEOF
23464rm -f conftest.$ac_objext
23465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23466 (eval $ac_compile) 2>conftest.er1
23467 ac_status=$?
23468 grep -v '^ *+' conftest.er1 >conftest.err
23469 rm -f conftest.er1
23470 cat conftest.err >&5
23471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472 (exit $ac_status); } &&
b4e70030
JB
23473 { ac_try='test -z "$ac_c_werror_flag"
23474 || test ! -s conftest.err'
bec39cab
AC
23475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23476 (eval $ac_try) 2>&5
23477 ac_status=$?
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); }; } &&
23480 { ac_try='test -s conftest.$ac_objext'
23481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23482 (eval $ac_try) 2>&5
23483 ac_status=$?
23484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485 (exit $ac_status); }; }; then
d92419e5
JB
23486 gdb_cv_have_aix_thread_debug=yes
23487else
bec39cab
AC
23488 echo "$as_me: failed program was:" >&5
23489sed 's/^/| /' conftest.$ac_ext >&5
23490
b4e70030 23491gdb_cv_have_aix_thread_debug=no
d92419e5 23492fi
bec39cab 23493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
23494fi
23495
b4e70030
JB
23496 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
23497echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
23498 if test $gdb_cv_have_aix_thread_debug = yes; then
23499 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 23500 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
23501 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
23502 fi
23503 ;;
c906108c 23504 esac
bec39cab 23505
c906108c
SS
23506fi
23507
3f47be5c 23508if test "x$ac_cv_header_thread_db_h" = "xyes"; then
b4e70030
JB
23509 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
23510echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
bec39cab
AC
23511if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
23512 echo $ECHO_N "(cached) $ECHO_C" >&6
23513else
23514 cat >conftest.$ac_ext <<_ACEOF
23515/* confdefs.h. */
23516_ACEOF
23517cat confdefs.h >>conftest.$ac_ext
23518cat >>conftest.$ac_ext <<_ACEOF
23519/* end confdefs.h. */
3f47be5c 23520#include <thread_db.h>
bec39cab
AC
23521int
23522main ()
23523{
3f47be5c 23524int i = TD_NOTALLOC;
bec39cab
AC
23525 ;
23526 return 0;
23527}
23528_ACEOF
23529rm -f conftest.$ac_objext
23530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23531 (eval $ac_compile) 2>conftest.er1
23532 ac_status=$?
23533 grep -v '^ *+' conftest.er1 >conftest.err
23534 rm -f conftest.er1
23535 cat conftest.err >&5
23536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537 (exit $ac_status); } &&
b4e70030
JB
23538 { ac_try='test -z "$ac_c_werror_flag"
23539 || test ! -s conftest.err'
bec39cab
AC
23540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23541 (eval $ac_try) 2>&5
23542 ac_status=$?
23543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544 (exit $ac_status); }; } &&
23545 { ac_try='test -s conftest.$ac_objext'
23546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23547 (eval $ac_try) 2>&5
23548 ac_status=$?
23549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550 (exit $ac_status); }; }; then
3f47be5c
EZ
23551 gdb_cv_thread_db_h_has_td_notalloc=yes
23552else
bec39cab
AC
23553 echo "$as_me: failed program was:" >&5
23554sed 's/^/| /' conftest.$ac_ext >&5
23555
b4e70030 23556gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 23557
3f47be5c 23558fi
bec39cab 23559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 23560
bec39cab 23561fi
b4e70030
JB
23562echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
23563echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
59f80f10
DJ
23564 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
23565echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
23566if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
23567 echo $ECHO_N "(cached) $ECHO_C" >&6
23568else
23569 cat >conftest.$ac_ext <<_ACEOF
23570/* confdefs.h. */
23571_ACEOF
23572cat confdefs.h >>conftest.$ac_ext
23573cat >>conftest.$ac_ext <<_ACEOF
23574/* end confdefs.h. */
23575#include <thread_db.h>
23576int
23577main ()
23578{
23579int i = TD_VERSION;
23580 ;
23581 return 0;
23582}
23583_ACEOF
23584rm -f conftest.$ac_objext
23585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23586 (eval $ac_compile) 2>conftest.er1
23587 ac_status=$?
23588 grep -v '^ *+' conftest.er1 >conftest.err
23589 rm -f conftest.er1
23590 cat conftest.err >&5
23591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592 (exit $ac_status); } &&
23593 { ac_try='test -z "$ac_c_werror_flag"
23594 || test ! -s conftest.err'
23595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23596 (eval $ac_try) 2>&5
23597 ac_status=$?
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); }; } &&
23600 { ac_try='test -s conftest.$ac_objext'
23601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23602 (eval $ac_try) 2>&5
23603 ac_status=$?
23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605 (exit $ac_status); }; }; then
23606 gdb_cv_thread_db_h_has_td_version=yes
23607else
23608 echo "$as_me: failed program was:" >&5
23609sed 's/^/| /' conftest.$ac_ext >&5
23610
23611gdb_cv_thread_db_h_has_td_version=no
23612
23613fi
23614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23615
23616fi
23617echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
23618echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
23619 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
23620echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
23621if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
23622 echo $ECHO_N "(cached) $ECHO_C" >&6
23623else
23624 cat >conftest.$ac_ext <<_ACEOF
23625/* confdefs.h. */
23626_ACEOF
23627cat confdefs.h >>conftest.$ac_ext
23628cat >>conftest.$ac_ext <<_ACEOF
23629/* end confdefs.h. */
23630#include <thread_db.h>
23631int
23632main ()
23633{
23634int i = TD_NOTLS;
23635 ;
23636 return 0;
23637}
23638_ACEOF
23639rm -f conftest.$ac_objext
23640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23641 (eval $ac_compile) 2>conftest.er1
23642 ac_status=$?
23643 grep -v '^ *+' conftest.er1 >conftest.err
23644 rm -f conftest.er1
23645 cat conftest.err >&5
23646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647 (exit $ac_status); } &&
23648 { ac_try='test -z "$ac_c_werror_flag"
23649 || test ! -s conftest.err'
23650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23651 (eval $ac_try) 2>&5
23652 ac_status=$?
23653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23654 (exit $ac_status); }; } &&
23655 { ac_try='test -s conftest.$ac_objext'
23656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23657 (eval $ac_try) 2>&5
23658 ac_status=$?
23659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660 (exit $ac_status); }; }; then
23661 gdb_cv_thread_db_h_has_td_notls=yes
23662else
23663 echo "$as_me: failed program was:" >&5
23664sed 's/^/| /' conftest.$ac_ext >&5
23665
23666gdb_cv_thread_db_h_has_td_notls=no
23667
23668fi
23669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23670
23671fi
23672echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
23673echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
3f47be5c
EZ
23674fi
23675if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
23676
23677cat >>confdefs.h <<\_ACEOF
3f47be5c 23678#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 23679_ACEOF
3f47be5c 23680
59f80f10
DJ
23681fi
23682if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
23683
23684cat >>confdefs.h <<\_ACEOF
23685#define THREAD_DB_HAS_TD_VERSION 1
23686_ACEOF
23687
23688fi
23689if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
23690
23691cat >>confdefs.h <<\_ACEOF
23692#define THREAD_DB_HAS_TD_NOTLS 1
23693_ACEOF
23694
3f47be5c
EZ
23695fi
23696
b757528f 23697if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
b4e70030
JB
23698 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
23699echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
bec39cab
AC
23700if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
23701 echo $ECHO_N "(cached) $ECHO_C" >&6
23702else
23703 cat >conftest.$ac_ext <<_ACEOF
23704/* confdefs.h. */
23705_ACEOF
23706cat confdefs.h >>conftest.$ac_ext
23707cat >>conftest.$ac_ext <<_ACEOF
23708/* end confdefs.h. */
b757528f 23709#include <sys/syscall.h>
bec39cab
AC
23710int
23711main ()
23712{
b757528f 23713int i = __NR_tkill;
bec39cab
AC
23714 ;
23715 return 0;
23716}
23717_ACEOF
23718rm -f conftest.$ac_objext
23719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23720 (eval $ac_compile) 2>conftest.er1
23721 ac_status=$?
23722 grep -v '^ *+' conftest.er1 >conftest.err
23723 rm -f conftest.er1
23724 cat conftest.err >&5
23725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); } &&
b4e70030
JB
23727 { ac_try='test -z "$ac_c_werror_flag"
23728 || test ! -s conftest.err'
bec39cab
AC
23729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730 (eval $ac_try) 2>&5
23731 ac_status=$?
23732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); }; } &&
23734 { ac_try='test -s conftest.$ac_objext'
23735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736 (eval $ac_try) 2>&5
23737 ac_status=$?
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); }; }; then
b757528f
JJ
23740 gdb_cv_sys_syscall_h_has_tkill=yes
23741else
bec39cab
AC
23742 echo "$as_me: failed program was:" >&5
23743sed 's/^/| /' conftest.$ac_ext >&5
23744
b4e70030 23745gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 23746
b757528f 23747fi
bec39cab 23748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 23749
bec39cab 23750fi
b4e70030
JB
23751echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
23752echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
23753fi
23754if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
23755
23756cat >>confdefs.h <<\_ACEOF
b757528f 23757#define HAVE_TKILL_SYSCALL 1
bec39cab 23758_ACEOF
b757528f
JJ
23759
23760fi
23761
10568435
JK
23762echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
23763echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
23764if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
23765 echo $ECHO_N "(cached) $ECHO_C" >&6
23766else
23767 cat >conftest.$ac_ext <<_ACEOF
23768/* confdefs.h. */
23769_ACEOF
23770cat confdefs.h >>conftest.$ac_ext
23771cat >>conftest.$ac_ext <<_ACEOF
23772/* end confdefs.h. */
23773#include <sys/personality.h>
23774
23775int
23776main ()
23777{
23778#ifndef ADDR_NO_RANDOMIZE
23779 char *p = (char *) ADDR_NO_RANDOMIZE;
23780#endif
23781
23782 ;
23783 return 0;
23784}
23785_ACEOF
23786rm -f conftest.$ac_objext
23787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23788 (eval $ac_compile) 2>conftest.er1
23789 ac_status=$?
23790 grep -v '^ *+' conftest.er1 >conftest.err
23791 rm -f conftest.er1
23792 cat conftest.err >&5
23793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794 (exit $ac_status); } &&
23795 { ac_try='test -z "$ac_c_werror_flag"
23796 || test ! -s conftest.err'
23797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23798 (eval $ac_try) 2>&5
23799 ac_status=$?
23800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801 (exit $ac_status); }; } &&
23802 { ac_try='test -s conftest.$ac_objext'
23803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23804 (eval $ac_try) 2>&5
23805 ac_status=$?
23806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); }; }; then
23808 ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
23809else
23810 echo "$as_me: failed program was:" >&5
23811sed 's/^/| /' conftest.$ac_ext >&5
23812
23813ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
23814fi
23815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23816fi
23817echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
23818echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
23819if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
23820
23821cat >>confdefs.h <<_ACEOF
23822#define HAVE_DECL_ADDR_NO_RANDOMIZE 1
23823_ACEOF
23824
23825
23826else
23827 cat >>confdefs.h <<_ACEOF
23828#define HAVE_DECL_ADDR_NO_RANDOMIZE 0
23829_ACEOF
23830
23831
23832fi
23833
23834
23835
23836if test "$cross_compiling" = yes; then
23837 cat >conftest.$ac_ext <<_ACEOF
23838/* confdefs.h. */
23839_ACEOF
23840cat confdefs.h >>conftest.$ac_ext
23841cat >>conftest.$ac_ext <<_ACEOF
23842/* end confdefs.h. */
23843#include <sys/personality.h>
23844int
23845main ()
23846{
23847
23848# if !HAVE_DECL_ADDR_NO_RANDOMIZE
23849# define ADDR_NO_RANDOMIZE 0x0040000
23850# endif
23851 /* Test the flag could be set and stays set. */
23852 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
23853 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
23854 return 1
23855 ;
23856 return 0;
23857}
23858_ACEOF
23859rm -f conftest.$ac_objext conftest$ac_exeext
23860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23861 (eval $ac_link) 2>conftest.er1
23862 ac_status=$?
23863 grep -v '^ *+' conftest.er1 >conftest.err
23864 rm -f conftest.er1
23865 cat conftest.err >&5
23866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867 (exit $ac_status); } &&
23868 { ac_try='test -z "$ac_c_werror_flag"
23869 || test ! -s conftest.err'
23870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23871 (eval $ac_try) 2>&5
23872 ac_status=$?
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 (exit $ac_status); }; } &&
23875 { ac_try='test -s conftest$ac_exeext'
23876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23877 (eval $ac_try) 2>&5
23878 ac_status=$?
23879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880 (exit $ac_status); }; }; then
23881 have_personality=true
23882else
23883 echo "$as_me: failed program was:" >&5
23884sed 's/^/| /' conftest.$ac_ext >&5
23885
23886have_personality=false
23887fi
23888rm -f conftest.err conftest.$ac_objext \
23889 conftest$ac_exeext conftest.$ac_ext
23890else
23891 cat >conftest.$ac_ext <<_ACEOF
23892/* confdefs.h. */
23893_ACEOF
23894cat confdefs.h >>conftest.$ac_ext
23895cat >>conftest.$ac_ext <<_ACEOF
23896/* end confdefs.h. */
23897#include <sys/personality.h>
23898int
23899main ()
23900{
23901
23902# if !HAVE_DECL_ADDR_NO_RANDOMIZE
23903# define ADDR_NO_RANDOMIZE 0x0040000
23904# endif
23905 /* Test the flag could be set and stays set. */
23906 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
23907 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
23908 return 1
23909 ;
23910 return 0;
23911}
23912_ACEOF
23913rm -f conftest$ac_exeext
23914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23915 (eval $ac_link) 2>&5
23916 ac_status=$?
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23920 (eval $ac_try) 2>&5
23921 ac_status=$?
23922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23923 (exit $ac_status); }; }; then
23924 have_personality=true
23925else
23926 echo "$as_me: program exited with status $ac_status" >&5
23927echo "$as_me: failed program was:" >&5
23928sed 's/^/| /' conftest.$ac_ext >&5
23929
23930( exit $ac_status )
23931have_personality=false
23932fi
23933rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23934fi
23935if $have_personality
23936then
23937
23938cat >>confdefs.h <<\_ACEOF
23939#define HAVE_PERSONALITY 1
23940_ACEOF
23941
23942fi
23943
fb40c209 23944
bec39cab 23945
b4e70030 23946# Check whether --with-sysroot or --without-sysroot was given.
030292b7 23947if test "${with_sysroot+set}" = set; then
b4e70030
JB
23948 withval="$with_sysroot"
23949
030292b7 23950 case ${with_sysroot} in
715d1656 23951 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
23952 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
23953 esac
23954
23955 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
23956
07abfebf
RS
23957 if test "x$prefix" = xNONE; then
23958 test_prefix=/usr/local
23959 else
23960 test_prefix=$prefix
23961 fi
aa28a74e 23962 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
07abfebf 23963 test_exec_prefix=$test_prefix
030292b7 23964 else
07abfebf 23965 test_exec_prefix=$exec_prefix
030292b7
DJ
23966 fi
23967 case ${TARGET_SYSTEM_ROOT} in
715d1656 23968 "${test_prefix}"|"${test_prefix}/"*|\
07abfebf
RS
23969 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
23970 '${prefix}'|'${prefix}/'*|\
715d1656 23971 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
23972 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
23973 TARGET_SYSTEM_ROOT_DEFINE="$t"
23974 ;;
23975 esac
23976
23977else
bec39cab 23978
030292b7
DJ
23979 TARGET_SYSTEM_ROOT=
23980 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
23981
b4e70030 23982fi;
030292b7
DJ
23983
23984
23985
b4e70030 23986# Check whether --enable-werror or --disable-werror was given.
094a342e 23987if test "${enable_werror+set}" = set; then
b4e70030
JB
23988 enableval="$enable_werror"
23989 case "${enableval}" in
094a342e
MK
23990 yes | y) ERROR_ON_WARNING="yes" ;;
23991 no | n) ERROR_ON_WARNING="no" ;;
23992 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
23993echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
23994 { (exit 1); exit 1; }; } ;;
23995 esac
b4e70030 23996fi;
094a342e
MK
23997
23998# Enable -Werror by default when using gcc
23999if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
24000 ERROR_ON_WARNING=yes
24001fi
24002
24003WERROR_CFLAGS=""
24004if test "${ERROR_ON_WARNING}" = yes ; then
24005 WERROR_CFLAGS="-Werror"
24006fi
24007
aa79a185
DJ
24008# The entries after -Wno-pointer-sign are disabled warnings which may
24009# be enabled in the future, which can not currently be used to build
24010# GDB.
24011# NOTE: If you change this list, remember to update
3b851bce 24012# gdb/doc/gdbint.texinfo.
aa79a185
DJ
24013build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
24014-Wformat-nonliteral -Wno-pointer-sign \
58b38ee2 24015-Wno-unused -Wno-switch -Wno-char-subscripts"
a3b362c4 24016
3526781e
DJ
24017# Enable -Wno-format by default when using gcc on mingw since many
24018# GCC versions complain about %I64.
24019case "${host}" in
24020 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
24021esac
24022
b4e70030 24023# Check whether --enable-build-warnings or --disable-build-warnings was given.
c906108c 24024if test "${enable_build_warnings+set}" = set; then
b4e70030
JB
24025 enableval="$enable_build_warnings"
24026 case "${enableval}" in
c906108c
SS
24027 yes) ;;
24028 no) build_warnings="-w";;
24029 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24030 build_warnings="${build_warnings} ${t}";;
24031 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24032 build_warnings="${t} ${build_warnings}";;
24033 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
24034esac
d4f3574e 24035if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 24036 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 24037fi
b4e70030 24038fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce 24039if test "${enable_gdb_build_warnings+set}" = set; then
b4e70030
JB
24040 enableval="$enable_gdb_build_warnings"
24041 case "${enableval}" in
3b851bce
AC
24042 yes) ;;
24043 no) build_warnings="-w";;
24044 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24045 build_warnings="${build_warnings} ${t}";;
24046 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24047 build_warnings="${t} ${build_warnings}";;
24048 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
24049esac
24050if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
24051 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
24052fi
b4e70030 24053fi; WARN_CFLAGS=""
c906108c
SS
24054if test "x${build_warnings}" != x -a "x$GCC" = xyes
24055then
b4e70030
JB
24056 echo "$as_me:$LINENO: checking compiler warning flags" >&5
24057echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
24058 # Separate out the -Werror flag as some files just cannot be
24059 # compiled with it enabled.
24060 for w in ${build_warnings}; do
24061 case $w in
24062 -Werr*) WERROR_CFLAGS=-Werror ;;
24063 *) # Check that GCC accepts it
4536bbc6
AC
24064 saved_CFLAGS="$CFLAGS"
24065 CFLAGS="$CFLAGS $w"
bec39cab
AC
24066 cat >conftest.$ac_ext <<_ACEOF
24067/* confdefs.h. */
24068_ACEOF
24069cat confdefs.h >>conftest.$ac_ext
24070cat >>conftest.$ac_ext <<_ACEOF
24071/* end confdefs.h. */
4536bbc6 24072
bec39cab
AC
24073int
24074main ()
24075{
4536bbc6 24076
bec39cab
AC
24077 ;
24078 return 0;
24079}
24080_ACEOF
24081rm -f conftest.$ac_objext
24082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24083 (eval $ac_compile) 2>conftest.er1
24084 ac_status=$?
24085 grep -v '^ *+' conftest.er1 >conftest.err
24086 rm -f conftest.er1
24087 cat conftest.err >&5
24088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089 (exit $ac_status); } &&
b4e70030
JB
24090 { ac_try='test -z "$ac_c_werror_flag"
24091 || test ! -s conftest.err'
bec39cab
AC
24092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24093 (eval $ac_try) 2>&5
24094 ac_status=$?
24095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096 (exit $ac_status); }; } &&
24097 { ac_try='test -s conftest.$ac_objext'
24098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24099 (eval $ac_try) 2>&5
24100 ac_status=$?
24101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); }; }; then
4536bbc6
AC
24103 WARN_CFLAGS="${WARN_CFLAGS} $w"
24104else
bec39cab
AC
24105 echo "$as_me: failed program was:" >&5
24106sed 's/^/| /' conftest.$ac_ext >&5
24107
4536bbc6 24108fi
bec39cab 24109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 24110 CFLAGS="$saved_CFLAGS"
746a987d
AC
24111 esac
24112 done
aa79a185
DJ
24113 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
24114echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
c906108c
SS
24115fi
24116
24117
104c1213 24118
7a292a7a 24119# In the Cygwin environment, we need some additional flags.
b4e70030
JB
24120echo "$as_me:$LINENO: checking for cygwin" >&5
24121echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
bec39cab
AC
24122if test "${gdb_cv_os_cygwin+set}" = set; then
24123 echo $ECHO_N "(cached) $ECHO_C" >&6
24124else
24125 cat >conftest.$ac_ext <<_ACEOF
24126/* confdefs.h. */
24127_ACEOF
24128cat confdefs.h >>conftest.$ac_ext
24129cat >>conftest.$ac_ext <<_ACEOF
24130/* end confdefs.h. */
7a292a7a
SS
24131
24132#if defined (__CYGWIN__) || defined (__CYGWIN32__)
24133lose
24134#endif
bec39cab 24135_ACEOF
7a292a7a 24136if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 24137 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
24138 gdb_cv_os_cygwin=yes
24139else
7a292a7a
SS
24140 gdb_cv_os_cygwin=no
24141fi
24142rm -f conftest*
24143
24144fi
b4e70030
JB
24145echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
24146echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 24147
aff38e61 24148
3eb25fda 24149SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 24150case ${host} in
95cbc983
AC
24151 *go32* ) SER_HARDWIRE=ser-go32.o ;;
24152 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 24153 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
24154esac
24155
24156
cd0fc7c3
SS
24157# libreadline needs libuser32.a in a cygwin environment
24158WIN32LIBS=
24159if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
24160 WIN32LIBS="-luser32"
24161 case "${target}" in
24162 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
24163 ;;
24164 esac
cd0fc7c3 24165fi
c906108c 24166
b4505029
MM
24167# The ser-tcp.c module requires sockets.
24168case ${host} in
24169 *mingw32*)
24170
24171cat >>confdefs.h <<\_ACEOF
24172#define USE_WIN32API 1
24173_ACEOF
24174
24175 WIN32LIBS="$WIN32LIBS -lws2_32"
24176 ;;
24177esac
24178
7a292a7a 24179
31d99776
DJ
24180# Add ELF support to GDB, but only if BFD includes ELF support.
24181OLD_CFLAGS=$CFLAGS
24182OLD_LDFLAGS=$LDFLAGS
24183OLD_LIBS=$LIBS
cab58a69 24184CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
31d99776 24185LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
7b3200f9 24186intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
0f72fb1c 24187LIBS="-lbfd -liberty $intl $LIBS"
31d99776
DJ
24188echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
24189echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
24190if test "${gdb_cv_var_elf+set}" = set; then
24191 echo $ECHO_N "(cached) $ECHO_C" >&6
24192else
24193 cat >conftest.$ac_ext <<_ACEOF
24194/* confdefs.h. */
24195_ACEOF
24196cat confdefs.h >>conftest.$ac_ext
24197cat >>conftest.$ac_ext <<_ACEOF
24198/* end confdefs.h. */
24199#include <stdlib.h>
24200#include "bfd.h"
24201#include "elf-bfd.h"
24202
24203int
24204main ()
24205{
24206bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
24207 ;
24208 return 0;
24209}
24210_ACEOF
24211rm -f conftest.$ac_objext conftest$ac_exeext
24212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24213 (eval $ac_link) 2>conftest.er1
24214 ac_status=$?
24215 grep -v '^ *+' conftest.er1 >conftest.err
24216 rm -f conftest.er1
24217 cat conftest.err >&5
24218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219 (exit $ac_status); } &&
24220 { ac_try='test -z "$ac_c_werror_flag"
24221 || test ! -s conftest.err'
24222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24223 (eval $ac_try) 2>&5
24224 ac_status=$?
24225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24226 (exit $ac_status); }; } &&
24227 { ac_try='test -s conftest$ac_exeext'
24228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24229 (eval $ac_try) 2>&5
24230 ac_status=$?
24231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232 (exit $ac_status); }; }; then
24233 gdb_cv_var_elf=yes
24234else
24235 echo "$as_me: failed program was:" >&5
24236sed 's/^/| /' conftest.$ac_ext >&5
24237
24238gdb_cv_var_elf=no
24239fi
24240rm -f conftest.err conftest.$ac_objext \
24241 conftest$ac_exeext conftest.$ac_ext
24242fi
24243echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
24244echo "${ECHO_T}$gdb_cv_var_elf" >&6
24245if test $gdb_cv_var_elf = yes; then
24246 CONFIG_OBS="$CONFIG_OBS elfread.o"
24247
24248cat >>confdefs.h <<\_ACEOF
24249#define HAVE_ELF 1
24250_ACEOF
24251
24252fi
24253CFLAGS=$OLD_CFLAGS
24254LDFLAGS=$OLD_LDFLAGS
24255LIBS=$OLD_LIBS
24256
121ce6e5
DJ
24257# Add any host-specific objects to GDB.
24258CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
24259
3fc11d3e
JM
24260LIBGUI="../libgui/src/libgui.a"
24261GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
24262
24263
7a292a7a 24264
3fc11d3e
JM
24265WIN32LDAPP=
24266
24267
24268
d91670b9 24269case "${host}" in
686a5eed 24270*-*-cygwin* | *-*-mingw* )
d91670b9
CV
24271 configdir="win"
24272 ;;
24273*)
24274 configdir="unix"
24275 ;;
24276esac
3fc11d3e
JM
24277
24278GDBTKLIBS=
24279if test "${enable_gdbtk}" = "yes"; then
24280
d1c3b63a
KS
24281 # Gdbtk must have an absolute path to srcdir in order to run
24282 # properly when not installed.
24283 here=`pwd`
24284 cd ${srcdir}
24285 GDBTK_SRC_DIR=`pwd`
24286 cd $here
24287
bec39cab 24288
3fc11d3e
JM
24289#
24290# Ok, lets find the tcl configuration
bec39cab 24291# First, look for one uninstalled.
3fc11d3e
JM
24292# the alternative search directory is invoked by --with-tclconfig
24293#
24294
24295if test x"${no_tcl}" = x ; then
24296 # we reset no_tcl in case something fails here
24297 no_tcl=true
bec39cab 24298
b4e70030 24299# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e 24300if test "${with_tclconfig+set}" = set; then
b4e70030
JB
24301 withval="$with_tclconfig"
24302 with_tclconfig=${withval}
24303fi;
24304 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
24305echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
bec39cab
AC
24306 if test "${ac_cv_c_tclconfig+set}" = set; then
24307 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 24308else
bec39cab 24309
3fc11d3e
JM
24310
24311 # First check to see if --with-tclconfig was specified.
24312 if test x"${with_tclconfig}" != x ; then
24313 if test -f "${with_tclconfig}/tclConfig.sh" ; then
24314 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
24315 else
bec39cab
AC
24316 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
24317echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
24318 { (exit 1); exit 1; }; }
3fc11d3e
JM
24319 fi
24320 fi
24321
24322 # then check for a private Tcl installation
24323 if test x"${ac_cv_c_tclconfig}" = x ; then
24324 for i in \
24325 ../tcl \
24326 `ls -dr ../tcl[7-9]* 2>/dev/null` \
24327 ../../tcl \
24328 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
24329 ../../../tcl \
24330 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
24331 if test -f "$i/${configdir}/tclConfig.sh" ; then
24332 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
24333 break
24334 fi
24335 done
24336 fi
24337 # check in a few common install locations
24338 if test x"${ac_cv_c_tclconfig}" = x ; then
24339 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24340 if test -f "$i/tclConfig.sh" ; then
24341 ac_cv_c_tclconfig=`(cd $i; pwd)`
24342 break
24343 fi
24344 done
24345 fi
24346 # check in a few other private locations
24347 if test x"${ac_cv_c_tclconfig}" = x ; then
24348 for i in \
24349 ${srcdir}/../tcl \
24350 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
24351 if test -f "$i/${configdir}/tclConfig.sh" ; then
24352 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
24353 break
24354 fi
24355 done
24356 fi
bec39cab 24357
3fc11d3e
JM
24358fi
24359
24360 if test x"${ac_cv_c_tclconfig}" = x ; then
24361 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
24362 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
24363echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
24364 else
24365 no_tcl=
24366 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
b4e70030
JB
24367 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
24368echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
24369 fi
24370fi
24371
24372 if test -z "${no_tcl}"; then
bec39cab 24373
3fc11d3e
JM
24374 . $TCLCONFIG
24375
3fc11d3e
JM
24376
24377
24378
24379
3fc11d3e
JM
24380
24381
24382
bec39cab
AC
24383
24384
24385
24386
24387
24388
24389
24390
24391
24392
24393
24394
24395
24396
24397
24398
24399
24400
24401
3fc11d3e
JM
24402#
24403# Ok, lets find the tk configuration
bec39cab 24404# First, look for one uninstalled.
3fc11d3e
JM
24405# the alternative search directory is invoked by --with-tkconfig
24406#
24407
24408if test x"${no_tk}" = x ; then
24409 # we reset no_tk in case something fails here
24410 no_tk=true
bec39cab 24411
b4e70030 24412# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e 24413if test "${with_tkconfig+set}" = set; then
b4e70030
JB
24414 withval="$with_tkconfig"
24415 with_tkconfig=${withval}
24416fi;
24417 echo "$as_me:$LINENO: checking for Tk configuration" >&5
24418echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
bec39cab
AC
24419 if test "${ac_cv_c_tkconfig+set}" = set; then
24420 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 24421else
bec39cab 24422
3fc11d3e
JM
24423
24424 # First check to see if --with-tkconfig was specified.
24425 if test x"${with_tkconfig}" != x ; then
24426 if test -f "${with_tkconfig}/tkConfig.sh" ; then
24427 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
24428 else
bec39cab
AC
24429 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
24430echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
24431 { (exit 1); exit 1; }; }
3fc11d3e
JM
24432 fi
24433 fi
24434
24435 # then check for a private Tk library
24436 if test x"${ac_cv_c_tkconfig}" = x ; then
24437 for i in \
24438 ../tk \
24439 `ls -dr ../tk[4-9]* 2>/dev/null` \
24440 ../../tk \
24441 `ls -dr ../../tk[4-9]* 2>/dev/null` \
24442 ../../../tk \
24443 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
24444 if test -f "$i/${configdir}/tkConfig.sh" ; then
24445 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
24446 break
24447 fi
24448 done
24449 fi
24450 # check in a few common install locations
24451 if test x"${ac_cv_c_tkconfig}" = x ; then
24452 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24453 if test -f "$i/tkConfig.sh" ; then
24454 ac_cv_c_tkconfig=`(cd $i; pwd)`
24455 break
24456 fi
24457 done
24458 fi
24459 # check in a few other private locations
24460 if test x"${ac_cv_c_tkconfig}" = x ; then
24461 for i in \
24462 ${srcdir}/../tk \
24463 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
24464 if test -f "$i/${configdir}/tkConfig.sh" ; then
24465 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
24466 break
24467 fi
24468 done
24469 fi
bec39cab 24470
3fc11d3e
JM
24471fi
24472
24473 if test x"${ac_cv_c_tkconfig}" = x ; then
24474 TKCONFIG="# no Tk configs found"
bec39cab
AC
24475 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
24476echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
24477 else
24478 no_tk=
24479 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
b4e70030
JB
24480 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
24481echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
24482 fi
24483fi
24484
24485
24486
dd2504ab
JM
24487 # now look for Tcl library stuff
24488
d91670b9 24489 tcldir="../tcl/${configdir}/"
dd2504ab
JM
24490
24491 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
24492
3fc11d3e
JM
24493 # If $no_tk is nonempty, then we can't do Tk, and there is no
24494 # point to doing Tcl.
24495 if test -z "${no_tk}"; then
bec39cab 24496
3fc11d3e
JM
24497 if test -f "$TKCONFIG" ; then
24498 . $TKCONFIG
24499 fi
24500
3fc11d3e 24501
3fc11d3e
JM
24502
24503
3fc11d3e 24504
bec39cab
AC
24505
24506
24507
24508
24509
24510
24511
24512
24513
3fc11d3e
JM
24514#
24515# Ok, lets find the tcl source trees so we can use the headers
24516# Warning: transition of version 9 to 10 will break this algorithm
24517# because 10 sorts before 9. We also look for just tcl. We have to
24518# be careful that we don't match stuff like tclX by accident.
24519# the alternative search directory is involked by --with-tclinclude
24520#
24521
24522no_tcl=true
b4e70030
JB
24523echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
24524echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
bec39cab 24525
b4e70030 24526# Check whether --with-tclinclude or --without-tclinclude was given.
3fc11d3e 24527if test "${with_tclinclude+set}" = set; then
b4e70030
JB
24528 withval="$with_tclinclude"
24529 with_tclinclude=${withval}
24530fi;
bec39cab
AC
24531if test "${ac_cv_c_tclh+set}" = set; then
24532 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 24533else
bec39cab 24534
3fc11d3e
JM
24535# first check to see if --with-tclinclude was specified
24536if test x"${with_tclinclude}" != x ; then
24537 if test -f ${with_tclinclude}/tclInt.h ; then
24538 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
24539 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
24540 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
24541 else
bec39cab
AC
24542 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
24543echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
24544 { (exit 1); exit 1; }; }
3fc11d3e
JM
24545 fi
24546fi
24547
24548# next check if it came with Tcl configuration file
24549if test x"${ac_cv_c_tclconfig}" = x ; then
24550 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
24551 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
24552 fi
24553fi
24554
24555# next check in private source directory
24556#
24557# since ls returns lowest version numbers first, reverse its output
24558if test x"${ac_cv_c_tclh}" = x ; then
24559 for i in \
24560 ${srcdir}/../tcl \
24561 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
24562 ${srcdir}/../../tcl \
24563 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
24564 ${srcdir}/../../../tcl \
24565 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
24566 if test -f $i/generic/tclInt.h ; then
24567 ac_cv_c_tclh=`(cd $i/generic; pwd)`
24568 break
24569 fi
24570 done
24571fi
24572# finally check in a few common install locations
24573#
24574# since ls returns lowest version numbers first, reverse its output
24575if test x"${ac_cv_c_tclh}" = x ; then
24576 for i in \
24577 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
24578 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
24579 /usr/local/src/tcl \
24580 /usr/local/lib/tcl \
24581 ${prefix}/include ; do
24582 if test -f $i/generic/tclInt.h ; then
24583 ac_cv_c_tclh=`(cd $i/generic; pwd)`
24584 break
24585 fi
24586 done
24587fi
24588# see if one is installed
24589if test x"${ac_cv_c_tclh}" = x ; then
bec39cab 24590 if test "${ac_cv_header_tclInt_h+set}" = set; then
b4e70030
JB
24591 echo "$as_me:$LINENO: checking for tclInt.h" >&5
24592echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
24593if test "${ac_cv_header_tclInt_h+set}" = set; then
24594 echo $ECHO_N "(cached) $ECHO_C" >&6
24595fi
b4e70030
JB
24596echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
24597echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
24598else
24599 # Is the header compilable?
b4e70030
JB
24600echo "$as_me:$LINENO: checking tclInt.h usability" >&5
24601echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
bec39cab
AC
24602cat >conftest.$ac_ext <<_ACEOF
24603/* confdefs.h. */
24604_ACEOF
24605cat confdefs.h >>conftest.$ac_ext
24606cat >>conftest.$ac_ext <<_ACEOF
24607/* end confdefs.h. */
24608$ac_includes_default
24609#include <tclInt.h>
24610_ACEOF
24611rm -f conftest.$ac_objext
24612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24613 (eval $ac_compile) 2>conftest.er1
24614 ac_status=$?
24615 grep -v '^ *+' conftest.er1 >conftest.err
24616 rm -f conftest.er1
24617 cat conftest.err >&5
24618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619 (exit $ac_status); } &&
b4e70030
JB
24620 { ac_try='test -z "$ac_c_werror_flag"
24621 || test ! -s conftest.err'
bec39cab
AC
24622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24623 (eval $ac_try) 2>&5
24624 ac_status=$?
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); }; } &&
24627 { ac_try='test -s conftest.$ac_objext'
24628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24629 (eval $ac_try) 2>&5
24630 ac_status=$?
24631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632 (exit $ac_status); }; }; then
24633 ac_header_compiler=yes
24634else
24635 echo "$as_me: failed program was:" >&5
24636sed 's/^/| /' conftest.$ac_ext >&5
24637
b4e70030 24638ac_header_compiler=no
bec39cab
AC
24639fi
24640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
24641echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24642echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
24643
24644# Is the header present?
b4e70030
JB
24645echo "$as_me:$LINENO: checking tclInt.h presence" >&5
24646echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
bec39cab
AC
24647cat >conftest.$ac_ext <<_ACEOF
24648/* confdefs.h. */
24649_ACEOF
24650cat confdefs.h >>conftest.$ac_ext
24651cat >>conftest.$ac_ext <<_ACEOF
24652/* end confdefs.h. */
3fc11d3e 24653#include <tclInt.h>
bec39cab
AC
24654_ACEOF
24655if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24657 ac_status=$?
24658 grep -v '^ *+' conftest.er1 >conftest.err
24659 rm -f conftest.er1
24660 cat conftest.err >&5
24661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662 (exit $ac_status); } >/dev/null; then
24663 if test -s conftest.err; then
24664 ac_cpp_err=$ac_c_preproc_warn_flag
24665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24666 else
24667 ac_cpp_err=
24668 fi
24669else
24670 ac_cpp_err=yes
3fc11d3e 24671fi
bec39cab
AC
24672if test -z "$ac_cpp_err"; then
24673 ac_header_preproc=yes
24674else
24675 echo "$as_me: failed program was:" >&5
24676sed 's/^/| /' conftest.$ac_ext >&5
24677
24678 ac_header_preproc=no
3fc11d3e 24679fi
bec39cab 24680rm -f conftest.err conftest.$ac_ext
b4e70030
JB
24681echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24682echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
24683
24684# So? What about this header?
24685case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24686 yes:no: )
24687 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
24688echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24689 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
24690echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
24691 ac_header_preproc=yes
24692 ;;
24693 no:yes:* )
24694 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
24695echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
24696 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
24697echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
24698 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
24699echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
24700 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
24701echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
24702 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
24703echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
24704 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
24705echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
24706 (
24707 cat <<\_ASBOX
24708## ------------------------------------------ ##
24709## Report this to the AC_PACKAGE_NAME lists. ##
24710## ------------------------------------------ ##
24711_ASBOX
24712 ) |
24713 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
24714 ;;
24715esac
b4e70030
JB
24716echo "$as_me:$LINENO: checking for tclInt.h" >&5
24717echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
24718if test "${ac_cv_header_tclInt_h+set}" = set; then
24719 echo $ECHO_N "(cached) $ECHO_C" >&6
24720else
24721 ac_cv_header_tclInt_h=$ac_header_preproc
24722fi
b4e70030
JB
24723echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
24724echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
24725
24726fi
24727if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
24728 ac_cv_c_tclh=installed
24729else
bec39cab 24730 ac_cv_c_tclh=""
3fc11d3e
JM
24731fi
24732
bec39cab 24733
3fc11d3e
JM
24734fi
24735
24736fi
24737
24738if test x"${ac_cv_c_tclh}" = x ; then
24739 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
24740 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
24741echo "$as_me: error: Can't find Tcl private headers" >&2;}
24742 { (exit 1); exit 1; }; }
3fc11d3e
JM
24743fi
24744if test x"${ac_cv_c_tclh}" != x ; then
24745 no_tcl=""
24746 if test x"${ac_cv_c_tclh}" = x"installed" ; then
b4e70030
JB
24747 echo "$as_me:$LINENO: result: is installed" >&5
24748echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
24749 TCLHDIR=""
24750 else
b4e70030
JB
24751 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
24752echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
24753 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
24754 TCLHDIR="-I${ac_cv_c_tclh}"
24755 fi
24756fi
24757
24758
24759
bec39cab 24760
3fc11d3e
JM
24761#
24762# Ok, lets find the tk source trees so we can use the headers
24763# If the directory (presumably symlink) named "tk" exists, use that one
24764# in preference to any others. Same logic is used when choosing library
24765# and again with Tcl. The search order is the best place to look first, then in
24766# decreasing significance. The loop breaks if the trigger file is found.
24767# Note the gross little conversion here of srcdir by cd'ing to the found
24768# directory. This converts the path from a relative to an absolute, so
24769# recursive cache variables for the path will work right. We check all
24770# the possible paths in one loop rather than many seperate loops to speed
24771# things up.
24772# the alternative search directory is involked by --with-tkinclude
24773#
24774no_tk=true
b4e70030
JB
24775echo "$as_me:$LINENO: checking for Tk private headers" >&5
24776echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
bec39cab 24777
b4e70030 24778# Check whether --with-tkinclude or --without-tkinclude was given.
3fc11d3e 24779if test "${with_tkinclude+set}" = set; then
b4e70030
JB
24780 withval="$with_tkinclude"
24781 with_tkinclude=${withval}
24782fi;
bec39cab
AC
24783if test "${ac_cv_c_tkh+set}" = set; then
24784 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 24785else
bec39cab 24786
3fc11d3e
JM
24787# first check to see if --with-tkinclude was specified
24788if test x"${with_tkinclude}" != x ; then
24789 if test -f ${with_tkinclude}/tk.h ; then
24790 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
24791 elif test -f ${with_tkinclude}/generic/tk.h ; then
24792 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
24793 else
bec39cab
AC
24794 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
24795echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
24796 { (exit 1); exit 1; }; }
3fc11d3e
JM
24797 fi
24798fi
24799
24800# next check if it came with Tk configuration file
24801if test x"${ac_cv_c_tkconfig}" = x ; then
24802 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
24803 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
24804 fi
24805fi
24806
24807# next check in private source directory
24808#
24809# since ls returns lowest version numbers first, reverse its output
24810if test x"${ac_cv_c_tkh}" = x ; then
24811 for i in \
24812 ${srcdir}/../tk \
24813 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
24814 ${srcdir}/../../tk \
24815 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
24816 ${srcdir}/../../../tk \
24817 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
24818 if test -f $i/generic/tk.h ; then
24819 ac_cv_c_tkh=`(cd $i/generic; pwd)`
24820 break
24821 fi
24822 done
24823fi
24824# finally check in a few common install locations
24825#
24826# since ls returns lowest version numbers first, reverse its output
24827if test x"${ac_cv_c_tkh}" = x ; then
24828 for i in \
24829 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
24830 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
24831 /usr/local/src/tk \
24832 /usr/local/lib/tk \
24833 ${prefix}/include ; do
24834 if test -f $i/generic/tk.h ; then
24835 ac_cv_c_tkh=`(cd $i/generic; pwd)`
24836 break
24837 fi
24838 done
24839fi
24840# see if one is installed
24841if test x"${ac_cv_c_tkh}" = x ; then
bec39cab 24842 if test "${ac_cv_header_tk_h+set}" = set; then
b4e70030
JB
24843 echo "$as_me:$LINENO: checking for tk.h" >&5
24844echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
24845if test "${ac_cv_header_tk_h+set}" = set; then
24846 echo $ECHO_N "(cached) $ECHO_C" >&6
24847fi
b4e70030
JB
24848echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
24849echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab
AC
24850else
24851 # Is the header compilable?
b4e70030
JB
24852echo "$as_me:$LINENO: checking tk.h usability" >&5
24853echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
bec39cab
AC
24854cat >conftest.$ac_ext <<_ACEOF
24855/* confdefs.h. */
24856_ACEOF
24857cat confdefs.h >>conftest.$ac_ext
24858cat >>conftest.$ac_ext <<_ACEOF
24859/* end confdefs.h. */
24860$ac_includes_default
3fc11d3e 24861#include <tk.h>
bec39cab
AC
24862_ACEOF
24863rm -f conftest.$ac_objext
24864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24865 (eval $ac_compile) 2>conftest.er1
24866 ac_status=$?
24867 grep -v '^ *+' conftest.er1 >conftest.err
24868 rm -f conftest.er1
24869 cat conftest.err >&5
24870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871 (exit $ac_status); } &&
b4e70030
JB
24872 { ac_try='test -z "$ac_c_werror_flag"
24873 || test ! -s conftest.err'
bec39cab
AC
24874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24875 (eval $ac_try) 2>&5
24876 ac_status=$?
24877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878 (exit $ac_status); }; } &&
24879 { ac_try='test -s conftest.$ac_objext'
24880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24881 (eval $ac_try) 2>&5
24882 ac_status=$?
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); }; }; then
24885 ac_header_compiler=yes
24886else
24887 echo "$as_me: failed program was:" >&5
24888sed 's/^/| /' conftest.$ac_ext >&5
24889
b4e70030 24890ac_header_compiler=no
bec39cab
AC
24891fi
24892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
24893echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24894echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
24895
24896# Is the header present?
b4e70030
JB
24897echo "$as_me:$LINENO: checking tk.h presence" >&5
24898echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
bec39cab
AC
24899cat >conftest.$ac_ext <<_ACEOF
24900/* confdefs.h. */
24901_ACEOF
24902cat confdefs.h >>conftest.$ac_ext
24903cat >>conftest.$ac_ext <<_ACEOF
24904/* end confdefs.h. */
24905#include <tk.h>
24906_ACEOF
24907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24909 ac_status=$?
24910 grep -v '^ *+' conftest.er1 >conftest.err
24911 rm -f conftest.er1
24912 cat conftest.err >&5
24913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914 (exit $ac_status); } >/dev/null; then
24915 if test -s conftest.err; then
24916 ac_cpp_err=$ac_c_preproc_warn_flag
24917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24918 else
24919 ac_cpp_err=
24920 fi
24921else
24922 ac_cpp_err=yes
3fc11d3e 24923fi
bec39cab
AC
24924if test -z "$ac_cpp_err"; then
24925 ac_header_preproc=yes
24926else
24927 echo "$as_me: failed program was:" >&5
24928sed 's/^/| /' conftest.$ac_ext >&5
24929
24930 ac_header_preproc=no
24931fi
24932rm -f conftest.err conftest.$ac_ext
b4e70030
JB
24933echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24934echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
24935
24936# So? What about this header?
24937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24938 yes:no: )
24939 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
24940echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24941 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
24942echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
24943 ac_header_preproc=yes
24944 ;;
24945 no:yes:* )
24946 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
24947echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
24948 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
24949echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
24950 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
24951echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
24952 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
24953echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
24954 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
24955echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
24956 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
24957echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
24958 (
24959 cat <<\_ASBOX
24960## ------------------------------------------ ##
24961## Report this to the AC_PACKAGE_NAME lists. ##
24962## ------------------------------------------ ##
24963_ASBOX
24964 ) |
24965 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
24966 ;;
24967esac
b4e70030
JB
24968echo "$as_me:$LINENO: checking for tk.h" >&5
24969echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
24970if test "${ac_cv_header_tk_h+set}" = set; then
24971 echo $ECHO_N "(cached) $ECHO_C" >&6
24972else
24973 ac_cv_header_tk_h=$ac_header_preproc
24974fi
b4e70030
JB
24975echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
24976echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab 24977
3fc11d3e 24978fi
bec39cab 24979if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
24980 ac_cv_c_tkh=installed
24981else
bec39cab 24982 ac_cv_c_tkh=""
3fc11d3e
JM
24983fi
24984
bec39cab 24985
3fc11d3e
JM
24986fi
24987
24988fi
24989
24990if test x"${ac_cv_c_tkh}" != x ; then
24991 no_tk=""
24992 if test x"${ac_cv_c_tkh}" = x"installed" ; then
b4e70030
JB
24993 echo "$as_me:$LINENO: result: is installed" >&5
24994echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
24995 TKHDIR=""
24996 else
b4e70030
JB
24997 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
24998echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
24999 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
25000 TKHDIR="-I${ac_cv_c_tkh}"
25001 fi
25002else
25003 TKHDIR="# no Tk directory found"
bec39cab
AC
25004 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
25005echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
25006 no_tk=true
25007fi
25008
25009
25010
bec39cab 25011
b4e70030
JB
25012echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
25013echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
25014if test x"${ac_cv_c_itclh}" = x ; then
25015 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
25016 if test -f $i/generic/itcl.h ; then
25017 ac_cv_c_itclh=`(cd $i/generic; pwd)`
25018 break
25019 fi
25020 done
25021fi
25022if test x"${ac_cv_c_itclh}" = x ; then
25023 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
25024 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
25025echo "$as_me: error: Can't find Itcl private headers" >&2;}
25026 { (exit 1); exit 1; }; }
3fc11d3e
JM
25027fi
25028if test x"${ac_cv_c_itclh}" != x ; then
25029 ITCLHDIR="-I${ac_cv_c_itclh}"
25030fi
25031# should always be here
25032# ITCLLIB="../itcl/itcl/unix/libitcl.a"
25033
25034#AC_SUBST(ITCLLIB)
25035
bec39cab 25036
b4e70030
JB
25037echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
25038echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
25039if test x"${ac_cv_c_itkh}" = x ; then
25040 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
25041 if test -f $i/generic/itk.h ; then
25042 ac_cv_c_itkh=`(cd $i/generic; pwd)`
25043 break
25044 fi
25045 done
25046fi
25047if test x"${ac_cv_c_itkh}" = x ; then
25048 ITKHDIR="# no Itk private headers found"
bec39cab
AC
25049 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
25050echo "$as_me: error: Can't find Itk private headers" >&2;}
25051 { (exit 1); exit 1; }; }
3fc11d3e
JM
25052fi
25053if test x"${ac_cv_c_itkh}" != x ; then
25054 ITKHDIR="-I${ac_cv_c_itkh}"
25055fi
25056# should always be here
25057# ITKLIB="../itcl/itk/unix/libitk.a"
25058
25059#AC_SUBST(ITKLIB)
25060
3fc11d3e 25061
dd2504ab
JM
25062
25063 # now look for Tk library stuff
25064
d91670b9 25065 tkdir="../tk/${configdir}/"
dd2504ab
JM
25066
25067 TK_DEPS="${tkdir}${TK_LIB_FILE}"
25068
3fc11d3e
JM
25069 # now look for Itcl library stuff
25070
bec39cab 25071
3fc11d3e
JM
25072#
25073# Ok, lets find the itcl configuration
bec39cab 25074# First, look for one uninstalled.
3fc11d3e
JM
25075# the alternative search directory is invoked by --with-itclconfig
25076#
25077
25078if test x"${no_itcl}" = x ; then
25079 # we reset no_itcl in case something fails here
25080 no_itcl=true
bec39cab 25081
b4e70030 25082# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e 25083if test "${with_itclconfig+set}" = set; then
b4e70030
JB
25084 withval="$with_itclconfig"
25085 with_itclconfig=${withval}
25086fi;
25087 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
25088echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
bec39cab
AC
25089 if test "${ac_cv_c_itclconfig+set}" = set; then
25090 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 25091else
bec39cab 25092
3fc11d3e
JM
25093
25094 # First check to see if --with-itclconfig was specified.
25095 if test x"${with_itclconfig}" != x ; then
25096 if test -f "${with_itclconfig}/itclConfig.sh" ; then
25097 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
25098 else
bec39cab
AC
25099 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
25100echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
25101 { (exit 1); exit 1; }; }
3fc11d3e
JM
25102 fi
25103 fi
25104
25105 # then check for a private Itcl library
25106 if test x"${ac_cv_c_itclconfig}" = x ; then
25107 for i in \
25108 ../itcl/itcl \
25109 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
25110 ../../itcl \
25111 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
25112 ../../../itcl \
25113 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
25114 if test -f "$i/itclConfig.sh" ; then
25115 ac_cv_c_itclconfig=`(cd $i; pwd)`
25116 break
25117 fi
25118 done
25119 fi
25120 # check in a few common install locations
25121 if test x"${ac_cv_c_itclconfig}" = x ; then
25122 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
25123 if test -f "$i/itclConfig.sh" ; then
25124 ac_cv_c_itclconfig=`(cd $i; pwd)`
25125 break
25126 fi
25127 done
25128 fi
25129 # check in a few other private locations
25130 if test x"${ac_cv_c_itclconfig}" = x ; then
25131 for i in \
25132 ${srcdir}/../itcl/itcl \
25133 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
25134 if test -f "$i/itclConfig.sh" ; then
25135 ac_cv_c_itclconfig=`(cd $i; pwd)`
25136 break
25137 fi
25138 done
25139 fi
bec39cab 25140
3fc11d3e
JM
25141fi
25142
25143 if test x"${ac_cv_c_itclconfig}" = x ; then
25144 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
25145 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
25146echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
25147 else
25148 no_itcl=
25149 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
b4e70030
JB
25150 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
25151echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
25152 fi
25153fi
25154
25155 if test -z "${no_itcl}"; then
bec39cab 25156
3fc11d3e
JM
25157 if test -f "$ITCLCONFIG" ; then
25158 . $ITCLCONFIG
25159 fi
25160
3fc11d3e 25161
3fc11d3e
JM
25162
25163
bec39cab
AC
25164
25165
25166
25167
25168
25169
25170
3fc11d3e
JM
25171
25172 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 25173 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
25174 fi
25175
bec39cab 25176
3fc11d3e 25177 # now look for Itk library stuff
bec39cab 25178
3fc11d3e
JM
25179#
25180# Ok, lets find the itk configuration
bec39cab 25181# First, look for one uninstalled.
3fc11d3e
JM
25182# the alternative search directory is invoked by --with-itkconfig
25183#
25184
25185if test x"${no_itk}" = x ; then
25186 # we reset no_itk in case something fails here
25187 no_itk=true
bec39cab 25188
b4e70030 25189# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e 25190if test "${with_itkconfig+set}" = set; then
b4e70030
JB
25191 withval="$with_itkconfig"
25192 with_itkconfig=${withval}
25193fi;
25194 echo "$as_me:$LINENO: checking for Itk configuration" >&5
25195echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
bec39cab
AC
25196 if test "${ac_cv_c_itkconfig+set}" = set; then
25197 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 25198else
bec39cab 25199
3fc11d3e
JM
25200
25201 # First check to see if --with-itkconfig was specified.
25202 if test x"${with_itkconfig}" != x ; then
25203 if test -f "${with_itkconfig}/itkConfig.sh" ; then
25204 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
25205 else
bec39cab
AC
25206 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
25207echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
25208 { (exit 1); exit 1; }; }
3fc11d3e
JM
25209 fi
25210 fi
25211
25212 # then check for a private Itk library
25213 if test x"${ac_cv_c_itkconfig}" = x ; then
25214 for i in \
25215 ../itcl/itk \
25216 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
25217 ../../itk \
25218 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
25219 ../../../itk \
25220 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
25221 if test -f "$i/itkConfig.sh" ; then
25222 ac_cv_c_itkconfig=`(cd $i; pwd)`
25223 break
25224 fi
25225 done
25226 fi
25227 # check in a few common install locations
25228 if test x"${ac_cv_c_itkconfig}" = x ; then
25229 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
25230 if test -f "$i/itkConfig.sh" ; then
25231 ac_cv_c_itkconfig=`(cd $i; pwd)`
25232 break
25233 fi
25234 done
25235 fi
25236 # check in a few other private locations
25237 if test x"${ac_cv_c_itkconfig}" = x ; then
25238 for i in \
25239 ${srcdir}/../itcl/itk \
25240 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
25241 if test -f "$i/itkConfig.sh" ; then
25242 ac_cv_c_itkconfig=`(cd $i; pwd)`
25243 break
25244 fi
25245 done
25246 fi
bec39cab 25247
3fc11d3e
JM
25248fi
25249
25250 if test x"${ac_cv_c_itkconfig}" = x ; then
25251 ITKCONFIG="# no Itk configs found"
bec39cab
AC
25252 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
25253echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
25254 else
25255 no_itk=
25256 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
b4e70030
JB
25257 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
25258echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
25259 fi
25260fi
25261
25262
bec39cab
AC
25263 if test -z "${no_itcl}"; then
25264
25265 if test -f "$ITKCONFIG" ; then
25266 . $ITKCONFIG
25267 fi
25268
25269
25270
25271
25272
25273
3fc11d3e 25274
3fc11d3e 25275
3fc11d3e
JM
25276
25277
3fc11d3e
JM
25278
25279
3fc11d3e 25280 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 25281 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
25282 fi
25283
4226a5a5 25284 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
25285
25286 # Include some libraries that Tcl and Tk want.
b2a1bd4f 25287 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
25288 # Yes, the ordering seems wrong here. But it isn't.
25289 # TK_LIBS is the list of libraries that need to be linked
25290 # after Tcl/Tk. Note that this isn't put into LIBS. If it
25291 # were in LIBS then any link tests after this point would
25292 # try to include things like `$(LIBGUI)', which wouldn't work.
25293 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
25294
25295 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
25296 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
25297 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
25298 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
25299 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
25300 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
25301 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
25302
25303 if test x$gdb_cv_os_cygwin = xyes; then
25304 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
25305 WIN32LDAPP="-Wl,--subsystem,console"
25306 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
25307 fi
25308 fi
25309 fi
ffc6a242 25310
b4e70030
JB
25311
25312
25313subdirs="$subdirs gdbtk"
3ace7edb 25314
3fc11d3e
JM
25315fi
25316
25317
25318
25319
25320
25321
25322
25323
25324
25325
25326
25327
25328
dd2504ab 25329
b4e70030
JB
25330echo "$as_me:$LINENO: checking for X" >&5
25331echo $ECHO_N "checking for X... $ECHO_C" >&6
bec39cab 25332
c906108c 25333
b4e70030 25334# Check whether --with-x or --without-x was given.
c906108c 25335if test "${with_x+set}" = set; then
b4e70030 25336 withval="$with_x"
c906108c 25337
b4e70030 25338fi;
c906108c
SS
25339# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25340if test "x$with_x" = xno; then
25341 # The user explicitly disabled X.
25342 have_x=disabled
25343else
25344 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25345 # Both variables are already set.
25346 have_x=yes
25347 else
bec39cab
AC
25348 if test "${ac_cv_have_x+set}" = set; then
25349 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
25350else
25351 # One or both of the vars are not set, and there is no cached value.
bec39cab 25352ac_x_includes=no ac_x_libraries=no
b4e70030 25353rm -fr conftest.dir
bec39cab
AC
25354if mkdir conftest.dir; then
25355 cd conftest.dir
c906108c 25356 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 25357 cat >Imakefile <<'_ACEOF'
c906108c
SS
25358acfindx:
25359 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 25360_ACEOF
b4e70030 25361 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c
SS
25362 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25363 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25364 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25365 for ac_extension in a so sl; do
25366 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
25367 test -f $ac_im_libdir/libX11.$ac_extension; then
25368 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
25369 fi
25370 done
25371 # Screen out bogus values from the imake configuration. They are
25372 # bogus both because they are the default anyway, and because
25373 # using them would break gcc on systems where it needs fixed includes.
bec39cab 25374 case $ac_im_incroot in
b4e70030 25375 /usr/include) ;;
bec39cab 25376 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 25377 esac
bec39cab 25378 case $ac_im_usrlibdir in
c906108c 25379 /usr/lib | /lib) ;;
bec39cab 25380 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
25381 esac
25382 fi
25383 cd ..
b4e70030 25384 rm -fr conftest.dir
c906108c
SS
25385fi
25386
bec39cab
AC
25387# Standard set of common directories for X headers.
25388# Check X11 before X11Rn because it is often a symlink to the current release.
25389ac_x_header_dirs='
25390/usr/X11/include
25391/usr/X11R6/include
25392/usr/X11R5/include
25393/usr/X11R4/include
25394
25395/usr/include/X11
25396/usr/include/X11R6
25397/usr/include/X11R5
25398/usr/include/X11R4
25399
25400/usr/local/X11/include
25401/usr/local/X11R6/include
25402/usr/local/X11R5/include
25403/usr/local/X11R4/include
25404
25405/usr/local/include/X11
25406/usr/local/include/X11R6
25407/usr/local/include/X11R5
25408/usr/local/include/X11R4
25409
25410/usr/X386/include
25411/usr/x386/include
25412/usr/XFree86/include/X11
25413
25414/usr/include
25415/usr/local/include
25416/usr/unsupported/include
25417/usr/athena/include
25418/usr/local/x11r5/include
25419/usr/lpp/Xamples/include
25420
25421/usr/openwin/include
25422/usr/openwin/share/include'
25423
25424if test "$ac_x_includes" = no; then
59f80f10 25425 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 25426 # First, try using that file with no special directory specified.
bec39cab
AC
25427 cat >conftest.$ac_ext <<_ACEOF
25428/* confdefs.h. */
25429_ACEOF
25430cat confdefs.h >>conftest.$ac_ext
25431cat >>conftest.$ac_ext <<_ACEOF
25432/* end confdefs.h. */
59f80f10 25433#include <X11/Intrinsic.h>
bec39cab
AC
25434_ACEOF
25435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25437 ac_status=$?
25438 grep -v '^ *+' conftest.er1 >conftest.err
25439 rm -f conftest.er1
25440 cat conftest.err >&5
25441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442 (exit $ac_status); } >/dev/null; then
25443 if test -s conftest.err; then
25444 ac_cpp_err=$ac_c_preproc_warn_flag
25445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25446 else
25447 ac_cpp_err=
25448 fi
25449else
25450 ac_cpp_err=yes
25451fi
25452if test -z "$ac_cpp_err"; then
c906108c
SS
25453 # We can compile using X headers with no special include directory.
25454ac_x_includes=
25455else
bec39cab
AC
25456 echo "$as_me: failed program was:" >&5
25457sed 's/^/| /' conftest.$ac_ext >&5
25458
25459 for ac_dir in $ac_x_header_dirs; do
59f80f10 25460 if test -r "$ac_dir/X11/Intrinsic.h"; then
bec39cab
AC
25461 ac_x_includes=$ac_dir
25462 break
25463 fi
25464done
c906108c 25465fi
bec39cab
AC
25466rm -f conftest.err conftest.$ac_ext
25467fi # $ac_x_includes = no
c906108c 25468
bec39cab 25469if test "$ac_x_libraries" = no; then
c906108c 25470 # Check for the libraries.
c906108c
SS
25471 # See if we find them without any special options.
25472 # Don't add to $LIBS permanently.
bec39cab 25473 ac_save_LIBS=$LIBS
4e8d927d 25474 LIBS="-lXt $LIBS"
bec39cab
AC
25475 cat >conftest.$ac_ext <<_ACEOF
25476/* confdefs.h. */
25477_ACEOF
25478cat confdefs.h >>conftest.$ac_ext
25479cat >>conftest.$ac_ext <<_ACEOF
25480/* end confdefs.h. */
59f80f10 25481#include <X11/Intrinsic.h>
bec39cab
AC
25482int
25483main ()
25484{
59f80f10 25485XtMalloc (0)
bec39cab
AC
25486 ;
25487 return 0;
25488}
25489_ACEOF
25490rm -f conftest.$ac_objext conftest$ac_exeext
25491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25492 (eval $ac_link) 2>conftest.er1
25493 ac_status=$?
25494 grep -v '^ *+' conftest.er1 >conftest.err
25495 rm -f conftest.er1
25496 cat conftest.err >&5
25497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498 (exit $ac_status); } &&
b4e70030
JB
25499 { ac_try='test -z "$ac_c_werror_flag"
25500 || test ! -s conftest.err'
bec39cab
AC
25501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25502 (eval $ac_try) 2>&5
25503 ac_status=$?
25504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505 (exit $ac_status); }; } &&
25506 { ac_try='test -s conftest$ac_exeext'
25507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25508 (eval $ac_try) 2>&5
25509 ac_status=$?
25510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511 (exit $ac_status); }; }; then
25512 LIBS=$ac_save_LIBS
c906108c
SS
25513# We can link X programs with no special library path.
25514ac_x_libraries=
25515else
bec39cab
AC
25516 echo "$as_me: failed program was:" >&5
25517sed 's/^/| /' conftest.$ac_ext >&5
25518
b4e70030 25519LIBS=$ac_save_LIBS
bec39cab 25520for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 25521do
bec39cab 25522 # Don't even attempt the hair of trying to link an X program!
c906108c 25523 for ac_extension in a so sl; do
b4e70030 25524 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
25525 ac_x_libraries=$ac_dir
25526 break 2
25527 fi
25528 done
25529done
25530fi
bec39cab
AC
25531rm -f conftest.err conftest.$ac_objext \
25532 conftest$ac_exeext conftest.$ac_ext
25533fi # $ac_x_libraries = no
c906108c 25534
bec39cab 25535if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
25536 # Didn't find X anywhere. Cache the known absence of X.
25537 ac_cv_have_x="have_x=no"
25538else
25539 # Record where we found X for the cache.
25540 ac_cv_have_x="have_x=yes \
bec39cab 25541 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
25542fi
25543fi
bec39cab 25544
c906108c
SS
25545 fi
25546 eval "$ac_cv_have_x"
25547fi # $with_x != no
25548
25549if test "$have_x" != yes; then
b4e70030
JB
25550 echo "$as_me:$LINENO: result: $have_x" >&5
25551echo "${ECHO_T}$have_x" >&6
c906108c
SS
25552 no_x=yes
25553else
25554 # If each of the values was on the command line, it overrides each guess.
25555 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25556 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25557 # Update the cache value to reflect the command line values.
25558 ac_cv_have_x="have_x=yes \
25559 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
b4e70030
JB
25560 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
25561echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
25562fi
25563
25564
9cc52bde
MK
25565# Check whether we should enable the TUI, but only do so if we really
25566# can.
3ca64bd3 25567if test x"$enable_tui" != xno; then
9cc52bde
MK
25568 if test -d $srcdir/tui; then
25569 if test "$ac_cv_search_waddstr" != no; then
25570 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
25571 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
25572 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9cc52bde
MK
25573 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
25574 CONFIG_ALL="${CONFIG_ALL} all-tui"
25575 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
25576 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
25577 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
25578 else
3ca64bd3
JK
25579 if test x"$enable_tui" = xyes; then
25580 { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
25581echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
25582 { (exit 1); exit 1; }; }
25583 else
25584 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
bec39cab 25585echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
3ca64bd3 25586 fi
9cc52bde
MK
25587 fi
25588 fi
25589fi
25590
bec39cab 25591# Unlike the sim directory, whether a simulator is linked is controlled by
9b624dbe 25592# presence of a gdb_sim definition in the target configure.tgt entry.
7a292a7a
SS
25593# This code just checks for a few cases where we'd like to ignore those
25594# definitions, even when they're present in the '.mt' file. These cases
25595# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 25596# not part of the source tree.
7a292a7a 25597#
b4e70030 25598# Check whether --enable-sim or --disable-sim was given.
7a292a7a 25599if test "${enable_sim+set}" = set; then
b4e70030
JB
25600 enableval="$enable_sim"
25601 echo "enable_sim = $enable_sim";
7a292a7a
SS
25602 echo "enableval = ${enableval}";
25603 case "${enableval}" in
25604 yes) ignore_sim=false ;;
25605 no) ignore_sim=true ;;
25606 *) ignore_sim=false ;;
25607 esac
25608else
25609 ignore_sim=false
b4e70030 25610fi;
7a292a7a
SS
25611
25612if test ! -d "${srcdir}/../sim"; then
25613 ignore_sim=true
25614fi
25615
9b624dbe
UW
25616SIM=
25617SIM_OBS=
25618if test "${ignore_sim}" = "false"; then
25619 if test x"${gdb_sim}" != x ; then
25620 SIM="${gdb_sim}"
25621 SIM_OBS="remote-sim.o"
60ca704f
SE
25622
25623cat >>confdefs.h <<\_ACEOF
7a292a7a 25624#define WITH_SIM 1
bec39cab 25625_ACEOF
7a292a7a 25626
9b624dbe 25627 fi
7a292a7a
SS
25628fi
25629
25630
25631
c906108c
SS
25632
25633
25634
25635
25636
25637
dfcd3bfb 25638
e56ac5c3
AC
25639
25640
b3a90332
AC
25641
25642
c35f4ffc 25643# List of host floatformats.
bec39cab
AC
25644
25645cat >>confdefs.h <<_ACEOF
c35f4ffc 25646#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 25647_ACEOF
c35f4ffc 25648
bec39cab
AC
25649
25650cat >>confdefs.h <<_ACEOF
c35f4ffc 25651#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
25652_ACEOF
25653
c35f4ffc 25654
bec39cab 25655cat >>confdefs.h <<_ACEOF
c35f4ffc 25656#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 25657_ACEOF
c35f4ffc
AC
25658
25659
c906108c
SS
25660# target_subdir is used by the testsuite to find the target libraries.
25661target_subdir=
25662if test "${host}" != "${target}"; then
25663 target_subdir="${target_alias}/"
25664fi
25665
25666
25667frags=
771b4502 25668if test "${gdb_native}" = "yes"; then
0dad8a66
MK
25669 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
25670 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
25671 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
25672echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
25673 { (exit 1); exit 1; }; }
0dad8a66
MK
25674 fi
25675 frags="$frags $host_makefile_frag"
25676else
25677 host_makefile_frag=/dev/null
c906108c 25678fi
c906108c 25679
c906108c
SS
25680
25681
25682
771b4502 25683if test "${gdb_native}" = "yes"; then
a85f51e7
DJ
25684# We pick this up from the host configuration file (.mh) because we
25685# do not have a native configuration Makefile fragment.
c906108c
SS
25686nativefile=`sed -n '
25687s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
25688' ${host_makefile_frag}`
c906108c
SS
25689fi
25690
25691
b00a8037 25692if test x"${gdb_osabi}" != x ; then
bec39cab
AC
25693
25694cat >>confdefs.h <<_ACEOF
b00a8037 25695#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 25696_ACEOF
b00a8037
DJ
25697
25698fi
25699
8dcde887 25700# Enable multi-ice-gdb-server.
b4e70030 25701# Check whether --enable-multi-ice or --disable-multi-ice was given.
8dcde887 25702if test "${enable_multi_ice+set}" = set; then
b4e70030
JB
25703 enableval="$enable_multi_ice"
25704 case $enableval in
8dcde887
MK
25705 yes | no)
25706 ;;
bec39cab
AC
25707 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
25708echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
25709 { (exit 1); exit 1; }; } ;;
8dcde887 25710 esac
b4e70030 25711fi;
4e8d927d 25712if test "x$enable_multi_ice" = xyes; then
b4e70030
JB
25713
25714
25715subdirs="$subdirs multi-ice"
3ace7edb 25716
a85f51e7
DJ
25717fi
25718
a13e2c95
UW
25719# We only build gdbserver automatically in a native configuration.
25720if test "$gdb_native" = "yes"; then
b4e70030
JB
25721 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
25722echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 25723 if test "x$build_gdbserver" = xyes; then
b4e70030
JB
25724 echo "$as_me:$LINENO: result: yes" >&5
25725echo "${ECHO_T}yes" >&6
25726
25727
25728subdirs="$subdirs gdbserver"
3ace7edb 25729
8dcde887 25730 else
b4e70030
JB
25731 echo "$as_me:$LINENO: result: no" >&5
25732echo "${ECHO_T}no" >&6
8dcde887
MK
25733 fi
25734fi
25735
db985757 25736# If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
2c0fc042 25737# to an empty version.
c906108c
SS
25738
25739files=
25740links=
5a2402b8 25741
c906108c 25742rm -f nm.h
5a2402b8 25743nm_h=""
c906108c 25744if test "${nativefile}" != ""; then
5a2402b8 25745 nm_h=nm.h
0f475e27
AC
25746 case "${nativefile}" in
25747 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
25748 * ) GDB_NM_FILE="${nativefile}"
25749 esac
5a2402b8
AC
25750 files="${files} ${GDB_NM_FILE}"
25751 links="${links} nm.h"
60ca704f
SE
25752
25753cat >>confdefs.h <<_ACEOF
b78960be 25754#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 25755_ACEOF
5a2402b8 25756
c906108c 25757fi
5a2402b8
AC
25758
25759
bec39cab
AC
25760ac_sources="$files"
25761ac_dests="$links"
25762while test -n "$ac_sources"; do
25763 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
25764 set $ac_sources; ac_source=$1; shift; ac_sources=$*
25765 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
25766done
b4e70030 25767 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
25768
25769
c906108c
SS
25770
25771
c906108c 25772
c906108c 25773
bec39cab
AC
25774cat >>confdefs.h <<\_ACEOF
25775#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
25776_ACEOF
c906108c 25777
234b45d4 25778
234b45d4
KB
25779
25780
25781
b4e70030 25782# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4 25783if test "${with_libiconv_prefix+set}" = set; then
b4e70030
JB
25784 withval="$with_libiconv_prefix"
25785
234b45d4
KB
25786 for dir in `echo "$withval" | tr : ' '`; do
25787 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
25788 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
25789 done
234b45d4 25790
b4e70030 25791fi;
234b45d4 25792
b4e70030
JB
25793 echo "$as_me:$LINENO: checking for iconv" >&5
25794echo $ECHO_N "checking for iconv... $ECHO_C" >&6
bec39cab
AC
25795if test "${am_cv_func_iconv+set}" = set; then
25796 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 25797else
bec39cab 25798
234b45d4
KB
25799 am_cv_func_iconv="no, consider installing GNU libiconv"
25800 am_cv_lib_iconv=no
bec39cab
AC
25801 cat >conftest.$ac_ext <<_ACEOF
25802/* confdefs.h. */
25803_ACEOF
25804cat confdefs.h >>conftest.$ac_ext
25805cat >>conftest.$ac_ext <<_ACEOF
25806/* end confdefs.h. */
234b45d4
KB
25807#include <stdlib.h>
25808#include <iconv.h>
bec39cab
AC
25809int
25810main ()
25811{
234b45d4
KB
25812iconv_t cd = iconv_open("","");
25813 iconv(cd,NULL,NULL,NULL,NULL);
25814 iconv_close(cd);
bec39cab
AC
25815 ;
25816 return 0;
25817}
25818_ACEOF
25819rm -f conftest.$ac_objext conftest$ac_exeext
25820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25821 (eval $ac_link) 2>conftest.er1
25822 ac_status=$?
25823 grep -v '^ *+' conftest.er1 >conftest.err
25824 rm -f conftest.er1
25825 cat conftest.err >&5
25826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25827 (exit $ac_status); } &&
b4e70030
JB
25828 { ac_try='test -z "$ac_c_werror_flag"
25829 || test ! -s conftest.err'
bec39cab
AC
25830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25831 (eval $ac_try) 2>&5
25832 ac_status=$?
25833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834 (exit $ac_status); }; } &&
25835 { ac_try='test -s conftest$ac_exeext'
25836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25837 (eval $ac_try) 2>&5
25838 ac_status=$?
25839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840 (exit $ac_status); }; }; then
234b45d4
KB
25841 am_cv_func_iconv=yes
25842else
bec39cab
AC
25843 echo "$as_me: failed program was:" >&5
25844sed 's/^/| /' conftest.$ac_ext >&5
25845
234b45d4 25846fi
bec39cab
AC
25847rm -f conftest.err conftest.$ac_objext \
25848 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
25849 if test "$am_cv_func_iconv" != yes; then
25850 am_save_LIBS="$LIBS"
25851 LIBS="$LIBS -liconv"
bec39cab
AC
25852 cat >conftest.$ac_ext <<_ACEOF
25853/* confdefs.h. */
25854_ACEOF
25855cat confdefs.h >>conftest.$ac_ext
25856cat >>conftest.$ac_ext <<_ACEOF
25857/* end confdefs.h. */
234b45d4
KB
25858#include <stdlib.h>
25859#include <iconv.h>
bec39cab
AC
25860int
25861main ()
25862{
234b45d4
KB
25863iconv_t cd = iconv_open("","");
25864 iconv(cd,NULL,NULL,NULL,NULL);
25865 iconv_close(cd);
bec39cab
AC
25866 ;
25867 return 0;
25868}
25869_ACEOF
25870rm -f conftest.$ac_objext conftest$ac_exeext
25871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25872 (eval $ac_link) 2>conftest.er1
25873 ac_status=$?
25874 grep -v '^ *+' conftest.er1 >conftest.err
25875 rm -f conftest.er1
25876 cat conftest.err >&5
25877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878 (exit $ac_status); } &&
b4e70030
JB
25879 { ac_try='test -z "$ac_c_werror_flag"
25880 || test ! -s conftest.err'
bec39cab
AC
25881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25882 (eval $ac_try) 2>&5
25883 ac_status=$?
25884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885 (exit $ac_status); }; } &&
25886 { ac_try='test -s conftest$ac_exeext'
25887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25888 (eval $ac_try) 2>&5
25889 ac_status=$?
25890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891 (exit $ac_status); }; }; then
234b45d4
KB
25892 am_cv_lib_iconv=yes
25893 am_cv_func_iconv=yes
25894else
bec39cab
AC
25895 echo "$as_me: failed program was:" >&5
25896sed 's/^/| /' conftest.$ac_ext >&5
25897
234b45d4 25898fi
bec39cab
AC
25899rm -f conftest.err conftest.$ac_objext \
25900 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
25901 LIBS="$am_save_LIBS"
25902 fi
bec39cab
AC
25903
25904fi
b4e70030
JB
25905echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25906echo "${ECHO_T}$am_cv_func_iconv" >&6
bec39cab
AC
25907 if test "$am_cv_func_iconv" = yes; then
25908
25909cat >>confdefs.h <<\_ACEOF
25910#define HAVE_ICONV 1
25911_ACEOF
25912
b4e70030
JB
25913 echo "$as_me:$LINENO: checking for iconv declaration" >&5
25914echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
bec39cab
AC
25915 if test "${am_cv_proto_iconv+set}" = set; then
25916 echo $ECHO_N "(cached) $ECHO_C" >&6
25917else
25918
25919 cat >conftest.$ac_ext <<_ACEOF
25920/* confdefs.h. */
25921_ACEOF
25922cat confdefs.h >>conftest.$ac_ext
25923cat >>conftest.$ac_ext <<_ACEOF
25924/* end confdefs.h. */
25925
25926#include <stdlib.h>
25927#include <iconv.h>
25928extern
25929#ifdef __cplusplus
25930"C"
25931#endif
25932#if defined(__STDC__) || defined(__cplusplus)
25933size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25934#else
25935size_t iconv();
25936#endif
25937
25938int
25939main ()
25940{
25941
25942 ;
25943 return 0;
25944}
25945_ACEOF
25946rm -f conftest.$ac_objext
25947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25948 (eval $ac_compile) 2>conftest.er1
25949 ac_status=$?
25950 grep -v '^ *+' conftest.er1 >conftest.err
25951 rm -f conftest.er1
25952 cat conftest.err >&5
25953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954 (exit $ac_status); } &&
b4e70030
JB
25955 { ac_try='test -z "$ac_c_werror_flag"
25956 || test ! -s conftest.err'
bec39cab
AC
25957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25958 (eval $ac_try) 2>&5
25959 ac_status=$?
25960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961 (exit $ac_status); }; } &&
25962 { ac_try='test -s conftest.$ac_objext'
25963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25964 (eval $ac_try) 2>&5
25965 ac_status=$?
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); }; }; then
25968 am_cv_proto_iconv_arg1=""
25969else
25970 echo "$as_me: failed program was:" >&5
25971sed 's/^/| /' conftest.$ac_ext >&5
25972
b4e70030 25973am_cv_proto_iconv_arg1="const"
bec39cab
AC
25974fi
25975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25976 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);"
25977fi
25978
25979 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b4e70030 25980 echo "$as_me:$LINENO: result: ${ac_t:-
bec39cab
AC
25981 }$am_cv_proto_iconv" >&5
25982echo "${ECHO_T}${ac_t:-
b4e70030 25983 }$am_cv_proto_iconv" >&6
bec39cab
AC
25984
25985cat >>confdefs.h <<_ACEOF
25986#define ICONV_CONST $am_cv_proto_iconv_arg1
25987_ACEOF
25988
25989 fi
25990 LIBICONV=
25991 if test "$am_cv_lib_iconv" = yes; then
25992 LIBICONV="-liconv"
25993 fi
25994
25995
25996
e28b3332 25997 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
b4e70030 25998 ac_config_commands="$ac_config_commands default"
bec39cab
AC
25999cat >confcache <<\_ACEOF
26000# This file is a shell script that caches the results of configure
26001# tests run on this system so they can be shared between configure
26002# scripts and configure runs, see configure's option --config-cache.
26003# It is not useful on other systems. If it contains results you don't
26004# want to keep, you may remove or edit it.
26005#
26006# config.status only pays attention to the cache file if you give it
26007# the --recheck option to rerun configure.
26008#
26009# `ac_cv_env_foo' variables (set or unset) will be overridden when
26010# loading this file, other *unset* `ac_cv_foo' will be assigned the
26011# following values.
26012
26013_ACEOF
26014
26015# The following way of writing the cache mishandles newlines in values,
26016# but we know of no workaround that is simple, portable, and efficient.
b4e70030 26017# So, don't put newlines in cache variables' values.
bec39cab
AC
26018# Ultrix sh set writes to stderr and can't be redirected directly,
26019# and sets the high bit in the cache file unless we assign to the vars.
b4e70030 26020{
bec39cab 26021 (set) 2>&1 |
b4e70030
JB
26022 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26023 *ac_space=\ *)
bec39cab
AC
26024 # `set' does not quote correctly, so add quotes (double-quote
26025 # substitution turns \\\\ into \\, and sed turns \\ into \).
26026 sed -n \
26027 "s/'/'\\\\''/g;
26028 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b4e70030 26029 ;;
bec39cab
AC
26030 *)
26031 # `set' quotes correctly as required by POSIX, so do not add quotes.
b4e70030
JB
26032 sed -n \
26033 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 26034 ;;
b4e70030
JB
26035 esac;
26036} |
bec39cab
AC
26037 sed '
26038 t clear
b4e70030 26039 : clear
bec39cab
AC
26040 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26041 t end
b4e70030
JB
26042 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26043 : end' >>confcache
bec39cab
AC
26044if diff $cache_file confcache >/dev/null 2>&1; then :; else
26045 if test -w $cache_file; then
b4e70030 26046 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
bec39cab
AC
26047 cat confcache >$cache_file
26048 else
b4e70030 26049 echo "not updating unwritable cache $cache_file"
bec39cab
AC
26050 fi
26051fi
26052rm -f confcache
26053
26054test "x$prefix" = xNONE && prefix=$ac_default_prefix
26055# Let make expand exec_prefix.
26056test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26057
b4e70030
JB
26058# VPATH may cause trouble with some makes, so we remove $(srcdir),
26059# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26060# trailing colons and then remove the whole line if VPATH becomes empty
26061# (actually we leave an empty line to preserve line numbers).
26062if test "x$srcdir" = x.; then
26063 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26064s/:*\$(srcdir):*/:/;
26065s/:*\${srcdir}:*/:/;
26066s/:*@srcdir@:*/:/;
26067s/^\([^=]*=[ ]*\):*/\1/;
26068s/:*$//;
26069s/^[^=]*=[ ]*$//;
26070}'
26071fi
26072
bec39cab
AC
26073DEFS=-DHAVE_CONFIG_H
26074
26075ac_libobjs=
26076ac_ltlibobjs=
26077for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26078 # 1. Remove the extension, and $U if already installed.
b4e70030
JB
26079 ac_i=`echo "$ac_i" |
26080 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26081 # 2. Add them.
26082 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26083 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
bec39cab
AC
26084done
26085LIBOBJS=$ac_libobjs
26086
26087LTLIBOBJS=$ac_ltlibobjs
26088
26089
85981d60
AC
26090if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26091 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26092Usually this means the macro was only invoked conditionally." >&5
26093echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26094Usually this means the macro was only invoked conditionally." >&2;}
26095 { (exit 1); exit 1; }; }
26096fi
783e057b
DJ
26097if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
26098 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
26099Usually this means the macro was only invoked conditionally." >&5
26100echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
26101Usually this means the macro was only invoked conditionally." >&2;}
26102 { (exit 1); exit 1; }; }
26103fi
26104
26105 gl_libobjs=
26106 gl_ltlibobjs=
26107 if test -n "$gl_LIBOBJS"; then
26108 # Remove the extension.
26109 sed_drop_objext='s/\.o$//;s/\.obj$//'
26110 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
26111 gl_libobjs="$gl_libobjs $i.$ac_objext"
26112 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
26113 done
26114 fi
26115 gl_LIBOBJS=$gl_libobjs
26116
26117 gl_LTLIBOBJS=$gl_ltlibobjs
26118
26119
26120
26121 gltests_libobjs=
26122 gltests_ltlibobjs=
26123 if test -n "$gltests_LIBOBJS"; then
26124 # Remove the extension.
26125 sed_drop_objext='s/\.o$//;s/\.obj$//'
26126 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
26127 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
26128 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
26129 done
26130 fi
26131 gltests_LIBOBJS=$gltests_libobjs
26132
26133 gltests_LTLIBOBJS=$gltests_ltlibobjs
26134
26135
e28b3332
DJ
26136if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26137 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26138Usually this means the macro was only invoked conditionally." >&5
26139echo "$as_me: error: conditional \"AMDEP\" was never defined.
26140Usually this means the macro was only invoked conditionally." >&2;}
26141 { (exit 1); exit 1; }; }
26142fi
26143if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26144 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26145Usually this means the macro was only invoked conditionally." >&5
26146echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26147Usually this means the macro was only invoked conditionally." >&2;}
26148 { (exit 1); exit 1; }; }
26149fi
bec39cab
AC
26150
26151: ${CONFIG_STATUS=./config.status}
26152ac_clean_files_save=$ac_clean_files
26153ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26154{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26155echo "$as_me: creating $CONFIG_STATUS" >&6;}
26156cat >$CONFIG_STATUS <<_ACEOF
26157#! $SHELL
26158# Generated by $as_me.
26159# Run this file to recreate the current configuration.
26160# Compiler output produced by configure, useful for debugging
26161# configure, is in config.log if it exists.
26162
26163debug=false
26164ac_cs_recheck=false
26165ac_cs_silent=false
26166SHELL=\${CONFIG_SHELL-$SHELL}
26167_ACEOF
26168
26169cat >>$CONFIG_STATUS <<\_ACEOF
26170## --------------------- ##
26171## M4sh Initialization. ##
26172## --------------------- ##
26173
26174# Be Bourne compatible
26175if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26176 emulate sh
26177 NULLCMD=:
26178 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26179 # is contrary to our usage. Disable this feature.
26180 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
26181elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26182 set -o posix
bec39cab
AC
26183fi
26184DUALCASE=1; export DUALCASE # for MKS sh
26185
26186# Support unset when possible.
26187if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26188 as_unset=unset
26189else
26190 as_unset=false
26191fi
26192
26193
26194# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 26195$as_unset ENV MAIL MAILPATH
bec39cab
AC
26196PS1='$ '
26197PS2='> '
26198PS4='+ '
26199
26200# NLS nuisances.
26201for as_var in \
26202 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26203 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26204 LC_TELEPHONE LC_TIME
26205do
26206 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26207 eval $as_var=C; export $as_var
26208 else
b4e70030 26209 $as_unset $as_var
bec39cab
AC
26210 fi
26211done
26212
26213# Required to use basename.
b4e70030 26214if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
26215 as_expr=expr
26216else
26217 as_expr=false
26218fi
26219
b4e70030 26220if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
26221 as_basename=basename
26222else
26223 as_basename=false
26224fi
26225
26226
26227# Name of the executable.
b4e70030 26228as_me=`$as_basename "$0" ||
bec39cab
AC
26229$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26230 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
26231 X"$0" : 'X\(/\)$' \| \
26232 . : '\(.\)' 2>/dev/null ||
bec39cab 26233echo X/"$0" |
b4e70030
JB
26234 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26235 /^X\/\(\/\/\)$/{ s//\1/; q; }
26236 /^X\/\(\/\).*/{ s//\1/; q; }
26237 s/.*/./; q'`
bec39cab 26238
b4e70030
JB
26239
26240# PATH needs CR, and LINENO needs CR and PATH.
26241# Avoid depending upon Character Ranges.
26242as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26243as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26244as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26245as_cr_digits='0123456789'
26246as_cr_alnum=$as_cr_Letters$as_cr_digits
26247
26248# The user is always right.
26249if test "${PATH_SEPARATOR+set}" != set; then
26250 echo "#! /bin/sh" >conf$$.sh
26251 echo "exit 0" >>conf$$.sh
26252 chmod +x conf$$.sh
26253 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26254 PATH_SEPARATOR=';'
26255 else
26256 PATH_SEPARATOR=:
26257 fi
26258 rm -f conf$$.sh
26259fi
bec39cab
AC
26260
26261
b4e70030
JB
26262 as_lineno_1=$LINENO
26263 as_lineno_2=$LINENO
26264 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26265 test "x$as_lineno_1" != "x$as_lineno_2" &&
26266 test "x$as_lineno_3" = "x$as_lineno_2" || {
26267 # Find who we are. Look in the path if we contain no path at all
26268 # relative or not.
26269 case $0 in
26270 *[\\/]* ) as_myself=$0 ;;
26271 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26272for as_dir in $PATH
26273do
26274 IFS=$as_save_IFS
26275 test -z "$as_dir" && as_dir=.
26276 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26277done
bec39cab 26278
b4e70030
JB
26279 ;;
26280 esac
26281 # We did not find ourselves, most probably we were run as `sh COMMAND'
26282 # in which case we are not to be found in the path.
26283 if test "x$as_myself" = x; then
26284 as_myself=$0
26285 fi
26286 if test ! -f "$as_myself"; then
26287 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26288echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26289 { (exit 1); exit 1; }; }
26290 fi
26291 case $CONFIG_SHELL in
26292 '')
26293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26294for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26295do
26296 IFS=$as_save_IFS
26297 test -z "$as_dir" && as_dir=.
26298 for as_base in sh bash ksh sh5; do
26299 case $as_dir in
26300 /*)
26301 if ("$as_dir/$as_base" -c '
bec39cab
AC
26302 as_lineno_1=$LINENO
26303 as_lineno_2=$LINENO
b4e70030 26304 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
bec39cab 26305 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
26306 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26307 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26308 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26309 CONFIG_SHELL=$as_dir/$as_base
26310 export CONFIG_SHELL
26311 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26312 fi;;
26313 esac
26314 done
26315done
26316;;
26317 esac
bec39cab
AC
26318
26319 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26320 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
26321 # line-number line before each line; the second 'sed' does the real
26322 # work. The second script uses 'N' to pair each line-number line
26323 # with the numbered line, and appends trailing '-' during
26324 # substitution so that $LINENO is not a special case at line end.
bec39cab 26325 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
26326 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26327 sed '=' <$as_myself |
bec39cab
AC
26328 sed '
26329 N
b4e70030
JB
26330 s,$,-,
26331 : loop
26332 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 26333 t loop
b4e70030
JB
26334 s,-$,,
26335 s,^['$as_cr_digits']*\n,,
bec39cab 26336 ' >$as_me.lineno &&
b4e70030
JB
26337 chmod +x $as_me.lineno ||
26338 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26339echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
bec39cab
AC
26340 { (exit 1); exit 1; }; }
26341
26342 # Don't try to exec as it changes $[0], causing all sort of problems
26343 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
26344 # original and so on. Autoconf is especially sensible to this).
26345 . ./$as_me.lineno
bec39cab
AC
26346 # Exit status is that of the last command.
26347 exit
26348}
26349
26350
b4e70030
JB
26351case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26352 *c*,-n*) ECHO_N= ECHO_C='
26353' ECHO_T=' ' ;;
26354 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26355 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
26356esac
26357
b4e70030 26358if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
26359 as_expr=expr
26360else
26361 as_expr=false
26362fi
26363
26364rm -f conf$$ conf$$.exe conf$$.file
26365echo >conf$$.file
26366if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
26367 # We could just check for DJGPP; but this test a) works b) is more generic
26368 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26369 if test -f conf$$.exe; then
26370 # Don't use ln at all; we don't have any links
bec39cab 26371 as_ln_s='cp -p'
b4e70030
JB
26372 else
26373 as_ln_s='ln -s'
26374 fi
bec39cab
AC
26375elif ln conf$$.file conf$$ 2>/dev/null; then
26376 as_ln_s=ln
26377else
26378 as_ln_s='cp -p'
26379fi
b4e70030 26380rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
26381
26382if mkdir -p . 2>/dev/null; then
26383 as_mkdir_p=:
26384else
26385 test -d ./-p && rmdir ./-p
26386 as_mkdir_p=false
26387fi
26388
b4e70030 26389as_executable_p="test -f"
bec39cab
AC
26390
26391# Sed expression to map a string onto a valid CPP name.
26392as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26393
26394# Sed expression to map a string onto a valid variable name.
26395as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26396
26397
b4e70030
JB
26398# IFS
26399# We need space, tab and new line, in precisely that order.
26400as_nl='
26401'
26402IFS=" $as_nl"
26403
26404# CDPATH.
26405$as_unset CDPATH
26406
bec39cab
AC
26407exec 6>&1
26408
b4e70030 26409# Open the log real soon, to keep \$[0] and so on meaningful, and to
bec39cab 26410# report actual input values of CONFIG_FILES etc. instead of their
b4e70030
JB
26411# values after options handling. Logging --version etc. is OK.
26412exec 5>>config.log
26413{
26414 echo
26415 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26416## Running $as_me. ##
26417_ASBOX
26418} >&5
26419cat >&5 <<_CSEOF
26420
bec39cab 26421This file was extended by $as_me, which was
b4e70030 26422generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
26423
26424 CONFIG_FILES = $CONFIG_FILES
26425 CONFIG_HEADERS = $CONFIG_HEADERS
26426 CONFIG_LINKS = $CONFIG_LINKS
26427 CONFIG_COMMANDS = $CONFIG_COMMANDS
26428 $ $0 $@
26429
b4e70030
JB
26430_CSEOF
26431echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26432echo >&5
bec39cab
AC
26433_ACEOF
26434
26435# Files that config.status was made for.
b4e70030
JB
26436if test -n "$ac_config_files"; then
26437 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26438fi
234b45d4 26439
b4e70030
JB
26440if test -n "$ac_config_headers"; then
26441 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26442fi
26443
26444if test -n "$ac_config_links"; then
26445 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26446fi
26447
26448if test -n "$ac_config_commands"; then
26449 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26450fi
234b45d4 26451
bec39cab 26452cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030 26453
bec39cab
AC
26454ac_cs_usage="\
26455\`$as_me' instantiates files from templates according to the
26456current configuration.
234b45d4 26457
bec39cab 26458Usage: $0 [OPTIONS] [FILE]...
234b45d4 26459
bec39cab
AC
26460 -h, --help print this help, then exit
26461 -V, --version print version number, then exit
26462 -q, --quiet do not print progress messages
26463 -d, --debug don't remove temporary files
26464 --recheck update $as_me by reconfiguring in the same conditions
26465 --file=FILE[:TEMPLATE]
26466 instantiate the configuration file FILE
26467 --header=FILE[:TEMPLATE]
26468 instantiate the configuration header FILE
234b45d4 26469
bec39cab
AC
26470Configuration files:
26471$config_files
234b45d4 26472
bec39cab
AC
26473Configuration headers:
26474$config_headers
234b45d4 26475
bec39cab
AC
26476Configuration links:
26477$config_links
234b45d4 26478
bec39cab
AC
26479Configuration commands:
26480$config_commands
26481
26482Report bugs to <bug-autoconf@gnu.org>."
4e8d927d 26483_ACEOF
b4e70030 26484
bec39cab
AC
26485cat >>$CONFIG_STATUS <<_ACEOF
26486ac_cs_version="\\
26487config.status
b4e70030 26488configured by $0, generated by GNU Autoconf 2.59,
bec39cab
AC
26489 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26490
b4e70030 26491Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
26492This config.status script is free software; the Free Software Foundation
26493gives unlimited permission to copy, distribute and modify it."
b4e70030
JB
26494srcdir=$srcdir
26495INSTALL="$INSTALL"
bec39cab
AC
26496_ACEOF
26497
26498cat >>$CONFIG_STATUS <<\_ACEOF
26499# If no file are specified by the user, then we need to provide default
26500# value. By we need to know if files were specified by the user.
26501ac_need_defaults=:
26502while test $# != 0
26503do
26504 case $1 in
26505 --*=*)
b4e70030
JB
26506 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26507 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
bec39cab 26508 ac_shift=:
c906108c 26509 ;;
b4e70030 26510 -*)
bec39cab
AC
26511 ac_option=$1
26512 ac_optarg=$2
26513 ac_shift=shift
c906108c 26514 ;;
b4e70030
JB
26515 *) # This is not an option, so the user has probably given explicit
26516 # arguments.
26517 ac_option=$1
26518 ac_need_defaults=false;;
bec39cab 26519 esac
c906108c 26520
bec39cab
AC
26521 case $ac_option in
26522 # Handling of the options.
b4e70030
JB
26523_ACEOF
26524cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
26525 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26526 ac_cs_recheck=: ;;
b4e70030
JB
26527 --version | --vers* | -V )
26528 echo "$ac_cs_version"; exit 0 ;;
26529 --he | --h)
26530 # Conflict between --help and --header
26531 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26532Try \`$0 --help' for more information." >&5
26533echo "$as_me: error: ambiguous option: $1
26534Try \`$0 --help' for more information." >&2;}
26535 { (exit 1); exit 1; }; };;
26536 --help | --hel | -h )
26537 echo "$ac_cs_usage"; exit 0 ;;
26538 --debug | --d* | -d )
bec39cab
AC
26539 debug=: ;;
26540 --file | --fil | --fi | --f )
26541 $ac_shift
26542 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26543 ac_need_defaults=false;;
26544 --header | --heade | --head | --hea )
26545 $ac_shift
26546 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26547 ac_need_defaults=false;;
26548 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26549 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26550 ac_cs_silent=: ;;
c906108c 26551
bec39cab 26552 # This is an error.
b4e70030
JB
26553 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26554Try \`$0 --help' for more information." >&5
26555echo "$as_me: error: unrecognized option: $1
26556Try \`$0 --help' for more information." >&2;}
bec39cab 26557 { (exit 1); exit 1; }; } ;;
c906108c 26558
b4e70030 26559 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 26560
bec39cab
AC
26561 esac
26562 shift
26563done
c906108c 26564
bec39cab 26565ac_configure_extra_args=
c906108c 26566
bec39cab
AC
26567if $ac_cs_silent; then
26568 exec 6>/dev/null
26569 ac_configure_extra_args="$ac_configure_extra_args --silent"
26570fi
c906108c 26571
bec39cab
AC
26572_ACEOF
26573cat >>$CONFIG_STATUS <<_ACEOF
26574if \$ac_cs_recheck; then
b4e70030
JB
26575 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26576 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab
AC
26577fi
26578
26579_ACEOF
26580
26581cat >>$CONFIG_STATUS <<_ACEOF
c906108c 26582#
b4e70030 26583# INIT-COMMANDS section.
c906108c 26584#
c906108c 26585
e28b3332 26586AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
b4e70030 26587
bec39cab 26588gdb_host_cpu=$gdb_host_cpu
bec39cab
AC
26589nativefile=$nativefile
26590
26591
26592_ACEOF
26593
4e8d927d 26594
b4e70030
JB
26595
26596cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 26597for ac_config_target in $ac_config_targets
c906108c 26598do
b4e70030
JB
26599 case "$ac_config_target" in
26600 # Handling of arguments.
26601 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26602 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
e28b3332 26603 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
b4e70030 26604 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
e28b3332 26605 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
b4e70030
JB
26606 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26607 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
bec39cab
AC
26608 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26609echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26610 { (exit 1); exit 1; }; };;
c906108c
SS
26611 esac
26612done
26613
bec39cab
AC
26614# If the user did not use the arguments to specify the items to instantiate,
26615# then the envvar interface is used. Set only those that are not.
26616# We use the long form for the default assignment because of an extremely
26617# bizarre bug on SunOS 4.1.3.
26618if $ac_need_defaults; then
26619 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26620 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26621 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26622 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26623fi
26624
b4e70030
JB
26625# Have a temporary directory for convenience. Make it in the build tree
26626# simply because there is no reason to put it here, and in addition,
26627# creating and moving files from /tmp can sometimes cause problems.
26628# Create a temporary directory, and hook for its removal unless debugging.
26629$debug ||
26630{
26631 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26632 trap '{ (exit 1); exit 1; }' 1 2 13 15
26633}
4e8d927d 26634
b4e70030 26635# Create a (secure) tmp directory for tmp files.
4e8d927d 26636
b4e70030
JB
26637{
26638 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26639 test -n "$tmp" && test -d "$tmp"
26640} ||
26641{
26642 tmp=./confstat$$-$RANDOM
26643 (umask 077 && mkdir $tmp)
26644} ||
26645{
26646 echo "$me: cannot create a temporary directory in ." >&2
26647 { (exit 1); exit 1; }
26648}
4e8d927d 26649
b4e70030 26650_ACEOF
4e8d927d 26651
b4e70030 26652cat >>$CONFIG_STATUS <<_ACEOF
4e8d927d 26653
b4e70030
JB
26654#
26655# CONFIG_FILES section.
26656#
4e8d927d 26657
b4e70030
JB
26658# No need to generate the scripts if there are no CONFIG_FILES.
26659# This happens for instance when ./config.status config.h
26660if test -n "\$CONFIG_FILES"; then
26661 # Protect against being on the right side of a sed subst in config.status.
26662 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26663 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26664s,@SHELL@,$SHELL,;t t
26665s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26666s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26667s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26668s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26669s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26670s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26671s,@exec_prefix@,$exec_prefix,;t t
26672s,@prefix@,$prefix,;t t
26673s,@program_transform_name@,$program_transform_name,;t t
26674s,@bindir@,$bindir,;t t
26675s,@sbindir@,$sbindir,;t t
26676s,@libexecdir@,$libexecdir,;t t
26677s,@datadir@,$datadir,;t t
26678s,@sysconfdir@,$sysconfdir,;t t
26679s,@sharedstatedir@,$sharedstatedir,;t t
26680s,@localstatedir@,$localstatedir,;t t
26681s,@libdir@,$libdir,;t t
26682s,@includedir@,$includedir,;t t
26683s,@oldincludedir@,$oldincludedir,;t t
26684s,@infodir@,$infodir,;t t
26685s,@mandir@,$mandir,;t t
26686s,@build_alias@,$build_alias,;t t
26687s,@host_alias@,$host_alias,;t t
26688s,@target_alias@,$target_alias,;t t
26689s,@DEFS@,$DEFS,;t t
26690s,@ECHO_C@,$ECHO_C,;t t
26691s,@ECHO_N@,$ECHO_N,;t t
26692s,@ECHO_T@,$ECHO_T,;t t
26693s,@LIBS@,$LIBS,;t t
26694s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26695s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26696s,@MAINT@,$MAINT,;t t
26697s,@CC@,$CC,;t t
26698s,@CFLAGS@,$CFLAGS,;t t
26699s,@LDFLAGS@,$LDFLAGS,;t t
26700s,@CPPFLAGS@,$CPPFLAGS,;t t
26701s,@ac_ct_CC@,$ac_ct_CC,;t t
26702s,@EXEEXT@,$EXEEXT,;t t
26703s,@OBJEXT@,$OBJEXT,;t t
26704s,@CPP@,$CPP,;t t
26705s,@EGREP@,$EGREP,;t t
783e057b
DJ
26706s,@RANLIB@,$RANLIB,;t t
26707s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
b4e70030
JB
26708s,@build@,$build,;t t
26709s,@build_cpu@,$build_cpu,;t t
26710s,@build_vendor@,$build_vendor,;t t
26711s,@build_os@,$build_os,;t t
26712s,@host@,$host,;t t
26713s,@host_cpu@,$host_cpu,;t t
26714s,@host_vendor@,$host_vendor,;t t
26715s,@host_os@,$host_os,;t t
26716s,@target@,$target,;t t
26717s,@target_cpu@,$target_cpu,;t t
26718s,@target_vendor@,$target_vendor,;t t
26719s,@target_os@,$target_os,;t t
b4e70030 26720s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
26721s,@LIBINTL@,$LIBINTL,;t t
26722s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
26723s,@INCINTL@,$INCINTL,;t t
b4e70030 26724s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
26725s,@GMSGFMT@,$GMSGFMT,;t t
26726s,@POSUB@,$POSUB,;t t
b4e70030 26727s,@CATALOGS@,$CATALOGS,;t t
b4e70030 26728s,@DATADIRNAME@,$DATADIRNAME,;t t
b4e70030 26729s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
26730s,@GENCAT@,$GENCAT,;t t
26731s,@CATOBJEXT@,$CATOBJEXT,;t t
b4e70030 26732s,@localedir@,$localedir,;t t
783e057b
DJ
26733s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
26734s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
26735s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
26736s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
26737s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
26738s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
26739s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
26740s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
26741s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
26742s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
26743s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
26744s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
26745s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
26746s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
26747s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
26748s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
26749s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
26750s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
26751s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
26752s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
26753s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
26754s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
26755s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
26756s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
26757s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
26758s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
26759s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
26760s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
26761s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
26762s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
26763s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
26764s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
26765s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
26766s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
26767s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
26768s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
26769s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
26770s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
26771s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
26772s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
26773s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
26774s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
26775s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
26776s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
26777s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
26778s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
26779s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
26780s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
26781s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
26782s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
26783s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
26784s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
26785s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
26786s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
26787s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
26788s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
26789s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
26790s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
26791s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
26792s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
26793s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
26794s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
26795s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
26796s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
26797s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
26798s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
26799s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
26800s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
26801s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
26802s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
26803s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
26804s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
26805s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
26806s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
26807s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
26808s,@STDINT_H@,$STDINT_H,;t t
26809s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
26810s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
26811s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
26812s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
26813s,@WCHAR_H@,$WCHAR_H,;t t
26814s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
26815s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
26816s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
26817s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
d5af19ba 26818s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
b4e70030 26819s,@PACKAGE@,$PACKAGE,;t t
b4e70030
JB
26820s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26821s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26822s,@INSTALL_DATA@,$INSTALL_DATA,;t t
e28b3332
DJ
26823s,@CYGPATH_W@,$CYGPATH_W,;t t
26824s,@VERSION@,$VERSION,;t t
26825s,@ACLOCAL@,$ACLOCAL,;t t
26826s,@AUTOCONF@,$AUTOCONF,;t t
26827s,@AUTOMAKE@,$AUTOMAKE,;t t
26828s,@AUTOHEADER@,$AUTOHEADER,;t t
26829s,@MAKEINFO@,$MAKEINFO,;t t
26830s,@install_sh@,$install_sh,;t t
26831s,@STRIP@,$STRIP,;t t
26832s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26833s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26834s,@mkdir_p@,$mkdir_p,;t t
26835s,@AWK@,$AWK,;t t
26836s,@SET_MAKE@,$SET_MAKE,;t t
26837s,@am__leading_dot@,$am__leading_dot,;t t
26838s,@AMTAR@,$AMTAR,;t t
26839s,@am__tar@,$am__tar,;t t
26840s,@am__untar@,$am__untar,;t t
26841s,@DEPDIR@,$DEPDIR,;t t
26842s,@am__include@,$am__include,;t t
26843s,@am__quote@,$am__quote,;t t
26844s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26845s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26846s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26847s,@CCDEPMODE@,$CCDEPMODE,;t t
26848s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26849s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26850s,@subdirs@,$subdirs,;t t
26851s,@TARGET_OBS@,$TARGET_OBS,;t t
c16158bc
JM
26852s,@PKGVERSION@,$PKGVERSION,;t t
26853s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
26854s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
b4e70030
JB
26855s,@LN_S@,$LN_S,;t t
26856s,@YACC@,$YACC,;t t
26857s,@AR@,$AR,;t t
26858s,@ac_ct_AR@,$ac_ct_AR,;t t
26859s,@DLLTOOL@,$DLLTOOL,;t t
26860s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
26861s,@WINDRES@,$WINDRES,;t t
26862s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
26863s,@MIG@,$MIG,;t t
26864s,@ac_ct_MIG@,$ac_ct_MIG,;t t
6a30b0a5
AS
26865s,@READLINE@,$READLINE,;t t
26866s,@READLINE_DEPS@,$READLINE_DEPS,;t t
26867s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
3841debe
DJ
26868s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
26869s,@LIBEXPAT@,$LIBEXPAT,;t t
26870s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
20e95c23 26871s,@ALLOCA@,$ALLOCA,;t t
b4e70030
JB
26872s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
26873s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
26874s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
26875s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
26876s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
26877s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
26878s,@WIN32LIBS@,$WIN32LIBS,;t t
26879s,@LIBGUI@,$LIBGUI,;t t
26880s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
26881s,@WIN32LDAPP@,$WIN32LDAPP,;t t
26882s,@TCL_VERSION@,$TCL_VERSION,;t t
26883s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
26884s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
26885s,@TCL_CC@,$TCL_CC,;t t
26886s,@TCL_DEFS@,$TCL_DEFS,;t t
26887s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
26888s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
26889s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
26890s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
26891s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
26892s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
26893s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
26894s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
26895s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
26896s,@TCL_RANLIB@,$TCL_RANLIB,;t t
26897s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
26898s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
26899s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
26900s,@TK_VERSION@,$TK_VERSION,;t t
26901s,@TK_DEFS@,$TK_DEFS,;t t
26902s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
26903s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
26904s,@TK_XLIBSW@,$TK_XLIBSW,;t t
26905s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
26906s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
26907s,@TCLHDIR@,$TCLHDIR,;t t
26908s,@TKHDIR@,$TKHDIR,;t t
26909s,@ITCLHDIR@,$ITCLHDIR,;t t
26910s,@ITKHDIR@,$ITKHDIR,;t t
26911s,@ITCL_VERSION@,$ITCL_VERSION,;t t
26912s,@ITCL_DEFS@,$ITCL_DEFS,;t t
26913s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
26914s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
26915s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
26916s,@ITK_VERSION@,$ITK_VERSION,;t t
26917s,@ITK_DEFS@,$ITK_DEFS,;t t
26918s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
26919s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
26920s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
26921s,@X_CFLAGS@,$X_CFLAGS,;t t
26922s,@X_LDFLAGS@,$X_LDFLAGS,;t t
26923s,@X_LIBS@,$X_LIBS,;t t
26924s,@TCL_DEPS@,$TCL_DEPS,;t t
26925s,@TK_DEPS@,$TK_DEPS,;t t
26926s,@ITCLLIB@,$ITCLLIB,;t t
26927s,@ITCL_DEPS@,$ITCL_DEPS,;t t
26928s,@ITKLIB@,$ITKLIB,;t t
26929s,@ITK_DEPS@,$ITK_DEPS,;t t
26930s,@GDBTKLIBS@,$GDBTKLIBS,;t t
26931s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
26932s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
9b624dbe
UW
26933s,@SIM@,$SIM,;t t
26934s,@SIM_OBS@,$SIM_OBS,;t t
b4e70030
JB
26935s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
26936s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
26937s,@CONFIG_OBS@,$CONFIG_OBS,;t t
26938s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
26939s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
26940s,@CONFIG_ALL@,$CONFIG_ALL,;t t
26941s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
26942s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
26943s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
26944s,@target_subdir@,$target_subdir,;t t
26945s,@frags@,$frags,;t t
b4e70030
JB
26946s,@nm_h@,$nm_h,;t t
26947s,@LIBICONV@,$LIBICONV,;t t
26948s,@LIBOBJS@,$LIBOBJS,;t t
26949s,@LTLIBOBJS@,$LTLIBOBJS,;t t
783e057b
DJ
26950s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
26951s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
26952s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
26953s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
b4e70030
JB
26954/@host_makefile_frag@/r $host_makefile_frag
26955s,@host_makefile_frag@,,;t t
b4e70030
JB
26956CEOF
26957
26958_ACEOF
26959
26960 cat >>$CONFIG_STATUS <<\_ACEOF
26961 # Split the substitutions into bite-sized pieces for seds with
26962 # small command number limits, like on Digital OSF/1 and HP-UX.
26963 ac_max_sed_lines=48
26964 ac_sed_frag=1 # Number of current file.
26965 ac_beg=1 # First line for current file.
26966 ac_end=$ac_max_sed_lines # Line after last line for current file.
26967 ac_more_lines=:
26968 ac_sed_cmds=
26969 while $ac_more_lines; do
26970 if test $ac_beg -gt 1; then
26971 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26972 else
26973 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4e8d927d 26974 fi
b4e70030
JB
26975 if test ! -s $tmp/subs.frag; then
26976 ac_more_lines=false
26977 else
26978 # The purpose of the label and of the branching condition is to
26979 # speed up the sed processing (if there are no `@' at all, there
26980 # is no need to browse any of the substitutions).
26981 # These are the two extra sed commands mentioned above.
26982 (echo ':t
26983 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26984 if test -z "$ac_sed_cmds"; then
26985 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26986 else
26987 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26988 fi
26989 ac_sed_frag=`expr $ac_sed_frag + 1`
26990 ac_beg=$ac_end
26991 ac_end=`expr $ac_end + $ac_max_sed_lines`
26992 fi
26993 done
26994 if test -z "$ac_sed_cmds"; then
26995 ac_sed_cmds=cat
26996 fi
26997fi # test -n "$CONFIG_FILES"
4e8d927d 26998
b4e70030
JB
26999_ACEOF
27000cat >>$CONFIG_STATUS <<\_ACEOF
27001for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27002 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27003 case $ac_file in
27004 - | *:- | *:-:* ) # input from stdin
27005 cat >$tmp/stdin
27006 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27007 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27008 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27009 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27010 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
27011 esac
27012
b4e70030
JB
27013 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27014 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
bec39cab
AC
27015$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27016 X"$ac_file" : 'X\(//\)[^/]' \| \
27017 X"$ac_file" : 'X\(//\)$' \| \
b4e70030
JB
27018 X"$ac_file" : 'X\(/\)' \| \
27019 . : '\(.\)' 2>/dev/null ||
bec39cab 27020echo X"$ac_file" |
b4e70030
JB
27021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27023 /^X\(\/\/\)$/{ s//\1/; q; }
27024 /^X\(\/\).*/{ s//\1/; q; }
27025 s/.*/./; q'`
27026 { if $as_mkdir_p; then
27027 mkdir -p "$ac_dir"
27028 else
27029 as_dir="$ac_dir"
bec39cab 27030 as_dirs=
b4e70030
JB
27031 while test ! -d "$as_dir"; do
27032 as_dirs="$as_dir $as_dirs"
27033 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
27034$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27035 X"$as_dir" : 'X\(//\)[^/]' \| \
27036 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
27037 X"$as_dir" : 'X\(/\)' \| \
27038 . : '\(.\)' 2>/dev/null ||
bec39cab 27039echo X"$as_dir" |
b4e70030
JB
27040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27041 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27042 /^X\(\/\/\)$/{ s//\1/; q; }
27043 /^X\(\/\).*/{ s//\1/; q; }
27044 s/.*/./; q'`
bec39cab 27045 done
b4e70030
JB
27046 test ! -n "$as_dirs" || mkdir $as_dirs
27047 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27048echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 27049 { (exit 1); exit 1; }; }; }
b4e70030 27050
bec39cab
AC
27051 ac_builddir=.
27052
b4e70030 27053if test "$ac_dir" != .; then
bec39cab 27054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
27055 # A "../" for each directory in $ac_dir_suffix.
27056 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27057else
27058 ac_dir_suffix= ac_top_builddir=
27059fi
bec39cab
AC
27060
27061case $srcdir in
b4e70030 27062 .) # No --srcdir option. We are building in place.
bec39cab 27063 ac_srcdir=.
b4e70030
JB
27064 if test -z "$ac_top_builddir"; then
27065 ac_top_srcdir=.
27066 else
27067 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27068 fi ;;
27069 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 27070 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
27071 ac_top_srcdir=$srcdir ;;
27072 *) # Relative path.
27073 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27074 ac_top_srcdir=$ac_top_builddir$srcdir ;;
bec39cab
AC
27075esac
27076
b4e70030
JB
27077# Do not use `cd foo && pwd` to compute absolute paths, because
27078# the directories may not exist.
27079case `pwd` in
27080.) ac_abs_builddir="$ac_dir";;
27081*)
27082 case "$ac_dir" in
27083 .) ac_abs_builddir=`pwd`;;
27084 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27085 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27086 esac;;
27087esac
27088case $ac_abs_builddir in
27089.) ac_abs_top_builddir=${ac_top_builddir}.;;
27090*)
27091 case ${ac_top_builddir}. in
27092 .) ac_abs_top_builddir=$ac_abs_builddir;;
27093 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27094 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27095 esac;;
27096esac
27097case $ac_abs_builddir in
27098.) ac_abs_srcdir=$ac_srcdir;;
27099*)
27100 case $ac_srcdir in
27101 .) ac_abs_srcdir=$ac_abs_builddir;;
27102 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27103 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27104 esac;;
27105esac
27106case $ac_abs_builddir in
27107.) ac_abs_top_srcdir=$ac_top_srcdir;;
27108*)
27109 case $ac_top_srcdir in
27110 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27111 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27112 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27113 esac;;
27114esac
c906108c 27115
c906108c 27116
bec39cab
AC
27117 case $INSTALL in
27118 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
b4e70030 27119 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c 27120 esac
121ce6e5 27121
b4e70030
JB
27122 if test x"$ac_file" != x-; then
27123 { echo "$as_me:$LINENO: creating $ac_file" >&5
27124echo "$as_me: creating $ac_file" >&6;}
27125 rm -f "$ac_file"
27126 fi
27127 # Let's still pretend it is `configure' which instantiates (i.e., don't
27128 # use $as_me), people would be surprised to read:
27129 # /* config.h. Generated by config.status. */
27130 if test x"$ac_file" = x-; then
27131 configure_input=
27132 else
27133 configure_input="$ac_file. "
27134 fi
27135 configure_input=$configure_input"Generated from `echo $ac_file_in |
27136 sed 's,.*/,,'` by configure."
27137
27138 # First look for the input files in the build tree, otherwise in the
27139 # src tree.
27140 ac_file_inputs=`IFS=:
27141 for f in $ac_file_in; do
27142 case $f in
27143 -) echo $tmp/stdin ;;
27144 [\\/$]*)
27145 # Absolute (can't be DOS-style, as IFS=:)
27146 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27147echo "$as_me: error: cannot find input file: $f" >&2;}
27148 { (exit 1); exit 1; }; }
27149 echo "$f";;
27150 *) # Relative
27151 if test -f "$f"; then
27152 # Build tree
27153 echo "$f"
27154 elif test -f "$srcdir/$f"; then
27155 # Source tree
27156 echo "$srcdir/$f"
27157 else
27158 # /dev/null tree
27159 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27160echo "$as_me: error: cannot find input file: $f" >&2;}
27161 { (exit 1); exit 1; }; }
27162 fi;;
27163 esac
27164 done` || { (exit 1); exit 1; }
4e8d927d 27165_ACEOF
bec39cab
AC
27166cat >>$CONFIG_STATUS <<_ACEOF
27167 sed "$ac_vpsub
27168$extrasub
27169_ACEOF
27170cat >>$CONFIG_STATUS <<\_ACEOF
27171:t
27172/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b4e70030
JB
27173s,@configure_input@,$configure_input,;t t
27174s,@srcdir@,$ac_srcdir,;t t
27175s,@abs_srcdir@,$ac_abs_srcdir,;t t
27176s,@top_srcdir@,$ac_top_srcdir,;t t
27177s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27178s,@builddir@,$ac_builddir,;t t
27179s,@abs_builddir@,$ac_abs_builddir,;t t
27180s,@top_builddir@,$ac_top_builddir,;t t
27181s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27182s,@INSTALL@,$ac_INSTALL,;t t
27183" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27184 rm -f $tmp/stdin
27185 if test x"$ac_file" != x-; then
27186 mv $tmp/out $ac_file
27187 else
27188 cat $tmp/out
27189 rm -f $tmp/out
27190 fi
27191
27192done
27193_ACEOF
27194cat >>$CONFIG_STATUS <<\_ACEOF
27195
27196#
27197# CONFIG_HEADER section.
27198#
27199
27200# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27201# NAME is the cpp macro being defined and VALUE is the value it is being given.
27202#
27203# ac_d sets the value in "#define NAME VALUE" lines.
27204ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27205ac_dB='[ ].*$,\1#\2'
27206ac_dC=' '
27207ac_dD=',;t'
27208# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27209ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27210ac_uB='$,\1#\2define\3'
27211ac_uC=' '
27212ac_uD=',;t'
27213
27214for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27215 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab 27216 case $ac_file in
b4e70030
JB
27217 - | *:- | *:-:* ) # input from stdin
27218 cat >$tmp/stdin
27219 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27220 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27221 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27222 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27223 * ) ac_file_in=$ac_file.in ;;
c906108c 27224 esac
b4e70030
JB
27225
27226 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27227echo "$as_me: creating $ac_file" >&6;}
27228
27229 # First look for the input files in the build tree, otherwise in the
27230 # src tree.
27231 ac_file_inputs=`IFS=:
27232 for f in $ac_file_in; do
27233 case $f in
27234 -) echo $tmp/stdin ;;
27235 [\\/$]*)
27236 # Absolute (can't be DOS-style, as IFS=:)
27237 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27238echo "$as_me: error: cannot find input file: $f" >&2;}
27239 { (exit 1); exit 1; }; }
27240 # Do quote $f, to prevent DOS paths from being IFS'd.
27241 echo "$f";;
27242 *) # Relative
27243 if test -f "$f"; then
27244 # Build tree
27245 echo "$f"
27246 elif test -f "$srcdir/$f"; then
27247 # Source tree
27248 echo "$srcdir/$f"
27249 else
27250 # /dev/null tree
27251 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27252echo "$as_me: error: cannot find input file: $f" >&2;}
27253 { (exit 1); exit 1; }; }
27254 fi;;
27255 esac
27256 done` || { (exit 1); exit 1; }
27257 # Remove the trailing spaces.
27258 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27259
27260_ACEOF
27261
27262# Transform confdefs.h into two sed scripts, `conftest.defines' and
27263# `conftest.undefs', that substitutes the proper values into
27264# config.h.in to produce config.h. The first handles `#define'
27265# templates, and the second `#undef' templates.
27266# And first: Protect against being on the right side of a sed subst in
27267# config.status. Protect against being in an unquoted here document
27268# in config.status.
27269rm -f conftest.defines conftest.undefs
27270# Using a here document instead of a string reduces the quoting nightmare.
27271# Putting comments in sed scripts is not portable.
27272#
27273# `end' is used to avoid that the second main sed command (meant for
27274# 0-ary CPP macros) applies to n-ary macro definitions.
27275# See the Autoconf documentation for `clear'.
27276cat >confdef2sed.sed <<\_ACEOF
27277s/[\\&,]/\\&/g
27278s,[\\$`],\\&,g
27279t clear
27280: clear
27281s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27282t end
27283s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27284: end
27285_ACEOF
27286# If some macros were called several times there might be several times
27287# the same #defines, which is useless. Nevertheless, we may not want to
27288# sort them, since we want the *last* AC-DEFINE to be honored.
27289uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27290sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27291rm -f confdef2sed.sed
27292
27293# This sed command replaces #undef with comments. This is necessary, for
c906108c
SS
27294# example, in the case of _POSIX_SOURCE, which is predefined and required
27295# on some systems where configure will not decide to define it.
b4e70030
JB
27296cat >>conftest.undefs <<\_ACEOF
27297s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27298_ACEOF
27299
27300# Break up conftest.defines because some shells have a limit on the size
27301# of here documents, and old seds have small limits too (100 cmds).
27302echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27303echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27304echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27305echo ' :' >>$CONFIG_STATUS
27306rm -f conftest.tail
27307while grep . conftest.defines >/dev/null
bec39cab 27308do
b4e70030
JB
27309 # Write a limited-size here document to $tmp/defines.sed.
27310 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27311 # Speed up: don't consider the non `#define' lines.
27312 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27313 # Work around the forget-to-reset-the-flag bug.
27314 echo 't clr' >>$CONFIG_STATUS
27315 echo ': clr' >>$CONFIG_STATUS
27316 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 27317 echo 'CEOF
b4e70030
JB
27318 sed -f $tmp/defines.sed $tmp/in >$tmp/out
27319 rm -f $tmp/in
27320 mv $tmp/out $tmp/in
27321' >>$CONFIG_STATUS
27322 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
bec39cab
AC
27323 rm -f conftest.defines
27324 mv conftest.tail conftest.defines
27325done
b4e70030
JB
27326rm -f conftest.defines
27327echo ' fi # grep' >>$CONFIG_STATUS
27328echo >>$CONFIG_STATUS
27329
27330# Break up conftest.undefs because some shells have a limit on the size
27331# of here documents, and old seds have small limits too (100 cmds).
27332echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27333rm -f conftest.tail
27334while grep . conftest.undefs >/dev/null
27335do
27336 # Write a limited-size here document to $tmp/undefs.sed.
27337 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27338 # Speed up: don't consider the non `#undef'
27339 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27340 # Work around the forget-to-reset-the-flag bug.
27341 echo 't clr' >>$CONFIG_STATUS
27342 echo ': clr' >>$CONFIG_STATUS
27343 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27344 echo 'CEOF
27345 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27346 rm -f $tmp/in
27347 mv $tmp/out $tmp/in
27348' >>$CONFIG_STATUS
27349 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27350 rm -f conftest.undefs
27351 mv conftest.tail conftest.undefs
27352done
27353rm -f conftest.undefs
bec39cab
AC
27354
27355cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030
JB
27356 # Let's still pretend it is `configure' which instantiates (i.e., don't
27357 # use $as_me), people would be surprised to read:
27358 # /* config.h. Generated by config.status. */
27359 if test x"$ac_file" = x-; then
27360 echo "/* Generated by configure. */" >$tmp/config.h
27361 else
27362 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27363 fi
27364 cat $tmp/in >>$tmp/config.h
27365 rm -f $tmp/in
bec39cab 27366 if test x"$ac_file" != x-; then
b4e70030 27367 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
bec39cab
AC
27368 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27369echo "$as_me: $ac_file is unchanged" >&6;}
27370 else
b4e70030
JB
27371 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27372$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27373 X"$ac_file" : 'X\(//\)[^/]' \| \
27374 X"$ac_file" : 'X\(//\)$' \| \
27375 X"$ac_file" : 'X\(/\)' \| \
27376 . : '\(.\)' 2>/dev/null ||
27377echo X"$ac_file" |
27378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27379 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27380 /^X\(\/\/\)$/{ s//\1/; q; }
27381 /^X\(\/\).*/{ s//\1/; q; }
27382 s/.*/./; q'`
27383 { if $as_mkdir_p; then
27384 mkdir -p "$ac_dir"
27385 else
27386 as_dir="$ac_dir"
27387 as_dirs=
27388 while test ! -d "$as_dir"; do
27389 as_dirs="$as_dir $as_dirs"
27390 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27391$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27392 X"$as_dir" : 'X\(//\)[^/]' \| \
27393 X"$as_dir" : 'X\(//\)$' \| \
27394 X"$as_dir" : 'X\(/\)' \| \
27395 . : '\(.\)' 2>/dev/null ||
27396echo X"$as_dir" |
27397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27398 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27399 /^X\(\/\/\)$/{ s//\1/; q; }
27400 /^X\(\/\).*/{ s//\1/; q; }
27401 s/.*/./; q'`
27402 done
27403 test ! -n "$as_dirs" || mkdir $as_dirs
27404 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27405echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27406 { (exit 1); exit 1; }; }; }
27407
bec39cab 27408 rm -f $ac_file
b4e70030 27409 mv $tmp/config.h $ac_file
bec39cab
AC
27410 fi
27411 else
b4e70030
JB
27412 cat $tmp/config.h
27413 rm -f $tmp/config.h
bec39cab 27414 fi
e28b3332
DJ
27415# Compute $ac_file's index in $config_headers.
27416_am_stamp_count=1
27417for _am_header in $config_headers :; do
27418 case $_am_header in
27419 $ac_file | $ac_file:* )
27420 break ;;
27421 * )
27422 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27423 esac
27424done
27425echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27426$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27427 X$ac_file : 'X\(//\)[^/]' \| \
27428 X$ac_file : 'X\(//\)$' \| \
27429 X$ac_file : 'X\(/\)' \| \
27430 . : '\(.\)' 2>/dev/null ||
27431echo X$ac_file |
27432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27433 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27434 /^X\(\/\/\)$/{ s//\1/; q; }
27435 /^X\(\/\).*/{ s//\1/; q; }
27436 s/.*/./; q'`/stamp-h$_am_stamp_count
b4e70030
JB
27437done
27438_ACEOF
27439cat >>$CONFIG_STATUS <<\_ACEOF
27440
27441#
27442# CONFIG_LINKS section.
27443#
27444
27445for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
27446 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27447 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 27448
b4e70030
JB
27449 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
27450echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
27451
27452 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
27453 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27454echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27455 { (exit 1); exit 1; }; }
c906108c 27456 fi
b4e70030
JB
27457 rm -f $ac_dest
27458
27459 # Make relative symlinks.
27460 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
27461$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27462 X"$ac_dest" : 'X\(//\)[^/]' \| \
27463 X"$ac_dest" : 'X\(//\)$' \| \
27464 X"$ac_dest" : 'X\(/\)' \| \
27465 . : '\(.\)' 2>/dev/null ||
27466echo X"$ac_dest" |
27467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27468 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27469 /^X\(\/\/\)$/{ s//\1/; q; }
27470 /^X\(\/\).*/{ s//\1/; q; }
27471 s/.*/./; q'`
27472 { if $as_mkdir_p; then
27473 mkdir -p "$ac_dest_dir"
27474 else
27475 as_dir="$ac_dest_dir"
27476 as_dirs=
27477 while test ! -d "$as_dir"; do
27478 as_dirs="$as_dir $as_dirs"
27479 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27480$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27481 X"$as_dir" : 'X\(//\)[^/]' \| \
27482 X"$as_dir" : 'X\(//\)$' \| \
27483 X"$as_dir" : 'X\(/\)' \| \
27484 . : '\(.\)' 2>/dev/null ||
27485echo X"$as_dir" |
27486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27488 /^X\(\/\/\)$/{ s//\1/; q; }
27489 /^X\(\/\).*/{ s//\1/; q; }
27490 s/.*/./; q'`
27491 done
27492 test ! -n "$as_dirs" || mkdir $as_dirs
27493 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
27494echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
27495 { (exit 1); exit 1; }; }; }
27496
27497 ac_builddir=.
27498
27499if test "$ac_dest_dir" != .; then
27500 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
27501 # A "../" for each directory in $ac_dir_suffix.
27502 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27503else
27504 ac_dir_suffix= ac_top_builddir=
27505fi
27506
27507case $srcdir in
27508 .) # No --srcdir option. We are building in place.
27509 ac_srcdir=.
27510 if test -z "$ac_top_builddir"; then
27511 ac_top_srcdir=.
27512 else
27513 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27514 fi ;;
27515 [\\/]* | ?:[\\/]* ) # Absolute path.
27516 ac_srcdir=$srcdir$ac_dir_suffix;
27517 ac_top_srcdir=$srcdir ;;
27518 *) # Relative path.
27519 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27520 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27521esac
27522
27523# Do not use `cd foo && pwd` to compute absolute paths, because
27524# the directories may not exist.
27525case `pwd` in
27526.) ac_abs_builddir="$ac_dest_dir";;
27527*)
27528 case "$ac_dest_dir" in
27529 .) ac_abs_builddir=`pwd`;;
27530 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
27531 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
27532 esac;;
27533esac
27534case $ac_abs_builddir in
27535.) ac_abs_top_builddir=${ac_top_builddir}.;;
27536*)
27537 case ${ac_top_builddir}. in
27538 .) ac_abs_top_builddir=$ac_abs_builddir;;
27539 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27540 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27541 esac;;
27542esac
27543case $ac_abs_builddir in
27544.) ac_abs_srcdir=$ac_srcdir;;
27545*)
27546 case $ac_srcdir in
27547 .) ac_abs_srcdir=$ac_abs_builddir;;
27548 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27549 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27550 esac;;
27551esac
27552case $ac_abs_builddir in
27553.) ac_abs_top_srcdir=$ac_top_srcdir;;
27554*)
27555 case $ac_top_srcdir in
27556 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27557 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27558 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27559 esac;;
27560esac
27561
bec39cab
AC
27562
27563 case $srcdir in
27564 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
b4e70030 27565 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c 27566 esac
b4e70030
JB
27567
27568 # Try a symlink, then a hard link, then a copy.
27569 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
27570 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
27571 cp -p $srcdir/$ac_source $ac_dest ||
27572 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
27573echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
bec39cab 27574 { (exit 1); exit 1; }; }
b4e70030
JB
27575done
27576_ACEOF
27577cat >>$CONFIG_STATUS <<\_ACEOF
27578
27579#
27580# CONFIG_COMMANDS section.
27581#
27582for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27583 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27584 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27585 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27586$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27587 X"$ac_dest" : 'X\(//\)[^/]' \| \
27588 X"$ac_dest" : 'X\(//\)$' \| \
27589 X"$ac_dest" : 'X\(/\)' \| \
27590 . : '\(.\)' 2>/dev/null ||
27591echo X"$ac_dest" |
27592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27593 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27594 /^X\(\/\/\)$/{ s//\1/; q; }
27595 /^X\(\/\).*/{ s//\1/; q; }
27596 s/.*/./; q'`
27597 { if $as_mkdir_p; then
27598 mkdir -p "$ac_dir"
27599 else
27600 as_dir="$ac_dir"
27601 as_dirs=
27602 while test ! -d "$as_dir"; do
27603 as_dirs="$as_dir $as_dirs"
27604 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27605$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27606 X"$as_dir" : 'X\(//\)[^/]' \| \
27607 X"$as_dir" : 'X\(//\)$' \| \
27608 X"$as_dir" : 'X\(/\)' \| \
27609 . : '\(.\)' 2>/dev/null ||
27610echo X"$as_dir" |
27611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27613 /^X\(\/\/\)$/{ s//\1/; q; }
27614 /^X\(\/\).*/{ s//\1/; q; }
27615 s/.*/./; q'`
27616 done
27617 test ! -n "$as_dirs" || mkdir $as_dirs
27618 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27619echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27620 { (exit 1); exit 1; }; }; }
27621
27622 ac_builddir=.
27623
27624if test "$ac_dir" != .; then
27625 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27626 # A "../" for each directory in $ac_dir_suffix.
27627 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27628else
27629 ac_dir_suffix= ac_top_builddir=
27630fi
27631
27632case $srcdir in
27633 .) # No --srcdir option. We are building in place.
27634 ac_srcdir=.
27635 if test -z "$ac_top_builddir"; then
27636 ac_top_srcdir=.
27637 else
27638 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27639 fi ;;
27640 [\\/]* | ?:[\\/]* ) # Absolute path.
27641 ac_srcdir=$srcdir$ac_dir_suffix;
27642 ac_top_srcdir=$srcdir ;;
27643 *) # Relative path.
27644 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27645 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27646esac
27647
27648# Do not use `cd foo && pwd` to compute absolute paths, because
27649# the directories may not exist.
27650case `pwd` in
27651.) ac_abs_builddir="$ac_dir";;
27652*)
27653 case "$ac_dir" in
27654 .) ac_abs_builddir=`pwd`;;
27655 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27656 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27657 esac;;
27658esac
27659case $ac_abs_builddir in
27660.) ac_abs_top_builddir=${ac_top_builddir}.;;
27661*)
27662 case ${ac_top_builddir}. in
27663 .) ac_abs_top_builddir=$ac_abs_builddir;;
27664 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27665 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27666 esac;;
27667esac
27668case $ac_abs_builddir in
27669.) ac_abs_srcdir=$ac_srcdir;;
27670*)
27671 case $ac_srcdir in
27672 .) ac_abs_srcdir=$ac_abs_builddir;;
27673 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27674 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27675 esac;;
27676esac
27677case $ac_abs_builddir in
27678.) ac_abs_top_srcdir=$ac_top_srcdir;;
27679*)
27680 case $ac_top_srcdir in
27681 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27682 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27683 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27684 esac;;
27685esac
bec39cab 27686
bec39cab 27687
b4e70030
JB
27688 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27689echo "$as_me: executing $ac_dest commands" >&6;}
27690 case $ac_dest in
e28b3332
DJ
27691 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27692 # Strip MF so we end up with the name of the file.
27693 mf=`echo "$mf" | sed -e 's/:.*$//'`
27694 # Check whether this is an Automake generated Makefile or not.
27695 # We used to match only the files named `Makefile.in', but
27696 # some people rename them; so instead we look at the file content.
27697 # Grep'ing the first line is not enough: some people post-process
27698 # each Makefile.in and add a new line on top of each file to say so.
27699 # So let's grep whole file.
27700 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27701 dirpart=`(dirname "$mf") 2>/dev/null ||
27702$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27703 X"$mf" : 'X\(//\)[^/]' \| \
27704 X"$mf" : 'X\(//\)$' \| \
27705 X"$mf" : 'X\(/\)' \| \
27706 . : '\(.\)' 2>/dev/null ||
27707echo X"$mf" |
27708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27709 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27710 /^X\(\/\/\)$/{ s//\1/; q; }
27711 /^X\(\/\).*/{ s//\1/; q; }
27712 s/.*/./; q'`
27713 else
27714 continue
27715 fi
27716 # Extract the definition of DEPDIR, am__include, and am__quote
27717 # from the Makefile without running `make'.
27718 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27719 test -z "$DEPDIR" && continue
27720 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27721 test -z "am__include" && continue
27722 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27723 # When using ansi2knr, U may be empty or an underscore; expand it
27724 U=`sed -n 's/^U = //p' < "$mf"`
27725 # Find all dependency output files, they are included files with
27726 # $(DEPDIR) in their names. We invoke sed twice because it is the
27727 # simplest approach to changing $(DEPDIR) to its actual value in the
27728 # expansion.
27729 for file in `sed -n "
27730 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27731 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27732 # Make sure the directory exists.
27733 test -f "$dirpart/$file" && continue
27734 fdir=`(dirname "$file") 2>/dev/null ||
27735$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27736 X"$file" : 'X\(//\)[^/]' \| \
27737 X"$file" : 'X\(//\)$' \| \
27738 X"$file" : 'X\(/\)' \| \
27739 . : '\(.\)' 2>/dev/null ||
27740echo X"$file" |
27741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27743 /^X\(\/\/\)$/{ s//\1/; q; }
27744 /^X\(\/\).*/{ s//\1/; q; }
27745 s/.*/./; q'`
27746 { if $as_mkdir_p; then
27747 mkdir -p $dirpart/$fdir
27748 else
27749 as_dir=$dirpart/$fdir
27750 as_dirs=
27751 while test ! -d "$as_dir"; do
27752 as_dirs="$as_dir $as_dirs"
27753 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27754$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27755 X"$as_dir" : 'X\(//\)[^/]' \| \
27756 X"$as_dir" : 'X\(//\)$' \| \
27757 X"$as_dir" : 'X\(/\)' \| \
27758 . : '\(.\)' 2>/dev/null ||
27759echo X"$as_dir" |
27760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27762 /^X\(\/\/\)$/{ s//\1/; q; }
27763 /^X\(\/\).*/{ s//\1/; q; }
27764 s/.*/./; q'`
27765 done
27766 test ! -n "$as_dirs" || mkdir $as_dirs
27767 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27768echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27769 { (exit 1); exit 1; }; }; }
27770
27771 # echo "creating $dirpart/$file"
27772 echo '# dummy' > "$dirpart/$file"
27773 done
27774done
4e8d927d 27775 ;;
b4e70030 27776 default )
c906108c 27777
db985757 27778sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
c906108c
SS
27779mv -f Makefile.tmp Makefile
27780
2acceee2 27781
c906108c
SS
27782case x$CONFIG_HEADERS in
27783xconfig.h:config.in)
27784echo > stamp-h ;;
27785esac
bec39cab
AC
27786 ;;
27787 esac
b4e70030
JB
27788done
27789_ACEOF
c906108c 27790
b4e70030 27791cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
27792
27793{ (exit 0); exit 0; }
27794_ACEOF
c906108c 27795chmod +x $CONFIG_STATUS
bec39cab
AC
27796ac_clean_files=$ac_clean_files_save
27797
27798
27799# configure is writing to config.log, and then calls config.status.
27800# config.status does its own redirection, appending to config.log.
27801# Unfortunately, on DOS this fails, as config.log is still kept open
27802# by configure, so config.status won't be able to write to it; its
27803# output is simply discarded. So we exec the FD to /dev/null,
27804# effectively closing config.log, so it can be properly (re)opened and
27805# appended to by config.status. When coming back to configure, we
27806# need to make the FD available again.
27807if test "$no_create" != yes; then
27808 ac_cs_success=:
27809 ac_config_status_args=
27810 test "$silent" = yes &&
27811 ac_config_status_args="$ac_config_status_args --quiet"
27812 exec 5>/dev/null
27813 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27814 exec 5>>config.log
27815 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27816 # would make configure fail if this is the last instruction.
27817 $ac_cs_success || { (exit 1); exit 1; }
27818fi
c906108c 27819
bec39cab 27820#
fdc59709 27821# CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
bec39cab 27822#
c906108c
SS
27823if test "$no_recursion" != yes; then
27824
27825 # Remove --cache-file and --srcdir arguments so they do not pile up.
27826 ac_sub_configure_args=
27827 ac_prev=
fdc59709
PB
27828 eval "set x $ac_configure_args"
27829 shift
27830 for ac_arg
27831 do
c906108c
SS
27832 if test -n "$ac_prev"; then
27833 ac_prev=
27834 continue
27835 fi
bec39cab 27836 case $ac_arg in
c906108c
SS
27837 -cache-file | --cache-file | --cache-fil | --cache-fi \
27838 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27839 ac_prev=cache_file ;;
27840 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
27841 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27842 | --c=*)
27843 ;;
27844 --config-cache | -C)
c906108c
SS
27845 ;;
27846 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27847 ac_prev=srcdir ;;
27848 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27849 ;;
bec39cab
AC
27850 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27851 ac_prev=prefix ;;
27852 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27853 ;;
fdc59709
PB
27854 *)
27855 case $ac_arg in
27856 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27857 esac
27858 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
c906108c
SS
27859 esac
27860 done
27861
bec39cab
AC
27862 # Always prepend --prefix to ensure using the same prefix
27863 # in subdir configurations.
fdc59709
PB
27864 ac_arg="--prefix=$prefix"
27865 case $ac_arg in
27866 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27867 esac
27868 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
bec39cab 27869
b4e70030 27870 ac_popdir=`pwd`
bec39cab 27871 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
27872
27873 # Do not complain, so a configure script can configure whichever
27874 # parts of a large source tree are present.
fdc59709 27875 test -d "$srcdir/$ac_dir" || continue
c906108c 27876
b4e70030
JB
27877 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
27878echo "$as_me: configuring in $ac_dir" >&6;}
27879 { if $as_mkdir_p; then
27880 mkdir -p "$ac_dir"
27881 else
27882 as_dir="$ac_dir"
bec39cab 27883 as_dirs=
b4e70030
JB
27884 while test ! -d "$as_dir"; do
27885 as_dirs="$as_dir $as_dirs"
27886 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
27887$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27888 X"$as_dir" : 'X\(//\)[^/]' \| \
27889 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
27890 X"$as_dir" : 'X\(/\)' \| \
27891 . : '\(.\)' 2>/dev/null ||
bec39cab 27892echo X"$as_dir" |
b4e70030
JB
27893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27894 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27895 /^X\(\/\/\)$/{ s//\1/; q; }
27896 /^X\(\/\).*/{ s//\1/; q; }
27897 s/.*/./; q'`
bec39cab 27898 done
b4e70030
JB
27899 test ! -n "$as_dirs" || mkdir $as_dirs
27900 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27901echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 27902 { (exit 1); exit 1; }; }; }
b4e70030 27903
bec39cab
AC
27904 ac_builddir=.
27905
b4e70030 27906if test "$ac_dir" != .; then
bec39cab 27907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
27908 # A "../" for each directory in $ac_dir_suffix.
27909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27910else
27911 ac_dir_suffix= ac_top_builddir=
27912fi
bec39cab
AC
27913
27914case $srcdir in
b4e70030 27915 .) # No --srcdir option. We are building in place.
bec39cab 27916 ac_srcdir=.
b4e70030
JB
27917 if test -z "$ac_top_builddir"; then
27918 ac_top_srcdir=.
27919 else
27920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27921 fi ;;
27922 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 27923 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
27924 ac_top_srcdir=$srcdir ;;
27925 *) # Relative path.
27926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27928esac
27929
27930# Do not use `cd foo && pwd` to compute absolute paths, because
27931# the directories may not exist.
27932case `pwd` in
27933.) ac_abs_builddir="$ac_dir";;
27934*)
27935 case "$ac_dir" in
27936 .) ac_abs_builddir=`pwd`;;
27937 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27938 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27939 esac;;
27940esac
27941case $ac_abs_builddir in
27942.) ac_abs_top_builddir=${ac_top_builddir}.;;
27943*)
27944 case ${ac_top_builddir}. in
27945 .) ac_abs_top_builddir=$ac_abs_builddir;;
27946 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27947 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27948 esac;;
27949esac
27950case $ac_abs_builddir in
27951.) ac_abs_srcdir=$ac_srcdir;;
27952*)
27953 case $ac_srcdir in
27954 .) ac_abs_srcdir=$ac_abs_builddir;;
27955 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27956 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27957 esac;;
27958esac
27959case $ac_abs_builddir in
27960.) ac_abs_top_srcdir=$ac_top_srcdir;;
27961*)
27962 case $ac_top_srcdir in
27963 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27964 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27965 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27966 esac;;
bec39cab 27967esac
c906108c 27968
c906108c 27969
fdc59709 27970 cd "$ac_dir"
c906108c
SS
27971
27972 # Check for guested configure; otherwise get Cygnus style configure.
fdc59709
PB
27973 if test -f "$ac_srcdir/configure.gnu"; then
27974 ac_sub_configure=$ac_srcdir/configure.gnu
27975 elif test -f "$ac_srcdir/configure"; then
27976 ac_sub_configure=$ac_srcdir/configure
27977 elif test -f "$ac_srcdir/configure.in"; then
27978 # This should be Cygnus configure.
27979 ac_sub_configure=$ac_aux_dir/configure
c906108c 27980 else
bec39cab
AC
27981 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27982echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
27983 ac_sub_configure=
27984 fi
27985
27986 # The recursion is here.
27987 if test -n "$ac_sub_configure"; then
c906108c 27988 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
27989 case $cache_file in
27990 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
b4e70030
JB
27991 *) # Relative path.
27992 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 27993 esac
c906108c 27994
fdc59709
PB
27995 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27996echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 27997 # The eval makes quoting arguments work.
fdc59709
PB
27998 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27999 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
bec39cab
AC
28000 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
28001echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
28002 { (exit 1); exit 1; }; }
c906108c
SS
28003 fi
28004
fdc59709 28005 cd "$ac_popdir"
c906108c
SS
28006 done
28007fi
28008
28009
28010exit 0
This page took 2.354023 seconds and 4 git commands to generate.