* acinclude.m4: Include ../config/tcl.m4 to pick up
[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"
5062cc19 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_PATCH_LEVEL TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_INCLUDE TCL_LIBRARY TCL_DEPS TK_VERSION TK_BIN_DIR TK_SRC_DIR TK_LIB_FILE TK_LIB_FLAG TK_LIB_SPEC TK_STUB_LIB_FILE TK_STUB_LIB_FLAG TK_STUB_LIB_SPEC TK_INCLUDE TK_LIBRARY TK_DEPS TK_XINCLUDES X_CFLAGS X_LDFLAGS X_LIBS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h 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.
5062cc19
KS
897 --with-tcl directory containing tcl configuration (tclConfig.sh)
898 --with-tk directory containing tk configuration (tkConfig.sh)
bec39cab
AC
899 --with-x use the X Window System
900 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
901
902Some influential environment variables:
903 CC C compiler command
904 CFLAGS C compiler flags
905 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
906 nonstandard directory <lib dir>
b4e70030
JB
907 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
908 headers in a nonstandard directory <include dir>
bec39cab
AC
909 CPP C preprocessor
910
911Use these variables to override the choices made by `configure' or to help
912it to find libraries and programs with nonstandard names/locations.
913
914_ACEOF
915fi
916
917if test "$ac_init_help" = "recursive"; then
918 # If there are subdirs, report their specific --help.
b4e70030 919 ac_popdir=`pwd`
bec39cab
AC
920 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
921 test -d $ac_dir || continue
922 ac_builddir=.
923
b4e70030 924if test "$ac_dir" != .; then
bec39cab 925 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
926 # A "../" for each directory in $ac_dir_suffix.
927 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
928else
929 ac_dir_suffix= ac_top_builddir=
930fi
bec39cab
AC
931
932case $srcdir in
b4e70030 933 .) # No --srcdir option. We are building in place.
bec39cab 934 ac_srcdir=.
b4e70030
JB
935 if test -z "$ac_top_builddir"; then
936 ac_top_srcdir=.
937 else
938 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
939 fi ;;
940 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 941 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
942 ac_top_srcdir=$srcdir ;;
943 *) # Relative path.
944 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
945 ac_top_srcdir=$ac_top_builddir$srcdir ;;
946esac
947
948# Do not use `cd foo && pwd` to compute absolute paths, because
949# the directories may not exist.
950case `pwd` in
951.) ac_abs_builddir="$ac_dir";;
952*)
953 case "$ac_dir" in
954 .) ac_abs_builddir=`pwd`;;
955 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
956 *) ac_abs_builddir=`pwd`/"$ac_dir";;
957 esac;;
958esac
959case $ac_abs_builddir in
960.) ac_abs_top_builddir=${ac_top_builddir}.;;
961*)
962 case ${ac_top_builddir}. in
963 .) ac_abs_top_builddir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
965 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
966 esac;;
967esac
968case $ac_abs_builddir in
969.) ac_abs_srcdir=$ac_srcdir;;
970*)
971 case $ac_srcdir in
972 .) ac_abs_srcdir=$ac_abs_builddir;;
973 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
974 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
975 esac;;
976esac
977case $ac_abs_builddir in
978.) ac_abs_top_srcdir=$ac_top_srcdir;;
979*)
980 case $ac_top_srcdir in
981 .) ac_abs_top_srcdir=$ac_abs_builddir;;
982 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
983 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
984 esac;;
bec39cab
AC
985esac
986
b4e70030
JB
987 cd $ac_dir
988 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab 989 if test -f $ac_srcdir/configure.gnu; then
b4e70030 990 echo
bec39cab
AC
991 $SHELL $ac_srcdir/configure.gnu --help=recursive
992 elif test -f $ac_srcdir/configure; then
b4e70030 993 echo
bec39cab 994 $SHELL $ac_srcdir/configure --help=recursive
b4e70030
JB
995 elif test -f $ac_srcdir/configure.ac ||
996 test -f $ac_srcdir/configure.in; then
997 echo
998 $ac_configure --help
3ace7edb 999 else
bec39cab 1000 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
b4e70030
JB
1001 fi
1002 cd $ac_popdir
bec39cab
AC
1003 done
1004fi
1005
b4e70030 1006test -n "$ac_init_help" && exit 0
bec39cab
AC
1007if $ac_init_version; then
1008 cat <<\_ACEOF
1009
b4e70030 1010Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
1011This configure script is free software; the Free Software Foundation
1012gives unlimited permission to copy, distribute and modify it.
1013_ACEOF
b4e70030 1014 exit 0
bec39cab 1015fi
b4e70030
JB
1016exec 5>config.log
1017cat >&5 <<_ACEOF
bec39cab
AC
1018This file contains any messages produced by compilers while
1019running configure, to aid debugging if configure makes a mistake.
1020
1021It was created by $as_me, which was
b4e70030 1022generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
1023
1024 $ $0 $@
1025
1026_ACEOF
1027{
1028cat <<_ASUNAME
1029## --------- ##
1030## Platform. ##
1031## --------- ##
1032
1033hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1034uname -m = `(uname -m) 2>/dev/null || echo unknown`
1035uname -r = `(uname -r) 2>/dev/null || echo unknown`
1036uname -s = `(uname -s) 2>/dev/null || echo unknown`
1037uname -v = `(uname -v) 2>/dev/null || echo unknown`
1038
1039/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1040/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1041
1042/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1043/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1044/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
b4e70030 1045hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
bec39cab
AC
1046/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1047/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1048/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1049
1050_ASUNAME
1051
1052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1053for as_dir in $PATH
1054do
1055 IFS=$as_save_IFS
1056 test -z "$as_dir" && as_dir=.
1057 echo "PATH: $as_dir"
1058done
1059
1060} >&5
1061
1062cat >&5 <<_ACEOF
1063
1064
1065## ----------- ##
1066## Core tests. ##
1067## ----------- ##
1068
1069_ACEOF
1070
1071
1072# Keep a trace of the command line.
1073# Strip out --no-create and --no-recursion so they do not pile up.
1074# Strip out --silent because we don't want to record it for future runs.
1075# Also quote any args containing shell meta-characters.
1076# Make two passes to allow for proper duplicate-argument suppression.
1077ac_configure_args=
1078ac_configure_args0=
1079ac_configure_args1=
1080ac_sep=
1081ac_must_keep_next=false
1082for ac_pass in 1 2
1083do
1084 for ac_arg
1085 do
1086 case $ac_arg in
1087 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1090 continue ;;
b4e70030 1091 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
bec39cab
AC
1092 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1093 esac
1094 case $ac_pass in
1095 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1096 2)
1097 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1098 if test $ac_must_keep_next = true; then
1099 ac_must_keep_next=false # Got value, back to normal.
1100 else
1101 case $ac_arg in
1102 *=* | --config-cache | -C | -disable-* | --disable-* \
1103 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1104 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1105 | -with-* | --with-* | -without-* | --without-* | --x)
1106 case "$ac_configure_args0 " in
1107 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1108 esac
1109 ;;
1110 -* ) ac_must_keep_next=true ;;
1111 esac
1112 fi
1113 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1114 # Get rid of the leading space.
1115 ac_sep=" "
1116 ;;
1117 esac
1118 done
1119done
1120$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1121$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1122
1123# When interrupted or exit'd, cleanup temporary files, and complete
1124# config.log. We remove comments because anyway the quotes in there
1125# would cause problems or look ugly.
b4e70030
JB
1126# WARNING: Be sure not to use single quotes in there, as some shells,
1127# such as our DU 5.0 friend, will then `close' the trap.
bec39cab
AC
1128trap 'exit_status=$?
1129 # Save into config.log some information that might help in debugging.
1130 {
1131 echo
1132
1133 cat <<\_ASBOX
1134## ---------------- ##
1135## Cache variables. ##
1136## ---------------- ##
1137_ASBOX
1138 echo
1139 # The following way of writing the cache mishandles newlines in values,
b4e70030 1140{
bec39cab 1141 (set) 2>&1 |
b4e70030
JB
1142 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1143 *ac_space=\ *)
bec39cab 1144 sed -n \
b4e70030
JB
1145 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1146 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1147 ;;
bec39cab 1148 *)
b4e70030
JB
1149 sed -n \
1150 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 1151 ;;
b4e70030
JB
1152 esac;
1153}
bec39cab
AC
1154 echo
1155
1156 cat <<\_ASBOX
1157## ----------------- ##
1158## Output variables. ##
1159## ----------------- ##
1160_ASBOX
1161 echo
1162 for ac_var in $ac_subst_vars
1163 do
b4e70030
JB
1164 eval ac_val=$`echo $ac_var`
1165 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1166 done | sort
1167 echo
1168
1169 if test -n "$ac_subst_files"; then
1170 cat <<\_ASBOX
b4e70030
JB
1171## ------------- ##
1172## Output files. ##
1173## ------------- ##
bec39cab
AC
1174_ASBOX
1175 echo
1176 for ac_var in $ac_subst_files
1177 do
b4e70030
JB
1178 eval ac_val=$`echo $ac_var`
1179 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1180 done | sort
1181 echo
1182 fi
1183
1184 if test -s confdefs.h; then
1185 cat <<\_ASBOX
1186## ----------- ##
1187## confdefs.h. ##
1188## ----------- ##
1189_ASBOX
1190 echo
b4e70030 1191 sed "/^$/d" confdefs.h | sort
bec39cab 1192 echo
3ace7edb 1193 fi
bec39cab
AC
1194 test "$ac_signal" != 0 &&
1195 echo "$as_me: caught signal $ac_signal"
1196 echo "$as_me: exit $exit_status"
1197 } >&5
b4e70030
JB
1198 rm -f core *.core &&
1199 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 1200 exit $exit_status
b4e70030 1201 ' 0
bec39cab
AC
1202for ac_signal in 1 2 13 15; do
1203 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1204done
1205ac_signal=0
1206
1207# confdefs.h avoids OS command line length limits that DEFS can exceed.
b4e70030
JB
1208rm -rf conftest* confdefs.h
1209# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1210echo >confdefs.h
bec39cab
AC
1211
1212# Predefined preprocessor variables.
1213
1214cat >>confdefs.h <<_ACEOF
1215#define PACKAGE_NAME "$PACKAGE_NAME"
1216_ACEOF
1217
1218
1219cat >>confdefs.h <<_ACEOF
1220#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1221_ACEOF
1222
1223
1224cat >>confdefs.h <<_ACEOF
1225#define PACKAGE_VERSION "$PACKAGE_VERSION"
1226_ACEOF
1227
1228
1229cat >>confdefs.h <<_ACEOF
1230#define PACKAGE_STRING "$PACKAGE_STRING"
1231_ACEOF
1232
1233
1234cat >>confdefs.h <<_ACEOF
1235#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1236_ACEOF
1237
1238
1239# Let the site file select an alternate cache file if it wants to.
1240# Prefer explicitly selected file to automatically selected ones.
b4e70030
JB
1241if test -z "$CONFIG_SITE"; then
1242 if test "x$prefix" != xNONE; then
1243 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1244 else
1245 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1246 fi
c906108c 1247fi
b4e70030 1248for ac_site_file in $CONFIG_SITE; do
c906108c 1249 if test -r "$ac_site_file"; then
bec39cab
AC
1250 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1251echo "$as_me: loading site script $ac_site_file" >&6;}
1252 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1253 . "$ac_site_file"
1254 fi
1255done
1256
1257if test -r "$cache_file"; then
bec39cab
AC
1258 # Some versions of bash will fail to source /dev/null (special
1259 # files actually), so we avoid doing that.
1260 if test -f "$cache_file"; then
1261 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1262echo "$as_me: loading cache $cache_file" >&6;}
1263 case $cache_file in
1264 [\\/]* | ?:[\\/]* ) . $cache_file;;
1265 *) . ./$cache_file;;
1266 esac
1267 fi
c906108c 1268else
bec39cab
AC
1269 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1270echo "$as_me: creating cache $cache_file" >&6;}
1271 >$cache_file
1272fi
1273
1274# Check that the precious variables saved in the cache have kept the same
1275# value.
1276ac_cache_corrupted=false
b4e70030
JB
1277for ac_var in `(set) 2>&1 |
1278 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
bec39cab
AC
1279 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1280 eval ac_new_set=\$ac_env_${ac_var}_set
b4e70030
JB
1281 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1282 eval ac_new_val="\$ac_env_${ac_var}_value"
bec39cab
AC
1283 case $ac_old_set,$ac_new_set in
1284 set,)
1285 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1286echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1287 ac_cache_corrupted=: ;;
1288 ,set)
1289 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1290echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1291 ac_cache_corrupted=: ;;
1292 ,);;
1293 *)
1294 if test "x$ac_old_val" != "x$ac_new_val"; then
fdc59709
PB
1295 # differences in whitespace do not lead to failure.
1296 ac_old_val_w=`echo x $ac_old_val`
1297 ac_new_val_w=`echo x $ac_new_val`
1298 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1299 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
bec39cab 1300echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
fdc59709
PB
1301 ac_cache_corrupted=:
1302 else
1303 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1304echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1305 eval $ac_var=\$ac_old_val
1306 fi
1307 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1308echo "$as_me: former value: \`$ac_old_val'" >&2;}
1309 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1310echo "$as_me: current value: \`$ac_new_val'" >&2;}
bec39cab
AC
1311 fi;;
1312 esac
1313 # Pass precious variables to config.status.
1314 if test "$ac_new_set" = set; then
1315 case $ac_new_val in
b4e70030
JB
1316 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1317 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1318 *) ac_arg=$ac_var=$ac_new_val ;;
1319 esac
1320 case " $ac_configure_args " in
1321 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1322 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1323 esac
1324 fi
1325done
1326if $ac_cache_corrupted; then
d5af19ba
DJ
1327 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1328echo "$as_me: error: in \`$ac_pwd':" >&2;}
bec39cab
AC
1329 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1330echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1331 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1332echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1333 { (exit 1); exit 1; }; }
c906108c
SS
1334fi
1335
b4e70030
JB
1336ac_ext=c
1337ac_cpp='$CPP $CPPFLAGS'
1338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1340ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1341
1342
783e057b
DJ
1343gl_header_list="$gl_header_list stdint.h"
1344gl_header_list="$gl_header_list wchar.h"
1345gl_header_list="$gl_header_list string.h"
bec39cab
AC
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
bec39cab 1362
d5af19ba
DJ
1363
1364
1365
b4e70030
JB
1366 ac_config_headers="$ac_config_headers config.h:config.in"
1367
1368echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1369echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1370 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
413ccac7 1371if test "${enable_maintainer_mode+set}" = set; then
b4e70030
JB
1372 enableval="$enable_maintainer_mode"
1373 USE_MAINTAINER_MODE=$enableval
413ccac7
AC
1374else
1375 USE_MAINTAINER_MODE=no
b4e70030
JB
1376fi;
1377 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1378echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1379
413ccac7
AC
1380
1381if test $USE_MAINTAINER_MODE = yes; then
1382 MAINTAINER_MODE_TRUE=
1383 MAINTAINER_MODE_FALSE='#'
1384else
1385 MAINTAINER_MODE_TRUE='#'
1386 MAINTAINER_MODE_FALSE=
1387fi
85981d60 1388
413ccac7 1389 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1390
c906108c 1391
bec39cab
AC
1392
1393ac_ext=c
1394ac_cpp='$CPP $CPPFLAGS'
1395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1397ac_compiler_gnu=$ac_cv_c_compiler_gnu
1398if test -n "$ac_tool_prefix"; then
1399 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1400set dummy ${ac_tool_prefix}gcc; ac_word=$2
b4e70030
JB
1401echo "$as_me:$LINENO: checking for $ac_word" >&5
1402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1403if test "${ac_cv_prog_CC+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405else
1406 if test -n "$CC"; then
1407 ac_cv_prog_CC="$CC" # Let the user override the test.
1408else
1409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1410for as_dir in $PATH
1411do
1412 IFS=$as_save_IFS
1413 test -z "$as_dir" && as_dir=.
1414 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1416 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1418 break 2
1419 fi
1420done
1421done
1422
1423fi
1424fi
1425CC=$ac_cv_prog_CC
1426if test -n "$CC"; then
b4e70030
JB
1427 echo "$as_me:$LINENO: result: $CC" >&5
1428echo "${ECHO_T}$CC" >&6
bec39cab 1429else
b4e70030
JB
1430 echo "$as_me:$LINENO: result: no" >&5
1431echo "${ECHO_T}no" >&6
bec39cab
AC
1432fi
1433
1434fi
1435if test -z "$ac_cv_prog_CC"; then
1436 ac_ct_CC=$CC
1437 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1438set dummy gcc; ac_word=$2
b4e70030
JB
1439echo "$as_me:$LINENO: checking for $ac_word" >&5
1440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1441if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1442 echo $ECHO_N "(cached) $ECHO_C" >&6
1443else
1444 if test -n "$ac_ct_CC"; then
1445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1446else
1447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448for as_dir in $PATH
1449do
1450 IFS=$as_save_IFS
1451 test -z "$as_dir" && as_dir=.
1452 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1454 ac_cv_prog_ac_ct_CC="gcc"
1455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1456 break 2
1457 fi
1458done
1459done
1460
1461fi
1462fi
1463ac_ct_CC=$ac_cv_prog_ac_ct_CC
1464if test -n "$ac_ct_CC"; then
b4e70030
JB
1465 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1466echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1467else
b4e70030
JB
1468 echo "$as_me:$LINENO: result: no" >&5
1469echo "${ECHO_T}no" >&6
bec39cab
AC
1470fi
1471
b4e70030 1472 CC=$ac_ct_CC
bec39cab
AC
1473else
1474 CC="$ac_cv_prog_CC"
1475fi
1476
1477if test -z "$CC"; then
b4e70030
JB
1478 if test -n "$ac_tool_prefix"; then
1479 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 1480set dummy ${ac_tool_prefix}cc; ac_word=$2
b4e70030
JB
1481echo "$as_me:$LINENO: checking for $ac_word" >&5
1482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1483if test "${ac_cv_prog_CC+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1485else
1486 if test -n "$CC"; then
1487 ac_cv_prog_CC="$CC" # Let the user override the test.
1488else
bec39cab
AC
1489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490for as_dir in $PATH
1491do
1492 IFS=$as_save_IFS
1493 test -z "$as_dir" && as_dir=.
1494 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1496 ac_cv_prog_CC="${ac_tool_prefix}cc"
1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 break 2
1499 fi
1500done
1501done
1502
c906108c
SS
1503fi
1504fi
bec39cab 1505CC=$ac_cv_prog_CC
c906108c 1506if test -n "$CC"; then
b4e70030
JB
1507 echo "$as_me:$LINENO: result: $CC" >&5
1508echo "${ECHO_T}$CC" >&6
c906108c 1509else
b4e70030
JB
1510 echo "$as_me:$LINENO: result: no" >&5
1511echo "${ECHO_T}no" >&6
c906108c
SS
1512fi
1513
b4e70030
JB
1514fi
1515if test -z "$ac_cv_prog_CC"; then
1516 ac_ct_CC=$CC
1517 # Extract the first word of "cc", so it can be a program name with args.
1518set dummy cc; ac_word=$2
1519echo "$as_me:$LINENO: checking for $ac_word" >&5
1520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1523else
1524 if test -n "$ac_ct_CC"; then
1525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1526else
1527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528for as_dir in $PATH
1529do
1530 IFS=$as_save_IFS
1531 test -z "$as_dir" && as_dir=.
1532 for ac_exec_ext in '' $ac_executable_extensions; do
1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534 ac_cv_prog_ac_ct_CC="cc"
1535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1536 break 2
4e8d927d 1537 fi
b4e70030
JB
1538done
1539done
1540
1541fi
1542fi
1543ac_ct_CC=$ac_cv_prog_ac_ct_CC
1544if test -n "$ac_ct_CC"; then
1545 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1546echo "${ECHO_T}$ac_ct_CC" >&6
1547else
1548 echo "$as_me:$LINENO: result: no" >&5
1549echo "${ECHO_T}no" >&6
1550fi
1551
1552 CC=$ac_ct_CC
1553else
1554 CC="$ac_cv_prog_CC"
1555fi
1556
bec39cab 1557fi
c906108c
SS
1558if test -z "$CC"; then
1559 # Extract the first word of "cc", so it can be a program name with args.
1560set dummy cc; ac_word=$2
b4e70030
JB
1561echo "$as_me:$LINENO: checking for $ac_word" >&5
1562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1563if test "${ac_cv_prog_CC+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1565else
1566 if test -n "$CC"; then
1567 ac_cv_prog_CC="$CC" # Let the user override the test.
1568else
c906108c 1569 ac_prog_rejected=no
bec39cab
AC
1570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1571for as_dir in $PATH
1572do
1573 IFS=$as_save_IFS
1574 test -z "$as_dir" && as_dir=.
1575 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1578 ac_prog_rejected=yes
1579 continue
1580 fi
1581 ac_cv_prog_CC="cc"
1582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1583 break 2
1584 fi
1585done
1586done
1587
c906108c
SS
1588if test $ac_prog_rejected = yes; then
1589 # We found a bogon in the path, so make sure we never use it.
1590 set dummy $ac_cv_prog_CC
1591 shift
bec39cab 1592 if test $# != 0; then
c906108c
SS
1593 # We chose a different compiler from the bogus one.
1594 # However, it has the same basename, so the bogon will be chosen
1595 # first if we set CC to just the basename; use the full file name.
1596 shift
bec39cab 1597 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1598 fi
1599fi
1600fi
1601fi
bec39cab 1602CC=$ac_cv_prog_CC
c906108c 1603if test -n "$CC"; then
b4e70030
JB
1604 echo "$as_me:$LINENO: result: $CC" >&5
1605echo "${ECHO_T}$CC" >&6
c906108c 1606else
b4e70030
JB
1607 echo "$as_me:$LINENO: result: no" >&5
1608echo "${ECHO_T}no" >&6
c906108c
SS
1609fi
1610
bec39cab
AC
1611fi
1612if test -z "$CC"; then
1613 if test -n "$ac_tool_prefix"; then
b4e70030 1614 for ac_prog in cl
bec39cab
AC
1615 do
1616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1617set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b4e70030
JB
1618echo "$as_me:$LINENO: checking for $ac_word" >&5
1619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1620if test "${ac_cv_prog_CC+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1622else
1623 if test -n "$CC"; then
1624 ac_cv_prog_CC="$CC" # Let the user override the test.
1625else
bec39cab
AC
1626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627for as_dir in $PATH
1628do
1629 IFS=$as_save_IFS
1630 test -z "$as_dir" && as_dir=.
1631 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1633 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1635 break 2
1636 fi
1637done
1638done
1639
c906108c
SS
1640fi
1641fi
bec39cab 1642CC=$ac_cv_prog_CC
c906108c 1643if test -n "$CC"; then
b4e70030
JB
1644 echo "$as_me:$LINENO: result: $CC" >&5
1645echo "${ECHO_T}$CC" >&6
c906108c 1646else
b4e70030
JB
1647 echo "$as_me:$LINENO: result: no" >&5
1648echo "${ECHO_T}no" >&6
c906108c 1649fi
bec39cab
AC
1650
1651 test -n "$CC" && break
1652 done
1653fi
1654if test -z "$CC"; then
1655 ac_ct_CC=$CC
b4e70030 1656 for ac_prog in cl
bec39cab
AC
1657do
1658 # Extract the first word of "$ac_prog", so it can be a program name with args.
1659set dummy $ac_prog; ac_word=$2
b4e70030
JB
1660echo "$as_me:$LINENO: checking for $ac_word" >&5
1661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1662if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1664else
1665 if test -n "$ac_ct_CC"; then
1666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1667else
1668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669for as_dir in $PATH
1670do
1671 IFS=$as_save_IFS
1672 test -z "$as_dir" && as_dir=.
1673 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1675 ac_cv_prog_ac_ct_CC="$ac_prog"
1676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677 break 2
c906108c 1678 fi
bec39cab
AC
1679done
1680done
1681
1682fi
1683fi
1684ac_ct_CC=$ac_cv_prog_ac_ct_CC
1685if test -n "$ac_ct_CC"; then
b4e70030
JB
1686 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1687echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1688else
b4e70030
JB
1689 echo "$as_me:$LINENO: result: no" >&5
1690echo "${ECHO_T}no" >&6
c906108c
SS
1691fi
1692
bec39cab
AC
1693 test -n "$ac_ct_CC" && break
1694done
c906108c 1695
b4e70030 1696 CC=$ac_ct_CC
bec39cab
AC
1697fi
1698
1699fi
1700
1701
d5af19ba
DJ
1702test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1703echo "$as_me: error: in \`$ac_pwd':" >&2;}
1704{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
bec39cab
AC
1705See \`config.log' for more details." >&5
1706echo "$as_me: error: no acceptable C compiler found in \$PATH
1707See \`config.log' for more details." >&2;}
d5af19ba 1708 { (exit 1); exit 1; }; }; }
bec39cab
AC
1709
1710# Provide some information about the compiler.
b4e70030
JB
1711echo "$as_me:$LINENO:" \
1712 "checking for C compiler version" >&5
bec39cab 1713ac_compiler=`set X $ac_compile; echo $2`
b4e70030
JB
1714{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1715 (eval $ac_compiler --version </dev/null >&5) 2>&5
bec39cab
AC
1716 ac_status=$?
1717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1718 (exit $ac_status); }
b4e70030
JB
1719{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1720 (eval $ac_compiler -v </dev/null >&5) 2>&5
bec39cab
AC
1721 ac_status=$?
1722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1723 (exit $ac_status); }
b4e70030
JB
1724{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1725 (eval $ac_compiler -V </dev/null >&5) 2>&5
bec39cab
AC
1726 ac_status=$?
1727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1728 (exit $ac_status); }
1729
1730cat >conftest.$ac_ext <<_ACEOF
1731/* confdefs.h. */
1732_ACEOF
1733cat confdefs.h >>conftest.$ac_ext
1734cat >>conftest.$ac_ext <<_ACEOF
1735/* end confdefs.h. */
1736
1737int
1738main ()
1739{
1740
1741 ;
1742 return 0;
1743}
1744_ACEOF
1745ac_clean_files_save=$ac_clean_files
b4e70030 1746ac_clean_files="$ac_clean_files a.out a.exe b.out"
bec39cab
AC
1747# Try to create an executable without -o first, disregard a.out.
1748# It will help us diagnose broken compilers, and finding out an intuition
1749# of exeext.
b4e70030
JB
1750echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1751echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
bec39cab
AC
1752ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1753if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1754 (eval $ac_link_default) 2>&5
1755 ac_status=$?
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }; then
b4e70030
JB
1758 # Find the output, starting from the most likely. This scheme is
1759# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1760# resort.
1761
1762# Be careful to initialize this variable, since it used to be cached.
1763# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1764ac_cv_exeext=
1765# b.out is created by i960 compilers.
1766for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
bec39cab
AC
1767do
1768 test -f "$ac_file" || continue
1769 case $ac_file in
b4e70030
JB
1770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1771 ;;
1772 conftest.$ac_ext )
1773 # This is the source file.
1774 ;;
1775 [ab].out )
1776 # We found the default executable, but exeext='' is most
1777 # certainly right.
1778 break;;
1779 *.* )
1780 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1781 # FIXME: I believe we export ac_cv_exeext for Libtool,
1782 # but it would be cool to find out if it's true. Does anybody
1783 # maintain Libtool? --akim.
1784 export ac_cv_exeext
1785 break;;
1786 * )
1787 break;;
bec39cab
AC
1788 esac
1789done
1790else
1791 echo "$as_me: failed program was:" >&5
1792sed 's/^/| /' conftest.$ac_ext >&5
1793
d5af19ba
DJ
1794{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1795echo "$as_me: error: in \`$ac_pwd':" >&2;}
bec39cab
AC
1796{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1797See \`config.log' for more details." >&5
1798echo "$as_me: error: C compiler cannot create executables
1799See \`config.log' for more details." >&2;}
d5af19ba 1800 { (exit 77); exit 77; }; }; }
bec39cab
AC
1801fi
1802
b4e70030
JB
1803ac_exeext=$ac_cv_exeext
1804echo "$as_me:$LINENO: result: $ac_file" >&5
1805echo "${ECHO_T}$ac_file" >&6
1806
1807# Check the compiler produces executables we can run. If not, either
bec39cab 1808# the compiler is broken, or we cross compile.
b4e70030
JB
1809echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1810echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
bec39cab
AC
1811# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1812# If not cross compiling, check that we can run a simple program.
1813if test "$cross_compiling" != yes; then
1814 if { ac_try='./$ac_file'
1815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1816 (eval $ac_try) 2>&5
1817 ac_status=$?
1818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819 (exit $ac_status); }; }; then
1820 cross_compiling=no
c906108c 1821 else
bec39cab
AC
1822 if test "$cross_compiling" = maybe; then
1823 cross_compiling=yes
1824 else
d5af19ba
DJ
1825 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1826echo "$as_me: error: in \`$ac_pwd':" >&2;}
1827{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
bec39cab
AC
1828If you meant to cross compile, use \`--host'.
1829See \`config.log' for more details." >&5
1830echo "$as_me: error: cannot run C compiled programs.
1831If you meant to cross compile, use \`--host'.
1832See \`config.log' for more details." >&2;}
d5af19ba 1833 { (exit 1); exit 1; }; }; }
bec39cab 1834 fi
c906108c 1835 fi
bec39cab 1836fi
b4e70030
JB
1837echo "$as_me:$LINENO: result: yes" >&5
1838echo "${ECHO_T}yes" >&6
bec39cab 1839
b4e70030
JB
1840rm -f a.out a.exe conftest$ac_cv_exeext b.out
1841ac_clean_files=$ac_clean_files_save
1842# Check the compiler produces executables we can run. If not, either
1843# the compiler is broken, or we cross compile.
1844echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1845echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1846echo "$as_me:$LINENO: result: $cross_compiling" >&5
1847echo "${ECHO_T}$cross_compiling" >&6
4e8d927d 1848
b4e70030
JB
1849echo "$as_me:$LINENO: checking for suffix of executables" >&5
1850echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
bec39cab
AC
1852 (eval $ac_link) 2>&5
1853 ac_status=$?
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }; then
b4e70030
JB
1856 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1857# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1858# work properly (i.e., refer to `conftest.exe'), while it won't with
1859# `rm'.
1860for ac_file in conftest.exe conftest conftest.*; do
1861 test -f "$ac_file" || continue
1862 case $ac_file in
1863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1864 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1865 export ac_cv_exeext
1866 break;;
1867 * ) break;;
1868 esac
1869done
c906108c 1870else
d5af19ba
DJ
1871 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1872echo "$as_me: error: in \`$ac_pwd':" >&2;}
1873{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
bec39cab
AC
1874See \`config.log' for more details." >&5
1875echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1876See \`config.log' for more details." >&2;}
d5af19ba 1877 { (exit 1); exit 1; }; }; }
c906108c 1878fi
c906108c 1879
b4e70030
JB
1880rm -f conftest$ac_cv_exeext
1881echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1882echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1883
b4e70030 1884rm -f conftest.$ac_ext
bec39cab
AC
1885EXEEXT=$ac_cv_exeext
1886ac_exeext=$EXEEXT
b4e70030
JB
1887echo "$as_me:$LINENO: checking for suffix of object files" >&5
1888echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
bec39cab
AC
1889if test "${ac_cv_objext+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1891else
b4e70030
JB
1892 cat >conftest.$ac_ext <<_ACEOF
1893/* confdefs.h. */
1894_ACEOF
1895cat confdefs.h >>conftest.$ac_ext
1896cat >>conftest.$ac_ext <<_ACEOF
1897/* end confdefs.h. */
1898
1899int
1900main ()
1901{
1902
1903 ;
1904 return 0;
1905}
1906_ACEOF
1907rm -f conftest.o conftest.obj
bec39cab
AC
1908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1909 (eval $ac_compile) 2>&5
1910 ac_status=$?
1911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912 (exit $ac_status); }; then
b4e70030 1913 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
bec39cab 1914 case $ac_file in
b4e70030 1915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
bec39cab
AC
1916 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1917 break;;
1918 esac
1919done
c906108c 1920else
bec39cab
AC
1921 echo "$as_me: failed program was:" >&5
1922sed 's/^/| /' conftest.$ac_ext >&5
1923
d5af19ba
DJ
1924{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1925echo "$as_me: error: in \`$ac_pwd':" >&2;}
bec39cab
AC
1926{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1927See \`config.log' for more details." >&5
1928echo "$as_me: error: cannot compute suffix of object files: cannot compile
1929See \`config.log' for more details." >&2;}
d5af19ba 1930 { (exit 1); exit 1; }; }; }
c906108c
SS
1931fi
1932
b4e70030 1933rm -f conftest.$ac_cv_objext conftest.$ac_ext
bec39cab 1934fi
b4e70030
JB
1935echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1936echo "${ECHO_T}$ac_cv_objext" >&6
bec39cab
AC
1937OBJEXT=$ac_cv_objext
1938ac_objext=$OBJEXT
b4e70030
JB
1939echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1940echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
bec39cab
AC
1941if test "${ac_cv_c_compiler_gnu+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1943else
bec39cab
AC
1944 cat >conftest.$ac_ext <<_ACEOF
1945/* confdefs.h. */
1946_ACEOF
1947cat confdefs.h >>conftest.$ac_ext
1948cat >>conftest.$ac_ext <<_ACEOF
1949/* end confdefs.h. */
1950
1951int
1952main ()
1953{
1954#ifndef __GNUC__
1955 choke me
1956#endif
1957
1958 ;
1959 return 0;
1960}
1961_ACEOF
1962rm -f conftest.$ac_objext
1963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1964 (eval $ac_compile) 2>conftest.er1
1965 ac_status=$?
1966 grep -v '^ *+' conftest.er1 >conftest.err
1967 rm -f conftest.er1
1968 cat conftest.err >&5
1969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1970 (exit $ac_status); } &&
b4e70030
JB
1971 { ac_try='test -z "$ac_c_werror_flag"
1972 || test ! -s conftest.err'
bec39cab
AC
1973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1974 (eval $ac_try) 2>&5
1975 ac_status=$?
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); }; } &&
1978 { ac_try='test -s conftest.$ac_objext'
1979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1980 (eval $ac_try) 2>&5
1981 ac_status=$?
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); }; }; then
1984 ac_compiler_gnu=yes
1985else
1986 echo "$as_me: failed program was:" >&5
1987sed 's/^/| /' conftest.$ac_ext >&5
1988
b4e70030 1989ac_compiler_gnu=no
bec39cab
AC
1990fi
1991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1992ac_cv_c_compiler_gnu=$ac_compiler_gnu
1993
1994fi
b4e70030
JB
1995echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1996echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
bec39cab
AC
1997GCC=`test $ac_compiler_gnu = yes && echo yes`
1998ac_test_CFLAGS=${CFLAGS+set}
1999ac_save_CFLAGS=$CFLAGS
b4e70030
JB
2000CFLAGS="-g"
2001echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2002echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
bec39cab
AC
2003if test "${ac_cv_prog_cc_g+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2005else
b4e70030 2006 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
2007/* confdefs.h. */
2008_ACEOF
2009cat confdefs.h >>conftest.$ac_ext
2010cat >>conftest.$ac_ext <<_ACEOF
2011/* end confdefs.h. */
2012
2013int
2014main ()
2015{
2016
2017 ;
2018 return 0;
2019}
2020_ACEOF
2021rm -f conftest.$ac_objext
2022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2023 (eval $ac_compile) 2>conftest.er1
2024 ac_status=$?
2025 grep -v '^ *+' conftest.er1 >conftest.err
2026 rm -f conftest.er1
2027 cat conftest.err >&5
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); } &&
b4e70030
JB
2030 { ac_try='test -z "$ac_c_werror_flag"
2031 || test ! -s conftest.err'
bec39cab
AC
2032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2033 (eval $ac_try) 2>&5
2034 ac_status=$?
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }; } &&
2037 { ac_try='test -s conftest.$ac_objext'
2038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2039 (eval $ac_try) 2>&5
2040 ac_status=$?
2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042 (exit $ac_status); }; }; then
c906108c
SS
2043 ac_cv_prog_cc_g=yes
2044else
bec39cab
AC
2045 echo "$as_me: failed program was:" >&5
2046sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2047
b4e70030 2048ac_cv_prog_cc_g=no
4e8d927d 2049fi
bec39cab
AC
2050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2051fi
b4e70030
JB
2052echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2053echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2054if test "$ac_test_CFLAGS" = set; then
bec39cab 2055 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2056elif test $ac_cv_prog_cc_g = yes; then
2057 if test "$GCC" = yes; then
2058 CFLAGS="-g -O2"
2059 else
2060 CFLAGS="-g"
2061 fi
2062else
2063 if test "$GCC" = yes; then
2064 CFLAGS="-O2"
2065 else
2066 CFLAGS=
2067 fi
2068fi
b4e70030
JB
2069echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2070echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2071if test "${ac_cv_prog_cc_stdc+set}" = set; then
bec39cab
AC
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2073else
b4e70030 2074 ac_cv_prog_cc_stdc=no
bec39cab
AC
2075ac_save_CC=$CC
2076cat >conftest.$ac_ext <<_ACEOF
2077/* confdefs.h. */
2078_ACEOF
2079cat confdefs.h >>conftest.$ac_ext
2080cat >>conftest.$ac_ext <<_ACEOF
2081/* end confdefs.h. */
c906108c
SS
2082#include <stdarg.h>
2083#include <stdio.h>
2084#include <sys/types.h>
2085#include <sys/stat.h>
2086/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2087struct buf { int x; };
2088FILE * (*rcsopen) (struct buf *, struct stat *, int);
2089static char *e (p, i)
2090 char **p;
2091 int i;
2092{
2093 return p[i];
2094}
2095static char *f (char * (*g) (char **, int), char **p, ...)
2096{
2097 char *s;
2098 va_list v;
2099 va_start (v,p);
2100 s = g (p, va_arg (v,int));
2101 va_end (v);
2102 return s;
2103}
bec39cab
AC
2104
2105/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2106 function prototypes and stuff, but not '\xHH' hex character constants.
2107 These don't provoke an error unfortunately, instead are silently treated
b4e70030 2108 as 'x'. The following induces an error, until -std1 is added to get
bec39cab
AC
2109 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2110 array size at least. It's necessary to write '\x00'==0 to get something
b4e70030 2111 that's true only with -std1. */
bec39cab
AC
2112int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2113
c906108c
SS
2114int test (int i, double x);
2115struct s1 {int (*f) (int a);};
2116struct s2 {int (*f) (double a);};
2117int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2118int argc;
2119char **argv;
bec39cab
AC
2120int
2121main ()
2122{
c906108c 2123return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2124 ;
2125 return 0;
2126}
2127_ACEOF
b4e70030
JB
2128# Don't try gcc -ansi; that turns off useful extensions and
2129# breaks some systems' header files.
2130# AIX -qlanglvl=ansi
2131# Ultrix and OSF/1 -std1
2132# HP-UX 10.20 and later -Ae
2133# HP-UX older versions -Aa -D_HPUX_SOURCE
2134# SVR4 -Xc -D__EXTENSIONS__
2135for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
2136do
2137 CC="$ac_save_CC $ac_arg"
2138 rm -f conftest.$ac_objext
2139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2140 (eval $ac_compile) 2>conftest.er1
2141 ac_status=$?
2142 grep -v '^ *+' conftest.er1 >conftest.err
2143 rm -f conftest.er1
2144 cat conftest.err >&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); } &&
b4e70030
JB
2147 { ac_try='test -z "$ac_c_werror_flag"
2148 || test ! -s conftest.err'
bec39cab
AC
2149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2150 (eval $ac_try) 2>&5
2151 ac_status=$?
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }; } &&
2154 { ac_try='test -s conftest.$ac_objext'
2155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156 (eval $ac_try) 2>&5
2157 ac_status=$?
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; }; then
b4e70030
JB
2160 ac_cv_prog_cc_stdc=$ac_arg
2161break
c906108c 2162else
bec39cab
AC
2163 echo "$as_me: failed program was:" >&5
2164sed 's/^/| /' conftest.$ac_ext >&5
2165
c906108c 2166fi
bec39cab 2167rm -f conftest.err conftest.$ac_objext
c906108c 2168done
b4e70030 2169rm -f conftest.$ac_ext conftest.$ac_objext
bec39cab 2170CC=$ac_save_CC
c906108c
SS
2171
2172fi
b4e70030
JB
2173
2174case "x$ac_cv_prog_cc_stdc" in
2175 x|xno)
2176 echo "$as_me:$LINENO: result: none needed" >&5
2177echo "${ECHO_T}none needed" >&6 ;;
bec39cab 2178 *)
b4e70030
JB
2179 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2180echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2181 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2182esac
2183
b4e70030
JB
2184# Some people use a C++ compiler to compile C. Since we use `exit',
2185# in C++ we need to declare it. In case someone uses the same compiler
2186# for both compiling C and C++ we need to have the C++ compiler decide
2187# the declaration of exit, since it's the most demanding environment.
2188cat >conftest.$ac_ext <<_ACEOF
2189#ifndef __cplusplus
2190 choke me
2191#endif
2192_ACEOF
2193rm -f conftest.$ac_objext
2194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>conftest.er1
2196 ac_status=$?
2197 grep -v '^ *+' conftest.er1 >conftest.err
2198 rm -f conftest.er1
2199 cat conftest.err >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } &&
2202 { ac_try='test -z "$ac_c_werror_flag"
2203 || test ! -s conftest.err'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 (eval $ac_try) 2>&5
2206 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; } &&
2209 { ac_try='test -s conftest.$ac_objext'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 (eval $ac_try) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2215 for ac_declaration in \
2216 '' \
2217 'extern "C" void std::exit (int) throw (); using std::exit;' \
2218 'extern "C" void std::exit (int); using std::exit;' \
2219 'extern "C" void exit (int) throw ();' \
2220 'extern "C" void exit (int);' \
2221 'void exit (int);'
2222do
2223 cat >conftest.$ac_ext <<_ACEOF
2224/* confdefs.h. */
2225_ACEOF
2226cat confdefs.h >>conftest.$ac_ext
2227cat >>conftest.$ac_ext <<_ACEOF
2228/* end confdefs.h. */
2229$ac_declaration
2230#include <stdlib.h>
2231int
2232main ()
2233{
2234exit (42);
2235 ;
2236 return 0;
2237}
2238_ACEOF
2239rm -f conftest.$ac_objext
2240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2241 (eval $ac_compile) 2>conftest.er1
2242 ac_status=$?
2243 grep -v '^ *+' conftest.er1 >conftest.err
2244 rm -f conftest.er1
2245 cat conftest.err >&5
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); } &&
2248 { ac_try='test -z "$ac_c_werror_flag"
2249 || test ! -s conftest.err'
2250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251 (eval $ac_try) 2>&5
2252 ac_status=$?
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; } &&
2255 { ac_try='test -s conftest.$ac_objext'
2256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257 (eval $ac_try) 2>&5
2258 ac_status=$?
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; }; then
2261 :
2262else
2263 echo "$as_me: failed program was:" >&5
2264sed 's/^/| /' conftest.$ac_ext >&5
2265
2266continue
2267fi
2268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2269 cat >conftest.$ac_ext <<_ACEOF
2270/* confdefs.h. */
2271_ACEOF
2272cat confdefs.h >>conftest.$ac_ext
2273cat >>conftest.$ac_ext <<_ACEOF
2274/* end confdefs.h. */
2275$ac_declaration
2276int
2277main ()
2278{
2279exit (42);
2280 ;
2281 return 0;
2282}
2283_ACEOF
2284rm -f conftest.$ac_objext
2285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2286 (eval $ac_compile) 2>conftest.er1
2287 ac_status=$?
2288 grep -v '^ *+' conftest.er1 >conftest.err
2289 rm -f conftest.er1
2290 cat conftest.err >&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); } &&
2293 { ac_try='test -z "$ac_c_werror_flag"
2294 || test ! -s conftest.err'
2295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 (eval $ac_try) 2>&5
2297 ac_status=$?
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; } &&
2300 { ac_try='test -s conftest.$ac_objext'
2301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302 (eval $ac_try) 2>&5
2303 ac_status=$?
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; }; then
2306 break
2307else
2308 echo "$as_me: failed program was:" >&5
2309sed 's/^/| /' conftest.$ac_ext >&5
2310
2311fi
2312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2313done
2314rm -f conftest*
2315if test -n "$ac_declaration"; then
2316 echo '#ifdef __cplusplus' >>confdefs.h
2317 echo $ac_declaration >>confdefs.h
2318 echo '#endif' >>confdefs.h
2319fi
2320
2321else
2322 echo "$as_me: failed program was:" >&5
2323sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2324
b4e70030
JB
2325fi
2326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
2327ac_ext=c
2328ac_cpp='$CPP $CPPFLAGS'
2329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2332
60ca704f 2333
bec39cab
AC
2334cat >>confdefs.h <<\_ACEOF
2335#define _GNU_SOURCE 1
2336_ACEOF
c906108c
SS
2337
2338
8bb2c122 2339
bec39cab
AC
2340ac_ext=c
2341ac_cpp='$CPP $CPPFLAGS'
2342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4e70030
JB
2345echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2346echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
bec39cab
AC
2347# On Suns, sometimes $CPP names a directory.
2348if test -n "$CPP" && test -d "$CPP"; then
2349 CPP=
8bb2c122 2350fi
bec39cab
AC
2351if test -z "$CPP"; then
2352 if test "${ac_cv_prog_CPP+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2354else
2355 # Double quotes because CPP needs to be expanded
2356 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2357 do
2358 ac_preproc_ok=false
2359for ac_c_preproc_warn_flag in '' yes
2360do
2361 # Use a header file that comes with gcc, so configuring glibc
2362 # with a fresh cross-compiler works.
2363 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2364 # <limits.h> exists even on freestanding compilers.
2365 # On the NeXT, cc -E runs the code through the compiler's parser,
2366 # not just through cpp. "Syntax error" is here to catch this case.
2367 cat >conftest.$ac_ext <<_ACEOF
2368/* confdefs.h. */
2369_ACEOF
2370cat confdefs.h >>conftest.$ac_ext
2371cat >>conftest.$ac_ext <<_ACEOF
2372/* end confdefs.h. */
2373#ifdef __STDC__
2374# include <limits.h>
2375#else
2376# include <assert.h>
2377#endif
2378 Syntax error
2379_ACEOF
2380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2382 ac_status=$?
2383 grep -v '^ *+' conftest.er1 >conftest.err
2384 rm -f conftest.er1
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } >/dev/null; then
2388 if test -s conftest.err; then
2389 ac_cpp_err=$ac_c_preproc_warn_flag
2390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2391 else
2392 ac_cpp_err=
2393 fi
8bb2c122 2394else
bec39cab 2395 ac_cpp_err=yes
8bb2c122 2396fi
bec39cab
AC
2397if test -z "$ac_cpp_err"; then
2398 :
8bb2c122 2399else
bec39cab
AC
2400 echo "$as_me: failed program was:" >&5
2401sed 's/^/| /' conftest.$ac_ext >&5
2402
2403 # Broken: fails on valid input.
2404continue
2405fi
2406rm -f conftest.err conftest.$ac_ext
2407
b4e70030 2408 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2409 # can be detected and how.
2410 cat >conftest.$ac_ext <<_ACEOF
2411/* confdefs.h. */
2412_ACEOF
2413cat confdefs.h >>conftest.$ac_ext
2414cat >>conftest.$ac_ext <<_ACEOF
2415/* end confdefs.h. */
2416#include <ac_nonexistent.h>
2417_ACEOF
2418if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2420 ac_status=$?
2421 grep -v '^ *+' conftest.er1 >conftest.err
2422 rm -f conftest.er1
2423 cat conftest.err >&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); } >/dev/null; then
2426 if test -s conftest.err; then
2427 ac_cpp_err=$ac_c_preproc_warn_flag
2428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2429 else
2430 ac_cpp_err=
2431 fi
8bb2c122 2432else
bec39cab 2433 ac_cpp_err=yes
8bb2c122 2434fi
bec39cab
AC
2435if test -z "$ac_cpp_err"; then
2436 # Broken: success on invalid input.
2437continue
8bb2c122 2438else
bec39cab
AC
2439 echo "$as_me: failed program was:" >&5
2440sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2441
bec39cab
AC
2442 # Passes both tests.
2443ac_preproc_ok=:
2444break
8bb2c122 2445fi
bec39cab 2446rm -f conftest.err conftest.$ac_ext
8bb2c122 2447
bec39cab
AC
2448done
2449# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2450rm -f conftest.err conftest.$ac_ext
2451if $ac_preproc_ok; then
2452 break
2453fi
8bb2c122 2454
bec39cab
AC
2455 done
2456 ac_cv_prog_CPP=$CPP
ddc9cd0f 2457
c906108c 2458fi
bec39cab
AC
2459 CPP=$ac_cv_prog_CPP
2460else
2461 ac_cv_prog_CPP=$CPP
c906108c 2462fi
b4e70030
JB
2463echo "$as_me:$LINENO: result: $CPP" >&5
2464echo "${ECHO_T}$CPP" >&6
bec39cab
AC
2465ac_preproc_ok=false
2466for ac_c_preproc_warn_flag in '' yes
2467do
2468 # Use a header file that comes with gcc, so configuring glibc
2469 # with a fresh cross-compiler works.
2470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2471 # <limits.h> exists even on freestanding compilers.
2472 # On the NeXT, cc -E runs the code through the compiler's parser,
2473 # not just through cpp. "Syntax error" is here to catch this case.
2474 cat >conftest.$ac_ext <<_ACEOF
2475/* confdefs.h. */
2476_ACEOF
2477cat confdefs.h >>conftest.$ac_ext
2478cat >>conftest.$ac_ext <<_ACEOF
2479/* end confdefs.h. */
2480#ifdef __STDC__
2481# include <limits.h>
2482#else
2483# include <assert.h>
2484#endif
2485 Syntax error
2486_ACEOF
2487if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2489 ac_status=$?
2490 grep -v '^ *+' conftest.er1 >conftest.err
2491 rm -f conftest.er1
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } >/dev/null; then
2495 if test -s conftest.err; then
2496 ac_cpp_err=$ac_c_preproc_warn_flag
2497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2498 else
2499 ac_cpp_err=
2500 fi
c906108c 2501else
bec39cab 2502 ac_cpp_err=yes
c906108c 2503fi
bec39cab
AC
2504if test -z "$ac_cpp_err"; then
2505 :
c906108c 2506else
bec39cab
AC
2507 echo "$as_me: failed program was:" >&5
2508sed 's/^/| /' conftest.$ac_ext >&5
2509
2510 # Broken: fails on valid input.
2511continue
2512fi
2513rm -f conftest.err conftest.$ac_ext
2514
b4e70030 2515 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2516 # can be detected and how.
2517 cat >conftest.$ac_ext <<_ACEOF
2518/* confdefs.h. */
2519_ACEOF
2520cat confdefs.h >>conftest.$ac_ext
2521cat >>conftest.$ac_ext <<_ACEOF
2522/* end confdefs.h. */
2523#include <ac_nonexistent.h>
2524_ACEOF
2525if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2527 ac_status=$?
2528 grep -v '^ *+' conftest.er1 >conftest.err
2529 rm -f conftest.er1
2530 cat conftest.err >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } >/dev/null; then
2533 if test -s conftest.err; then
2534 ac_cpp_err=$ac_c_preproc_warn_flag
2535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2536 else
2537 ac_cpp_err=
2538 fi
c906108c 2539else
bec39cab 2540 ac_cpp_err=yes
c906108c 2541fi
bec39cab
AC
2542if test -z "$ac_cpp_err"; then
2543 # Broken: success on invalid input.
2544continue
c906108c 2545else
bec39cab
AC
2546 echo "$as_me: failed program was:" >&5
2547sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2548
bec39cab
AC
2549 # Passes both tests.
2550ac_preproc_ok=:
2551break
c906108c 2552fi
bec39cab 2553rm -f conftest.err conftest.$ac_ext
c906108c 2554
bec39cab
AC
2555done
2556# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2557rm -f conftest.err conftest.$ac_ext
2558if $ac_preproc_ok; then
c906108c
SS
2559 :
2560else
d5af19ba
DJ
2561 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2562echo "$as_me: error: in \`$ac_pwd':" >&2;}
2563{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
bec39cab
AC
2564See \`config.log' for more details." >&5
2565echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2566See \`config.log' for more details." >&2;}
d5af19ba 2567 { (exit 1); exit 1; }; }; }
c906108c 2568fi
c906108c 2569
bec39cab
AC
2570ac_ext=c
2571ac_cpp='$CPP $CPPFLAGS'
2572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574ac_compiler_gnu=$ac_cv_c_compiler_gnu
2575
2576
b4e70030
JB
2577echo "$as_me:$LINENO: checking for egrep" >&5
2578echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2579if test "${ac_cv_prog_egrep+set}" = set; then
4e8d927d
DJ
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2581else
b4e70030
JB
2582 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2583 then ac_cv_prog_egrep='grep -E'
2584 else ac_cv_prog_egrep='egrep'
bec39cab 2585 fi
4e8d927d 2586fi
b4e70030
JB
2587echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2588echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2589 EGREP=$ac_cv_prog_egrep
c906108c 2590
bec39cab
AC
2591
2592
b4e70030
JB
2593echo "$as_me:$LINENO: checking for AIX" >&5
2594echo $ECHO_N "checking for AIX... $ECHO_C" >&6
bec39cab
AC
2595cat >conftest.$ac_ext <<_ACEOF
2596/* confdefs.h. */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h. */
2601#ifdef _AIX
2602 yes
2603#endif
2604
2605_ACEOF
c906108c 2606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 2607 $EGREP "yes" >/dev/null 2>&1; then
b4e70030
JB
2608 echo "$as_me:$LINENO: result: yes" >&5
2609echo "${ECHO_T}yes" >&6
bec39cab
AC
2610cat >>confdefs.h <<\_ACEOF
2611#define _ALL_SOURCE 1
2612_ACEOF
2613
c906108c 2614else
b4e70030
JB
2615 echo "$as_me:$LINENO: result: no" >&5
2616echo "${ECHO_T}no" >&6
c906108c
SS
2617fi
2618rm -f conftest*
2619
c906108c 2620
b4e70030
JB
2621echo "$as_me:$LINENO: checking for library containing strerror" >&5
2622echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
bec39cab
AC
2623if test "${ac_cv_search_strerror+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2625else
bec39cab 2626 ac_func_search_save_LIBS=$LIBS
b4e70030 2627ac_cv_search_strerror=no
bec39cab
AC
2628cat >conftest.$ac_ext <<_ACEOF
2629/* confdefs.h. */
2630_ACEOF
2631cat confdefs.h >>conftest.$ac_ext
2632cat >>conftest.$ac_ext <<_ACEOF
2633/* end confdefs.h. */
c906108c 2634
b4e70030 2635/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
2636#ifdef __cplusplus
2637extern "C"
2638#endif
b4e70030
JB
2639/* We use char because int might match the return type of a gcc2
2640 builtin and then its argument prototype would still apply. */
bec39cab
AC
2641char strerror ();
2642int
2643main ()
2644{
b4e70030 2645strerror ();
bec39cab
AC
2646 ;
2647 return 0;
2648}
2649_ACEOF
b4e70030 2650rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
2651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2652 (eval $ac_link) 2>conftest.er1
2653 ac_status=$?
2654 grep -v '^ *+' conftest.er1 >conftest.err
2655 rm -f conftest.er1
2656 cat conftest.err >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); } &&
b4e70030
JB
2659 { ac_try='test -z "$ac_c_werror_flag"
2660 || test ! -s conftest.err'
bec39cab
AC
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 (eval $ac_try) 2>&5
2663 ac_status=$?
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; } &&
2666 { ac_try='test -s conftest$ac_exeext'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 (eval $ac_try) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
b4e70030 2672 ac_cv_search_strerror="none required"
c906108c 2673else
bec39cab
AC
2674 echo "$as_me: failed program was:" >&5
2675sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2676
2677fi
bec39cab 2678rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
2679 conftest$ac_exeext conftest.$ac_ext
2680if test "$ac_cv_search_strerror" = no; then
2681 for ac_lib in cposix; do
2682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2683 cat >conftest.$ac_ext <<_ACEOF
2684/* confdefs.h. */
2685_ACEOF
2686cat confdefs.h >>conftest.$ac_ext
2687cat >>conftest.$ac_ext <<_ACEOF
2688/* end confdefs.h. */
2689
2690/* Override any gcc2 internal prototype to avoid an error. */
2691#ifdef __cplusplus
2692extern "C"
2693#endif
2694/* We use char because int might match the return type of a gcc2
2695 builtin and then its argument prototype would still apply. */
2696char strerror ();
2697int
2698main ()
2699{
2700strerror ();
2701 ;
2702 return 0;
2703}
2704_ACEOF
2705rm -f conftest.$ac_objext conftest$ac_exeext
2706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2707 (eval $ac_link) 2>conftest.er1
2708 ac_status=$?
2709 grep -v '^ *+' conftest.er1 >conftest.err
2710 rm -f conftest.er1
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 { ac_try='test -z "$ac_c_werror_flag"
2715 || test ! -s conftest.err'
2716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 (eval $ac_try) 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; } &&
2721 { ac_try='test -s conftest$ac_exeext'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723 (eval $ac_try) 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; }; then
2727 ac_cv_search_strerror="-l$ac_lib"
2728break
4e8d927d 2729else
b4e70030
JB
2730 echo "$as_me: failed program was:" >&5
2731sed 's/^/| /' conftest.$ac_ext >&5
2732
2733fi
2734rm -f conftest.err conftest.$ac_objext \
2735 conftest$ac_exeext conftest.$ac_ext
2736 done
c906108c 2737fi
bec39cab 2738LIBS=$ac_func_search_save_LIBS
c906108c 2739fi
b4e70030
JB
2740echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2741echo "${ECHO_T}$ac_cv_search_strerror" >&6
2742if test "$ac_cv_search_strerror" != no; then
2743 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
bec39cab 2744
c906108c
SS
2745fi
2746
783e057b
DJ
2747if test -n "$ac_tool_prefix"; then
2748 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2749set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2750echo "$as_me:$LINENO: checking for $ac_word" >&5
2751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2752if test "${ac_cv_prog_RANLIB+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2754else
2755 if test -n "$RANLIB"; then
2756 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2757else
2758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759for as_dir in $PATH
2760do
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 break 2
2768 fi
2769done
2770done
c906108c 2771
783e057b
DJ
2772fi
2773fi
2774RANLIB=$ac_cv_prog_RANLIB
2775if test -n "$RANLIB"; then
2776 echo "$as_me:$LINENO: result: $RANLIB" >&5
2777echo "${ECHO_T}$RANLIB" >&6
2778else
2779 echo "$as_me:$LINENO: result: no" >&5
2780echo "${ECHO_T}no" >&6
2781fi
bec39cab 2782
783e057b
DJ
2783fi
2784if test -z "$ac_cv_prog_RANLIB"; then
2785 ac_ct_RANLIB=$RANLIB
2786 # Extract the first word of "ranlib", so it can be a program name with args.
2787set dummy ranlib; ac_word=$2
2788echo "$as_me:$LINENO: checking for $ac_word" >&5
2789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2790if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
bec39cab 2791 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2792else
783e057b
DJ
2793 if test -n "$ac_ct_RANLIB"; then
2794 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2795else
2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
bec39cab 2798do
783e057b
DJ
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803 ac_cv_prog_ac_ct_RANLIB="ranlib"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2806 fi
2807done
2808done
2809
2810 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2811fi
2812fi
2813ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2814if test -n "$ac_ct_RANLIB"; then
2815 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2816echo "${ECHO_T}$ac_ct_RANLIB" >&6
2817else
2818 echo "$as_me:$LINENO: result: no" >&5
2819echo "${ECHO_T}no" >&6
2820fi
2821
2822 RANLIB=$ac_ct_RANLIB
2823else
2824 RANLIB="$ac_cv_prog_RANLIB"
2825fi
2826
2827echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2828echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2829if test "${ac_cv_header_stdc+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2831else
bec39cab
AC
2832 cat >conftest.$ac_ext <<_ACEOF
2833/* confdefs.h. */
2834_ACEOF
2835cat confdefs.h >>conftest.$ac_ext
2836cat >>conftest.$ac_ext <<_ACEOF
2837/* end confdefs.h. */
783e057b 2838#include <stdlib.h>
bec39cab 2839#include <stdarg.h>
783e057b
DJ
2840#include <string.h>
2841#include <float.h>
c906108c 2842
bec39cab
AC
2843int
2844main ()
2845{
c906108c 2846
bec39cab
AC
2847 ;
2848 return 0;
2849}
2850_ACEOF
2851rm -f conftest.$ac_objext
2852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2853 (eval $ac_compile) 2>conftest.er1
2854 ac_status=$?
2855 grep -v '^ *+' conftest.er1 >conftest.err
2856 rm -f conftest.er1
2857 cat conftest.err >&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); } &&
b4e70030
JB
2860 { ac_try='test -z "$ac_c_werror_flag"
2861 || test ! -s conftest.err'
bec39cab
AC
2862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 (eval $ac_try) 2>&5
2864 ac_status=$?
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }; } &&
2867 { ac_try='test -s conftest.$ac_objext'
2868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869 (eval $ac_try) 2>&5
2870 ac_status=$?
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; }; then
783e057b 2873 ac_cv_header_stdc=yes
c906108c 2874else
bec39cab
AC
2875 echo "$as_me: failed program was:" >&5
2876sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2877
783e057b 2878ac_cv_header_stdc=no
c906108c 2879fi
bec39cab 2880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2881
783e057b
DJ
2882if test $ac_cv_header_stdc = yes; then
2883 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2884 cat >conftest.$ac_ext <<_ACEOF
2885/* confdefs.h. */
2886_ACEOF
2887cat confdefs.h >>conftest.$ac_ext
2888cat >>conftest.$ac_ext <<_ACEOF
2889/* end confdefs.h. */
2890#include <string.h>
c906108c 2891
783e057b
DJ
2892_ACEOF
2893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2894 $EGREP "memchr" >/dev/null 2>&1; then
2895 :
c906108c 2896else
783e057b 2897 ac_cv_header_stdc=no
c906108c 2898fi
783e057b 2899rm -f conftest*
c906108c
SS
2900
2901fi
2902
783e057b
DJ
2903if test $ac_cv_header_stdc = yes; then
2904 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2905 cat >conftest.$ac_ext <<_ACEOF
2906/* confdefs.h. */
2907_ACEOF
2908cat confdefs.h >>conftest.$ac_ext
2909cat >>conftest.$ac_ext <<_ACEOF
2910/* end confdefs.h. */
2911#include <stdlib.h>
bec39cab 2912
783e057b
DJ
2913_ACEOF
2914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2915 $EGREP "free" >/dev/null 2>&1; then
2916 :
bec39cab 2917else
783e057b 2918 ac_cv_header_stdc=no
bec39cab 2919fi
783e057b 2920rm -f conftest*
bec39cab
AC
2921
2922fi
bec39cab 2923
783e057b
DJ
2924if test $ac_cv_header_stdc = yes; then
2925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2926 if test "$cross_compiling" = yes; then
2927 :
bec39cab 2928else
783e057b
DJ
2929 cat >conftest.$ac_ext <<_ACEOF
2930/* confdefs.h. */
2931_ACEOF
2932cat confdefs.h >>conftest.$ac_ext
2933cat >>conftest.$ac_ext <<_ACEOF
2934/* end confdefs.h. */
2935#include <ctype.h>
2936#if ((' ' & 0x0FF) == 0x020)
2937# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2938# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2939#else
2940# define ISLOWER(c) \
2941 (('a' <= (c) && (c) <= 'i') \
2942 || ('j' <= (c) && (c) <= 'r') \
2943 || ('s' <= (c) && (c) <= 'z'))
2944# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2945#endif
2946
2947#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2948int
2949main ()
2950{
2951 int i;
2952 for (i = 0; i < 256; i++)
2953 if (XOR (islower (i), ISLOWER (i))
2954 || toupper (i) != TOUPPER (i))
2955 exit(2);
2956 exit (0);
2957}
2958_ACEOF
2959rm -f conftest$ac_exeext
2960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2961 (eval $ac_link) 2>&5
2962 ac_status=$?
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966 (eval $ac_try) 2>&5
2967 ac_status=$?
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; }; then
2970 :
2971else
2972 echo "$as_me: program exited with status $ac_status" >&5
2973echo "$as_me: failed program was:" >&5
2974sed 's/^/| /' conftest.$ac_ext >&5
2975
2976( exit $ac_status )
2977ac_cv_header_stdc=no
2978fi
2979rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2980fi
2981fi
2982fi
2983echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2984echo "${ECHO_T}$ac_cv_header_stdc" >&6
2985if test $ac_cv_header_stdc = yes; then
2986
2987cat >>confdefs.h <<\_ACEOF
2988#define STDC_HEADERS 1
2989_ACEOF
2990
2991fi
2992
2993# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3004 inttypes.h stdint.h unistd.h
3005do
3006as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3007echo "$as_me:$LINENO: checking for $ac_header" >&5
3008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3009if eval "test \"\${$as_ac_Header+set}\" = set"; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3011else
3012 cat >conftest.$ac_ext <<_ACEOF
3013/* confdefs.h. */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
3017/* end confdefs.h. */
3018$ac_includes_default
3019
3020#include <$ac_header>
3021_ACEOF
3022rm -f conftest.$ac_objext
3023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3024 (eval $ac_compile) 2>conftest.er1
3025 ac_status=$?
3026 grep -v '^ *+' conftest.er1 >conftest.err
3027 rm -f conftest.er1
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } &&
3031 { ac_try='test -z "$ac_c_werror_flag"
3032 || test ! -s conftest.err'
3033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034 (eval $ac_try) 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; } &&
3038 { ac_try='test -s conftest.$ac_objext'
3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040 (eval $ac_try) 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; }; then
3044 eval "$as_ac_Header=yes"
3045else
3046 echo "$as_me: failed program was:" >&5
3047sed 's/^/| /' conftest.$ac_ext >&5
3048
3049eval "$as_ac_Header=no"
3050fi
3051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3052fi
3053echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3054echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3055if test `eval echo '${'$as_ac_Header'}'` = yes; then
3056 cat >>confdefs.h <<_ACEOF
3057#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3058_ACEOF
3059
3060fi
3061
3062done
3063
3064
3065
3066 if test "${ac_cv_header_minix_config_h+set}" = set; then
3067 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3068echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3069if test "${ac_cv_header_minix_config_h+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3071fi
3072echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3073echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3074else
3075 # Is the header compilable?
3076echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3077echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3078cat >conftest.$ac_ext <<_ACEOF
3079/* confdefs.h. */
3080_ACEOF
3081cat confdefs.h >>conftest.$ac_ext
3082cat >>conftest.$ac_ext <<_ACEOF
3083/* end confdefs.h. */
3084$ac_includes_default
3085#include <minix/config.h>
3086_ACEOF
3087rm -f conftest.$ac_objext
3088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3089 (eval $ac_compile) 2>conftest.er1
3090 ac_status=$?
3091 grep -v '^ *+' conftest.er1 >conftest.err
3092 rm -f conftest.er1
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -z "$ac_c_werror_flag"
3097 || test ! -s conftest.err'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099 (eval $ac_try) 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; } &&
3103 { ac_try='test -s conftest.$ac_objext'
3104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105 (eval $ac_try) 2>&5
3106 ac_status=$?
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3109 ac_header_compiler=yes
3110else
3111 echo "$as_me: failed program was:" >&5
3112sed 's/^/| /' conftest.$ac_ext >&5
3113
3114ac_header_compiler=no
3115fi
3116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3117echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3118echo "${ECHO_T}$ac_header_compiler" >&6
3119
3120# Is the header present?
3121echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3122echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3123cat >conftest.$ac_ext <<_ACEOF
3124/* confdefs.h. */
3125_ACEOF
3126cat confdefs.h >>conftest.$ac_ext
3127cat >>conftest.$ac_ext <<_ACEOF
3128/* end confdefs.h. */
3129#include <minix/config.h>
3130_ACEOF
3131if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } >/dev/null; then
3139 if test -s conftest.err; then
3140 ac_cpp_err=$ac_c_preproc_warn_flag
3141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3142 else
3143 ac_cpp_err=
3144 fi
3145else
3146 ac_cpp_err=yes
3147fi
3148if test -z "$ac_cpp_err"; then
3149 ac_header_preproc=yes
3150else
3151 echo "$as_me: failed program was:" >&5
3152sed 's/^/| /' conftest.$ac_ext >&5
3153
3154 ac_header_preproc=no
3155fi
3156rm -f conftest.err conftest.$ac_ext
3157echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3158echo "${ECHO_T}$ac_header_preproc" >&6
3159
3160# So? What about this header?
3161case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3162 yes:no: )
3163 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3164echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3165 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3166echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3167 ac_header_preproc=yes
3168 ;;
3169 no:yes:* )
3170 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3171echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3172 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3173echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3174 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3175echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3176 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3177echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3178 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3179echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3180 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3181echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3182 (
3183 cat <<\_ASBOX
3184## ------------------------------------------ ##
3185## Report this to the AC_PACKAGE_NAME lists. ##
3186## ------------------------------------------ ##
3187_ASBOX
3188 ) |
3189 sed "s/^/$as_me: WARNING: /" >&2
3190 ;;
3191esac
3192echo "$as_me:$LINENO: checking for minix/config.h" >&5
3193echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3194if test "${ac_cv_header_minix_config_h+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3196else
3197 ac_cv_header_minix_config_h=$ac_header_preproc
3198fi
3199echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3200echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3201
3202fi
3203if test $ac_cv_header_minix_config_h = yes; then
3204 MINIX=yes
3205else
3206 MINIX=
3207fi
3208
3209
3210 if test "$MINIX" = yes; then
3211
3212cat >>confdefs.h <<\_ACEOF
3213#define _POSIX_SOURCE 1
3214_ACEOF
3215
3216
3217cat >>confdefs.h <<\_ACEOF
3218#define _POSIX_1_SOURCE 2
3219_ACEOF
3220
3221
3222cat >>confdefs.h <<\_ACEOF
3223#define _MINIX 1
3224_ACEOF
3225
3226 fi
3227
3228
3229
3230 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3231echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3232if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3234else
3235 cat >conftest.$ac_ext <<_ACEOF
3236/* confdefs.h. */
3237_ACEOF
3238cat confdefs.h >>conftest.$ac_ext
3239cat >>conftest.$ac_ext <<_ACEOF
3240/* end confdefs.h. */
3241
3242# define __EXTENSIONS__ 1
3243 $ac_includes_default
3244int
3245main ()
3246{
3247
3248 ;
3249 return 0;
3250}
3251_ACEOF
3252rm -f conftest.$ac_objext
3253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3254 (eval $ac_compile) 2>conftest.er1
3255 ac_status=$?
3256 grep -v '^ *+' conftest.er1 >conftest.err
3257 rm -f conftest.er1
3258 cat conftest.err >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } &&
3261 { ac_try='test -z "$ac_c_werror_flag"
3262 || test ! -s conftest.err'
3263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264 (eval $ac_try) 2>&5
3265 ac_status=$?
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }; } &&
3268 { ac_try='test -s conftest.$ac_objext'
3269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270 (eval $ac_try) 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; }; then
3274 ac_cv_safe_to_define___extensions__=yes
3275else
3276 echo "$as_me: failed program was:" >&5
3277sed 's/^/| /' conftest.$ac_ext >&5
3278
3279ac_cv_safe_to_define___extensions__=no
3280fi
3281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3282fi
3283echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3284echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3285 test $ac_cv_safe_to_define___extensions__ = yes &&
3286 cat >>confdefs.h <<\_ACEOF
3287#define __EXTENSIONS__ 1
3288_ACEOF
3289
3290 cat >>confdefs.h <<\_ACEOF
3291#define _ALL_SOURCE 1
3292_ACEOF
3293
3294 cat >>confdefs.h <<\_ACEOF
3295#define _GNU_SOURCE 1
3296_ACEOF
3297
3298 cat >>confdefs.h <<\_ACEOF
3299#define _POSIX_PTHREAD_SEMANTICS 1
3300_ACEOF
3301
3302 cat >>confdefs.h <<\_ACEOF
3303#define _TANDEM_SOURCE 1
3304_ACEOF
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3316echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3317if test "${am_cv_prog_cc_stdc+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319else
3320 am_cv_prog_cc_stdc=no
3321ac_save_CC="$CC"
3322# Don't try gcc -ansi; that turns off useful extensions and
3323# breaks some systems' header files.
3324# AIX -qlanglvl=ansi
3325# Ultrix and OSF/1 -std1
3326# HP-UX 10.20 and later -Ae
3327# HP-UX older versions -Aa -D_HPUX_SOURCE
3328# SVR4 -Xc -D__EXTENSIONS__
3329for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3330do
3331 CC="$ac_save_CC $ac_arg"
3332 cat >conftest.$ac_ext <<_ACEOF
3333/* confdefs.h. */
3334_ACEOF
3335cat confdefs.h >>conftest.$ac_ext
3336cat >>conftest.$ac_ext <<_ACEOF
3337/* end confdefs.h. */
3338#include <stdarg.h>
3339#include <stdio.h>
3340#include <sys/types.h>
3341#include <sys/stat.h>
3342/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3343struct buf { int x; };
3344FILE * (*rcsopen) (struct buf *, struct stat *, int);
3345static char *e (p, i)
3346 char **p;
3347 int i;
3348{
3349 return p[i];
3350}
3351static char *f (char * (*g) (char **, int), char **p, ...)
3352{
3353 char *s;
3354 va_list v;
3355 va_start (v,p);
3356 s = g (p, va_arg (v,int));
3357 va_end (v);
3358 return s;
3359}
3360int test (int i, double x);
3361struct s1 {int (*f) (int a);};
3362struct s2 {int (*f) (double a);};
3363int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3364int argc;
3365char **argv;
3366
3367int
3368main ()
3369{
3370
3371return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3372
3373 ;
3374 return 0;
3375}
3376_ACEOF
3377rm -f conftest.$ac_objext
3378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3379 (eval $ac_compile) 2>conftest.er1
3380 ac_status=$?
3381 grep -v '^ *+' conftest.er1 >conftest.err
3382 rm -f conftest.er1
3383 cat conftest.err >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } &&
3386 { ac_try='test -z "$ac_c_werror_flag"
3387 || test ! -s conftest.err'
3388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389 (eval $ac_try) 2>&5
3390 ac_status=$?
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; } &&
3393 { ac_try='test -s conftest.$ac_objext'
3394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395 (eval $ac_try) 2>&5
3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; }; then
3399 am_cv_prog_cc_stdc="$ac_arg"; break
3400else
3401 echo "$as_me: failed program was:" >&5
3402sed 's/^/| /' conftest.$ac_ext >&5
3403
3404fi
3405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3406done
3407CC="$ac_save_CC"
3408
3409fi
3410
3411if test -z "$am_cv_prog_cc_stdc"; then
3412 echo "$as_me:$LINENO: result: none needed" >&5
3413echo "${ECHO_T}none needed" >&6
3414else
3415 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3416echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3417fi
3418case "x$am_cv_prog_cc_stdc" in
3419 x|xno) ;;
3420 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3421esac
3422
3423
3424ac_aux_dir=
3425for ac_dir in .. $srcdir/..; do
3426 if test -f $ac_dir/install-sh; then
3427 ac_aux_dir=$ac_dir
3428 ac_install_sh="$ac_aux_dir/install-sh -c"
3429 break
3430 elif 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/shtool; then
3435 ac_aux_dir=$ac_dir
3436 ac_install_sh="$ac_aux_dir/shtool install -c"
3437 break
3438 fi
3439done
3440if test -z "$ac_aux_dir"; then
3441 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3442echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3443 { (exit 1); exit 1; }; }
3444fi
3445ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3446ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3447ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3448
3449# Make sure we can run config.sub.
3450$ac_config_sub sun4 >/dev/null 2>&1 ||
3451 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3452echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3453 { (exit 1); exit 1; }; }
3454
3455echo "$as_me:$LINENO: checking build system type" >&5
3456echo $ECHO_N "checking build system type... $ECHO_C" >&6
3457if test "${ac_cv_build+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3459else
3460 ac_cv_build_alias=$build_alias
3461test -z "$ac_cv_build_alias" &&
3462 ac_cv_build_alias=`$ac_config_guess`
3463test -z "$ac_cv_build_alias" &&
3464 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3465echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3466 { (exit 1); exit 1; }; }
3467ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3468 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3469echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3470 { (exit 1); exit 1; }; }
3471
3472fi
3473echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3474echo "${ECHO_T}$ac_cv_build" >&6
3475build=$ac_cv_build
3476build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3477build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3478build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3479
3480
3481echo "$as_me:$LINENO: checking host system type" >&5
3482echo $ECHO_N "checking host system type... $ECHO_C" >&6
3483if test "${ac_cv_host+set}" = set; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3485else
3486 ac_cv_host_alias=$host_alias
3487test -z "$ac_cv_host_alias" &&
3488 ac_cv_host_alias=$ac_cv_build_alias
3489ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3490 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3491echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3492 { (exit 1); exit 1; }; }
3493
3494fi
3495echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3496echo "${ECHO_T}$ac_cv_host" >&6
3497host=$ac_cv_host
3498host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3499host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3500host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3501
3502
3503echo "$as_me:$LINENO: checking target system type" >&5
3504echo $ECHO_N "checking target system type... $ECHO_C" >&6
3505if test "${ac_cv_target+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3507else
3508 ac_cv_target_alias=$target_alias
3509test "x$ac_cv_target_alias" = "x" &&
b4e70030
JB
3510 ac_cv_target_alias=$ac_cv_host_alias
3511ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3512 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3513echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
bec39cab
AC
3514 { (exit 1); exit 1; }; }
3515
3516fi
783e057b
DJ
3517echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3518echo "${ECHO_T}$ac_cv_target" >&6
3519target=$ac_cv_target
3520target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3521target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3522target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3523
3524
3525# The aliases save the names the user supplied, while $host etc.
3526# will get canonicalized.
3527test -n "$target_alias" &&
3528 test "$program_prefix$program_suffix$program_transform_name" = \
3529 NONENONEs,x,x, &&
3530 program_prefix=${target_alias}-
3531
3532
3533CONFIG_OBS=
3534CONFIG_DEPS=
3535CONFIG_SRCS=
3536ENABLE_CFLAGS=
3537
3538CONFIG_ALL=
3539CONFIG_CLEAN=
3540CONFIG_INSTALL=
3541CONFIG_UNINSTALL=
3542
3543# If we haven't got the data from the intl directory,
3544# assume NLS is disabled.
3545USE_NLS=no
3546LIBINTL=
3547LIBINTL_DEP=
3548INCINTL=
3549XGETTEXT=
3550GMSGFMT=
3551POSUB=
3552
3553if test -f ../intl/config.intl; then
3554 . ../intl/config.intl
3555fi
3556echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3557echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3558if test x"$USE_NLS" != xyes; then
3559 echo "$as_me:$LINENO: result: no" >&5
3560echo "${ECHO_T}no" >&6
3561else
3562 echo "$as_me:$LINENO: result: yes" >&5
3563echo "${ECHO_T}yes" >&6
3564
3565cat >>confdefs.h <<\_ACEOF
3566#define ENABLE_NLS 1
3567_ACEOF
3568
3569
3570 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3571echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3572 # Look for .po and .gmo files in the source directory.
3573 CATALOGS=
3574 XLINGUAS=
3575 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3576 # If there aren't any .gmo files the shell will give us the
3577 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3578 # weeded out.
3579 case "$cat" in *\**)
3580 continue;;
3581 esac
3582 # The quadruple backslash is collapsed to a double backslash
3583 # by the backticks, then collapsed again by the double quotes,
3584 # leaving us with one backslash in the sed expression (right
3585 # before the dot that mustn't act as a wildcard).
3586 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3587 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3588 # The user is allowed to set LINGUAS to a list of languages to
3589 # install catalogs for. If it's empty that means "all of them."
3590 if test "x$LINGUAS" = x; then
3591 CATALOGS="$CATALOGS $cat"
3592 XLINGUAS="$XLINGUAS $lang"
3593 else
3594 case "$LINGUAS" in *$lang*)
3595 CATALOGS="$CATALOGS $cat"
3596 XLINGUAS="$XLINGUAS $lang"
3597 ;;
3598 esac
3599 fi
3600 done
3601 LINGUAS="$XLINGUAS"
3602 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3603echo "${ECHO_T}$LINGUAS" >&6
3604
3605
3606 DATADIRNAME=share
3607
3608 INSTOBJEXT=.mo
3609
3610 GENCAT=gencat
3611
3612 CATOBJEXT=.gmo
3613
3614fi
3615
3616localedir='${datadir}/locale'
3617
3618
3619if test x"$USE_NLS" = xyes; then
3620 CONFIG_ALL="$CONFIG_ALL all-po"
3621 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3622 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3623 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3624fi
3625
3626
3627 GNULIB_MEMMEM=0;
3628 GNULIB_MEMPCPY=0;
3629 GNULIB_MEMRCHR=0;
3630 GNULIB_STPCPY=0;
3631 GNULIB_STPNCPY=0;
3632 GNULIB_STRCHRNUL=0;
3633 GNULIB_STRDUP=0;
3634 GNULIB_STRNDUP=0;
3635 GNULIB_STRNLEN=0;
3636 GNULIB_STRPBRK=0;
3637 GNULIB_STRSEP=0;
3638 GNULIB_STRSTR=0;
3639 GNULIB_STRCASESTR=0;
3640 GNULIB_STRTOK_R=0;
3641 GNULIB_MBSLEN=0;
3642 GNULIB_MBSNLEN=0;
3643 GNULIB_MBSCHR=0;
3644 GNULIB_MBSRCHR=0;
3645 GNULIB_MBSSTR=0;
3646 GNULIB_MBSCASECMP=0;
3647 GNULIB_MBSNCASECMP=0;
3648 GNULIB_MBSPCASECMP=0;
3649 GNULIB_MBSCASESTR=0;
3650 GNULIB_MBSCSPN=0;
3651 GNULIB_MBSPBRK=0;
3652 GNULIB_MBSSPN=0;
3653 GNULIB_MBSSEP=0;
3654 GNULIB_MBSTOK_R=0;
3655 GNULIB_STRERROR=0;
3656 GNULIB_STRSIGNAL=0;
3657 HAVE_DECL_MEMMEM=1;
3658 HAVE_MEMPCPY=1;
3659 HAVE_DECL_MEMRCHR=1;
3660 HAVE_STPCPY=1;
3661 HAVE_STPNCPY=1;
3662 HAVE_STRCHRNUL=1;
3663 HAVE_DECL_STRDUP=1;
3664 HAVE_STRNDUP=1;
3665 HAVE_DECL_STRNDUP=1;
3666 HAVE_DECL_STRNLEN=1;
3667 HAVE_STRPBRK=1;
3668 HAVE_STRSEP=1;
3669 HAVE_STRCASESTR=1;
3670 HAVE_DECL_STRTOK_R=1;
3671 HAVE_DECL_STRERROR=1;
3672 HAVE_DECL_STRSIGNAL=1;
3673 REPLACE_STRERROR=0;
3674 REPLACE_STRSIGNAL=0;
3675 REPLACE_MEMMEM=0;
3676 REPLACE_STRCASESTR=0;
3677 REPLACE_STRSTR=0;
3678
3679
3680 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3681echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3682if test "${ac_cv_have_decl_memmem+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684else
3685 cat >conftest.$ac_ext <<_ACEOF
3686/* confdefs.h. */
3687_ACEOF
3688cat confdefs.h >>conftest.$ac_ext
3689cat >>conftest.$ac_ext <<_ACEOF
3690/* end confdefs.h. */
3691$ac_includes_default
3692int
3693main ()
3694{
3695#ifndef memmem
3696 char *p = (char *) memmem;
3697#endif
3698
3699 ;
3700 return 0;
3701}
3702_ACEOF
3703rm -f conftest.$ac_objext
3704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3705 (eval $ac_compile) 2>conftest.er1
3706 ac_status=$?
3707 grep -v '^ *+' conftest.er1 >conftest.err
3708 rm -f conftest.er1
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try='test -z "$ac_c_werror_flag"
3713 || test ! -s conftest.err'
3714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715 (eval $ac_try) 2>&5
3716 ac_status=$?
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; } &&
3719 { ac_try='test -s conftest.$ac_objext'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 (eval $ac_try) 2>&5
3722 ac_status=$?
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; }; then
3725 ac_cv_have_decl_memmem=yes
3726else
3727 echo "$as_me: failed program was:" >&5
3728sed 's/^/| /' conftest.$ac_ext >&5
3729
3730ac_cv_have_decl_memmem=no
3731fi
3732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3733fi
3734echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3735echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3736if test $ac_cv_have_decl_memmem = yes; then
3737
3738cat >>confdefs.h <<_ACEOF
3739#define HAVE_DECL_MEMMEM 1
3740_ACEOF
3741
3742
3743else
3744 cat >>confdefs.h <<_ACEOF
3745#define HAVE_DECL_MEMMEM 0
3746_ACEOF
3747
3748
3749fi
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765for ac_func in memmem
3766do
3767as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3768echo "$as_me:$LINENO: checking for $ac_func" >&5
3769echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3770if eval "test \"\${$as_ac_var+set}\" = set"; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3772else
3773 cat >conftest.$ac_ext <<_ACEOF
3774/* confdefs.h. */
3775_ACEOF
3776cat confdefs.h >>conftest.$ac_ext
3777cat >>conftest.$ac_ext <<_ACEOF
3778/* end confdefs.h. */
3779/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3781#define $ac_func innocuous_$ac_func
3782
3783/* System header to define __stub macros and hopefully few prototypes,
3784 which can conflict with char $ac_func (); below.
3785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3786 <limits.h> exists even on freestanding compilers. */
3787
3788#ifdef __STDC__
3789# include <limits.h>
3790#else
3791# include <assert.h>
3792#endif
3793
3794#undef $ac_func
3795
3796/* Override any gcc2 internal prototype to avoid an error. */
3797#ifdef __cplusplus
3798extern "C"
3799{
3800#endif
3801/* We use char because int might match the return type of a gcc2
3802 builtin and then its argument prototype would still apply. */
3803char $ac_func ();
3804/* The GNU C library defines this for functions which it implements
3805 to always fail with ENOSYS. Some functions are actually named
3806 something starting with __ and the normal name is an alias. */
3807#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3808choke me
3809#else
3810char (*f) () = $ac_func;
3811#endif
3812#ifdef __cplusplus
3813}
3814#endif
3815
3816int
3817main ()
3818{
3819return f != $ac_func;
3820 ;
3821 return 0;
3822}
3823_ACEOF
3824rm -f conftest.$ac_objext conftest$ac_exeext
3825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3826 (eval $ac_link) 2>conftest.er1
3827 ac_status=$?
3828 grep -v '^ *+' conftest.er1 >conftest.err
3829 rm -f conftest.er1
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } &&
3833 { ac_try='test -z "$ac_c_werror_flag"
3834 || test ! -s conftest.err'
3835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836 (eval $ac_try) 2>&5
3837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; } &&
3840 { ac_try='test -s conftest$ac_exeext'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 (eval $ac_try) 2>&5
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; }; then
3846 eval "$as_ac_var=yes"
3847else
3848 echo "$as_me: failed program was:" >&5
3849sed 's/^/| /' conftest.$ac_ext >&5
3850
3851eval "$as_ac_var=no"
3852fi
3853rm -f conftest.err conftest.$ac_objext \
3854 conftest$ac_exeext conftest.$ac_ext
3855fi
3856echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3857echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3858if test `eval echo '${'$as_ac_var'}'` = yes; then
3859 cat >>confdefs.h <<_ACEOF
3860#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3861_ACEOF
3862
3863else
3864
3865 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
3866
3867fi
3868done
3869
3870
3871
3872 :
3873
3874
3875
3876
3877
3878 if test $ac_cv_have_decl_memmem = no; then
3879 HAVE_DECL_MEMMEM=0
3880 fi
3881 :
3882
3883
3884 echo "$as_me:$LINENO: checking for long long int" >&5
3885echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3886if test "${ac_cv_type_long_long_int+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888else
3889 cat >conftest.$ac_ext <<_ACEOF
3890
3891 /* confdefs.h. */
3892_ACEOF
3893cat confdefs.h >>conftest.$ac_ext
3894cat >>conftest.$ac_ext <<_ACEOF
3895/* end confdefs.h. */
3896/* For now, do not test the preprocessor; as of 2007 there are too many
3897 implementations with broken preprocessors. Perhaps this can
3898 be revisited in 2012. In the meantime, code should not expect
3899 #if to work with literals wider than 32 bits. */
3900 /* Test literals. */
3901 long long int ll = 9223372036854775807ll;
3902 long long int nll = -9223372036854775807LL;
3903 unsigned long long int ull = 18446744073709551615ULL;
3904 /* Test constant expressions. */
3905 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
3906 ? 1 : -1)];
3907 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
3908 ? 1 : -1)];
3909 int i = 63;
3910int
3911main ()
3912{
3913/* Test availability of runtime routines for shift and division. */
3914 long long int llmax = 9223372036854775807ll;
3915 unsigned long long int ullmax = 18446744073709551615ull;
3916 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
3917 | (llmax / ll) | (llmax % ll)
3918 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
3919 | (ullmax / ull) | (ullmax % ull));
3920 ;
3921 return 0;
3922}
3923
3924_ACEOF
3925rm -f conftest.$ac_objext conftest$ac_exeext
3926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927 (eval $ac_link) 2>conftest.er1
3928 ac_status=$?
3929 grep -v '^ *+' conftest.er1 >conftest.err
3930 rm -f conftest.er1
3931 cat conftest.err >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } &&
3934 { ac_try='test -z "$ac_c_werror_flag"
3935 || test ! -s conftest.err'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 (eval $ac_try) 2>&5
3938 ac_status=$?
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; } &&
3941 { ac_try='test -s conftest$ac_exeext'
3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943 (eval $ac_try) 2>&5
3944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; }; then
3947 if test "$cross_compiling" = yes; then
3948 ac_cv_type_long_long_int=yes
3949else
3950 cat >conftest.$ac_ext <<_ACEOF
3951/* confdefs.h. */
3952_ACEOF
3953cat confdefs.h >>conftest.$ac_ext
3954cat >>conftest.$ac_ext <<_ACEOF
3955/* end confdefs.h. */
3956#include <limits.h>
3957 #ifndef LLONG_MAX
3958 # define HALF \
3959 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
3960 # define LLONG_MAX (HALF - 1 + HALF)
3961 #endif
3962int
3963main ()
3964{
3965long long int n = 1;
3966 int i;
3967 for (i = 0; ; i++)
3968 {
3969 long long int m = n << i;
3970 if (m >> i != n)
3971 return 1;
3972 if (LLONG_MAX / 2 < m)
3973 break;
3974 }
3975 return 0;
3976 ;
3977 return 0;
3978}
3979_ACEOF
3980rm -f conftest$ac_exeext
3981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3982 (eval $ac_link) 2>&5
3983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987 (eval $ac_try) 2>&5
3988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; }; then
3991 ac_cv_type_long_long_int=yes
3992else
3993 echo "$as_me: program exited with status $ac_status" >&5
3994echo "$as_me: failed program was:" >&5
3995sed 's/^/| /' conftest.$ac_ext >&5
3996
3997( exit $ac_status )
3998ac_cv_type_long_long_int=no
3999fi
4000rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4001fi
4002else
4003 echo "$as_me: failed program was:" >&5
4004sed 's/^/| /' conftest.$ac_ext >&5
4005
4006ac_cv_type_long_long_int=no
4007fi
4008rm -f conftest.err conftest.$ac_objext \
4009 conftest$ac_exeext conftest.$ac_ext
4010fi
4011echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4012echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4013 if test $ac_cv_type_long_long_int = yes; then
4014
4015cat >>confdefs.h <<\_ACEOF
4016#define HAVE_LONG_LONG_INT 1
4017_ACEOF
4018
4019 fi
4020
4021
4022 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4023echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4024if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4026else
4027 cat >conftest.$ac_ext <<_ACEOF
4028
4029 /* confdefs.h. */
4030_ACEOF
4031cat confdefs.h >>conftest.$ac_ext
4032cat >>conftest.$ac_ext <<_ACEOF
4033/* end confdefs.h. */
4034/* For now, do not test the preprocessor; as of 2007 there are too many
4035 implementations with broken preprocessors. Perhaps this can
4036 be revisited in 2012. In the meantime, code should not expect
4037 #if to work with literals wider than 32 bits. */
4038 /* Test literals. */
4039 long long int ll = 9223372036854775807ll;
4040 long long int nll = -9223372036854775807LL;
4041 unsigned long long int ull = 18446744073709551615ULL;
4042 /* Test constant expressions. */
4043 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4044 ? 1 : -1)];
4045 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4046 ? 1 : -1)];
4047 int i = 63;
4048int
4049main ()
4050{
4051/* Test availability of runtime routines for shift and division. */
4052 long long int llmax = 9223372036854775807ll;
4053 unsigned long long int ullmax = 18446744073709551615ull;
4054 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4055 | (llmax / ll) | (llmax % ll)
4056 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4057 | (ullmax / ull) | (ullmax % ull));
4058 ;
4059 return 0;
4060}
4061
4062_ACEOF
4063rm -f conftest.$ac_objext conftest$ac_exeext
4064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4065 (eval $ac_link) 2>conftest.er1
4066 ac_status=$?
4067 grep -v '^ *+' conftest.er1 >conftest.err
4068 rm -f conftest.er1
4069 cat conftest.err >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } &&
4072 { ac_try='test -z "$ac_c_werror_flag"
4073 || test ! -s conftest.err'
4074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 (eval $ac_try) 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; } &&
4079 { ac_try='test -s conftest$ac_exeext'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 (eval $ac_try) 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; }; then
4085 ac_cv_type_unsigned_long_long_int=yes
4086else
4087 echo "$as_me: failed program was:" >&5
4088sed 's/^/| /' conftest.$ac_ext >&5
4089
4090ac_cv_type_unsigned_long_long_int=no
4091fi
4092rm -f conftest.err conftest.$ac_objext \
4093 conftest$ac_exeext conftest.$ac_ext
4094fi
4095echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4096echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4097 if test $ac_cv_type_unsigned_long_long_int = yes; then
4098
4099cat >>confdefs.h <<\_ACEOF
4100#define HAVE_UNSIGNED_LONG_LONG_INT 1
4101_ACEOF
4102
4103 fi
4104
4105
4106
4107 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4108echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4109if test "${gl_cv_have_include_next+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4111else
4112 rm -rf conftestd1 conftestd2
4113 mkdir conftestd1 conftestd2
4114 cat <<EOF > conftestd1/conftest.h
4115#define DEFINED_IN_CONFTESTD1
4116#include_next <conftest.h>
4117#ifdef DEFINED_IN_CONFTESTD2
4118int foo;
4119#else
4120#error "include_next doesn't work"
4121#endif
4122EOF
4123 cat <<EOF > conftestd2/conftest.h
4124#ifndef DEFINED_IN_CONFTESTD1
4125#error "include_next test doesn't work"
4126#endif
4127#define DEFINED_IN_CONFTESTD2
4128EOF
4129 save_CPPFLAGS="$CPPFLAGS"
4130 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4131 cat >conftest.$ac_ext <<_ACEOF
4132#include <conftest.h>
4133_ACEOF
4134rm -f conftest.$ac_objext
4135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>conftest.er1
4137 ac_status=$?
4138 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -f conftest.er1
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try='test -z "$ac_c_werror_flag"
4144 || test ! -s conftest.err'
4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146 (eval $ac_try) 2>&5
4147 ac_status=$?
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; } &&
4150 { ac_try='test -s conftest.$ac_objext'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152 (eval $ac_try) 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 gl_cv_have_include_next=yes
4157else
4158 echo "$as_me: failed program was:" >&5
4159sed 's/^/| /' conftest.$ac_ext >&5
4160
4161gl_cv_have_include_next=no
4162fi
4163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4164 CPPFLAGS="$save_CPPFLAGS"
4165 rm -rf conftestd1 conftestd2
4166
4167fi
4168echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4169echo "${ECHO_T}$gl_cv_have_include_next" >&6
4170 if test $gl_cv_have_include_next = yes; then
4171
4172
4173cat >>confdefs.h <<\_ACEOF
4174#define HAVE_INCLUDE_NEXT 1
4175_ACEOF
4176
4177
4178 INCLUDE_NEXT=include_next
4179 else
4180 INCLUDE_NEXT=include
4181 fi
4182
4183
4184
4185
4186
4187
4188
4189for ac_header in $gl_header_list
4190do
4191as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4192if eval "test \"\${$as_ac_Header+set}\" = set"; then
4193 echo "$as_me:$LINENO: checking for $ac_header" >&5
4194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4195if eval "test \"\${$as_ac_Header+set}\" = set"; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4197fi
4198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4199echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4200else
4201 # Is the header compilable?
4202echo "$as_me:$LINENO: checking $ac_header usability" >&5
4203echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4204cat >conftest.$ac_ext <<_ACEOF
4205/* confdefs.h. */
4206_ACEOF
4207cat confdefs.h >>conftest.$ac_ext
4208cat >>conftest.$ac_ext <<_ACEOF
4209/* end confdefs.h. */
4210$ac_includes_default
4211#include <$ac_header>
4212_ACEOF
4213rm -f conftest.$ac_objext
4214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4215 (eval $ac_compile) 2>conftest.er1
4216 ac_status=$?
4217 grep -v '^ *+' conftest.er1 >conftest.err
4218 rm -f conftest.er1
4219 cat conftest.err >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } &&
4222 { ac_try='test -z "$ac_c_werror_flag"
4223 || test ! -s conftest.err'
4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4225 (eval $ac_try) 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; } &&
4229 { ac_try='test -s conftest.$ac_objext'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 (eval $ac_try) 2>&5
4232 ac_status=$?
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; }; then
4235 ac_header_compiler=yes
4236else
4237 echo "$as_me: failed program was:" >&5
4238sed 's/^/| /' conftest.$ac_ext >&5
4239
4240ac_header_compiler=no
4241fi
4242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4243echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4244echo "${ECHO_T}$ac_header_compiler" >&6
4245
4246# Is the header present?
4247echo "$as_me:$LINENO: checking $ac_header presence" >&5
4248echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4249cat >conftest.$ac_ext <<_ACEOF
4250/* confdefs.h. */
4251_ACEOF
4252cat confdefs.h >>conftest.$ac_ext
4253cat >>conftest.$ac_ext <<_ACEOF
4254/* end confdefs.h. */
4255#include <$ac_header>
4256_ACEOF
4257if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4259 ac_status=$?
4260 grep -v '^ *+' conftest.er1 >conftest.err
4261 rm -f conftest.er1
4262 cat conftest.err >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); } >/dev/null; then
4265 if test -s conftest.err; then
4266 ac_cpp_err=$ac_c_preproc_warn_flag
4267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4268 else
4269 ac_cpp_err=
4270 fi
4271else
4272 ac_cpp_err=yes
4273fi
4274if test -z "$ac_cpp_err"; then
4275 ac_header_preproc=yes
4276else
4277 echo "$as_me: failed program was:" >&5
4278sed 's/^/| /' conftest.$ac_ext >&5
4279
4280 ac_header_preproc=no
4281fi
4282rm -f conftest.err conftest.$ac_ext
4283echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4284echo "${ECHO_T}$ac_header_preproc" >&6
4285
4286# So? What about this header?
4287case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4288 yes:no: )
4289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4290echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4292echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4293 ac_header_preproc=yes
4294 ;;
4295 no:yes:* )
4296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4297echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4299echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4301echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4303echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4305echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4307echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4308 (
4309 cat <<\_ASBOX
4310## ------------------------------------------ ##
4311## Report this to the AC_PACKAGE_NAME lists. ##
4312## ------------------------------------------ ##
4313_ASBOX
4314 ) |
4315 sed "s/^/$as_me: WARNING: /" >&2
4316 ;;
4317esac
4318echo "$as_me:$LINENO: checking for $ac_header" >&5
4319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4320if eval "test \"\${$as_ac_Header+set}\" = set"; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322else
4323 eval "$as_ac_Header=\$ac_header_preproc"
4324fi
4325echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4326echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4327
4328fi
4329if test `eval echo '${'$as_ac_Header'}'` = yes; then
4330 cat >>confdefs.h <<_ACEOF
4331#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4332_ACEOF
4333
4334fi
4335
4336done
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4350echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4351if test "${ac_cv_c_restrict+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4353else
4354 ac_cv_c_restrict=no
4355 # The order here caters to the fact that C++ does not require restrict.
4356 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4357 cat >conftest.$ac_ext <<_ACEOF
4358/* confdefs.h. */
4359_ACEOF
4360cat confdefs.h >>conftest.$ac_ext
4361cat >>conftest.$ac_ext <<_ACEOF
4362/* end confdefs.h. */
4363typedef int * int_ptr;
4364 int foo (int_ptr $ac_kw ip) {
4365 return ip[0];
4366 }
4367int
4368main ()
4369{
4370int s[1];
4371 int * $ac_kw t = s;
4372 t[0] = 0;
4373 return foo(t)
4374 ;
4375 return 0;
4376}
4377_ACEOF
4378rm -f conftest.$ac_objext
4379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4380 (eval $ac_compile) 2>conftest.er1
4381 ac_status=$?
4382 grep -v '^ *+' conftest.er1 >conftest.err
4383 rm -f conftest.er1
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try='test -z "$ac_c_werror_flag"
4388 || test ! -s conftest.err'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390 (eval $ac_try) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; } &&
4394 { ac_try='test -s conftest.$ac_objext'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 (eval $ac_try) 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4400 ac_cv_c_restrict=$ac_kw
4401else
4402 echo "$as_me: failed program was:" >&5
4403sed 's/^/| /' conftest.$ac_ext >&5
4404
4405fi
4406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4407 test "$ac_cv_c_restrict" != no && break
4408 done
4409
4410fi
4411echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4412echo "${ECHO_T}$ac_cv_c_restrict" >&6
4413
4414
4415 case $ac_cv_c_restrict in
4416 restrict) ;;
4417 no) cat >>confdefs.h <<\_ACEOF
4418#define restrict
4419_ACEOF
4420 ;;
4421 *) cat >>confdefs.h <<_ACEOF
4422#define restrict $ac_cv_c_restrict
4423_ACEOF
4424 ;;
4425 esac
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439 :
4440
4441
4442
4443
4444
4445
4446
4447 if test $gl_cv_have_include_next = yes; then
4448 gl_cv_next_string_h='<'string.h'>'
4449 else
4450 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4451echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4452if test "${gl_cv_next_string_h+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4454else
4455
4456 if test $ac_cv_header_string_h = yes; then
4457 cat >conftest.$ac_ext <<_ACEOF
4458/* confdefs.h. */
4459_ACEOF
4460cat confdefs.h >>conftest.$ac_ext
4461cat >>conftest.$ac_ext <<_ACEOF
4462/* end confdefs.h. */
4463#include <string.h>
4464
4465_ACEOF
4466 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4467 sed -n '\#/string.h#{
4468 s#.*"\(.*/string.h\)".*#\1#
4469 s#^/[^/]#//&#
4470 p
4471 q
4472 }'`'"'
4473 else
4474 gl_cv_next_string_h='<'string.h'>'
4475 fi
4476
4477fi
4478echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4479echo "${ECHO_T}$gl_cv_next_string_h" >&6
4480 fi
4481 NEXT_STRING_H=$gl_cv_next_string_h
4482
4483
4484
4485
4486
4487 GNULIB_WCWIDTH=0;
4488 HAVE_DECL_WCWIDTH=1;
4489 REPLACE_WCWIDTH=0;
4490 WCHAR_H=
4491
4492
4493
4494
4495
4496if false; then
4497 GL_COND_LIBTOOL_TRUE=
4498 GL_COND_LIBTOOL_FALSE='#'
4499else
4500 GL_COND_LIBTOOL_TRUE='#'
4501 GL_COND_LIBTOOL_FALSE=
4502fi
4503
4504 gl_cond_libtool=false
4505 gl_libdeps=
4506 gl_ltlibdeps=
4507
4508
4509
4510 gl_source_base='gnulib'
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520for ac_func in memchr
4521do
4522as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4523echo "$as_me:$LINENO: checking for $ac_func" >&5
4524echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4525if eval "test \"\${$as_ac_var+set}\" = set"; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527else
4528 cat >conftest.$ac_ext <<_ACEOF
4529/* confdefs.h. */
4530_ACEOF
4531cat confdefs.h >>conftest.$ac_ext
4532cat >>conftest.$ac_ext <<_ACEOF
4533/* end confdefs.h. */
4534/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4536#define $ac_func innocuous_$ac_func
4537
4538/* System header to define __stub macros and hopefully few prototypes,
4539 which can conflict with char $ac_func (); below.
4540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4541 <limits.h> exists even on freestanding compilers. */
4542
4543#ifdef __STDC__
4544# include <limits.h>
4545#else
4546# include <assert.h>
4547#endif
4548
4549#undef $ac_func
4550
4551/* Override any gcc2 internal prototype to avoid an error. */
4552#ifdef __cplusplus
4553extern "C"
4554{
4555#endif
4556/* We use char because int might match the return type of a gcc2
4557 builtin and then its argument prototype would still apply. */
4558char $ac_func ();
4559/* The GNU C library defines this for functions which it implements
4560 to always fail with ENOSYS. Some functions are actually named
4561 something starting with __ and the normal name is an alias. */
4562#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4563choke me
4564#else
4565char (*f) () = $ac_func;
4566#endif
4567#ifdef __cplusplus
4568}
4569#endif
4570
4571int
4572main ()
4573{
4574return f != $ac_func;
4575 ;
4576 return 0;
4577}
4578_ACEOF
4579rm -f conftest.$ac_objext conftest$ac_exeext
4580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4581 (eval $ac_link) 2>conftest.er1
4582 ac_status=$?
4583 grep -v '^ *+' conftest.er1 >conftest.err
4584 rm -f conftest.er1
4585 cat conftest.err >&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } &&
4588 { ac_try='test -z "$ac_c_werror_flag"
4589 || test ! -s conftest.err'
4590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 (eval $ac_try) 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }; } &&
4595 { ac_try='test -s conftest$ac_exeext'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 (eval $ac_try) 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; }; then
4601 eval "$as_ac_var=yes"
4602else
4603 echo "$as_me: failed program was:" >&5
4604sed 's/^/| /' conftest.$ac_ext >&5
4605
4606eval "$as_ac_var=no"
4607fi
4608rm -f conftest.err conftest.$ac_objext \
4609 conftest$ac_exeext conftest.$ac_ext
4610fi
4611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4612echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4613if test `eval echo '${'$as_ac_var'}'` = yes; then
4614 cat >>confdefs.h <<_ACEOF
4615#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4616_ACEOF
4617
4618else
4619
4620 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4621
4622fi
4623done
4624
4625
4626 if test $ac_cv_func_memchr = no; then
4627
4628
4629for ac_header in bp-sym.h
4630do
4631as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4632if eval "test \"\${$as_ac_Header+set}\" = set"; then
4633 echo "$as_me:$LINENO: checking for $ac_header" >&5
4634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4635if eval "test \"\${$as_ac_Header+set}\" = set"; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4637fi
4638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4640else
4641 # Is the header compilable?
4642echo "$as_me:$LINENO: checking $ac_header usability" >&5
4643echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4644cat >conftest.$ac_ext <<_ACEOF
4645/* confdefs.h. */
4646_ACEOF
4647cat confdefs.h >>conftest.$ac_ext
4648cat >>conftest.$ac_ext <<_ACEOF
4649/* end confdefs.h. */
4650$ac_includes_default
4651#include <$ac_header>
4652_ACEOF
4653rm -f conftest.$ac_objext
4654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4655 (eval $ac_compile) 2>conftest.er1
4656 ac_status=$?
4657 grep -v '^ *+' conftest.er1 >conftest.err
4658 rm -f conftest.er1
4659 cat conftest.err >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } &&
4662 { ac_try='test -z "$ac_c_werror_flag"
4663 || test ! -s conftest.err'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 (eval $ac_try) 2>&5
4666 ac_status=$?
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try='test -s conftest.$ac_objext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 (eval $ac_try) 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 ac_header_compiler=yes
4676else
4677 echo "$as_me: failed program was:" >&5
4678sed 's/^/| /' conftest.$ac_ext >&5
4679
4680ac_header_compiler=no
4681fi
4682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4683echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4684echo "${ECHO_T}$ac_header_compiler" >&6
4685
4686# Is the header present?
4687echo "$as_me:$LINENO: checking $ac_header presence" >&5
4688echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4689cat >conftest.$ac_ext <<_ACEOF
4690/* confdefs.h. */
4691_ACEOF
4692cat confdefs.h >>conftest.$ac_ext
4693cat >>conftest.$ac_ext <<_ACEOF
4694/* end confdefs.h. */
4695#include <$ac_header>
4696_ACEOF
4697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4699 ac_status=$?
4700 grep -v '^ *+' conftest.er1 >conftest.err
4701 rm -f conftest.er1
4702 cat conftest.err >&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); } >/dev/null; then
4705 if test -s conftest.err; then
4706 ac_cpp_err=$ac_c_preproc_warn_flag
4707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4708 else
4709 ac_cpp_err=
4710 fi
4711else
4712 ac_cpp_err=yes
4713fi
4714if test -z "$ac_cpp_err"; then
4715 ac_header_preproc=yes
4716else
4717 echo "$as_me: failed program was:" >&5
4718sed 's/^/| /' conftest.$ac_ext >&5
4719
4720 ac_header_preproc=no
4721fi
4722rm -f conftest.err conftest.$ac_ext
4723echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4724echo "${ECHO_T}$ac_header_preproc" >&6
4725
4726# So? What about this header?
4727case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4728 yes:no: )
4729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4730echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4732echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4733 ac_header_preproc=yes
4734 ;;
4735 no:yes:* )
4736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4737echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4739echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4741echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4743echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4745echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4747echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4748 (
4749 cat <<\_ASBOX
4750## ------------------------------------------ ##
4751## Report this to the AC_PACKAGE_NAME lists. ##
4752## ------------------------------------------ ##
4753_ASBOX
4754 ) |
4755 sed "s/^/$as_me: WARNING: /" >&2
4756 ;;
4757esac
4758echo "$as_me:$LINENO: checking for $ac_header" >&5
4759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4760if eval "test \"\${$as_ac_Header+set}\" = set"; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4762else
4763 eval "$as_ac_Header=\$ac_header_preproc"
4764fi
4765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4767
4768fi
4769if test `eval echo '${'$as_ac_Header'}'` = yes; then
4770 cat >>confdefs.h <<_ACEOF
4771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4772_ACEOF
4773
4774fi
4775
4776done
4777
4778
4779 fi
4780
4781
4782 echo "$as_me:$LINENO: checking for working memcmp" >&5
4783echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4784if test "${ac_cv_func_memcmp_working+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4786else
4787 if test "$cross_compiling" = yes; then
4788 ac_cv_func_memcmp_working=no
4789else
4790 cat >conftest.$ac_ext <<_ACEOF
4791/* confdefs.h. */
4792_ACEOF
4793cat confdefs.h >>conftest.$ac_ext
4794cat >>conftest.$ac_ext <<_ACEOF
4795/* end confdefs.h. */
4796$ac_includes_default
4797int
4798main ()
4799{
4800
4801 /* Some versions of memcmp are not 8-bit clean. */
4802 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4803 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4804 exit (1);
4805
4806 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4807 or more and with at least one buffer not starting on a 4-byte boundary.
4808 William Lewis provided this test program. */
4809 {
4810 char foo[21];
4811 char bar[21];
4812 int i;
4813 for (i = 0; i < 4; i++)
4814 {
4815 char *a = foo + i;
4816 char *b = bar + i;
4817 strcpy (a, "--------01111111");
4818 strcpy (b, "--------10000000");
4819 if (memcmp (a, b, 16) >= 0)
4820 exit (1);
4821 }
4822 exit (0);
4823 }
4824
4825 ;
4826 return 0;
4827}
4828_ACEOF
4829rm -f conftest$ac_exeext
4830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4831 (eval $ac_link) 2>&5
4832 ac_status=$?
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 (eval $ac_try) 2>&5
4837 ac_status=$?
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; }; then
4840 ac_cv_func_memcmp_working=yes
4841else
4842 echo "$as_me: program exited with status $ac_status" >&5
4843echo "$as_me: failed program was:" >&5
4844sed 's/^/| /' conftest.$ac_ext >&5
4845
4846( exit $ac_status )
4847ac_cv_func_memcmp_working=no
4848fi
4849rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4850fi
4851fi
4852echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4853echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4854test $ac_cv_func_memcmp_working = no &&
4855
4856
4857
4858
4859
4860
4861 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
4862
4863
4864 if test $ac_cv_func_memcmp_working = no; then
4865
4866cat >>confdefs.h <<\_ACEOF
4867#define memcmp rpl_memcmp
4868_ACEOF
4869
4870 :
4871 fi
4872
4873
4874
4875 if test $ac_cv_have_decl_memmem = yes; then
4876 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
4877echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
4878if test "${gl_cv_func_memmem_works+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4880else
4881 if test "$cross_compiling" = yes; then
4882 gl_cv_func_memmem_works="guessing no"
4883else
4884 cat >conftest.$ac_ext <<_ACEOF
4885/* confdefs.h. */
4886_ACEOF
4887cat confdefs.h >>conftest.$ac_ext
4888cat >>conftest.$ac_ext <<_ACEOF
4889/* end confdefs.h. */
4890
4891#include <string.h> /* for memmem */
4892#include <stdlib.h> /* for malloc */
4893#include <unistd.h> /* for alarm */
4894
4895int
4896main ()
4897{
4898size_t m = 1000000;
4899 char *haystack = (char *) malloc (2 * m + 1);
4900 char *needle = (char *) malloc (m + 1);
4901 void *result = 0;
4902 /* Failure to compile this test due to missing alarm is okay,
4903 since all such platforms (mingw) also lack memmem. */
4904 alarm (5);
4905 /* Check for quadratic performance. */
4906 if (haystack && needle)
4907 {
4908 memset (haystack, 'A', 2 * m);
4909 haystack[2 * m] = 'B';
4910 memset (needle, 'A', m);
4911 needle[m] = 'B';
4912 result = memmem (haystack, 2 * m + 1, needle, m + 1);
4913 }
4914 /* Check for empty needle behavior. */
4915 return !result || !memmem ("a", 1, 0, 0);
4916 ;
4917 return 0;
4918}
4919_ACEOF
4920rm -f conftest$ac_exeext
4921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4922 (eval $ac_link) 2>&5
4923 ac_status=$?
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927 (eval $ac_try) 2>&5
4928 ac_status=$?
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; }; then
4931 gl_cv_func_memmem_works=yes
4932else
4933 echo "$as_me: program exited with status $ac_status" >&5
4934echo "$as_me: failed program was:" >&5
4935sed 's/^/| /' conftest.$ac_ext >&5
4936
4937( exit $ac_status )
4938gl_cv_func_memmem_works=no
4939fi
4940rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4941fi
4942fi
4943echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
4944echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
4945 if test "$gl_cv_func_memmem_works" != yes; then
4946 REPLACE_MEMMEM=1
4947
4948
4949
4950
4951
4952
4953
4954 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
4955
4956 fi
4957 fi
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971for ac_func in memmem
4972do
4973as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4974echo "$as_me:$LINENO: checking for $ac_func" >&5
4975echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4976if eval "test \"\${$as_ac_var+set}\" = set"; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4978else
4979 cat >conftest.$ac_ext <<_ACEOF
4980/* confdefs.h. */
4981_ACEOF
4982cat confdefs.h >>conftest.$ac_ext
4983cat >>conftest.$ac_ext <<_ACEOF
4984/* end confdefs.h. */
4985/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4987#define $ac_func innocuous_$ac_func
4988
4989/* System header to define __stub macros and hopefully few prototypes,
4990 which can conflict with char $ac_func (); below.
4991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4992 <limits.h> exists even on freestanding compilers. */
4993
4994#ifdef __STDC__
4995# include <limits.h>
4996#else
4997# include <assert.h>
4998#endif
4999
5000#undef $ac_func
5001
5002/* Override any gcc2 internal prototype to avoid an error. */
5003#ifdef __cplusplus
5004extern "C"
5005{
5006#endif
5007/* We use char because int might match the return type of a gcc2
5008 builtin and then its argument prototype would still apply. */
5009char $ac_func ();
5010/* The GNU C library defines this for functions which it implements
5011 to always fail with ENOSYS. Some functions are actually named
5012 something starting with __ and the normal name is an alias. */
5013#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5014choke me
5015#else
5016char (*f) () = $ac_func;
5017#endif
5018#ifdef __cplusplus
5019}
5020#endif
5021
5022int
5023main ()
5024{
5025return f != $ac_func;
5026 ;
5027 return 0;
5028}
5029_ACEOF
5030rm -f conftest.$ac_objext conftest$ac_exeext
5031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5032 (eval $ac_link) 2>conftest.er1
5033 ac_status=$?
5034 grep -v '^ *+' conftest.er1 >conftest.err
5035 rm -f conftest.er1
5036 cat conftest.err >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); } &&
5039 { ac_try='test -z "$ac_c_werror_flag"
5040 || test ! -s conftest.err'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 (eval $ac_try) 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; } &&
5046 { ac_try='test -s conftest$ac_exeext'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 (eval $ac_try) 2>&5
5049 ac_status=$?
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; }; then
5052 eval "$as_ac_var=yes"
5053else
5054 echo "$as_me: failed program was:" >&5
5055sed 's/^/| /' conftest.$ac_ext >&5
5056
5057eval "$as_ac_var=no"
5058fi
5059rm -f conftest.err conftest.$ac_objext \
5060 conftest$ac_exeext conftest.$ac_ext
5061fi
5062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5063echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5064if test `eval echo '${'$as_ac_var'}'` = yes; then
5065 cat >>confdefs.h <<_ACEOF
5066#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5067_ACEOF
5068
5069else
5070
5071 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5072
5073fi
5074done
5075
5076
5077
5078 :
5079
5080
5081
5082
5083
5084 if test $ac_cv_have_decl_memmem = no; then
5085 HAVE_DECL_MEMMEM=0
5086 fi
5087 :
5088
5089
5090
5091 GNULIB_MEMMEM=1
5092
5093
5094
5095
5096 if test $ac_cv_type_long_long_int = yes; then
5097 HAVE_LONG_LONG_INT=1
5098 else
5099 HAVE_LONG_LONG_INT=0
5100 fi
5101
5102
5103 if test $ac_cv_type_unsigned_long_long_int = yes; then
5104 HAVE_UNSIGNED_LONG_LONG_INT=1
5105 else
5106 HAVE_UNSIGNED_LONG_LONG_INT=0
5107 fi
5108
5109
5110 if test $ac_cv_header_inttypes_h = yes; then
5111 HAVE_INTTYPES_H=1
5112 else
5113 HAVE_INTTYPES_H=0
5114 fi
5115
5116
5117 if test $ac_cv_header_sys_types_h = yes; then
5118 HAVE_SYS_TYPES_H=1
5119 else
5120 HAVE_SYS_TYPES_H=0
5121 fi
5122
5123
5124
5125
5126
5127 :
5128
5129
5130
5131
5132
5133
5134
5135 if test $gl_cv_have_include_next = yes; then
5136 gl_cv_next_stdint_h='<'stdint.h'>'
5137 else
5138 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5139echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5140if test "${gl_cv_next_stdint_h+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5142else
5143
5144 if test $ac_cv_header_stdint_h = yes; then
5145 cat >conftest.$ac_ext <<_ACEOF
5146/* confdefs.h. */
5147_ACEOF
5148cat confdefs.h >>conftest.$ac_ext
5149cat >>conftest.$ac_ext <<_ACEOF
5150/* end confdefs.h. */
5151#include <stdint.h>
5152
5153_ACEOF
5154 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5155 sed -n '\#/stdint.h#{
5156 s#.*"\(.*/stdint.h\)".*#\1#
5157 s#^/[^/]#//&#
5158 p
5159 q
5160 }'`'"'
5161 else
5162 gl_cv_next_stdint_h='<'stdint.h'>'
5163 fi
5164
5165fi
5166echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5167echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5168 fi
5169 NEXT_STDINT_H=$gl_cv_next_stdint_h
5170
5171
5172
5173 if test $ac_cv_header_stdint_h = yes; then
5174 HAVE_STDINT_H=1
5175 else
5176 HAVE_STDINT_H=0
5177 fi
5178
5179
5180 if test $ac_cv_header_stdint_h = yes; then
5181 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5182echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5183if test "${gl_cv_header_working_stdint_h+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185else
5186 gl_cv_header_working_stdint_h=no
5187 cat >conftest.$ac_ext <<_ACEOF
5188
5189 /* confdefs.h. */
5190_ACEOF
5191cat confdefs.h >>conftest.$ac_ext
5192cat >>conftest.$ac_ext <<_ACEOF
5193/* end confdefs.h. */
5194
5195#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5196#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5197#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5198#include <stdint.h>
5199/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5200#if !(defined WCHAR_MIN && defined WCHAR_MAX)
5201#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5202#endif
5203
5204
5205 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5206 included before <wchar.h>. */
5207 #include <stddef.h>
5208 #include <signal.h>
5209 #if HAVE_WCHAR_H
5210 # include <stdio.h>
5211 # include <time.h>
5212 # include <wchar.h>
5213 #endif
5214
5215
5216#ifdef INT8_MAX
5217int8_t a1 = INT8_MAX;
5218int8_t a1min = INT8_MIN;
5219#endif
5220#ifdef INT16_MAX
5221int16_t a2 = INT16_MAX;
5222int16_t a2min = INT16_MIN;
5223#endif
5224#ifdef INT32_MAX
5225int32_t a3 = INT32_MAX;
5226int32_t a3min = INT32_MIN;
5227#endif
5228#ifdef INT64_MAX
5229int64_t a4 = INT64_MAX;
5230int64_t a4min = INT64_MIN;
5231#endif
5232#ifdef UINT8_MAX
5233uint8_t b1 = UINT8_MAX;
5234#else
5235typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5236#endif
5237#ifdef UINT16_MAX
5238uint16_t b2 = UINT16_MAX;
5239#endif
5240#ifdef UINT32_MAX
5241uint32_t b3 = UINT32_MAX;
5242#endif
5243#ifdef UINT64_MAX
5244uint64_t b4 = UINT64_MAX;
5245#endif
5246int_least8_t c1 = INT8_C (0x7f);
5247int_least8_t c1max = INT_LEAST8_MAX;
5248int_least8_t c1min = INT_LEAST8_MIN;
5249int_least16_t c2 = INT16_C (0x7fff);
5250int_least16_t c2max = INT_LEAST16_MAX;
5251int_least16_t c2min = INT_LEAST16_MIN;
5252int_least32_t c3 = INT32_C (0x7fffffff);
5253int_least32_t c3max = INT_LEAST32_MAX;
5254int_least32_t c3min = INT_LEAST32_MIN;
5255int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5256int_least64_t c4max = INT_LEAST64_MAX;
5257int_least64_t c4min = INT_LEAST64_MIN;
5258uint_least8_t d1 = UINT8_C (0xff);
5259uint_least8_t d1max = UINT_LEAST8_MAX;
5260uint_least16_t d2 = UINT16_C (0xffff);
5261uint_least16_t d2max = UINT_LEAST16_MAX;
5262uint_least32_t d3 = UINT32_C (0xffffffff);
5263uint_least32_t d3max = UINT_LEAST32_MAX;
5264uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5265uint_least64_t d4max = UINT_LEAST64_MAX;
5266int_fast8_t e1 = INT_FAST8_MAX;
5267int_fast8_t e1min = INT_FAST8_MIN;
5268int_fast16_t e2 = INT_FAST16_MAX;
5269int_fast16_t e2min = INT_FAST16_MIN;
5270int_fast32_t e3 = INT_FAST32_MAX;
5271int_fast32_t e3min = INT_FAST32_MIN;
5272int_fast64_t e4 = INT_FAST64_MAX;
5273int_fast64_t e4min = INT_FAST64_MIN;
5274uint_fast8_t f1 = UINT_FAST8_MAX;
5275uint_fast16_t f2 = UINT_FAST16_MAX;
5276uint_fast32_t f3 = UINT_FAST32_MAX;
5277uint_fast64_t f4 = UINT_FAST64_MAX;
5278#ifdef INTPTR_MAX
5279intptr_t g = INTPTR_MAX;
5280intptr_t gmin = INTPTR_MIN;
5281#endif
5282#ifdef UINTPTR_MAX
5283uintptr_t h = UINTPTR_MAX;
5284#endif
5285intmax_t i = INTMAX_MAX;
5286uintmax_t j = UINTMAX_MAX;
5287
5288#include <limits.h> /* for CHAR_BIT */
5289#define TYPE_MINIMUM(t) \
5290 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5291#define TYPE_MAXIMUM(t) \
5292 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5293struct s {
5294 int check_PTRDIFF:
5295 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5296 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5297 ? 1 : -1;
5298 /* Detect bug in FreeBSD 6.0 / ia64. */
5299 int check_SIG_ATOMIC:
5300 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5301 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5302 ? 1 : -1;
5303 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5304 int check_WCHAR:
5305 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5306 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5307 ? 1 : -1;
5308 /* Detect bug in mingw. */
5309 int check_WINT:
5310 WINT_MIN == TYPE_MINIMUM (wint_t)
5311 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5312 ? 1 : -1;
5313
5314 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5315 int check_UINT8_C:
5316 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5317 int check_UINT16_C:
5318 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5319
5320 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5321#ifdef UINT8_MAX
5322 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5323#endif
5324#ifdef UINT16_MAX
5325 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5326#endif
5327#ifdef UINT32_MAX
5328 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5329#endif
5330#ifdef UINT64_MAX
5331 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5332#endif
5333 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5334 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5335 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5336 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5337 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5338 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5339 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5340 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5341 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5342 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5343 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5344};
5345
5346int
5347main ()
5348{
5349
5350 ;
5351 return 0;
5352}
5353_ACEOF
5354rm -f conftest.$ac_objext
5355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356 (eval $ac_compile) 2>conftest.er1
5357 ac_status=$?
5358 grep -v '^ *+' conftest.er1 >conftest.err
5359 rm -f conftest.er1
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } &&
5363 { ac_try='test -z "$ac_c_werror_flag"
5364 || test ! -s conftest.err'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 (eval $ac_try) 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; } &&
5370 { ac_try='test -s conftest.$ac_objext'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372 (eval $ac_try) 2>&5
5373 ac_status=$?
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5376 gl_cv_header_working_stdint_h=yes
5377else
5378 echo "$as_me: failed program was:" >&5
5379sed 's/^/| /' conftest.$ac_ext >&5
5380
5381fi
5382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5383fi
5384echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5385echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5386 fi
5387 if test "$gl_cv_header_working_stdint_h" = yes; then
5388 STDINT_H=
5389 else
5390
5391
5392for ac_header in sys/inttypes.h sys/bitypes.h
5393do
5394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5395if eval "test \"\${$as_ac_Header+set}\" = set"; then
5396 echo "$as_me:$LINENO: checking for $ac_header" >&5
5397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5398if eval "test \"\${$as_ac_Header+set}\" = set"; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400fi
5401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5402echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5403else
5404 # Is the header compilable?
5405echo "$as_me:$LINENO: checking $ac_header usability" >&5
5406echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5407cat >conftest.$ac_ext <<_ACEOF
5408/* confdefs.h. */
5409_ACEOF
5410cat confdefs.h >>conftest.$ac_ext
5411cat >>conftest.$ac_ext <<_ACEOF
5412/* end confdefs.h. */
5413$ac_includes_default
5414#include <$ac_header>
5415_ACEOF
5416rm -f conftest.$ac_objext
5417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5418 (eval $ac_compile) 2>conftest.er1
5419 ac_status=$?
5420 grep -v '^ *+' conftest.er1 >conftest.err
5421 rm -f conftest.er1
5422 cat conftest.err >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } &&
5425 { ac_try='test -z "$ac_c_werror_flag"
5426 || test ! -s conftest.err'
5427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5428 (eval $ac_try) 2>&5
5429 ac_status=$?
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); }; } &&
5432 { ac_try='test -s conftest.$ac_objext'
5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434 (eval $ac_try) 2>&5
5435 ac_status=$?
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; }; then
5438 ac_header_compiler=yes
5439else
5440 echo "$as_me: failed program was:" >&5
5441sed 's/^/| /' conftest.$ac_ext >&5
5442
5443ac_header_compiler=no
5444fi
5445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5446echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5447echo "${ECHO_T}$ac_header_compiler" >&6
5448
5449# Is the header present?
5450echo "$as_me:$LINENO: checking $ac_header presence" >&5
5451echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5452cat >conftest.$ac_ext <<_ACEOF
5453/* confdefs.h. */
5454_ACEOF
5455cat confdefs.h >>conftest.$ac_ext
5456cat >>conftest.$ac_ext <<_ACEOF
5457/* end confdefs.h. */
5458#include <$ac_header>
5459_ACEOF
5460if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5462 ac_status=$?
5463 grep -v '^ *+' conftest.er1 >conftest.err
5464 rm -f conftest.er1
5465 cat conftest.err >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } >/dev/null; then
5468 if test -s conftest.err; then
5469 ac_cpp_err=$ac_c_preproc_warn_flag
5470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5471 else
5472 ac_cpp_err=
5473 fi
5474else
5475 ac_cpp_err=yes
5476fi
5477if test -z "$ac_cpp_err"; then
5478 ac_header_preproc=yes
5479else
5480 echo "$as_me: failed program was:" >&5
5481sed 's/^/| /' conftest.$ac_ext >&5
5482
5483 ac_header_preproc=no
5484fi
5485rm -f conftest.err conftest.$ac_ext
5486echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5487echo "${ECHO_T}$ac_header_preproc" >&6
5488
5489# So? What about this header?
5490case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5491 yes:no: )
5492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5493echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5495echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5496 ac_header_preproc=yes
5497 ;;
5498 no:yes:* )
5499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5500echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5502echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5504echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5506echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5508echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5510echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5511 (
5512 cat <<\_ASBOX
5513## ------------------------------------------ ##
5514## Report this to the AC_PACKAGE_NAME lists. ##
5515## ------------------------------------------ ##
5516_ASBOX
5517 ) |
5518 sed "s/^/$as_me: WARNING: /" >&2
5519 ;;
5520esac
5521echo "$as_me:$LINENO: checking for $ac_header" >&5
5522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5523if eval "test \"\${$as_ac_Header+set}\" = set"; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5525else
5526 eval "$as_ac_Header=\$ac_header_preproc"
5527fi
5528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5529echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5530
5531fi
5532if test `eval echo '${'$as_ac_Header'}'` = yes; then
5533 cat >>confdefs.h <<_ACEOF
5534#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5535_ACEOF
5536
5537fi
5538
5539done
5540
5541 if test $ac_cv_header_sys_inttypes_h = yes; then
5542 HAVE_SYS_INTTYPES_H=1
5543 else
5544 HAVE_SYS_INTTYPES_H=0
5545 fi
5546
5547 if test $ac_cv_header_sys_bitypes_h = yes; then
5548 HAVE_SYS_BITYPES_H=1
5549 else
5550 HAVE_SYS_BITYPES_H=0
5551 fi
5552
5553
5554
5555 :
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5571 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5572echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5573if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5575else
5576 if test "$cross_compiling" = yes; then
5577 # Depending upon the size, compute the lo and hi bounds.
5578cat >conftest.$ac_ext <<_ACEOF
5579/* confdefs.h. */
5580_ACEOF
5581cat confdefs.h >>conftest.$ac_ext
5582cat >>conftest.$ac_ext <<_ACEOF
5583/* end confdefs.h. */
5584
5585 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5586 included before <wchar.h>. */
5587 #include <stddef.h>
5588 #include <signal.h>
5589 #if HAVE_WCHAR_H
5590 # include <stdio.h>
5591 # include <time.h>
5592 # include <wchar.h>
5593 #endif
5594
5595#include <limits.h>
5596int
5597main ()
5598{
5599static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5600test_array [0] = 0
5601
5602 ;
5603 return 0;
5604}
5605_ACEOF
5606rm -f conftest.$ac_objext
5607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608 (eval $ac_compile) 2>conftest.er1
5609 ac_status=$?
5610 grep -v '^ *+' conftest.er1 >conftest.err
5611 rm -f conftest.er1
5612 cat conftest.err >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
5615 { ac_try='test -z "$ac_c_werror_flag"
5616 || test ! -s conftest.err'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 (eval $ac_try) 2>&5
5619 ac_status=$?
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; } &&
5622 { ac_try='test -s conftest.$ac_objext'
5623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624 (eval $ac_try) 2>&5
5625 ac_status=$?
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; }; then
5628 ac_lo=0 ac_mid=0
5629 while :; do
5630 cat >conftest.$ac_ext <<_ACEOF
5631/* confdefs.h. */
5632_ACEOF
5633cat confdefs.h >>conftest.$ac_ext
5634cat >>conftest.$ac_ext <<_ACEOF
5635/* end confdefs.h. */
5636
5637 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5638 included before <wchar.h>. */
5639 #include <stddef.h>
5640 #include <signal.h>
5641 #if HAVE_WCHAR_H
5642 # include <stdio.h>
5643 # include <time.h>
5644 # include <wchar.h>
5645 #endif
5646
5647#include <limits.h>
5648int
5649main ()
5650{
5651static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5652test_array [0] = 0
5653
5654 ;
5655 return 0;
5656}
5657_ACEOF
5658rm -f conftest.$ac_objext
5659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5660 (eval $ac_compile) 2>conftest.er1
5661 ac_status=$?
5662 grep -v '^ *+' conftest.er1 >conftest.err
5663 rm -f conftest.er1
5664 cat conftest.err >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } &&
5667 { ac_try='test -z "$ac_c_werror_flag"
5668 || test ! -s conftest.err'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 (eval $ac_try) 2>&5
5671 ac_status=$?
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; } &&
5674 { ac_try='test -s conftest.$ac_objext'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 (eval $ac_try) 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; }; then
5680 ac_hi=$ac_mid; break
5681else
5682 echo "$as_me: failed program was:" >&5
5683sed 's/^/| /' conftest.$ac_ext >&5
5684
5685ac_lo=`expr $ac_mid + 1`
5686 if test $ac_lo -le $ac_mid; then
5687 ac_lo= ac_hi=
5688 break
5689 fi
5690 ac_mid=`expr 2 '*' $ac_mid + 1`
5691fi
5692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5693 done
5694else
5695 echo "$as_me: failed program was:" >&5
5696sed 's/^/| /' conftest.$ac_ext >&5
5697
5698cat >conftest.$ac_ext <<_ACEOF
5699/* confdefs.h. */
5700_ACEOF
5701cat confdefs.h >>conftest.$ac_ext
5702cat >>conftest.$ac_ext <<_ACEOF
5703/* end confdefs.h. */
5704
5705 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5706 included before <wchar.h>. */
5707 #include <stddef.h>
5708 #include <signal.h>
5709 #if HAVE_WCHAR_H
5710 # include <stdio.h>
5711 # include <time.h>
5712 # include <wchar.h>
5713 #endif
5714
5715#include <limits.h>
5716int
5717main ()
5718{
5719static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5720test_array [0] = 0
5721
5722 ;
5723 return 0;
5724}
5725_ACEOF
5726rm -f conftest.$ac_objext
5727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728 (eval $ac_compile) 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } &&
5735 { ac_try='test -z "$ac_c_werror_flag"
5736 || test ! -s conftest.err'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 (eval $ac_try) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; } &&
5742 { ac_try='test -s conftest.$ac_objext'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 (eval $ac_try) 2>&5
5745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 ac_hi=-1 ac_mid=-1
5749 while :; do
5750 cat >conftest.$ac_ext <<_ACEOF
5751/* confdefs.h. */
5752_ACEOF
5753cat confdefs.h >>conftest.$ac_ext
5754cat >>conftest.$ac_ext <<_ACEOF
5755/* end confdefs.h. */
5756
5757 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5758 included before <wchar.h>. */
5759 #include <stddef.h>
5760 #include <signal.h>
5761 #if HAVE_WCHAR_H
5762 # include <stdio.h>
5763 # include <time.h>
5764 # include <wchar.h>
5765 #endif
5766
5767#include <limits.h>
5768int
5769main ()
5770{
5771static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5772test_array [0] = 0
5773
5774 ;
5775 return 0;
5776}
5777_ACEOF
5778rm -f conftest.$ac_objext
5779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5780 (eval $ac_compile) 2>conftest.er1
5781 ac_status=$?
5782 grep -v '^ *+' conftest.er1 >conftest.err
5783 rm -f conftest.er1
5784 cat conftest.err >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } &&
5787 { ac_try='test -z "$ac_c_werror_flag"
5788 || test ! -s conftest.err'
5789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 (eval $ac_try) 2>&5
5791 ac_status=$?
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; } &&
5794 { ac_try='test -s conftest.$ac_objext'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 (eval $ac_try) 2>&5
5797 ac_status=$?
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; }; then
5800 ac_lo=$ac_mid; break
5801else
5802 echo "$as_me: failed program was:" >&5
5803sed 's/^/| /' conftest.$ac_ext >&5
5804
5805ac_hi=`expr '(' $ac_mid ')' - 1`
5806 if test $ac_mid -le $ac_hi; then
5807 ac_lo= ac_hi=
5808 break
5809 fi
5810 ac_mid=`expr 2 '*' $ac_mid`
5811fi
5812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5813 done
5814else
5815 echo "$as_me: failed program was:" >&5
5816sed 's/^/| /' conftest.$ac_ext >&5
5817
5818ac_lo= ac_hi=
5819fi
5820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5821fi
5822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5823# Binary search between lo and hi bounds.
5824while test "x$ac_lo" != "x$ac_hi"; do
5825 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5826 cat >conftest.$ac_ext <<_ACEOF
5827/* confdefs.h. */
5828_ACEOF
5829cat confdefs.h >>conftest.$ac_ext
5830cat >>conftest.$ac_ext <<_ACEOF
5831/* end confdefs.h. */
5832
5833 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5834 included before <wchar.h>. */
5835 #include <stddef.h>
5836 #include <signal.h>
5837 #if HAVE_WCHAR_H
5838 # include <stdio.h>
5839 # include <time.h>
5840 # include <wchar.h>
5841 #endif
5842
5843#include <limits.h>
5844int
5845main ()
5846{
5847static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5848test_array [0] = 0
5849
5850 ;
5851 return 0;
5852}
5853_ACEOF
5854rm -f conftest.$ac_objext
5855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5856 (eval $ac_compile) 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -z "$ac_c_werror_flag"
5864 || test ! -s conftest.err'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 (eval $ac_try) 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; } &&
5870 { ac_try='test -s conftest.$ac_objext'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 (eval $ac_try) 2>&5
5873 ac_status=$?
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; }; then
5876 ac_hi=$ac_mid
5877else
5878 echo "$as_me: failed program was:" >&5
5879sed 's/^/| /' conftest.$ac_ext >&5
5880
5881ac_lo=`expr '(' $ac_mid ')' + 1`
5882fi
5883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5884done
5885case $ac_lo in
5886?*) result=$ac_lo;;
5887'') result=unknown ;;
5888esac
5889else
5890 if test "$cross_compiling" = yes; then
d5af19ba
DJ
5891 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5892echo "$as_me: error: in \`$ac_pwd':" >&2;}
5893{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
783e057b
DJ
5894See \`config.log' for more details." >&5
5895echo "$as_me: error: cannot run test program while cross compiling
5896See \`config.log' for more details." >&2;}
d5af19ba 5897 { (exit 1); exit 1; }; }; }
783e057b
DJ
5898else
5899 cat >conftest.$ac_ext <<_ACEOF
5900/* confdefs.h. */
5901_ACEOF
5902cat confdefs.h >>conftest.$ac_ext
5903cat >>conftest.$ac_ext <<_ACEOF
5904/* end confdefs.h. */
5905
5906 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5907 included before <wchar.h>. */
5908 #include <stddef.h>
5909 #include <signal.h>
5910 #if HAVE_WCHAR_H
5911 # include <stdio.h>
5912 # include <time.h>
5913 # include <wchar.h>
5914 #endif
5915
5916#include <limits.h>
5917long longval () { return sizeof ($gltype) * CHAR_BIT; }
5918unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
5919#include <stdio.h>
5920#include <stdlib.h>
5921int
5922main ()
5923{
5924
5925 FILE *f = fopen ("conftest.val", "w");
5926 if (! f)
5927 exit (1);
5928 if ((sizeof ($gltype) * CHAR_BIT) < 0)
5929 {
5930 long i = longval ();
5931 if (i != (sizeof ($gltype) * CHAR_BIT))
5932 exit (1);
5933 fprintf (f, "%ld\n", i);
5934 }
5935 else
5936 {
5937 unsigned long i = ulongval ();
5938 if (i != (sizeof ($gltype) * CHAR_BIT))
5939 exit (1);
5940 fprintf (f, "%lu\n", i);
5941 }
5942 exit (ferror (f) || fclose (f) != 0);
5943
5944 ;
5945 return 0;
5946}
5947_ACEOF
5948rm -f conftest$ac_exeext
5949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5950 (eval $ac_link) 2>&5
5951 ac_status=$?
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955 (eval $ac_try) 2>&5
5956 ac_status=$?
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; }; then
5959 result=`cat conftest.val`
5960else
5961 echo "$as_me: program exited with status $ac_status" >&5
5962echo "$as_me: failed program was:" >&5
5963sed 's/^/| /' conftest.$ac_ext >&5
5964
5965( exit $ac_status )
5966result=unknown
5967fi
5968rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5969fi
5970fi
5971rm -f conftest.val
5972 eval gl_cv_bitsizeof_${gltype}=\$result
c906108c 5973
783e057b
DJ
5974fi
5975echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
5976echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
5977 eval result=\$gl_cv_bitsizeof_${gltype}
5978 if test $result = unknown; then
5979 result=0
5980 fi
5981 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5982 cat >>confdefs.h <<_ACEOF
5983#define BITSIZEOF_${GLTYPE} $result
5984_ACEOF
c906108c 5985
783e057b
DJ
5986 eval BITSIZEOF_${GLTYPE}=\$result
5987 done
c906108c 5988
c906108c 5989
c906108c 5990
bec39cab 5991
3841debe 5992
783e057b
DJ
5993
5994
5995 for gltype in sig_atomic_t wchar_t wint_t ; do
5996 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
5997echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
5998if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6000else
6001 cat >conftest.$ac_ext <<_ACEOF
6002/* confdefs.h. */
6003_ACEOF
6004cat confdefs.h >>conftest.$ac_ext
6005cat >>conftest.$ac_ext <<_ACEOF
6006/* end confdefs.h. */
6007
6008 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6009 included before <wchar.h>. */
6010 #include <stddef.h>
6011 #include <signal.h>
6012 #if HAVE_WCHAR_H
6013 # include <stdio.h>
6014 # include <time.h>
6015 # include <wchar.h>
6016 #endif
6017
6018 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6019int
6020main ()
6021{
6022
6023 ;
6024 return 0;
6025}
6026_ACEOF
6027rm -f conftest.$ac_objext
6028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6029 (eval $ac_compile) 2>conftest.er1
6030 ac_status=$?
6031 grep -v '^ *+' conftest.er1 >conftest.err
6032 rm -f conftest.er1
6033 cat conftest.err >&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); } &&
6036 { ac_try='test -z "$ac_c_werror_flag"
6037 || test ! -s conftest.err'
6038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6039 (eval $ac_try) 2>&5
6040 ac_status=$?
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; } &&
6043 { ac_try='test -s conftest.$ac_objext'
6044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045 (eval $ac_try) 2>&5
6046 ac_status=$?
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; }; then
6049 result=yes
6050else
6051 echo "$as_me: failed program was:" >&5
6052sed 's/^/| /' conftest.$ac_ext >&5
6053
6054result=no
20e95c23 6055fi
783e057b
DJ
6056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6057 eval gl_cv_type_${gltype}_signed=\$result
6058
6059fi
6060echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6061echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6062 eval result=\$gl_cv_type_${gltype}_signed
6063 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6064 if test "$result" = yes; then
6065 cat >>confdefs.h <<_ACEOF
6066#define HAVE_SIGNED_${GLTYPE} 1
6067_ACEOF
6068
6069 eval HAVE_SIGNED_${GLTYPE}=1
6070 else
6071 eval HAVE_SIGNED_${GLTYPE}=0
6072 fi
6073 done
6074
6075
6076 gl_cv_type_ptrdiff_t_signed=yes
6077 gl_cv_type_size_t_signed=no
6078
6079
6080
6081
6082
6083
6084
6085 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6086 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6087echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6088if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6090else
783e057b
DJ
6091 eval gl_cv_type_${gltype}_suffix=no
6092 eval result=\$gl_cv_type_${gltype}_signed
6093 if test "$result" = yes; then
6094 glsufu=
6095 else
6096 glsufu=u
6097 fi
6098 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6099 case $glsuf in
6100 '') gltype1='int';;
6101 l) gltype1='long int';;
6102 ll) gltype1='long long int';;
6103 i64) gltype1='__int64';;
6104 u) gltype1='unsigned int';;
6105 ul) gltype1='unsigned long int';;
6106 ull) gltype1='unsigned long long int';;
6107 ui64)gltype1='unsigned __int64';;
6108 esac
6109 cat >conftest.$ac_ext <<_ACEOF
6110/* confdefs.h. */
6111_ACEOF
6112cat confdefs.h >>conftest.$ac_ext
6113cat >>conftest.$ac_ext <<_ACEOF
6114/* end confdefs.h. */
6115
6116 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6117 included before <wchar.h>. */
6118 #include <stddef.h>
6119 #include <signal.h>
6120 #if HAVE_WCHAR_H
6121 # include <stdio.h>
6122 # include <time.h>
6123 # include <wchar.h>
6124 #endif
6125
6126 extern $gltype foo;
6127 extern $gltype1 foo;
6128int
6129main ()
6130{
6131
6132 ;
6133 return 0;
6134}
6135_ACEOF
6136rm -f conftest.$ac_objext
6137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6138 (eval $ac_compile) 2>conftest.er1
6139 ac_status=$?
6140 grep -v '^ *+' conftest.er1 >conftest.err
6141 rm -f conftest.er1
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } &&
6145 { ac_try='test -z "$ac_c_werror_flag"
6146 || test ! -s conftest.err'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 (eval $ac_try) 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try='test -s conftest.$ac_objext'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 (eval $ac_try) 2>&5
6155 ac_status=$?
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6158 eval gl_cv_type_${gltype}_suffix=\$glsuf
6159else
6160 echo "$as_me: failed program was:" >&5
6161sed 's/^/| /' conftest.$ac_ext >&5
6162
6163fi
6164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6165 eval result=\$gl_cv_type_${gltype}_suffix
6166 test "$result" != no && break
6167 done
6168fi
6169echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6170echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6171 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6172 eval result=\$gl_cv_type_${gltype}_suffix
6173 test "$result" = no && result=
6174 eval ${GLTYPE}_SUFFIX=\$result
6175 cat >>confdefs.h <<_ACEOF
6176#define ${GLTYPE}_SUFFIX $result
6177_ACEOF
6178
6179 done
6180
6181
6182
6183 STDINT_H=stdint.h
6184 fi
6185
6186
6187
6188
6189
6190
6191
6192 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6193echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6194if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6196else
6197 cat >conftest.$ac_ext <<_ACEOF
6198#include <wchar.h>
6199wchar_t w;
6200_ACEOF
6201rm -f conftest.$ac_objext
6202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6203 (eval $ac_compile) 2>conftest.er1
6204 ac_status=$?
6205 grep -v '^ *+' conftest.er1 >conftest.err
6206 rm -f conftest.er1
6207 cat conftest.err >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } &&
6210 { ac_try='test -z "$ac_c_werror_flag"
6211 || test ! -s conftest.err'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 (eval $ac_try) 2>&5
6214 ac_status=$?
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; } &&
6217 { ac_try='test -s conftest.$ac_objext'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 (eval $ac_try) 2>&5
6220 ac_status=$?
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; }; then
6223 gl_cv_header_wchar_h_standalone=yes
6224else
6225 echo "$as_me: failed program was:" >&5
6226sed 's/^/| /' conftest.$ac_ext >&5
6227
6228gl_cv_header_wchar_h_standalone=no
6229fi
6230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6231fi
6232echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6233echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6234 if test $gl_cv_header_wchar_h_standalone != yes; then
6235 WCHAR_H=wchar.h
6236 fi
6237
6238
6239 :
6240
6241
6242
6243
6244
6245 if test $ac_cv_header_wchar_h = yes; then
6246 HAVE_WCHAR_H=1
6247 else
6248 HAVE_WCHAR_H=0
6249 fi
6250
6251
6252
6253
6254 :
6255
6256
6257
6258
6259
6260
6261
6262 if test $gl_cv_have_include_next = yes; then
6263 gl_cv_next_wchar_h='<'wchar.h'>'
6264 else
6265 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6266echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6267if test "${gl_cv_next_wchar_h+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6269else
6270
6271 if test $ac_cv_header_wchar_h = yes; then
6272 cat >conftest.$ac_ext <<_ACEOF
6273/* confdefs.h. */
6274_ACEOF
6275cat confdefs.h >>conftest.$ac_ext
6276cat >>conftest.$ac_ext <<_ACEOF
6277/* end confdefs.h. */
6278#include <wchar.h>
6279
6280_ACEOF
6281 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6282 sed -n '\#/wchar.h#{
6283 s#.*"\(.*/wchar.h\)".*#\1#
6284 s#^/[^/]#//&#
6285 p
6286 q
6287 }'`'"'
6288 else
6289 gl_cv_next_wchar_h='<'wchar.h'>'
6290 fi
6291
6292fi
6293echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6294echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6295 fi
6296 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6297
c906108c 6298
c906108c 6299
c906108c 6300
c906108c 6301
c906108c 6302
c906108c 6303
c906108c 6304
783e057b
DJ
6305 gltests_libdeps=
6306 gltests_ltlibdeps=
20e95c23 6307
20e95c23 6308
20e95c23 6309
783e057b 6310 gl_source_base='tests'
c906108c 6311
bec39cab 6312
bec39cab 6313
783e057b
DJ
6314
6315 LIBGNU_LIBDEPS="$gl_libdeps"
6316
6317 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6318
6319
e28b3332 6320
d5af19ba
DJ
6321# For Makefile dependencies.
6322GNULIB_STDINT_H=
6323if test x"$STDINT_H" != x; then
6324 GNULIB_STDINT_H=gnulib/$STDINT_H
6325fi
6326
6327
bec39cab
AC
6328PACKAGE=gdb
6329
6330cat >>confdefs.h <<_ACEOF
6331#define PACKAGE "$PACKAGE"
6332_ACEOF
6333
6334
6335
e28b3332
DJ
6336# GDB does not use automake, but gnulib does. This line lets us
6337# generate its Makefile.in.
6338am__api_version="1.9"
6339# Find a good install program. We prefer a C program (faster),
6340# so one script is as good as another. But avoid the broken or
6341# incompatible versions:
6342# SysV /etc/install, /usr/sbin/install
6343# SunOS /usr/etc/install
6344# IRIX /sbin/install
6345# AIX /bin/install
6346# AmigaOS /C/install, which installs bootblocks on floppy discs
6347# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6348# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6349# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6350# OS/2's system install, which has a completely different semantic
6351# ./install, which can be erroneously created by make from ./install.sh.
6352echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6353echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6354if test -z "$INSTALL"; then
6355if test "${ac_cv_path_install+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6357else
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359for as_dir in $PATH
6360do
6361 IFS=$as_save_IFS
6362 test -z "$as_dir" && as_dir=.
6363 # Account for people who put trailing slashes in PATH elements.
6364case $as_dir/ in
6365 ./ | .// | /cC/* | \
6366 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6367 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6368 /usr/ucb/* ) ;;
6369 *)
6370 # OSF1 and SCO ODT 3.0 have their own names for install.
6371 # Don't use installbsd from OSF since it installs stuff as root
6372 # by default.
6373 for ac_prog in ginstall scoinst install; do
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6376 if test $ac_prog = install &&
6377 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6378 # AIX install. It has an incompatible calling convention.
6379 :
6380 elif test $ac_prog = install &&
6381 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6382 # program-specific install script used by HP pwplus--don't use.
6383 :
6384 else
6385 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6386 break 3
6387 fi
6388 fi
6389 done
6390 done
6391 ;;
6392esac
6393done
6394
6395
6396fi
6397 if test "${ac_cv_path_install+set}" = set; then
6398 INSTALL=$ac_cv_path_install
6399 else
6400 # As a last resort, use the slow shell script. We don't cache a
6401 # path for INSTALL within a source directory, because that will
6402 # break other packages using the cache if that directory is
6403 # removed, or if the path is relative.
6404 INSTALL=$ac_install_sh
6405 fi
6406fi
6407echo "$as_me:$LINENO: result: $INSTALL" >&5
6408echo "${ECHO_T}$INSTALL" >&6
6409
6410# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6411# It thinks the first close brace ends the variable substitution.
6412test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6413
6414test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6415
6416test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6417
6418echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6419echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6420# Just in case
6421sleep 1
6422echo timestamp > conftest.file
6423# Do `set' in a subshell so we don't clobber the current shell's
6424# arguments. Must try -L first in case configure is actually a
6425# symlink; some systems play weird games with the mod time of symlinks
6426# (eg FreeBSD returns the mod time of the symlink's containing
6427# directory).
6428if (
6429 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6430 if test "$*" = "X"; then
6431 # -L didn't work.
6432 set X `ls -t $srcdir/configure conftest.file`
6433 fi
6434 rm -f conftest.file
6435 if test "$*" != "X $srcdir/configure conftest.file" \
6436 && test "$*" != "X conftest.file $srcdir/configure"; then
6437
6438 # If neither matched, then we have a broken ls. This can happen
6439 # if, for instance, CONFIG_SHELL is bash and it inherits a
6440 # broken ls alias from the environment. This has actually
6441 # happened. Such a system could not be considered "sane".
6442 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6443alias in your environment" >&5
6444echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6445alias in your environment" >&2;}
6446 { (exit 1); exit 1; }; }
6447 fi
6448
6449 test "$2" = conftest.file
6450 )
6451then
6452 # Ok.
6453 :
6454else
6455 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6456Check your system clock" >&5
6457echo "$as_me: error: newly created file is older than distributed files!
6458Check your system clock" >&2;}
6459 { (exit 1); exit 1; }; }
6460fi
6461echo "$as_me:$LINENO: result: yes" >&5
6462echo "${ECHO_T}yes" >&6
6463test "$program_prefix" != NONE &&
6464 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6465# Use a double $ so make ignores it.
6466test "$program_suffix" != NONE &&
6467 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6468# Double any \ or $. echo might interpret backslashes.
6469# By default was `s,x,x', remove it if useless.
6470cat <<\_ACEOF >conftest.sed
6471s/[\\$]/&&/g;s/;s,x,x,$//
6472_ACEOF
6473program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6474rm conftest.sed
6475
6476# expand $ac_aux_dir to an absolute path
6477am_aux_dir=`cd $ac_aux_dir && pwd`
6478
6479test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6480# Use eval to expand $SHELL
6481if eval "$MISSING --run true"; then
6482 am_missing_run="$MISSING --run "
6483else
6484 am_missing_run=
6485 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6486echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6487fi
6488
6489if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6490 # We used to keeping the `.' as first argument, in order to
6491 # allow $(mkdir_p) to be used without argument. As in
6492 # $(mkdir_p) $(somedir)
6493 # where $(somedir) is conditionally defined. However this is wrong
6494 # for two reasons:
6495 # 1. if the package is installed by a user who cannot write `.'
6496 # make install will fail,
6497 # 2. the above comment should most certainly read
6498 # $(mkdir_p) $(DESTDIR)$(somedir)
6499 # so it does not work when $(somedir) is undefined and
6500 # $(DESTDIR) is not.
6501 # To support the latter case, we have to write
6502 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6503 # so the `.' trick is pointless.
6504 mkdir_p='mkdir -p --'
6505else
6506 # On NextStep and OpenStep, the `mkdir' command does not
6507 # recognize any option. It will interpret all options as
6508 # directories to create, and then abort because `.' already
6509 # exists.
6510 for d in ./-p ./--version;
6511 do
6512 test -d $d && rmdir $d
6513 done
6514 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6515 if test -f "$ac_aux_dir/mkinstalldirs"; then
6516 mkdir_p='$(mkinstalldirs)'
6517 else
6518 mkdir_p='$(install_sh) -d'
6519 fi
6520fi
6521
6522for ac_prog in gawk mawk nawk awk
6523do
6524 # Extract the first word of "$ac_prog", so it can be a program name with args.
6525set dummy $ac_prog; ac_word=$2
6526echo "$as_me:$LINENO: checking for $ac_word" >&5
6527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6528if test "${ac_cv_prog_AWK+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6530else
6531 if test -n "$AWK"; then
6532 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6533else
6534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535for as_dir in $PATH
6536do
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6541 ac_cv_prog_AWK="$ac_prog"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 break 2
6544 fi
6545done
6546done
6547
6548fi
6549fi
6550AWK=$ac_cv_prog_AWK
6551if test -n "$AWK"; then
6552 echo "$as_me:$LINENO: result: $AWK" >&5
6553echo "${ECHO_T}$AWK" >&6
6554else
6555 echo "$as_me:$LINENO: result: no" >&5
6556echo "${ECHO_T}no" >&6
6557fi
6558
6559 test -n "$AWK" && break
6560done
6561
6562echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6563echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6564set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6565if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6567else
6568 cat >conftest.make <<\_ACEOF
6569all:
6570 @echo 'ac_maketemp="$(MAKE)"'
6571_ACEOF
6572# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6573eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6574if test -n "$ac_maketemp"; then
6575 eval ac_cv_prog_make_${ac_make}_set=yes
6576else
6577 eval ac_cv_prog_make_${ac_make}_set=no
6578fi
6579rm -f conftest.make
6580fi
6581if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6582 echo "$as_me:$LINENO: result: yes" >&5
6583echo "${ECHO_T}yes" >&6
6584 SET_MAKE=
6585else
6586 echo "$as_me:$LINENO: result: no" >&5
6587echo "${ECHO_T}no" >&6
6588 SET_MAKE="MAKE=${MAKE-make}"
6589fi
6590
6591rm -rf .tst 2>/dev/null
6592mkdir .tst 2>/dev/null
6593if test -d .tst; then
6594 am__leading_dot=.
6595else
6596 am__leading_dot=_
6597fi
6598rmdir .tst 2>/dev/null
6599
6600DEPDIR="${am__leading_dot}deps"
6601
6602 ac_config_commands="$ac_config_commands depfiles"
6603
6604
6605am_make=${MAKE-make}
6606cat > confinc << 'END'
6607am__doit:
6608 @echo done
6609.PHONY: am__doit
6610END
6611# If we don't find an include directive, just comment out the code.
6612echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6613echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6614am__include="#"
6615am__quote=
6616_am_result=none
6617# First try GNU make style include.
6618echo "include confinc" > confmf
6619# We grep out `Entering directory' and `Leaving directory'
6620# messages which can occur if `w' ends up in MAKEFLAGS.
6621# In particular we don't look at `^make:' because GNU make might
6622# be invoked under some other name (usually "gmake"), in which
6623# case it prints its new name instead of `make'.
6624if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6625 am__include=include
6626 am__quote=
6627 _am_result=GNU
6628fi
6629# Now try BSD make style include.
6630if test "$am__include" = "#"; then
6631 echo '.include "confinc"' > confmf
6632 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6633 am__include=.include
6634 am__quote="\""
6635 _am_result=BSD
6636 fi
6637fi
6638
6639
6640echo "$as_me:$LINENO: result: $_am_result" >&5
6641echo "${ECHO_T}$_am_result" >&6
6642rm -f confinc confmf
6643
6644# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6645if test "${enable_dependency_tracking+set}" = set; then
6646 enableval="$enable_dependency_tracking"
6647
6648fi;
6649if test "x$enable_dependency_tracking" != xno; then
6650 am_depcomp="$ac_aux_dir/depcomp"
6651 AMDEPBACKSLASH='\'
6652fi
6653
6654
6655if test "x$enable_dependency_tracking" != xno; then
6656 AMDEP_TRUE=
6657 AMDEP_FALSE='#'
6658else
6659 AMDEP_TRUE='#'
6660 AMDEP_FALSE=
6661fi
6662
6663
6664
6665# test to see if srcdir already configured
6666if test "`cd $srcdir && pwd`" != "`pwd`" &&
6667 test -f $srcdir/config.status; then
6668 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6669echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6670 { (exit 1); exit 1; }; }
6671fi
6672
6673# test whether we have cygpath
6674if test -z "$CYGPATH_W"; then
6675 if (cygpath --version) >/dev/null 2>/dev/null; then
6676 CYGPATH_W='cygpath -w'
6677 else
6678 CYGPATH_W=echo
6679 fi
6680fi
6681
6682
6683# Define the identity of the package.
6684 PACKAGE=gdb
6685 VERSION=UNUSED-VERSION
6686
6687
6688# Some tools Automake needs.
6689
6690ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6691
6692
6693AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6694
6695
6696AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6697
6698
6699AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6700
6701
6702MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6703
6704install_sh=${install_sh-"$am_aux_dir/install-sh"}
6705
6706# Installed binaries are usually stripped using `strip' when the user
6707# run `make install-strip'. However `strip' might not be the right
6708# tool to use in cross-compilation environments, therefore Automake
6709# will honor the `STRIP' environment variable to overrule this program.
6710if test "$cross_compiling" != no; then
6711 if test -n "$ac_tool_prefix"; then
6712 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6713set dummy ${ac_tool_prefix}strip; ac_word=$2
6714echo "$as_me:$LINENO: checking for $ac_word" >&5
6715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6716if test "${ac_cv_prog_STRIP+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6718else
6719 if test -n "$STRIP"; then
6720 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6721else
6722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723for as_dir in $PATH
6724do
6725 IFS=$as_save_IFS
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6729 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 break 2
6732 fi
6733done
6734done
6735
6736fi
6737fi
6738STRIP=$ac_cv_prog_STRIP
6739if test -n "$STRIP"; then
6740 echo "$as_me:$LINENO: result: $STRIP" >&5
6741echo "${ECHO_T}$STRIP" >&6
6742else
6743 echo "$as_me:$LINENO: result: no" >&5
6744echo "${ECHO_T}no" >&6
6745fi
6746
6747fi
6748if test -z "$ac_cv_prog_STRIP"; then
6749 ac_ct_STRIP=$STRIP
6750 # Extract the first word of "strip", so it can be a program name with args.
6751set dummy strip; ac_word=$2
6752echo "$as_me:$LINENO: checking for $ac_word" >&5
6753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6754if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6756else
6757 if test -n "$ac_ct_STRIP"; then
6758 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6759else
6760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761for as_dir in $PATH
6762do
6763 IFS=$as_save_IFS
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6767 ac_cv_prog_ac_ct_STRIP="strip"
6768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 break 2
6770 fi
6771done
6772done
6773
6774 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6775fi
6776fi
6777ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6778if test -n "$ac_ct_STRIP"; then
6779 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6780echo "${ECHO_T}$ac_ct_STRIP" >&6
6781else
6782 echo "$as_me:$LINENO: result: no" >&5
6783echo "${ECHO_T}no" >&6
6784fi
6785
6786 STRIP=$ac_ct_STRIP
6787else
6788 STRIP="$ac_cv_prog_STRIP"
6789fi
6790
6791fi
6792INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6793
6794# We need awk for the "check" target. The system "awk" is bad on
6795# some platforms.
6796# Always define AMTAR for backward compatibility.
6797
6798AMTAR=${AMTAR-"${am_missing_run}tar"}
6799
6800am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6801
6802
6803
6804
6805depcc="$CC" am_compiler_list=
6806
6807echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6808echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6809if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6811else
6812 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6813 # We make a subdir and do the tests there. Otherwise we can end up
6814 # making bogus files that we don't know about and never remove. For
6815 # instance it was reported that on HP-UX the gcc test will end up
6816 # making a dummy file named `D' -- because `-MD' means `put the output
6817 # in D'.
6818 mkdir conftest.dir
6819 # Copy depcomp to subdir because otherwise we won't find it if we're
6820 # using a relative directory.
6821 cp "$am_depcomp" conftest.dir
6822 cd conftest.dir
6823 # We will build objects and dependencies in a subdirectory because
6824 # it helps to detect inapplicable dependency modes. For instance
6825 # both Tru64's cc and ICC support -MD to output dependencies as a
6826 # side effect of compilation, but ICC will put the dependencies in
6827 # the current directory while Tru64 will put them in the object
6828 # directory.
6829 mkdir sub
6830
6831 am_cv_CC_dependencies_compiler_type=none
6832 if test "$am_compiler_list" = ""; then
6833 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6834 fi
6835 for depmode in $am_compiler_list; do
6836 # Setup a source with many dependencies, because some compilers
6837 # like to wrap large dependency lists on column 80 (with \), and
6838 # we should not choose a depcomp mode which is confused by this.
6839 #
6840 # We need to recreate these files for each test, as the compiler may
6841 # overwrite some of them when testing with obscure command lines.
6842 # This happens at least with the AIX C compiler.
6843 : > sub/conftest.c
6844 for i in 1 2 3 4 5 6; do
6845 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6846 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6847 # Solaris 8's {/usr,}/bin/sh.
6848 touch sub/conftst$i.h
6849 done
6850 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6851
6852 case $depmode in
6853 nosideeffect)
6854 # after this tag, mechanisms are not by side-effect, so they'll
6855 # only be used when explicitly requested
6856 if test "x$enable_dependency_tracking" = xyes; then
6857 continue
6858 else
6859 break
6860 fi
6861 ;;
6862 none) break ;;
6863 esac
6864 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6865 # mode. It turns out that the SunPro C++ compiler does not properly
6866 # handle `-M -o', and we need to detect this.
6867 if depmode=$depmode \
6868 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6869 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6870 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6871 >/dev/null 2>conftest.err &&
6872 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6873 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6874 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6875 # icc doesn't choke on unknown options, it will just issue warnings
6876 # or remarks (even with -Werror). So we grep stderr for any message
6877 # that says an option was ignored or not supported.
6878 # When given -MP, icc 7.0 and 7.1 complain thusly:
6879 # icc: Command line warning: ignoring option '-M'; no argument required
6880 # The diagnosis changed in icc 8.0:
6881 # icc: Command line remark: option '-MP' not supported
6882 if (grep 'ignoring option' conftest.err ||
6883 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6884 am_cv_CC_dependencies_compiler_type=$depmode
6885 break
6886 fi
6887 fi
6888 done
6889
6890 cd ..
6891 rm -rf conftest.dir
6892else
6893 am_cv_CC_dependencies_compiler_type=none
6894fi
6895
6896fi
6897echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6898echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6899CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6900
6901
6902
6903if
6904 test "x$enable_dependency_tracking" != xno \
6905 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6906 am__fastdepCC_TRUE=
6907 am__fastdepCC_FALSE='#'
6908else
6909 am__fastdepCC_TRUE='#'
6910 am__fastdepCC_FALSE=
6911fi
6912
6913
6914
6915
bec39cab
AC
6916debugdir=${libdir}/debug
6917
6918
b4e70030 6919# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
bec39cab 6920if test "${with_separate_debug_dir+set}" = set; then
783e057b
DJ
6921 withval="$with_separate_debug_dir"
6922 debugdir="${withval}"
6923fi;
20e95c23 6924
20e95c23 6925
783e057b
DJ
6926 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6927 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6928 ac_define_dir=`eval echo $debugdir`
6929 ac_define_dir=`eval echo $ac_define_dir`
20e95c23 6930
783e057b
DJ
6931cat >>confdefs.h <<_ACEOF
6932#define DEBUGDIR "$ac_define_dir"
20e95c23 6933_ACEOF
20e95c23 6934
20e95c23 6935
783e057b 6936#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
20e95c23 6937
783e057b
DJ
6938if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6939 if test "x$prefix" = xNONE; then
6940 test_prefix=/usr/local
6941 else
6942 test_prefix=$prefix
6943 fi
20e95c23 6944else
783e057b 6945 test_prefix=$exec_prefix
20e95c23 6946fi
783e057b
DJ
6947case ${debugdir} in
6948"${test_prefix}"|"${test_prefix}/"*|\
6949'${exec_prefix}'|'${exec_prefix}/'*)
20e95c23
DJ
6950
6951cat >>confdefs.h <<\_ACEOF
783e057b 6952#define DEBUGDIR_RELOCATABLE 1
20e95c23
DJ
6953_ACEOF
6954
783e057b
DJ
6955 ;;
6956esac
6957
20e95c23 6958
20e95c23 6959
783e057b 6960subdirs="$subdirs doc testsuite"
20e95c23
DJ
6961
6962
783e057b
DJ
6963# Check whether to support alternative target configurations
6964# Check whether --enable-targets or --disable-targets was given.
6965if test "${enable_targets+set}" = set; then
6966 enableval="$enable_targets"
6967 case "${enableval}" in
6968 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
6969echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
6970 { (exit 1); exit 1; }; }
6971 ;;
6972 no) enable_targets= ;;
6973 *) enable_targets=$enableval ;;
6974esac
6975fi;
20e95c23 6976
783e057b
DJ
6977# Check whether to enable 64-bit support on 32-bit hosts
6978# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
6979if test "${enable_64_bit_bfd+set}" = set; then
6980 enableval="$enable_64_bit_bfd"
6981 case "${enableval}" in
6982 yes) want64=true ;;
6983 no) want64=false ;;
6984 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
6985echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
6986 { (exit 1); exit 1; }; } ;;
6987esac
6988else
6989 want64=false
6990fi;
6991# Provide defaults for some variables set by the per-host and per-target
6992# configuration.
6993gdb_host_obs=posix-hdep.o
20e95c23 6994
783e057b
DJ
6995if test "${target}" = "${host}"; then
6996 gdb_native=yes
6997else
6998 gdb_native=no
6999fi
20e95c23 7000
783e057b 7001. $srcdir/configure.host
20e95c23 7002
783e057b 7003# Accumulate some settings from configure.tgt over all enabled targets
20e95c23 7004
783e057b
DJ
7005TARGET_OBS=
7006all_targets=
20e95c23 7007
783e057b 7008for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
20e95c23 7009do
783e057b
DJ
7010 if test "$targ_alias" = "all"; then
7011 all_targets=true
7012 else
7013 # Canonicalize the secondary target names.
7014 result=`$ac_config_sub $targ_alias 2>/dev/null`
7015 if test -n "$result"; then
7016 targ=$result
7017 else
7018 targ=$targ_alias
7019 fi
20e95c23 7020
783e057b 7021 . ${srcdir}/configure.tgt
20e95c23 7022
783e057b
DJ
7023 # Target-specific object files
7024 for i in ${gdb_target_obs}; do
7025 case " $TARGET_OBS " in
7026 *" ${i} "*) ;;
7027 *)
7028 TARGET_OBS="$TARGET_OBS ${i}"
7029 ;;
7030 esac
7031 done
20e95c23 7032
783e057b
DJ
7033 # Check whether this target needs 64-bit CORE_ADDR
7034 if test x${want64} = xfalse; then
7035 . ${srcdir}/../bfd/config.bfd
7036 fi
7037 fi
20e95c23
DJ
7038done
7039
783e057b
DJ
7040if test x${all_targets} = xtrue; then
7041
7042 # We want all 64-bit targets if we either:
7043 # - run on a 64-bit host or
7044 # - already require 64-bit support for some other target or
7045 # - the --enable-64-bit-bfd option was supplied
7046 # Otherwise we only support all 32-bit targets.
7047 #
7048 # NOTE: This test must be in sync with the corresponding
7049 # tests in BFD!
20e95c23 7050
783e057b
DJ
7051 if test x${want64} = xfalse; then
7052 echo "$as_me:$LINENO: checking for long" >&5
c0993dbe
UW
7053echo $ECHO_N "checking for long... $ECHO_C" >&6
7054if test "${ac_cv_type_long+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7056else
7057 cat >conftest.$ac_ext <<_ACEOF
7058/* confdefs.h. */
7059_ACEOF
7060cat confdefs.h >>conftest.$ac_ext
7061cat >>conftest.$ac_ext <<_ACEOF
7062/* end confdefs.h. */
7063$ac_includes_default
7064int
7065main ()
7066{
7067if ((long *) 0)
7068 return 0;
7069if (sizeof (long))
7070 return 0;
7071 ;
7072 return 0;
7073}
7074_ACEOF
7075rm -f conftest.$ac_objext
7076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7077 (eval $ac_compile) 2>conftest.er1
7078 ac_status=$?
7079 grep -v '^ *+' conftest.er1 >conftest.err
7080 rm -f conftest.er1
7081 cat conftest.err >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); } &&
7084 { ac_try='test -z "$ac_c_werror_flag"
7085 || test ! -s conftest.err'
7086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087 (eval $ac_try) 2>&5
7088 ac_status=$?
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); }; } &&
7091 { ac_try='test -s conftest.$ac_objext'
7092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 (eval $ac_try) 2>&5
7094 ac_status=$?
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }; }; then
7097 ac_cv_type_long=yes
7098else
7099 echo "$as_me: failed program was:" >&5
7100sed 's/^/| /' conftest.$ac_ext >&5
7101
7102ac_cv_type_long=no
7103fi
7104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7105fi
7106echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7107echo "${ECHO_T}$ac_cv_type_long" >&6
7108
7109echo "$as_me:$LINENO: checking size of long" >&5
7110echo $ECHO_N "checking size of long... $ECHO_C" >&6
7111if test "${ac_cv_sizeof_long+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7113else
7114 if test "$ac_cv_type_long" = yes; then
7115 # The cast to unsigned long works around a bug in the HP C Compiler
7116 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7117 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7118 # This bug is HP SR number 8606223364.
7119 if test "$cross_compiling" = yes; then
7120 # Depending upon the size, compute the lo and hi bounds.
7121cat >conftest.$ac_ext <<_ACEOF
7122/* confdefs.h. */
7123_ACEOF
7124cat confdefs.h >>conftest.$ac_ext
7125cat >>conftest.$ac_ext <<_ACEOF
7126/* end confdefs.h. */
7127$ac_includes_default
7128int
7129main ()
7130{
7131static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7132test_array [0] = 0
7133
7134 ;
7135 return 0;
7136}
7137_ACEOF
7138rm -f conftest.$ac_objext
7139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7140 (eval $ac_compile) 2>conftest.er1
7141 ac_status=$?
7142 grep -v '^ *+' conftest.er1 >conftest.err
7143 rm -f conftest.er1
7144 cat conftest.err >&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } &&
7147 { ac_try='test -z "$ac_c_werror_flag"
7148 || test ! -s conftest.err'
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150 (eval $ac_try) 2>&5
7151 ac_status=$?
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; } &&
7154 { ac_try='test -s conftest.$ac_objext'
7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156 (eval $ac_try) 2>&5
7157 ac_status=$?
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; }; then
7160 ac_lo=0 ac_mid=0
7161 while :; do
7162 cat >conftest.$ac_ext <<_ACEOF
7163/* confdefs.h. */
7164_ACEOF
7165cat confdefs.h >>conftest.$ac_ext
7166cat >>conftest.$ac_ext <<_ACEOF
7167/* end confdefs.h. */
7168$ac_includes_default
7169int
7170main ()
7171{
7172static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7173test_array [0] = 0
7174
7175 ;
7176 return 0;
7177}
7178_ACEOF
7179rm -f conftest.$ac_objext
7180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7181 (eval $ac_compile) 2>conftest.er1
7182 ac_status=$?
7183 grep -v '^ *+' conftest.er1 >conftest.err
7184 rm -f conftest.er1
7185 cat conftest.err >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); } &&
7188 { ac_try='test -z "$ac_c_werror_flag"
7189 || test ! -s conftest.err'
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 (eval $ac_try) 2>&5
7192 ac_status=$?
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; } &&
7195 { ac_try='test -s conftest.$ac_objext'
7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 (eval $ac_try) 2>&5
7198 ac_status=$?
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); }; }; then
7201 ac_hi=$ac_mid; break
7202else
7203 echo "$as_me: failed program was:" >&5
7204sed 's/^/| /' conftest.$ac_ext >&5
7205
7206ac_lo=`expr $ac_mid + 1`
7207 if test $ac_lo -le $ac_mid; then
7208 ac_lo= ac_hi=
7209 break
7210 fi
7211 ac_mid=`expr 2 '*' $ac_mid + 1`
7212fi
7213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7214 done
7215else
7216 echo "$as_me: failed program was:" >&5
7217sed 's/^/| /' conftest.$ac_ext >&5
7218
7219cat >conftest.$ac_ext <<_ACEOF
7220/* confdefs.h. */
7221_ACEOF
7222cat confdefs.h >>conftest.$ac_ext
7223cat >>conftest.$ac_ext <<_ACEOF
7224/* end confdefs.h. */
7225$ac_includes_default
7226int
7227main ()
7228{
7229static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7230test_array [0] = 0
7231
7232 ;
7233 return 0;
7234}
7235_ACEOF
7236rm -f conftest.$ac_objext
7237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7238 (eval $ac_compile) 2>conftest.er1
7239 ac_status=$?
7240 grep -v '^ *+' conftest.er1 >conftest.err
7241 rm -f conftest.er1
7242 cat conftest.err >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } &&
7245 { ac_try='test -z "$ac_c_werror_flag"
7246 || test ! -s conftest.err'
7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 (eval $ac_try) 2>&5
7249 ac_status=$?
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; } &&
7252 { ac_try='test -s conftest.$ac_objext'
7253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254 (eval $ac_try) 2>&5
7255 ac_status=$?
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); }; }; then
7258 ac_hi=-1 ac_mid=-1
7259 while :; do
7260 cat >conftest.$ac_ext <<_ACEOF
7261/* confdefs.h. */
7262_ACEOF
7263cat confdefs.h >>conftest.$ac_ext
7264cat >>conftest.$ac_ext <<_ACEOF
7265/* end confdefs.h. */
7266$ac_includes_default
7267int
7268main ()
7269{
7270static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7271test_array [0] = 0
7272
7273 ;
7274 return 0;
7275}
7276_ACEOF
7277rm -f conftest.$ac_objext
7278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7279 (eval $ac_compile) 2>conftest.er1
7280 ac_status=$?
7281 grep -v '^ *+' conftest.er1 >conftest.err
7282 rm -f conftest.er1
7283 cat conftest.err >&5
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); } &&
7286 { ac_try='test -z "$ac_c_werror_flag"
7287 || test ! -s conftest.err'
7288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289 (eval $ac_try) 2>&5
7290 ac_status=$?
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); }; } &&
7293 { ac_try='test -s conftest.$ac_objext'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 (eval $ac_try) 2>&5
7296 ac_status=$?
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; }; then
7299 ac_lo=$ac_mid; break
7300else
7301 echo "$as_me: failed program was:" >&5
7302sed 's/^/| /' conftest.$ac_ext >&5
7303
7304ac_hi=`expr '(' $ac_mid ')' - 1`
7305 if test $ac_mid -le $ac_hi; then
7306 ac_lo= ac_hi=
7307 break
7308 fi
7309 ac_mid=`expr 2 '*' $ac_mid`
7310fi
7311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7312 done
7313else
7314 echo "$as_me: failed program was:" >&5
7315sed 's/^/| /' conftest.$ac_ext >&5
7316
7317ac_lo= ac_hi=
7318fi
7319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7320fi
7321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7322# Binary search between lo and hi bounds.
7323while test "x$ac_lo" != "x$ac_hi"; do
7324 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7325 cat >conftest.$ac_ext <<_ACEOF
7326/* confdefs.h. */
7327_ACEOF
7328cat confdefs.h >>conftest.$ac_ext
7329cat >>conftest.$ac_ext <<_ACEOF
7330/* end confdefs.h. */
7331$ac_includes_default
7332int
7333main ()
7334{
7335static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7336test_array [0] = 0
7337
7338 ;
7339 return 0;
7340}
7341_ACEOF
7342rm -f conftest.$ac_objext
7343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7344 (eval $ac_compile) 2>conftest.er1
7345 ac_status=$?
7346 grep -v '^ *+' conftest.er1 >conftest.err
7347 rm -f conftest.er1
7348 cat conftest.err >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); } &&
7351 { ac_try='test -z "$ac_c_werror_flag"
7352 || test ! -s conftest.err'
7353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354 (eval $ac_try) 2>&5
7355 ac_status=$?
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }; } &&
7358 { ac_try='test -s conftest.$ac_objext'
7359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7360 (eval $ac_try) 2>&5
7361 ac_status=$?
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); }; }; then
7364 ac_hi=$ac_mid
7365else
7366 echo "$as_me: failed program was:" >&5
7367sed 's/^/| /' conftest.$ac_ext >&5
7368
7369ac_lo=`expr '(' $ac_mid ')' + 1`
7370fi
7371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7372done
7373case $ac_lo in
7374?*) ac_cv_sizeof_long=$ac_lo;;
d5af19ba
DJ
7375'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7376echo "$as_me: error: in \`$ac_pwd':" >&2;}
7377{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
c0993dbe
UW
7378See \`config.log' for more details." >&5
7379echo "$as_me: error: cannot compute sizeof (long), 77
7380See \`config.log' for more details." >&2;}
d5af19ba 7381 { (exit 1); exit 1; }; }; } ;;
c0993dbe
UW
7382esac
7383else
7384 if test "$cross_compiling" = yes; then
d5af19ba
DJ
7385 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7386echo "$as_me: error: in \`$ac_pwd':" >&2;}
7387{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
c0993dbe
UW
7388See \`config.log' for more details." >&5
7389echo "$as_me: error: cannot run test program while cross compiling
7390See \`config.log' for more details." >&2;}
d5af19ba 7391 { (exit 1); exit 1; }; }; }
c0993dbe
UW
7392else
7393 cat >conftest.$ac_ext <<_ACEOF
7394/* confdefs.h. */
7395_ACEOF
7396cat confdefs.h >>conftest.$ac_ext
7397cat >>conftest.$ac_ext <<_ACEOF
7398/* end confdefs.h. */
7399$ac_includes_default
7400long longval () { return (long) (sizeof (long)); }
7401unsigned long ulongval () { return (long) (sizeof (long)); }
7402#include <stdio.h>
7403#include <stdlib.h>
7404int
7405main ()
7406{
7407
7408 FILE *f = fopen ("conftest.val", "w");
7409 if (! f)
7410 exit (1);
7411 if (((long) (sizeof (long))) < 0)
7412 {
7413 long i = longval ();
7414 if (i != ((long) (sizeof (long))))
7415 exit (1);
7416 fprintf (f, "%ld\n", i);
7417 }
7418 else
7419 {
7420 unsigned long i = ulongval ();
7421 if (i != ((long) (sizeof (long))))
7422 exit (1);
7423 fprintf (f, "%lu\n", i);
7424 }
7425 exit (ferror (f) || fclose (f) != 0);
7426
7427 ;
7428 return 0;
7429}
7430_ACEOF
7431rm -f conftest$ac_exeext
7432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7433 (eval $ac_link) 2>&5
7434 ac_status=$?
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438 (eval $ac_try) 2>&5
7439 ac_status=$?
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); }; }; then
7442 ac_cv_sizeof_long=`cat conftest.val`
7443else
7444 echo "$as_me: program exited with status $ac_status" >&5
7445echo "$as_me: failed program was:" >&5
7446sed 's/^/| /' conftest.$ac_ext >&5
7447
7448( exit $ac_status )
d5af19ba
DJ
7449{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7450echo "$as_me: error: in \`$ac_pwd':" >&2;}
c0993dbe
UW
7451{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7452See \`config.log' for more details." >&5
7453echo "$as_me: error: cannot compute sizeof (long), 77
7454See \`config.log' for more details." >&2;}
d5af19ba 7455 { (exit 1); exit 1; }; }; }
c0993dbe
UW
7456fi
7457rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7458fi
7459fi
7460rm -f conftest.val
7461else
7462 ac_cv_sizeof_long=0
7463fi
7464fi
7465echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7466echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7467cat >>confdefs.h <<_ACEOF
7468#define SIZEOF_LONG $ac_cv_sizeof_long
7469_ACEOF
7470
7471
7472 if test "x${ac_cv_sizeof_long}" = "x8"; then
7473 want64=true
7474 fi
7475 fi
7476 if test x${want64} = xtrue; then
7477 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7478 else
7479 TARGET_OBS='$(ALL_TARGET_OBS)'
7480 fi
7481fi
7482
7483
7484
7485# For other settings, only the main target counts.
7486gdb_sim=
7487gdb_osabi=
7488build_gdbserver=
7489targ=$target; . ${srcdir}/configure.tgt
7490
7491# Fetch the default architecture and default target vector from BFD.
7492targ=$target; . $srcdir/../bfd/config.bfd
7493
7494# We only want the first architecture, so strip off the others if
7495# there is more than one.
7496targ_archs=`echo $targ_archs | sed 's/ .*//'`
7497
7498if test "x$targ_archs" != x; then
7499
7500cat >>confdefs.h <<_ACEOF
7501#define DEFAULT_BFD_ARCH $targ_archs
7502_ACEOF
7503
7504fi
7505if test "x$targ_defvec" != x; then
7506
7507cat >>confdefs.h <<_ACEOF
7508#define DEFAULT_BFD_VEC $targ_defvec
7509_ACEOF
7510
7511fi
7512
c0993dbe
UW
7513# The CLI cannot be disabled yet, but may be in the future.
7514
7515# Enable CLI.
7516# Check whether --enable-gdbcli or --disable-gdbcli was given.
7517if test "${enable_gdbcli+set}" = set; then
7518 enableval="$enable_gdbcli"
7519 case $enableval in
7520 yes)
7521 ;;
7522 no)
7523 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7524echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7525 { (exit 1); exit 1; }; } ;;
7526 *)
7527 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7528echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7529 { (exit 1); exit 1; }; } ;;
7530 esac
7531else
7532 enable_gdbcli=yes
7533fi;
7534if test x"$enable_gdbcli" = xyes; then
7535 if test -d $srcdir/cli; then
7536 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7537 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7538 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7539 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7540 fi
7541fi
7542
7543# Enable MI.
7544# Check whether --enable-gdbmi or --disable-gdbmi was given.
7545if test "${enable_gdbmi+set}" = set; then
7546 enableval="$enable_gdbmi"
7547 case $enableval in
7548 yes | no)
7549 ;;
7550 *)
7551 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7552echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7553 { (exit 1); exit 1; }; } ;;
7554 esac
7555else
7556 enable_gdbmi=yes
7557fi;
7558if test x"$enable_gdbmi" = xyes; then
7559 if test -d $srcdir/mi; then
7560 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7561 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7562 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7563 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7564 fi
7565fi
7566
7567# Enable TUI.
7568# Check whether --enable-tui or --disable-tui was given.
7569if test "${enable_tui+set}" = set; then
7570 enableval="$enable_tui"
7571 case $enableval in
3ca64bd3 7572 yes | no | auto)
c0993dbe
UW
7573 ;;
7574 *)
7575 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7576echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7577 { (exit 1); exit 1; }; } ;;
7578 esac
7579else
3ca64bd3 7580 enable_tui=auto
c0993dbe
UW
7581fi;
7582
7583# Enable gdbtk.
7584# Check whether --enable-gdbtk or --disable-gdbtk was given.
7585if test "${enable_gdbtk+set}" = set; then
7586 enableval="$enable_gdbtk"
7587 case $enableval in
7588 yes | no)
7589 ;;
7590 *)
7591 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7592echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7593 { (exit 1); exit 1; }; } ;;
7594 esac
7595else
5062cc19 7596 if test -d $srcdir/gdbtk; then
c0993dbe
UW
7597 enable_gdbtk=yes
7598 else
7599 enable_gdbtk=no
7600 fi
7601fi;
7602# We unconditionally disable gdbtk tests on selected platforms.
7603case $host_os in
7604 go32* | windows*)
7605 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7606echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7607 enable_gdbtk=no ;;
7608esac
7609
7610# Libunwind support.
bec39cab 7611
b4e70030 7612# Check whether --with-libunwind or --without-libunwind was given.
bec39cab 7613if test "${with_libunwind+set}" = set; then
b4e70030
JB
7614 withval="$with_libunwind"
7615 case "${withval}" in
bec39cab
AC
7616 yes) enable_libunwind=yes ;;
7617 no) enable_libunwind=no ;;
7618 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7619echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7620 { (exit 1); exit 1; }; } ;;
7621esac
7622else
7623
7624
7625for ac_header in libunwind.h
7626do
7627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7628if eval "test \"\${$as_ac_Header+set}\" = set"; then
7629 echo "$as_me:$LINENO: checking for $ac_header" >&5
7630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7631if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633fi
b4e70030
JB
7634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7636else
7637 # Is the header compilable?
b4e70030
JB
7638echo "$as_me:$LINENO: checking $ac_header usability" >&5
7639echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7640cat >conftest.$ac_ext <<_ACEOF
7641/* confdefs.h. */
7642_ACEOF
7643cat confdefs.h >>conftest.$ac_ext
7644cat >>conftest.$ac_ext <<_ACEOF
7645/* end confdefs.h. */
7646$ac_includes_default
7647#include <$ac_header>
7648_ACEOF
7649rm -f conftest.$ac_objext
7650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7651 (eval $ac_compile) 2>conftest.er1
7652 ac_status=$?
7653 grep -v '^ *+' conftest.er1 >conftest.err
7654 rm -f conftest.er1
7655 cat conftest.err >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } &&
b4e70030
JB
7658 { ac_try='test -z "$ac_c_werror_flag"
7659 || test ! -s conftest.err'
bec39cab
AC
7660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661 (eval $ac_try) 2>&5
7662 ac_status=$?
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; } &&
7665 { ac_try='test -s conftest.$ac_objext'
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 (eval $ac_try) 2>&5
7668 ac_status=$?
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7671 ac_header_compiler=yes
7672else
7673 echo "$as_me: failed program was:" >&5
7674sed 's/^/| /' conftest.$ac_ext >&5
7675
b4e70030 7676ac_header_compiler=no
bec39cab
AC
7677fi
7678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7679echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7680echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7681
7682# Is the header present?
b4e70030
JB
7683echo "$as_me:$LINENO: checking $ac_header presence" >&5
7684echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7685cat >conftest.$ac_ext <<_ACEOF
7686/* confdefs.h. */
7687_ACEOF
7688cat confdefs.h >>conftest.$ac_ext
7689cat >>conftest.$ac_ext <<_ACEOF
7690/* end confdefs.h. */
7691#include <$ac_header>
7692_ACEOF
7693if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7695 ac_status=$?
7696 grep -v '^ *+' conftest.er1 >conftest.err
7697 rm -f conftest.er1
7698 cat conftest.err >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } >/dev/null; then
7701 if test -s conftest.err; then
7702 ac_cpp_err=$ac_c_preproc_warn_flag
7703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7704 else
7705 ac_cpp_err=
7706 fi
7707else
7708 ac_cpp_err=yes
7709fi
7710if test -z "$ac_cpp_err"; then
7711 ac_header_preproc=yes
7712else
7713 echo "$as_me: failed program was:" >&5
7714sed 's/^/| /' conftest.$ac_ext >&5
7715
7716 ac_header_preproc=no
7717fi
7718rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7719echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7720echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7721
7722# So? What about this header?
7723case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7724 yes:no: )
7725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7726echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7728echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7729 ac_header_preproc=yes
7730 ;;
7731 no:yes:* )
7732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7733echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7735echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7737echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7739echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7741echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7743echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7744 (
7745 cat <<\_ASBOX
7746## ------------------------------------------ ##
7747## Report this to the AC_PACKAGE_NAME lists. ##
7748## ------------------------------------------ ##
7749_ASBOX
7750 ) |
7751 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7752 ;;
7753esac
b4e70030
JB
7754echo "$as_me:$LINENO: checking for $ac_header" >&5
7755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7756if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7758else
7759 eval "$as_ac_Header=\$ac_header_preproc"
7760fi
b4e70030
JB
7761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7763
7764fi
7765if test `eval echo '${'$as_ac_Header'}'` = yes; then
7766 cat >>confdefs.h <<_ACEOF
7767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7768_ACEOF
7769
7770fi
7771
7772done
7773
7774
7775for ac_header in libunwind-ia64.h
7776do
7777as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7778if eval "test \"\${$as_ac_Header+set}\" = set"; then
7779 echo "$as_me:$LINENO: checking for $ac_header" >&5
7780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7781if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7783fi
b4e70030
JB
7784echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7785echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7786else
7787 # Is the header compilable?
b4e70030
JB
7788echo "$as_me:$LINENO: checking $ac_header usability" >&5
7789echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7790cat >conftest.$ac_ext <<_ACEOF
7791/* confdefs.h. */
7792_ACEOF
7793cat confdefs.h >>conftest.$ac_ext
7794cat >>conftest.$ac_ext <<_ACEOF
7795/* end confdefs.h. */
7796$ac_includes_default
7797#include <$ac_header>
7798_ACEOF
7799rm -f conftest.$ac_objext
7800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7801 (eval $ac_compile) 2>conftest.er1
7802 ac_status=$?
7803 grep -v '^ *+' conftest.er1 >conftest.err
7804 rm -f conftest.er1
7805 cat conftest.err >&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); } &&
b4e70030
JB
7808 { ac_try='test -z "$ac_c_werror_flag"
7809 || test ! -s conftest.err'
bec39cab
AC
7810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811 (eval $ac_try) 2>&5
7812 ac_status=$?
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; } &&
7815 { ac_try='test -s conftest.$ac_objext'
7816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817 (eval $ac_try) 2>&5
7818 ac_status=$?
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; }; then
7821 ac_header_compiler=yes
7822else
7823 echo "$as_me: failed program was:" >&5
7824sed 's/^/| /' conftest.$ac_ext >&5
7825
b4e70030 7826ac_header_compiler=no
bec39cab
AC
7827fi
7828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7829echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7830echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7831
7832# Is the header present?
b4e70030
JB
7833echo "$as_me:$LINENO: checking $ac_header presence" >&5
7834echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7835cat >conftest.$ac_ext <<_ACEOF
7836/* confdefs.h. */
7837_ACEOF
7838cat confdefs.h >>conftest.$ac_ext
7839cat >>conftest.$ac_ext <<_ACEOF
7840/* end confdefs.h. */
7841#include <$ac_header>
7842_ACEOF
7843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7845 ac_status=$?
7846 grep -v '^ *+' conftest.er1 >conftest.err
7847 rm -f conftest.er1
7848 cat conftest.err >&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } >/dev/null; then
7851 if test -s conftest.err; then
7852 ac_cpp_err=$ac_c_preproc_warn_flag
7853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7854 else
7855 ac_cpp_err=
7856 fi
7857else
7858 ac_cpp_err=yes
7859fi
7860if test -z "$ac_cpp_err"; then
7861 ac_header_preproc=yes
7862else
7863 echo "$as_me: failed program was:" >&5
7864sed 's/^/| /' conftest.$ac_ext >&5
7865
7866 ac_header_preproc=no
7867fi
7868rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7869echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7870echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7871
7872# So? What about this header?
7873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7874 yes:no: )
7875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7879 ac_header_preproc=yes
7880 ;;
7881 no:yes:* )
7882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7894 (
7895 cat <<\_ASBOX
7896## ------------------------------------------ ##
7897## Report this to the AC_PACKAGE_NAME lists. ##
7898## ------------------------------------------ ##
7899_ASBOX
7900 ) |
7901 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7902 ;;
7903esac
b4e70030
JB
7904echo "$as_me:$LINENO: checking for $ac_header" >&5
7905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7906if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908else
7909 eval "$as_ac_Header=\$ac_header_preproc"
7910fi
b4e70030
JB
7911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7913
7914fi
7915if test `eval echo '${'$as_ac_Header'}'` = yes; then
7916 cat >>confdefs.h <<_ACEOF
7917#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7918_ACEOF
7919
7920fi
7921
7922done
7923
7924 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7925 enable_libunwind=yes;
7926 fi
7927
b4e70030 7928fi;
bec39cab
AC
7929
7930if test x"$enable_libunwind" = xyes; then
7931
7932for ac_header in libunwind.h
7933do
7934as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7935if eval "test \"\${$as_ac_Header+set}\" = set"; then
7936 echo "$as_me:$LINENO: checking for $ac_header" >&5
7937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7938if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7940fi
b4e70030
JB
7941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7942echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7943else
7944 # Is the header compilable?
b4e70030
JB
7945echo "$as_me:$LINENO: checking $ac_header usability" >&5
7946echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7947cat >conftest.$ac_ext <<_ACEOF
7948/* confdefs.h. */
7949_ACEOF
7950cat confdefs.h >>conftest.$ac_ext
7951cat >>conftest.$ac_ext <<_ACEOF
7952/* end confdefs.h. */
7953$ac_includes_default
7954#include <$ac_header>
7955_ACEOF
7956rm -f conftest.$ac_objext
7957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7958 (eval $ac_compile) 2>conftest.er1
7959 ac_status=$?
7960 grep -v '^ *+' conftest.er1 >conftest.err
7961 rm -f conftest.er1
7962 cat conftest.err >&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); } &&
b4e70030
JB
7965 { ac_try='test -z "$ac_c_werror_flag"
7966 || test ! -s conftest.err'
bec39cab
AC
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 (eval $ac_try) 2>&5
7969 ac_status=$?
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; } &&
7972 { ac_try='test -s conftest.$ac_objext'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974 (eval $ac_try) 2>&5
7975 ac_status=$?
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7978 ac_header_compiler=yes
7979else
7980 echo "$as_me: failed program was:" >&5
7981sed 's/^/| /' conftest.$ac_ext >&5
7982
b4e70030 7983ac_header_compiler=no
bec39cab
AC
7984fi
7985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7986echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7987echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7988
7989# Is the header present?
b4e70030
JB
7990echo "$as_me:$LINENO: checking $ac_header presence" >&5
7991echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7992cat >conftest.$ac_ext <<_ACEOF
7993/* confdefs.h. */
7994_ACEOF
7995cat confdefs.h >>conftest.$ac_ext
7996cat >>conftest.$ac_ext <<_ACEOF
7997/* end confdefs.h. */
7998#include <$ac_header>
7999_ACEOF
8000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8002 ac_status=$?
8003 grep -v '^ *+' conftest.er1 >conftest.err
8004 rm -f conftest.er1
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } >/dev/null; then
8008 if test -s conftest.err; then
8009 ac_cpp_err=$ac_c_preproc_warn_flag
8010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8011 else
8012 ac_cpp_err=
8013 fi
8014else
8015 ac_cpp_err=yes
8016fi
8017if test -z "$ac_cpp_err"; then
8018 ac_header_preproc=yes
8019else
8020 echo "$as_me: failed program was:" >&5
8021sed 's/^/| /' conftest.$ac_ext >&5
8022
8023 ac_header_preproc=no
8024fi
8025rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8026echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8027echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8028
8029# So? What about this header?
8030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8031 yes:no: )
8032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8033echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8035echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8036 ac_header_preproc=yes
8037 ;;
8038 no:yes:* )
8039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8040echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8042echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8044echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8046echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8048echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8050echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8051 (
8052 cat <<\_ASBOX
8053## ------------------------------------------ ##
8054## Report this to the AC_PACKAGE_NAME lists. ##
8055## ------------------------------------------ ##
8056_ASBOX
8057 ) |
8058 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8059 ;;
8060esac
b4e70030
JB
8061echo "$as_me:$LINENO: checking for $ac_header" >&5
8062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8063if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
8065else
8066 eval "$as_ac_Header=\$ac_header_preproc"
8067fi
b4e70030
JB
8068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8070
8071fi
8072if test `eval echo '${'$as_ac_Header'}'` = yes; then
8073 cat >>confdefs.h <<_ACEOF
8074#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8075_ACEOF
8076
8077fi
8078
8079done
8080
8081
8082for ac_header in libunwind-ia64.h
8083do
8084as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8085if eval "test \"\${$as_ac_Header+set}\" = set"; then
8086 echo "$as_me:$LINENO: checking for $ac_header" >&5
8087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8088if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8090fi
b4e70030
JB
8091echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8092echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8093else
8094 # Is the header compilable?
b4e70030
JB
8095echo "$as_me:$LINENO: checking $ac_header usability" >&5
8096echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8097cat >conftest.$ac_ext <<_ACEOF
8098/* confdefs.h. */
8099_ACEOF
8100cat confdefs.h >>conftest.$ac_ext
8101cat >>conftest.$ac_ext <<_ACEOF
8102/* end confdefs.h. */
8103$ac_includes_default
8104#include <$ac_header>
8105_ACEOF
8106rm -f conftest.$ac_objext
8107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8108 (eval $ac_compile) 2>conftest.er1
8109 ac_status=$?
8110 grep -v '^ *+' conftest.er1 >conftest.err
8111 rm -f conftest.er1
8112 cat conftest.err >&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); } &&
b4e70030
JB
8115 { ac_try='test -z "$ac_c_werror_flag"
8116 || test ! -s conftest.err'
bec39cab
AC
8117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118 (eval $ac_try) 2>&5
8119 ac_status=$?
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; } &&
8122 { ac_try='test -s conftest.$ac_objext'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 (eval $ac_try) 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
8128 ac_header_compiler=yes
8129else
8130 echo "$as_me: failed program was:" >&5
8131sed 's/^/| /' conftest.$ac_ext >&5
8132
b4e70030 8133ac_header_compiler=no
bec39cab
AC
8134fi
8135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8136echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8137echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8138
8139# Is the header present?
b4e70030
JB
8140echo "$as_me:$LINENO: checking $ac_header presence" >&5
8141echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8142cat >conftest.$ac_ext <<_ACEOF
8143/* confdefs.h. */
8144_ACEOF
8145cat confdefs.h >>conftest.$ac_ext
8146cat >>conftest.$ac_ext <<_ACEOF
8147/* end confdefs.h. */
8148#include <$ac_header>
8149_ACEOF
8150if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8152 ac_status=$?
8153 grep -v '^ *+' conftest.er1 >conftest.err
8154 rm -f conftest.er1
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } >/dev/null; then
8158 if test -s conftest.err; then
8159 ac_cpp_err=$ac_c_preproc_warn_flag
8160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8161 else
8162 ac_cpp_err=
8163 fi
8164else
8165 ac_cpp_err=yes
8166fi
8167if test -z "$ac_cpp_err"; then
8168 ac_header_preproc=yes
8169else
8170 echo "$as_me: failed program was:" >&5
8171sed 's/^/| /' conftest.$ac_ext >&5
8172
8173 ac_header_preproc=no
8174fi
8175rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8176echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8177echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8178
8179# So? What about this header?
8180case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8181 yes:no: )
8182 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8183echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8185echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8186 ac_header_preproc=yes
8187 ;;
8188 no:yes:* )
8189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8190echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8192echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8193 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8194echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8195 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8196echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8198echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8200echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8201 (
8202 cat <<\_ASBOX
8203## ------------------------------------------ ##
8204## Report this to the AC_PACKAGE_NAME lists. ##
8205## ------------------------------------------ ##
8206_ASBOX
8207 ) |
8208 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8209 ;;
8210esac
b4e70030
JB
8211echo "$as_me:$LINENO: checking for $ac_header" >&5
8212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8213if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8215else
8216 eval "$as_ac_Header=\$ac_header_preproc"
8217fi
b4e70030
JB
8218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8219echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8220
8221fi
8222if test `eval echo '${'$as_ac_Header'}'` = yes; then
8223 cat >>confdefs.h <<_ACEOF
8224#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8225_ACEOF
8226
8227fi
8228
8229done
8230
60ca704f
SE
8231
8232cat >>confdefs.h <<\_ACEOF
bec39cab
AC
8233#define HAVE_LIBUNWIND 1
8234_ACEOF
8235
8236 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8237 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8238 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8239fi
8240
8241# Profiling support.
b4e70030 8242# Check whether --enable-profiling or --disable-profiling was given.
bec39cab 8243if test "${enable_profiling+set}" = set; then
b4e70030
JB
8244 enableval="$enable_profiling"
8245 case $enableval in
bec39cab
AC
8246 yes | no)
8247 ;;
8248 *)
8249 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8250echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8251 { (exit 1); exit 1; }; } ;;
8252 esac
8253else
8254 enable_profiling=no
b4e70030 8255fi;
bec39cab
AC
8256
8257
8258
8259for ac_func in monstartup _mcleanup
8260do
8261as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
8262echo "$as_me:$LINENO: checking for $ac_func" >&5
8263echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8264if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8266else
8267 cat >conftest.$ac_ext <<_ACEOF
8268/* confdefs.h. */
8269_ACEOF
8270cat confdefs.h >>conftest.$ac_ext
8271cat >>conftest.$ac_ext <<_ACEOF
8272/* end confdefs.h. */
8273/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8275#define $ac_func innocuous_$ac_func
8276
8277/* System header to define __stub macros and hopefully few prototypes,
8278 which can conflict with char $ac_func (); below.
8279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8280 <limits.h> exists even on freestanding compilers. */
8281
8282#ifdef __STDC__
8283# include <limits.h>
8284#else
8285# include <assert.h>
8286#endif
8287
8288#undef $ac_func
8289
b4e70030 8290/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
8291#ifdef __cplusplus
8292extern "C"
b4e70030 8293{
bec39cab 8294#endif
b4e70030
JB
8295/* We use char because int might match the return type of a gcc2
8296 builtin and then its argument prototype would still apply. */
bec39cab
AC
8297char $ac_func ();
8298/* The GNU C library defines this for functions which it implements
8299 to always fail with ENOSYS. Some functions are actually named
8300 something starting with __ and the normal name is an alias. */
b4e70030 8301#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 8302choke me
b4e70030
JB
8303#else
8304char (*f) () = $ac_func;
8305#endif
8306#ifdef __cplusplus
8307}
bec39cab
AC
8308#endif
8309
8310int
8311main ()
8312{
b4e70030 8313return f != $ac_func;
bec39cab
AC
8314 ;
8315 return 0;
8316}
8317_ACEOF
8318rm -f conftest.$ac_objext conftest$ac_exeext
8319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8320 (eval $ac_link) 2>conftest.er1
8321 ac_status=$?
8322 grep -v '^ *+' conftest.er1 >conftest.err
8323 rm -f conftest.er1
8324 cat conftest.err >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } &&
b4e70030
JB
8327 { ac_try='test -z "$ac_c_werror_flag"
8328 || test ! -s conftest.err'
bec39cab
AC
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 (eval $ac_try) 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; } &&
8334 { ac_try='test -s conftest$ac_exeext'
8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 (eval $ac_try) 2>&5
8337 ac_status=$?
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; }; then
8340 eval "$as_ac_var=yes"
8341else
8342 echo "$as_me: failed program was:" >&5
8343sed 's/^/| /' conftest.$ac_ext >&5
8344
b4e70030 8345eval "$as_ac_var=no"
bec39cab
AC
8346fi
8347rm -f conftest.err conftest.$ac_objext \
8348 conftest$ac_exeext conftest.$ac_ext
8349fi
b4e70030
JB
8350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8351echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
8352if test `eval echo '${'$as_ac_var'}'` = yes; then
8353 cat >>confdefs.h <<_ACEOF
8354#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8355_ACEOF
8356
8357fi
8358done
8359
b4e70030
JB
8360echo "$as_me:$LINENO: checking for _etext" >&5
8361echo $ECHO_N "checking for _etext... $ECHO_C" >&6
bec39cab
AC
8362if test "${ac_cv_var__etext+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8364else
8365 cat >conftest.$ac_ext <<_ACEOF
8366/* confdefs.h. */
8367_ACEOF
8368cat confdefs.h >>conftest.$ac_ext
8369cat >>conftest.$ac_ext <<_ACEOF
8370/* end confdefs.h. */
8371#include <stdlib.h>
8372extern char _etext;
8373
8374int
8375main ()
8376{
8377free (&_etext);
8378 ;
8379 return 0;
8380}
8381_ACEOF
8382rm -f conftest.$ac_objext conftest$ac_exeext
8383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8384 (eval $ac_link) 2>conftest.er1
8385 ac_status=$?
8386 grep -v '^ *+' conftest.er1 >conftest.err
8387 rm -f conftest.er1
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
b4e70030
JB
8391 { ac_try='test -z "$ac_c_werror_flag"
8392 || test ! -s conftest.err'
bec39cab
AC
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394 (eval $ac_try) 2>&5
8395 ac_status=$?
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; } &&
8398 { ac_try='test -s conftest$ac_exeext'
8399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400 (eval $ac_try) 2>&5
8401 ac_status=$?
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; }; then
8404 ac_cv_var__etext=yes
8405else
8406 echo "$as_me: failed program was:" >&5
8407sed 's/^/| /' conftest.$ac_ext >&5
8408
b4e70030 8409ac_cv_var__etext=no
bec39cab
AC
8410fi
8411rm -f conftest.err conftest.$ac_objext \
8412 conftest$ac_exeext conftest.$ac_ext
8413fi
b4e70030
JB
8414echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8415echo "${ECHO_T}$ac_cv_var__etext" >&6
bec39cab
AC
8416if test $ac_cv_var__etext = yes; then
8417
8418cat >>confdefs.h <<\_ACEOF
8419#define HAVE__ETEXT 1
8420_ACEOF
8421
01fe12f6
JB
8422fi
8423echo "$as_me:$LINENO: checking for etext" >&5
8424echo $ECHO_N "checking for etext... $ECHO_C" >&6
8425if test "${ac_cv_var_etext+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8427else
8428 cat >conftest.$ac_ext <<_ACEOF
8429/* confdefs.h. */
8430_ACEOF
8431cat confdefs.h >>conftest.$ac_ext
8432cat >>conftest.$ac_ext <<_ACEOF
8433/* end confdefs.h. */
8434#include <stdlib.h>
8435extern char etext;
8436
8437int
8438main ()
8439{
8440free (&etext);
8441 ;
8442 return 0;
8443}
8444_ACEOF
8445rm -f conftest.$ac_objext conftest$ac_exeext
8446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8447 (eval $ac_link) 2>conftest.er1
8448 ac_status=$?
8449 grep -v '^ *+' conftest.er1 >conftest.err
8450 rm -f conftest.er1
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } &&
8454 { ac_try='test -z "$ac_c_werror_flag"
8455 || test ! -s conftest.err'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 (eval $ac_try) 2>&5
8458 ac_status=$?
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; } &&
8461 { ac_try='test -s conftest$ac_exeext'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 (eval $ac_try) 2>&5
8464 ac_status=$?
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8467 ac_cv_var_etext=yes
8468else
8469 echo "$as_me: failed program was:" >&5
8470sed 's/^/| /' conftest.$ac_ext >&5
8471
8472ac_cv_var_etext=no
8473fi
8474rm -f conftest.err conftest.$ac_objext \
8475 conftest$ac_exeext conftest.$ac_ext
8476fi
8477echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8478echo "${ECHO_T}$ac_cv_var_etext" >&6
8479if test $ac_cv_var_etext = yes; then
8480
8481cat >>confdefs.h <<\_ACEOF
8482#define HAVE_ETEXT 1
8483_ACEOF
8484
bec39cab
AC
8485fi
8486if test "$enable_profiling" = yes ; then
8487 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8488 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8489echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8490 { (exit 1); exit 1; }; }
8491 fi
8492 PROFILE_CFLAGS=-pg
8493 OLD_CFLAGS="$CFLAGS"
8494 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8495
b4e70030
JB
8496 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8497echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
bec39cab
AC
8498if test "${ac_cv_cc_supports_pg+set}" = set; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 8500else
bec39cab
AC
8501 cat >conftest.$ac_ext <<_ACEOF
8502/* confdefs.h. */
8503_ACEOF
8504cat confdefs.h >>conftest.$ac_ext
8505cat >>conftest.$ac_ext <<_ACEOF
8506/* end confdefs.h. */
8507
8508int
8509main ()
8510{
8511int x;
8512 ;
8513 return 0;
8514}
8515_ACEOF
8516rm -f conftest.$ac_objext
8517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8518 (eval $ac_compile) 2>conftest.er1
8519 ac_status=$?
8520 grep -v '^ *+' conftest.er1 >conftest.err
8521 rm -f conftest.er1
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } &&
b4e70030
JB
8525 { ac_try='test -z "$ac_c_werror_flag"
8526 || test ! -s conftest.err'
bec39cab
AC
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 (eval $ac_try) 2>&5
8529 ac_status=$?
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; } &&
8532 { ac_try='test -s conftest.$ac_objext'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 (eval $ac_try) 2>&5
8535 ac_status=$?
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; }; then
8538 ac_cv_cc_supports_pg=yes
8539else
8540 echo "$as_me: failed program was:" >&5
8541sed 's/^/| /' conftest.$ac_ext >&5
8542
b4e70030 8543ac_cv_cc_supports_pg=no
bec39cab
AC
8544fi
8545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8546fi
b4e70030
JB
8547echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8548echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
bec39cab
AC
8549
8550 if test $ac_cv_cc_supports_pg = no; then
8551 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8552echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8553 { (exit 1); exit 1; }; }
8554 fi
8555
8556 CFLAGS="$OLD_CFLAGS"
8557fi
8558
c16158bc
JM
8559
8560
8561# Check whether --with-pkgversion or --without-pkgversion was given.
8562if test "${with_pkgversion+set}" = set; then
8563 withval="$with_pkgversion"
8564 case "$withval" in
8565 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8566echo "$as_me: error: package version not specified" >&2;}
8567 { (exit 1); exit 1; }; } ;;
8568 no) PKGVERSION= ;;
8569 *) PKGVERSION="($withval) " ;;
8570 esac
8571else
8572 PKGVERSION="(GDB) "
8573
8574fi;
8575
8576
8577
8578
8579# Check whether --with-bugurl or --without-bugurl was given.
8580if test "${with_bugurl+set}" = set; then
8581 withval="$with_bugurl"
8582 case "$withval" in
8583 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8584echo "$as_me: error: bug URL not specified" >&2;}
8585 { (exit 1); exit 1; }; } ;;
8586 no) BUGURL=
8587 ;;
8588 *) BUGURL="$withval"
8589 ;;
8590 esac
8591else
8592 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8593
8594fi;
8595 case ${BUGURL} in
8596 "")
8597 REPORT_BUGS_TO=
8598 REPORT_BUGS_TEXI=
8599 ;;
8600 *)
8601 REPORT_BUGS_TO="<$BUGURL>"
8602 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8603 ;;
8604 esac;
8605
8606
8607
8608
8609cat >>confdefs.h <<_ACEOF
8610#define PKGVERSION "$PKGVERSION"
8611_ACEOF
8612
8613
8614cat >>confdefs.h <<_ACEOF
8615#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8616_ACEOF
8617
8618
bec39cab
AC
8619# --------------------- #
8620# Checks for programs. #
8621# --------------------- #
8622
8623for ac_prog in gawk mawk nawk awk
8624do
8625 # Extract the first word of "$ac_prog", so it can be a program name with args.
8626set dummy $ac_prog; ac_word=$2
b4e70030
JB
8627echo "$as_me:$LINENO: checking for $ac_word" >&5
8628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8629if test "${ac_cv_prog_AWK+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
8631else
8632 if test -n "$AWK"; then
8633 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8634else
8635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8636for as_dir in $PATH
8637do
8638 IFS=$as_save_IFS
8639 test -z "$as_dir" && as_dir=.
8640 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8642 ac_cv_prog_AWK="$ac_prog"
8643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8644 break 2
8645 fi
8646done
8647done
8648
8649fi
8650fi
8651AWK=$ac_cv_prog_AWK
8652if test -n "$AWK"; then
b4e70030
JB
8653 echo "$as_me:$LINENO: result: $AWK" >&5
8654echo "${ECHO_T}$AWK" >&6
bec39cab 8655else
b4e70030
JB
8656 echo "$as_me:$LINENO: result: no" >&5
8657echo "${ECHO_T}no" >&6
bec39cab
AC
8658fi
8659
8660 test -n "$AWK" && break
8661done
8662
8663# Find a good install program. We prefer a C program (faster),
8664# so one script is as good as another. But avoid the broken or
8665# incompatible versions:
8666# SysV /etc/install, /usr/sbin/install
8667# SunOS /usr/etc/install
8668# IRIX /sbin/install
8669# AIX /bin/install
8670# AmigaOS /C/install, which installs bootblocks on floppy discs
8671# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8672# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8673# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8674# OS/2's system install, which has a completely different semantic
8675# ./install, which can be erroneously created by make from ./install.sh.
b4e70030
JB
8676echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8677echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
bec39cab
AC
8678if test -z "$INSTALL"; then
8679if test "${ac_cv_path_install+set}" = set; then
8680 echo $ECHO_N "(cached) $ECHO_C" >&6
8681else
8682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8683for as_dir in $PATH
8684do
8685 IFS=$as_save_IFS
8686 test -z "$as_dir" && as_dir=.
8687 # Account for people who put trailing slashes in PATH elements.
8688case $as_dir/ in
8689 ./ | .// | /cC/* | \
8690 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8691 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8692 /usr/ucb/* ) ;;
c906108c 8693 *)
bec39cab
AC
8694 # OSF1 and SCO ODT 3.0 have their own names for install.
8695 # Don't use installbsd from OSF since it installs stuff as root
8696 # by default.
8697 for ac_prog in ginstall scoinst install; do
8698 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8699 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bec39cab
AC
8700 if test $ac_prog = install &&
8701 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8702 # AIX install. It has an incompatible calling convention.
8703 :
8704 elif test $ac_prog = install &&
8705 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8706 # program-specific install script used by HP pwplus--don't use.
8707 :
8708 else
8709 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8710 break 3
8711 fi
8712 fi
8713 done
8714 done
8715 ;;
c906108c 8716esac
bec39cab
AC
8717done
8718
8719
8720fi
8721 if test "${ac_cv_path_install+set}" = set; then
8722 INSTALL=$ac_cv_path_install
8723 else
b4e70030
JB
8724 # As a last resort, use the slow shell script. We don't cache a
8725 # path for INSTALL within a source directory, because that will
bec39cab 8726 # break other packages using the cache if that directory is
b4e70030 8727 # removed, or if the path is relative.
bec39cab
AC
8728 INSTALL=$ac_install_sh
8729 fi
8730fi
b4e70030
JB
8731echo "$as_me:$LINENO: result: $INSTALL" >&5
8732echo "${ECHO_T}$INSTALL" >&6
bec39cab
AC
8733
8734# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8735# It thinks the first close brace ends the variable substitution.
8736test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8737
8738test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8739
8740test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8741
b4e70030
JB
8742echo "$as_me:$LINENO: checking whether ln -s works" >&5
8743echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
bec39cab
AC
8744LN_S=$as_ln_s
8745if test "$LN_S" = "ln -s"; then
b4e70030
JB
8746 echo "$as_me:$LINENO: result: yes" >&5
8747echo "${ECHO_T}yes" >&6
bec39cab 8748else
b4e70030
JB
8749 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8750echo "${ECHO_T}no, using $LN_S" >&6
bec39cab
AC
8751fi
8752
8753if test -n "$ac_tool_prefix"; then
8754 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8755set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b4e70030
JB
8756echo "$as_me:$LINENO: checking for $ac_word" >&5
8757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8758if test "${ac_cv_prog_RANLIB+set}" = set; then
8759 echo $ECHO_N "(cached) $ECHO_C" >&6
8760else
8761 if test -n "$RANLIB"; then
8762 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8763else
8764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765for as_dir in $PATH
8766do
8767 IFS=$as_save_IFS
8768 test -z "$as_dir" && as_dir=.
8769 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8771 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8773 break 2
8774 fi
8775done
8776done
8777
8778fi
8779fi
8780RANLIB=$ac_cv_prog_RANLIB
8781if test -n "$RANLIB"; then
b4e70030
JB
8782 echo "$as_me:$LINENO: result: $RANLIB" >&5
8783echo "${ECHO_T}$RANLIB" >&6
bec39cab 8784else
b4e70030
JB
8785 echo "$as_me:$LINENO: result: no" >&5
8786echo "${ECHO_T}no" >&6
bec39cab
AC
8787fi
8788
8789fi
8790if test -z "$ac_cv_prog_RANLIB"; then
8791 ac_ct_RANLIB=$RANLIB
8792 # Extract the first word of "ranlib", so it can be a program name with args.
8793set dummy ranlib; ac_word=$2
b4e70030
JB
8794echo "$as_me:$LINENO: checking for $ac_word" >&5
8795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8796if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8798else
8799 if test -n "$ac_ct_RANLIB"; then
8800 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8801else
8802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803for as_dir in $PATH
8804do
8805 IFS=$as_save_IFS
8806 test -z "$as_dir" && as_dir=.
8807 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8809 ac_cv_prog_ac_ct_RANLIB="ranlib"
8810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8811 break 2
8812 fi
8813done
8814done
8815
b4e70030 8816 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bec39cab
AC
8817fi
8818fi
8819ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8820if test -n "$ac_ct_RANLIB"; then
b4e70030
JB
8821 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8822echo "${ECHO_T}$ac_ct_RANLIB" >&6
bec39cab 8823else
b4e70030
JB
8824 echo "$as_me:$LINENO: result: no" >&5
8825echo "${ECHO_T}no" >&6
bec39cab
AC
8826fi
8827
b4e70030 8828 RANLIB=$ac_ct_RANLIB
bec39cab
AC
8829else
8830 RANLIB="$ac_cv_prog_RANLIB"
8831fi
8832
8833for ac_prog in 'bison -y' byacc
8834do
8835 # Extract the first word of "$ac_prog", so it can be a program name with args.
8836set dummy $ac_prog; ac_word=$2
b4e70030
JB
8837echo "$as_me:$LINENO: checking for $ac_word" >&5
8838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8839if test "${ac_cv_prog_YACC+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8841else
8842 if test -n "$YACC"; then
8843 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8844else
8845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846for as_dir in $PATH
8847do
8848 IFS=$as_save_IFS
8849 test -z "$as_dir" && as_dir=.
8850 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8852 ac_cv_prog_YACC="$ac_prog"
8853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8854 break 2
8855 fi
8856done
8857done
8858
8859fi
8860fi
8861YACC=$ac_cv_prog_YACC
8862if test -n "$YACC"; then
b4e70030
JB
8863 echo "$as_me:$LINENO: result: $YACC" >&5
8864echo "${ECHO_T}$YACC" >&6
bec39cab 8865else
b4e70030
JB
8866 echo "$as_me:$LINENO: result: no" >&5
8867echo "${ECHO_T}no" >&6
bec39cab
AC
8868fi
8869
8870 test -n "$YACC" && break
8871done
8872test -n "$YACC" || YACC="yacc"
8873
8874
8875if test -n "$ac_tool_prefix"; then
8876 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8877set dummy ${ac_tool_prefix}ar; ac_word=$2
b4e70030
JB
8878echo "$as_me:$LINENO: checking for $ac_word" >&5
8879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8880if test "${ac_cv_prog_AR+set}" = set; then
8881 echo $ECHO_N "(cached) $ECHO_C" >&6
8882else
8883 if test -n "$AR"; then
8884 ac_cv_prog_AR="$AR" # Let the user override the test.
8885else
8886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8887for as_dir in $PATH
8888do
8889 IFS=$as_save_IFS
8890 test -z "$as_dir" && as_dir=.
8891 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8893 ac_cv_prog_AR="${ac_tool_prefix}ar"
8894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8895 break 2
8896 fi
8897done
8898done
8899
8900fi
8901fi
8902AR=$ac_cv_prog_AR
8903if test -n "$AR"; then
b4e70030
JB
8904 echo "$as_me:$LINENO: result: $AR" >&5
8905echo "${ECHO_T}$AR" >&6
bec39cab 8906else
b4e70030
JB
8907 echo "$as_me:$LINENO: result: no" >&5
8908echo "${ECHO_T}no" >&6
bec39cab
AC
8909fi
8910
8911fi
8912if test -z "$ac_cv_prog_AR"; then
8913 ac_ct_AR=$AR
8914 # Extract the first word of "ar", so it can be a program name with args.
8915set dummy ar; ac_word=$2
b4e70030
JB
8916echo "$as_me:$LINENO: checking for $ac_word" >&5
8917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8918if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8920else
8921 if test -n "$ac_ct_AR"; then
8922 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8923else
8924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8925for as_dir in $PATH
8926do
8927 IFS=$as_save_IFS
8928 test -z "$as_dir" && as_dir=.
8929 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8931 ac_cv_prog_ac_ct_AR="ar"
8932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8933 break 2
8934 fi
8935done
8936done
8937
8938fi
8939fi
8940ac_ct_AR=$ac_cv_prog_ac_ct_AR
8941if test -n "$ac_ct_AR"; then
b4e70030
JB
8942 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8943echo "${ECHO_T}$ac_ct_AR" >&6
bec39cab 8944else
b4e70030
JB
8945 echo "$as_me:$LINENO: result: no" >&5
8946echo "${ECHO_T}no" >&6
bec39cab
AC
8947fi
8948
b4e70030 8949 AR=$ac_ct_AR
bec39cab
AC
8950else
8951 AR="$ac_cv_prog_AR"
8952fi
8953
8954if test -n "$ac_tool_prefix"; then
8955 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8956set dummy ${ac_tool_prefix}dlltool; ac_word=$2
b4e70030
JB
8957echo "$as_me:$LINENO: checking for $ac_word" >&5
8958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8959if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8960 echo $ECHO_N "(cached) $ECHO_C" >&6
8961else
8962 if test -n "$DLLTOOL"; then
8963 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8964else
8965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8966for as_dir in $PATH
8967do
8968 IFS=$as_save_IFS
8969 test -z "$as_dir" && as_dir=.
8970 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8972 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8974 break 2
8975 fi
8976done
8977done
8978
8979fi
8980fi
8981DLLTOOL=$ac_cv_prog_DLLTOOL
8982if test -n "$DLLTOOL"; then
b4e70030
JB
8983 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8984echo "${ECHO_T}$DLLTOOL" >&6
bec39cab 8985else
b4e70030
JB
8986 echo "$as_me:$LINENO: result: no" >&5
8987echo "${ECHO_T}no" >&6
bec39cab
AC
8988fi
8989
8990fi
8991if test -z "$ac_cv_prog_DLLTOOL"; then
8992 ac_ct_DLLTOOL=$DLLTOOL
8993 # Extract the first word of "dlltool", so it can be a program name with args.
8994set dummy dlltool; ac_word=$2
b4e70030
JB
8995echo "$as_me:$LINENO: checking for $ac_word" >&5
8996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8997if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8998 echo $ECHO_N "(cached) $ECHO_C" >&6
8999else
9000 if test -n "$ac_ct_DLLTOOL"; then
9001 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9002else
9003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9004for as_dir in $PATH
9005do
9006 IFS=$as_save_IFS
9007 test -z "$as_dir" && as_dir=.
9008 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9010 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9012 break 2
9013 fi
9014done
9015done
9016
9017fi
9018fi
9019ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9020if test -n "$ac_ct_DLLTOOL"; then
b4e70030
JB
9021 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
9022echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
bec39cab 9023else
b4e70030
JB
9024 echo "$as_me:$LINENO: result: no" >&5
9025echo "${ECHO_T}no" >&6
bec39cab
AC
9026fi
9027
b4e70030 9028 DLLTOOL=$ac_ct_DLLTOOL
bec39cab
AC
9029else
9030 DLLTOOL="$ac_cv_prog_DLLTOOL"
9031fi
9032
9033if test -n "$ac_tool_prefix"; then
9034 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9035set dummy ${ac_tool_prefix}windres; ac_word=$2
b4e70030
JB
9036echo "$as_me:$LINENO: checking for $ac_word" >&5
9037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9038if test "${ac_cv_prog_WINDRES+set}" = set; then
9039 echo $ECHO_N "(cached) $ECHO_C" >&6
9040else
9041 if test -n "$WINDRES"; then
9042 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9043else
9044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9045for as_dir in $PATH
9046do
9047 IFS=$as_save_IFS
9048 test -z "$as_dir" && as_dir=.
9049 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9051 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9053 break 2
9054 fi
9055done
9056done
9057
9058fi
9059fi
9060WINDRES=$ac_cv_prog_WINDRES
9061if test -n "$WINDRES"; then
b4e70030
JB
9062 echo "$as_me:$LINENO: result: $WINDRES" >&5
9063echo "${ECHO_T}$WINDRES" >&6
bec39cab 9064else
b4e70030
JB
9065 echo "$as_me:$LINENO: result: no" >&5
9066echo "${ECHO_T}no" >&6
bec39cab
AC
9067fi
9068
9069fi
9070if test -z "$ac_cv_prog_WINDRES"; then
9071 ac_ct_WINDRES=$WINDRES
9072 # Extract the first word of "windres", so it can be a program name with args.
9073set dummy windres; ac_word=$2
b4e70030
JB
9074echo "$as_me:$LINENO: checking for $ac_word" >&5
9075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9076if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9078else
9079 if test -n "$ac_ct_WINDRES"; then
9080 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9081else
9082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9083for as_dir in $PATH
9084do
9085 IFS=$as_save_IFS
9086 test -z "$as_dir" && as_dir=.
9087 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9089 ac_cv_prog_ac_ct_WINDRES="windres"
9090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9091 break 2
9092 fi
9093done
9094done
9095
9096fi
9097fi
9098ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9099if test -n "$ac_ct_WINDRES"; then
b4e70030
JB
9100 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9101echo "${ECHO_T}$ac_ct_WINDRES" >&6
bec39cab 9102else
b4e70030
JB
9103 echo "$as_me:$LINENO: result: no" >&5
9104echo "${ECHO_T}no" >&6
c906108c 9105fi
bec39cab 9106
b4e70030 9107 WINDRES=$ac_ct_WINDRES
c906108c 9108else
bec39cab 9109 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
9110fi
9111
bec39cab
AC
9112
9113# Needed for GNU/Hurd.
9114if test -n "$ac_tool_prefix"; then
9115 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9116set dummy ${ac_tool_prefix}mig; ac_word=$2
b4e70030
JB
9117echo "$as_me:$LINENO: checking for $ac_word" >&5
9118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9119if test "${ac_cv_prog_MIG+set}" = set; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 9121else
bec39cab
AC
9122 if test -n "$MIG"; then
9123 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9124else
9125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126for as_dir in $PATH
9127do
9128 IFS=$as_save_IFS
9129 test -z "$as_dir" && as_dir=.
9130 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9132 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9134 break 2
9135 fi
9136done
9137done
9138
c906108c 9139fi
bec39cab
AC
9140fi
9141MIG=$ac_cv_prog_MIG
9142if test -n "$MIG"; then
b4e70030
JB
9143 echo "$as_me:$LINENO: result: $MIG" >&5
9144echo "${ECHO_T}$MIG" >&6
c906108c 9145else
b4e70030
JB
9146 echo "$as_me:$LINENO: result: no" >&5
9147echo "${ECHO_T}no" >&6
c906108c
SS
9148fi
9149
bec39cab
AC
9150fi
9151if test -z "$ac_cv_prog_MIG"; then
9152 ac_ct_MIG=$MIG
9153 # Extract the first word of "mig", so it can be a program name with args.
9154set dummy mig; ac_word=$2
b4e70030
JB
9155echo "$as_me:$LINENO: checking for $ac_word" >&5
9156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9157if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9159else
9160 if test -n "$ac_ct_MIG"; then
9161 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9162else
9163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9164for as_dir in $PATH
9165do
9166 IFS=$as_save_IFS
9167 test -z "$as_dir" && as_dir=.
9168 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9170 ac_cv_prog_ac_ct_MIG="mig"
9171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9172 break 2
9173 fi
9174done
9175done
c906108c 9176
bec39cab
AC
9177fi
9178fi
9179ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9180if test -n "$ac_ct_MIG"; then
b4e70030
JB
9181 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9182echo "${ECHO_T}$ac_ct_MIG" >&6
bec39cab 9183else
b4e70030
JB
9184 echo "$as_me:$LINENO: result: no" >&5
9185echo "${ECHO_T}no" >&6
bec39cab 9186fi
c906108c 9187
b4e70030 9188 MIG=$ac_ct_MIG
bec39cab
AC
9189else
9190 MIG="$ac_cv_prog_MIG"
9191fi
c906108c 9192
c906108c 9193
bec39cab
AC
9194# ---------------------- #
9195# Checks for libraries. #
9196# ---------------------- #
c906108c 9197
bec39cab 9198# We might need to link with -lm; most simulators need it.
c906108c 9199
b4e70030
JB
9200echo "$as_me:$LINENO: checking for main in -lm" >&5
9201echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
bec39cab
AC
9202if test "${ac_cv_lib_m_main+set}" = set; then
9203 echo $ECHO_N "(cached) $ECHO_C" >&6
9204else
9205 ac_check_lib_save_LIBS=$LIBS
9206LIBS="-lm $LIBS"
9207cat >conftest.$ac_ext <<_ACEOF
9208/* confdefs.h. */
9209_ACEOF
9210cat confdefs.h >>conftest.$ac_ext
9211cat >>conftest.$ac_ext <<_ACEOF
9212/* end confdefs.h. */
c906108c 9213
c906108c 9214
bec39cab
AC
9215int
9216main ()
9217{
b4e70030 9218main ();
bec39cab
AC
9219 ;
9220 return 0;
9221}
9222_ACEOF
9223rm -f conftest.$ac_objext conftest$ac_exeext
9224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9225 (eval $ac_link) 2>conftest.er1
9226 ac_status=$?
9227 grep -v '^ *+' conftest.er1 >conftest.err
9228 rm -f conftest.er1
9229 cat conftest.err >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } &&
b4e70030
JB
9232 { ac_try='test -z "$ac_c_werror_flag"
9233 || test ! -s conftest.err'
bec39cab
AC
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235 (eval $ac_try) 2>&5
9236 ac_status=$?
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; } &&
9239 { ac_try='test -s conftest$ac_exeext'
9240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241 (eval $ac_try) 2>&5
9242 ac_status=$?
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); }; }; then
9245 ac_cv_lib_m_main=yes
9246else
9247 echo "$as_me: failed program was:" >&5
9248sed 's/^/| /' conftest.$ac_ext >&5
9249
b4e70030 9250ac_cv_lib_m_main=no
bec39cab
AC
9251fi
9252rm -f conftest.err conftest.$ac_objext \
9253 conftest$ac_exeext conftest.$ac_ext
9254LIBS=$ac_check_lib_save_LIBS
9255fi
b4e70030
JB
9256echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9257echo "${ECHO_T}$ac_cv_lib_m_main" >&6
bec39cab
AC
9258if test $ac_cv_lib_m_main = yes; then
9259 cat >>confdefs.h <<_ACEOF
9260#define HAVE_LIBM 1
9261_ACEOF
9262
9263 LIBS="-lm $LIBS"
c906108c 9264
c906108c 9265fi
bec39cab
AC
9266
9267
9268# We need to link with -lw to get `wctype' on Solaris before Solaris
9269# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9270# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9271# is known to have this problem). Therefore we avoid libw if we can.
b4e70030
JB
9272echo "$as_me:$LINENO: checking for wctype" >&5
9273echo $ECHO_N "checking for wctype... $ECHO_C" >&6
bec39cab
AC
9274if test "${ac_cv_func_wctype+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9276else
9277 cat >conftest.$ac_ext <<_ACEOF
9278/* confdefs.h. */
9279_ACEOF
9280cat confdefs.h >>conftest.$ac_ext
9281cat >>conftest.$ac_ext <<_ACEOF
9282/* end confdefs.h. */
9283/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9285#define wctype innocuous_wctype
9286
9287/* System header to define __stub macros and hopefully few prototypes,
9288 which can conflict with char wctype (); below.
9289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9290 <limits.h> exists even on freestanding compilers. */
9291
9292#ifdef __STDC__
9293# include <limits.h>
9294#else
9295# include <assert.h>
9296#endif
9297
9298#undef wctype
9299
b4e70030 9300/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9301#ifdef __cplusplus
9302extern "C"
b4e70030 9303{
bec39cab 9304#endif
b4e70030
JB
9305/* We use char because int might match the return type of a gcc2
9306 builtin and then its argument prototype would still apply. */
bec39cab
AC
9307char wctype ();
9308/* The GNU C library defines this for functions which it implements
9309 to always fail with ENOSYS. Some functions are actually named
9310 something starting with __ and the normal name is an alias. */
b4e70030 9311#if defined (__stub_wctype) || defined (__stub___wctype)
bec39cab 9312choke me
b4e70030
JB
9313#else
9314char (*f) () = wctype;
9315#endif
9316#ifdef __cplusplus
9317}
bec39cab
AC
9318#endif
9319
9320int
9321main ()
9322{
b4e70030 9323return f != wctype;
bec39cab
AC
9324 ;
9325 return 0;
9326}
9327_ACEOF
9328rm -f conftest.$ac_objext conftest$ac_exeext
9329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9330 (eval $ac_link) 2>conftest.er1
9331 ac_status=$?
9332 grep -v '^ *+' conftest.er1 >conftest.err
9333 rm -f conftest.er1
9334 cat conftest.err >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
b4e70030
JB
9337 { ac_try='test -z "$ac_c_werror_flag"
9338 || test ! -s conftest.err'
bec39cab
AC
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340 (eval $ac_try) 2>&5
9341 ac_status=$?
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; } &&
9344 { ac_try='test -s conftest$ac_exeext'
9345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346 (eval $ac_try) 2>&5
9347 ac_status=$?
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; }; then
9350 ac_cv_func_wctype=yes
9351else
9352 echo "$as_me: failed program was:" >&5
9353sed 's/^/| /' conftest.$ac_ext >&5
9354
b4e70030 9355ac_cv_func_wctype=no
bec39cab
AC
9356fi
9357rm -f conftest.err conftest.$ac_objext \
9358 conftest$ac_exeext conftest.$ac_ext
9359fi
b4e70030
JB
9360echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9361echo "${ECHO_T}$ac_cv_func_wctype" >&6
bec39cab
AC
9362if test $ac_cv_func_wctype = yes; then
9363 :
c906108c 9364else
c906108c 9365
b4e70030
JB
9366echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9367echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
bec39cab
AC
9368if test "${ac_cv_lib_w_wctype+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9370else
9371 ac_check_lib_save_LIBS=$LIBS
9372LIBS="-lw $LIBS"
9373cat >conftest.$ac_ext <<_ACEOF
9374/* confdefs.h. */
9375_ACEOF
9376cat confdefs.h >>conftest.$ac_ext
9377cat >>conftest.$ac_ext <<_ACEOF
9378/* end confdefs.h. */
c906108c 9379
b4e70030 9380/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9381#ifdef __cplusplus
9382extern "C"
9383#endif
b4e70030
JB
9384/* We use char because int might match the return type of a gcc2
9385 builtin and then its argument prototype would still apply. */
bec39cab
AC
9386char wctype ();
9387int
9388main ()
9389{
b4e70030 9390wctype ();
bec39cab
AC
9391 ;
9392 return 0;
9393}
9394_ACEOF
9395rm -f conftest.$ac_objext conftest$ac_exeext
9396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9397 (eval $ac_link) 2>conftest.er1
9398 ac_status=$?
9399 grep -v '^ *+' conftest.er1 >conftest.err
9400 rm -f conftest.er1
9401 cat conftest.err >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } &&
b4e70030
JB
9404 { ac_try='test -z "$ac_c_werror_flag"
9405 || test ! -s conftest.err'
bec39cab
AC
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407 (eval $ac_try) 2>&5
9408 ac_status=$?
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; } &&
9411 { ac_try='test -s conftest$ac_exeext'
9412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413 (eval $ac_try) 2>&5
9414 ac_status=$?
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; }; then
9417 ac_cv_lib_w_wctype=yes
9418else
9419 echo "$as_me: failed program was:" >&5
9420sed 's/^/| /' conftest.$ac_ext >&5
9421
b4e70030 9422ac_cv_lib_w_wctype=no
bec39cab
AC
9423fi
9424rm -f conftest.err conftest.$ac_objext \
9425 conftest$ac_exeext conftest.$ac_ext
9426LIBS=$ac_check_lib_save_LIBS
9427fi
b4e70030
JB
9428echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9429echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
bec39cab
AC
9430if test $ac_cv_lib_w_wctype = yes; then
9431 cat >>confdefs.h <<_ACEOF
9432#define HAVE_LIBW 1
9433_ACEOF
c906108c 9434
bec39cab 9435 LIBS="-lw $LIBS"
c906108c 9436
bec39cab 9437fi
c906108c 9438
bec39cab 9439fi
c906108c 9440
ddc9cd0f 9441
bec39cab 9442# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
b4e70030
JB
9443echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9444echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
bec39cab
AC
9445if test "${ac_cv_search_gethostbyname+set}" = set; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9447else
9448 ac_func_search_save_LIBS=$LIBS
b4e70030 9449ac_cv_search_gethostbyname=no
bec39cab
AC
9450cat >conftest.$ac_ext <<_ACEOF
9451/* confdefs.h. */
9452_ACEOF
9453cat confdefs.h >>conftest.$ac_ext
9454cat >>conftest.$ac_ext <<_ACEOF
9455/* end confdefs.h. */
ddc9cd0f 9456
b4e70030 9457/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9458#ifdef __cplusplus
9459extern "C"
9460#endif
b4e70030
JB
9461/* We use char because int might match the return type of a gcc2
9462 builtin and then its argument prototype would still apply. */
bec39cab
AC
9463char gethostbyname ();
9464int
9465main ()
9466{
b4e70030 9467gethostbyname ();
bec39cab
AC
9468 ;
9469 return 0;
9470}
9471_ACEOF
b4e70030 9472rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
9473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9474 (eval $ac_link) 2>conftest.er1
9475 ac_status=$?
9476 grep -v '^ *+' conftest.er1 >conftest.err
9477 rm -f conftest.er1
9478 cat conftest.err >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } &&
b4e70030
JB
9481 { ac_try='test -z "$ac_c_werror_flag"
9482 || test ! -s conftest.err'
bec39cab
AC
9483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484 (eval $ac_try) 2>&5
9485 ac_status=$?
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; } &&
9488 { ac_try='test -s conftest$ac_exeext'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490 (eval $ac_try) 2>&5
9491 ac_status=$?
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; }; then
b4e70030 9494 ac_cv_search_gethostbyname="none required"
bec39cab
AC
9495else
9496 echo "$as_me: failed program was:" >&5
9497sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 9498
bec39cab
AC
9499fi
9500rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
9501 conftest$ac_exeext conftest.$ac_ext
9502if test "$ac_cv_search_gethostbyname" = no; then
9503 for ac_lib in nsl; do
9504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9505 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9506/* confdefs.h. */
9507_ACEOF
9508cat confdefs.h >>conftest.$ac_ext
9509cat >>conftest.$ac_ext <<_ACEOF
9510/* end confdefs.h. */
ddc9cd0f 9511
b4e70030 9512/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9513#ifdef __cplusplus
9514extern "C"
9515#endif
b4e70030
JB
9516/* We use char because int might match the return type of a gcc2
9517 builtin and then its argument prototype would still apply. */
9518char gethostbyname ();
bec39cab
AC
9519int
9520main ()
9521{
b4e70030 9522gethostbyname ();
bec39cab
AC
9523 ;
9524 return 0;
9525}
9526_ACEOF
b4e70030 9527rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
9528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9529 (eval $ac_link) 2>conftest.er1
9530 ac_status=$?
9531 grep -v '^ *+' conftest.er1 >conftest.err
9532 rm -f conftest.er1
9533 cat conftest.err >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } &&
b4e70030
JB
9536 { ac_try='test -z "$ac_c_werror_flag"
9537 || test ! -s conftest.err'
bec39cab
AC
9538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539 (eval $ac_try) 2>&5
9540 ac_status=$?
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); }; } &&
9543 { ac_try='test -s conftest$ac_exeext'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 (eval $ac_try) 2>&5
9546 ac_status=$?
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; }; then
b4e70030
JB
9549 ac_cv_search_gethostbyname="-l$ac_lib"
9550break
bec39cab
AC
9551else
9552 echo "$as_me: failed program was:" >&5
9553sed 's/^/| /' conftest.$ac_ext >&5
9554
9555fi
9556rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
9557 conftest$ac_exeext conftest.$ac_ext
9558 done
bec39cab
AC
9559fi
9560LIBS=$ac_func_search_save_LIBS
9561fi
b4e70030
JB
9562echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9563echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9564if test "$ac_cv_search_gethostbyname" != no; then
9565 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
96baa820 9566
bec39cab 9567fi
96baa820 9568
c906108c 9569
b4e70030
JB
9570# Some systems (e.g. Solaris) have `socketpair' in libsocket.
9571echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9572echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9573if test "${ac_cv_search_socketpair+set}" = set; then
9574 echo $ECHO_N "(cached) $ECHO_C" >&6
9575else
9576 ac_func_search_save_LIBS=$LIBS
9577ac_cv_search_socketpair=no
9578cat >conftest.$ac_ext <<_ACEOF
9579/* confdefs.h. */
9580_ACEOF
9581cat confdefs.h >>conftest.$ac_ext
9582cat >>conftest.$ac_ext <<_ACEOF
9583/* end confdefs.h. */
9584
9585/* Override any gcc2 internal prototype to avoid an error. */
9586#ifdef __cplusplus
9587extern "C"
9588#endif
9589/* We use char because int might match the return type of a gcc2
9590 builtin and then its argument prototype would still apply. */
9591char socketpair ();
9592int
9593main ()
9594{
9595socketpair ();
9596 ;
9597 return 0;
9598}
9599_ACEOF
9600rm -f conftest.$ac_objext conftest$ac_exeext
9601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9602 (eval $ac_link) 2>conftest.er1
9603 ac_status=$?
9604 grep -v '^ *+' conftest.er1 >conftest.err
9605 rm -f conftest.er1
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
9609 { ac_try='test -z "$ac_c_werror_flag"
9610 || test ! -s conftest.err'
9611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612 (eval $ac_try) 2>&5
9613 ac_status=$?
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; } &&
9616 { ac_try='test -s conftest$ac_exeext'
9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618 (eval $ac_try) 2>&5
9619 ac_status=$?
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; }; then
9622 ac_cv_search_socketpair="none required"
9623else
9624 echo "$as_me: failed program was:" >&5
9625sed 's/^/| /' conftest.$ac_ext >&5
9626
9627fi
9628rm -f conftest.err conftest.$ac_objext \
9629 conftest$ac_exeext conftest.$ac_ext
9630if test "$ac_cv_search_socketpair" = no; then
9631 for ac_lib in socket; do
9632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9633 cat >conftest.$ac_ext <<_ACEOF
9634/* confdefs.h. */
9635_ACEOF
9636cat confdefs.h >>conftest.$ac_ext
9637cat >>conftest.$ac_ext <<_ACEOF
9638/* end confdefs.h. */
9639
9640/* Override any gcc2 internal prototype to avoid an error. */
9641#ifdef __cplusplus
9642extern "C"
9643#endif
9644/* We use char because int might match the return type of a gcc2
9645 builtin and then its argument prototype would still apply. */
9646char socketpair ();
9647int
9648main ()
9649{
9650socketpair ();
9651 ;
9652 return 0;
9653}
9654_ACEOF
9655rm -f conftest.$ac_objext conftest$ac_exeext
9656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9657 (eval $ac_link) 2>conftest.er1
9658 ac_status=$?
9659 grep -v '^ *+' conftest.er1 >conftest.err
9660 rm -f conftest.er1
9661 cat conftest.err >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } &&
9664 { ac_try='test -z "$ac_c_werror_flag"
9665 || test ! -s conftest.err'
9666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667 (eval $ac_try) 2>&5
9668 ac_status=$?
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; } &&
9671 { ac_try='test -s conftest$ac_exeext'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 (eval $ac_try) 2>&5
9674 ac_status=$?
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; }; then
9677 ac_cv_search_socketpair="-l$ac_lib"
9678break
9679else
9680 echo "$as_me: failed program was:" >&5
9681sed 's/^/| /' conftest.$ac_ext >&5
9682
9683fi
9684rm -f conftest.err conftest.$ac_objext \
9685 conftest$ac_exeext conftest.$ac_ext
9686 done
9687fi
9688LIBS=$ac_func_search_save_LIBS
9689fi
9690echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9691echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9692if test "$ac_cv_search_socketpair" != no; then
9693 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9694
9695fi
9696
9697
233a11ab
CS
9698# Link in zlib if we can. This allows us to read compressed debug sections.
9699echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9700echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9701if test "${ac_cv_search_zlibVersion+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9703else
9704 ac_func_search_save_LIBS=$LIBS
9705ac_cv_search_zlibVersion=no
9706cat >conftest.$ac_ext <<_ACEOF
9707/* confdefs.h. */
9708_ACEOF
9709cat confdefs.h >>conftest.$ac_ext
9710cat >>conftest.$ac_ext <<_ACEOF
9711/* end confdefs.h. */
9712
9713/* Override any gcc2 internal prototype to avoid an error. */
9714#ifdef __cplusplus
9715extern "C"
9716#endif
9717/* We use char because int might match the return type of a gcc2
9718 builtin and then its argument prototype would still apply. */
9719char zlibVersion ();
9720int
9721main ()
9722{
9723zlibVersion ();
9724 ;
9725 return 0;
9726}
9727_ACEOF
9728rm -f conftest.$ac_objext conftest$ac_exeext
9729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9730 (eval $ac_link) 2>conftest.er1
9731 ac_status=$?
9732 grep -v '^ *+' conftest.er1 >conftest.err
9733 rm -f conftest.er1
9734 cat conftest.err >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); } &&
9737 { ac_try='test -z "$ac_c_werror_flag"
9738 || test ! -s conftest.err'
9739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9740 (eval $ac_try) 2>&5
9741 ac_status=$?
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; } &&
9744 { ac_try='test -s conftest$ac_exeext'
9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746 (eval $ac_try) 2>&5
9747 ac_status=$?
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; }; then
9750 ac_cv_search_zlibVersion="none required"
9751else
9752 echo "$as_me: failed program was:" >&5
9753sed 's/^/| /' conftest.$ac_ext >&5
9754
9755fi
9756rm -f conftest.err conftest.$ac_objext \
9757 conftest$ac_exeext conftest.$ac_ext
9758if test "$ac_cv_search_zlibVersion" = no; then
9759 for ac_lib in z; do
9760 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9761 cat >conftest.$ac_ext <<_ACEOF
9762/* confdefs.h. */
9763_ACEOF
9764cat confdefs.h >>conftest.$ac_ext
9765cat >>conftest.$ac_ext <<_ACEOF
9766/* end confdefs.h. */
9767
9768/* Override any gcc2 internal prototype to avoid an error. */
9769#ifdef __cplusplus
9770extern "C"
9771#endif
9772/* We use char because int might match the return type of a gcc2
9773 builtin and then its argument prototype would still apply. */
9774char zlibVersion ();
9775int
9776main ()
9777{
9778zlibVersion ();
9779 ;
9780 return 0;
9781}
9782_ACEOF
9783rm -f conftest.$ac_objext conftest$ac_exeext
9784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9785 (eval $ac_link) 2>conftest.er1
9786 ac_status=$?
9787 grep -v '^ *+' conftest.er1 >conftest.err
9788 rm -f conftest.er1
9789 cat conftest.err >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } &&
9792 { ac_try='test -z "$ac_c_werror_flag"
9793 || test ! -s conftest.err'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795 (eval $ac_try) 2>&5
9796 ac_status=$?
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; } &&
9799 { ac_try='test -s conftest$ac_exeext'
9800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801 (eval $ac_try) 2>&5
9802 ac_status=$?
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; }; then
9805 ac_cv_search_zlibVersion="-l$ac_lib"
9806break
9807else
9808 echo "$as_me: failed program was:" >&5
9809sed 's/^/| /' conftest.$ac_ext >&5
9810
9811fi
9812rm -f conftest.err conftest.$ac_objext \
9813 conftest$ac_exeext conftest.$ac_ext
9814 done
9815fi
9816LIBS=$ac_func_search_save_LIBS
9817fi
9818echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9819echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9820if test "$ac_cv_search_zlibVersion" != no; then
9821 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9822
9823for ac_header in zlib.h
9824do
9825as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9826if eval "test \"\${$as_ac_Header+set}\" = set"; then
9827 echo "$as_me:$LINENO: checking for $ac_header" >&5
9828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9829if eval "test \"\${$as_ac_Header+set}\" = set"; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9831fi
9832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9833echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9834else
9835 # Is the header compilable?
9836echo "$as_me:$LINENO: checking $ac_header usability" >&5
9837echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9838cat >conftest.$ac_ext <<_ACEOF
9839/* confdefs.h. */
9840_ACEOF
9841cat confdefs.h >>conftest.$ac_ext
9842cat >>conftest.$ac_ext <<_ACEOF
9843/* end confdefs.h. */
9844$ac_includes_default
9845#include <$ac_header>
9846_ACEOF
9847rm -f conftest.$ac_objext
9848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9849 (eval $ac_compile) 2>conftest.er1
9850 ac_status=$?
9851 grep -v '^ *+' conftest.er1 >conftest.err
9852 rm -f conftest.er1
9853 cat conftest.err >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } &&
9856 { ac_try='test -z "$ac_c_werror_flag"
9857 || test ! -s conftest.err'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 (eval $ac_try) 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; } &&
9863 { ac_try='test -s conftest.$ac_objext'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 (eval $ac_try) 2>&5
9866 ac_status=$?
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; }; then
9869 ac_header_compiler=yes
9870else
9871 echo "$as_me: failed program was:" >&5
9872sed 's/^/| /' conftest.$ac_ext >&5
9873
9874ac_header_compiler=no
9875fi
9876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9877echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9878echo "${ECHO_T}$ac_header_compiler" >&6
9879
9880# Is the header present?
9881echo "$as_me:$LINENO: checking $ac_header presence" >&5
9882echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9883cat >conftest.$ac_ext <<_ACEOF
9884/* confdefs.h. */
9885_ACEOF
9886cat confdefs.h >>conftest.$ac_ext
9887cat >>conftest.$ac_ext <<_ACEOF
9888/* end confdefs.h. */
9889#include <$ac_header>
9890_ACEOF
9891if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9893 ac_status=$?
9894 grep -v '^ *+' conftest.er1 >conftest.err
9895 rm -f conftest.er1
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } >/dev/null; then
9899 if test -s conftest.err; then
9900 ac_cpp_err=$ac_c_preproc_warn_flag
9901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9902 else
9903 ac_cpp_err=
9904 fi
9905else
9906 ac_cpp_err=yes
9907fi
9908if test -z "$ac_cpp_err"; then
9909 ac_header_preproc=yes
9910else
9911 echo "$as_me: failed program was:" >&5
9912sed 's/^/| /' conftest.$ac_ext >&5
9913
9914 ac_header_preproc=no
9915fi
9916rm -f conftest.err conftest.$ac_ext
9917echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9918echo "${ECHO_T}$ac_header_preproc" >&6
9919
9920# So? What about this header?
9921case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9922 yes:no: )
9923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9924echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9926echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9927 ac_header_preproc=yes
9928 ;;
9929 no:yes:* )
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9931echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9933echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9935echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9937echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9939echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9941echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9942 (
9943 cat <<\_ASBOX
9944## ------------------------------------------ ##
9945## Report this to the AC_PACKAGE_NAME lists. ##
9946## ------------------------------------------ ##
9947_ASBOX
9948 ) |
9949 sed "s/^/$as_me: WARNING: /" >&2
9950 ;;
9951esac
9952echo "$as_me:$LINENO: checking for $ac_header" >&5
9953echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9954if eval "test \"\${$as_ac_Header+set}\" = set"; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9956else
9957 eval "$as_ac_Header=\$ac_header_preproc"
9958fi
9959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9960echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9961
9962fi
9963if test `eval echo '${'$as_ac_Header'}'` = yes; then
9964 cat >>confdefs.h <<_ACEOF
9965#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9966_ACEOF
9967
9968fi
9969
9970done
9971
9972fi
9973
9974
b4e70030 9975# For the TUI, we need enhanced curses functionality.
bec39cab
AC
9976#
9977# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9978# curses library because the latter might not provide all the
9979# functionality we need. However, this leads to problems on systems
9980# where the linker searches /usr/local/lib, but the compiler doesn't
9981# search /usr/local/include, if ncurses is installed in /usr/local. A
9982# default installation of ncurses on alpha*-dec-osf* will lead to such
9983# a situation.
b4e70030
JB
9984echo "$as_me:$LINENO: checking for library containing waddstr" >&5
9985echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
bec39cab
AC
9986if test "${ac_cv_search_waddstr+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9988else
9989 ac_func_search_save_LIBS=$LIBS
b4e70030 9990ac_cv_search_waddstr=no
bec39cab
AC
9991cat >conftest.$ac_ext <<_ACEOF
9992/* confdefs.h. */
9993_ACEOF
9994cat confdefs.h >>conftest.$ac_ext
9995cat >>conftest.$ac_ext <<_ACEOF
9996/* end confdefs.h. */
c906108c 9997
b4e70030 9998/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9999#ifdef __cplusplus
10000extern "C"
10001#endif
b4e70030
JB
10002/* We use char because int might match the return type of a gcc2
10003 builtin and then its argument prototype would still apply. */
bec39cab
AC
10004char waddstr ();
10005int
10006main ()
10007{
b4e70030 10008waddstr ();
bec39cab
AC
10009 ;
10010 return 0;
10011}
10012_ACEOF
b4e70030 10013rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
10014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015 (eval $ac_link) 2>conftest.er1
10016 ac_status=$?
10017 grep -v '^ *+' conftest.er1 >conftest.err
10018 rm -f conftest.er1
10019 cat conftest.err >&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
b4e70030
JB
10022 { ac_try='test -z "$ac_c_werror_flag"
10023 || test ! -s conftest.err'
bec39cab
AC
10024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025 (eval $ac_try) 2>&5
10026 ac_status=$?
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); }; } &&
10029 { ac_try='test -s conftest$ac_exeext'
10030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031 (eval $ac_try) 2>&5
10032 ac_status=$?
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); }; }; then
b4e70030 10035 ac_cv_search_waddstr="none required"
bec39cab
AC
10036else
10037 echo "$as_me: failed program was:" >&5
10038sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
10039
10040fi
bec39cab 10041rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
10042 conftest$ac_exeext conftest.$ac_ext
10043if test "$ac_cv_search_waddstr" = no; then
10044 for ac_lib in ncurses cursesX curses; do
10045 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10046 cat >conftest.$ac_ext <<_ACEOF
10047/* confdefs.h. */
10048_ACEOF
10049cat confdefs.h >>conftest.$ac_ext
10050cat >>conftest.$ac_ext <<_ACEOF
10051/* end confdefs.h. */
10052
10053/* Override any gcc2 internal prototype to avoid an error. */
10054#ifdef __cplusplus
10055extern "C"
10056#endif
10057/* We use char because int might match the return type of a gcc2
10058 builtin and then its argument prototype would still apply. */
10059char waddstr ();
10060int
10061main ()
10062{
10063waddstr ();
10064 ;
10065 return 0;
10066}
10067_ACEOF
10068rm -f conftest.$ac_objext conftest$ac_exeext
10069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10070 (eval $ac_link) 2>conftest.er1
10071 ac_status=$?
10072 grep -v '^ *+' conftest.er1 >conftest.err
10073 rm -f conftest.er1
10074 cat conftest.err >&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } &&
10077 { ac_try='test -z "$ac_c_werror_flag"
10078 || test ! -s conftest.err'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10081 ac_status=$?
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; } &&
10084 { ac_try='test -s conftest$ac_exeext'
10085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10086 (eval $ac_try) 2>&5
10087 ac_status=$?
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); }; }; then
10090 ac_cv_search_waddstr="-l$ac_lib"
10091break
4e8d927d 10092else
b4e70030
JB
10093 echo "$as_me: failed program was:" >&5
10094sed 's/^/| /' conftest.$ac_ext >&5
10095
10096fi
10097rm -f conftest.err conftest.$ac_objext \
10098 conftest$ac_exeext conftest.$ac_ext
10099 done
1ba607ad 10100fi
bec39cab
AC
10101LIBS=$ac_func_search_save_LIBS
10102fi
b4e70030
JB
10103echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10104echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10105if test "$ac_cv_search_waddstr" != no; then
10106 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 10107
8bb2c122 10108fi
8bb2c122 10109
8bb2c122 10110
d542061a
UW
10111# On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
10112echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
10113echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
10114if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
10115 echo $ECHO_N "(cached) $ECHO_C" >&6
10116else
10117 ac_func_search_save_LIBS=$LIBS
10118ac_cv_search_dlgetmodinfo=no
10119cat >conftest.$ac_ext <<_ACEOF
10120/* confdefs.h. */
10121_ACEOF
10122cat confdefs.h >>conftest.$ac_ext
10123cat >>conftest.$ac_ext <<_ACEOF
10124/* end confdefs.h. */
10125
10126/* Override any gcc2 internal prototype to avoid an error. */
10127#ifdef __cplusplus
10128extern "C"
10129#endif
10130/* We use char because int might match the return type of a gcc2
10131 builtin and then its argument prototype would still apply. */
10132char dlgetmodinfo ();
10133int
10134main ()
10135{
10136dlgetmodinfo ();
10137 ;
10138 return 0;
10139}
10140_ACEOF
10141rm -f conftest.$ac_objext conftest$ac_exeext
10142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10143 (eval $ac_link) 2>conftest.er1
10144 ac_status=$?
10145 grep -v '^ *+' conftest.er1 >conftest.err
10146 rm -f conftest.er1
10147 cat conftest.err >&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); } &&
10150 { ac_try='test -z "$ac_c_werror_flag"
10151 || test ! -s conftest.err'
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10154 ac_status=$?
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; } &&
10157 { ac_try='test -s conftest$ac_exeext'
10158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159 (eval $ac_try) 2>&5
10160 ac_status=$?
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; }; then
10163 ac_cv_search_dlgetmodinfo="none required"
10164else
10165 echo "$as_me: failed program was:" >&5
10166sed 's/^/| /' conftest.$ac_ext >&5
10167
10168fi
10169rm -f conftest.err conftest.$ac_objext \
10170 conftest$ac_exeext conftest.$ac_ext
10171if test "$ac_cv_search_dlgetmodinfo" = no; then
10172 for ac_lib in dl xpdl; do
10173 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10174 cat >conftest.$ac_ext <<_ACEOF
10175/* confdefs.h. */
10176_ACEOF
10177cat confdefs.h >>conftest.$ac_ext
10178cat >>conftest.$ac_ext <<_ACEOF
10179/* end confdefs.h. */
10180
10181/* Override any gcc2 internal prototype to avoid an error. */
10182#ifdef __cplusplus
10183extern "C"
10184#endif
10185/* We use char because int might match the return type of a gcc2
10186 builtin and then its argument prototype would still apply. */
10187char dlgetmodinfo ();
10188int
10189main ()
10190{
10191dlgetmodinfo ();
10192 ;
10193 return 0;
10194}
10195_ACEOF
10196rm -f conftest.$ac_objext conftest$ac_exeext
10197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10198 (eval $ac_link) 2>conftest.er1
10199 ac_status=$?
10200 grep -v '^ *+' conftest.er1 >conftest.err
10201 rm -f conftest.er1
10202 cat conftest.err >&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } &&
10205 { ac_try='test -z "$ac_c_werror_flag"
10206 || test ! -s conftest.err'
10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208 (eval $ac_try) 2>&5
10209 ac_status=$?
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; } &&
10212 { ac_try='test -s conftest$ac_exeext'
10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214 (eval $ac_try) 2>&5
10215 ac_status=$?
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; }; then
10218 ac_cv_search_dlgetmodinfo="-l$ac_lib"
10219break
10220else
10221 echo "$as_me: failed program was:" >&5
10222sed 's/^/| /' conftest.$ac_ext >&5
10223
10224fi
10225rm -f conftest.err conftest.$ac_objext \
10226 conftest$ac_exeext conftest.$ac_ext
10227 done
10228fi
10229LIBS=$ac_func_search_save_LIBS
10230fi
10231echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10232echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10233if test "$ac_cv_search_dlgetmodinfo" != no; then
10234 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
10235
10236fi
10237
10238
bec39cab
AC
10239# Since GDB uses Readline, we need termcap functionality. In many
10240# cases this will be provided by the curses library, but some systems
10241# have a seperate termcap library, or no curses library at all.
8bb2c122 10242
bec39cab
AC
10243case $host_os in
10244 cygwin*)
10245 if test -d $srcdir/libtermcap; then
10246 LIBS="../libtermcap/libtermcap.a $LIBS"
10247 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10248 fi ;;
10249 go32* | *djgpp*)
10250 ac_cv_search_tgetent="none required"
10251 ;;
7ef34f2c
MM
10252 *mingw32*)
10253 ac_cv_search_tgetent="none required"
10254 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
10255 ;;
bec39cab 10256esac
627af7ea 10257
bec39cab 10258# These are the libraries checked by Readline.
b4e70030
JB
10259echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10260echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
bec39cab
AC
10261if test "${ac_cv_search_tgetent+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
10263else
10264 ac_func_search_save_LIBS=$LIBS
b4e70030 10265ac_cv_search_tgetent=no
bec39cab
AC
10266cat >conftest.$ac_ext <<_ACEOF
10267/* confdefs.h. */
10268_ACEOF
10269cat confdefs.h >>conftest.$ac_ext
10270cat >>conftest.$ac_ext <<_ACEOF
10271/* end confdefs.h. */
10272
b4e70030 10273/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
10274#ifdef __cplusplus
10275extern "C"
10276#endif
b4e70030
JB
10277/* We use char because int might match the return type of a gcc2
10278 builtin and then its argument prototype would still apply. */
bec39cab
AC
10279char tgetent ();
10280int
10281main ()
10282{
b4e70030 10283tgetent ();
bec39cab
AC
10284 ;
10285 return 0;
10286}
10287_ACEOF
b4e70030 10288rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
10289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10290 (eval $ac_link) 2>conftest.er1
10291 ac_status=$?
10292 grep -v '^ *+' conftest.er1 >conftest.err
10293 rm -f conftest.er1
10294 cat conftest.err >&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } &&
b4e70030
JB
10297 { ac_try='test -z "$ac_c_werror_flag"
10298 || test ! -s conftest.err'
bec39cab
AC
10299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300 (eval $ac_try) 2>&5
10301 ac_status=$?
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); }; } &&
10304 { ac_try='test -s conftest$ac_exeext'
10305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306 (eval $ac_try) 2>&5
10307 ac_status=$?
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); }; }; then
b4e70030 10310 ac_cv_search_tgetent="none required"
627af7ea 10311else
bec39cab
AC
10312 echo "$as_me: failed program was:" >&5
10313sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 10314
627af7ea 10315fi
bec39cab 10316rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
10317 conftest$ac_exeext conftest.$ac_ext
10318if test "$ac_cv_search_tgetent" = no; then
10319 for ac_lib in termcap tinfo curses ncurses; do
10320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10321 cat >conftest.$ac_ext <<_ACEOF
10322/* confdefs.h. */
10323_ACEOF
10324cat confdefs.h >>conftest.$ac_ext
10325cat >>conftest.$ac_ext <<_ACEOF
10326/* end confdefs.h. */
10327
10328/* Override any gcc2 internal prototype to avoid an error. */
10329#ifdef __cplusplus
10330extern "C"
10331#endif
10332/* We use char because int might match the return type of a gcc2
10333 builtin and then its argument prototype would still apply. */
10334char tgetent ();
10335int
10336main ()
10337{
10338tgetent ();
10339 ;
10340 return 0;
10341}
10342_ACEOF
10343rm -f conftest.$ac_objext conftest$ac_exeext
10344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10345 (eval $ac_link) 2>conftest.er1
10346 ac_status=$?
10347 grep -v '^ *+' conftest.er1 >conftest.err
10348 rm -f conftest.er1
10349 cat conftest.err >&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } &&
10352 { ac_try='test -z "$ac_c_werror_flag"
10353 || test ! -s conftest.err'
10354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10355 (eval $ac_try) 2>&5
10356 ac_status=$?
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); }; } &&
10359 { ac_try='test -s conftest$ac_exeext'
10360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361 (eval $ac_try) 2>&5
10362 ac_status=$?
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; }; then
10365 ac_cv_search_tgetent="-l$ac_lib"
10366break
4e8d927d 10367else
b4e70030
JB
10368 echo "$as_me: failed program was:" >&5
10369sed 's/^/| /' conftest.$ac_ext >&5
10370
10371fi
10372rm -f conftest.err conftest.$ac_objext \
10373 conftest$ac_exeext conftest.$ac_ext
10374 done
bec39cab
AC
10375fi
10376LIBS=$ac_func_search_save_LIBS
10377fi
b4e70030
JB
10378echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10379echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10380if test "$ac_cv_search_tgetent" != no; then
10381 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 10382
06825bd1
MK
10383fi
10384
06825bd1 10385
bec39cab
AC
10386if test "$ac_cv_search_tgetent" = no; then
10387 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10388echo "$as_me: error: no termcap library found" >&2;}
10389 { (exit 1); exit 1; }; }
8ee53726
MK
10390fi
10391
3841debe 10392
6a30b0a5
AS
10393# Check whether --with-system-readline or --without-system-readline was given.
10394if test "${with_system_readline+set}" = set; then
10395 withval="$with_system_readline"
10396
10397fi;
10398
10399if test "$with_system_readline" = yes; then
10400 READLINE=-lreadline
10401 READLINE_DEPS=
10402 READLINE_CFLAGS=
10403else
10404 READLINE='$(READLINE_DIR)/libreadline.a'
10405 READLINE_DEPS='$(READLINE)'
10406 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10407fi
10408
10409
10410
10411
10412
5c39566f
DJ
10413# Check whether --with-expat or --without-expat was given.
10414if test "${with_expat+set}" = set; then
10415 withval="$with_expat"
10416
10417else
10418 with_expat=auto
10419fi;
10420echo "$as_me:$LINENO: checking whether to use expat" >&5
10421echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10422echo "$as_me:$LINENO: result: $with_expat" >&5
10423echo "${ECHO_T}$with_expat" >&6
10424
10425if test "${with_expat}" = no; then
10426 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10427echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10428 HAVE_LIBEXPAT=no
10429else
10430
3841debe
DJ
10431 if test "X$prefix" = "XNONE"; then
10432 acl_final_prefix="$ac_default_prefix"
10433 else
10434 acl_final_prefix="$prefix"
10435 fi
10436 if test "X$exec_prefix" = "XNONE"; then
10437 acl_final_exec_prefix='${prefix}'
10438 else
10439 acl_final_exec_prefix="$exec_prefix"
10440 fi
10441 acl_save_prefix="$prefix"
10442 prefix="$acl_final_prefix"
10443 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10444 prefix="$acl_save_prefix"
10445
10446
10447# Check whether --with-gnu-ld or --without-gnu-ld was given.
10448if test "${with_gnu_ld+set}" = set; then
10449 withval="$with_gnu_ld"
10450 test "$withval" = no || with_gnu_ld=yes
10451else
10452 with_gnu_ld=no
10453fi;
10454# Prepare PATH_SEPARATOR.
10455# The user is always right.
10456if test "${PATH_SEPARATOR+set}" != set; then
10457 echo "#! /bin/sh" >conf$$.sh
10458 echo "exit 0" >>conf$$.sh
10459 chmod +x conf$$.sh
10460 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10461 PATH_SEPARATOR=';'
10462 else
10463 PATH_SEPARATOR=:
10464 fi
10465 rm -f conf$$.sh
10466fi
10467ac_prog=ld
10468if test "$GCC" = yes; then
10469 # Check if gcc -print-prog-name=ld gives a path.
10470 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10471echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10472 case $host in
10473 *-*-mingw*)
10474 # gcc leaves a trailing carriage return which upsets mingw
10475 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10476 *)
10477 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10478 esac
10479 case $ac_prog in
10480 # Accept absolute paths.
10481 [\\/]* | [A-Za-z]:[\\/]*)
10482 re_direlt='/[^/][^/]*/\.\./'
10483 # Canonicalize the path of ld
10484 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10485 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10486 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10487 done
10488 test -z "$LD" && LD="$ac_prog"
10489 ;;
10490 "")
10491 # If it fails, then pretend we aren't using GCC.
10492 ac_prog=ld
10493 ;;
10494 *)
10495 # If it is relative, then search for the first ld in PATH.
10496 with_gnu_ld=unknown
10497 ;;
10498 esac
10499elif test "$with_gnu_ld" = yes; then
10500 echo "$as_me:$LINENO: checking for GNU ld" >&5
10501echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10502else
10503 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10504echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10505fi
10506if test "${acl_cv_path_LD+set}" = set; then
10507 echo $ECHO_N "(cached) $ECHO_C" >&6
10508else
10509 if test -z "$LD"; then
10510 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10511 for ac_dir in $PATH; do
10512 test -z "$ac_dir" && ac_dir=.
10513 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10514 acl_cv_path_LD="$ac_dir/$ac_prog"
10515 # Check to see if the program is GNU ld. I'd rather use --version,
10516 # but apparently some GNU ld's only accept -v.
10517 # Break only if it was the GNU/non-GNU ld that we prefer.
10518 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10519 test "$with_gnu_ld" != no && break
10520 else
10521 test "$with_gnu_ld" != yes && break
10522 fi
10523 fi
10524 done
10525 IFS="$ac_save_ifs"
10526else
10527 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10528fi
10529fi
10530
10531LD="$acl_cv_path_LD"
10532if test -n "$LD"; then
10533 echo "$as_me:$LINENO: result: $LD" >&5
10534echo "${ECHO_T}$LD" >&6
10535else
10536 echo "$as_me:$LINENO: result: no" >&5
10537echo "${ECHO_T}no" >&6
10538fi
10539test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10540echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10541 { (exit 1); exit 1; }; }
10542echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10543echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10544if test "${acl_cv_prog_gnu_ld+set}" = set; then
10545 echo $ECHO_N "(cached) $ECHO_C" >&6
10546else
10547 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10548if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10549 acl_cv_prog_gnu_ld=yes
10550else
10551 acl_cv_prog_gnu_ld=no
10552fi
10553fi
10554echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10555echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10556with_gnu_ld=$acl_cv_prog_gnu_ld
10557
10558
10559
10560 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10561echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10562if test "${acl_cv_rpath+set}" = set; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10564else
10565
10566 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10567 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10568 . ./conftest.sh
10569 rm -f ./conftest.sh
10570 acl_cv_rpath=done
10571
10572fi
10573echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10574echo "${ECHO_T}$acl_cv_rpath" >&6
10575 wl="$acl_cv_wl"
10576 libext="$acl_cv_libext"
10577 shlibext="$acl_cv_shlibext"
10578 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10579 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10580 hardcode_direct="$acl_cv_hardcode_direct"
10581 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10582 # Check whether --enable-rpath or --disable-rpath was given.
10583if test "${enable_rpath+set}" = set; then
10584 enableval="$enable_rpath"
10585 :
10586else
10587 enable_rpath=yes
10588fi;
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598 use_additional=yes
10599
10600 acl_save_prefix="$prefix"
10601 prefix="$acl_final_prefix"
10602 acl_save_exec_prefix="$exec_prefix"
10603 exec_prefix="$acl_final_exec_prefix"
10604
10605 eval additional_includedir=\"$includedir\"
10606 eval additional_libdir=\"$libdir\"
10607
10608 exec_prefix="$acl_save_exec_prefix"
10609 prefix="$acl_save_prefix"
10610
10611
10612# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10613if test "${with_libexpat_prefix+set}" = set; then
10614 withval="$with_libexpat_prefix"
10615
10616 if test "X$withval" = "Xno"; then
10617 use_additional=no
10618 else
10619 if test "X$withval" = "X"; then
10620
10621 acl_save_prefix="$prefix"
10622 prefix="$acl_final_prefix"
10623 acl_save_exec_prefix="$exec_prefix"
10624 exec_prefix="$acl_final_exec_prefix"
10625
10626 eval additional_includedir=\"$includedir\"
10627 eval additional_libdir=\"$libdir\"
10628
10629 exec_prefix="$acl_save_exec_prefix"
10630 prefix="$acl_save_prefix"
10631
10632 else
10633 additional_includedir="$withval/include"
10634 additional_libdir="$withval/lib"
10635 fi
10636 fi
10637
10638fi;
10639 LIBEXPAT=
10640 LTLIBEXPAT=
10641 INCEXPAT=
10642 rpathdirs=
10643 ltrpathdirs=
10644 names_already_handled=
10645 names_next_round='expat '
10646 while test -n "$names_next_round"; do
10647 names_this_round="$names_next_round"
10648 names_next_round=
10649 for name in $names_this_round; do
10650 already_handled=
10651 for n in $names_already_handled; do
10652 if test "$n" = "$name"; then
10653 already_handled=yes
10654 break
10655 fi
10656 done
10657 if test -z "$already_handled"; then
10658 names_already_handled="$names_already_handled $name"
10659 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10660 eval value=\"\$HAVE_LIB$uppername\"
10661 if test -n "$value"; then
10662 if test "$value" = yes; then
10663 eval value=\"\$LIB$uppername\"
10664 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10665 eval value=\"\$LTLIB$uppername\"
10666 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10667 else
10668 :
10669 fi
10670 else
10671 found_dir=
10672 found_la=
10673 found_so=
10674 found_a=
10675 if test $use_additional = yes; then
10676 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10677 found_dir="$additional_libdir"
10678 found_so="$additional_libdir/lib$name.$shlibext"
10679 if test -f "$additional_libdir/lib$name.la"; then
10680 found_la="$additional_libdir/lib$name.la"
10681 fi
10682 else
10683 if test -f "$additional_libdir/lib$name.$libext"; then
10684 found_dir="$additional_libdir"
10685 found_a="$additional_libdir/lib$name.$libext"
10686 if test -f "$additional_libdir/lib$name.la"; then
10687 found_la="$additional_libdir/lib$name.la"
10688 fi
10689 fi
10690 fi
10691 fi
10692 if test "X$found_dir" = "X"; then
10693 for x in $LDFLAGS $LTLIBEXPAT; do
10694
10695 acl_save_prefix="$prefix"
10696 prefix="$acl_final_prefix"
10697 acl_save_exec_prefix="$exec_prefix"
10698 exec_prefix="$acl_final_exec_prefix"
10699 eval x=\"$x\"
10700 exec_prefix="$acl_save_exec_prefix"
10701 prefix="$acl_save_prefix"
10702
10703 case "$x" in
10704 -L*)
10705 dir=`echo "X$x" | sed -e 's/^X-L//'`
10706 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10707 found_dir="$dir"
10708 found_so="$dir/lib$name.$shlibext"
10709 if test -f "$dir/lib$name.la"; then
10710 found_la="$dir/lib$name.la"
10711 fi
10712 else
10713 if test -f "$dir/lib$name.$libext"; then
10714 found_dir="$dir"
10715 found_a="$dir/lib$name.$libext"
10716 if test -f "$dir/lib$name.la"; then
10717 found_la="$dir/lib$name.la"
10718 fi
10719 fi
10720 fi
10721 ;;
10722 esac
10723 if test "X$found_dir" != "X"; then
10724 break
10725 fi
10726 done
10727 fi
10728 if test "X$found_dir" != "X"; then
10729 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10730 if test "X$found_so" != "X"; then
10731 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10732 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10733 else
10734 haveit=
10735 for x in $ltrpathdirs; do
10736 if test "X$x" = "X$found_dir"; then
10737 haveit=yes
10738 break
10739 fi
10740 done
10741 if test -z "$haveit"; then
10742 ltrpathdirs="$ltrpathdirs $found_dir"
10743 fi
10744 if test "$hardcode_direct" = yes; then
10745 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10746 else
10747 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10748 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10749 haveit=
10750 for x in $rpathdirs; do
10751 if test "X$x" = "X$found_dir"; then
10752 haveit=yes
10753 break
10754 fi
10755 done
10756 if test -z "$haveit"; then
10757 rpathdirs="$rpathdirs $found_dir"
10758 fi
10759 else
10760 haveit=
10761 for x in $LDFLAGS $LIBEXPAT; do
10762
10763 acl_save_prefix="$prefix"
10764 prefix="$acl_final_prefix"
10765 acl_save_exec_prefix="$exec_prefix"
10766 exec_prefix="$acl_final_exec_prefix"
10767 eval x=\"$x\"
10768 exec_prefix="$acl_save_exec_prefix"
10769 prefix="$acl_save_prefix"
10770
10771 if test "X$x" = "X-L$found_dir"; then
10772 haveit=yes
10773 break
10774 fi
10775 done
10776 if test -z "$haveit"; then
10777 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10778 fi
10779 if test "$hardcode_minus_L" != no; then
10780 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10781 else
10782 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10783 fi
10784 fi
10785 fi
10786 fi
10787 else
10788 if test "X$found_a" != "X"; then
10789 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10790 else
10791 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10792 fi
10793 fi
10794 additional_includedir=
10795 case "$found_dir" in
10796 */lib | */lib/)
10797 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10798 additional_includedir="$basedir/include"
10799 ;;
10800 esac
10801 if test "X$additional_includedir" != "X"; then
10802 if test "X$additional_includedir" != "X/usr/include"; then
10803 haveit=
10804 if test "X$additional_includedir" = "X/usr/local/include"; then
10805 if test -n "$GCC"; then
10806 case $host_os in
10807 linux*) haveit=yes;;
10808 esac
10809 fi
10810 fi
10811 if test -z "$haveit"; then
10812 for x in $CPPFLAGS $INCEXPAT; do
10813
10814 acl_save_prefix="$prefix"
10815 prefix="$acl_final_prefix"
10816 acl_save_exec_prefix="$exec_prefix"
10817 exec_prefix="$acl_final_exec_prefix"
10818 eval x=\"$x\"
10819 exec_prefix="$acl_save_exec_prefix"
10820 prefix="$acl_save_prefix"
10821
10822 if test "X$x" = "X-I$additional_includedir"; then
10823 haveit=yes
10824 break
10825 fi
10826 done
10827 if test -z "$haveit"; then
10828 if test -d "$additional_includedir"; then
10829 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10830 fi
10831 fi
10832 fi
10833 fi
10834 fi
10835 if test -n "$found_la"; then
10836 save_libdir="$libdir"
10837 case "$found_la" in
10838 */* | *\\*) . "$found_la" ;;
10839 *) . "./$found_la" ;;
10840 esac
10841 libdir="$save_libdir"
10842 for dep in $dependency_libs; do
10843 case "$dep" in
10844 -L*)
10845 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10846 if test "X$additional_libdir" != "X/usr/lib"; then
10847 haveit=
10848 if test "X$additional_libdir" = "X/usr/local/lib"; then
10849 if test -n "$GCC"; then
10850 case $host_os in
10851 linux*) haveit=yes;;
10852 esac
10853 fi
10854 fi
10855 if test -z "$haveit"; then
10856 haveit=
10857 for x in $LDFLAGS $LIBEXPAT; do
10858
10859 acl_save_prefix="$prefix"
10860 prefix="$acl_final_prefix"
10861 acl_save_exec_prefix="$exec_prefix"
10862 exec_prefix="$acl_final_exec_prefix"
10863 eval x=\"$x\"
10864 exec_prefix="$acl_save_exec_prefix"
10865 prefix="$acl_save_prefix"
10866
10867 if test "X$x" = "X-L$additional_libdir"; then
10868 haveit=yes
10869 break
10870 fi
10871 done
10872 if test -z "$haveit"; then
10873 if test -d "$additional_libdir"; then
10874 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10875 fi
10876 fi
10877 haveit=
10878 for x in $LDFLAGS $LTLIBEXPAT; do
10879
10880 acl_save_prefix="$prefix"
10881 prefix="$acl_final_prefix"
10882 acl_save_exec_prefix="$exec_prefix"
10883 exec_prefix="$acl_final_exec_prefix"
10884 eval x=\"$x\"
10885 exec_prefix="$acl_save_exec_prefix"
10886 prefix="$acl_save_prefix"
10887
10888 if test "X$x" = "X-L$additional_libdir"; then
10889 haveit=yes
10890 break
10891 fi
10892 done
10893 if test -z "$haveit"; then
10894 if test -d "$additional_libdir"; then
10895 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10896 fi
10897 fi
10898 fi
10899 fi
10900 ;;
10901 -R*)
10902 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10903 if test "$enable_rpath" != no; then
10904 haveit=
10905 for x in $rpathdirs; do
10906 if test "X$x" = "X$dir"; then
10907 haveit=yes
10908 break
10909 fi
10910 done
10911 if test -z "$haveit"; then
10912 rpathdirs="$rpathdirs $dir"
10913 fi
10914 haveit=
10915 for x in $ltrpathdirs; do
10916 if test "X$x" = "X$dir"; then
10917 haveit=yes
10918 break
10919 fi
10920 done
10921 if test -z "$haveit"; then
10922 ltrpathdirs="$ltrpathdirs $dir"
10923 fi
10924 fi
10925 ;;
10926 -l*)
10927 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10928 ;;
10929 *.la)
10930 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10931 ;;
10932 *)
10933 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10934 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10935 ;;
10936 esac
10937 done
10938 fi
10939 else
10940 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10941 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10942 fi
10943 fi
10944 fi
10945 done
10946 done
10947 if test "X$rpathdirs" != "X"; then
10948 if test -n "$hardcode_libdir_separator"; then
10949 alldirs=
10950 for found_dir in $rpathdirs; do
10951 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10952 done
10953 acl_save_libdir="$libdir"
10954 libdir="$alldirs"
10955 eval flag=\"$hardcode_libdir_flag_spec\"
10956 libdir="$acl_save_libdir"
10957 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10958 else
10959 for found_dir in $rpathdirs; do
10960 acl_save_libdir="$libdir"
10961 libdir="$found_dir"
10962 eval flag=\"$hardcode_libdir_flag_spec\"
10963 libdir="$acl_save_libdir"
10964 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10965 done
10966 fi
10967 fi
10968 if test "X$ltrpathdirs" != "X"; then
10969 for found_dir in $ltrpathdirs; do
10970 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10971 done
10972 fi
10973
10974
10975 ac_save_CPPFLAGS="$CPPFLAGS"
10976
10977 for element in $INCEXPAT; do
10978 haveit=
10979 for x in $CPPFLAGS; do
10980
10981 acl_save_prefix="$prefix"
10982 prefix="$acl_final_prefix"
10983 acl_save_exec_prefix="$exec_prefix"
10984 exec_prefix="$acl_final_exec_prefix"
10985 eval x=\"$x\"
10986 exec_prefix="$acl_save_exec_prefix"
10987 prefix="$acl_save_prefix"
10988
10989 if test "X$x" = "X$element"; then
10990 haveit=yes
10991 break
10992 fi
10993 done
10994 if test -z "$haveit"; then
10995 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10996 fi
10997 done
10998
10999
11000 echo "$as_me:$LINENO: checking for libexpat" >&5
11001echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11002if test "${ac_cv_libexpat+set}" = set; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11004else
11005
11006 ac_save_LIBS="$LIBS"
11007 LIBS="$LIBS $LIBEXPAT"
11008 cat >conftest.$ac_ext <<_ACEOF
11009/* confdefs.h. */
11010_ACEOF
11011cat confdefs.h >>conftest.$ac_ext
11012cat >>conftest.$ac_ext <<_ACEOF
11013/* end confdefs.h. */
11014#include "expat.h"
11015int
11016main ()
11017{
11018XML_Parser p = XML_ParserCreate (0);
11019 ;
11020 return 0;
11021}
11022_ACEOF
11023rm -f conftest.$ac_objext conftest$ac_exeext
11024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11025 (eval $ac_link) 2>conftest.er1
11026 ac_status=$?
11027 grep -v '^ *+' conftest.er1 >conftest.err
11028 rm -f conftest.er1
11029 cat conftest.err >&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } &&
11032 { ac_try='test -z "$ac_c_werror_flag"
11033 || test ! -s conftest.err'
11034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11035 (eval $ac_try) 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; } &&
11039 { ac_try='test -s conftest$ac_exeext'
11040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11041 (eval $ac_try) 2>&5
11042 ac_status=$?
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; }; then
11045 ac_cv_libexpat=yes
11046else
11047 echo "$as_me: failed program was:" >&5
11048sed 's/^/| /' conftest.$ac_ext >&5
11049
11050ac_cv_libexpat=no
11051fi
11052rm -f conftest.err conftest.$ac_objext \
11053 conftest$ac_exeext conftest.$ac_ext
11054 LIBS="$ac_save_LIBS"
11055
11056fi
11057echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11058echo "${ECHO_T}$ac_cv_libexpat" >&6
11059 if test "$ac_cv_libexpat" = yes; then
11060 HAVE_LIBEXPAT=yes
11061
11062cat >>confdefs.h <<\_ACEOF
11063#define HAVE_LIBEXPAT 1
11064_ACEOF
11065
11066 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11067echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11068 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11069echo "${ECHO_T}$LIBEXPAT" >&6
11070 else
11071 HAVE_LIBEXPAT=no
11072 CPPFLAGS="$ac_save_CPPFLAGS"
11073 LIBEXPAT=
11074 LTLIBEXPAT=
11075 fi
11076
11077
11078
11079
11080
11081
5c39566f
DJ
11082 if test "$HAVE_LIBEXPAT" != yes; then
11083 if test "$with_expat" = yes; then
11084 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11085echo "$as_me: error: expat is missing or unusable" >&2;}
11086 { (exit 1); exit 1; }; }
11087 else
11088 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11089echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11090 fi
11091 else
11092 save_LIBS=$LIBS
11093 LIBS="$LIBS $LIBEXPAT"
ca4ca11e
DJ
11094
11095for ac_func in XML_StopParser
11096do
11097as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11098echo "$as_me:$LINENO: checking for $ac_func" >&5
11099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11100if eval "test \"\${$as_ac_var+set}\" = set"; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11102else
11103 cat >conftest.$ac_ext <<_ACEOF
11104/* confdefs.h. */
11105_ACEOF
11106cat confdefs.h >>conftest.$ac_ext
11107cat >>conftest.$ac_ext <<_ACEOF
11108/* end confdefs.h. */
11109/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11111#define $ac_func innocuous_$ac_func
11112
11113/* System header to define __stub macros and hopefully few prototypes,
11114 which can conflict with char $ac_func (); below.
11115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11116 <limits.h> exists even on freestanding compilers. */
11117
11118#ifdef __STDC__
11119# include <limits.h>
11120#else
11121# include <assert.h>
11122#endif
11123
11124#undef $ac_func
11125
11126/* Override any gcc2 internal prototype to avoid an error. */
11127#ifdef __cplusplus
11128extern "C"
11129{
11130#endif
11131/* We use char because int might match the return type of a gcc2
11132 builtin and then its argument prototype would still apply. */
11133char $ac_func ();
11134/* The GNU C library defines this for functions which it implements
11135 to always fail with ENOSYS. Some functions are actually named
11136 something starting with __ and the normal name is an alias. */
11137#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11138choke me
11139#else
11140char (*f) () = $ac_func;
11141#endif
11142#ifdef __cplusplus
11143}
11144#endif
11145
11146int
11147main ()
11148{
11149return f != $ac_func;
11150 ;
11151 return 0;
11152}
11153_ACEOF
11154rm -f conftest.$ac_objext conftest$ac_exeext
11155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11156 (eval $ac_link) 2>conftest.er1
11157 ac_status=$?
11158 grep -v '^ *+' conftest.er1 >conftest.err
11159 rm -f conftest.er1
11160 cat conftest.err >&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } &&
11163 { ac_try='test -z "$ac_c_werror_flag"
11164 || test ! -s conftest.err'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11167 ac_status=$?
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; } &&
11170 { ac_try='test -s conftest$ac_exeext'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11173 ac_status=$?
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; }; then
11176 eval "$as_ac_var=yes"
11177else
11178 echo "$as_me: failed program was:" >&5
11179sed 's/^/| /' conftest.$ac_ext >&5
11180
11181eval "$as_ac_var=no"
11182fi
11183rm -f conftest.err conftest.$ac_objext \
11184 conftest$ac_exeext conftest.$ac_ext
11185fi
11186echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11187echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11188if test `eval echo '${'$as_ac_var'}'` = yes; then
11189 cat >>confdefs.h <<_ACEOF
11190#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11191_ACEOF
11192
11193fi
11194done
11195
5c39566f
DJ
11196 LIBS=$save_LIBS
11197 fi
3841debe
DJ
11198fi
11199
bec39cab
AC
11200# ------------------------- #
11201# Checks for header files. #
11202# ------------------------- #
8ee53726 11203
0e5d83e3 11204
bec39cab
AC
11205
11206
11207
11208
11209ac_header_dirent=no
11210for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11211 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
b4e70030
JB
11212echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11213echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11214if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11216else
11217 cat >conftest.$ac_ext <<_ACEOF
11218/* confdefs.h. */
11219_ACEOF
11220cat confdefs.h >>conftest.$ac_ext
11221cat >>conftest.$ac_ext <<_ACEOF
11222/* end confdefs.h. */
11223#include <sys/types.h>
0e5d83e3 11224#include <$ac_hdr>
bec39cab
AC
11225
11226int
11227main ()
11228{
11229if ((DIR *) 0)
11230return 0;
11231 ;
11232 return 0;
11233}
11234_ACEOF
11235rm -f conftest.$ac_objext
11236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11237 (eval $ac_compile) 2>conftest.er1
11238 ac_status=$?
11239 grep -v '^ *+' conftest.er1 >conftest.err
11240 rm -f conftest.er1
11241 cat conftest.err >&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); } &&
b4e70030
JB
11244 { ac_try='test -z "$ac_c_werror_flag"
11245 || test ! -s conftest.err'
bec39cab
AC
11246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247 (eval $ac_try) 2>&5
11248 ac_status=$?
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; } &&
11251 { ac_try='test -s conftest.$ac_objext'
11252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253 (eval $ac_try) 2>&5
11254 ac_status=$?
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); }; }; then
11257 eval "$as_ac_Header=yes"
11258else
11259 echo "$as_me: failed program was:" >&5
11260sed 's/^/| /' conftest.$ac_ext >&5
11261
b4e70030 11262eval "$as_ac_Header=no"
bec39cab
AC
11263fi
11264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11265fi
b4e70030
JB
11266echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11267echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11268if test `eval echo '${'$as_ac_Header'}'` = yes; then
11269 cat >>confdefs.h <<_ACEOF
11270#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11271_ACEOF
11272
11273ac_header_dirent=$ac_hdr; break
0e5d83e3 11274fi
0e5d83e3 11275
bec39cab
AC
11276done
11277# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11278if test $ac_header_dirent = dirent.h; then
b4e70030
JB
11279 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11280echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
11281if test "${ac_cv_search_opendir+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11283else
11284 ac_func_search_save_LIBS=$LIBS
b4e70030 11285ac_cv_search_opendir=no
bec39cab
AC
11286cat >conftest.$ac_ext <<_ACEOF
11287/* confdefs.h. */
11288_ACEOF
11289cat confdefs.h >>conftest.$ac_ext
11290cat >>conftest.$ac_ext <<_ACEOF
11291/* end confdefs.h. */
0e5d83e3 11292
b4e70030 11293/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
11294#ifdef __cplusplus
11295extern "C"
11296#endif
b4e70030
JB
11297/* We use char because int might match the return type of a gcc2
11298 builtin and then its argument prototype would still apply. */
bec39cab
AC
11299char opendir ();
11300int
11301main ()
11302{
b4e70030 11303opendir ();
bec39cab
AC
11304 ;
11305 return 0;
11306}
11307_ACEOF
b4e70030 11308rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
11309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11310 (eval $ac_link) 2>conftest.er1
11311 ac_status=$?
11312 grep -v '^ *+' conftest.er1 >conftest.err
11313 rm -f conftest.er1
11314 cat conftest.err >&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); } &&
b4e70030
JB
11317 { ac_try='test -z "$ac_c_werror_flag"
11318 || test ! -s conftest.err'
bec39cab
AC
11319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320 (eval $ac_try) 2>&5
11321 ac_status=$?
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; } &&
11324 { ac_try='test -s conftest$ac_exeext'
11325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326 (eval $ac_try) 2>&5
11327 ac_status=$?
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); }; }; then
b4e70030 11330 ac_cv_search_opendir="none required"
bec39cab
AC
11331else
11332 echo "$as_me: failed program was:" >&5
11333sed 's/^/| /' conftest.$ac_ext >&5
11334
11335fi
bec39cab 11336rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
11337 conftest$ac_exeext conftest.$ac_ext
11338if test "$ac_cv_search_opendir" = no; then
11339 for ac_lib in dir; do
11340 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11341 cat >conftest.$ac_ext <<_ACEOF
11342/* confdefs.h. */
11343_ACEOF
11344cat confdefs.h >>conftest.$ac_ext
11345cat >>conftest.$ac_ext <<_ACEOF
11346/* end confdefs.h. */
11347
11348/* Override any gcc2 internal prototype to avoid an error. */
11349#ifdef __cplusplus
11350extern "C"
11351#endif
11352/* We use char because int might match the return type of a gcc2
11353 builtin and then its argument prototype would still apply. */
11354char opendir ();
11355int
11356main ()
11357{
11358opendir ();
11359 ;
11360 return 0;
11361}
11362_ACEOF
11363rm -f conftest.$ac_objext conftest$ac_exeext
11364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11365 (eval $ac_link) 2>conftest.er1
11366 ac_status=$?
11367 grep -v '^ *+' conftest.er1 >conftest.err
11368 rm -f conftest.er1
11369 cat conftest.err >&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } &&
11372 { ac_try='test -z "$ac_c_werror_flag"
11373 || test ! -s conftest.err'
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11376 ac_status=$?
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; } &&
11379 { ac_try='test -s conftest$ac_exeext'
11380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381 (eval $ac_try) 2>&5
11382 ac_status=$?
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; }; then
11385 ac_cv_search_opendir="-l$ac_lib"
11386break
4e8d927d 11387else
b4e70030
JB
11388 echo "$as_me: failed program was:" >&5
11389sed 's/^/| /' conftest.$ac_ext >&5
11390
11391fi
11392rm -f conftest.err conftest.$ac_objext \
11393 conftest$ac_exeext conftest.$ac_ext
11394 done
0e5d83e3 11395fi
bec39cab 11396LIBS=$ac_func_search_save_LIBS
0e5d83e3 11397fi
b4e70030
JB
11398echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11399echo "${ECHO_T}$ac_cv_search_opendir" >&6
11400if test "$ac_cv_search_opendir" != no; then
11401 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 11402
0e5d83e3
JJ
11403fi
11404
d28f9cdf 11405else
b4e70030
JB
11406 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11407echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
11408if test "${ac_cv_search_opendir+set}" = set; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11410else
11411 ac_func_search_save_LIBS=$LIBS
b4e70030 11412ac_cv_search_opendir=no
bec39cab
AC
11413cat >conftest.$ac_ext <<_ACEOF
11414/* confdefs.h. */
11415_ACEOF
11416cat confdefs.h >>conftest.$ac_ext
11417cat >>conftest.$ac_ext <<_ACEOF
11418/* end confdefs.h. */
d28f9cdf 11419
b4e70030 11420/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
11421#ifdef __cplusplus
11422extern "C"
d28f9cdf 11423#endif
b4e70030
JB
11424/* We use char because int might match the return type of a gcc2
11425 builtin and then its argument prototype would still apply. */
bec39cab
AC
11426char opendir ();
11427int
11428main ()
11429{
b4e70030 11430opendir ();
bec39cab
AC
11431 ;
11432 return 0;
11433}
11434_ACEOF
b4e70030 11435rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
11436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11437 (eval $ac_link) 2>conftest.er1
11438 ac_status=$?
11439 grep -v '^ *+' conftest.er1 >conftest.err
11440 rm -f conftest.er1
11441 cat conftest.err >&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } &&
b4e70030
JB
11444 { ac_try='test -z "$ac_c_werror_flag"
11445 || test ! -s conftest.err'
bec39cab
AC
11446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447 (eval $ac_try) 2>&5
11448 ac_status=$?
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; } &&
11451 { ac_try='test -s conftest$ac_exeext'
11452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453 (eval $ac_try) 2>&5
11454 ac_status=$?
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; }; then
b4e70030 11457 ac_cv_search_opendir="none required"
d28f9cdf 11458else
bec39cab
AC
11459 echo "$as_me: failed program was:" >&5
11460sed 's/^/| /' conftest.$ac_ext >&5
11461
d28f9cdf 11462fi
bec39cab 11463rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
11464 conftest$ac_exeext conftest.$ac_ext
11465if test "$ac_cv_search_opendir" = no; then
11466 for ac_lib in x; do
11467 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11468 cat >conftest.$ac_ext <<_ACEOF
11469/* confdefs.h. */
11470_ACEOF
11471cat confdefs.h >>conftest.$ac_ext
11472cat >>conftest.$ac_ext <<_ACEOF
11473/* end confdefs.h. */
11474
11475/* Override any gcc2 internal prototype to avoid an error. */
11476#ifdef __cplusplus
11477extern "C"
11478#endif
11479/* We use char because int might match the return type of a gcc2
11480 builtin and then its argument prototype would still apply. */
11481char opendir ();
11482int
11483main ()
11484{
11485opendir ();
11486 ;
11487 return 0;
11488}
11489_ACEOF
11490rm -f conftest.$ac_objext conftest$ac_exeext
11491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11492 (eval $ac_link) 2>conftest.er1
11493 ac_status=$?
11494 grep -v '^ *+' conftest.er1 >conftest.err
11495 rm -f conftest.er1
11496 cat conftest.err >&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } &&
11499 { ac_try='test -z "$ac_c_werror_flag"
11500 || test ! -s conftest.err'
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11503 ac_status=$?
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; } &&
11506 { ac_try='test -s conftest$ac_exeext'
11507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508 (eval $ac_try) 2>&5
11509 ac_status=$?
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; }; then
11512 ac_cv_search_opendir="-l$ac_lib"
11513break
4e8d927d 11514else
b4e70030
JB
11515 echo "$as_me: failed program was:" >&5
11516sed 's/^/| /' conftest.$ac_ext >&5
11517
11518fi
11519rm -f conftest.err conftest.$ac_objext \
11520 conftest$ac_exeext conftest.$ac_ext
11521 done
bec39cab
AC
11522fi
11523LIBS=$ac_func_search_save_LIBS
d28f9cdf 11524fi
b4e70030
JB
11525echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11526echo "${ECHO_T}$ac_cv_search_opendir" >&6
11527if test "$ac_cv_search_opendir" != no; then
11528 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 11529
d28f9cdf
DJ
11530fi
11531
bec39cab 11532fi
b0b1c2c0 11533
b4e70030
JB
11534echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11535echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
bec39cab
AC
11536if test "${ac_cv_header_stat_broken+set}" = set; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 11538else
bec39cab
AC
11539 cat >conftest.$ac_ext <<_ACEOF
11540/* confdefs.h. */
11541_ACEOF
11542cat confdefs.h >>conftest.$ac_ext
11543cat >>conftest.$ac_ext <<_ACEOF
11544/* end confdefs.h. */
11545#include <sys/types.h>
11546#include <sys/stat.h>
b0b1c2c0 11547
b4e70030 11548#if defined(S_ISBLK) && defined(S_IFDIR)
bec39cab
AC
11549# if S_ISBLK (S_IFDIR)
11550You lose.
11551# endif
11552#endif
b0b1c2c0 11553
b4e70030 11554#if defined(S_ISBLK) && defined(S_IFCHR)
bec39cab
AC
11555# if S_ISBLK (S_IFCHR)
11556You lose.
11557# endif
11558#endif
d28f9cdf 11559
b4e70030 11560#if defined(S_ISLNK) && defined(S_IFREG)
bec39cab
AC
11561# if S_ISLNK (S_IFREG)
11562You lose.
11563# endif
11564#endif
d28f9cdf 11565
b4e70030 11566#if defined(S_ISSOCK) && defined(S_IFREG)
bec39cab
AC
11567# if S_ISSOCK (S_IFREG)
11568You lose.
11569# endif
11570#endif
11571
11572_ACEOF
11573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11574 $EGREP "You lose" >/dev/null 2>&1; then
11575 ac_cv_header_stat_broken=yes
d28f9cdf 11576else
bec39cab 11577 ac_cv_header_stat_broken=no
d28f9cdf
DJ
11578fi
11579rm -f conftest*
d28f9cdf 11580
d28f9cdf 11581fi
b4e70030
JB
11582echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11583echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
bec39cab 11584if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 11585
bec39cab
AC
11586cat >>confdefs.h <<\_ACEOF
11587#define STAT_MACROS_BROKEN 1
11588_ACEOF
8bb2c122 11589
7a292a7a 11590fi
bec39cab 11591
b4e70030
JB
11592echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11593echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
bec39cab
AC
11594if test "${ac_cv_header_stdc+set}" = set; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 11596else
bec39cab
AC
11597 cat >conftest.$ac_ext <<_ACEOF
11598/* confdefs.h. */
11599_ACEOF
11600cat confdefs.h >>conftest.$ac_ext
11601cat >>conftest.$ac_ext <<_ACEOF
11602/* end confdefs.h. */
11603#include <stdlib.h>
11604#include <stdarg.h>
11605#include <string.h>
11606#include <float.h>
7a292a7a 11607
bec39cab
AC
11608int
11609main ()
11610{
7a292a7a 11611
bec39cab
AC
11612 ;
11613 return 0;
11614}
11615_ACEOF
11616rm -f conftest.$ac_objext
11617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11618 (eval $ac_compile) 2>conftest.er1
11619 ac_status=$?
11620 grep -v '^ *+' conftest.er1 >conftest.err
11621 rm -f conftest.er1
11622 cat conftest.err >&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } &&
b4e70030
JB
11625 { ac_try='test -z "$ac_c_werror_flag"
11626 || test ! -s conftest.err'
bec39cab
AC
11627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628 (eval $ac_try) 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; } &&
11632 { ac_try='test -s conftest.$ac_objext'
11633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634 (eval $ac_try) 2>&5
11635 ac_status=$?
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; }; then
11638 ac_cv_header_stdc=yes
c906108c 11639else
bec39cab
AC
11640 echo "$as_me: failed program was:" >&5
11641sed 's/^/| /' conftest.$ac_ext >&5
c906108c 11642
b4e70030 11643ac_cv_header_stdc=no
c906108c 11644fi
bec39cab 11645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11646
bec39cab
AC
11647if test $ac_cv_header_stdc = yes; then
11648 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11649 cat >conftest.$ac_ext <<_ACEOF
11650/* confdefs.h. */
11651_ACEOF
11652cat confdefs.h >>conftest.$ac_ext
11653cat >>conftest.$ac_ext <<_ACEOF
11654/* end confdefs.h. */
11655#include <string.h>
c906108c 11656
bec39cab
AC
11657_ACEOF
11658if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11659 $EGREP "memchr" >/dev/null 2>&1; then
11660 :
8bb2c122 11661else
bec39cab 11662 ac_cv_header_stdc=no
8bb2c122 11663fi
bec39cab
AC
11664rm -f conftest*
11665
c906108c
SS
11666fi
11667
bec39cab
AC
11668if test $ac_cv_header_stdc = yes; then
11669 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11670 cat >conftest.$ac_ext <<_ACEOF
11671/* confdefs.h. */
11672_ACEOF
11673cat confdefs.h >>conftest.$ac_ext
11674cat >>conftest.$ac_ext <<_ACEOF
11675/* end confdefs.h. */
11676#include <stdlib.h>
11677
11678_ACEOF
11679if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11680 $EGREP "free" >/dev/null 2>&1; then
11681 :
c906108c 11682else
bec39cab 11683 ac_cv_header_stdc=no
c906108c 11684fi
bec39cab
AC
11685rm -f conftest*
11686
c906108c
SS
11687fi
11688
bec39cab
AC
11689if test $ac_cv_header_stdc = yes; then
11690 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11691 if test "$cross_compiling" = yes; then
11692 :
c906108c 11693else
bec39cab
AC
11694 cat >conftest.$ac_ext <<_ACEOF
11695/* confdefs.h. */
11696_ACEOF
11697cat confdefs.h >>conftest.$ac_ext
11698cat >>conftest.$ac_ext <<_ACEOF
11699/* end confdefs.h. */
11700#include <ctype.h>
11701#if ((' ' & 0x0FF) == 0x020)
11702# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11703# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11704#else
11705# define ISLOWER(c) \
11706 (('a' <= (c) && (c) <= 'i') \
11707 || ('j' <= (c) && (c) <= 'r') \
11708 || ('s' <= (c) && (c) <= 'z'))
11709# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11710#endif
11711
11712#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11713int
11714main ()
11715{
11716 int i;
11717 for (i = 0; i < 256; i++)
11718 if (XOR (islower (i), ISLOWER (i))
11719 || toupper (i) != TOUPPER (i))
b4e70030
JB
11720 exit(2);
11721 exit (0);
bec39cab
AC
11722}
11723_ACEOF
11724rm -f conftest$ac_exeext
11725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11726 (eval $ac_link) 2>&5
11727 ac_status=$?
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11732 ac_status=$?
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; }; then
11735 :
11736else
11737 echo "$as_me: program exited with status $ac_status" >&5
11738echo "$as_me: failed program was:" >&5
11739sed 's/^/| /' conftest.$ac_ext >&5
11740
11741( exit $ac_status )
11742ac_cv_header_stdc=no
c906108c 11743fi
b4e70030 11744rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 11745fi
c906108c 11746fi
bec39cab 11747fi
b4e70030
JB
11748echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11749echo "${ECHO_T}$ac_cv_header_stdc" >&6
bec39cab 11750if test $ac_cv_header_stdc = yes; then
c906108c 11751
bec39cab
AC
11752cat >>confdefs.h <<\_ACEOF
11753#define STDC_HEADERS 1
11754_ACEOF
c906108c 11755
bec39cab 11756fi
8bb2c122 11757
bec39cab 11758
7cb9022a 11759for ac_header in nlist.h
bec39cab
AC
11760do
11761as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11762if eval "test \"\${$as_ac_Header+set}\" = set"; then
11763 echo "$as_me:$LINENO: checking for $ac_header" >&5
11764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11765if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11767fi
b4e70030
JB
11768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11769echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11770else
11771 # Is the header compilable?
b4e70030
JB
11772echo "$as_me:$LINENO: checking $ac_header usability" >&5
11773echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11774cat >conftest.$ac_ext <<_ACEOF
11775/* confdefs.h. */
11776_ACEOF
11777cat confdefs.h >>conftest.$ac_ext
11778cat >>conftest.$ac_ext <<_ACEOF
11779/* end confdefs.h. */
11780$ac_includes_default
11781#include <$ac_header>
11782_ACEOF
11783rm -f conftest.$ac_objext
11784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11785 (eval $ac_compile) 2>conftest.er1
11786 ac_status=$?
11787 grep -v '^ *+' conftest.er1 >conftest.err
11788 rm -f conftest.er1
11789 cat conftest.err >&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } &&
b4e70030
JB
11792 { ac_try='test -z "$ac_c_werror_flag"
11793 || test ! -s conftest.err'
bec39cab
AC
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; } &&
11799 { ac_try='test -s conftest.$ac_objext'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; }; then
11805 ac_header_compiler=yes
11806else
11807 echo "$as_me: failed program was:" >&5
11808sed 's/^/| /' conftest.$ac_ext >&5
11809
b4e70030 11810ac_header_compiler=no
bec39cab
AC
11811fi
11812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11813echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11814echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11815
11816# Is the header present?
b4e70030
JB
11817echo "$as_me:$LINENO: checking $ac_header presence" >&5
11818echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11819cat >conftest.$ac_ext <<_ACEOF
11820/* confdefs.h. */
11821_ACEOF
11822cat confdefs.h >>conftest.$ac_ext
11823cat >>conftest.$ac_ext <<_ACEOF
11824/* end confdefs.h. */
11825#include <$ac_header>
11826_ACEOF
11827if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11829 ac_status=$?
11830 grep -v '^ *+' conftest.er1 >conftest.err
11831 rm -f conftest.er1
11832 cat conftest.err >&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } >/dev/null; then
11835 if test -s conftest.err; then
11836 ac_cpp_err=$ac_c_preproc_warn_flag
11837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11838 else
11839 ac_cpp_err=
11840 fi
c906108c 11841else
bec39cab 11842 ac_cpp_err=yes
c906108c 11843fi
bec39cab
AC
11844if test -z "$ac_cpp_err"; then
11845 ac_header_preproc=yes
c906108c 11846else
bec39cab
AC
11847 echo "$as_me: failed program was:" >&5
11848sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 11849
bec39cab
AC
11850 ac_header_preproc=no
11851fi
11852rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11853echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11854echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 11855
bec39cab
AC
11856# So? What about this header?
11857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11858 yes:no: )
11859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11860echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11862echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11863 ac_header_preproc=yes
11864 ;;
11865 no:yes:* )
11866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11867echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11869echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11871echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11873echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11875echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11877echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11878 (
11879 cat <<\_ASBOX
11880## ------------------------------------------ ##
11881## Report this to the AC_PACKAGE_NAME lists. ##
11882## ------------------------------------------ ##
11883_ASBOX
11884 ) |
11885 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11886 ;;
11887esac
b4e70030
JB
11888echo "$as_me:$LINENO: checking for $ac_header" >&5
11889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11890if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11891 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 11892else
bec39cab 11893 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 11894fi
b4e70030
JB
11895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11896echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11897
95ca63c4 11898fi
bec39cab
AC
11899if test `eval echo '${'$as_ac_Header'}'` = yes; then
11900 cat >>confdefs.h <<_ACEOF
11901#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11902_ACEOF
11903
95ca63c4
CF
11904fi
11905
bec39cab 11906done
95ca63c4
CF
11907
11908
7cb9022a 11909for ac_header in link.h
bec39cab
AC
11910do
11911as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11912echo "$as_me:$LINENO: checking for $ac_header" >&5
11913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11914if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11915 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 11916else
7cb9022a 11917 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11918/* confdefs.h. */
11919_ACEOF
11920cat confdefs.h >>conftest.$ac_ext
11921cat >>conftest.$ac_ext <<_ACEOF
11922/* end confdefs.h. */
7cb9022a
MK
11923#if HAVE_SYS_TYPES_H
11924# include <sys/types.h>
11925#endif
11926#if HAVE_NLIST_H
11927# include <nlist.h>
11928#endif
11929
11930
bec39cab
AC
11931#include <$ac_header>
11932_ACEOF
11933rm -f conftest.$ac_objext
11934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11935 (eval $ac_compile) 2>conftest.er1
11936 ac_status=$?
11937 grep -v '^ *+' conftest.er1 >conftest.err
11938 rm -f conftest.er1
11939 cat conftest.err >&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } &&
b4e70030
JB
11942 { ac_try='test -z "$ac_c_werror_flag"
11943 || test ! -s conftest.err'
bec39cab
AC
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11946 ac_status=$?
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; } &&
11949 { ac_try='test -s conftest.$ac_objext'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; }; then
7cb9022a 11955 eval "$as_ac_Header=yes"
bec39cab
AC
11956else
11957 echo "$as_me: failed program was:" >&5
11958sed 's/^/| /' conftest.$ac_ext >&5
11959
b4e70030 11960eval "$as_ac_Header=no"
bec39cab
AC
11961fi
11962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 11963fi
b4e70030
JB
11964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11966if test `eval echo '${'$as_ac_Header'}'` = yes; then
11967 cat >>confdefs.h <<_ACEOF
11968#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11969_ACEOF
95ca63c4 11970
bec39cab 11971fi
95ca63c4 11972
bec39cab 11973done
95ca63c4 11974
c906108c 11975
7cb9022a 11976for ac_header in machine/reg.h
bec39cab
AC
11977do
11978as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11979if eval "test \"\${$as_ac_Header+set}\" = set"; then
11980 echo "$as_me:$LINENO: checking for $ac_header" >&5
11981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11982if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11984fi
b4e70030
JB
11985echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11986echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11987else
11988 # Is the header compilable?
b4e70030
JB
11989echo "$as_me:$LINENO: checking $ac_header usability" >&5
11990echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11991cat >conftest.$ac_ext <<_ACEOF
11992/* confdefs.h. */
11993_ACEOF
11994cat confdefs.h >>conftest.$ac_ext
11995cat >>conftest.$ac_ext <<_ACEOF
11996/* end confdefs.h. */
11997$ac_includes_default
11998#include <$ac_header>
11999_ACEOF
12000rm -f conftest.$ac_objext
12001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12002 (eval $ac_compile) 2>conftest.er1
12003 ac_status=$?
12004 grep -v '^ *+' conftest.er1 >conftest.err
12005 rm -f conftest.er1
12006 cat conftest.err >&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } &&
b4e70030
JB
12009 { ac_try='test -z "$ac_c_werror_flag"
12010 || test ! -s conftest.err'
bec39cab
AC
12011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12012 (eval $ac_try) 2>&5
12013 ac_status=$?
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; } &&
12016 { ac_try='test -s conftest.$ac_objext'
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12022 ac_header_compiler=yes
12023else
12024 echo "$as_me: failed program was:" >&5
12025sed 's/^/| /' conftest.$ac_ext >&5
12026
b4e70030 12027ac_header_compiler=no
bec39cab
AC
12028fi
12029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12030echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12031echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12032
12033# Is the header present?
b4e70030
JB
12034echo "$as_me:$LINENO: checking $ac_header presence" >&5
12035echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12036cat >conftest.$ac_ext <<_ACEOF
12037/* confdefs.h. */
12038_ACEOF
12039cat confdefs.h >>conftest.$ac_ext
12040cat >>conftest.$ac_ext <<_ACEOF
12041/* end confdefs.h. */
12042#include <$ac_header>
12043_ACEOF
12044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12046 ac_status=$?
12047 grep -v '^ *+' conftest.er1 >conftest.err
12048 rm -f conftest.er1
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } >/dev/null; then
12052 if test -s conftest.err; then
12053 ac_cpp_err=$ac_c_preproc_warn_flag
12054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12055 else
12056 ac_cpp_err=
12057 fi
75c6e08a 12058else
bec39cab 12059 ac_cpp_err=yes
75c6e08a 12060fi
bec39cab
AC
12061if test -z "$ac_cpp_err"; then
12062 ac_header_preproc=yes
12063else
12064 echo "$as_me: failed program was:" >&5
12065sed 's/^/| /' conftest.$ac_ext >&5
12066
12067 ac_header_preproc=no
75c6e08a 12068fi
bec39cab 12069rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12070echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12071echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12072
12073# So? What about this header?
12074case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12075 yes:no: )
12076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12077echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12079echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12080 ac_header_preproc=yes
12081 ;;
12082 no:yes:* )
12083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12084echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12086echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12088echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12090echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12092echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12094echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12095 (
12096 cat <<\_ASBOX
12097## ------------------------------------------ ##
12098## Report this to the AC_PACKAGE_NAME lists. ##
12099## ------------------------------------------ ##
12100_ASBOX
12101 ) |
12102 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12103 ;;
12104esac
b4e70030
JB
12105echo "$as_me:$LINENO: checking for $ac_header" >&5
12106echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12107if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12108 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 12109else
bec39cab
AC
12110 eval "$as_ac_Header=\$ac_header_preproc"
12111fi
b4e70030
JB
12112echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12113echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12114
75c6e08a 12115fi
bec39cab
AC
12116if test `eval echo '${'$as_ac_Header'}'` = yes; then
12117 cat >>confdefs.h <<_ACEOF
12118#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12119_ACEOF
75c6e08a 12120
bec39cab 12121fi
75c6e08a 12122
bec39cab 12123done
75c6e08a
MK
12124
12125
9a156167 12126
bec39cab
AC
12127for ac_header in poll.h sys/poll.h
12128do
12129as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12130if eval "test \"\${$as_ac_Header+set}\" = set"; then
12131 echo "$as_me:$LINENO: checking for $ac_header" >&5
12132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12133if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
12135fi
b4e70030
JB
12136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12137echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12138else
12139 # Is the header compilable?
b4e70030
JB
12140echo "$as_me:$LINENO: checking $ac_header usability" >&5
12141echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12142cat >conftest.$ac_ext <<_ACEOF
12143/* confdefs.h. */
12144_ACEOF
12145cat confdefs.h >>conftest.$ac_ext
12146cat >>conftest.$ac_ext <<_ACEOF
12147/* end confdefs.h. */
12148$ac_includes_default
12149#include <$ac_header>
12150_ACEOF
12151rm -f conftest.$ac_objext
12152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12153 (eval $ac_compile) 2>conftest.er1
12154 ac_status=$?
12155 grep -v '^ *+' conftest.er1 >conftest.err
12156 rm -f conftest.er1
12157 cat conftest.err >&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } &&
b4e70030
JB
12160 { ac_try='test -z "$ac_c_werror_flag"
12161 || test ! -s conftest.err'
bec39cab
AC
12162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163 (eval $ac_try) 2>&5
12164 ac_status=$?
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; } &&
12167 { ac_try='test -s conftest.$ac_objext'
12168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169 (eval $ac_try) 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; }; then
12173 ac_header_compiler=yes
12174else
12175 echo "$as_me: failed program was:" >&5
12176sed 's/^/| /' conftest.$ac_ext >&5
12177
b4e70030 12178ac_header_compiler=no
bec39cab
AC
12179fi
12180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12181echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12182echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12183
12184# Is the header present?
b4e70030
JB
12185echo "$as_me:$LINENO: checking $ac_header presence" >&5
12186echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12187cat >conftest.$ac_ext <<_ACEOF
12188/* confdefs.h. */
12189_ACEOF
12190cat confdefs.h >>conftest.$ac_ext
12191cat >>conftest.$ac_ext <<_ACEOF
12192/* end confdefs.h. */
12193#include <$ac_header>
12194_ACEOF
12195if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12197 ac_status=$?
12198 grep -v '^ *+' conftest.er1 >conftest.err
12199 rm -f conftest.er1
12200 cat conftest.err >&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } >/dev/null; then
12203 if test -s conftest.err; then
12204 ac_cpp_err=$ac_c_preproc_warn_flag
12205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12206 else
12207 ac_cpp_err=
12208 fi
9a156167 12209else
bec39cab 12210 ac_cpp_err=yes
9a156167 12211fi
bec39cab
AC
12212if test -z "$ac_cpp_err"; then
12213 ac_header_preproc=yes
12214else
12215 echo "$as_me: failed program was:" >&5
12216sed 's/^/| /' conftest.$ac_ext >&5
9a156167 12217
bec39cab 12218 ac_header_preproc=no
9a156167 12219fi
bec39cab 12220rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12221echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12222echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 12223
bec39cab
AC
12224# So? What about this header?
12225case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12226 yes:no: )
12227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12228echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12230echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12231 ac_header_preproc=yes
12232 ;;
12233 no:yes:* )
12234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12235echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12237echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12239echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12241echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12243echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12245echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12246 (
12247 cat <<\_ASBOX
12248## ------------------------------------------ ##
12249## Report this to the AC_PACKAGE_NAME lists. ##
12250## ------------------------------------------ ##
12251_ASBOX
12252 ) |
12253 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12254 ;;
12255esac
b4e70030
JB
12256echo "$as_me:$LINENO: checking for $ac_header" >&5
12257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12258if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12259 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 12260else
bec39cab 12261 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 12262fi
b4e70030
JB
12263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 12265
bec39cab
AC
12266fi
12267if test `eval echo '${'$as_ac_Header'}'` = yes; then
12268 cat >>confdefs.h <<_ACEOF
12269#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12270_ACEOF
9a156167 12271
bec39cab 12272fi
9a156167 12273
bec39cab 12274done
9a156167 12275
9a156167 12276
9a156167 12277
bec39cab
AC
12278
12279for ac_header in proc_service.h thread_db.h gnu/libc-version.h
12280do
12281as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12282if eval "test \"\${$as_ac_Header+set}\" = set"; then
12283 echo "$as_me:$LINENO: checking for $ac_header" >&5
12284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12285if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12287fi
b4e70030
JB
12288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12290else
12291 # Is the header compilable?
b4e70030
JB
12292echo "$as_me:$LINENO: checking $ac_header usability" >&5
12293echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12294cat >conftest.$ac_ext <<_ACEOF
12295/* confdefs.h. */
12296_ACEOF
12297cat confdefs.h >>conftest.$ac_ext
12298cat >>conftest.$ac_ext <<_ACEOF
436868fb
DP
12299/* end confdefs.h. */
12300$ac_includes_default
12301#include <$ac_header>
12302_ACEOF
12303rm -f conftest.$ac_objext
12304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12305 (eval $ac_compile) 2>conftest.er1
12306 ac_status=$?
12307 grep -v '^ *+' conftest.er1 >conftest.err
12308 rm -f conftest.er1
12309 cat conftest.err >&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } &&
12312 { ac_try='test -z "$ac_c_werror_flag"
12313 || test ! -s conftest.err'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12316 ac_status=$?
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; } &&
12319 { ac_try='test -s conftest.$ac_objext'
12320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321 (eval $ac_try) 2>&5
12322 ac_status=$?
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; }; then
12325 ac_header_compiler=yes
12326else
12327 echo "$as_me: failed program was:" >&5
12328sed 's/^/| /' conftest.$ac_ext >&5
12329
12330ac_header_compiler=no
12331fi
12332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12333echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12334echo "${ECHO_T}$ac_header_compiler" >&6
12335
12336# Is the header present?
12337echo "$as_me:$LINENO: checking $ac_header presence" >&5
12338echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12339cat >conftest.$ac_ext <<_ACEOF
12340/* confdefs.h. */
12341_ACEOF
12342cat confdefs.h >>conftest.$ac_ext
12343cat >>conftest.$ac_ext <<_ACEOF
12344/* end confdefs.h. */
12345#include <$ac_header>
12346_ACEOF
12347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12349 ac_status=$?
12350 grep -v '^ *+' conftest.er1 >conftest.err
12351 rm -f conftest.er1
12352 cat conftest.err >&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } >/dev/null; then
12355 if test -s conftest.err; then
12356 ac_cpp_err=$ac_c_preproc_warn_flag
12357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12358 else
12359 ac_cpp_err=
12360 fi
12361else
12362 ac_cpp_err=yes
12363fi
12364if test -z "$ac_cpp_err"; then
12365 ac_header_preproc=yes
12366else
12367 echo "$as_me: failed program was:" >&5
12368sed 's/^/| /' conftest.$ac_ext >&5
12369
12370 ac_header_preproc=no
12371fi
12372rm -f conftest.err conftest.$ac_ext
12373echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12374echo "${ECHO_T}$ac_header_preproc" >&6
12375
12376# So? What about this header?
12377case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12378 yes:no: )
12379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12380echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12382echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12383 ac_header_preproc=yes
12384 ;;
12385 no:yes:* )
12386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12387echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12389echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12391echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12393echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12395echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12397echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12398 (
12399 cat <<\_ASBOX
12400## ------------------------------------------ ##
12401## Report this to the AC_PACKAGE_NAME lists. ##
12402## ------------------------------------------ ##
12403_ASBOX
12404 ) |
12405 sed "s/^/$as_me: WARNING: /" >&2
12406 ;;
12407esac
12408echo "$as_me:$LINENO: checking for $ac_header" >&5
12409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12410if eval "test \"\${$as_ac_Header+set}\" = set"; then
12411 echo $ECHO_N "(cached) $ECHO_C" >&6
12412else
12413 eval "$as_ac_Header=\$ac_header_preproc"
12414fi
12415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12416echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12417
12418fi
12419if test `eval echo '${'$as_ac_Header'}'` = yes; then
12420 cat >>confdefs.h <<_ACEOF
12421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12422_ACEOF
12423
12424fi
12425
12426done
12427
12428
12429for ac_header in signal.h
12430do
12431as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12432if eval "test \"\${$as_ac_Header+set}\" = set"; then
12433 echo "$as_me:$LINENO: checking for $ac_header" >&5
12434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12435if eval "test \"\${$as_ac_Header+set}\" = set"; then
12436 echo $ECHO_N "(cached) $ECHO_C" >&6
12437fi
12438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12439echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12440else
12441 # Is the header compilable?
12442echo "$as_me:$LINENO: checking $ac_header usability" >&5
12443echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12444cat >conftest.$ac_ext <<_ACEOF
12445/* confdefs.h. */
12446_ACEOF
12447cat confdefs.h >>conftest.$ac_ext
12448cat >>conftest.$ac_ext <<_ACEOF
bec39cab
AC
12449/* end confdefs.h. */
12450$ac_includes_default
12451#include <$ac_header>
12452_ACEOF
12453rm -f conftest.$ac_objext
12454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12455 (eval $ac_compile) 2>conftest.er1
12456 ac_status=$?
12457 grep -v '^ *+' conftest.er1 >conftest.err
12458 rm -f conftest.er1
12459 cat conftest.err >&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } &&
b4e70030
JB
12462 { ac_try='test -z "$ac_c_werror_flag"
12463 || test ! -s conftest.err'
bec39cab
AC
12464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465 (eval $ac_try) 2>&5
12466 ac_status=$?
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; } &&
12469 { ac_try='test -s conftest.$ac_objext'
12470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12472 ac_status=$?
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
12475 ac_header_compiler=yes
12476else
12477 echo "$as_me: failed program was:" >&5
12478sed 's/^/| /' conftest.$ac_ext >&5
12479
b4e70030 12480ac_header_compiler=no
bec39cab
AC
12481fi
12482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12483echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12484echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12485
12486# Is the header present?
b4e70030
JB
12487echo "$as_me:$LINENO: checking $ac_header presence" >&5
12488echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12489cat >conftest.$ac_ext <<_ACEOF
12490/* confdefs.h. */
12491_ACEOF
12492cat confdefs.h >>conftest.$ac_ext
12493cat >>conftest.$ac_ext <<_ACEOF
12494/* end confdefs.h. */
12495#include <$ac_header>
12496_ACEOF
12497if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12499 ac_status=$?
12500 grep -v '^ *+' conftest.er1 >conftest.err
12501 rm -f conftest.er1
12502 cat conftest.err >&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } >/dev/null; then
12505 if test -s conftest.err; then
12506 ac_cpp_err=$ac_c_preproc_warn_flag
12507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12508 else
12509 ac_cpp_err=
12510 fi
9a156167 12511else
bec39cab 12512 ac_cpp_err=yes
9a156167 12513fi
bec39cab
AC
12514if test -z "$ac_cpp_err"; then
12515 ac_header_preproc=yes
12516else
12517 echo "$as_me: failed program was:" >&5
12518sed 's/^/| /' conftest.$ac_ext >&5
9a156167 12519
bec39cab 12520 ac_header_preproc=no
9a156167 12521fi
bec39cab 12522rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12523echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12524echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 12525
bec39cab
AC
12526# So? What about this header?
12527case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12528 yes:no: )
12529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12530echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12532echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12533 ac_header_preproc=yes
12534 ;;
12535 no:yes:* )
12536 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12537echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12538 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12539echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12540 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12541echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12542 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12543echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12545echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12546 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12547echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12548 (
12549 cat <<\_ASBOX
12550## ------------------------------------------ ##
12551## Report this to the AC_PACKAGE_NAME lists. ##
12552## ------------------------------------------ ##
12553_ASBOX
12554 ) |
12555 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12556 ;;
12557esac
b4e70030
JB
12558echo "$as_me:$LINENO: checking for $ac_header" >&5
12559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12560if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12561 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 12562else
bec39cab 12563 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 12564fi
b4e70030
JB
12565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12566echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
12567
12568fi
bec39cab
AC
12569if test `eval echo '${'$as_ac_Header'}'` = yes; then
12570 cat >>confdefs.h <<_ACEOF
12571#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12572_ACEOF
9a156167 12573
bec39cab
AC
12574fi
12575
12576done
9a156167 12577
c890192f 12578
bec39cab
AC
12579for ac_header in stddef.h
12580do
12581as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12582if eval "test \"\${$as_ac_Header+set}\" = set"; then
12583 echo "$as_me:$LINENO: checking for $ac_header" >&5
12584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12585if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12587fi
b4e70030
JB
12588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12589echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12590else
12591 # Is the header compilable?
b4e70030
JB
12592echo "$as_me:$LINENO: checking $ac_header usability" >&5
12593echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12594cat >conftest.$ac_ext <<_ACEOF
12595/* confdefs.h. */
12596_ACEOF
12597cat confdefs.h >>conftest.$ac_ext
12598cat >>conftest.$ac_ext <<_ACEOF
12599/* end confdefs.h. */
12600$ac_includes_default
12601#include <$ac_header>
12602_ACEOF
12603rm -f conftest.$ac_objext
12604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12605 (eval $ac_compile) 2>conftest.er1
12606 ac_status=$?
12607 grep -v '^ *+' conftest.er1 >conftest.err
12608 rm -f conftest.er1
12609 cat conftest.err >&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } &&
b4e70030
JB
12612 { ac_try='test -z "$ac_c_werror_flag"
12613 || test ! -s conftest.err'
bec39cab
AC
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12616 ac_status=$?
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; } &&
12619 { ac_try='test -s conftest.$ac_objext'
12620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12622 ac_status=$?
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; }; then
12625 ac_header_compiler=yes
12626else
12627 echo "$as_me: failed program was:" >&5
12628sed 's/^/| /' conftest.$ac_ext >&5
12629
b4e70030 12630ac_header_compiler=no
bec39cab
AC
12631fi
12632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12633echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12634echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12635
12636# Is the header present?
b4e70030
JB
12637echo "$as_me:$LINENO: checking $ac_header presence" >&5
12638echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12639cat >conftest.$ac_ext <<_ACEOF
12640/* confdefs.h. */
12641_ACEOF
12642cat confdefs.h >>conftest.$ac_ext
12643cat >>conftest.$ac_ext <<_ACEOF
12644/* end confdefs.h. */
12645#include <$ac_header>
12646_ACEOF
12647if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12649 ac_status=$?
12650 grep -v '^ *+' conftest.er1 >conftest.err
12651 rm -f conftest.er1
12652 cat conftest.err >&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } >/dev/null; then
12655 if test -s conftest.err; then
12656 ac_cpp_err=$ac_c_preproc_warn_flag
12657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12658 else
12659 ac_cpp_err=
12660 fi
c890192f 12661else
bec39cab
AC
12662 ac_cpp_err=yes
12663fi
12664if test -z "$ac_cpp_err"; then
12665 ac_header_preproc=yes
c890192f 12666else
bec39cab
AC
12667 echo "$as_me: failed program was:" >&5
12668sed 's/^/| /' conftest.$ac_ext >&5
12669
12670 ac_header_preproc=no
c890192f 12671fi
bec39cab 12672rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12673echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12674echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12675
12676# So? What about this header?
12677case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12678 yes:no: )
12679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12680echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12682echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12683 ac_header_preproc=yes
12684 ;;
12685 no:yes:* )
12686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12687echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12689echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12691echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12693echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12695echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12697echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12698 (
12699 cat <<\_ASBOX
12700## ------------------------------------------ ##
12701## Report this to the AC_PACKAGE_NAME lists. ##
12702## ------------------------------------------ ##
12703_ASBOX
12704 ) |
12705 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12706 ;;
12707esac
b4e70030
JB
12708echo "$as_me:$LINENO: checking for $ac_header" >&5
12709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12710if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12711 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 12712else
bec39cab 12713 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 12714fi
b4e70030
JB
12715echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12716echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12717
c890192f 12718fi
bec39cab
AC
12719if test `eval echo '${'$as_ac_Header'}'` = yes; then
12720 cat >>confdefs.h <<_ACEOF
12721#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12722_ACEOF
c890192f 12723
c890192f
MK
12724fi
12725
bec39cab 12726done
9a156167 12727
bec39cab
AC
12728
12729for ac_header in stdlib.h
12730do
12731as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12732if eval "test \"\${$as_ac_Header+set}\" = set"; then
12733 echo "$as_me:$LINENO: checking for $ac_header" >&5
12734echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12735if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12737fi
b4e70030
JB
12738echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12739echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12740else
12741 # Is the header compilable?
b4e70030
JB
12742echo "$as_me:$LINENO: checking $ac_header usability" >&5
12743echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12744cat >conftest.$ac_ext <<_ACEOF
12745/* confdefs.h. */
12746_ACEOF
12747cat confdefs.h >>conftest.$ac_ext
12748cat >>conftest.$ac_ext <<_ACEOF
12749/* end confdefs.h. */
12750$ac_includes_default
12751#include <$ac_header>
12752_ACEOF
12753rm -f conftest.$ac_objext
12754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12755 (eval $ac_compile) 2>conftest.er1
12756 ac_status=$?
12757 grep -v '^ *+' conftest.er1 >conftest.err
12758 rm -f conftest.er1
12759 cat conftest.err >&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } &&
b4e70030
JB
12762 { ac_try='test -z "$ac_c_werror_flag"
12763 || test ! -s conftest.err'
bec39cab
AC
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; } &&
12769 { ac_try='test -s conftest.$ac_objext'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 ac_header_compiler=yes
12776else
12777 echo "$as_me: failed program was:" >&5
12778sed 's/^/| /' conftest.$ac_ext >&5
12779
b4e70030 12780ac_header_compiler=no
bec39cab
AC
12781fi
12782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12783echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12784echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12785
12786# Is the header present?
b4e70030
JB
12787echo "$as_me:$LINENO: checking $ac_header presence" >&5
12788echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12789cat >conftest.$ac_ext <<_ACEOF
12790/* confdefs.h. */
12791_ACEOF
12792cat confdefs.h >>conftest.$ac_ext
12793cat >>conftest.$ac_ext <<_ACEOF
12794/* end confdefs.h. */
12795#include <$ac_header>
12796_ACEOF
12797if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12799 ac_status=$?
12800 grep -v '^ *+' conftest.er1 >conftest.err
12801 rm -f conftest.er1
12802 cat conftest.err >&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); } >/dev/null; then
12805 if test -s conftest.err; then
12806 ac_cpp_err=$ac_c_preproc_warn_flag
12807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12808 else
12809 ac_cpp_err=
12810 fi
9a156167 12811else
bec39cab
AC
12812 ac_cpp_err=yes
12813fi
12814if test -z "$ac_cpp_err"; then
12815 ac_header_preproc=yes
9a156167 12816else
bec39cab
AC
12817 echo "$as_me: failed program was:" >&5
12818sed 's/^/| /' conftest.$ac_ext >&5
12819
12820 ac_header_preproc=no
9a156167 12821fi
bec39cab 12822rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12823echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12824echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12825
12826# So? What about this header?
12827case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12828 yes:no: )
12829 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12830echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12832echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12833 ac_header_preproc=yes
12834 ;;
12835 no:yes:* )
12836 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12837echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12838 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12839echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12840 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12841echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12842 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12843echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12845echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12846 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12847echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12848 (
12849 cat <<\_ASBOX
12850## ------------------------------------------ ##
12851## Report this to the AC_PACKAGE_NAME lists. ##
12852## ------------------------------------------ ##
12853_ASBOX
12854 ) |
12855 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12856 ;;
12857esac
b4e70030
JB
12858echo "$as_me:$LINENO: checking for $ac_header" >&5
12859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12860if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12861 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 12862else
bec39cab 12863 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 12864fi
b4e70030
JB
12865echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12866echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12867
9a156167 12868fi
bec39cab
AC
12869if test `eval echo '${'$as_ac_Header'}'` = yes; then
12870 cat >>confdefs.h <<_ACEOF
12871#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12872_ACEOF
9a156167 12873
9a156167
MK
12874fi
12875
bec39cab
AC
12876done
12877
06825bd1 12878
06825bd1 12879
bec39cab
AC
12880
12881for ac_header in string.h memory.h strings.h
12882do
12883as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12884if eval "test \"\${$as_ac_Header+set}\" = set"; then
12885 echo "$as_me:$LINENO: checking for $ac_header" >&5
12886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12887if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
12889fi
b4e70030
JB
12890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12891echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12892else
12893 # Is the header compilable?
b4e70030
JB
12894echo "$as_me:$LINENO: checking $ac_header usability" >&5
12895echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12896cat >conftest.$ac_ext <<_ACEOF
12897/* confdefs.h. */
12898_ACEOF
12899cat confdefs.h >>conftest.$ac_ext
12900cat >>conftest.$ac_ext <<_ACEOF
12901/* end confdefs.h. */
12902$ac_includes_default
12903#include <$ac_header>
12904_ACEOF
12905rm -f conftest.$ac_objext
12906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12907 (eval $ac_compile) 2>conftest.er1
12908 ac_status=$?
12909 grep -v '^ *+' conftest.er1 >conftest.err
12910 rm -f conftest.er1
12911 cat conftest.err >&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } &&
b4e70030
JB
12914 { ac_try='test -z "$ac_c_werror_flag"
12915 || test ! -s conftest.err'
bec39cab
AC
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; } &&
12921 { ac_try='test -s conftest.$ac_objext'
12922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923 (eval $ac_try) 2>&5
12924 ac_status=$?
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }; }; then
12927 ac_header_compiler=yes
12928else
12929 echo "$as_me: failed program was:" >&5
12930sed 's/^/| /' conftest.$ac_ext >&5
12931
b4e70030 12932ac_header_compiler=no
bec39cab
AC
12933fi
12934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12935echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12936echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12937
12938# Is the header present?
b4e70030
JB
12939echo "$as_me:$LINENO: checking $ac_header presence" >&5
12940echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12941cat >conftest.$ac_ext <<_ACEOF
12942/* confdefs.h. */
12943_ACEOF
12944cat confdefs.h >>conftest.$ac_ext
12945cat >>conftest.$ac_ext <<_ACEOF
12946/* end confdefs.h. */
12947#include <$ac_header>
12948_ACEOF
12949if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12951 ac_status=$?
12952 grep -v '^ *+' conftest.er1 >conftest.err
12953 rm -f conftest.er1
12954 cat conftest.err >&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } >/dev/null; then
12957 if test -s conftest.err; then
12958 ac_cpp_err=$ac_c_preproc_warn_flag
12959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12960 else
12961 ac_cpp_err=
12962 fi
06825bd1 12963else
bec39cab
AC
12964 ac_cpp_err=yes
12965fi
12966if test -z "$ac_cpp_err"; then
12967 ac_header_preproc=yes
06825bd1 12968else
bec39cab
AC
12969 echo "$as_me: failed program was:" >&5
12970sed 's/^/| /' conftest.$ac_ext >&5
12971
12972 ac_header_preproc=no
06825bd1 12973fi
bec39cab 12974rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12975echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12976echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12977
12978# So? What about this header?
12979case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12980 yes:no: )
12981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12982echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12984echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12985 ac_header_preproc=yes
12986 ;;
12987 no:yes:* )
12988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12989echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12991echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12992 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12993echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12994 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12995echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12997echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12998 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12999echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13000 (
13001 cat <<\_ASBOX
13002## ------------------------------------------ ##
13003## Report this to the AC_PACKAGE_NAME lists. ##
13004## ------------------------------------------ ##
13005_ASBOX
13006 ) |
13007 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13008 ;;
13009esac
b4e70030
JB
13010echo "$as_me:$LINENO: checking for $ac_header" >&5
13011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13012if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13013 echo $ECHO_N "(cached) $ECHO_C" >&6
13014else
13015 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 13016fi
b4e70030
JB
13017echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13018echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 13019
06825bd1 13020fi
bec39cab
AC
13021if test `eval echo '${'$as_ac_Header'}'` = yes; then
13022 cat >>confdefs.h <<_ACEOF
13023#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13024_ACEOF
06825bd1 13025
06825bd1
MK
13026fi
13027
bec39cab 13028done
5ee754fc 13029
bec39cab
AC
13030
13031for ac_header in sys/fault.h
5ee754fc 13032do
bec39cab 13033as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13034if eval "test \"\${$as_ac_Header+set}\" = set"; then
13035 echo "$as_me:$LINENO: checking for $ac_header" >&5
13036echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13037if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13039fi
b4e70030
JB
13040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13041echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13042else
13043 # Is the header compilable?
b4e70030
JB
13044echo "$as_me:$LINENO: checking $ac_header usability" >&5
13045echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13046cat >conftest.$ac_ext <<_ACEOF
13047/* confdefs.h. */
13048_ACEOF
13049cat confdefs.h >>conftest.$ac_ext
13050cat >>conftest.$ac_ext <<_ACEOF
13051/* end confdefs.h. */
13052$ac_includes_default
13053#include <$ac_header>
13054_ACEOF
13055rm -f conftest.$ac_objext
13056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13057 (eval $ac_compile) 2>conftest.er1
13058 ac_status=$?
13059 grep -v '^ *+' conftest.er1 >conftest.err
13060 rm -f conftest.er1
13061 cat conftest.err >&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } &&
b4e70030
JB
13064 { ac_try='test -z "$ac_c_werror_flag"
13065 || test ! -s conftest.err'
bec39cab
AC
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13068 ac_status=$?
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; } &&
13071 { ac_try='test -s conftest.$ac_objext'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13074 ac_status=$?
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; }; then
13077 ac_header_compiler=yes
13078else
13079 echo "$as_me: failed program was:" >&5
13080sed 's/^/| /' conftest.$ac_ext >&5
13081
b4e70030 13082ac_header_compiler=no
bec39cab
AC
13083fi
13084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13085echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13086echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13087
13088# Is the header present?
b4e70030
JB
13089echo "$as_me:$LINENO: checking $ac_header presence" >&5
13090echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13091cat >conftest.$ac_ext <<_ACEOF
13092/* confdefs.h. */
13093_ACEOF
13094cat confdefs.h >>conftest.$ac_ext
13095cat >>conftest.$ac_ext <<_ACEOF
13096/* end confdefs.h. */
13097#include <$ac_header>
13098_ACEOF
13099if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13101 ac_status=$?
13102 grep -v '^ *+' conftest.er1 >conftest.err
13103 rm -f conftest.er1
13104 cat conftest.err >&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } >/dev/null; then
13107 if test -s conftest.err; then
13108 ac_cpp_err=$ac_c_preproc_warn_flag
13109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13110 else
13111 ac_cpp_err=
13112 fi
5ee754fc 13113else
bec39cab 13114 ac_cpp_err=yes
5ee754fc 13115fi
bec39cab
AC
13116if test -z "$ac_cpp_err"; then
13117 ac_header_preproc=yes
13118else
13119 echo "$as_me: failed program was:" >&5
13120sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13121
bec39cab 13122 ac_header_preproc=no
5ee754fc 13123fi
bec39cab 13124rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13125echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13126echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
13127
13128# So? What about this header?
13129case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13130 yes:no: )
13131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13132echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13134echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13135 ac_header_preproc=yes
13136 ;;
13137 no:yes:* )
13138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13139echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13141echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13143echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13145echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13147echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13149echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13150 (
13151 cat <<\_ASBOX
13152## ------------------------------------------ ##
13153## Report this to the AC_PACKAGE_NAME lists. ##
13154## ------------------------------------------ ##
13155_ASBOX
13156 ) |
13157 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13158 ;;
13159esac
b4e70030
JB
13160echo "$as_me:$LINENO: checking for $ac_header" >&5
13161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13162if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13163 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 13164else
bec39cab 13165 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 13166fi
b4e70030
JB
13167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13168echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 13169
5ee754fc 13170fi
bec39cab
AC
13171if test `eval echo '${'$as_ac_Header'}'` = yes; then
13172 cat >>confdefs.h <<_ACEOF
13173#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13174_ACEOF
c906108c 13175
5ee754fc 13176fi
bec39cab
AC
13177
13178done
13179
13180
13181for ac_header in sys/file.h
13182do
13183as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13184if eval "test \"\${$as_ac_Header+set}\" = set"; then
13185 echo "$as_me:$LINENO: checking for $ac_header" >&5
13186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13187if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13189fi
b4e70030
JB
13190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13191echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13192else
13193 # Is the header compilable?
b4e70030
JB
13194echo "$as_me:$LINENO: checking $ac_header usability" >&5
13195echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13196cat >conftest.$ac_ext <<_ACEOF
13197/* confdefs.h. */
13198_ACEOF
13199cat confdefs.h >>conftest.$ac_ext
13200cat >>conftest.$ac_ext <<_ACEOF
13201/* end confdefs.h. */
13202$ac_includes_default
13203#include <$ac_header>
13204_ACEOF
13205rm -f conftest.$ac_objext
13206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13207 (eval $ac_compile) 2>conftest.er1
13208 ac_status=$?
13209 grep -v '^ *+' conftest.er1 >conftest.err
13210 rm -f conftest.er1
13211 cat conftest.err >&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); } &&
b4e70030
JB
13214 { ac_try='test -z "$ac_c_werror_flag"
13215 || test ! -s conftest.err'
bec39cab
AC
13216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13217 (eval $ac_try) 2>&5
13218 ac_status=$?
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); }; } &&
13221 { ac_try='test -s conftest.$ac_objext'
13222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13223 (eval $ac_try) 2>&5
13224 ac_status=$?
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13227 ac_header_compiler=yes
13228else
13229 echo "$as_me: failed program was:" >&5
13230sed 's/^/| /' conftest.$ac_ext >&5
13231
b4e70030 13232ac_header_compiler=no
bec39cab
AC
13233fi
13234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13235echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13236echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13237
13238# Is the header present?
b4e70030
JB
13239echo "$as_me:$LINENO: checking $ac_header presence" >&5
13240echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13241cat >conftest.$ac_ext <<_ACEOF
13242/* confdefs.h. */
13243_ACEOF
13244cat confdefs.h >>conftest.$ac_ext
13245cat >>conftest.$ac_ext <<_ACEOF
13246/* end confdefs.h. */
13247#include <$ac_header>
13248_ACEOF
13249if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13251 ac_status=$?
13252 grep -v '^ *+' conftest.er1 >conftest.err
13253 rm -f conftest.er1
13254 cat conftest.err >&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); } >/dev/null; then
13257 if test -s conftest.err; then
13258 ac_cpp_err=$ac_c_preproc_warn_flag
13259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13260 else
13261 ac_cpp_err=
13262 fi
5ee754fc 13263else
bec39cab 13264 ac_cpp_err=yes
5ee754fc 13265fi
bec39cab
AC
13266if test -z "$ac_cpp_err"; then
13267 ac_header_preproc=yes
13268else
13269 echo "$as_me: failed program was:" >&5
13270sed 's/^/| /' conftest.$ac_ext >&5
c906108c 13271
bec39cab 13272 ac_header_preproc=no
5ee754fc 13273fi
bec39cab 13274rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13275echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13276echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 13277
bec39cab
AC
13278# So? What about this header?
13279case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13280 yes:no: )
13281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13282echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13284echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13285 ac_header_preproc=yes
13286 ;;
13287 no:yes:* )
13288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13289echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13291echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13293echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13295echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13297echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13299echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13300 (
13301 cat <<\_ASBOX
13302## ------------------------------------------ ##
13303## Report this to the AC_PACKAGE_NAME lists. ##
13304## ------------------------------------------ ##
13305_ASBOX
13306 ) |
13307 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13308 ;;
13309esac
b4e70030
JB
13310echo "$as_me:$LINENO: checking for $ac_header" >&5
13311echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13312if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13313 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 13314else
bec39cab
AC
13315 eval "$as_ac_Header=\$ac_header_preproc"
13316fi
b4e70030
JB
13317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13318echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 13319
bec39cab
AC
13320fi
13321if test `eval echo '${'$as_ac_Header'}'` = yes; then
13322 cat >>confdefs.h <<_ACEOF
13323#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13324_ACEOF
5ee754fc 13325
bec39cab 13326fi
5ee754fc 13327
bec39cab 13328done
5ee754fc 13329
5ee754fc 13330
bec39cab
AC
13331for ac_header in sys/filio.h
13332do
13333as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13334if eval "test \"\${$as_ac_Header+set}\" = set"; then
13335 echo "$as_me:$LINENO: checking for $ac_header" >&5
13336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13337if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13338 echo $ECHO_N "(cached) $ECHO_C" >&6
13339fi
b4e70030
JB
13340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13341echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13342else
13343 # Is the header compilable?
b4e70030
JB
13344echo "$as_me:$LINENO: checking $ac_header usability" >&5
13345echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13346cat >conftest.$ac_ext <<_ACEOF
13347/* confdefs.h. */
13348_ACEOF
13349cat confdefs.h >>conftest.$ac_ext
13350cat >>conftest.$ac_ext <<_ACEOF
13351/* end confdefs.h. */
13352$ac_includes_default
13353#include <$ac_header>
13354_ACEOF
13355rm -f conftest.$ac_objext
13356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13357 (eval $ac_compile) 2>conftest.er1
13358 ac_status=$?
13359 grep -v '^ *+' conftest.er1 >conftest.err
13360 rm -f conftest.er1
13361 cat conftest.err >&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); } &&
b4e70030
JB
13364 { ac_try='test -z "$ac_c_werror_flag"
13365 || test ! -s conftest.err'
bec39cab
AC
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13368 ac_status=$?
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; } &&
13371 { ac_try='test -s conftest.$ac_objext'
13372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373 (eval $ac_try) 2>&5
13374 ac_status=$?
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; }; then
13377 ac_header_compiler=yes
13378else
13379 echo "$as_me: failed program was:" >&5
13380sed 's/^/| /' conftest.$ac_ext >&5
13381
b4e70030 13382ac_header_compiler=no
bec39cab
AC
13383fi
13384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13385echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13386echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13387
13388# Is the header present?
b4e70030
JB
13389echo "$as_me:$LINENO: checking $ac_header presence" >&5
13390echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13391cat >conftest.$ac_ext <<_ACEOF
13392/* confdefs.h. */
13393_ACEOF
13394cat confdefs.h >>conftest.$ac_ext
13395cat >>conftest.$ac_ext <<_ACEOF
13396/* end confdefs.h. */
13397#include <$ac_header>
13398_ACEOF
13399if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13401 ac_status=$?
13402 grep -v '^ *+' conftest.er1 >conftest.err
13403 rm -f conftest.er1
13404 cat conftest.err >&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); } >/dev/null; then
13407 if test -s conftest.err; then
13408 ac_cpp_err=$ac_c_preproc_warn_flag
13409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13410 else
13411 ac_cpp_err=
13412 fi
5ee754fc 13413else
bec39cab 13414 ac_cpp_err=yes
5ee754fc 13415fi
bec39cab
AC
13416if test -z "$ac_cpp_err"; then
13417 ac_header_preproc=yes
13418else
13419 echo "$as_me: failed program was:" >&5
13420sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13421
bec39cab 13422 ac_header_preproc=no
5ee754fc 13423fi
bec39cab 13424rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13425echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13426echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 13427
bec39cab
AC
13428# So? What about this header?
13429case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13430 yes:no: )
13431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13432echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13434echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13435 ac_header_preproc=yes
13436 ;;
13437 no:yes:* )
13438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13439echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13441echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13443echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13445echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13447echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13449echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13450 (
13451 cat <<\_ASBOX
13452## ------------------------------------------ ##
13453## Report this to the AC_PACKAGE_NAME lists. ##
13454## ------------------------------------------ ##
13455_ASBOX
13456 ) |
13457 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13458 ;;
13459esac
b4e70030
JB
13460echo "$as_me:$LINENO: checking for $ac_header" >&5
13461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13462if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13463 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 13464else
bec39cab 13465 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 13466fi
b4e70030
JB
13467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13468echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 13469
5ee754fc 13470fi
bec39cab
AC
13471if test `eval echo '${'$as_ac_Header'}'` = yes; then
13472 cat >>confdefs.h <<_ACEOF
13473#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13474_ACEOF
5ee754fc
MK
13475
13476fi
13477
bec39cab
AC
13478done
13479
13480
13481for ac_header in sys/ioctl.h
13482do
13483as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13484if eval "test \"\${$as_ac_Header+set}\" = set"; then
13485 echo "$as_me:$LINENO: checking for $ac_header" >&5
13486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13487if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13489fi
b4e70030
JB
13490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13491echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13492else
13493 # Is the header compilable?
b4e70030
JB
13494echo "$as_me:$LINENO: checking $ac_header usability" >&5
13495echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13496cat >conftest.$ac_ext <<_ACEOF
13497/* confdefs.h. */
13498_ACEOF
13499cat confdefs.h >>conftest.$ac_ext
13500cat >>conftest.$ac_ext <<_ACEOF
13501/* end confdefs.h. */
13502$ac_includes_default
13503#include <$ac_header>
13504_ACEOF
13505rm -f conftest.$ac_objext
13506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13507 (eval $ac_compile) 2>conftest.er1
13508 ac_status=$?
13509 grep -v '^ *+' conftest.er1 >conftest.err
13510 rm -f conftest.er1
13511 cat conftest.err >&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } &&
b4e70030
JB
13514 { ac_try='test -z "$ac_c_werror_flag"
13515 || test ! -s conftest.err'
bec39cab
AC
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13518 ac_status=$?
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; } &&
13521 { ac_try='test -s conftest.$ac_objext'
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; }; then
13527 ac_header_compiler=yes
13528else
13529 echo "$as_me: failed program was:" >&5
13530sed 's/^/| /' conftest.$ac_ext >&5
13531
b4e70030 13532ac_header_compiler=no
bec39cab
AC
13533fi
13534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13535echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13536echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13537
13538# Is the header present?
b4e70030
JB
13539echo "$as_me:$LINENO: checking $ac_header presence" >&5
13540echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13541cat >conftest.$ac_ext <<_ACEOF
13542/* confdefs.h. */
13543_ACEOF
13544cat confdefs.h >>conftest.$ac_ext
13545cat >>conftest.$ac_ext <<_ACEOF
13546/* end confdefs.h. */
13547#include <$ac_header>
13548_ACEOF
13549if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13551 ac_status=$?
13552 grep -v '^ *+' conftest.er1 >conftest.err
13553 rm -f conftest.er1
13554 cat conftest.err >&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } >/dev/null; then
13557 if test -s conftest.err; then
13558 ac_cpp_err=$ac_c_preproc_warn_flag
13559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13560 else
13561 ac_cpp_err=
13562 fi
5ee754fc 13563else
bec39cab 13564 ac_cpp_err=yes
5ee754fc 13565fi
bec39cab
AC
13566if test -z "$ac_cpp_err"; then
13567 ac_header_preproc=yes
13568else
13569 echo "$as_me: failed program was:" >&5
13570sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13571
bec39cab 13572 ac_header_preproc=no
5ee754fc 13573fi
bec39cab 13574rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13575echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13576echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 13577
bec39cab
AC
13578# So? What about this header?
13579case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13580 yes:no: )
13581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13582echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13584echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13585 ac_header_preproc=yes
13586 ;;
13587 no:yes:* )
13588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13589echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13591echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13593echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13595echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13597echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13599echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13600 (
13601 cat <<\_ASBOX
13602## ------------------------------------------ ##
13603## Report this to the AC_PACKAGE_NAME lists. ##
13604## ------------------------------------------ ##
13605_ASBOX
13606 ) |
13607 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13608 ;;
13609esac
b4e70030
JB
13610echo "$as_me:$LINENO: checking for $ac_header" >&5
13611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13612if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13613 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 13614else
bec39cab 13615 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 13616fi
b4e70030
JB
13617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13618echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
13619
13620fi
bec39cab
AC
13621if test `eval echo '${'$as_ac_Header'}'` = yes; then
13622 cat >>confdefs.h <<_ACEOF
13623#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13624_ACEOF
13625
5ee754fc
MK
13626fi
13627
bec39cab 13628done
5ee754fc 13629
5ee754fc 13630
bec39cab 13631for ac_header in sys/param.h
5ee754fc 13632do
bec39cab 13633as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13634if eval "test \"\${$as_ac_Header+set}\" = set"; then
13635 echo "$as_me:$LINENO: checking for $ac_header" >&5
13636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13637if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13639fi
b4e70030
JB
13640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13641echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13642else
13643 # Is the header compilable?
b4e70030
JB
13644echo "$as_me:$LINENO: checking $ac_header usability" >&5
13645echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13646cat >conftest.$ac_ext <<_ACEOF
13647/* confdefs.h. */
13648_ACEOF
13649cat confdefs.h >>conftest.$ac_ext
13650cat >>conftest.$ac_ext <<_ACEOF
13651/* end confdefs.h. */
13652$ac_includes_default
13653#include <$ac_header>
13654_ACEOF
13655rm -f conftest.$ac_objext
13656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13657 (eval $ac_compile) 2>conftest.er1
13658 ac_status=$?
13659 grep -v '^ *+' conftest.er1 >conftest.err
13660 rm -f conftest.er1
13661 cat conftest.err >&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); } &&
b4e70030
JB
13664 { ac_try='test -z "$ac_c_werror_flag"
13665 || test ! -s conftest.err'
bec39cab
AC
13666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667 (eval $ac_try) 2>&5
13668 ac_status=$?
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; } &&
13671 { ac_try='test -s conftest.$ac_objext'
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13674 ac_status=$?
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; }; then
13677 ac_header_compiler=yes
13678else
13679 echo "$as_me: failed program was:" >&5
13680sed 's/^/| /' conftest.$ac_ext >&5
13681
b4e70030 13682ac_header_compiler=no
bec39cab
AC
13683fi
13684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13685echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13686echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13687
13688# Is the header present?
b4e70030
JB
13689echo "$as_me:$LINENO: checking $ac_header presence" >&5
13690echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13691cat >conftest.$ac_ext <<_ACEOF
13692/* confdefs.h. */
13693_ACEOF
13694cat confdefs.h >>conftest.$ac_ext
13695cat >>conftest.$ac_ext <<_ACEOF
13696/* end confdefs.h. */
13697#include <$ac_header>
13698_ACEOF
13699if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13701 ac_status=$?
13702 grep -v '^ *+' conftest.er1 >conftest.err
13703 rm -f conftest.er1
13704 cat conftest.err >&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } >/dev/null; then
13707 if test -s conftest.err; then
13708 ac_cpp_err=$ac_c_preproc_warn_flag
13709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13710 else
13711 ac_cpp_err=
13712 fi
5ee754fc 13713else
bec39cab 13714 ac_cpp_err=yes
5ee754fc 13715fi
bec39cab
AC
13716if test -z "$ac_cpp_err"; then
13717 ac_header_preproc=yes
13718else
13719 echo "$as_me: failed program was:" >&5
13720sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13721
bec39cab 13722 ac_header_preproc=no
5ee754fc 13723fi
bec39cab 13724rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13725echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13726echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
13727
13728# So? What about this header?
13729case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13730 yes:no: )
13731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13732echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13734echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13735 ac_header_preproc=yes
13736 ;;
13737 no:yes:* )
13738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13739echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13741echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13743echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13745echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13747echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13749echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13750 (
13751 cat <<\_ASBOX
13752## ------------------------------------------ ##
13753## Report this to the AC_PACKAGE_NAME lists. ##
13754## ------------------------------------------ ##
13755_ASBOX
13756 ) |
13757 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13758 ;;
13759esac
b4e70030
JB
13760echo "$as_me:$LINENO: checking for $ac_header" >&5
13761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13762if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13763 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 13764else
bec39cab 13765 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 13766fi
b4e70030
JB
13767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13768echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 13769
5ee754fc 13770fi
bec39cab
AC
13771if test `eval echo '${'$as_ac_Header'}'` = yes; then
13772 cat >>confdefs.h <<_ACEOF
13773#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13774_ACEOF
13775
5ee754fc 13776fi
bec39cab 13777
5ee754fc
MK
13778done
13779
bec39cab 13780
7eb368b3
NR
13781for ac_header in sys/resource.h
13782do
13783as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13784if eval "test \"\${$as_ac_Header+set}\" = set"; then
13785 echo "$as_me:$LINENO: checking for $ac_header" >&5
13786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13787if eval "test \"\${$as_ac_Header+set}\" = set"; then
13788 echo $ECHO_N "(cached) $ECHO_C" >&6
13789fi
13790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13792else
13793 # Is the header compilable?
13794echo "$as_me:$LINENO: checking $ac_header usability" >&5
13795echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13796cat >conftest.$ac_ext <<_ACEOF
13797/* confdefs.h. */
13798_ACEOF
13799cat confdefs.h >>conftest.$ac_ext
13800cat >>conftest.$ac_ext <<_ACEOF
13801/* end confdefs.h. */
13802$ac_includes_default
13803#include <$ac_header>
13804_ACEOF
13805rm -f conftest.$ac_objext
13806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13807 (eval $ac_compile) 2>conftest.er1
13808 ac_status=$?
13809 grep -v '^ *+' conftest.er1 >conftest.err
13810 rm -f conftest.er1
13811 cat conftest.err >&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } &&
13814 { ac_try='test -z "$ac_c_werror_flag"
13815 || test ! -s conftest.err'
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13818 ac_status=$?
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; } &&
13821 { ac_try='test -s conftest.$ac_objext'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13824 ac_status=$?
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; }; then
13827 ac_header_compiler=yes
13828else
13829 echo "$as_me: failed program was:" >&5
13830sed 's/^/| /' conftest.$ac_ext >&5
13831
13832ac_header_compiler=no
13833fi
13834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13835echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13836echo "${ECHO_T}$ac_header_compiler" >&6
13837
13838# Is the header present?
13839echo "$as_me:$LINENO: checking $ac_header presence" >&5
13840echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13841cat >conftest.$ac_ext <<_ACEOF
13842/* confdefs.h. */
13843_ACEOF
13844cat confdefs.h >>conftest.$ac_ext
13845cat >>conftest.$ac_ext <<_ACEOF
13846/* end confdefs.h. */
13847#include <$ac_header>
13848_ACEOF
13849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13851 ac_status=$?
13852 grep -v '^ *+' conftest.er1 >conftest.err
13853 rm -f conftest.er1
13854 cat conftest.err >&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); } >/dev/null; then
13857 if test -s conftest.err; then
13858 ac_cpp_err=$ac_c_preproc_warn_flag
13859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13860 else
13861 ac_cpp_err=
13862 fi
13863else
13864 ac_cpp_err=yes
13865fi
13866if test -z "$ac_cpp_err"; then
13867 ac_header_preproc=yes
13868else
13869 echo "$as_me: failed program was:" >&5
13870sed 's/^/| /' conftest.$ac_ext >&5
13871
13872 ac_header_preproc=no
13873fi
13874rm -f conftest.err conftest.$ac_ext
13875echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13876echo "${ECHO_T}$ac_header_preproc" >&6
13877
13878# So? What about this header?
13879case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13880 yes:no: )
13881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13882echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13884echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13885 ac_header_preproc=yes
13886 ;;
13887 no:yes:* )
13888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13889echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13891echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13893echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13895echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13897echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13899echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13900 (
13901 cat <<\_ASBOX
13902## ------------------------------------------ ##
13903## Report this to the AC_PACKAGE_NAME lists. ##
13904## ------------------------------------------ ##
13905_ASBOX
13906 ) |
13907 sed "s/^/$as_me: WARNING: /" >&2
13908 ;;
13909esac
13910echo "$as_me:$LINENO: checking for $ac_header" >&5
13911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13912if eval "test \"\${$as_ac_Header+set}\" = set"; then
13913 echo $ECHO_N "(cached) $ECHO_C" >&6
13914else
13915 eval "$as_ac_Header=\$ac_header_preproc"
13916fi
13917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13918echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13919
13920fi
13921if test `eval echo '${'$as_ac_Header'}'` = yes; then
13922 cat >>confdefs.h <<_ACEOF
13923#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13924_ACEOF
13925
13926fi
13927
13928done
13929
13930
bec39cab 13931for ac_header in sys/proc.h
5ee754fc 13932do
bec39cab 13933as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13934echo "$as_me:$LINENO: checking for $ac_header" >&5
13935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13936if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13937 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 13938else
7cb9022a 13939 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
13940/* confdefs.h. */
13941_ACEOF
13942cat confdefs.h >>conftest.$ac_ext
13943cat >>conftest.$ac_ext <<_ACEOF
13944/* end confdefs.h. */
7cb9022a
MK
13945#if HAVE_SYS_PARAM_H
13946# include <sys/param.h>
13947#endif
13948
13949
bec39cab
AC
13950#include <$ac_header>
13951_ACEOF
13952rm -f conftest.$ac_objext
13953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13954 (eval $ac_compile) 2>conftest.er1
13955 ac_status=$?
13956 grep -v '^ *+' conftest.er1 >conftest.err
13957 rm -f conftest.er1
13958 cat conftest.err >&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); } &&
b4e70030
JB
13961 { ac_try='test -z "$ac_c_werror_flag"
13962 || test ! -s conftest.err'
bec39cab
AC
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; } &&
13968 { ac_try='test -s conftest.$ac_objext'
13969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970 (eval $ac_try) 2>&5
13971 ac_status=$?
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; }; then
7cb9022a 13974 eval "$as_ac_Header=yes"
bec39cab
AC
13975else
13976 echo "$as_me: failed program was:" >&5
13977sed 's/^/| /' conftest.$ac_ext >&5
13978
b4e70030 13979eval "$as_ac_Header=no"
bec39cab
AC
13980fi
13981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 13982fi
b4e70030
JB
13983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13984echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13985if test `eval echo '${'$as_ac_Header'}'` = yes; then
13986 cat >>confdefs.h <<_ACEOF
13987#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13988_ACEOF
13989
5ee754fc 13990fi
bec39cab 13991
5ee754fc
MK
13992done
13993
bec39cab
AC
13994
13995for ac_header in sys/procfs.h
5ee754fc 13996do
bec39cab 13997as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13998if eval "test \"\${$as_ac_Header+set}\" = set"; then
13999 echo "$as_me:$LINENO: checking for $ac_header" >&5
14000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14001if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
14003fi
b4e70030
JB
14004echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14005echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14006else
14007 # Is the header compilable?
b4e70030
JB
14008echo "$as_me:$LINENO: checking $ac_header usability" >&5
14009echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14010cat >conftest.$ac_ext <<_ACEOF
14011/* confdefs.h. */
14012_ACEOF
14013cat confdefs.h >>conftest.$ac_ext
14014cat >>conftest.$ac_ext <<_ACEOF
14015/* end confdefs.h. */
14016$ac_includes_default
14017#include <$ac_header>
14018_ACEOF
14019rm -f conftest.$ac_objext
14020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14021 (eval $ac_compile) 2>conftest.er1
14022 ac_status=$?
14023 grep -v '^ *+' conftest.er1 >conftest.err
14024 rm -f conftest.er1
14025 cat conftest.err >&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } &&
b4e70030
JB
14028 { ac_try='test -z "$ac_c_werror_flag"
14029 || test ! -s conftest.err'
bec39cab
AC
14030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 (eval $ac_try) 2>&5
14032 ac_status=$?
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; } &&
14035 { ac_try='test -s conftest.$ac_objext'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14038 ac_status=$?
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }; then
14041 ac_header_compiler=yes
14042else
14043 echo "$as_me: failed program was:" >&5
14044sed 's/^/| /' conftest.$ac_ext >&5
14045
b4e70030 14046ac_header_compiler=no
bec39cab
AC
14047fi
14048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14049echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14050echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14051
14052# Is the header present?
b4e70030
JB
14053echo "$as_me:$LINENO: checking $ac_header presence" >&5
14054echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14055cat >conftest.$ac_ext <<_ACEOF
14056/* confdefs.h. */
14057_ACEOF
14058cat confdefs.h >>conftest.$ac_ext
14059cat >>conftest.$ac_ext <<_ACEOF
14060/* end confdefs.h. */
14061#include <$ac_header>
14062_ACEOF
14063if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14065 ac_status=$?
14066 grep -v '^ *+' conftest.er1 >conftest.err
14067 rm -f conftest.er1
14068 cat conftest.err >&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); } >/dev/null; then
14071 if test -s conftest.err; then
14072 ac_cpp_err=$ac_c_preproc_warn_flag
14073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14074 else
14075 ac_cpp_err=
14076 fi
14077else
14078 ac_cpp_err=yes
5ee754fc 14079fi
bec39cab
AC
14080if test -z "$ac_cpp_err"; then
14081 ac_header_preproc=yes
5ee754fc 14082else
bec39cab
AC
14083 echo "$as_me: failed program was:" >&5
14084sed 's/^/| /' conftest.$ac_ext >&5
14085
14086 ac_header_preproc=no
5ee754fc 14087fi
bec39cab 14088rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14089echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14090echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14091
bec39cab
AC
14092# So? What about this header?
14093case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14094 yes:no: )
14095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14096echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14098echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14099 ac_header_preproc=yes
14100 ;;
14101 no:yes:* )
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14103echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14105echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14107echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14109echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14111echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14113echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14114 (
14115 cat <<\_ASBOX
14116## ------------------------------------------ ##
14117## Report this to the AC_PACKAGE_NAME lists. ##
14118## ------------------------------------------ ##
14119_ASBOX
14120 ) |
14121 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14122 ;;
14123esac
b4e70030
JB
14124echo "$as_me:$LINENO: checking for $ac_header" >&5
14125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14126if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14127 echo $ECHO_N "(cached) $ECHO_C" >&6
14128else
14129 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14130fi
b4e70030
JB
14131echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14132echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14133
5ee754fc 14134fi
bec39cab
AC
14135if test `eval echo '${'$as_ac_Header'}'` = yes; then
14136 cat >>confdefs.h <<_ACEOF
14137#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14138_ACEOF
14139
5ee754fc 14140fi
bec39cab 14141
5ee754fc
MK
14142done
14143
bec39cab
AC
14144
14145
14146for ac_header in sys/ptrace.h ptrace.h
5ee754fc 14147do
bec39cab 14148as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14149if eval "test \"\${$as_ac_Header+set}\" = set"; then
14150 echo "$as_me:$LINENO: checking for $ac_header" >&5
14151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14152if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14153 echo $ECHO_N "(cached) $ECHO_C" >&6
14154fi
b4e70030
JB
14155echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14156echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14157else
14158 # Is the header compilable?
b4e70030
JB
14159echo "$as_me:$LINENO: checking $ac_header usability" >&5
14160echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14161cat >conftest.$ac_ext <<_ACEOF
14162/* confdefs.h. */
14163_ACEOF
14164cat confdefs.h >>conftest.$ac_ext
14165cat >>conftest.$ac_ext <<_ACEOF
14166/* end confdefs.h. */
14167$ac_includes_default
14168#include <$ac_header>
14169_ACEOF
14170rm -f conftest.$ac_objext
14171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14172 (eval $ac_compile) 2>conftest.er1
14173 ac_status=$?
14174 grep -v '^ *+' conftest.er1 >conftest.err
14175 rm -f conftest.er1
14176 cat conftest.err >&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); } &&
b4e70030
JB
14179 { ac_try='test -z "$ac_c_werror_flag"
14180 || test ! -s conftest.err'
bec39cab
AC
14181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182 (eval $ac_try) 2>&5
14183 ac_status=$?
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; } &&
14186 { ac_try='test -s conftest.$ac_objext'
14187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188 (eval $ac_try) 2>&5
14189 ac_status=$?
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); }; }; then
14192 ac_header_compiler=yes
14193else
14194 echo "$as_me: failed program was:" >&5
14195sed 's/^/| /' conftest.$ac_ext >&5
14196
b4e70030 14197ac_header_compiler=no
bec39cab
AC
14198fi
14199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14200echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14201echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14202
14203# Is the header present?
b4e70030
JB
14204echo "$as_me:$LINENO: checking $ac_header presence" >&5
14205echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14206cat >conftest.$ac_ext <<_ACEOF
14207/* confdefs.h. */
14208_ACEOF
14209cat confdefs.h >>conftest.$ac_ext
14210cat >>conftest.$ac_ext <<_ACEOF
14211/* end confdefs.h. */
14212#include <$ac_header>
14213_ACEOF
14214if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14216 ac_status=$?
14217 grep -v '^ *+' conftest.er1 >conftest.err
14218 rm -f conftest.er1
14219 cat conftest.err >&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); } >/dev/null; then
14222 if test -s conftest.err; then
14223 ac_cpp_err=$ac_c_preproc_warn_flag
14224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14225 else
14226 ac_cpp_err=
14227 fi
14228else
14229 ac_cpp_err=yes
5ee754fc 14230fi
bec39cab
AC
14231if test -z "$ac_cpp_err"; then
14232 ac_header_preproc=yes
5ee754fc 14233else
bec39cab
AC
14234 echo "$as_me: failed program was:" >&5
14235sed 's/^/| /' conftest.$ac_ext >&5
14236
14237 ac_header_preproc=no
5ee754fc 14238fi
bec39cab 14239rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14240echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14241echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14242
bec39cab
AC
14243# So? What about this header?
14244case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14245 yes:no: )
14246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14247echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14249echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14250 ac_header_preproc=yes
14251 ;;
14252 no:yes:* )
14253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14254echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14256echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14257 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14258echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14259 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14260echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14262echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14263 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14264echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14265 (
14266 cat <<\_ASBOX
14267## ------------------------------------------ ##
14268## Report this to the AC_PACKAGE_NAME lists. ##
14269## ------------------------------------------ ##
14270_ASBOX
14271 ) |
14272 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14273 ;;
14274esac
b4e70030
JB
14275echo "$as_me:$LINENO: checking for $ac_header" >&5
14276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14277if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14278 echo $ECHO_N "(cached) $ECHO_C" >&6
14279else
14280 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14281fi
b4e70030
JB
14282echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14283echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14284
5ee754fc 14285fi
bec39cab
AC
14286if test `eval echo '${'$as_ac_Header'}'` = yes; then
14287 cat >>confdefs.h <<_ACEOF
14288#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14289_ACEOF
14290
5ee754fc 14291fi
bec39cab 14292
5ee754fc
MK
14293done
14294
bec39cab
AC
14295
14296
14297for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 14298do
bec39cab 14299as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14300if eval "test \"\${$as_ac_Header+set}\" = set"; then
14301 echo "$as_me:$LINENO: checking for $ac_header" >&5
14302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14303if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14305fi
b4e70030
JB
14306echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14307echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14308else
14309 # Is the header compilable?
b4e70030
JB
14310echo "$as_me:$LINENO: checking $ac_header usability" >&5
14311echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14312cat >conftest.$ac_ext <<_ACEOF
14313/* confdefs.h. */
14314_ACEOF
14315cat confdefs.h >>conftest.$ac_ext
14316cat >>conftest.$ac_ext <<_ACEOF
14317/* end confdefs.h. */
14318$ac_includes_default
14319#include <$ac_header>
14320_ACEOF
14321rm -f conftest.$ac_objext
14322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14323 (eval $ac_compile) 2>conftest.er1
14324 ac_status=$?
14325 grep -v '^ *+' conftest.er1 >conftest.err
14326 rm -f conftest.er1
14327 cat conftest.err >&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } &&
b4e70030
JB
14330 { ac_try='test -z "$ac_c_werror_flag"
14331 || test ! -s conftest.err'
bec39cab
AC
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14334 ac_status=$?
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; } &&
14337 { ac_try='test -s conftest.$ac_objext'
14338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14339 (eval $ac_try) 2>&5
14340 ac_status=$?
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; }; then
14343 ac_header_compiler=yes
14344else
14345 echo "$as_me: failed program was:" >&5
14346sed 's/^/| /' conftest.$ac_ext >&5
14347
b4e70030 14348ac_header_compiler=no
bec39cab
AC
14349fi
14350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14351echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14352echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14353
14354# Is the header present?
b4e70030
JB
14355echo "$as_me:$LINENO: checking $ac_header presence" >&5
14356echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14357cat >conftest.$ac_ext <<_ACEOF
14358/* confdefs.h. */
14359_ACEOF
14360cat confdefs.h >>conftest.$ac_ext
14361cat >>conftest.$ac_ext <<_ACEOF
14362/* end confdefs.h. */
14363#include <$ac_header>
14364_ACEOF
14365if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14367 ac_status=$?
14368 grep -v '^ *+' conftest.er1 >conftest.err
14369 rm -f conftest.er1
14370 cat conftest.err >&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } >/dev/null; then
14373 if test -s conftest.err; then
14374 ac_cpp_err=$ac_c_preproc_warn_flag
14375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14376 else
14377 ac_cpp_err=
14378 fi
14379else
14380 ac_cpp_err=yes
5ee754fc 14381fi
bec39cab
AC
14382if test -z "$ac_cpp_err"; then
14383 ac_header_preproc=yes
5ee754fc 14384else
bec39cab
AC
14385 echo "$as_me: failed program was:" >&5
14386sed 's/^/| /' conftest.$ac_ext >&5
14387
14388 ac_header_preproc=no
5ee754fc 14389fi
bec39cab 14390rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14391echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14392echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14393
bec39cab
AC
14394# So? What about this header?
14395case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14396 yes:no: )
14397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14398echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14400echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14401 ac_header_preproc=yes
14402 ;;
14403 no:yes:* )
14404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14405echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14407echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14408 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14409echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14410 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14411echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14413echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14414 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14415echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14416 (
14417 cat <<\_ASBOX
14418## ------------------------------------------ ##
14419## Report this to the AC_PACKAGE_NAME lists. ##
14420## ------------------------------------------ ##
14421_ASBOX
14422 ) |
14423 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14424 ;;
14425esac
b4e70030
JB
14426echo "$as_me:$LINENO: checking for $ac_header" >&5
14427echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14428if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
14430else
14431 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14432fi
b4e70030
JB
14433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14434echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14435
5ee754fc 14436fi
bec39cab
AC
14437if test `eval echo '${'$as_ac_Header'}'` = yes; then
14438 cat >>confdefs.h <<_ACEOF
14439#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14440_ACEOF
14441
5ee754fc 14442fi
bec39cab 14443
5ee754fc
MK
14444done
14445
bec39cab
AC
14446
14447for ac_header in sys/select.h
5ee754fc 14448do
bec39cab 14449as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14450if eval "test \"\${$as_ac_Header+set}\" = set"; then
14451 echo "$as_me:$LINENO: checking for $ac_header" >&5
14452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14453if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14454 echo $ECHO_N "(cached) $ECHO_C" >&6
14455fi
b4e70030
JB
14456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14457echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14458else
14459 # Is the header compilable?
b4e70030
JB
14460echo "$as_me:$LINENO: checking $ac_header usability" >&5
14461echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14462cat >conftest.$ac_ext <<_ACEOF
14463/* confdefs.h. */
14464_ACEOF
14465cat confdefs.h >>conftest.$ac_ext
14466cat >>conftest.$ac_ext <<_ACEOF
14467/* end confdefs.h. */
14468$ac_includes_default
14469#include <$ac_header>
14470_ACEOF
14471rm -f conftest.$ac_objext
14472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14473 (eval $ac_compile) 2>conftest.er1
14474 ac_status=$?
14475 grep -v '^ *+' conftest.er1 >conftest.err
14476 rm -f conftest.er1
14477 cat conftest.err >&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } &&
b4e70030
JB
14480 { ac_try='test -z "$ac_c_werror_flag"
14481 || test ! -s conftest.err'
bec39cab
AC
14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483 (eval $ac_try) 2>&5
14484 ac_status=$?
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; } &&
14487 { ac_try='test -s conftest.$ac_objext'
14488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14490 ac_status=$?
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; }; then
14493 ac_header_compiler=yes
14494else
14495 echo "$as_me: failed program was:" >&5
14496sed 's/^/| /' conftest.$ac_ext >&5
14497
b4e70030 14498ac_header_compiler=no
bec39cab
AC
14499fi
14500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14501echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14502echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14503
14504# Is the header present?
b4e70030
JB
14505echo "$as_me:$LINENO: checking $ac_header presence" >&5
14506echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14507cat >conftest.$ac_ext <<_ACEOF
14508/* confdefs.h. */
14509_ACEOF
14510cat confdefs.h >>conftest.$ac_ext
14511cat >>conftest.$ac_ext <<_ACEOF
14512/* end confdefs.h. */
14513#include <$ac_header>
14514_ACEOF
14515if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14517 ac_status=$?
14518 grep -v '^ *+' conftest.er1 >conftest.err
14519 rm -f conftest.er1
14520 cat conftest.err >&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } >/dev/null; then
14523 if test -s conftest.err; then
14524 ac_cpp_err=$ac_c_preproc_warn_flag
14525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14526 else
14527 ac_cpp_err=
14528 fi
14529else
14530 ac_cpp_err=yes
5ee754fc 14531fi
bec39cab
AC
14532if test -z "$ac_cpp_err"; then
14533 ac_header_preproc=yes
5ee754fc 14534else
bec39cab
AC
14535 echo "$as_me: failed program was:" >&5
14536sed 's/^/| /' conftest.$ac_ext >&5
14537
14538 ac_header_preproc=no
5ee754fc 14539fi
bec39cab 14540rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14541echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14542echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14543
bec39cab
AC
14544# So? What about this header?
14545case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14546 yes:no: )
14547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14548echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14550echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14551 ac_header_preproc=yes
14552 ;;
14553 no:yes:* )
14554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14555echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14557echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14559echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14561echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14563echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14565echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14566 (
14567 cat <<\_ASBOX
14568## ------------------------------------------ ##
14569## Report this to the AC_PACKAGE_NAME lists. ##
14570## ------------------------------------------ ##
14571_ASBOX
14572 ) |
14573 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14574 ;;
14575esac
b4e70030
JB
14576echo "$as_me:$LINENO: checking for $ac_header" >&5
14577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14578if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14580else
14581 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14582fi
b4e70030
JB
14583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14584echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14585
5ee754fc 14586fi
bec39cab
AC
14587if test `eval echo '${'$as_ac_Header'}'` = yes; then
14588 cat >>confdefs.h <<_ACEOF
14589#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14590_ACEOF
14591
5ee754fc 14592fi
bec39cab 14593
5ee754fc
MK
14594done
14595
bec39cab
AC
14596
14597for ac_header in sys/syscall.h
5ee754fc 14598do
bec39cab 14599as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14600if eval "test \"\${$as_ac_Header+set}\" = set"; then
14601 echo "$as_me:$LINENO: checking for $ac_header" >&5
14602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14603if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14605fi
b4e70030
JB
14606echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14607echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14608else
14609 # Is the header compilable?
b4e70030
JB
14610echo "$as_me:$LINENO: checking $ac_header usability" >&5
14611echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14612cat >conftest.$ac_ext <<_ACEOF
14613/* confdefs.h. */
14614_ACEOF
14615cat confdefs.h >>conftest.$ac_ext
14616cat >>conftest.$ac_ext <<_ACEOF
14617/* end confdefs.h. */
14618$ac_includes_default
14619#include <$ac_header>
14620_ACEOF
14621rm -f conftest.$ac_objext
14622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14623 (eval $ac_compile) 2>conftest.er1
14624 ac_status=$?
14625 grep -v '^ *+' conftest.er1 >conftest.err
14626 rm -f conftest.er1
14627 cat conftest.err >&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } &&
b4e70030
JB
14630 { ac_try='test -z "$ac_c_werror_flag"
14631 || test ! -s conftest.err'
bec39cab
AC
14632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633 (eval $ac_try) 2>&5
14634 ac_status=$?
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; } &&
14637 { ac_try='test -s conftest.$ac_objext'
14638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639 (eval $ac_try) 2>&5
14640 ac_status=$?
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; }; then
14643 ac_header_compiler=yes
14644else
14645 echo "$as_me: failed program was:" >&5
14646sed 's/^/| /' conftest.$ac_ext >&5
14647
b4e70030 14648ac_header_compiler=no
bec39cab
AC
14649fi
14650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14651echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14652echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14653
14654# Is the header present?
b4e70030
JB
14655echo "$as_me:$LINENO: checking $ac_header presence" >&5
14656echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14657cat >conftest.$ac_ext <<_ACEOF
14658/* confdefs.h. */
14659_ACEOF
14660cat confdefs.h >>conftest.$ac_ext
14661cat >>conftest.$ac_ext <<_ACEOF
14662/* end confdefs.h. */
14663#include <$ac_header>
14664_ACEOF
14665if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14667 ac_status=$?
14668 grep -v '^ *+' conftest.er1 >conftest.err
14669 rm -f conftest.er1
14670 cat conftest.err >&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } >/dev/null; then
14673 if test -s conftest.err; then
14674 ac_cpp_err=$ac_c_preproc_warn_flag
14675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14676 else
14677 ac_cpp_err=
14678 fi
14679else
14680 ac_cpp_err=yes
5ee754fc 14681fi
bec39cab
AC
14682if test -z "$ac_cpp_err"; then
14683 ac_header_preproc=yes
5ee754fc 14684else
bec39cab
AC
14685 echo "$as_me: failed program was:" >&5
14686sed 's/^/| /' conftest.$ac_ext >&5
14687
14688 ac_header_preproc=no
5ee754fc 14689fi
bec39cab 14690rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14691echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14692echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14693
bec39cab
AC
14694# So? What about this header?
14695case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14696 yes:no: )
14697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14698echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14700echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14701 ac_header_preproc=yes
14702 ;;
14703 no:yes:* )
14704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14705echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14707echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14709echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14711echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14713echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14715echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14716 (
14717 cat <<\_ASBOX
14718## ------------------------------------------ ##
14719## Report this to the AC_PACKAGE_NAME lists. ##
14720## ------------------------------------------ ##
14721_ASBOX
14722 ) |
14723 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14724 ;;
14725esac
b4e70030
JB
14726echo "$as_me:$LINENO: checking for $ac_header" >&5
14727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14728if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14729 echo $ECHO_N "(cached) $ECHO_C" >&6
14730else
14731 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14732fi
b4e70030
JB
14733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14734echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14735
5ee754fc 14736fi
bec39cab
AC
14737if test `eval echo '${'$as_ac_Header'}'` = yes; then
14738 cat >>confdefs.h <<_ACEOF
14739#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14740_ACEOF
14741
5ee754fc 14742fi
bec39cab 14743
5ee754fc
MK
14744done
14745
bec39cab
AC
14746
14747for ac_header in sys/types.h
5ee754fc 14748do
bec39cab 14749as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14750if eval "test \"\${$as_ac_Header+set}\" = set"; then
14751 echo "$as_me:$LINENO: checking for $ac_header" >&5
14752echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14753if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14754 echo $ECHO_N "(cached) $ECHO_C" >&6
14755fi
b4e70030
JB
14756echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14757echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14758else
14759 # Is the header compilable?
b4e70030
JB
14760echo "$as_me:$LINENO: checking $ac_header usability" >&5
14761echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14762cat >conftest.$ac_ext <<_ACEOF
14763/* confdefs.h. */
14764_ACEOF
14765cat confdefs.h >>conftest.$ac_ext
14766cat >>conftest.$ac_ext <<_ACEOF
14767/* end confdefs.h. */
14768$ac_includes_default
14769#include <$ac_header>
14770_ACEOF
14771rm -f conftest.$ac_objext
14772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14773 (eval $ac_compile) 2>conftest.er1
14774 ac_status=$?
14775 grep -v '^ *+' conftest.er1 >conftest.err
14776 rm -f conftest.er1
14777 cat conftest.err >&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); } &&
b4e70030
JB
14780 { ac_try='test -z "$ac_c_werror_flag"
14781 || test ! -s conftest.err'
bec39cab
AC
14782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14783 (eval $ac_try) 2>&5
14784 ac_status=$?
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); }; } &&
14787 { ac_try='test -s conftest.$ac_objext'
14788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14789 (eval $ac_try) 2>&5
14790 ac_status=$?
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); }; }; then
14793 ac_header_compiler=yes
14794else
14795 echo "$as_me: failed program was:" >&5
14796sed 's/^/| /' conftest.$ac_ext >&5
14797
b4e70030 14798ac_header_compiler=no
bec39cab
AC
14799fi
14800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14801echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14802echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14803
14804# Is the header present?
b4e70030
JB
14805echo "$as_me:$LINENO: checking $ac_header presence" >&5
14806echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14807cat >conftest.$ac_ext <<_ACEOF
14808/* confdefs.h. */
14809_ACEOF
14810cat confdefs.h >>conftest.$ac_ext
14811cat >>conftest.$ac_ext <<_ACEOF
14812/* end confdefs.h. */
14813#include <$ac_header>
14814_ACEOF
14815if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14817 ac_status=$?
14818 grep -v '^ *+' conftest.er1 >conftest.err
14819 rm -f conftest.er1
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } >/dev/null; then
14823 if test -s conftest.err; then
14824 ac_cpp_err=$ac_c_preproc_warn_flag
14825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14826 else
14827 ac_cpp_err=
14828 fi
14829else
14830 ac_cpp_err=yes
5ee754fc 14831fi
bec39cab
AC
14832if test -z "$ac_cpp_err"; then
14833 ac_header_preproc=yes
5ee754fc 14834else
bec39cab
AC
14835 echo "$as_me: failed program was:" >&5
14836sed 's/^/| /' conftest.$ac_ext >&5
14837
14838 ac_header_preproc=no
5ee754fc 14839fi
bec39cab 14840rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14841echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14842echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14843
bec39cab
AC
14844# So? What about this header?
14845case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14846 yes:no: )
14847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14848echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14850echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14851 ac_header_preproc=yes
14852 ;;
14853 no:yes:* )
14854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14855echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14857echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14859echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14861echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14863echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14865echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14866 (
14867 cat <<\_ASBOX
14868## ------------------------------------------ ##
14869## Report this to the AC_PACKAGE_NAME lists. ##
14870## ------------------------------------------ ##
14871_ASBOX
14872 ) |
14873 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14874 ;;
14875esac
b4e70030
JB
14876echo "$as_me:$LINENO: checking for $ac_header" >&5
14877echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14878if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14880else
14881 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14882fi
b4e70030
JB
14883echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14884echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14885
5ee754fc 14886fi
bec39cab
AC
14887if test `eval echo '${'$as_ac_Header'}'` = yes; then
14888 cat >>confdefs.h <<_ACEOF
14889#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14890_ACEOF
14891
5ee754fc 14892fi
bec39cab 14893
5ee754fc
MK
14894done
14895
bec39cab
AC
14896
14897for ac_header in sys/user.h
5ee754fc 14898do
bec39cab 14899as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14900echo "$as_me:$LINENO: checking for $ac_header" >&5
14901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14902if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 14903 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 14904else
7cb9022a 14905 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14906/* confdefs.h. */
14907_ACEOF
14908cat confdefs.h >>conftest.$ac_ext
14909cat >>conftest.$ac_ext <<_ACEOF
14910/* end confdefs.h. */
7cb9022a
MK
14911#if HAVE_SYS_PARAM_H
14912# include <sys/param.h>
14913#endif
14914
14915
bec39cab
AC
14916#include <$ac_header>
14917_ACEOF
14918rm -f conftest.$ac_objext
14919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14920 (eval $ac_compile) 2>conftest.er1
14921 ac_status=$?
14922 grep -v '^ *+' conftest.er1 >conftest.err
14923 rm -f conftest.er1
14924 cat conftest.err >&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); } &&
b4e70030
JB
14927 { ac_try='test -z "$ac_c_werror_flag"
14928 || test ! -s conftest.err'
bec39cab
AC
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14931 ac_status=$?
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; } &&
14934 { ac_try='test -s conftest.$ac_objext'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14937 ac_status=$?
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }; then
7cb9022a 14940 eval "$as_ac_Header=yes"
bec39cab
AC
14941else
14942 echo "$as_me: failed program was:" >&5
14943sed 's/^/| /' conftest.$ac_ext >&5
14944
b4e70030 14945eval "$as_ac_Header=no"
bec39cab
AC
14946fi
14947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 14948fi
b4e70030
JB
14949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14950echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14951if test `eval echo '${'$as_ac_Header'}'` = yes; then
14952 cat >>confdefs.h <<_ACEOF
14953#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14954_ACEOF
14955
5ee754fc 14956fi
bec39cab 14957
5ee754fc
MK
14958done
14959
bec39cab
AC
14960
14961
14962for ac_header in sys/wait.h wait.h
5ee754fc 14963do
bec39cab 14964as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14965if eval "test \"\${$as_ac_Header+set}\" = set"; then
14966 echo "$as_me:$LINENO: checking for $ac_header" >&5
14967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14968if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14970fi
b4e70030
JB
14971echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14972echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14973else
14974 # Is the header compilable?
b4e70030
JB
14975echo "$as_me:$LINENO: checking $ac_header usability" >&5
14976echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14977cat >conftest.$ac_ext <<_ACEOF
14978/* confdefs.h. */
14979_ACEOF
14980cat confdefs.h >>conftest.$ac_ext
14981cat >>conftest.$ac_ext <<_ACEOF
14982/* end confdefs.h. */
14983$ac_includes_default
14984#include <$ac_header>
14985_ACEOF
14986rm -f conftest.$ac_objext
14987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14988 (eval $ac_compile) 2>conftest.er1
14989 ac_status=$?
14990 grep -v '^ *+' conftest.er1 >conftest.err
14991 rm -f conftest.er1
14992 cat conftest.err >&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } &&
b4e70030
JB
14995 { ac_try='test -z "$ac_c_werror_flag"
14996 || test ! -s conftest.err'
bec39cab
AC
14997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998 (eval $ac_try) 2>&5
14999 ac_status=$?
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; } &&
15002 { ac_try='test -s conftest.$ac_objext'
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15005 ac_status=$?
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then
15008 ac_header_compiler=yes
15009else
15010 echo "$as_me: failed program was:" >&5
15011sed 's/^/| /' conftest.$ac_ext >&5
15012
b4e70030 15013ac_header_compiler=no
bec39cab
AC
15014fi
15015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15016echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15017echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15018
15019# Is the header present?
b4e70030
JB
15020echo "$as_me:$LINENO: checking $ac_header presence" >&5
15021echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15022cat >conftest.$ac_ext <<_ACEOF
15023/* confdefs.h. */
15024_ACEOF
15025cat confdefs.h >>conftest.$ac_ext
15026cat >>conftest.$ac_ext <<_ACEOF
15027/* end confdefs.h. */
15028#include <$ac_header>
15029_ACEOF
15030if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } >/dev/null; then
15038 if test -s conftest.err; then
15039 ac_cpp_err=$ac_c_preproc_warn_flag
15040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15041 else
15042 ac_cpp_err=
15043 fi
15044else
15045 ac_cpp_err=yes
5ee754fc 15046fi
bec39cab
AC
15047if test -z "$ac_cpp_err"; then
15048 ac_header_preproc=yes
5ee754fc 15049else
bec39cab
AC
15050 echo "$as_me: failed program was:" >&5
15051sed 's/^/| /' conftest.$ac_ext >&5
15052
15053 ac_header_preproc=no
5ee754fc 15054fi
bec39cab 15055rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15056echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15057echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 15058
bec39cab
AC
15059# So? What about this header?
15060case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15061 yes:no: )
15062 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15063echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15065echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15066 ac_header_preproc=yes
15067 ;;
15068 no:yes:* )
15069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15070echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15072echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15073 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15074echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15075 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15076echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15078echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15079 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15080echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15081 (
15082 cat <<\_ASBOX
15083## ------------------------------------------ ##
15084## Report this to the AC_PACKAGE_NAME lists. ##
15085## ------------------------------------------ ##
15086_ASBOX
15087 ) |
15088 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15089 ;;
15090esac
b4e70030
JB
15091echo "$as_me:$LINENO: checking for $ac_header" >&5
15092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15093if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15094 echo $ECHO_N "(cached) $ECHO_C" >&6
15095else
15096 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 15097fi
b4e70030
JB
15098echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15099echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15100
9608ab8b 15101fi
bec39cab
AC
15102if test `eval echo '${'$as_ac_Header'}'` = yes; then
15103 cat >>confdefs.h <<_ACEOF
15104#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15105_ACEOF
15106
9608ab8b 15107fi
bec39cab 15108
9608ab8b 15109done
5ee754fc 15110
bec39cab
AC
15111
15112
15113
15114for ac_header in termios.h termio.h sgtty.h
5ee754fc 15115do
bec39cab 15116as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15117if eval "test \"\${$as_ac_Header+set}\" = set"; then
15118 echo "$as_me:$LINENO: checking for $ac_header" >&5
15119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15120if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15121 echo $ECHO_N "(cached) $ECHO_C" >&6
15122fi
b4e70030
JB
15123echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15124echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15125else
15126 # Is the header compilable?
b4e70030
JB
15127echo "$as_me:$LINENO: checking $ac_header usability" >&5
15128echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15129cat >conftest.$ac_ext <<_ACEOF
15130/* confdefs.h. */
15131_ACEOF
15132cat confdefs.h >>conftest.$ac_ext
15133cat >>conftest.$ac_ext <<_ACEOF
15134/* end confdefs.h. */
15135$ac_includes_default
15136#include <$ac_header>
15137_ACEOF
15138rm -f conftest.$ac_objext
15139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15140 (eval $ac_compile) 2>conftest.er1
15141 ac_status=$?
15142 grep -v '^ *+' conftest.er1 >conftest.err
15143 rm -f conftest.er1
15144 cat conftest.err >&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
b4e70030
JB
15147 { ac_try='test -z "$ac_c_werror_flag"
15148 || test ! -s conftest.err'
bec39cab
AC
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15151 ac_status=$?
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; } &&
15154 { ac_try='test -s conftest.$ac_objext'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; }; then
15160 ac_header_compiler=yes
15161else
15162 echo "$as_me: failed program was:" >&5
15163sed 's/^/| /' conftest.$ac_ext >&5
15164
b4e70030 15165ac_header_compiler=no
bec39cab
AC
15166fi
15167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15168echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15169echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15170
15171# Is the header present?
b4e70030
JB
15172echo "$as_me:$LINENO: checking $ac_header presence" >&5
15173echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15174cat >conftest.$ac_ext <<_ACEOF
15175/* confdefs.h. */
15176_ACEOF
15177cat confdefs.h >>conftest.$ac_ext
15178cat >>conftest.$ac_ext <<_ACEOF
15179/* end confdefs.h. */
15180#include <$ac_header>
15181_ACEOF
15182if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15184 ac_status=$?
15185 grep -v '^ *+' conftest.er1 >conftest.err
15186 rm -f conftest.er1
15187 cat conftest.err >&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } >/dev/null; then
15190 if test -s conftest.err; then
15191 ac_cpp_err=$ac_c_preproc_warn_flag
15192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15193 else
15194 ac_cpp_err=
15195 fi
15196else
15197 ac_cpp_err=yes
9608ab8b 15198fi
bec39cab
AC
15199if test -z "$ac_cpp_err"; then
15200 ac_header_preproc=yes
9608ab8b 15201else
bec39cab
AC
15202 echo "$as_me: failed program was:" >&5
15203sed 's/^/| /' conftest.$ac_ext >&5
15204
15205 ac_header_preproc=no
9608ab8b 15206fi
bec39cab 15207rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15208echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15209echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 15210
bec39cab
AC
15211# So? What about this header?
15212case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15213 yes:no: )
15214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15215echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15217echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15218 ac_header_preproc=yes
15219 ;;
15220 no:yes:* )
15221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15222echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15224echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15226echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15228echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15230echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15232echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15233 (
15234 cat <<\_ASBOX
15235## ------------------------------------------ ##
15236## Report this to the AC_PACKAGE_NAME lists. ##
15237## ------------------------------------------ ##
15238_ASBOX
15239 ) |
15240 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15241 ;;
15242esac
b4e70030
JB
15243echo "$as_me:$LINENO: checking for $ac_header" >&5
15244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15245if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15246 echo $ECHO_N "(cached) $ECHO_C" >&6
15247else
15248 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 15249fi
b4e70030
JB
15250echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15251echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15252
9608ab8b 15253fi
bec39cab
AC
15254if test `eval echo '${'$as_ac_Header'}'` = yes; then
15255 cat >>confdefs.h <<_ACEOF
15256#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15257_ACEOF
15258
9608ab8b 15259fi
bec39cab 15260
5ee754fc 15261done
9608ab8b 15262
bec39cab
AC
15263
15264for ac_header in unistd.h
78434e59 15265do
bec39cab 15266as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15267if eval "test \"\${$as_ac_Header+set}\" = set"; then
15268 echo "$as_me:$LINENO: checking for $ac_header" >&5
15269echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15270if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15271 echo $ECHO_N "(cached) $ECHO_C" >&6
15272fi
b4e70030
JB
15273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15274echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15275else
15276 # Is the header compilable?
b4e70030
JB
15277echo "$as_me:$LINENO: checking $ac_header usability" >&5
15278echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15279cat >conftest.$ac_ext <<_ACEOF
15280/* confdefs.h. */
15281_ACEOF
15282cat confdefs.h >>conftest.$ac_ext
15283cat >>conftest.$ac_ext <<_ACEOF
15284/* end confdefs.h. */
15285$ac_includes_default
15286#include <$ac_header>
15287_ACEOF
15288rm -f conftest.$ac_objext
15289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15290 (eval $ac_compile) 2>conftest.er1
15291 ac_status=$?
15292 grep -v '^ *+' conftest.er1 >conftest.err
15293 rm -f conftest.er1
15294 cat conftest.err >&5
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); } &&
b4e70030
JB
15297 { ac_try='test -z "$ac_c_werror_flag"
15298 || test ! -s conftest.err'
bec39cab
AC
15299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15300 (eval $ac_try) 2>&5
15301 ac_status=$?
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); }; } &&
15304 { ac_try='test -s conftest.$ac_objext'
15305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15306 (eval $ac_try) 2>&5
15307 ac_status=$?
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); }; }; then
15310 ac_header_compiler=yes
15311else
15312 echo "$as_me: failed program was:" >&5
15313sed 's/^/| /' conftest.$ac_ext >&5
15314
b4e70030 15315ac_header_compiler=no
bec39cab
AC
15316fi
15317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15318echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15319echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15320
15321# Is the header present?
b4e70030
JB
15322echo "$as_me:$LINENO: checking $ac_header presence" >&5
15323echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15324cat >conftest.$ac_ext <<_ACEOF
15325/* confdefs.h. */
15326_ACEOF
15327cat confdefs.h >>conftest.$ac_ext
15328cat >>conftest.$ac_ext <<_ACEOF
15329/* end confdefs.h. */
15330#include <$ac_header>
15331_ACEOF
15332if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15334 ac_status=$?
15335 grep -v '^ *+' conftest.er1 >conftest.err
15336 rm -f conftest.er1
15337 cat conftest.err >&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); } >/dev/null; then
15340 if test -s conftest.err; then
15341 ac_cpp_err=$ac_c_preproc_warn_flag
15342 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15343 else
15344 ac_cpp_err=
15345 fi
15346else
15347 ac_cpp_err=yes
78434e59 15348fi
bec39cab
AC
15349if test -z "$ac_cpp_err"; then
15350 ac_header_preproc=yes
78434e59 15351else
bec39cab
AC
15352 echo "$as_me: failed program was:" >&5
15353sed 's/^/| /' conftest.$ac_ext >&5
15354
15355 ac_header_preproc=no
78434e59 15356fi
bec39cab 15357rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15358echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15359echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 15360
bec39cab
AC
15361# So? What about this header?
15362case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15363 yes:no: )
15364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15365echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15367echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15368 ac_header_preproc=yes
15369 ;;
15370 no:yes:* )
15371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15372echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15374echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15376echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15378echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15380echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15382echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15383 (
15384 cat <<\_ASBOX
15385## ------------------------------------------ ##
15386## Report this to the AC_PACKAGE_NAME lists. ##
15387## ------------------------------------------ ##
15388_ASBOX
15389 ) |
15390 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15391 ;;
15392esac
b4e70030
JB
15393echo "$as_me:$LINENO: checking for $ac_header" >&5
15394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15395if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15396 echo $ECHO_N "(cached) $ECHO_C" >&6
15397else
15398 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 15399fi
b4e70030
JB
15400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15401echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15402
086ec9eb 15403fi
bec39cab
AC
15404if test `eval echo '${'$as_ac_Header'}'` = yes; then
15405 cat >>confdefs.h <<_ACEOF
15406#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15407_ACEOF
15408
086ec9eb 15409fi
bec39cab 15410
086ec9eb
MK
15411done
15412
9608ab8b 15413
b1d19a62 15414# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
15415# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
15416# think that we don't have <curses.h> if we're using GCC.
15417case $host_os in
b1d19a62 15418 solaris2.[789])
5ee754fc 15419 if test "$GCC" = yes; then
bec39cab
AC
15420
15421cat >>confdefs.h <<\_ACEOF
5ee754fc 15422#define _MSE_INT_H 1
bec39cab 15423_ACEOF
5ee754fc
MK
15424
15425 fi ;;
15426esac
bec39cab
AC
15427
15428
15429
15430
15431for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 15432do
bec39cab 15433as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15434if eval "test \"\${$as_ac_Header+set}\" = set"; then
15435 echo "$as_me:$LINENO: checking for $ac_header" >&5
15436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15437if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15438 echo $ECHO_N "(cached) $ECHO_C" >&6
15439fi
b4e70030
JB
15440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15442else
15443 # Is the header compilable?
b4e70030
JB
15444echo "$as_me:$LINENO: checking $ac_header usability" >&5
15445echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15446cat >conftest.$ac_ext <<_ACEOF
15447/* confdefs.h. */
15448_ACEOF
15449cat confdefs.h >>conftest.$ac_ext
15450cat >>conftest.$ac_ext <<_ACEOF
15451/* end confdefs.h. */
15452$ac_includes_default
15453#include <$ac_header>
15454_ACEOF
15455rm -f conftest.$ac_objext
15456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15457 (eval $ac_compile) 2>conftest.er1
15458 ac_status=$?
15459 grep -v '^ *+' conftest.er1 >conftest.err
15460 rm -f conftest.er1
15461 cat conftest.err >&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } &&
b4e70030
JB
15464 { ac_try='test -z "$ac_c_werror_flag"
15465 || test ! -s conftest.err'
bec39cab
AC
15466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467 (eval $ac_try) 2>&5
15468 ac_status=$?
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); }; } &&
15471 { ac_try='test -s conftest.$ac_objext'
15472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473 (eval $ac_try) 2>&5
15474 ac_status=$?
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; }; then
15477 ac_header_compiler=yes
15478else
15479 echo "$as_me: failed program was:" >&5
15480sed 's/^/| /' conftest.$ac_ext >&5
15481
b4e70030 15482ac_header_compiler=no
bec39cab
AC
15483fi
15484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15485echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15486echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15487
15488# Is the header present?
b4e70030
JB
15489echo "$as_me:$LINENO: checking $ac_header presence" >&5
15490echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15491cat >conftest.$ac_ext <<_ACEOF
15492/* confdefs.h. */
15493_ACEOF
15494cat confdefs.h >>conftest.$ac_ext
15495cat >>conftest.$ac_ext <<_ACEOF
15496/* end confdefs.h. */
15497#include <$ac_header>
15498_ACEOF
15499if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15501 ac_status=$?
15502 grep -v '^ *+' conftest.er1 >conftest.err
15503 rm -f conftest.er1
15504 cat conftest.err >&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); } >/dev/null; then
15507 if test -s conftest.err; then
15508 ac_cpp_err=$ac_c_preproc_warn_flag
15509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15510 else
15511 ac_cpp_err=
15512 fi
15513else
15514 ac_cpp_err=yes
c906108c 15515fi
bec39cab
AC
15516if test -z "$ac_cpp_err"; then
15517 ac_header_preproc=yes
15518else
15519 echo "$as_me: failed program was:" >&5
15520sed 's/^/| /' conftest.$ac_ext >&5
15521
15522 ac_header_preproc=no
c906108c 15523fi
bec39cab 15524rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15525echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15526echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
15527
15528# So? What about this header?
15529case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15530 yes:no: )
15531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15532echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15534echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15535 ac_header_preproc=yes
15536 ;;
15537 no:yes:* )
15538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15539echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15541echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15542 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15543echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15544 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15545echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15547echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15548 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15549echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15550 (
15551 cat <<\_ASBOX
15552## ------------------------------------------ ##
15553## Report this to the AC_PACKAGE_NAME lists. ##
15554## ------------------------------------------ ##
15555_ASBOX
15556 ) |
15557 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15558 ;;
15559esac
b4e70030
JB
15560echo "$as_me:$LINENO: checking for $ac_header" >&5
15561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15562if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15563 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 15564else
bec39cab 15565 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 15566fi
b4e70030
JB
15567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15569
15570fi
15571if test `eval echo '${'$as_ac_Header'}'` = yes; then
15572 cat >>confdefs.h <<_ACEOF
15573#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15574_ACEOF
15575
15576fi
15577
5ee754fc 15578done
c906108c 15579
bec39cab 15580
065a1afc 15581for ac_header in ncurses/term.h
3b78cdbb 15582do
bec39cab 15583as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15584if eval "test \"\${$as_ac_Header+set}\" = set"; then
15585 echo "$as_me:$LINENO: checking for $ac_header" >&5
15586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15587if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15588 echo $ECHO_N "(cached) $ECHO_C" >&6
15589fi
b4e70030
JB
15590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15591echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15592else
15593 # Is the header compilable?
b4e70030
JB
15594echo "$as_me:$LINENO: checking $ac_header usability" >&5
15595echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15596cat >conftest.$ac_ext <<_ACEOF
15597/* confdefs.h. */
15598_ACEOF
15599cat confdefs.h >>conftest.$ac_ext
15600cat >>conftest.$ac_ext <<_ACEOF
15601/* end confdefs.h. */
15602$ac_includes_default
15603#include <$ac_header>
15604_ACEOF
15605rm -f conftest.$ac_objext
15606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15607 (eval $ac_compile) 2>conftest.er1
15608 ac_status=$?
15609 grep -v '^ *+' conftest.er1 >conftest.err
15610 rm -f conftest.er1
15611 cat conftest.err >&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); } &&
b4e70030
JB
15614 { ac_try='test -z "$ac_c_werror_flag"
15615 || test ! -s conftest.err'
bec39cab
AC
15616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15617 (eval $ac_try) 2>&5
15618 ac_status=$?
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); }; } &&
15621 { ac_try='test -s conftest.$ac_objext'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15624 ac_status=$?
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; }; then
15627 ac_header_compiler=yes
15628else
15629 echo "$as_me: failed program was:" >&5
15630sed 's/^/| /' conftest.$ac_ext >&5
15631
b4e70030 15632ac_header_compiler=no
bec39cab
AC
15633fi
15634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15635echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15636echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15637
15638# Is the header present?
b4e70030
JB
15639echo "$as_me:$LINENO: checking $ac_header presence" >&5
15640echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15641cat >conftest.$ac_ext <<_ACEOF
15642/* confdefs.h. */
15643_ACEOF
15644cat confdefs.h >>conftest.$ac_ext
15645cat >>conftest.$ac_ext <<_ACEOF
15646/* end confdefs.h. */
15647#include <$ac_header>
15648_ACEOF
15649if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15651 ac_status=$?
15652 grep -v '^ *+' conftest.er1 >conftest.err
15653 rm -f conftest.er1
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } >/dev/null; then
15657 if test -s conftest.err; then
15658 ac_cpp_err=$ac_c_preproc_warn_flag
15659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15660 else
15661 ac_cpp_err=
15662 fi
15663else
15664 ac_cpp_err=yes
3b78cdbb 15665fi
bec39cab
AC
15666if test -z "$ac_cpp_err"; then
15667 ac_header_preproc=yes
15668else
15669 echo "$as_me: failed program was:" >&5
15670sed 's/^/| /' conftest.$ac_ext >&5
15671
15672 ac_header_preproc=no
3b78cdbb 15673fi
bec39cab 15674rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15675echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15676echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
15677
15678# So? What about this header?
15679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15680 yes:no: )
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15682echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15684echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15685 ac_header_preproc=yes
15686 ;;
15687 no:yes:* )
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15689echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15691echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15693echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15695echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15697echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15699echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15700 (
15701 cat <<\_ASBOX
15702## ------------------------------------------ ##
15703## Report this to the AC_PACKAGE_NAME lists. ##
15704## ------------------------------------------ ##
15705_ASBOX
15706 ) |
15707 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15708 ;;
15709esac
b4e70030
JB
15710echo "$as_me:$LINENO: checking for $ac_header" >&5
15711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15712if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15713 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 15714else
bec39cab
AC
15715 eval "$as_ac_Header=\$ac_header_preproc"
15716fi
b4e70030
JB
15717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15718echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15719
3b78cdbb 15720fi
bec39cab
AC
15721if test `eval echo '${'$as_ac_Header'}'` = yes; then
15722 cat >>confdefs.h <<_ACEOF
15723#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15724_ACEOF
15725
15726fi
15727
3b78cdbb
DA
15728done
15729
c906108c 15730
065a1afc
JB
15731for ac_header in term.h
15732do
15733as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15734echo "$as_me:$LINENO: checking for $ac_header" >&5
15735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15736if eval "test \"\${$as_ac_Header+set}\" = set"; then
065a1afc
JB
15737 echo $ECHO_N "(cached) $ECHO_C" >&6
15738else
15739 cat >conftest.$ac_ext <<_ACEOF
15740/* confdefs.h. */
15741_ACEOF
15742cat confdefs.h >>conftest.$ac_ext
15743cat >>conftest.$ac_ext <<_ACEOF
15744/* end confdefs.h. */
15745#if HAVE_CURSES_H
15746# include <curses.h>
15747#endif
15748
15749
15750#include <$ac_header>
15751_ACEOF
15752rm -f conftest.$ac_objext
15753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15754 (eval $ac_compile) 2>conftest.er1
15755 ac_status=$?
15756 grep -v '^ *+' conftest.er1 >conftest.err
15757 rm -f conftest.er1
15758 cat conftest.err >&5
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); } &&
b4e70030
JB
15761 { ac_try='test -z "$ac_c_werror_flag"
15762 || test ! -s conftest.err'
065a1afc
JB
15763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15764 (eval $ac_try) 2>&5
15765 ac_status=$?
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); }; } &&
15768 { ac_try='test -s conftest.$ac_objext'
15769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15770 (eval $ac_try) 2>&5
15771 ac_status=$?
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; }; then
15774 eval "$as_ac_Header=yes"
15775else
15776 echo "$as_me: failed program was:" >&5
15777sed 's/^/| /' conftest.$ac_ext >&5
15778
b4e70030 15779eval "$as_ac_Header=no"
065a1afc
JB
15780fi
15781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15782fi
b4e70030
JB
15783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15784echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
065a1afc
JB
15785if test `eval echo '${'$as_ac_Header'}'` = yes; then
15786 cat >>confdefs.h <<_ACEOF
15787#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15788_ACEOF
15789
15790fi
15791
15792done
15793
15794
d542061a
UW
15795# Check for HP/UX 64-bit shared library support
15796
15797for ac_header in elf_hp.h
15798do
15799as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15800if eval "test \"\${$as_ac_Header+set}\" = set"; then
15801 echo "$as_me:$LINENO: checking for $ac_header" >&5
15802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15803if eval "test \"\${$as_ac_Header+set}\" = set"; then
15804 echo $ECHO_N "(cached) $ECHO_C" >&6
15805fi
15806echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15807echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15808else
15809 # Is the header compilable?
15810echo "$as_me:$LINENO: checking $ac_header usability" >&5
15811echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15812cat >conftest.$ac_ext <<_ACEOF
15813/* confdefs.h. */
15814_ACEOF
15815cat confdefs.h >>conftest.$ac_ext
15816cat >>conftest.$ac_ext <<_ACEOF
15817/* end confdefs.h. */
15818$ac_includes_default
15819#include <$ac_header>
15820_ACEOF
15821rm -f conftest.$ac_objext
15822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15823 (eval $ac_compile) 2>conftest.er1
15824 ac_status=$?
15825 grep -v '^ *+' conftest.er1 >conftest.err
15826 rm -f conftest.er1
15827 cat conftest.err >&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); } &&
15830 { ac_try='test -z "$ac_c_werror_flag"
15831 || test ! -s conftest.err'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15834 ac_status=$?
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; } &&
15837 { ac_try='test -s conftest.$ac_objext'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15840 ac_status=$?
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; }; then
15843 ac_header_compiler=yes
15844else
15845 echo "$as_me: failed program was:" >&5
15846sed 's/^/| /' conftest.$ac_ext >&5
15847
15848ac_header_compiler=no
15849fi
15850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15851echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15852echo "${ECHO_T}$ac_header_compiler" >&6
15853
15854# Is the header present?
15855echo "$as_me:$LINENO: checking $ac_header presence" >&5
15856echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15857cat >conftest.$ac_ext <<_ACEOF
15858/* confdefs.h. */
15859_ACEOF
15860cat confdefs.h >>conftest.$ac_ext
15861cat >>conftest.$ac_ext <<_ACEOF
15862/* end confdefs.h. */
15863#include <$ac_header>
15864_ACEOF
15865if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15867 ac_status=$?
15868 grep -v '^ *+' conftest.er1 >conftest.err
15869 rm -f conftest.er1
15870 cat conftest.err >&5
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); } >/dev/null; then
15873 if test -s conftest.err; then
15874 ac_cpp_err=$ac_c_preproc_warn_flag
15875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15876 else
15877 ac_cpp_err=
15878 fi
15879else
15880 ac_cpp_err=yes
15881fi
15882if test -z "$ac_cpp_err"; then
15883 ac_header_preproc=yes
15884else
15885 echo "$as_me: failed program was:" >&5
15886sed 's/^/| /' conftest.$ac_ext >&5
15887
15888 ac_header_preproc=no
15889fi
15890rm -f conftest.err conftest.$ac_ext
15891echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15892echo "${ECHO_T}$ac_header_preproc" >&6
15893
15894# So? What about this header?
15895case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15896 yes:no: )
15897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15898echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15900echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15901 ac_header_preproc=yes
15902 ;;
15903 no:yes:* )
15904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15905echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15907echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15908 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15909echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15910 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15911echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15913echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15915echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15916 (
15917 cat <<\_ASBOX
15918## ------------------------------------------ ##
15919## Report this to the AC_PACKAGE_NAME lists. ##
15920## ------------------------------------------ ##
15921_ASBOX
15922 ) |
15923 sed "s/^/$as_me: WARNING: /" >&2
15924 ;;
15925esac
15926echo "$as_me:$LINENO: checking for $ac_header" >&5
15927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15928if eval "test \"\${$as_ac_Header+set}\" = set"; then
15929 echo $ECHO_N "(cached) $ECHO_C" >&6
15930else
15931 eval "$as_ac_Header=\$ac_header_preproc"
15932fi
15933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15935
15936fi
15937if test `eval echo '${'$as_ac_Header'}'` = yes; then
15938 cat >>confdefs.h <<_ACEOF
15939#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15940_ACEOF
15941
15942fi
15943
15944done
15945
15946
5ee754fc
MK
15947# FIXME: kettenis/20030102: In most cases we include these
15948# unconditionally, so what's the point in checking these?
bec39cab
AC
15949
15950
15951for ac_header in ctype.h time.h
c906108c 15952do
bec39cab 15953as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15954if eval "test \"\${$as_ac_Header+set}\" = set"; then
15955 echo "$as_me:$LINENO: checking for $ac_header" >&5
15956echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15957if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15958 echo $ECHO_N "(cached) $ECHO_C" >&6
15959fi
b4e70030
JB
15960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15961echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15962else
15963 # Is the header compilable?
b4e70030
JB
15964echo "$as_me:$LINENO: checking $ac_header usability" >&5
15965echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15966cat >conftest.$ac_ext <<_ACEOF
15967/* confdefs.h. */
15968_ACEOF
15969cat confdefs.h >>conftest.$ac_ext
15970cat >>conftest.$ac_ext <<_ACEOF
15971/* end confdefs.h. */
15972$ac_includes_default
15973#include <$ac_header>
15974_ACEOF
15975rm -f conftest.$ac_objext
15976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15977 (eval $ac_compile) 2>conftest.er1
15978 ac_status=$?
15979 grep -v '^ *+' conftest.er1 >conftest.err
15980 rm -f conftest.er1
15981 cat conftest.err >&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
b4e70030
JB
15984 { ac_try='test -z "$ac_c_werror_flag"
15985 || test ! -s conftest.err'
bec39cab
AC
15986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987 (eval $ac_try) 2>&5
15988 ac_status=$?
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); }; } &&
15991 { ac_try='test -s conftest.$ac_objext'
15992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993 (eval $ac_try) 2>&5
15994 ac_status=$?
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; }; then
15997 ac_header_compiler=yes
15998else
15999 echo "$as_me: failed program was:" >&5
16000sed 's/^/| /' conftest.$ac_ext >&5
16001
b4e70030 16002ac_header_compiler=no
bec39cab
AC
16003fi
16004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
16005echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16006echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
16007
16008# Is the header present?
b4e70030
JB
16009echo "$as_me:$LINENO: checking $ac_header presence" >&5
16010echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
16011cat >conftest.$ac_ext <<_ACEOF
16012/* confdefs.h. */
16013_ACEOF
16014cat confdefs.h >>conftest.$ac_ext
16015cat >>conftest.$ac_ext <<_ACEOF
16016/* end confdefs.h. */
16017#include <$ac_header>
16018_ACEOF
16019if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16021 ac_status=$?
16022 grep -v '^ *+' conftest.er1 >conftest.err
16023 rm -f conftest.er1
16024 cat conftest.err >&5
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); } >/dev/null; then
16027 if test -s conftest.err; then
16028 ac_cpp_err=$ac_c_preproc_warn_flag
16029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16030 else
16031 ac_cpp_err=
16032 fi
16033else
16034 ac_cpp_err=yes
c906108c 16035fi
bec39cab
AC
16036if test -z "$ac_cpp_err"; then
16037 ac_header_preproc=yes
16038else
16039 echo "$as_me: failed program was:" >&5
16040sed 's/^/| /' conftest.$ac_ext >&5
16041
16042 ac_header_preproc=no
c906108c 16043fi
bec39cab 16044rm -f conftest.err conftest.$ac_ext
b4e70030
JB
16045echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16046echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
16047
16048# So? What about this header?
16049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16050 yes:no: )
16051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16052echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16054echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16055 ac_header_preproc=yes
16056 ;;
16057 no:yes:* )
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16059echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16061echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16063echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16065echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16067echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16069echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
16070 (
16071 cat <<\_ASBOX
16072## ------------------------------------------ ##
16073## Report this to the AC_PACKAGE_NAME lists. ##
16074## ------------------------------------------ ##
16075_ASBOX
16076 ) |
16077 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
16078 ;;
16079esac
b4e70030
JB
16080echo "$as_me:$LINENO: checking for $ac_header" >&5
16081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16082if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 16083 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 16084else
bec39cab
AC
16085 eval "$as_ac_Header=\$ac_header_preproc"
16086fi
b4e70030
JB
16087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16088echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
16089
16090fi
16091if test `eval echo '${'$as_ac_Header'}'` = yes; then
16092 cat >>confdefs.h <<_ACEOF
16093#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16094_ACEOF
16095
c906108c 16096fi
bec39cab 16097
c906108c
SS
16098done
16099
5ee754fc 16100
d5af19ba
DJ
16101# ------------------------- #
16102# Checks for declarations. #
16103# ------------------------- #
4e8d927d 16104
d5af19ba
DJ
16105echo "$as_me:$LINENO: checking whether free is declared" >&5
16106echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16107if test "${ac_cv_have_decl_free+set}" = set; then
bec39cab 16108 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 16109else
bec39cab
AC
16110 cat >conftest.$ac_ext <<_ACEOF
16111/* confdefs.h. */
16112_ACEOF
16113cat confdefs.h >>conftest.$ac_ext
16114cat >>conftest.$ac_ext <<_ACEOF
16115/* end confdefs.h. */
d5af19ba 16116$ac_includes_default
bec39cab
AC
16117int
16118main ()
16119{
d5af19ba
DJ
16120#ifndef free
16121 char *p = (char *) free;
16122#endif
16123
4e8d927d 16124 ;
bec39cab
AC
16125 return 0;
16126}
16127_ACEOF
16128rm -f conftest.$ac_objext
16129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16130 (eval $ac_compile) 2>conftest.er1
16131 ac_status=$?
16132 grep -v '^ *+' conftest.er1 >conftest.err
16133 rm -f conftest.er1
16134 cat conftest.err >&5
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); } &&
b4e70030
JB
16137 { ac_try='test -z "$ac_c_werror_flag"
16138 || test ! -s conftest.err'
bec39cab
AC
16139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140 (eval $ac_try) 2>&5
16141 ac_status=$?
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; } &&
16144 { ac_try='test -s conftest.$ac_objext'
16145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146 (eval $ac_try) 2>&5
16147 ac_status=$?
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; }; then
d5af19ba 16150 ac_cv_have_decl_free=yes
40a7debc 16151else
bec39cab
AC
16152 echo "$as_me: failed program was:" >&5
16153sed 's/^/| /' conftest.$ac_ext >&5
16154
d5af19ba 16155ac_cv_have_decl_free=no
40a7debc 16156fi
bec39cab 16157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 16158fi
d5af19ba
DJ
16159echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16160echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16161if test $ac_cv_have_decl_free = yes; then
16162
16163cat >>confdefs.h <<_ACEOF
16164#define HAVE_DECL_FREE 1
16165_ACEOF
16166
16167
666ec76f 16168else
d5af19ba
DJ
16169 cat >>confdefs.h <<_ACEOF
16170#define HAVE_DECL_FREE 0
16171_ACEOF
16172
4e8d927d 16173
d5af19ba
DJ
16174fi
16175echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16176echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16177if test "${ac_cv_have_decl_malloc+set}" = set; then
bec39cab
AC
16178 echo $ECHO_N "(cached) $ECHO_C" >&6
16179else
16180 cat >conftest.$ac_ext <<_ACEOF
16181/* confdefs.h. */
16182_ACEOF
16183cat confdefs.h >>conftest.$ac_ext
16184cat >>conftest.$ac_ext <<_ACEOF
16185/* end confdefs.h. */
d5af19ba 16186$ac_includes_default
666ec76f
MK
16187int
16188main ()
16189{
d5af19ba
DJ
16190#ifndef malloc
16191 char *p = (char *) malloc;
16192#endif
16193
666ec76f
MK
16194 ;
16195 return 0;
16196}
16197_ACEOF
16198rm -f conftest.$ac_objext
16199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16200 (eval $ac_compile) 2>conftest.er1
16201 ac_status=$?
16202 grep -v '^ *+' conftest.er1 >conftest.err
16203 rm -f conftest.er1
16204 cat conftest.err >&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); } &&
b4e70030
JB
16207 { ac_try='test -z "$ac_c_werror_flag"
16208 || test ! -s conftest.err'
666ec76f
MK
16209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210 (eval $ac_try) 2>&5
16211 ac_status=$?
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; } &&
16214 { ac_try='test -s conftest.$ac_objext'
16215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216 (eval $ac_try) 2>&5
16217 ac_status=$?
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; }; then
d5af19ba 16220 ac_cv_have_decl_malloc=yes
666ec76f
MK
16221else
16222 echo "$as_me: failed program was:" >&5
16223sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 16224
d5af19ba 16225ac_cv_have_decl_malloc=no
a3828db0
MK
16226fi
16227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16228fi
d5af19ba
DJ
16229echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16230echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
16231if test $ac_cv_have_decl_malloc = yes; then
16232
16233cat >>confdefs.h <<_ACEOF
16234#define HAVE_DECL_MALLOC 1
16235_ACEOF
16236
16237
a3828db0 16238else
d5af19ba
DJ
16239 cat >>confdefs.h <<_ACEOF
16240#define HAVE_DECL_MALLOC 0
16241_ACEOF
16242
4e8d927d 16243
d5af19ba
DJ
16244fi
16245echo "$as_me:$LINENO: checking whether realloc is declared" >&5
16246echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
16247if test "${ac_cv_have_decl_realloc+set}" = set; then
a3828db0
MK
16248 echo $ECHO_N "(cached) $ECHO_C" >&6
16249else
16250 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
16251/* confdefs.h. */
16252_ACEOF
16253cat confdefs.h >>conftest.$ac_ext
16254cat >>conftest.$ac_ext <<_ACEOF
16255/* end confdefs.h. */
d5af19ba 16256$ac_includes_default
bec39cab
AC
16257int
16258main ()
16259{
d5af19ba
DJ
16260#ifndef realloc
16261 char *p = (char *) realloc;
16262#endif
16263
bec39cab
AC
16264 ;
16265 return 0;
16266}
16267_ACEOF
16268rm -f conftest.$ac_objext
16269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16270 (eval $ac_compile) 2>conftest.er1
16271 ac_status=$?
16272 grep -v '^ *+' conftest.er1 >conftest.err
16273 rm -f conftest.er1
16274 cat conftest.err >&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } &&
b4e70030
JB
16277 { ac_try='test -z "$ac_c_werror_flag"
16278 || test ! -s conftest.err'
bec39cab
AC
16279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280 (eval $ac_try) 2>&5
16281 ac_status=$?
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; } &&
16284 { ac_try='test -s conftest.$ac_objext'
16285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286 (eval $ac_try) 2>&5
16287 ac_status=$?
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
d5af19ba 16290 ac_cv_have_decl_realloc=yes
b9362cc7 16291else
bec39cab
AC
16292 echo "$as_me: failed program was:" >&5
16293sed 's/^/| /' conftest.$ac_ext >&5
16294
d5af19ba 16295ac_cv_have_decl_realloc=no
4e8d927d 16296fi
4e8d927d
DJ
16297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16298fi
b4e70030
JB
16299echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
16300echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
4e8d927d
DJ
16301if test $ac_cv_have_decl_realloc = yes; then
16302
16303cat >>confdefs.h <<_ACEOF
16304#define HAVE_DECL_REALLOC 1
16305_ACEOF
16306
16307
16308else
16309 cat >>confdefs.h <<_ACEOF
16310#define HAVE_DECL_REALLOC 0
16311_ACEOF
16312
16313
16314fi
16315
16316
b4e70030
JB
16317echo "$as_me:$LINENO: checking whether strerror is declared" >&5
16318echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
4e8d927d
DJ
16319if test "${ac_cv_have_decl_strerror+set}" = set; then
16320 echo $ECHO_N "(cached) $ECHO_C" >&6
16321else
16322 cat >conftest.$ac_ext <<_ACEOF
16323/* confdefs.h. */
16324_ACEOF
16325cat confdefs.h >>conftest.$ac_ext
16326cat >>conftest.$ac_ext <<_ACEOF
16327/* end confdefs.h. */
16328$ac_includes_default
16329int
16330main ()
16331{
16332#ifndef strerror
16333 char *p = (char *) strerror;
4e8d927d
DJ
16334#endif
16335
16336 ;
16337 return 0;
16338}
16339_ACEOF
16340rm -f conftest.$ac_objext
16341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16342 (eval $ac_compile) 2>conftest.er1
16343 ac_status=$?
16344 grep -v '^ *+' conftest.er1 >conftest.err
16345 rm -f conftest.er1
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } &&
b4e70030
JB
16349 { ac_try='test -z "$ac_c_werror_flag"
16350 || test ! -s conftest.err'
4e8d927d
DJ
16351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352 (eval $ac_try) 2>&5
16353 ac_status=$?
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; } &&
16356 { ac_try='test -s conftest.$ac_objext'
16357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358 (eval $ac_try) 2>&5
16359 ac_status=$?
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; }; then
16362 ac_cv_have_decl_strerror=yes
16363else
16364 echo "$as_me: failed program was:" >&5
16365sed 's/^/| /' conftest.$ac_ext >&5
16366
b4e70030 16367ac_cv_have_decl_strerror=no
4e8d927d 16368fi
4e8d927d
DJ
16369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16370fi
b4e70030
JB
16371echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
16372echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
4e8d927d
DJ
16373if test $ac_cv_have_decl_strerror = yes; then
16374
16375cat >>confdefs.h <<_ACEOF
16376#define HAVE_DECL_STRERROR 1
16377_ACEOF
16378
16379
16380else
16381 cat >>confdefs.h <<_ACEOF
16382#define HAVE_DECL_STRERROR 0
16383_ACEOF
16384
16385
16386fi
b4e70030
JB
16387echo "$as_me:$LINENO: checking whether strstr is declared" >&5
16388echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
4e8d927d
DJ
16389if test "${ac_cv_have_decl_strstr+set}" = set; then
16390 echo $ECHO_N "(cached) $ECHO_C" >&6
16391else
16392 cat >conftest.$ac_ext <<_ACEOF
16393/* confdefs.h. */
16394_ACEOF
16395cat confdefs.h >>conftest.$ac_ext
16396cat >>conftest.$ac_ext <<_ACEOF
16397/* end confdefs.h. */
16398$ac_includes_default
16399int
16400main ()
16401{
16402#ifndef strstr
16403 char *p = (char *) strstr;
4e8d927d
DJ
16404#endif
16405
16406 ;
16407 return 0;
16408}
16409_ACEOF
16410rm -f conftest.$ac_objext
16411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16412 (eval $ac_compile) 2>conftest.er1
16413 ac_status=$?
16414 grep -v '^ *+' conftest.er1 >conftest.err
16415 rm -f conftest.er1
16416 cat conftest.err >&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); } &&
b4e70030
JB
16419 { ac_try='test -z "$ac_c_werror_flag"
16420 || test ! -s conftest.err'
4e8d927d
DJ
16421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16422 (eval $ac_try) 2>&5
16423 ac_status=$?
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); }; } &&
16426 { ac_try='test -s conftest.$ac_objext'
16427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428 (eval $ac_try) 2>&5
16429 ac_status=$?
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; }; then
16432 ac_cv_have_decl_strstr=yes
16433else
16434 echo "$as_me: failed program was:" >&5
16435sed 's/^/| /' conftest.$ac_ext >&5
16436
b4e70030 16437ac_cv_have_decl_strstr=no
4e8d927d 16438fi
4e8d927d
DJ
16439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16440fi
b4e70030
JB
16441echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
16442echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
4e8d927d
DJ
16443if test $ac_cv_have_decl_strstr = yes; then
16444
16445cat >>confdefs.h <<_ACEOF
16446#define HAVE_DECL_STRSTR 1
16447_ACEOF
16448
16449
16450else
16451 cat >>confdefs.h <<_ACEOF
16452#define HAVE_DECL_STRSTR 0
16453_ACEOF
16454
16455
16456fi
16457
16458
b4e70030
JB
16459echo "$as_me:$LINENO: checking whether getopt is declared" >&5
16460echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
4e8d927d
DJ
16461if test "${ac_cv_have_decl_getopt+set}" = set; then
16462 echo $ECHO_N "(cached) $ECHO_C" >&6
16463else
16464 cat >conftest.$ac_ext <<_ACEOF
16465/* confdefs.h. */
16466_ACEOF
16467cat confdefs.h >>conftest.$ac_ext
16468cat >>conftest.$ac_ext <<_ACEOF
16469/* end confdefs.h. */
16470$ac_includes_default
16471int
16472main ()
16473{
16474#ifndef getopt
16475 char *p = (char *) getopt;
4e8d927d
DJ
16476#endif
16477
16478 ;
16479 return 0;
16480}
16481_ACEOF
16482rm -f conftest.$ac_objext
16483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16484 (eval $ac_compile) 2>conftest.er1
16485 ac_status=$?
16486 grep -v '^ *+' conftest.er1 >conftest.err
16487 rm -f conftest.er1
16488 cat conftest.err >&5
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } &&
b4e70030
JB
16491 { ac_try='test -z "$ac_c_werror_flag"
16492 || test ! -s conftest.err'
4e8d927d
DJ
16493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16494 (eval $ac_try) 2>&5
16495 ac_status=$?
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; } &&
16498 { ac_try='test -s conftest.$ac_objext'
16499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16500 (eval $ac_try) 2>&5
16501 ac_status=$?
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; }; then
16504 ac_cv_have_decl_getopt=yes
16505else
16506 echo "$as_me: failed program was:" >&5
16507sed 's/^/| /' conftest.$ac_ext >&5
16508
b4e70030 16509ac_cv_have_decl_getopt=no
4e8d927d 16510fi
4e8d927d
DJ
16511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16512fi
b4e70030
JB
16513echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
16514echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
4e8d927d
DJ
16515if test $ac_cv_have_decl_getopt = yes; then
16516
16517cat >>confdefs.h <<_ACEOF
16518#define HAVE_DECL_GETOPT 1
16519_ACEOF
16520
16521
16522else
16523 cat >>confdefs.h <<_ACEOF
16524#define HAVE_DECL_GETOPT 0
16525_ACEOF
16526
16527
16528fi
b4e70030
JB
16529echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16530echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
16531if test "${ac_cv_have_decl_snprintf+set}" = set; then
16532 echo $ECHO_N "(cached) $ECHO_C" >&6
16533else
16534 cat >conftest.$ac_ext <<_ACEOF
16535/* confdefs.h. */
16536_ACEOF
16537cat confdefs.h >>conftest.$ac_ext
16538cat >>conftest.$ac_ext <<_ACEOF
16539/* end confdefs.h. */
16540$ac_includes_default
16541int
16542main ()
16543{
16544#ifndef snprintf
16545 char *p = (char *) snprintf;
4e8d927d
DJ
16546#endif
16547
16548 ;
16549 return 0;
16550}
16551_ACEOF
16552rm -f conftest.$ac_objext
16553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16554 (eval $ac_compile) 2>conftest.er1
16555 ac_status=$?
16556 grep -v '^ *+' conftest.er1 >conftest.err
16557 rm -f conftest.er1
16558 cat conftest.err >&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); } &&
b4e70030
JB
16561 { ac_try='test -z "$ac_c_werror_flag"
16562 || test ! -s conftest.err'
4e8d927d
DJ
16563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16564 (eval $ac_try) 2>&5
16565 ac_status=$?
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); }; } &&
16568 { ac_try='test -s conftest.$ac_objext'
16569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570 (eval $ac_try) 2>&5
16571 ac_status=$?
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; }; then
16574 ac_cv_have_decl_snprintf=yes
16575else
16576 echo "$as_me: failed program was:" >&5
16577sed 's/^/| /' conftest.$ac_ext >&5
16578
b4e70030 16579ac_cv_have_decl_snprintf=no
4e8d927d 16580fi
4e8d927d
DJ
16581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16582fi
b4e70030
JB
16583echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16584echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
4e8d927d
DJ
16585if test $ac_cv_have_decl_snprintf = yes; then
16586
16587cat >>confdefs.h <<_ACEOF
16588#define HAVE_DECL_SNPRINTF 1
16589_ACEOF
16590
16591
16592else
16593 cat >>confdefs.h <<_ACEOF
16594#define HAVE_DECL_SNPRINTF 0
16595_ACEOF
16596
16597
16598fi
b4e70030
JB
16599echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16600echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
16601if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16602 echo $ECHO_N "(cached) $ECHO_C" >&6
16603else
16604 cat >conftest.$ac_ext <<_ACEOF
16605/* confdefs.h. */
16606_ACEOF
16607cat confdefs.h >>conftest.$ac_ext
16608cat >>conftest.$ac_ext <<_ACEOF
16609/* end confdefs.h. */
16610$ac_includes_default
16611int
16612main ()
16613{
16614#ifndef vsnprintf
16615 char *p = (char *) vsnprintf;
4e8d927d
DJ
16616#endif
16617
16618 ;
16619 return 0;
16620}
16621_ACEOF
16622rm -f conftest.$ac_objext
16623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16624 (eval $ac_compile) 2>conftest.er1
16625 ac_status=$?
16626 grep -v '^ *+' conftest.er1 >conftest.err
16627 rm -f conftest.er1
16628 cat conftest.err >&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } &&
b4e70030
JB
16631 { ac_try='test -z "$ac_c_werror_flag"
16632 || test ! -s conftest.err'
4e8d927d
DJ
16633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16634 (eval $ac_try) 2>&5
16635 ac_status=$?
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; } &&
16638 { ac_try='test -s conftest.$ac_objext'
16639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16640 (eval $ac_try) 2>&5
16641 ac_status=$?
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; }; then
16644 ac_cv_have_decl_vsnprintf=yes
16645else
16646 echo "$as_me: failed program was:" >&5
16647sed 's/^/| /' conftest.$ac_ext >&5
16648
b4e70030 16649ac_cv_have_decl_vsnprintf=no
4e8d927d 16650fi
4e8d927d
DJ
16651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16652fi
b4e70030
JB
16653echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16654echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
4e8d927d
DJ
16655if test $ac_cv_have_decl_vsnprintf = yes; then
16656
16657cat >>confdefs.h <<_ACEOF
16658#define HAVE_DECL_VSNPRINTF 1
16659_ACEOF
16660
16661
16662else
16663 cat >>confdefs.h <<_ACEOF
16664#define HAVE_DECL_VSNPRINTF 0
16665_ACEOF
16666
16667
16668fi
16669
16670
16671
16672# ----------------------- #
16673# Checks for structures. #
16674# ----------------------- #
16675
b4e70030
JB
16676echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16677echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4e8d927d
DJ
16678if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16679 echo $ECHO_N "(cached) $ECHO_C" >&6
16680else
16681 cat >conftest.$ac_ext <<_ACEOF
16682/* confdefs.h. */
16683_ACEOF
16684cat confdefs.h >>conftest.$ac_ext
16685cat >>conftest.$ac_ext <<_ACEOF
16686/* end confdefs.h. */
16687$ac_includes_default
16688int
16689main ()
16690{
16691static struct stat ac_aggr;
16692if (ac_aggr.st_blocks)
16693return 0;
16694 ;
16695 return 0;
16696}
16697_ACEOF
16698rm -f conftest.$ac_objext
16699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16700 (eval $ac_compile) 2>conftest.er1
16701 ac_status=$?
16702 grep -v '^ *+' conftest.er1 >conftest.err
16703 rm -f conftest.er1
16704 cat conftest.err >&5
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); } &&
b4e70030
JB
16707 { ac_try='test -z "$ac_c_werror_flag"
16708 || test ! -s conftest.err'
4e8d927d
DJ
16709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710 (eval $ac_try) 2>&5
16711 ac_status=$?
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; } &&
16714 { ac_try='test -s conftest.$ac_objext'
16715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716 (eval $ac_try) 2>&5
16717 ac_status=$?
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; }; then
16720 ac_cv_member_struct_stat_st_blocks=yes
16721else
16722 echo "$as_me: failed program was:" >&5
16723sed 's/^/| /' conftest.$ac_ext >&5
16724
b4e70030 16725cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
16726/* confdefs.h. */
16727_ACEOF
16728cat confdefs.h >>conftest.$ac_ext
16729cat >>conftest.$ac_ext <<_ACEOF
16730/* end confdefs.h. */
16731$ac_includes_default
16732int
16733main ()
16734{
16735static struct stat ac_aggr;
16736if (sizeof ac_aggr.st_blocks)
16737return 0;
16738 ;
16739 return 0;
16740}
16741_ACEOF
16742rm -f conftest.$ac_objext
16743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16744 (eval $ac_compile) 2>conftest.er1
16745 ac_status=$?
16746 grep -v '^ *+' conftest.er1 >conftest.err
16747 rm -f conftest.er1
16748 cat conftest.err >&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } &&
b4e70030
JB
16751 { ac_try='test -z "$ac_c_werror_flag"
16752 || test ! -s conftest.err'
4e8d927d
DJ
16753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754 (eval $ac_try) 2>&5
16755 ac_status=$?
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; } &&
16758 { ac_try='test -s conftest.$ac_objext'
16759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16761 ac_status=$?
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
16764 ac_cv_member_struct_stat_st_blocks=yes
16765else
16766 echo "$as_me: failed program was:" >&5
16767sed 's/^/| /' conftest.$ac_ext >&5
16768
b4e70030 16769ac_cv_member_struct_stat_st_blocks=no
4e8d927d 16770fi
4e8d927d
DJ
16771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16772fi
4e8d927d
DJ
16773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16774fi
b4e70030
JB
16775echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16776echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4e8d927d
DJ
16777if test $ac_cv_member_struct_stat_st_blocks = yes; then
16778
16779cat >>confdefs.h <<_ACEOF
16780#define HAVE_STRUCT_STAT_ST_BLOCKS 1
16781_ACEOF
16782
16783
16784fi
16785
b4e70030
JB
16786echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
16787echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4e8d927d
DJ
16788if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
16789 echo $ECHO_N "(cached) $ECHO_C" >&6
16790else
16791 cat >conftest.$ac_ext <<_ACEOF
16792/* confdefs.h. */
16793_ACEOF
16794cat confdefs.h >>conftest.$ac_ext
16795cat >>conftest.$ac_ext <<_ACEOF
16796/* end confdefs.h. */
16797$ac_includes_default
16798int
16799main ()
16800{
16801static struct stat ac_aggr;
16802if (ac_aggr.st_blksize)
16803return 0;
16804 ;
16805 return 0;
16806}
16807_ACEOF
16808rm -f conftest.$ac_objext
16809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16810 (eval $ac_compile) 2>conftest.er1
16811 ac_status=$?
16812 grep -v '^ *+' conftest.er1 >conftest.err
16813 rm -f conftest.er1
16814 cat conftest.err >&5
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); } &&
b4e70030
JB
16817 { ac_try='test -z "$ac_c_werror_flag"
16818 || test ! -s conftest.err'
4e8d927d
DJ
16819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820 (eval $ac_try) 2>&5
16821 ac_status=$?
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; } &&
16824 { ac_try='test -s conftest.$ac_objext'
16825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16826 (eval $ac_try) 2>&5
16827 ac_status=$?
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; }; then
16830 ac_cv_member_struct_stat_st_blksize=yes
16831else
16832 echo "$as_me: failed program was:" >&5
16833sed 's/^/| /' conftest.$ac_ext >&5
16834
b4e70030 16835cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
16836/* confdefs.h. */
16837_ACEOF
16838cat confdefs.h >>conftest.$ac_ext
16839cat >>conftest.$ac_ext <<_ACEOF
16840/* end confdefs.h. */
16841$ac_includes_default
16842int
16843main ()
16844{
16845static struct stat ac_aggr;
16846if (sizeof ac_aggr.st_blksize)
16847return 0;
16848 ;
16849 return 0;
16850}
16851_ACEOF
16852rm -f conftest.$ac_objext
16853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16854 (eval $ac_compile) 2>conftest.er1
16855 ac_status=$?
16856 grep -v '^ *+' conftest.er1 >conftest.err
16857 rm -f conftest.er1
16858 cat conftest.err >&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } &&
b4e70030
JB
16861 { ac_try='test -z "$ac_c_werror_flag"
16862 || test ! -s conftest.err'
4e8d927d
DJ
16863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864 (eval $ac_try) 2>&5
16865 ac_status=$?
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; } &&
16868 { ac_try='test -s conftest.$ac_objext'
16869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870 (eval $ac_try) 2>&5
16871 ac_status=$?
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; }; then
16874 ac_cv_member_struct_stat_st_blksize=yes
16875else
16876 echo "$as_me: failed program was:" >&5
16877sed 's/^/| /' conftest.$ac_ext >&5
16878
b4e70030 16879ac_cv_member_struct_stat_st_blksize=no
4e8d927d 16880fi
4e8d927d
DJ
16881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16882fi
4e8d927d
DJ
16883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16884fi
b4e70030
JB
16885echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
16886echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4e8d927d
DJ
16887if test $ac_cv_member_struct_stat_st_blksize = yes; then
16888
16889cat >>confdefs.h <<_ACEOF
16890#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16891_ACEOF
16892
16893
16894fi
16895
16896
16897# ------------------ #
16898# Checks for types. #
16899# ------------------ #
16900
b4e70030
JB
16901echo "$as_me:$LINENO: checking return type of signal handlers" >&5
16902echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4e8d927d
DJ
16903if test "${ac_cv_type_signal+set}" = set; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16905else
16906 cat >conftest.$ac_ext <<_ACEOF
16907/* confdefs.h. */
16908_ACEOF
16909cat confdefs.h >>conftest.$ac_ext
16910cat >>conftest.$ac_ext <<_ACEOF
16911/* end confdefs.h. */
16912#include <sys/types.h>
16913#include <signal.h>
b4e70030
JB
16914#ifdef signal
16915# undef signal
16916#endif
16917#ifdef __cplusplus
16918extern "C" void (*signal (int, void (*)(int)))(int);
16919#else
16920void (*signal ()) ();
16921#endif
4e8d927d
DJ
16922
16923int
16924main ()
16925{
b4e70030 16926int i;
4e8d927d
DJ
16927 ;
16928 return 0;
16929}
16930_ACEOF
16931rm -f conftest.$ac_objext
16932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16933 (eval $ac_compile) 2>conftest.er1
16934 ac_status=$?
16935 grep -v '^ *+' conftest.er1 >conftest.err
16936 rm -f conftest.er1
16937 cat conftest.err >&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } &&
b4e70030
JB
16940 { ac_try='test -z "$ac_c_werror_flag"
16941 || test ! -s conftest.err'
4e8d927d
DJ
16942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943 (eval $ac_try) 2>&5
16944 ac_status=$?
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; } &&
16947 { ac_try='test -s conftest.$ac_objext'
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; }; then
b4e70030 16953 ac_cv_type_signal=void
4e8d927d
DJ
16954else
16955 echo "$as_me: failed program was:" >&5
16956sed 's/^/| /' conftest.$ac_ext >&5
16957
b4e70030 16958ac_cv_type_signal=int
4e8d927d 16959fi
4e8d927d
DJ
16960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16961fi
b4e70030
JB
16962echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
16963echo "${ECHO_T}$ac_cv_type_signal" >&6
4e8d927d
DJ
16964
16965cat >>confdefs.h <<_ACEOF
16966#define RETSIGTYPE $ac_cv_type_signal
16967_ACEOF
16968
16969
b4e70030
JB
16970echo "$as_me:$LINENO: checking for socklen_t" >&5
16971echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4e8d927d
DJ
16972if test "${ac_cv_type_socklen_t+set}" = set; then
16973 echo $ECHO_N "(cached) $ECHO_C" >&6
16974else
16975 cat >conftest.$ac_ext <<_ACEOF
16976/* confdefs.h. */
16977_ACEOF
16978cat confdefs.h >>conftest.$ac_ext
16979cat >>conftest.$ac_ext <<_ACEOF
16980/* end confdefs.h. */
16981#include <sys/types.h>
16982#include <sys/socket.h>
16983
16984
4e8d927d
DJ
16985int
16986main ()
16987{
b4e70030 16988if ((socklen_t *) 0)
4e8d927d 16989 return 0;
b4e70030 16990if (sizeof (socklen_t))
4e8d927d
DJ
16991 return 0;
16992 ;
16993 return 0;
16994}
16995_ACEOF
16996rm -f conftest.$ac_objext
16997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16998 (eval $ac_compile) 2>conftest.er1
16999 ac_status=$?
17000 grep -v '^ *+' conftest.er1 >conftest.err
17001 rm -f conftest.er1
17002 cat conftest.err >&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); } &&
b4e70030
JB
17005 { ac_try='test -z "$ac_c_werror_flag"
17006 || test ! -s conftest.err'
4e8d927d
DJ
17007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17008 (eval $ac_try) 2>&5
17009 ac_status=$?
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); }; } &&
17012 { ac_try='test -s conftest.$ac_objext'
17013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17014 (eval $ac_try) 2>&5
17015 ac_status=$?
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); }; }; then
17018 ac_cv_type_socklen_t=yes
17019else
17020 echo "$as_me: failed program was:" >&5
17021sed 's/^/| /' conftest.$ac_ext >&5
17022
b4e70030 17023ac_cv_type_socklen_t=no
4e8d927d 17024fi
4e8d927d
DJ
17025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17026fi
b4e70030
JB
17027echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
17028echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4e8d927d
DJ
17029if test $ac_cv_type_socklen_t = yes; then
17030
17031cat >>confdefs.h <<_ACEOF
17032#define HAVE_SOCKLEN_T 1
17033_ACEOF
17034
17035
4e8d927d
DJ
17036fi
17037
17038
17039# ------------------------------------- #
17040# Checks for compiler characteristics. #
17041# ------------------------------------- #
17042
b4e70030
JB
17043echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17044echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4e8d927d
DJ
17045if test "${ac_cv_c_const+set}" = set; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17047else
17048 cat >conftest.$ac_ext <<_ACEOF
17049/* confdefs.h. */
17050_ACEOF
17051cat confdefs.h >>conftest.$ac_ext
17052cat >>conftest.$ac_ext <<_ACEOF
17053/* end confdefs.h. */
17054
17055int
17056main ()
17057{
17058/* FIXME: Include the comments suggested by Paul. */
17059#ifndef __cplusplus
17060 /* Ultrix mips cc rejects this. */
17061 typedef int charset[2];
17062 const charset x;
17063 /* SunOS 4.1.1 cc rejects this. */
17064 char const *const *ccp;
17065 char **p;
17066 /* NEC SVR4.0.2 mips cc rejects this. */
17067 struct point {int x, y;};
17068 static struct point const zero = {0,0};
17069 /* AIX XL C 1.02.0.0 rejects this.
17070 It does not let you subtract one const X* pointer from another in
17071 an arm of an if-expression whose if-part is not a constant
17072 expression */
17073 const char *g = "string";
17074 ccp = &g + (g ? g-g : 0);
17075 /* HPUX 7.0 cc rejects these. */
17076 ++ccp;
17077 p = (char**) ccp;
17078 ccp = (char const *const *) p;
17079 { /* SCO 3.2v4 cc rejects this. */
17080 char *t;
17081 char const *s = 0 ? (char *) 0 : (char const *) 0;
17082
17083 *t++ = 0;
4e8d927d
DJ
17084 }
17085 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17086 int x[] = {25, 17};
17087 const int *foo = &x[0];
17088 ++foo;
17089 }
17090 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17091 typedef const int *iptr;
17092 iptr p = 0;
17093 ++p;
17094 }
17095 { /* AIX XL C 1.02.0.0 rejects this saying
17096 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17097 struct s { int j; const int *ap[3]; };
17098 struct s *b; b->j = 5;
17099 }
17100 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17101 const int foo = 10;
4e8d927d 17102 }
4e8d927d
DJ
17103#endif
17104
17105 ;
17106 return 0;
17107}
17108_ACEOF
17109rm -f conftest.$ac_objext
17110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17111 (eval $ac_compile) 2>conftest.er1
17112 ac_status=$?
17113 grep -v '^ *+' conftest.er1 >conftest.err
17114 rm -f conftest.er1
17115 cat conftest.err >&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); } &&
b4e70030
JB
17118 { ac_try='test -z "$ac_c_werror_flag"
17119 || test ! -s conftest.err'
4e8d927d
DJ
17120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121 (eval $ac_try) 2>&5
17122 ac_status=$?
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; } &&
17125 { ac_try='test -s conftest.$ac_objext'
17126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17127 (eval $ac_try) 2>&5
17128 ac_status=$?
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); }; }; then
17131 ac_cv_c_const=yes
17132else
17133 echo "$as_me: failed program was:" >&5
17134sed 's/^/| /' conftest.$ac_ext >&5
17135
b4e70030 17136ac_cv_c_const=no
4e8d927d 17137fi
4e8d927d
DJ
17138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17139fi
b4e70030
JB
17140echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17141echo "${ECHO_T}$ac_cv_c_const" >&6
4e8d927d
DJ
17142if test $ac_cv_c_const = no; then
17143
17144cat >>confdefs.h <<\_ACEOF
17145#define const
17146_ACEOF
17147
17148fi
17149
b4e70030
JB
17150echo "$as_me:$LINENO: checking for inline" >&5
17151echo $ECHO_N "checking for inline... $ECHO_C" >&6
4e8d927d
DJ
17152if test "${ac_cv_c_inline+set}" = set; then
17153 echo $ECHO_N "(cached) $ECHO_C" >&6
17154else
17155 ac_cv_c_inline=no
17156for ac_kw in inline __inline__ __inline; do
17157 cat >conftest.$ac_ext <<_ACEOF
17158/* confdefs.h. */
17159_ACEOF
17160cat confdefs.h >>conftest.$ac_ext
17161cat >>conftest.$ac_ext <<_ACEOF
17162/* end confdefs.h. */
17163#ifndef __cplusplus
17164typedef int foo_t;
17165static $ac_kw foo_t static_foo () {return 0; }
17166$ac_kw foo_t foo () {return 0; }
17167#endif
17168
17169_ACEOF
17170rm -f conftest.$ac_objext
17171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17172 (eval $ac_compile) 2>conftest.er1
17173 ac_status=$?
17174 grep -v '^ *+' conftest.er1 >conftest.err
17175 rm -f conftest.er1
17176 cat conftest.err >&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); } &&
b4e70030
JB
17179 { ac_try='test -z "$ac_c_werror_flag"
17180 || test ! -s conftest.err'
4e8d927d
DJ
17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182 (eval $ac_try) 2>&5
17183 ac_status=$?
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; } &&
17186 { ac_try='test -s conftest.$ac_objext'
17187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188 (eval $ac_try) 2>&5
17189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
b4e70030 17192 ac_cv_c_inline=$ac_kw; break
4e8d927d
DJ
17193else
17194 echo "$as_me: failed program was:" >&5
17195sed 's/^/| /' conftest.$ac_ext >&5
17196
4e8d927d 17197fi
4e8d927d 17198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
17199done
17200
17201fi
b4e70030
JB
17202echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17203echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 17204
bec39cab 17205
a3828db0
MK
17206case $ac_cv_c_inline in
17207 inline | yes) ;;
17208 *)
17209 case $ac_cv_c_inline in
17210 no) ac_val=;;
17211 *) ac_val=$ac_cv_c_inline;;
17212 esac
17213 cat >>confdefs.h <<_ACEOF
17214#ifndef __cplusplus
17215#define inline $ac_val
17216#endif
17217_ACEOF
bec39cab
AC
17218 ;;
17219esac
bec39cab 17220
9b913628
TJB
17221echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17222echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17223if test "${ac_cv_c_bigendian+set}" = set; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17225else
17226 # See if sys/param.h defines the BYTE_ORDER macro.
17227cat >conftest.$ac_ext <<_ACEOF
17228/* confdefs.h. */
17229_ACEOF
17230cat confdefs.h >>conftest.$ac_ext
17231cat >>conftest.$ac_ext <<_ACEOF
17232/* end confdefs.h. */
17233#include <sys/types.h>
17234#include <sys/param.h>
17235
17236int
17237main ()
17238{
17239#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17240 bogus endian macros
17241#endif
17242
17243 ;
17244 return 0;
17245}
17246_ACEOF
17247rm -f conftest.$ac_objext
17248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17249 (eval $ac_compile) 2>conftest.er1
17250 ac_status=$?
17251 grep -v '^ *+' conftest.er1 >conftest.err
17252 rm -f conftest.er1
17253 cat conftest.err >&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } &&
17256 { ac_try='test -z "$ac_c_werror_flag"
17257 || test ! -s conftest.err'
17258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; } &&
17263 { ac_try='test -s conftest.$ac_objext'
17264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17265 (eval $ac_try) 2>&5
17266 ac_status=$?
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }; }; then
17269 # It does; now see whether it defined to BIG_ENDIAN or not.
17270cat >conftest.$ac_ext <<_ACEOF
17271/* confdefs.h. */
17272_ACEOF
17273cat confdefs.h >>conftest.$ac_ext
17274cat >>conftest.$ac_ext <<_ACEOF
17275/* end confdefs.h. */
17276#include <sys/types.h>
17277#include <sys/param.h>
17278
17279int
17280main ()
17281{
17282#if BYTE_ORDER != BIG_ENDIAN
17283 not big endian
17284#endif
17285
17286 ;
17287 return 0;
17288}
17289_ACEOF
17290rm -f conftest.$ac_objext
17291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17292 (eval $ac_compile) 2>conftest.er1
17293 ac_status=$?
17294 grep -v '^ *+' conftest.er1 >conftest.err
17295 rm -f conftest.er1
17296 cat conftest.err >&5
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); } &&
17299 { ac_try='test -z "$ac_c_werror_flag"
17300 || test ! -s conftest.err'
17301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302 (eval $ac_try) 2>&5
17303 ac_status=$?
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); }; } &&
17306 { ac_try='test -s conftest.$ac_objext'
17307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17308 (eval $ac_try) 2>&5
17309 ac_status=$?
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); }; }; then
17312 ac_cv_c_bigendian=yes
17313else
17314 echo "$as_me: failed program was:" >&5
17315sed 's/^/| /' conftest.$ac_ext >&5
17316
17317ac_cv_c_bigendian=no
17318fi
17319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17320else
17321 echo "$as_me: failed program was:" >&5
17322sed 's/^/| /' conftest.$ac_ext >&5
17323
17324# It does not; compile a test program.
17325if test "$cross_compiling" = yes; then
17326 # try to guess the endianness by grepping values into an object file
17327 ac_cv_c_bigendian=unknown
17328 cat >conftest.$ac_ext <<_ACEOF
17329/* confdefs.h. */
17330_ACEOF
17331cat confdefs.h >>conftest.$ac_ext
17332cat >>conftest.$ac_ext <<_ACEOF
17333/* end confdefs.h. */
17334short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17335short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17336void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
17337short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17338short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17339void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
17340int
17341main ()
17342{
17343 _ascii (); _ebcdic ();
17344 ;
17345 return 0;
17346}
17347_ACEOF
17348rm -f conftest.$ac_objext
17349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17350 (eval $ac_compile) 2>conftest.er1
17351 ac_status=$?
17352 grep -v '^ *+' conftest.er1 >conftest.err
17353 rm -f conftest.er1
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } &&
17357 { ac_try='test -z "$ac_c_werror_flag"
17358 || test ! -s conftest.err'
17359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360 (eval $ac_try) 2>&5
17361 ac_status=$?
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; } &&
17364 { ac_try='test -s conftest.$ac_objext'
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17367 ac_status=$?
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; }; then
17370 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
17371 ac_cv_c_bigendian=yes
17372fi
17373if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17374 if test "$ac_cv_c_bigendian" = unknown; then
17375 ac_cv_c_bigendian=no
17376 else
17377 # finding both strings is unlikely to happen, but who knows?
17378 ac_cv_c_bigendian=unknown
17379 fi
17380fi
17381else
17382 echo "$as_me: failed program was:" >&5
17383sed 's/^/| /' conftest.$ac_ext >&5
17384
17385fi
17386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17387else
17388 cat >conftest.$ac_ext <<_ACEOF
17389/* confdefs.h. */
17390_ACEOF
17391cat confdefs.h >>conftest.$ac_ext
17392cat >>conftest.$ac_ext <<_ACEOF
17393/* end confdefs.h. */
17394int
17395main ()
17396{
17397 /* Are we little or big endian? From Harbison&Steele. */
17398 union
17399 {
17400 long l;
17401 char c[sizeof (long)];
17402 } u;
17403 u.l = 1;
17404 exit (u.c[sizeof (long) - 1] == 1);
17405}
17406_ACEOF
17407rm -f conftest$ac_exeext
17408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17409 (eval $ac_link) 2>&5
17410 ac_status=$?
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17414 (eval $ac_try) 2>&5
17415 ac_status=$?
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); }; }; then
17418 ac_cv_c_bigendian=no
17419else
17420 echo "$as_me: program exited with status $ac_status" >&5
17421echo "$as_me: failed program was:" >&5
17422sed 's/^/| /' conftest.$ac_ext >&5
17423
17424( exit $ac_status )
17425ac_cv_c_bigendian=yes
17426fi
17427rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17428fi
17429fi
17430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17431fi
17432echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17433echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17434case $ac_cv_c_bigendian in
17435 yes)
17436
17437cat >>confdefs.h <<\_ACEOF
17438#define WORDS_BIGENDIAN 1
17439_ACEOF
17440 ;;
17441 no)
17442 ;;
17443 *)
17444 { { echo "$as_me:$LINENO: error: unknown endianness
17445presetting ac_cv_c_bigendian=no (or yes) will help" >&5
17446echo "$as_me: error: unknown endianness
17447presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
17448 { (exit 1); exit 1; }; } ;;
17449esac
17450
74c1b268 17451
a3828db0
MK
17452# ------------------------------ #
17453# Checks for library functions. #
17454# ------------------------------ #
bec39cab 17455
a3828db0
MK
17456# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17457# for constant arguments. Useless!
b4e70030
JB
17458echo "$as_me:$LINENO: checking for working alloca.h" >&5
17459echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
a3828db0 17460if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17462else
17463 cat >conftest.$ac_ext <<_ACEOF
17464/* confdefs.h. */
17465_ACEOF
17466cat confdefs.h >>conftest.$ac_ext
17467cat >>conftest.$ac_ext <<_ACEOF
17468/* end confdefs.h. */
a3828db0 17469#include <alloca.h>
bec39cab
AC
17470int
17471main ()
17472{
a3828db0 17473char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
17474 ;
17475 return 0;
17476}
17477_ACEOF
17478rm -f conftest.$ac_objext conftest$ac_exeext
17479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17480 (eval $ac_link) 2>conftest.er1
17481 ac_status=$?
17482 grep -v '^ *+' conftest.er1 >conftest.err
17483 rm -f conftest.er1
17484 cat conftest.err >&5
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); } &&
b4e70030
JB
17487 { ac_try='test -z "$ac_c_werror_flag"
17488 || test ! -s conftest.err'
bec39cab
AC
17489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17490 (eval $ac_try) 2>&5
17491 ac_status=$?
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); }; } &&
17494 { ac_try='test -s conftest$ac_exeext'
17495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17496 (eval $ac_try) 2>&5
17497 ac_status=$?
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; }; then
a3828db0 17500 ac_cv_working_alloca_h=yes
bec39cab
AC
17501else
17502 echo "$as_me: failed program was:" >&5
17503sed 's/^/| /' conftest.$ac_ext >&5
17504
b4e70030 17505ac_cv_working_alloca_h=no
bec39cab
AC
17506fi
17507rm -f conftest.err conftest.$ac_objext \
17508 conftest$ac_exeext conftest.$ac_ext
17509fi
b4e70030
JB
17510echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17511echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
a3828db0
MK
17512if test $ac_cv_working_alloca_h = yes; then
17513
17514cat >>confdefs.h <<\_ACEOF
17515#define HAVE_ALLOCA_H 1
bec39cab 17516_ACEOF
74c1b268 17517
74c1b268
AC
17518fi
17519
b4e70030
JB
17520echo "$as_me:$LINENO: checking for alloca" >&5
17521echo $ECHO_N "checking for alloca... $ECHO_C" >&6
a3828db0 17522if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 17523 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 17524else
bec39cab
AC
17525 cat >conftest.$ac_ext <<_ACEOF
17526/* confdefs.h. */
17527_ACEOF
17528cat confdefs.h >>conftest.$ac_ext
17529cat >>conftest.$ac_ext <<_ACEOF
17530/* end confdefs.h. */
a3828db0
MK
17531#ifdef __GNUC__
17532# define alloca __builtin_alloca
17533#else
17534# ifdef _MSC_VER
17535# include <malloc.h>
17536# define alloca _alloca
17537# else
17538# if HAVE_ALLOCA_H
17539# include <alloca.h>
17540# else
17541# ifdef _AIX
17542 #pragma alloca
17543# else
17544# ifndef alloca /* predefined by HP cc +Olibcalls */
17545char *alloca ();
17546# endif
17547# endif
17548# endif
97bf5e38 17549# endif
a3828db0 17550#endif
97bf5e38 17551
bec39cab
AC
17552int
17553main ()
17554{
a3828db0 17555char *p = (char *) alloca (1);
bec39cab
AC
17556 ;
17557 return 0;
17558}
17559_ACEOF
a3828db0
MK
17560rm -f conftest.$ac_objext conftest$ac_exeext
17561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17562 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17563 ac_status=$?
17564 grep -v '^ *+' conftest.er1 >conftest.err
17565 rm -f conftest.er1
17566 cat conftest.err >&5
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); } &&
b4e70030
JB
17569 { ac_try='test -z "$ac_c_werror_flag"
17570 || test ! -s conftest.err'
bec39cab
AC
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17573 ac_status=$?
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; } &&
a3828db0 17576 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578 (eval $ac_try) 2>&5
17579 ac_status=$?
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; }; then
a3828db0 17582 ac_cv_func_alloca_works=yes
0200359f 17583else
bec39cab
AC
17584 echo "$as_me: failed program was:" >&5
17585sed 's/^/| /' conftest.$ac_ext >&5
0200359f 17586
b4e70030 17587ac_cv_func_alloca_works=no
0200359f 17588fi
a3828db0
MK
17589rm -f conftest.err conftest.$ac_objext \
17590 conftest$ac_exeext conftest.$ac_ext
72473524 17591fi
b4e70030
JB
17592echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17593echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 17594
a3828db0
MK
17595if test $ac_cv_func_alloca_works = yes; then
17596
17597cat >>confdefs.h <<\_ACEOF
17598#define HAVE_ALLOCA 1
bec39cab
AC
17599_ACEOF
17600
a3828db0
MK
17601else
17602 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17603# that cause trouble. Some versions do not even contain alloca or
17604# contain a buggy version. If you still want to use their alloca,
17605# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 17606
b4e70030 17607ALLOCA=alloca.$ac_objext
bec39cab 17608
a3828db0
MK
17609cat >>confdefs.h <<\_ACEOF
17610#define C_ALLOCA 1
17611_ACEOF
bec39cab 17612
a3828db0 17613
b4e70030
JB
17614echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17615echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
a3828db0 17616if test "${ac_cv_os_cray+set}" = set; then
bec39cab 17617 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 17618else
a3828db0 17619 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17620/* confdefs.h. */
17621_ACEOF
17622cat confdefs.h >>conftest.$ac_ext
17623cat >>conftest.$ac_ext <<_ACEOF
17624/* end confdefs.h. */
b4e70030 17625#if defined(CRAY) && ! defined(CRAY2)
a3828db0
MK
17626webecray
17627#else
17628wenotbecray
17629#endif
17630
17631_ACEOF
17632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17633 $EGREP "webecray" >/dev/null 2>&1; then
17634 ac_cv_os_cray=yes
17635else
17636 ac_cv_os_cray=no
17637fi
17638rm -f conftest*
17639
17640fi
b4e70030
JB
17641echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17642echo "${ECHO_T}$ac_cv_os_cray" >&6
a3828db0
MK
17643if test $ac_cv_os_cray = yes; then
17644 for ac_func in _getb67 GETB67 getb67; do
17645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17646echo "$as_me:$LINENO: checking for $ac_func" >&5
17647echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17648if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17650else
17651 cat >conftest.$ac_ext <<_ACEOF
17652/* confdefs.h. */
17653_ACEOF
17654cat confdefs.h >>conftest.$ac_ext
17655cat >>conftest.$ac_ext <<_ACEOF
17656/* end confdefs.h. */
17657/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17659#define $ac_func innocuous_$ac_func
17660
17661/* System header to define __stub macros and hopefully few prototypes,
17662 which can conflict with char $ac_func (); below.
17663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17664 <limits.h> exists even on freestanding compilers. */
17665
17666#ifdef __STDC__
17667# include <limits.h>
17668#else
17669# include <assert.h>
17670#endif
17671
17672#undef $ac_func
17673
b4e70030 17674/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17675#ifdef __cplusplus
17676extern "C"
b4e70030 17677{
a3828db0 17678#endif
b4e70030
JB
17679/* We use char because int might match the return type of a gcc2
17680 builtin and then its argument prototype would still apply. */
a3828db0
MK
17681char $ac_func ();
17682/* The GNU C library defines this for functions which it implements
17683 to always fail with ENOSYS. Some functions are actually named
17684 something starting with __ and the normal name is an alias. */
b4e70030 17685#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17686choke me
b4e70030
JB
17687#else
17688char (*f) () = $ac_func;
17689#endif
17690#ifdef __cplusplus
17691}
a3828db0
MK
17692#endif
17693
17694int
17695main ()
17696{
b4e70030 17697return f != $ac_func;
a3828db0
MK
17698 ;
17699 return 0;
17700}
17701_ACEOF
17702rm -f conftest.$ac_objext conftest$ac_exeext
17703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17704 (eval $ac_link) 2>conftest.er1
17705 ac_status=$?
17706 grep -v '^ *+' conftest.er1 >conftest.err
17707 rm -f conftest.er1
17708 cat conftest.err >&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); } &&
b4e70030
JB
17711 { ac_try='test -z "$ac_c_werror_flag"
17712 || test ! -s conftest.err'
a3828db0
MK
17713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714 (eval $ac_try) 2>&5
17715 ac_status=$?
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); }; } &&
17718 { ac_try='test -s conftest$ac_exeext'
17719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720 (eval $ac_try) 2>&5
17721 ac_status=$?
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); }; }; then
17724 eval "$as_ac_var=yes"
17725else
17726 echo "$as_me: failed program was:" >&5
17727sed 's/^/| /' conftest.$ac_ext >&5
17728
b4e70030 17729eval "$as_ac_var=no"
a3828db0
MK
17730fi
17731rm -f conftest.err conftest.$ac_objext \
17732 conftest$ac_exeext conftest.$ac_ext
17733fi
b4e70030
JB
17734echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17735echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17736if test `eval echo '${'$as_ac_var'}'` = yes; then
17737
17738cat >>confdefs.h <<_ACEOF
17739#define CRAY_STACKSEG_END $ac_func
17740_ACEOF
17741
17742 break
17743fi
17744
17745 done
17746fi
17747
b4e70030
JB
17748echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17749echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
a3828db0
MK
17750if test "${ac_cv_c_stack_direction+set}" = set; then
17751 echo $ECHO_N "(cached) $ECHO_C" >&6
17752else
17753 if test "$cross_compiling" = yes; then
17754 ac_cv_c_stack_direction=0
17755else
17756 cat >conftest.$ac_ext <<_ACEOF
17757/* confdefs.h. */
17758_ACEOF
17759cat confdefs.h >>conftest.$ac_ext
17760cat >>conftest.$ac_ext <<_ACEOF
17761/* end confdefs.h. */
17762int
17763find_stack_direction ()
17764{
17765 static char *addr = 0;
17766 auto char dummy;
17767 if (addr == 0)
17768 {
17769 addr = &dummy;
17770 return find_stack_direction ();
17771 }
17772 else
17773 return (&dummy > addr) ? 1 : -1;
17774}
17775
17776int
17777main ()
17778{
b4e70030 17779 exit (find_stack_direction () < 0);
a3828db0
MK
17780}
17781_ACEOF
17782rm -f conftest$ac_exeext
17783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17784 (eval $ac_link) 2>&5
17785 ac_status=$?
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789 (eval $ac_try) 2>&5
17790 ac_status=$?
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; }; then
17793 ac_cv_c_stack_direction=1
17794else
17795 echo "$as_me: program exited with status $ac_status" >&5
17796echo "$as_me: failed program was:" >&5
17797sed 's/^/| /' conftest.$ac_ext >&5
17798
17799( exit $ac_status )
17800ac_cv_c_stack_direction=-1
17801fi
b4e70030 17802rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
17803fi
17804fi
b4e70030
JB
17805echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17806echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
a3828db0
MK
17807
17808cat >>confdefs.h <<_ACEOF
17809#define STACK_DIRECTION $ac_cv_c_stack_direction
17810_ACEOF
17811
17812
17813fi
17814
17815
17816
17817for ac_header in stdlib.h unistd.h
17818do
17819as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
17820if eval "test \"\${$as_ac_Header+set}\" = set"; then
17821 echo "$as_me:$LINENO: checking for $ac_header" >&5
17822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17823if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
17824 echo $ECHO_N "(cached) $ECHO_C" >&6
17825fi
b4e70030
JB
17826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17827echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0
MK
17828else
17829 # Is the header compilable?
b4e70030
JB
17830echo "$as_me:$LINENO: checking $ac_header usability" >&5
17831echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0
MK
17832cat >conftest.$ac_ext <<_ACEOF
17833/* confdefs.h. */
17834_ACEOF
17835cat confdefs.h >>conftest.$ac_ext
17836cat >>conftest.$ac_ext <<_ACEOF
17837/* end confdefs.h. */
17838$ac_includes_default
17839#include <$ac_header>
17840_ACEOF
17841rm -f conftest.$ac_objext
17842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17843 (eval $ac_compile) 2>conftest.er1
17844 ac_status=$?
bec39cab
AC
17845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
b4e70030
JB
17850 { ac_try='test -z "$ac_c_werror_flag"
17851 || test ! -s conftest.err'
bec39cab
AC
17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853 (eval $ac_try) 2>&5
17854 ac_status=$?
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; } &&
17857 { ac_try='test -s conftest.$ac_objext'
17858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17859 (eval $ac_try) 2>&5
17860 ac_status=$?
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); }; }; then
17863 ac_header_compiler=yes
17864else
17865 echo "$as_me: failed program was:" >&5
17866sed 's/^/| /' conftest.$ac_ext >&5
17867
b4e70030 17868ac_header_compiler=no
bec39cab
AC
17869fi
17870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
17871echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17872echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
17873
17874# Is the header present?
b4e70030
JB
17875echo "$as_me:$LINENO: checking $ac_header presence" >&5
17876echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
17877cat >conftest.$ac_ext <<_ACEOF
17878/* confdefs.h. */
17879_ACEOF
17880cat confdefs.h >>conftest.$ac_ext
17881cat >>conftest.$ac_ext <<_ACEOF
17882/* end confdefs.h. */
17883#include <$ac_header>
17884_ACEOF
17885if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17887 ac_status=$?
17888 grep -v '^ *+' conftest.er1 >conftest.err
17889 rm -f conftest.er1
17890 cat conftest.err >&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } >/dev/null; then
17893 if test -s conftest.err; then
17894 ac_cpp_err=$ac_c_preproc_warn_flag
17895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17896 else
17897 ac_cpp_err=
17898 fi
17899else
17900 ac_cpp_err=yes
17901fi
17902if test -z "$ac_cpp_err"; then
17903 ac_header_preproc=yes
97bf5e38 17904else
bec39cab
AC
17905 echo "$as_me: failed program was:" >&5
17906sed 's/^/| /' conftest.$ac_ext >&5
17907
17908 ac_header_preproc=no
72473524 17909fi
bec39cab 17910rm -f conftest.err conftest.$ac_ext
b4e70030
JB
17911echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17912echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 17913
bec39cab
AC
17914# So? What about this header?
17915case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17916 yes:no: )
17917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17918echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17920echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17921 ac_header_preproc=yes
17922 ;;
17923 no:yes:* )
17924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17925echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17927echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17929echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17931echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17933echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17935echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
17936 (
17937 cat <<\_ASBOX
17938## ------------------------------------------ ##
17939## Report this to the AC_PACKAGE_NAME lists. ##
17940## ------------------------------------------ ##
17941_ASBOX
17942 ) |
17943 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
17944 ;;
17945esac
b4e70030
JB
17946echo "$as_me:$LINENO: checking for $ac_header" >&5
17947echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17948if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 17949 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 17950else
bec39cab
AC
17951 eval "$as_ac_Header=\$ac_header_preproc"
17952fi
b4e70030
JB
17953echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17954echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
17955
17956fi
17957if test `eval echo '${'$as_ac_Header'}'` = yes; then
17958 cat >>confdefs.h <<_ACEOF
17959#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17960_ACEOF
17961
17962fi
17963
17964done
17965
17966
a3828db0 17967for ac_func in getpagesize
bec39cab
AC
17968do
17969as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17970echo "$as_me:$LINENO: checking for $ac_func" >&5
17971echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17972if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17973 echo $ECHO_N "(cached) $ECHO_C" >&6
17974else
17975 cat >conftest.$ac_ext <<_ACEOF
17976/* confdefs.h. */
17977_ACEOF
17978cat confdefs.h >>conftest.$ac_ext
17979cat >>conftest.$ac_ext <<_ACEOF
17980/* end confdefs.h. */
17981/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17983#define $ac_func innocuous_$ac_func
17984
97bf5e38 17985/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17986 which can conflict with char $ac_func (); below.
17987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17988 <limits.h> exists even on freestanding compilers. */
2b2d558c 17989
bec39cab
AC
17990#ifdef __STDC__
17991# include <limits.h>
17992#else
17993# include <assert.h>
17994#endif
97bf5e38 17995
bec39cab
AC
17996#undef $ac_func
17997
b4e70030 17998/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17999#ifdef __cplusplus
18000extern "C"
b4e70030 18001{
bec39cab 18002#endif
b4e70030
JB
18003/* We use char because int might match the return type of a gcc2
18004 builtin and then its argument prototype would still apply. */
bec39cab 18005char $ac_func ();
97bf5e38
MK
18006/* The GNU C library defines this for functions which it implements
18007 to always fail with ENOSYS. Some functions are actually named
18008 something starting with __ and the normal name is an alias. */
b4e70030 18009#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 18010choke me
b4e70030
JB
18011#else
18012char (*f) () = $ac_func;
18013#endif
18014#ifdef __cplusplus
18015}
97bf5e38
MK
18016#endif
18017
bec39cab
AC
18018int
18019main ()
18020{
b4e70030 18021return f != $ac_func;
bec39cab
AC
18022 ;
18023 return 0;
18024}
18025_ACEOF
18026rm -f conftest.$ac_objext conftest$ac_exeext
18027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18028 (eval $ac_link) 2>conftest.er1
18029 ac_status=$?
18030 grep -v '^ *+' conftest.er1 >conftest.err
18031 rm -f conftest.er1
18032 cat conftest.err >&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); } &&
b4e70030
JB
18035 { ac_try='test -z "$ac_c_werror_flag"
18036 || test ! -s conftest.err'
bec39cab
AC
18037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18038 (eval $ac_try) 2>&5
18039 ac_status=$?
18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); }; } &&
18042 { ac_try='test -s conftest$ac_exeext'
18043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18044 (eval $ac_try) 2>&5
18045 ac_status=$?
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); }; }; then
18048 eval "$as_ac_var=yes"
18049else
18050 echo "$as_me: failed program was:" >&5
18051sed 's/^/| /' conftest.$ac_ext >&5
18052
b4e70030 18053eval "$as_ac_var=no"
bec39cab
AC
18054fi
18055rm -f conftest.err conftest.$ac_objext \
18056 conftest$ac_exeext conftest.$ac_ext
18057fi
b4e70030
JB
18058echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18059echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18060if test `eval echo '${'$as_ac_var'}'` = yes; then
18061 cat >>confdefs.h <<_ACEOF
18062#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18063_ACEOF
18064
2b2d558c 18065fi
bec39cab 18066done
2b2d558c 18067
b4e70030
JB
18068echo "$as_me:$LINENO: checking for working mmap" >&5
18069echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
a3828db0 18070if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 18071 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18072else
bec39cab 18073 if test "$cross_compiling" = yes; then
a3828db0 18074 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
18075else
18076 cat >conftest.$ac_ext <<_ACEOF
a3828db0 18077/* confdefs.h. */
bec39cab
AC
18078_ACEOF
18079cat confdefs.h >>conftest.$ac_ext
18080cat >>conftest.$ac_ext <<_ACEOF
18081/* end confdefs.h. */
a3828db0
MK
18082$ac_includes_default
18083/* malloc might have been renamed as rpl_malloc. */
18084#undef malloc
bec39cab 18085
a3828db0
MK
18086/* Thanks to Mike Haertel and Jim Avera for this test.
18087 Here is a matrix of mmap possibilities:
18088 mmap private not fixed
18089 mmap private fixed at somewhere currently unmapped
18090 mmap private fixed at somewhere already mapped
18091 mmap shared not fixed
18092 mmap shared fixed at somewhere currently unmapped
18093 mmap shared fixed at somewhere already mapped
18094 For private mappings, we should verify that changes cannot be read()
18095 back from the file, nor mmap's back from the file at a different
18096 address. (There have been systems where private was not correctly
18097 implemented like the infamous i386 svr4.0, and systems where the
18098 VM page cache was not coherent with the file system buffer cache
18099 like early versions of FreeBSD and possibly contemporary NetBSD.)
18100 For shared mappings, we should conversely verify that changes get
18101 propagated back to all the places they're supposed to be.
7dfa765c 18102
a3828db0
MK
18103 Grep wants private fixed already mapped.
18104 The main things grep needs to know about mmap are:
18105 * does it exist and is it safe to write into the mmap'd area
18106 * how to use it (BSD variants) */
7dfa765c 18107
a3828db0
MK
18108#include <fcntl.h>
18109#include <sys/mman.h>
7dfa765c 18110
a3828db0
MK
18111#if !STDC_HEADERS && !HAVE_STDLIB_H
18112char *malloc ();
18113#endif
7dfa765c 18114
a3828db0
MK
18115/* This mess was copied from the GNU getpagesize.h. */
18116#if !HAVE_GETPAGESIZE
18117/* Assume that all systems that can run configure have sys/param.h. */
18118# if !HAVE_SYS_PARAM_H
18119# define HAVE_SYS_PARAM_H 1
18120# endif
64bb1671 18121
a3828db0
MK
18122# ifdef _SC_PAGESIZE
18123# define getpagesize() sysconf(_SC_PAGESIZE)
18124# else /* no _SC_PAGESIZE */
18125# if HAVE_SYS_PARAM_H
18126# include <sys/param.h>
18127# ifdef EXEC_PAGESIZE
18128# define getpagesize() EXEC_PAGESIZE
18129# else /* no EXEC_PAGESIZE */
18130# ifdef NBPG
18131# define getpagesize() NBPG * CLSIZE
18132# ifndef CLSIZE
18133# define CLSIZE 1
18134# endif /* no CLSIZE */
18135# else /* no NBPG */
18136# ifdef NBPC
18137# define getpagesize() NBPC
18138# else /* no NBPC */
18139# ifdef PAGESIZE
18140# define getpagesize() PAGESIZE
18141# endif /* PAGESIZE */
18142# endif /* no NBPC */
18143# endif /* no NBPG */
18144# endif /* no EXEC_PAGESIZE */
18145# else /* no HAVE_SYS_PARAM_H */
18146# define getpagesize() 8192 /* punt totally */
18147# endif /* no HAVE_SYS_PARAM_H */
18148# endif /* no _SC_PAGESIZE */
64bb1671 18149
a3828db0 18150#endif /* no HAVE_GETPAGESIZE */
64bb1671 18151
a3828db0
MK
18152int
18153main ()
18154{
18155 char *data, *data2, *data3;
18156 int i, pagesize;
18157 int fd;
97bf5e38 18158
a3828db0
MK
18159 pagesize = getpagesize ();
18160
18161 /* First, make a file with some known garbage in it. */
18162 data = (char *) malloc (pagesize);
18163 if (!data)
b4e70030 18164 exit (1);
a3828db0
MK
18165 for (i = 0; i < pagesize; ++i)
18166 *(data + i) = rand ();
18167 umask (0);
18168 fd = creat ("conftest.mmap", 0600);
18169 if (fd < 0)
b4e70030 18170 exit (1);
a3828db0 18171 if (write (fd, data, pagesize) != pagesize)
b4e70030 18172 exit (1);
a3828db0
MK
18173 close (fd);
18174
18175 /* Next, try to mmap the file at a fixed address which already has
18176 something else allocated at it. If we can, also make sure that
18177 we see the same garbage. */
18178 fd = open ("conftest.mmap", O_RDWR);
18179 if (fd < 0)
b4e70030 18180 exit (1);
a3828db0
MK
18181 data2 = (char *) malloc (2 * pagesize);
18182 if (!data2)
b4e70030
JB
18183 exit (1);
18184 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
a3828db0
MK
18185 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18186 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b4e70030 18187 exit (1);
a3828db0
MK
18188 for (i = 0; i < pagesize; ++i)
18189 if (*(data + i) != *(data2 + i))
b4e70030 18190 exit (1);
a3828db0
MK
18191
18192 /* Finally, make sure that changes to the mapped area do not
18193 percolate back to the file as seen by read(). (This is a bug on
18194 some variants of i386 svr4.0.) */
18195 for (i = 0; i < pagesize; ++i)
18196 *(data2 + i) = *(data2 + i) + 1;
18197 data3 = (char *) malloc (pagesize);
18198 if (!data3)
b4e70030 18199 exit (1);
a3828db0 18200 if (read (fd, data3, pagesize) != pagesize)
b4e70030 18201 exit (1);
a3828db0
MK
18202 for (i = 0; i < pagesize; ++i)
18203 if (*(data + i) != *(data3 + i))
b4e70030 18204 exit (1);
a3828db0 18205 close (fd);
b4e70030 18206 exit (0);
97bf5e38 18207}
bec39cab
AC
18208_ACEOF
18209rm -f conftest$ac_exeext
18210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18211 (eval $ac_link) 2>&5
18212 ac_status=$?
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18216 (eval $ac_try) 2>&5
18217 ac_status=$?
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; }; then
a3828db0 18220 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 18221else
bec39cab
AC
18222 echo "$as_me: program exited with status $ac_status" >&5
18223echo "$as_me: failed program was:" >&5
18224sed 's/^/| /' conftest.$ac_ext >&5
18225
18226( exit $ac_status )
a3828db0 18227ac_cv_func_mmap_fixed_mapped=no
0afdd437 18228fi
b4e70030 18229rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 18230fi
a3828db0 18231fi
b4e70030
JB
18232echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18233echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
a3828db0 18234if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
18235
18236cat >>confdefs.h <<\_ACEOF
a3828db0 18237#define HAVE_MMAP 1
bec39cab 18238_ACEOF
0afdd437
MK
18239
18240fi
a3828db0 18241rm -f conftest.mmap
0afdd437 18242
b4e70030
JB
18243echo "$as_me:$LINENO: checking for pid_t" >&5
18244echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
a3828db0 18245if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
18246 echo $ECHO_N "(cached) $ECHO_C" >&6
18247else
18248 cat >conftest.$ac_ext <<_ACEOF
18249/* confdefs.h. */
18250_ACEOF
18251cat confdefs.h >>conftest.$ac_ext
18252cat >>conftest.$ac_ext <<_ACEOF
18253/* end confdefs.h. */
a3828db0 18254$ac_includes_default
bec39cab
AC
18255int
18256main ()
18257{
b4e70030 18258if ((pid_t *) 0)
a3828db0 18259 return 0;
b4e70030 18260if (sizeof (pid_t))
a3828db0 18261 return 0;
bec39cab
AC
18262 ;
18263 return 0;
18264}
18265_ACEOF
a3828db0
MK
18266rm -f conftest.$ac_objext
18267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18268 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
18269 ac_status=$?
18270 grep -v '^ *+' conftest.er1 >conftest.err
18271 rm -f conftest.er1
18272 cat conftest.err >&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); } &&
b4e70030
JB
18275 { ac_try='test -z "$ac_c_werror_flag"
18276 || test ! -s conftest.err'
bec39cab
AC
18277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278 (eval $ac_try) 2>&5
18279 ac_status=$?
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); }; } &&
a3828db0 18282 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18285 ac_status=$?
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; }; then
a3828db0 18288 ac_cv_type_pid_t=yes
bec39cab
AC
18289else
18290 echo "$as_me: failed program was:" >&5
18291sed 's/^/| /' conftest.$ac_ext >&5
18292
b4e70030 18293ac_cv_type_pid_t=no
bec39cab 18294fi
a3828db0 18295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 18296fi
b4e70030
JB
18297echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18298echo "${ECHO_T}$ac_cv_type_pid_t" >&6
a3828db0
MK
18299if test $ac_cv_type_pid_t = yes; then
18300 :
18301else
18302
18303cat >>confdefs.h <<_ACEOF
18304#define pid_t int
bec39cab 18305_ACEOF
7e89e357 18306
7e89e357
JT
18307fi
18308
bec39cab 18309
b4e70030
JB
18310
18311for ac_header in unistd.h vfork.h
7be570e7 18312do
a3828db0 18313as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
18314if eval "test \"\${$as_ac_Header+set}\" = set"; then
18315 echo "$as_me:$LINENO: checking for $ac_header" >&5
18316echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18317if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 18318 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0 18319fi
b4e70030
JB
18320echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18321echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 18322else
a3828db0 18323 # Is the header compilable?
b4e70030
JB
18324echo "$as_me:$LINENO: checking $ac_header usability" >&5
18325echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0 18326cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18327/* confdefs.h. */
18328_ACEOF
18329cat confdefs.h >>conftest.$ac_ext
18330cat >>conftest.$ac_ext <<_ACEOF
18331/* end confdefs.h. */
a3828db0
MK
18332$ac_includes_default
18333#include <$ac_header>
bec39cab 18334_ACEOF
a3828db0
MK
18335rm -f conftest.$ac_objext
18336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18337 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
18338 ac_status=$?
18339 grep -v '^ *+' conftest.er1 >conftest.err
18340 rm -f conftest.er1
18341 cat conftest.err >&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); } &&
b4e70030
JB
18344 { ac_try='test -z "$ac_c_werror_flag"
18345 || test ! -s conftest.err'
bec39cab
AC
18346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18347 (eval $ac_try) 2>&5
18348 ac_status=$?
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; } &&
a3828db0 18351 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; }; then
a3828db0 18357 ac_header_compiler=yes
bec39cab
AC
18358else
18359 echo "$as_me: failed program was:" >&5
18360sed 's/^/| /' conftest.$ac_ext >&5
18361
b4e70030 18362ac_header_compiler=no
bec39cab 18363fi
a3828db0 18364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
18365echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18366echo "${ECHO_T}$ac_header_compiler" >&6
a3828db0
MK
18367
18368# Is the header present?
b4e70030
JB
18369echo "$as_me:$LINENO: checking $ac_header presence" >&5
18370echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a3828db0
MK
18371cat >conftest.$ac_ext <<_ACEOF
18372/* confdefs.h. */
18373_ACEOF
18374cat confdefs.h >>conftest.$ac_ext
18375cat >>conftest.$ac_ext <<_ACEOF
18376/* end confdefs.h. */
18377#include <$ac_header>
18378_ACEOF
18379if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18381 ac_status=$?
18382 grep -v '^ *+' conftest.er1 >conftest.err
18383 rm -f conftest.er1
18384 cat conftest.err >&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); } >/dev/null; then
18387 if test -s conftest.err; then
18388 ac_cpp_err=$ac_c_preproc_warn_flag
18389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18390 else
18391 ac_cpp_err=
18392 fi
18393else
18394 ac_cpp_err=yes
18395fi
18396if test -z "$ac_cpp_err"; then
18397 ac_header_preproc=yes
18398else
18399 echo "$as_me: failed program was:" >&5
18400sed 's/^/| /' conftest.$ac_ext >&5
18401
18402 ac_header_preproc=no
18403fi
18404rm -f conftest.err conftest.$ac_ext
b4e70030
JB
18405echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18406echo "${ECHO_T}$ac_header_preproc" >&6
a3828db0
MK
18407
18408# So? What about this header?
18409case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18410 yes:no: )
18411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18412echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18414echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18415 ac_header_preproc=yes
18416 ;;
18417 no:yes:* )
18418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18419echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18421echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18422 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18423echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18424 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18425echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18427echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18428 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18429echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
18430 (
18431 cat <<\_ASBOX
18432## ------------------------------------------ ##
18433## Report this to the AC_PACKAGE_NAME lists. ##
18434## ------------------------------------------ ##
18435_ASBOX
18436 ) |
18437 sed "s/^/$as_me: WARNING: /" >&2
a3828db0
MK
18438 ;;
18439esac
b4e70030
JB
18440echo "$as_me:$LINENO: checking for $ac_header" >&5
18441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18442if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
18443 echo $ECHO_N "(cached) $ECHO_C" >&6
18444else
18445 eval "$as_ac_Header=\$ac_header_preproc"
18446fi
b4e70030
JB
18447echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18448echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0 18449
bec39cab 18450fi
a3828db0 18451if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 18452 cat >>confdefs.h <<_ACEOF
a3828db0 18453#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 18454_ACEOF
14abd0fb 18455
14abd0fb 18456fi
a3828db0 18457
14abd0fb
MK
18458done
18459
bec39cab 18460
a3828db0
MK
18461
18462for ac_func in fork vfork
14abd0fb 18463do
bec39cab 18464as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18465echo "$as_me:$LINENO: checking for $ac_func" >&5
18466echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18467if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18468 echo $ECHO_N "(cached) $ECHO_C" >&6
18469else
18470 cat >conftest.$ac_ext <<_ACEOF
18471/* confdefs.h. */
18472_ACEOF
18473cat confdefs.h >>conftest.$ac_ext
18474cat >>conftest.$ac_ext <<_ACEOF
18475/* end confdefs.h. */
18476/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18478#define $ac_func innocuous_$ac_func
18479
14abd0fb 18480/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18481 which can conflict with char $ac_func (); below.
18482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18483 <limits.h> exists even on freestanding compilers. */
18484
18485#ifdef __STDC__
18486# include <limits.h>
18487#else
18488# include <assert.h>
18489#endif
14abd0fb 18490
bec39cab 18491#undef $ac_func
14abd0fb 18492
b4e70030 18493/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
18494#ifdef __cplusplus
18495extern "C"
b4e70030 18496{
bec39cab 18497#endif
b4e70030
JB
18498/* We use char because int might match the return type of a gcc2
18499 builtin and then its argument prototype would still apply. */
bec39cab 18500char $ac_func ();
14abd0fb
MK
18501/* The GNU C library defines this for functions which it implements
18502 to always fail with ENOSYS. Some functions are actually named
18503 something starting with __ and the normal name is an alias. */
b4e70030 18504#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14abd0fb 18505choke me
b4e70030
JB
18506#else
18507char (*f) () = $ac_func;
18508#endif
18509#ifdef __cplusplus
18510}
14abd0fb
MK
18511#endif
18512
bec39cab
AC
18513int
18514main ()
18515{
b4e70030 18516return f != $ac_func;
bec39cab
AC
18517 ;
18518 return 0;
18519}
18520_ACEOF
18521rm -f conftest.$ac_objext conftest$ac_exeext
18522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18523 (eval $ac_link) 2>conftest.er1
18524 ac_status=$?
18525 grep -v '^ *+' conftest.er1 >conftest.err
18526 rm -f conftest.er1
18527 cat conftest.err >&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } &&
b4e70030
JB
18530 { ac_try='test -z "$ac_c_werror_flag"
18531 || test ! -s conftest.err'
bec39cab
AC
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; } &&
18537 { ac_try='test -s conftest$ac_exeext'
18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539 (eval $ac_try) 2>&5
18540 ac_status=$?
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
18543 eval "$as_ac_var=yes"
18544else
18545 echo "$as_me: failed program was:" >&5
18546sed 's/^/| /' conftest.$ac_ext >&5
18547
b4e70030 18548eval "$as_ac_var=no"
bec39cab
AC
18549fi
18550rm -f conftest.err conftest.$ac_objext \
18551 conftest$ac_exeext conftest.$ac_ext
18552fi
b4e70030
JB
18553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18554echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18555if test `eval echo '${'$as_ac_var'}'` = yes; then
18556 cat >>confdefs.h <<_ACEOF
18557#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18558_ACEOF
7be570e7 18559
7be570e7
JM
18560fi
18561done
18562
a3828db0 18563if test "x$ac_cv_func_fork" = xyes; then
b4e70030
JB
18564 echo "$as_me:$LINENO: checking for working fork" >&5
18565echo $ECHO_N "checking for working fork... $ECHO_C" >&6
a3828db0
MK
18566if test "${ac_cv_func_fork_works+set}" = set; then
18567 echo $ECHO_N "(cached) $ECHO_C" >&6
18568else
18569 if test "$cross_compiling" = yes; then
18570 ac_cv_func_fork_works=cross
18571else
18572 cat >conftest.$ac_ext <<_ACEOF
b4e70030
JB
18573/* By Ruediger Kuhlmann. */
18574 #include <sys/types.h>
18575 #if HAVE_UNISTD_H
18576 # include <unistd.h>
18577 #endif
18578 /* Some systems only have a dummy stub for fork() */
18579 int main ()
18580 {
18581 if (fork() < 0)
18582 exit (1);
18583 exit (0);
18584 }
a3828db0
MK
18585_ACEOF
18586rm -f conftest$ac_exeext
18587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18588 (eval $ac_link) 2>&5
18589 ac_status=$?
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18593 (eval $ac_try) 2>&5
18594 ac_status=$?
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); }; }; then
18597 ac_cv_func_fork_works=yes
18598else
18599 echo "$as_me: program exited with status $ac_status" >&5
18600echo "$as_me: failed program was:" >&5
18601sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 18602
a3828db0
MK
18603( exit $ac_status )
18604ac_cv_func_fork_works=no
18605fi
b4e70030 18606rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18607fi
18608fi
b4e70030
JB
18609echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18610echo "${ECHO_T}$ac_cv_func_fork_works" >&6
a3828db0
MK
18611
18612else
18613 ac_cv_func_fork_works=$ac_cv_func_fork
18614fi
18615if test "x$ac_cv_func_fork_works" = xcross; then
18616 case $host in
18617 *-*-amigaos* | *-*-msdosdjgpp*)
18618 # Override, as these systems have only a dummy fork() stub
18619 ac_cv_func_fork_works=no
18620 ;;
18621 *)
18622 ac_cv_func_fork_works=yes
18623 ;;
18624 esac
18625 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18626echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18627fi
18628ac_cv_func_vfork_works=$ac_cv_func_vfork
18629if test "x$ac_cv_func_vfork" = xyes; then
b4e70030
JB
18630 echo "$as_me:$LINENO: checking for working vfork" >&5
18631echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
a3828db0 18632if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 18633 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
18634else
18635 if test "$cross_compiling" = yes; then
18636 ac_cv_func_vfork_works=cross
bec39cab
AC
18637else
18638 cat >conftest.$ac_ext <<_ACEOF
18639/* confdefs.h. */
18640_ACEOF
18641cat confdefs.h >>conftest.$ac_ext
18642cat >>conftest.$ac_ext <<_ACEOF
18643/* end confdefs.h. */
a3828db0 18644/* Thanks to Paul Eggert for this test. */
b4e70030
JB
18645#include <stdio.h>
18646#include <stdlib.h>
18647#include <sys/types.h>
18648#include <sys/stat.h>
a3828db0 18649#include <sys/wait.h>
b4e70030
JB
18650#if HAVE_UNISTD_H
18651# include <unistd.h>
18652#endif
a3828db0
MK
18653#if HAVE_VFORK_H
18654# include <vfork.h>
bec39cab 18655#endif
a3828db0
MK
18656/* On some sparc systems, changes by the child to local and incoming
18657 argument registers are propagated back to the parent. The compiler
18658 is told about this with #include <vfork.h>, but some compilers
18659 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18660 static variable whose address is put into a register that is
18661 clobbered by the vfork. */
18662static void
bec39cab 18663#ifdef __cplusplus
a3828db0
MK
18664sparc_address_test (int arg)
18665# else
18666sparc_address_test (arg) int arg;
c906108c 18667#endif
a3828db0
MK
18668{
18669 static pid_t child;
18670 if (!child) {
18671 child = vfork ();
18672 if (child < 0) {
18673 perror ("vfork");
18674 _exit(2);
18675 }
18676 if (!child) {
18677 arg = getpid();
18678 write(-1, "", 0);
18679 _exit (arg);
18680 }
18681 }
18682}
97bf5e38 18683
bec39cab
AC
18684int
18685main ()
18686{
a3828db0
MK
18687 pid_t parent = getpid ();
18688 pid_t child;
18689
18690 sparc_address_test (0);
18691
18692 child = vfork ();
18693
18694 if (child == 0) {
18695 /* Here is another test for sparc vfork register problems. This
18696 test uses lots of local variables, at least as many local
18697 variables as main has allocated so far including compiler
18698 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18699 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18700 reuse the register of parent for one of the local variables,
18701 since it will think that parent can't possibly be used any more
18702 in this routine. Assigning to the local variable will thus
18703 munge parent in the parent process. */
18704 pid_t
18705 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18706 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18707 /* Convince the compiler that p..p7 are live; otherwise, it might
18708 use the same hardware register for all 8 local variables. */
18709 if (p != p1 || p != p2 || p != p3 || p != p4
18710 || p != p5 || p != p6 || p != p7)
18711 _exit(1);
18712
18713 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18714 from child file descriptors. If the child closes a descriptor
18715 before it execs or exits, this munges the parent's descriptor
18716 as well. Test for this by closing stdout in the child. */
18717 _exit(close(fileno(stdout)) != 0);
18718 } else {
18719 int status;
18720 struct stat st;
18721
18722 while (wait(&status) != child)
18723 ;
b4e70030 18724 exit(
a3828db0
MK
18725 /* Was there some problem with vforking? */
18726 child < 0
18727
18728 /* Did the child fail? (This shouldn't happen.) */
18729 || status
18730
18731 /* Did the vfork/compiler bug occur? */
18732 || parent != getpid()
18733
18734 /* Did the file descriptor bug occur? */
18735 || fstat(fileno(stdout), &st) != 0
18736 );
18737 }
bec39cab
AC
18738}
18739_ACEOF
a3828db0 18740rm -f conftest$ac_exeext
bec39cab 18741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 18742 (eval $ac_link) 2>&5
bec39cab
AC
18743 ac_status=$?
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 18745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
18746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18747 (eval $ac_try) 2>&5
18748 ac_status=$?
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); }; }; then
a3828db0
MK
18751 ac_cv_func_vfork_works=yes
18752else
18753 echo "$as_me: program exited with status $ac_status" >&5
18754echo "$as_me: failed program was:" >&5
18755sed 's/^/| /' conftest.$ac_ext >&5
18756
18757( exit $ac_status )
18758ac_cv_func_vfork_works=no
18759fi
b4e70030 18760rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18761fi
18762fi
b4e70030
JB
18763echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18764echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
a3828db0
MK
18765
18766fi;
18767if test "x$ac_cv_func_fork_works" = xcross; then
18768 ac_cv_func_vfork_works=$ac_cv_func_vfork
18769 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18770echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18771fi
18772
18773if test "x$ac_cv_func_vfork_works" = xyes; then
18774
18775cat >>confdefs.h <<\_ACEOF
18776#define HAVE_WORKING_VFORK 1
18777_ACEOF
18778
bec39cab 18779else
bec39cab 18780
a3828db0
MK
18781cat >>confdefs.h <<\_ACEOF
18782#define vfork fork
18783_ACEOF
18784
bec39cab 18785fi
a3828db0
MK
18786if test "x$ac_cv_func_fork_works" = xyes; then
18787
18788cat >>confdefs.h <<\_ACEOF
18789#define HAVE_WORKING_FORK 1
bec39cab 18790_ACEOF
c906108c 18791
c906108c
SS
18792fi
18793
bec39cab
AC
18794
18795
a3828db0 18796for ac_func in canonicalize_file_name realpath
97bf5e38 18797do
bec39cab 18798as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030 18799echo "$as_me:$LINENO: checking for $ac_func" >&5
7eb368b3
NR
18800echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18801if eval "test \"\${$as_ac_var+set}\" = set"; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18803else
18804 cat >conftest.$ac_ext <<_ACEOF
18805/* confdefs.h. */
18806_ACEOF
18807cat confdefs.h >>conftest.$ac_ext
18808cat >>conftest.$ac_ext <<_ACEOF
18809/* end confdefs.h. */
18810/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18812#define $ac_func innocuous_$ac_func
18813
18814/* System header to define __stub macros and hopefully few prototypes,
18815 which can conflict with char $ac_func (); below.
18816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18817 <limits.h> exists even on freestanding compilers. */
18818
18819#ifdef __STDC__
18820# include <limits.h>
18821#else
18822# include <assert.h>
18823#endif
18824
18825#undef $ac_func
18826
18827/* Override any gcc2 internal prototype to avoid an error. */
18828#ifdef __cplusplus
18829extern "C"
18830{
18831#endif
18832/* We use char because int might match the return type of a gcc2
18833 builtin and then its argument prototype would still apply. */
18834char $ac_func ();
18835/* The GNU C library defines this for functions which it implements
18836 to always fail with ENOSYS. Some functions are actually named
18837 something starting with __ and the normal name is an alias. */
18838#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18839choke me
18840#else
18841char (*f) () = $ac_func;
18842#endif
18843#ifdef __cplusplus
18844}
18845#endif
18846
18847int
18848main ()
18849{
18850return f != $ac_func;
18851 ;
18852 return 0;
18853}
18854_ACEOF
18855rm -f conftest.$ac_objext conftest$ac_exeext
18856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18857 (eval $ac_link) 2>conftest.er1
18858 ac_status=$?
18859 grep -v '^ *+' conftest.er1 >conftest.err
18860 rm -f conftest.er1
18861 cat conftest.err >&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); } &&
18864 { ac_try='test -z "$ac_c_werror_flag"
18865 || test ! -s conftest.err'
18866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867 (eval $ac_try) 2>&5
18868 ac_status=$?
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; } &&
18871 { ac_try='test -s conftest$ac_exeext'
18872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18873 (eval $ac_try) 2>&5
18874 ac_status=$?
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); }; }; then
18877 eval "$as_ac_var=yes"
18878else
18879 echo "$as_me: failed program was:" >&5
18880sed 's/^/| /' conftest.$ac_ext >&5
18881
18882eval "$as_ac_var=no"
18883fi
18884rm -f conftest.err conftest.$ac_objext \
18885 conftest$ac_exeext conftest.$ac_ext
18886fi
18887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18888echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18889if test `eval echo '${'$as_ac_var'}'` = yes; then
18890 cat >>confdefs.h <<_ACEOF
18891#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18892_ACEOF
18893
18894fi
18895done
18896
18897
18898for ac_func in getrusage
18899do
18900as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18901echo "$as_me:$LINENO: checking for $ac_func" >&5
b4e70030
JB
18902echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18903if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18905else
18906 cat >conftest.$ac_ext <<_ACEOF
18907/* confdefs.h. */
18908_ACEOF
18909cat confdefs.h >>conftest.$ac_ext
18910cat >>conftest.$ac_ext <<_ACEOF
18911/* end confdefs.h. */
18912/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18914#define $ac_func innocuous_$ac_func
18915
d3ea6809
MM
18916/* System header to define __stub macros and hopefully few prototypes,
18917 which can conflict with char $ac_func (); below.
18918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18919 <limits.h> exists even on freestanding compilers. */
18920
18921#ifdef __STDC__
18922# include <limits.h>
18923#else
18924# include <assert.h>
18925#endif
18926
18927#undef $ac_func
18928
b4e70030 18929/* Override any gcc2 internal prototype to avoid an error. */
d3ea6809
MM
18930#ifdef __cplusplus
18931extern "C"
b4e70030 18932{
d3ea6809 18933#endif
b4e70030
JB
18934/* We use char because int might match the return type of a gcc2
18935 builtin and then its argument prototype would still apply. */
d3ea6809
MM
18936char $ac_func ();
18937/* The GNU C library defines this for functions which it implements
18938 to always fail with ENOSYS. Some functions are actually named
18939 something starting with __ and the normal name is an alias. */
b4e70030 18940#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d3ea6809 18941choke me
b4e70030
JB
18942#else
18943char (*f) () = $ac_func;
18944#endif
18945#ifdef __cplusplus
18946}
d3ea6809
MM
18947#endif
18948
18949int
18950main ()
18951{
b4e70030 18952return f != $ac_func;
d3ea6809
MM
18953 ;
18954 return 0;
18955}
18956_ACEOF
18957rm -f conftest.$ac_objext conftest$ac_exeext
18958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18959 (eval $ac_link) 2>conftest.er1
18960 ac_status=$?
18961 grep -v '^ *+' conftest.er1 >conftest.err
18962 rm -f conftest.er1
18963 cat conftest.err >&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } &&
b4e70030
JB
18966 { ac_try='test -z "$ac_c_werror_flag"
18967 || test ! -s conftest.err'
d3ea6809
MM
18968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969 (eval $ac_try) 2>&5
18970 ac_status=$?
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; } &&
18973 { ac_try='test -s conftest$ac_exeext'
18974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18975 (eval $ac_try) 2>&5
18976 ac_status=$?
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; }; then
18979 eval "$as_ac_var=yes"
18980else
18981 echo "$as_me: failed program was:" >&5
18982sed 's/^/| /' conftest.$ac_ext >&5
18983
b4e70030 18984eval "$as_ac_var=no"
d3ea6809
MM
18985fi
18986rm -f conftest.err conftest.$ac_objext \
18987 conftest$ac_exeext conftest.$ac_ext
18988fi
b4e70030
JB
18989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18990echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d3ea6809
MM
18991if test `eval echo '${'$as_ac_var'}'` = yes; then
18992 cat >>confdefs.h <<_ACEOF
18993#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18994_ACEOF
18995
18996fi
18997done
18998
18999
19000
19001for ac_func in getuid getgid
19002do
19003as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19004echo "$as_me:$LINENO: checking for $ac_func" >&5
19005echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19006if eval "test \"\${$as_ac_var+set}\" = set"; then
d3ea6809
MM
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19008else
19009 cat >conftest.$ac_ext <<_ACEOF
19010/* confdefs.h. */
19011_ACEOF
19012cat confdefs.h >>conftest.$ac_ext
19013cat >>conftest.$ac_ext <<_ACEOF
19014/* end confdefs.h. */
19015/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19017#define $ac_func innocuous_$ac_func
19018
97bf5e38 19019/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19020 which can conflict with char $ac_func (); below.
19021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19022 <limits.h> exists even on freestanding compilers. */
c906108c 19023
bec39cab
AC
19024#ifdef __STDC__
19025# include <limits.h>
19026#else
19027# include <assert.h>
19028#endif
97bf5e38 19029
bec39cab
AC
19030#undef $ac_func
19031
b4e70030 19032/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19033#ifdef __cplusplus
19034extern "C"
b4e70030 19035{
bec39cab 19036#endif
b4e70030
JB
19037/* We use char because int might match the return type of a gcc2
19038 builtin and then its argument prototype would still apply. */
bec39cab 19039char $ac_func ();
97bf5e38
MK
19040/* The GNU C library defines this for functions which it implements
19041 to always fail with ENOSYS. Some functions are actually named
19042 something starting with __ and the normal name is an alias. */
b4e70030 19043#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 19044choke me
b4e70030
JB
19045#else
19046char (*f) () = $ac_func;
19047#endif
19048#ifdef __cplusplus
19049}
c906108c 19050#endif
97bf5e38 19051
bec39cab
AC
19052int
19053main ()
19054{
b4e70030 19055return f != $ac_func;
bec39cab
AC
19056 ;
19057 return 0;
19058}
19059_ACEOF
19060rm -f conftest.$ac_objext conftest$ac_exeext
19061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19062 (eval $ac_link) 2>conftest.er1
19063 ac_status=$?
19064 grep -v '^ *+' conftest.er1 >conftest.err
19065 rm -f conftest.er1
19066 cat conftest.err >&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } &&
b4e70030
JB
19069 { ac_try='test -z "$ac_c_werror_flag"
19070 || test ! -s conftest.err'
bec39cab
AC
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19073 ac_status=$?
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; } &&
19076 { ac_try='test -s conftest$ac_exeext'
19077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078 (eval $ac_try) 2>&5
19079 ac_status=$?
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; }; then
19082 eval "$as_ac_var=yes"
19083else
19084 echo "$as_me: failed program was:" >&5
19085sed 's/^/| /' conftest.$ac_ext >&5
19086
b4e70030 19087eval "$as_ac_var=no"
bec39cab
AC
19088fi
19089rm -f conftest.err conftest.$ac_objext \
19090 conftest$ac_exeext conftest.$ac_ext
19091fi
b4e70030
JB
19092echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19093echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19094if test `eval echo '${'$as_ac_var'}'` = yes; then
19095 cat >>confdefs.h <<_ACEOF
19096#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19097_ACEOF
c906108c 19098
c906108c 19099fi
97bf5e38 19100done
c906108c 19101
bec39cab 19102
a3828db0 19103for ac_func in poll
97bf5e38 19104do
bec39cab 19105as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19106echo "$as_me:$LINENO: checking for $ac_func" >&5
19107echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19108if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19109 echo $ECHO_N "(cached) $ECHO_C" >&6
19110else
19111 cat >conftest.$ac_ext <<_ACEOF
19112/* confdefs.h. */
19113_ACEOF
19114cat confdefs.h >>conftest.$ac_ext
19115cat >>conftest.$ac_ext <<_ACEOF
19116/* end confdefs.h. */
19117/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19119#define $ac_func innocuous_$ac_func
19120
97bf5e38 19121/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19122 which can conflict with char $ac_func (); below.
19123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19124 <limits.h> exists even on freestanding compilers. */
19125
19126#ifdef __STDC__
19127# include <limits.h>
19128#else
19129# include <assert.h>
19130#endif
c906108c 19131
bec39cab 19132#undef $ac_func
97bf5e38 19133
b4e70030 19134/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19135#ifdef __cplusplus
19136extern "C"
b4e70030 19137{
bec39cab 19138#endif
b4e70030
JB
19139/* We use char because int might match the return type of a gcc2
19140 builtin and then its argument prototype would still apply. */
bec39cab 19141char $ac_func ();
97bf5e38
MK
19142/* The GNU C library defines this for functions which it implements
19143 to always fail with ENOSYS. Some functions are actually named
19144 something starting with __ and the normal name is an alias. */
b4e70030 19145#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 19146choke me
b4e70030
JB
19147#else
19148char (*f) () = $ac_func;
19149#endif
19150#ifdef __cplusplus
19151}
c906108c 19152#endif
97bf5e38 19153
bec39cab
AC
19154int
19155main ()
19156{
b4e70030 19157return f != $ac_func;
bec39cab
AC
19158 ;
19159 return 0;
19160}
19161_ACEOF
19162rm -f conftest.$ac_objext conftest$ac_exeext
19163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19164 (eval $ac_link) 2>conftest.er1
19165 ac_status=$?
19166 grep -v '^ *+' conftest.er1 >conftest.err
19167 rm -f conftest.er1
19168 cat conftest.err >&5
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); } &&
b4e70030
JB
19171 { ac_try='test -z "$ac_c_werror_flag"
19172 || test ! -s conftest.err'
bec39cab
AC
19173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174 (eval $ac_try) 2>&5
19175 ac_status=$?
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); }; } &&
19178 { ac_try='test -s conftest$ac_exeext'
19179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180 (eval $ac_try) 2>&5
19181 ac_status=$?
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; }; then
19184 eval "$as_ac_var=yes"
19185else
19186 echo "$as_me: failed program was:" >&5
19187sed 's/^/| /' conftest.$ac_ext >&5
19188
b4e70030 19189eval "$as_ac_var=no"
bec39cab
AC
19190fi
19191rm -f conftest.err conftest.$ac_objext \
19192 conftest$ac_exeext conftest.$ac_ext
19193fi
b4e70030
JB
19194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19195echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19196if test `eval echo '${'$as_ac_var'}'` = yes; then
19197 cat >>confdefs.h <<_ACEOF
19198#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19199_ACEOF
c906108c 19200
c906108c 19201fi
97bf5e38 19202done
c906108c 19203
bec39cab 19204
a3828db0 19205for ac_func in pread64
97bf5e38 19206do
bec39cab 19207as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19208echo "$as_me:$LINENO: checking for $ac_func" >&5
19209echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19210if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19211 echo $ECHO_N "(cached) $ECHO_C" >&6
19212else
19213 cat >conftest.$ac_ext <<_ACEOF
19214/* confdefs.h. */
19215_ACEOF
19216cat confdefs.h >>conftest.$ac_ext
19217cat >>conftest.$ac_ext <<_ACEOF
19218/* end confdefs.h. */
19219/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19221#define $ac_func innocuous_$ac_func
19222
97bf5e38 19223/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19224 which can conflict with char $ac_func (); below.
19225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19226 <limits.h> exists even on freestanding compilers. */
19227
19228#ifdef __STDC__
19229# include <limits.h>
19230#else
19231# include <assert.h>
19232#endif
c906108c 19233
bec39cab 19234#undef $ac_func
97bf5e38 19235
b4e70030 19236/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19237#ifdef __cplusplus
19238extern "C"
b4e70030 19239{
bec39cab 19240#endif
b4e70030
JB
19241/* We use char because int might match the return type of a gcc2
19242 builtin and then its argument prototype would still apply. */
bec39cab 19243char $ac_func ();
97bf5e38
MK
19244/* The GNU C library defines this for functions which it implements
19245 to always fail with ENOSYS. Some functions are actually named
19246 something starting with __ and the normal name is an alias. */
b4e70030 19247#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 19248choke me
b4e70030
JB
19249#else
19250char (*f) () = $ac_func;
19251#endif
19252#ifdef __cplusplus
19253}
c906108c 19254#endif
97bf5e38 19255
bec39cab
AC
19256int
19257main ()
19258{
b4e70030 19259return f != $ac_func;
bec39cab
AC
19260 ;
19261 return 0;
19262}
19263_ACEOF
19264rm -f conftest.$ac_objext conftest$ac_exeext
19265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19266 (eval $ac_link) 2>conftest.er1
19267 ac_status=$?
19268 grep -v '^ *+' conftest.er1 >conftest.err
19269 rm -f conftest.er1
19270 cat conftest.err >&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); } &&
b4e70030
JB
19273 { ac_try='test -z "$ac_c_werror_flag"
19274 || test ! -s conftest.err'
bec39cab
AC
19275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19276 (eval $ac_try) 2>&5
19277 ac_status=$?
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); }; } &&
19280 { ac_try='test -s conftest$ac_exeext'
19281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19282 (eval $ac_try) 2>&5
19283 ac_status=$?
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; }; then
19286 eval "$as_ac_var=yes"
19287else
19288 echo "$as_me: failed program was:" >&5
19289sed 's/^/| /' conftest.$ac_ext >&5
19290
b4e70030 19291eval "$as_ac_var=no"
bec39cab
AC
19292fi
19293rm -f conftest.err conftest.$ac_objext \
19294 conftest$ac_exeext conftest.$ac_ext
19295fi
b4e70030
JB
19296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19297echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19298if test `eval echo '${'$as_ac_var'}'` = yes; then
19299 cat >>confdefs.h <<_ACEOF
19300#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19301_ACEOF
c906108c 19302
c906108c 19303fi
97bf5e38 19304done
c906108c 19305
bec39cab 19306
a3828db0 19307for ac_func in sbrk
b757528f 19308do
bec39cab 19309as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19310echo "$as_me:$LINENO: checking for $ac_func" >&5
19311echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19312if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
19314else
19315 cat >conftest.$ac_ext <<_ACEOF
19316/* confdefs.h. */
19317_ACEOF
19318cat confdefs.h >>conftest.$ac_ext
19319cat >>conftest.$ac_ext <<_ACEOF
19320/* end confdefs.h. */
19321/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19323#define $ac_func innocuous_$ac_func
19324
b757528f 19325/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19326 which can conflict with char $ac_func (); below.
19327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19328 <limits.h> exists even on freestanding compilers. */
19329
19330#ifdef __STDC__
19331# include <limits.h>
19332#else
19333# include <assert.h>
19334#endif
b757528f 19335
bec39cab 19336#undef $ac_func
b757528f 19337
b4e70030 19338/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19339#ifdef __cplusplus
19340extern "C"
b4e70030 19341{
bec39cab 19342#endif
b4e70030
JB
19343/* We use char because int might match the return type of a gcc2
19344 builtin and then its argument prototype would still apply. */
bec39cab 19345char $ac_func ();
b757528f
JJ
19346/* The GNU C library defines this for functions which it implements
19347 to always fail with ENOSYS. Some functions are actually named
19348 something starting with __ and the normal name is an alias. */
b4e70030 19349#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
b757528f 19350choke me
b4e70030
JB
19351#else
19352char (*f) () = $ac_func;
19353#endif
19354#ifdef __cplusplus
19355}
b757528f
JJ
19356#endif
19357
bec39cab
AC
19358int
19359main ()
19360{
b4e70030 19361return f != $ac_func;
bec39cab
AC
19362 ;
19363 return 0;
19364}
19365_ACEOF
19366rm -f conftest.$ac_objext conftest$ac_exeext
19367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19368 (eval $ac_link) 2>conftest.er1
19369 ac_status=$?
19370 grep -v '^ *+' conftest.er1 >conftest.err
19371 rm -f conftest.er1
19372 cat conftest.err >&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); } &&
b4e70030
JB
19375 { ac_try='test -z "$ac_c_werror_flag"
19376 || test ! -s conftest.err'
bec39cab
AC
19377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378 (eval $ac_try) 2>&5
19379 ac_status=$?
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; } &&
19382 { ac_try='test -s conftest$ac_exeext'
19383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384 (eval $ac_try) 2>&5
19385 ac_status=$?
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; }; then
19388 eval "$as_ac_var=yes"
19389else
19390 echo "$as_me: failed program was:" >&5
19391sed 's/^/| /' conftest.$ac_ext >&5
19392
b4e70030 19393eval "$as_ac_var=no"
bec39cab
AC
19394fi
19395rm -f conftest.err conftest.$ac_objext \
19396 conftest$ac_exeext conftest.$ac_ext
19397fi
b4e70030
JB
19398echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19399echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19400if test `eval echo '${'$as_ac_var'}'` = yes; then
19401 cat >>confdefs.h <<_ACEOF
19402#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19403_ACEOF
b757528f 19404
b757528f
JJ
19405fi
19406done
19407
bec39cab 19408
a3828db0 19409
83116857
TJB
19410
19411for ac_func in setpgid setpgrp setsid
bcb3dc3d 19412do
bec39cab 19413as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19414echo "$as_me:$LINENO: checking for $ac_func" >&5
19415echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19416if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19417 echo $ECHO_N "(cached) $ECHO_C" >&6
19418else
19419 cat >conftest.$ac_ext <<_ACEOF
19420/* confdefs.h. */
19421_ACEOF
19422cat confdefs.h >>conftest.$ac_ext
19423cat >>conftest.$ac_ext <<_ACEOF
19424/* end confdefs.h. */
19425/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19427#define $ac_func innocuous_$ac_func
19428
bcb3dc3d 19429/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19430 which can conflict with char $ac_func (); below.
19431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19432 <limits.h> exists even on freestanding compilers. */
19433
19434#ifdef __STDC__
19435# include <limits.h>
19436#else
19437# include <assert.h>
19438#endif
bcb3dc3d 19439
bec39cab 19440#undef $ac_func
bcb3dc3d 19441
b4e70030 19442/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19443#ifdef __cplusplus
19444extern "C"
b4e70030 19445{
bec39cab 19446#endif
b4e70030
JB
19447/* We use char because int might match the return type of a gcc2
19448 builtin and then its argument prototype would still apply. */
bec39cab 19449char $ac_func ();
bcb3dc3d
MK
19450/* The GNU C library defines this for functions which it implements
19451 to always fail with ENOSYS. Some functions are actually named
19452 something starting with __ and the normal name is an alias. */
b4e70030 19453#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bcb3dc3d 19454choke me
b4e70030
JB
19455#else
19456char (*f) () = $ac_func;
19457#endif
19458#ifdef __cplusplus
19459}
bcb3dc3d
MK
19460#endif
19461
bec39cab
AC
19462int
19463main ()
19464{
b4e70030 19465return f != $ac_func;
bec39cab
AC
19466 ;
19467 return 0;
19468}
19469_ACEOF
19470rm -f conftest.$ac_objext conftest$ac_exeext
19471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19472 (eval $ac_link) 2>conftest.er1
19473 ac_status=$?
19474 grep -v '^ *+' conftest.er1 >conftest.err
19475 rm -f conftest.er1
19476 cat conftest.err >&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } &&
b4e70030
JB
19479 { ac_try='test -z "$ac_c_werror_flag"
19480 || test ! -s conftest.err'
bec39cab
AC
19481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482 (eval $ac_try) 2>&5
19483 ac_status=$?
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; } &&
19486 { ac_try='test -s conftest$ac_exeext'
19487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 (eval $ac_try) 2>&5
19489 ac_status=$?
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; }; then
19492 eval "$as_ac_var=yes"
19493else
19494 echo "$as_me: failed program was:" >&5
19495sed 's/^/| /' conftest.$ac_ext >&5
19496
b4e70030 19497eval "$as_ac_var=no"
bec39cab
AC
19498fi
19499rm -f conftest.err conftest.$ac_objext \
19500 conftest$ac_exeext conftest.$ac_ext
19501fi
b4e70030
JB
19502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19503echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19504if test `eval echo '${'$as_ac_var'}'` = yes; then
19505 cat >>confdefs.h <<_ACEOF
19506#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19507_ACEOF
bcb3dc3d 19508
bcb3dc3d
MK
19509fi
19510done
19511
bec39cab 19512
a3828db0
MK
19513
19514
19515for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 19516do
bec39cab 19517as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19518echo "$as_me:$LINENO: checking for $ac_func" >&5
19519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19520if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19522else
19523 cat >conftest.$ac_ext <<_ACEOF
19524/* confdefs.h. */
19525_ACEOF
19526cat confdefs.h >>conftest.$ac_ext
19527cat >>conftest.$ac_ext <<_ACEOF
19528/* end confdefs.h. */
19529/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19531#define $ac_func innocuous_$ac_func
19532
8b9cf735 19533/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19534 which can conflict with char $ac_func (); below.
19535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19536 <limits.h> exists even on freestanding compilers. */
19537
19538#ifdef __STDC__
19539# include <limits.h>
19540#else
19541# include <assert.h>
19542#endif
8b9cf735 19543
bec39cab 19544#undef $ac_func
8b9cf735 19545
b4e70030 19546/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19547#ifdef __cplusplus
19548extern "C"
b4e70030 19549{
a3828db0 19550#endif
b4e70030
JB
19551/* We use char because int might match the return type of a gcc2
19552 builtin and then its argument prototype would still apply. */
a3828db0
MK
19553char $ac_func ();
19554/* The GNU C library defines this for functions which it implements
19555 to always fail with ENOSYS. Some functions are actually named
19556 something starting with __ and the normal name is an alias. */
b4e70030 19557#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19558choke me
b4e70030
JB
19559#else
19560char (*f) () = $ac_func;
19561#endif
19562#ifdef __cplusplus
19563}
a3828db0
MK
19564#endif
19565
bec39cab
AC
19566int
19567main ()
19568{
b4e70030 19569return f != $ac_func;
bec39cab
AC
19570 ;
19571 return 0;
19572}
19573_ACEOF
a3828db0
MK
19574rm -f conftest.$ac_objext conftest$ac_exeext
19575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19576 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19577 ac_status=$?
19578 grep -v '^ *+' conftest.er1 >conftest.err
19579 rm -f conftest.er1
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
b4e70030
JB
19583 { ac_try='test -z "$ac_c_werror_flag"
19584 || test ! -s conftest.err'
bec39cab
AC
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19587 ac_status=$?
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; } &&
a3828db0 19590 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592 (eval $ac_try) 2>&5
19593 ac_status=$?
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; }; then
a3828db0 19596 eval "$as_ac_var=yes"
086ec9eb 19597else
bec39cab
AC
19598 echo "$as_me: failed program was:" >&5
19599sed 's/^/| /' conftest.$ac_ext >&5
19600
b4e70030 19601eval "$as_ac_var=no"
a3828db0
MK
19602fi
19603rm -f conftest.err conftest.$ac_objext \
19604 conftest$ac_exeext conftest.$ac_ext
19605fi
b4e70030
JB
19606echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19607echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
19608if test `eval echo '${'$as_ac_var'}'` = yes; then
19609 cat >>confdefs.h <<_ACEOF
19610#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19611_ACEOF
19612
086ec9eb 19613fi
a3828db0
MK
19614done
19615
19616
19617for ac_func in socketpair
19618do
19619as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19620echo "$as_me:$LINENO: checking for $ac_func" >&5
19621echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19622if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
19623 echo $ECHO_N "(cached) $ECHO_C" >&6
19624else
19625 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
19626/* confdefs.h. */
19627_ACEOF
19628cat confdefs.h >>conftest.$ac_ext
19629cat >>conftest.$ac_ext <<_ACEOF
19630/* end confdefs.h. */
a3828db0
MK
19631/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19633#define $ac_func innocuous_$ac_func
19634
19635/* System header to define __stub macros and hopefully few prototypes,
19636 which can conflict with char $ac_func (); below.
19637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19638 <limits.h> exists even on freestanding compilers. */
19639
19640#ifdef __STDC__
19641# include <limits.h>
19642#else
19643# include <assert.h>
19644#endif
19645
19646#undef $ac_func
19647
b4e70030 19648/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19649#ifdef __cplusplus
19650extern "C"
b4e70030 19651{
a3828db0 19652#endif
b4e70030
JB
19653/* We use char because int might match the return type of a gcc2
19654 builtin and then its argument prototype would still apply. */
a3828db0
MK
19655char $ac_func ();
19656/* The GNU C library defines this for functions which it implements
19657 to always fail with ENOSYS. Some functions are actually named
19658 something starting with __ and the normal name is an alias. */
b4e70030 19659#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19660choke me
b4e70030
JB
19661#else
19662char (*f) () = $ac_func;
19663#endif
19664#ifdef __cplusplus
19665}
a3828db0
MK
19666#endif
19667
bec39cab
AC
19668int
19669main ()
19670{
b4e70030 19671return f != $ac_func;
bec39cab
AC
19672 ;
19673 return 0;
19674}
19675_ACEOF
a3828db0
MK
19676rm -f conftest.$ac_objext conftest$ac_exeext
19677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19678 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19679 ac_status=$?
19680 grep -v '^ *+' conftest.er1 >conftest.err
19681 rm -f conftest.er1
19682 cat conftest.err >&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } &&
b4e70030
JB
19685 { ac_try='test -z "$ac_c_werror_flag"
19686 || test ! -s conftest.err'
bec39cab
AC
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19689 ac_status=$?
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; } &&
a3828db0 19692 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19695 ac_status=$?
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; }; then
a3828db0 19698 eval "$as_ac_var=yes"
086ec9eb 19699else
bec39cab
AC
19700 echo "$as_me: failed program was:" >&5
19701sed 's/^/| /' conftest.$ac_ext >&5
19702
b4e70030 19703eval "$as_ac_var=no"
086ec9eb 19704fi
a3828db0
MK
19705rm -f conftest.err conftest.$ac_objext \
19706 conftest$ac_exeext conftest.$ac_ext
086ec9eb 19707fi
b4e70030
JB
19708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19709echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
19710if test `eval echo '${'$as_ac_var'}'` = yes; then
19711 cat >>confdefs.h <<_ACEOF
19712#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 19713_ACEOF
086ec9eb
MK
19714
19715fi
a3828db0 19716done
086ec9eb 19717
a3828db0
MK
19718
19719for ac_func in syscall
19720do
19721as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19722echo "$as_me:$LINENO: checking for $ac_func" >&5
19723echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19724if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 19725 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
19726else
19727 cat >conftest.$ac_ext <<_ACEOF
19728/* confdefs.h. */
19729_ACEOF
19730cat confdefs.h >>conftest.$ac_ext
19731cat >>conftest.$ac_ext <<_ACEOF
19732/* end confdefs.h. */
a3828db0
MK
19733/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19735#define $ac_func innocuous_$ac_func
19736
19737/* System header to define __stub macros and hopefully few prototypes,
19738 which can conflict with char $ac_func (); below.
19739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19740 <limits.h> exists even on freestanding compilers. */
19741
19742#ifdef __STDC__
19743# include <limits.h>
19744#else
19745# include <assert.h>
19746#endif
19747
19748#undef $ac_func
19749
b4e70030 19750/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19751#ifdef __cplusplus
19752extern "C"
b4e70030 19753{
a3828db0 19754#endif
b4e70030
JB
19755/* We use char because int might match the return type of a gcc2
19756 builtin and then its argument prototype would still apply. */
a3828db0
MK
19757char $ac_func ();
19758/* The GNU C library defines this for functions which it implements
19759 to always fail with ENOSYS. Some functions are actually named
19760 something starting with __ and the normal name is an alias. */
b4e70030 19761#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19762choke me
b4e70030
JB
19763#else
19764char (*f) () = $ac_func;
19765#endif
19766#ifdef __cplusplus
19767}
c906108c 19768#endif
97bf5e38 19769
bec39cab
AC
19770int
19771main ()
97bf5e38 19772{
b4e70030 19773return f != $ac_func;
bec39cab
AC
19774 ;
19775 return 0;
97bf5e38 19776}
bec39cab 19777_ACEOF
a3828db0 19778rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 19779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 19780 (eval $ac_link) 2>conftest.er1
bec39cab 19781 ac_status=$?
a3828db0
MK
19782 grep -v '^ *+' conftest.er1 >conftest.err
19783 rm -f conftest.er1
19784 cat conftest.err >&5
bec39cab 19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 19786 (exit $ac_status); } &&
b4e70030
JB
19787 { ac_try='test -z "$ac_c_werror_flag"
19788 || test ! -s conftest.err'
a3828db0
MK
19789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19790 (eval $ac_try) 2>&5
19791 ac_status=$?
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); }; } &&
19794 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796 (eval $ac_try) 2>&5
19797 ac_status=$?
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; }; then
a3828db0 19800 eval "$as_ac_var=yes"
c906108c 19801else
a3828db0 19802 echo "$as_me: failed program was:" >&5
bec39cab
AC
19803sed 's/^/| /' conftest.$ac_ext >&5
19804
b4e70030 19805eval "$as_ac_var=no"
97bf5e38 19806fi
a3828db0
MK
19807rm -f conftest.err conftest.$ac_objext \
19808 conftest$ac_exeext conftest.$ac_ext
19809fi
b4e70030
JB
19810echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19811echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
19812if test `eval echo '${'$as_ac_var'}'` = yes; then
19813 cat >>confdefs.h <<_ACEOF
19814#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 19815_ACEOF
c906108c
SS
19816
19817fi
a3828db0 19818done
c906108c 19819
a3828db0
MK
19820
19821for ac_func in ttrace
19822do
19823as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19824echo "$as_me:$LINENO: checking for $ac_func" >&5
19825echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19826if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 19827 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 19828else
bec39cab
AC
19829 cat >conftest.$ac_ext <<_ACEOF
19830/* confdefs.h. */
19831_ACEOF
19832cat confdefs.h >>conftest.$ac_ext
19833cat >>conftest.$ac_ext <<_ACEOF
19834/* end confdefs.h. */
a3828db0
MK
19835/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19837#define $ac_func innocuous_$ac_func
b83266a0 19838
a3828db0
MK
19839/* System header to define __stub macros and hopefully few prototypes,
19840 which can conflict with char $ac_func (); below.
19841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19842 <limits.h> exists even on freestanding compilers. */
19843
19844#ifdef __STDC__
19845# include <limits.h>
19846#else
19847# include <assert.h>
19848#endif
19849
19850#undef $ac_func
19851
b4e70030 19852/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19853#ifdef __cplusplus
19854extern "C"
b4e70030 19855{
a3828db0 19856#endif
b4e70030
JB
19857/* We use char because int might match the return type of a gcc2
19858 builtin and then its argument prototype would still apply. */
a3828db0
MK
19859char $ac_func ();
19860/* The GNU C library defines this for functions which it implements
19861 to always fail with ENOSYS. Some functions are actually named
19862 something starting with __ and the normal name is an alias. */
b4e70030 19863#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19864choke me
b4e70030
JB
19865#else
19866char (*f) () = $ac_func;
19867#endif
19868#ifdef __cplusplus
19869}
a3828db0 19870#endif
97bf5e38 19871
bec39cab
AC
19872int
19873main ()
19874{
b4e70030 19875return f != $ac_func;
bec39cab
AC
19876 ;
19877 return 0;
19878}
19879_ACEOF
a3828db0
MK
19880rm -f conftest.$ac_objext conftest$ac_exeext
19881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19882 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19883 ac_status=$?
19884 grep -v '^ *+' conftest.er1 >conftest.err
19885 rm -f conftest.er1
19886 cat conftest.err >&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } &&
b4e70030
JB
19889 { ac_try='test -z "$ac_c_werror_flag"
19890 || test ! -s conftest.err'
bec39cab
AC
19891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19892 (eval $ac_try) 2>&5
19893 ac_status=$?
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); }; } &&
a3828db0 19896 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19898 (eval $ac_try) 2>&5
19899 ac_status=$?
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; }; then
a3828db0 19902 eval "$as_ac_var=yes"
b83266a0 19903else
bec39cab
AC
19904 echo "$as_me: failed program was:" >&5
19905sed 's/^/| /' conftest.$ac_ext >&5
19906
b4e70030 19907eval "$as_ac_var=no"
b83266a0 19908fi
a3828db0
MK
19909rm -f conftest.err conftest.$ac_objext \
19910 conftest$ac_exeext conftest.$ac_ext
b83266a0 19911fi
b4e70030
JB
19912echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19913echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
19914if test `eval echo '${'$as_ac_var'}'` = yes; then
19915 cat >>confdefs.h <<_ACEOF
19916#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 19917_ACEOF
b83266a0 19918
97bf5e38 19919fi
a3828db0 19920done
b83266a0 19921
a3828db0
MK
19922
19923for ac_func in wborder
19924do
19925as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19926echo "$as_me:$LINENO: checking for $ac_func" >&5
19927echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19928if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19929 echo $ECHO_N "(cached) $ECHO_C" >&6
19930else
19931 cat >conftest.$ac_ext <<_ACEOF
19932/* confdefs.h. */
19933_ACEOF
19934cat confdefs.h >>conftest.$ac_ext
19935cat >>conftest.$ac_ext <<_ACEOF
19936/* end confdefs.h. */
a3828db0
MK
19937/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19939#define $ac_func innocuous_$ac_func
a4db0f07 19940
a3828db0
MK
19941/* System header to define __stub macros and hopefully few prototypes,
19942 which can conflict with char $ac_func (); below.
19943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19944 <limits.h> exists even on freestanding compilers. */
19945
19946#ifdef __STDC__
19947# include <limits.h>
19948#else
19949# include <assert.h>
19950#endif
19951
19952#undef $ac_func
19953
b4e70030 19954/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19955#ifdef __cplusplus
19956extern "C"
b4e70030 19957{
a3828db0 19958#endif
b4e70030
JB
19959/* We use char because int might match the return type of a gcc2
19960 builtin and then its argument prototype would still apply. */
a3828db0
MK
19961char $ac_func ();
19962/* The GNU C library defines this for functions which it implements
19963 to always fail with ENOSYS. Some functions are actually named
19964 something starting with __ and the normal name is an alias. */
b4e70030 19965#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19966choke me
b4e70030
JB
19967#else
19968char (*f) () = $ac_func;
19969#endif
19970#ifdef __cplusplus
19971}
a3828db0 19972#endif
97bf5e38 19973
bec39cab
AC
19974int
19975main ()
19976{
b4e70030 19977return f != $ac_func;
bec39cab
AC
19978 ;
19979 return 0;
19980}
19981_ACEOF
a3828db0
MK
19982rm -f conftest.$ac_objext conftest$ac_exeext
19983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19984 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19985 ac_status=$?
19986 grep -v '^ *+' conftest.er1 >conftest.err
19987 rm -f conftest.er1
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } &&
b4e70030
JB
19991 { ac_try='test -z "$ac_c_werror_flag"
19992 || test ! -s conftest.err'
bec39cab
AC
19993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994 (eval $ac_try) 2>&5
19995 ac_status=$?
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); }; } &&
a3828db0 19998 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000 (eval $ac_try) 2>&5
20001 ac_status=$?
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; }; then
a3828db0 20004 eval "$as_ac_var=yes"
a4db0f07 20005else
bec39cab
AC
20006 echo "$as_me: failed program was:" >&5
20007sed 's/^/| /' conftest.$ac_ext >&5
20008
b4e70030 20009eval "$as_ac_var=no"
a4db0f07 20010fi
a3828db0
MK
20011rm -f conftest.err conftest.$ac_objext \
20012 conftest$ac_exeext conftest.$ac_ext
a4db0f07 20013fi
b4e70030
JB
20014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20015echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
20016if test `eval echo '${'$as_ac_var'}'` = yes; then
20017 cat >>confdefs.h <<_ACEOF
20018#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 20019_ACEOF
a4db0f07
RH
20020
20021fi
a3828db0 20022done
c906108c 20023
06825bd1 20024
a3828db0
MK
20025# Check the return and argument types of ptrace. No canned test for
20026# this, so roll our own.
20027gdb_ptrace_headers='
20028#if HAVE_SYS_TYPES_H
20029# include <sys/types.h>
20030#endif
20031#if HAVE_SYS_PTRACE_H
20032# include <sys/ptrace.h>
20033#endif
20034#if HAVE_UNISTD_H
20035# include <unistd.h>
20036#endif
20037'
20038# There is no point in checking if we don't have a prototype.
b4e70030
JB
20039echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
20040echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
a3828db0 20041if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
20042 echo $ECHO_N "(cached) $ECHO_C" >&6
20043else
20044 cat >conftest.$ac_ext <<_ACEOF
20045/* confdefs.h. */
20046_ACEOF
20047cat confdefs.h >>conftest.$ac_ext
20048cat >>conftest.$ac_ext <<_ACEOF
20049/* end confdefs.h. */
a3828db0
MK
20050$gdb_ptrace_headers
20051
bec39cab
AC
20052int
20053main ()
20054{
a3828db0
MK
20055#ifndef ptrace
20056 char *p = (char *) ptrace;
06825bd1 20057#endif
a3828db0 20058
bec39cab
AC
20059 ;
20060 return 0;
20061}
20062_ACEOF
20063rm -f conftest.$ac_objext
20064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20065 (eval $ac_compile) 2>conftest.er1
20066 ac_status=$?
20067 grep -v '^ *+' conftest.er1 >conftest.err
20068 rm -f conftest.er1
20069 cat conftest.err >&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } &&
b4e70030
JB
20072 { ac_try='test -z "$ac_c_werror_flag"
20073 || test ! -s conftest.err'
bec39cab
AC
20074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20075 (eval $ac_try) 2>&5
20076 ac_status=$?
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); }; } &&
20079 { ac_try='test -s conftest.$ac_objext'
20080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20081 (eval $ac_try) 2>&5
20082 ac_status=$?
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); }; }; then
a3828db0 20085 ac_cv_have_decl_ptrace=yes
06825bd1 20086else
bec39cab
AC
20087 echo "$as_me: failed program was:" >&5
20088sed 's/^/| /' conftest.$ac_ext >&5
20089
b4e70030 20090ac_cv_have_decl_ptrace=no
06825bd1 20091fi
bec39cab 20092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 20093fi
b4e70030
JB
20094echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
20095echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
a3828db0 20096if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 20097
a3828db0
MK
20098cat >>confdefs.h <<_ACEOF
20099#define HAVE_DECL_PTRACE 1
20100_ACEOF
bec39cab 20101
bec39cab 20102
a3828db0
MK
20103else
20104 cat >>confdefs.h <<_ACEOF
20105#define HAVE_DECL_PTRACE 0
bec39cab 20106_ACEOF
06825bd1 20107
a3828db0
MK
20108
20109 : ${gdb_cv_func_ptrace_ret='int'}
20110 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
20111
06825bd1
MK
20112fi
20113
a3828db0 20114
064ef605
DJ
20115# Check return type. Varargs (used on GNU/Linux) conflict with the
20116# empty argument list, so check for that explicitly.
b4e70030
JB
20117echo "$as_me:$LINENO: checking return type of ptrace" >&5
20118echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
a3828db0 20119if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
20120 echo $ECHO_N "(cached) $ECHO_C" >&6
20121else
20122 cat >conftest.$ac_ext <<_ACEOF
20123/* confdefs.h. */
20124_ACEOF
20125cat confdefs.h >>conftest.$ac_ext
20126cat >>conftest.$ac_ext <<_ACEOF
20127/* end confdefs.h. */
a3828db0 20128$gdb_ptrace_headers
bec39cab
AC
20129int
20130main ()
20131{
064ef605
DJ
20132extern long ptrace (enum __ptrace_request, ...);
20133 ;
20134 return 0;
20135}
20136_ACEOF
20137rm -f conftest.$ac_objext
20138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20139 (eval $ac_compile) 2>conftest.er1
20140 ac_status=$?
20141 grep -v '^ *+' conftest.er1 >conftest.err
20142 rm -f conftest.er1
20143 cat conftest.err >&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } &&
20146 { ac_try='test -z "$ac_c_werror_flag"
20147 || test ! -s conftest.err'
20148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20149 (eval $ac_try) 2>&5
20150 ac_status=$?
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); }; } &&
20153 { ac_try='test -s conftest.$ac_objext'
20154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20155 (eval $ac_try) 2>&5
20156 ac_status=$?
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }; }; then
20159 gdb_cv_func_ptrace_ret='long'
20160else
20161 echo "$as_me: failed program was:" >&5
20162sed 's/^/| /' conftest.$ac_ext >&5
20163
20164cat >conftest.$ac_ext <<_ACEOF
20165/* confdefs.h. */
20166_ACEOF
20167cat confdefs.h >>conftest.$ac_ext
20168cat >>conftest.$ac_ext <<_ACEOF
20169/* end confdefs.h. */
20170$gdb_ptrace_headers
20171int
20172main ()
20173{
a3828db0 20174extern int ptrace ();
bec39cab
AC
20175 ;
20176 return 0;
20177}
20178_ACEOF
20179rm -f conftest.$ac_objext
20180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20181 (eval $ac_compile) 2>conftest.er1
20182 ac_status=$?
20183 grep -v '^ *+' conftest.er1 >conftest.err
20184 rm -f conftest.er1
20185 cat conftest.err >&5
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); } &&
b4e70030
JB
20188 { ac_try='test -z "$ac_c_werror_flag"
20189 || test ! -s conftest.err'
bec39cab
AC
20190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20191 (eval $ac_try) 2>&5
20192 ac_status=$?
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); }; } &&
20195 { ac_try='test -s conftest.$ac_objext'
20196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20197 (eval $ac_try) 2>&5
20198 ac_status=$?
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); }; }; then
a3828db0 20201 gdb_cv_func_ptrace_ret='int'
70f9f479 20202else
bec39cab
AC
20203 echo "$as_me: failed program was:" >&5
20204sed 's/^/| /' conftest.$ac_ext >&5
20205
b4e70030 20206gdb_cv_func_ptrace_ret='long'
70f9f479 20207fi
bec39cab 20208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 20209fi
064ef605
DJ
20210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20211fi
b4e70030
JB
20212echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
20213echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 20214
a3828db0
MK
20215cat >>confdefs.h <<_ACEOF
20216#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 20217_ACEOF
70f9f479 20218
a3828db0 20219# Check argument types.
b4e70030
JB
20220echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
20221echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
a3828db0 20222if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
20223 echo $ECHO_N "(cached) $ECHO_C" >&6
20224else
a3828db0 20225
064ef605
DJ
20226 cat >conftest.$ac_ext <<_ACEOF
20227/* confdefs.h. */
20228_ACEOF
20229cat confdefs.h >>conftest.$ac_ext
20230cat >>conftest.$ac_ext <<_ACEOF
20231/* end confdefs.h. */
20232$gdb_ptrace_headers
20233int
20234main ()
20235{
20236extern long ptrace (enum __ptrace_request, ...);
20237 ;
20238 return 0;
20239}
20240_ACEOF
20241rm -f conftest.$ac_objext
20242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20243 (eval $ac_compile) 2>conftest.er1
20244 ac_status=$?
20245 grep -v '^ *+' conftest.er1 >conftest.err
20246 rm -f conftest.er1
20247 cat conftest.err >&5
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); } &&
20250 { ac_try='test -z "$ac_c_werror_flag"
20251 || test ! -s conftest.err'
20252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20253 (eval $ac_try) 2>&5
20254 ac_status=$?
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); }; } &&
20257 { ac_try='test -s conftest.$ac_objext'
20258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20259 (eval $ac_try) 2>&5
20260 ac_status=$?
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); }; }; then
20263 gdb_cv_func_ptrace_args='int,int,long,long'
20264else
20265 echo "$as_me: failed program was:" >&5
20266sed 's/^/| /' conftest.$ac_ext >&5
20267
20268
a3828db0
MK
20269for gdb_arg1 in 'int' 'long'; do
20270 for gdb_arg2 in 'pid_t' 'int' 'long'; do
5ed10e6e 20271 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
a3828db0
MK
20272 for gdb_arg4 in 'int' 'long'; do
20273 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
20274/* confdefs.h. */
20275_ACEOF
20276cat confdefs.h >>conftest.$ac_ext
20277cat >>conftest.$ac_ext <<_ACEOF
20278/* end confdefs.h. */
a3828db0 20279$gdb_ptrace_headers
bec39cab
AC
20280int
20281main ()
20282{
a3828db0
MK
20283
20284extern $gdb_cv_func_ptrace_ret
20285 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
20286
bec39cab
AC
20287 ;
20288 return 0;
20289}
20290_ACEOF
20291rm -f conftest.$ac_objext
20292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20293 (eval $ac_compile) 2>conftest.er1
20294 ac_status=$?
20295 grep -v '^ *+' conftest.er1 >conftest.err
20296 rm -f conftest.er1
20297 cat conftest.err >&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } &&
b4e70030
JB
20300 { ac_try='test -z "$ac_c_werror_flag"
20301 || test ! -s conftest.err'
bec39cab
AC
20302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303 (eval $ac_try) 2>&5
20304 ac_status=$?
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; } &&
20307 { ac_try='test -s conftest.$ac_objext'
20308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309 (eval $ac_try) 2>&5
20310 ac_status=$?
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); }; }; then
a3828db0
MK
20313 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
20314 break 4;
5c7f2947 20315else
bec39cab
AC
20316 echo "$as_me: failed program was:" >&5
20317sed 's/^/| /' conftest.$ac_ext >&5
20318
5c7f2947 20319fi
bec39cab 20320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
20321 for gdb_arg5 in 'int *' 'int' 'long'; do
20322 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
20323/* confdefs.h. */
20324_ACEOF
20325cat confdefs.h >>conftest.$ac_ext
20326cat >>conftest.$ac_ext <<_ACEOF
20327/* end confdefs.h. */
a3828db0 20328$gdb_ptrace_headers
bec39cab
AC
20329int
20330main ()
20331{
a3828db0
MK
20332
20333extern $gdb_cv_func_ptrace_ret
20334 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
20335
bec39cab
AC
20336 ;
20337 return 0;
20338}
20339_ACEOF
20340rm -f conftest.$ac_objext
20341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20342 (eval $ac_compile) 2>conftest.er1
20343 ac_status=$?
20344 grep -v '^ *+' conftest.er1 >conftest.err
20345 rm -f conftest.er1
20346 cat conftest.err >&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); } &&
b4e70030
JB
20349 { ac_try='test -z "$ac_c_werror_flag"
20350 || test ! -s conftest.err'
bec39cab
AC
20351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20352 (eval $ac_try) 2>&5
20353 ac_status=$?
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); }; } &&
20356 { ac_try='test -s conftest.$ac_objext'
20357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20358 (eval $ac_try) 2>&5
20359 ac_status=$?
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; }; then
a3828db0
MK
20362
20363gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
20364 break 5;
78434e59 20365else
bec39cab
AC
20366 echo "$as_me: failed program was:" >&5
20367sed 's/^/| /' conftest.$ac_ext >&5
20368
78434e59 20369fi
bec39cab 20370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
20371 done
20372 done
20373 done
20374 done
20375done
20376# Provide a safe default value.
20377: ${gdb_cv_func_ptrace_args='int,int,long,long'}
20378
064ef605
DJ
20379fi
20380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
78434e59 20381fi
b4e70030
JB
20382echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
20383echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
a3828db0
MK
20384ac_save_IFS=$IFS; IFS=','
20385set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
20386IFS=$ac_save_IFS
20387shift
bec39cab 20388
a3828db0
MK
20389cat >>confdefs.h <<_ACEOF
20390#define PTRACE_TYPE_ARG3 $3
20391_ACEOF
20392
20393if test -n "$5"; then
20394
20395cat >>confdefs.h <<_ACEOF
20396#define PTRACE_TYPE_ARG5 $5
bec39cab 20397_ACEOF
78434e59
MK
20398
20399fi
20400
a3828db0 20401if test "$cross_compiling" = no; then
b4e70030
JB
20402 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20403echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 20404if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 20405 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
20406else
20407 if test "$cross_compiling" = yes; then
20408 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20409echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20410 { (exit 1); exit 1; }; }
bec39cab
AC
20411else
20412 cat >conftest.$ac_ext <<_ACEOF
20413/* confdefs.h. */
20414_ACEOF
20415cat confdefs.h >>conftest.$ac_ext
20416cat >>conftest.$ac_ext <<_ACEOF
20417/* end confdefs.h. */
b4e70030
JB
20418#if HAVE_UNISTD_H
20419# include <unistd.h>
20420#endif
20421
bec39cab
AC
20422int
20423main ()
20424{
a3828db0
MK
20425/* If this system has a BSD-style setpgrp which takes arguments,
20426 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20427 exit successfully. */
b4e70030 20428 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
20429 ;
20430 return 0;
20431}
20432_ACEOF
a3828db0
MK
20433rm -f conftest$ac_exeext
20434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20435 (eval $ac_link) 2>&5
bec39cab
AC
20436 ac_status=$?
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 20438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
20439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440 (eval $ac_try) 2>&5
20441 ac_status=$?
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); }; }; then
a3828db0 20444 ac_cv_func_setpgrp_void=no
c906108c 20445else
a3828db0
MK
20446 echo "$as_me: program exited with status $ac_status" >&5
20447echo "$as_me: failed program was:" >&5
bec39cab
AC
20448sed 's/^/| /' conftest.$ac_ext >&5
20449
a3828db0
MK
20450( exit $ac_status )
20451ac_cv_func_setpgrp_void=yes
c906108c 20452fi
b4e70030 20453rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 20454fi
a3828db0 20455fi
b4e70030
JB
20456echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20457echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0
MK
20458if test $ac_cv_func_setpgrp_void = yes; then
20459
20460cat >>confdefs.h <<\_ACEOF
20461#define SETPGRP_VOID 1
bec39cab 20462_ACEOF
97bf5e38
MK
20463
20464fi
a3828db0
MK
20465
20466else
b4e70030
JB
20467 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20468echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 20469if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 20470 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20471else
bec39cab
AC
20472 cat >conftest.$ac_ext <<_ACEOF
20473/* confdefs.h. */
20474_ACEOF
20475cat confdefs.h >>conftest.$ac_ext
20476cat >>conftest.$ac_ext <<_ACEOF
20477/* end confdefs.h. */
a3828db0
MK
20478
20479#include <unistd.h>
20480
bec39cab
AC
20481int
20482main ()
20483{
a3828db0
MK
20484
20485 if (setpgrp(1,1) == -1)
20486 exit (0);
20487 else
20488 exit (1);
20489
bec39cab
AC
20490 ;
20491 return 0;
20492}
20493_ACEOF
20494rm -f conftest.$ac_objext
20495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20496 (eval $ac_compile) 2>conftest.er1
20497 ac_status=$?
20498 grep -v '^ *+' conftest.er1 >conftest.err
20499 rm -f conftest.er1
20500 cat conftest.err >&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } &&
b4e70030
JB
20503 { ac_try='test -z "$ac_c_werror_flag"
20504 || test ! -s conftest.err'
bec39cab
AC
20505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20506 (eval $ac_try) 2>&5
20507 ac_status=$?
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); }; } &&
20510 { ac_try='test -s conftest.$ac_objext'
20511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512 (eval $ac_try) 2>&5
20513 ac_status=$?
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); }; }; then
a3828db0 20516 ac_cv_func_setpgrp_void=no
c906108c 20517else
bec39cab
AC
20518 echo "$as_me: failed program was:" >&5
20519sed 's/^/| /' conftest.$ac_ext >&5
20520
b4e70030 20521ac_cv_func_setpgrp_void=yes
c906108c 20522fi
bec39cab 20523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20524fi
b4e70030
JB
20525echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20526echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0 20527if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 20528 cat >>confdefs.h <<\_ACEOF
a3828db0 20529#define SETPGRP_VOID 1
bec39cab 20530_ACEOF
c3f6f71d 20531
a3828db0 20532fi
c906108c
SS
20533fi
20534
a3828db0
MK
20535# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
20536# since sigsetjmp might only be defined as a macro.
b4e70030
JB
20537echo "$as_me:$LINENO: checking for sigsetjmp" >&5
20538echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
a3828db0 20539if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
20540 echo $ECHO_N "(cached) $ECHO_C" >&6
20541else
20542 cat >conftest.$ac_ext <<_ACEOF
20543/* confdefs.h. */
20544_ACEOF
20545cat confdefs.h >>conftest.$ac_ext
20546cat >>conftest.$ac_ext <<_ACEOF
20547/* end confdefs.h. */
a3828db0
MK
20548
20549#include <setjmp.h>
20550
bec39cab
AC
20551int
20552main ()
20553{
a3828db0 20554sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
20555 ;
20556 return 0;
20557}
20558_ACEOF
20559rm -f conftest.$ac_objext
20560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20561 (eval $ac_compile) 2>conftest.er1
20562 ac_status=$?
20563 grep -v '^ *+' conftest.er1 >conftest.err
20564 rm -f conftest.er1
20565 cat conftest.err >&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); } &&
b4e70030
JB
20568 { ac_try='test -z "$ac_c_werror_flag"
20569 || test ! -s conftest.err'
bec39cab
AC
20570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20571 (eval $ac_try) 2>&5
20572 ac_status=$?
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); }; } &&
20575 { ac_try='test -s conftest.$ac_objext'
20576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20577 (eval $ac_try) 2>&5
20578 ac_status=$?
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); }; }; then
a3828db0 20581 gdb_cv_func_sigsetjmp=yes
c906108c 20582else
bec39cab
AC
20583 echo "$as_me: failed program was:" >&5
20584sed 's/^/| /' conftest.$ac_ext >&5
20585
b4e70030 20586gdb_cv_func_sigsetjmp=no
c906108c 20587fi
bec39cab 20588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20589fi
b4e70030
JB
20590echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
20591echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
a3828db0 20592if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 20593
a3828db0
MK
20594cat >>confdefs.h <<\_ACEOF
20595#define HAVE_SIGSETJMP 1
bec39cab 20596_ACEOF
c906108c 20597
97bf5e38 20598fi
c906108c 20599
a3828db0
MK
20600# Assume we'll default to using the included libiberty regex.
20601gdb_use_included_regex=yes
20602
20603# However, if the system regex is GNU regex, then default to *not*
20604# using the included regex.
b4e70030
JB
20605echo "$as_me:$LINENO: checking for GNU regex" >&5
20606echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
a3828db0 20607if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
20608 echo $ECHO_N "(cached) $ECHO_C" >&6
20609else
20610 cat >conftest.$ac_ext <<_ACEOF
20611/* confdefs.h. */
20612_ACEOF
20613cat confdefs.h >>conftest.$ac_ext
20614cat >>conftest.$ac_ext <<_ACEOF
20615/* end confdefs.h. */
a3828db0 20616#include <gnu-versions.h>
bec39cab
AC
20617int
20618main ()
20619{
a3828db0
MK
20620#define REGEX_INTERFACE_VERSION 1
20621#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
20622# error "Version mismatch"
20623#endif
bec39cab
AC
20624 ;
20625 return 0;
20626}
20627_ACEOF
20628rm -f conftest.$ac_objext
20629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20630 (eval $ac_compile) 2>conftest.er1
20631 ac_status=$?
20632 grep -v '^ *+' conftest.er1 >conftest.err
20633 rm -f conftest.er1
20634 cat conftest.err >&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); } &&
b4e70030
JB
20637 { ac_try='test -z "$ac_c_werror_flag"
20638 || test ! -s conftest.err'
bec39cab
AC
20639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640 (eval $ac_try) 2>&5
20641 ac_status=$?
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; } &&
20644 { ac_try='test -s conftest.$ac_objext'
20645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20646 (eval $ac_try) 2>&5
20647 ac_status=$?
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); }; }; then
a3828db0 20650 gdb_cv_have_gnu_regex=yes
c906108c 20651else
bec39cab
AC
20652 echo "$as_me: failed program was:" >&5
20653sed 's/^/| /' conftest.$ac_ext >&5
20654
b4e70030 20655gdb_cv_have_gnu_regex=no
c906108c 20656fi
bec39cab 20657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20658fi
b4e70030
JB
20659echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
20660echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
a3828db0
MK
20661if test $gdb_cv_have_gnu_regex = yes; then
20662 gdb_use_included_regex=no
20663fi
c906108c 20664
a3828db0 20665
b4e70030 20666# Check whether --with-included-regex or --without-included-regex was given.
a3828db0 20667if test "${with_included_regex+set}" = set; then
b4e70030
JB
20668 withval="$with_included_regex"
20669 gdb_with_regex=$withval
a3828db0
MK
20670else
20671 gdb_with_regex=$gdb_use_included_regex
b4e70030 20672fi;
a3828db0
MK
20673if test "$gdb_with_regex" = yes; then
20674
20675cat >>confdefs.h <<\_ACEOF
20676#define USE_INCLUDED_REGEX 1
bec39cab 20677_ACEOF
c906108c 20678
97bf5e38 20679fi
c906108c 20680
5c45e068 20681# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
b4e70030
JB
20682echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
20683echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
5c45e068 20684if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
20685 echo $ECHO_N "(cached) $ECHO_C" >&6
20686else
20687 cat >conftest.$ac_ext <<_ACEOF
20688/* confdefs.h. */
20689_ACEOF
20690cat confdefs.h >>conftest.$ac_ext
20691cat >>conftest.$ac_ext <<_ACEOF
20692/* end confdefs.h. */
a3828db0
MK
20693#include <sys/param.h>
20694#include <sys/proc.h>
5c45e068
MK
20695
20696
bec39cab
AC
20697int
20698main ()
20699{
5c45e068
MK
20700static struct thread ac_aggr;
20701if (ac_aggr.td_pcb)
20702return 0;
bec39cab
AC
20703 ;
20704 return 0;
20705}
20706_ACEOF
20707rm -f conftest.$ac_objext
20708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20709 (eval $ac_compile) 2>conftest.er1
20710 ac_status=$?
20711 grep -v '^ *+' conftest.er1 >conftest.err
20712 rm -f conftest.er1
20713 cat conftest.err >&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); } &&
b4e70030
JB
20716 { ac_try='test -z "$ac_c_werror_flag"
20717 || test ! -s conftest.err'
bec39cab
AC
20718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20719 (eval $ac_try) 2>&5
20720 ac_status=$?
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); }; } &&
20723 { ac_try='test -s conftest.$ac_objext'
20724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20725 (eval $ac_try) 2>&5
20726 ac_status=$?
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); }; }; then
5c45e068 20729 ac_cv_member_struct_thread_td_pcb=yes
c906108c 20730else
bec39cab
AC
20731 echo "$as_me: failed program was:" >&5
20732sed 's/^/| /' conftest.$ac_ext >&5
20733
b4e70030 20734cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
20735/* confdefs.h. */
20736_ACEOF
20737cat confdefs.h >>conftest.$ac_ext
20738cat >>conftest.$ac_ext <<_ACEOF
20739/* end confdefs.h. */
20740#include <sys/param.h>
20741#include <sys/proc.h>
20742
20743
20744int
20745main ()
20746{
20747static struct thread ac_aggr;
20748if (sizeof ac_aggr.td_pcb)
20749return 0;
20750 ;
20751 return 0;
20752}
20753_ACEOF
20754rm -f conftest.$ac_objext
20755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20756 (eval $ac_compile) 2>conftest.er1
20757 ac_status=$?
20758 grep -v '^ *+' conftest.er1 >conftest.err
20759 rm -f conftest.er1
20760 cat conftest.err >&5
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); } &&
b4e70030
JB
20763 { ac_try='test -z "$ac_c_werror_flag"
20764 || test ! -s conftest.err'
5c45e068
MK
20765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766 (eval $ac_try) 2>&5
20767 ac_status=$?
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); }; } &&
20770 { ac_try='test -s conftest.$ac_objext'
20771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 (eval $ac_try) 2>&5
20773 ac_status=$?
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; }; then
20776 ac_cv_member_struct_thread_td_pcb=yes
20777else
20778 echo "$as_me: failed program was:" >&5
20779sed 's/^/| /' conftest.$ac_ext >&5
20780
b4e70030 20781ac_cv_member_struct_thread_td_pcb=no
5c45e068
MK
20782fi
20783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20784fi
bec39cab 20785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20786fi
b4e70030
JB
20787echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
20788echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
5c45e068 20789if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 20790
5c45e068 20791cat >>confdefs.h <<_ACEOF
a3828db0 20792#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 20793_ACEOF
c906108c 20794
5c45e068 20795
97bf5e38 20796fi
c906108c 20797
5c45e068 20798
a3828db0 20799# See if <sys/lwp.h> defines `struct lwp`.
b4e70030
JB
20800echo "$as_me:$LINENO: checking for struct lwp" >&5
20801echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
a3828db0 20802if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
20803 echo $ECHO_N "(cached) $ECHO_C" >&6
20804else
20805 cat >conftest.$ac_ext <<_ACEOF
20806/* confdefs.h. */
20807_ACEOF
20808cat confdefs.h >>conftest.$ac_ext
20809cat >>conftest.$ac_ext <<_ACEOF
20810/* end confdefs.h. */
a3828db0
MK
20811#include <sys/param.h>
20812#include <sys/lwp.h>
bec39cab
AC
20813int
20814main ()
20815{
a3828db0 20816struct lwp l;
bec39cab
AC
20817 ;
20818 return 0;
20819}
20820_ACEOF
20821rm -f conftest.$ac_objext
20822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20823 (eval $ac_compile) 2>conftest.er1
20824 ac_status=$?
20825 grep -v '^ *+' conftest.er1 >conftest.err
20826 rm -f conftest.er1
20827 cat conftest.err >&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); } &&
b4e70030
JB
20830 { ac_try='test -z "$ac_c_werror_flag"
20831 || test ! -s conftest.err'
bec39cab
AC
20832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20833 (eval $ac_try) 2>&5
20834 ac_status=$?
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; } &&
20837 { ac_try='test -s conftest.$ac_objext'
20838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20839 (eval $ac_try) 2>&5
20840 ac_status=$?
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; }; then
a3828db0 20843 gdb_cv_struct_lwp=yes
c906108c 20844else
bec39cab
AC
20845 echo "$as_me: failed program was:" >&5
20846sed 's/^/| /' conftest.$ac_ext >&5
20847
b4e70030 20848gdb_cv_struct_lwp=no
c906108c 20849fi
bec39cab 20850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20851fi
b4e70030
JB
20852echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
20853echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
a3828db0 20854if test $gdb_cv_struct_lwp = yes; then
c906108c 20855
a3828db0
MK
20856cat >>confdefs.h <<\_ACEOF
20857#define HAVE_STRUCT_LWP 1
bec39cab 20858_ACEOF
c906108c 20859
97bf5e38 20860fi
c906108c 20861
a3828db0 20862# See if <machine/reg.h> degines `struct reg'.
b4e70030
JB
20863echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
20864echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
a3828db0 20865if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
20866 echo $ECHO_N "(cached) $ECHO_C" >&6
20867else
20868 cat >conftest.$ac_ext <<_ACEOF
20869/* confdefs.h. */
20870_ACEOF
20871cat confdefs.h >>conftest.$ac_ext
20872cat >>conftest.$ac_ext <<_ACEOF
20873/* end confdefs.h. */
a3828db0
MK
20874#include <sys/types.h>
20875#include <machine/reg.h>
bec39cab
AC
20876int
20877main ()
20878{
a3828db0 20879struct reg r;
bec39cab
AC
20880 ;
20881 return 0;
20882}
20883_ACEOF
20884rm -f conftest.$ac_objext
20885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20886 (eval $ac_compile) 2>conftest.er1
20887 ac_status=$?
20888 grep -v '^ *+' conftest.er1 >conftest.err
20889 rm -f conftest.er1
20890 cat conftest.err >&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); } &&
b4e70030
JB
20893 { ac_try='test -z "$ac_c_werror_flag"
20894 || test ! -s conftest.err'
bec39cab
AC
20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896 (eval $ac_try) 2>&5
20897 ac_status=$?
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; } &&
20900 { ac_try='test -s conftest.$ac_objext'
20901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902 (eval $ac_try) 2>&5
20903 ac_status=$?
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; }; then
a3828db0 20906 gdb_cv_struct_reg=yes
27ca5dad 20907else
bec39cab
AC
20908 echo "$as_me: failed program was:" >&5
20909sed 's/^/| /' conftest.$ac_ext >&5
20910
b4e70030 20911gdb_cv_struct_reg=no
27ca5dad 20912fi
bec39cab 20913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 20914fi
b4e70030
JB
20915echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
20916echo "${ECHO_T}$gdb_cv_struct_reg" >&6
a3828db0 20917if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
20918
20919cat >>confdefs.h <<\_ACEOF
a3828db0 20920#define HAVE_STRUCT_REG 1
bec39cab 20921_ACEOF
27ca5dad
MC
20922
20923fi
97bf5e38 20924
a3828db0
MK
20925# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
20926# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
b4e70030
JB
20927echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
20928echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
5c45e068 20929if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 20930 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 20931else
bec39cab
AC
20932 cat >conftest.$ac_ext <<_ACEOF
20933/* confdefs.h. */
20934_ACEOF
20935cat confdefs.h >>conftest.$ac_ext
20936cat >>conftest.$ac_ext <<_ACEOF
20937/* end confdefs.h. */
a3828db0 20938#include <machine/reg.h>
5c45e068
MK
20939
20940int
20941main ()
20942{
20943static struct reg ac_aggr;
20944if (ac_aggr.r_fs)
20945return 0;
20946 ;
20947 return 0;
20948}
20949_ACEOF
20950rm -f conftest.$ac_objext
20951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20952 (eval $ac_compile) 2>conftest.er1
20953 ac_status=$?
20954 grep -v '^ *+' conftest.er1 >conftest.err
20955 rm -f conftest.er1
20956 cat conftest.err >&5
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); } &&
b4e70030
JB
20959 { ac_try='test -z "$ac_c_werror_flag"
20960 || test ! -s conftest.err'
5c45e068
MK
20961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20962 (eval $ac_try) 2>&5
20963 ac_status=$?
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); }; } &&
20966 { ac_try='test -s conftest.$ac_objext'
20967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20968 (eval $ac_try) 2>&5
20969 ac_status=$?
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); }; }; then
20972 ac_cv_member_struct_reg_r_fs=yes
20973else
20974 echo "$as_me: failed program was:" >&5
20975sed 's/^/| /' conftest.$ac_ext >&5
20976
b4e70030 20977cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
20978/* confdefs.h. */
20979_ACEOF
20980cat confdefs.h >>conftest.$ac_ext
20981cat >>conftest.$ac_ext <<_ACEOF
20982/* end confdefs.h. */
20983#include <machine/reg.h>
20984
bec39cab
AC
20985int
20986main ()
20987{
5c45e068
MK
20988static struct reg ac_aggr;
20989if (sizeof ac_aggr.r_fs)
20990return 0;
bec39cab
AC
20991 ;
20992 return 0;
20993}
20994_ACEOF
20995rm -f conftest.$ac_objext
20996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20997 (eval $ac_compile) 2>conftest.er1
20998 ac_status=$?
20999 grep -v '^ *+' conftest.er1 >conftest.err
21000 rm -f conftest.er1
21001 cat conftest.err >&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } &&
b4e70030
JB
21004 { ac_try='test -z "$ac_c_werror_flag"
21005 || test ! -s conftest.err'
bec39cab
AC
21006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007 (eval $ac_try) 2>&5
21008 ac_status=$?
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); }; } &&
21011 { ac_try='test -s conftest.$ac_objext'
21012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21013 (eval $ac_try) 2>&5
21014 ac_status=$?
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); }; }; then
5c45e068 21017 ac_cv_member_struct_reg_r_fs=yes
3862412b 21018else
bec39cab
AC
21019 echo "$as_me: failed program was:" >&5
21020sed 's/^/| /' conftest.$ac_ext >&5
21021
b4e70030 21022ac_cv_member_struct_reg_r_fs=no
3862412b 21023fi
bec39cab 21024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 21025fi
5c45e068
MK
21026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21027fi
b4e70030
JB
21028echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
21029echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
5c45e068
MK
21030if test $ac_cv_member_struct_reg_r_fs = yes; then
21031
21032cat >>confdefs.h <<_ACEOF
a3828db0 21033#define HAVE_STRUCT_REG_R_FS 1
bec39cab 21034_ACEOF
3862412b 21035
5c45e068 21036
97bf5e38 21037fi
b4e70030
JB
21038echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
21039echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
5c45e068 21040if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 21041 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 21042else
bec39cab
AC
21043 cat >conftest.$ac_ext <<_ACEOF
21044/* confdefs.h. */
21045_ACEOF
21046cat confdefs.h >>conftest.$ac_ext
21047cat >>conftest.$ac_ext <<_ACEOF
21048/* end confdefs.h. */
a3828db0 21049#include <machine/reg.h>
5c45e068 21050
bec39cab
AC
21051int
21052main ()
21053{
5c45e068
MK
21054static struct reg ac_aggr;
21055if (ac_aggr.r_gs)
21056return 0;
bec39cab
AC
21057 ;
21058 return 0;
21059}
21060_ACEOF
21061rm -f conftest.$ac_objext
21062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21063 (eval $ac_compile) 2>conftest.er1
21064 ac_status=$?
21065 grep -v '^ *+' conftest.er1 >conftest.err
21066 rm -f conftest.er1
21067 cat conftest.err >&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); } &&
b4e70030
JB
21070 { ac_try='test -z "$ac_c_werror_flag"
21071 || test ! -s conftest.err'
bec39cab
AC
21072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073 (eval $ac_try) 2>&5
21074 ac_status=$?
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); }; } &&
21077 { ac_try='test -s conftest.$ac_objext'
21078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079 (eval $ac_try) 2>&5
21080 ac_status=$?
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; }; then
5c45e068 21083 ac_cv_member_struct_reg_r_gs=yes
3862412b 21084else
bec39cab
AC
21085 echo "$as_me: failed program was:" >&5
21086sed 's/^/| /' conftest.$ac_ext >&5
21087
b4e70030 21088cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
21089/* confdefs.h. */
21090_ACEOF
21091cat confdefs.h >>conftest.$ac_ext
21092cat >>conftest.$ac_ext <<_ACEOF
21093/* end confdefs.h. */
21094#include <machine/reg.h>
21095
21096int
21097main ()
21098{
21099static struct reg ac_aggr;
21100if (sizeof ac_aggr.r_gs)
21101return 0;
21102 ;
21103 return 0;
21104}
21105_ACEOF
21106rm -f conftest.$ac_objext
21107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21108 (eval $ac_compile) 2>conftest.er1
21109 ac_status=$?
21110 grep -v '^ *+' conftest.er1 >conftest.err
21111 rm -f conftest.er1
21112 cat conftest.err >&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); } &&
b4e70030
JB
21115 { ac_try='test -z "$ac_c_werror_flag"
21116 || test ! -s conftest.err'
5c45e068
MK
21117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21118 (eval $ac_try) 2>&5
21119 ac_status=$?
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); }; } &&
21122 { ac_try='test -s conftest.$ac_objext'
21123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21124 (eval $ac_try) 2>&5
21125 ac_status=$?
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); }; }; then
21128 ac_cv_member_struct_reg_r_gs=yes
21129else
21130 echo "$as_me: failed program was:" >&5
21131sed 's/^/| /' conftest.$ac_ext >&5
21132
b4e70030 21133ac_cv_member_struct_reg_r_gs=no
3862412b 21134fi
bec39cab 21135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 21136fi
5c45e068
MK
21137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21138fi
b4e70030
JB
21139echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
21140echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
5c45e068
MK
21141if test $ac_cv_member_struct_reg_r_gs = yes; then
21142
21143cat >>confdefs.h <<_ACEOF
a3828db0 21144#define HAVE_STRUCT_REG_R_GS 1
bec39cab 21145_ACEOF
3862412b 21146
5c45e068 21147
97bf5e38 21148fi
3862412b 21149
5c45e068 21150
a3828db0 21151# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
b4e70030
JB
21152echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
21153echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
a3828db0 21154if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 21155 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 21156else
bec39cab
AC
21157 cat >conftest.$ac_ext <<_ACEOF
21158/* confdefs.h. */
21159_ACEOF
21160cat confdefs.h >>conftest.$ac_ext
21161cat >>conftest.$ac_ext <<_ACEOF
21162/* end confdefs.h. */
a3828db0 21163#include <sys/ptrace.h>
bec39cab
AC
21164int
21165main ()
21166{
a3828db0 21167PTRACE_GETREGS;
bec39cab
AC
21168 ;
21169 return 0;
21170}
21171_ACEOF
21172rm -f conftest.$ac_objext
21173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21174 (eval $ac_compile) 2>conftest.er1
21175 ac_status=$?
21176 grep -v '^ *+' conftest.er1 >conftest.err
21177 rm -f conftest.er1
21178 cat conftest.err >&5
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); } &&
b4e70030
JB
21181 { ac_try='test -z "$ac_c_werror_flag"
21182 || test ! -s conftest.err'
bec39cab
AC
21183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21184 (eval $ac_try) 2>&5
21185 ac_status=$?
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); }; } &&
21188 { ac_try='test -s conftest.$ac_objext'
21189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21190 (eval $ac_try) 2>&5
21191 ac_status=$?
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); }; }; then
a3828db0 21194 gdb_cv_have_ptrace_getregs=yes
451928c5 21195else
bec39cab
AC
21196 echo "$as_me: failed program was:" >&5
21197sed 's/^/| /' conftest.$ac_ext >&5
21198
b4e70030 21199gdb_cv_have_ptrace_getregs=no
451928c5 21200fi
bec39cab 21201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
21202fi
21203
b4e70030
JB
21204echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
21205echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
a3828db0 21206if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
21207
21208cat >>confdefs.h <<\_ACEOF
a3828db0 21209#define HAVE_PTRACE_GETREGS 1
bec39cab 21210_ACEOF
451928c5 21211
97bf5e38 21212fi
451928c5 21213
a3828db0 21214# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
b4e70030
JB
21215echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
21216echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
a3828db0 21217if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 21218 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 21219else
bec39cab
AC
21220 cat >conftest.$ac_ext <<_ACEOF
21221/* confdefs.h. */
21222_ACEOF
21223cat confdefs.h >>conftest.$ac_ext
21224cat >>conftest.$ac_ext <<_ACEOF
21225/* end confdefs.h. */
a3828db0 21226#include <sys/ptrace.h>
bec39cab
AC
21227int
21228main ()
21229{
a3828db0 21230PTRACE_GETFPXREGS;
bec39cab
AC
21231 ;
21232 return 0;
21233}
21234_ACEOF
21235rm -f conftest.$ac_objext
21236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21237 (eval $ac_compile) 2>conftest.er1
21238 ac_status=$?
21239 grep -v '^ *+' conftest.er1 >conftest.err
21240 rm -f conftest.er1
21241 cat conftest.err >&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); } &&
b4e70030
JB
21244 { ac_try='test -z "$ac_c_werror_flag"
21245 || test ! -s conftest.err'
bec39cab
AC
21246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21247 (eval $ac_try) 2>&5
21248 ac_status=$?
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); }; } &&
21251 { ac_try='test -s conftest.$ac_objext'
21252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21253 (eval $ac_try) 2>&5
21254 ac_status=$?
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); }; }; then
a3828db0 21257 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 21258else
bec39cab
AC
21259 echo "$as_me: failed program was:" >&5
21260sed 's/^/| /' conftest.$ac_ext >&5
21261
b4e70030 21262gdb_cv_have_ptrace_getfpxregs=no
451928c5 21263fi
bec39cab 21264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
21265fi
21266
b4e70030
JB
21267echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
21268echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
a3828db0 21269if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
21270
21271cat >>confdefs.h <<\_ACEOF
a3828db0 21272#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 21273_ACEOF
451928c5 21274
97bf5e38 21275fi
451928c5 21276
a3828db0 21277# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
b4e70030
JB
21278echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
21279echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
a3828db0 21280if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 21281 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 21282else
bec39cab
AC
21283 cat >conftest.$ac_ext <<_ACEOF
21284/* confdefs.h. */
21285_ACEOF
21286cat confdefs.h >>conftest.$ac_ext
21287cat >>conftest.$ac_ext <<_ACEOF
21288/* end confdefs.h. */
a3828db0
MK
21289#include <sys/types.h>
21290#include <sys/ptrace.h>
bec39cab
AC
21291int
21292main ()
21293{
a3828db0 21294PT_GETDBREGS;
bec39cab
AC
21295 ;
21296 return 0;
21297}
21298_ACEOF
21299rm -f conftest.$ac_objext
21300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21301 (eval $ac_compile) 2>conftest.er1
21302 ac_status=$?
21303 grep -v '^ *+' conftest.er1 >conftest.err
21304 rm -f conftest.er1
21305 cat conftest.err >&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } &&
b4e70030
JB
21308 { ac_try='test -z "$ac_c_werror_flag"
21309 || test ! -s conftest.err'
bec39cab
AC
21310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311 (eval $ac_try) 2>&5
21312 ac_status=$?
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); }; } &&
21315 { ac_try='test -s conftest.$ac_objext'
21316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21317 (eval $ac_try) 2>&5
21318 ac_status=$?
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); }; }; then
a3828db0 21321 gdb_cv_have_pt_getdbregs=yes
3862412b 21322else
bec39cab
AC
21323 echo "$as_me: failed program was:" >&5
21324sed 's/^/| /' conftest.$ac_ext >&5
21325
b4e70030 21326gdb_cv_have_pt_getdbregs=no
3862412b 21327fi
bec39cab 21328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
21329fi
21330
b4e70030
JB
21331echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
21332echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
a3828db0 21333if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
21334
21335cat >>confdefs.h <<\_ACEOF
a3828db0 21336#define HAVE_PT_GETDBREGS 1
bec39cab 21337_ACEOF
3862412b 21338
97bf5e38 21339fi
3862412b 21340
a3828db0 21341# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
b4e70030
JB
21342echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
21343echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
a3828db0 21344if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 21345 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 21346else
bec39cab
AC
21347 cat >conftest.$ac_ext <<_ACEOF
21348/* confdefs.h. */
21349_ACEOF
21350cat confdefs.h >>conftest.$ac_ext
21351cat >>conftest.$ac_ext <<_ACEOF
21352/* end confdefs.h. */
a3828db0
MK
21353#include <sys/types.h>
21354#include <sys/ptrace.h>
bec39cab
AC
21355int
21356main ()
21357{
a3828db0 21358PT_GETXMMREGS;
bec39cab
AC
21359 ;
21360 return 0;
21361}
21362_ACEOF
21363rm -f conftest.$ac_objext
21364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21365 (eval $ac_compile) 2>conftest.er1
21366 ac_status=$?
21367 grep -v '^ *+' conftest.er1 >conftest.err
21368 rm -f conftest.er1
21369 cat conftest.err >&5
21370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 (exit $ac_status); } &&
b4e70030
JB
21372 { ac_try='test -z "$ac_c_werror_flag"
21373 || test ! -s conftest.err'
bec39cab
AC
21374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21375 (eval $ac_try) 2>&5
21376 ac_status=$?
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); }; } &&
21379 { ac_try='test -s conftest.$ac_objext'
21380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21381 (eval $ac_try) 2>&5
21382 ac_status=$?
21383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); }; }; then
a3828db0 21385 gdb_cv_have_pt_getxmmregs=yes
3862412b 21386else
bec39cab
AC
21387 echo "$as_me: failed program was:" >&5
21388sed 's/^/| /' conftest.$ac_ext >&5
21389
b4e70030 21390gdb_cv_have_pt_getxmmregs=no
3862412b 21391fi
bec39cab 21392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
21393fi
21394
b4e70030
JB
21395echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
21396echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
a3828db0 21397if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
21398
21399cat >>confdefs.h <<\_ACEOF
a3828db0 21400#define HAVE_PT_GETXMMREGS 1
bec39cab 21401_ACEOF
3862412b 21402
97bf5e38 21403fi
3862412b 21404
eb368090 21405# Detect which type of /proc is in use, such as for Unixware or Solaris.
97bf5e38
MK
21406
21407if test "${target}" = "${host}"; then
21408 case "${host}" in
97bf5e38 21409 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
21410
21411cat >>confdefs.h <<\_ACEOF
97bf5e38 21412#define NEW_PROC_API 1
bec39cab 21413_ACEOF
97bf5e38
MK
21414
21415 ;;
c162e8c9 21416 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
60ca704f
SE
21417
21418cat >>confdefs.h <<\_ACEOF
97bf5e38 21419#define NEW_PROC_API 1
bec39cab 21420_ACEOF
c960c18f
AC
21421
21422 ;;
21423 mips-sgi-irix5*)
21424 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
21425
21426cat >>confdefs.h <<\_ACEOF
c960c18f 21427#define _KMEMUSER 1
bec39cab 21428_ACEOF
97bf5e38
MK
21429
21430 ;;
21431 esac
21432fi
21433
21434if test "$ac_cv_header_sys_procfs_h" = yes; then
b4e70030
JB
21435 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
21436echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21437 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
21438 echo $ECHO_N "(cached) $ECHO_C" >&6
21439else
21440 cat >conftest.$ac_ext <<_ACEOF
21441/* confdefs.h. */
21442_ACEOF
21443cat confdefs.h >>conftest.$ac_ext
21444cat >>conftest.$ac_ext <<_ACEOF
21445/* end confdefs.h. */
596c9d4b
KB
21446
21447#define _SYSCALL32
21448#include <sys/procfs.h>
bec39cab
AC
21449int
21450main ()
21451{
97bf5e38 21452pstatus_t avar
bec39cab
AC
21453 ;
21454 return 0;
21455}
21456_ACEOF
21457rm -f conftest.$ac_objext
21458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21459 (eval $ac_compile) 2>conftest.er1
21460 ac_status=$?
21461 grep -v '^ *+' conftest.er1 >conftest.err
21462 rm -f conftest.er1
21463 cat conftest.err >&5
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); } &&
b4e70030
JB
21466 { ac_try='test -z "$ac_c_werror_flag"
21467 || test ! -s conftest.err'
bec39cab
AC
21468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21469 (eval $ac_try) 2>&5
21470 ac_status=$?
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); }; } &&
21473 { ac_try='test -s conftest.$ac_objext'
21474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21475 (eval $ac_try) 2>&5
21476 ac_status=$?
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); }; }; then
97bf5e38 21479 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 21480else
bec39cab
AC
21481 echo "$as_me: failed program was:" >&5
21482sed 's/^/| /' conftest.$ac_ext >&5
21483
b4e70030 21484bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 21485
596c9d4b 21486fi
bec39cab 21487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
21488fi
21489
97bf5e38 21490 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
21491
21492cat >>confdefs.h <<\_ACEOF
97bf5e38 21493#define HAVE_PSTATUS_T 1
bec39cab 21494_ACEOF
596c9d4b
KB
21495
21496 fi
b4e70030
JB
21497 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
21498echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 21499
b4e70030
JB
21500 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
21501echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21502 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
21503 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 21504else
bec39cab
AC
21505 cat >conftest.$ac_ext <<_ACEOF
21506/* confdefs.h. */
21507_ACEOF
21508cat confdefs.h >>conftest.$ac_ext
21509cat >>conftest.$ac_ext <<_ACEOF
21510/* end confdefs.h. */
596c9d4b
KB
21511
21512#define _SYSCALL32
21513#include <sys/procfs.h>
bec39cab
AC
21514int
21515main ()
21516{
97bf5e38 21517prrun_t avar
bec39cab
AC
21518 ;
21519 return 0;
21520}
21521_ACEOF
21522rm -f conftest.$ac_objext
21523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21524 (eval $ac_compile) 2>conftest.er1
21525 ac_status=$?
21526 grep -v '^ *+' conftest.er1 >conftest.err
21527 rm -f conftest.er1
21528 cat conftest.err >&5
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); } &&
b4e70030
JB
21531 { ac_try='test -z "$ac_c_werror_flag"
21532 || test ! -s conftest.err'
bec39cab
AC
21533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534 (eval $ac_try) 2>&5
21535 ac_status=$?
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; } &&
21538 { ac_try='test -s conftest.$ac_objext'
21539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21540 (eval $ac_try) 2>&5
21541 ac_status=$?
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); }; }; then
97bf5e38 21544 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 21545else
bec39cab
AC
21546 echo "$as_me: failed program was:" >&5
21547sed 's/^/| /' conftest.$ac_ext >&5
21548
b4e70030 21549bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 21550
596c9d4b 21551fi
bec39cab 21552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
21553fi
21554
97bf5e38 21555 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
21556
21557cat >>confdefs.h <<\_ACEOF
97bf5e38 21558#define HAVE_PRRUN_T 1
bec39cab 21559_ACEOF
596c9d4b
KB
21560
21561 fi
b4e70030
JB
21562 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
21563echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 21564
b4e70030
JB
21565 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
21566echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21567 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
21568 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 21569else
bec39cab
AC
21570 cat >conftest.$ac_ext <<_ACEOF
21571/* confdefs.h. */
21572_ACEOF
21573cat confdefs.h >>conftest.$ac_ext
21574cat >>conftest.$ac_ext <<_ACEOF
21575/* end confdefs.h. */
596c9d4b
KB
21576
21577#define _SYSCALL32
21578#include <sys/procfs.h>
bec39cab
AC
21579int
21580main ()
21581{
97bf5e38 21582gregset_t avar
bec39cab
AC
21583 ;
21584 return 0;
21585}
21586_ACEOF
21587rm -f conftest.$ac_objext
21588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21589 (eval $ac_compile) 2>conftest.er1
21590 ac_status=$?
21591 grep -v '^ *+' conftest.er1 >conftest.err
21592 rm -f conftest.er1
21593 cat conftest.err >&5
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); } &&
b4e70030
JB
21596 { ac_try='test -z "$ac_c_werror_flag"
21597 || test ! -s conftest.err'
bec39cab
AC
21598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599 (eval $ac_try) 2>&5
21600 ac_status=$?
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); }; } &&
21603 { ac_try='test -s conftest.$ac_objext'
21604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21605 (eval $ac_try) 2>&5
21606 ac_status=$?
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); }; }; then
97bf5e38 21609 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 21610else
bec39cab
AC
21611 echo "$as_me: failed program was:" >&5
21612sed 's/^/| /' conftest.$ac_ext >&5
21613
b4e70030 21614bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 21615
596c9d4b 21616fi
bec39cab 21617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
21618fi
21619
97bf5e38 21620 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
21621
21622cat >>confdefs.h <<\_ACEOF
97bf5e38 21623#define HAVE_GREGSET_T 1
bec39cab 21624_ACEOF
596c9d4b
KB
21625
21626 fi
b4e70030
JB
21627 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
21628echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 21629
b4e70030
JB
21630 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
21631echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21632 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
21633 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 21634else
bec39cab
AC
21635 cat >conftest.$ac_ext <<_ACEOF
21636/* confdefs.h. */
21637_ACEOF
21638cat confdefs.h >>conftest.$ac_ext
21639cat >>conftest.$ac_ext <<_ACEOF
21640/* end confdefs.h. */
97bf5e38
MK
21641
21642#define _SYSCALL32
d84dd0c5 21643#include <sys/procfs.h>
bec39cab
AC
21644int
21645main ()
21646{
97bf5e38 21647fpregset_t avar
bec39cab
AC
21648 ;
21649 return 0;
21650}
21651_ACEOF
21652rm -f conftest.$ac_objext
21653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21654 (eval $ac_compile) 2>conftest.er1
21655 ac_status=$?
21656 grep -v '^ *+' conftest.er1 >conftest.err
21657 rm -f conftest.er1
21658 cat conftest.err >&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } &&
b4e70030
JB
21661 { ac_try='test -z "$ac_c_werror_flag"
21662 || test ! -s conftest.err'
bec39cab
AC
21663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21664 (eval $ac_try) 2>&5
21665 ac_status=$?
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); }; } &&
21668 { ac_try='test -s conftest.$ac_objext'
21669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670 (eval $ac_try) 2>&5
21671 ac_status=$?
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; }; then
97bf5e38 21674 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 21675else
bec39cab
AC
21676 echo "$as_me: failed program was:" >&5
21677sed 's/^/| /' conftest.$ac_ext >&5
21678
b4e70030 21679bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 21680
d84dd0c5 21681fi
bec39cab 21682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
21683fi
21684
97bf5e38 21685 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
21686
21687cat >>confdefs.h <<\_ACEOF
97bf5e38 21688#define HAVE_FPREGSET_T 1
bec39cab 21689_ACEOF
d84dd0c5 21690
97bf5e38 21691 fi
b4e70030
JB
21692 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
21693echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 21694
b4e70030
JB
21695 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
21696echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21697 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
21698 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21699else
bec39cab
AC
21700 cat >conftest.$ac_ext <<_ACEOF
21701/* confdefs.h. */
21702_ACEOF
21703cat confdefs.h >>conftest.$ac_ext
21704cat >>conftest.$ac_ext <<_ACEOF
21705/* end confdefs.h. */
c906108c 21706
97bf5e38
MK
21707#define _SYSCALL32
21708#include <sys/procfs.h>
bec39cab
AC
21709int
21710main ()
21711{
97bf5e38 21712prgregset_t avar
bec39cab
AC
21713 ;
21714 return 0;
21715}
21716_ACEOF
21717rm -f conftest.$ac_objext
21718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21719 (eval $ac_compile) 2>conftest.er1
21720 ac_status=$?
21721 grep -v '^ *+' conftest.er1 >conftest.err
21722 rm -f conftest.er1
21723 cat conftest.err >&5
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); } &&
b4e70030
JB
21726 { ac_try='test -z "$ac_c_werror_flag"
21727 || test ! -s conftest.err'
bec39cab
AC
21728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21729 (eval $ac_try) 2>&5
21730 ac_status=$?
21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); }; } &&
21733 { ac_try='test -s conftest.$ac_objext'
21734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21735 (eval $ac_try) 2>&5
21736 ac_status=$?
21737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); }; }; then
97bf5e38 21739 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 21740else
bec39cab
AC
21741 echo "$as_me: failed program was:" >&5
21742sed 's/^/| /' conftest.$ac_ext >&5
21743
b4e70030 21744bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 21745
c906108c 21746fi
bec39cab 21747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21748fi
21749
97bf5e38 21750 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
21751
21752cat >>confdefs.h <<\_ACEOF
97bf5e38 21753#define HAVE_PRGREGSET_T 1
bec39cab 21754_ACEOF
c906108c 21755
97bf5e38 21756 fi
b4e70030
JB
21757 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
21758echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 21759
b4e70030
JB
21760 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
21761echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21762 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
21763 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 21764else
bec39cab
AC
21765 cat >conftest.$ac_ext <<_ACEOF
21766/* confdefs.h. */
21767_ACEOF
21768cat confdefs.h >>conftest.$ac_ext
21769cat >>conftest.$ac_ext <<_ACEOF
21770/* end confdefs.h. */
97bf5e38
MK
21771
21772#define _SYSCALL32
21773#include <sys/procfs.h>
bec39cab
AC
21774int
21775main ()
21776{
97bf5e38 21777prfpregset_t avar
bec39cab
AC
21778 ;
21779 return 0;
21780}
21781_ACEOF
21782rm -f conftest.$ac_objext
21783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21784 (eval $ac_compile) 2>conftest.er1
21785 ac_status=$?
21786 grep -v '^ *+' conftest.er1 >conftest.err
21787 rm -f conftest.er1
21788 cat conftest.err >&5
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); } &&
b4e70030
JB
21791 { ac_try='test -z "$ac_c_werror_flag"
21792 || test ! -s conftest.err'
bec39cab
AC
21793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794 (eval $ac_try) 2>&5
21795 ac_status=$?
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); }; } &&
21798 { ac_try='test -s conftest.$ac_objext'
21799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21800 (eval $ac_try) 2>&5
21801 ac_status=$?
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); }; }; then
97bf5e38 21804 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 21805else
bec39cab
AC
21806 echo "$as_me: failed program was:" >&5
21807sed 's/^/| /' conftest.$ac_ext >&5
21808
b4e70030 21809bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 21810
d45fe813 21811fi
bec39cab 21812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
21813fi
21814
97bf5e38 21815 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
21816
21817cat >>confdefs.h <<\_ACEOF
97bf5e38 21818#define HAVE_PRFPREGSET_T 1
bec39cab 21819_ACEOF
d45fe813 21820
97bf5e38 21821 fi
b4e70030
JB
21822 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
21823echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 21824
b4e70030
JB
21825 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
21826echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21827 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
21828 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 21829else
bec39cab
AC
21830 cat >conftest.$ac_ext <<_ACEOF
21831/* confdefs.h. */
21832_ACEOF
21833cat confdefs.h >>conftest.$ac_ext
21834cat >>conftest.$ac_ext <<_ACEOF
21835/* end confdefs.h. */
97bf5e38
MK
21836
21837#define _SYSCALL32
21838#include <sys/procfs.h>
bec39cab
AC
21839int
21840main ()
21841{
97bf5e38 21842prgregset32_t avar
bec39cab
AC
21843 ;
21844 return 0;
21845}
21846_ACEOF
21847rm -f conftest.$ac_objext
21848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21849 (eval $ac_compile) 2>conftest.er1
21850 ac_status=$?
21851 grep -v '^ *+' conftest.er1 >conftest.err
21852 rm -f conftest.er1
21853 cat conftest.err >&5
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); } &&
b4e70030
JB
21856 { ac_try='test -z "$ac_c_werror_flag"
21857 || test ! -s conftest.err'
bec39cab
AC
21858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21859 (eval $ac_try) 2>&5
21860 ac_status=$?
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); }; } &&
21863 { ac_try='test -s conftest.$ac_objext'
21864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21865 (eval $ac_try) 2>&5
21866 ac_status=$?
21867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868 (exit $ac_status); }; }; then
97bf5e38 21869 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 21870else
bec39cab
AC
21871 echo "$as_me: failed program was:" >&5
21872sed 's/^/| /' conftest.$ac_ext >&5
21873
b4e70030 21874bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 21875
d45fe813 21876fi
bec39cab 21877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
21878fi
21879
97bf5e38 21880 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
21881
21882cat >>confdefs.h <<\_ACEOF
97bf5e38 21883#define HAVE_PRGREGSET32_T 1
bec39cab 21884_ACEOF
d45fe813 21885
97bf5e38 21886 fi
b4e70030
JB
21887 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
21888echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 21889
b4e70030
JB
21890 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
21891echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21892 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
21893 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 21894else
bec39cab
AC
21895 cat >conftest.$ac_ext <<_ACEOF
21896/* confdefs.h. */
21897_ACEOF
21898cat confdefs.h >>conftest.$ac_ext
21899cat >>conftest.$ac_ext <<_ACEOF
21900/* end confdefs.h. */
97bf5e38
MK
21901
21902#define _SYSCALL32
21903#include <sys/procfs.h>
bec39cab
AC
21904int
21905main ()
21906{
97bf5e38 21907prfpregset32_t avar
bec39cab
AC
21908 ;
21909 return 0;
21910}
21911_ACEOF
21912rm -f conftest.$ac_objext
21913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21914 (eval $ac_compile) 2>conftest.er1
21915 ac_status=$?
21916 grep -v '^ *+' conftest.er1 >conftest.err
21917 rm -f conftest.er1
21918 cat conftest.err >&5
21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); } &&
b4e70030
JB
21921 { ac_try='test -z "$ac_c_werror_flag"
21922 || test ! -s conftest.err'
bec39cab
AC
21923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924 (eval $ac_try) 2>&5
21925 ac_status=$?
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); }; } &&
21928 { ac_try='test -s conftest.$ac_objext'
21929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21930 (eval $ac_try) 2>&5
21931 ac_status=$?
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); }; }; then
97bf5e38 21934 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 21935else
bec39cab
AC
21936 echo "$as_me: failed program was:" >&5
21937sed 's/^/| /' conftest.$ac_ext >&5
21938
b4e70030 21939bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 21940
d45fe813 21941fi
bec39cab 21942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
21943fi
21944
97bf5e38 21945 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
21946
21947cat >>confdefs.h <<\_ACEOF
97bf5e38 21948#define HAVE_PRFPREGSET32_T 1
bec39cab 21949_ACEOF
d45fe813 21950
97bf5e38 21951 fi
b4e70030
JB
21952 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
21953echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 21954
b4e70030
JB
21955 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
21956echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21957 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
21958 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 21959else
bec39cab
AC
21960 cat >conftest.$ac_ext <<_ACEOF
21961/* confdefs.h. */
21962_ACEOF
21963cat confdefs.h >>conftest.$ac_ext
21964cat >>conftest.$ac_ext <<_ACEOF
21965/* end confdefs.h. */
97bf5e38 21966
d45fe813 21967#define _SYSCALL32
97bf5e38 21968#include <sys/procfs.h>
bec39cab
AC
21969int
21970main ()
21971{
97bf5e38 21972lwpid_t avar
bec39cab
AC
21973 ;
21974 return 0;
21975}
21976_ACEOF
21977rm -f conftest.$ac_objext
21978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21979 (eval $ac_compile) 2>conftest.er1
21980 ac_status=$?
21981 grep -v '^ *+' conftest.er1 >conftest.err
21982 rm -f conftest.er1
21983 cat conftest.err >&5
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); } &&
b4e70030
JB
21986 { ac_try='test -z "$ac_c_werror_flag"
21987 || test ! -s conftest.err'
bec39cab
AC
21988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21989 (eval $ac_try) 2>&5
21990 ac_status=$?
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); }; } &&
21993 { ac_try='test -s conftest.$ac_objext'
21994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21995 (eval $ac_try) 2>&5
21996 ac_status=$?
21997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); }; }; then
97bf5e38 21999 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 22000else
bec39cab
AC
22001 echo "$as_me: failed program was:" >&5
22002sed 's/^/| /' conftest.$ac_ext >&5
22003
b4e70030 22004bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 22005
d45fe813 22006fi
bec39cab 22007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
22008fi
22009
97bf5e38 22010 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
22011
22012cat >>confdefs.h <<\_ACEOF
97bf5e38 22013#define HAVE_LWPID_T 1
bec39cab 22014_ACEOF
d45fe813 22015
97bf5e38 22016 fi
b4e70030
JB
22017 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
22018echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 22019
b4e70030
JB
22020 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
22021echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22022 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
22023 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22024else
bec39cab
AC
22025 cat >conftest.$ac_ext <<_ACEOF
22026/* confdefs.h. */
22027_ACEOF
22028cat confdefs.h >>conftest.$ac_ext
22029cat >>conftest.$ac_ext <<_ACEOF
22030/* end confdefs.h. */
c906108c 22031
97bf5e38
MK
22032#define _SYSCALL32
22033#include <sys/procfs.h>
bec39cab
AC
22034int
22035main ()
22036{
97bf5e38 22037psaddr_t avar
bec39cab
AC
22038 ;
22039 return 0;
22040}
22041_ACEOF
22042rm -f conftest.$ac_objext
22043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22044 (eval $ac_compile) 2>conftest.er1
22045 ac_status=$?
22046 grep -v '^ *+' conftest.er1 >conftest.err
22047 rm -f conftest.er1
22048 cat conftest.err >&5
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); } &&
b4e70030
JB
22051 { ac_try='test -z "$ac_c_werror_flag"
22052 || test ! -s conftest.err'
bec39cab
AC
22053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054 (eval $ac_try) 2>&5
22055 ac_status=$?
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; } &&
22058 { ac_try='test -s conftest.$ac_objext'
22059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22060 (eval $ac_try) 2>&5
22061 ac_status=$?
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); }; }; then
97bf5e38 22064 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 22065else
bec39cab
AC
22066 echo "$as_me: failed program was:" >&5
22067sed 's/^/| /' conftest.$ac_ext >&5
22068
b4e70030 22069bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 22070
c906108c 22071fi
bec39cab 22072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22073fi
22074
97bf5e38 22075 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
22076
22077cat >>confdefs.h <<\_ACEOF
97bf5e38 22078#define HAVE_PSADDR_T 1
bec39cab 22079_ACEOF
c906108c 22080
97bf5e38 22081 fi
b4e70030
JB
22082 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
22083echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 22084
b4e70030
JB
22085 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
22086echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22087 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
22088 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22089else
bec39cab
AC
22090 cat >conftest.$ac_ext <<_ACEOF
22091/* confdefs.h. */
22092_ACEOF
22093cat confdefs.h >>conftest.$ac_ext
22094cat >>conftest.$ac_ext <<_ACEOF
22095/* end confdefs.h. */
c906108c 22096
97bf5e38
MK
22097#define _SYSCALL32
22098#include <sys/procfs.h>
bec39cab
AC
22099int
22100main ()
22101{
97bf5e38 22102prsysent_t avar
bec39cab
AC
22103 ;
22104 return 0;
22105}
22106_ACEOF
22107rm -f conftest.$ac_objext
22108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22109 (eval $ac_compile) 2>conftest.er1
22110 ac_status=$?
22111 grep -v '^ *+' conftest.er1 >conftest.err
22112 rm -f conftest.er1
22113 cat conftest.err >&5
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); } &&
b4e70030
JB
22116 { ac_try='test -z "$ac_c_werror_flag"
22117 || test ! -s conftest.err'
bec39cab
AC
22118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22119 (eval $ac_try) 2>&5
22120 ac_status=$?
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); }; } &&
22123 { ac_try='test -s conftest.$ac_objext'
22124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22125 (eval $ac_try) 2>&5
22126 ac_status=$?
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); }; }; then
97bf5e38 22129 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 22130else
bec39cab
AC
22131 echo "$as_me: failed program was:" >&5
22132sed 's/^/| /' conftest.$ac_ext >&5
22133
b4e70030 22134bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 22135
c906108c 22136fi
bec39cab 22137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22138fi
22139
97bf5e38 22140 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
22141
22142cat >>confdefs.h <<\_ACEOF
97bf5e38 22143#define HAVE_PRSYSENT_T 1
bec39cab 22144_ACEOF
c906108c 22145
97bf5e38 22146 fi
b4e70030
JB
22147 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
22148echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 22149
b4e70030
JB
22150 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
22151echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22152 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
22153 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22154else
bec39cab
AC
22155 cat >conftest.$ac_ext <<_ACEOF
22156/* confdefs.h. */
22157_ACEOF
22158cat confdefs.h >>conftest.$ac_ext
22159cat >>conftest.$ac_ext <<_ACEOF
22160/* end confdefs.h. */
c906108c 22161
97bf5e38
MK
22162#define _SYSCALL32
22163#include <sys/procfs.h>
bec39cab
AC
22164int
22165main ()
22166{
97bf5e38 22167pr_sigset_t avar
bec39cab
AC
22168 ;
22169 return 0;
22170}
22171_ACEOF
22172rm -f conftest.$ac_objext
22173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22174 (eval $ac_compile) 2>conftest.er1
22175 ac_status=$?
22176 grep -v '^ *+' conftest.er1 >conftest.err
22177 rm -f conftest.er1
22178 cat conftest.err >&5
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); } &&
b4e70030
JB
22181 { ac_try='test -z "$ac_c_werror_flag"
22182 || test ! -s conftest.err'
bec39cab
AC
22183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22184 (eval $ac_try) 2>&5
22185 ac_status=$?
22186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); }; } &&
22188 { ac_try='test -s conftest.$ac_objext'
22189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22190 (eval $ac_try) 2>&5
22191 ac_status=$?
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); }; }; then
97bf5e38 22194 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 22195else
bec39cab
AC
22196 echo "$as_me: failed program was:" >&5
22197sed 's/^/| /' conftest.$ac_ext >&5
22198
b4e70030 22199bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 22200
c906108c 22201fi
bec39cab 22202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22203fi
22204
97bf5e38 22205 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
22206
22207cat >>confdefs.h <<\_ACEOF
97bf5e38 22208#define HAVE_PR_SIGSET_T 1
bec39cab 22209_ACEOF
c906108c 22210
97bf5e38 22211 fi
b4e70030
JB
22212 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
22213echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 22214
b4e70030
JB
22215 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
22216echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22217 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
22218 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22219else
bec39cab
AC
22220 cat >conftest.$ac_ext <<_ACEOF
22221/* confdefs.h. */
22222_ACEOF
22223cat confdefs.h >>conftest.$ac_ext
22224cat >>conftest.$ac_ext <<_ACEOF
22225/* end confdefs.h. */
c906108c 22226
97bf5e38
MK
22227#define _SYSCALL32
22228#include <sys/procfs.h>
bec39cab
AC
22229int
22230main ()
22231{
97bf5e38 22232pr_sigaction64_t avar
bec39cab
AC
22233 ;
22234 return 0;
22235}
22236_ACEOF
22237rm -f conftest.$ac_objext
22238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22239 (eval $ac_compile) 2>conftest.er1
22240 ac_status=$?
22241 grep -v '^ *+' conftest.er1 >conftest.err
22242 rm -f conftest.er1
22243 cat conftest.err >&5
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); } &&
b4e70030
JB
22246 { ac_try='test -z "$ac_c_werror_flag"
22247 || test ! -s conftest.err'
bec39cab
AC
22248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22249 (eval $ac_try) 2>&5
22250 ac_status=$?
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); }; } &&
22253 { ac_try='test -s conftest.$ac_objext'
22254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255 (eval $ac_try) 2>&5
22256 ac_status=$?
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); }; }; then
97bf5e38 22259 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 22260else
bec39cab
AC
22261 echo "$as_me: failed program was:" >&5
22262sed 's/^/| /' conftest.$ac_ext >&5
22263
b4e70030 22264bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 22265
c906108c 22266fi
bec39cab 22267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22268fi
22269
97bf5e38 22270 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
22271
22272cat >>confdefs.h <<\_ACEOF
97bf5e38 22273#define HAVE_PR_SIGACTION64_T 1
bec39cab 22274_ACEOF
c906108c 22275
97bf5e38 22276 fi
b4e70030
JB
22277 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
22278echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 22279
b4e70030
JB
22280 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
22281echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22282 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
22283 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 22284else
bec39cab
AC
22285 cat >conftest.$ac_ext <<_ACEOF
22286/* confdefs.h. */
22287_ACEOF
22288cat confdefs.h >>conftest.$ac_ext
22289cat >>conftest.$ac_ext <<_ACEOF
22290/* end confdefs.h. */
97bf5e38
MK
22291
22292#define _SYSCALL32
22293#include <sys/procfs.h>
bec39cab
AC
22294int
22295main ()
22296{
97bf5e38 22297pr_siginfo64_t avar
bec39cab
AC
22298 ;
22299 return 0;
22300}
22301_ACEOF
22302rm -f conftest.$ac_objext
22303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22304 (eval $ac_compile) 2>conftest.er1
22305 ac_status=$?
22306 grep -v '^ *+' conftest.er1 >conftest.err
22307 rm -f conftest.er1
22308 cat conftest.err >&5
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); } &&
b4e70030
JB
22311 { ac_try='test -z "$ac_c_werror_flag"
22312 || test ! -s conftest.err'
bec39cab
AC
22313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314 (eval $ac_try) 2>&5
22315 ac_status=$?
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; } &&
22318 { ac_try='test -s conftest.$ac_objext'
22319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22320 (eval $ac_try) 2>&5
22321 ac_status=$?
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); }; }; then
97bf5e38
MK
22324 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
22325else
bec39cab
AC
22326 echo "$as_me: failed program was:" >&5
22327sed 's/^/| /' conftest.$ac_ext >&5
22328
b4e70030 22329bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 22330
97bf5e38 22331fi
bec39cab 22332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 22333fi
c906108c 22334
97bf5e38 22335 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
22336
22337cat >>confdefs.h <<\_ACEOF
97bf5e38 22338#define HAVE_PR_SIGINFO64_T 1
bec39cab 22339_ACEOF
c906108c 22340
97bf5e38 22341 fi
b4e70030
JB
22342 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
22343echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
bec39cab
AC
22344
22345
97bf5e38
MK
22346
22347
22348
97bf5e38 22349 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
b4e70030
JB
22350 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
22351echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
bec39cab
AC
22352 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
22353 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
22354else
22355 if test "$cross_compiling" = yes; then
97bf5e38 22356 gdb_cv_prfpregset_t_broken=yes
c906108c 22357else
bec39cab
AC
22358 cat >conftest.$ac_ext <<_ACEOF
22359/* confdefs.h. */
22360_ACEOF
22361cat confdefs.h >>conftest.$ac_ext
22362cat >>conftest.$ac_ext <<_ACEOF
22363/* end confdefs.h. */
97bf5e38
MK
22364#include <sys/procfs.h>
22365 int main ()
22366 {
22367 if (sizeof (prfpregset_t) == sizeof (void *))
22368 return 1;
22369 return 0;
22370 }
bec39cab
AC
22371_ACEOF
22372rm -f conftest$ac_exeext
22373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22374 (eval $ac_link) 2>&5
22375 ac_status=$?
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22379 (eval $ac_try) 2>&5
22380 ac_status=$?
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); }; }; then
97bf5e38 22383 gdb_cv_prfpregset_t_broken=no
c906108c 22384else
bec39cab
AC
22385 echo "$as_me: program exited with status $ac_status" >&5
22386echo "$as_me: failed program was:" >&5
22387sed 's/^/| /' conftest.$ac_ext >&5
22388
22389( exit $ac_status )
22390gdb_cv_prfpregset_t_broken=yes
c906108c 22391fi
b4e70030 22392rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 22393fi
c906108c
SS
22394fi
22395
b4e70030
JB
22396 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
22397echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 22398 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
22399
22400cat >>confdefs.h <<\_ACEOF
97bf5e38 22401#define PRFPREGSET_T_BROKEN 1
bec39cab 22402_ACEOF
c906108c 22403
97bf5e38
MK
22404 fi
22405 fi
c906108c 22406
bec39cab 22407
b4e70030
JB
22408 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
22409echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22410 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
22411 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22412else
bec39cab
AC
22413 cat >conftest.$ac_ext <<_ACEOF
22414/* confdefs.h. */
22415_ACEOF
22416cat confdefs.h >>conftest.$ac_ext
22417cat >>conftest.$ac_ext <<_ACEOF
22418/* end confdefs.h. */
97bf5e38
MK
22419#include <unistd.h>
22420#include <sys/types.h>
22421#include <sys/procfs.h>
22422
bec39cab
AC
22423int
22424main ()
22425{
97bf5e38
MK
22426
22427 int dummy;;
22428 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
22429
22430 ;
22431 return 0;
22432}
22433_ACEOF
22434rm -f conftest.$ac_objext
22435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22436 (eval $ac_compile) 2>conftest.er1
22437 ac_status=$?
22438 grep -v '^ *+' conftest.er1 >conftest.err
22439 rm -f conftest.er1
22440 cat conftest.err >&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } &&
b4e70030
JB
22443 { ac_try='test -z "$ac_c_werror_flag"
22444 || test ! -s conftest.err'
bec39cab
AC
22445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22446 (eval $ac_try) 2>&5
22447 ac_status=$?
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); }; } &&
22450 { ac_try='test -s conftest.$ac_objext'
22451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22452 (eval $ac_try) 2>&5
22453 ac_status=$?
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); }; }; then
97bf5e38 22456 gdb_cv_have_procfs_piocset=yes
c906108c 22457else
bec39cab
AC
22458 echo "$as_me: failed program was:" >&5
22459sed 's/^/| /' conftest.$ac_ext >&5
22460
b4e70030 22461gdb_cv_have_procfs_piocset=no
c906108c 22462fi
bec39cab 22463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 22464fi
97bf5e38 22465
b4e70030
JB
22466 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
22467echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 22468 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
22469
22470cat >>confdefs.h <<\_ACEOF
97bf5e38 22471#define HAVE_PROCFS_PIOCSET 1
bec39cab 22472_ACEOF
97bf5e38
MK
22473
22474 fi
c906108c 22475fi
c906108c 22476
97bf5e38 22477if test ${host} = ${target} ; then
bec39cab 22478
b4e70030
JB
22479 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
22480echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
22481 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
22482 echo $ECHO_N "(cached) $ECHO_C" >&6
22483else
22484 cat >conftest.$ac_ext <<_ACEOF
22485/* confdefs.h. */
22486_ACEOF
22487cat confdefs.h >>conftest.$ac_ext
22488cat >>conftest.$ac_ext <<_ACEOF
22489/* end confdefs.h. */
97bf5e38 22490#include <link.h>
bec39cab
AC
22491int
22492main ()
22493{
97bf5e38 22494struct link_map lm; (void) lm.l_addr;
bec39cab
AC
22495 ;
22496 return 0;
22497}
22498_ACEOF
22499rm -f conftest.$ac_objext
22500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22501 (eval $ac_compile) 2>conftest.er1
22502 ac_status=$?
22503 grep -v '^ *+' conftest.er1 >conftest.err
22504 rm -f conftest.er1
22505 cat conftest.err >&5
22506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507 (exit $ac_status); } &&
b4e70030
JB
22508 { ac_try='test -z "$ac_c_werror_flag"
22509 || test ! -s conftest.err'
bec39cab
AC
22510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22511 (eval $ac_try) 2>&5
22512 ac_status=$?
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); }; } &&
22515 { ac_try='test -s conftest.$ac_objext'
22516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22517 (eval $ac_try) 2>&5
22518 ac_status=$?
22519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520 (exit $ac_status); }; }; then
97bf5e38 22521 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 22522else
bec39cab
AC
22523 echo "$as_me: failed program was:" >&5
22524sed 's/^/| /' conftest.$ac_ext >&5
22525
b4e70030 22526gdb_cv_have_struct_link_map_with_l_members=no
c906108c 22527fi
bec39cab 22528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22529fi
22530
b4e70030
JB
22531 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
22532echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 22533 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
22534
22535cat >>confdefs.h <<\_ACEOF
97bf5e38 22536#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 22537_ACEOF
97bf5e38
MK
22538
22539 fi
22540
bec39cab 22541
b4e70030
JB
22542 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
22543echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
22544 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
22545 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22546else
bec39cab
AC
22547 cat >conftest.$ac_ext <<_ACEOF
22548/* confdefs.h. */
22549_ACEOF
22550cat confdefs.h >>conftest.$ac_ext
22551cat >>conftest.$ac_ext <<_ACEOF
22552/* end confdefs.h. */
97bf5e38
MK
22553#include <sys/types.h>
22554#include <link.h>
bec39cab
AC
22555int
22556main ()
22557{
97bf5e38 22558struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
22559 ;
22560 return 0;
22561}
22562_ACEOF
22563rm -f conftest.$ac_objext
22564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22565 (eval $ac_compile) 2>conftest.er1
22566 ac_status=$?
22567 grep -v '^ *+' conftest.er1 >conftest.err
22568 rm -f conftest.er1
22569 cat conftest.err >&5
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); } &&
b4e70030
JB
22572 { ac_try='test -z "$ac_c_werror_flag"
22573 || test ! -s conftest.err'
bec39cab
AC
22574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22575 (eval $ac_try) 2>&5
22576 ac_status=$?
22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); }; } &&
22579 { ac_try='test -s conftest.$ac_objext'
22580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22581 (eval $ac_try) 2>&5
22582 ac_status=$?
22583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584 (exit $ac_status); }; }; then
97bf5e38
MK
22585 gdb_cv_have_struct_link_map_with_lm_members=yes
22586else
bec39cab
AC
22587 echo "$as_me: failed program was:" >&5
22588sed 's/^/| /' conftest.$ac_ext >&5
22589
b4e70030 22590gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 22591fi
bec39cab 22592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 22593fi
c906108c 22594
b4e70030
JB
22595 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
22596echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 22597 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
22598
22599cat >>confdefs.h <<\_ACEOF
97bf5e38 22600#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 22601_ACEOF
97bf5e38
MK
22602
22603 fi
22604
bec39cab 22605
b4e70030
JB
22606 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
22607echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
bec39cab
AC
22608 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
22609 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22610else
bec39cab
AC
22611 cat >conftest.$ac_ext <<_ACEOF
22612/* confdefs.h. */
22613_ACEOF
22614cat confdefs.h >>conftest.$ac_ext
22615cat >>conftest.$ac_ext <<_ACEOF
22616/* end confdefs.h. */
97bf5e38
MK
22617#include <sys/types.h>
22618#ifdef HAVE_NLIST_H
22619#include <nlist.h>
22620#endif
22621#include <link.h>
bec39cab
AC
22622int
22623main ()
22624{
97bf5e38 22625struct so_map lm; (void) lm.som_addr;
bec39cab
AC
22626 ;
22627 return 0;
22628}
22629_ACEOF
22630rm -f conftest.$ac_objext
22631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22632 (eval $ac_compile) 2>conftest.er1
22633 ac_status=$?
22634 grep -v '^ *+' conftest.er1 >conftest.err
22635 rm -f conftest.er1
22636 cat conftest.err >&5
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638 (exit $ac_status); } &&
b4e70030
JB
22639 { ac_try='test -z "$ac_c_werror_flag"
22640 || test ! -s conftest.err'
bec39cab
AC
22641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22642 (eval $ac_try) 2>&5
22643 ac_status=$?
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); }; } &&
22646 { ac_try='test -s conftest.$ac_objext'
22647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22648 (eval $ac_try) 2>&5
22649 ac_status=$?
22650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651 (exit $ac_status); }; }; then
97bf5e38
MK
22652 gdb_cv_have_struct_so_map_with_som_members=yes
22653else
bec39cab
AC
22654 echo "$as_me: failed program was:" >&5
22655sed 's/^/| /' conftest.$ac_ext >&5
22656
b4e70030 22657gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 22658fi
bec39cab 22659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 22660fi
c906108c 22661
b4e70030
JB
22662 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
22663echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 22664 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
22665
22666cat >>confdefs.h <<\_ACEOF
97bf5e38 22667#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 22668_ACEOF
c906108c 22669
97bf5e38 22670 fi
c906108c 22671
bec39cab 22672
b4e70030
JB
22673 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
22674echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
bec39cab
AC
22675 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
22676 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 22677else
bec39cab
AC
22678 cat >conftest.$ac_ext <<_ACEOF
22679/* confdefs.h. */
22680_ACEOF
22681cat confdefs.h >>conftest.$ac_ext
22682cat >>conftest.$ac_ext <<_ACEOF
22683/* end confdefs.h. */
97bf5e38
MK
22684#define _SYSCALL32
22685#include <sys/link.h>
bec39cab
AC
22686int
22687main ()
22688{
97bf5e38 22689struct link_map32 l;
bec39cab
AC
22690 ;
22691 return 0;
22692}
22693_ACEOF
22694rm -f conftest.$ac_objext
22695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22696 (eval $ac_compile) 2>conftest.er1
22697 ac_status=$?
22698 grep -v '^ *+' conftest.er1 >conftest.err
22699 rm -f conftest.er1
22700 cat conftest.err >&5
22701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702 (exit $ac_status); } &&
b4e70030
JB
22703 { ac_try='test -z "$ac_c_werror_flag"
22704 || test ! -s conftest.err'
bec39cab
AC
22705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22706 (eval $ac_try) 2>&5
22707 ac_status=$?
22708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); }; } &&
22710 { ac_try='test -s conftest.$ac_objext'
22711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22712 (eval $ac_try) 2>&5
22713 ac_status=$?
22714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715 (exit $ac_status); }; }; then
97bf5e38
MK
22716 gdb_cv_have_struct_link_map32=yes
22717else
bec39cab
AC
22718 echo "$as_me: failed program was:" >&5
22719sed 's/^/| /' conftest.$ac_ext >&5
22720
b4e70030 22721gdb_cv_have_struct_link_map32=no
97bf5e38 22722fi
bec39cab 22723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 22724fi
c906108c 22725
b4e70030
JB
22726 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
22727echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 22728 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
22729
22730cat >>confdefs.h <<\_ACEOF
97bf5e38 22731#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 22732_ACEOF
c906108c 22733
60ca704f
SE
22734
22735cat >>confdefs.h <<\_ACEOF
97bf5e38 22736#define _SYSCALL32 1
bec39cab 22737_ACEOF
c906108c 22738
97bf5e38
MK
22739 fi
22740fi
c906108c 22741
bc8bcb4b 22742# Check if the compiler supports the `long long' type.
c906108c 22743
b4e70030
JB
22744echo "$as_me:$LINENO: checking for long long support in compiler" >&5
22745echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
bec39cab
AC
22746if test "${gdb_cv_c_long_long+set}" = set; then
22747 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 22748else
bec39cab
AC
22749 cat >conftest.$ac_ext <<_ACEOF
22750/* confdefs.h. */
22751_ACEOF
22752cat confdefs.h >>conftest.$ac_ext
22753cat >>conftest.$ac_ext <<_ACEOF
22754/* end confdefs.h. */
bc8bcb4b 22755extern long long foo;
bec39cab
AC
22756int
22757main ()
22758{
bc8bcb4b 22759switch (foo & 2) { case 0: return 1; }
bec39cab
AC
22760 ;
22761 return 0;
22762}
22763_ACEOF
22764rm -f conftest.$ac_objext
22765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22766 (eval $ac_compile) 2>conftest.er1
22767 ac_status=$?
22768 grep -v '^ *+' conftest.er1 >conftest.err
22769 rm -f conftest.er1
22770 cat conftest.err >&5
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); } &&
b4e70030
JB
22773 { ac_try='test -z "$ac_c_werror_flag"
22774 || test ! -s conftest.err'
bec39cab
AC
22775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22776 (eval $ac_try) 2>&5
22777 ac_status=$?
22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779 (exit $ac_status); }; } &&
22780 { ac_try='test -s conftest.$ac_objext'
22781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782 (eval $ac_try) 2>&5
22783 ac_status=$?
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); }; }; then
97bf5e38
MK
22786 gdb_cv_c_long_long=yes
22787else
bec39cab
AC
22788 echo "$as_me: failed program was:" >&5
22789sed 's/^/| /' conftest.$ac_ext >&5
22790
b4e70030 22791gdb_cv_c_long_long=no
97bf5e38 22792fi
bec39cab 22793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 22794fi
b4e70030
JB
22795echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
22796echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 22797if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
22798
22799cat >>confdefs.h <<\_ACEOF
97bf5e38 22800#define CC_HAS_LONG_LONG 1
bec39cab 22801_ACEOF
97bf5e38
MK
22802
22803fi
22804
bc8bcb4b 22805# Check if the compiler and runtime support printing long longs.
97bf5e38 22806
b4e70030
JB
22807echo "$as_me:$LINENO: checking for long long support in printf" >&5
22808echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
bec39cab
AC
22809if test "${gdb_cv_printf_has_long_long+set}" = set; then
22810 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
22811else
22812 if test "$cross_compiling" = yes; then
22813 gdb_cv_printf_has_long_long=no
22814else
bec39cab
AC
22815 cat >conftest.$ac_ext <<_ACEOF
22816/* confdefs.h. */
22817_ACEOF
22818cat confdefs.h >>conftest.$ac_ext
22819cat >>conftest.$ac_ext <<_ACEOF
22820/* end confdefs.h. */
bc8bcb4b
MK
22821$ac_includes_default
22822int
22823main ()
22824{
22825char buf[32];
97bf5e38
MK
22826 long long l = 0;
22827 l = (l << 16) + 0x0123;
22828 l = (l << 16) + 0x4567;
22829 l = (l << 16) + 0x89ab;
22830 l = (l << 16) + 0xcdef;
22831 sprintf (buf, "0x%016llx", l);
22832 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
22833 ;
22834 return 0;
c906108c 22835}
bec39cab
AC
22836_ACEOF
22837rm -f conftest$ac_exeext
22838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22839 (eval $ac_link) 2>&5
22840 ac_status=$?
22841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22844 (eval $ac_try) 2>&5
22845 ac_status=$?
22846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); }; }; then
97bf5e38
MK
22848 gdb_cv_printf_has_long_long=yes
22849else
bec39cab
AC
22850 echo "$as_me: program exited with status $ac_status" >&5
22851echo "$as_me: failed program was:" >&5
22852sed 's/^/| /' conftest.$ac_ext >&5
22853
22854( exit $ac_status )
22855gdb_cv_printf_has_long_long=no
97bf5e38 22856fi
b4e70030 22857rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 22858fi
97bf5e38 22859fi
b4e70030
JB
22860echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
22861echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 22862if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
22863
22864cat >>confdefs.h <<\_ACEOF
97bf5e38 22865#define PRINTF_HAS_LONG_LONG 1
bec39cab 22866_ACEOF
97bf5e38
MK
22867
22868fi
97bf5e38 22869
1a619819
LM
22870# Check if the compiler and runtime support printing decfloats.
22871
22872echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
22873echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
22874if test "${gdb_cv_printf_has_decfloat+set}" = set; then
22875 echo $ECHO_N "(cached) $ECHO_C" >&6
22876else
22877 if test "$cross_compiling" = yes; then
22878 gdb_cv_printf_has_decfloat=no
22879else
22880 cat >conftest.$ac_ext <<_ACEOF
22881/* confdefs.h. */
22882_ACEOF
22883cat confdefs.h >>conftest.$ac_ext
22884cat >>conftest.$ac_ext <<_ACEOF
22885/* end confdefs.h. */
22886$ac_includes_default
22887int
22888main ()
22889{
22890char buf[64];
22891 _Decimal32 d32 = 1.2345df;
22892 _Decimal64 d64 = 1.2345dd;
22893 _Decimal128 d128 = 1.2345dl;
22894 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
22895 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
22896 ;
22897 return 0;
22898}
22899_ACEOF
22900rm -f conftest$ac_exeext
22901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22902 (eval $ac_link) 2>&5
22903 ac_status=$?
22904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22907 (eval $ac_try) 2>&5
22908 ac_status=$?
22909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22910 (exit $ac_status); }; }; then
22911 gdb_cv_printf_has_decfloat=yes
22912else
22913 echo "$as_me: program exited with status $ac_status" >&5
22914echo "$as_me: failed program was:" >&5
22915sed 's/^/| /' conftest.$ac_ext >&5
22916
22917( exit $ac_status )
22918gdb_cv_printf_has_decfloat=no
22919fi
22920rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22921fi
22922fi
22923echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
22924echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
22925if test $gdb_cv_printf_has_decfloat = yes; then
22926
22927cat >>confdefs.h <<\_ACEOF
22928#define PRINTF_HAS_DECFLOAT 1
22929_ACEOF
22930
22931fi
22932
bc8bcb4b
MK
22933# Check if the compiler supports the `long double' type. We can't use
22934# AC_C_LONG_DOUBLE because that one does additional checks on the
22935# constants defined in <float.h> that fail on some systems,
22936# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 22937
b4e70030
JB
22938echo "$as_me:$LINENO: checking for long double support in compiler" >&5
22939echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 22940if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 22941 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 22942else
bec39cab
AC
22943 cat >conftest.$ac_ext <<_ACEOF
22944/* confdefs.h. */
22945_ACEOF
22946cat confdefs.h >>conftest.$ac_ext
22947cat >>conftest.$ac_ext <<_ACEOF
22948/* end confdefs.h. */
97bf5e38 22949long double foo;
bec39cab
AC
22950_ACEOF
22951rm -f conftest.$ac_objext
22952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22953 (eval $ac_compile) 2>conftest.er1
22954 ac_status=$?
22955 grep -v '^ *+' conftest.er1 >conftest.err
22956 rm -f conftest.er1
22957 cat conftest.err >&5
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); } &&
b4e70030
JB
22960 { ac_try='test -z "$ac_c_werror_flag"
22961 || test ! -s conftest.err'
bec39cab
AC
22962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22963 (eval $ac_try) 2>&5
22964 ac_status=$?
22965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966 (exit $ac_status); }; } &&
22967 { ac_try='test -s conftest.$ac_objext'
22968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22969 (eval $ac_try) 2>&5
22970 ac_status=$?
22971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972 (exit $ac_status); }; }; then
bc8bcb4b 22973 gdb_cv_c_long_double=yes
97bf5e38 22974else
bec39cab
AC
22975 echo "$as_me: failed program was:" >&5
22976sed 's/^/| /' conftest.$ac_ext >&5
22977
b4e70030 22978gdb_cv_c_long_double=no
97bf5e38 22979fi
bec39cab 22980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 22981fi
b4e70030
JB
22982echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
22983echo "${ECHO_T}$gdb_cv_c_long_double" >&6
bc8bcb4b 22984if test $gdb_cv_c_long_double = yes; then
c906108c 22985
bc8bcb4b 22986cat >>confdefs.h <<\_ACEOF
97bf5e38 22987#define HAVE_LONG_DOUBLE 1
bec39cab 22988_ACEOF
97bf5e38
MK
22989
22990fi
22991
bc8bcb4b 22992# Check if the compiler and runtime support printing long doubles.
97bf5e38 22993
b4e70030
JB
22994echo "$as_me:$LINENO: checking for long double support in printf" >&5
22995echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
bec39cab
AC
22996if test "${gdb_cv_printf_has_long_double+set}" = set; then
22997 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
22998else
22999 if test "$cross_compiling" = yes; then
23000 gdb_cv_printf_has_long_double=no
23001else
bec39cab
AC
23002 cat >conftest.$ac_ext <<_ACEOF
23003/* confdefs.h. */
23004_ACEOF
23005cat confdefs.h >>conftest.$ac_ext
23006cat >>conftest.$ac_ext <<_ACEOF
23007/* end confdefs.h. */
bc8bcb4b
MK
23008$ac_includes_default
23009int
23010main ()
23011{
23012char buf[16];
97bf5e38
MK
23013 long double f = 3.141592653;
23014 sprintf (buf, "%Lg", f);
23015 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
23016 ;
23017 return 0;
97bf5e38 23018}
bec39cab
AC
23019_ACEOF
23020rm -f conftest$ac_exeext
23021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23022 (eval $ac_link) 2>&5
23023 ac_status=$?
23024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23027 (eval $ac_try) 2>&5
23028 ac_status=$?
23029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030 (exit $ac_status); }; }; then
97bf5e38 23031 gdb_cv_printf_has_long_double=yes
c906108c 23032else
bec39cab
AC
23033 echo "$as_me: program exited with status $ac_status" >&5
23034echo "$as_me: failed program was:" >&5
23035sed 's/^/| /' conftest.$ac_ext >&5
23036
23037( exit $ac_status )
23038gdb_cv_printf_has_long_double=no
c906108c 23039fi
b4e70030 23040rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 23041fi
c906108c 23042fi
b4e70030
JB
23043echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
23044echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 23045if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
23046
23047cat >>confdefs.h <<\_ACEOF
97bf5e38 23048#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 23049_ACEOF
97bf5e38
MK
23050
23051fi
97bf5e38 23052
bc8bcb4b 23053# Check if the compiler and runtime support scanning long doubles.
97bf5e38 23054
b4e70030
JB
23055echo "$as_me:$LINENO: checking for long double support in scanf" >&5
23056echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
bec39cab
AC
23057if test "${gdb_cv_scanf_has_long_double+set}" = set; then
23058 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
23059else
23060 if test "$cross_compiling" = yes; then
23061 gdb_cv_scanf_has_long_double=no
23062else
bec39cab
AC
23063 cat >conftest.$ac_ext <<_ACEOF
23064/* confdefs.h. */
23065_ACEOF
23066cat confdefs.h >>conftest.$ac_ext
23067cat >>conftest.$ac_ext <<_ACEOF
23068/* end confdefs.h. */
bc8bcb4b
MK
23069#include <stdio.h>
23070int
23071main ()
23072{
23073char *buf = "3.141592653";
97bf5e38
MK
23074 long double f = 0;
23075 sscanf (buf, "%Lg", &f);
23076 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
23077 ;
23078 return 0;
97bf5e38 23079}
bec39cab
AC
23080_ACEOF
23081rm -f conftest$ac_exeext
23082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23083 (eval $ac_link) 2>&5
23084 ac_status=$?
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23088 (eval $ac_try) 2>&5
23089 ac_status=$?
23090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091 (exit $ac_status); }; }; then
97bf5e38
MK
23092 gdb_cv_scanf_has_long_double=yes
23093else
bec39cab
AC
23094 echo "$as_me: program exited with status $ac_status" >&5
23095echo "$as_me: failed program was:" >&5
23096sed 's/^/| /' conftest.$ac_ext >&5
23097
23098( exit $ac_status )
23099gdb_cv_scanf_has_long_double=no
97bf5e38 23100fi
b4e70030 23101rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 23102fi
c906108c 23103fi
b4e70030
JB
23104echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
23105echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 23106if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
23107
23108cat >>confdefs.h <<\_ACEOF
97bf5e38 23109#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 23110_ACEOF
97bf5e38
MK
23111
23112fi
c906108c 23113
438013df
AO
23114case ${host_os} in
23115aix*)
b4e70030
JB
23116 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
23117echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
bec39cab
AC
23118if test "${gdb_cv_bigtoc+set}" = set; then
23119 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 23120else
bec39cab 23121
438013df
AO
23122 SAVE_LDFLAGS=$LDFLAGS
23123
23124 case $GCC in
23125 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
23126 *) gdb_cv_bigtoc=-bbigtoc ;;
23127 esac
23128
23129 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
23130 cat >conftest.$ac_ext <<_ACEOF
23131/* confdefs.h. */
23132_ACEOF
23133cat confdefs.h >>conftest.$ac_ext
23134cat >>conftest.$ac_ext <<_ACEOF
23135/* end confdefs.h. */
438013df 23136
bec39cab
AC
23137int
23138main ()
23139{
438013df 23140int i;
bec39cab
AC
23141 ;
23142 return 0;
23143}
23144_ACEOF
23145rm -f conftest.$ac_objext conftest$ac_exeext
23146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23147 (eval $ac_link) 2>conftest.er1
23148 ac_status=$?
23149 grep -v '^ *+' conftest.er1 >conftest.err
23150 rm -f conftest.er1
23151 cat conftest.err >&5
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); } &&
b4e70030
JB
23154 { ac_try='test -z "$ac_c_werror_flag"
23155 || test ! -s conftest.err'
bec39cab
AC
23156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23157 (eval $ac_try) 2>&5
23158 ac_status=$?
23159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); }; } &&
23161 { ac_try='test -s conftest$ac_exeext'
23162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23163 (eval $ac_try) 2>&5
23164 ac_status=$?
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); }; }; then
438013df
AO
23167 :
23168else
bec39cab
AC
23169 echo "$as_me: failed program was:" >&5
23170sed 's/^/| /' conftest.$ac_ext >&5
23171
b4e70030 23172gdb_cv_bigtoc=
438013df 23173fi
bec39cab
AC
23174rm -f conftest.err conftest.$ac_objext \
23175 conftest$ac_exeext conftest.$ac_ext
ec76baa5 23176 LDFLAGS="${SAVE_LDFLAGS}"
438013df 23177
bec39cab 23178fi
b4e70030
JB
23179echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
23180echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
23181 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
23182 ;;
23183esac
23184
c906108c
SS
23185
23186
23187if test ${build} = ${host} -a ${host} = ${target} ; then
23188 case ${host_os} in
23189 hpux*)
b4e70030
JB
23190 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
23191echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
23192 if test -f /usr/include/dce/cma_config.h ; then
23193 if test "$GCC" = "yes" ; then
b4e70030
JB
23194 echo "$as_me:$LINENO: result: yes" >&5
23195echo "${ECHO_T}yes" >&6
60ca704f
SE
23196
23197cat >>confdefs.h <<\_ACEOF
c906108c 23198#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 23199_ACEOF
c906108c 23200
3483b318 23201 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
23202 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
23203 else
b4e70030
JB
23204 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
23205echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
23206 fi
23207 else
b4e70030
JB
23208 echo "$as_me:$LINENO: result: no" >&5
23209echo "${ECHO_T}no" >&6
c906108c
SS
23210 fi
23211 ;;
23212 solaris*)
d92419e5
JB
23213 # See if thread_db library is around for Solaris thread debugging.
23214 # Note that we must explicitly test for version 1 of the library
23215 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
23216 # the same API.
b4e70030
JB
23217 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
23218echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 23219 if test -f /usr/lib/libthread_db.so.1 ; then
b4e70030
JB
23220 echo "$as_me:$LINENO: result: yes" >&5
23221echo "${ECHO_T}yes" >&6
60ca704f
SE
23222
23223cat >>confdefs.h <<\_ACEOF
c906108c 23224#define HAVE_THREAD_DB_LIB 1
bec39cab 23225_ACEOF
c906108c 23226
3483b318 23227 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 23228 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab 23229
b4e70030
JB
23230echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23231echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
bec39cab
AC
23232if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23233 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 23234else
bec39cab 23235 ac_check_lib_save_LIBS=$LIBS
c906108c 23236LIBS="-ldl $LIBS"
bec39cab
AC
23237cat >conftest.$ac_ext <<_ACEOF
23238/* confdefs.h. */
23239_ACEOF
23240cat confdefs.h >>conftest.$ac_ext
23241cat >>conftest.$ac_ext <<_ACEOF
23242/* end confdefs.h. */
23243
b4e70030 23244/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
23245#ifdef __cplusplus
23246extern "C"
23247#endif
b4e70030
JB
23248/* We use char because int might match the return type of a gcc2
23249 builtin and then its argument prototype would still apply. */
bec39cab
AC
23250char dlopen ();
23251int
23252main ()
23253{
b4e70030 23254dlopen ();
bec39cab
AC
23255 ;
23256 return 0;
23257}
23258_ACEOF
23259rm -f conftest.$ac_objext conftest$ac_exeext
23260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23261 (eval $ac_link) 2>conftest.er1
23262 ac_status=$?
23263 grep -v '^ *+' conftest.er1 >conftest.err
23264 rm -f conftest.er1
23265 cat conftest.err >&5
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); } &&
b4e70030
JB
23268 { ac_try='test -z "$ac_c_werror_flag"
23269 || test ! -s conftest.err'
bec39cab
AC
23270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23271 (eval $ac_try) 2>&5
23272 ac_status=$?
23273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); }; } &&
23275 { ac_try='test -s conftest$ac_exeext'
23276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277 (eval $ac_try) 2>&5
23278 ac_status=$?
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); }; }; then
23281 ac_cv_lib_dl_dlopen=yes
23282else
23283 echo "$as_me: failed program was:" >&5
23284sed 's/^/| /' conftest.$ac_ext >&5
23285
b4e70030 23286ac_cv_lib_dl_dlopen=no
bec39cab
AC
23287fi
23288rm -f conftest.err conftest.$ac_objext \
23289 conftest$ac_exeext conftest.$ac_ext
23290LIBS=$ac_check_lib_save_LIBS
23291fi
b4e70030
JB
23292echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23293echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
bec39cab
AC
23294if test $ac_cv_lib_dl_dlopen = yes; then
23295 cat >>confdefs.h <<_ACEOF
23296#define HAVE_LIBDL 1
23297_ACEOF
c906108c
SS
23298
23299 LIBS="-ldl $LIBS"
23300
c906108c
SS
23301fi
23302
23303 if test "$GCC" = "yes" ; then
23304 # The GNU linker requires the -export-dynamic option to make
23305 # all symbols visible in the dynamic symbol table.
23306 hold_ldflags=$LDFLAGS
b4e70030
JB
23307 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
23308echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 23309 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
23310 cat >conftest.$ac_ext <<_ACEOF
23311/* confdefs.h. */
23312_ACEOF
23313cat confdefs.h >>conftest.$ac_ext
23314cat >>conftest.$ac_ext <<_ACEOF
23315/* end confdefs.h. */
c906108c 23316
bec39cab
AC
23317int
23318main ()
23319{
c906108c 23320int i;
bec39cab
AC
23321 ;
23322 return 0;
23323}
23324_ACEOF
23325rm -f conftest.$ac_objext conftest$ac_exeext
23326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23327 (eval $ac_link) 2>conftest.er1
23328 ac_status=$?
23329 grep -v '^ *+' conftest.er1 >conftest.err
23330 rm -f conftest.er1
23331 cat conftest.err >&5
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); } &&
b4e70030
JB
23334 { ac_try='test -z "$ac_c_werror_flag"
23335 || test ! -s conftest.err'
bec39cab
AC
23336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23337 (eval $ac_try) 2>&5
23338 ac_status=$?
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); }; } &&
23341 { ac_try='test -s conftest$ac_exeext'
23342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23343 (eval $ac_try) 2>&5
23344 ac_status=$?
23345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); }; }; then
c906108c
SS
23347 found=yes
23348else
bec39cab
AC
23349 echo "$as_me: failed program was:" >&5
23350sed 's/^/| /' conftest.$ac_ext >&5
23351
b4e70030 23352found=no
c906108c 23353fi
bec39cab
AC
23354rm -f conftest.err conftest.$ac_objext \
23355 conftest$ac_exeext conftest.$ac_ext
c906108c 23356 LDFLAGS=$hold_ldflags
b4e70030
JB
23357 echo "$as_me:$LINENO: result: $found" >&5
23358echo "${ECHO_T}$found" >&6
c906108c
SS
23359 if test $found = yes; then
23360 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
23361 fi
23362 fi
23363 # Sun randomly tweaked the prototypes in <proc_service.h>
23364 # at one point.
b4e70030
JB
23365 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
23366echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
bec39cab
AC
23367 if test "${gdb_cv_proc_service_is_old+set}" = set; then
23368 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 23369else
bec39cab
AC
23370
23371 cat >conftest.$ac_ext <<_ACEOF
23372/* confdefs.h. */
23373_ACEOF
23374cat confdefs.h >>conftest.$ac_ext
23375cat >>conftest.$ac_ext <<_ACEOF
23376/* end confdefs.h. */
c906108c
SS
23377
23378 #include <proc_service.h>
23379 ps_err_e ps_pdwrite
23380 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 23381
bec39cab
AC
23382int
23383main ()
23384{
23385
23386 ;
23387 return 0;
23388}
23389_ACEOF
23390rm -f conftest.$ac_objext
23391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23392 (eval $ac_compile) 2>conftest.er1
23393 ac_status=$?
23394 grep -v '^ *+' conftest.er1 >conftest.err
23395 rm -f conftest.er1
23396 cat conftest.err >&5
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); } &&
b4e70030
JB
23399 { ac_try='test -z "$ac_c_werror_flag"
23400 || test ! -s conftest.err'
bec39cab
AC
23401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402 (eval $ac_try) 2>&5
23403 ac_status=$?
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); }; } &&
23406 { ac_try='test -s conftest.$ac_objext'
23407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23408 (eval $ac_try) 2>&5
23409 ac_status=$?
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); }; }; then
c906108c
SS
23412 gdb_cv_proc_service_is_old=no
23413else
bec39cab
AC
23414 echo "$as_me: failed program was:" >&5
23415sed 's/^/| /' conftest.$ac_ext >&5
23416
b4e70030 23417gdb_cv_proc_service_is_old=yes
c906108c 23418fi
bec39cab
AC
23419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23420
c906108c
SS
23421fi
23422
b4e70030
JB
23423 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
23424echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 23425 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
23426
23427cat >>confdefs.h <<\_ACEOF
c906108c 23428#define PROC_SERVICE_IS_OLD 1
bec39cab 23429_ACEOF
c906108c
SS
23430
23431 fi
23432 else
b4e70030
JB
23433 echo "$as_me:$LINENO: result: no" >&5
23434echo "${ECHO_T}no" >&6
c906108c
SS
23435 fi
23436 ;;
d92419e5 23437 aix*)
b4e70030
JB
23438 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
23439echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
bec39cab
AC
23440 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
23441 echo $ECHO_N "(cached) $ECHO_C" >&6
23442else
23443 cat >conftest.$ac_ext <<_ACEOF
23444/* confdefs.h. */
23445_ACEOF
23446cat confdefs.h >>conftest.$ac_ext
23447cat >>conftest.$ac_ext <<_ACEOF
23448/* end confdefs.h. */
d92419e5 23449#include <sys/pthdebug.h>
bec39cab
AC
23450int
23451main ()
23452{
d92419e5
JB
23453#ifndef PTHDB_VERSION_3
23454 #error
23455 #endif
bec39cab
AC
23456 ;
23457 return 0;
23458}
23459_ACEOF
23460rm -f conftest.$ac_objext
23461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23462 (eval $ac_compile) 2>conftest.er1
23463 ac_status=$?
23464 grep -v '^ *+' conftest.er1 >conftest.err
23465 rm -f conftest.er1
23466 cat conftest.err >&5
23467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468 (exit $ac_status); } &&
b4e70030
JB
23469 { ac_try='test -z "$ac_c_werror_flag"
23470 || test ! -s conftest.err'
bec39cab
AC
23471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23472 (eval $ac_try) 2>&5
23473 ac_status=$?
23474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); }; } &&
23476 { ac_try='test -s conftest.$ac_objext'
23477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23478 (eval $ac_try) 2>&5
23479 ac_status=$?
23480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481 (exit $ac_status); }; }; then
d92419e5
JB
23482 gdb_cv_have_aix_thread_debug=yes
23483else
bec39cab
AC
23484 echo "$as_me: failed program was:" >&5
23485sed 's/^/| /' conftest.$ac_ext >&5
23486
b4e70030 23487gdb_cv_have_aix_thread_debug=no
d92419e5 23488fi
bec39cab 23489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
23490fi
23491
b4e70030
JB
23492 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
23493echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
23494 if test $gdb_cv_have_aix_thread_debug = yes; then
23495 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 23496 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
23497 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
23498 fi
23499 ;;
c906108c 23500 esac
bec39cab 23501
c906108c
SS
23502fi
23503
3f47be5c 23504if test "x$ac_cv_header_thread_db_h" = "xyes"; then
b4e70030
JB
23505 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
23506echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
bec39cab
AC
23507if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
23508 echo $ECHO_N "(cached) $ECHO_C" >&6
23509else
23510 cat >conftest.$ac_ext <<_ACEOF
23511/* confdefs.h. */
23512_ACEOF
23513cat confdefs.h >>conftest.$ac_ext
23514cat >>conftest.$ac_ext <<_ACEOF
23515/* end confdefs.h. */
3f47be5c 23516#include <thread_db.h>
bec39cab
AC
23517int
23518main ()
23519{
3f47be5c 23520int i = TD_NOTALLOC;
bec39cab
AC
23521 ;
23522 return 0;
23523}
23524_ACEOF
23525rm -f conftest.$ac_objext
23526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23527 (eval $ac_compile) 2>conftest.er1
23528 ac_status=$?
23529 grep -v '^ *+' conftest.er1 >conftest.err
23530 rm -f conftest.er1
23531 cat conftest.err >&5
23532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533 (exit $ac_status); } &&
b4e70030
JB
23534 { ac_try='test -z "$ac_c_werror_flag"
23535 || test ! -s conftest.err'
bec39cab
AC
23536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23537 (eval $ac_try) 2>&5
23538 ac_status=$?
23539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540 (exit $ac_status); }; } &&
23541 { ac_try='test -s conftest.$ac_objext'
23542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23543 (eval $ac_try) 2>&5
23544 ac_status=$?
23545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23546 (exit $ac_status); }; }; then
3f47be5c
EZ
23547 gdb_cv_thread_db_h_has_td_notalloc=yes
23548else
bec39cab
AC
23549 echo "$as_me: failed program was:" >&5
23550sed 's/^/| /' conftest.$ac_ext >&5
23551
b4e70030 23552gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 23553
3f47be5c 23554fi
bec39cab 23555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 23556
bec39cab 23557fi
b4e70030
JB
23558echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
23559echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
59f80f10
DJ
23560 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
23561echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
23562if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
23563 echo $ECHO_N "(cached) $ECHO_C" >&6
23564else
23565 cat >conftest.$ac_ext <<_ACEOF
23566/* confdefs.h. */
23567_ACEOF
23568cat confdefs.h >>conftest.$ac_ext
23569cat >>conftest.$ac_ext <<_ACEOF
23570/* end confdefs.h. */
23571#include <thread_db.h>
23572int
23573main ()
23574{
23575int i = TD_VERSION;
23576 ;
23577 return 0;
23578}
23579_ACEOF
23580rm -f conftest.$ac_objext
23581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23582 (eval $ac_compile) 2>conftest.er1
23583 ac_status=$?
23584 grep -v '^ *+' conftest.er1 >conftest.err
23585 rm -f conftest.er1
23586 cat conftest.err >&5
23587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588 (exit $ac_status); } &&
23589 { ac_try='test -z "$ac_c_werror_flag"
23590 || test ! -s conftest.err'
23591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23592 (eval $ac_try) 2>&5
23593 ac_status=$?
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); }; } &&
23596 { ac_try='test -s conftest.$ac_objext'
23597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23598 (eval $ac_try) 2>&5
23599 ac_status=$?
23600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601 (exit $ac_status); }; }; then
23602 gdb_cv_thread_db_h_has_td_version=yes
23603else
23604 echo "$as_me: failed program was:" >&5
23605sed 's/^/| /' conftest.$ac_ext >&5
23606
23607gdb_cv_thread_db_h_has_td_version=no
23608
23609fi
23610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23611
23612fi
23613echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
23614echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
23615 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
23616echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
23617if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
23618 echo $ECHO_N "(cached) $ECHO_C" >&6
23619else
23620 cat >conftest.$ac_ext <<_ACEOF
23621/* confdefs.h. */
23622_ACEOF
23623cat confdefs.h >>conftest.$ac_ext
23624cat >>conftest.$ac_ext <<_ACEOF
23625/* end confdefs.h. */
23626#include <thread_db.h>
23627int
23628main ()
23629{
23630int i = TD_NOTLS;
23631 ;
23632 return 0;
23633}
23634_ACEOF
23635rm -f conftest.$ac_objext
23636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23637 (eval $ac_compile) 2>conftest.er1
23638 ac_status=$?
23639 grep -v '^ *+' conftest.er1 >conftest.err
23640 rm -f conftest.er1
23641 cat conftest.err >&5
23642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643 (exit $ac_status); } &&
23644 { ac_try='test -z "$ac_c_werror_flag"
23645 || test ! -s conftest.err'
23646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23647 (eval $ac_try) 2>&5
23648 ac_status=$?
23649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650 (exit $ac_status); }; } &&
23651 { ac_try='test -s conftest.$ac_objext'
23652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23653 (eval $ac_try) 2>&5
23654 ac_status=$?
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); }; }; then
23657 gdb_cv_thread_db_h_has_td_notls=yes
23658else
23659 echo "$as_me: failed program was:" >&5
23660sed 's/^/| /' conftest.$ac_ext >&5
23661
23662gdb_cv_thread_db_h_has_td_notls=no
23663
23664fi
23665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23666
23667fi
23668echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
23669echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
3f47be5c
EZ
23670fi
23671if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
23672
23673cat >>confdefs.h <<\_ACEOF
3f47be5c 23674#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 23675_ACEOF
3f47be5c 23676
59f80f10
DJ
23677fi
23678if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
23679
23680cat >>confdefs.h <<\_ACEOF
23681#define THREAD_DB_HAS_TD_VERSION 1
23682_ACEOF
23683
23684fi
23685if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
23686
23687cat >>confdefs.h <<\_ACEOF
23688#define THREAD_DB_HAS_TD_NOTLS 1
23689_ACEOF
23690
3f47be5c
EZ
23691fi
23692
b757528f 23693if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
b4e70030
JB
23694 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
23695echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
bec39cab
AC
23696if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
23697 echo $ECHO_N "(cached) $ECHO_C" >&6
23698else
23699 cat >conftest.$ac_ext <<_ACEOF
23700/* confdefs.h. */
23701_ACEOF
23702cat confdefs.h >>conftest.$ac_ext
23703cat >>conftest.$ac_ext <<_ACEOF
23704/* end confdefs.h. */
b757528f 23705#include <sys/syscall.h>
bec39cab
AC
23706int
23707main ()
23708{
b757528f 23709int i = __NR_tkill;
bec39cab
AC
23710 ;
23711 return 0;
23712}
23713_ACEOF
23714rm -f conftest.$ac_objext
23715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23716 (eval $ac_compile) 2>conftest.er1
23717 ac_status=$?
23718 grep -v '^ *+' conftest.er1 >conftest.err
23719 rm -f conftest.er1
23720 cat conftest.err >&5
23721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722 (exit $ac_status); } &&
b4e70030
JB
23723 { ac_try='test -z "$ac_c_werror_flag"
23724 || test ! -s conftest.err'
bec39cab
AC
23725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23726 (eval $ac_try) 2>&5
23727 ac_status=$?
23728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729 (exit $ac_status); }; } &&
23730 { ac_try='test -s conftest.$ac_objext'
23731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23732 (eval $ac_try) 2>&5
23733 ac_status=$?
23734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735 (exit $ac_status); }; }; then
b757528f
JJ
23736 gdb_cv_sys_syscall_h_has_tkill=yes
23737else
bec39cab
AC
23738 echo "$as_me: failed program was:" >&5
23739sed 's/^/| /' conftest.$ac_ext >&5
23740
b4e70030 23741gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 23742
b757528f 23743fi
bec39cab 23744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 23745
bec39cab 23746fi
b4e70030
JB
23747echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
23748echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
23749fi
23750if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
23751
23752cat >>confdefs.h <<\_ACEOF
b757528f 23753#define HAVE_TKILL_SYSCALL 1
bec39cab 23754_ACEOF
b757528f
JJ
23755
23756fi
23757
10568435
JK
23758echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
23759echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
23760if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
23761 echo $ECHO_N "(cached) $ECHO_C" >&6
23762else
23763 cat >conftest.$ac_ext <<_ACEOF
23764/* confdefs.h. */
23765_ACEOF
23766cat confdefs.h >>conftest.$ac_ext
23767cat >>conftest.$ac_ext <<_ACEOF
23768/* end confdefs.h. */
23769#include <sys/personality.h>
23770
23771int
23772main ()
23773{
23774#ifndef ADDR_NO_RANDOMIZE
23775 char *p = (char *) ADDR_NO_RANDOMIZE;
23776#endif
23777
23778 ;
23779 return 0;
23780}
23781_ACEOF
23782rm -f conftest.$ac_objext
23783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23784 (eval $ac_compile) 2>conftest.er1
23785 ac_status=$?
23786 grep -v '^ *+' conftest.er1 >conftest.err
23787 rm -f conftest.er1
23788 cat conftest.err >&5
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); } &&
23791 { ac_try='test -z "$ac_c_werror_flag"
23792 || test ! -s conftest.err'
23793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23794 (eval $ac_try) 2>&5
23795 ac_status=$?
23796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797 (exit $ac_status); }; } &&
23798 { ac_try='test -s conftest.$ac_objext'
23799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23800 (eval $ac_try) 2>&5
23801 ac_status=$?
23802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803 (exit $ac_status); }; }; then
23804 ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
23805else
23806 echo "$as_me: failed program was:" >&5
23807sed 's/^/| /' conftest.$ac_ext >&5
23808
23809ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
23810fi
23811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23812fi
23813echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
23814echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
23815if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
23816
23817cat >>confdefs.h <<_ACEOF
23818#define HAVE_DECL_ADDR_NO_RANDOMIZE 1
23819_ACEOF
23820
23821
23822else
23823 cat >>confdefs.h <<_ACEOF
23824#define HAVE_DECL_ADDR_NO_RANDOMIZE 0
23825_ACEOF
23826
23827
23828fi
23829
23830
23831
23832if test "$cross_compiling" = yes; then
23833 cat >conftest.$ac_ext <<_ACEOF
23834/* confdefs.h. */
23835_ACEOF
23836cat confdefs.h >>conftest.$ac_ext
23837cat >>conftest.$ac_ext <<_ACEOF
23838/* end confdefs.h. */
23839#include <sys/personality.h>
23840int
23841main ()
23842{
23843
23844# if !HAVE_DECL_ADDR_NO_RANDOMIZE
23845# define ADDR_NO_RANDOMIZE 0x0040000
23846# endif
23847 /* Test the flag could be set and stays set. */
23848 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
23849 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
23850 return 1
23851 ;
23852 return 0;
23853}
23854_ACEOF
23855rm -f conftest.$ac_objext conftest$ac_exeext
23856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23857 (eval $ac_link) 2>conftest.er1
23858 ac_status=$?
23859 grep -v '^ *+' conftest.er1 >conftest.err
23860 rm -f conftest.er1
23861 cat conftest.err >&5
23862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863 (exit $ac_status); } &&
23864 { ac_try='test -z "$ac_c_werror_flag"
23865 || test ! -s conftest.err'
23866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23867 (eval $ac_try) 2>&5
23868 ac_status=$?
23869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870 (exit $ac_status); }; } &&
23871 { ac_try='test -s conftest$ac_exeext'
23872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23873 (eval $ac_try) 2>&5
23874 ac_status=$?
23875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876 (exit $ac_status); }; }; then
23877 have_personality=true
23878else
23879 echo "$as_me: failed program was:" >&5
23880sed 's/^/| /' conftest.$ac_ext >&5
23881
23882have_personality=false
23883fi
23884rm -f conftest.err conftest.$ac_objext \
23885 conftest$ac_exeext conftest.$ac_ext
23886else
23887 cat >conftest.$ac_ext <<_ACEOF
23888/* confdefs.h. */
23889_ACEOF
23890cat confdefs.h >>conftest.$ac_ext
23891cat >>conftest.$ac_ext <<_ACEOF
23892/* end confdefs.h. */
23893#include <sys/personality.h>
23894int
23895main ()
23896{
23897
23898# if !HAVE_DECL_ADDR_NO_RANDOMIZE
23899# define ADDR_NO_RANDOMIZE 0x0040000
23900# endif
23901 /* Test the flag could be set and stays set. */
23902 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
23903 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
23904 return 1
23905 ;
23906 return 0;
23907}
23908_ACEOF
23909rm -f conftest$ac_exeext
23910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23911 (eval $ac_link) 2>&5
23912 ac_status=$?
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23916 (eval $ac_try) 2>&5
23917 ac_status=$?
23918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23919 (exit $ac_status); }; }; then
23920 have_personality=true
23921else
23922 echo "$as_me: program exited with status $ac_status" >&5
23923echo "$as_me: failed program was:" >&5
23924sed 's/^/| /' conftest.$ac_ext >&5
23925
23926( exit $ac_status )
23927have_personality=false
23928fi
23929rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23930fi
23931if $have_personality
23932then
23933
23934cat >>confdefs.h <<\_ACEOF
23935#define HAVE_PERSONALITY 1
23936_ACEOF
23937
23938fi
23939
fb40c209 23940
bec39cab 23941
b4e70030 23942# Check whether --with-sysroot or --without-sysroot was given.
030292b7 23943if test "${with_sysroot+set}" = set; then
b4e70030
JB
23944 withval="$with_sysroot"
23945
030292b7 23946 case ${with_sysroot} in
715d1656 23947 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
23948 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
23949 esac
23950
23951 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
23952
07abfebf
RS
23953 if test "x$prefix" = xNONE; then
23954 test_prefix=/usr/local
23955 else
23956 test_prefix=$prefix
23957 fi
aa28a74e 23958 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
07abfebf 23959 test_exec_prefix=$test_prefix
030292b7 23960 else
07abfebf 23961 test_exec_prefix=$exec_prefix
030292b7
DJ
23962 fi
23963 case ${TARGET_SYSTEM_ROOT} in
715d1656 23964 "${test_prefix}"|"${test_prefix}/"*|\
07abfebf
RS
23965 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
23966 '${prefix}'|'${prefix}/'*|\
715d1656 23967 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
23968 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
23969 TARGET_SYSTEM_ROOT_DEFINE="$t"
23970 ;;
23971 esac
23972
23973else
bec39cab 23974
030292b7
DJ
23975 TARGET_SYSTEM_ROOT=
23976 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
23977
b4e70030 23978fi;
030292b7
DJ
23979
23980
23981
b4e70030 23982# Check whether --enable-werror or --disable-werror was given.
094a342e 23983if test "${enable_werror+set}" = set; then
b4e70030
JB
23984 enableval="$enable_werror"
23985 case "${enableval}" in
094a342e
MK
23986 yes | y) ERROR_ON_WARNING="yes" ;;
23987 no | n) ERROR_ON_WARNING="no" ;;
23988 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
23989echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
23990 { (exit 1); exit 1; }; } ;;
23991 esac
b4e70030 23992fi;
094a342e
MK
23993
23994# Enable -Werror by default when using gcc
23995if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
23996 ERROR_ON_WARNING=yes
23997fi
23998
23999WERROR_CFLAGS=""
24000if test "${ERROR_ON_WARNING}" = yes ; then
24001 WERROR_CFLAGS="-Werror"
24002fi
24003
aa79a185
DJ
24004# The entries after -Wno-pointer-sign are disabled warnings which may
24005# be enabled in the future, which can not currently be used to build
24006# GDB.
24007# NOTE: If you change this list, remember to update
3b851bce 24008# gdb/doc/gdbint.texinfo.
aa79a185
DJ
24009build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
24010-Wformat-nonliteral -Wno-pointer-sign \
58b38ee2 24011-Wno-unused -Wno-switch -Wno-char-subscripts"
a3b362c4 24012
3526781e
DJ
24013# Enable -Wno-format by default when using gcc on mingw since many
24014# GCC versions complain about %I64.
24015case "${host}" in
24016 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
24017esac
24018
b4e70030 24019# Check whether --enable-build-warnings or --disable-build-warnings was given.
c906108c 24020if test "${enable_build_warnings+set}" = set; then
b4e70030
JB
24021 enableval="$enable_build_warnings"
24022 case "${enableval}" in
c906108c
SS
24023 yes) ;;
24024 no) build_warnings="-w";;
24025 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24026 build_warnings="${build_warnings} ${t}";;
24027 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24028 build_warnings="${t} ${build_warnings}";;
24029 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
24030esac
d4f3574e 24031if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 24032 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 24033fi
b4e70030 24034fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce 24035if test "${enable_gdb_build_warnings+set}" = set; then
b4e70030
JB
24036 enableval="$enable_gdb_build_warnings"
24037 case "${enableval}" in
3b851bce
AC
24038 yes) ;;
24039 no) build_warnings="-w";;
24040 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24041 build_warnings="${build_warnings} ${t}";;
24042 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24043 build_warnings="${t} ${build_warnings}";;
24044 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
24045esac
24046if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
24047 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
24048fi
b4e70030 24049fi; WARN_CFLAGS=""
c906108c
SS
24050if test "x${build_warnings}" != x -a "x$GCC" = xyes
24051then
b4e70030
JB
24052 echo "$as_me:$LINENO: checking compiler warning flags" >&5
24053echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
24054 # Separate out the -Werror flag as some files just cannot be
24055 # compiled with it enabled.
24056 for w in ${build_warnings}; do
24057 case $w in
24058 -Werr*) WERROR_CFLAGS=-Werror ;;
24059 *) # Check that GCC accepts it
4536bbc6
AC
24060 saved_CFLAGS="$CFLAGS"
24061 CFLAGS="$CFLAGS $w"
bec39cab
AC
24062 cat >conftest.$ac_ext <<_ACEOF
24063/* confdefs.h. */
24064_ACEOF
24065cat confdefs.h >>conftest.$ac_ext
24066cat >>conftest.$ac_ext <<_ACEOF
24067/* end confdefs.h. */
4536bbc6 24068
bec39cab
AC
24069int
24070main ()
24071{
4536bbc6 24072
bec39cab
AC
24073 ;
24074 return 0;
24075}
24076_ACEOF
24077rm -f conftest.$ac_objext
24078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24079 (eval $ac_compile) 2>conftest.er1
24080 ac_status=$?
24081 grep -v '^ *+' conftest.er1 >conftest.err
24082 rm -f conftest.er1
24083 cat conftest.err >&5
24084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24085 (exit $ac_status); } &&
b4e70030
JB
24086 { ac_try='test -z "$ac_c_werror_flag"
24087 || test ! -s conftest.err'
bec39cab
AC
24088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24089 (eval $ac_try) 2>&5
24090 ac_status=$?
24091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092 (exit $ac_status); }; } &&
24093 { ac_try='test -s conftest.$ac_objext'
24094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24095 (eval $ac_try) 2>&5
24096 ac_status=$?
24097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098 (exit $ac_status); }; }; then
4536bbc6
AC
24099 WARN_CFLAGS="${WARN_CFLAGS} $w"
24100else
bec39cab
AC
24101 echo "$as_me: failed program was:" >&5
24102sed 's/^/| /' conftest.$ac_ext >&5
24103
4536bbc6 24104fi
bec39cab 24105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 24106 CFLAGS="$saved_CFLAGS"
746a987d
AC
24107 esac
24108 done
aa79a185
DJ
24109 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
24110echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
c906108c
SS
24111fi
24112
24113
104c1213 24114
7a292a7a 24115# In the Cygwin environment, we need some additional flags.
b4e70030
JB
24116echo "$as_me:$LINENO: checking for cygwin" >&5
24117echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
bec39cab
AC
24118if test "${gdb_cv_os_cygwin+set}" = set; then
24119 echo $ECHO_N "(cached) $ECHO_C" >&6
24120else
24121 cat >conftest.$ac_ext <<_ACEOF
24122/* confdefs.h. */
24123_ACEOF
24124cat confdefs.h >>conftest.$ac_ext
24125cat >>conftest.$ac_ext <<_ACEOF
24126/* end confdefs.h. */
7a292a7a
SS
24127
24128#if defined (__CYGWIN__) || defined (__CYGWIN32__)
24129lose
24130#endif
bec39cab 24131_ACEOF
7a292a7a 24132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 24133 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
24134 gdb_cv_os_cygwin=yes
24135else
7a292a7a
SS
24136 gdb_cv_os_cygwin=no
24137fi
24138rm -f conftest*
24139
24140fi
b4e70030
JB
24141echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
24142echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 24143
aff38e61 24144
3eb25fda 24145SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 24146case ${host} in
95cbc983
AC
24147 *go32* ) SER_HARDWIRE=ser-go32.o ;;
24148 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 24149 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
24150esac
24151
24152
cd0fc7c3
SS
24153# libreadline needs libuser32.a in a cygwin environment
24154WIN32LIBS=
24155if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
24156 WIN32LIBS="-luser32"
24157 case "${target}" in
24158 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
24159 ;;
24160 esac
cd0fc7c3 24161fi
c906108c 24162
b4505029
MM
24163# The ser-tcp.c module requires sockets.
24164case ${host} in
24165 *mingw32*)
24166
24167cat >>confdefs.h <<\_ACEOF
24168#define USE_WIN32API 1
24169_ACEOF
24170
24171 WIN32LIBS="$WIN32LIBS -lws2_32"
24172 ;;
24173esac
24174
7a292a7a 24175
31d99776
DJ
24176# Add ELF support to GDB, but only if BFD includes ELF support.
24177OLD_CFLAGS=$CFLAGS
24178OLD_LDFLAGS=$LDFLAGS
24179OLD_LIBS=$LIBS
cab58a69 24180CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
31d99776 24181LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
7b3200f9 24182intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
0f72fb1c 24183LIBS="-lbfd -liberty $intl $LIBS"
31d99776
DJ
24184echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
24185echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
24186if test "${gdb_cv_var_elf+set}" = set; then
24187 echo $ECHO_N "(cached) $ECHO_C" >&6
24188else
24189 cat >conftest.$ac_ext <<_ACEOF
24190/* confdefs.h. */
24191_ACEOF
24192cat confdefs.h >>conftest.$ac_ext
24193cat >>conftest.$ac_ext <<_ACEOF
24194/* end confdefs.h. */
24195#include <stdlib.h>
24196#include "bfd.h"
24197#include "elf-bfd.h"
24198
24199int
24200main ()
24201{
24202bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
24203 ;
24204 return 0;
24205}
24206_ACEOF
24207rm -f conftest.$ac_objext conftest$ac_exeext
24208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24209 (eval $ac_link) 2>conftest.er1
24210 ac_status=$?
24211 grep -v '^ *+' conftest.er1 >conftest.err
24212 rm -f conftest.er1
24213 cat conftest.err >&5
24214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215 (exit $ac_status); } &&
24216 { ac_try='test -z "$ac_c_werror_flag"
24217 || test ! -s conftest.err'
24218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24219 (eval $ac_try) 2>&5
24220 ac_status=$?
24221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222 (exit $ac_status); }; } &&
24223 { ac_try='test -s conftest$ac_exeext'
24224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24225 (eval $ac_try) 2>&5
24226 ac_status=$?
24227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); }; }; then
24229 gdb_cv_var_elf=yes
24230else
24231 echo "$as_me: failed program was:" >&5
24232sed 's/^/| /' conftest.$ac_ext >&5
24233
24234gdb_cv_var_elf=no
24235fi
24236rm -f conftest.err conftest.$ac_objext \
24237 conftest$ac_exeext conftest.$ac_ext
24238fi
24239echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
24240echo "${ECHO_T}$gdb_cv_var_elf" >&6
24241if test $gdb_cv_var_elf = yes; then
24242 CONFIG_OBS="$CONFIG_OBS elfread.o"
24243
24244cat >>confdefs.h <<\_ACEOF
24245#define HAVE_ELF 1
24246_ACEOF
24247
24248fi
24249CFLAGS=$OLD_CFLAGS
24250LDFLAGS=$OLD_LDFLAGS
24251LIBS=$OLD_LIBS
24252
121ce6e5
DJ
24253# Add any host-specific objects to GDB.
24254CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
24255
3fc11d3e
JM
24256LIBGUI="../libgui/src/libgui.a"
24257GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
24258
24259
7a292a7a 24260
3fc11d3e
JM
24261WIN32LDAPP=
24262
24263
24264
d91670b9 24265case "${host}" in
686a5eed 24266*-*-cygwin* | *-*-mingw* )
d91670b9
CV
24267 configdir="win"
24268 ;;
24269*)
24270 configdir="unix"
24271 ;;
24272esac
3fc11d3e
JM
24273
24274GDBTKLIBS=
24275if test "${enable_gdbtk}" = "yes"; then
24276
d1c3b63a
KS
24277 # Gdbtk must have an absolute path to srcdir in order to run
24278 # properly when not installed.
24279 here=`pwd`
24280 cd ${srcdir}
24281 GDBTK_SRC_DIR=`pwd`
24282 cd $here
24283
bec39cab 24284
5062cc19
KS
24285 #
24286 # Ok, lets find the tcl configuration
24287 # First, look for one uninstalled.
24288 # the alternative search directory is invoked by --with-tcl
24289 #
3fc11d3e 24290
5062cc19
KS
24291 if test x"${no_tcl}" = x ; then
24292 # we reset no_tcl in case something fails here
24293 no_tcl=true
bec39cab 24294
5062cc19
KS
24295# Check whether --with-tcl or --without-tcl was given.
24296if test "${with_tcl+set}" = set; then
24297 withval="$with_tcl"
b4e70030
JB
24298 with_tclconfig=${withval}
24299fi;
5062cc19 24300 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
b4e70030 24301echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
5062cc19 24302 if test "${ac_cv_c_tclconfig+set}" = set; then
bec39cab 24303 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 24304else
bec39cab 24305
3fc11d3e 24306
5062cc19
KS
24307 # First check to see if --with-tcl was specified.
24308 case "${host}" in
24309 *-*-cygwin*) platDir="win" ;;
24310 *) platDir="unix" ;;
24311 esac
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
24316 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
bec39cab
AC
24317echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
24318 { (exit 1); exit 1; }; }
5062cc19
KS
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[8-9].[0-9].[0-9]* 2>/dev/null` \
24327 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
24328 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
24329 ../../tcl \
24330 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24331 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
24332 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
24333 ../../../tcl \
24334 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24335 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
24336 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
24337 if test -f "$i/$platDir/tclConfig.sh" ; then
24338 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
24339 break
24340 fi
24341 done
24342 fi
24343
24344 # on Darwin, check in Framework installation locations
24345 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
24346 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
24347 `ls -d /Library/Frameworks 2>/dev/null` \
24348 `ls -d /Network/Library/Frameworks 2>/dev/null` \
24349 `ls -d /System/Library/Frameworks 2>/dev/null` \
24350 ; do
24351 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
24352 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
24353 break
24354 fi
24355 done
24356 fi
24357
24358 # check in a few common install locations
24359 if test x"${ac_cv_c_tclconfig}" = x ; then
24360 for i in `ls -d ${libdir} 2>/dev/null` \
24361 `ls -d ${exec_prefix}/lib 2>/dev/null` \
24362 `ls -d ${prefix}/lib 2>/dev/null` \
24363 `ls -d /usr/local/lib 2>/dev/null` \
24364 `ls -d /usr/contrib/lib 2>/dev/null` \
24365 `ls -d /usr/lib 2>/dev/null` \
24366 ; do
24367 if test -f "$i/tclConfig.sh" ; then
24368 ac_cv_c_tclconfig=`(cd $i; pwd)`
24369 break
24370 fi
24371 done
24372 fi
3fc11d3e 24373
5062cc19
KS
24374 # check in a few other private locations
24375 if test x"${ac_cv_c_tclconfig}" = x ; then
24376 for i in \
24377 ${srcdir}/../tcl \
24378 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24379 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
24380 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
24381 if test -f "$i/$platDir/tclConfig.sh" ; then
24382 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
24383 break
24384 fi
24385 done
24386 fi
bec39cab 24387
3fc11d3e
JM
24388fi
24389
5062cc19
KS
24390
24391 if test x"${ac_cv_c_tclconfig}" = x ; then
24392 TCL_BIN_DIR="# no Tcl configs found"
24393 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
bec39cab 24394echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
5062cc19
KS
24395 exit 0
24396 else
24397 no_tcl=
24398 TCL_BIN_DIR=${ac_cv_c_tclconfig}
24399 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
24400echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
24401 fi
24402 fi
3fc11d3e
JM
24403
24404 if test -z "${no_tcl}"; then
bec39cab 24405
5062cc19
KS
24406 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
24407echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
bec39cab 24408
5062cc19
KS
24409 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
24410 echo "$as_me:$LINENO: result: loading" >&5
24411echo "${ECHO_T}loading" >&6
24412 . ${TCL_BIN_DIR}/tclConfig.sh
24413 else
24414 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
24415echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
24416 fi
bec39cab 24417
5062cc19
KS
24418 # eval is required to do the TCL_DBGX substitution
24419 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
24420 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
24421
24422 # If the TCL_BIN_DIR is the build directory (not the install directory),
24423 # then set the common variable name to the value of the build variables.
24424 # For example, the variable TCL_LIB_SPEC will be set to the value
24425 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
24426 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
24427 # installed and uninstalled version of Tcl.
24428 if test -f ${TCL_BIN_DIR}/Makefile ; then
24429 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
24430 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
24431 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
24432 elif test "`uname -s`" = "Darwin"; then
24433 # If Tcl was built as a framework, attempt to use the libraries
24434 # from the framework at the given location so that linking works
24435 # against Tcl.framework installed in an arbitary location.
24436 case ${TCL_DEFS} in
24437 *TCL_FRAMEWORK*)
24438 if test -f ${TCL_BIN_DIR}/${TCL_LIB_FILE}; then
24439 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
24440 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
24441 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
24442 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
24443 break
24444 fi
24445 done
24446 fi
24447 if test -f ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}; then
24448 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
24449 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
24450 fi
24451 ;;
24452 esac
24453 fi
bec39cab 24454
5062cc19
KS
24455 # eval is required to do the TCL_DBGX substitution
24456 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
24457 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
24458 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
24459 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
bec39cab
AC
24460
24461
24462
24463
24464
24465
24466
24467
24468
24469
24470
24471
24472
24473
3fc11d3e 24474
5062cc19
KS
24475 # Check for in-tree tcl
24476 here=`pwd`
24477 cd ${srcdir}/..
24478 topdir=`pwd`
24479 cd ${here}
bec39cab 24480
5062cc19
KS
24481 intree="no"
24482 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
24483 intree="yes"
24484 fi
bec39cab 24485
5062cc19
KS
24486 # Find Tcl private headers
24487 if test x"${intree}" = xno; then
3fc11d3e 24488
5062cc19
KS
24489 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
24490echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
24491 private_dir=""
24492 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
24493 if test -f ${dir}/tclInt.h ; then
24494 private_dir=${dir}
3fc11d3e
JM
24495 fi
24496
5062cc19
KS
24497 if test x"${private_dir}" = x; then
24498 { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
24499echo "$as_me: error: could not find private Tcl headers" >&2;}
24500 { (exit 1); exit 1; }; }
3fc11d3e 24501 else
5062cc19
KS
24502 TCL_PRIVATE_INCLUDE="-I${private_dir}"
24503 echo "$as_me:$LINENO: result: ${private_dir}" >&5
24504echo "${ECHO_T}${private_dir}" >&6
3fc11d3e 24505 fi
3fc11d3e 24506
5062cc19
KS
24507 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
24508 TCL_LIBRARY="${TCL_LIB_SPEC}"
24509 TCL_DEPS=""
24510 else
24511 # If building tcl in the same src tree, private headers
24512 # are not needed, but we need to be sure to use the right
24513 # headers library
24514 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
24515 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
24516 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
24517 fi
3fc11d3e 24518
dd2504ab 24519
dd2504ab 24520
dd2504ab 24521
3fc11d3e
JM
24522 # If $no_tk is nonempty, then we can't do Tk, and there is no
24523 # point to doing Tcl.
24524 if test -z "${no_tk}"; then
bec39cab 24525
5062cc19
KS
24526 #
24527 # Ok, lets find the tk configuration
24528 # First, look for one uninstalled.
24529 # the alternative search directory is invoked by --with-tk
24530 #
3fc11d3e 24531
5062cc19
KS
24532 if test x"${no_tk}" = x ; then
24533 # we reset no_tk in case something fails here
24534 no_tk=true
bec39cab 24535
5062cc19
KS
24536# Check whether --with-tk or --without-tk was given.
24537if test "${with_tk+set}" = set; then
24538 withval="$with_tk"
24539 with_tkconfig=${withval}
b4e70030 24540fi;
5062cc19
KS
24541 echo "$as_me:$LINENO: checking for Tk configuration" >&5
24542echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
24543 if test "${ac_cv_c_tkconfig+set}" = set; then
bec39cab
AC
24544 echo $ECHO_N "(cached) $ECHO_C" >&6
24545else
3fc11d3e
JM
24546
24547
5062cc19
KS
24548 # First check to see if --with-tkconfig was specified.
24549 if test x"${with_tkconfig}" != x ; then
24550 if test -f "${with_tkconfig}/tkConfig.sh" ; then
24551 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
24552 else
24553 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
24554echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
bec39cab 24555 { (exit 1); exit 1; }; }
5062cc19
KS
24556 fi
24557 fi
3fc11d3e 24558
5062cc19
KS
24559 # then check for a private Tk library
24560 case "${host}" in
24561 *-*-cygwin*) platDir="win" ;;
24562 *) platDir="unix" ;;
24563 esac
24564 if test x"${ac_cv_c_tkconfig}" = x ; then
24565 for i in \
24566 ../tk \
24567 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
24568 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
24569 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
24570 ../../tk \
24571 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
24572 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
24573 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
24574 ../../../tk \
24575 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
24576 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
24577 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
24578 if test -f "$i/$platDir/tkConfig.sh" ; then
24579 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
24580 break
24581 fi
24582 done
24583 fi
24584
24585 # on Darwin, check in Framework installation locations
24586 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
24587 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
24588 `ls -d /Library/Frameworks 2>/dev/null` \
24589 `ls -d /Network/Library/Frameworks 2>/dev/null` \
24590 `ls -d /System/Library/Frameworks 2>/dev/null` \
24591 ; do
24592 if test -f "$i/Tk.framework/tkConfig.sh" ; then
24593 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
24594 break
24595 fi
24596 done
24597 fi
24598
24599 # check in a few common install locations
24600 if test x"${ac_cv_c_tkconfig}" = x ; then
24601 for i in `ls -d ${libdir} 2>/dev/null` \
24602 `ls -d ${exec_prefix}/lib 2>/dev/null` \
24603 `ls -d ${prefix}/lib 2>/dev/null` \
24604 `ls -d /usr/local/lib 2>/dev/null` \
24605 `ls -d /usr/contrib/lib 2>/dev/null` \
24606 `ls -d /usr/lib 2>/dev/null` \
24607 ; do
24608 if test -f "$i/tkConfig.sh" ; then
24609 ac_cv_c_tkconfig=`(cd $i; pwd)`
24610 break
24611 fi
24612 done
24613 fi
24614 # check in a few other private locations
24615 if test x"${ac_cv_c_tkconfig}" = x ; then
24616 for i in \
24617 ${srcdir}/../tk \
24618 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
24619 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
24620 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
24621 if test -f "$i/$platDir/tkConfig.sh" ; then
24622 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
24623 break
24624 fi
24625 done
24626 fi
3fc11d3e 24627
3fc11d3e
JM
24628fi
24629
24630
5062cc19
KS
24631 if test x"${ac_cv_c_tkconfig}" = x ; then
24632 TK_BIN_DIR="# no Tk configs found"
24633 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
24634echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
24635 exit 0
24636 else
24637 no_tk=
24638 TK_BIN_DIR=${ac_cv_c_tkconfig}
24639 echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
24640echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
24641 fi
3fc11d3e 24642 fi
dd2504ab 24643
dd2504ab 24644
5062cc19
KS
24645 echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
24646echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
dd2504ab 24647
5062cc19
KS
24648 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
24649 echo "$as_me:$LINENO: result: loading" >&5
24650echo "${ECHO_T}loading" >&6
24651 . ${TK_BIN_DIR}/tkConfig.sh
3fc11d3e 24652 else
5062cc19
KS
24653 echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
24654echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
3fc11d3e 24655 fi
bec39cab 24656
5062cc19
KS
24657 # eval is required to do the TK_DBGX substitution
24658 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
24659 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
24660
24661 # If the TK_BIN_DIR is the build directory (not the install directory),
24662 # then set the common variable name to the value of the build variables.
24663 # For example, the variable TK_LIB_SPEC will be set to the value
24664 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
24665 # instead of TK_BUILD_LIB_SPEC since it will work with both an
24666 # installed and uninstalled version of Tcl.
24667 if test -f ${TK_BIN_DIR}/Makefile ; then
24668 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
24669 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
24670 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
24671 elif test "`uname -s`" = "Darwin"; then
24672 # If Tk was built as a framework, attempt to use the libraries
24673 # from the framework at the given location so that linking works
24674 # against Tk.framework installed in an arbitary location.
24675 case ${TK_DEFS} in
24676 *TK_FRAMEWORK*)
24677 if test -f ${TK_BIN_DIR}/${TK_LIB_FILE}; then
24678 for i in "`cd ${TK_BIN_DIR}; pwd`" \
24679 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
24680 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
24681 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
24682 break
24683 fi
24684 done
24685 fi
24686 if test -f ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}; then
24687 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
24688 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
24689 fi
24690 ;;
24691 esac
3fc11d3e
JM
24692 fi
24693
5062cc19
KS
24694 # eval is required to do the TK_DBGX substitution
24695 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
24696 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
24697 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
24698 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
3fc11d3e 24699
3fc11d3e
JM
24700
24701
bec39cab
AC
24702
24703
24704
24705
24706
24707
24708
3fc11d3e 24709
3fc11d3e 24710
bec39cab 24711
bec39cab 24712
5062cc19
KS
24713 # Check for in-tree Tk
24714 intree="no"
24715 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
24716 intree="yes"
24717 fi
3fc11d3e 24718
5062cc19
KS
24719 # Find Tk private headers
24720 if test x"${intree}" = xno; then
3fc11d3e 24721
5062cc19
KS
24722 echo "$as_me:$LINENO: checking for Tk private headers" >&5
24723echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
24724 private_dir=""
24725 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
24726 if test -f ${dir}/tkInt.h; then
24727 private_dir=${dir}
3fc11d3e 24728 fi
bec39cab 24729
5062cc19
KS
24730 if test x"${private_dir}" = x; then
24731 { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
24732echo "$as_me: error: could not find Tk private headers" >&2;}
24733 { (exit 1); exit 1; }; }
3fc11d3e 24734 else
5062cc19
KS
24735 TK_PRIVATE_INCLUDE="-I${private_dir}"
24736 echo "$as_me:$LINENO: result: ${private_dir}" >&5
24737echo "${ECHO_T}${private_dir}" >&6
3fc11d3e 24738 fi
3fc11d3e 24739
5062cc19
KS
24740 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
24741 TK_LIBRARY=${TK_LIB_SPEC}
24742 TK_DEPS=""
24743 else
24744 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
24745 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
24746 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
24747 fi
3fc11d3e
JM
24748
24749
3fc11d3e
JM
24750
24751
3fc11d3e 24752
4226a5a5 24753 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
24754
24755 # Include some libraries that Tcl and Tk want.
5062cc19 24756 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
24757 # Yes, the ordering seems wrong here. But it isn't.
24758 # TK_LIBS is the list of libraries that need to be linked
24759 # after Tcl/Tk. Note that this isn't put into LIBS. If it
24760 # were in LIBS then any link tests after this point would
24761 # try to include things like `$(LIBGUI)', which wouldn't work.
24762 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
24763
24764 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
24765 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
24766 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
24767 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
24768 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
24769 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
24770 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
24771
24772 if test x$gdb_cv_os_cygwin = xyes; then
24773 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
24774 WIN32LDAPP="-Wl,--subsystem,console"
24775 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
24776 fi
24777 fi
24778 fi
ffc6a242 24779
b4e70030
JB
24780
24781
24782subdirs="$subdirs gdbtk"
3ace7edb 24783
3fc11d3e
JM
24784fi
24785
24786
24787
24788
24789
24790
24791
24792
b4e70030
JB
24793echo "$as_me:$LINENO: checking for X" >&5
24794echo $ECHO_N "checking for X... $ECHO_C" >&6
bec39cab 24795
c906108c 24796
b4e70030 24797# Check whether --with-x or --without-x was given.
c906108c 24798if test "${with_x+set}" = set; then
b4e70030 24799 withval="$with_x"
c906108c 24800
b4e70030 24801fi;
c906108c
SS
24802# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24803if test "x$with_x" = xno; then
24804 # The user explicitly disabled X.
24805 have_x=disabled
24806else
24807 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24808 # Both variables are already set.
24809 have_x=yes
24810 else
bec39cab
AC
24811 if test "${ac_cv_have_x+set}" = set; then
24812 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
24813else
24814 # One or both of the vars are not set, and there is no cached value.
bec39cab 24815ac_x_includes=no ac_x_libraries=no
b4e70030 24816rm -fr conftest.dir
bec39cab
AC
24817if mkdir conftest.dir; then
24818 cd conftest.dir
c906108c 24819 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 24820 cat >Imakefile <<'_ACEOF'
c906108c
SS
24821acfindx:
24822 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 24823_ACEOF
b4e70030 24824 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c
SS
24825 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24826 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24827 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24828 for ac_extension in a so sl; do
24829 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
24830 test -f $ac_im_libdir/libX11.$ac_extension; then
24831 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
24832 fi
24833 done
24834 # Screen out bogus values from the imake configuration. They are
24835 # bogus both because they are the default anyway, and because
24836 # using them would break gcc on systems where it needs fixed includes.
bec39cab 24837 case $ac_im_incroot in
b4e70030 24838 /usr/include) ;;
bec39cab 24839 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 24840 esac
bec39cab 24841 case $ac_im_usrlibdir in
c906108c 24842 /usr/lib | /lib) ;;
bec39cab 24843 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
24844 esac
24845 fi
24846 cd ..
b4e70030 24847 rm -fr conftest.dir
c906108c
SS
24848fi
24849
bec39cab
AC
24850# Standard set of common directories for X headers.
24851# Check X11 before X11Rn because it is often a symlink to the current release.
24852ac_x_header_dirs='
24853/usr/X11/include
24854/usr/X11R6/include
24855/usr/X11R5/include
24856/usr/X11R4/include
24857
24858/usr/include/X11
24859/usr/include/X11R6
24860/usr/include/X11R5
24861/usr/include/X11R4
24862
24863/usr/local/X11/include
24864/usr/local/X11R6/include
24865/usr/local/X11R5/include
24866/usr/local/X11R4/include
24867
24868/usr/local/include/X11
24869/usr/local/include/X11R6
24870/usr/local/include/X11R5
24871/usr/local/include/X11R4
24872
24873/usr/X386/include
24874/usr/x386/include
24875/usr/XFree86/include/X11
24876
24877/usr/include
24878/usr/local/include
24879/usr/unsupported/include
24880/usr/athena/include
24881/usr/local/x11r5/include
24882/usr/lpp/Xamples/include
24883
24884/usr/openwin/include
24885/usr/openwin/share/include'
24886
24887if test "$ac_x_includes" = no; then
59f80f10 24888 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 24889 # First, try using that file with no special directory specified.
bec39cab
AC
24890 cat >conftest.$ac_ext <<_ACEOF
24891/* confdefs.h. */
24892_ACEOF
24893cat confdefs.h >>conftest.$ac_ext
24894cat >>conftest.$ac_ext <<_ACEOF
24895/* end confdefs.h. */
59f80f10 24896#include <X11/Intrinsic.h>
bec39cab
AC
24897_ACEOF
24898if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24900 ac_status=$?
24901 grep -v '^ *+' conftest.er1 >conftest.err
24902 rm -f conftest.er1
24903 cat conftest.err >&5
24904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905 (exit $ac_status); } >/dev/null; then
24906 if test -s conftest.err; then
24907 ac_cpp_err=$ac_c_preproc_warn_flag
24908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24909 else
24910 ac_cpp_err=
24911 fi
24912else
24913 ac_cpp_err=yes
24914fi
24915if test -z "$ac_cpp_err"; then
c906108c
SS
24916 # We can compile using X headers with no special include directory.
24917ac_x_includes=
24918else
bec39cab
AC
24919 echo "$as_me: failed program was:" >&5
24920sed 's/^/| /' conftest.$ac_ext >&5
24921
24922 for ac_dir in $ac_x_header_dirs; do
59f80f10 24923 if test -r "$ac_dir/X11/Intrinsic.h"; then
bec39cab
AC
24924 ac_x_includes=$ac_dir
24925 break
24926 fi
24927done
c906108c 24928fi
bec39cab
AC
24929rm -f conftest.err conftest.$ac_ext
24930fi # $ac_x_includes = no
c906108c 24931
bec39cab 24932if test "$ac_x_libraries" = no; then
c906108c 24933 # Check for the libraries.
c906108c
SS
24934 # See if we find them without any special options.
24935 # Don't add to $LIBS permanently.
bec39cab 24936 ac_save_LIBS=$LIBS
4e8d927d 24937 LIBS="-lXt $LIBS"
bec39cab
AC
24938 cat >conftest.$ac_ext <<_ACEOF
24939/* confdefs.h. */
24940_ACEOF
24941cat confdefs.h >>conftest.$ac_ext
24942cat >>conftest.$ac_ext <<_ACEOF
24943/* end confdefs.h. */
59f80f10 24944#include <X11/Intrinsic.h>
bec39cab
AC
24945int
24946main ()
24947{
59f80f10 24948XtMalloc (0)
bec39cab
AC
24949 ;
24950 return 0;
24951}
24952_ACEOF
24953rm -f conftest.$ac_objext conftest$ac_exeext
24954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24955 (eval $ac_link) 2>conftest.er1
24956 ac_status=$?
24957 grep -v '^ *+' conftest.er1 >conftest.err
24958 rm -f conftest.er1
24959 cat conftest.err >&5
24960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); } &&
b4e70030
JB
24962 { ac_try='test -z "$ac_c_werror_flag"
24963 || test ! -s conftest.err'
bec39cab
AC
24964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24965 (eval $ac_try) 2>&5
24966 ac_status=$?
24967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968 (exit $ac_status); }; } &&
24969 { ac_try='test -s conftest$ac_exeext'
24970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24971 (eval $ac_try) 2>&5
24972 ac_status=$?
24973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); }; }; then
24975 LIBS=$ac_save_LIBS
c906108c
SS
24976# We can link X programs with no special library path.
24977ac_x_libraries=
24978else
bec39cab
AC
24979 echo "$as_me: failed program was:" >&5
24980sed 's/^/| /' conftest.$ac_ext >&5
24981
b4e70030 24982LIBS=$ac_save_LIBS
bec39cab 24983for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 24984do
bec39cab 24985 # Don't even attempt the hair of trying to link an X program!
c906108c 24986 for ac_extension in a so sl; do
b4e70030 24987 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
24988 ac_x_libraries=$ac_dir
24989 break 2
24990 fi
24991 done
24992done
24993fi
bec39cab
AC
24994rm -f conftest.err conftest.$ac_objext \
24995 conftest$ac_exeext conftest.$ac_ext
24996fi # $ac_x_libraries = no
c906108c 24997
bec39cab 24998if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
24999 # Didn't find X anywhere. Cache the known absence of X.
25000 ac_cv_have_x="have_x=no"
25001else
25002 # Record where we found X for the cache.
25003 ac_cv_have_x="have_x=yes \
bec39cab 25004 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
25005fi
25006fi
bec39cab 25007
c906108c
SS
25008 fi
25009 eval "$ac_cv_have_x"
25010fi # $with_x != no
25011
25012if test "$have_x" != yes; then
b4e70030
JB
25013 echo "$as_me:$LINENO: result: $have_x" >&5
25014echo "${ECHO_T}$have_x" >&6
c906108c
SS
25015 no_x=yes
25016else
25017 # If each of the values was on the command line, it overrides each guess.
25018 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25019 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25020 # Update the cache value to reflect the command line values.
25021 ac_cv_have_x="have_x=yes \
25022 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
b4e70030
JB
25023 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
25024echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
25025fi
25026
25027
9cc52bde
MK
25028# Check whether we should enable the TUI, but only do so if we really
25029# can.
3ca64bd3 25030if test x"$enable_tui" != xno; then
9cc52bde
MK
25031 if test -d $srcdir/tui; then
25032 if test "$ac_cv_search_waddstr" != no; then
25033 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
25034 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
25035 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9cc52bde
MK
25036 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
25037 CONFIG_ALL="${CONFIG_ALL} all-tui"
25038 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
25039 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
25040 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
25041 else
3ca64bd3
JK
25042 if test x"$enable_tui" = xyes; then
25043 { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
25044echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
25045 { (exit 1); exit 1; }; }
25046 else
25047 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
bec39cab 25048echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
3ca64bd3 25049 fi
9cc52bde
MK
25050 fi
25051 fi
25052fi
25053
bec39cab 25054# Unlike the sim directory, whether a simulator is linked is controlled by
9b624dbe 25055# presence of a gdb_sim definition in the target configure.tgt entry.
7a292a7a
SS
25056# This code just checks for a few cases where we'd like to ignore those
25057# definitions, even when they're present in the '.mt' file. These cases
25058# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 25059# not part of the source tree.
7a292a7a 25060#
b4e70030 25061# Check whether --enable-sim or --disable-sim was given.
7a292a7a 25062if test "${enable_sim+set}" = set; then
b4e70030
JB
25063 enableval="$enable_sim"
25064 echo "enable_sim = $enable_sim";
7a292a7a
SS
25065 echo "enableval = ${enableval}";
25066 case "${enableval}" in
25067 yes) ignore_sim=false ;;
25068 no) ignore_sim=true ;;
25069 *) ignore_sim=false ;;
25070 esac
25071else
25072 ignore_sim=false
b4e70030 25073fi;
7a292a7a
SS
25074
25075if test ! -d "${srcdir}/../sim"; then
25076 ignore_sim=true
25077fi
25078
9b624dbe
UW
25079SIM=
25080SIM_OBS=
25081if test "${ignore_sim}" = "false"; then
25082 if test x"${gdb_sim}" != x ; then
25083 SIM="${gdb_sim}"
25084 SIM_OBS="remote-sim.o"
60ca704f
SE
25085
25086cat >>confdefs.h <<\_ACEOF
7a292a7a 25087#define WITH_SIM 1
bec39cab 25088_ACEOF
7a292a7a 25089
9b624dbe 25090 fi
7a292a7a
SS
25091fi
25092
25093
25094
c906108c
SS
25095
25096
25097
25098
25099
25100
dfcd3bfb 25101
e56ac5c3
AC
25102
25103
b3a90332
AC
25104
25105
c35f4ffc 25106# List of host floatformats.
bec39cab
AC
25107
25108cat >>confdefs.h <<_ACEOF
c35f4ffc 25109#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 25110_ACEOF
c35f4ffc 25111
bec39cab
AC
25112
25113cat >>confdefs.h <<_ACEOF
c35f4ffc 25114#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
25115_ACEOF
25116
c35f4ffc 25117
bec39cab 25118cat >>confdefs.h <<_ACEOF
c35f4ffc 25119#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 25120_ACEOF
c35f4ffc
AC
25121
25122
c906108c
SS
25123# target_subdir is used by the testsuite to find the target libraries.
25124target_subdir=
25125if test "${host}" != "${target}"; then
25126 target_subdir="${target_alias}/"
25127fi
25128
25129
25130frags=
771b4502 25131if test "${gdb_native}" = "yes"; then
0dad8a66
MK
25132 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
25133 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
25134 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
25135echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
25136 { (exit 1); exit 1; }; }
0dad8a66
MK
25137 fi
25138 frags="$frags $host_makefile_frag"
25139else
25140 host_makefile_frag=/dev/null
c906108c 25141fi
c906108c 25142
c906108c
SS
25143
25144
25145
771b4502 25146if test "${gdb_native}" = "yes"; then
a85f51e7
DJ
25147# We pick this up from the host configuration file (.mh) because we
25148# do not have a native configuration Makefile fragment.
c906108c
SS
25149nativefile=`sed -n '
25150s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
25151' ${host_makefile_frag}`
c906108c
SS
25152fi
25153
25154
b00a8037 25155if test x"${gdb_osabi}" != x ; then
bec39cab
AC
25156
25157cat >>confdefs.h <<_ACEOF
b00a8037 25158#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 25159_ACEOF
b00a8037
DJ
25160
25161fi
25162
8dcde887 25163# Enable multi-ice-gdb-server.
b4e70030 25164# Check whether --enable-multi-ice or --disable-multi-ice was given.
8dcde887 25165if test "${enable_multi_ice+set}" = set; then
b4e70030
JB
25166 enableval="$enable_multi_ice"
25167 case $enableval in
8dcde887
MK
25168 yes | no)
25169 ;;
bec39cab
AC
25170 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
25171echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
25172 { (exit 1); exit 1; }; } ;;
8dcde887 25173 esac
b4e70030 25174fi;
4e8d927d 25175if test "x$enable_multi_ice" = xyes; then
b4e70030
JB
25176
25177
25178subdirs="$subdirs multi-ice"
3ace7edb 25179
a85f51e7
DJ
25180fi
25181
a13e2c95
UW
25182# We only build gdbserver automatically in a native configuration.
25183if test "$gdb_native" = "yes"; then
b4e70030
JB
25184 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
25185echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 25186 if test "x$build_gdbserver" = xyes; then
b4e70030
JB
25187 echo "$as_me:$LINENO: result: yes" >&5
25188echo "${ECHO_T}yes" >&6
25189
25190
25191subdirs="$subdirs gdbserver"
3ace7edb 25192
8dcde887 25193 else
b4e70030
JB
25194 echo "$as_me:$LINENO: result: no" >&5
25195echo "${ECHO_T}no" >&6
8dcde887
MK
25196 fi
25197fi
25198
db985757 25199# If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
2c0fc042 25200# to an empty version.
c906108c
SS
25201
25202files=
25203links=
5a2402b8 25204
c906108c 25205rm -f nm.h
5a2402b8 25206nm_h=""
c906108c 25207if test "${nativefile}" != ""; then
5a2402b8 25208 nm_h=nm.h
0f475e27
AC
25209 case "${nativefile}" in
25210 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
25211 * ) GDB_NM_FILE="${nativefile}"
25212 esac
5a2402b8
AC
25213 files="${files} ${GDB_NM_FILE}"
25214 links="${links} nm.h"
60ca704f
SE
25215
25216cat >>confdefs.h <<_ACEOF
b78960be 25217#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 25218_ACEOF
5a2402b8 25219
c906108c 25220fi
5a2402b8
AC
25221
25222
bec39cab
AC
25223ac_sources="$files"
25224ac_dests="$links"
25225while test -n "$ac_sources"; do
25226 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
25227 set $ac_sources; ac_source=$1; shift; ac_sources=$*
25228 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
25229done
b4e70030 25230 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
25231
25232
c906108c
SS
25233
25234
c906108c 25235
c906108c 25236
bec39cab
AC
25237cat >>confdefs.h <<\_ACEOF
25238#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
25239_ACEOF
c906108c 25240
234b45d4 25241
234b45d4
KB
25242
25243
25244
b4e70030 25245# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4 25246if test "${with_libiconv_prefix+set}" = set; then
b4e70030
JB
25247 withval="$with_libiconv_prefix"
25248
234b45d4
KB
25249 for dir in `echo "$withval" | tr : ' '`; do
25250 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
25251 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
25252 done
234b45d4 25253
b4e70030 25254fi;
234b45d4 25255
b4e70030
JB
25256 echo "$as_me:$LINENO: checking for iconv" >&5
25257echo $ECHO_N "checking for iconv... $ECHO_C" >&6
bec39cab
AC
25258if test "${am_cv_func_iconv+set}" = set; then
25259 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 25260else
bec39cab 25261
234b45d4
KB
25262 am_cv_func_iconv="no, consider installing GNU libiconv"
25263 am_cv_lib_iconv=no
bec39cab
AC
25264 cat >conftest.$ac_ext <<_ACEOF
25265/* confdefs.h. */
25266_ACEOF
25267cat confdefs.h >>conftest.$ac_ext
25268cat >>conftest.$ac_ext <<_ACEOF
25269/* end confdefs.h. */
234b45d4
KB
25270#include <stdlib.h>
25271#include <iconv.h>
bec39cab
AC
25272int
25273main ()
25274{
234b45d4
KB
25275iconv_t cd = iconv_open("","");
25276 iconv(cd,NULL,NULL,NULL,NULL);
25277 iconv_close(cd);
bec39cab
AC
25278 ;
25279 return 0;
25280}
25281_ACEOF
25282rm -f conftest.$ac_objext conftest$ac_exeext
25283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25284 (eval $ac_link) 2>conftest.er1
25285 ac_status=$?
25286 grep -v '^ *+' conftest.er1 >conftest.err
25287 rm -f conftest.er1
25288 cat conftest.err >&5
25289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290 (exit $ac_status); } &&
b4e70030
JB
25291 { ac_try='test -z "$ac_c_werror_flag"
25292 || test ! -s conftest.err'
bec39cab
AC
25293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25294 (eval $ac_try) 2>&5
25295 ac_status=$?
25296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297 (exit $ac_status); }; } &&
25298 { ac_try='test -s conftest$ac_exeext'
25299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25300 (eval $ac_try) 2>&5
25301 ac_status=$?
25302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303 (exit $ac_status); }; }; then
234b45d4
KB
25304 am_cv_func_iconv=yes
25305else
bec39cab
AC
25306 echo "$as_me: failed program was:" >&5
25307sed 's/^/| /' conftest.$ac_ext >&5
25308
234b45d4 25309fi
bec39cab
AC
25310rm -f conftest.err conftest.$ac_objext \
25311 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
25312 if test "$am_cv_func_iconv" != yes; then
25313 am_save_LIBS="$LIBS"
25314 LIBS="$LIBS -liconv"
bec39cab
AC
25315 cat >conftest.$ac_ext <<_ACEOF
25316/* confdefs.h. */
25317_ACEOF
25318cat confdefs.h >>conftest.$ac_ext
25319cat >>conftest.$ac_ext <<_ACEOF
25320/* end confdefs.h. */
234b45d4
KB
25321#include <stdlib.h>
25322#include <iconv.h>
bec39cab
AC
25323int
25324main ()
25325{
234b45d4
KB
25326iconv_t cd = iconv_open("","");
25327 iconv(cd,NULL,NULL,NULL,NULL);
25328 iconv_close(cd);
bec39cab
AC
25329 ;
25330 return 0;
25331}
25332_ACEOF
25333rm -f conftest.$ac_objext conftest$ac_exeext
25334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25335 (eval $ac_link) 2>conftest.er1
25336 ac_status=$?
25337 grep -v '^ *+' conftest.er1 >conftest.err
25338 rm -f conftest.er1
25339 cat conftest.err >&5
25340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341 (exit $ac_status); } &&
b4e70030
JB
25342 { ac_try='test -z "$ac_c_werror_flag"
25343 || test ! -s conftest.err'
bec39cab
AC
25344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25345 (eval $ac_try) 2>&5
25346 ac_status=$?
25347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); }; } &&
25349 { ac_try='test -s conftest$ac_exeext'
25350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25351 (eval $ac_try) 2>&5
25352 ac_status=$?
25353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354 (exit $ac_status); }; }; then
234b45d4
KB
25355 am_cv_lib_iconv=yes
25356 am_cv_func_iconv=yes
25357else
bec39cab
AC
25358 echo "$as_me: failed program was:" >&5
25359sed 's/^/| /' conftest.$ac_ext >&5
25360
234b45d4 25361fi
bec39cab
AC
25362rm -f conftest.err conftest.$ac_objext \
25363 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
25364 LIBS="$am_save_LIBS"
25365 fi
bec39cab
AC
25366
25367fi
b4e70030
JB
25368echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25369echo "${ECHO_T}$am_cv_func_iconv" >&6
bec39cab
AC
25370 if test "$am_cv_func_iconv" = yes; then
25371
25372cat >>confdefs.h <<\_ACEOF
25373#define HAVE_ICONV 1
25374_ACEOF
25375
b4e70030
JB
25376 echo "$as_me:$LINENO: checking for iconv declaration" >&5
25377echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
bec39cab
AC
25378 if test "${am_cv_proto_iconv+set}" = set; then
25379 echo $ECHO_N "(cached) $ECHO_C" >&6
25380else
25381
25382 cat >conftest.$ac_ext <<_ACEOF
25383/* confdefs.h. */
25384_ACEOF
25385cat confdefs.h >>conftest.$ac_ext
25386cat >>conftest.$ac_ext <<_ACEOF
25387/* end confdefs.h. */
25388
25389#include <stdlib.h>
25390#include <iconv.h>
25391extern
25392#ifdef __cplusplus
25393"C"
25394#endif
25395#if defined(__STDC__) || defined(__cplusplus)
25396size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25397#else
25398size_t iconv();
25399#endif
25400
25401int
25402main ()
25403{
25404
25405 ;
25406 return 0;
25407}
25408_ACEOF
25409rm -f conftest.$ac_objext
25410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25411 (eval $ac_compile) 2>conftest.er1
25412 ac_status=$?
25413 grep -v '^ *+' conftest.er1 >conftest.err
25414 rm -f conftest.er1
25415 cat conftest.err >&5
25416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417 (exit $ac_status); } &&
b4e70030
JB
25418 { ac_try='test -z "$ac_c_werror_flag"
25419 || test ! -s conftest.err'
bec39cab
AC
25420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25421 (eval $ac_try) 2>&5
25422 ac_status=$?
25423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424 (exit $ac_status); }; } &&
25425 { ac_try='test -s conftest.$ac_objext'
25426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25427 (eval $ac_try) 2>&5
25428 ac_status=$?
25429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25430 (exit $ac_status); }; }; then
25431 am_cv_proto_iconv_arg1=""
25432else
25433 echo "$as_me: failed program was:" >&5
25434sed 's/^/| /' conftest.$ac_ext >&5
25435
b4e70030 25436am_cv_proto_iconv_arg1="const"
bec39cab
AC
25437fi
25438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25439 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);"
25440fi
25441
25442 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b4e70030 25443 echo "$as_me:$LINENO: result: ${ac_t:-
bec39cab
AC
25444 }$am_cv_proto_iconv" >&5
25445echo "${ECHO_T}${ac_t:-
b4e70030 25446 }$am_cv_proto_iconv" >&6
bec39cab
AC
25447
25448cat >>confdefs.h <<_ACEOF
25449#define ICONV_CONST $am_cv_proto_iconv_arg1
25450_ACEOF
25451
25452 fi
25453 LIBICONV=
25454 if test "$am_cv_lib_iconv" = yes; then
25455 LIBICONV="-liconv"
25456 fi
25457
25458
25459
e28b3332 25460 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
b4e70030 25461 ac_config_commands="$ac_config_commands default"
bec39cab
AC
25462cat >confcache <<\_ACEOF
25463# This file is a shell script that caches the results of configure
25464# tests run on this system so they can be shared between configure
25465# scripts and configure runs, see configure's option --config-cache.
25466# It is not useful on other systems. If it contains results you don't
25467# want to keep, you may remove or edit it.
25468#
25469# config.status only pays attention to the cache file if you give it
25470# the --recheck option to rerun configure.
25471#
25472# `ac_cv_env_foo' variables (set or unset) will be overridden when
25473# loading this file, other *unset* `ac_cv_foo' will be assigned the
25474# following values.
25475
25476_ACEOF
25477
25478# The following way of writing the cache mishandles newlines in values,
25479# but we know of no workaround that is simple, portable, and efficient.
b4e70030 25480# So, don't put newlines in cache variables' values.
bec39cab
AC
25481# Ultrix sh set writes to stderr and can't be redirected directly,
25482# and sets the high bit in the cache file unless we assign to the vars.
b4e70030 25483{
bec39cab 25484 (set) 2>&1 |
b4e70030
JB
25485 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25486 *ac_space=\ *)
bec39cab
AC
25487 # `set' does not quote correctly, so add quotes (double-quote
25488 # substitution turns \\\\ into \\, and sed turns \\ into \).
25489 sed -n \
25490 "s/'/'\\\\''/g;
25491 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b4e70030 25492 ;;
bec39cab
AC
25493 *)
25494 # `set' quotes correctly as required by POSIX, so do not add quotes.
b4e70030
JB
25495 sed -n \
25496 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 25497 ;;
b4e70030
JB
25498 esac;
25499} |
bec39cab
AC
25500 sed '
25501 t clear
b4e70030 25502 : clear
bec39cab
AC
25503 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25504 t end
b4e70030
JB
25505 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25506 : end' >>confcache
bec39cab
AC
25507if diff $cache_file confcache >/dev/null 2>&1; then :; else
25508 if test -w $cache_file; then
b4e70030 25509 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
bec39cab
AC
25510 cat confcache >$cache_file
25511 else
b4e70030 25512 echo "not updating unwritable cache $cache_file"
bec39cab
AC
25513 fi
25514fi
25515rm -f confcache
25516
25517test "x$prefix" = xNONE && prefix=$ac_default_prefix
25518# Let make expand exec_prefix.
25519test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25520
b4e70030
JB
25521# VPATH may cause trouble with some makes, so we remove $(srcdir),
25522# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25523# trailing colons and then remove the whole line if VPATH becomes empty
25524# (actually we leave an empty line to preserve line numbers).
25525if test "x$srcdir" = x.; then
25526 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25527s/:*\$(srcdir):*/:/;
25528s/:*\${srcdir}:*/:/;
25529s/:*@srcdir@:*/:/;
25530s/^\([^=]*=[ ]*\):*/\1/;
25531s/:*$//;
25532s/^[^=]*=[ ]*$//;
25533}'
25534fi
25535
bec39cab
AC
25536DEFS=-DHAVE_CONFIG_H
25537
25538ac_libobjs=
25539ac_ltlibobjs=
25540for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25541 # 1. Remove the extension, and $U if already installed.
b4e70030
JB
25542 ac_i=`echo "$ac_i" |
25543 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25544 # 2. Add them.
25545 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25546 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
bec39cab
AC
25547done
25548LIBOBJS=$ac_libobjs
25549
25550LTLIBOBJS=$ac_ltlibobjs
25551
25552
85981d60
AC
25553if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25554 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25555Usually this means the macro was only invoked conditionally." >&5
25556echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25557Usually this means the macro was only invoked conditionally." >&2;}
25558 { (exit 1); exit 1; }; }
25559fi
783e057b
DJ
25560if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
25561 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
25562Usually this means the macro was only invoked conditionally." >&5
25563echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
25564Usually this means the macro was only invoked conditionally." >&2;}
25565 { (exit 1); exit 1; }; }
25566fi
25567
25568 gl_libobjs=
25569 gl_ltlibobjs=
25570 if test -n "$gl_LIBOBJS"; then
25571 # Remove the extension.
25572 sed_drop_objext='s/\.o$//;s/\.obj$//'
25573 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
25574 gl_libobjs="$gl_libobjs $i.$ac_objext"
25575 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
25576 done
25577 fi
25578 gl_LIBOBJS=$gl_libobjs
25579
25580 gl_LTLIBOBJS=$gl_ltlibobjs
25581
25582
25583
25584 gltests_libobjs=
25585 gltests_ltlibobjs=
25586 if test -n "$gltests_LIBOBJS"; then
25587 # Remove the extension.
25588 sed_drop_objext='s/\.o$//;s/\.obj$//'
25589 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
25590 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
25591 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
25592 done
25593 fi
25594 gltests_LIBOBJS=$gltests_libobjs
25595
25596 gltests_LTLIBOBJS=$gltests_ltlibobjs
25597
25598
e28b3332
DJ
25599if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25600 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25601Usually this means the macro was only invoked conditionally." >&5
25602echo "$as_me: error: conditional \"AMDEP\" was never defined.
25603Usually this means the macro was only invoked conditionally." >&2;}
25604 { (exit 1); exit 1; }; }
25605fi
25606if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25607 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25608Usually this means the macro was only invoked conditionally." >&5
25609echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25610Usually this means the macro was only invoked conditionally." >&2;}
25611 { (exit 1); exit 1; }; }
25612fi
bec39cab
AC
25613
25614: ${CONFIG_STATUS=./config.status}
25615ac_clean_files_save=$ac_clean_files
25616ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25617{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25618echo "$as_me: creating $CONFIG_STATUS" >&6;}
25619cat >$CONFIG_STATUS <<_ACEOF
25620#! $SHELL
25621# Generated by $as_me.
25622# Run this file to recreate the current configuration.
25623# Compiler output produced by configure, useful for debugging
25624# configure, is in config.log if it exists.
25625
25626debug=false
25627ac_cs_recheck=false
25628ac_cs_silent=false
25629SHELL=\${CONFIG_SHELL-$SHELL}
25630_ACEOF
25631
25632cat >>$CONFIG_STATUS <<\_ACEOF
25633## --------------------- ##
25634## M4sh Initialization. ##
25635## --------------------- ##
25636
25637# Be Bourne compatible
25638if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25639 emulate sh
25640 NULLCMD=:
25641 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25642 # is contrary to our usage. Disable this feature.
25643 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
25644elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25645 set -o posix
bec39cab
AC
25646fi
25647DUALCASE=1; export DUALCASE # for MKS sh
25648
25649# Support unset when possible.
25650if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25651 as_unset=unset
25652else
25653 as_unset=false
25654fi
25655
25656
25657# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 25658$as_unset ENV MAIL MAILPATH
bec39cab
AC
25659PS1='$ '
25660PS2='> '
25661PS4='+ '
25662
25663# NLS nuisances.
25664for as_var in \
25665 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25666 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25667 LC_TELEPHONE LC_TIME
25668do
25669 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25670 eval $as_var=C; export $as_var
25671 else
b4e70030 25672 $as_unset $as_var
bec39cab
AC
25673 fi
25674done
25675
25676# Required to use basename.
b4e70030 25677if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
25678 as_expr=expr
25679else
25680 as_expr=false
25681fi
25682
b4e70030 25683if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
25684 as_basename=basename
25685else
25686 as_basename=false
25687fi
25688
25689
25690# Name of the executable.
b4e70030 25691as_me=`$as_basename "$0" ||
bec39cab
AC
25692$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25693 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
25694 X"$0" : 'X\(/\)$' \| \
25695 . : '\(.\)' 2>/dev/null ||
bec39cab 25696echo X/"$0" |
b4e70030
JB
25697 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25698 /^X\/\(\/\/\)$/{ s//\1/; q; }
25699 /^X\/\(\/\).*/{ s//\1/; q; }
25700 s/.*/./; q'`
bec39cab 25701
b4e70030
JB
25702
25703# PATH needs CR, and LINENO needs CR and PATH.
25704# Avoid depending upon Character Ranges.
25705as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25706as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25707as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25708as_cr_digits='0123456789'
25709as_cr_alnum=$as_cr_Letters$as_cr_digits
25710
25711# The user is always right.
25712if test "${PATH_SEPARATOR+set}" != set; then
25713 echo "#! /bin/sh" >conf$$.sh
25714 echo "exit 0" >>conf$$.sh
25715 chmod +x conf$$.sh
25716 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25717 PATH_SEPARATOR=';'
25718 else
25719 PATH_SEPARATOR=:
25720 fi
25721 rm -f conf$$.sh
25722fi
bec39cab
AC
25723
25724
b4e70030
JB
25725 as_lineno_1=$LINENO
25726 as_lineno_2=$LINENO
25727 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25728 test "x$as_lineno_1" != "x$as_lineno_2" &&
25729 test "x$as_lineno_3" = "x$as_lineno_2" || {
25730 # Find who we are. Look in the path if we contain no path at all
25731 # relative or not.
25732 case $0 in
25733 *[\\/]* ) as_myself=$0 ;;
25734 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25735for as_dir in $PATH
25736do
25737 IFS=$as_save_IFS
25738 test -z "$as_dir" && as_dir=.
25739 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25740done
bec39cab 25741
b4e70030
JB
25742 ;;
25743 esac
25744 # We did not find ourselves, most probably we were run as `sh COMMAND'
25745 # in which case we are not to be found in the path.
25746 if test "x$as_myself" = x; then
25747 as_myself=$0
25748 fi
25749 if test ! -f "$as_myself"; then
25750 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25751echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25752 { (exit 1); exit 1; }; }
25753 fi
25754 case $CONFIG_SHELL in
25755 '')
25756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25757for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25758do
25759 IFS=$as_save_IFS
25760 test -z "$as_dir" && as_dir=.
25761 for as_base in sh bash ksh sh5; do
25762 case $as_dir in
25763 /*)
25764 if ("$as_dir/$as_base" -c '
bec39cab
AC
25765 as_lineno_1=$LINENO
25766 as_lineno_2=$LINENO
b4e70030 25767 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
bec39cab 25768 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
25769 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25770 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25771 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25772 CONFIG_SHELL=$as_dir/$as_base
25773 export CONFIG_SHELL
25774 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25775 fi;;
25776 esac
25777 done
25778done
25779;;
25780 esac
bec39cab
AC
25781
25782 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25783 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
25784 # line-number line before each line; the second 'sed' does the real
25785 # work. The second script uses 'N' to pair each line-number line
25786 # with the numbered line, and appends trailing '-' during
25787 # substitution so that $LINENO is not a special case at line end.
bec39cab 25788 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
25789 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25790 sed '=' <$as_myself |
bec39cab
AC
25791 sed '
25792 N
b4e70030
JB
25793 s,$,-,
25794 : loop
25795 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 25796 t loop
b4e70030
JB
25797 s,-$,,
25798 s,^['$as_cr_digits']*\n,,
bec39cab 25799 ' >$as_me.lineno &&
b4e70030
JB
25800 chmod +x $as_me.lineno ||
25801 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25802echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
bec39cab
AC
25803 { (exit 1); exit 1; }; }
25804
25805 # Don't try to exec as it changes $[0], causing all sort of problems
25806 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
25807 # original and so on. Autoconf is especially sensible to this).
25808 . ./$as_me.lineno
bec39cab
AC
25809 # Exit status is that of the last command.
25810 exit
25811}
25812
25813
b4e70030
JB
25814case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25815 *c*,-n*) ECHO_N= ECHO_C='
25816' ECHO_T=' ' ;;
25817 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25818 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
25819esac
25820
b4e70030 25821if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
25822 as_expr=expr
25823else
25824 as_expr=false
25825fi
25826
25827rm -f conf$$ conf$$.exe conf$$.file
25828echo >conf$$.file
25829if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
25830 # We could just check for DJGPP; but this test a) works b) is more generic
25831 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25832 if test -f conf$$.exe; then
25833 # Don't use ln at all; we don't have any links
bec39cab 25834 as_ln_s='cp -p'
b4e70030
JB
25835 else
25836 as_ln_s='ln -s'
25837 fi
bec39cab
AC
25838elif ln conf$$.file conf$$ 2>/dev/null; then
25839 as_ln_s=ln
25840else
25841 as_ln_s='cp -p'
25842fi
b4e70030 25843rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
25844
25845if mkdir -p . 2>/dev/null; then
25846 as_mkdir_p=:
25847else
25848 test -d ./-p && rmdir ./-p
25849 as_mkdir_p=false
25850fi
25851
b4e70030 25852as_executable_p="test -f"
bec39cab
AC
25853
25854# Sed expression to map a string onto a valid CPP name.
25855as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25856
25857# Sed expression to map a string onto a valid variable name.
25858as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25859
25860
b4e70030
JB
25861# IFS
25862# We need space, tab and new line, in precisely that order.
25863as_nl='
25864'
25865IFS=" $as_nl"
25866
25867# CDPATH.
25868$as_unset CDPATH
25869
bec39cab
AC
25870exec 6>&1
25871
b4e70030 25872# Open the log real soon, to keep \$[0] and so on meaningful, and to
bec39cab 25873# report actual input values of CONFIG_FILES etc. instead of their
b4e70030
JB
25874# values after options handling. Logging --version etc. is OK.
25875exec 5>>config.log
25876{
25877 echo
25878 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25879## Running $as_me. ##
25880_ASBOX
25881} >&5
25882cat >&5 <<_CSEOF
25883
bec39cab 25884This file was extended by $as_me, which was
b4e70030 25885generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
25886
25887 CONFIG_FILES = $CONFIG_FILES
25888 CONFIG_HEADERS = $CONFIG_HEADERS
25889 CONFIG_LINKS = $CONFIG_LINKS
25890 CONFIG_COMMANDS = $CONFIG_COMMANDS
25891 $ $0 $@
25892
b4e70030
JB
25893_CSEOF
25894echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25895echo >&5
bec39cab
AC
25896_ACEOF
25897
25898# Files that config.status was made for.
b4e70030
JB
25899if test -n "$ac_config_files"; then
25900 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25901fi
234b45d4 25902
b4e70030
JB
25903if test -n "$ac_config_headers"; then
25904 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25905fi
25906
25907if test -n "$ac_config_links"; then
25908 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25909fi
25910
25911if test -n "$ac_config_commands"; then
25912 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25913fi
234b45d4 25914
bec39cab 25915cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030 25916
bec39cab
AC
25917ac_cs_usage="\
25918\`$as_me' instantiates files from templates according to the
25919current configuration.
234b45d4 25920
bec39cab 25921Usage: $0 [OPTIONS] [FILE]...
234b45d4 25922
bec39cab
AC
25923 -h, --help print this help, then exit
25924 -V, --version print version number, then exit
25925 -q, --quiet do not print progress messages
25926 -d, --debug don't remove temporary files
25927 --recheck update $as_me by reconfiguring in the same conditions
25928 --file=FILE[:TEMPLATE]
25929 instantiate the configuration file FILE
25930 --header=FILE[:TEMPLATE]
25931 instantiate the configuration header FILE
234b45d4 25932
bec39cab
AC
25933Configuration files:
25934$config_files
234b45d4 25935
bec39cab
AC
25936Configuration headers:
25937$config_headers
234b45d4 25938
bec39cab
AC
25939Configuration links:
25940$config_links
234b45d4 25941
bec39cab
AC
25942Configuration commands:
25943$config_commands
25944
25945Report bugs to <bug-autoconf@gnu.org>."
4e8d927d 25946_ACEOF
b4e70030 25947
bec39cab
AC
25948cat >>$CONFIG_STATUS <<_ACEOF
25949ac_cs_version="\\
25950config.status
b4e70030 25951configured by $0, generated by GNU Autoconf 2.59,
bec39cab
AC
25952 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25953
b4e70030 25954Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
25955This config.status script is free software; the Free Software Foundation
25956gives unlimited permission to copy, distribute and modify it."
b4e70030
JB
25957srcdir=$srcdir
25958INSTALL="$INSTALL"
bec39cab
AC
25959_ACEOF
25960
25961cat >>$CONFIG_STATUS <<\_ACEOF
25962# If no file are specified by the user, then we need to provide default
25963# value. By we need to know if files were specified by the user.
25964ac_need_defaults=:
25965while test $# != 0
25966do
25967 case $1 in
25968 --*=*)
b4e70030
JB
25969 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25970 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
bec39cab 25971 ac_shift=:
c906108c 25972 ;;
b4e70030 25973 -*)
bec39cab
AC
25974 ac_option=$1
25975 ac_optarg=$2
25976 ac_shift=shift
c906108c 25977 ;;
b4e70030
JB
25978 *) # This is not an option, so the user has probably given explicit
25979 # arguments.
25980 ac_option=$1
25981 ac_need_defaults=false;;
bec39cab 25982 esac
c906108c 25983
bec39cab
AC
25984 case $ac_option in
25985 # Handling of the options.
b4e70030
JB
25986_ACEOF
25987cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
25988 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25989 ac_cs_recheck=: ;;
b4e70030
JB
25990 --version | --vers* | -V )
25991 echo "$ac_cs_version"; exit 0 ;;
25992 --he | --h)
25993 # Conflict between --help and --header
25994 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25995Try \`$0 --help' for more information." >&5
25996echo "$as_me: error: ambiguous option: $1
25997Try \`$0 --help' for more information." >&2;}
25998 { (exit 1); exit 1; }; };;
25999 --help | --hel | -h )
26000 echo "$ac_cs_usage"; exit 0 ;;
26001 --debug | --d* | -d )
bec39cab
AC
26002 debug=: ;;
26003 --file | --fil | --fi | --f )
26004 $ac_shift
26005 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26006 ac_need_defaults=false;;
26007 --header | --heade | --head | --hea )
26008 $ac_shift
26009 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26010 ac_need_defaults=false;;
26011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26012 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26013 ac_cs_silent=: ;;
c906108c 26014
bec39cab 26015 # This is an error.
b4e70030
JB
26016 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26017Try \`$0 --help' for more information." >&5
26018echo "$as_me: error: unrecognized option: $1
26019Try \`$0 --help' for more information." >&2;}
bec39cab 26020 { (exit 1); exit 1; }; } ;;
c906108c 26021
b4e70030 26022 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 26023
bec39cab
AC
26024 esac
26025 shift
26026done
c906108c 26027
bec39cab 26028ac_configure_extra_args=
c906108c 26029
bec39cab
AC
26030if $ac_cs_silent; then
26031 exec 6>/dev/null
26032 ac_configure_extra_args="$ac_configure_extra_args --silent"
26033fi
c906108c 26034
bec39cab
AC
26035_ACEOF
26036cat >>$CONFIG_STATUS <<_ACEOF
26037if \$ac_cs_recheck; then
b4e70030
JB
26038 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26039 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab
AC
26040fi
26041
26042_ACEOF
26043
26044cat >>$CONFIG_STATUS <<_ACEOF
c906108c 26045#
b4e70030 26046# INIT-COMMANDS section.
c906108c 26047#
c906108c 26048
e28b3332 26049AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
b4e70030 26050
bec39cab 26051gdb_host_cpu=$gdb_host_cpu
bec39cab
AC
26052nativefile=$nativefile
26053
26054
26055_ACEOF
26056
4e8d927d 26057
b4e70030
JB
26058
26059cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 26060for ac_config_target in $ac_config_targets
c906108c 26061do
b4e70030
JB
26062 case "$ac_config_target" in
26063 # Handling of arguments.
26064 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26065 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
e28b3332 26066 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
b4e70030 26067 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
e28b3332 26068 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
b4e70030
JB
26069 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26070 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
bec39cab
AC
26071 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26072echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26073 { (exit 1); exit 1; }; };;
c906108c
SS
26074 esac
26075done
26076
bec39cab
AC
26077# If the user did not use the arguments to specify the items to instantiate,
26078# then the envvar interface is used. Set only those that are not.
26079# We use the long form for the default assignment because of an extremely
26080# bizarre bug on SunOS 4.1.3.
26081if $ac_need_defaults; then
26082 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26083 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26084 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26085 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26086fi
26087
b4e70030
JB
26088# Have a temporary directory for convenience. Make it in the build tree
26089# simply because there is no reason to put it here, and in addition,
26090# creating and moving files from /tmp can sometimes cause problems.
26091# Create a temporary directory, and hook for its removal unless debugging.
26092$debug ||
26093{
26094 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26095 trap '{ (exit 1); exit 1; }' 1 2 13 15
26096}
4e8d927d 26097
b4e70030 26098# Create a (secure) tmp directory for tmp files.
4e8d927d 26099
b4e70030
JB
26100{
26101 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26102 test -n "$tmp" && test -d "$tmp"
26103} ||
26104{
26105 tmp=./confstat$$-$RANDOM
26106 (umask 077 && mkdir $tmp)
26107} ||
26108{
26109 echo "$me: cannot create a temporary directory in ." >&2
26110 { (exit 1); exit 1; }
26111}
4e8d927d 26112
b4e70030 26113_ACEOF
4e8d927d 26114
b4e70030 26115cat >>$CONFIG_STATUS <<_ACEOF
4e8d927d 26116
b4e70030
JB
26117#
26118# CONFIG_FILES section.
26119#
4e8d927d 26120
b4e70030
JB
26121# No need to generate the scripts if there are no CONFIG_FILES.
26122# This happens for instance when ./config.status config.h
26123if test -n "\$CONFIG_FILES"; then
26124 # Protect against being on the right side of a sed subst in config.status.
26125 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26126 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26127s,@SHELL@,$SHELL,;t t
26128s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26129s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26130s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26131s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26132s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26133s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26134s,@exec_prefix@,$exec_prefix,;t t
26135s,@prefix@,$prefix,;t t
26136s,@program_transform_name@,$program_transform_name,;t t
26137s,@bindir@,$bindir,;t t
26138s,@sbindir@,$sbindir,;t t
26139s,@libexecdir@,$libexecdir,;t t
26140s,@datadir@,$datadir,;t t
26141s,@sysconfdir@,$sysconfdir,;t t
26142s,@sharedstatedir@,$sharedstatedir,;t t
26143s,@localstatedir@,$localstatedir,;t t
26144s,@libdir@,$libdir,;t t
26145s,@includedir@,$includedir,;t t
26146s,@oldincludedir@,$oldincludedir,;t t
26147s,@infodir@,$infodir,;t t
26148s,@mandir@,$mandir,;t t
26149s,@build_alias@,$build_alias,;t t
26150s,@host_alias@,$host_alias,;t t
26151s,@target_alias@,$target_alias,;t t
26152s,@DEFS@,$DEFS,;t t
26153s,@ECHO_C@,$ECHO_C,;t t
26154s,@ECHO_N@,$ECHO_N,;t t
26155s,@ECHO_T@,$ECHO_T,;t t
26156s,@LIBS@,$LIBS,;t t
26157s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26158s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26159s,@MAINT@,$MAINT,;t t
26160s,@CC@,$CC,;t t
26161s,@CFLAGS@,$CFLAGS,;t t
26162s,@LDFLAGS@,$LDFLAGS,;t t
26163s,@CPPFLAGS@,$CPPFLAGS,;t t
26164s,@ac_ct_CC@,$ac_ct_CC,;t t
26165s,@EXEEXT@,$EXEEXT,;t t
26166s,@OBJEXT@,$OBJEXT,;t t
26167s,@CPP@,$CPP,;t t
26168s,@EGREP@,$EGREP,;t t
783e057b
DJ
26169s,@RANLIB@,$RANLIB,;t t
26170s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
b4e70030
JB
26171s,@build@,$build,;t t
26172s,@build_cpu@,$build_cpu,;t t
26173s,@build_vendor@,$build_vendor,;t t
26174s,@build_os@,$build_os,;t t
26175s,@host@,$host,;t t
26176s,@host_cpu@,$host_cpu,;t t
26177s,@host_vendor@,$host_vendor,;t t
26178s,@host_os@,$host_os,;t t
26179s,@target@,$target,;t t
26180s,@target_cpu@,$target_cpu,;t t
26181s,@target_vendor@,$target_vendor,;t t
26182s,@target_os@,$target_os,;t t
b4e70030 26183s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
26184s,@LIBINTL@,$LIBINTL,;t t
26185s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
26186s,@INCINTL@,$INCINTL,;t t
b4e70030 26187s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
26188s,@GMSGFMT@,$GMSGFMT,;t t
26189s,@POSUB@,$POSUB,;t t
b4e70030 26190s,@CATALOGS@,$CATALOGS,;t t
b4e70030 26191s,@DATADIRNAME@,$DATADIRNAME,;t t
b4e70030 26192s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
26193s,@GENCAT@,$GENCAT,;t t
26194s,@CATOBJEXT@,$CATOBJEXT,;t t
b4e70030 26195s,@localedir@,$localedir,;t t
783e057b
DJ
26196s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
26197s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
26198s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
26199s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
26200s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
26201s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
26202s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
26203s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
26204s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
26205s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
26206s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
26207s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
26208s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
26209s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
26210s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
26211s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
26212s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
26213s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
26214s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
26215s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
26216s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
26217s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
26218s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
26219s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
26220s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
26221s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
26222s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
26223s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
26224s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
26225s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
26226s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
26227s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
26228s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
26229s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
26230s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
26231s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
26232s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
26233s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
26234s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
26235s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
26236s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
26237s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
26238s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
26239s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
26240s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
26241s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
26242s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
26243s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
26244s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
26245s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
26246s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
26247s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
26248s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
26249s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
26250s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
26251s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
26252s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
26253s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
26254s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
26255s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
26256s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
26257s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
26258s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
26259s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
26260s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
26261s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
26262s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
26263s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
26264s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
26265s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
26266s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
26267s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
26268s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
26269s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
26270s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
26271s,@STDINT_H@,$STDINT_H,;t t
26272s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
26273s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
26274s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
26275s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
26276s,@WCHAR_H@,$WCHAR_H,;t t
26277s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
26278s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
26279s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
26280s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
d5af19ba 26281s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
b4e70030 26282s,@PACKAGE@,$PACKAGE,;t t
b4e70030
JB
26283s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26284s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26285s,@INSTALL_DATA@,$INSTALL_DATA,;t t
e28b3332
DJ
26286s,@CYGPATH_W@,$CYGPATH_W,;t t
26287s,@VERSION@,$VERSION,;t t
26288s,@ACLOCAL@,$ACLOCAL,;t t
26289s,@AUTOCONF@,$AUTOCONF,;t t
26290s,@AUTOMAKE@,$AUTOMAKE,;t t
26291s,@AUTOHEADER@,$AUTOHEADER,;t t
26292s,@MAKEINFO@,$MAKEINFO,;t t
26293s,@install_sh@,$install_sh,;t t
26294s,@STRIP@,$STRIP,;t t
26295s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26296s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26297s,@mkdir_p@,$mkdir_p,;t t
26298s,@AWK@,$AWK,;t t
26299s,@SET_MAKE@,$SET_MAKE,;t t
26300s,@am__leading_dot@,$am__leading_dot,;t t
26301s,@AMTAR@,$AMTAR,;t t
26302s,@am__tar@,$am__tar,;t t
26303s,@am__untar@,$am__untar,;t t
26304s,@DEPDIR@,$DEPDIR,;t t
26305s,@am__include@,$am__include,;t t
26306s,@am__quote@,$am__quote,;t t
26307s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26308s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26309s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26310s,@CCDEPMODE@,$CCDEPMODE,;t t
26311s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26312s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26313s,@subdirs@,$subdirs,;t t
26314s,@TARGET_OBS@,$TARGET_OBS,;t t
c16158bc
JM
26315s,@PKGVERSION@,$PKGVERSION,;t t
26316s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
26317s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
b4e70030
JB
26318s,@LN_S@,$LN_S,;t t
26319s,@YACC@,$YACC,;t t
26320s,@AR@,$AR,;t t
26321s,@ac_ct_AR@,$ac_ct_AR,;t t
26322s,@DLLTOOL@,$DLLTOOL,;t t
26323s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
26324s,@WINDRES@,$WINDRES,;t t
26325s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
26326s,@MIG@,$MIG,;t t
26327s,@ac_ct_MIG@,$ac_ct_MIG,;t t
6a30b0a5
AS
26328s,@READLINE@,$READLINE,;t t
26329s,@READLINE_DEPS@,$READLINE_DEPS,;t t
26330s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
3841debe
DJ
26331s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
26332s,@LIBEXPAT@,$LIBEXPAT,;t t
26333s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
20e95c23 26334s,@ALLOCA@,$ALLOCA,;t t
b4e70030
JB
26335s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
26336s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
26337s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
26338s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
26339s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
26340s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
26341s,@WIN32LIBS@,$WIN32LIBS,;t t
26342s,@LIBGUI@,$LIBGUI,;t t
26343s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
26344s,@WIN32LDAPP@,$WIN32LDAPP,;t t
26345s,@TCL_VERSION@,$TCL_VERSION,;t t
5062cc19
KS
26346s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
26347s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
26348s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
26349s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
26350s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
b4e70030 26351s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
5062cc19
KS
26352s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
26353s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
26354s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
26355s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
26356s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
26357s,@TCL_DEPS@,$TCL_DEPS,;t t
b4e70030 26358s,@TK_VERSION@,$TK_VERSION,;t t
5062cc19
KS
26359s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
26360s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
26361s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
26362s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
b4e70030 26363s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
5062cc19
KS
26364s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
26365s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
26366s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
26367s,@TK_INCLUDE@,$TK_INCLUDE,;t t
26368s,@TK_LIBRARY@,$TK_LIBRARY,;t t
26369s,@TK_DEPS@,$TK_DEPS,;t t
26370s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
b4e70030
JB
26371s,@X_CFLAGS@,$X_CFLAGS,;t t
26372s,@X_LDFLAGS@,$X_LDFLAGS,;t t
26373s,@X_LIBS@,$X_LIBS,;t t
b4e70030
JB
26374s,@GDBTKLIBS@,$GDBTKLIBS,;t t
26375s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
26376s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
9b624dbe
UW
26377s,@SIM@,$SIM,;t t
26378s,@SIM_OBS@,$SIM_OBS,;t t
b4e70030
JB
26379s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
26380s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
26381s,@CONFIG_OBS@,$CONFIG_OBS,;t t
26382s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
26383s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
26384s,@CONFIG_ALL@,$CONFIG_ALL,;t t
26385s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
26386s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
26387s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
26388s,@target_subdir@,$target_subdir,;t t
26389s,@frags@,$frags,;t t
b4e70030
JB
26390s,@nm_h@,$nm_h,;t t
26391s,@LIBICONV@,$LIBICONV,;t t
26392s,@LIBOBJS@,$LIBOBJS,;t t
26393s,@LTLIBOBJS@,$LTLIBOBJS,;t t
783e057b
DJ
26394s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
26395s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
26396s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
26397s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
b4e70030
JB
26398/@host_makefile_frag@/r $host_makefile_frag
26399s,@host_makefile_frag@,,;t t
b4e70030
JB
26400CEOF
26401
26402_ACEOF
26403
26404 cat >>$CONFIG_STATUS <<\_ACEOF
26405 # Split the substitutions into bite-sized pieces for seds with
26406 # small command number limits, like on Digital OSF/1 and HP-UX.
26407 ac_max_sed_lines=48
26408 ac_sed_frag=1 # Number of current file.
26409 ac_beg=1 # First line for current file.
26410 ac_end=$ac_max_sed_lines # Line after last line for current file.
26411 ac_more_lines=:
26412 ac_sed_cmds=
26413 while $ac_more_lines; do
26414 if test $ac_beg -gt 1; then
26415 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26416 else
26417 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4e8d927d 26418 fi
b4e70030
JB
26419 if test ! -s $tmp/subs.frag; then
26420 ac_more_lines=false
26421 else
26422 # The purpose of the label and of the branching condition is to
26423 # speed up the sed processing (if there are no `@' at all, there
26424 # is no need to browse any of the substitutions).
26425 # These are the two extra sed commands mentioned above.
26426 (echo ':t
26427 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26428 if test -z "$ac_sed_cmds"; then
26429 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26430 else
26431 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26432 fi
26433 ac_sed_frag=`expr $ac_sed_frag + 1`
26434 ac_beg=$ac_end
26435 ac_end=`expr $ac_end + $ac_max_sed_lines`
26436 fi
26437 done
26438 if test -z "$ac_sed_cmds"; then
26439 ac_sed_cmds=cat
26440 fi
26441fi # test -n "$CONFIG_FILES"
4e8d927d 26442
b4e70030
JB
26443_ACEOF
26444cat >>$CONFIG_STATUS <<\_ACEOF
26445for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26446 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26447 case $ac_file in
26448 - | *:- | *:-:* ) # input from stdin
26449 cat >$tmp/stdin
26450 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26451 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26452 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26453 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26454 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
26455 esac
26456
b4e70030
JB
26457 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26458 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
bec39cab
AC
26459$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26460 X"$ac_file" : 'X\(//\)[^/]' \| \
26461 X"$ac_file" : 'X\(//\)$' \| \
b4e70030
JB
26462 X"$ac_file" : 'X\(/\)' \| \
26463 . : '\(.\)' 2>/dev/null ||
bec39cab 26464echo X"$ac_file" |
b4e70030
JB
26465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26466 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26467 /^X\(\/\/\)$/{ s//\1/; q; }
26468 /^X\(\/\).*/{ s//\1/; q; }
26469 s/.*/./; q'`
26470 { if $as_mkdir_p; then
26471 mkdir -p "$ac_dir"
26472 else
26473 as_dir="$ac_dir"
bec39cab 26474 as_dirs=
b4e70030
JB
26475 while test ! -d "$as_dir"; do
26476 as_dirs="$as_dir $as_dirs"
26477 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
26478$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26479 X"$as_dir" : 'X\(//\)[^/]' \| \
26480 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
26481 X"$as_dir" : 'X\(/\)' \| \
26482 . : '\(.\)' 2>/dev/null ||
bec39cab 26483echo X"$as_dir" |
b4e70030
JB
26484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26485 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26486 /^X\(\/\/\)$/{ s//\1/; q; }
26487 /^X\(\/\).*/{ s//\1/; q; }
26488 s/.*/./; q'`
bec39cab 26489 done
b4e70030
JB
26490 test ! -n "$as_dirs" || mkdir $as_dirs
26491 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26492echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 26493 { (exit 1); exit 1; }; }; }
b4e70030 26494
bec39cab
AC
26495 ac_builddir=.
26496
b4e70030 26497if test "$ac_dir" != .; then
bec39cab 26498 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
26499 # A "../" for each directory in $ac_dir_suffix.
26500 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26501else
26502 ac_dir_suffix= ac_top_builddir=
26503fi
bec39cab
AC
26504
26505case $srcdir in
b4e70030 26506 .) # No --srcdir option. We are building in place.
bec39cab 26507 ac_srcdir=.
b4e70030
JB
26508 if test -z "$ac_top_builddir"; then
26509 ac_top_srcdir=.
26510 else
26511 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26512 fi ;;
26513 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 26514 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
26515 ac_top_srcdir=$srcdir ;;
26516 *) # Relative path.
26517 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26518 ac_top_srcdir=$ac_top_builddir$srcdir ;;
bec39cab
AC
26519esac
26520
b4e70030
JB
26521# Do not use `cd foo && pwd` to compute absolute paths, because
26522# the directories may not exist.
26523case `pwd` in
26524.) ac_abs_builddir="$ac_dir";;
26525*)
26526 case "$ac_dir" in
26527 .) ac_abs_builddir=`pwd`;;
26528 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26529 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26530 esac;;
26531esac
26532case $ac_abs_builddir in
26533.) ac_abs_top_builddir=${ac_top_builddir}.;;
26534*)
26535 case ${ac_top_builddir}. in
26536 .) ac_abs_top_builddir=$ac_abs_builddir;;
26537 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26538 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26539 esac;;
26540esac
26541case $ac_abs_builddir in
26542.) ac_abs_srcdir=$ac_srcdir;;
26543*)
26544 case $ac_srcdir in
26545 .) ac_abs_srcdir=$ac_abs_builddir;;
26546 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26547 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26548 esac;;
26549esac
26550case $ac_abs_builddir in
26551.) ac_abs_top_srcdir=$ac_top_srcdir;;
26552*)
26553 case $ac_top_srcdir in
26554 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26555 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26556 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26557 esac;;
26558esac
c906108c 26559
c906108c 26560
bec39cab
AC
26561 case $INSTALL in
26562 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
b4e70030 26563 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c 26564 esac
121ce6e5 26565
b4e70030
JB
26566 if test x"$ac_file" != x-; then
26567 { echo "$as_me:$LINENO: creating $ac_file" >&5
26568echo "$as_me: creating $ac_file" >&6;}
26569 rm -f "$ac_file"
26570 fi
26571 # Let's still pretend it is `configure' which instantiates (i.e., don't
26572 # use $as_me), people would be surprised to read:
26573 # /* config.h. Generated by config.status. */
26574 if test x"$ac_file" = x-; then
26575 configure_input=
26576 else
26577 configure_input="$ac_file. "
26578 fi
26579 configure_input=$configure_input"Generated from `echo $ac_file_in |
26580 sed 's,.*/,,'` by configure."
26581
26582 # First look for the input files in the build tree, otherwise in the
26583 # src tree.
26584 ac_file_inputs=`IFS=:
26585 for f in $ac_file_in; do
26586 case $f in
26587 -) echo $tmp/stdin ;;
26588 [\\/$]*)
26589 # Absolute (can't be DOS-style, as IFS=:)
26590 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26591echo "$as_me: error: cannot find input file: $f" >&2;}
26592 { (exit 1); exit 1; }; }
26593 echo "$f";;
26594 *) # Relative
26595 if test -f "$f"; then
26596 # Build tree
26597 echo "$f"
26598 elif test -f "$srcdir/$f"; then
26599 # Source tree
26600 echo "$srcdir/$f"
26601 else
26602 # /dev/null tree
26603 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26604echo "$as_me: error: cannot find input file: $f" >&2;}
26605 { (exit 1); exit 1; }; }
26606 fi;;
26607 esac
26608 done` || { (exit 1); exit 1; }
4e8d927d 26609_ACEOF
bec39cab
AC
26610cat >>$CONFIG_STATUS <<_ACEOF
26611 sed "$ac_vpsub
26612$extrasub
26613_ACEOF
26614cat >>$CONFIG_STATUS <<\_ACEOF
26615:t
26616/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b4e70030
JB
26617s,@configure_input@,$configure_input,;t t
26618s,@srcdir@,$ac_srcdir,;t t
26619s,@abs_srcdir@,$ac_abs_srcdir,;t t
26620s,@top_srcdir@,$ac_top_srcdir,;t t
26621s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26622s,@builddir@,$ac_builddir,;t t
26623s,@abs_builddir@,$ac_abs_builddir,;t t
26624s,@top_builddir@,$ac_top_builddir,;t t
26625s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26626s,@INSTALL@,$ac_INSTALL,;t t
26627" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26628 rm -f $tmp/stdin
26629 if test x"$ac_file" != x-; then
26630 mv $tmp/out $ac_file
26631 else
26632 cat $tmp/out
26633 rm -f $tmp/out
26634 fi
26635
26636done
26637_ACEOF
26638cat >>$CONFIG_STATUS <<\_ACEOF
26639
26640#
26641# CONFIG_HEADER section.
26642#
26643
26644# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26645# NAME is the cpp macro being defined and VALUE is the value it is being given.
26646#
26647# ac_d sets the value in "#define NAME VALUE" lines.
26648ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26649ac_dB='[ ].*$,\1#\2'
26650ac_dC=' '
26651ac_dD=',;t'
26652# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26653ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26654ac_uB='$,\1#\2define\3'
26655ac_uC=' '
26656ac_uD=',;t'
26657
26658for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26659 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab 26660 case $ac_file in
b4e70030
JB
26661 - | *:- | *:-:* ) # input from stdin
26662 cat >$tmp/stdin
26663 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26664 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26665 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26666 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26667 * ) ac_file_in=$ac_file.in ;;
c906108c 26668 esac
b4e70030
JB
26669
26670 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26671echo "$as_me: creating $ac_file" >&6;}
26672
26673 # First look for the input files in the build tree, otherwise in the
26674 # src tree.
26675 ac_file_inputs=`IFS=:
26676 for f in $ac_file_in; do
26677 case $f in
26678 -) echo $tmp/stdin ;;
26679 [\\/$]*)
26680 # Absolute (can't be DOS-style, as IFS=:)
26681 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26682echo "$as_me: error: cannot find input file: $f" >&2;}
26683 { (exit 1); exit 1; }; }
26684 # Do quote $f, to prevent DOS paths from being IFS'd.
26685 echo "$f";;
26686 *) # Relative
26687 if test -f "$f"; then
26688 # Build tree
26689 echo "$f"
26690 elif test -f "$srcdir/$f"; then
26691 # Source tree
26692 echo "$srcdir/$f"
26693 else
26694 # /dev/null tree
26695 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26696echo "$as_me: error: cannot find input file: $f" >&2;}
26697 { (exit 1); exit 1; }; }
26698 fi;;
26699 esac
26700 done` || { (exit 1); exit 1; }
26701 # Remove the trailing spaces.
26702 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26703
26704_ACEOF
26705
26706# Transform confdefs.h into two sed scripts, `conftest.defines' and
26707# `conftest.undefs', that substitutes the proper values into
26708# config.h.in to produce config.h. The first handles `#define'
26709# templates, and the second `#undef' templates.
26710# And first: Protect against being on the right side of a sed subst in
26711# config.status. Protect against being in an unquoted here document
26712# in config.status.
26713rm -f conftest.defines conftest.undefs
26714# Using a here document instead of a string reduces the quoting nightmare.
26715# Putting comments in sed scripts is not portable.
26716#
26717# `end' is used to avoid that the second main sed command (meant for
26718# 0-ary CPP macros) applies to n-ary macro definitions.
26719# See the Autoconf documentation for `clear'.
26720cat >confdef2sed.sed <<\_ACEOF
26721s/[\\&,]/\\&/g
26722s,[\\$`],\\&,g
26723t clear
26724: clear
26725s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26726t end
26727s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26728: end
26729_ACEOF
26730# If some macros were called several times there might be several times
26731# the same #defines, which is useless. Nevertheless, we may not want to
26732# sort them, since we want the *last* AC-DEFINE to be honored.
26733uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26734sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26735rm -f confdef2sed.sed
26736
26737# This sed command replaces #undef with comments. This is necessary, for
c906108c
SS
26738# example, in the case of _POSIX_SOURCE, which is predefined and required
26739# on some systems where configure will not decide to define it.
b4e70030
JB
26740cat >>conftest.undefs <<\_ACEOF
26741s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26742_ACEOF
26743
26744# Break up conftest.defines because some shells have a limit on the size
26745# of here documents, and old seds have small limits too (100 cmds).
26746echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26747echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26748echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26749echo ' :' >>$CONFIG_STATUS
26750rm -f conftest.tail
26751while grep . conftest.defines >/dev/null
bec39cab 26752do
b4e70030
JB
26753 # Write a limited-size here document to $tmp/defines.sed.
26754 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26755 # Speed up: don't consider the non `#define' lines.
26756 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26757 # Work around the forget-to-reset-the-flag bug.
26758 echo 't clr' >>$CONFIG_STATUS
26759 echo ': clr' >>$CONFIG_STATUS
26760 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 26761 echo 'CEOF
b4e70030
JB
26762 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26763 rm -f $tmp/in
26764 mv $tmp/out $tmp/in
26765' >>$CONFIG_STATUS
26766 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
bec39cab
AC
26767 rm -f conftest.defines
26768 mv conftest.tail conftest.defines
26769done
b4e70030
JB
26770rm -f conftest.defines
26771echo ' fi # grep' >>$CONFIG_STATUS
26772echo >>$CONFIG_STATUS
26773
26774# Break up conftest.undefs because some shells have a limit on the size
26775# of here documents, and old seds have small limits too (100 cmds).
26776echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26777rm -f conftest.tail
26778while grep . conftest.undefs >/dev/null
26779do
26780 # Write a limited-size here document to $tmp/undefs.sed.
26781 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26782 # Speed up: don't consider the non `#undef'
26783 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26784 # Work around the forget-to-reset-the-flag bug.
26785 echo 't clr' >>$CONFIG_STATUS
26786 echo ': clr' >>$CONFIG_STATUS
26787 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26788 echo 'CEOF
26789 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26790 rm -f $tmp/in
26791 mv $tmp/out $tmp/in
26792' >>$CONFIG_STATUS
26793 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26794 rm -f conftest.undefs
26795 mv conftest.tail conftest.undefs
26796done
26797rm -f conftest.undefs
bec39cab
AC
26798
26799cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030
JB
26800 # Let's still pretend it is `configure' which instantiates (i.e., don't
26801 # use $as_me), people would be surprised to read:
26802 # /* config.h. Generated by config.status. */
26803 if test x"$ac_file" = x-; then
26804 echo "/* Generated by configure. */" >$tmp/config.h
26805 else
26806 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26807 fi
26808 cat $tmp/in >>$tmp/config.h
26809 rm -f $tmp/in
bec39cab 26810 if test x"$ac_file" != x-; then
b4e70030 26811 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
bec39cab
AC
26812 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26813echo "$as_me: $ac_file is unchanged" >&6;}
26814 else
b4e70030
JB
26815 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26816$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26817 X"$ac_file" : 'X\(//\)[^/]' \| \
26818 X"$ac_file" : 'X\(//\)$' \| \
26819 X"$ac_file" : 'X\(/\)' \| \
26820 . : '\(.\)' 2>/dev/null ||
26821echo X"$ac_file" |
26822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26823 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26824 /^X\(\/\/\)$/{ s//\1/; q; }
26825 /^X\(\/\).*/{ s//\1/; q; }
26826 s/.*/./; q'`
26827 { if $as_mkdir_p; then
26828 mkdir -p "$ac_dir"
26829 else
26830 as_dir="$ac_dir"
26831 as_dirs=
26832 while test ! -d "$as_dir"; do
26833 as_dirs="$as_dir $as_dirs"
26834 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26835$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26836 X"$as_dir" : 'X\(//\)[^/]' \| \
26837 X"$as_dir" : 'X\(//\)$' \| \
26838 X"$as_dir" : 'X\(/\)' \| \
26839 . : '\(.\)' 2>/dev/null ||
26840echo X"$as_dir" |
26841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26842 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26843 /^X\(\/\/\)$/{ s//\1/; q; }
26844 /^X\(\/\).*/{ s//\1/; q; }
26845 s/.*/./; q'`
26846 done
26847 test ! -n "$as_dirs" || mkdir $as_dirs
26848 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26849echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26850 { (exit 1); exit 1; }; }; }
26851
bec39cab 26852 rm -f $ac_file
b4e70030 26853 mv $tmp/config.h $ac_file
bec39cab
AC
26854 fi
26855 else
b4e70030
JB
26856 cat $tmp/config.h
26857 rm -f $tmp/config.h
bec39cab 26858 fi
e28b3332
DJ
26859# Compute $ac_file's index in $config_headers.
26860_am_stamp_count=1
26861for _am_header in $config_headers :; do
26862 case $_am_header in
26863 $ac_file | $ac_file:* )
26864 break ;;
26865 * )
26866 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26867 esac
26868done
26869echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
26870$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26871 X$ac_file : 'X\(//\)[^/]' \| \
26872 X$ac_file : 'X\(//\)$' \| \
26873 X$ac_file : 'X\(/\)' \| \
26874 . : '\(.\)' 2>/dev/null ||
26875echo X$ac_file |
26876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26878 /^X\(\/\/\)$/{ s//\1/; q; }
26879 /^X\(\/\).*/{ s//\1/; q; }
26880 s/.*/./; q'`/stamp-h$_am_stamp_count
b4e70030
JB
26881done
26882_ACEOF
26883cat >>$CONFIG_STATUS <<\_ACEOF
26884
26885#
26886# CONFIG_LINKS section.
26887#
26888
26889for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
26890 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26891 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 26892
b4e70030
JB
26893 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
26894echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
26895
26896 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
26897 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
26898echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
26899 { (exit 1); exit 1; }; }
c906108c 26900 fi
b4e70030
JB
26901 rm -f $ac_dest
26902
26903 # Make relative symlinks.
26904 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
26905$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26906 X"$ac_dest" : 'X\(//\)[^/]' \| \
26907 X"$ac_dest" : 'X\(//\)$' \| \
26908 X"$ac_dest" : 'X\(/\)' \| \
26909 . : '\(.\)' 2>/dev/null ||
26910echo X"$ac_dest" |
26911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26912 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26913 /^X\(\/\/\)$/{ s//\1/; q; }
26914 /^X\(\/\).*/{ s//\1/; q; }
26915 s/.*/./; q'`
26916 { if $as_mkdir_p; then
26917 mkdir -p "$ac_dest_dir"
26918 else
26919 as_dir="$ac_dest_dir"
26920 as_dirs=
26921 while test ! -d "$as_dir"; do
26922 as_dirs="$as_dir $as_dirs"
26923 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26924$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26925 X"$as_dir" : 'X\(//\)[^/]' \| \
26926 X"$as_dir" : 'X\(//\)$' \| \
26927 X"$as_dir" : 'X\(/\)' \| \
26928 . : '\(.\)' 2>/dev/null ||
26929echo X"$as_dir" |
26930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26932 /^X\(\/\/\)$/{ s//\1/; q; }
26933 /^X\(\/\).*/{ s//\1/; q; }
26934 s/.*/./; q'`
26935 done
26936 test ! -n "$as_dirs" || mkdir $as_dirs
26937 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
26938echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
26939 { (exit 1); exit 1; }; }; }
26940
26941 ac_builddir=.
26942
26943if test "$ac_dest_dir" != .; then
26944 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
26945 # A "../" for each directory in $ac_dir_suffix.
26946 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26947else
26948 ac_dir_suffix= ac_top_builddir=
26949fi
26950
26951case $srcdir in
26952 .) # No --srcdir option. We are building in place.
26953 ac_srcdir=.
26954 if test -z "$ac_top_builddir"; then
26955 ac_top_srcdir=.
26956 else
26957 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26958 fi ;;
26959 [\\/]* | ?:[\\/]* ) # Absolute path.
26960 ac_srcdir=$srcdir$ac_dir_suffix;
26961 ac_top_srcdir=$srcdir ;;
26962 *) # Relative path.
26963 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26964 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26965esac
26966
26967# Do not use `cd foo && pwd` to compute absolute paths, because
26968# the directories may not exist.
26969case `pwd` in
26970.) ac_abs_builddir="$ac_dest_dir";;
26971*)
26972 case "$ac_dest_dir" in
26973 .) ac_abs_builddir=`pwd`;;
26974 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
26975 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
26976 esac;;
26977esac
26978case $ac_abs_builddir in
26979.) ac_abs_top_builddir=${ac_top_builddir}.;;
26980*)
26981 case ${ac_top_builddir}. in
26982 .) ac_abs_top_builddir=$ac_abs_builddir;;
26983 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26984 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26985 esac;;
26986esac
26987case $ac_abs_builddir in
26988.) ac_abs_srcdir=$ac_srcdir;;
26989*)
26990 case $ac_srcdir in
26991 .) ac_abs_srcdir=$ac_abs_builddir;;
26992 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26993 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26994 esac;;
26995esac
26996case $ac_abs_builddir in
26997.) ac_abs_top_srcdir=$ac_top_srcdir;;
26998*)
26999 case $ac_top_srcdir in
27000 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27001 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27002 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27003 esac;;
27004esac
27005
bec39cab
AC
27006
27007 case $srcdir in
27008 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
b4e70030 27009 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c 27010 esac
b4e70030
JB
27011
27012 # Try a symlink, then a hard link, then a copy.
27013 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
27014 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
27015 cp -p $srcdir/$ac_source $ac_dest ||
27016 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
27017echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
bec39cab 27018 { (exit 1); exit 1; }; }
b4e70030
JB
27019done
27020_ACEOF
27021cat >>$CONFIG_STATUS <<\_ACEOF
27022
27023#
27024# CONFIG_COMMANDS section.
27025#
27026for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27027 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27028 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27029 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27030$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27031 X"$ac_dest" : 'X\(//\)[^/]' \| \
27032 X"$ac_dest" : 'X\(//\)$' \| \
27033 X"$ac_dest" : 'X\(/\)' \| \
27034 . : '\(.\)' 2>/dev/null ||
27035echo X"$ac_dest" |
27036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27037 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27038 /^X\(\/\/\)$/{ s//\1/; q; }
27039 /^X\(\/\).*/{ s//\1/; q; }
27040 s/.*/./; q'`
27041 { if $as_mkdir_p; then
27042 mkdir -p "$ac_dir"
27043 else
27044 as_dir="$ac_dir"
27045 as_dirs=
27046 while test ! -d "$as_dir"; do
27047 as_dirs="$as_dir $as_dirs"
27048 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27049$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27050 X"$as_dir" : 'X\(//\)[^/]' \| \
27051 X"$as_dir" : 'X\(//\)$' \| \
27052 X"$as_dir" : 'X\(/\)' \| \
27053 . : '\(.\)' 2>/dev/null ||
27054echo X"$as_dir" |
27055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27056 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27057 /^X\(\/\/\)$/{ s//\1/; q; }
27058 /^X\(\/\).*/{ s//\1/; q; }
27059 s/.*/./; q'`
27060 done
27061 test ! -n "$as_dirs" || mkdir $as_dirs
27062 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27063echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27064 { (exit 1); exit 1; }; }; }
27065
27066 ac_builddir=.
27067
27068if test "$ac_dir" != .; then
27069 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27070 # A "../" for each directory in $ac_dir_suffix.
27071 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27072else
27073 ac_dir_suffix= ac_top_builddir=
27074fi
27075
27076case $srcdir in
27077 .) # No --srcdir option. We are building in place.
27078 ac_srcdir=.
27079 if test -z "$ac_top_builddir"; then
27080 ac_top_srcdir=.
27081 else
27082 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27083 fi ;;
27084 [\\/]* | ?:[\\/]* ) # Absolute path.
27085 ac_srcdir=$srcdir$ac_dir_suffix;
27086 ac_top_srcdir=$srcdir ;;
27087 *) # Relative path.
27088 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27089 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27090esac
27091
27092# Do not use `cd foo && pwd` to compute absolute paths, because
27093# the directories may not exist.
27094case `pwd` in
27095.) ac_abs_builddir="$ac_dir";;
27096*)
27097 case "$ac_dir" in
27098 .) ac_abs_builddir=`pwd`;;
27099 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27100 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27101 esac;;
27102esac
27103case $ac_abs_builddir in
27104.) ac_abs_top_builddir=${ac_top_builddir}.;;
27105*)
27106 case ${ac_top_builddir}. in
27107 .) ac_abs_top_builddir=$ac_abs_builddir;;
27108 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27109 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27110 esac;;
27111esac
27112case $ac_abs_builddir in
27113.) ac_abs_srcdir=$ac_srcdir;;
27114*)
27115 case $ac_srcdir in
27116 .) ac_abs_srcdir=$ac_abs_builddir;;
27117 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27118 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27119 esac;;
27120esac
27121case $ac_abs_builddir in
27122.) ac_abs_top_srcdir=$ac_top_srcdir;;
27123*)
27124 case $ac_top_srcdir in
27125 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27126 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27127 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27128 esac;;
27129esac
bec39cab 27130
bec39cab 27131
b4e70030
JB
27132 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27133echo "$as_me: executing $ac_dest commands" >&6;}
27134 case $ac_dest in
e28b3332
DJ
27135 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27136 # Strip MF so we end up with the name of the file.
27137 mf=`echo "$mf" | sed -e 's/:.*$//'`
27138 # Check whether this is an Automake generated Makefile or not.
27139 # We used to match only the files named `Makefile.in', but
27140 # some people rename them; so instead we look at the file content.
27141 # Grep'ing the first line is not enough: some people post-process
27142 # each Makefile.in and add a new line on top of each file to say so.
27143 # So let's grep whole file.
27144 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27145 dirpart=`(dirname "$mf") 2>/dev/null ||
27146$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27147 X"$mf" : 'X\(//\)[^/]' \| \
27148 X"$mf" : 'X\(//\)$' \| \
27149 X"$mf" : 'X\(/\)' \| \
27150 . : '\(.\)' 2>/dev/null ||
27151echo X"$mf" |
27152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27153 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27154 /^X\(\/\/\)$/{ s//\1/; q; }
27155 /^X\(\/\).*/{ s//\1/; q; }
27156 s/.*/./; q'`
27157 else
27158 continue
27159 fi
27160 # Extract the definition of DEPDIR, am__include, and am__quote
27161 # from the Makefile without running `make'.
27162 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27163 test -z "$DEPDIR" && continue
27164 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27165 test -z "am__include" && continue
27166 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27167 # When using ansi2knr, U may be empty or an underscore; expand it
27168 U=`sed -n 's/^U = //p' < "$mf"`
27169 # Find all dependency output files, they are included files with
27170 # $(DEPDIR) in their names. We invoke sed twice because it is the
27171 # simplest approach to changing $(DEPDIR) to its actual value in the
27172 # expansion.
27173 for file in `sed -n "
27174 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27175 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27176 # Make sure the directory exists.
27177 test -f "$dirpart/$file" && continue
27178 fdir=`(dirname "$file") 2>/dev/null ||
27179$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27180 X"$file" : 'X\(//\)[^/]' \| \
27181 X"$file" : 'X\(//\)$' \| \
27182 X"$file" : 'X\(/\)' \| \
27183 . : '\(.\)' 2>/dev/null ||
27184echo X"$file" |
27185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27186 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27187 /^X\(\/\/\)$/{ s//\1/; q; }
27188 /^X\(\/\).*/{ s//\1/; q; }
27189 s/.*/./; q'`
27190 { if $as_mkdir_p; then
27191 mkdir -p $dirpart/$fdir
27192 else
27193 as_dir=$dirpart/$fdir
27194 as_dirs=
27195 while test ! -d "$as_dir"; do
27196 as_dirs="$as_dir $as_dirs"
27197 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27198$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27199 X"$as_dir" : 'X\(//\)[^/]' \| \
27200 X"$as_dir" : 'X\(//\)$' \| \
27201 X"$as_dir" : 'X\(/\)' \| \
27202 . : '\(.\)' 2>/dev/null ||
27203echo X"$as_dir" |
27204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27205 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27206 /^X\(\/\/\)$/{ s//\1/; q; }
27207 /^X\(\/\).*/{ s//\1/; q; }
27208 s/.*/./; q'`
27209 done
27210 test ! -n "$as_dirs" || mkdir $as_dirs
27211 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27212echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27213 { (exit 1); exit 1; }; }; }
27214
27215 # echo "creating $dirpart/$file"
27216 echo '# dummy' > "$dirpart/$file"
27217 done
27218done
4e8d927d 27219 ;;
b4e70030 27220 default )
c906108c 27221
db985757 27222sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
c906108c
SS
27223mv -f Makefile.tmp Makefile
27224
2acceee2 27225
c906108c
SS
27226case x$CONFIG_HEADERS in
27227xconfig.h:config.in)
27228echo > stamp-h ;;
27229esac
bec39cab
AC
27230 ;;
27231 esac
b4e70030
JB
27232done
27233_ACEOF
c906108c 27234
b4e70030 27235cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
27236
27237{ (exit 0); exit 0; }
27238_ACEOF
c906108c 27239chmod +x $CONFIG_STATUS
bec39cab
AC
27240ac_clean_files=$ac_clean_files_save
27241
27242
27243# configure is writing to config.log, and then calls config.status.
27244# config.status does its own redirection, appending to config.log.
27245# Unfortunately, on DOS this fails, as config.log is still kept open
27246# by configure, so config.status won't be able to write to it; its
27247# output is simply discarded. So we exec the FD to /dev/null,
27248# effectively closing config.log, so it can be properly (re)opened and
27249# appended to by config.status. When coming back to configure, we
27250# need to make the FD available again.
27251if test "$no_create" != yes; then
27252 ac_cs_success=:
27253 ac_config_status_args=
27254 test "$silent" = yes &&
27255 ac_config_status_args="$ac_config_status_args --quiet"
27256 exec 5>/dev/null
27257 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27258 exec 5>>config.log
27259 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27260 # would make configure fail if this is the last instruction.
27261 $ac_cs_success || { (exit 1); exit 1; }
27262fi
c906108c 27263
bec39cab 27264#
fdc59709 27265# CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
bec39cab 27266#
c906108c
SS
27267if test "$no_recursion" != yes; then
27268
27269 # Remove --cache-file and --srcdir arguments so they do not pile up.
27270 ac_sub_configure_args=
27271 ac_prev=
fdc59709
PB
27272 eval "set x $ac_configure_args"
27273 shift
27274 for ac_arg
27275 do
c906108c
SS
27276 if test -n "$ac_prev"; then
27277 ac_prev=
27278 continue
27279 fi
bec39cab 27280 case $ac_arg in
c906108c
SS
27281 -cache-file | --cache-file | --cache-fil | --cache-fi \
27282 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27283 ac_prev=cache_file ;;
27284 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
27285 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27286 | --c=*)
27287 ;;
27288 --config-cache | -C)
c906108c
SS
27289 ;;
27290 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27291 ac_prev=srcdir ;;
27292 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27293 ;;
bec39cab
AC
27294 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27295 ac_prev=prefix ;;
27296 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27297 ;;
fdc59709
PB
27298 *)
27299 case $ac_arg in
27300 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27301 esac
27302 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
c906108c
SS
27303 esac
27304 done
27305
bec39cab
AC
27306 # Always prepend --prefix to ensure using the same prefix
27307 # in subdir configurations.
fdc59709
PB
27308 ac_arg="--prefix=$prefix"
27309 case $ac_arg in
27310 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27311 esac
27312 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
bec39cab 27313
b4e70030 27314 ac_popdir=`pwd`
bec39cab 27315 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
27316
27317 # Do not complain, so a configure script can configure whichever
27318 # parts of a large source tree are present.
fdc59709 27319 test -d "$srcdir/$ac_dir" || continue
c906108c 27320
b4e70030
JB
27321 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
27322echo "$as_me: configuring in $ac_dir" >&6;}
27323 { if $as_mkdir_p; then
27324 mkdir -p "$ac_dir"
27325 else
27326 as_dir="$ac_dir"
bec39cab 27327 as_dirs=
b4e70030
JB
27328 while test ! -d "$as_dir"; do
27329 as_dirs="$as_dir $as_dirs"
27330 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
27331$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27332 X"$as_dir" : 'X\(//\)[^/]' \| \
27333 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
27334 X"$as_dir" : 'X\(/\)' \| \
27335 . : '\(.\)' 2>/dev/null ||
bec39cab 27336echo X"$as_dir" |
b4e70030
JB
27337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27338 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27339 /^X\(\/\/\)$/{ s//\1/; q; }
27340 /^X\(\/\).*/{ s//\1/; q; }
27341 s/.*/./; q'`
bec39cab 27342 done
b4e70030
JB
27343 test ! -n "$as_dirs" || mkdir $as_dirs
27344 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27345echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 27346 { (exit 1); exit 1; }; }; }
b4e70030 27347
bec39cab
AC
27348 ac_builddir=.
27349
b4e70030 27350if test "$ac_dir" != .; then
bec39cab 27351 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
27352 # A "../" for each directory in $ac_dir_suffix.
27353 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27354else
27355 ac_dir_suffix= ac_top_builddir=
27356fi
bec39cab
AC
27357
27358case $srcdir in
b4e70030 27359 .) # No --srcdir option. We are building in place.
bec39cab 27360 ac_srcdir=.
b4e70030
JB
27361 if test -z "$ac_top_builddir"; then
27362 ac_top_srcdir=.
27363 else
27364 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27365 fi ;;
27366 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 27367 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
27368 ac_top_srcdir=$srcdir ;;
27369 *) # Relative path.
27370 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27371 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27372esac
27373
27374# Do not use `cd foo && pwd` to compute absolute paths, because
27375# the directories may not exist.
27376case `pwd` in
27377.) ac_abs_builddir="$ac_dir";;
27378*)
27379 case "$ac_dir" in
27380 .) ac_abs_builddir=`pwd`;;
27381 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27382 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27383 esac;;
27384esac
27385case $ac_abs_builddir in
27386.) ac_abs_top_builddir=${ac_top_builddir}.;;
27387*)
27388 case ${ac_top_builddir}. in
27389 .) ac_abs_top_builddir=$ac_abs_builddir;;
27390 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27391 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27392 esac;;
27393esac
27394case $ac_abs_builddir in
27395.) ac_abs_srcdir=$ac_srcdir;;
27396*)
27397 case $ac_srcdir in
27398 .) ac_abs_srcdir=$ac_abs_builddir;;
27399 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27400 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27401 esac;;
27402esac
27403case $ac_abs_builddir in
27404.) ac_abs_top_srcdir=$ac_top_srcdir;;
27405*)
27406 case $ac_top_srcdir in
27407 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27408 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27409 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27410 esac;;
bec39cab 27411esac
c906108c 27412
c906108c 27413
fdc59709 27414 cd "$ac_dir"
c906108c
SS
27415
27416 # Check for guested configure; otherwise get Cygnus style configure.
fdc59709
PB
27417 if test -f "$ac_srcdir/configure.gnu"; then
27418 ac_sub_configure=$ac_srcdir/configure.gnu
27419 elif test -f "$ac_srcdir/configure"; then
27420 ac_sub_configure=$ac_srcdir/configure
27421 elif test -f "$ac_srcdir/configure.in"; then
27422 # This should be Cygnus configure.
27423 ac_sub_configure=$ac_aux_dir/configure
c906108c 27424 else
bec39cab
AC
27425 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27426echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
27427 ac_sub_configure=
27428 fi
27429
27430 # The recursion is here.
27431 if test -n "$ac_sub_configure"; then
c906108c 27432 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
27433 case $cache_file in
27434 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
b4e70030
JB
27435 *) # Relative path.
27436 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 27437 esac
c906108c 27438
fdc59709
PB
27439 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27440echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 27441 # The eval makes quoting arguments work.
fdc59709
PB
27442 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27443 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
bec39cab
AC
27444 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27445echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27446 { (exit 1); exit 1; }; }
c906108c
SS
27447 fi
27448
fdc59709 27449 cd "$ac_popdir"
c906108c
SS
27450 done
27451fi
27452
27453
27454exit 0
This page took 2.393792 seconds and 4 git commands to generate.