gdb.base/foll-exec.exp: Update the expected output of a couple
[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"
a417dc56 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 am__leading_dot DEPDIR CCDEPMODE MAKE GMAKE_TRUE GMAKE_FALSE SET_MAKE USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir GL_COND_LIBTOOL_TRUE GL_COND_LIBTOOL_FALSE GNULIB_MEMMEM GNULIB_MEMPCPY GNULIB_MEMRCHR GNULIB_STPCPY GNULIB_STPNCPY GNULIB_STRCHRNUL GNULIB_STRDUP GNULIB_STRNDUP GNULIB_STRNLEN GNULIB_STRPBRK GNULIB_STRSEP GNULIB_STRSTR GNULIB_STRCASESTR GNULIB_STRTOK_R GNULIB_MBSLEN GNULIB_MBSNLEN GNULIB_MBSCHR GNULIB_MBSRCHR GNULIB_MBSSTR GNULIB_MBSCASECMP GNULIB_MBSNCASECMP GNULIB_MBSPCASECMP GNULIB_MBSCASESTR GNULIB_MBSCSPN GNULIB_MBSPBRK GNULIB_MBSSPN GNULIB_MBSSEP GNULIB_MBSTOK_R GNULIB_STRERROR GNULIB_STRSIGNAL HAVE_DECL_MEMMEM HAVE_MEMPCPY HAVE_DECL_MEMRCHR HAVE_STPCPY HAVE_STPNCPY HAVE_STRCHRNUL HAVE_DECL_STRDUP HAVE_STRNDUP HAVE_DECL_STRNDUP HAVE_DECL_STRNLEN HAVE_STRPBRK HAVE_STRSEP HAVE_STRCASESTR HAVE_DECL_STRTOK_R HAVE_DECL_STRERROR HAVE_DECL_STRSIGNAL REPLACE_STRERROR REPLACE_STRSIGNAL REPLACE_MEMMEM REPLACE_STRCASESTR REPLACE_STRSTR HAVE_LONG_LONG_INT HAVE_UNSIGNED_LONG_LONG_INT HAVE_INTTYPES_H HAVE_SYS_TYPES_H INCLUDE_NEXT NEXT_STDINT_H HAVE_STDINT_H HAVE_SYS_INTTYPES_H HAVE_SYS_BITYPES_H BITSIZEOF_PTRDIFF_T BITSIZEOF_SIG_ATOMIC_T BITSIZEOF_SIZE_T BITSIZEOF_WCHAR_T BITSIZEOF_WINT_T HAVE_SIGNED_SIG_ATOMIC_T HAVE_SIGNED_WCHAR_T HAVE_SIGNED_WINT_T PTRDIFF_T_SUFFIX SIG_ATOMIC_T_SUFFIX SIZE_T_SUFFIX WCHAR_T_SUFFIX WINT_T_SUFFIX STDINT_H NEXT_STRING_H GNULIB_WCWIDTH HAVE_DECL_WCWIDTH REPLACE_WCWIDTH WCHAR_H HAVE_WCHAR_H NEXT_WCHAR_H LIBGNU_LIBDEPS LIBGNU_LTLIBDEPS GNULIB_STDINT_H PACKAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK AMTAR am__tar am__untar am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH am__fastdepCC_TRUE am__fastdepCC_FALSE subdirs TARGET_OBS PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT PYTHON_CFLAGS ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_PATCH_LEVEL TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_INCLUDE TCL_LIBRARY TCL_DEPS TK_VERSION TK_BIN_DIR TK_SRC_DIR TK_LIB_FILE TK_LIB_FLAG TK_LIB_SPEC TK_STUB_LIB_FILE TK_STUB_LIB_FLAG TK_STUB_LIB_SPEC TK_INCLUDE TK_LIBRARY TK_DEPS TK_XINCLUDES X_CFLAGS X_LDFLAGS X_LIBS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h 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
d57a3c85 893 --with-python include python support (auto/yes/no/<path>)
bec39cab
AC
894 --without-included-regex don't use included regex; this is the default
895 on systems with version 2 of the GNU C library
896 (use with caution on other system)
897 --with-sysroot=DIR Search for usr/lib et al within DIR.
5062cc19
KS
898 --with-tcl directory containing tcl configuration (tclConfig.sh)
899 --with-tk directory containing tk configuration (tkConfig.sh)
bec39cab
AC
900 --with-x use the X Window System
901 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
902
903Some influential environment variables:
904 CC C compiler command
905 CFLAGS C compiler flags
906 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
907 nonstandard directory <lib dir>
b4e70030
JB
908 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
909 headers in a nonstandard directory <include dir>
bec39cab
AC
910 CPP C preprocessor
911
912Use these variables to override the choices made by `configure' or to help
913it to find libraries and programs with nonstandard names/locations.
914
915_ACEOF
916fi
917
918if test "$ac_init_help" = "recursive"; then
919 # If there are subdirs, report their specific --help.
b4e70030 920 ac_popdir=`pwd`
bec39cab
AC
921 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922 test -d $ac_dir || continue
923 ac_builddir=.
924
b4e70030 925if test "$ac_dir" != .; then
bec39cab 926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
927 # A "../" for each directory in $ac_dir_suffix.
928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929else
930 ac_dir_suffix= ac_top_builddir=
931fi
bec39cab
AC
932
933case $srcdir in
b4e70030 934 .) # No --srcdir option. We are building in place.
bec39cab 935 ac_srcdir=.
b4e70030
JB
936 if test -z "$ac_top_builddir"; then
937 ac_top_srcdir=.
938 else
939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940 fi ;;
941 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 942 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
943 ac_top_srcdir=$srcdir ;;
944 *) # Relative path.
945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
947esac
948
949# Do not use `cd foo && pwd` to compute absolute paths, because
950# the directories may not exist.
951case `pwd` in
952.) ac_abs_builddir="$ac_dir";;
953*)
954 case "$ac_dir" in
955 .) ac_abs_builddir=`pwd`;;
956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
958 esac;;
959esac
960case $ac_abs_builddir in
961.) ac_abs_top_builddir=${ac_top_builddir}.;;
962*)
963 case ${ac_top_builddir}. in
964 .) ac_abs_top_builddir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
967 esac;;
968esac
969case $ac_abs_builddir in
970.) ac_abs_srcdir=$ac_srcdir;;
971*)
972 case $ac_srcdir in
973 .) ac_abs_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
976 esac;;
977esac
978case $ac_abs_builddir in
979.) ac_abs_top_srcdir=$ac_top_srcdir;;
980*)
981 case $ac_top_srcdir in
982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
985 esac;;
bec39cab
AC
986esac
987
b4e70030
JB
988 cd $ac_dir
989 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab 990 if test -f $ac_srcdir/configure.gnu; then
b4e70030 991 echo
bec39cab
AC
992 $SHELL $ac_srcdir/configure.gnu --help=recursive
993 elif test -f $ac_srcdir/configure; then
b4e70030 994 echo
bec39cab 995 $SHELL $ac_srcdir/configure --help=recursive
b4e70030
JB
996 elif test -f $ac_srcdir/configure.ac ||
997 test -f $ac_srcdir/configure.in; then
998 echo
999 $ac_configure --help
3ace7edb 1000 else
bec39cab 1001 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
b4e70030
JB
1002 fi
1003 cd $ac_popdir
bec39cab
AC
1004 done
1005fi
1006
b4e70030 1007test -n "$ac_init_help" && exit 0
bec39cab
AC
1008if $ac_init_version; then
1009 cat <<\_ACEOF
1010
b4e70030 1011Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
1012This configure script is free software; the Free Software Foundation
1013gives unlimited permission to copy, distribute and modify it.
1014_ACEOF
b4e70030 1015 exit 0
bec39cab 1016fi
b4e70030
JB
1017exec 5>config.log
1018cat >&5 <<_ACEOF
bec39cab
AC
1019This file contains any messages produced by compilers while
1020running configure, to aid debugging if configure makes a mistake.
1021
1022It was created by $as_me, which was
b4e70030 1023generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
1024
1025 $ $0 $@
1026
1027_ACEOF
1028{
1029cat <<_ASUNAME
1030## --------- ##
1031## Platform. ##
1032## --------- ##
1033
1034hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1035uname -m = `(uname -m) 2>/dev/null || echo unknown`
1036uname -r = `(uname -r) 2>/dev/null || echo unknown`
1037uname -s = `(uname -s) 2>/dev/null || echo unknown`
1038uname -v = `(uname -v) 2>/dev/null || echo unknown`
1039
1040/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1041/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1042
1043/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1044/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1045/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
b4e70030 1046hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
bec39cab
AC
1047/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1048/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1049/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1050
1051_ASUNAME
1052
1053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1054for as_dir in $PATH
1055do
1056 IFS=$as_save_IFS
1057 test -z "$as_dir" && as_dir=.
1058 echo "PATH: $as_dir"
1059done
1060
1061} >&5
1062
1063cat >&5 <<_ACEOF
1064
1065
1066## ----------- ##
1067## Core tests. ##
1068## ----------- ##
1069
1070_ACEOF
1071
1072
1073# Keep a trace of the command line.
1074# Strip out --no-create and --no-recursion so they do not pile up.
1075# Strip out --silent because we don't want to record it for future runs.
1076# Also quote any args containing shell meta-characters.
1077# Make two passes to allow for proper duplicate-argument suppression.
1078ac_configure_args=
1079ac_configure_args0=
1080ac_configure_args1=
1081ac_sep=
1082ac_must_keep_next=false
1083for ac_pass in 1 2
1084do
1085 for ac_arg
1086 do
1087 case $ac_arg in
1088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 continue ;;
b4e70030 1092 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
bec39cab
AC
1093 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1094 esac
1095 case $ac_pass in
1096 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1097 2)
1098 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1099 if test $ac_must_keep_next = true; then
1100 ac_must_keep_next=false # Got value, back to normal.
1101 else
1102 case $ac_arg in
1103 *=* | --config-cache | -C | -disable-* | --disable-* \
1104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1106 | -with-* | --with-* | -without-* | --without-* | --x)
1107 case "$ac_configure_args0 " in
1108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1109 esac
1110 ;;
1111 -* ) ac_must_keep_next=true ;;
1112 esac
1113 fi
1114 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1115 # Get rid of the leading space.
1116 ac_sep=" "
1117 ;;
1118 esac
1119 done
1120done
1121$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1122$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1123
1124# When interrupted or exit'd, cleanup temporary files, and complete
1125# config.log. We remove comments because anyway the quotes in there
1126# would cause problems or look ugly.
b4e70030
JB
1127# WARNING: Be sure not to use single quotes in there, as some shells,
1128# such as our DU 5.0 friend, will then `close' the trap.
bec39cab
AC
1129trap 'exit_status=$?
1130 # Save into config.log some information that might help in debugging.
1131 {
1132 echo
1133
1134 cat <<\_ASBOX
1135## ---------------- ##
1136## Cache variables. ##
1137## ---------------- ##
1138_ASBOX
1139 echo
1140 # The following way of writing the cache mishandles newlines in values,
b4e70030 1141{
bec39cab 1142 (set) 2>&1 |
b4e70030
JB
1143 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1144 *ac_space=\ *)
bec39cab 1145 sed -n \
b4e70030
JB
1146 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1147 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1148 ;;
bec39cab 1149 *)
b4e70030
JB
1150 sed -n \
1151 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 1152 ;;
b4e70030
JB
1153 esac;
1154}
bec39cab
AC
1155 echo
1156
1157 cat <<\_ASBOX
1158## ----------------- ##
1159## Output variables. ##
1160## ----------------- ##
1161_ASBOX
1162 echo
1163 for ac_var in $ac_subst_vars
1164 do
b4e70030
JB
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1167 done | sort
1168 echo
1169
1170 if test -n "$ac_subst_files"; then
1171 cat <<\_ASBOX
b4e70030
JB
1172## ------------- ##
1173## Output files. ##
1174## ------------- ##
bec39cab
AC
1175_ASBOX
1176 echo
1177 for ac_var in $ac_subst_files
1178 do
b4e70030
JB
1179 eval ac_val=$`echo $ac_var`
1180 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1181 done | sort
1182 echo
1183 fi
1184
1185 if test -s confdefs.h; then
1186 cat <<\_ASBOX
1187## ----------- ##
1188## confdefs.h. ##
1189## ----------- ##
1190_ASBOX
1191 echo
b4e70030 1192 sed "/^$/d" confdefs.h | sort
bec39cab 1193 echo
3ace7edb 1194 fi
bec39cab
AC
1195 test "$ac_signal" != 0 &&
1196 echo "$as_me: caught signal $ac_signal"
1197 echo "$as_me: exit $exit_status"
1198 } >&5
b4e70030
JB
1199 rm -f core *.core &&
1200 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 1201 exit $exit_status
b4e70030 1202 ' 0
bec39cab
AC
1203for ac_signal in 1 2 13 15; do
1204 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1205done
1206ac_signal=0
1207
1208# confdefs.h avoids OS command line length limits that DEFS can exceed.
b4e70030
JB
1209rm -rf conftest* confdefs.h
1210# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1211echo >confdefs.h
bec39cab
AC
1212
1213# Predefined preprocessor variables.
1214
1215cat >>confdefs.h <<_ACEOF
1216#define PACKAGE_NAME "$PACKAGE_NAME"
1217_ACEOF
1218
1219
1220cat >>confdefs.h <<_ACEOF
1221#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1222_ACEOF
1223
1224
1225cat >>confdefs.h <<_ACEOF
1226#define PACKAGE_VERSION "$PACKAGE_VERSION"
1227_ACEOF
1228
1229
1230cat >>confdefs.h <<_ACEOF
1231#define PACKAGE_STRING "$PACKAGE_STRING"
1232_ACEOF
1233
1234
1235cat >>confdefs.h <<_ACEOF
1236#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1237_ACEOF
1238
1239
1240# Let the site file select an alternate cache file if it wants to.
1241# Prefer explicitly selected file to automatically selected ones.
b4e70030
JB
1242if test -z "$CONFIG_SITE"; then
1243 if test "x$prefix" != xNONE; then
1244 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1245 else
1246 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1247 fi
c906108c 1248fi
b4e70030 1249for ac_site_file in $CONFIG_SITE; do
c906108c 1250 if test -r "$ac_site_file"; then
bec39cab
AC
1251 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1252echo "$as_me: loading site script $ac_site_file" >&6;}
1253 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1254 . "$ac_site_file"
1255 fi
1256done
1257
1258if test -r "$cache_file"; then
bec39cab
AC
1259 # Some versions of bash will fail to source /dev/null (special
1260 # files actually), so we avoid doing that.
1261 if test -f "$cache_file"; then
1262 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1263echo "$as_me: loading cache $cache_file" >&6;}
1264 case $cache_file in
1265 [\\/]* | ?:[\\/]* ) . $cache_file;;
1266 *) . ./$cache_file;;
1267 esac
1268 fi
c906108c 1269else
bec39cab
AC
1270 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1271echo "$as_me: creating cache $cache_file" >&6;}
1272 >$cache_file
1273fi
1274
1275# Check that the precious variables saved in the cache have kept the same
1276# value.
1277ac_cache_corrupted=false
b4e70030
JB
1278for ac_var in `(set) 2>&1 |
1279 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
bec39cab
AC
1280 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1281 eval ac_new_set=\$ac_env_${ac_var}_set
b4e70030
JB
1282 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1283 eval ac_new_val="\$ac_env_${ac_var}_value"
bec39cab
AC
1284 case $ac_old_set,$ac_new_set in
1285 set,)
1286 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1287echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1288 ac_cache_corrupted=: ;;
1289 ,set)
1290 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1291echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1292 ac_cache_corrupted=: ;;
1293 ,);;
1294 *)
1295 if test "x$ac_old_val" != "x$ac_new_val"; then
fdc59709
PB
1296 # differences in whitespace do not lead to failure.
1297 ac_old_val_w=`echo x $ac_old_val`
1298 ac_new_val_w=`echo x $ac_new_val`
1299 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1300 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
bec39cab 1301echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
fdc59709
PB
1302 ac_cache_corrupted=:
1303 else
1304 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1305echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1306 eval $ac_var=\$ac_old_val
1307 fi
1308 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1309echo "$as_me: former value: \`$ac_old_val'" >&2;}
1310 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1311echo "$as_me: current value: \`$ac_new_val'" >&2;}
bec39cab
AC
1312 fi;;
1313 esac
1314 # Pass precious variables to config.status.
1315 if test "$ac_new_set" = set; then
1316 case $ac_new_val in
b4e70030
JB
1317 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1319 *) ac_arg=$ac_var=$ac_new_val ;;
1320 esac
1321 case " $ac_configure_args " in
1322 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1323 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1324 esac
1325 fi
1326done
1327if $ac_cache_corrupted; then
d5af19ba
DJ
1328 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1329echo "$as_me: error: in \`$ac_pwd':" >&2;}
bec39cab
AC
1330 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1331echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1332 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1333echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1334 { (exit 1); exit 1; }; }
c906108c
SS
1335fi
1336
b4e70030
JB
1337ac_ext=c
1338ac_cpp='$CPP $CPPFLAGS'
1339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1341ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1342
1343
783e057b
DJ
1344gl_header_list="$gl_header_list stdint.h"
1345gl_header_list="$gl_header_list wchar.h"
1346gl_header_list="$gl_header_list string.h"
bec39cab
AC
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
bec39cab 1363
d5af19ba
DJ
1364
1365
1366
b4e70030
JB
1367 ac_config_headers="$ac_config_headers config.h:config.in"
1368
1369echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1370echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1371 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
413ccac7 1372if test "${enable_maintainer_mode+set}" = set; then
b4e70030
JB
1373 enableval="$enable_maintainer_mode"
1374 USE_MAINTAINER_MODE=$enableval
413ccac7
AC
1375else
1376 USE_MAINTAINER_MODE=no
b4e70030
JB
1377fi;
1378 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1379echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1380
413ccac7
AC
1381
1382if test $USE_MAINTAINER_MODE = yes; then
1383 MAINTAINER_MODE_TRUE=
1384 MAINTAINER_MODE_FALSE='#'
1385else
1386 MAINTAINER_MODE_TRUE='#'
1387 MAINTAINER_MODE_FALSE=
1388fi
85981d60 1389
413ccac7 1390 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1391
c906108c 1392
bec39cab
AC
1393
1394ac_ext=c
1395ac_cpp='$CPP $CPPFLAGS'
1396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1398ac_compiler_gnu=$ac_cv_c_compiler_gnu
1399if test -n "$ac_tool_prefix"; then
1400 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1401set dummy ${ac_tool_prefix}gcc; ac_word=$2
b4e70030
JB
1402echo "$as_me:$LINENO: checking for $ac_word" >&5
1403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1404if test "${ac_cv_prog_CC+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406else
1407 if test -n "$CC"; then
1408 ac_cv_prog_CC="$CC" # Let the user override the test.
1409else
1410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1411for as_dir in $PATH
1412do
1413 IFS=$as_save_IFS
1414 test -z "$as_dir" && as_dir=.
1415 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1417 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1419 break 2
1420 fi
1421done
1422done
1423
1424fi
1425fi
1426CC=$ac_cv_prog_CC
1427if test -n "$CC"; then
b4e70030
JB
1428 echo "$as_me:$LINENO: result: $CC" >&5
1429echo "${ECHO_T}$CC" >&6
bec39cab 1430else
b4e70030
JB
1431 echo "$as_me:$LINENO: result: no" >&5
1432echo "${ECHO_T}no" >&6
bec39cab
AC
1433fi
1434
1435fi
1436if test -z "$ac_cv_prog_CC"; then
1437 ac_ct_CC=$CC
1438 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1439set dummy gcc; ac_word=$2
b4e70030
JB
1440echo "$as_me:$LINENO: checking for $ac_word" >&5
1441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1442if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1444else
1445 if test -n "$ac_ct_CC"; then
1446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1447else
1448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449for as_dir in $PATH
1450do
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
1453 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1455 ac_cv_prog_ac_ct_CC="gcc"
1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457 break 2
1458 fi
1459done
1460done
1461
1462fi
1463fi
1464ac_ct_CC=$ac_cv_prog_ac_ct_CC
1465if test -n "$ac_ct_CC"; then
b4e70030
JB
1466 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1467echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1468else
b4e70030
JB
1469 echo "$as_me:$LINENO: result: no" >&5
1470echo "${ECHO_T}no" >&6
bec39cab
AC
1471fi
1472
b4e70030 1473 CC=$ac_ct_CC
bec39cab
AC
1474else
1475 CC="$ac_cv_prog_CC"
1476fi
1477
1478if test -z "$CC"; then
b4e70030
JB
1479 if test -n "$ac_tool_prefix"; then
1480 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 1481set dummy ${ac_tool_prefix}cc; ac_word=$2
b4e70030
JB
1482echo "$as_me:$LINENO: checking for $ac_word" >&5
1483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1484if test "${ac_cv_prog_CC+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1486else
1487 if test -n "$CC"; then
1488 ac_cv_prog_CC="$CC" # Let the user override the test.
1489else
bec39cab
AC
1490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491for as_dir in $PATH
1492do
1493 IFS=$as_save_IFS
1494 test -z "$as_dir" && as_dir=.
1495 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1497 ac_cv_prog_CC="${ac_tool_prefix}cc"
1498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 break 2
1500 fi
1501done
1502done
1503
c906108c
SS
1504fi
1505fi
bec39cab 1506CC=$ac_cv_prog_CC
c906108c 1507if test -n "$CC"; then
b4e70030
JB
1508 echo "$as_me:$LINENO: result: $CC" >&5
1509echo "${ECHO_T}$CC" >&6
c906108c 1510else
b4e70030
JB
1511 echo "$as_me:$LINENO: result: no" >&5
1512echo "${ECHO_T}no" >&6
c906108c
SS
1513fi
1514
b4e70030
JB
1515fi
1516if test -z "$ac_cv_prog_CC"; then
1517 ac_ct_CC=$CC
1518 # Extract the first word of "cc", so it can be a program name with args.
1519set dummy cc; ac_word=$2
1520echo "$as_me:$LINENO: checking for $ac_word" >&5
1521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524else
1525 if test -n "$ac_ct_CC"; then
1526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1527else
1528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529for as_dir in $PATH
1530do
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_ac_ct_CC="cc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537 break 2
4e8d927d 1538 fi
b4e70030
JB
1539done
1540done
1541
1542fi
1543fi
1544ac_ct_CC=$ac_cv_prog_ac_ct_CC
1545if test -n "$ac_ct_CC"; then
1546 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1547echo "${ECHO_T}$ac_ct_CC" >&6
1548else
1549 echo "$as_me:$LINENO: result: no" >&5
1550echo "${ECHO_T}no" >&6
1551fi
1552
1553 CC=$ac_ct_CC
1554else
1555 CC="$ac_cv_prog_CC"
1556fi
1557
bec39cab 1558fi
c906108c
SS
1559if test -z "$CC"; then
1560 # Extract the first word of "cc", so it can be a program name with args.
1561set dummy cc; ac_word=$2
b4e70030
JB
1562echo "$as_me:$LINENO: checking for $ac_word" >&5
1563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1564if test "${ac_cv_prog_CC+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1566else
1567 if test -n "$CC"; then
1568 ac_cv_prog_CC="$CC" # Let the user override the test.
1569else
c906108c 1570 ac_prog_rejected=no
bec39cab
AC
1571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572for as_dir in $PATH
1573do
1574 IFS=$as_save_IFS
1575 test -z "$as_dir" && as_dir=.
1576 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1579 ac_prog_rejected=yes
1580 continue
1581 fi
1582 ac_cv_prog_CC="cc"
1583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584 break 2
1585 fi
1586done
1587done
1588
c906108c
SS
1589if test $ac_prog_rejected = yes; then
1590 # We found a bogon in the path, so make sure we never use it.
1591 set dummy $ac_cv_prog_CC
1592 shift
bec39cab 1593 if test $# != 0; then
c906108c
SS
1594 # We chose a different compiler from the bogus one.
1595 # However, it has the same basename, so the bogon will be chosen
1596 # first if we set CC to just the basename; use the full file name.
1597 shift
bec39cab 1598 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1599 fi
1600fi
1601fi
1602fi
bec39cab 1603CC=$ac_cv_prog_CC
c906108c 1604if test -n "$CC"; then
b4e70030
JB
1605 echo "$as_me:$LINENO: result: $CC" >&5
1606echo "${ECHO_T}$CC" >&6
c906108c 1607else
b4e70030
JB
1608 echo "$as_me:$LINENO: result: no" >&5
1609echo "${ECHO_T}no" >&6
c906108c
SS
1610fi
1611
bec39cab
AC
1612fi
1613if test -z "$CC"; then
1614 if test -n "$ac_tool_prefix"; then
b4e70030 1615 for ac_prog in cl
bec39cab
AC
1616 do
1617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1618set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b4e70030
JB
1619echo "$as_me:$LINENO: checking for $ac_word" >&5
1620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1621if test "${ac_cv_prog_CC+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1623else
1624 if test -n "$CC"; then
1625 ac_cv_prog_CC="$CC" # Let the user override the test.
1626else
bec39cab
AC
1627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628for as_dir in $PATH
1629do
1630 IFS=$as_save_IFS
1631 test -z "$as_dir" && as_dir=.
1632 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1634 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636 break 2
1637 fi
1638done
1639done
1640
c906108c
SS
1641fi
1642fi
bec39cab 1643CC=$ac_cv_prog_CC
c906108c 1644if test -n "$CC"; then
b4e70030
JB
1645 echo "$as_me:$LINENO: result: $CC" >&5
1646echo "${ECHO_T}$CC" >&6
c906108c 1647else
b4e70030
JB
1648 echo "$as_me:$LINENO: result: no" >&5
1649echo "${ECHO_T}no" >&6
c906108c 1650fi
bec39cab
AC
1651
1652 test -n "$CC" && break
1653 done
1654fi
1655if test -z "$CC"; then
1656 ac_ct_CC=$CC
b4e70030 1657 for ac_prog in cl
bec39cab
AC
1658do
1659 # Extract the first word of "$ac_prog", so it can be a program name with args.
1660set dummy $ac_prog; ac_word=$2
b4e70030
JB
1661echo "$as_me:$LINENO: checking for $ac_word" >&5
1662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1663if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1665else
1666 if test -n "$ac_ct_CC"; then
1667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1668else
1669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670for as_dir in $PATH
1671do
1672 IFS=$as_save_IFS
1673 test -z "$as_dir" && as_dir=.
1674 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1676 ac_cv_prog_ac_ct_CC="$ac_prog"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 break 2
c906108c 1679 fi
bec39cab
AC
1680done
1681done
1682
1683fi
1684fi
1685ac_ct_CC=$ac_cv_prog_ac_ct_CC
1686if test -n "$ac_ct_CC"; then
b4e70030
JB
1687 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1688echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1689else
b4e70030
JB
1690 echo "$as_me:$LINENO: result: no" >&5
1691echo "${ECHO_T}no" >&6
c906108c
SS
1692fi
1693
bec39cab
AC
1694 test -n "$ac_ct_CC" && break
1695done
c906108c 1696
b4e70030 1697 CC=$ac_ct_CC
bec39cab
AC
1698fi
1699
1700fi
1701
1702
d5af19ba
DJ
1703test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1704echo "$as_me: error: in \`$ac_pwd':" >&2;}
1705{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
bec39cab
AC
1706See \`config.log' for more details." >&5
1707echo "$as_me: error: no acceptable C compiler found in \$PATH
1708See \`config.log' for more details." >&2;}
d5af19ba 1709 { (exit 1); exit 1; }; }; }
bec39cab
AC
1710
1711# Provide some information about the compiler.
b4e70030
JB
1712echo "$as_me:$LINENO:" \
1713 "checking for C compiler version" >&5
bec39cab 1714ac_compiler=`set X $ac_compile; echo $2`
b4e70030
JB
1715{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1716 (eval $ac_compiler --version </dev/null >&5) 2>&5
bec39cab
AC
1717 ac_status=$?
1718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719 (exit $ac_status); }
b4e70030
JB
1720{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1721 (eval $ac_compiler -v </dev/null >&5) 2>&5
bec39cab
AC
1722 ac_status=$?
1723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1724 (exit $ac_status); }
b4e70030
JB
1725{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1726 (eval $ac_compiler -V </dev/null >&5) 2>&5
bec39cab
AC
1727 ac_status=$?
1728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1729 (exit $ac_status); }
1730
1731cat >conftest.$ac_ext <<_ACEOF
1732/* confdefs.h. */
1733_ACEOF
1734cat confdefs.h >>conftest.$ac_ext
1735cat >>conftest.$ac_ext <<_ACEOF
1736/* end confdefs.h. */
1737
1738int
1739main ()
1740{
1741
1742 ;
1743 return 0;
1744}
1745_ACEOF
1746ac_clean_files_save=$ac_clean_files
b4e70030 1747ac_clean_files="$ac_clean_files a.out a.exe b.out"
bec39cab
AC
1748# Try to create an executable without -o first, disregard a.out.
1749# It will help us diagnose broken compilers, and finding out an intuition
1750# of exeext.
b4e70030
JB
1751echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1752echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
bec39cab
AC
1753ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1754if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1755 (eval $ac_link_default) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }; then
b4e70030
JB
1759 # Find the output, starting from the most likely. This scheme is
1760# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1761# resort.
1762
1763# Be careful to initialize this variable, since it used to be cached.
1764# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1765ac_cv_exeext=
1766# b.out is created by i960 compilers.
1767for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
bec39cab
AC
1768do
1769 test -f "$ac_file" || continue
1770 case $ac_file in
b4e70030
JB
1771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1772 ;;
1773 conftest.$ac_ext )
1774 # This is the source file.
1775 ;;
1776 [ab].out )
1777 # We found the default executable, but exeext='' is most
1778 # certainly right.
1779 break;;
1780 *.* )
1781 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1782 # FIXME: I believe we export ac_cv_exeext for Libtool,
1783 # but it would be cool to find out if it's true. Does anybody
1784 # maintain Libtool? --akim.
1785 export ac_cv_exeext
1786 break;;
1787 * )
1788 break;;
bec39cab
AC
1789 esac
1790done
1791else
1792 echo "$as_me: failed program was:" >&5
1793sed 's/^/| /' conftest.$ac_ext >&5
1794
d5af19ba
DJ
1795{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1796echo "$as_me: error: in \`$ac_pwd':" >&2;}
bec39cab
AC
1797{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1798See \`config.log' for more details." >&5
1799echo "$as_me: error: C compiler cannot create executables
1800See \`config.log' for more details." >&2;}
d5af19ba 1801 { (exit 77); exit 77; }; }; }
bec39cab
AC
1802fi
1803
b4e70030
JB
1804ac_exeext=$ac_cv_exeext
1805echo "$as_me:$LINENO: result: $ac_file" >&5
1806echo "${ECHO_T}$ac_file" >&6
1807
1808# Check the compiler produces executables we can run. If not, either
bec39cab 1809# the compiler is broken, or we cross compile.
b4e70030
JB
1810echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1811echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
bec39cab
AC
1812# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1813# If not cross compiling, check that we can run a simple program.
1814if test "$cross_compiling" != yes; then
1815 if { ac_try='./$ac_file'
1816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1817 (eval $ac_try) 2>&5
1818 ac_status=$?
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; }; then
1821 cross_compiling=no
c906108c 1822 else
bec39cab
AC
1823 if test "$cross_compiling" = maybe; then
1824 cross_compiling=yes
1825 else
d5af19ba
DJ
1826 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1827echo "$as_me: error: in \`$ac_pwd':" >&2;}
1828{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
bec39cab
AC
1829If you meant to cross compile, use \`--host'.
1830See \`config.log' for more details." >&5
1831echo "$as_me: error: cannot run C compiled programs.
1832If you meant to cross compile, use \`--host'.
1833See \`config.log' for more details." >&2;}
d5af19ba 1834 { (exit 1); exit 1; }; }; }
bec39cab 1835 fi
c906108c 1836 fi
bec39cab 1837fi
b4e70030
JB
1838echo "$as_me:$LINENO: result: yes" >&5
1839echo "${ECHO_T}yes" >&6
bec39cab 1840
b4e70030
JB
1841rm -f a.out a.exe conftest$ac_cv_exeext b.out
1842ac_clean_files=$ac_clean_files_save
1843# Check the compiler produces executables we can run. If not, either
1844# the compiler is broken, or we cross compile.
1845echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1846echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1847echo "$as_me:$LINENO: result: $cross_compiling" >&5
1848echo "${ECHO_T}$cross_compiling" >&6
4e8d927d 1849
b4e70030
JB
1850echo "$as_me:$LINENO: checking for suffix of executables" >&5
1851echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
bec39cab
AC
1853 (eval $ac_link) 2>&5
1854 ac_status=$?
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }; then
b4e70030
JB
1857 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1858# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1859# work properly (i.e., refer to `conftest.exe'), while it won't with
1860# `rm'.
1861for ac_file in conftest.exe conftest conftest.*; do
1862 test -f "$ac_file" || continue
1863 case $ac_file in
1864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1865 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1866 export ac_cv_exeext
1867 break;;
1868 * ) break;;
1869 esac
1870done
c906108c 1871else
d5af19ba
DJ
1872 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1873echo "$as_me: error: in \`$ac_pwd':" >&2;}
1874{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
bec39cab
AC
1875See \`config.log' for more details." >&5
1876echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1877See \`config.log' for more details." >&2;}
d5af19ba 1878 { (exit 1); exit 1; }; }; }
c906108c 1879fi
c906108c 1880
b4e70030
JB
1881rm -f conftest$ac_cv_exeext
1882echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1883echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1884
b4e70030 1885rm -f conftest.$ac_ext
bec39cab
AC
1886EXEEXT=$ac_cv_exeext
1887ac_exeext=$EXEEXT
b4e70030
JB
1888echo "$as_me:$LINENO: checking for suffix of object files" >&5
1889echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
bec39cab
AC
1890if test "${ac_cv_objext+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1892else
b4e70030
JB
1893 cat >conftest.$ac_ext <<_ACEOF
1894/* confdefs.h. */
1895_ACEOF
1896cat confdefs.h >>conftest.$ac_ext
1897cat >>conftest.$ac_ext <<_ACEOF
1898/* end confdefs.h. */
1899
1900int
1901main ()
1902{
1903
1904 ;
1905 return 0;
1906}
1907_ACEOF
1908rm -f conftest.o conftest.obj
bec39cab
AC
1909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1910 (eval $ac_compile) 2>&5
1911 ac_status=$?
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; then
b4e70030 1914 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
bec39cab 1915 case $ac_file in
b4e70030 1916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
bec39cab
AC
1917 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1918 break;;
1919 esac
1920done
c906108c 1921else
bec39cab
AC
1922 echo "$as_me: failed program was:" >&5
1923sed 's/^/| /' conftest.$ac_ext >&5
1924
d5af19ba
DJ
1925{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1926echo "$as_me: error: in \`$ac_pwd':" >&2;}
bec39cab
AC
1927{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1928See \`config.log' for more details." >&5
1929echo "$as_me: error: cannot compute suffix of object files: cannot compile
1930See \`config.log' for more details." >&2;}
d5af19ba 1931 { (exit 1); exit 1; }; }; }
c906108c
SS
1932fi
1933
b4e70030 1934rm -f conftest.$ac_cv_objext conftest.$ac_ext
bec39cab 1935fi
b4e70030
JB
1936echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1937echo "${ECHO_T}$ac_cv_objext" >&6
bec39cab
AC
1938OBJEXT=$ac_cv_objext
1939ac_objext=$OBJEXT
b4e70030
JB
1940echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1941echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
bec39cab
AC
1942if test "${ac_cv_c_compiler_gnu+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1944else
bec39cab
AC
1945 cat >conftest.$ac_ext <<_ACEOF
1946/* confdefs.h. */
1947_ACEOF
1948cat confdefs.h >>conftest.$ac_ext
1949cat >>conftest.$ac_ext <<_ACEOF
1950/* end confdefs.h. */
1951
1952int
1953main ()
1954{
1955#ifndef __GNUC__
1956 choke me
1957#endif
1958
1959 ;
1960 return 0;
1961}
1962_ACEOF
1963rm -f conftest.$ac_objext
1964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1965 (eval $ac_compile) 2>conftest.er1
1966 ac_status=$?
1967 grep -v '^ *+' conftest.er1 >conftest.err
1968 rm -f conftest.er1
1969 cat conftest.err >&5
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); } &&
b4e70030
JB
1972 { ac_try='test -z "$ac_c_werror_flag"
1973 || test ! -s conftest.err'
bec39cab
AC
1974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1975 (eval $ac_try) 2>&5
1976 ac_status=$?
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }; } &&
1979 { ac_try='test -s conftest.$ac_objext'
1980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1981 (eval $ac_try) 2>&5
1982 ac_status=$?
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; }; then
1985 ac_compiler_gnu=yes
1986else
1987 echo "$as_me: failed program was:" >&5
1988sed 's/^/| /' conftest.$ac_ext >&5
1989
b4e70030 1990ac_compiler_gnu=no
bec39cab
AC
1991fi
1992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1993ac_cv_c_compiler_gnu=$ac_compiler_gnu
1994
1995fi
b4e70030
JB
1996echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1997echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
bec39cab
AC
1998GCC=`test $ac_compiler_gnu = yes && echo yes`
1999ac_test_CFLAGS=${CFLAGS+set}
2000ac_save_CFLAGS=$CFLAGS
b4e70030
JB
2001CFLAGS="-g"
2002echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2003echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
bec39cab
AC
2004if test "${ac_cv_prog_cc_g+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2006else
b4e70030 2007 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
2008/* confdefs.h. */
2009_ACEOF
2010cat confdefs.h >>conftest.$ac_ext
2011cat >>conftest.$ac_ext <<_ACEOF
2012/* end confdefs.h. */
2013
2014int
2015main ()
2016{
2017
2018 ;
2019 return 0;
2020}
2021_ACEOF
2022rm -f conftest.$ac_objext
2023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2024 (eval $ac_compile) 2>conftest.er1
2025 ac_status=$?
2026 grep -v '^ *+' conftest.er1 >conftest.err
2027 rm -f conftest.er1
2028 cat conftest.err >&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); } &&
b4e70030
JB
2031 { ac_try='test -z "$ac_c_werror_flag"
2032 || test ! -s conftest.err'
bec39cab
AC
2033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2034 (eval $ac_try) 2>&5
2035 ac_status=$?
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; } &&
2038 { ac_try='test -s conftest.$ac_objext'
2039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2040 (eval $ac_try) 2>&5
2041 ac_status=$?
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }; }; then
c906108c
SS
2044 ac_cv_prog_cc_g=yes
2045else
bec39cab
AC
2046 echo "$as_me: failed program was:" >&5
2047sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2048
b4e70030 2049ac_cv_prog_cc_g=no
4e8d927d 2050fi
bec39cab
AC
2051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2052fi
b4e70030
JB
2053echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2054echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2055if test "$ac_test_CFLAGS" = set; then
bec39cab 2056 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2057elif test $ac_cv_prog_cc_g = yes; then
2058 if test "$GCC" = yes; then
2059 CFLAGS="-g -O2"
2060 else
2061 CFLAGS="-g"
2062 fi
2063else
2064 if test "$GCC" = yes; then
2065 CFLAGS="-O2"
2066 else
2067 CFLAGS=
2068 fi
2069fi
b4e70030
JB
2070echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2071echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2072if test "${ac_cv_prog_cc_stdc+set}" = set; then
bec39cab
AC
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074else
b4e70030 2075 ac_cv_prog_cc_stdc=no
bec39cab
AC
2076ac_save_CC=$CC
2077cat >conftest.$ac_ext <<_ACEOF
2078/* confdefs.h. */
2079_ACEOF
2080cat confdefs.h >>conftest.$ac_ext
2081cat >>conftest.$ac_ext <<_ACEOF
2082/* end confdefs.h. */
c906108c
SS
2083#include <stdarg.h>
2084#include <stdio.h>
2085#include <sys/types.h>
2086#include <sys/stat.h>
2087/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2088struct buf { int x; };
2089FILE * (*rcsopen) (struct buf *, struct stat *, int);
2090static char *e (p, i)
2091 char **p;
2092 int i;
2093{
2094 return p[i];
2095}
2096static char *f (char * (*g) (char **, int), char **p, ...)
2097{
2098 char *s;
2099 va_list v;
2100 va_start (v,p);
2101 s = g (p, va_arg (v,int));
2102 va_end (v);
2103 return s;
2104}
bec39cab
AC
2105
2106/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2107 function prototypes and stuff, but not '\xHH' hex character constants.
2108 These don't provoke an error unfortunately, instead are silently treated
b4e70030 2109 as 'x'. The following induces an error, until -std1 is added to get
bec39cab
AC
2110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2111 array size at least. It's necessary to write '\x00'==0 to get something
b4e70030 2112 that's true only with -std1. */
bec39cab
AC
2113int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2114
c906108c
SS
2115int test (int i, double x);
2116struct s1 {int (*f) (int a);};
2117struct s2 {int (*f) (double a);};
2118int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2119int argc;
2120char **argv;
bec39cab
AC
2121int
2122main ()
2123{
c906108c 2124return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2125 ;
2126 return 0;
2127}
2128_ACEOF
b4e70030
JB
2129# Don't try gcc -ansi; that turns off useful extensions and
2130# breaks some systems' header files.
2131# AIX -qlanglvl=ansi
2132# Ultrix and OSF/1 -std1
2133# HP-UX 10.20 and later -Ae
2134# HP-UX older versions -Aa -D_HPUX_SOURCE
2135# SVR4 -Xc -D__EXTENSIONS__
2136for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
2137do
2138 CC="$ac_save_CC $ac_arg"
2139 rm -f conftest.$ac_objext
2140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141 (eval $ac_compile) 2>conftest.er1
2142 ac_status=$?
2143 grep -v '^ *+' conftest.er1 >conftest.err
2144 rm -f conftest.er1
2145 cat conftest.err >&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); } &&
b4e70030
JB
2148 { ac_try='test -z "$ac_c_werror_flag"
2149 || test ! -s conftest.err'
bec39cab
AC
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 (eval $ac_try) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
b4e70030
JB
2161 ac_cv_prog_cc_stdc=$ac_arg
2162break
c906108c 2163else
bec39cab
AC
2164 echo "$as_me: failed program was:" >&5
2165sed 's/^/| /' conftest.$ac_ext >&5
2166
c906108c 2167fi
bec39cab 2168rm -f conftest.err conftest.$ac_objext
c906108c 2169done
b4e70030 2170rm -f conftest.$ac_ext conftest.$ac_objext
bec39cab 2171CC=$ac_save_CC
c906108c
SS
2172
2173fi
b4e70030
JB
2174
2175case "x$ac_cv_prog_cc_stdc" in
2176 x|xno)
2177 echo "$as_me:$LINENO: result: none needed" >&5
2178echo "${ECHO_T}none needed" >&6 ;;
bec39cab 2179 *)
b4e70030
JB
2180 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2181echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2182 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2183esac
2184
b4e70030
JB
2185# Some people use a C++ compiler to compile C. Since we use `exit',
2186# in C++ we need to declare it. In case someone uses the same compiler
2187# for both compiling C and C++ we need to have the C++ compiler decide
2188# the declaration of exit, since it's the most demanding environment.
2189cat >conftest.$ac_ext <<_ACEOF
2190#ifndef __cplusplus
2191 choke me
2192#endif
2193_ACEOF
2194rm -f conftest.$ac_objext
2195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2196 (eval $ac_compile) 2>conftest.er1
2197 ac_status=$?
2198 grep -v '^ *+' conftest.er1 >conftest.err
2199 rm -f conftest.er1
2200 cat conftest.err >&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); } &&
2203 { ac_try='test -z "$ac_c_werror_flag"
2204 || test ! -s conftest.err'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 (eval $ac_try) 2>&5
2207 ac_status=$?
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; } &&
2210 { ac_try='test -s conftest.$ac_objext'
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 (eval $ac_try) 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; }; then
2216 for ac_declaration in \
2217 '' \
2218 'extern "C" void std::exit (int) throw (); using std::exit;' \
2219 'extern "C" void std::exit (int); using std::exit;' \
2220 'extern "C" void exit (int) throw ();' \
2221 'extern "C" void exit (int);' \
2222 'void exit (int);'
2223do
2224 cat >conftest.$ac_ext <<_ACEOF
2225/* confdefs.h. */
2226_ACEOF
2227cat confdefs.h >>conftest.$ac_ext
2228cat >>conftest.$ac_ext <<_ACEOF
2229/* end confdefs.h. */
2230$ac_declaration
2231#include <stdlib.h>
2232int
2233main ()
2234{
2235exit (42);
2236 ;
2237 return 0;
2238}
2239_ACEOF
2240rm -f conftest.$ac_objext
2241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242 (eval $ac_compile) 2>conftest.er1
2243 ac_status=$?
2244 grep -v '^ *+' conftest.er1 >conftest.err
2245 rm -f conftest.er1
2246 cat conftest.err >&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); } &&
2249 { ac_try='test -z "$ac_c_werror_flag"
2250 || test ! -s conftest.err'
2251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252 (eval $ac_try) 2>&5
2253 ac_status=$?
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; } &&
2256 { ac_try='test -s conftest.$ac_objext'
2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258 (eval $ac_try) 2>&5
2259 ac_status=$?
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; }; then
2262 :
2263else
2264 echo "$as_me: failed program was:" >&5
2265sed 's/^/| /' conftest.$ac_ext >&5
2266
2267continue
2268fi
2269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2270 cat >conftest.$ac_ext <<_ACEOF
2271/* confdefs.h. */
2272_ACEOF
2273cat confdefs.h >>conftest.$ac_ext
2274cat >>conftest.$ac_ext <<_ACEOF
2275/* end confdefs.h. */
2276$ac_declaration
2277int
2278main ()
2279{
2280exit (42);
2281 ;
2282 return 0;
2283}
2284_ACEOF
2285rm -f conftest.$ac_objext
2286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287 (eval $ac_compile) 2>conftest.er1
2288 ac_status=$?
2289 grep -v '^ *+' conftest.er1 >conftest.err
2290 rm -f conftest.er1
2291 cat conftest.err >&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); } &&
2294 { ac_try='test -z "$ac_c_werror_flag"
2295 || test ! -s conftest.err'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297 (eval $ac_try) 2>&5
2298 ac_status=$?
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; } &&
2301 { ac_try='test -s conftest.$ac_objext'
2302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303 (eval $ac_try) 2>&5
2304 ac_status=$?
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; }; then
2307 break
2308else
2309 echo "$as_me: failed program was:" >&5
2310sed 's/^/| /' conftest.$ac_ext >&5
2311
2312fi
2313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2314done
2315rm -f conftest*
2316if test -n "$ac_declaration"; then
2317 echo '#ifdef __cplusplus' >>confdefs.h
2318 echo $ac_declaration >>confdefs.h
2319 echo '#endif' >>confdefs.h
2320fi
2321
2322else
2323 echo "$as_me: failed program was:" >&5
2324sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2325
b4e70030
JB
2326fi
2327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
2328ac_ext=c
2329ac_cpp='$CPP $CPPFLAGS'
2330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2333
60ca704f 2334
bec39cab
AC
2335cat >>confdefs.h <<\_ACEOF
2336#define _GNU_SOURCE 1
2337_ACEOF
c906108c
SS
2338
2339
8bb2c122 2340
bec39cab
AC
2341ac_ext=c
2342ac_cpp='$CPP $CPPFLAGS'
2343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4e70030
JB
2346echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2347echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
bec39cab
AC
2348# On Suns, sometimes $CPP names a directory.
2349if test -n "$CPP" && test -d "$CPP"; then
2350 CPP=
8bb2c122 2351fi
bec39cab
AC
2352if test -z "$CPP"; then
2353 if test "${ac_cv_prog_CPP+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355else
2356 # Double quotes because CPP needs to be expanded
2357 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2358 do
2359 ac_preproc_ok=false
2360for ac_c_preproc_warn_flag in '' yes
2361do
2362 # Use a header file that comes with gcc, so configuring glibc
2363 # with a fresh cross-compiler works.
2364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2365 # <limits.h> exists even on freestanding compilers.
2366 # On the NeXT, cc -E runs the code through the compiler's parser,
2367 # not just through cpp. "Syntax error" is here to catch this case.
2368 cat >conftest.$ac_ext <<_ACEOF
2369/* confdefs.h. */
2370_ACEOF
2371cat confdefs.h >>conftest.$ac_ext
2372cat >>conftest.$ac_ext <<_ACEOF
2373/* end confdefs.h. */
2374#ifdef __STDC__
2375# include <limits.h>
2376#else
2377# include <assert.h>
2378#endif
2379 Syntax error
2380_ACEOF
2381if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2383 ac_status=$?
2384 grep -v '^ *+' conftest.er1 >conftest.err
2385 rm -f conftest.er1
2386 cat conftest.err >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); } >/dev/null; then
2389 if test -s conftest.err; then
2390 ac_cpp_err=$ac_c_preproc_warn_flag
2391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2392 else
2393 ac_cpp_err=
2394 fi
8bb2c122 2395else
bec39cab 2396 ac_cpp_err=yes
8bb2c122 2397fi
bec39cab
AC
2398if test -z "$ac_cpp_err"; then
2399 :
8bb2c122 2400else
bec39cab
AC
2401 echo "$as_me: failed program was:" >&5
2402sed 's/^/| /' conftest.$ac_ext >&5
2403
2404 # Broken: fails on valid input.
2405continue
2406fi
2407rm -f conftest.err conftest.$ac_ext
2408
b4e70030 2409 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2410 # can be detected and how.
2411 cat >conftest.$ac_ext <<_ACEOF
2412/* confdefs.h. */
2413_ACEOF
2414cat confdefs.h >>conftest.$ac_ext
2415cat >>conftest.$ac_ext <<_ACEOF
2416/* end confdefs.h. */
2417#include <ac_nonexistent.h>
2418_ACEOF
2419if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2421 ac_status=$?
2422 grep -v '^ *+' conftest.er1 >conftest.err
2423 rm -f conftest.er1
2424 cat conftest.err >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } >/dev/null; then
2427 if test -s conftest.err; then
2428 ac_cpp_err=$ac_c_preproc_warn_flag
2429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2430 else
2431 ac_cpp_err=
2432 fi
8bb2c122 2433else
bec39cab 2434 ac_cpp_err=yes
8bb2c122 2435fi
bec39cab
AC
2436if test -z "$ac_cpp_err"; then
2437 # Broken: success on invalid input.
2438continue
8bb2c122 2439else
bec39cab
AC
2440 echo "$as_me: failed program was:" >&5
2441sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2442
bec39cab
AC
2443 # Passes both tests.
2444ac_preproc_ok=:
2445break
8bb2c122 2446fi
bec39cab 2447rm -f conftest.err conftest.$ac_ext
8bb2c122 2448
bec39cab
AC
2449done
2450# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2451rm -f conftest.err conftest.$ac_ext
2452if $ac_preproc_ok; then
2453 break
2454fi
8bb2c122 2455
bec39cab
AC
2456 done
2457 ac_cv_prog_CPP=$CPP
ddc9cd0f 2458
c906108c 2459fi
bec39cab
AC
2460 CPP=$ac_cv_prog_CPP
2461else
2462 ac_cv_prog_CPP=$CPP
c906108c 2463fi
b4e70030
JB
2464echo "$as_me:$LINENO: result: $CPP" >&5
2465echo "${ECHO_T}$CPP" >&6
bec39cab
AC
2466ac_preproc_ok=false
2467for ac_c_preproc_warn_flag in '' yes
2468do
2469 # Use a header file that comes with gcc, so configuring glibc
2470 # with a fresh cross-compiler works.
2471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2472 # <limits.h> exists even on freestanding compilers.
2473 # On the NeXT, cc -E runs the code through the compiler's parser,
2474 # not just through cpp. "Syntax error" is here to catch this case.
2475 cat >conftest.$ac_ext <<_ACEOF
2476/* confdefs.h. */
2477_ACEOF
2478cat confdefs.h >>conftest.$ac_ext
2479cat >>conftest.$ac_ext <<_ACEOF
2480/* end confdefs.h. */
2481#ifdef __STDC__
2482# include <limits.h>
2483#else
2484# include <assert.h>
2485#endif
2486 Syntax error
2487_ACEOF
2488if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2490 ac_status=$?
2491 grep -v '^ *+' conftest.er1 >conftest.err
2492 rm -f conftest.er1
2493 cat conftest.err >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } >/dev/null; then
2496 if test -s conftest.err; then
2497 ac_cpp_err=$ac_c_preproc_warn_flag
2498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2499 else
2500 ac_cpp_err=
2501 fi
c906108c 2502else
bec39cab 2503 ac_cpp_err=yes
c906108c 2504fi
bec39cab
AC
2505if test -z "$ac_cpp_err"; then
2506 :
c906108c 2507else
bec39cab
AC
2508 echo "$as_me: failed program was:" >&5
2509sed 's/^/| /' conftest.$ac_ext >&5
2510
2511 # Broken: fails on valid input.
2512continue
2513fi
2514rm -f conftest.err conftest.$ac_ext
2515
b4e70030 2516 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2517 # can be detected and how.
2518 cat >conftest.$ac_ext <<_ACEOF
2519/* confdefs.h. */
2520_ACEOF
2521cat confdefs.h >>conftest.$ac_ext
2522cat >>conftest.$ac_ext <<_ACEOF
2523/* end confdefs.h. */
2524#include <ac_nonexistent.h>
2525_ACEOF
2526if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2528 ac_status=$?
2529 grep -v '^ *+' conftest.er1 >conftest.err
2530 rm -f conftest.er1
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } >/dev/null; then
2534 if test -s conftest.err; then
2535 ac_cpp_err=$ac_c_preproc_warn_flag
2536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2537 else
2538 ac_cpp_err=
2539 fi
c906108c 2540else
bec39cab 2541 ac_cpp_err=yes
c906108c 2542fi
bec39cab
AC
2543if test -z "$ac_cpp_err"; then
2544 # Broken: success on invalid input.
2545continue
c906108c 2546else
bec39cab
AC
2547 echo "$as_me: failed program was:" >&5
2548sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2549
bec39cab
AC
2550 # Passes both tests.
2551ac_preproc_ok=:
2552break
c906108c 2553fi
bec39cab 2554rm -f conftest.err conftest.$ac_ext
c906108c 2555
bec39cab
AC
2556done
2557# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2558rm -f conftest.err conftest.$ac_ext
2559if $ac_preproc_ok; then
c906108c
SS
2560 :
2561else
d5af19ba
DJ
2562 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2563echo "$as_me: error: in \`$ac_pwd':" >&2;}
2564{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
bec39cab
AC
2565See \`config.log' for more details." >&5
2566echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2567See \`config.log' for more details." >&2;}
d5af19ba 2568 { (exit 1); exit 1; }; }; }
c906108c 2569fi
c906108c 2570
bec39cab
AC
2571ac_ext=c
2572ac_cpp='$CPP $CPPFLAGS'
2573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2575ac_compiler_gnu=$ac_cv_c_compiler_gnu
2576
2577
b4e70030
JB
2578echo "$as_me:$LINENO: checking for egrep" >&5
2579echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2580if test "${ac_cv_prog_egrep+set}" = set; then
4e8d927d
DJ
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2582else
b4e70030
JB
2583 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2584 then ac_cv_prog_egrep='grep -E'
2585 else ac_cv_prog_egrep='egrep'
bec39cab 2586 fi
4e8d927d 2587fi
b4e70030
JB
2588echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2589echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2590 EGREP=$ac_cv_prog_egrep
c906108c 2591
bec39cab
AC
2592
2593
b4e70030
JB
2594echo "$as_me:$LINENO: checking for AIX" >&5
2595echo $ECHO_N "checking for AIX... $ECHO_C" >&6
bec39cab
AC
2596cat >conftest.$ac_ext <<_ACEOF
2597/* confdefs.h. */
2598_ACEOF
2599cat confdefs.h >>conftest.$ac_ext
2600cat >>conftest.$ac_ext <<_ACEOF
2601/* end confdefs.h. */
2602#ifdef _AIX
2603 yes
2604#endif
2605
2606_ACEOF
c906108c 2607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 2608 $EGREP "yes" >/dev/null 2>&1; then
b4e70030
JB
2609 echo "$as_me:$LINENO: result: yes" >&5
2610echo "${ECHO_T}yes" >&6
bec39cab
AC
2611cat >>confdefs.h <<\_ACEOF
2612#define _ALL_SOURCE 1
2613_ACEOF
2614
c906108c 2615else
b4e70030
JB
2616 echo "$as_me:$LINENO: result: no" >&5
2617echo "${ECHO_T}no" >&6
c906108c
SS
2618fi
2619rm -f conftest*
2620
c906108c 2621
b4e70030
JB
2622echo "$as_me:$LINENO: checking for library containing strerror" >&5
2623echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
bec39cab
AC
2624if test "${ac_cv_search_strerror+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2626else
bec39cab 2627 ac_func_search_save_LIBS=$LIBS
b4e70030 2628ac_cv_search_strerror=no
bec39cab
AC
2629cat >conftest.$ac_ext <<_ACEOF
2630/* confdefs.h. */
2631_ACEOF
2632cat confdefs.h >>conftest.$ac_ext
2633cat >>conftest.$ac_ext <<_ACEOF
2634/* end confdefs.h. */
c906108c 2635
b4e70030 2636/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
2637#ifdef __cplusplus
2638extern "C"
2639#endif
b4e70030
JB
2640/* We use char because int might match the return type of a gcc2
2641 builtin and then its argument prototype would still apply. */
bec39cab
AC
2642char strerror ();
2643int
2644main ()
2645{
b4e70030 2646strerror ();
bec39cab
AC
2647 ;
2648 return 0;
2649}
2650_ACEOF
b4e70030 2651rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
2652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2653 (eval $ac_link) 2>conftest.er1
2654 ac_status=$?
2655 grep -v '^ *+' conftest.er1 >conftest.err
2656 rm -f conftest.er1
2657 cat conftest.err >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } &&
b4e70030
JB
2660 { ac_try='test -z "$ac_c_werror_flag"
2661 || test ! -s conftest.err'
bec39cab
AC
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 (eval $ac_try) 2>&5
2664 ac_status=$?
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; } &&
2667 { ac_try='test -s conftest$ac_exeext'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 (eval $ac_try) 2>&5
2670 ac_status=$?
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; }; then
b4e70030 2673 ac_cv_search_strerror="none required"
c906108c 2674else
bec39cab
AC
2675 echo "$as_me: failed program was:" >&5
2676sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2677
2678fi
bec39cab 2679rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
2680 conftest$ac_exeext conftest.$ac_ext
2681if test "$ac_cv_search_strerror" = no; then
2682 for ac_lib in cposix; do
2683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2684 cat >conftest.$ac_ext <<_ACEOF
2685/* confdefs.h. */
2686_ACEOF
2687cat confdefs.h >>conftest.$ac_ext
2688cat >>conftest.$ac_ext <<_ACEOF
2689/* end confdefs.h. */
2690
2691/* Override any gcc2 internal prototype to avoid an error. */
2692#ifdef __cplusplus
2693extern "C"
2694#endif
2695/* We use char because int might match the return type of a gcc2
2696 builtin and then its argument prototype would still apply. */
2697char strerror ();
2698int
2699main ()
2700{
2701strerror ();
2702 ;
2703 return 0;
2704}
2705_ACEOF
2706rm -f conftest.$ac_objext conftest$ac_exeext
2707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2708 (eval $ac_link) 2>conftest.er1
2709 ac_status=$?
2710 grep -v '^ *+' conftest.er1 >conftest.err
2711 rm -f conftest.er1
2712 cat conftest.err >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 { ac_try='test -z "$ac_c_werror_flag"
2716 || test ! -s conftest.err'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 (eval $ac_try) 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; } &&
2722 { ac_try='test -s conftest$ac_exeext'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 (eval $ac_try) 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2728 ac_cv_search_strerror="-l$ac_lib"
2729break
4e8d927d 2730else
b4e70030
JB
2731 echo "$as_me: failed program was:" >&5
2732sed 's/^/| /' conftest.$ac_ext >&5
2733
2734fi
2735rm -f conftest.err conftest.$ac_objext \
2736 conftest$ac_exeext conftest.$ac_ext
2737 done
c906108c 2738fi
bec39cab 2739LIBS=$ac_func_search_save_LIBS
c906108c 2740fi
b4e70030
JB
2741echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2742echo "${ECHO_T}$ac_cv_search_strerror" >&6
2743if test "$ac_cv_search_strerror" != no; then
2744 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
bec39cab 2745
c906108c
SS
2746fi
2747
783e057b
DJ
2748if test -n "$ac_tool_prefix"; then
2749 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2750set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2751echo "$as_me:$LINENO: checking for $ac_word" >&5
2752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2753if test "${ac_cv_prog_RANLIB+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2755else
2756 if test -n "$RANLIB"; then
2757 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2758else
2759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760for as_dir in $PATH
2761do
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2766 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 break 2
2769 fi
2770done
2771done
c906108c 2772
783e057b
DJ
2773fi
2774fi
2775RANLIB=$ac_cv_prog_RANLIB
2776if test -n "$RANLIB"; then
2777 echo "$as_me:$LINENO: result: $RANLIB" >&5
2778echo "${ECHO_T}$RANLIB" >&6
2779else
2780 echo "$as_me:$LINENO: result: no" >&5
2781echo "${ECHO_T}no" >&6
2782fi
bec39cab 2783
783e057b
DJ
2784fi
2785if test -z "$ac_cv_prog_RANLIB"; then
2786 ac_ct_RANLIB=$RANLIB
2787 # Extract the first word of "ranlib", so it can be a program name with args.
2788set dummy ranlib; ac_word=$2
2789echo "$as_me:$LINENO: checking for $ac_word" >&5
2790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2791if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
bec39cab 2792 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2793else
783e057b
DJ
2794 if test -n "$ac_ct_RANLIB"; then
2795 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2796else
2797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798for as_dir in $PATH
bec39cab 2799do
783e057b
DJ
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804 ac_cv_prog_ac_ct_RANLIB="ranlib"
2805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808done
2809done
2810
2811 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2812fi
2813fi
2814ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2815if test -n "$ac_ct_RANLIB"; then
2816 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2817echo "${ECHO_T}$ac_ct_RANLIB" >&6
2818else
2819 echo "$as_me:$LINENO: result: no" >&5
2820echo "${ECHO_T}no" >&6
2821fi
2822
2823 RANLIB=$ac_ct_RANLIB
2824else
2825 RANLIB="$ac_cv_prog_RANLIB"
2826fi
2827
2828echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2829echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2830if test "${ac_cv_header_stdc+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832else
bec39cab
AC
2833 cat >conftest.$ac_ext <<_ACEOF
2834/* confdefs.h. */
2835_ACEOF
2836cat confdefs.h >>conftest.$ac_ext
2837cat >>conftest.$ac_ext <<_ACEOF
2838/* end confdefs.h. */
783e057b 2839#include <stdlib.h>
bec39cab 2840#include <stdarg.h>
783e057b
DJ
2841#include <string.h>
2842#include <float.h>
c906108c 2843
bec39cab
AC
2844int
2845main ()
2846{
c906108c 2847
bec39cab
AC
2848 ;
2849 return 0;
2850}
2851_ACEOF
2852rm -f conftest.$ac_objext
2853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>conftest.er1
2855 ac_status=$?
2856 grep -v '^ *+' conftest.er1 >conftest.err
2857 rm -f conftest.er1
2858 cat conftest.err >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
b4e70030
JB
2861 { ac_try='test -z "$ac_c_werror_flag"
2862 || test ! -s conftest.err'
bec39cab
AC
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 (eval $ac_try) 2>&5
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; } &&
2868 { ac_try='test -s conftest.$ac_objext'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 (eval $ac_try) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
783e057b 2874 ac_cv_header_stdc=yes
c906108c 2875else
bec39cab
AC
2876 echo "$as_me: failed program was:" >&5
2877sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2878
783e057b 2879ac_cv_header_stdc=no
c906108c 2880fi
bec39cab 2881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2882
783e057b
DJ
2883if test $ac_cv_header_stdc = yes; then
2884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2885 cat >conftest.$ac_ext <<_ACEOF
2886/* confdefs.h. */
2887_ACEOF
2888cat confdefs.h >>conftest.$ac_ext
2889cat >>conftest.$ac_ext <<_ACEOF
2890/* end confdefs.h. */
2891#include <string.h>
c906108c 2892
783e057b
DJ
2893_ACEOF
2894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2895 $EGREP "memchr" >/dev/null 2>&1; then
2896 :
c906108c 2897else
783e057b 2898 ac_cv_header_stdc=no
c906108c 2899fi
783e057b 2900rm -f conftest*
c906108c
SS
2901
2902fi
2903
783e057b
DJ
2904if test $ac_cv_header_stdc = yes; then
2905 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2906 cat >conftest.$ac_ext <<_ACEOF
2907/* confdefs.h. */
2908_ACEOF
2909cat confdefs.h >>conftest.$ac_ext
2910cat >>conftest.$ac_ext <<_ACEOF
2911/* end confdefs.h. */
2912#include <stdlib.h>
bec39cab 2913
783e057b
DJ
2914_ACEOF
2915if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2916 $EGREP "free" >/dev/null 2>&1; then
2917 :
bec39cab 2918else
783e057b 2919 ac_cv_header_stdc=no
bec39cab 2920fi
783e057b 2921rm -f conftest*
bec39cab
AC
2922
2923fi
bec39cab 2924
783e057b
DJ
2925if test $ac_cv_header_stdc = yes; then
2926 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2927 if test "$cross_compiling" = yes; then
2928 :
bec39cab 2929else
783e057b
DJ
2930 cat >conftest.$ac_ext <<_ACEOF
2931/* confdefs.h. */
2932_ACEOF
2933cat confdefs.h >>conftest.$ac_ext
2934cat >>conftest.$ac_ext <<_ACEOF
2935/* end confdefs.h. */
2936#include <ctype.h>
2937#if ((' ' & 0x0FF) == 0x020)
2938# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2939# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2940#else
2941# define ISLOWER(c) \
2942 (('a' <= (c) && (c) <= 'i') \
2943 || ('j' <= (c) && (c) <= 'r') \
2944 || ('s' <= (c) && (c) <= 'z'))
2945# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2946#endif
2947
2948#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2949int
2950main ()
2951{
2952 int i;
2953 for (i = 0; i < 256; i++)
2954 if (XOR (islower (i), ISLOWER (i))
2955 || toupper (i) != TOUPPER (i))
2956 exit(2);
2957 exit (0);
2958}
2959_ACEOF
2960rm -f conftest$ac_exeext
2961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2962 (eval $ac_link) 2>&5
2963 ac_status=$?
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 :
2972else
2973 echo "$as_me: program exited with status $ac_status" >&5
2974echo "$as_me: failed program was:" >&5
2975sed 's/^/| /' conftest.$ac_ext >&5
2976
2977( exit $ac_status )
2978ac_cv_header_stdc=no
2979fi
2980rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2981fi
2982fi
2983fi
2984echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2985echo "${ECHO_T}$ac_cv_header_stdc" >&6
2986if test $ac_cv_header_stdc = yes; then
2987
2988cat >>confdefs.h <<\_ACEOF
2989#define STDC_HEADERS 1
2990_ACEOF
2991
2992fi
2993
2994# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3005 inttypes.h stdint.h unistd.h
3006do
3007as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3008echo "$as_me:$LINENO: checking for $ac_header" >&5
3009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3010if eval "test \"\${$as_ac_Header+set}\" = set"; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3012else
3013 cat >conftest.$ac_ext <<_ACEOF
3014/* confdefs.h. */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h. */
3019$ac_includes_default
3020
3021#include <$ac_header>
3022_ACEOF
3023rm -f conftest.$ac_objext
3024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3025 (eval $ac_compile) 2>conftest.er1
3026 ac_status=$?
3027 grep -v '^ *+' conftest.er1 >conftest.err
3028 rm -f conftest.er1
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } &&
3032 { ac_try='test -z "$ac_c_werror_flag"
3033 || test ! -s conftest.err'
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035 (eval $ac_try) 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; } &&
3039 { ac_try='test -s conftest.$ac_objext'
3040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 (eval $ac_try) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3045 eval "$as_ac_Header=yes"
3046else
3047 echo "$as_me: failed program was:" >&5
3048sed 's/^/| /' conftest.$ac_ext >&5
3049
3050eval "$as_ac_Header=no"
3051fi
3052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3053fi
3054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3056if test `eval echo '${'$as_ac_Header'}'` = yes; then
3057 cat >>confdefs.h <<_ACEOF
3058#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3059_ACEOF
3060
3061fi
3062
3063done
3064
3065
3066
3067 if test "${ac_cv_header_minix_config_h+set}" = set; then
3068 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3069echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3070if test "${ac_cv_header_minix_config_h+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072fi
3073echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3074echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3075else
3076 # Is the header compilable?
3077echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3078echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3079cat >conftest.$ac_ext <<_ACEOF
3080/* confdefs.h. */
3081_ACEOF
3082cat confdefs.h >>conftest.$ac_ext
3083cat >>conftest.$ac_ext <<_ACEOF
3084/* end confdefs.h. */
3085$ac_includes_default
3086#include <minix/config.h>
3087_ACEOF
3088rm -f conftest.$ac_objext
3089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090 (eval $ac_compile) 2>conftest.er1
3091 ac_status=$?
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try='test -z "$ac_c_werror_flag"
3098 || test ! -s conftest.err'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 (eval $ac_try) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106 (eval $ac_try) 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3110 ac_header_compiler=yes
3111else
3112 echo "$as_me: failed program was:" >&5
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
3115ac_header_compiler=no
3116fi
3117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3118echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3119echo "${ECHO_T}$ac_header_compiler" >&6
3120
3121# Is the header present?
3122echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3123echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3124cat >conftest.$ac_ext <<_ACEOF
3125/* confdefs.h. */
3126_ACEOF
3127cat confdefs.h >>conftest.$ac_ext
3128cat >>conftest.$ac_ext <<_ACEOF
3129/* end confdefs.h. */
3130#include <minix/config.h>
3131_ACEOF
3132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } >/dev/null; then
3140 if test -s conftest.err; then
3141 ac_cpp_err=$ac_c_preproc_warn_flag
3142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3143 else
3144 ac_cpp_err=
3145 fi
3146else
3147 ac_cpp_err=yes
3148fi
3149if test -z "$ac_cpp_err"; then
3150 ac_header_preproc=yes
3151else
3152 echo "$as_me: failed program was:" >&5
3153sed 's/^/| /' conftest.$ac_ext >&5
3154
3155 ac_header_preproc=no
3156fi
3157rm -f conftest.err conftest.$ac_ext
3158echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3159echo "${ECHO_T}$ac_header_preproc" >&6
3160
3161# So? What about this header?
3162case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3163 yes:no: )
3164 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3165echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3166 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3167echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3168 ac_header_preproc=yes
3169 ;;
3170 no:yes:* )
3171 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3172echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3173 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3174echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3175 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3176echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3177 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3178echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3179 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3180echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3181 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3182echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3183 (
3184 cat <<\_ASBOX
3185## ------------------------------------------ ##
3186## Report this to the AC_PACKAGE_NAME lists. ##
3187## ------------------------------------------ ##
3188_ASBOX
3189 ) |
3190 sed "s/^/$as_me: WARNING: /" >&2
3191 ;;
3192esac
3193echo "$as_me:$LINENO: checking for minix/config.h" >&5
3194echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3195if test "${ac_cv_header_minix_config_h+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3197else
3198 ac_cv_header_minix_config_h=$ac_header_preproc
3199fi
3200echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3201echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3202
3203fi
3204if test $ac_cv_header_minix_config_h = yes; then
3205 MINIX=yes
3206else
3207 MINIX=
3208fi
3209
3210
3211 if test "$MINIX" = yes; then
3212
3213cat >>confdefs.h <<\_ACEOF
3214#define _POSIX_SOURCE 1
3215_ACEOF
3216
3217
3218cat >>confdefs.h <<\_ACEOF
3219#define _POSIX_1_SOURCE 2
3220_ACEOF
3221
3222
3223cat >>confdefs.h <<\_ACEOF
3224#define _MINIX 1
3225_ACEOF
3226
3227 fi
3228
3229
3230
3231 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3232echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3233if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235else
3236 cat >conftest.$ac_ext <<_ACEOF
3237/* confdefs.h. */
3238_ACEOF
3239cat confdefs.h >>conftest.$ac_ext
3240cat >>conftest.$ac_ext <<_ACEOF
3241/* end confdefs.h. */
3242
3243# define __EXTENSIONS__ 1
3244 $ac_includes_default
3245int
3246main ()
3247{
3248
3249 ;
3250 return 0;
3251}
3252_ACEOF
3253rm -f conftest.$ac_objext
3254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3255 (eval $ac_compile) 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } &&
3262 { ac_try='test -z "$ac_c_werror_flag"
3263 || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 (eval $ac_try) 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 (eval $ac_try) 2>&5
3272 ac_status=$?
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 ac_cv_safe_to_define___extensions__=yes
3276else
3277 echo "$as_me: failed program was:" >&5
3278sed 's/^/| /' conftest.$ac_ext >&5
3279
3280ac_cv_safe_to_define___extensions__=no
3281fi
3282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3283fi
3284echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3285echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3286 test $ac_cv_safe_to_define___extensions__ = yes &&
3287 cat >>confdefs.h <<\_ACEOF
3288#define __EXTENSIONS__ 1
3289_ACEOF
3290
3291 cat >>confdefs.h <<\_ACEOF
3292#define _ALL_SOURCE 1
3293_ACEOF
3294
3295 cat >>confdefs.h <<\_ACEOF
3296#define _GNU_SOURCE 1
3297_ACEOF
3298
3299 cat >>confdefs.h <<\_ACEOF
3300#define _POSIX_PTHREAD_SEMANTICS 1
3301_ACEOF
3302
3303 cat >>confdefs.h <<\_ACEOF
3304#define _TANDEM_SOURCE 1
3305_ACEOF
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3317echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3318if test "${am_cv_prog_cc_stdc+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
3321 am_cv_prog_cc_stdc=no
3322ac_save_CC="$CC"
3323# Don't try gcc -ansi; that turns off useful extensions and
3324# breaks some systems' header files.
3325# AIX -qlanglvl=ansi
3326# Ultrix and OSF/1 -std1
3327# HP-UX 10.20 and later -Ae
3328# HP-UX older versions -Aa -D_HPUX_SOURCE
3329# SVR4 -Xc -D__EXTENSIONS__
3330for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3331do
3332 CC="$ac_save_CC $ac_arg"
3333 cat >conftest.$ac_ext <<_ACEOF
3334/* confdefs.h. */
3335_ACEOF
3336cat confdefs.h >>conftest.$ac_ext
3337cat >>conftest.$ac_ext <<_ACEOF
3338/* end confdefs.h. */
3339#include <stdarg.h>
3340#include <stdio.h>
3341#include <sys/types.h>
3342#include <sys/stat.h>
3343/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3344struct buf { int x; };
3345FILE * (*rcsopen) (struct buf *, struct stat *, int);
3346static char *e (p, i)
3347 char **p;
3348 int i;
3349{
3350 return p[i];
3351}
3352static char *f (char * (*g) (char **, int), char **p, ...)
3353{
3354 char *s;
3355 va_list v;
3356 va_start (v,p);
3357 s = g (p, va_arg (v,int));
3358 va_end (v);
3359 return s;
3360}
3361int test (int i, double x);
3362struct s1 {int (*f) (int a);};
3363struct s2 {int (*f) (double a);};
3364int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3365int argc;
3366char **argv;
3367
3368int
3369main ()
3370{
3371
3372return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3373
3374 ;
3375 return 0;
3376}
3377_ACEOF
3378rm -f conftest.$ac_objext
3379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380 (eval $ac_compile) 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } &&
3387 { ac_try='test -z "$ac_c_werror_flag"
3388 || test ! -s conftest.err'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 (eval $ac_try) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; } &&
3394 { ac_try='test -s conftest.$ac_objext'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 (eval $ac_try) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3400 am_cv_prog_cc_stdc="$ac_arg"; break
3401else
3402 echo "$as_me: failed program was:" >&5
3403sed 's/^/| /' conftest.$ac_ext >&5
3404
3405fi
3406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3407done
3408CC="$ac_save_CC"
3409
3410fi
3411
3412if test -z "$am_cv_prog_cc_stdc"; then
3413 echo "$as_me:$LINENO: result: none needed" >&5
3414echo "${ECHO_T}none needed" >&6
3415else
3416 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3417echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3418fi
3419case "x$am_cv_prog_cc_stdc" in
3420 x|xno) ;;
3421 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3422esac
3423
3424
3425ac_aux_dir=
3426for ac_dir in .. $srcdir/..; do
3427 if test -f $ac_dir/install-sh; then
3428 ac_aux_dir=$ac_dir
3429 ac_install_sh="$ac_aux_dir/install-sh -c"
3430 break
3431 elif test -f $ac_dir/install.sh; then
3432 ac_aux_dir=$ac_dir
3433 ac_install_sh="$ac_aux_dir/install.sh -c"
3434 break
3435 elif test -f $ac_dir/shtool; then
3436 ac_aux_dir=$ac_dir
3437 ac_install_sh="$ac_aux_dir/shtool install -c"
3438 break
3439 fi
3440done
3441if test -z "$ac_aux_dir"; then
3442 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3443echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3444 { (exit 1); exit 1; }; }
3445fi
3446ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3447ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3448ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3449
3450# Make sure we can run config.sub.
3451$ac_config_sub sun4 >/dev/null 2>&1 ||
3452 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3453echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3454 { (exit 1); exit 1; }; }
3455
3456echo "$as_me:$LINENO: checking build system type" >&5
3457echo $ECHO_N "checking build system type... $ECHO_C" >&6
3458if test "${ac_cv_build+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3460else
3461 ac_cv_build_alias=$build_alias
3462test -z "$ac_cv_build_alias" &&
3463 ac_cv_build_alias=`$ac_config_guess`
3464test -z "$ac_cv_build_alias" &&
3465 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3466echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3467 { (exit 1); exit 1; }; }
3468ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3470echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3471 { (exit 1); exit 1; }; }
3472
3473fi
3474echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3475echo "${ECHO_T}$ac_cv_build" >&6
3476build=$ac_cv_build
3477build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3478build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3479build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3480
3481
3482echo "$as_me:$LINENO: checking host system type" >&5
3483echo $ECHO_N "checking host system type... $ECHO_C" >&6
3484if test "${ac_cv_host+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486else
3487 ac_cv_host_alias=$host_alias
3488test -z "$ac_cv_host_alias" &&
3489 ac_cv_host_alias=$ac_cv_build_alias
3490ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3492echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3493 { (exit 1); exit 1; }; }
3494
3495fi
3496echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3497echo "${ECHO_T}$ac_cv_host" >&6
3498host=$ac_cv_host
3499host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3500host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3501host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3502
3503
3504echo "$as_me:$LINENO: checking target system type" >&5
3505echo $ECHO_N "checking target system type... $ECHO_C" >&6
3506if test "${ac_cv_target+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3508else
3509 ac_cv_target_alias=$target_alias
3510test "x$ac_cv_target_alias" = "x" &&
b4e70030
JB
3511 ac_cv_target_alias=$ac_cv_host_alias
3512ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3513 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3514echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
bec39cab
AC
3515 { (exit 1); exit 1; }; }
3516
3517fi
783e057b
DJ
3518echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3519echo "${ECHO_T}$ac_cv_target" >&6
3520target=$ac_cv_target
3521target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3522target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3523target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3524
3525
3526# The aliases save the names the user supplied, while $host etc.
3527# will get canonicalized.
3528test -n "$target_alias" &&
3529 test "$program_prefix$program_suffix$program_transform_name" = \
3530 NONENONEs,x,x, &&
3531 program_prefix=${target_alias}-
3532
a417dc56
RW
3533# Dependency checking.
3534rm -rf .tst 2>/dev/null
3535mkdir .tst 2>/dev/null
3536if test -d .tst; then
3537 am__leading_dot=.
3538else
3539 am__leading_dot=_
3540fi
3541rmdir .tst 2>/dev/null
3542
3543DEPDIR="${am__leading_dot}deps"
3544
3545 ac_config_commands="$ac_config_commands depdir"
3546
3547
3548depcc="$CC" am_compiler_list=
3549
3550am_depcomp=$ac_aux_dir/depcomp
3551echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3552echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3553if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555else
3556 if test -f "$am_depcomp"; then
3557 # We make a subdir and do the tests there. Otherwise we can end up
3558 # making bogus files that we don't know about and never remove. For
3559 # instance it was reported that on HP-UX the gcc test will end up
3560 # making a dummy file named `D' -- because `-MD' means `put the output
3561 # in D'.
3562 mkdir conftest.dir
3563 # Copy depcomp to subdir because otherwise we won't find it if we're
3564 # using a relative directory.
3565 cp "$am_depcomp" conftest.dir
3566 cd conftest.dir
3567 # We will build objects and dependencies in a subdirectory because
3568 # it helps to detect inapplicable dependency modes. For instance
3569 # both Tru64's cc and ICC support -MD to output dependencies as a
3570 # side effect of compilation, but ICC will put the dependencies in
3571 # the current directory while Tru64 will put them in the object
3572 # directory.
3573 mkdir sub
3574
3575 am_cv_CC_dependencies_compiler_type=none
3576 if test "$am_compiler_list" = ""; then
3577 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3578 fi
3579 for depmode in $am_compiler_list; do
3580 if test $depmode = none; then break; fi
3581
3582 echo "$as_me:$LINENO: trying $depmode" >&5
3583 # Setup a source with many dependencies, because some compilers
3584 # like to wrap large dependency lists on column 80 (with \), and
3585 # we should not choose a depcomp mode which is confused by this.
3586 #
3587 # We need to recreate these files for each test, as the compiler may
3588 # overwrite some of them when testing with obscure command lines.
3589 # This happens at least with the AIX C compiler.
3590 : > sub/conftest.c
3591 for i in 1 2 3 4 5 6; do
3592 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3593 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3594 # Solaris 8's {/usr,}/bin/sh.
3595 touch sub/conftst$i.h
3596 done
3597 echo "include sub/conftest.Po" > confmf
3598
3599 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3600 # mode. It turns out that the SunPro C++ compiler does not properly
3601 # handle `-M -o', and we need to detect this.
3602 depcmd="depmode=$depmode \
3603 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3604 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3605 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
3606 echo "| $depcmd" | sed -e 's/ */ /g' >&5
3607 if env $depcmd > conftest.err 2>&1 &&
3608 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
3609 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
3610 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
3611 # icc doesn't choke on unknown options, it will just issue warnings
3612 # or remarks (even with -Werror). So we grep stderr for any message
3613 # that says an option was ignored or not supported.
3614 # When given -MP, icc 7.0 and 7.1 complain thusly:
3615 # icc: Command line warning: ignoring option '-M'; no argument required
3616 # The diagnosis changed in icc 8.0:
3617 # icc: Command line remark: option '-MP' not supported
3618 if (grep 'ignoring option' conftest.err ||
3619 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3620 am_cv_CC_dependencies_compiler_type=$depmode
3621 echo "$as_me:$LINENO: success" >&5
3622 break
3623 fi
3624 fi
3625 echo "$as_me:$LINENO: failure, diagnostics are:" >&5
3626 sed -e 's/^/| /' < conftest.err >&5
3627 done
3628
3629 cd ..
3630 rm -rf conftest.dir
3631else
3632 am_cv_CC_dependencies_compiler_type=none
3633fi
3634
3635fi
3636echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3637echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3638if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
3639then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
3640echo "$as_me: error: no usable dependency style found" >&2;}
3641 { (exit 1); exit 1; }; }
3642else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3643
3644fi
3645
3646
3647# Check for the 'make' the user wants to use.
3648for ac_prog in make
3649do
3650 # Extract the first word of "$ac_prog", so it can be a program name with args.
3651set dummy $ac_prog; ac_word=$2
3652echo "$as_me:$LINENO: checking for $ac_word" >&5
3653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3654if test "${ac_cv_prog_MAKE+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
3657 if test -n "$MAKE"; then
3658 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
3659else
3660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661for as_dir in $PATH
3662do
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3667 ac_cv_prog_MAKE="$ac_prog"
3668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 break 2
3670 fi
3671done
3672done
3673
3674fi
3675fi
3676MAKE=$ac_cv_prog_MAKE
3677if test -n "$MAKE"; then
3678 echo "$as_me:$LINENO: result: $MAKE" >&5
3679echo "${ECHO_T}$MAKE" >&6
3680else
3681 echo "$as_me:$LINENO: result: no" >&5
3682echo "${ECHO_T}no" >&6
3683fi
3684
3685 test -n "$MAKE" && break
3686done
3687
3688MAKE_IS_GNU=
3689case "`$MAKE --version 2>&1 | sed 1q`" in
3690 *GNU*)
3691 MAKE_IS_GNU=yes
3692 ;;
3693esac
3694
3695
3696if test "$MAKE_IS_GNU" = yes; then
3697 GMAKE_TRUE=
3698 GMAKE_FALSE='#'
3699else
3700 GMAKE_TRUE='#'
3701 GMAKE_FALSE=
3702fi
3703
3704echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3705echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3706set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3707if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3709else
3710 cat >conftest.make <<\_ACEOF
3711all:
3712 @echo 'ac_maketemp="$(MAKE)"'
3713_ACEOF
3714# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3715eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3716if test -n "$ac_maketemp"; then
3717 eval ac_cv_prog_make_${ac_make}_set=yes
3718else
3719 eval ac_cv_prog_make_${ac_make}_set=no
3720fi
3721rm -f conftest.make
3722fi
3723if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3724 echo "$as_me:$LINENO: result: yes" >&5
3725echo "${ECHO_T}yes" >&6
3726 SET_MAKE=
3727else
3728 echo "$as_me:$LINENO: result: no" >&5
3729echo "${ECHO_T}no" >&6
3730 SET_MAKE="MAKE=${MAKE-make}"
3731fi
3732
3733
783e057b
DJ
3734
3735CONFIG_OBS=
3736CONFIG_DEPS=
3737CONFIG_SRCS=
3738ENABLE_CFLAGS=
3739
3740CONFIG_ALL=
3741CONFIG_CLEAN=
3742CONFIG_INSTALL=
3743CONFIG_UNINSTALL=
3744
3745# If we haven't got the data from the intl directory,
3746# assume NLS is disabled.
3747USE_NLS=no
3748LIBINTL=
3749LIBINTL_DEP=
3750INCINTL=
3751XGETTEXT=
3752GMSGFMT=
3753POSUB=
3754
3755if test -f ../intl/config.intl; then
3756 . ../intl/config.intl
3757fi
3758echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3759echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3760if test x"$USE_NLS" != xyes; then
3761 echo "$as_me:$LINENO: result: no" >&5
3762echo "${ECHO_T}no" >&6
3763else
3764 echo "$as_me:$LINENO: result: yes" >&5
3765echo "${ECHO_T}yes" >&6
3766
3767cat >>confdefs.h <<\_ACEOF
3768#define ENABLE_NLS 1
3769_ACEOF
3770
3771
3772 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3773echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3774 # Look for .po and .gmo files in the source directory.
3775 CATALOGS=
3776 XLINGUAS=
3777 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3778 # If there aren't any .gmo files the shell will give us the
3779 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3780 # weeded out.
3781 case "$cat" in *\**)
3782 continue;;
3783 esac
3784 # The quadruple backslash is collapsed to a double backslash
3785 # by the backticks, then collapsed again by the double quotes,
3786 # leaving us with one backslash in the sed expression (right
3787 # before the dot that mustn't act as a wildcard).
3788 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3789 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3790 # The user is allowed to set LINGUAS to a list of languages to
3791 # install catalogs for. If it's empty that means "all of them."
3792 if test "x$LINGUAS" = x; then
3793 CATALOGS="$CATALOGS $cat"
3794 XLINGUAS="$XLINGUAS $lang"
3795 else
3796 case "$LINGUAS" in *$lang*)
3797 CATALOGS="$CATALOGS $cat"
3798 XLINGUAS="$XLINGUAS $lang"
3799 ;;
3800 esac
3801 fi
3802 done
3803 LINGUAS="$XLINGUAS"
3804 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3805echo "${ECHO_T}$LINGUAS" >&6
3806
3807
3808 DATADIRNAME=share
3809
3810 INSTOBJEXT=.mo
3811
3812 GENCAT=gencat
3813
3814 CATOBJEXT=.gmo
3815
3816fi
3817
3818localedir='${datadir}/locale'
3819
3820
3821if test x"$USE_NLS" = xyes; then
3822 CONFIG_ALL="$CONFIG_ALL all-po"
3823 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3824 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3825 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3826fi
3827
3828
3829 GNULIB_MEMMEM=0;
3830 GNULIB_MEMPCPY=0;
3831 GNULIB_MEMRCHR=0;
3832 GNULIB_STPCPY=0;
3833 GNULIB_STPNCPY=0;
3834 GNULIB_STRCHRNUL=0;
3835 GNULIB_STRDUP=0;
3836 GNULIB_STRNDUP=0;
3837 GNULIB_STRNLEN=0;
3838 GNULIB_STRPBRK=0;
3839 GNULIB_STRSEP=0;
3840 GNULIB_STRSTR=0;
3841 GNULIB_STRCASESTR=0;
3842 GNULIB_STRTOK_R=0;
3843 GNULIB_MBSLEN=0;
3844 GNULIB_MBSNLEN=0;
3845 GNULIB_MBSCHR=0;
3846 GNULIB_MBSRCHR=0;
3847 GNULIB_MBSSTR=0;
3848 GNULIB_MBSCASECMP=0;
3849 GNULIB_MBSNCASECMP=0;
3850 GNULIB_MBSPCASECMP=0;
3851 GNULIB_MBSCASESTR=0;
3852 GNULIB_MBSCSPN=0;
3853 GNULIB_MBSPBRK=0;
3854 GNULIB_MBSSPN=0;
3855 GNULIB_MBSSEP=0;
3856 GNULIB_MBSTOK_R=0;
3857 GNULIB_STRERROR=0;
3858 GNULIB_STRSIGNAL=0;
3859 HAVE_DECL_MEMMEM=1;
3860 HAVE_MEMPCPY=1;
3861 HAVE_DECL_MEMRCHR=1;
3862 HAVE_STPCPY=1;
3863 HAVE_STPNCPY=1;
3864 HAVE_STRCHRNUL=1;
3865 HAVE_DECL_STRDUP=1;
3866 HAVE_STRNDUP=1;
3867 HAVE_DECL_STRNDUP=1;
3868 HAVE_DECL_STRNLEN=1;
3869 HAVE_STRPBRK=1;
3870 HAVE_STRSEP=1;
3871 HAVE_STRCASESTR=1;
3872 HAVE_DECL_STRTOK_R=1;
3873 HAVE_DECL_STRERROR=1;
3874 HAVE_DECL_STRSIGNAL=1;
3875 REPLACE_STRERROR=0;
3876 REPLACE_STRSIGNAL=0;
3877 REPLACE_MEMMEM=0;
3878 REPLACE_STRCASESTR=0;
3879 REPLACE_STRSTR=0;
3880
3881
3882 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3883echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3884if test "${ac_cv_have_decl_memmem+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3886else
3887 cat >conftest.$ac_ext <<_ACEOF
3888/* confdefs.h. */
3889_ACEOF
3890cat confdefs.h >>conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h. */
3893$ac_includes_default
3894int
3895main ()
3896{
3897#ifndef memmem
3898 char *p = (char *) memmem;
3899#endif
3900
3901 ;
3902 return 0;
3903}
3904_ACEOF
3905rm -f conftest.$ac_objext
3906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3907 (eval $ac_compile) 2>conftest.er1
3908 ac_status=$?
3909 grep -v '^ *+' conftest.er1 >conftest.err
3910 rm -f conftest.er1
3911 cat conftest.err >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } &&
3914 { ac_try='test -z "$ac_c_werror_flag"
3915 || test ! -s conftest.err'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 (eval $ac_try) 2>&5
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; } &&
3921 { ac_try='test -s conftest.$ac_objext'
3922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923 (eval $ac_try) 2>&5
3924 ac_status=$?
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }; }; then
3927 ac_cv_have_decl_memmem=yes
3928else
3929 echo "$as_me: failed program was:" >&5
3930sed 's/^/| /' conftest.$ac_ext >&5
3931
3932ac_cv_have_decl_memmem=no
3933fi
3934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3935fi
3936echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3937echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3938if test $ac_cv_have_decl_memmem = yes; then
3939
3940cat >>confdefs.h <<_ACEOF
3941#define HAVE_DECL_MEMMEM 1
3942_ACEOF
3943
3944
3945else
3946 cat >>confdefs.h <<_ACEOF
3947#define HAVE_DECL_MEMMEM 0
3948_ACEOF
3949
3950
3951fi
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967for ac_func in memmem
3968do
3969as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3970echo "$as_me:$LINENO: checking for $ac_func" >&5
3971echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3972if eval "test \"\${$as_ac_var+set}\" = set"; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3974else
3975 cat >conftest.$ac_ext <<_ACEOF
3976/* confdefs.h. */
3977_ACEOF
3978cat confdefs.h >>conftest.$ac_ext
3979cat >>conftest.$ac_ext <<_ACEOF
3980/* end confdefs.h. */
3981/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3983#define $ac_func innocuous_$ac_func
3984
3985/* System header to define __stub macros and hopefully few prototypes,
3986 which can conflict with char $ac_func (); below.
3987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3988 <limits.h> exists even on freestanding compilers. */
3989
3990#ifdef __STDC__
3991# include <limits.h>
3992#else
3993# include <assert.h>
3994#endif
3995
3996#undef $ac_func
3997
3998/* Override any gcc2 internal prototype to avoid an error. */
3999#ifdef __cplusplus
4000extern "C"
4001{
4002#endif
4003/* We use char because int might match the return type of a gcc2
4004 builtin and then its argument prototype would still apply. */
4005char $ac_func ();
4006/* The GNU C library defines this for functions which it implements
4007 to always fail with ENOSYS. Some functions are actually named
4008 something starting with __ and the normal name is an alias. */
4009#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4010choke me
4011#else
4012char (*f) () = $ac_func;
4013#endif
4014#ifdef __cplusplus
4015}
4016#endif
4017
4018int
4019main ()
4020{
4021return f != $ac_func;
4022 ;
4023 return 0;
4024}
4025_ACEOF
4026rm -f conftest.$ac_objext conftest$ac_exeext
4027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4028 (eval $ac_link) 2>conftest.er1
4029 ac_status=$?
4030 grep -v '^ *+' conftest.er1 >conftest.err
4031 rm -f conftest.er1
4032 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } &&
4035 { ac_try='test -z "$ac_c_werror_flag"
4036 || test ! -s conftest.err'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 (eval $ac_try) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; } &&
4042 { ac_try='test -s conftest$ac_exeext'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044 (eval $ac_try) 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; }; then
4048 eval "$as_ac_var=yes"
4049else
4050 echo "$as_me: failed program was:" >&5
4051sed 's/^/| /' conftest.$ac_ext >&5
4052
4053eval "$as_ac_var=no"
4054fi
4055rm -f conftest.err conftest.$ac_objext \
4056 conftest$ac_exeext conftest.$ac_ext
4057fi
4058echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4059echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4060if test `eval echo '${'$as_ac_var'}'` = yes; then
4061 cat >>confdefs.h <<_ACEOF
4062#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4063_ACEOF
4064
4065else
4066
4067 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4068
4069fi
4070done
4071
4072
4073
4074 :
4075
4076
4077
4078
4079
4080 if test $ac_cv_have_decl_memmem = no; then
4081 HAVE_DECL_MEMMEM=0
4082 fi
4083 :
4084
4085
4086 echo "$as_me:$LINENO: checking for long long int" >&5
4087echo $ECHO_N "checking for long long int... $ECHO_C" >&6
4088if test "${ac_cv_type_long_long_int+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4090else
4091 cat >conftest.$ac_ext <<_ACEOF
4092
4093 /* confdefs.h. */
4094_ACEOF
4095cat confdefs.h >>conftest.$ac_ext
4096cat >>conftest.$ac_ext <<_ACEOF
4097/* end confdefs.h. */
4098/* For now, do not test the preprocessor; as of 2007 there are too many
4099 implementations with broken preprocessors. Perhaps this can
4100 be revisited in 2012. In the meantime, code should not expect
4101 #if to work with literals wider than 32 bits. */
4102 /* Test literals. */
4103 long long int ll = 9223372036854775807ll;
4104 long long int nll = -9223372036854775807LL;
4105 unsigned long long int ull = 18446744073709551615ULL;
4106 /* Test constant expressions. */
4107 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4108 ? 1 : -1)];
4109 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4110 ? 1 : -1)];
4111 int i = 63;
4112int
4113main ()
4114{
4115/* Test availability of runtime routines for shift and division. */
4116 long long int llmax = 9223372036854775807ll;
4117 unsigned long long int ullmax = 18446744073709551615ull;
4118 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4119 | (llmax / ll) | (llmax % ll)
4120 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4121 | (ullmax / ull) | (ullmax % ull));
4122 ;
4123 return 0;
4124}
4125
4126_ACEOF
4127rm -f conftest.$ac_objext conftest$ac_exeext
4128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4129 (eval $ac_link) 2>conftest.er1
4130 ac_status=$?
4131 grep -v '^ *+' conftest.er1 >conftest.err
4132 rm -f conftest.er1
4133 cat conftest.err >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } &&
4136 { ac_try='test -z "$ac_c_werror_flag"
4137 || test ! -s conftest.err'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 (eval $ac_try) 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; } &&
4143 { ac_try='test -s conftest$ac_exeext'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 (eval $ac_try) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; }; then
4149 if test "$cross_compiling" = yes; then
4150 ac_cv_type_long_long_int=yes
4151else
4152 cat >conftest.$ac_ext <<_ACEOF
4153/* confdefs.h. */
4154_ACEOF
4155cat confdefs.h >>conftest.$ac_ext
4156cat >>conftest.$ac_ext <<_ACEOF
4157/* end confdefs.h. */
4158#include <limits.h>
4159 #ifndef LLONG_MAX
4160 # define HALF \
4161 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4162 # define LLONG_MAX (HALF - 1 + HALF)
4163 #endif
4164int
4165main ()
4166{
4167long long int n = 1;
4168 int i;
4169 for (i = 0; ; i++)
4170 {
4171 long long int m = n << i;
4172 if (m >> i != n)
4173 return 1;
4174 if (LLONG_MAX / 2 < m)
4175 break;
4176 }
4177 return 0;
4178 ;
4179 return 0;
4180}
4181_ACEOF
4182rm -f conftest$ac_exeext
4183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4184 (eval $ac_link) 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 (eval $ac_try) 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 ac_cv_type_long_long_int=yes
4194else
4195 echo "$as_me: program exited with status $ac_status" >&5
4196echo "$as_me: failed program was:" >&5
4197sed 's/^/| /' conftest.$ac_ext >&5
4198
4199( exit $ac_status )
4200ac_cv_type_long_long_int=no
4201fi
4202rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4203fi
4204else
4205 echo "$as_me: failed program was:" >&5
4206sed 's/^/| /' conftest.$ac_ext >&5
4207
4208ac_cv_type_long_long_int=no
4209fi
4210rm -f conftest.err conftest.$ac_objext \
4211 conftest$ac_exeext conftest.$ac_ext
4212fi
4213echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4214echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4215 if test $ac_cv_type_long_long_int = yes; then
4216
4217cat >>confdefs.h <<\_ACEOF
4218#define HAVE_LONG_LONG_INT 1
4219_ACEOF
4220
4221 fi
4222
4223
4224 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4225echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4226if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228else
4229 cat >conftest.$ac_ext <<_ACEOF
4230
4231 /* confdefs.h. */
4232_ACEOF
4233cat confdefs.h >>conftest.$ac_ext
4234cat >>conftest.$ac_ext <<_ACEOF
4235/* end confdefs.h. */
4236/* For now, do not test the preprocessor; as of 2007 there are too many
4237 implementations with broken preprocessors. Perhaps this can
4238 be revisited in 2012. In the meantime, code should not expect
4239 #if to work with literals wider than 32 bits. */
4240 /* Test literals. */
4241 long long int ll = 9223372036854775807ll;
4242 long long int nll = -9223372036854775807LL;
4243 unsigned long long int ull = 18446744073709551615ULL;
4244 /* Test constant expressions. */
4245 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4246 ? 1 : -1)];
4247 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4248 ? 1 : -1)];
4249 int i = 63;
4250int
4251main ()
4252{
4253/* Test availability of runtime routines for shift and division. */
4254 long long int llmax = 9223372036854775807ll;
4255 unsigned long long int ullmax = 18446744073709551615ull;
4256 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4257 | (llmax / ll) | (llmax % ll)
4258 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4259 | (ullmax / ull) | (ullmax % ull));
4260 ;
4261 return 0;
4262}
4263
4264_ACEOF
4265rm -f conftest.$ac_objext conftest$ac_exeext
4266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4267 (eval $ac_link) 2>conftest.er1
4268 ac_status=$?
4269 grep -v '^ *+' conftest.er1 >conftest.err
4270 rm -f conftest.er1
4271 cat conftest.err >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } &&
4274 { ac_try='test -z "$ac_c_werror_flag"
4275 || test ! -s conftest.err'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277 (eval $ac_try) 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; } &&
4281 { ac_try='test -s conftest$ac_exeext'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 (eval $ac_try) 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4287 ac_cv_type_unsigned_long_long_int=yes
4288else
4289 echo "$as_me: failed program was:" >&5
4290sed 's/^/| /' conftest.$ac_ext >&5
4291
4292ac_cv_type_unsigned_long_long_int=no
4293fi
4294rm -f conftest.err conftest.$ac_objext \
4295 conftest$ac_exeext conftest.$ac_ext
4296fi
4297echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4298echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4299 if test $ac_cv_type_unsigned_long_long_int = yes; then
4300
4301cat >>confdefs.h <<\_ACEOF
4302#define HAVE_UNSIGNED_LONG_LONG_INT 1
4303_ACEOF
4304
4305 fi
4306
4307
4308
4309 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4310echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4311if test "${gl_cv_have_include_next+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4313else
4314 rm -rf conftestd1 conftestd2
4315 mkdir conftestd1 conftestd2
4316 cat <<EOF > conftestd1/conftest.h
4317#define DEFINED_IN_CONFTESTD1
4318#include_next <conftest.h>
4319#ifdef DEFINED_IN_CONFTESTD2
4320int foo;
4321#else
4322#error "include_next doesn't work"
4323#endif
4324EOF
4325 cat <<EOF > conftestd2/conftest.h
4326#ifndef DEFINED_IN_CONFTESTD1
4327#error "include_next test doesn't work"
4328#endif
4329#define DEFINED_IN_CONFTESTD2
4330EOF
4331 save_CPPFLAGS="$CPPFLAGS"
4332 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4333 cat >conftest.$ac_ext <<_ACEOF
4334#include <conftest.h>
4335_ACEOF
4336rm -f conftest.$ac_objext
4337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>conftest.er1
4339 ac_status=$?
4340 grep -v '^ *+' conftest.er1 >conftest.err
4341 rm -f conftest.er1
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try='test -z "$ac_c_werror_flag"
4346 || test ! -s conftest.err'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 (eval $ac_try) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try='test -s conftest.$ac_objext'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 (eval $ac_try) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 gl_cv_have_include_next=yes
4359else
4360 echo "$as_me: failed program was:" >&5
4361sed 's/^/| /' conftest.$ac_ext >&5
4362
4363gl_cv_have_include_next=no
4364fi
4365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4366 CPPFLAGS="$save_CPPFLAGS"
4367 rm -rf conftestd1 conftestd2
4368
4369fi
4370echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4371echo "${ECHO_T}$gl_cv_have_include_next" >&6
4372 if test $gl_cv_have_include_next = yes; then
4373
4374
4375cat >>confdefs.h <<\_ACEOF
4376#define HAVE_INCLUDE_NEXT 1
4377_ACEOF
4378
4379
4380 INCLUDE_NEXT=include_next
4381 else
4382 INCLUDE_NEXT=include
4383 fi
4384
4385
4386
4387
4388
4389
4390
4391for ac_header in $gl_header_list
4392do
4393as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4394if eval "test \"\${$as_ac_Header+set}\" = set"; then
4395 echo "$as_me:$LINENO: checking for $ac_header" >&5
4396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4397if eval "test \"\${$as_ac_Header+set}\" = set"; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4399fi
4400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4401echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4402else
4403 # Is the header compilable?
4404echo "$as_me:$LINENO: checking $ac_header usability" >&5
4405echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4406cat >conftest.$ac_ext <<_ACEOF
4407/* confdefs.h. */
4408_ACEOF
4409cat confdefs.h >>conftest.$ac_ext
4410cat >>conftest.$ac_ext <<_ACEOF
4411/* end confdefs.h. */
4412$ac_includes_default
4413#include <$ac_header>
4414_ACEOF
4415rm -f conftest.$ac_objext
4416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4417 (eval $ac_compile) 2>conftest.er1
4418 ac_status=$?
4419 grep -v '^ *+' conftest.er1 >conftest.err
4420 rm -f conftest.er1
4421 cat conftest.err >&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } &&
4424 { ac_try='test -z "$ac_c_werror_flag"
4425 || test ! -s conftest.err'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 (eval $ac_try) 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; } &&
4431 { ac_try='test -s conftest.$ac_objext'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 (eval $ac_try) 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; }; then
4437 ac_header_compiler=yes
4438else
4439 echo "$as_me: failed program was:" >&5
4440sed 's/^/| /' conftest.$ac_ext >&5
4441
4442ac_header_compiler=no
4443fi
4444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4445echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4446echo "${ECHO_T}$ac_header_compiler" >&6
4447
4448# Is the header present?
4449echo "$as_me:$LINENO: checking $ac_header presence" >&5
4450echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4451cat >conftest.$ac_ext <<_ACEOF
4452/* confdefs.h. */
4453_ACEOF
4454cat confdefs.h >>conftest.$ac_ext
4455cat >>conftest.$ac_ext <<_ACEOF
4456/* end confdefs.h. */
4457#include <$ac_header>
4458_ACEOF
4459if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4461 ac_status=$?
4462 grep -v '^ *+' conftest.er1 >conftest.err
4463 rm -f conftest.er1
4464 cat conftest.err >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } >/dev/null; then
4467 if test -s conftest.err; then
4468 ac_cpp_err=$ac_c_preproc_warn_flag
4469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4470 else
4471 ac_cpp_err=
4472 fi
4473else
4474 ac_cpp_err=yes
4475fi
4476if test -z "$ac_cpp_err"; then
4477 ac_header_preproc=yes
4478else
4479 echo "$as_me: failed program was:" >&5
4480sed 's/^/| /' conftest.$ac_ext >&5
4481
4482 ac_header_preproc=no
4483fi
4484rm -f conftest.err conftest.$ac_ext
4485echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4486echo "${ECHO_T}$ac_header_preproc" >&6
4487
4488# So? What about this header?
4489case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4490 yes:no: )
4491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4492echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4494echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4495 ac_header_preproc=yes
4496 ;;
4497 no:yes:* )
4498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4499echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4501echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4503echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4505echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4507echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4509echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4510 (
4511 cat <<\_ASBOX
4512## ------------------------------------------ ##
4513## Report this to the AC_PACKAGE_NAME lists. ##
4514## ------------------------------------------ ##
4515_ASBOX
4516 ) |
4517 sed "s/^/$as_me: WARNING: /" >&2
4518 ;;
4519esac
4520echo "$as_me:$LINENO: checking for $ac_header" >&5
4521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4522if eval "test \"\${$as_ac_Header+set}\" = set"; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524else
4525 eval "$as_ac_Header=\$ac_header_preproc"
4526fi
4527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4528echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4529
4530fi
4531if test `eval echo '${'$as_ac_Header'}'` = yes; then
4532 cat >>confdefs.h <<_ACEOF
4533#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4534_ACEOF
4535
4536fi
4537
4538done
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4552echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4553if test "${ac_cv_c_restrict+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4555else
4556 ac_cv_c_restrict=no
4557 # The order here caters to the fact that C++ does not require restrict.
4558 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4559 cat >conftest.$ac_ext <<_ACEOF
4560/* confdefs.h. */
4561_ACEOF
4562cat confdefs.h >>conftest.$ac_ext
4563cat >>conftest.$ac_ext <<_ACEOF
4564/* end confdefs.h. */
4565typedef int * int_ptr;
4566 int foo (int_ptr $ac_kw ip) {
4567 return ip[0];
4568 }
4569int
4570main ()
4571{
4572int s[1];
4573 int * $ac_kw t = s;
4574 t[0] = 0;
4575 return foo(t)
4576 ;
4577 return 0;
4578}
4579_ACEOF
4580rm -f conftest.$ac_objext
4581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>conftest.er1
4583 ac_status=$?
4584 grep -v '^ *+' conftest.er1 >conftest.err
4585 rm -f conftest.er1
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } &&
4589 { ac_try='test -z "$ac_c_werror_flag"
4590 || test ! -s conftest.err'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 (eval $ac_try) 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; } &&
4596 { ac_try='test -s conftest.$ac_objext'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 (eval $ac_try) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 ac_cv_c_restrict=$ac_kw
4603else
4604 echo "$as_me: failed program was:" >&5
4605sed 's/^/| /' conftest.$ac_ext >&5
4606
4607fi
4608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4609 test "$ac_cv_c_restrict" != no && break
4610 done
4611
4612fi
4613echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4614echo "${ECHO_T}$ac_cv_c_restrict" >&6
4615
4616
4617 case $ac_cv_c_restrict in
4618 restrict) ;;
4619 no) cat >>confdefs.h <<\_ACEOF
4620#define restrict
4621_ACEOF
4622 ;;
4623 *) cat >>confdefs.h <<_ACEOF
4624#define restrict $ac_cv_c_restrict
4625_ACEOF
4626 ;;
4627 esac
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641 :
4642
4643
4644
4645
4646
4647
4648
4649 if test $gl_cv_have_include_next = yes; then
4650 gl_cv_next_string_h='<'string.h'>'
4651 else
4652 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4653echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4654if test "${gl_cv_next_string_h+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4656else
4657
4658 if test $ac_cv_header_string_h = yes; then
4659 cat >conftest.$ac_ext <<_ACEOF
4660/* confdefs.h. */
4661_ACEOF
4662cat confdefs.h >>conftest.$ac_ext
4663cat >>conftest.$ac_ext <<_ACEOF
4664/* end confdefs.h. */
4665#include <string.h>
4666
4667_ACEOF
4668 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4669 sed -n '\#/string.h#{
4670 s#.*"\(.*/string.h\)".*#\1#
4671 s#^/[^/]#//&#
4672 p
4673 q
4674 }'`'"'
4675 else
4676 gl_cv_next_string_h='<'string.h'>'
4677 fi
4678
4679fi
4680echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4681echo "${ECHO_T}$gl_cv_next_string_h" >&6
4682 fi
4683 NEXT_STRING_H=$gl_cv_next_string_h
4684
4685
4686
4687
4688
4689 GNULIB_WCWIDTH=0;
4690 HAVE_DECL_WCWIDTH=1;
4691 REPLACE_WCWIDTH=0;
4692 WCHAR_H=
4693
4694
4695
4696
4697
4698if false; then
4699 GL_COND_LIBTOOL_TRUE=
4700 GL_COND_LIBTOOL_FALSE='#'
4701else
4702 GL_COND_LIBTOOL_TRUE='#'
4703 GL_COND_LIBTOOL_FALSE=
4704fi
4705
4706 gl_cond_libtool=false
4707 gl_libdeps=
4708 gl_ltlibdeps=
4709
4710
4711
4712 gl_source_base='gnulib'
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722for ac_func in memchr
4723do
4724as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4725echo "$as_me:$LINENO: checking for $ac_func" >&5
4726echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4727if eval "test \"\${$as_ac_var+set}\" = set"; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4729else
4730 cat >conftest.$ac_ext <<_ACEOF
4731/* confdefs.h. */
4732_ACEOF
4733cat confdefs.h >>conftest.$ac_ext
4734cat >>conftest.$ac_ext <<_ACEOF
4735/* end confdefs.h. */
4736/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4738#define $ac_func innocuous_$ac_func
4739
4740/* System header to define __stub macros and hopefully few prototypes,
4741 which can conflict with char $ac_func (); below.
4742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4743 <limits.h> exists even on freestanding compilers. */
4744
4745#ifdef __STDC__
4746# include <limits.h>
4747#else
4748# include <assert.h>
4749#endif
4750
4751#undef $ac_func
4752
4753/* Override any gcc2 internal prototype to avoid an error. */
4754#ifdef __cplusplus
4755extern "C"
4756{
4757#endif
4758/* We use char because int might match the return type of a gcc2
4759 builtin and then its argument prototype would still apply. */
4760char $ac_func ();
4761/* The GNU C library defines this for functions which it implements
4762 to always fail with ENOSYS. Some functions are actually named
4763 something starting with __ and the normal name is an alias. */
4764#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4765choke me
4766#else
4767char (*f) () = $ac_func;
4768#endif
4769#ifdef __cplusplus
4770}
4771#endif
4772
4773int
4774main ()
4775{
4776return f != $ac_func;
4777 ;
4778 return 0;
4779}
4780_ACEOF
4781rm -f conftest.$ac_objext conftest$ac_exeext
4782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4783 (eval $ac_link) 2>conftest.er1
4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try='test -z "$ac_c_werror_flag"
4791 || test ! -s conftest.err'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 (eval $ac_try) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; } &&
4797 { ac_try='test -s conftest$ac_exeext'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 (eval $ac_try) 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4803 eval "$as_ac_var=yes"
4804else
4805 echo "$as_me: failed program was:" >&5
4806sed 's/^/| /' conftest.$ac_ext >&5
4807
4808eval "$as_ac_var=no"
4809fi
4810rm -f conftest.err conftest.$ac_objext \
4811 conftest$ac_exeext conftest.$ac_ext
4812fi
4813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4814echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4815if test `eval echo '${'$as_ac_var'}'` = yes; then
4816 cat >>confdefs.h <<_ACEOF
4817#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4818_ACEOF
4819
4820else
4821
4822 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4823
4824fi
4825done
4826
4827
4828 if test $ac_cv_func_memchr = no; then
4829
4830
4831for ac_header in bp-sym.h
4832do
4833as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4834if eval "test \"\${$as_ac_Header+set}\" = set"; then
4835 echo "$as_me:$LINENO: checking for $ac_header" >&5
4836echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4837if eval "test \"\${$as_ac_Header+set}\" = set"; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839fi
4840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4841echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4842else
4843 # Is the header compilable?
4844echo "$as_me:$LINENO: checking $ac_header usability" >&5
4845echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4846cat >conftest.$ac_ext <<_ACEOF
4847/* confdefs.h. */
4848_ACEOF
4849cat confdefs.h >>conftest.$ac_ext
4850cat >>conftest.$ac_ext <<_ACEOF
4851/* end confdefs.h. */
4852$ac_includes_default
4853#include <$ac_header>
4854_ACEOF
4855rm -f conftest.$ac_objext
4856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857 (eval $ac_compile) 2>conftest.er1
4858 ac_status=$?
4859 grep -v '^ *+' conftest.er1 >conftest.err
4860 rm -f conftest.er1
4861 cat conftest.err >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } &&
4864 { ac_try='test -z "$ac_c_werror_flag"
4865 || test ! -s conftest.err'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 (eval $ac_try) 2>&5
4868 ac_status=$?
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; } &&
4871 { ac_try='test -s conftest.$ac_objext'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 (eval $ac_try) 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4877 ac_header_compiler=yes
4878else
4879 echo "$as_me: failed program was:" >&5
4880sed 's/^/| /' conftest.$ac_ext >&5
4881
4882ac_header_compiler=no
4883fi
4884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4885echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4886echo "${ECHO_T}$ac_header_compiler" >&6
4887
4888# Is the header present?
4889echo "$as_me:$LINENO: checking $ac_header presence" >&5
4890echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4891cat >conftest.$ac_ext <<_ACEOF
4892/* confdefs.h. */
4893_ACEOF
4894cat confdefs.h >>conftest.$ac_ext
4895cat >>conftest.$ac_ext <<_ACEOF
4896/* end confdefs.h. */
4897#include <$ac_header>
4898_ACEOF
4899if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4901 ac_status=$?
4902 grep -v '^ *+' conftest.er1 >conftest.err
4903 rm -f conftest.er1
4904 cat conftest.err >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } >/dev/null; then
4907 if test -s conftest.err; then
4908 ac_cpp_err=$ac_c_preproc_warn_flag
4909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4910 else
4911 ac_cpp_err=
4912 fi
4913else
4914 ac_cpp_err=yes
4915fi
4916if test -z "$ac_cpp_err"; then
4917 ac_header_preproc=yes
4918else
4919 echo "$as_me: failed program was:" >&5
4920sed 's/^/| /' conftest.$ac_ext >&5
4921
4922 ac_header_preproc=no
4923fi
4924rm -f conftest.err conftest.$ac_ext
4925echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4926echo "${ECHO_T}$ac_header_preproc" >&6
4927
4928# So? What about this header?
4929case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4930 yes:no: )
4931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4932echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4934echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4935 ac_header_preproc=yes
4936 ;;
4937 no:yes:* )
4938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4939echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4941echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4943echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4945echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4947echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4949echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4950 (
4951 cat <<\_ASBOX
4952## ------------------------------------------ ##
4953## Report this to the AC_PACKAGE_NAME lists. ##
4954## ------------------------------------------ ##
4955_ASBOX
4956 ) |
4957 sed "s/^/$as_me: WARNING: /" >&2
4958 ;;
4959esac
4960echo "$as_me:$LINENO: checking for $ac_header" >&5
4961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4962if eval "test \"\${$as_ac_Header+set}\" = set"; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4964else
4965 eval "$as_ac_Header=\$ac_header_preproc"
4966fi
4967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4968echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4969
4970fi
4971if test `eval echo '${'$as_ac_Header'}'` = yes; then
4972 cat >>confdefs.h <<_ACEOF
4973#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4974_ACEOF
4975
4976fi
4977
4978done
4979
4980
4981 fi
4982
4983
4984 echo "$as_me:$LINENO: checking for working memcmp" >&5
4985echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4986if test "${ac_cv_func_memcmp_working+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4988else
4989 if test "$cross_compiling" = yes; then
4990 ac_cv_func_memcmp_working=no
4991else
4992 cat >conftest.$ac_ext <<_ACEOF
4993/* confdefs.h. */
4994_ACEOF
4995cat confdefs.h >>conftest.$ac_ext
4996cat >>conftest.$ac_ext <<_ACEOF
4997/* end confdefs.h. */
4998$ac_includes_default
4999int
5000main ()
5001{
5002
5003 /* Some versions of memcmp are not 8-bit clean. */
5004 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5005 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5006 exit (1);
5007
5008 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5009 or more and with at least one buffer not starting on a 4-byte boundary.
5010 William Lewis provided this test program. */
5011 {
5012 char foo[21];
5013 char bar[21];
5014 int i;
5015 for (i = 0; i < 4; i++)
5016 {
5017 char *a = foo + i;
5018 char *b = bar + i;
5019 strcpy (a, "--------01111111");
5020 strcpy (b, "--------10000000");
5021 if (memcmp (a, b, 16) >= 0)
5022 exit (1);
5023 }
5024 exit (0);
5025 }
5026
5027 ;
5028 return 0;
5029}
5030_ACEOF
5031rm -f conftest$ac_exeext
5032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5033 (eval $ac_link) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 (eval $ac_try) 2>&5
5039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 ac_cv_func_memcmp_working=yes
5043else
5044 echo "$as_me: program exited with status $ac_status" >&5
5045echo "$as_me: failed program was:" >&5
5046sed 's/^/| /' conftest.$ac_ext >&5
5047
5048( exit $ac_status )
5049ac_cv_func_memcmp_working=no
5050fi
5051rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5052fi
5053fi
5054echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5055echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5056test $ac_cv_func_memcmp_working = no &&
5057
5058
5059
5060
5061
5062
5063 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
5064
5065
5066 if test $ac_cv_func_memcmp_working = no; then
5067
5068cat >>confdefs.h <<\_ACEOF
5069#define memcmp rpl_memcmp
5070_ACEOF
5071
5072 :
5073 fi
5074
5075
5076
5077 if test $ac_cv_have_decl_memmem = yes; then
5078 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
5079echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
5080if test "${gl_cv_func_memmem_works+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5082else
5083 if test "$cross_compiling" = yes; then
5084 gl_cv_func_memmem_works="guessing no"
5085else
5086 cat >conftest.$ac_ext <<_ACEOF
5087/* confdefs.h. */
5088_ACEOF
5089cat confdefs.h >>conftest.$ac_ext
5090cat >>conftest.$ac_ext <<_ACEOF
5091/* end confdefs.h. */
5092
5093#include <string.h> /* for memmem */
5094#include <stdlib.h> /* for malloc */
5095#include <unistd.h> /* for alarm */
5096
5097int
5098main ()
5099{
5100size_t m = 1000000;
5101 char *haystack = (char *) malloc (2 * m + 1);
5102 char *needle = (char *) malloc (m + 1);
5103 void *result = 0;
5104 /* Failure to compile this test due to missing alarm is okay,
5105 since all such platforms (mingw) also lack memmem. */
5106 alarm (5);
5107 /* Check for quadratic performance. */
5108 if (haystack && needle)
5109 {
5110 memset (haystack, 'A', 2 * m);
5111 haystack[2 * m] = 'B';
5112 memset (needle, 'A', m);
5113 needle[m] = 'B';
5114 result = memmem (haystack, 2 * m + 1, needle, m + 1);
5115 }
5116 /* Check for empty needle behavior. */
5117 return !result || !memmem ("a", 1, 0, 0);
5118 ;
5119 return 0;
5120}
5121_ACEOF
5122rm -f conftest$ac_exeext
5123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5124 (eval $ac_link) 2>&5
5125 ac_status=$?
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 (eval $ac_try) 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; }; then
5133 gl_cv_func_memmem_works=yes
5134else
5135 echo "$as_me: program exited with status $ac_status" >&5
5136echo "$as_me: failed program was:" >&5
5137sed 's/^/| /' conftest.$ac_ext >&5
5138
5139( exit $ac_status )
5140gl_cv_func_memmem_works=no
5141fi
5142rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5143fi
5144fi
5145echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
5146echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
5147 if test "$gl_cv_func_memmem_works" != yes; then
5148 REPLACE_MEMMEM=1
5149
5150
5151
5152
5153
5154
5155
5156 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
5157
5158 fi
5159 fi
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173for ac_func in memmem
5174do
5175as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5176echo "$as_me:$LINENO: checking for $ac_func" >&5
5177echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5178if eval "test \"\${$as_ac_var+set}\" = set"; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180else
5181 cat >conftest.$ac_ext <<_ACEOF
5182/* confdefs.h. */
5183_ACEOF
5184cat confdefs.h >>conftest.$ac_ext
5185cat >>conftest.$ac_ext <<_ACEOF
5186/* end confdefs.h. */
5187/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5189#define $ac_func innocuous_$ac_func
5190
5191/* System header to define __stub macros and hopefully few prototypes,
5192 which can conflict with char $ac_func (); below.
5193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5194 <limits.h> exists even on freestanding compilers. */
5195
5196#ifdef __STDC__
5197# include <limits.h>
5198#else
5199# include <assert.h>
5200#endif
5201
5202#undef $ac_func
5203
5204/* Override any gcc2 internal prototype to avoid an error. */
5205#ifdef __cplusplus
5206extern "C"
5207{
5208#endif
5209/* We use char because int might match the return type of a gcc2
5210 builtin and then its argument prototype would still apply. */
5211char $ac_func ();
5212/* The GNU C library defines this for functions which it implements
5213 to always fail with ENOSYS. Some functions are actually named
5214 something starting with __ and the normal name is an alias. */
5215#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5216choke me
5217#else
5218char (*f) () = $ac_func;
5219#endif
5220#ifdef __cplusplus
5221}
5222#endif
5223
5224int
5225main ()
5226{
5227return f != $ac_func;
5228 ;
5229 return 0;
5230}
5231_ACEOF
5232rm -f conftest.$ac_objext conftest$ac_exeext
5233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5234 (eval $ac_link) 2>conftest.er1
5235 ac_status=$?
5236 grep -v '^ *+' conftest.er1 >conftest.err
5237 rm -f conftest.er1
5238 cat conftest.err >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try='test -z "$ac_c_werror_flag"
5242 || test ! -s conftest.err'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 (eval $ac_try) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try='test -s conftest$ac_exeext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 (eval $ac_try) 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5254 eval "$as_ac_var=yes"
5255else
5256 echo "$as_me: failed program was:" >&5
5257sed 's/^/| /' conftest.$ac_ext >&5
5258
5259eval "$as_ac_var=no"
5260fi
5261rm -f conftest.err conftest.$ac_objext \
5262 conftest$ac_exeext conftest.$ac_ext
5263fi
5264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5265echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5266if test `eval echo '${'$as_ac_var'}'` = yes; then
5267 cat >>confdefs.h <<_ACEOF
5268#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5269_ACEOF
5270
5271else
5272
5273 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5274
5275fi
5276done
5277
5278
5279
5280 :
5281
5282
5283
5284
5285
5286 if test $ac_cv_have_decl_memmem = no; then
5287 HAVE_DECL_MEMMEM=0
5288 fi
5289 :
5290
5291
5292
5293 GNULIB_MEMMEM=1
5294
5295
5296
5297
5298 if test $ac_cv_type_long_long_int = yes; then
5299 HAVE_LONG_LONG_INT=1
5300 else
5301 HAVE_LONG_LONG_INT=0
5302 fi
5303
5304
5305 if test $ac_cv_type_unsigned_long_long_int = yes; then
5306 HAVE_UNSIGNED_LONG_LONG_INT=1
5307 else
5308 HAVE_UNSIGNED_LONG_LONG_INT=0
5309 fi
5310
5311
5312 if test $ac_cv_header_inttypes_h = yes; then
5313 HAVE_INTTYPES_H=1
5314 else
5315 HAVE_INTTYPES_H=0
5316 fi
5317
5318
5319 if test $ac_cv_header_sys_types_h = yes; then
5320 HAVE_SYS_TYPES_H=1
5321 else
5322 HAVE_SYS_TYPES_H=0
5323 fi
5324
5325
5326
5327
5328
5329 :
5330
5331
5332
5333
5334
5335
5336
5337 if test $gl_cv_have_include_next = yes; then
5338 gl_cv_next_stdint_h='<'stdint.h'>'
5339 else
5340 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5341echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5342if test "${gl_cv_next_stdint_h+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344else
5345
5346 if test $ac_cv_header_stdint_h = yes; then
5347 cat >conftest.$ac_ext <<_ACEOF
5348/* confdefs.h. */
5349_ACEOF
5350cat confdefs.h >>conftest.$ac_ext
5351cat >>conftest.$ac_ext <<_ACEOF
5352/* end confdefs.h. */
5353#include <stdint.h>
5354
5355_ACEOF
5356 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5357 sed -n '\#/stdint.h#{
5358 s#.*"\(.*/stdint.h\)".*#\1#
5359 s#^/[^/]#//&#
5360 p
5361 q
5362 }'`'"'
5363 else
5364 gl_cv_next_stdint_h='<'stdint.h'>'
5365 fi
5366
5367fi
5368echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5369echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5370 fi
5371 NEXT_STDINT_H=$gl_cv_next_stdint_h
5372
5373
5374
5375 if test $ac_cv_header_stdint_h = yes; then
5376 HAVE_STDINT_H=1
5377 else
5378 HAVE_STDINT_H=0
5379 fi
5380
5381
5382 if test $ac_cv_header_stdint_h = yes; then
5383 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5384echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5385if test "${gl_cv_header_working_stdint_h+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387else
5388 gl_cv_header_working_stdint_h=no
5389 cat >conftest.$ac_ext <<_ACEOF
5390
5391 /* confdefs.h. */
5392_ACEOF
5393cat confdefs.h >>conftest.$ac_ext
5394cat >>conftest.$ac_ext <<_ACEOF
5395/* end confdefs.h. */
5396
5397#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5398#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5399#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5400#include <stdint.h>
5401/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5402#if !(defined WCHAR_MIN && defined WCHAR_MAX)
5403#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5404#endif
5405
5406
5407 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5408 included before <wchar.h>. */
5409 #include <stddef.h>
5410 #include <signal.h>
5411 #if HAVE_WCHAR_H
5412 # include <stdio.h>
5413 # include <time.h>
5414 # include <wchar.h>
5415 #endif
5416
5417
5418#ifdef INT8_MAX
5419int8_t a1 = INT8_MAX;
5420int8_t a1min = INT8_MIN;
5421#endif
5422#ifdef INT16_MAX
5423int16_t a2 = INT16_MAX;
5424int16_t a2min = INT16_MIN;
5425#endif
5426#ifdef INT32_MAX
5427int32_t a3 = INT32_MAX;
5428int32_t a3min = INT32_MIN;
5429#endif
5430#ifdef INT64_MAX
5431int64_t a4 = INT64_MAX;
5432int64_t a4min = INT64_MIN;
5433#endif
5434#ifdef UINT8_MAX
5435uint8_t b1 = UINT8_MAX;
5436#else
5437typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5438#endif
5439#ifdef UINT16_MAX
5440uint16_t b2 = UINT16_MAX;
5441#endif
5442#ifdef UINT32_MAX
5443uint32_t b3 = UINT32_MAX;
5444#endif
5445#ifdef UINT64_MAX
5446uint64_t b4 = UINT64_MAX;
5447#endif
5448int_least8_t c1 = INT8_C (0x7f);
5449int_least8_t c1max = INT_LEAST8_MAX;
5450int_least8_t c1min = INT_LEAST8_MIN;
5451int_least16_t c2 = INT16_C (0x7fff);
5452int_least16_t c2max = INT_LEAST16_MAX;
5453int_least16_t c2min = INT_LEAST16_MIN;
5454int_least32_t c3 = INT32_C (0x7fffffff);
5455int_least32_t c3max = INT_LEAST32_MAX;
5456int_least32_t c3min = INT_LEAST32_MIN;
5457int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5458int_least64_t c4max = INT_LEAST64_MAX;
5459int_least64_t c4min = INT_LEAST64_MIN;
5460uint_least8_t d1 = UINT8_C (0xff);
5461uint_least8_t d1max = UINT_LEAST8_MAX;
5462uint_least16_t d2 = UINT16_C (0xffff);
5463uint_least16_t d2max = UINT_LEAST16_MAX;
5464uint_least32_t d3 = UINT32_C (0xffffffff);
5465uint_least32_t d3max = UINT_LEAST32_MAX;
5466uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5467uint_least64_t d4max = UINT_LEAST64_MAX;
5468int_fast8_t e1 = INT_FAST8_MAX;
5469int_fast8_t e1min = INT_FAST8_MIN;
5470int_fast16_t e2 = INT_FAST16_MAX;
5471int_fast16_t e2min = INT_FAST16_MIN;
5472int_fast32_t e3 = INT_FAST32_MAX;
5473int_fast32_t e3min = INT_FAST32_MIN;
5474int_fast64_t e4 = INT_FAST64_MAX;
5475int_fast64_t e4min = INT_FAST64_MIN;
5476uint_fast8_t f1 = UINT_FAST8_MAX;
5477uint_fast16_t f2 = UINT_FAST16_MAX;
5478uint_fast32_t f3 = UINT_FAST32_MAX;
5479uint_fast64_t f4 = UINT_FAST64_MAX;
5480#ifdef INTPTR_MAX
5481intptr_t g = INTPTR_MAX;
5482intptr_t gmin = INTPTR_MIN;
5483#endif
5484#ifdef UINTPTR_MAX
5485uintptr_t h = UINTPTR_MAX;
5486#endif
5487intmax_t i = INTMAX_MAX;
5488uintmax_t j = UINTMAX_MAX;
5489
5490#include <limits.h> /* for CHAR_BIT */
5491#define TYPE_MINIMUM(t) \
5492 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5493#define TYPE_MAXIMUM(t) \
5494 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5495struct s {
5496 int check_PTRDIFF:
5497 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5498 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5499 ? 1 : -1;
5500 /* Detect bug in FreeBSD 6.0 / ia64. */
5501 int check_SIG_ATOMIC:
5502 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5503 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5504 ? 1 : -1;
5505 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5506 int check_WCHAR:
5507 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5508 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5509 ? 1 : -1;
5510 /* Detect bug in mingw. */
5511 int check_WINT:
5512 WINT_MIN == TYPE_MINIMUM (wint_t)
5513 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5514 ? 1 : -1;
5515
5516 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5517 int check_UINT8_C:
5518 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5519 int check_UINT16_C:
5520 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5521
5522 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5523#ifdef UINT8_MAX
5524 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5525#endif
5526#ifdef UINT16_MAX
5527 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5528#endif
5529#ifdef UINT32_MAX
5530 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5531#endif
5532#ifdef UINT64_MAX
5533 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5534#endif
5535 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5536 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5537 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5538 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5539 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5540 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5541 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5542 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5543 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5544 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5545 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5546};
5547
5548int
5549main ()
5550{
5551
5552 ;
5553 return 0;
5554}
5555_ACEOF
5556rm -f conftest.$ac_objext
5557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558 (eval $ac_compile) 2>conftest.er1
5559 ac_status=$?
5560 grep -v '^ *+' conftest.er1 >conftest.err
5561 rm -f conftest.er1
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try='test -z "$ac_c_werror_flag"
5566 || test ! -s conftest.err'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; } &&
5572 { ac_try='test -s conftest.$ac_objext'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 (eval $ac_try) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 gl_cv_header_working_stdint_h=yes
5579else
5580 echo "$as_me: failed program was:" >&5
5581sed 's/^/| /' conftest.$ac_ext >&5
5582
5583fi
5584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5585fi
5586echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5587echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5588 fi
5589 if test "$gl_cv_header_working_stdint_h" = yes; then
5590 STDINT_H=
5591 else
5592
5593
5594for ac_header in sys/inttypes.h sys/bitypes.h
5595do
5596as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5597if eval "test \"\${$as_ac_Header+set}\" = set"; then
5598 echo "$as_me:$LINENO: checking for $ac_header" >&5
5599echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5600if eval "test \"\${$as_ac_Header+set}\" = set"; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5602fi
5603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5604echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5605else
5606 # Is the header compilable?
5607echo "$as_me:$LINENO: checking $ac_header usability" >&5
5608echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5609cat >conftest.$ac_ext <<_ACEOF
5610/* confdefs.h. */
5611_ACEOF
5612cat confdefs.h >>conftest.$ac_ext
5613cat >>conftest.$ac_ext <<_ACEOF
5614/* end confdefs.h. */
5615$ac_includes_default
5616#include <$ac_header>
5617_ACEOF
5618rm -f conftest.$ac_objext
5619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5620 (eval $ac_compile) 2>conftest.er1
5621 ac_status=$?
5622 grep -v '^ *+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } &&
5627 { ac_try='test -z "$ac_c_werror_flag"
5628 || test ! -s conftest.err'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 (eval $ac_try) 2>&5
5631 ac_status=$?
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; } &&
5634 { ac_try='test -s conftest.$ac_objext'
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636 (eval $ac_try) 2>&5
5637 ac_status=$?
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; }; then
5640 ac_header_compiler=yes
5641else
5642 echo "$as_me: failed program was:" >&5
5643sed 's/^/| /' conftest.$ac_ext >&5
5644
5645ac_header_compiler=no
5646fi
5647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5648echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5649echo "${ECHO_T}$ac_header_compiler" >&6
5650
5651# Is the header present?
5652echo "$as_me:$LINENO: checking $ac_header presence" >&5
5653echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5654cat >conftest.$ac_ext <<_ACEOF
5655/* confdefs.h. */
5656_ACEOF
5657cat confdefs.h >>conftest.$ac_ext
5658cat >>conftest.$ac_ext <<_ACEOF
5659/* end confdefs.h. */
5660#include <$ac_header>
5661_ACEOF
5662if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } >/dev/null; then
5670 if test -s conftest.err; then
5671 ac_cpp_err=$ac_c_preproc_warn_flag
5672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5673 else
5674 ac_cpp_err=
5675 fi
5676else
5677 ac_cpp_err=yes
5678fi
5679if test -z "$ac_cpp_err"; then
5680 ac_header_preproc=yes
5681else
5682 echo "$as_me: failed program was:" >&5
5683sed 's/^/| /' conftest.$ac_ext >&5
5684
5685 ac_header_preproc=no
5686fi
5687rm -f conftest.err conftest.$ac_ext
5688echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5689echo "${ECHO_T}$ac_header_preproc" >&6
5690
5691# So? What about this header?
5692case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5693 yes:no: )
5694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5695echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5697echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5698 ac_header_preproc=yes
5699 ;;
5700 no:yes:* )
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5702echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5704echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5706echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5708echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5710echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5712echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5713 (
5714 cat <<\_ASBOX
5715## ------------------------------------------ ##
5716## Report this to the AC_PACKAGE_NAME lists. ##
5717## ------------------------------------------ ##
5718_ASBOX
5719 ) |
5720 sed "s/^/$as_me: WARNING: /" >&2
5721 ;;
5722esac
5723echo "$as_me:$LINENO: checking for $ac_header" >&5
5724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5725if eval "test \"\${$as_ac_Header+set}\" = set"; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5727else
5728 eval "$as_ac_Header=\$ac_header_preproc"
5729fi
5730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5732
5733fi
5734if test `eval echo '${'$as_ac_Header'}'` = yes; then
5735 cat >>confdefs.h <<_ACEOF
5736#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5737_ACEOF
5738
5739fi
5740
5741done
5742
5743 if test $ac_cv_header_sys_inttypes_h = yes; then
5744 HAVE_SYS_INTTYPES_H=1
5745 else
5746 HAVE_SYS_INTTYPES_H=0
5747 fi
5748
5749 if test $ac_cv_header_sys_bitypes_h = yes; then
5750 HAVE_SYS_BITYPES_H=1
5751 else
5752 HAVE_SYS_BITYPES_H=0
5753 fi
5754
5755
5756
5757 :
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5773 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5774echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5775if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5777else
5778 if test "$cross_compiling" = yes; then
5779 # Depending upon the size, compute the lo and hi bounds.
5780cat >conftest.$ac_ext <<_ACEOF
5781/* confdefs.h. */
5782_ACEOF
5783cat confdefs.h >>conftest.$ac_ext
5784cat >>conftest.$ac_ext <<_ACEOF
5785/* end confdefs.h. */
5786
5787 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5788 included before <wchar.h>. */
5789 #include <stddef.h>
5790 #include <signal.h>
5791 #if HAVE_WCHAR_H
5792 # include <stdio.h>
5793 # include <time.h>
5794 # include <wchar.h>
5795 #endif
5796
5797#include <limits.h>
5798int
5799main ()
5800{
5801static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5802test_array [0] = 0
5803
5804 ;
5805 return 0;
5806}
5807_ACEOF
5808rm -f conftest.$ac_objext
5809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810 (eval $ac_compile) 2>conftest.er1
5811 ac_status=$?
5812 grep -v '^ *+' conftest.er1 >conftest.err
5813 rm -f conftest.er1
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try='test -z "$ac_c_werror_flag"
5818 || test ! -s conftest.err'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 (eval $ac_try) 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; } &&
5824 { ac_try='test -s conftest.$ac_objext'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 (eval $ac_try) 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; }; then
5830 ac_lo=0 ac_mid=0
5831 while :; do
5832 cat >conftest.$ac_ext <<_ACEOF
5833/* confdefs.h. */
5834_ACEOF
5835cat confdefs.h >>conftest.$ac_ext
5836cat >>conftest.$ac_ext <<_ACEOF
5837/* end confdefs.h. */
5838
5839 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5840 included before <wchar.h>. */
5841 #include <stddef.h>
5842 #include <signal.h>
5843 #if HAVE_WCHAR_H
5844 # include <stdio.h>
5845 # include <time.h>
5846 # include <wchar.h>
5847 #endif
5848
5849#include <limits.h>
5850int
5851main ()
5852{
5853static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5854test_array [0] = 0
5855
5856 ;
5857 return 0;
5858}
5859_ACEOF
5860rm -f conftest.$ac_objext
5861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5862 (eval $ac_compile) 2>conftest.er1
5863 ac_status=$?
5864 grep -v '^ *+' conftest.er1 >conftest.err
5865 rm -f conftest.er1
5866 cat conftest.err >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); } &&
5869 { ac_try='test -z "$ac_c_werror_flag"
5870 || test ! -s conftest.err'
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); }; } &&
5876 { ac_try='test -s conftest.$ac_objext'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 (eval $ac_try) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; }; then
5882 ac_hi=$ac_mid; break
5883else
5884 echo "$as_me: failed program was:" >&5
5885sed 's/^/| /' conftest.$ac_ext >&5
5886
5887ac_lo=`expr $ac_mid + 1`
5888 if test $ac_lo -le $ac_mid; then
5889 ac_lo= ac_hi=
5890 break
5891 fi
5892 ac_mid=`expr 2 '*' $ac_mid + 1`
5893fi
5894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5895 done
5896else
5897 echo "$as_me: failed program was:" >&5
5898sed 's/^/| /' conftest.$ac_ext >&5
5899
5900cat >conftest.$ac_ext <<_ACEOF
5901/* confdefs.h. */
5902_ACEOF
5903cat confdefs.h >>conftest.$ac_ext
5904cat >>conftest.$ac_ext <<_ACEOF
5905/* end confdefs.h. */
5906
5907 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5908 included before <wchar.h>. */
5909 #include <stddef.h>
5910 #include <signal.h>
5911 #if HAVE_WCHAR_H
5912 # include <stdio.h>
5913 # include <time.h>
5914 # include <wchar.h>
5915 #endif
5916
5917#include <limits.h>
5918int
5919main ()
5920{
5921static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5922test_array [0] = 0
5923
5924 ;
5925 return 0;
5926}
5927_ACEOF
5928rm -f conftest.$ac_objext
5929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_hi=-1 ac_mid=-1
5951 while :; do
5952 cat >conftest.$ac_ext <<_ACEOF
5953/* confdefs.h. */
5954_ACEOF
5955cat confdefs.h >>conftest.$ac_ext
5956cat >>conftest.$ac_ext <<_ACEOF
5957/* end confdefs.h. */
5958
5959 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5960 included before <wchar.h>. */
5961 #include <stddef.h>
5962 #include <signal.h>
5963 #if HAVE_WCHAR_H
5964 # include <stdio.h>
5965 # include <time.h>
5966 # include <wchar.h>
5967 #endif
5968
5969#include <limits.h>
5970int
5971main ()
5972{
5973static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5974test_array [0] = 0
5975
5976 ;
5977 return 0;
5978}
5979_ACEOF
5980rm -f conftest.$ac_objext
5981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982 (eval $ac_compile) 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_c_werror_flag"
5990 || test ! -s conftest.err'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 (eval $ac_try) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; } &&
5996 { ac_try='test -s conftest.$ac_objext'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 (eval $ac_try) 2>&5
5999 ac_status=$?
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }; then
6002 ac_lo=$ac_mid; break
6003else
6004 echo "$as_me: failed program was:" >&5
6005sed 's/^/| /' conftest.$ac_ext >&5
6006
6007ac_hi=`expr '(' $ac_mid ')' - 1`
6008 if test $ac_mid -le $ac_hi; then
6009 ac_lo= ac_hi=
6010 break
6011 fi
6012 ac_mid=`expr 2 '*' $ac_mid`
6013fi
6014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6015 done
6016else
6017 echo "$as_me: failed program was:" >&5
6018sed 's/^/| /' conftest.$ac_ext >&5
6019
6020ac_lo= ac_hi=
6021fi
6022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6023fi
6024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6025# Binary search between lo and hi bounds.
6026while test "x$ac_lo" != "x$ac_hi"; do
6027 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6028 cat >conftest.$ac_ext <<_ACEOF
6029/* confdefs.h. */
6030_ACEOF
6031cat confdefs.h >>conftest.$ac_ext
6032cat >>conftest.$ac_ext <<_ACEOF
6033/* end confdefs.h. */
6034
6035 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6036 included before <wchar.h>. */
6037 #include <stddef.h>
6038 #include <signal.h>
6039 #if HAVE_WCHAR_H
6040 # include <stdio.h>
6041 # include <time.h>
6042 # include <wchar.h>
6043 #endif
6044
6045#include <limits.h>
6046int
6047main ()
6048{
6049static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
6050test_array [0] = 0
6051
6052 ;
6053 return 0;
6054}
6055_ACEOF
6056rm -f conftest.$ac_objext
6057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6058 (eval $ac_compile) 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try='test -z "$ac_c_werror_flag"
6066 || test ! -s conftest.err'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 (eval $ac_try) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; } &&
6072 { ac_try='test -s conftest.$ac_objext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 (eval $ac_try) 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 ac_hi=$ac_mid
6079else
6080 echo "$as_me: failed program was:" >&5
6081sed 's/^/| /' conftest.$ac_ext >&5
6082
6083ac_lo=`expr '(' $ac_mid ')' + 1`
6084fi
6085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6086done
6087case $ac_lo in
6088?*) result=$ac_lo;;
6089'') result=unknown ;;
6090esac
6091else
6092 if test "$cross_compiling" = yes; then
d5af19ba
DJ
6093 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6094echo "$as_me: error: in \`$ac_pwd':" >&2;}
6095{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
783e057b
DJ
6096See \`config.log' for more details." >&5
6097echo "$as_me: error: cannot run test program while cross compiling
6098See \`config.log' for more details." >&2;}
d5af19ba 6099 { (exit 1); exit 1; }; }; }
783e057b
DJ
6100else
6101 cat >conftest.$ac_ext <<_ACEOF
6102/* confdefs.h. */
6103_ACEOF
6104cat confdefs.h >>conftest.$ac_ext
6105cat >>conftest.$ac_ext <<_ACEOF
6106/* end confdefs.h. */
6107
6108 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6109 included before <wchar.h>. */
6110 #include <stddef.h>
6111 #include <signal.h>
6112 #if HAVE_WCHAR_H
6113 # include <stdio.h>
6114 # include <time.h>
6115 # include <wchar.h>
6116 #endif
6117
6118#include <limits.h>
6119long longval () { return sizeof ($gltype) * CHAR_BIT; }
6120unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
6121#include <stdio.h>
6122#include <stdlib.h>
6123int
6124main ()
6125{
6126
6127 FILE *f = fopen ("conftest.val", "w");
6128 if (! f)
6129 exit (1);
6130 if ((sizeof ($gltype) * CHAR_BIT) < 0)
6131 {
6132 long i = longval ();
6133 if (i != (sizeof ($gltype) * CHAR_BIT))
6134 exit (1);
6135 fprintf (f, "%ld\n", i);
6136 }
6137 else
6138 {
6139 unsigned long i = ulongval ();
6140 if (i != (sizeof ($gltype) * CHAR_BIT))
6141 exit (1);
6142 fprintf (f, "%lu\n", i);
6143 }
6144 exit (ferror (f) || fclose (f) != 0);
6145
6146 ;
6147 return 0;
6148}
6149_ACEOF
6150rm -f conftest$ac_exeext
6151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6152 (eval $ac_link) 2>&5
6153 ac_status=$?
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 (eval $ac_try) 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6161 result=`cat conftest.val`
6162else
6163 echo "$as_me: program exited with status $ac_status" >&5
6164echo "$as_me: failed program was:" >&5
6165sed 's/^/| /' conftest.$ac_ext >&5
6166
6167( exit $ac_status )
6168result=unknown
6169fi
6170rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6171fi
6172fi
6173rm -f conftest.val
6174 eval gl_cv_bitsizeof_${gltype}=\$result
c906108c 6175
783e057b
DJ
6176fi
6177echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
6178echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
6179 eval result=\$gl_cv_bitsizeof_${gltype}
6180 if test $result = unknown; then
6181 result=0
6182 fi
6183 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6184 cat >>confdefs.h <<_ACEOF
6185#define BITSIZEOF_${GLTYPE} $result
6186_ACEOF
c906108c 6187
783e057b
DJ
6188 eval BITSIZEOF_${GLTYPE}=\$result
6189 done
c906108c 6190
c906108c 6191
c906108c 6192
bec39cab 6193
3841debe 6194
783e057b
DJ
6195
6196
6197 for gltype in sig_atomic_t wchar_t wint_t ; do
6198 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
6199echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
6200if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202else
6203 cat >conftest.$ac_ext <<_ACEOF
6204/* confdefs.h. */
6205_ACEOF
6206cat confdefs.h >>conftest.$ac_ext
6207cat >>conftest.$ac_ext <<_ACEOF
6208/* end confdefs.h. */
6209
6210 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6211 included before <wchar.h>. */
6212 #include <stddef.h>
6213 #include <signal.h>
6214 #if HAVE_WCHAR_H
6215 # include <stdio.h>
6216 # include <time.h>
6217 # include <wchar.h>
6218 #endif
6219
6220 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6221int
6222main ()
6223{
6224
6225 ;
6226 return 0;
6227}
6228_ACEOF
6229rm -f conftest.$ac_objext
6230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231 (eval $ac_compile) 2>conftest.er1
6232 ac_status=$?
6233 grep -v '^ *+' conftest.er1 >conftest.err
6234 rm -f conftest.er1
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } &&
6238 { ac_try='test -z "$ac_c_werror_flag"
6239 || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 (eval $ac_try) 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 result=yes
6252else
6253 echo "$as_me: failed program was:" >&5
6254sed 's/^/| /' conftest.$ac_ext >&5
6255
6256result=no
20e95c23 6257fi
783e057b
DJ
6258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6259 eval gl_cv_type_${gltype}_signed=\$result
6260
6261fi
6262echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6263echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6264 eval result=\$gl_cv_type_${gltype}_signed
6265 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6266 if test "$result" = yes; then
6267 cat >>confdefs.h <<_ACEOF
6268#define HAVE_SIGNED_${GLTYPE} 1
6269_ACEOF
6270
6271 eval HAVE_SIGNED_${GLTYPE}=1
6272 else
6273 eval HAVE_SIGNED_${GLTYPE}=0
6274 fi
6275 done
6276
6277
6278 gl_cv_type_ptrdiff_t_signed=yes
6279 gl_cv_type_size_t_signed=no
6280
6281
6282
6283
6284
6285
6286
6287 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6288 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6289echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6290if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6292else
783e057b
DJ
6293 eval gl_cv_type_${gltype}_suffix=no
6294 eval result=\$gl_cv_type_${gltype}_signed
6295 if test "$result" = yes; then
6296 glsufu=
6297 else
6298 glsufu=u
6299 fi
6300 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6301 case $glsuf in
6302 '') gltype1='int';;
6303 l) gltype1='long int';;
6304 ll) gltype1='long long int';;
6305 i64) gltype1='__int64';;
6306 u) gltype1='unsigned int';;
6307 ul) gltype1='unsigned long int';;
6308 ull) gltype1='unsigned long long int';;
6309 ui64)gltype1='unsigned __int64';;
6310 esac
6311 cat >conftest.$ac_ext <<_ACEOF
6312/* confdefs.h. */
6313_ACEOF
6314cat confdefs.h >>conftest.$ac_ext
6315cat >>conftest.$ac_ext <<_ACEOF
6316/* end confdefs.h. */
6317
6318 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6319 included before <wchar.h>. */
6320 #include <stddef.h>
6321 #include <signal.h>
6322 #if HAVE_WCHAR_H
6323 # include <stdio.h>
6324 # include <time.h>
6325 # include <wchar.h>
6326 #endif
6327
6328 extern $gltype foo;
6329 extern $gltype1 foo;
6330int
6331main ()
6332{
6333
6334 ;
6335 return 0;
6336}
6337_ACEOF
6338rm -f conftest.$ac_objext
6339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6340 (eval $ac_compile) 2>conftest.er1
6341 ac_status=$?
6342 grep -v '^ *+' conftest.er1 >conftest.err
6343 rm -f conftest.er1
6344 cat conftest.err >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } &&
6347 { ac_try='test -z "$ac_c_werror_flag"
6348 || test ! -s conftest.err'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 (eval $ac_try) 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; } &&
6354 { ac_try='test -s conftest.$ac_objext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 (eval $ac_try) 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 eval gl_cv_type_${gltype}_suffix=\$glsuf
6361else
6362 echo "$as_me: failed program was:" >&5
6363sed 's/^/| /' conftest.$ac_ext >&5
6364
6365fi
6366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6367 eval result=\$gl_cv_type_${gltype}_suffix
6368 test "$result" != no && break
6369 done
6370fi
6371echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6372echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6373 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6374 eval result=\$gl_cv_type_${gltype}_suffix
6375 test "$result" = no && result=
6376 eval ${GLTYPE}_SUFFIX=\$result
6377 cat >>confdefs.h <<_ACEOF
6378#define ${GLTYPE}_SUFFIX $result
6379_ACEOF
6380
6381 done
6382
6383
6384
6385 STDINT_H=stdint.h
6386 fi
6387
6388
6389
6390
6391
6392
6393
6394 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6395echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6396if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6398else
6399 cat >conftest.$ac_ext <<_ACEOF
6400#include <wchar.h>
6401wchar_t w;
6402_ACEOF
6403rm -f conftest.$ac_objext
6404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6405 (eval $ac_compile) 2>conftest.er1
6406 ac_status=$?
6407 grep -v '^ *+' conftest.er1 >conftest.err
6408 rm -f conftest.er1
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } &&
6412 { ac_try='test -z "$ac_c_werror_flag"
6413 || test ! -s conftest.err'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 (eval $ac_try) 2>&5
6416 ac_status=$?
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; } &&
6419 { ac_try='test -s conftest.$ac_objext'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 (eval $ac_try) 2>&5
6422 ac_status=$?
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; }; then
6425 gl_cv_header_wchar_h_standalone=yes
6426else
6427 echo "$as_me: failed program was:" >&5
6428sed 's/^/| /' conftest.$ac_ext >&5
6429
6430gl_cv_header_wchar_h_standalone=no
6431fi
6432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6433fi
6434echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6435echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6436 if test $gl_cv_header_wchar_h_standalone != yes; then
6437 WCHAR_H=wchar.h
6438 fi
6439
6440
6441 :
6442
6443
6444
6445
6446
6447 if test $ac_cv_header_wchar_h = yes; then
6448 HAVE_WCHAR_H=1
6449 else
6450 HAVE_WCHAR_H=0
6451 fi
6452
6453
6454
6455
6456 :
6457
6458
6459
6460
6461
6462
6463
6464 if test $gl_cv_have_include_next = yes; then
6465 gl_cv_next_wchar_h='<'wchar.h'>'
6466 else
6467 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6468echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6469if test "${gl_cv_next_wchar_h+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6471else
6472
6473 if test $ac_cv_header_wchar_h = yes; then
6474 cat >conftest.$ac_ext <<_ACEOF
6475/* confdefs.h. */
6476_ACEOF
6477cat confdefs.h >>conftest.$ac_ext
6478cat >>conftest.$ac_ext <<_ACEOF
6479/* end confdefs.h. */
6480#include <wchar.h>
6481
6482_ACEOF
6483 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6484 sed -n '\#/wchar.h#{
6485 s#.*"\(.*/wchar.h\)".*#\1#
6486 s#^/[^/]#//&#
6487 p
6488 q
6489 }'`'"'
6490 else
6491 gl_cv_next_wchar_h='<'wchar.h'>'
6492 fi
6493
6494fi
6495echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6496echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6497 fi
6498 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6499
c906108c 6500
c906108c 6501
c906108c 6502
c906108c 6503
c906108c 6504
c906108c 6505
c906108c 6506
783e057b
DJ
6507 gltests_libdeps=
6508 gltests_ltlibdeps=
20e95c23 6509
20e95c23 6510
20e95c23 6511
783e057b 6512 gl_source_base='tests'
c906108c 6513
bec39cab 6514
bec39cab 6515
783e057b
DJ
6516
6517 LIBGNU_LIBDEPS="$gl_libdeps"
6518
6519 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6520
6521
e28b3332 6522
d5af19ba
DJ
6523# For Makefile dependencies.
6524GNULIB_STDINT_H=
6525if test x"$STDINT_H" != x; then
6526 GNULIB_STDINT_H=gnulib/$STDINT_H
6527fi
6528
6529
bec39cab
AC
6530PACKAGE=gdb
6531
6532cat >>confdefs.h <<_ACEOF
6533#define PACKAGE "$PACKAGE"
6534_ACEOF
6535
6536
6537
e28b3332
DJ
6538# GDB does not use automake, but gnulib does. This line lets us
6539# generate its Makefile.in.
6540am__api_version="1.9"
6541# Find a good install program. We prefer a C program (faster),
6542# so one script is as good as another. But avoid the broken or
6543# incompatible versions:
6544# SysV /etc/install, /usr/sbin/install
6545# SunOS /usr/etc/install
6546# IRIX /sbin/install
6547# AIX /bin/install
6548# AmigaOS /C/install, which installs bootblocks on floppy discs
6549# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6550# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6551# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6552# OS/2's system install, which has a completely different semantic
6553# ./install, which can be erroneously created by make from ./install.sh.
6554echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6555echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6556if test -z "$INSTALL"; then
6557if test "${ac_cv_path_install+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6559else
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561for as_dir in $PATH
6562do
6563 IFS=$as_save_IFS
6564 test -z "$as_dir" && as_dir=.
6565 # Account for people who put trailing slashes in PATH elements.
6566case $as_dir/ in
6567 ./ | .// | /cC/* | \
6568 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6569 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6570 /usr/ucb/* ) ;;
6571 *)
6572 # OSF1 and SCO ODT 3.0 have their own names for install.
6573 # Don't use installbsd from OSF since it installs stuff as root
6574 # by default.
6575 for ac_prog in ginstall scoinst install; do
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6578 if test $ac_prog = install &&
6579 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6580 # AIX install. It has an incompatible calling convention.
6581 :
6582 elif test $ac_prog = install &&
6583 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6584 # program-specific install script used by HP pwplus--don't use.
6585 :
6586 else
6587 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6588 break 3
6589 fi
6590 fi
6591 done
6592 done
6593 ;;
6594esac
6595done
6596
6597
6598fi
6599 if test "${ac_cv_path_install+set}" = set; then
6600 INSTALL=$ac_cv_path_install
6601 else
6602 # As a last resort, use the slow shell script. We don't cache a
6603 # path for INSTALL within a source directory, because that will
6604 # break other packages using the cache if that directory is
6605 # removed, or if the path is relative.
6606 INSTALL=$ac_install_sh
6607 fi
6608fi
6609echo "$as_me:$LINENO: result: $INSTALL" >&5
6610echo "${ECHO_T}$INSTALL" >&6
6611
6612# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6613# It thinks the first close brace ends the variable substitution.
6614test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6615
6616test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6617
6618test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6619
6620echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6621echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6622# Just in case
6623sleep 1
6624echo timestamp > conftest.file
6625# Do `set' in a subshell so we don't clobber the current shell's
6626# arguments. Must try -L first in case configure is actually a
6627# symlink; some systems play weird games with the mod time of symlinks
6628# (eg FreeBSD returns the mod time of the symlink's containing
6629# directory).
6630if (
6631 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6632 if test "$*" = "X"; then
6633 # -L didn't work.
6634 set X `ls -t $srcdir/configure conftest.file`
6635 fi
6636 rm -f conftest.file
6637 if test "$*" != "X $srcdir/configure conftest.file" \
6638 && test "$*" != "X conftest.file $srcdir/configure"; then
6639
6640 # If neither matched, then we have a broken ls. This can happen
6641 # if, for instance, CONFIG_SHELL is bash and it inherits a
6642 # broken ls alias from the environment. This has actually
6643 # happened. Such a system could not be considered "sane".
6644 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6645alias in your environment" >&5
6646echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6647alias in your environment" >&2;}
6648 { (exit 1); exit 1; }; }
6649 fi
6650
6651 test "$2" = conftest.file
6652 )
6653then
6654 # Ok.
6655 :
6656else
6657 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6658Check your system clock" >&5
6659echo "$as_me: error: newly created file is older than distributed files!
6660Check your system clock" >&2;}
6661 { (exit 1); exit 1; }; }
6662fi
6663echo "$as_me:$LINENO: result: yes" >&5
6664echo "${ECHO_T}yes" >&6
6665test "$program_prefix" != NONE &&
6666 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6667# Use a double $ so make ignores it.
6668test "$program_suffix" != NONE &&
6669 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6670# Double any \ or $. echo might interpret backslashes.
6671# By default was `s,x,x', remove it if useless.
6672cat <<\_ACEOF >conftest.sed
6673s/[\\$]/&&/g;s/;s,x,x,$//
6674_ACEOF
6675program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6676rm conftest.sed
6677
6678# expand $ac_aux_dir to an absolute path
6679am_aux_dir=`cd $ac_aux_dir && pwd`
6680
6681test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6682# Use eval to expand $SHELL
6683if eval "$MISSING --run true"; then
6684 am_missing_run="$MISSING --run "
6685else
6686 am_missing_run=
6687 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6688echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6689fi
6690
6691if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6692 # We used to keeping the `.' as first argument, in order to
6693 # allow $(mkdir_p) to be used without argument. As in
6694 # $(mkdir_p) $(somedir)
6695 # where $(somedir) is conditionally defined. However this is wrong
6696 # for two reasons:
6697 # 1. if the package is installed by a user who cannot write `.'
6698 # make install will fail,
6699 # 2. the above comment should most certainly read
6700 # $(mkdir_p) $(DESTDIR)$(somedir)
6701 # so it does not work when $(somedir) is undefined and
6702 # $(DESTDIR) is not.
6703 # To support the latter case, we have to write
6704 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6705 # so the `.' trick is pointless.
6706 mkdir_p='mkdir -p --'
6707else
6708 # On NextStep and OpenStep, the `mkdir' command does not
6709 # recognize any option. It will interpret all options as
6710 # directories to create, and then abort because `.' already
6711 # exists.
6712 for d in ./-p ./--version;
6713 do
6714 test -d $d && rmdir $d
6715 done
6716 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6717 if test -f "$ac_aux_dir/mkinstalldirs"; then
6718 mkdir_p='$(mkinstalldirs)'
6719 else
6720 mkdir_p='$(install_sh) -d'
6721 fi
6722fi
6723
6724for ac_prog in gawk mawk nawk awk
6725do
6726 # Extract the first word of "$ac_prog", so it can be a program name with args.
6727set dummy $ac_prog; ac_word=$2
6728echo "$as_me:$LINENO: checking for $ac_word" >&5
6729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6730if test "${ac_cv_prog_AWK+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732else
6733 if test -n "$AWK"; then
6734 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6735else
6736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737for as_dir in $PATH
6738do
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743 ac_cv_prog_AWK="$ac_prog"
6744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6746 fi
6747done
6748done
6749
6750fi
6751fi
6752AWK=$ac_cv_prog_AWK
6753if test -n "$AWK"; then
6754 echo "$as_me:$LINENO: result: $AWK" >&5
6755echo "${ECHO_T}$AWK" >&6
6756else
6757 echo "$as_me:$LINENO: result: no" >&5
6758echo "${ECHO_T}no" >&6
6759fi
6760
6761 test -n "$AWK" && break
6762done
6763
e28b3332
DJ
6764 ac_config_commands="$ac_config_commands depfiles"
6765
6766
6767am_make=${MAKE-make}
6768cat > confinc << 'END'
6769am__doit:
6770 @echo done
6771.PHONY: am__doit
6772END
6773# If we don't find an include directive, just comment out the code.
6774echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6775echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6776am__include="#"
6777am__quote=
6778_am_result=none
6779# First try GNU make style include.
6780echo "include confinc" > confmf
6781# We grep out `Entering directory' and `Leaving directory'
6782# messages which can occur if `w' ends up in MAKEFLAGS.
6783# In particular we don't look at `^make:' because GNU make might
6784# be invoked under some other name (usually "gmake"), in which
6785# case it prints its new name instead of `make'.
6786if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6787 am__include=include
6788 am__quote=
6789 _am_result=GNU
6790fi
6791# Now try BSD make style include.
6792if test "$am__include" = "#"; then
6793 echo '.include "confinc"' > confmf
6794 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6795 am__include=.include
6796 am__quote="\""
6797 _am_result=BSD
6798 fi
6799fi
6800
6801
6802echo "$as_me:$LINENO: result: $_am_result" >&5
6803echo "${ECHO_T}$_am_result" >&6
6804rm -f confinc confmf
6805
6806# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6807if test "${enable_dependency_tracking+set}" = set; then
6808 enableval="$enable_dependency_tracking"
6809
6810fi;
6811if test "x$enable_dependency_tracking" != xno; then
6812 am_depcomp="$ac_aux_dir/depcomp"
6813 AMDEPBACKSLASH='\'
6814fi
6815
6816
6817if test "x$enable_dependency_tracking" != xno; then
6818 AMDEP_TRUE=
6819 AMDEP_FALSE='#'
6820else
6821 AMDEP_TRUE='#'
6822 AMDEP_FALSE=
6823fi
6824
6825
6826
6827# test to see if srcdir already configured
6828if test "`cd $srcdir && pwd`" != "`pwd`" &&
6829 test -f $srcdir/config.status; then
6830 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6831echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6832 { (exit 1); exit 1; }; }
6833fi
6834
6835# test whether we have cygpath
6836if test -z "$CYGPATH_W"; then
6837 if (cygpath --version) >/dev/null 2>/dev/null; then
6838 CYGPATH_W='cygpath -w'
6839 else
6840 CYGPATH_W=echo
6841 fi
6842fi
6843
6844
6845# Define the identity of the package.
6846 PACKAGE=gdb
6847 VERSION=UNUSED-VERSION
6848
6849
6850# Some tools Automake needs.
6851
6852ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6853
6854
6855AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6856
6857
6858AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6859
6860
6861AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6862
6863
6864MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6865
6866install_sh=${install_sh-"$am_aux_dir/install-sh"}
6867
6868# Installed binaries are usually stripped using `strip' when the user
6869# run `make install-strip'. However `strip' might not be the right
6870# tool to use in cross-compilation environments, therefore Automake
6871# will honor the `STRIP' environment variable to overrule this program.
6872if test "$cross_compiling" != no; then
6873 if test -n "$ac_tool_prefix"; then
6874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6875set dummy ${ac_tool_prefix}strip; ac_word=$2
6876echo "$as_me:$LINENO: checking for $ac_word" >&5
6877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6878if test "${ac_cv_prog_STRIP+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6880else
6881 if test -n "$STRIP"; then
6882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6883else
6884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885for as_dir in $PATH
6886do
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 break 2
6894 fi
6895done
6896done
6897
6898fi
6899fi
6900STRIP=$ac_cv_prog_STRIP
6901if test -n "$STRIP"; then
6902 echo "$as_me:$LINENO: result: $STRIP" >&5
6903echo "${ECHO_T}$STRIP" >&6
6904else
6905 echo "$as_me:$LINENO: result: no" >&5
6906echo "${ECHO_T}no" >&6
6907fi
6908
6909fi
6910if test -z "$ac_cv_prog_STRIP"; then
6911 ac_ct_STRIP=$STRIP
6912 # Extract the first word of "strip", so it can be a program name with args.
6913set dummy strip; ac_word=$2
6914echo "$as_me:$LINENO: checking for $ac_word" >&5
6915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6916if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6918else
6919 if test -n "$ac_ct_STRIP"; then
6920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6921else
6922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923for as_dir in $PATH
6924do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6929 ac_cv_prog_ac_ct_STRIP="strip"
6930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933done
6934done
6935
6936 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6937fi
6938fi
6939ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6940if test -n "$ac_ct_STRIP"; then
6941 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6942echo "${ECHO_T}$ac_ct_STRIP" >&6
6943else
6944 echo "$as_me:$LINENO: result: no" >&5
6945echo "${ECHO_T}no" >&6
6946fi
6947
6948 STRIP=$ac_ct_STRIP
6949else
6950 STRIP="$ac_cv_prog_STRIP"
6951fi
6952
6953fi
6954INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6955
6956# We need awk for the "check" target. The system "awk" is bad on
6957# some platforms.
6958# Always define AMTAR for backward compatibility.
6959
6960AMTAR=${AMTAR-"${am_missing_run}tar"}
6961
6962am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6963
6964
6965
6966
6967depcc="$CC" am_compiler_list=
6968
6969echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6970echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6971if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973else
6974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6975 # We make a subdir and do the tests there. Otherwise we can end up
6976 # making bogus files that we don't know about and never remove. For
6977 # instance it was reported that on HP-UX the gcc test will end up
6978 # making a dummy file named `D' -- because `-MD' means `put the output
6979 # in D'.
6980 mkdir conftest.dir
6981 # Copy depcomp to subdir because otherwise we won't find it if we're
6982 # using a relative directory.
6983 cp "$am_depcomp" conftest.dir
6984 cd conftest.dir
6985 # We will build objects and dependencies in a subdirectory because
6986 # it helps to detect inapplicable dependency modes. For instance
6987 # both Tru64's cc and ICC support -MD to output dependencies as a
6988 # side effect of compilation, but ICC will put the dependencies in
6989 # the current directory while Tru64 will put them in the object
6990 # directory.
6991 mkdir sub
6992
6993 am_cv_CC_dependencies_compiler_type=none
6994 if test "$am_compiler_list" = ""; then
6995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6996 fi
6997 for depmode in $am_compiler_list; do
6998 # Setup a source with many dependencies, because some compilers
6999 # like to wrap large dependency lists on column 80 (with \), and
7000 # we should not choose a depcomp mode which is confused by this.
7001 #
7002 # We need to recreate these files for each test, as the compiler may
7003 # overwrite some of them when testing with obscure command lines.
7004 # This happens at least with the AIX C compiler.
7005 : > sub/conftest.c
7006 for i in 1 2 3 4 5 6; do
7007 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7008 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7009 # Solaris 8's {/usr,}/bin/sh.
7010 touch sub/conftst$i.h
7011 done
7012 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7013
7014 case $depmode in
7015 nosideeffect)
7016 # after this tag, mechanisms are not by side-effect, so they'll
7017 # only be used when explicitly requested
7018 if test "x$enable_dependency_tracking" = xyes; then
7019 continue
7020 else
7021 break
7022 fi
7023 ;;
7024 none) break ;;
7025 esac
7026 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7027 # mode. It turns out that the SunPro C++ compiler does not properly
7028 # handle `-M -o', and we need to detect this.
7029 if depmode=$depmode \
7030 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7031 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7032 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7033 >/dev/null 2>conftest.err &&
7034 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7035 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7036 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7037 # icc doesn't choke on unknown options, it will just issue warnings
7038 # or remarks (even with -Werror). So we grep stderr for any message
7039 # that says an option was ignored or not supported.
7040 # When given -MP, icc 7.0 and 7.1 complain thusly:
7041 # icc: Command line warning: ignoring option '-M'; no argument required
7042 # The diagnosis changed in icc 8.0:
7043 # icc: Command line remark: option '-MP' not supported
7044 if (grep 'ignoring option' conftest.err ||
7045 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7046 am_cv_CC_dependencies_compiler_type=$depmode
7047 break
7048 fi
7049 fi
7050 done
7051
7052 cd ..
7053 rm -rf conftest.dir
7054else
7055 am_cv_CC_dependencies_compiler_type=none
7056fi
7057
7058fi
7059echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7060echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
7061CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7062
7063
7064
7065if
7066 test "x$enable_dependency_tracking" != xno \
7067 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7068 am__fastdepCC_TRUE=
7069 am__fastdepCC_FALSE='#'
7070else
7071 am__fastdepCC_TRUE='#'
7072 am__fastdepCC_FALSE=
7073fi
7074
7075
7076
7077
bec39cab
AC
7078debugdir=${libdir}/debug
7079
7080
b4e70030 7081# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
bec39cab 7082if test "${with_separate_debug_dir+set}" = set; then
783e057b
DJ
7083 withval="$with_separate_debug_dir"
7084 debugdir="${withval}"
7085fi;
20e95c23 7086
20e95c23 7087
783e057b
DJ
7088 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7089 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7090 ac_define_dir=`eval echo $debugdir`
7091 ac_define_dir=`eval echo $ac_define_dir`
20e95c23 7092
783e057b
DJ
7093cat >>confdefs.h <<_ACEOF
7094#define DEBUGDIR "$ac_define_dir"
20e95c23 7095_ACEOF
20e95c23 7096
20e95c23 7097
783e057b 7098#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
20e95c23 7099
783e057b
DJ
7100if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7101 if test "x$prefix" = xNONE; then
7102 test_prefix=/usr/local
7103 else
7104 test_prefix=$prefix
7105 fi
20e95c23 7106else
783e057b 7107 test_prefix=$exec_prefix
20e95c23 7108fi
783e057b
DJ
7109case ${debugdir} in
7110"${test_prefix}"|"${test_prefix}/"*|\
7111'${exec_prefix}'|'${exec_prefix}/'*)
20e95c23
DJ
7112
7113cat >>confdefs.h <<\_ACEOF
783e057b 7114#define DEBUGDIR_RELOCATABLE 1
20e95c23
DJ
7115_ACEOF
7116
783e057b
DJ
7117 ;;
7118esac
7119
20e95c23 7120
20e95c23 7121
783e057b 7122subdirs="$subdirs doc testsuite"
20e95c23
DJ
7123
7124
783e057b
DJ
7125# Check whether to support alternative target configurations
7126# Check whether --enable-targets or --disable-targets was given.
7127if test "${enable_targets+set}" = set; then
7128 enableval="$enable_targets"
7129 case "${enableval}" in
7130 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
7131echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
7132 { (exit 1); exit 1; }; }
7133 ;;
7134 no) enable_targets= ;;
7135 *) enable_targets=$enableval ;;
7136esac
7137fi;
20e95c23 7138
783e057b
DJ
7139# Check whether to enable 64-bit support on 32-bit hosts
7140# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
7141if test "${enable_64_bit_bfd+set}" = set; then
7142 enableval="$enable_64_bit_bfd"
7143 case "${enableval}" in
7144 yes) want64=true ;;
7145 no) want64=false ;;
7146 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
7147echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
7148 { (exit 1); exit 1; }; } ;;
7149esac
7150else
7151 want64=false
7152fi;
7153# Provide defaults for some variables set by the per-host and per-target
7154# configuration.
7155gdb_host_obs=posix-hdep.o
20e95c23 7156
783e057b
DJ
7157if test "${target}" = "${host}"; then
7158 gdb_native=yes
7159else
7160 gdb_native=no
7161fi
20e95c23 7162
783e057b 7163. $srcdir/configure.host
20e95c23 7164
783e057b 7165# Accumulate some settings from configure.tgt over all enabled targets
20e95c23 7166
783e057b
DJ
7167TARGET_OBS=
7168all_targets=
20e95c23 7169
783e057b 7170for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
20e95c23 7171do
783e057b
DJ
7172 if test "$targ_alias" = "all"; then
7173 all_targets=true
7174 else
7175 # Canonicalize the secondary target names.
7176 result=`$ac_config_sub $targ_alias 2>/dev/null`
7177 if test -n "$result"; then
7178 targ=$result
7179 else
7180 targ=$targ_alias
7181 fi
20e95c23 7182
783e057b 7183 . ${srcdir}/configure.tgt
20e95c23 7184
783e057b
DJ
7185 # Target-specific object files
7186 for i in ${gdb_target_obs}; do
7187 case " $TARGET_OBS " in
7188 *" ${i} "*) ;;
7189 *)
7190 TARGET_OBS="$TARGET_OBS ${i}"
7191 ;;
7192 esac
7193 done
20e95c23 7194
783e057b
DJ
7195 # Check whether this target needs 64-bit CORE_ADDR
7196 if test x${want64} = xfalse; then
7197 . ${srcdir}/../bfd/config.bfd
7198 fi
7199 fi
20e95c23
DJ
7200done
7201
783e057b
DJ
7202if test x${all_targets} = xtrue; then
7203
7204 # We want all 64-bit targets if we either:
7205 # - run on a 64-bit host or
7206 # - already require 64-bit support for some other target or
7207 # - the --enable-64-bit-bfd option was supplied
7208 # Otherwise we only support all 32-bit targets.
7209 #
7210 # NOTE: This test must be in sync with the corresponding
7211 # tests in BFD!
20e95c23 7212
783e057b
DJ
7213 if test x${want64} = xfalse; then
7214 echo "$as_me:$LINENO: checking for long" >&5
c0993dbe
UW
7215echo $ECHO_N "checking for long... $ECHO_C" >&6
7216if test "${ac_cv_type_long+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7218else
7219 cat >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{
7229if ((long *) 0)
7230 return 0;
7231if (sizeof (long))
7232 return 0;
7233 ;
7234 return 0;
7235}
7236_ACEOF
7237rm -f conftest.$ac_objext
7238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7239 (eval $ac_compile) 2>conftest.er1
7240 ac_status=$?
7241 grep -v '^ *+' conftest.er1 >conftest.err
7242 rm -f conftest.er1
7243 cat conftest.err >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); } &&
7246 { ac_try='test -z "$ac_c_werror_flag"
7247 || test ! -s conftest.err'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 (eval $ac_try) 2>&5
7250 ac_status=$?
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; } &&
7253 { ac_try='test -s conftest.$ac_objext'
7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255 (eval $ac_try) 2>&5
7256 ac_status=$?
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); }; }; then
7259 ac_cv_type_long=yes
7260else
7261 echo "$as_me: failed program was:" >&5
7262sed 's/^/| /' conftest.$ac_ext >&5
7263
7264ac_cv_type_long=no
7265fi
7266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7267fi
7268echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7269echo "${ECHO_T}$ac_cv_type_long" >&6
7270
7271echo "$as_me:$LINENO: checking size of long" >&5
7272echo $ECHO_N "checking size of long... $ECHO_C" >&6
7273if test "${ac_cv_sizeof_long+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7275else
7276 if test "$ac_cv_type_long" = yes; then
7277 # The cast to unsigned long works around a bug in the HP C Compiler
7278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7280 # This bug is HP SR number 8606223364.
7281 if test "$cross_compiling" = yes; then
7282 # Depending upon the size, compute the lo and hi bounds.
7283cat >conftest.$ac_ext <<_ACEOF
7284/* confdefs.h. */
7285_ACEOF
7286cat confdefs.h >>conftest.$ac_ext
7287cat >>conftest.$ac_ext <<_ACEOF
7288/* end confdefs.h. */
7289$ac_includes_default
7290int
7291main ()
7292{
7293static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7294test_array [0] = 0
7295
7296 ;
7297 return 0;
7298}
7299_ACEOF
7300rm -f conftest.$ac_objext
7301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7302 (eval $ac_compile) 2>conftest.er1
7303 ac_status=$?
7304 grep -v '^ *+' conftest.er1 >conftest.err
7305 rm -f conftest.er1
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } &&
7309 { ac_try='test -z "$ac_c_werror_flag"
7310 || test ! -s conftest.err'
7311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312 (eval $ac_try) 2>&5
7313 ac_status=$?
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }; } &&
7316 { ac_try='test -s conftest.$ac_objext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 (eval $ac_try) 2>&5
7319 ac_status=$?
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7322 ac_lo=0 ac_mid=0
7323 while :; do
7324 cat >conftest.$ac_ext <<_ACEOF
7325/* confdefs.h. */
7326_ACEOF
7327cat confdefs.h >>conftest.$ac_ext
7328cat >>conftest.$ac_ext <<_ACEOF
7329/* end confdefs.h. */
7330$ac_includes_default
7331int
7332main ()
7333{
7334static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7335test_array [0] = 0
7336
7337 ;
7338 return 0;
7339}
7340_ACEOF
7341rm -f conftest.$ac_objext
7342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7343 (eval $ac_compile) 2>conftest.er1
7344 ac_status=$?
7345 grep -v '^ *+' conftest.er1 >conftest.err
7346 rm -f conftest.er1
7347 cat conftest.err >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } &&
7350 { ac_try='test -z "$ac_c_werror_flag"
7351 || test ! -s conftest.err'
7352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 (eval $ac_try) 2>&5
7354 ac_status=$?
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; } &&
7357 { ac_try='test -s conftest.$ac_objext'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 (eval $ac_try) 2>&5
7360 ac_status=$?
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7363 ac_hi=$ac_mid; break
7364else
7365 echo "$as_me: failed program was:" >&5
7366sed 's/^/| /' conftest.$ac_ext >&5
7367
7368ac_lo=`expr $ac_mid + 1`
7369 if test $ac_lo -le $ac_mid; then
7370 ac_lo= ac_hi=
7371 break
7372 fi
7373 ac_mid=`expr 2 '*' $ac_mid + 1`
7374fi
7375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7376 done
7377else
7378 echo "$as_me: failed program was:" >&5
7379sed 's/^/| /' conftest.$ac_ext >&5
7380
7381cat >conftest.$ac_ext <<_ACEOF
7382/* confdefs.h. */
7383_ACEOF
7384cat confdefs.h >>conftest.$ac_ext
7385cat >>conftest.$ac_ext <<_ACEOF
7386/* end confdefs.h. */
7387$ac_includes_default
7388int
7389main ()
7390{
7391static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7392test_array [0] = 0
7393
7394 ;
7395 return 0;
7396}
7397_ACEOF
7398rm -f conftest.$ac_objext
7399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7400 (eval $ac_compile) 2>conftest.er1
7401 ac_status=$?
7402 grep -v '^ *+' conftest.er1 >conftest.err
7403 rm -f conftest.er1
7404 cat conftest.err >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } &&
7407 { ac_try='test -z "$ac_c_werror_flag"
7408 || test ! -s conftest.err'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410 (eval $ac_try) 2>&5
7411 ac_status=$?
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; } &&
7414 { ac_try='test -s conftest.$ac_objext'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 (eval $ac_try) 2>&5
7417 ac_status=$?
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
7420 ac_hi=-1 ac_mid=-1
7421 while :; do
7422 cat >conftest.$ac_ext <<_ACEOF
7423/* confdefs.h. */
7424_ACEOF
7425cat confdefs.h >>conftest.$ac_ext
7426cat >>conftest.$ac_ext <<_ACEOF
7427/* end confdefs.h. */
7428$ac_includes_default
7429int
7430main ()
7431{
7432static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7433test_array [0] = 0
7434
7435 ;
7436 return 0;
7437}
7438_ACEOF
7439rm -f conftest.$ac_objext
7440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7441 (eval $ac_compile) 2>conftest.er1
7442 ac_status=$?
7443 grep -v '^ *+' conftest.er1 >conftest.err
7444 rm -f conftest.er1
7445 cat conftest.err >&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); } &&
7448 { ac_try='test -z "$ac_c_werror_flag"
7449 || test ! -s conftest.err'
7450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 (eval $ac_try) 2>&5
7452 ac_status=$?
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); }; } &&
7455 { ac_try='test -s conftest.$ac_objext'
7456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457 (eval $ac_try) 2>&5
7458 ac_status=$?
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); }; }; then
7461 ac_lo=$ac_mid; break
7462else
7463 echo "$as_me: failed program was:" >&5
7464sed 's/^/| /' conftest.$ac_ext >&5
7465
7466ac_hi=`expr '(' $ac_mid ')' - 1`
7467 if test $ac_mid -le $ac_hi; then
7468 ac_lo= ac_hi=
7469 break
7470 fi
7471 ac_mid=`expr 2 '*' $ac_mid`
7472fi
7473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7474 done
7475else
7476 echo "$as_me: failed program was:" >&5
7477sed 's/^/| /' conftest.$ac_ext >&5
7478
7479ac_lo= ac_hi=
7480fi
7481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7482fi
7483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7484# Binary search between lo and hi bounds.
7485while test "x$ac_lo" != "x$ac_hi"; do
7486 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7487 cat >conftest.$ac_ext <<_ACEOF
7488/* confdefs.h. */
7489_ACEOF
7490cat confdefs.h >>conftest.$ac_ext
7491cat >>conftest.$ac_ext <<_ACEOF
7492/* end confdefs.h. */
7493$ac_includes_default
7494int
7495main ()
7496{
7497static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7498test_array [0] = 0
7499
7500 ;
7501 return 0;
7502}
7503_ACEOF
7504rm -f conftest.$ac_objext
7505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7506 (eval $ac_compile) 2>conftest.er1
7507 ac_status=$?
7508 grep -v '^ *+' conftest.er1 >conftest.err
7509 rm -f conftest.er1
7510 cat conftest.err >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } &&
7513 { ac_try='test -z "$ac_c_werror_flag"
7514 || test ! -s conftest.err'
7515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516 (eval $ac_try) 2>&5
7517 ac_status=$?
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }; } &&
7520 { ac_try='test -s conftest.$ac_objext'
7521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522 (eval $ac_try) 2>&5
7523 ac_status=$?
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); }; }; then
7526 ac_hi=$ac_mid
7527else
7528 echo "$as_me: failed program was:" >&5
7529sed 's/^/| /' conftest.$ac_ext >&5
7530
7531ac_lo=`expr '(' $ac_mid ')' + 1`
7532fi
7533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7534done
7535case $ac_lo in
7536?*) ac_cv_sizeof_long=$ac_lo;;
d5af19ba
DJ
7537'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7538echo "$as_me: error: in \`$ac_pwd':" >&2;}
7539{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
c0993dbe
UW
7540See \`config.log' for more details." >&5
7541echo "$as_me: error: cannot compute sizeof (long), 77
7542See \`config.log' for more details." >&2;}
d5af19ba 7543 { (exit 1); exit 1; }; }; } ;;
c0993dbe
UW
7544esac
7545else
7546 if test "$cross_compiling" = yes; then
d5af19ba
DJ
7547 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7548echo "$as_me: error: in \`$ac_pwd':" >&2;}
7549{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
c0993dbe
UW
7550See \`config.log' for more details." >&5
7551echo "$as_me: error: cannot run test program while cross compiling
7552See \`config.log' for more details." >&2;}
d5af19ba 7553 { (exit 1); exit 1; }; }; }
c0993dbe
UW
7554else
7555 cat >conftest.$ac_ext <<_ACEOF
7556/* confdefs.h. */
7557_ACEOF
7558cat confdefs.h >>conftest.$ac_ext
7559cat >>conftest.$ac_ext <<_ACEOF
7560/* end confdefs.h. */
7561$ac_includes_default
7562long longval () { return (long) (sizeof (long)); }
7563unsigned long ulongval () { return (long) (sizeof (long)); }
7564#include <stdio.h>
7565#include <stdlib.h>
7566int
7567main ()
7568{
7569
7570 FILE *f = fopen ("conftest.val", "w");
7571 if (! f)
7572 exit (1);
7573 if (((long) (sizeof (long))) < 0)
7574 {
7575 long i = longval ();
7576 if (i != ((long) (sizeof (long))))
7577 exit (1);
7578 fprintf (f, "%ld\n", i);
7579 }
7580 else
7581 {
7582 unsigned long i = ulongval ();
7583 if (i != ((long) (sizeof (long))))
7584 exit (1);
7585 fprintf (f, "%lu\n", i);
7586 }
7587 exit (ferror (f) || fclose (f) != 0);
7588
7589 ;
7590 return 0;
7591}
7592_ACEOF
7593rm -f conftest$ac_exeext
7594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7595 (eval $ac_link) 2>&5
7596 ac_status=$?
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600 (eval $ac_try) 2>&5
7601 ac_status=$?
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; }; then
7604 ac_cv_sizeof_long=`cat conftest.val`
7605else
7606 echo "$as_me: program exited with status $ac_status" >&5
7607echo "$as_me: failed program was:" >&5
7608sed 's/^/| /' conftest.$ac_ext >&5
7609
7610( exit $ac_status )
d5af19ba
DJ
7611{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7612echo "$as_me: error: in \`$ac_pwd':" >&2;}
c0993dbe
UW
7613{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7614See \`config.log' for more details." >&5
7615echo "$as_me: error: cannot compute sizeof (long), 77
7616See \`config.log' for more details." >&2;}
d5af19ba 7617 { (exit 1); exit 1; }; }; }
c0993dbe
UW
7618fi
7619rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7620fi
7621fi
7622rm -f conftest.val
7623else
7624 ac_cv_sizeof_long=0
7625fi
7626fi
7627echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7628echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7629cat >>confdefs.h <<_ACEOF
7630#define SIZEOF_LONG $ac_cv_sizeof_long
7631_ACEOF
7632
7633
7634 if test "x${ac_cv_sizeof_long}" = "x8"; then
7635 want64=true
7636 fi
7637 fi
7638 if test x${want64} = xtrue; then
7639 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7640 else
7641 TARGET_OBS='$(ALL_TARGET_OBS)'
7642 fi
7643fi
7644
7645
7646
7647# For other settings, only the main target counts.
7648gdb_sim=
7649gdb_osabi=
7650build_gdbserver=
7651targ=$target; . ${srcdir}/configure.tgt
7652
7653# Fetch the default architecture and default target vector from BFD.
7654targ=$target; . $srcdir/../bfd/config.bfd
7655
7656# We only want the first architecture, so strip off the others if
7657# there is more than one.
7658targ_archs=`echo $targ_archs | sed 's/ .*//'`
7659
7660if test "x$targ_archs" != x; then
7661
7662cat >>confdefs.h <<_ACEOF
7663#define DEFAULT_BFD_ARCH $targ_archs
7664_ACEOF
7665
7666fi
7667if test "x$targ_defvec" != x; then
7668
7669cat >>confdefs.h <<_ACEOF
7670#define DEFAULT_BFD_VEC $targ_defvec
7671_ACEOF
7672
7673fi
7674
c0993dbe
UW
7675# The CLI cannot be disabled yet, but may be in the future.
7676
7677# Enable CLI.
7678# Check whether --enable-gdbcli or --disable-gdbcli was given.
7679if test "${enable_gdbcli+set}" = set; then
7680 enableval="$enable_gdbcli"
7681 case $enableval in
7682 yes)
7683 ;;
7684 no)
7685 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7686echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7687 { (exit 1); exit 1; }; } ;;
7688 *)
7689 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7690echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7691 { (exit 1); exit 1; }; } ;;
7692 esac
7693else
7694 enable_gdbcli=yes
7695fi;
7696if test x"$enable_gdbcli" = xyes; then
7697 if test -d $srcdir/cli; then
7698 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7699 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7700 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7701 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7702 fi
7703fi
7704
7705# Enable MI.
7706# Check whether --enable-gdbmi or --disable-gdbmi was given.
7707if test "${enable_gdbmi+set}" = set; then
7708 enableval="$enable_gdbmi"
7709 case $enableval in
7710 yes | no)
7711 ;;
7712 *)
7713 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7714echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7715 { (exit 1); exit 1; }; } ;;
7716 esac
7717else
7718 enable_gdbmi=yes
7719fi;
7720if test x"$enable_gdbmi" = xyes; then
7721 if test -d $srcdir/mi; then
7722 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7723 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7724 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7725 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7726 fi
7727fi
7728
7729# Enable TUI.
7730# Check whether --enable-tui or --disable-tui was given.
7731if test "${enable_tui+set}" = set; then
7732 enableval="$enable_tui"
7733 case $enableval in
3ca64bd3 7734 yes | no | auto)
c0993dbe
UW
7735 ;;
7736 *)
7737 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7738echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7739 { (exit 1); exit 1; }; } ;;
7740 esac
7741else
3ca64bd3 7742 enable_tui=auto
c0993dbe
UW
7743fi;
7744
7745# Enable gdbtk.
7746# Check whether --enable-gdbtk or --disable-gdbtk was given.
7747if test "${enable_gdbtk+set}" = set; then
7748 enableval="$enable_gdbtk"
7749 case $enableval in
7750 yes | no)
7751 ;;
7752 *)
7753 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7754echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7755 { (exit 1); exit 1; }; } ;;
7756 esac
7757else
5062cc19 7758 if test -d $srcdir/gdbtk; then
c0993dbe
UW
7759 enable_gdbtk=yes
7760 else
7761 enable_gdbtk=no
7762 fi
7763fi;
7764# We unconditionally disable gdbtk tests on selected platforms.
7765case $host_os in
7766 go32* | windows*)
7767 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7768echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7769 enable_gdbtk=no ;;
7770esac
7771
7772# Libunwind support.
bec39cab 7773
b4e70030 7774# Check whether --with-libunwind or --without-libunwind was given.
bec39cab 7775if test "${with_libunwind+set}" = set; then
b4e70030
JB
7776 withval="$with_libunwind"
7777 case "${withval}" in
bec39cab
AC
7778 yes) enable_libunwind=yes ;;
7779 no) enable_libunwind=no ;;
7780 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7781echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7782 { (exit 1); exit 1; }; } ;;
7783esac
7784else
7785
7786
7787for ac_header in libunwind.h
7788do
7789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7790if eval "test \"\${$as_ac_Header+set}\" = set"; then
7791 echo "$as_me:$LINENO: checking for $ac_header" >&5
7792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7793if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795fi
b4e70030
JB
7796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7798else
7799 # Is the header compilable?
b4e70030
JB
7800echo "$as_me:$LINENO: checking $ac_header usability" >&5
7801echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7802cat >conftest.$ac_ext <<_ACEOF
7803/* confdefs.h. */
7804_ACEOF
7805cat confdefs.h >>conftest.$ac_ext
7806cat >>conftest.$ac_ext <<_ACEOF
7807/* end confdefs.h. */
7808$ac_includes_default
7809#include <$ac_header>
7810_ACEOF
7811rm -f conftest.$ac_objext
7812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7813 (eval $ac_compile) 2>conftest.er1
7814 ac_status=$?
7815 grep -v '^ *+' conftest.er1 >conftest.err
7816 rm -f conftest.er1
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
b4e70030
JB
7820 { ac_try='test -z "$ac_c_werror_flag"
7821 || test ! -s conftest.err'
bec39cab
AC
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823 (eval $ac_try) 2>&5
7824 ac_status=$?
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; } &&
7827 { ac_try='test -s conftest.$ac_objext'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 (eval $ac_try) 2>&5
7830 ac_status=$?
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; }; then
7833 ac_header_compiler=yes
7834else
7835 echo "$as_me: failed program was:" >&5
7836sed 's/^/| /' conftest.$ac_ext >&5
7837
b4e70030 7838ac_header_compiler=no
bec39cab
AC
7839fi
7840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7841echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7842echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7843
7844# Is the header present?
b4e70030
JB
7845echo "$as_me:$LINENO: checking $ac_header presence" >&5
7846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7847cat >conftest.$ac_ext <<_ACEOF
7848/* confdefs.h. */
7849_ACEOF
7850cat confdefs.h >>conftest.$ac_ext
7851cat >>conftest.$ac_ext <<_ACEOF
7852/* end confdefs.h. */
7853#include <$ac_header>
7854_ACEOF
7855if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7857 ac_status=$?
7858 grep -v '^ *+' conftest.er1 >conftest.err
7859 rm -f conftest.er1
7860 cat conftest.err >&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } >/dev/null; then
7863 if test -s conftest.err; then
7864 ac_cpp_err=$ac_c_preproc_warn_flag
7865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7866 else
7867 ac_cpp_err=
7868 fi
7869else
7870 ac_cpp_err=yes
7871fi
7872if test -z "$ac_cpp_err"; then
7873 ac_header_preproc=yes
7874else
7875 echo "$as_me: failed program was:" >&5
7876sed 's/^/| /' conftest.$ac_ext >&5
7877
7878 ac_header_preproc=no
7879fi
7880rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7881echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7882echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7883
7884# So? What about this header?
7885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7886 yes:no: )
7887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7888echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7890echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7891 ac_header_preproc=yes
7892 ;;
7893 no:yes:* )
7894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7895echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7897echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7899echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7901echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7903echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7905echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7906 (
7907 cat <<\_ASBOX
7908## ------------------------------------------ ##
7909## Report this to the AC_PACKAGE_NAME lists. ##
7910## ------------------------------------------ ##
7911_ASBOX
7912 ) |
7913 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7914 ;;
7915esac
b4e70030
JB
7916echo "$as_me:$LINENO: checking for $ac_header" >&5
7917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7918if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920else
7921 eval "$as_ac_Header=\$ac_header_preproc"
7922fi
b4e70030
JB
7923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7925
7926fi
7927if test `eval echo '${'$as_ac_Header'}'` = yes; then
7928 cat >>confdefs.h <<_ACEOF
7929#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7930_ACEOF
7931
7932fi
7933
7934done
7935
7936
7937for ac_header in libunwind-ia64.h
7938do
7939as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7940if eval "test \"\${$as_ac_Header+set}\" = set"; then
7941 echo "$as_me:$LINENO: checking for $ac_header" >&5
7942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7943if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945fi
b4e70030
JB
7946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7948else
7949 # Is the header compilable?
b4e70030
JB
7950echo "$as_me:$LINENO: checking $ac_header usability" >&5
7951echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7952cat >conftest.$ac_ext <<_ACEOF
7953/* confdefs.h. */
7954_ACEOF
7955cat confdefs.h >>conftest.$ac_ext
7956cat >>conftest.$ac_ext <<_ACEOF
7957/* end confdefs.h. */
7958$ac_includes_default
7959#include <$ac_header>
7960_ACEOF
7961rm -f conftest.$ac_objext
7962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7963 (eval $ac_compile) 2>conftest.er1
7964 ac_status=$?
7965 grep -v '^ *+' conftest.er1 >conftest.err
7966 rm -f conftest.er1
7967 cat conftest.err >&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } &&
b4e70030
JB
7970 { ac_try='test -z "$ac_c_werror_flag"
7971 || test ! -s conftest.err'
bec39cab
AC
7972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 (eval $ac_try) 2>&5
7974 ac_status=$?
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; } &&
7977 { ac_try='test -s conftest.$ac_objext'
7978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 (eval $ac_try) 2>&5
7980 ac_status=$?
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); }; }; then
7983 ac_header_compiler=yes
7984else
7985 echo "$as_me: failed program was:" >&5
7986sed 's/^/| /' conftest.$ac_ext >&5
7987
b4e70030 7988ac_header_compiler=no
bec39cab
AC
7989fi
7990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7991echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7992echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7993
7994# Is the header present?
b4e70030
JB
7995echo "$as_me:$LINENO: checking $ac_header presence" >&5
7996echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7997cat >conftest.$ac_ext <<_ACEOF
7998/* confdefs.h. */
7999_ACEOF
8000cat confdefs.h >>conftest.$ac_ext
8001cat >>conftest.$ac_ext <<_ACEOF
8002/* end confdefs.h. */
8003#include <$ac_header>
8004_ACEOF
8005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } >/dev/null; then
8013 if test -s conftest.err; then
8014 ac_cpp_err=$ac_c_preproc_warn_flag
8015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8016 else
8017 ac_cpp_err=
8018 fi
8019else
8020 ac_cpp_err=yes
8021fi
8022if test -z "$ac_cpp_err"; then
8023 ac_header_preproc=yes
8024else
8025 echo "$as_me: failed program was:" >&5
8026sed 's/^/| /' conftest.$ac_ext >&5
8027
8028 ac_header_preproc=no
8029fi
8030rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8031echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8032echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8033
8034# So? What about this header?
8035case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8036 yes:no: )
8037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8038echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8040echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8041 ac_header_preproc=yes
8042 ;;
8043 no:yes:* )
8044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8045echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8047echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8049echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8051echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8053echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8055echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8056 (
8057 cat <<\_ASBOX
8058## ------------------------------------------ ##
8059## Report this to the AC_PACKAGE_NAME lists. ##
8060## ------------------------------------------ ##
8061_ASBOX
8062 ) |
8063 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8064 ;;
8065esac
b4e70030
JB
8066echo "$as_me:$LINENO: checking for $ac_header" >&5
8067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8068if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8070else
8071 eval "$as_ac_Header=\$ac_header_preproc"
8072fi
b4e70030
JB
8073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8075
8076fi
8077if test `eval echo '${'$as_ac_Header'}'` = yes; then
8078 cat >>confdefs.h <<_ACEOF
8079#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8080_ACEOF
8081
8082fi
8083
8084done
8085
8086 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
8087 enable_libunwind=yes;
8088 fi
8089
b4e70030 8090fi;
bec39cab
AC
8091
8092if test x"$enable_libunwind" = xyes; then
8093
8094for ac_header in libunwind.h
8095do
8096as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8097if eval "test \"\${$as_ac_Header+set}\" = set"; then
8098 echo "$as_me:$LINENO: checking for $ac_header" >&5
8099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8100if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8102fi
b4e70030
JB
8103echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8104echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8105else
8106 # Is the header compilable?
b4e70030
JB
8107echo "$as_me:$LINENO: checking $ac_header usability" >&5
8108echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8109cat >conftest.$ac_ext <<_ACEOF
8110/* confdefs.h. */
8111_ACEOF
8112cat confdefs.h >>conftest.$ac_ext
8113cat >>conftest.$ac_ext <<_ACEOF
8114/* end confdefs.h. */
8115$ac_includes_default
8116#include <$ac_header>
8117_ACEOF
8118rm -f conftest.$ac_objext
8119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8120 (eval $ac_compile) 2>conftest.er1
8121 ac_status=$?
8122 grep -v '^ *+' conftest.er1 >conftest.err
8123 rm -f conftest.er1
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } &&
b4e70030
JB
8127 { ac_try='test -z "$ac_c_werror_flag"
8128 || test ! -s conftest.err'
bec39cab
AC
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 (eval $ac_try) 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; } &&
8134 { ac_try='test -s conftest.$ac_objext'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 (eval $ac_try) 2>&5
8137 ac_status=$?
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 ac_header_compiler=yes
8141else
8142 echo "$as_me: failed program was:" >&5
8143sed 's/^/| /' conftest.$ac_ext >&5
8144
b4e70030 8145ac_header_compiler=no
bec39cab
AC
8146fi
8147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8148echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8149echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8150
8151# Is the header present?
b4e70030
JB
8152echo "$as_me:$LINENO: checking $ac_header presence" >&5
8153echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8154cat >conftest.$ac_ext <<_ACEOF
8155/* confdefs.h. */
8156_ACEOF
8157cat confdefs.h >>conftest.$ac_ext
8158cat >>conftest.$ac_ext <<_ACEOF
8159/* end confdefs.h. */
8160#include <$ac_header>
8161_ACEOF
8162if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8164 ac_status=$?
8165 grep -v '^ *+' conftest.er1 >conftest.err
8166 rm -f conftest.er1
8167 cat conftest.err >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } >/dev/null; then
8170 if test -s conftest.err; then
8171 ac_cpp_err=$ac_c_preproc_warn_flag
8172 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8173 else
8174 ac_cpp_err=
8175 fi
8176else
8177 ac_cpp_err=yes
8178fi
8179if test -z "$ac_cpp_err"; then
8180 ac_header_preproc=yes
8181else
8182 echo "$as_me: failed program was:" >&5
8183sed 's/^/| /' conftest.$ac_ext >&5
8184
8185 ac_header_preproc=no
8186fi
8187rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8188echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8189echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8190
8191# So? What about this header?
8192case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8193 yes:no: )
8194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8195echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8197echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8198 ac_header_preproc=yes
8199 ;;
8200 no:yes:* )
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8202echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8204echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8206echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8208echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8210echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8212echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8213 (
8214 cat <<\_ASBOX
8215## ------------------------------------------ ##
8216## Report this to the AC_PACKAGE_NAME lists. ##
8217## ------------------------------------------ ##
8218_ASBOX
8219 ) |
8220 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8221 ;;
8222esac
b4e70030
JB
8223echo "$as_me:$LINENO: checking for $ac_header" >&5
8224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8225if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8227else
8228 eval "$as_ac_Header=\$ac_header_preproc"
8229fi
b4e70030
JB
8230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8231echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8232
8233fi
8234if test `eval echo '${'$as_ac_Header'}'` = yes; then
8235 cat >>confdefs.h <<_ACEOF
8236#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8237_ACEOF
8238
8239fi
8240
8241done
8242
8243
8244for ac_header in libunwind-ia64.h
8245do
8246as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8247if eval "test \"\${$as_ac_Header+set}\" = set"; then
8248 echo "$as_me:$LINENO: checking for $ac_header" >&5
8249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8250if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8252fi
b4e70030
JB
8253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8254echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8255else
8256 # Is the header compilable?
b4e70030
JB
8257echo "$as_me:$LINENO: checking $ac_header usability" >&5
8258echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8259cat >conftest.$ac_ext <<_ACEOF
8260/* confdefs.h. */
8261_ACEOF
8262cat confdefs.h >>conftest.$ac_ext
8263cat >>conftest.$ac_ext <<_ACEOF
8264/* end confdefs.h. */
8265$ac_includes_default
8266#include <$ac_header>
8267_ACEOF
8268rm -f conftest.$ac_objext
8269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8270 (eval $ac_compile) 2>conftest.er1
8271 ac_status=$?
8272 grep -v '^ *+' conftest.er1 >conftest.err
8273 rm -f conftest.er1
8274 cat conftest.err >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } &&
b4e70030
JB
8277 { ac_try='test -z "$ac_c_werror_flag"
8278 || test ! -s conftest.err'
bec39cab
AC
8279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280 (eval $ac_try) 2>&5
8281 ac_status=$?
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; } &&
8284 { ac_try='test -s conftest.$ac_objext'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 (eval $ac_try) 2>&5
8287 ac_status=$?
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 ac_header_compiler=yes
8291else
8292 echo "$as_me: failed program was:" >&5
8293sed 's/^/| /' conftest.$ac_ext >&5
8294
b4e70030 8295ac_header_compiler=no
bec39cab
AC
8296fi
8297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8298echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8299echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8300
8301# Is the header present?
b4e70030
JB
8302echo "$as_me:$LINENO: checking $ac_header presence" >&5
8303echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8304cat >conftest.$ac_ext <<_ACEOF
8305/* confdefs.h. */
8306_ACEOF
8307cat confdefs.h >>conftest.$ac_ext
8308cat >>conftest.$ac_ext <<_ACEOF
8309/* end confdefs.h. */
8310#include <$ac_header>
8311_ACEOF
8312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8314 ac_status=$?
8315 grep -v '^ *+' conftest.er1 >conftest.err
8316 rm -f conftest.er1
8317 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } >/dev/null; then
8320 if test -s conftest.err; then
8321 ac_cpp_err=$ac_c_preproc_warn_flag
8322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8323 else
8324 ac_cpp_err=
8325 fi
8326else
8327 ac_cpp_err=yes
8328fi
8329if test -z "$ac_cpp_err"; then
8330 ac_header_preproc=yes
8331else
8332 echo "$as_me: failed program was:" >&5
8333sed 's/^/| /' conftest.$ac_ext >&5
8334
8335 ac_header_preproc=no
8336fi
8337rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8338echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8339echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8340
8341# So? What about this header?
8342case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8343 yes:no: )
8344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8345echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8347echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8348 ac_header_preproc=yes
8349 ;;
8350 no:yes:* )
8351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8352echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8354echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8356echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8358echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8360echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8362echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8363 (
8364 cat <<\_ASBOX
8365## ------------------------------------------ ##
8366## Report this to the AC_PACKAGE_NAME lists. ##
8367## ------------------------------------------ ##
8368_ASBOX
8369 ) |
8370 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8371 ;;
8372esac
b4e70030
JB
8373echo "$as_me:$LINENO: checking for $ac_header" >&5
8374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8375if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8377else
8378 eval "$as_ac_Header=\$ac_header_preproc"
8379fi
b4e70030
JB
8380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8381echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8382
8383fi
8384if test `eval echo '${'$as_ac_Header'}'` = yes; then
8385 cat >>confdefs.h <<_ACEOF
8386#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8387_ACEOF
8388
8389fi
8390
8391done
8392
60ca704f
SE
8393
8394cat >>confdefs.h <<\_ACEOF
bec39cab
AC
8395#define HAVE_LIBUNWIND 1
8396_ACEOF
8397
8398 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8399 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8400 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8401fi
8402
8403# Profiling support.
b4e70030 8404# Check whether --enable-profiling or --disable-profiling was given.
bec39cab 8405if test "${enable_profiling+set}" = set; then
b4e70030
JB
8406 enableval="$enable_profiling"
8407 case $enableval in
bec39cab
AC
8408 yes | no)
8409 ;;
8410 *)
8411 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8412echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8413 { (exit 1); exit 1; }; } ;;
8414 esac
8415else
8416 enable_profiling=no
b4e70030 8417fi;
bec39cab
AC
8418
8419
8420
8421for ac_func in monstartup _mcleanup
8422do
8423as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
8424echo "$as_me:$LINENO: checking for $ac_func" >&5
8425echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8426if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8428else
8429 cat >conftest.$ac_ext <<_ACEOF
8430/* confdefs.h. */
8431_ACEOF
8432cat confdefs.h >>conftest.$ac_ext
8433cat >>conftest.$ac_ext <<_ACEOF
8434/* end confdefs.h. */
8435/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8437#define $ac_func innocuous_$ac_func
8438
8439/* System header to define __stub macros and hopefully few prototypes,
8440 which can conflict with char $ac_func (); below.
8441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8442 <limits.h> exists even on freestanding compilers. */
8443
8444#ifdef __STDC__
8445# include <limits.h>
8446#else
8447# include <assert.h>
8448#endif
8449
8450#undef $ac_func
8451
b4e70030 8452/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
8453#ifdef __cplusplus
8454extern "C"
b4e70030 8455{
bec39cab 8456#endif
b4e70030
JB
8457/* We use char because int might match the return type of a gcc2
8458 builtin and then its argument prototype would still apply. */
bec39cab
AC
8459char $ac_func ();
8460/* The GNU C library defines this for functions which it implements
8461 to always fail with ENOSYS. Some functions are actually named
8462 something starting with __ and the normal name is an alias. */
b4e70030 8463#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 8464choke me
b4e70030
JB
8465#else
8466char (*f) () = $ac_func;
8467#endif
8468#ifdef __cplusplus
8469}
bec39cab
AC
8470#endif
8471
8472int
8473main ()
8474{
b4e70030 8475return f != $ac_func;
bec39cab
AC
8476 ;
8477 return 0;
8478}
8479_ACEOF
8480rm -f conftest.$ac_objext conftest$ac_exeext
8481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8482 (eval $ac_link) 2>conftest.er1
8483 ac_status=$?
8484 grep -v '^ *+' conftest.er1 >conftest.err
8485 rm -f conftest.er1
8486 cat conftest.err >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } &&
b4e70030
JB
8489 { ac_try='test -z "$ac_c_werror_flag"
8490 || test ! -s conftest.err'
bec39cab
AC
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 (eval $ac_try) 2>&5
8493 ac_status=$?
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; } &&
8496 { ac_try='test -s conftest$ac_exeext'
8497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 (eval $ac_try) 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; }; then
8502 eval "$as_ac_var=yes"
8503else
8504 echo "$as_me: failed program was:" >&5
8505sed 's/^/| /' conftest.$ac_ext >&5
8506
b4e70030 8507eval "$as_ac_var=no"
bec39cab
AC
8508fi
8509rm -f conftest.err conftest.$ac_objext \
8510 conftest$ac_exeext conftest.$ac_ext
8511fi
b4e70030
JB
8512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8513echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
8514if test `eval echo '${'$as_ac_var'}'` = yes; then
8515 cat >>confdefs.h <<_ACEOF
8516#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8517_ACEOF
8518
8519fi
8520done
8521
b4e70030
JB
8522echo "$as_me:$LINENO: checking for _etext" >&5
8523echo $ECHO_N "checking for _etext... $ECHO_C" >&6
bec39cab
AC
8524if test "${ac_cv_var__etext+set}" = set; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8526else
8527 cat >conftest.$ac_ext <<_ACEOF
8528/* confdefs.h. */
8529_ACEOF
8530cat confdefs.h >>conftest.$ac_ext
8531cat >>conftest.$ac_ext <<_ACEOF
8532/* end confdefs.h. */
8533#include <stdlib.h>
8534extern char _etext;
8535
8536int
8537main ()
8538{
8539free (&_etext);
8540 ;
8541 return 0;
8542}
8543_ACEOF
8544rm -f conftest.$ac_objext conftest$ac_exeext
8545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546 (eval $ac_link) 2>conftest.er1
8547 ac_status=$?
8548 grep -v '^ *+' conftest.er1 >conftest.err
8549 rm -f conftest.er1
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
b4e70030
JB
8553 { ac_try='test -z "$ac_c_werror_flag"
8554 || test ! -s conftest.err'
bec39cab
AC
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try='test -s conftest$ac_exeext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 ac_cv_var__etext=yes
8567else
8568 echo "$as_me: failed program was:" >&5
8569sed 's/^/| /' conftest.$ac_ext >&5
8570
b4e70030 8571ac_cv_var__etext=no
bec39cab
AC
8572fi
8573rm -f conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
8575fi
b4e70030
JB
8576echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8577echo "${ECHO_T}$ac_cv_var__etext" >&6
bec39cab
AC
8578if test $ac_cv_var__etext = yes; then
8579
8580cat >>confdefs.h <<\_ACEOF
8581#define HAVE__ETEXT 1
8582_ACEOF
8583
01fe12f6
JB
8584fi
8585echo "$as_me:$LINENO: checking for etext" >&5
8586echo $ECHO_N "checking for etext... $ECHO_C" >&6
8587if test "${ac_cv_var_etext+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8589else
8590 cat >conftest.$ac_ext <<_ACEOF
8591/* confdefs.h. */
8592_ACEOF
8593cat confdefs.h >>conftest.$ac_ext
8594cat >>conftest.$ac_ext <<_ACEOF
8595/* end confdefs.h. */
8596#include <stdlib.h>
8597extern char etext;
8598
8599int
8600main ()
8601{
8602free (&etext);
8603 ;
8604 return 0;
8605}
8606_ACEOF
8607rm -f conftest.$ac_objext conftest$ac_exeext
8608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609 (eval $ac_link) 2>conftest.er1
8610 ac_status=$?
8611 grep -v '^ *+' conftest.er1 >conftest.err
8612 rm -f conftest.er1
8613 cat conftest.err >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } &&
8616 { ac_try='test -z "$ac_c_werror_flag"
8617 || test ! -s conftest.err'
8618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619 (eval $ac_try) 2>&5
8620 ac_status=$?
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); }; } &&
8623 { ac_try='test -s conftest$ac_exeext'
8624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625 (eval $ac_try) 2>&5
8626 ac_status=$?
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; }; then
8629 ac_cv_var_etext=yes
8630else
8631 echo "$as_me: failed program was:" >&5
8632sed 's/^/| /' conftest.$ac_ext >&5
8633
8634ac_cv_var_etext=no
8635fi
8636rm -f conftest.err conftest.$ac_objext \
8637 conftest$ac_exeext conftest.$ac_ext
8638fi
8639echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8640echo "${ECHO_T}$ac_cv_var_etext" >&6
8641if test $ac_cv_var_etext = yes; then
8642
8643cat >>confdefs.h <<\_ACEOF
8644#define HAVE_ETEXT 1
8645_ACEOF
8646
bec39cab
AC
8647fi
8648if test "$enable_profiling" = yes ; then
8649 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8650 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8651echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8652 { (exit 1); exit 1; }; }
8653 fi
8654 PROFILE_CFLAGS=-pg
8655 OLD_CFLAGS="$CFLAGS"
8656 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8657
b4e70030
JB
8658 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8659echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
bec39cab
AC
8660if test "${ac_cv_cc_supports_pg+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 8662else
bec39cab
AC
8663 cat >conftest.$ac_ext <<_ACEOF
8664/* confdefs.h. */
8665_ACEOF
8666cat confdefs.h >>conftest.$ac_ext
8667cat >>conftest.$ac_ext <<_ACEOF
8668/* end confdefs.h. */
8669
8670int
8671main ()
8672{
8673int x;
8674 ;
8675 return 0;
8676}
8677_ACEOF
8678rm -f conftest.$ac_objext
8679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8680 (eval $ac_compile) 2>conftest.er1
8681 ac_status=$?
8682 grep -v '^ *+' conftest.er1 >conftest.err
8683 rm -f conftest.er1
8684 cat conftest.err >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } &&
b4e70030
JB
8687 { ac_try='test -z "$ac_c_werror_flag"
8688 || test ! -s conftest.err'
bec39cab
AC
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 (eval $ac_try) 2>&5
8691 ac_status=$?
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; } &&
8694 { ac_try='test -s conftest.$ac_objext'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696 (eval $ac_try) 2>&5
8697 ac_status=$?
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; }; then
8700 ac_cv_cc_supports_pg=yes
8701else
8702 echo "$as_me: failed program was:" >&5
8703sed 's/^/| /' conftest.$ac_ext >&5
8704
b4e70030 8705ac_cv_cc_supports_pg=no
bec39cab
AC
8706fi
8707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8708fi
b4e70030
JB
8709echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8710echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
bec39cab
AC
8711
8712 if test $ac_cv_cc_supports_pg = no; then
8713 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8714echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8715 { (exit 1); exit 1; }; }
8716 fi
8717
8718 CFLAGS="$OLD_CFLAGS"
8719fi
8720
c16158bc
JM
8721
8722
8723# Check whether --with-pkgversion or --without-pkgversion was given.
8724if test "${with_pkgversion+set}" = set; then
8725 withval="$with_pkgversion"
8726 case "$withval" in
8727 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8728echo "$as_me: error: package version not specified" >&2;}
8729 { (exit 1); exit 1; }; } ;;
8730 no) PKGVERSION= ;;
8731 *) PKGVERSION="($withval) " ;;
8732 esac
8733else
8734 PKGVERSION="(GDB) "
8735
8736fi;
8737
8738
8739
8740
8741# Check whether --with-bugurl or --without-bugurl was given.
8742if test "${with_bugurl+set}" = set; then
8743 withval="$with_bugurl"
8744 case "$withval" in
8745 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8746echo "$as_me: error: bug URL not specified" >&2;}
8747 { (exit 1); exit 1; }; } ;;
8748 no) BUGURL=
8749 ;;
8750 *) BUGURL="$withval"
8751 ;;
8752 esac
8753else
8754 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8755
8756fi;
8757 case ${BUGURL} in
8758 "")
8759 REPORT_BUGS_TO=
8760 REPORT_BUGS_TEXI=
8761 ;;
8762 *)
8763 REPORT_BUGS_TO="<$BUGURL>"
8764 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8765 ;;
8766 esac;
8767
8768
8769
8770
8771cat >>confdefs.h <<_ACEOF
8772#define PKGVERSION "$PKGVERSION"
8773_ACEOF
8774
8775
8776cat >>confdefs.h <<_ACEOF
8777#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8778_ACEOF
8779
8780
bec39cab
AC
8781# --------------------- #
8782# Checks for programs. #
8783# --------------------- #
8784
8785for ac_prog in gawk mawk nawk awk
8786do
8787 # Extract the first word of "$ac_prog", so it can be a program name with args.
8788set dummy $ac_prog; ac_word=$2
b4e70030
JB
8789echo "$as_me:$LINENO: checking for $ac_word" >&5
8790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8791if test "${ac_cv_prog_AWK+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8793else
8794 if test -n "$AWK"; then
8795 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8796else
8797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8798for as_dir in $PATH
8799do
8800 IFS=$as_save_IFS
8801 test -z "$as_dir" && as_dir=.
8802 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8804 ac_cv_prog_AWK="$ac_prog"
8805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8806 break 2
8807 fi
8808done
8809done
8810
8811fi
8812fi
8813AWK=$ac_cv_prog_AWK
8814if test -n "$AWK"; then
b4e70030
JB
8815 echo "$as_me:$LINENO: result: $AWK" >&5
8816echo "${ECHO_T}$AWK" >&6
bec39cab 8817else
b4e70030
JB
8818 echo "$as_me:$LINENO: result: no" >&5
8819echo "${ECHO_T}no" >&6
bec39cab
AC
8820fi
8821
8822 test -n "$AWK" && break
8823done
8824
8825# Find a good install program. We prefer a C program (faster),
8826# so one script is as good as another. But avoid the broken or
8827# incompatible versions:
8828# SysV /etc/install, /usr/sbin/install
8829# SunOS /usr/etc/install
8830# IRIX /sbin/install
8831# AIX /bin/install
8832# AmigaOS /C/install, which installs bootblocks on floppy discs
8833# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8834# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8835# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8836# OS/2's system install, which has a completely different semantic
8837# ./install, which can be erroneously created by make from ./install.sh.
b4e70030
JB
8838echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8839echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
bec39cab
AC
8840if test -z "$INSTALL"; then
8841if test "${ac_cv_path_install+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8843else
8844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845for as_dir in $PATH
8846do
8847 IFS=$as_save_IFS
8848 test -z "$as_dir" && as_dir=.
8849 # Account for people who put trailing slashes in PATH elements.
8850case $as_dir/ in
8851 ./ | .// | /cC/* | \
8852 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8853 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8854 /usr/ucb/* ) ;;
c906108c 8855 *)
bec39cab
AC
8856 # OSF1 and SCO ODT 3.0 have their own names for install.
8857 # Don't use installbsd from OSF since it installs stuff as root
8858 # by default.
8859 for ac_prog in ginstall scoinst install; do
8860 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8861 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bec39cab
AC
8862 if test $ac_prog = install &&
8863 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8864 # AIX install. It has an incompatible calling convention.
8865 :
8866 elif test $ac_prog = install &&
8867 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8868 # program-specific install script used by HP pwplus--don't use.
8869 :
8870 else
8871 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8872 break 3
8873 fi
8874 fi
8875 done
8876 done
8877 ;;
c906108c 8878esac
bec39cab
AC
8879done
8880
8881
8882fi
8883 if test "${ac_cv_path_install+set}" = set; then
8884 INSTALL=$ac_cv_path_install
8885 else
b4e70030
JB
8886 # As a last resort, use the slow shell script. We don't cache a
8887 # path for INSTALL within a source directory, because that will
bec39cab 8888 # break other packages using the cache if that directory is
b4e70030 8889 # removed, or if the path is relative.
bec39cab
AC
8890 INSTALL=$ac_install_sh
8891 fi
8892fi
b4e70030
JB
8893echo "$as_me:$LINENO: result: $INSTALL" >&5
8894echo "${ECHO_T}$INSTALL" >&6
bec39cab
AC
8895
8896# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8897# It thinks the first close brace ends the variable substitution.
8898test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8899
8900test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8901
8902test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8903
b4e70030
JB
8904echo "$as_me:$LINENO: checking whether ln -s works" >&5
8905echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
bec39cab
AC
8906LN_S=$as_ln_s
8907if test "$LN_S" = "ln -s"; then
b4e70030
JB
8908 echo "$as_me:$LINENO: result: yes" >&5
8909echo "${ECHO_T}yes" >&6
bec39cab 8910else
b4e70030
JB
8911 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8912echo "${ECHO_T}no, using $LN_S" >&6
bec39cab
AC
8913fi
8914
8915if test -n "$ac_tool_prefix"; then
8916 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8917set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b4e70030
JB
8918echo "$as_me:$LINENO: checking for $ac_word" >&5
8919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8920if test "${ac_cv_prog_RANLIB+set}" = set; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8922else
8923 if test -n "$RANLIB"; then
8924 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8925else
8926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927for as_dir in $PATH
8928do
8929 IFS=$as_save_IFS
8930 test -z "$as_dir" && as_dir=.
8931 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8933 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8935 break 2
8936 fi
8937done
8938done
8939
8940fi
8941fi
8942RANLIB=$ac_cv_prog_RANLIB
8943if test -n "$RANLIB"; then
b4e70030
JB
8944 echo "$as_me:$LINENO: result: $RANLIB" >&5
8945echo "${ECHO_T}$RANLIB" >&6
bec39cab 8946else
b4e70030
JB
8947 echo "$as_me:$LINENO: result: no" >&5
8948echo "${ECHO_T}no" >&6
bec39cab
AC
8949fi
8950
8951fi
8952if test -z "$ac_cv_prog_RANLIB"; then
8953 ac_ct_RANLIB=$RANLIB
8954 # Extract the first word of "ranlib", so it can be a program name with args.
8955set dummy ranlib; ac_word=$2
b4e70030
JB
8956echo "$as_me:$LINENO: checking for $ac_word" >&5
8957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8958if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8960else
8961 if test -n "$ac_ct_RANLIB"; then
8962 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8963else
8964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8965for as_dir in $PATH
8966do
8967 IFS=$as_save_IFS
8968 test -z "$as_dir" && as_dir=.
8969 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8971 ac_cv_prog_ac_ct_RANLIB="ranlib"
8972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8973 break 2
8974 fi
8975done
8976done
8977
b4e70030 8978 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bec39cab
AC
8979fi
8980fi
8981ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8982if test -n "$ac_ct_RANLIB"; then
b4e70030
JB
8983 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8984echo "${ECHO_T}$ac_ct_RANLIB" >&6
bec39cab 8985else
b4e70030
JB
8986 echo "$as_me:$LINENO: result: no" >&5
8987echo "${ECHO_T}no" >&6
bec39cab
AC
8988fi
8989
b4e70030 8990 RANLIB=$ac_ct_RANLIB
bec39cab
AC
8991else
8992 RANLIB="$ac_cv_prog_RANLIB"
8993fi
8994
8995for ac_prog in 'bison -y' byacc
8996do
8997 # Extract the first word of "$ac_prog", so it can be a program name with args.
8998set dummy $ac_prog; ac_word=$2
b4e70030
JB
8999echo "$as_me:$LINENO: checking for $ac_word" >&5
9000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9001if test "${ac_cv_prog_YACC+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9003else
9004 if test -n "$YACC"; then
9005 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9006else
9007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008for as_dir in $PATH
9009do
9010 IFS=$as_save_IFS
9011 test -z "$as_dir" && as_dir=.
9012 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9014 ac_cv_prog_YACC="$ac_prog"
9015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9016 break 2
9017 fi
9018done
9019done
9020
9021fi
9022fi
9023YACC=$ac_cv_prog_YACC
9024if test -n "$YACC"; then
b4e70030
JB
9025 echo "$as_me:$LINENO: result: $YACC" >&5
9026echo "${ECHO_T}$YACC" >&6
bec39cab 9027else
b4e70030
JB
9028 echo "$as_me:$LINENO: result: no" >&5
9029echo "${ECHO_T}no" >&6
bec39cab
AC
9030fi
9031
9032 test -n "$YACC" && break
9033done
9034test -n "$YACC" || YACC="yacc"
9035
9036
9037if test -n "$ac_tool_prefix"; then
9038 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9039set dummy ${ac_tool_prefix}ar; ac_word=$2
b4e70030
JB
9040echo "$as_me:$LINENO: checking for $ac_word" >&5
9041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9042if test "${ac_cv_prog_AR+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9044else
9045 if test -n "$AR"; then
9046 ac_cv_prog_AR="$AR" # Let the user override the test.
9047else
9048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049for as_dir in $PATH
9050do
9051 IFS=$as_save_IFS
9052 test -z "$as_dir" && as_dir=.
9053 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9055 ac_cv_prog_AR="${ac_tool_prefix}ar"
9056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9057 break 2
9058 fi
9059done
9060done
9061
9062fi
9063fi
9064AR=$ac_cv_prog_AR
9065if test -n "$AR"; then
b4e70030
JB
9066 echo "$as_me:$LINENO: result: $AR" >&5
9067echo "${ECHO_T}$AR" >&6
bec39cab 9068else
b4e70030
JB
9069 echo "$as_me:$LINENO: result: no" >&5
9070echo "${ECHO_T}no" >&6
bec39cab
AC
9071fi
9072
9073fi
9074if test -z "$ac_cv_prog_AR"; then
9075 ac_ct_AR=$AR
9076 # Extract the first word of "ar", so it can be a program name with args.
9077set dummy ar; ac_word=$2
b4e70030
JB
9078echo "$as_me:$LINENO: checking for $ac_word" >&5
9079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9080if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9082else
9083 if test -n "$ac_ct_AR"; then
9084 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9085else
9086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087for as_dir in $PATH
9088do
9089 IFS=$as_save_IFS
9090 test -z "$as_dir" && as_dir=.
9091 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9093 ac_cv_prog_ac_ct_AR="ar"
9094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9095 break 2
9096 fi
9097done
9098done
9099
9100fi
9101fi
9102ac_ct_AR=$ac_cv_prog_ac_ct_AR
9103if test -n "$ac_ct_AR"; then
b4e70030
JB
9104 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9105echo "${ECHO_T}$ac_ct_AR" >&6
bec39cab 9106else
b4e70030
JB
9107 echo "$as_me:$LINENO: result: no" >&5
9108echo "${ECHO_T}no" >&6
bec39cab
AC
9109fi
9110
b4e70030 9111 AR=$ac_ct_AR
bec39cab
AC
9112else
9113 AR="$ac_cv_prog_AR"
9114fi
9115
9116if test -n "$ac_tool_prefix"; then
9117 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9118set dummy ${ac_tool_prefix}dlltool; ac_word=$2
b4e70030
JB
9119echo "$as_me:$LINENO: checking for $ac_word" >&5
9120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9121if test "${ac_cv_prog_DLLTOOL+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9123else
9124 if test -n "$DLLTOOL"; then
9125 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9126else
9127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9128for as_dir in $PATH
9129do
9130 IFS=$as_save_IFS
9131 test -z "$as_dir" && as_dir=.
9132 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9134 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9136 break 2
9137 fi
9138done
9139done
9140
9141fi
9142fi
9143DLLTOOL=$ac_cv_prog_DLLTOOL
9144if test -n "$DLLTOOL"; then
b4e70030
JB
9145 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
9146echo "${ECHO_T}$DLLTOOL" >&6
bec39cab 9147else
b4e70030
JB
9148 echo "$as_me:$LINENO: result: no" >&5
9149echo "${ECHO_T}no" >&6
bec39cab
AC
9150fi
9151
9152fi
9153if test -z "$ac_cv_prog_DLLTOOL"; then
9154 ac_ct_DLLTOOL=$DLLTOOL
9155 # Extract the first word of "dlltool", so it can be a program name with args.
9156set dummy dlltool; ac_word=$2
b4e70030
JB
9157echo "$as_me:$LINENO: checking for $ac_word" >&5
9158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9159if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9161else
9162 if test -n "$ac_ct_DLLTOOL"; then
9163 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9164else
9165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166for as_dir in $PATH
9167do
9168 IFS=$as_save_IFS
9169 test -z "$as_dir" && as_dir=.
9170 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9172 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9174 break 2
9175 fi
9176done
9177done
9178
9179fi
9180fi
9181ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9182if test -n "$ac_ct_DLLTOOL"; then
b4e70030
JB
9183 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
9184echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
bec39cab 9185else
b4e70030
JB
9186 echo "$as_me:$LINENO: result: no" >&5
9187echo "${ECHO_T}no" >&6
bec39cab
AC
9188fi
9189
b4e70030 9190 DLLTOOL=$ac_ct_DLLTOOL
bec39cab
AC
9191else
9192 DLLTOOL="$ac_cv_prog_DLLTOOL"
9193fi
9194
9195if test -n "$ac_tool_prefix"; then
9196 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9197set dummy ${ac_tool_prefix}windres; ac_word=$2
b4e70030
JB
9198echo "$as_me:$LINENO: checking for $ac_word" >&5
9199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9200if test "${ac_cv_prog_WINDRES+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9202else
9203 if test -n "$WINDRES"; then
9204 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9205else
9206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207for as_dir in $PATH
9208do
9209 IFS=$as_save_IFS
9210 test -z "$as_dir" && as_dir=.
9211 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9213 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9215 break 2
9216 fi
9217done
9218done
9219
9220fi
9221fi
9222WINDRES=$ac_cv_prog_WINDRES
9223if test -n "$WINDRES"; then
b4e70030
JB
9224 echo "$as_me:$LINENO: result: $WINDRES" >&5
9225echo "${ECHO_T}$WINDRES" >&6
bec39cab 9226else
b4e70030
JB
9227 echo "$as_me:$LINENO: result: no" >&5
9228echo "${ECHO_T}no" >&6
bec39cab
AC
9229fi
9230
9231fi
9232if test -z "$ac_cv_prog_WINDRES"; then
9233 ac_ct_WINDRES=$WINDRES
9234 # Extract the first word of "windres", so it can be a program name with args.
9235set dummy windres; ac_word=$2
b4e70030
JB
9236echo "$as_me:$LINENO: checking for $ac_word" >&5
9237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9238if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9240else
9241 if test -n "$ac_ct_WINDRES"; then
9242 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9243else
9244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9245for as_dir in $PATH
9246do
9247 IFS=$as_save_IFS
9248 test -z "$as_dir" && as_dir=.
9249 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9251 ac_cv_prog_ac_ct_WINDRES="windres"
9252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9253 break 2
9254 fi
9255done
9256done
9257
9258fi
9259fi
9260ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9261if test -n "$ac_ct_WINDRES"; then
b4e70030
JB
9262 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9263echo "${ECHO_T}$ac_ct_WINDRES" >&6
bec39cab 9264else
b4e70030
JB
9265 echo "$as_me:$LINENO: result: no" >&5
9266echo "${ECHO_T}no" >&6
c906108c 9267fi
bec39cab 9268
b4e70030 9269 WINDRES=$ac_ct_WINDRES
c906108c 9270else
bec39cab 9271 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
9272fi
9273
bec39cab
AC
9274
9275# Needed for GNU/Hurd.
9276if test -n "$ac_tool_prefix"; then
9277 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9278set dummy ${ac_tool_prefix}mig; ac_word=$2
b4e70030
JB
9279echo "$as_me:$LINENO: checking for $ac_word" >&5
9280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9281if test "${ac_cv_prog_MIG+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 9283else
bec39cab
AC
9284 if test -n "$MIG"; then
9285 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9286else
9287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9288for as_dir in $PATH
9289do
9290 IFS=$as_save_IFS
9291 test -z "$as_dir" && as_dir=.
9292 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9294 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9296 break 2
9297 fi
9298done
9299done
9300
c906108c 9301fi
bec39cab
AC
9302fi
9303MIG=$ac_cv_prog_MIG
9304if test -n "$MIG"; then
b4e70030
JB
9305 echo "$as_me:$LINENO: result: $MIG" >&5
9306echo "${ECHO_T}$MIG" >&6
c906108c 9307else
b4e70030
JB
9308 echo "$as_me:$LINENO: result: no" >&5
9309echo "${ECHO_T}no" >&6
c906108c
SS
9310fi
9311
bec39cab
AC
9312fi
9313if test -z "$ac_cv_prog_MIG"; then
9314 ac_ct_MIG=$MIG
9315 # Extract the first word of "mig", so it can be a program name with args.
9316set dummy mig; ac_word=$2
b4e70030
JB
9317echo "$as_me:$LINENO: checking for $ac_word" >&5
9318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9319if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
9321else
9322 if test -n "$ac_ct_MIG"; then
9323 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9324else
9325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9326for as_dir in $PATH
9327do
9328 IFS=$as_save_IFS
9329 test -z "$as_dir" && as_dir=.
9330 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9332 ac_cv_prog_ac_ct_MIG="mig"
9333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9334 break 2
9335 fi
9336done
9337done
c906108c 9338
bec39cab
AC
9339fi
9340fi
9341ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9342if test -n "$ac_ct_MIG"; then
b4e70030
JB
9343 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9344echo "${ECHO_T}$ac_ct_MIG" >&6
bec39cab 9345else
b4e70030
JB
9346 echo "$as_me:$LINENO: result: no" >&5
9347echo "${ECHO_T}no" >&6
bec39cab 9348fi
c906108c 9349
b4e70030 9350 MIG=$ac_ct_MIG
bec39cab
AC
9351else
9352 MIG="$ac_cv_prog_MIG"
9353fi
c906108c 9354
c906108c 9355
bec39cab
AC
9356# ---------------------- #
9357# Checks for libraries. #
9358# ---------------------- #
c906108c 9359
bec39cab 9360# We might need to link with -lm; most simulators need it.
c906108c 9361
b4e70030
JB
9362echo "$as_me:$LINENO: checking for main in -lm" >&5
9363echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
bec39cab
AC
9364if test "${ac_cv_lib_m_main+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9366else
9367 ac_check_lib_save_LIBS=$LIBS
9368LIBS="-lm $LIBS"
9369cat >conftest.$ac_ext <<_ACEOF
9370/* confdefs.h. */
9371_ACEOF
9372cat confdefs.h >>conftest.$ac_ext
9373cat >>conftest.$ac_ext <<_ACEOF
9374/* end confdefs.h. */
c906108c 9375
c906108c 9376
bec39cab
AC
9377int
9378main ()
9379{
b4e70030 9380main ();
bec39cab
AC
9381 ;
9382 return 0;
9383}
9384_ACEOF
9385rm -f conftest.$ac_objext conftest$ac_exeext
9386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9387 (eval $ac_link) 2>conftest.er1
9388 ac_status=$?
9389 grep -v '^ *+' conftest.er1 >conftest.err
9390 rm -f conftest.er1
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } &&
b4e70030
JB
9394 { ac_try='test -z "$ac_c_werror_flag"
9395 || test ! -s conftest.err'
bec39cab
AC
9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397 (eval $ac_try) 2>&5
9398 ac_status=$?
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; } &&
9401 { ac_try='test -s conftest$ac_exeext'
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 (eval $ac_try) 2>&5
9404 ac_status=$?
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; }; then
9407 ac_cv_lib_m_main=yes
9408else
9409 echo "$as_me: failed program was:" >&5
9410sed 's/^/| /' conftest.$ac_ext >&5
9411
b4e70030 9412ac_cv_lib_m_main=no
bec39cab
AC
9413fi
9414rm -f conftest.err conftest.$ac_objext \
9415 conftest$ac_exeext conftest.$ac_ext
9416LIBS=$ac_check_lib_save_LIBS
9417fi
b4e70030
JB
9418echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9419echo "${ECHO_T}$ac_cv_lib_m_main" >&6
bec39cab
AC
9420if test $ac_cv_lib_m_main = yes; then
9421 cat >>confdefs.h <<_ACEOF
9422#define HAVE_LIBM 1
9423_ACEOF
9424
9425 LIBS="-lm $LIBS"
c906108c 9426
c906108c 9427fi
bec39cab
AC
9428
9429
9430# We need to link with -lw to get `wctype' on Solaris before Solaris
9431# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9432# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9433# is known to have this problem). Therefore we avoid libw if we can.
b4e70030
JB
9434echo "$as_me:$LINENO: checking for wctype" >&5
9435echo $ECHO_N "checking for wctype... $ECHO_C" >&6
bec39cab
AC
9436if test "${ac_cv_func_wctype+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9438else
9439 cat >conftest.$ac_ext <<_ACEOF
9440/* confdefs.h. */
9441_ACEOF
9442cat confdefs.h >>conftest.$ac_ext
9443cat >>conftest.$ac_ext <<_ACEOF
9444/* end confdefs.h. */
9445/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9447#define wctype innocuous_wctype
9448
9449/* System header to define __stub macros and hopefully few prototypes,
9450 which can conflict with char wctype (); below.
9451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9452 <limits.h> exists even on freestanding compilers. */
9453
9454#ifdef __STDC__
9455# include <limits.h>
9456#else
9457# include <assert.h>
9458#endif
9459
9460#undef wctype
9461
b4e70030 9462/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9463#ifdef __cplusplus
9464extern "C"
b4e70030 9465{
bec39cab 9466#endif
b4e70030
JB
9467/* We use char because int might match the return type of a gcc2
9468 builtin and then its argument prototype would still apply. */
bec39cab
AC
9469char wctype ();
9470/* The GNU C library defines this for functions which it implements
9471 to always fail with ENOSYS. Some functions are actually named
9472 something starting with __ and the normal name is an alias. */
b4e70030 9473#if defined (__stub_wctype) || defined (__stub___wctype)
bec39cab 9474choke me
b4e70030
JB
9475#else
9476char (*f) () = wctype;
9477#endif
9478#ifdef __cplusplus
9479}
bec39cab
AC
9480#endif
9481
9482int
9483main ()
9484{
b4e70030 9485return f != wctype;
bec39cab
AC
9486 ;
9487 return 0;
9488}
9489_ACEOF
9490rm -f conftest.$ac_objext conftest$ac_exeext
9491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9492 (eval $ac_link) 2>conftest.er1
9493 ac_status=$?
9494 grep -v '^ *+' conftest.er1 >conftest.err
9495 rm -f conftest.er1
9496 cat conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } &&
b4e70030
JB
9499 { ac_try='test -z "$ac_c_werror_flag"
9500 || test ! -s conftest.err'
bec39cab
AC
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 (eval $ac_try) 2>&5
9503 ac_status=$?
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; } &&
9506 { ac_try='test -s conftest$ac_exeext'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508 (eval $ac_try) 2>&5
9509 ac_status=$?
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9512 ac_cv_func_wctype=yes
9513else
9514 echo "$as_me: failed program was:" >&5
9515sed 's/^/| /' conftest.$ac_ext >&5
9516
b4e70030 9517ac_cv_func_wctype=no
bec39cab
AC
9518fi
9519rm -f conftest.err conftest.$ac_objext \
9520 conftest$ac_exeext conftest.$ac_ext
9521fi
b4e70030
JB
9522echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9523echo "${ECHO_T}$ac_cv_func_wctype" >&6
bec39cab
AC
9524if test $ac_cv_func_wctype = yes; then
9525 :
c906108c 9526else
c906108c 9527
b4e70030
JB
9528echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9529echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
bec39cab
AC
9530if test "${ac_cv_lib_w_wctype+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9532else
9533 ac_check_lib_save_LIBS=$LIBS
9534LIBS="-lw $LIBS"
9535cat >conftest.$ac_ext <<_ACEOF
9536/* confdefs.h. */
9537_ACEOF
9538cat confdefs.h >>conftest.$ac_ext
9539cat >>conftest.$ac_ext <<_ACEOF
9540/* end confdefs.h. */
c906108c 9541
b4e70030 9542/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9543#ifdef __cplusplus
9544extern "C"
9545#endif
b4e70030
JB
9546/* We use char because int might match the return type of a gcc2
9547 builtin and then its argument prototype would still apply. */
bec39cab
AC
9548char wctype ();
9549int
9550main ()
9551{
b4e70030 9552wctype ();
bec39cab
AC
9553 ;
9554 return 0;
9555}
9556_ACEOF
9557rm -f conftest.$ac_objext conftest$ac_exeext
9558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9559 (eval $ac_link) 2>conftest.er1
9560 ac_status=$?
9561 grep -v '^ *+' conftest.er1 >conftest.err
9562 rm -f conftest.er1
9563 cat conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } &&
b4e70030
JB
9566 { ac_try='test -z "$ac_c_werror_flag"
9567 || test ! -s conftest.err'
bec39cab
AC
9568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569 (eval $ac_try) 2>&5
9570 ac_status=$?
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); }; } &&
9573 { ac_try='test -s conftest$ac_exeext'
9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575 (eval $ac_try) 2>&5
9576 ac_status=$?
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; }; then
9579 ac_cv_lib_w_wctype=yes
9580else
9581 echo "$as_me: failed program was:" >&5
9582sed 's/^/| /' conftest.$ac_ext >&5
9583
b4e70030 9584ac_cv_lib_w_wctype=no
bec39cab
AC
9585fi
9586rm -f conftest.err conftest.$ac_objext \
9587 conftest$ac_exeext conftest.$ac_ext
9588LIBS=$ac_check_lib_save_LIBS
9589fi
b4e70030
JB
9590echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9591echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
bec39cab
AC
9592if test $ac_cv_lib_w_wctype = yes; then
9593 cat >>confdefs.h <<_ACEOF
9594#define HAVE_LIBW 1
9595_ACEOF
c906108c 9596
bec39cab 9597 LIBS="-lw $LIBS"
c906108c 9598
bec39cab 9599fi
c906108c 9600
bec39cab 9601fi
c906108c 9602
ddc9cd0f 9603
bec39cab 9604# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
b4e70030
JB
9605echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9606echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
bec39cab
AC
9607if test "${ac_cv_search_gethostbyname+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9609else
9610 ac_func_search_save_LIBS=$LIBS
b4e70030 9611ac_cv_search_gethostbyname=no
bec39cab
AC
9612cat >conftest.$ac_ext <<_ACEOF
9613/* confdefs.h. */
9614_ACEOF
9615cat confdefs.h >>conftest.$ac_ext
9616cat >>conftest.$ac_ext <<_ACEOF
9617/* end confdefs.h. */
ddc9cd0f 9618
b4e70030 9619/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9620#ifdef __cplusplus
9621extern "C"
9622#endif
b4e70030
JB
9623/* We use char because int might match the return type of a gcc2
9624 builtin and then its argument prototype would still apply. */
bec39cab
AC
9625char gethostbyname ();
9626int
9627main ()
9628{
b4e70030 9629gethostbyname ();
bec39cab
AC
9630 ;
9631 return 0;
9632}
9633_ACEOF
b4e70030 9634rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
9635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9636 (eval $ac_link) 2>conftest.er1
9637 ac_status=$?
9638 grep -v '^ *+' conftest.er1 >conftest.err
9639 rm -f conftest.er1
9640 cat conftest.err >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); } &&
b4e70030
JB
9643 { ac_try='test -z "$ac_c_werror_flag"
9644 || test ! -s conftest.err'
bec39cab
AC
9645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646 (eval $ac_try) 2>&5
9647 ac_status=$?
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; } &&
9650 { ac_try='test -s conftest$ac_exeext'
9651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652 (eval $ac_try) 2>&5
9653 ac_status=$?
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; }; then
b4e70030 9656 ac_cv_search_gethostbyname="none required"
bec39cab
AC
9657else
9658 echo "$as_me: failed program was:" >&5
9659sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 9660
bec39cab
AC
9661fi
9662rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
9663 conftest$ac_exeext conftest.$ac_ext
9664if test "$ac_cv_search_gethostbyname" = no; then
9665 for ac_lib in nsl; do
9666 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9667 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9668/* confdefs.h. */
9669_ACEOF
9670cat confdefs.h >>conftest.$ac_ext
9671cat >>conftest.$ac_ext <<_ACEOF
9672/* end confdefs.h. */
ddc9cd0f 9673
b4e70030 9674/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9675#ifdef __cplusplus
9676extern "C"
9677#endif
b4e70030
JB
9678/* We use char because int might match the return type of a gcc2
9679 builtin and then its argument prototype would still apply. */
9680char gethostbyname ();
bec39cab
AC
9681int
9682main ()
9683{
b4e70030 9684gethostbyname ();
bec39cab
AC
9685 ;
9686 return 0;
9687}
9688_ACEOF
b4e70030 9689rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
9690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9691 (eval $ac_link) 2>conftest.er1
9692 ac_status=$?
9693 grep -v '^ *+' conftest.er1 >conftest.err
9694 rm -f conftest.er1
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } &&
b4e70030
JB
9698 { ac_try='test -z "$ac_c_werror_flag"
9699 || test ! -s conftest.err'
bec39cab
AC
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 (eval $ac_try) 2>&5
9702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; } &&
9705 { ac_try='test -s conftest$ac_exeext'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 (eval $ac_try) 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; }; then
b4e70030
JB
9711 ac_cv_search_gethostbyname="-l$ac_lib"
9712break
bec39cab
AC
9713else
9714 echo "$as_me: failed program was:" >&5
9715sed 's/^/| /' conftest.$ac_ext >&5
9716
9717fi
9718rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
9719 conftest$ac_exeext conftest.$ac_ext
9720 done
bec39cab
AC
9721fi
9722LIBS=$ac_func_search_save_LIBS
9723fi
b4e70030
JB
9724echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9725echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9726if test "$ac_cv_search_gethostbyname" != no; then
9727 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
96baa820 9728
bec39cab 9729fi
96baa820 9730
c906108c 9731
b4e70030
JB
9732# Some systems (e.g. Solaris) have `socketpair' in libsocket.
9733echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9734echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9735if test "${ac_cv_search_socketpair+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9737else
9738 ac_func_search_save_LIBS=$LIBS
9739ac_cv_search_socketpair=no
9740cat >conftest.$ac_ext <<_ACEOF
9741/* confdefs.h. */
9742_ACEOF
9743cat confdefs.h >>conftest.$ac_ext
9744cat >>conftest.$ac_ext <<_ACEOF
9745/* end confdefs.h. */
9746
9747/* Override any gcc2 internal prototype to avoid an error. */
9748#ifdef __cplusplus
9749extern "C"
9750#endif
9751/* We use char because int might match the return type of a gcc2
9752 builtin and then its argument prototype would still apply. */
9753char socketpair ();
9754int
9755main ()
9756{
9757socketpair ();
9758 ;
9759 return 0;
9760}
9761_ACEOF
9762rm -f conftest.$ac_objext conftest$ac_exeext
9763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9764 (eval $ac_link) 2>conftest.er1
9765 ac_status=$?
9766 grep -v '^ *+' conftest.er1 >conftest.err
9767 rm -f conftest.er1
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } &&
9771 { ac_try='test -z "$ac_c_werror_flag"
9772 || test ! -s conftest.err'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 (eval $ac_try) 2>&5
9775 ac_status=$?
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; } &&
9778 { ac_try='test -s conftest$ac_exeext'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 (eval $ac_try) 2>&5
9781 ac_status=$?
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9784 ac_cv_search_socketpair="none required"
9785else
9786 echo "$as_me: failed program was:" >&5
9787sed 's/^/| /' conftest.$ac_ext >&5
9788
9789fi
9790rm -f conftest.err conftest.$ac_objext \
9791 conftest$ac_exeext conftest.$ac_ext
9792if test "$ac_cv_search_socketpair" = no; then
9793 for ac_lib in socket; do
9794 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9795 cat >conftest.$ac_ext <<_ACEOF
9796/* confdefs.h. */
9797_ACEOF
9798cat confdefs.h >>conftest.$ac_ext
9799cat >>conftest.$ac_ext <<_ACEOF
9800/* end confdefs.h. */
9801
9802/* Override any gcc2 internal prototype to avoid an error. */
9803#ifdef __cplusplus
9804extern "C"
9805#endif
9806/* We use char because int might match the return type of a gcc2
9807 builtin and then its argument prototype would still apply. */
9808char socketpair ();
9809int
9810main ()
9811{
9812socketpair ();
9813 ;
9814 return 0;
9815}
9816_ACEOF
9817rm -f conftest.$ac_objext conftest$ac_exeext
9818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9819 (eval $ac_link) 2>conftest.er1
9820 ac_status=$?
9821 grep -v '^ *+' conftest.er1 >conftest.err
9822 rm -f conftest.er1
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try='test -z "$ac_c_werror_flag"
9827 || test ! -s conftest.err'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829 (eval $ac_try) 2>&5
9830 ac_status=$?
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; } &&
9833 { ac_try='test -s conftest$ac_exeext'
9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835 (eval $ac_try) 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
9839 ac_cv_search_socketpair="-l$ac_lib"
9840break
9841else
9842 echo "$as_me: failed program was:" >&5
9843sed 's/^/| /' conftest.$ac_ext >&5
9844
9845fi
9846rm -f conftest.err conftest.$ac_objext \
9847 conftest$ac_exeext conftest.$ac_ext
9848 done
9849fi
9850LIBS=$ac_func_search_save_LIBS
9851fi
9852echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9853echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9854if test "$ac_cv_search_socketpair" != no; then
9855 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9856
9857fi
9858
9859
233a11ab
CS
9860# Link in zlib if we can. This allows us to read compressed debug sections.
9861echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9862echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9863if test "${ac_cv_search_zlibVersion+set}" = set; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9865else
9866 ac_func_search_save_LIBS=$LIBS
9867ac_cv_search_zlibVersion=no
9868cat >conftest.$ac_ext <<_ACEOF
9869/* confdefs.h. */
9870_ACEOF
9871cat confdefs.h >>conftest.$ac_ext
9872cat >>conftest.$ac_ext <<_ACEOF
9873/* end confdefs.h. */
9874
9875/* Override any gcc2 internal prototype to avoid an error. */
9876#ifdef __cplusplus
9877extern "C"
9878#endif
9879/* We use char because int might match the return type of a gcc2
9880 builtin and then its argument prototype would still apply. */
9881char zlibVersion ();
9882int
9883main ()
9884{
9885zlibVersion ();
9886 ;
9887 return 0;
9888}
9889_ACEOF
9890rm -f conftest.$ac_objext conftest$ac_exeext
9891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892 (eval $ac_link) 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); } &&
9899 { ac_try='test -z "$ac_c_werror_flag"
9900 || test ! -s conftest.err'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 (eval $ac_try) 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908 (eval $ac_try) 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 ac_cv_search_zlibVersion="none required"
9913else
9914 echo "$as_me: failed program was:" >&5
9915sed 's/^/| /' conftest.$ac_ext >&5
9916
9917fi
9918rm -f conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9920if test "$ac_cv_search_zlibVersion" = no; then
9921 for ac_lib in z; do
9922 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9923 cat >conftest.$ac_ext <<_ACEOF
9924/* confdefs.h. */
9925_ACEOF
9926cat confdefs.h >>conftest.$ac_ext
9927cat >>conftest.$ac_ext <<_ACEOF
9928/* end confdefs.h. */
9929
9930/* Override any gcc2 internal prototype to avoid an error. */
9931#ifdef __cplusplus
9932extern "C"
9933#endif
9934/* We use char because int might match the return type of a gcc2
9935 builtin and then its argument prototype would still apply. */
9936char zlibVersion ();
9937int
9938main ()
9939{
9940zlibVersion ();
9941 ;
9942 return 0;
9943}
9944_ACEOF
9945rm -f conftest.$ac_objext conftest$ac_exeext
9946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947 (eval $ac_link) 2>conftest.er1
9948 ac_status=$?
9949 grep -v '^ *+' conftest.er1 >conftest.err
9950 rm -f conftest.er1
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } &&
9954 { ac_try='test -z "$ac_c_werror_flag"
9955 || test ! -s conftest.err'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957 (eval $ac_try) 2>&5
9958 ac_status=$?
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; } &&
9961 { ac_try='test -s conftest$ac_exeext'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 (eval $ac_try) 2>&5
9964 ac_status=$?
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
9967 ac_cv_search_zlibVersion="-l$ac_lib"
9968break
9969else
9970 echo "$as_me: failed program was:" >&5
9971sed 's/^/| /' conftest.$ac_ext >&5
9972
9973fi
9974rm -f conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext conftest.$ac_ext
9976 done
9977fi
9978LIBS=$ac_func_search_save_LIBS
9979fi
9980echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9981echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9982if test "$ac_cv_search_zlibVersion" != no; then
9983 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9984
9985for ac_header in zlib.h
9986do
9987as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9988if eval "test \"\${$as_ac_Header+set}\" = set"; then
9989 echo "$as_me:$LINENO: checking for $ac_header" >&5
9990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9991if eval "test \"\${$as_ac_Header+set}\" = set"; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
9993fi
9994echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9995echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9996else
9997 # Is the header compilable?
9998echo "$as_me:$LINENO: checking $ac_header usability" >&5
9999echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10000cat >conftest.$ac_ext <<_ACEOF
10001/* confdefs.h. */
10002_ACEOF
10003cat confdefs.h >>conftest.$ac_ext
10004cat >>conftest.$ac_ext <<_ACEOF
10005/* end confdefs.h. */
10006$ac_includes_default
10007#include <$ac_header>
10008_ACEOF
10009rm -f conftest.$ac_objext
10010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10011 (eval $ac_compile) 2>conftest.er1
10012 ac_status=$?
10013 grep -v '^ *+' conftest.er1 >conftest.err
10014 rm -f conftest.er1
10015 cat conftest.err >&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } &&
10018 { ac_try='test -z "$ac_c_werror_flag"
10019 || test ! -s conftest.err'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10022 ac_status=$?
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; } &&
10025 { ac_try='test -s conftest.$ac_objext'
10026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027 (eval $ac_try) 2>&5
10028 ac_status=$?
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; }; then
10031 ac_header_compiler=yes
10032else
10033 echo "$as_me: failed program was:" >&5
10034sed 's/^/| /' conftest.$ac_ext >&5
10035
10036ac_header_compiler=no
10037fi
10038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10039echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10040echo "${ECHO_T}$ac_header_compiler" >&6
10041
10042# Is the header present?
10043echo "$as_me:$LINENO: checking $ac_header presence" >&5
10044echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10045cat >conftest.$ac_ext <<_ACEOF
10046/* confdefs.h. */
10047_ACEOF
10048cat confdefs.h >>conftest.$ac_ext
10049cat >>conftest.$ac_ext <<_ACEOF
10050/* end confdefs.h. */
10051#include <$ac_header>
10052_ACEOF
10053if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10055 ac_status=$?
10056 grep -v '^ *+' conftest.er1 >conftest.err
10057 rm -f conftest.er1
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } >/dev/null; then
10061 if test -s conftest.err; then
10062 ac_cpp_err=$ac_c_preproc_warn_flag
10063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10064 else
10065 ac_cpp_err=
10066 fi
10067else
10068 ac_cpp_err=yes
10069fi
10070if test -z "$ac_cpp_err"; then
10071 ac_header_preproc=yes
10072else
10073 echo "$as_me: failed program was:" >&5
10074sed 's/^/| /' conftest.$ac_ext >&5
10075
10076 ac_header_preproc=no
10077fi
10078rm -f conftest.err conftest.$ac_ext
10079echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10080echo "${ECHO_T}$ac_header_preproc" >&6
10081
10082# So? What about this header?
10083case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10084 yes:no: )
10085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10086echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10088echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10089 ac_header_preproc=yes
10090 ;;
10091 no:yes:* )
10092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10093echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10095echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10097echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10099echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10101echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10103echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10104 (
10105 cat <<\_ASBOX
10106## ------------------------------------------ ##
10107## Report this to the AC_PACKAGE_NAME lists. ##
10108## ------------------------------------------ ##
10109_ASBOX
10110 ) |
10111 sed "s/^/$as_me: WARNING: /" >&2
10112 ;;
10113esac
10114echo "$as_me:$LINENO: checking for $ac_header" >&5
10115echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10116if eval "test \"\${$as_ac_Header+set}\" = set"; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10118else
10119 eval "$as_ac_Header=\$ac_header_preproc"
10120fi
10121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10122echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10123
10124fi
10125if test `eval echo '${'$as_ac_Header'}'` = yes; then
10126 cat >>confdefs.h <<_ACEOF
10127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10128_ACEOF
10129
10130fi
10131
10132done
10133
10134fi
10135
10136
77f120bf
JB
10137# On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
10138echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
10139echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
10140if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
bec39cab
AC
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10142else
10143 ac_func_search_save_LIBS=$LIBS
77f120bf 10144ac_cv_search_dlgetmodinfo=no
bec39cab
AC
10145cat >conftest.$ac_ext <<_ACEOF
10146/* confdefs.h. */
10147_ACEOF
10148cat confdefs.h >>conftest.$ac_ext
10149cat >>conftest.$ac_ext <<_ACEOF
10150/* end confdefs.h. */
c906108c 10151
b4e70030 10152/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
10153#ifdef __cplusplus
10154extern "C"
10155#endif
b4e70030
JB
10156/* We use char because int might match the return type of a gcc2
10157 builtin and then its argument prototype would still apply. */
77f120bf 10158char dlgetmodinfo ();
bec39cab
AC
10159int
10160main ()
10161{
77f120bf 10162dlgetmodinfo ();
bec39cab
AC
10163 ;
10164 return 0;
10165}
10166_ACEOF
b4e70030 10167rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
10168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10169 (eval $ac_link) 2>conftest.er1
10170 ac_status=$?
10171 grep -v '^ *+' conftest.er1 >conftest.err
10172 rm -f conftest.er1
10173 cat conftest.err >&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } &&
b4e70030
JB
10176 { ac_try='test -z "$ac_c_werror_flag"
10177 || test ! -s conftest.err'
bec39cab
AC
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10180 ac_status=$?
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; } &&
10183 { ac_try='test -s conftest$ac_exeext'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
77f120bf 10189 ac_cv_search_dlgetmodinfo="none required"
bec39cab
AC
10190else
10191 echo "$as_me: failed program was:" >&5
10192sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
10193
10194fi
bec39cab 10195rm -f conftest.err conftest.$ac_objext \
b4e70030 10196 conftest$ac_exeext conftest.$ac_ext
77f120bf
JB
10197if test "$ac_cv_search_dlgetmodinfo" = no; then
10198 for ac_lib in dl xpdl; do
b4e70030
JB
10199 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10200 cat >conftest.$ac_ext <<_ACEOF
10201/* confdefs.h. */
10202_ACEOF
10203cat confdefs.h >>conftest.$ac_ext
10204cat >>conftest.$ac_ext <<_ACEOF
10205/* end confdefs.h. */
10206
10207/* Override any gcc2 internal prototype to avoid an error. */
10208#ifdef __cplusplus
10209extern "C"
10210#endif
10211/* We use char because int might match the return type of a gcc2
10212 builtin and then its argument prototype would still apply. */
77f120bf 10213char dlgetmodinfo ();
b4e70030
JB
10214int
10215main ()
10216{
77f120bf 10217dlgetmodinfo ();
b4e70030
JB
10218 ;
10219 return 0;
10220}
10221_ACEOF
10222rm -f conftest.$ac_objext conftest$ac_exeext
10223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10224 (eval $ac_link) 2>conftest.er1
10225 ac_status=$?
10226 grep -v '^ *+' conftest.er1 >conftest.err
10227 rm -f conftest.er1
10228 cat conftest.err >&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } &&
10231 { ac_try='test -z "$ac_c_werror_flag"
10232 || test ! -s conftest.err'
10233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234 (eval $ac_try) 2>&5
10235 ac_status=$?
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; } &&
10238 { ac_try='test -s conftest$ac_exeext'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10241 ac_status=$?
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; }; then
77f120bf 10244 ac_cv_search_dlgetmodinfo="-l$ac_lib"
b4e70030 10245break
4e8d927d 10246else
b4e70030
JB
10247 echo "$as_me: failed program was:" >&5
10248sed 's/^/| /' conftest.$ac_ext >&5
10249
10250fi
10251rm -f conftest.err conftest.$ac_objext \
10252 conftest$ac_exeext conftest.$ac_ext
10253 done
1ba607ad 10254fi
bec39cab
AC
10255LIBS=$ac_func_search_save_LIBS
10256fi
77f120bf
JB
10257echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10258echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10259if test "$ac_cv_search_dlgetmodinfo" != no; then
10260 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
c906108c 10261
8bb2c122 10262fi
8bb2c122 10263
8bb2c122 10264
77f120bf
JB
10265# On alpha-osf, it appears that libtermcap and libcurses are not compatible.
10266# There is a very specific comment in /usr/include/curses.h explaining that
10267# termcap routines built into libcurses must not be used.
10268#
10269# The symptoms we observed so far is GDB unexpectedly changing
10270# the terminal settings when tgetent is called - this is particularly
10271# visible as the output is missing carriage returns, and so rapidly
10272# becomes very hard to read.
10273#
10274# The readline configure script has already decided that libtermcap
10275# was enough for its purposes, and so decided to build readline using
10276# libtermcap. Since the TUI mode requires curses, building GDB with
10277# TUI enabled results in both libraries to be used at the same time,
10278# which is not allowed. This basically means that GDB with TUI is
10279# broken on alpha-osf.
10280
10281case $host_os in
10282 alpha*-*-osf* )
10283 if "$enable_tui" = "yes"; then
10284 { { echo "$as_me:$LINENO: error: Building GDB with TUI mode is not supported on this host" >&5
10285echo "$as_me: error: Building GDB with TUI mode is not supported on this host" >&2;}
10286 { (exit 1); exit 1; }; }
10287 fi
10288 if "$enable_tui" = "auto"; then
10289 enable_tui=no
10290 fi
10291 ;;
10292esac
10293
10294# Check whether we should enable the TUI, but only do so if we really
10295# can.
10296if test x"$enable_tui" != xno; then
10297 if test -d $srcdir/tui; then
10298 # For the TUI, we need enhanced curses functionality.
10299 #
10300 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
10301 # curses library because the latter might not provide all the
10302 # functionality we need. However, this leads to problems on systems
10303 # where the linker searches /usr/local/lib, but the compiler doesn't
10304 # search /usr/local/include, if ncurses is installed in /usr/local. A
10305 # default installation of ncurses on alpha*-dec-osf* will lead to such
10306 # a situation.
10307 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
10308echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
10309if test "${ac_cv_search_waddstr+set}" = set; then
d542061a
UW
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10311else
10312 ac_func_search_save_LIBS=$LIBS
77f120bf 10313ac_cv_search_waddstr=no
d542061a
UW
10314cat >conftest.$ac_ext <<_ACEOF
10315/* confdefs.h. */
10316_ACEOF
10317cat confdefs.h >>conftest.$ac_ext
10318cat >>conftest.$ac_ext <<_ACEOF
10319/* end confdefs.h. */
10320
10321/* Override any gcc2 internal prototype to avoid an error. */
10322#ifdef __cplusplus
10323extern "C"
10324#endif
10325/* We use char because int might match the return type of a gcc2
10326 builtin and then its argument prototype would still apply. */
77f120bf 10327char waddstr ();
d542061a
UW
10328int
10329main ()
10330{
77f120bf 10331waddstr ();
d542061a
UW
10332 ;
10333 return 0;
10334}
10335_ACEOF
10336rm -f conftest.$ac_objext conftest$ac_exeext
10337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10338 (eval $ac_link) 2>conftest.er1
10339 ac_status=$?
10340 grep -v '^ *+' conftest.er1 >conftest.err
10341 rm -f conftest.er1
10342 cat conftest.err >&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } &&
10345 { ac_try='test -z "$ac_c_werror_flag"
10346 || test ! -s conftest.err'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10349 ac_status=$?
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; } &&
10352 { ac_try='test -s conftest$ac_exeext'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10355 ac_status=$?
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; }; then
77f120bf 10358 ac_cv_search_waddstr="none required"
d542061a
UW
10359else
10360 echo "$as_me: failed program was:" >&5
10361sed 's/^/| /' conftest.$ac_ext >&5
10362
10363fi
10364rm -f conftest.err conftest.$ac_objext \
10365 conftest$ac_exeext conftest.$ac_ext
77f120bf
JB
10366if test "$ac_cv_search_waddstr" = no; then
10367 for ac_lib in ncurses cursesX curses; do
d542061a
UW
10368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10369 cat >conftest.$ac_ext <<_ACEOF
10370/* confdefs.h. */
10371_ACEOF
10372cat confdefs.h >>conftest.$ac_ext
10373cat >>conftest.$ac_ext <<_ACEOF
10374/* end confdefs.h. */
10375
10376/* Override any gcc2 internal prototype to avoid an error. */
10377#ifdef __cplusplus
10378extern "C"
10379#endif
10380/* We use char because int might match the return type of a gcc2
10381 builtin and then its argument prototype would still apply. */
77f120bf 10382char waddstr ();
d542061a
UW
10383int
10384main ()
10385{
77f120bf 10386waddstr ();
d542061a
UW
10387 ;
10388 return 0;
10389}
10390_ACEOF
10391rm -f conftest.$ac_objext conftest$ac_exeext
10392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10393 (eval $ac_link) 2>conftest.er1
10394 ac_status=$?
10395 grep -v '^ *+' conftest.er1 >conftest.err
10396 rm -f conftest.er1
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } &&
10400 { ac_try='test -z "$ac_c_werror_flag"
10401 || test ! -s conftest.err'
10402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403 (eval $ac_try) 2>&5
10404 ac_status=$?
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; } &&
10407 { ac_try='test -s conftest$ac_exeext'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
77f120bf 10413 ac_cv_search_waddstr="-l$ac_lib"
d542061a
UW
10414break
10415else
10416 echo "$as_me: failed program was:" >&5
10417sed 's/^/| /' conftest.$ac_ext >&5
10418
10419fi
10420rm -f conftest.err conftest.$ac_objext \
10421 conftest$ac_exeext conftest.$ac_ext
10422 done
10423fi
10424LIBS=$ac_func_search_save_LIBS
10425fi
77f120bf
JB
10426echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10427echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10428if test "$ac_cv_search_waddstr" != no; then
10429 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
d542061a
UW
10430
10431fi
10432
10433
77f120bf
JB
10434 if test "$ac_cv_search_waddstr" != no; then
10435 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
10436 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
10437 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
10438 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
10439 CONFIG_ALL="${CONFIG_ALL} all-tui"
10440 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
10441 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
10442 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
10443 else
10444 if test x"$enable_tui" = xyes; then
10445 { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
10446echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
10447 { (exit 1); exit 1; }; }
10448 else
10449 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
10450echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
10451 fi
10452 fi
10453 fi
10454fi
10455
bec39cab
AC
10456# Since GDB uses Readline, we need termcap functionality. In many
10457# cases this will be provided by the curses library, but some systems
10458# have a seperate termcap library, or no curses library at all.
8bb2c122 10459
bec39cab
AC
10460case $host_os in
10461 cygwin*)
10462 if test -d $srcdir/libtermcap; then
10463 LIBS="../libtermcap/libtermcap.a $LIBS"
10464 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10465 fi ;;
10466 go32* | *djgpp*)
10467 ac_cv_search_tgetent="none required"
10468 ;;
7ef34f2c
MM
10469 *mingw32*)
10470 ac_cv_search_tgetent="none required"
10471 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
10472 ;;
bec39cab 10473esac
627af7ea 10474
bec39cab 10475# These are the libraries checked by Readline.
b4e70030
JB
10476echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10477echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
bec39cab
AC
10478if test "${ac_cv_search_tgetent+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10480else
10481 ac_func_search_save_LIBS=$LIBS
b4e70030 10482ac_cv_search_tgetent=no
bec39cab
AC
10483cat >conftest.$ac_ext <<_ACEOF
10484/* confdefs.h. */
10485_ACEOF
10486cat confdefs.h >>conftest.$ac_ext
10487cat >>conftest.$ac_ext <<_ACEOF
10488/* end confdefs.h. */
10489
b4e70030 10490/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
10491#ifdef __cplusplus
10492extern "C"
10493#endif
b4e70030
JB
10494/* We use char because int might match the return type of a gcc2
10495 builtin and then its argument prototype would still apply. */
bec39cab
AC
10496char tgetent ();
10497int
10498main ()
10499{
b4e70030 10500tgetent ();
bec39cab
AC
10501 ;
10502 return 0;
10503}
10504_ACEOF
b4e70030 10505rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
10506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10507 (eval $ac_link) 2>conftest.er1
10508 ac_status=$?
10509 grep -v '^ *+' conftest.er1 >conftest.err
10510 rm -f conftest.er1
10511 cat conftest.err >&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } &&
b4e70030
JB
10514 { ac_try='test -z "$ac_c_werror_flag"
10515 || test ! -s conftest.err'
bec39cab
AC
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; } &&
10521 { ac_try='test -s conftest$ac_exeext'
10522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523 (eval $ac_try) 2>&5
10524 ac_status=$?
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); }; }; then
b4e70030 10527 ac_cv_search_tgetent="none required"
627af7ea 10528else
bec39cab
AC
10529 echo "$as_me: failed program was:" >&5
10530sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 10531
627af7ea 10532fi
bec39cab 10533rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
10534 conftest$ac_exeext conftest.$ac_ext
10535if test "$ac_cv_search_tgetent" = no; then
10536 for ac_lib in termcap tinfo curses ncurses; do
10537 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10538 cat >conftest.$ac_ext <<_ACEOF
10539/* confdefs.h. */
10540_ACEOF
10541cat confdefs.h >>conftest.$ac_ext
10542cat >>conftest.$ac_ext <<_ACEOF
10543/* end confdefs.h. */
10544
10545/* Override any gcc2 internal prototype to avoid an error. */
10546#ifdef __cplusplus
10547extern "C"
10548#endif
10549/* We use char because int might match the return type of a gcc2
10550 builtin and then its argument prototype would still apply. */
10551char tgetent ();
10552int
10553main ()
10554{
10555tgetent ();
10556 ;
10557 return 0;
10558}
10559_ACEOF
10560rm -f conftest.$ac_objext conftest$ac_exeext
10561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10562 (eval $ac_link) 2>conftest.er1
10563 ac_status=$?
10564 grep -v '^ *+' conftest.er1 >conftest.err
10565 rm -f conftest.er1
10566 cat conftest.err >&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } &&
10569 { ac_try='test -z "$ac_c_werror_flag"
10570 || test ! -s conftest.err'
10571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10572 (eval $ac_try) 2>&5
10573 ac_status=$?
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); }; } &&
10576 { ac_try='test -s conftest$ac_exeext'
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10579 ac_status=$?
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; }; then
10582 ac_cv_search_tgetent="-l$ac_lib"
10583break
4e8d927d 10584else
b4e70030
JB
10585 echo "$as_me: failed program was:" >&5
10586sed 's/^/| /' conftest.$ac_ext >&5
10587
10588fi
10589rm -f conftest.err conftest.$ac_objext \
10590 conftest$ac_exeext conftest.$ac_ext
10591 done
bec39cab
AC
10592fi
10593LIBS=$ac_func_search_save_LIBS
10594fi
b4e70030
JB
10595echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10596echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10597if test "$ac_cv_search_tgetent" != no; then
10598 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 10599
06825bd1
MK
10600fi
10601
06825bd1 10602
bec39cab
AC
10603if test "$ac_cv_search_tgetent" = no; then
10604 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10605echo "$as_me: error: no termcap library found" >&2;}
10606 { (exit 1); exit 1; }; }
8ee53726
MK
10607fi
10608
3841debe 10609
6a30b0a5
AS
10610# Check whether --with-system-readline or --without-system-readline was given.
10611if test "${with_system_readline+set}" = set; then
10612 withval="$with_system_readline"
10613
10614fi;
10615
10616if test "$with_system_readline" = yes; then
10617 READLINE=-lreadline
10618 READLINE_DEPS=
10619 READLINE_CFLAGS=
10620else
10621 READLINE='$(READLINE_DIR)/libreadline.a'
10622 READLINE_DEPS='$(READLINE)'
10623 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10624fi
10625
10626
10627
10628
10629
5c39566f
DJ
10630# Check whether --with-expat or --without-expat was given.
10631if test "${with_expat+set}" = set; then
10632 withval="$with_expat"
10633
10634else
10635 with_expat=auto
10636fi;
10637echo "$as_me:$LINENO: checking whether to use expat" >&5
10638echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10639echo "$as_me:$LINENO: result: $with_expat" >&5
10640echo "${ECHO_T}$with_expat" >&6
10641
10642if test "${with_expat}" = no; then
10643 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10644echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10645 HAVE_LIBEXPAT=no
10646else
10647
3841debe
DJ
10648 if test "X$prefix" = "XNONE"; then
10649 acl_final_prefix="$ac_default_prefix"
10650 else
10651 acl_final_prefix="$prefix"
10652 fi
10653 if test "X$exec_prefix" = "XNONE"; then
10654 acl_final_exec_prefix='${prefix}'
10655 else
10656 acl_final_exec_prefix="$exec_prefix"
10657 fi
10658 acl_save_prefix="$prefix"
10659 prefix="$acl_final_prefix"
10660 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10661 prefix="$acl_save_prefix"
10662
10663
10664# Check whether --with-gnu-ld or --without-gnu-ld was given.
10665if test "${with_gnu_ld+set}" = set; then
10666 withval="$with_gnu_ld"
10667 test "$withval" = no || with_gnu_ld=yes
10668else
10669 with_gnu_ld=no
10670fi;
10671# Prepare PATH_SEPARATOR.
10672# The user is always right.
10673if test "${PATH_SEPARATOR+set}" != set; then
10674 echo "#! /bin/sh" >conf$$.sh
10675 echo "exit 0" >>conf$$.sh
10676 chmod +x conf$$.sh
10677 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10678 PATH_SEPARATOR=';'
10679 else
10680 PATH_SEPARATOR=:
10681 fi
10682 rm -f conf$$.sh
10683fi
10684ac_prog=ld
10685if test "$GCC" = yes; then
10686 # Check if gcc -print-prog-name=ld gives a path.
10687 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10688echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10689 case $host in
10690 *-*-mingw*)
10691 # gcc leaves a trailing carriage return which upsets mingw
10692 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10693 *)
10694 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10695 esac
10696 case $ac_prog in
10697 # Accept absolute paths.
10698 [\\/]* | [A-Za-z]:[\\/]*)
10699 re_direlt='/[^/][^/]*/\.\./'
10700 # Canonicalize the path of ld
10701 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10702 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10703 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10704 done
10705 test -z "$LD" && LD="$ac_prog"
10706 ;;
10707 "")
10708 # If it fails, then pretend we aren't using GCC.
10709 ac_prog=ld
10710 ;;
10711 *)
10712 # If it is relative, then search for the first ld in PATH.
10713 with_gnu_ld=unknown
10714 ;;
10715 esac
10716elif test "$with_gnu_ld" = yes; then
10717 echo "$as_me:$LINENO: checking for GNU ld" >&5
10718echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10719else
10720 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10721echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10722fi
10723if test "${acl_cv_path_LD+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10725else
10726 if test -z "$LD"; then
10727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10728 for ac_dir in $PATH; do
10729 test -z "$ac_dir" && ac_dir=.
10730 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10731 acl_cv_path_LD="$ac_dir/$ac_prog"
10732 # Check to see if the program is GNU ld. I'd rather use --version,
10733 # but apparently some GNU ld's only accept -v.
10734 # Break only if it was the GNU/non-GNU ld that we prefer.
10735 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10736 test "$with_gnu_ld" != no && break
10737 else
10738 test "$with_gnu_ld" != yes && break
10739 fi
10740 fi
10741 done
10742 IFS="$ac_save_ifs"
10743else
10744 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10745fi
10746fi
10747
10748LD="$acl_cv_path_LD"
10749if test -n "$LD"; then
10750 echo "$as_me:$LINENO: result: $LD" >&5
10751echo "${ECHO_T}$LD" >&6
10752else
10753 echo "$as_me:$LINENO: result: no" >&5
10754echo "${ECHO_T}no" >&6
10755fi
10756test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10757echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10758 { (exit 1); exit 1; }; }
10759echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10760echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10761if test "${acl_cv_prog_gnu_ld+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10763else
10764 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10765if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10766 acl_cv_prog_gnu_ld=yes
10767else
10768 acl_cv_prog_gnu_ld=no
10769fi
10770fi
10771echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10772echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10773with_gnu_ld=$acl_cv_prog_gnu_ld
10774
10775
10776
10777 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10778echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10779if test "${acl_cv_rpath+set}" = set; then
10780 echo $ECHO_N "(cached) $ECHO_C" >&6
10781else
10782
10783 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10784 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10785 . ./conftest.sh
10786 rm -f ./conftest.sh
10787 acl_cv_rpath=done
10788
10789fi
10790echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10791echo "${ECHO_T}$acl_cv_rpath" >&6
10792 wl="$acl_cv_wl"
10793 libext="$acl_cv_libext"
10794 shlibext="$acl_cv_shlibext"
10795 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10796 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10797 hardcode_direct="$acl_cv_hardcode_direct"
10798 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10799 # Check whether --enable-rpath or --disable-rpath was given.
10800if test "${enable_rpath+set}" = set; then
10801 enableval="$enable_rpath"
10802 :
10803else
10804 enable_rpath=yes
10805fi;
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815 use_additional=yes
10816
10817 acl_save_prefix="$prefix"
10818 prefix="$acl_final_prefix"
10819 acl_save_exec_prefix="$exec_prefix"
10820 exec_prefix="$acl_final_exec_prefix"
10821
10822 eval additional_includedir=\"$includedir\"
10823 eval additional_libdir=\"$libdir\"
10824
10825 exec_prefix="$acl_save_exec_prefix"
10826 prefix="$acl_save_prefix"
10827
10828
10829# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10830if test "${with_libexpat_prefix+set}" = set; then
10831 withval="$with_libexpat_prefix"
10832
10833 if test "X$withval" = "Xno"; then
10834 use_additional=no
10835 else
10836 if test "X$withval" = "X"; then
10837
10838 acl_save_prefix="$prefix"
10839 prefix="$acl_final_prefix"
10840 acl_save_exec_prefix="$exec_prefix"
10841 exec_prefix="$acl_final_exec_prefix"
10842
10843 eval additional_includedir=\"$includedir\"
10844 eval additional_libdir=\"$libdir\"
10845
10846 exec_prefix="$acl_save_exec_prefix"
10847 prefix="$acl_save_prefix"
10848
10849 else
10850 additional_includedir="$withval/include"
10851 additional_libdir="$withval/lib"
10852 fi
10853 fi
10854
10855fi;
10856 LIBEXPAT=
10857 LTLIBEXPAT=
10858 INCEXPAT=
10859 rpathdirs=
10860 ltrpathdirs=
10861 names_already_handled=
10862 names_next_round='expat '
10863 while test -n "$names_next_round"; do
10864 names_this_round="$names_next_round"
10865 names_next_round=
10866 for name in $names_this_round; do
10867 already_handled=
10868 for n in $names_already_handled; do
10869 if test "$n" = "$name"; then
10870 already_handled=yes
10871 break
10872 fi
10873 done
10874 if test -z "$already_handled"; then
10875 names_already_handled="$names_already_handled $name"
10876 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10877 eval value=\"\$HAVE_LIB$uppername\"
10878 if test -n "$value"; then
10879 if test "$value" = yes; then
10880 eval value=\"\$LIB$uppername\"
10881 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10882 eval value=\"\$LTLIB$uppername\"
10883 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10884 else
10885 :
10886 fi
10887 else
10888 found_dir=
10889 found_la=
10890 found_so=
10891 found_a=
10892 if test $use_additional = yes; then
10893 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10894 found_dir="$additional_libdir"
10895 found_so="$additional_libdir/lib$name.$shlibext"
10896 if test -f "$additional_libdir/lib$name.la"; then
10897 found_la="$additional_libdir/lib$name.la"
10898 fi
10899 else
10900 if test -f "$additional_libdir/lib$name.$libext"; then
10901 found_dir="$additional_libdir"
10902 found_a="$additional_libdir/lib$name.$libext"
10903 if test -f "$additional_libdir/lib$name.la"; then
10904 found_la="$additional_libdir/lib$name.la"
10905 fi
10906 fi
10907 fi
10908 fi
10909 if test "X$found_dir" = "X"; then
10910 for x in $LDFLAGS $LTLIBEXPAT; do
10911
10912 acl_save_prefix="$prefix"
10913 prefix="$acl_final_prefix"
10914 acl_save_exec_prefix="$exec_prefix"
10915 exec_prefix="$acl_final_exec_prefix"
10916 eval x=\"$x\"
10917 exec_prefix="$acl_save_exec_prefix"
10918 prefix="$acl_save_prefix"
10919
10920 case "$x" in
10921 -L*)
10922 dir=`echo "X$x" | sed -e 's/^X-L//'`
10923 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10924 found_dir="$dir"
10925 found_so="$dir/lib$name.$shlibext"
10926 if test -f "$dir/lib$name.la"; then
10927 found_la="$dir/lib$name.la"
10928 fi
10929 else
10930 if test -f "$dir/lib$name.$libext"; then
10931 found_dir="$dir"
10932 found_a="$dir/lib$name.$libext"
10933 if test -f "$dir/lib$name.la"; then
10934 found_la="$dir/lib$name.la"
10935 fi
10936 fi
10937 fi
10938 ;;
10939 esac
10940 if test "X$found_dir" != "X"; then
10941 break
10942 fi
10943 done
10944 fi
10945 if test "X$found_dir" != "X"; then
10946 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10947 if test "X$found_so" != "X"; then
10948 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10949 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10950 else
10951 haveit=
10952 for x in $ltrpathdirs; do
10953 if test "X$x" = "X$found_dir"; then
10954 haveit=yes
10955 break
10956 fi
10957 done
10958 if test -z "$haveit"; then
10959 ltrpathdirs="$ltrpathdirs $found_dir"
10960 fi
10961 if test "$hardcode_direct" = yes; then
10962 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10963 else
10964 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10965 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10966 haveit=
10967 for x in $rpathdirs; do
10968 if test "X$x" = "X$found_dir"; then
10969 haveit=yes
10970 break
10971 fi
10972 done
10973 if test -z "$haveit"; then
10974 rpathdirs="$rpathdirs $found_dir"
10975 fi
10976 else
10977 haveit=
10978 for x in $LDFLAGS $LIBEXPAT; do
10979
10980 acl_save_prefix="$prefix"
10981 prefix="$acl_final_prefix"
10982 acl_save_exec_prefix="$exec_prefix"
10983 exec_prefix="$acl_final_exec_prefix"
10984 eval x=\"$x\"
10985 exec_prefix="$acl_save_exec_prefix"
10986 prefix="$acl_save_prefix"
10987
10988 if test "X$x" = "X-L$found_dir"; then
10989 haveit=yes
10990 break
10991 fi
10992 done
10993 if test -z "$haveit"; then
10994 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10995 fi
10996 if test "$hardcode_minus_L" != no; then
10997 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10998 else
10999 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11000 fi
11001 fi
11002 fi
11003 fi
11004 else
11005 if test "X$found_a" != "X"; then
11006 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
11007 else
11008 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
11009 fi
11010 fi
11011 additional_includedir=
11012 case "$found_dir" in
11013 */lib | */lib/)
11014 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11015 additional_includedir="$basedir/include"
11016 ;;
11017 esac
11018 if test "X$additional_includedir" != "X"; then
11019 if test "X$additional_includedir" != "X/usr/include"; then
11020 haveit=
11021 if test "X$additional_includedir" = "X/usr/local/include"; then
11022 if test -n "$GCC"; then
11023 case $host_os in
11024 linux*) haveit=yes;;
11025 esac
11026 fi
11027 fi
11028 if test -z "$haveit"; then
11029 for x in $CPPFLAGS $INCEXPAT; do
11030
11031 acl_save_prefix="$prefix"
11032 prefix="$acl_final_prefix"
11033 acl_save_exec_prefix="$exec_prefix"
11034 exec_prefix="$acl_final_exec_prefix"
11035 eval x=\"$x\"
11036 exec_prefix="$acl_save_exec_prefix"
11037 prefix="$acl_save_prefix"
11038
11039 if test "X$x" = "X-I$additional_includedir"; then
11040 haveit=yes
11041 break
11042 fi
11043 done
11044 if test -z "$haveit"; then
11045 if test -d "$additional_includedir"; then
11046 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
11047 fi
11048 fi
11049 fi
11050 fi
11051 fi
11052 if test -n "$found_la"; then
11053 save_libdir="$libdir"
11054 case "$found_la" in
11055 */* | *\\*) . "$found_la" ;;
11056 *) . "./$found_la" ;;
11057 esac
11058 libdir="$save_libdir"
11059 for dep in $dependency_libs; do
11060 case "$dep" in
11061 -L*)
11062 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11063 if test "X$additional_libdir" != "X/usr/lib"; then
11064 haveit=
11065 if test "X$additional_libdir" = "X/usr/local/lib"; then
11066 if test -n "$GCC"; then
11067 case $host_os in
11068 linux*) haveit=yes;;
11069 esac
11070 fi
11071 fi
11072 if test -z "$haveit"; then
11073 haveit=
11074 for x in $LDFLAGS $LIBEXPAT; do
11075
11076 acl_save_prefix="$prefix"
11077 prefix="$acl_final_prefix"
11078 acl_save_exec_prefix="$exec_prefix"
11079 exec_prefix="$acl_final_exec_prefix"
11080 eval x=\"$x\"
11081 exec_prefix="$acl_save_exec_prefix"
11082 prefix="$acl_save_prefix"
11083
11084 if test "X$x" = "X-L$additional_libdir"; then
11085 haveit=yes
11086 break
11087 fi
11088 done
11089 if test -z "$haveit"; then
11090 if test -d "$additional_libdir"; then
11091 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
11092 fi
11093 fi
11094 haveit=
11095 for x in $LDFLAGS $LTLIBEXPAT; do
11096
11097 acl_save_prefix="$prefix"
11098 prefix="$acl_final_prefix"
11099 acl_save_exec_prefix="$exec_prefix"
11100 exec_prefix="$acl_final_exec_prefix"
11101 eval x=\"$x\"
11102 exec_prefix="$acl_save_exec_prefix"
11103 prefix="$acl_save_prefix"
11104
11105 if test "X$x" = "X-L$additional_libdir"; then
11106 haveit=yes
11107 break
11108 fi
11109 done
11110 if test -z "$haveit"; then
11111 if test -d "$additional_libdir"; then
11112 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
11113 fi
11114 fi
11115 fi
11116 fi
11117 ;;
11118 -R*)
11119 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11120 if test "$enable_rpath" != no; then
11121 haveit=
11122 for x in $rpathdirs; do
11123 if test "X$x" = "X$dir"; then
11124 haveit=yes
11125 break
11126 fi
11127 done
11128 if test -z "$haveit"; then
11129 rpathdirs="$rpathdirs $dir"
11130 fi
11131 haveit=
11132 for x in $ltrpathdirs; do
11133 if test "X$x" = "X$dir"; then
11134 haveit=yes
11135 break
11136 fi
11137 done
11138 if test -z "$haveit"; then
11139 ltrpathdirs="$ltrpathdirs $dir"
11140 fi
11141 fi
11142 ;;
11143 -l*)
11144 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11145 ;;
11146 *.la)
11147 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11148 ;;
11149 *)
11150 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
11151 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
11152 ;;
11153 esac
11154 done
11155 fi
11156 else
11157 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11158 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
11159 fi
11160 fi
11161 fi
11162 done
11163 done
11164 if test "X$rpathdirs" != "X"; then
11165 if test -n "$hardcode_libdir_separator"; then
11166 alldirs=
11167 for found_dir in $rpathdirs; do
11168 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11169 done
11170 acl_save_libdir="$libdir"
11171 libdir="$alldirs"
11172 eval flag=\"$hardcode_libdir_flag_spec\"
11173 libdir="$acl_save_libdir"
11174 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11175 else
11176 for found_dir in $rpathdirs; do
11177 acl_save_libdir="$libdir"
11178 libdir="$found_dir"
11179 eval flag=\"$hardcode_libdir_flag_spec\"
11180 libdir="$acl_save_libdir"
11181 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11182 done
11183 fi
11184 fi
11185 if test "X$ltrpathdirs" != "X"; then
11186 for found_dir in $ltrpathdirs; do
11187 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
11188 done
11189 fi
11190
11191
11192 ac_save_CPPFLAGS="$CPPFLAGS"
11193
11194 for element in $INCEXPAT; do
11195 haveit=
11196 for x in $CPPFLAGS; do
11197
11198 acl_save_prefix="$prefix"
11199 prefix="$acl_final_prefix"
11200 acl_save_exec_prefix="$exec_prefix"
11201 exec_prefix="$acl_final_exec_prefix"
11202 eval x=\"$x\"
11203 exec_prefix="$acl_save_exec_prefix"
11204 prefix="$acl_save_prefix"
11205
11206 if test "X$x" = "X$element"; then
11207 haveit=yes
11208 break
11209 fi
11210 done
11211 if test -z "$haveit"; then
11212 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11213 fi
11214 done
11215
11216
11217 echo "$as_me:$LINENO: checking for libexpat" >&5
11218echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11219if test "${ac_cv_libexpat+set}" = set; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11221else
11222
11223 ac_save_LIBS="$LIBS"
11224 LIBS="$LIBS $LIBEXPAT"
11225 cat >conftest.$ac_ext <<_ACEOF
11226/* confdefs.h. */
11227_ACEOF
11228cat confdefs.h >>conftest.$ac_ext
11229cat >>conftest.$ac_ext <<_ACEOF
11230/* end confdefs.h. */
11231#include "expat.h"
11232int
11233main ()
11234{
11235XML_Parser p = XML_ParserCreate (0);
11236 ;
11237 return 0;
11238}
11239_ACEOF
11240rm -f conftest.$ac_objext conftest$ac_exeext
11241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11242 (eval $ac_link) 2>conftest.er1
11243 ac_status=$?
11244 grep -v '^ *+' conftest.er1 >conftest.err
11245 rm -f conftest.er1
11246 cat conftest.err >&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } &&
11249 { ac_try='test -z "$ac_c_werror_flag"
11250 || test ! -s conftest.err'
11251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252 (eval $ac_try) 2>&5
11253 ac_status=$?
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; } &&
11256 { ac_try='test -s conftest$ac_exeext'
11257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11258 (eval $ac_try) 2>&5
11259 ac_status=$?
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); }; }; then
11262 ac_cv_libexpat=yes
11263else
11264 echo "$as_me: failed program was:" >&5
11265sed 's/^/| /' conftest.$ac_ext >&5
11266
11267ac_cv_libexpat=no
11268fi
11269rm -f conftest.err conftest.$ac_objext \
11270 conftest$ac_exeext conftest.$ac_ext
11271 LIBS="$ac_save_LIBS"
11272
11273fi
11274echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11275echo "${ECHO_T}$ac_cv_libexpat" >&6
11276 if test "$ac_cv_libexpat" = yes; then
11277 HAVE_LIBEXPAT=yes
11278
11279cat >>confdefs.h <<\_ACEOF
11280#define HAVE_LIBEXPAT 1
11281_ACEOF
11282
11283 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11284echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11285 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11286echo "${ECHO_T}$LIBEXPAT" >&6
11287 else
11288 HAVE_LIBEXPAT=no
11289 CPPFLAGS="$ac_save_CPPFLAGS"
11290 LIBEXPAT=
11291 LTLIBEXPAT=
11292 fi
11293
11294
11295
11296
11297
11298
5c39566f
DJ
11299 if test "$HAVE_LIBEXPAT" != yes; then
11300 if test "$with_expat" = yes; then
11301 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11302echo "$as_me: error: expat is missing or unusable" >&2;}
11303 { (exit 1); exit 1; }; }
11304 else
11305 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11306echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11307 fi
11308 else
11309 save_LIBS=$LIBS
11310 LIBS="$LIBS $LIBEXPAT"
ca4ca11e
DJ
11311
11312for ac_func in XML_StopParser
11313do
11314as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11315echo "$as_me:$LINENO: checking for $ac_func" >&5
11316echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11317if eval "test \"\${$as_ac_var+set}\" = set"; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11319else
11320 cat >conftest.$ac_ext <<_ACEOF
11321/* confdefs.h. */
11322_ACEOF
11323cat confdefs.h >>conftest.$ac_ext
11324cat >>conftest.$ac_ext <<_ACEOF
11325/* end confdefs.h. */
11326/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11328#define $ac_func innocuous_$ac_func
11329
11330/* System header to define __stub macros and hopefully few prototypes,
11331 which can conflict with char $ac_func (); below.
11332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11333 <limits.h> exists even on freestanding compilers. */
11334
11335#ifdef __STDC__
11336# include <limits.h>
11337#else
11338# include <assert.h>
11339#endif
11340
11341#undef $ac_func
11342
11343/* Override any gcc2 internal prototype to avoid an error. */
11344#ifdef __cplusplus
11345extern "C"
11346{
11347#endif
11348/* We use char because int might match the return type of a gcc2
11349 builtin and then its argument prototype would still apply. */
11350char $ac_func ();
11351/* The GNU C library defines this for functions which it implements
11352 to always fail with ENOSYS. Some functions are actually named
11353 something starting with __ and the normal name is an alias. */
11354#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11355choke me
11356#else
11357char (*f) () = $ac_func;
11358#endif
11359#ifdef __cplusplus
11360}
11361#endif
11362
11363int
11364main ()
11365{
11366return f != $ac_func;
11367 ;
11368 return 0;
11369}
11370_ACEOF
11371rm -f conftest.$ac_objext conftest$ac_exeext
11372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11373 (eval $ac_link) 2>conftest.er1
11374 ac_status=$?
11375 grep -v '^ *+' conftest.er1 >conftest.err
11376 rm -f conftest.er1
11377 cat conftest.err >&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } &&
11380 { ac_try='test -z "$ac_c_werror_flag"
11381 || test ! -s conftest.err'
11382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383 (eval $ac_try) 2>&5
11384 ac_status=$?
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); }; } &&
11387 { ac_try='test -s conftest$ac_exeext'
11388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11389 (eval $ac_try) 2>&5
11390 ac_status=$?
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); }; }; then
11393 eval "$as_ac_var=yes"
11394else
11395 echo "$as_me: failed program was:" >&5
11396sed 's/^/| /' conftest.$ac_ext >&5
11397
11398eval "$as_ac_var=no"
11399fi
11400rm -f conftest.err conftest.$ac_objext \
11401 conftest$ac_exeext conftest.$ac_ext
11402fi
11403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11404echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11405if test `eval echo '${'$as_ac_var'}'` = yes; then
11406 cat >>confdefs.h <<_ACEOF
11407#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11408_ACEOF
11409
11410fi
11411done
11412
5c39566f
DJ
11413 LIBS=$save_LIBS
11414 fi
3841debe
DJ
11415fi
11416
d57a3c85
TJB
11417
11418
11419
11420# Check whether --with-python or --without-python was given.
11421if test "${with_python+set}" = set; then
11422 withval="$with_python"
11423
11424else
11425 with_python=auto
11426fi;
11427echo "$as_me:$LINENO: checking whether to use python" >&5
11428echo $ECHO_N "checking whether to use python... $ECHO_C" >&6
11429echo "$as_me:$LINENO: result: $with_python" >&5
11430echo "${ECHO_T}$with_python" >&6
11431
11432if test "${with_python}" = no; then
11433 { echo "$as_me:$LINENO: WARNING: python support disabled; some features may be unavailable." >&5
11434echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11435 have_libpython=no
11436else
11437 case "${with_python}" in
11438 yes | auto)
11439 # Leave as empty, use defaults.
11440 python_includes=
11441 python_libs=
11442 ;;
11443 /*)
11444 python_includes="-I${with_python}/include"
11445 python_libs="-L${with_python}/lib"
11446 ;;
11447 *)
11448 { { echo "$as_me:$LINENO: error: invalid value for --with-python" >&5
11449echo "$as_me: error: invalid value for --with-python" >&2;}
11450 { (exit 1); exit 1; }; }
11451 ;;
11452 esac
11453
11454 save_CPPFLAGS=$CPPFLAGS
11455 CPPFLAGS="$CPPFLAGS ${python_includes}"
11456 save_LIBS=$LIBS
11457 LIBS="$LIBS ${python_libs}"
11458 have_libpython=no
11459 if test "${have_libpython}" = no; then
11460
11461 version=python2.6
11462
11463
11464 HAVE_LIBPYTHON2_6=no
11465 echo "$as_me:$LINENO: checking for ${version}" >&5
11466echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11467 save_LIBS=$LIBS
11468 LIBS="$LIBS -l${version}"
11469 cat >conftest.$ac_ext <<_ACEOF
11470/* confdefs.h. */
11471_ACEOF
11472cat confdefs.h >>conftest.$ac_ext
11473cat >>conftest.$ac_ext <<_ACEOF
11474/* end confdefs.h. */
11475#include "${version}/Python.h"
11476int
11477main ()
11478{
11479Py_Initialize ();
11480 ;
11481 return 0;
11482}
11483_ACEOF
11484rm -f conftest.$ac_objext conftest$ac_exeext
11485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11486 (eval $ac_link) 2>conftest.er1
11487 ac_status=$?
11488 grep -v '^ *+' conftest.er1 >conftest.err
11489 rm -f conftest.er1
11490 cat conftest.err >&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); } &&
11493 { ac_try='test -z "$ac_c_werror_flag"
11494 || test ! -s conftest.err'
11495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496 (eval $ac_try) 2>&5
11497 ac_status=$?
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; } &&
11500 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11506 HAVE_LIBPYTHON2_6=yes
11507 have_libpython=yes
11508else
11509 echo "$as_me: failed program was:" >&5
11510sed 's/^/| /' conftest.$ac_ext >&5
11511
11512LIBS=$save_LIBS
11513fi
11514rm -f conftest.err conftest.$ac_objext \
11515 conftest$ac_exeext conftest.$ac_ext
11516 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_6" >&5
11517echo "${ECHO_T}$HAVE_LIBPYTHON2_6" >&6
11518
11519 if test "${HAVE_LIBPYTHON2_6}" = yes; then
11520
11521cat >>confdefs.h <<\_ACEOF
11522#define HAVE_LIBPYTHON2_6 1
11523_ACEOF
11524
11525 fi
11526 fi
11527 if test ${have_libpython} = no; then
11528
11529 version=python2.5
11530
11531
11532 HAVE_LIBPYTHON2_5=no
11533 echo "$as_me:$LINENO: checking for ${version}" >&5
11534echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11535 save_LIBS=$LIBS
11536 LIBS="$LIBS -l${version}"
11537 cat >conftest.$ac_ext <<_ACEOF
11538/* confdefs.h. */
11539_ACEOF
11540cat confdefs.h >>conftest.$ac_ext
11541cat >>conftest.$ac_ext <<_ACEOF
11542/* end confdefs.h. */
11543#include "${version}/Python.h"
11544int
11545main ()
11546{
11547Py_Initialize ();
11548 ;
11549 return 0;
11550}
11551_ACEOF
11552rm -f conftest.$ac_objext conftest$ac_exeext
11553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11554 (eval $ac_link) 2>conftest.er1
11555 ac_status=$?
11556 grep -v '^ *+' conftest.er1 >conftest.err
11557 rm -f conftest.er1
11558 cat conftest.err >&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); } &&
11561 { ac_try='test -z "$ac_c_werror_flag"
11562 || test ! -s conftest.err'
11563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564 (eval $ac_try) 2>&5
11565 ac_status=$?
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; } &&
11568 { ac_try='test -s conftest$ac_exeext'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11571 ac_status=$?
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; }; then
11574 HAVE_LIBPYTHON2_5=yes
11575 have_libpython=yes
11576else
11577 echo "$as_me: failed program was:" >&5
11578sed 's/^/| /' conftest.$ac_ext >&5
11579
11580LIBS=$save_LIBS
11581fi
11582rm -f conftest.err conftest.$ac_objext \
11583 conftest$ac_exeext conftest.$ac_ext
11584 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_5" >&5
11585echo "${ECHO_T}$HAVE_LIBPYTHON2_5" >&6
11586
11587 if test "${HAVE_LIBPYTHON2_5}" = yes; then
11588
11589cat >>confdefs.h <<\_ACEOF
11590#define HAVE_LIBPYTHON2_5 1
11591_ACEOF
11592
11593 fi
11594 fi
11595 if test ${have_libpython} = no; then
11596
11597 version=python2.4
11598
11599
11600 HAVE_LIBPYTHON2_4=no
11601 echo "$as_me:$LINENO: checking for ${version}" >&5
11602echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11603 save_LIBS=$LIBS
11604 LIBS="$LIBS -l${version}"
11605 cat >conftest.$ac_ext <<_ACEOF
11606/* confdefs.h. */
11607_ACEOF
11608cat confdefs.h >>conftest.$ac_ext
11609cat >>conftest.$ac_ext <<_ACEOF
11610/* end confdefs.h. */
11611#include "${version}/Python.h"
11612int
11613main ()
11614{
11615Py_Initialize ();
11616 ;
11617 return 0;
11618}
11619_ACEOF
11620rm -f conftest.$ac_objext conftest$ac_exeext
11621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11622 (eval $ac_link) 2>conftest.er1
11623 ac_status=$?
11624 grep -v '^ *+' conftest.er1 >conftest.err
11625 rm -f conftest.er1
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } &&
11629 { ac_try='test -z "$ac_c_werror_flag"
11630 || test ! -s conftest.err'
11631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632 (eval $ac_try) 2>&5
11633 ac_status=$?
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; } &&
11636 { ac_try='test -s conftest$ac_exeext'
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; }; then
11642 HAVE_LIBPYTHON2_4=yes
11643 have_libpython=yes
11644else
11645 echo "$as_me: failed program was:" >&5
11646sed 's/^/| /' conftest.$ac_ext >&5
11647
11648LIBS=$save_LIBS
11649fi
11650rm -f conftest.err conftest.$ac_objext \
11651 conftest$ac_exeext conftest.$ac_ext
11652 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_4" >&5
11653echo "${ECHO_T}$HAVE_LIBPYTHON2_4" >&6
11654
11655 if test "${HAVE_LIBPYTHON2_4}" = yes; then
11656
11657cat >>confdefs.h <<\_ACEOF
11658#define HAVE_LIBPYTHON2_4 1
11659_ACEOF
11660
11661 fi
11662 fi
11663 if test ${have_libpython} = no; then
11664 case "${with_python}" in
11665 yes)
11666 { { echo "$as_me:$LINENO: error: python is missing or unusable" >&5
11667echo "$as_me: error: python is missing or unusable" >&2;}
11668 { (exit 1); exit 1; }; }
11669 ;;
11670 auto)
11671 { echo "$as_me:$LINENO: WARNING: python is missing or unusable; some features may be unavailable." >&5
11672echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11673 ;;
11674 *)
11675 { { echo "$as_me:$LINENO: error: no usable python found at ${with_python}" >&5
11676echo "$as_me: error: no usable python found at ${with_python}" >&2;}
11677 { (exit 1); exit 1; }; }
11678 ;;
11679 esac
11680 CPPFLAGS=$save_CPPFLAGS
11681 LIBS=$save_LIBS
11682 fi
11683fi
11684
11685if test "${have_libpython}" = yes; then
11686
11687cat >>confdefs.h <<\_ACEOF
11688#define HAVE_PYTHON 1
11689_ACEOF
11690
11691 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11692 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11693 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11694 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11695
11696 # Flags needed to compile Python code (taken from python-config --cflags).
11697 # We cannot call python-config directly because it will output whatever was
11698 # used when compiling the Python interpreter itself, including flags which
11699 # would make the python-related objects be compiled differently from the
11700 # rest of GDB (e.g., -O2 and -fPIC).
11701 if test "${GCC}" = yes; then
11702 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
11703 fi
11704
11705 if test "x${tentative_python_cflags}" != x; then
11706 echo "$as_me:$LINENO: checking compiler flags for python code" >&5
11707echo $ECHO_N "checking compiler flags for python code... $ECHO_C" >&6
11708 for flag in ${tentative_python_cflags}; do
11709 # Check that the compiler accepts it
11710 saved_CFLAGS="$CFLAGS"
11711 CFLAGS="$CFLAGS $flag"
11712 cat >conftest.$ac_ext <<_ACEOF
11713/* confdefs.h. */
11714_ACEOF
11715cat confdefs.h >>conftest.$ac_ext
11716cat >>conftest.$ac_ext <<_ACEOF
11717/* end confdefs.h. */
11718
11719int
11720main ()
11721{
11722
11723 ;
11724 return 0;
11725}
11726_ACEOF
11727rm -f conftest.$ac_objext
11728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11729 (eval $ac_compile) 2>conftest.er1
11730 ac_status=$?
11731 grep -v '^ *+' conftest.er1 >conftest.err
11732 rm -f conftest.er1
11733 cat conftest.err >&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } &&
11736 { ac_try='test -z "$ac_c_werror_flag"
11737 || test ! -s conftest.err'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11740 ac_status=$?
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; } &&
11743 { ac_try='test -s conftest.$ac_objext'
11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745 (eval $ac_try) 2>&5
11746 ac_status=$?
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; }; then
11749 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
11750else
11751 echo "$as_me: failed program was:" >&5
11752sed 's/^/| /' conftest.$ac_ext >&5
11753
11754fi
11755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11756 CFLAGS="$saved_CFLAGS"
11757 done
11758 echo "$as_me:$LINENO: result: ${PYTHON_CFLAGS}" >&5
11759echo "${ECHO_T}${PYTHON_CFLAGS}" >&6
11760 fi
11761else
a08702d6 11762 # Even if Python support is not compiled in, we need to have these files
d57a3c85 11763 # included in order to recognize the GDB command "python".
a08702d6
TJB
11764 CONFIG_OBS="$CONFIG_OBS python.o python-value.o"
11765 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/python-value.c"
d57a3c85
TJB
11766fi
11767
11768
bec39cab
AC
11769# ------------------------- #
11770# Checks for header files. #
11771# ------------------------- #
8ee53726 11772
0e5d83e3 11773
bec39cab
AC
11774
11775
11776
11777
11778ac_header_dirent=no
11779for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11780 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
b4e70030
JB
11781echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11782echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11783if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11784 echo $ECHO_N "(cached) $ECHO_C" >&6
11785else
11786 cat >conftest.$ac_ext <<_ACEOF
11787/* confdefs.h. */
11788_ACEOF
11789cat confdefs.h >>conftest.$ac_ext
11790cat >>conftest.$ac_ext <<_ACEOF
11791/* end confdefs.h. */
11792#include <sys/types.h>
0e5d83e3 11793#include <$ac_hdr>
bec39cab
AC
11794
11795int
11796main ()
11797{
11798if ((DIR *) 0)
11799return 0;
11800 ;
11801 return 0;
11802}
11803_ACEOF
11804rm -f conftest.$ac_objext
11805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11806 (eval $ac_compile) 2>conftest.er1
11807 ac_status=$?
11808 grep -v '^ *+' conftest.er1 >conftest.err
11809 rm -f conftest.er1
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } &&
b4e70030
JB
11813 { ac_try='test -z "$ac_c_werror_flag"
11814 || test ! -s conftest.err'
bec39cab
AC
11815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816 (eval $ac_try) 2>&5
11817 ac_status=$?
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; } &&
11820 { ac_try='test -s conftest.$ac_objext'
11821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822 (eval $ac_try) 2>&5
11823 ac_status=$?
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; }; then
11826 eval "$as_ac_Header=yes"
11827else
11828 echo "$as_me: failed program was:" >&5
11829sed 's/^/| /' conftest.$ac_ext >&5
11830
b4e70030 11831eval "$as_ac_Header=no"
bec39cab
AC
11832fi
11833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11834fi
b4e70030
JB
11835echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11836echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11837if test `eval echo '${'$as_ac_Header'}'` = yes; then
11838 cat >>confdefs.h <<_ACEOF
11839#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11840_ACEOF
11841
11842ac_header_dirent=$ac_hdr; break
0e5d83e3 11843fi
0e5d83e3 11844
bec39cab
AC
11845done
11846# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11847if test $ac_header_dirent = dirent.h; then
b4e70030
JB
11848 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11849echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
11850if test "${ac_cv_search_opendir+set}" = set; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11852else
11853 ac_func_search_save_LIBS=$LIBS
b4e70030 11854ac_cv_search_opendir=no
bec39cab
AC
11855cat >conftest.$ac_ext <<_ACEOF
11856/* confdefs.h. */
11857_ACEOF
11858cat confdefs.h >>conftest.$ac_ext
11859cat >>conftest.$ac_ext <<_ACEOF
11860/* end confdefs.h. */
0e5d83e3 11861
b4e70030 11862/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
11863#ifdef __cplusplus
11864extern "C"
11865#endif
b4e70030
JB
11866/* We use char because int might match the return type of a gcc2
11867 builtin and then its argument prototype would still apply. */
bec39cab
AC
11868char opendir ();
11869int
11870main ()
11871{
b4e70030 11872opendir ();
bec39cab
AC
11873 ;
11874 return 0;
11875}
11876_ACEOF
b4e70030 11877rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
11878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11879 (eval $ac_link) 2>conftest.er1
11880 ac_status=$?
11881 grep -v '^ *+' conftest.er1 >conftest.err
11882 rm -f conftest.er1
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
b4e70030
JB
11886 { ac_try='test -z "$ac_c_werror_flag"
11887 || test ! -s conftest.err'
bec39cab
AC
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try='test -s conftest$ac_exeext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
b4e70030 11899 ac_cv_search_opendir="none required"
bec39cab
AC
11900else
11901 echo "$as_me: failed program was:" >&5
11902sed 's/^/| /' conftest.$ac_ext >&5
11903
11904fi
bec39cab 11905rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
11906 conftest$ac_exeext conftest.$ac_ext
11907if test "$ac_cv_search_opendir" = no; then
11908 for ac_lib in dir; do
11909 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11910 cat >conftest.$ac_ext <<_ACEOF
11911/* confdefs.h. */
11912_ACEOF
11913cat confdefs.h >>conftest.$ac_ext
11914cat >>conftest.$ac_ext <<_ACEOF
11915/* end confdefs.h. */
11916
11917/* Override any gcc2 internal prototype to avoid an error. */
11918#ifdef __cplusplus
11919extern "C"
11920#endif
11921/* We use char because int might match the return type of a gcc2
11922 builtin and then its argument prototype would still apply. */
11923char opendir ();
11924int
11925main ()
11926{
11927opendir ();
11928 ;
11929 return 0;
11930}
11931_ACEOF
11932rm -f conftest.$ac_objext conftest$ac_exeext
11933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11934 (eval $ac_link) 2>conftest.er1
11935 ac_status=$?
11936 grep -v '^ *+' conftest.er1 >conftest.err
11937 rm -f conftest.er1
11938 cat conftest.err >&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try='test -z "$ac_c_werror_flag"
11942 || test ! -s conftest.err'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11945 ac_status=$?
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; } &&
11948 { ac_try='test -s conftest$ac_exeext'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11951 ac_status=$?
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; }; then
11954 ac_cv_search_opendir="-l$ac_lib"
11955break
4e8d927d 11956else
b4e70030
JB
11957 echo "$as_me: failed program was:" >&5
11958sed 's/^/| /' conftest.$ac_ext >&5
11959
11960fi
11961rm -f conftest.err conftest.$ac_objext \
11962 conftest$ac_exeext conftest.$ac_ext
11963 done
0e5d83e3 11964fi
bec39cab 11965LIBS=$ac_func_search_save_LIBS
0e5d83e3 11966fi
b4e70030
JB
11967echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11968echo "${ECHO_T}$ac_cv_search_opendir" >&6
11969if test "$ac_cv_search_opendir" != no; then
11970 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 11971
0e5d83e3
JJ
11972fi
11973
d28f9cdf 11974else
b4e70030
JB
11975 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11976echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
11977if test "${ac_cv_search_opendir+set}" = set; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11979else
11980 ac_func_search_save_LIBS=$LIBS
b4e70030 11981ac_cv_search_opendir=no
bec39cab
AC
11982cat >conftest.$ac_ext <<_ACEOF
11983/* confdefs.h. */
11984_ACEOF
11985cat confdefs.h >>conftest.$ac_ext
11986cat >>conftest.$ac_ext <<_ACEOF
11987/* end confdefs.h. */
d28f9cdf 11988
b4e70030 11989/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
11990#ifdef __cplusplus
11991extern "C"
d28f9cdf 11992#endif
b4e70030
JB
11993/* We use char because int might match the return type of a gcc2
11994 builtin and then its argument prototype would still apply. */
bec39cab
AC
11995char opendir ();
11996int
11997main ()
11998{
b4e70030 11999opendir ();
bec39cab
AC
12000 ;
12001 return 0;
12002}
12003_ACEOF
b4e70030 12004rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
12005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12006 (eval $ac_link) 2>conftest.er1
12007 ac_status=$?
12008 grep -v '^ *+' conftest.er1 >conftest.err
12009 rm -f conftest.er1
12010 cat conftest.err >&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } &&
b4e70030
JB
12013 { ac_try='test -z "$ac_c_werror_flag"
12014 || test ! -s conftest.err'
bec39cab
AC
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; } &&
12020 { ac_try='test -s conftest$ac_exeext'
12021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
b4e70030 12026 ac_cv_search_opendir="none required"
d28f9cdf 12027else
bec39cab
AC
12028 echo "$as_me: failed program was:" >&5
12029sed 's/^/| /' conftest.$ac_ext >&5
12030
d28f9cdf 12031fi
bec39cab 12032rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
12033 conftest$ac_exeext conftest.$ac_ext
12034if test "$ac_cv_search_opendir" = no; then
12035 for ac_lib in x; do
12036 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12037 cat >conftest.$ac_ext <<_ACEOF
12038/* confdefs.h. */
12039_ACEOF
12040cat confdefs.h >>conftest.$ac_ext
12041cat >>conftest.$ac_ext <<_ACEOF
12042/* end confdefs.h. */
12043
12044/* Override any gcc2 internal prototype to avoid an error. */
12045#ifdef __cplusplus
12046extern "C"
12047#endif
12048/* We use char because int might match the return type of a gcc2
12049 builtin and then its argument prototype would still apply. */
12050char opendir ();
12051int
12052main ()
12053{
12054opendir ();
12055 ;
12056 return 0;
12057}
12058_ACEOF
12059rm -f conftest.$ac_objext conftest$ac_exeext
12060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12061 (eval $ac_link) 2>conftest.er1
12062 ac_status=$?
12063 grep -v '^ *+' conftest.er1 >conftest.err
12064 rm -f conftest.er1
12065 cat conftest.err >&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } &&
12068 { ac_try='test -z "$ac_c_werror_flag"
12069 || test ! -s conftest.err'
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12072 ac_status=$?
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; } &&
12075 { ac_try='test -s conftest$ac_exeext'
12076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077 (eval $ac_try) 2>&5
12078 ac_status=$?
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; }; then
12081 ac_cv_search_opendir="-l$ac_lib"
12082break
4e8d927d 12083else
b4e70030
JB
12084 echo "$as_me: failed program was:" >&5
12085sed 's/^/| /' conftest.$ac_ext >&5
12086
12087fi
12088rm -f conftest.err conftest.$ac_objext \
12089 conftest$ac_exeext conftest.$ac_ext
12090 done
bec39cab
AC
12091fi
12092LIBS=$ac_func_search_save_LIBS
d28f9cdf 12093fi
b4e70030
JB
12094echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12095echo "${ECHO_T}$ac_cv_search_opendir" >&6
12096if test "$ac_cv_search_opendir" != no; then
12097 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 12098
d28f9cdf
DJ
12099fi
12100
bec39cab 12101fi
b0b1c2c0 12102
b4e70030
JB
12103echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12104echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
bec39cab
AC
12105if test "${ac_cv_header_stat_broken+set}" = set; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 12107else
bec39cab
AC
12108 cat >conftest.$ac_ext <<_ACEOF
12109/* confdefs.h. */
12110_ACEOF
12111cat confdefs.h >>conftest.$ac_ext
12112cat >>conftest.$ac_ext <<_ACEOF
12113/* end confdefs.h. */
12114#include <sys/types.h>
12115#include <sys/stat.h>
b0b1c2c0 12116
b4e70030 12117#if defined(S_ISBLK) && defined(S_IFDIR)
bec39cab
AC
12118# if S_ISBLK (S_IFDIR)
12119You lose.
12120# endif
12121#endif
b0b1c2c0 12122
b4e70030 12123#if defined(S_ISBLK) && defined(S_IFCHR)
bec39cab
AC
12124# if S_ISBLK (S_IFCHR)
12125You lose.
12126# endif
12127#endif
d28f9cdf 12128
b4e70030 12129#if defined(S_ISLNK) && defined(S_IFREG)
bec39cab
AC
12130# if S_ISLNK (S_IFREG)
12131You lose.
12132# endif
12133#endif
d28f9cdf 12134
b4e70030 12135#if defined(S_ISSOCK) && defined(S_IFREG)
bec39cab
AC
12136# if S_ISSOCK (S_IFREG)
12137You lose.
12138# endif
12139#endif
12140
12141_ACEOF
12142if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12143 $EGREP "You lose" >/dev/null 2>&1; then
12144 ac_cv_header_stat_broken=yes
d28f9cdf 12145else
bec39cab 12146 ac_cv_header_stat_broken=no
d28f9cdf
DJ
12147fi
12148rm -f conftest*
d28f9cdf 12149
d28f9cdf 12150fi
b4e70030
JB
12151echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12152echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
bec39cab 12153if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 12154
bec39cab
AC
12155cat >>confdefs.h <<\_ACEOF
12156#define STAT_MACROS_BROKEN 1
12157_ACEOF
8bb2c122 12158
7a292a7a 12159fi
bec39cab 12160
b4e70030
JB
12161echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12162echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
bec39cab
AC
12163if test "${ac_cv_header_stdc+set}" = set; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 12165else
bec39cab
AC
12166 cat >conftest.$ac_ext <<_ACEOF
12167/* confdefs.h. */
12168_ACEOF
12169cat confdefs.h >>conftest.$ac_ext
12170cat >>conftest.$ac_ext <<_ACEOF
12171/* end confdefs.h. */
12172#include <stdlib.h>
12173#include <stdarg.h>
12174#include <string.h>
12175#include <float.h>
7a292a7a 12176
bec39cab
AC
12177int
12178main ()
12179{
7a292a7a 12180
bec39cab
AC
12181 ;
12182 return 0;
12183}
12184_ACEOF
12185rm -f conftest.$ac_objext
12186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12187 (eval $ac_compile) 2>conftest.er1
12188 ac_status=$?
12189 grep -v '^ *+' conftest.er1 >conftest.err
12190 rm -f conftest.er1
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } &&
b4e70030
JB
12194 { ac_try='test -z "$ac_c_werror_flag"
12195 || test ! -s conftest.err'
bec39cab
AC
12196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12198 ac_status=$?
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); }; } &&
12201 { ac_try='test -s conftest.$ac_objext'
12202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203 (eval $ac_try) 2>&5
12204 ac_status=$?
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; }; then
12207 ac_cv_header_stdc=yes
c906108c 12208else
bec39cab
AC
12209 echo "$as_me: failed program was:" >&5
12210sed 's/^/| /' conftest.$ac_ext >&5
c906108c 12211
b4e70030 12212ac_cv_header_stdc=no
c906108c 12213fi
bec39cab 12214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 12215
bec39cab
AC
12216if test $ac_cv_header_stdc = yes; then
12217 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12218 cat >conftest.$ac_ext <<_ACEOF
12219/* confdefs.h. */
12220_ACEOF
12221cat confdefs.h >>conftest.$ac_ext
12222cat >>conftest.$ac_ext <<_ACEOF
12223/* end confdefs.h. */
12224#include <string.h>
c906108c 12225
bec39cab
AC
12226_ACEOF
12227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12228 $EGREP "memchr" >/dev/null 2>&1; then
12229 :
8bb2c122 12230else
bec39cab 12231 ac_cv_header_stdc=no
8bb2c122 12232fi
bec39cab
AC
12233rm -f conftest*
12234
c906108c
SS
12235fi
12236
bec39cab
AC
12237if test $ac_cv_header_stdc = yes; then
12238 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12239 cat >conftest.$ac_ext <<_ACEOF
12240/* confdefs.h. */
12241_ACEOF
12242cat confdefs.h >>conftest.$ac_ext
12243cat >>conftest.$ac_ext <<_ACEOF
12244/* end confdefs.h. */
12245#include <stdlib.h>
12246
12247_ACEOF
12248if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12249 $EGREP "free" >/dev/null 2>&1; then
12250 :
c906108c 12251else
bec39cab 12252 ac_cv_header_stdc=no
c906108c 12253fi
bec39cab
AC
12254rm -f conftest*
12255
c906108c
SS
12256fi
12257
bec39cab
AC
12258if test $ac_cv_header_stdc = yes; then
12259 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12260 if test "$cross_compiling" = yes; then
12261 :
c906108c 12262else
bec39cab
AC
12263 cat >conftest.$ac_ext <<_ACEOF
12264/* confdefs.h. */
12265_ACEOF
12266cat confdefs.h >>conftest.$ac_ext
12267cat >>conftest.$ac_ext <<_ACEOF
12268/* end confdefs.h. */
12269#include <ctype.h>
12270#if ((' ' & 0x0FF) == 0x020)
12271# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12272# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12273#else
12274# define ISLOWER(c) \
12275 (('a' <= (c) && (c) <= 'i') \
12276 || ('j' <= (c) && (c) <= 'r') \
12277 || ('s' <= (c) && (c) <= 'z'))
12278# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12279#endif
12280
12281#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12282int
12283main ()
12284{
12285 int i;
12286 for (i = 0; i < 256; i++)
12287 if (XOR (islower (i), ISLOWER (i))
12288 || toupper (i) != TOUPPER (i))
b4e70030
JB
12289 exit(2);
12290 exit (0);
bec39cab
AC
12291}
12292_ACEOF
12293rm -f conftest$ac_exeext
12294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12295 (eval $ac_link) 2>&5
12296 ac_status=$?
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300 (eval $ac_try) 2>&5
12301 ac_status=$?
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; }; then
12304 :
12305else
12306 echo "$as_me: program exited with status $ac_status" >&5
12307echo "$as_me: failed program was:" >&5
12308sed 's/^/| /' conftest.$ac_ext >&5
12309
12310( exit $ac_status )
12311ac_cv_header_stdc=no
c906108c 12312fi
b4e70030 12313rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 12314fi
c906108c 12315fi
bec39cab 12316fi
b4e70030
JB
12317echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12318echo "${ECHO_T}$ac_cv_header_stdc" >&6
bec39cab 12319if test $ac_cv_header_stdc = yes; then
c906108c 12320
bec39cab
AC
12321cat >>confdefs.h <<\_ACEOF
12322#define STDC_HEADERS 1
12323_ACEOF
c906108c 12324
bec39cab 12325fi
8bb2c122 12326
bec39cab 12327
7cb9022a 12328for ac_header in nlist.h
bec39cab
AC
12329do
12330as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12331if eval "test \"\${$as_ac_Header+set}\" = set"; then
12332 echo "$as_me:$LINENO: checking for $ac_header" >&5
12333echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12334if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12335 echo $ECHO_N "(cached) $ECHO_C" >&6
12336fi
b4e70030
JB
12337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12338echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12339else
12340 # Is the header compilable?
b4e70030
JB
12341echo "$as_me:$LINENO: checking $ac_header usability" >&5
12342echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12343cat >conftest.$ac_ext <<_ACEOF
12344/* confdefs.h. */
12345_ACEOF
12346cat confdefs.h >>conftest.$ac_ext
12347cat >>conftest.$ac_ext <<_ACEOF
12348/* end confdefs.h. */
12349$ac_includes_default
12350#include <$ac_header>
12351_ACEOF
12352rm -f conftest.$ac_objext
12353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12354 (eval $ac_compile) 2>conftest.er1
12355 ac_status=$?
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
b4e70030
JB
12361 { ac_try='test -z "$ac_c_werror_flag"
12362 || test ! -s conftest.err'
bec39cab
AC
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest.$ac_objext'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 ac_header_compiler=yes
12375else
12376 echo "$as_me: failed program was:" >&5
12377sed 's/^/| /' conftest.$ac_ext >&5
12378
b4e70030 12379ac_header_compiler=no
bec39cab
AC
12380fi
12381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12382echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12383echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12384
12385# Is the header present?
b4e70030
JB
12386echo "$as_me:$LINENO: checking $ac_header presence" >&5
12387echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12388cat >conftest.$ac_ext <<_ACEOF
12389/* confdefs.h. */
12390_ACEOF
12391cat confdefs.h >>conftest.$ac_ext
12392cat >>conftest.$ac_ext <<_ACEOF
12393/* end confdefs.h. */
12394#include <$ac_header>
12395_ACEOF
12396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12398 ac_status=$?
12399 grep -v '^ *+' conftest.er1 >conftest.err
12400 rm -f conftest.er1
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } >/dev/null; then
12404 if test -s conftest.err; then
12405 ac_cpp_err=$ac_c_preproc_warn_flag
12406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12407 else
12408 ac_cpp_err=
12409 fi
c906108c 12410else
bec39cab 12411 ac_cpp_err=yes
c906108c 12412fi
bec39cab
AC
12413if test -z "$ac_cpp_err"; then
12414 ac_header_preproc=yes
c906108c 12415else
bec39cab
AC
12416 echo "$as_me: failed program was:" >&5
12417sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 12418
bec39cab
AC
12419 ac_header_preproc=no
12420fi
12421rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12422echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12423echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 12424
bec39cab
AC
12425# So? What about this header?
12426case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12427 yes:no: )
12428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12429echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12431echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12432 ac_header_preproc=yes
12433 ;;
12434 no:yes:* )
12435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12436echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12438echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12440echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12442echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12444echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12446echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12447 (
12448 cat <<\_ASBOX
12449## ------------------------------------------ ##
12450## Report this to the AC_PACKAGE_NAME lists. ##
12451## ------------------------------------------ ##
12452_ASBOX
12453 ) |
12454 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12455 ;;
12456esac
b4e70030
JB
12457echo "$as_me:$LINENO: checking for $ac_header" >&5
12458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12459if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12460 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 12461else
bec39cab 12462 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 12463fi
b4e70030
JB
12464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12465echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12466
95ca63c4 12467fi
bec39cab
AC
12468if test `eval echo '${'$as_ac_Header'}'` = yes; then
12469 cat >>confdefs.h <<_ACEOF
12470#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12471_ACEOF
12472
95ca63c4
CF
12473fi
12474
bec39cab 12475done
95ca63c4
CF
12476
12477
7cb9022a 12478for ac_header in link.h
bec39cab
AC
12479do
12480as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12481echo "$as_me:$LINENO: checking for $ac_header" >&5
12482echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12483if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12484 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 12485else
7cb9022a 12486 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
12487/* confdefs.h. */
12488_ACEOF
12489cat confdefs.h >>conftest.$ac_ext
12490cat >>conftest.$ac_ext <<_ACEOF
12491/* end confdefs.h. */
7cb9022a
MK
12492#if HAVE_SYS_TYPES_H
12493# include <sys/types.h>
12494#endif
12495#if HAVE_NLIST_H
12496# include <nlist.h>
12497#endif
12498
12499
bec39cab
AC
12500#include <$ac_header>
12501_ACEOF
12502rm -f conftest.$ac_objext
12503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12504 (eval $ac_compile) 2>conftest.er1
12505 ac_status=$?
12506 grep -v '^ *+' conftest.er1 >conftest.err
12507 rm -f conftest.er1
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } &&
b4e70030
JB
12511 { ac_try='test -z "$ac_c_werror_flag"
12512 || test ! -s conftest.err'
bec39cab
AC
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12515 ac_status=$?
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; } &&
12518 { ac_try='test -s conftest.$ac_objext'
12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12521 ac_status=$?
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; }; then
7cb9022a 12524 eval "$as_ac_Header=yes"
bec39cab
AC
12525else
12526 echo "$as_me: failed program was:" >&5
12527sed 's/^/| /' conftest.$ac_ext >&5
12528
b4e70030 12529eval "$as_ac_Header=no"
bec39cab
AC
12530fi
12531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 12532fi
b4e70030
JB
12533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12534echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12535if test `eval echo '${'$as_ac_Header'}'` = yes; then
12536 cat >>confdefs.h <<_ACEOF
12537#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12538_ACEOF
95ca63c4 12539
bec39cab 12540fi
95ca63c4 12541
bec39cab 12542done
95ca63c4 12543
c906108c 12544
7cb9022a 12545for ac_header in machine/reg.h
bec39cab
AC
12546do
12547as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12548if eval "test \"\${$as_ac_Header+set}\" = set"; then
12549 echo "$as_me:$LINENO: checking for $ac_header" >&5
12550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12551if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12553fi
b4e70030
JB
12554echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12555echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12556else
12557 # Is the header compilable?
b4e70030
JB
12558echo "$as_me:$LINENO: checking $ac_header usability" >&5
12559echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12560cat >conftest.$ac_ext <<_ACEOF
12561/* confdefs.h. */
12562_ACEOF
12563cat confdefs.h >>conftest.$ac_ext
12564cat >>conftest.$ac_ext <<_ACEOF
12565/* end confdefs.h. */
12566$ac_includes_default
12567#include <$ac_header>
12568_ACEOF
12569rm -f conftest.$ac_objext
12570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12571 (eval $ac_compile) 2>conftest.er1
12572 ac_status=$?
12573 grep -v '^ *+' conftest.er1 >conftest.err
12574 rm -f conftest.er1
12575 cat conftest.err >&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } &&
b4e70030
JB
12578 { ac_try='test -z "$ac_c_werror_flag"
12579 || test ! -s conftest.err'
bec39cab
AC
12580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12582 ac_status=$?
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; } &&
12585 { ac_try='test -s conftest.$ac_objext'
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
12591 ac_header_compiler=yes
12592else
12593 echo "$as_me: failed program was:" >&5
12594sed 's/^/| /' conftest.$ac_ext >&5
12595
b4e70030 12596ac_header_compiler=no
bec39cab
AC
12597fi
12598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12599echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12600echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12601
12602# Is the header present?
b4e70030
JB
12603echo "$as_me:$LINENO: checking $ac_header presence" >&5
12604echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12605cat >conftest.$ac_ext <<_ACEOF
12606/* confdefs.h. */
12607_ACEOF
12608cat confdefs.h >>conftest.$ac_ext
12609cat >>conftest.$ac_ext <<_ACEOF
12610/* end confdefs.h. */
12611#include <$ac_header>
12612_ACEOF
12613if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12615 ac_status=$?
12616 grep -v '^ *+' conftest.er1 >conftest.err
12617 rm -f conftest.er1
12618 cat conftest.err >&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } >/dev/null; then
12621 if test -s conftest.err; then
12622 ac_cpp_err=$ac_c_preproc_warn_flag
12623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12624 else
12625 ac_cpp_err=
12626 fi
75c6e08a 12627else
bec39cab 12628 ac_cpp_err=yes
75c6e08a 12629fi
bec39cab
AC
12630if test -z "$ac_cpp_err"; then
12631 ac_header_preproc=yes
12632else
12633 echo "$as_me: failed program was:" >&5
12634sed 's/^/| /' conftest.$ac_ext >&5
12635
12636 ac_header_preproc=no
75c6e08a 12637fi
bec39cab 12638rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12639echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12640echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12641
12642# So? What about this header?
12643case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12644 yes:no: )
12645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12646echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12648echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12649 ac_header_preproc=yes
12650 ;;
12651 no:yes:* )
12652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12653echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12655echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12657echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12659echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12661echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12663echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12664 (
12665 cat <<\_ASBOX
12666## ------------------------------------------ ##
12667## Report this to the AC_PACKAGE_NAME lists. ##
12668## ------------------------------------------ ##
12669_ASBOX
12670 ) |
12671 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12672 ;;
12673esac
b4e70030
JB
12674echo "$as_me:$LINENO: checking for $ac_header" >&5
12675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12676if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12677 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 12678else
bec39cab
AC
12679 eval "$as_ac_Header=\$ac_header_preproc"
12680fi
b4e70030
JB
12681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12682echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12683
75c6e08a 12684fi
bec39cab
AC
12685if test `eval echo '${'$as_ac_Header'}'` = yes; then
12686 cat >>confdefs.h <<_ACEOF
12687#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12688_ACEOF
75c6e08a 12689
bec39cab 12690fi
75c6e08a 12691
bec39cab 12692done
75c6e08a
MK
12693
12694
9a156167 12695
bec39cab
AC
12696for ac_header in poll.h sys/poll.h
12697do
12698as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12699if eval "test \"\${$as_ac_Header+set}\" = set"; then
12700 echo "$as_me:$LINENO: checking for $ac_header" >&5
12701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12702if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12703 echo $ECHO_N "(cached) $ECHO_C" >&6
12704fi
b4e70030
JB
12705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12706echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12707else
12708 # Is the header compilable?
b4e70030
JB
12709echo "$as_me:$LINENO: checking $ac_header usability" >&5
12710echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12711cat >conftest.$ac_ext <<_ACEOF
12712/* confdefs.h. */
12713_ACEOF
12714cat confdefs.h >>conftest.$ac_ext
12715cat >>conftest.$ac_ext <<_ACEOF
12716/* end confdefs.h. */
12717$ac_includes_default
12718#include <$ac_header>
12719_ACEOF
12720rm -f conftest.$ac_objext
12721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12722 (eval $ac_compile) 2>conftest.er1
12723 ac_status=$?
12724 grep -v '^ *+' conftest.er1 >conftest.err
12725 rm -f conftest.er1
12726 cat conftest.err >&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } &&
b4e70030
JB
12729 { ac_try='test -z "$ac_c_werror_flag"
12730 || test ! -s conftest.err'
bec39cab
AC
12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12733 ac_status=$?
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; } &&
12736 { ac_try='test -s conftest.$ac_objext'
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12742 ac_header_compiler=yes
12743else
12744 echo "$as_me: failed program was:" >&5
12745sed 's/^/| /' conftest.$ac_ext >&5
12746
b4e70030 12747ac_header_compiler=no
bec39cab
AC
12748fi
12749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12750echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12751echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12752
12753# Is the header present?
b4e70030
JB
12754echo "$as_me:$LINENO: checking $ac_header presence" >&5
12755echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12756cat >conftest.$ac_ext <<_ACEOF
12757/* confdefs.h. */
12758_ACEOF
12759cat confdefs.h >>conftest.$ac_ext
12760cat >>conftest.$ac_ext <<_ACEOF
12761/* end confdefs.h. */
12762#include <$ac_header>
12763_ACEOF
12764if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12766 ac_status=$?
12767 grep -v '^ *+' conftest.er1 >conftest.err
12768 rm -f conftest.er1
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } >/dev/null; then
12772 if test -s conftest.err; then
12773 ac_cpp_err=$ac_c_preproc_warn_flag
12774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12775 else
12776 ac_cpp_err=
12777 fi
9a156167 12778else
bec39cab 12779 ac_cpp_err=yes
9a156167 12780fi
bec39cab
AC
12781if test -z "$ac_cpp_err"; then
12782 ac_header_preproc=yes
12783else
12784 echo "$as_me: failed program was:" >&5
12785sed 's/^/| /' conftest.$ac_ext >&5
9a156167 12786
bec39cab 12787 ac_header_preproc=no
9a156167 12788fi
bec39cab 12789rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12790echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12791echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 12792
bec39cab
AC
12793# So? What about this header?
12794case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12795 yes:no: )
12796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12797echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12799echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12800 ac_header_preproc=yes
12801 ;;
12802 no:yes:* )
12803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12804echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12806echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12808echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12810echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12812echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12814echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12815 (
12816 cat <<\_ASBOX
12817## ------------------------------------------ ##
12818## Report this to the AC_PACKAGE_NAME lists. ##
12819## ------------------------------------------ ##
12820_ASBOX
12821 ) |
12822 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12823 ;;
12824esac
b4e70030
JB
12825echo "$as_me:$LINENO: checking for $ac_header" >&5
12826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12827if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12828 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 12829else
bec39cab 12830 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 12831fi
b4e70030
JB
12832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12833echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 12834
bec39cab
AC
12835fi
12836if test `eval echo '${'$as_ac_Header'}'` = yes; then
12837 cat >>confdefs.h <<_ACEOF
12838#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12839_ACEOF
9a156167 12840
bec39cab 12841fi
9a156167 12842
bec39cab 12843done
9a156167 12844
9a156167 12845
9a156167 12846
bec39cab
AC
12847
12848for ac_header in proc_service.h thread_db.h gnu/libc-version.h
12849do
12850as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12851if eval "test \"\${$as_ac_Header+set}\" = set"; then
12852 echo "$as_me:$LINENO: checking for $ac_header" >&5
12853echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12854if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12856fi
b4e70030
JB
12857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12858echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12859else
12860 # Is the header compilable?
b4e70030
JB
12861echo "$as_me:$LINENO: checking $ac_header usability" >&5
12862echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12863cat >conftest.$ac_ext <<_ACEOF
12864/* confdefs.h. */
12865_ACEOF
12866cat confdefs.h >>conftest.$ac_ext
12867cat >>conftest.$ac_ext <<_ACEOF
436868fb
DP
12868/* end confdefs.h. */
12869$ac_includes_default
12870#include <$ac_header>
12871_ACEOF
12872rm -f conftest.$ac_objext
12873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12874 (eval $ac_compile) 2>conftest.er1
12875 ac_status=$?
12876 grep -v '^ *+' conftest.er1 >conftest.err
12877 rm -f conftest.er1
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
12881 { ac_try='test -z "$ac_c_werror_flag"
12882 || test ! -s conftest.err'
12883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884 (eval $ac_try) 2>&5
12885 ac_status=$?
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; } &&
12888 { ac_try='test -s conftest.$ac_objext'
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890 (eval $ac_try) 2>&5
12891 ac_status=$?
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; }; then
12894 ac_header_compiler=yes
12895else
12896 echo "$as_me: failed program was:" >&5
12897sed 's/^/| /' conftest.$ac_ext >&5
12898
12899ac_header_compiler=no
12900fi
12901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12902echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12903echo "${ECHO_T}$ac_header_compiler" >&6
12904
12905# Is the header present?
12906echo "$as_me:$LINENO: checking $ac_header presence" >&5
12907echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12908cat >conftest.$ac_ext <<_ACEOF
12909/* confdefs.h. */
12910_ACEOF
12911cat confdefs.h >>conftest.$ac_ext
12912cat >>conftest.$ac_ext <<_ACEOF
12913/* end confdefs.h. */
12914#include <$ac_header>
12915_ACEOF
12916if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12918 ac_status=$?
12919 grep -v '^ *+' conftest.er1 >conftest.err
12920 rm -f conftest.er1
12921 cat conftest.err >&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } >/dev/null; then
12924 if test -s conftest.err; then
12925 ac_cpp_err=$ac_c_preproc_warn_flag
12926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12927 else
12928 ac_cpp_err=
12929 fi
12930else
12931 ac_cpp_err=yes
12932fi
12933if test -z "$ac_cpp_err"; then
12934 ac_header_preproc=yes
12935else
12936 echo "$as_me: failed program was:" >&5
12937sed 's/^/| /' conftest.$ac_ext >&5
12938
12939 ac_header_preproc=no
12940fi
12941rm -f conftest.err conftest.$ac_ext
12942echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12943echo "${ECHO_T}$ac_header_preproc" >&6
12944
12945# So? What about this header?
12946case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12947 yes:no: )
12948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12949echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12951echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12952 ac_header_preproc=yes
12953 ;;
12954 no:yes:* )
12955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12956echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12958echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12960echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12962echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12964echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12966echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12967 (
12968 cat <<\_ASBOX
12969## ------------------------------------------ ##
12970## Report this to the AC_PACKAGE_NAME lists. ##
12971## ------------------------------------------ ##
12972_ASBOX
12973 ) |
12974 sed "s/^/$as_me: WARNING: /" >&2
12975 ;;
12976esac
12977echo "$as_me:$LINENO: checking for $ac_header" >&5
12978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12979if eval "test \"\${$as_ac_Header+set}\" = set"; then
12980 echo $ECHO_N "(cached) $ECHO_C" >&6
12981else
12982 eval "$as_ac_Header=\$ac_header_preproc"
12983fi
12984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12985echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12986
12987fi
12988if test `eval echo '${'$as_ac_Header'}'` = yes; then
12989 cat >>confdefs.h <<_ACEOF
12990#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12991_ACEOF
12992
12993fi
12994
12995done
12996
12997
12998for ac_header in signal.h
12999do
13000as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13001if eval "test \"\${$as_ac_Header+set}\" = set"; then
13002 echo "$as_me:$LINENO: checking for $ac_header" >&5
13003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13004if eval "test \"\${$as_ac_Header+set}\" = set"; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13006fi
13007echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13008echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13009else
13010 # Is the header compilable?
13011echo "$as_me:$LINENO: checking $ac_header usability" >&5
13012echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13013cat >conftest.$ac_ext <<_ACEOF
13014/* confdefs.h. */
13015_ACEOF
13016cat confdefs.h >>conftest.$ac_ext
13017cat >>conftest.$ac_ext <<_ACEOF
bec39cab
AC
13018/* end confdefs.h. */
13019$ac_includes_default
13020#include <$ac_header>
13021_ACEOF
13022rm -f conftest.$ac_objext
13023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13024 (eval $ac_compile) 2>conftest.er1
13025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } &&
b4e70030
JB
13031 { ac_try='test -z "$ac_c_werror_flag"
13032 || test ! -s conftest.err'
bec39cab
AC
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13035 ac_status=$?
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; } &&
13038 { ac_try='test -s conftest.$ac_objext'
13039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040 (eval $ac_try) 2>&5
13041 ac_status=$?
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; }; then
13044 ac_header_compiler=yes
13045else
13046 echo "$as_me: failed program was:" >&5
13047sed 's/^/| /' conftest.$ac_ext >&5
13048
b4e70030 13049ac_header_compiler=no
bec39cab
AC
13050fi
13051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13052echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13053echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13054
13055# Is the header present?
b4e70030
JB
13056echo "$as_me:$LINENO: checking $ac_header presence" >&5
13057echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13058cat >conftest.$ac_ext <<_ACEOF
13059/* confdefs.h. */
13060_ACEOF
13061cat confdefs.h >>conftest.$ac_ext
13062cat >>conftest.$ac_ext <<_ACEOF
13063/* end confdefs.h. */
13064#include <$ac_header>
13065_ACEOF
13066if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13068 ac_status=$?
13069 grep -v '^ *+' conftest.er1 >conftest.err
13070 rm -f conftest.er1
13071 cat conftest.err >&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } >/dev/null; then
13074 if test -s conftest.err; then
13075 ac_cpp_err=$ac_c_preproc_warn_flag
13076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13077 else
13078 ac_cpp_err=
13079 fi
9a156167 13080else
bec39cab 13081 ac_cpp_err=yes
9a156167 13082fi
bec39cab
AC
13083if test -z "$ac_cpp_err"; then
13084 ac_header_preproc=yes
13085else
13086 echo "$as_me: failed program was:" >&5
13087sed 's/^/| /' conftest.$ac_ext >&5
9a156167 13088
bec39cab 13089 ac_header_preproc=no
9a156167 13090fi
bec39cab 13091rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13092echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13093echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 13094
bec39cab
AC
13095# So? What about this header?
13096case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13097 yes:no: )
13098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13099echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13101echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13102 ac_header_preproc=yes
13103 ;;
13104 no:yes:* )
13105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13106echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13108echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13110echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13112echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13114echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13116echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13117 (
13118 cat <<\_ASBOX
13119## ------------------------------------------ ##
13120## Report this to the AC_PACKAGE_NAME lists. ##
13121## ------------------------------------------ ##
13122_ASBOX
13123 ) |
13124 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13125 ;;
13126esac
b4e70030
JB
13127echo "$as_me:$LINENO: checking for $ac_header" >&5
13128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13129if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13130 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 13131else
bec39cab 13132 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 13133fi
b4e70030
JB
13134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13135echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
13136
13137fi
bec39cab
AC
13138if test `eval echo '${'$as_ac_Header'}'` = yes; then
13139 cat >>confdefs.h <<_ACEOF
13140#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13141_ACEOF
9a156167 13142
bec39cab
AC
13143fi
13144
13145done
9a156167 13146
c890192f 13147
bec39cab
AC
13148for ac_header in stddef.h
13149do
13150as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13151if eval "test \"\${$as_ac_Header+set}\" = set"; then
13152 echo "$as_me:$LINENO: checking for $ac_header" >&5
13153echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13154if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13156fi
b4e70030
JB
13157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13158echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13159else
13160 # Is the header compilable?
b4e70030
JB
13161echo "$as_me:$LINENO: checking $ac_header usability" >&5
13162echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13163cat >conftest.$ac_ext <<_ACEOF
13164/* confdefs.h. */
13165_ACEOF
13166cat confdefs.h >>conftest.$ac_ext
13167cat >>conftest.$ac_ext <<_ACEOF
13168/* end confdefs.h. */
13169$ac_includes_default
13170#include <$ac_header>
13171_ACEOF
13172rm -f conftest.$ac_objext
13173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13174 (eval $ac_compile) 2>conftest.er1
13175 ac_status=$?
13176 grep -v '^ *+' conftest.er1 >conftest.err
13177 rm -f conftest.er1
13178 cat conftest.err >&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } &&
b4e70030
JB
13181 { ac_try='test -z "$ac_c_werror_flag"
13182 || test ! -s conftest.err'
bec39cab
AC
13183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13184 (eval $ac_try) 2>&5
13185 ac_status=$?
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); }; } &&
13188 { ac_try='test -s conftest.$ac_objext'
13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190 (eval $ac_try) 2>&5
13191 ac_status=$?
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; }; then
13194 ac_header_compiler=yes
13195else
13196 echo "$as_me: failed program was:" >&5
13197sed 's/^/| /' conftest.$ac_ext >&5
13198
b4e70030 13199ac_header_compiler=no
bec39cab
AC
13200fi
13201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13202echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13203echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13204
13205# Is the header present?
b4e70030
JB
13206echo "$as_me:$LINENO: checking $ac_header presence" >&5
13207echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13208cat >conftest.$ac_ext <<_ACEOF
13209/* confdefs.h. */
13210_ACEOF
13211cat confdefs.h >>conftest.$ac_ext
13212cat >>conftest.$ac_ext <<_ACEOF
13213/* end confdefs.h. */
13214#include <$ac_header>
13215_ACEOF
13216if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13218 ac_status=$?
13219 grep -v '^ *+' conftest.er1 >conftest.err
13220 rm -f conftest.er1
13221 cat conftest.err >&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } >/dev/null; then
13224 if test -s conftest.err; then
13225 ac_cpp_err=$ac_c_preproc_warn_flag
13226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13227 else
13228 ac_cpp_err=
13229 fi
c890192f 13230else
bec39cab
AC
13231 ac_cpp_err=yes
13232fi
13233if test -z "$ac_cpp_err"; then
13234 ac_header_preproc=yes
c890192f 13235else
bec39cab
AC
13236 echo "$as_me: failed program was:" >&5
13237sed 's/^/| /' conftest.$ac_ext >&5
13238
13239 ac_header_preproc=no
c890192f 13240fi
bec39cab 13241rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13242echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13243echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
13244
13245# So? What about this header?
13246case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13247 yes:no: )
13248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13249echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13251echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13252 ac_header_preproc=yes
13253 ;;
13254 no:yes:* )
13255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13256echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13258echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13260echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13262echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13264echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13266echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13267 (
13268 cat <<\_ASBOX
13269## ------------------------------------------ ##
13270## Report this to the AC_PACKAGE_NAME lists. ##
13271## ------------------------------------------ ##
13272_ASBOX
13273 ) |
13274 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13275 ;;
13276esac
b4e70030
JB
13277echo "$as_me:$LINENO: checking for $ac_header" >&5
13278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13279if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13280 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 13281else
bec39cab 13282 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 13283fi
b4e70030
JB
13284echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13285echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 13286
c890192f 13287fi
bec39cab
AC
13288if test `eval echo '${'$as_ac_Header'}'` = yes; then
13289 cat >>confdefs.h <<_ACEOF
13290#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13291_ACEOF
c890192f 13292
c890192f
MK
13293fi
13294
bec39cab 13295done
9a156167 13296
bec39cab
AC
13297
13298for ac_header in stdlib.h
13299do
13300as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13301if eval "test \"\${$as_ac_Header+set}\" = set"; then
13302 echo "$as_me:$LINENO: checking for $ac_header" >&5
13303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13304if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13306fi
b4e70030
JB
13307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13308echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13309else
13310 # Is the header compilable?
b4e70030
JB
13311echo "$as_me:$LINENO: checking $ac_header usability" >&5
13312echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13313cat >conftest.$ac_ext <<_ACEOF
13314/* confdefs.h. */
13315_ACEOF
13316cat confdefs.h >>conftest.$ac_ext
13317cat >>conftest.$ac_ext <<_ACEOF
13318/* end confdefs.h. */
13319$ac_includes_default
13320#include <$ac_header>
13321_ACEOF
13322rm -f conftest.$ac_objext
13323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13324 (eval $ac_compile) 2>conftest.er1
13325 ac_status=$?
13326 grep -v '^ *+' conftest.er1 >conftest.err
13327 rm -f conftest.er1
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } &&
b4e70030
JB
13331 { ac_try='test -z "$ac_c_werror_flag"
13332 || test ! -s conftest.err'
bec39cab
AC
13333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334 (eval $ac_try) 2>&5
13335 ac_status=$?
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; } &&
13338 { ac_try='test -s conftest.$ac_objext'
13339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340 (eval $ac_try) 2>&5
13341 ac_status=$?
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; }; then
13344 ac_header_compiler=yes
13345else
13346 echo "$as_me: failed program was:" >&5
13347sed 's/^/| /' conftest.$ac_ext >&5
13348
b4e70030 13349ac_header_compiler=no
bec39cab
AC
13350fi
13351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13352echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13353echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13354
13355# Is the header present?
b4e70030
JB
13356echo "$as_me:$LINENO: checking $ac_header presence" >&5
13357echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13358cat >conftest.$ac_ext <<_ACEOF
13359/* confdefs.h. */
13360_ACEOF
13361cat confdefs.h >>conftest.$ac_ext
13362cat >>conftest.$ac_ext <<_ACEOF
13363/* end confdefs.h. */
13364#include <$ac_header>
13365_ACEOF
13366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13368 ac_status=$?
13369 grep -v '^ *+' conftest.er1 >conftest.err
13370 rm -f conftest.er1
13371 cat conftest.err >&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } >/dev/null; then
13374 if test -s conftest.err; then
13375 ac_cpp_err=$ac_c_preproc_warn_flag
13376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13377 else
13378 ac_cpp_err=
13379 fi
9a156167 13380else
bec39cab
AC
13381 ac_cpp_err=yes
13382fi
13383if test -z "$ac_cpp_err"; then
13384 ac_header_preproc=yes
9a156167 13385else
bec39cab
AC
13386 echo "$as_me: failed program was:" >&5
13387sed 's/^/| /' conftest.$ac_ext >&5
13388
13389 ac_header_preproc=no
9a156167 13390fi
bec39cab 13391rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13392echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13393echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
13394
13395# So? What about this header?
13396case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13397 yes:no: )
13398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13399echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13401echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13402 ac_header_preproc=yes
13403 ;;
13404 no:yes:* )
13405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13406echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13408echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13410echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13412echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13414echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13416echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13417 (
13418 cat <<\_ASBOX
13419## ------------------------------------------ ##
13420## Report this to the AC_PACKAGE_NAME lists. ##
13421## ------------------------------------------ ##
13422_ASBOX
13423 ) |
13424 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13425 ;;
13426esac
b4e70030
JB
13427echo "$as_me:$LINENO: checking for $ac_header" >&5
13428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13429if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13430 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 13431else
bec39cab 13432 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 13433fi
b4e70030
JB
13434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13435echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 13436
9a156167 13437fi
bec39cab
AC
13438if test `eval echo '${'$as_ac_Header'}'` = yes; then
13439 cat >>confdefs.h <<_ACEOF
13440#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13441_ACEOF
9a156167 13442
9a156167
MK
13443fi
13444
bec39cab
AC
13445done
13446
06825bd1 13447
06825bd1 13448
bec39cab
AC
13449
13450for ac_header in string.h memory.h strings.h
13451do
13452as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13453if eval "test \"\${$as_ac_Header+set}\" = set"; then
13454 echo "$as_me:$LINENO: checking for $ac_header" >&5
13455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13456if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13458fi
b4e70030
JB
13459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13460echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13461else
13462 # Is the header compilable?
b4e70030
JB
13463echo "$as_me:$LINENO: checking $ac_header usability" >&5
13464echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13465cat >conftest.$ac_ext <<_ACEOF
13466/* confdefs.h. */
13467_ACEOF
13468cat confdefs.h >>conftest.$ac_ext
13469cat >>conftest.$ac_ext <<_ACEOF
13470/* end confdefs.h. */
13471$ac_includes_default
13472#include <$ac_header>
13473_ACEOF
13474rm -f conftest.$ac_objext
13475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13476 (eval $ac_compile) 2>conftest.er1
13477 ac_status=$?
13478 grep -v '^ *+' conftest.er1 >conftest.err
13479 rm -f conftest.er1
13480 cat conftest.err >&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } &&
b4e70030
JB
13483 { ac_try='test -z "$ac_c_werror_flag"
13484 || test ! -s conftest.err'
bec39cab
AC
13485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486 (eval $ac_try) 2>&5
13487 ac_status=$?
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; } &&
13490 { ac_try='test -s conftest.$ac_objext'
13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492 (eval $ac_try) 2>&5
13493 ac_status=$?
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; }; then
13496 ac_header_compiler=yes
13497else
13498 echo "$as_me: failed program was:" >&5
13499sed 's/^/| /' conftest.$ac_ext >&5
13500
b4e70030 13501ac_header_compiler=no
bec39cab
AC
13502fi
13503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13504echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13505echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13506
13507# Is the header present?
b4e70030
JB
13508echo "$as_me:$LINENO: checking $ac_header presence" >&5
13509echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13510cat >conftest.$ac_ext <<_ACEOF
13511/* confdefs.h. */
13512_ACEOF
13513cat confdefs.h >>conftest.$ac_ext
13514cat >>conftest.$ac_ext <<_ACEOF
13515/* end confdefs.h. */
13516#include <$ac_header>
13517_ACEOF
13518if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13520 ac_status=$?
13521 grep -v '^ *+' conftest.er1 >conftest.err
13522 rm -f conftest.er1
13523 cat conftest.err >&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } >/dev/null; then
13526 if test -s conftest.err; then
13527 ac_cpp_err=$ac_c_preproc_warn_flag
13528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13529 else
13530 ac_cpp_err=
13531 fi
06825bd1 13532else
bec39cab
AC
13533 ac_cpp_err=yes
13534fi
13535if test -z "$ac_cpp_err"; then
13536 ac_header_preproc=yes
06825bd1 13537else
bec39cab
AC
13538 echo "$as_me: failed program was:" >&5
13539sed 's/^/| /' conftest.$ac_ext >&5
13540
13541 ac_header_preproc=no
06825bd1 13542fi
bec39cab 13543rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13544echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13545echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
13546
13547# So? What about this header?
13548case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13549 yes:no: )
13550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13551echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13553echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13554 ac_header_preproc=yes
13555 ;;
13556 no:yes:* )
13557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13558echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13560echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13562echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13564echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13566echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13568echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13569 (
13570 cat <<\_ASBOX
13571## ------------------------------------------ ##
13572## Report this to the AC_PACKAGE_NAME lists. ##
13573## ------------------------------------------ ##
13574_ASBOX
13575 ) |
13576 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13577 ;;
13578esac
b4e70030
JB
13579echo "$as_me:$LINENO: checking for $ac_header" >&5
13580echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13581if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13583else
13584 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 13585fi
b4e70030
JB
13586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13587echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 13588
06825bd1 13589fi
bec39cab
AC
13590if test `eval echo '${'$as_ac_Header'}'` = yes; then
13591 cat >>confdefs.h <<_ACEOF
13592#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13593_ACEOF
06825bd1 13594
06825bd1
MK
13595fi
13596
bec39cab 13597done
5ee754fc 13598
bec39cab
AC
13599
13600for ac_header in sys/fault.h
5ee754fc 13601do
bec39cab 13602as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13603if eval "test \"\${$as_ac_Header+set}\" = set"; then
13604 echo "$as_me:$LINENO: checking for $ac_header" >&5
13605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13606if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
13608fi
b4e70030
JB
13609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13610echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13611else
13612 # Is the header compilable?
b4e70030
JB
13613echo "$as_me:$LINENO: checking $ac_header usability" >&5
13614echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13615cat >conftest.$ac_ext <<_ACEOF
13616/* confdefs.h. */
13617_ACEOF
13618cat confdefs.h >>conftest.$ac_ext
13619cat >>conftest.$ac_ext <<_ACEOF
13620/* end confdefs.h. */
13621$ac_includes_default
13622#include <$ac_header>
13623_ACEOF
13624rm -f conftest.$ac_objext
13625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13626 (eval $ac_compile) 2>conftest.er1
13627 ac_status=$?
13628 grep -v '^ *+' conftest.er1 >conftest.err
13629 rm -f conftest.er1
13630 cat conftest.err >&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } &&
b4e70030
JB
13633 { ac_try='test -z "$ac_c_werror_flag"
13634 || test ! -s conftest.err'
bec39cab
AC
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; } &&
13640 { ac_try='test -s conftest.$ac_objext'
13641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642 (eval $ac_try) 2>&5
13643 ac_status=$?
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; }; then
13646 ac_header_compiler=yes
13647else
13648 echo "$as_me: failed program was:" >&5
13649sed 's/^/| /' conftest.$ac_ext >&5
13650
b4e70030 13651ac_header_compiler=no
bec39cab
AC
13652fi
13653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13654echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13655echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13656
13657# Is the header present?
b4e70030
JB
13658echo "$as_me:$LINENO: checking $ac_header presence" >&5
13659echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13660cat >conftest.$ac_ext <<_ACEOF
13661/* confdefs.h. */
13662_ACEOF
13663cat confdefs.h >>conftest.$ac_ext
13664cat >>conftest.$ac_ext <<_ACEOF
13665/* end confdefs.h. */
13666#include <$ac_header>
13667_ACEOF
13668if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13670 ac_status=$?
13671 grep -v '^ *+' conftest.er1 >conftest.err
13672 rm -f conftest.er1
13673 cat conftest.err >&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } >/dev/null; then
13676 if test -s conftest.err; then
13677 ac_cpp_err=$ac_c_preproc_warn_flag
13678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13679 else
13680 ac_cpp_err=
13681 fi
5ee754fc 13682else
bec39cab 13683 ac_cpp_err=yes
5ee754fc 13684fi
bec39cab
AC
13685if test -z "$ac_cpp_err"; then
13686 ac_header_preproc=yes
13687else
13688 echo "$as_me: failed program was:" >&5
13689sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13690
bec39cab 13691 ac_header_preproc=no
5ee754fc 13692fi
bec39cab 13693rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13694echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13695echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
13696
13697# So? What about this header?
13698case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13699 yes:no: )
13700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13701echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13703echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13704 ac_header_preproc=yes
13705 ;;
13706 no:yes:* )
13707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13708echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13710echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13712echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13714echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13716echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13718echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13719 (
13720 cat <<\_ASBOX
13721## ------------------------------------------ ##
13722## Report this to the AC_PACKAGE_NAME lists. ##
13723## ------------------------------------------ ##
13724_ASBOX
13725 ) |
13726 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13727 ;;
13728esac
b4e70030
JB
13729echo "$as_me:$LINENO: checking for $ac_header" >&5
13730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13731if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13732 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 13733else
bec39cab 13734 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 13735fi
b4e70030
JB
13736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13737echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 13738
5ee754fc 13739fi
bec39cab
AC
13740if test `eval echo '${'$as_ac_Header'}'` = yes; then
13741 cat >>confdefs.h <<_ACEOF
13742#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13743_ACEOF
c906108c 13744
5ee754fc 13745fi
bec39cab
AC
13746
13747done
13748
13749
13750for ac_header in sys/file.h
13751do
13752as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13753if eval "test \"\${$as_ac_Header+set}\" = set"; then
13754 echo "$as_me:$LINENO: checking for $ac_header" >&5
13755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13756if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13758fi
b4e70030
JB
13759echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13760echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13761else
13762 # Is the header compilable?
b4e70030
JB
13763echo "$as_me:$LINENO: checking $ac_header usability" >&5
13764echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13765cat >conftest.$ac_ext <<_ACEOF
13766/* confdefs.h. */
13767_ACEOF
13768cat confdefs.h >>conftest.$ac_ext
13769cat >>conftest.$ac_ext <<_ACEOF
13770/* end confdefs.h. */
13771$ac_includes_default
13772#include <$ac_header>
13773_ACEOF
13774rm -f conftest.$ac_objext
13775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13776 (eval $ac_compile) 2>conftest.er1
13777 ac_status=$?
13778 grep -v '^ *+' conftest.er1 >conftest.err
13779 rm -f conftest.er1
13780 cat conftest.err >&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } &&
b4e70030
JB
13783 { ac_try='test -z "$ac_c_werror_flag"
13784 || test ! -s conftest.err'
bec39cab
AC
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13787 ac_status=$?
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; } &&
13790 { ac_try='test -s conftest.$ac_objext'
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13793 ac_status=$?
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }; then
13796 ac_header_compiler=yes
13797else
13798 echo "$as_me: failed program was:" >&5
13799sed 's/^/| /' conftest.$ac_ext >&5
13800
b4e70030 13801ac_header_compiler=no
bec39cab
AC
13802fi
13803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13804echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13805echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13806
13807# Is the header present?
b4e70030
JB
13808echo "$as_me:$LINENO: checking $ac_header presence" >&5
13809echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13810cat >conftest.$ac_ext <<_ACEOF
13811/* confdefs.h. */
13812_ACEOF
13813cat confdefs.h >>conftest.$ac_ext
13814cat >>conftest.$ac_ext <<_ACEOF
13815/* end confdefs.h. */
13816#include <$ac_header>
13817_ACEOF
13818if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13820 ac_status=$?
13821 grep -v '^ *+' conftest.er1 >conftest.err
13822 rm -f conftest.er1
13823 cat conftest.err >&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } >/dev/null; then
13826 if test -s conftest.err; then
13827 ac_cpp_err=$ac_c_preproc_warn_flag
13828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13829 else
13830 ac_cpp_err=
13831 fi
5ee754fc 13832else
bec39cab 13833 ac_cpp_err=yes
5ee754fc 13834fi
bec39cab
AC
13835if test -z "$ac_cpp_err"; then
13836 ac_header_preproc=yes
13837else
13838 echo "$as_me: failed program was:" >&5
13839sed 's/^/| /' conftest.$ac_ext >&5
c906108c 13840
bec39cab 13841 ac_header_preproc=no
5ee754fc 13842fi
bec39cab 13843rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13844echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13845echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 13846
bec39cab
AC
13847# So? What about this header?
13848case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13849 yes:no: )
13850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13851echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13853echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13854 ac_header_preproc=yes
13855 ;;
13856 no:yes:* )
13857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13858echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13860echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13862echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13864echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13866echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13868echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13869 (
13870 cat <<\_ASBOX
13871## ------------------------------------------ ##
13872## Report this to the AC_PACKAGE_NAME lists. ##
13873## ------------------------------------------ ##
13874_ASBOX
13875 ) |
13876 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13877 ;;
13878esac
b4e70030
JB
13879echo "$as_me:$LINENO: checking for $ac_header" >&5
13880echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13881if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13882 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 13883else
bec39cab
AC
13884 eval "$as_ac_Header=\$ac_header_preproc"
13885fi
b4e70030
JB
13886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13887echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 13888
bec39cab
AC
13889fi
13890if test `eval echo '${'$as_ac_Header'}'` = yes; then
13891 cat >>confdefs.h <<_ACEOF
13892#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13893_ACEOF
5ee754fc 13894
bec39cab 13895fi
5ee754fc 13896
bec39cab 13897done
5ee754fc 13898
5ee754fc 13899
bec39cab
AC
13900for ac_header in sys/filio.h
13901do
13902as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13903if eval "test \"\${$as_ac_Header+set}\" = set"; then
13904 echo "$as_me:$LINENO: checking for $ac_header" >&5
13905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13906if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13907 echo $ECHO_N "(cached) $ECHO_C" >&6
13908fi
b4e70030
JB
13909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13910echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13911else
13912 # Is the header compilable?
b4e70030
JB
13913echo "$as_me:$LINENO: checking $ac_header usability" >&5
13914echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13915cat >conftest.$ac_ext <<_ACEOF
13916/* confdefs.h. */
13917_ACEOF
13918cat confdefs.h >>conftest.$ac_ext
13919cat >>conftest.$ac_ext <<_ACEOF
13920/* end confdefs.h. */
13921$ac_includes_default
13922#include <$ac_header>
13923_ACEOF
13924rm -f conftest.$ac_objext
13925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13926 (eval $ac_compile) 2>conftest.er1
13927 ac_status=$?
13928 grep -v '^ *+' conftest.er1 >conftest.err
13929 rm -f conftest.er1
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
b4e70030
JB
13933 { ac_try='test -z "$ac_c_werror_flag"
13934 || test ! -s conftest.err'
bec39cab
AC
13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13937 ac_status=$?
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; } &&
13940 { ac_try='test -s conftest.$ac_objext'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13943 ac_status=$?
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; }; then
13946 ac_header_compiler=yes
13947else
13948 echo "$as_me: failed program was:" >&5
13949sed 's/^/| /' conftest.$ac_ext >&5
13950
b4e70030 13951ac_header_compiler=no
bec39cab
AC
13952fi
13953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13954echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13955echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13956
13957# Is the header present?
b4e70030
JB
13958echo "$as_me:$LINENO: checking $ac_header presence" >&5
13959echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13960cat >conftest.$ac_ext <<_ACEOF
13961/* confdefs.h. */
13962_ACEOF
13963cat confdefs.h >>conftest.$ac_ext
13964cat >>conftest.$ac_ext <<_ACEOF
13965/* end confdefs.h. */
13966#include <$ac_header>
13967_ACEOF
13968if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13970 ac_status=$?
13971 grep -v '^ *+' conftest.er1 >conftest.err
13972 rm -f conftest.er1
13973 cat conftest.err >&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); } >/dev/null; then
13976 if test -s conftest.err; then
13977 ac_cpp_err=$ac_c_preproc_warn_flag
13978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13979 else
13980 ac_cpp_err=
13981 fi
5ee754fc 13982else
bec39cab 13983 ac_cpp_err=yes
5ee754fc 13984fi
bec39cab
AC
13985if test -z "$ac_cpp_err"; then
13986 ac_header_preproc=yes
13987else
13988 echo "$as_me: failed program was:" >&5
13989sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13990
bec39cab 13991 ac_header_preproc=no
5ee754fc 13992fi
bec39cab 13993rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13994echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13995echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 13996
bec39cab
AC
13997# So? What about this header?
13998case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13999 yes:no: )
14000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14001echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14003echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14004 ac_header_preproc=yes
14005 ;;
14006 no:yes:* )
14007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14008echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14010echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14011 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14012echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14013 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14014echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14016echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14017 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14018echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14019 (
14020 cat <<\_ASBOX
14021## ------------------------------------------ ##
14022## Report this to the AC_PACKAGE_NAME lists. ##
14023## ------------------------------------------ ##
14024_ASBOX
14025 ) |
14026 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14027 ;;
14028esac
b4e70030
JB
14029echo "$as_me:$LINENO: checking for $ac_header" >&5
14030echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14031if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 14032 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 14033else
bec39cab 14034 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14035fi
b4e70030
JB
14036echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14037echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 14038
5ee754fc 14039fi
bec39cab
AC
14040if test `eval echo '${'$as_ac_Header'}'` = yes; then
14041 cat >>confdefs.h <<_ACEOF
14042#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14043_ACEOF
5ee754fc
MK
14044
14045fi
14046
bec39cab
AC
14047done
14048
14049
14050for ac_header in sys/ioctl.h
14051do
14052as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14053if eval "test \"\${$as_ac_Header+set}\" = set"; then
14054 echo "$as_me:$LINENO: checking for $ac_header" >&5
14055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14056if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14058fi
b4e70030
JB
14059echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14060echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14061else
14062 # Is the header compilable?
b4e70030
JB
14063echo "$as_me:$LINENO: checking $ac_header usability" >&5
14064echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14065cat >conftest.$ac_ext <<_ACEOF
14066/* confdefs.h. */
14067_ACEOF
14068cat confdefs.h >>conftest.$ac_ext
14069cat >>conftest.$ac_ext <<_ACEOF
14070/* end confdefs.h. */
14071$ac_includes_default
14072#include <$ac_header>
14073_ACEOF
14074rm -f conftest.$ac_objext
14075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14076 (eval $ac_compile) 2>conftest.er1
14077 ac_status=$?
14078 grep -v '^ *+' conftest.er1 >conftest.err
14079 rm -f conftest.er1
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } &&
b4e70030
JB
14083 { ac_try='test -z "$ac_c_werror_flag"
14084 || test ! -s conftest.err'
bec39cab
AC
14085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086 (eval $ac_try) 2>&5
14087 ac_status=$?
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }; } &&
14090 { ac_try='test -s conftest.$ac_objext'
14091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092 (eval $ac_try) 2>&5
14093 ac_status=$?
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; }; then
14096 ac_header_compiler=yes
14097else
14098 echo "$as_me: failed program was:" >&5
14099sed 's/^/| /' conftest.$ac_ext >&5
14100
b4e70030 14101ac_header_compiler=no
bec39cab
AC
14102fi
14103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14104echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14105echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14106
14107# Is the header present?
b4e70030
JB
14108echo "$as_me:$LINENO: checking $ac_header presence" >&5
14109echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14110cat >conftest.$ac_ext <<_ACEOF
14111/* confdefs.h. */
14112_ACEOF
14113cat confdefs.h >>conftest.$ac_ext
14114cat >>conftest.$ac_ext <<_ACEOF
14115/* end confdefs.h. */
14116#include <$ac_header>
14117_ACEOF
14118if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14120 ac_status=$?
14121 grep -v '^ *+' conftest.er1 >conftest.err
14122 rm -f conftest.er1
14123 cat conftest.err >&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } >/dev/null; then
14126 if test -s conftest.err; then
14127 ac_cpp_err=$ac_c_preproc_warn_flag
14128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14129 else
14130 ac_cpp_err=
14131 fi
5ee754fc 14132else
bec39cab 14133 ac_cpp_err=yes
5ee754fc 14134fi
bec39cab
AC
14135if test -z "$ac_cpp_err"; then
14136 ac_header_preproc=yes
14137else
14138 echo "$as_me: failed program was:" >&5
14139sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 14140
bec39cab 14141 ac_header_preproc=no
5ee754fc 14142fi
bec39cab 14143rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14144echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14145echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14146
bec39cab
AC
14147# So? What about this header?
14148case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14149 yes:no: )
14150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14151echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14153echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14154 ac_header_preproc=yes
14155 ;;
14156 no:yes:* )
14157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14158echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14160echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14162echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14164echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14166echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14168echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14169 (
14170 cat <<\_ASBOX
14171## ------------------------------------------ ##
14172## Report this to the AC_PACKAGE_NAME lists. ##
14173## ------------------------------------------ ##
14174_ASBOX
14175 ) |
14176 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14177 ;;
14178esac
b4e70030
JB
14179echo "$as_me:$LINENO: checking for $ac_header" >&5
14180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14181if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 14182 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 14183else
bec39cab 14184 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14185fi
b4e70030
JB
14186echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14187echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
14188
14189fi
bec39cab
AC
14190if test `eval echo '${'$as_ac_Header'}'` = yes; then
14191 cat >>confdefs.h <<_ACEOF
14192#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14193_ACEOF
14194
5ee754fc
MK
14195fi
14196
bec39cab 14197done
5ee754fc 14198
5ee754fc 14199
bec39cab 14200for ac_header in sys/param.h
5ee754fc 14201do
bec39cab 14202as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14203if eval "test \"\${$as_ac_Header+set}\" = set"; then
14204 echo "$as_me:$LINENO: checking for $ac_header" >&5
14205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14206if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14208fi
b4e70030
JB
14209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14210echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14211else
14212 # Is the header compilable?
b4e70030
JB
14213echo "$as_me:$LINENO: checking $ac_header usability" >&5
14214echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14215cat >conftest.$ac_ext <<_ACEOF
14216/* confdefs.h. */
14217_ACEOF
14218cat confdefs.h >>conftest.$ac_ext
14219cat >>conftest.$ac_ext <<_ACEOF
14220/* end confdefs.h. */
14221$ac_includes_default
14222#include <$ac_header>
14223_ACEOF
14224rm -f conftest.$ac_objext
14225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14226 (eval $ac_compile) 2>conftest.er1
14227 ac_status=$?
14228 grep -v '^ *+' conftest.er1 >conftest.err
14229 rm -f conftest.er1
14230 cat conftest.err >&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); } &&
b4e70030
JB
14233 { ac_try='test -z "$ac_c_werror_flag"
14234 || test ! -s conftest.err'
bec39cab
AC
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; } &&
14240 { ac_try='test -s conftest.$ac_objext'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14243 ac_status=$?
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; }; then
14246 ac_header_compiler=yes
14247else
14248 echo "$as_me: failed program was:" >&5
14249sed 's/^/| /' conftest.$ac_ext >&5
14250
b4e70030 14251ac_header_compiler=no
bec39cab
AC
14252fi
14253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14254echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14255echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14256
14257# Is the header present?
b4e70030
JB
14258echo "$as_me:$LINENO: checking $ac_header presence" >&5
14259echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14260cat >conftest.$ac_ext <<_ACEOF
14261/* confdefs.h. */
14262_ACEOF
14263cat confdefs.h >>conftest.$ac_ext
14264cat >>conftest.$ac_ext <<_ACEOF
14265/* end confdefs.h. */
14266#include <$ac_header>
14267_ACEOF
14268if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14270 ac_status=$?
14271 grep -v '^ *+' conftest.er1 >conftest.err
14272 rm -f conftest.er1
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } >/dev/null; then
14276 if test -s conftest.err; then
14277 ac_cpp_err=$ac_c_preproc_warn_flag
14278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14279 else
14280 ac_cpp_err=
14281 fi
5ee754fc 14282else
bec39cab 14283 ac_cpp_err=yes
5ee754fc 14284fi
bec39cab
AC
14285if test -z "$ac_cpp_err"; then
14286 ac_header_preproc=yes
14287else
14288 echo "$as_me: failed program was:" >&5
14289sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 14290
bec39cab 14291 ac_header_preproc=no
5ee754fc 14292fi
bec39cab 14293rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14294echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14295echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
14296
14297# So? What about this header?
14298case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14299 yes:no: )
14300 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14301echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14303echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14304 ac_header_preproc=yes
14305 ;;
14306 no:yes:* )
14307 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14308echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14309 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14310echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14311 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14312echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14313 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14314echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14316echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14318echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14319 (
14320 cat <<\_ASBOX
14321## ------------------------------------------ ##
14322## Report this to the AC_PACKAGE_NAME lists. ##
14323## ------------------------------------------ ##
14324_ASBOX
14325 ) |
14326 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14327 ;;
14328esac
b4e70030
JB
14329echo "$as_me:$LINENO: checking for $ac_header" >&5
14330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14331if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 14332 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 14333else
bec39cab 14334 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14335fi
b4e70030
JB
14336echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14337echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 14338
5ee754fc 14339fi
bec39cab
AC
14340if test `eval echo '${'$as_ac_Header'}'` = yes; then
14341 cat >>confdefs.h <<_ACEOF
14342#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14343_ACEOF
14344
5ee754fc 14345fi
bec39cab 14346
5ee754fc
MK
14347done
14348
bec39cab 14349
7eb368b3
NR
14350for ac_header in sys/resource.h
14351do
14352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14353if eval "test \"\${$as_ac_Header+set}\" = set"; then
14354 echo "$as_me:$LINENO: checking for $ac_header" >&5
14355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14356if eval "test \"\${$as_ac_Header+set}\" = set"; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14358fi
14359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14360echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14361else
14362 # Is the header compilable?
14363echo "$as_me:$LINENO: checking $ac_header usability" >&5
14364echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14365cat >conftest.$ac_ext <<_ACEOF
14366/* confdefs.h. */
14367_ACEOF
14368cat confdefs.h >>conftest.$ac_ext
14369cat >>conftest.$ac_ext <<_ACEOF
14370/* end confdefs.h. */
14371$ac_includes_default
14372#include <$ac_header>
14373_ACEOF
14374rm -f conftest.$ac_objext
14375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14376 (eval $ac_compile) 2>conftest.er1
14377 ac_status=$?
14378 grep -v '^ *+' conftest.er1 >conftest.err
14379 rm -f conftest.er1
14380 cat conftest.err >&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } &&
14383 { ac_try='test -z "$ac_c_werror_flag"
14384 || test ! -s conftest.err'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14387 ac_status=$?
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; } &&
14390 { ac_try='test -s conftest.$ac_objext'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14393 ac_status=$?
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; }; then
14396 ac_header_compiler=yes
14397else
14398 echo "$as_me: failed program was:" >&5
14399sed 's/^/| /' conftest.$ac_ext >&5
14400
14401ac_header_compiler=no
14402fi
14403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14404echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14405echo "${ECHO_T}$ac_header_compiler" >&6
14406
14407# Is the header present?
14408echo "$as_me:$LINENO: checking $ac_header presence" >&5
14409echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14410cat >conftest.$ac_ext <<_ACEOF
14411/* confdefs.h. */
14412_ACEOF
14413cat confdefs.h >>conftest.$ac_ext
14414cat >>conftest.$ac_ext <<_ACEOF
14415/* end confdefs.h. */
14416#include <$ac_header>
14417_ACEOF
14418if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14420 ac_status=$?
14421 grep -v '^ *+' conftest.er1 >conftest.err
14422 rm -f conftest.er1
14423 cat conftest.err >&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); } >/dev/null; then
14426 if test -s conftest.err; then
14427 ac_cpp_err=$ac_c_preproc_warn_flag
14428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14429 else
14430 ac_cpp_err=
14431 fi
14432else
14433 ac_cpp_err=yes
14434fi
14435if test -z "$ac_cpp_err"; then
14436 ac_header_preproc=yes
14437else
14438 echo "$as_me: failed program was:" >&5
14439sed 's/^/| /' conftest.$ac_ext >&5
14440
14441 ac_header_preproc=no
14442fi
14443rm -f conftest.err conftest.$ac_ext
14444echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14445echo "${ECHO_T}$ac_header_preproc" >&6
14446
14447# So? What about this header?
14448case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14449 yes:no: )
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14451echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14453echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14454 ac_header_preproc=yes
14455 ;;
14456 no:yes:* )
14457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14458echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14460echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14462echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14464echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14466echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14468echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14469 (
14470 cat <<\_ASBOX
14471## ------------------------------------------ ##
14472## Report this to the AC_PACKAGE_NAME lists. ##
14473## ------------------------------------------ ##
14474_ASBOX
14475 ) |
14476 sed "s/^/$as_me: WARNING: /" >&2
14477 ;;
14478esac
14479echo "$as_me:$LINENO: checking for $ac_header" >&5
14480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14481if eval "test \"\${$as_ac_Header+set}\" = set"; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14483else
14484 eval "$as_ac_Header=\$ac_header_preproc"
14485fi
14486echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14487echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14488
14489fi
14490if test `eval echo '${'$as_ac_Header'}'` = yes; then
14491 cat >>confdefs.h <<_ACEOF
14492#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14493_ACEOF
14494
14495fi
14496
14497done
14498
14499
bec39cab 14500for ac_header in sys/proc.h
5ee754fc 14501do
bec39cab 14502as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14503echo "$as_me:$LINENO: checking for $ac_header" >&5
14504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14505if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 14506 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 14507else
7cb9022a 14508 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14509/* confdefs.h. */
14510_ACEOF
14511cat confdefs.h >>conftest.$ac_ext
14512cat >>conftest.$ac_ext <<_ACEOF
14513/* end confdefs.h. */
7cb9022a
MK
14514#if HAVE_SYS_PARAM_H
14515# include <sys/param.h>
14516#endif
14517
14518
bec39cab
AC
14519#include <$ac_header>
14520_ACEOF
14521rm -f conftest.$ac_objext
14522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14523 (eval $ac_compile) 2>conftest.er1
14524 ac_status=$?
14525 grep -v '^ *+' conftest.er1 >conftest.err
14526 rm -f conftest.er1
14527 cat conftest.err >&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); } &&
b4e70030
JB
14530 { ac_try='test -z "$ac_c_werror_flag"
14531 || test ! -s conftest.err'
bec39cab
AC
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5
14534 ac_status=$?
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; } &&
14537 { ac_try='test -s conftest.$ac_objext'
14538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14539 (eval $ac_try) 2>&5
14540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; }; then
7cb9022a 14543 eval "$as_ac_Header=yes"
bec39cab
AC
14544else
14545 echo "$as_me: failed program was:" >&5
14546sed 's/^/| /' conftest.$ac_ext >&5
14547
b4e70030 14548eval "$as_ac_Header=no"
bec39cab
AC
14549fi
14550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 14551fi
b4e70030
JB
14552echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14553echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14554if test `eval echo '${'$as_ac_Header'}'` = yes; then
14555 cat >>confdefs.h <<_ACEOF
14556#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14557_ACEOF
14558
5ee754fc 14559fi
bec39cab 14560
5ee754fc
MK
14561done
14562
bec39cab
AC
14563
14564for ac_header in sys/procfs.h
5ee754fc 14565do
bec39cab 14566as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14567if eval "test \"\${$as_ac_Header+set}\" = set"; then
14568 echo "$as_me:$LINENO: checking for $ac_header" >&5
14569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14570if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14572fi
b4e70030
JB
14573echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14574echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14575else
14576 # Is the header compilable?
b4e70030
JB
14577echo "$as_me:$LINENO: checking $ac_header usability" >&5
14578echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14579cat >conftest.$ac_ext <<_ACEOF
14580/* confdefs.h. */
14581_ACEOF
14582cat confdefs.h >>conftest.$ac_ext
14583cat >>conftest.$ac_ext <<_ACEOF
14584/* end confdefs.h. */
14585$ac_includes_default
14586#include <$ac_header>
14587_ACEOF
14588rm -f conftest.$ac_objext
14589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14590 (eval $ac_compile) 2>conftest.er1
14591 ac_status=$?
14592 grep -v '^ *+' conftest.er1 >conftest.err
14593 rm -f conftest.er1
14594 cat conftest.err >&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); } &&
b4e70030
JB
14597 { ac_try='test -z "$ac_c_werror_flag"
14598 || test ! -s conftest.err'
bec39cab
AC
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14601 ac_status=$?
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; } &&
14604 { ac_try='test -s conftest.$ac_objext'
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14607 ac_status=$?
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; }; then
14610 ac_header_compiler=yes
14611else
14612 echo "$as_me: failed program was:" >&5
14613sed 's/^/| /' conftest.$ac_ext >&5
14614
b4e70030 14615ac_header_compiler=no
bec39cab
AC
14616fi
14617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14618echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14619echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14620
14621# Is the header present?
b4e70030
JB
14622echo "$as_me:$LINENO: checking $ac_header presence" >&5
14623echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14624cat >conftest.$ac_ext <<_ACEOF
14625/* confdefs.h. */
14626_ACEOF
14627cat confdefs.h >>conftest.$ac_ext
14628cat >>conftest.$ac_ext <<_ACEOF
14629/* end confdefs.h. */
14630#include <$ac_header>
14631_ACEOF
14632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14634 ac_status=$?
14635 grep -v '^ *+' conftest.er1 >conftest.err
14636 rm -f conftest.er1
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } >/dev/null; then
14640 if test -s conftest.err; then
14641 ac_cpp_err=$ac_c_preproc_warn_flag
14642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14643 else
14644 ac_cpp_err=
14645 fi
14646else
14647 ac_cpp_err=yes
5ee754fc 14648fi
bec39cab
AC
14649if test -z "$ac_cpp_err"; then
14650 ac_header_preproc=yes
5ee754fc 14651else
bec39cab
AC
14652 echo "$as_me: failed program was:" >&5
14653sed 's/^/| /' conftest.$ac_ext >&5
14654
14655 ac_header_preproc=no
5ee754fc 14656fi
bec39cab 14657rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14658echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14659echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14660
bec39cab
AC
14661# So? What about this header?
14662case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14663 yes:no: )
14664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14665echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14667echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14668 ac_header_preproc=yes
14669 ;;
14670 no:yes:* )
14671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14672echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14674echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14676echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14678echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14680echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14682echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14683 (
14684 cat <<\_ASBOX
14685## ------------------------------------------ ##
14686## Report this to the AC_PACKAGE_NAME lists. ##
14687## ------------------------------------------ ##
14688_ASBOX
14689 ) |
14690 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14691 ;;
14692esac
b4e70030
JB
14693echo "$as_me:$LINENO: checking for $ac_header" >&5
14694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14695if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14697else
14698 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14699fi
b4e70030
JB
14700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14702
5ee754fc 14703fi
bec39cab
AC
14704if test `eval echo '${'$as_ac_Header'}'` = yes; then
14705 cat >>confdefs.h <<_ACEOF
14706#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14707_ACEOF
14708
5ee754fc 14709fi
bec39cab 14710
5ee754fc
MK
14711done
14712
bec39cab
AC
14713
14714
14715for ac_header in sys/ptrace.h ptrace.h
5ee754fc 14716do
bec39cab 14717as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14718if eval "test \"\${$as_ac_Header+set}\" = set"; then
14719 echo "$as_me:$LINENO: checking for $ac_header" >&5
14720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14721if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14723fi
b4e70030
JB
14724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14725echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14726else
14727 # Is the header compilable?
b4e70030
JB
14728echo "$as_me:$LINENO: checking $ac_header usability" >&5
14729echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14730cat >conftest.$ac_ext <<_ACEOF
14731/* confdefs.h. */
14732_ACEOF
14733cat confdefs.h >>conftest.$ac_ext
14734cat >>conftest.$ac_ext <<_ACEOF
14735/* end confdefs.h. */
14736$ac_includes_default
14737#include <$ac_header>
14738_ACEOF
14739rm -f conftest.$ac_objext
14740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14741 (eval $ac_compile) 2>conftest.er1
14742 ac_status=$?
14743 grep -v '^ *+' conftest.er1 >conftest.err
14744 rm -f conftest.er1
14745 cat conftest.err >&5
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); } &&
b4e70030
JB
14748 { ac_try='test -z "$ac_c_werror_flag"
14749 || test ! -s conftest.err'
bec39cab
AC
14750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751 (eval $ac_try) 2>&5
14752 ac_status=$?
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); }; } &&
14755 { ac_try='test -s conftest.$ac_objext'
14756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757 (eval $ac_try) 2>&5
14758 ac_status=$?
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; }; then
14761 ac_header_compiler=yes
14762else
14763 echo "$as_me: failed program was:" >&5
14764sed 's/^/| /' conftest.$ac_ext >&5
14765
b4e70030 14766ac_header_compiler=no
bec39cab
AC
14767fi
14768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14769echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14770echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14771
14772# Is the header present?
b4e70030
JB
14773echo "$as_me:$LINENO: checking $ac_header presence" >&5
14774echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14775cat >conftest.$ac_ext <<_ACEOF
14776/* confdefs.h. */
14777_ACEOF
14778cat confdefs.h >>conftest.$ac_ext
14779cat >>conftest.$ac_ext <<_ACEOF
14780/* end confdefs.h. */
14781#include <$ac_header>
14782_ACEOF
14783if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14785 ac_status=$?
14786 grep -v '^ *+' conftest.er1 >conftest.err
14787 rm -f conftest.er1
14788 cat conftest.err >&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); } >/dev/null; then
14791 if test -s conftest.err; then
14792 ac_cpp_err=$ac_c_preproc_warn_flag
14793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14794 else
14795 ac_cpp_err=
14796 fi
14797else
14798 ac_cpp_err=yes
5ee754fc 14799fi
bec39cab
AC
14800if test -z "$ac_cpp_err"; then
14801 ac_header_preproc=yes
5ee754fc 14802else
bec39cab
AC
14803 echo "$as_me: failed program was:" >&5
14804sed 's/^/| /' conftest.$ac_ext >&5
14805
14806 ac_header_preproc=no
5ee754fc 14807fi
bec39cab 14808rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14809echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14810echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14811
bec39cab
AC
14812# So? What about this header?
14813case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14814 yes:no: )
14815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14816echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14818echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14819 ac_header_preproc=yes
14820 ;;
14821 no:yes:* )
14822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14823echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14825echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14827echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14829echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14831echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14833echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14834 (
14835 cat <<\_ASBOX
14836## ------------------------------------------ ##
14837## Report this to the AC_PACKAGE_NAME lists. ##
14838## ------------------------------------------ ##
14839_ASBOX
14840 ) |
14841 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14842 ;;
14843esac
b4e70030
JB
14844echo "$as_me:$LINENO: checking for $ac_header" >&5
14845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14846if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14847 echo $ECHO_N "(cached) $ECHO_C" >&6
14848else
14849 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14850fi
b4e70030
JB
14851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14852echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14853
5ee754fc 14854fi
bec39cab
AC
14855if test `eval echo '${'$as_ac_Header'}'` = yes; then
14856 cat >>confdefs.h <<_ACEOF
14857#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14858_ACEOF
14859
5ee754fc 14860fi
bec39cab 14861
5ee754fc
MK
14862done
14863
bec39cab
AC
14864
14865
14866for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 14867do
bec39cab 14868as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14869if eval "test \"\${$as_ac_Header+set}\" = set"; then
14870 echo "$as_me:$LINENO: checking for $ac_header" >&5
14871echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14872if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14873 echo $ECHO_N "(cached) $ECHO_C" >&6
14874fi
b4e70030
JB
14875echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14876echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14877else
14878 # Is the header compilable?
b4e70030
JB
14879echo "$as_me:$LINENO: checking $ac_header usability" >&5
14880echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14881cat >conftest.$ac_ext <<_ACEOF
14882/* confdefs.h. */
14883_ACEOF
14884cat confdefs.h >>conftest.$ac_ext
14885cat >>conftest.$ac_ext <<_ACEOF
14886/* end confdefs.h. */
14887$ac_includes_default
14888#include <$ac_header>
14889_ACEOF
14890rm -f conftest.$ac_objext
14891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14892 (eval $ac_compile) 2>conftest.er1
14893 ac_status=$?
14894 grep -v '^ *+' conftest.er1 >conftest.err
14895 rm -f conftest.er1
14896 cat conftest.err >&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); } &&
b4e70030
JB
14899 { ac_try='test -z "$ac_c_werror_flag"
14900 || test ! -s conftest.err'
bec39cab
AC
14901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14902 (eval $ac_try) 2>&5
14903 ac_status=$?
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; } &&
14906 { ac_try='test -s conftest.$ac_objext'
14907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14908 (eval $ac_try) 2>&5
14909 ac_status=$?
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; }; then
14912 ac_header_compiler=yes
14913else
14914 echo "$as_me: failed program was:" >&5
14915sed 's/^/| /' conftest.$ac_ext >&5
14916
b4e70030 14917ac_header_compiler=no
bec39cab
AC
14918fi
14919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14920echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14921echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14922
14923# Is the header present?
b4e70030
JB
14924echo "$as_me:$LINENO: checking $ac_header presence" >&5
14925echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14926cat >conftest.$ac_ext <<_ACEOF
14927/* confdefs.h. */
14928_ACEOF
14929cat confdefs.h >>conftest.$ac_ext
14930cat >>conftest.$ac_ext <<_ACEOF
14931/* end confdefs.h. */
14932#include <$ac_header>
14933_ACEOF
14934if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14936 ac_status=$?
14937 grep -v '^ *+' conftest.er1 >conftest.err
14938 rm -f conftest.er1
14939 cat conftest.err >&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } >/dev/null; then
14942 if test -s conftest.err; then
14943 ac_cpp_err=$ac_c_preproc_warn_flag
14944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14945 else
14946 ac_cpp_err=
14947 fi
14948else
14949 ac_cpp_err=yes
5ee754fc 14950fi
bec39cab
AC
14951if test -z "$ac_cpp_err"; then
14952 ac_header_preproc=yes
5ee754fc 14953else
bec39cab
AC
14954 echo "$as_me: failed program was:" >&5
14955sed 's/^/| /' conftest.$ac_ext >&5
14956
14957 ac_header_preproc=no
5ee754fc 14958fi
bec39cab 14959rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14960echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14961echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14962
bec39cab
AC
14963# So? What about this header?
14964case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14965 yes:no: )
14966 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14967echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14969echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14970 ac_header_preproc=yes
14971 ;;
14972 no:yes:* )
14973 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14974echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14976echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14977 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14978echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14979 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14980echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14982echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14983 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14984echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14985 (
14986 cat <<\_ASBOX
14987## ------------------------------------------ ##
14988## Report this to the AC_PACKAGE_NAME lists. ##
14989## ------------------------------------------ ##
14990_ASBOX
14991 ) |
14992 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14993 ;;
14994esac
b4e70030
JB
14995echo "$as_me:$LINENO: checking for $ac_header" >&5
14996echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14997if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14998 echo $ECHO_N "(cached) $ECHO_C" >&6
14999else
15000 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 15001fi
b4e70030
JB
15002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15003echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15004
5ee754fc 15005fi
bec39cab
AC
15006if test `eval echo '${'$as_ac_Header'}'` = yes; then
15007 cat >>confdefs.h <<_ACEOF
15008#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15009_ACEOF
15010
5ee754fc 15011fi
bec39cab 15012
5ee754fc
MK
15013done
15014
bec39cab
AC
15015
15016for ac_header in sys/select.h
5ee754fc 15017do
bec39cab 15018as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15019if eval "test \"\${$as_ac_Header+set}\" = set"; then
15020 echo "$as_me:$LINENO: checking for $ac_header" >&5
15021echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15022if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15023 echo $ECHO_N "(cached) $ECHO_C" >&6
15024fi
b4e70030
JB
15025echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15026echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15027else
15028 # Is the header compilable?
b4e70030
JB
15029echo "$as_me:$LINENO: checking $ac_header usability" >&5
15030echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15031cat >conftest.$ac_ext <<_ACEOF
15032/* confdefs.h. */
15033_ACEOF
15034cat confdefs.h >>conftest.$ac_ext
15035cat >>conftest.$ac_ext <<_ACEOF
15036/* end confdefs.h. */
15037$ac_includes_default
15038#include <$ac_header>
15039_ACEOF
15040rm -f conftest.$ac_objext
15041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15042 (eval $ac_compile) 2>conftest.er1
15043 ac_status=$?
15044 grep -v '^ *+' conftest.er1 >conftest.err
15045 rm -f conftest.er1
15046 cat conftest.err >&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } &&
b4e70030
JB
15049 { ac_try='test -z "$ac_c_werror_flag"
15050 || test ! -s conftest.err'
bec39cab
AC
15051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052 (eval $ac_try) 2>&5
15053 ac_status=$?
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); }; } &&
15056 { ac_try='test -s conftest.$ac_objext'
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15059 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; }; then
15062 ac_header_compiler=yes
15063else
15064 echo "$as_me: failed program was:" >&5
15065sed 's/^/| /' conftest.$ac_ext >&5
15066
b4e70030 15067ac_header_compiler=no
bec39cab
AC
15068fi
15069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15070echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15071echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15072
15073# Is the header present?
b4e70030
JB
15074echo "$as_me:$LINENO: checking $ac_header presence" >&5
15075echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15076cat >conftest.$ac_ext <<_ACEOF
15077/* confdefs.h. */
15078_ACEOF
15079cat confdefs.h >>conftest.$ac_ext
15080cat >>conftest.$ac_ext <<_ACEOF
15081/* end confdefs.h. */
15082#include <$ac_header>
15083_ACEOF
15084if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15086 ac_status=$?
15087 grep -v '^ *+' conftest.er1 >conftest.err
15088 rm -f conftest.er1
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } >/dev/null; then
15092 if test -s conftest.err; then
15093 ac_cpp_err=$ac_c_preproc_warn_flag
15094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15095 else
15096 ac_cpp_err=
15097 fi
15098else
15099 ac_cpp_err=yes
5ee754fc 15100fi
bec39cab
AC
15101if test -z "$ac_cpp_err"; then
15102 ac_header_preproc=yes
5ee754fc 15103else
bec39cab
AC
15104 echo "$as_me: failed program was:" >&5
15105sed 's/^/| /' conftest.$ac_ext >&5
15106
15107 ac_header_preproc=no
5ee754fc 15108fi
bec39cab 15109rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15110echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15111echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 15112
bec39cab
AC
15113# So? What about this header?
15114case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15115 yes:no: )
15116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15117echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15119echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15120 ac_header_preproc=yes
15121 ;;
15122 no:yes:* )
15123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15124echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15126echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15128echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15130echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15132echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15134echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15135 (
15136 cat <<\_ASBOX
15137## ------------------------------------------ ##
15138## Report this to the AC_PACKAGE_NAME lists. ##
15139## ------------------------------------------ ##
15140_ASBOX
15141 ) |
15142 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15143 ;;
15144esac
b4e70030
JB
15145echo "$as_me:$LINENO: checking for $ac_header" >&5
15146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15147if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15148 echo $ECHO_N "(cached) $ECHO_C" >&6
15149else
15150 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 15151fi
b4e70030
JB
15152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15153echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15154
5ee754fc 15155fi
bec39cab
AC
15156if test `eval echo '${'$as_ac_Header'}'` = yes; then
15157 cat >>confdefs.h <<_ACEOF
15158#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15159_ACEOF
15160
5ee754fc 15161fi
bec39cab 15162
5ee754fc
MK
15163done
15164
bec39cab
AC
15165
15166for ac_header in sys/syscall.h
5ee754fc 15167do
bec39cab 15168as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15169if eval "test \"\${$as_ac_Header+set}\" = set"; then
15170 echo "$as_me:$LINENO: checking for $ac_header" >&5
15171echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15172if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15174fi
b4e70030
JB
15175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15176echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15177else
15178 # Is the header compilable?
b4e70030
JB
15179echo "$as_me:$LINENO: checking $ac_header usability" >&5
15180echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15181cat >conftest.$ac_ext <<_ACEOF
15182/* confdefs.h. */
15183_ACEOF
15184cat confdefs.h >>conftest.$ac_ext
15185cat >>conftest.$ac_ext <<_ACEOF
15186/* end confdefs.h. */
15187$ac_includes_default
15188#include <$ac_header>
15189_ACEOF
15190rm -f conftest.$ac_objext
15191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15192 (eval $ac_compile) 2>conftest.er1
15193 ac_status=$?
15194 grep -v '^ *+' conftest.er1 >conftest.err
15195 rm -f conftest.er1
15196 cat conftest.err >&5
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); } &&
b4e70030
JB
15199 { ac_try='test -z "$ac_c_werror_flag"
15200 || test ! -s conftest.err'
bec39cab
AC
15201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202 (eval $ac_try) 2>&5
15203 ac_status=$?
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); }; } &&
15206 { ac_try='test -s conftest.$ac_objext'
15207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208 (eval $ac_try) 2>&5
15209 ac_status=$?
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); }; }; then
15212 ac_header_compiler=yes
15213else
15214 echo "$as_me: failed program was:" >&5
15215sed 's/^/| /' conftest.$ac_ext >&5
15216
b4e70030 15217ac_header_compiler=no
bec39cab
AC
15218fi
15219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15220echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15221echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15222
15223# Is the header present?
b4e70030
JB
15224echo "$as_me:$LINENO: checking $ac_header presence" >&5
15225echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15226cat >conftest.$ac_ext <<_ACEOF
15227/* confdefs.h. */
15228_ACEOF
15229cat confdefs.h >>conftest.$ac_ext
15230cat >>conftest.$ac_ext <<_ACEOF
15231/* end confdefs.h. */
15232#include <$ac_header>
15233_ACEOF
15234if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15236 ac_status=$?
15237 grep -v '^ *+' conftest.er1 >conftest.err
15238 rm -f conftest.er1
15239 cat conftest.err >&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } >/dev/null; then
15242 if test -s conftest.err; then
15243 ac_cpp_err=$ac_c_preproc_warn_flag
15244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15245 else
15246 ac_cpp_err=
15247 fi
15248else
15249 ac_cpp_err=yes
5ee754fc 15250fi
bec39cab
AC
15251if test -z "$ac_cpp_err"; then
15252 ac_header_preproc=yes
5ee754fc 15253else
bec39cab
AC
15254 echo "$as_me: failed program was:" >&5
15255sed 's/^/| /' conftest.$ac_ext >&5
15256
15257 ac_header_preproc=no
5ee754fc 15258fi
bec39cab 15259rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15260echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15261echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 15262
bec39cab
AC
15263# So? What about this header?
15264case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15265 yes:no: )
15266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15267echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15269echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15270 ac_header_preproc=yes
15271 ;;
15272 no:yes:* )
15273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15274echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15276echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15278echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15280echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15282echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15284echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15285 (
15286 cat <<\_ASBOX
15287## ------------------------------------------ ##
15288## Report this to the AC_PACKAGE_NAME lists. ##
15289## ------------------------------------------ ##
15290_ASBOX
15291 ) |
15292 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15293 ;;
15294esac
b4e70030
JB
15295echo "$as_me:$LINENO: checking for $ac_header" >&5
15296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15297if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15298 echo $ECHO_N "(cached) $ECHO_C" >&6
15299else
15300 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 15301fi
b4e70030
JB
15302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15303echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15304
5ee754fc 15305fi
bec39cab
AC
15306if test `eval echo '${'$as_ac_Header'}'` = yes; then
15307 cat >>confdefs.h <<_ACEOF
15308#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15309_ACEOF
15310
5ee754fc 15311fi
bec39cab 15312
5ee754fc
MK
15313done
15314
bec39cab
AC
15315
15316for ac_header in sys/types.h
5ee754fc 15317do
bec39cab 15318as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15319if eval "test \"\${$as_ac_Header+set}\" = set"; then
15320 echo "$as_me:$LINENO: checking for $ac_header" >&5
15321echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15322if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15324fi
b4e70030
JB
15325echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15326echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15327else
15328 # Is the header compilable?
b4e70030
JB
15329echo "$as_me:$LINENO: checking $ac_header usability" >&5
15330echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15331cat >conftest.$ac_ext <<_ACEOF
15332/* confdefs.h. */
15333_ACEOF
15334cat confdefs.h >>conftest.$ac_ext
15335cat >>conftest.$ac_ext <<_ACEOF
15336/* end confdefs.h. */
15337$ac_includes_default
15338#include <$ac_header>
15339_ACEOF
15340rm -f conftest.$ac_objext
15341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15342 (eval $ac_compile) 2>conftest.er1
15343 ac_status=$?
15344 grep -v '^ *+' conftest.er1 >conftest.err
15345 rm -f conftest.er1
15346 cat conftest.err >&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } &&
b4e70030
JB
15349 { ac_try='test -z "$ac_c_werror_flag"
15350 || test ! -s conftest.err'
bec39cab
AC
15351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352 (eval $ac_try) 2>&5
15353 ac_status=$?
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; } &&
15356 { ac_try='test -s conftest.$ac_objext'
15357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358 (eval $ac_try) 2>&5
15359 ac_status=$?
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); }; }; then
15362 ac_header_compiler=yes
15363else
15364 echo "$as_me: failed program was:" >&5
15365sed 's/^/| /' conftest.$ac_ext >&5
15366
b4e70030 15367ac_header_compiler=no
bec39cab
AC
15368fi
15369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15370echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15371echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15372
15373# Is the header present?
b4e70030
JB
15374echo "$as_me:$LINENO: checking $ac_header presence" >&5
15375echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15376cat >conftest.$ac_ext <<_ACEOF
15377/* confdefs.h. */
15378_ACEOF
15379cat confdefs.h >>conftest.$ac_ext
15380cat >>conftest.$ac_ext <<_ACEOF
15381/* end confdefs.h. */
15382#include <$ac_header>
15383_ACEOF
15384if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15386 ac_status=$?
15387 grep -v '^ *+' conftest.er1 >conftest.err
15388 rm -f conftest.er1
15389 cat conftest.err >&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } >/dev/null; then
15392 if test -s conftest.err; then
15393 ac_cpp_err=$ac_c_preproc_warn_flag
15394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15395 else
15396 ac_cpp_err=
15397 fi
15398else
15399 ac_cpp_err=yes
5ee754fc 15400fi
bec39cab
AC
15401if test -z "$ac_cpp_err"; then
15402 ac_header_preproc=yes
5ee754fc 15403else
bec39cab
AC
15404 echo "$as_me: failed program was:" >&5
15405sed 's/^/| /' conftest.$ac_ext >&5
15406
15407 ac_header_preproc=no
5ee754fc 15408fi
bec39cab 15409rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15410echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15411echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 15412
bec39cab
AC
15413# So? What about this header?
15414case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15415 yes:no: )
15416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15417echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15419echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15420 ac_header_preproc=yes
15421 ;;
15422 no:yes:* )
15423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15424echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15426echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15428echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15430echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15432echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15434echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15435 (
15436 cat <<\_ASBOX
15437## ------------------------------------------ ##
15438## Report this to the AC_PACKAGE_NAME lists. ##
15439## ------------------------------------------ ##
15440_ASBOX
15441 ) |
15442 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15443 ;;
15444esac
b4e70030
JB
15445echo "$as_me:$LINENO: checking for $ac_header" >&5
15446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15447if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15449else
15450 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 15451fi
b4e70030
JB
15452echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15453echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15454
5ee754fc 15455fi
bec39cab
AC
15456if test `eval echo '${'$as_ac_Header'}'` = yes; then
15457 cat >>confdefs.h <<_ACEOF
15458#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15459_ACEOF
15460
5ee754fc 15461fi
bec39cab 15462
5ee754fc
MK
15463done
15464
bec39cab
AC
15465
15466for ac_header in sys/user.h
5ee754fc 15467do
bec39cab 15468as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15469echo "$as_me:$LINENO: checking for $ac_header" >&5
15470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15471if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15472 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 15473else
7cb9022a 15474 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
15475/* confdefs.h. */
15476_ACEOF
15477cat confdefs.h >>conftest.$ac_ext
15478cat >>conftest.$ac_ext <<_ACEOF
15479/* end confdefs.h. */
7cb9022a
MK
15480#if HAVE_SYS_PARAM_H
15481# include <sys/param.h>
15482#endif
15483
15484
bec39cab
AC
15485#include <$ac_header>
15486_ACEOF
15487rm -f conftest.$ac_objext
15488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15489 (eval $ac_compile) 2>conftest.er1
15490 ac_status=$?
15491 grep -v '^ *+' conftest.er1 >conftest.err
15492 rm -f conftest.er1
15493 cat conftest.err >&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } &&
b4e70030
JB
15496 { ac_try='test -z "$ac_c_werror_flag"
15497 || test ! -s conftest.err'
bec39cab
AC
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15500 ac_status=$?
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; } &&
15503 { ac_try='test -s conftest.$ac_objext'
15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15506 ac_status=$?
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; }; then
7cb9022a 15509 eval "$as_ac_Header=yes"
bec39cab
AC
15510else
15511 echo "$as_me: failed program was:" >&5
15512sed 's/^/| /' conftest.$ac_ext >&5
15513
b4e70030 15514eval "$as_ac_Header=no"
bec39cab
AC
15515fi
15516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 15517fi
b4e70030
JB
15518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15520if test `eval echo '${'$as_ac_Header'}'` = yes; then
15521 cat >>confdefs.h <<_ACEOF
15522#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15523_ACEOF
15524
5ee754fc 15525fi
bec39cab 15526
5ee754fc
MK
15527done
15528
bec39cab
AC
15529
15530
15531for ac_header in sys/wait.h wait.h
5ee754fc 15532do
bec39cab 15533as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15534if eval "test \"\${$as_ac_Header+set}\" = set"; then
15535 echo "$as_me:$LINENO: checking for $ac_header" >&5
15536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15537if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15538 echo $ECHO_N "(cached) $ECHO_C" >&6
15539fi
b4e70030
JB
15540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15541echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15542else
15543 # Is the header compilable?
b4e70030
JB
15544echo "$as_me:$LINENO: checking $ac_header usability" >&5
15545echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15546cat >conftest.$ac_ext <<_ACEOF
15547/* confdefs.h. */
15548_ACEOF
15549cat confdefs.h >>conftest.$ac_ext
15550cat >>conftest.$ac_ext <<_ACEOF
15551/* end confdefs.h. */
15552$ac_includes_default
15553#include <$ac_header>
15554_ACEOF
15555rm -f conftest.$ac_objext
15556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15557 (eval $ac_compile) 2>conftest.er1
15558 ac_status=$?
15559 grep -v '^ *+' conftest.er1 >conftest.err
15560 rm -f conftest.er1
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } &&
b4e70030
JB
15564 { ac_try='test -z "$ac_c_werror_flag"
15565 || test ! -s conftest.err'
bec39cab
AC
15566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15567 (eval $ac_try) 2>&5
15568 ac_status=$?
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); }; } &&
15571 { ac_try='test -s conftest.$ac_objext'
15572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15573 (eval $ac_try) 2>&5
15574 ac_status=$?
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; }; then
15577 ac_header_compiler=yes
15578else
15579 echo "$as_me: failed program was:" >&5
15580sed 's/^/| /' conftest.$ac_ext >&5
15581
b4e70030 15582ac_header_compiler=no
bec39cab
AC
15583fi
15584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15585echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15586echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15587
15588# Is the header present?
b4e70030
JB
15589echo "$as_me:$LINENO: checking $ac_header presence" >&5
15590echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15591cat >conftest.$ac_ext <<_ACEOF
15592/* confdefs.h. */
15593_ACEOF
15594cat confdefs.h >>conftest.$ac_ext
15595cat >>conftest.$ac_ext <<_ACEOF
15596/* end confdefs.h. */
15597#include <$ac_header>
15598_ACEOF
15599if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15601 ac_status=$?
15602 grep -v '^ *+' conftest.er1 >conftest.err
15603 rm -f conftest.er1
15604 cat conftest.err >&5
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); } >/dev/null; then
15607 if test -s conftest.err; then
15608 ac_cpp_err=$ac_c_preproc_warn_flag
15609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15610 else
15611 ac_cpp_err=
15612 fi
15613else
15614 ac_cpp_err=yes
5ee754fc 15615fi
bec39cab
AC
15616if test -z "$ac_cpp_err"; then
15617 ac_header_preproc=yes
5ee754fc 15618else
bec39cab
AC
15619 echo "$as_me: failed program was:" >&5
15620sed 's/^/| /' conftest.$ac_ext >&5
15621
15622 ac_header_preproc=no
5ee754fc 15623fi
bec39cab 15624rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15625echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15626echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 15627
bec39cab
AC
15628# So? What about this header?
15629case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15630 yes:no: )
15631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15632echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15634echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15635 ac_header_preproc=yes
15636 ;;
15637 no:yes:* )
15638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15639echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15641echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15643echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15645echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15647echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15649echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15650 (
15651 cat <<\_ASBOX
15652## ------------------------------------------ ##
15653## Report this to the AC_PACKAGE_NAME lists. ##
15654## ------------------------------------------ ##
15655_ASBOX
15656 ) |
15657 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15658 ;;
15659esac
b4e70030
JB
15660echo "$as_me:$LINENO: checking for $ac_header" >&5
15661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15662if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15663 echo $ECHO_N "(cached) $ECHO_C" >&6
15664else
15665 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 15666fi
b4e70030
JB
15667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15668echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15669
9608ab8b 15670fi
bec39cab
AC
15671if test `eval echo '${'$as_ac_Header'}'` = yes; then
15672 cat >>confdefs.h <<_ACEOF
15673#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15674_ACEOF
15675
9608ab8b 15676fi
bec39cab 15677
9608ab8b 15678done
5ee754fc 15679
bec39cab
AC
15680
15681
15682
15683for ac_header in termios.h termio.h sgtty.h
5ee754fc 15684do
bec39cab 15685as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15686if eval "test \"\${$as_ac_Header+set}\" = set"; then
15687 echo "$as_me:$LINENO: checking for $ac_header" >&5
15688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15689if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15690 echo $ECHO_N "(cached) $ECHO_C" >&6
15691fi
b4e70030
JB
15692echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15693echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15694else
15695 # Is the header compilable?
b4e70030
JB
15696echo "$as_me:$LINENO: checking $ac_header usability" >&5
15697echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15698cat >conftest.$ac_ext <<_ACEOF
15699/* confdefs.h. */
15700_ACEOF
15701cat confdefs.h >>conftest.$ac_ext
15702cat >>conftest.$ac_ext <<_ACEOF
15703/* end confdefs.h. */
15704$ac_includes_default
15705#include <$ac_header>
15706_ACEOF
15707rm -f conftest.$ac_objext
15708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15709 (eval $ac_compile) 2>conftest.er1
15710 ac_status=$?
15711 grep -v '^ *+' conftest.er1 >conftest.err
15712 rm -f conftest.er1
15713 cat conftest.err >&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); } &&
b4e70030
JB
15716 { ac_try='test -z "$ac_c_werror_flag"
15717 || test ! -s conftest.err'
bec39cab
AC
15718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15719 (eval $ac_try) 2>&5
15720 ac_status=$?
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); }; } &&
15723 { ac_try='test -s conftest.$ac_objext'
15724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15725 (eval $ac_try) 2>&5
15726 ac_status=$?
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; }; then
15729 ac_header_compiler=yes
15730else
15731 echo "$as_me: failed program was:" >&5
15732sed 's/^/| /' conftest.$ac_ext >&5
15733
b4e70030 15734ac_header_compiler=no
bec39cab
AC
15735fi
15736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15737echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15738echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15739
15740# Is the header present?
b4e70030
JB
15741echo "$as_me:$LINENO: checking $ac_header presence" >&5
15742echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15743cat >conftest.$ac_ext <<_ACEOF
15744/* confdefs.h. */
15745_ACEOF
15746cat confdefs.h >>conftest.$ac_ext
15747cat >>conftest.$ac_ext <<_ACEOF
15748/* end confdefs.h. */
15749#include <$ac_header>
15750_ACEOF
15751if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15753 ac_status=$?
15754 grep -v '^ *+' conftest.er1 >conftest.err
15755 rm -f conftest.er1
15756 cat conftest.err >&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); } >/dev/null; then
15759 if test -s conftest.err; then
15760 ac_cpp_err=$ac_c_preproc_warn_flag
15761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15762 else
15763 ac_cpp_err=
15764 fi
15765else
15766 ac_cpp_err=yes
9608ab8b 15767fi
bec39cab
AC
15768if test -z "$ac_cpp_err"; then
15769 ac_header_preproc=yes
9608ab8b 15770else
bec39cab
AC
15771 echo "$as_me: failed program was:" >&5
15772sed 's/^/| /' conftest.$ac_ext >&5
15773
15774 ac_header_preproc=no
9608ab8b 15775fi
bec39cab 15776rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15777echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15778echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 15779
bec39cab
AC
15780# So? What about this header?
15781case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15782 yes:no: )
15783 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15784echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15786echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15787 ac_header_preproc=yes
15788 ;;
15789 no:yes:* )
15790 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15791echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15792 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15793echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15794 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15795echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15796 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15797echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15799echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15800 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15801echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15802 (
15803 cat <<\_ASBOX
15804## ------------------------------------------ ##
15805## Report this to the AC_PACKAGE_NAME lists. ##
15806## ------------------------------------------ ##
15807_ASBOX
15808 ) |
15809 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15810 ;;
15811esac
b4e70030
JB
15812echo "$as_me:$LINENO: checking for $ac_header" >&5
15813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15814if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15815 echo $ECHO_N "(cached) $ECHO_C" >&6
15816else
15817 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 15818fi
b4e70030
JB
15819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15820echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15821
9608ab8b 15822fi
bec39cab
AC
15823if test `eval echo '${'$as_ac_Header'}'` = yes; then
15824 cat >>confdefs.h <<_ACEOF
15825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15826_ACEOF
15827
9608ab8b 15828fi
bec39cab 15829
5ee754fc 15830done
9608ab8b 15831
bec39cab
AC
15832
15833for ac_header in unistd.h
78434e59 15834do
bec39cab 15835as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15836if eval "test \"\${$as_ac_Header+set}\" = set"; then
15837 echo "$as_me:$LINENO: checking for $ac_header" >&5
15838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15839if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15840 echo $ECHO_N "(cached) $ECHO_C" >&6
15841fi
b4e70030
JB
15842echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15843echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15844else
15845 # Is the header compilable?
b4e70030
JB
15846echo "$as_me:$LINENO: checking $ac_header usability" >&5
15847echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15848cat >conftest.$ac_ext <<_ACEOF
15849/* confdefs.h. */
15850_ACEOF
15851cat confdefs.h >>conftest.$ac_ext
15852cat >>conftest.$ac_ext <<_ACEOF
15853/* end confdefs.h. */
15854$ac_includes_default
15855#include <$ac_header>
15856_ACEOF
15857rm -f conftest.$ac_objext
15858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15859 (eval $ac_compile) 2>conftest.er1
15860 ac_status=$?
15861 grep -v '^ *+' conftest.er1 >conftest.err
15862 rm -f conftest.er1
15863 cat conftest.err >&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); } &&
b4e70030
JB
15866 { ac_try='test -z "$ac_c_werror_flag"
15867 || test ! -s conftest.err'
bec39cab
AC
15868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15869 (eval $ac_try) 2>&5
15870 ac_status=$?
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); }; } &&
15873 { ac_try='test -s conftest.$ac_objext'
15874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875 (eval $ac_try) 2>&5
15876 ac_status=$?
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; }; then
15879 ac_header_compiler=yes
15880else
15881 echo "$as_me: failed program was:" >&5
15882sed 's/^/| /' conftest.$ac_ext >&5
15883
b4e70030 15884ac_header_compiler=no
bec39cab
AC
15885fi
15886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15887echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15888echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15889
15890# Is the header present?
b4e70030
JB
15891echo "$as_me:$LINENO: checking $ac_header presence" >&5
15892echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15893cat >conftest.$ac_ext <<_ACEOF
15894/* confdefs.h. */
15895_ACEOF
15896cat confdefs.h >>conftest.$ac_ext
15897cat >>conftest.$ac_ext <<_ACEOF
15898/* end confdefs.h. */
15899#include <$ac_header>
15900_ACEOF
15901if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15903 ac_status=$?
15904 grep -v '^ *+' conftest.er1 >conftest.err
15905 rm -f conftest.er1
15906 cat conftest.err >&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); } >/dev/null; then
15909 if test -s conftest.err; then
15910 ac_cpp_err=$ac_c_preproc_warn_flag
15911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15912 else
15913 ac_cpp_err=
15914 fi
15915else
15916 ac_cpp_err=yes
78434e59 15917fi
bec39cab
AC
15918if test -z "$ac_cpp_err"; then
15919 ac_header_preproc=yes
78434e59 15920else
bec39cab
AC
15921 echo "$as_me: failed program was:" >&5
15922sed 's/^/| /' conftest.$ac_ext >&5
15923
15924 ac_header_preproc=no
78434e59 15925fi
bec39cab 15926rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15927echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15928echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 15929
bec39cab
AC
15930# So? What about this header?
15931case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15932 yes:no: )
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15934echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15936echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15937 ac_header_preproc=yes
15938 ;;
15939 no:yes:* )
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15941echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15943echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15945echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15947echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15949echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15951echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15952 (
15953 cat <<\_ASBOX
15954## ------------------------------------------ ##
15955## Report this to the AC_PACKAGE_NAME lists. ##
15956## ------------------------------------------ ##
15957_ASBOX
15958 ) |
15959 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15960 ;;
15961esac
b4e70030
JB
15962echo "$as_me:$LINENO: checking for $ac_header" >&5
15963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15964if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15965 echo $ECHO_N "(cached) $ECHO_C" >&6
15966else
15967 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 15968fi
b4e70030
JB
15969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15970echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15971
086ec9eb 15972fi
bec39cab
AC
15973if test `eval echo '${'$as_ac_Header'}'` = yes; then
15974 cat >>confdefs.h <<_ACEOF
15975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15976_ACEOF
15977
086ec9eb 15978fi
bec39cab 15979
086ec9eb
MK
15980done
15981
9608ab8b 15982
b1d19a62 15983# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
15984# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
15985# think that we don't have <curses.h> if we're using GCC.
15986case $host_os in
b1d19a62 15987 solaris2.[789])
5ee754fc 15988 if test "$GCC" = yes; then
bec39cab
AC
15989
15990cat >>confdefs.h <<\_ACEOF
5ee754fc 15991#define _MSE_INT_H 1
bec39cab 15992_ACEOF
5ee754fc
MK
15993
15994 fi ;;
15995esac
bec39cab
AC
15996
15997
15998
15999
16000for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 16001do
bec39cab 16002as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
16003if eval "test \"\${$as_ac_Header+set}\" = set"; then
16004 echo "$as_me:$LINENO: checking for $ac_header" >&5
16005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16006if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16008fi
b4e70030
JB
16009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16010echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
16011else
16012 # Is the header compilable?
b4e70030
JB
16013echo "$as_me:$LINENO: checking $ac_header usability" >&5
16014echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
16015cat >conftest.$ac_ext <<_ACEOF
16016/* confdefs.h. */
16017_ACEOF
16018cat confdefs.h >>conftest.$ac_ext
16019cat >>conftest.$ac_ext <<_ACEOF
16020/* end confdefs.h. */
16021$ac_includes_default
16022#include <$ac_header>
16023_ACEOF
16024rm -f conftest.$ac_objext
16025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16026 (eval $ac_compile) 2>conftest.er1
16027 ac_status=$?
16028 grep -v '^ *+' conftest.er1 >conftest.err
16029 rm -f conftest.er1
16030 cat conftest.err >&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); } &&
b4e70030
JB
16033 { ac_try='test -z "$ac_c_werror_flag"
16034 || test ! -s conftest.err'
bec39cab
AC
16035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036 (eval $ac_try) 2>&5
16037 ac_status=$?
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; } &&
16040 { ac_try='test -s conftest.$ac_objext'
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16043 ac_status=$?
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; }; then
16046 ac_header_compiler=yes
16047else
16048 echo "$as_me: failed program was:" >&5
16049sed 's/^/| /' conftest.$ac_ext >&5
16050
b4e70030 16051ac_header_compiler=no
bec39cab
AC
16052fi
16053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
16054echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16055echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
16056
16057# Is the header present?
b4e70030
JB
16058echo "$as_me:$LINENO: checking $ac_header presence" >&5
16059echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
16060cat >conftest.$ac_ext <<_ACEOF
16061/* confdefs.h. */
16062_ACEOF
16063cat confdefs.h >>conftest.$ac_ext
16064cat >>conftest.$ac_ext <<_ACEOF
16065/* end confdefs.h. */
16066#include <$ac_header>
16067_ACEOF
16068if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16070 ac_status=$?
16071 grep -v '^ *+' conftest.er1 >conftest.err
16072 rm -f conftest.er1
16073 cat conftest.err >&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } >/dev/null; then
16076 if test -s conftest.err; then
16077 ac_cpp_err=$ac_c_preproc_warn_flag
16078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16079 else
16080 ac_cpp_err=
16081 fi
16082else
16083 ac_cpp_err=yes
c906108c 16084fi
bec39cab
AC
16085if test -z "$ac_cpp_err"; then
16086 ac_header_preproc=yes
16087else
16088 echo "$as_me: failed program was:" >&5
16089sed 's/^/| /' conftest.$ac_ext >&5
16090
16091 ac_header_preproc=no
c906108c 16092fi
bec39cab 16093rm -f conftest.err conftest.$ac_ext
b4e70030
JB
16094echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16095echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
16096
16097# So? What about this header?
16098case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16099 yes:no: )
16100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16101echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16103echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16104 ac_header_preproc=yes
16105 ;;
16106 no:yes:* )
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16108echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16110echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16112echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16114echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16116echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16118echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
16119 (
16120 cat <<\_ASBOX
16121## ------------------------------------------ ##
16122## Report this to the AC_PACKAGE_NAME lists. ##
16123## ------------------------------------------ ##
16124_ASBOX
16125 ) |
16126 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
16127 ;;
16128esac
b4e70030
JB
16129echo "$as_me:$LINENO: checking for $ac_header" >&5
16130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16131if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 16132 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 16133else
bec39cab 16134 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 16135fi
b4e70030
JB
16136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16137echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
16138
16139fi
16140if test `eval echo '${'$as_ac_Header'}'` = yes; then
16141 cat >>confdefs.h <<_ACEOF
16142#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16143_ACEOF
16144
16145fi
16146
5ee754fc 16147done
c906108c 16148
bec39cab 16149
065a1afc 16150for ac_header in ncurses/term.h
3b78cdbb 16151do
bec39cab 16152as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
16153if eval "test \"\${$as_ac_Header+set}\" = set"; then
16154 echo "$as_me:$LINENO: checking for $ac_header" >&5
16155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16156if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16158fi
b4e70030
JB
16159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16160echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
16161else
16162 # Is the header compilable?
b4e70030
JB
16163echo "$as_me:$LINENO: checking $ac_header usability" >&5
16164echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
16165cat >conftest.$ac_ext <<_ACEOF
16166/* confdefs.h. */
16167_ACEOF
16168cat confdefs.h >>conftest.$ac_ext
16169cat >>conftest.$ac_ext <<_ACEOF
16170/* end confdefs.h. */
16171$ac_includes_default
16172#include <$ac_header>
16173_ACEOF
16174rm -f conftest.$ac_objext
16175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16176 (eval $ac_compile) 2>conftest.er1
16177 ac_status=$?
16178 grep -v '^ *+' conftest.er1 >conftest.err
16179 rm -f conftest.er1
16180 cat conftest.err >&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } &&
b4e70030
JB
16183 { ac_try='test -z "$ac_c_werror_flag"
16184 || test ! -s conftest.err'
bec39cab
AC
16185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186 (eval $ac_try) 2>&5
16187 ac_status=$?
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); }; } &&
16190 { ac_try='test -s conftest.$ac_objext'
16191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16192 (eval $ac_try) 2>&5
16193 ac_status=$?
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; }; then
16196 ac_header_compiler=yes
16197else
16198 echo "$as_me: failed program was:" >&5
16199sed 's/^/| /' conftest.$ac_ext >&5
16200
b4e70030 16201ac_header_compiler=no
bec39cab
AC
16202fi
16203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
16204echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16205echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
16206
16207# Is the header present?
b4e70030
JB
16208echo "$as_me:$LINENO: checking $ac_header presence" >&5
16209echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
16210cat >conftest.$ac_ext <<_ACEOF
16211/* confdefs.h. */
16212_ACEOF
16213cat confdefs.h >>conftest.$ac_ext
16214cat >>conftest.$ac_ext <<_ACEOF
16215/* end confdefs.h. */
16216#include <$ac_header>
16217_ACEOF
16218if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16220 ac_status=$?
16221 grep -v '^ *+' conftest.er1 >conftest.err
16222 rm -f conftest.er1
16223 cat conftest.err >&5
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); } >/dev/null; then
16226 if test -s conftest.err; then
16227 ac_cpp_err=$ac_c_preproc_warn_flag
16228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16229 else
16230 ac_cpp_err=
16231 fi
16232else
16233 ac_cpp_err=yes
3b78cdbb 16234fi
bec39cab
AC
16235if test -z "$ac_cpp_err"; then
16236 ac_header_preproc=yes
16237else
16238 echo "$as_me: failed program was:" >&5
16239sed 's/^/| /' conftest.$ac_ext >&5
16240
16241 ac_header_preproc=no
3b78cdbb 16242fi
bec39cab 16243rm -f conftest.err conftest.$ac_ext
b4e70030
JB
16244echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16245echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
16246
16247# So? What about this header?
16248case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16249 yes:no: )
16250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16251echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16253echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16254 ac_header_preproc=yes
16255 ;;
16256 no:yes:* )
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16258echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16260echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16262echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16264echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16266echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16268echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
16269 (
16270 cat <<\_ASBOX
16271## ------------------------------------------ ##
16272## Report this to the AC_PACKAGE_NAME lists. ##
16273## ------------------------------------------ ##
16274_ASBOX
16275 ) |
16276 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
16277 ;;
16278esac
b4e70030
JB
16279echo "$as_me:$LINENO: checking for $ac_header" >&5
16280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16281if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 16282 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 16283else
bec39cab
AC
16284 eval "$as_ac_Header=\$ac_header_preproc"
16285fi
b4e70030
JB
16286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16287echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 16288
3b78cdbb 16289fi
bec39cab
AC
16290if test `eval echo '${'$as_ac_Header'}'` = yes; then
16291 cat >>confdefs.h <<_ACEOF
16292#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16293_ACEOF
16294
16295fi
16296
3b78cdbb
DA
16297done
16298
c906108c 16299
065a1afc
JB
16300for ac_header in term.h
16301do
16302as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
16303echo "$as_me:$LINENO: checking for $ac_header" >&5
16304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16305if eval "test \"\${$as_ac_Header+set}\" = set"; then
065a1afc
JB
16306 echo $ECHO_N "(cached) $ECHO_C" >&6
16307else
16308 cat >conftest.$ac_ext <<_ACEOF
16309/* confdefs.h. */
16310_ACEOF
16311cat confdefs.h >>conftest.$ac_ext
16312cat >>conftest.$ac_ext <<_ACEOF
16313/* end confdefs.h. */
16314#if HAVE_CURSES_H
16315# include <curses.h>
16316#endif
16317
16318
16319#include <$ac_header>
16320_ACEOF
16321rm -f conftest.$ac_objext
16322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16323 (eval $ac_compile) 2>conftest.er1
16324 ac_status=$?
16325 grep -v '^ *+' conftest.er1 >conftest.err
16326 rm -f conftest.er1
16327 cat conftest.err >&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); } &&
b4e70030
JB
16330 { ac_try='test -z "$ac_c_werror_flag"
16331 || test ! -s conftest.err'
065a1afc
JB
16332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333 (eval $ac_try) 2>&5
16334 ac_status=$?
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; } &&
16337 { ac_try='test -s conftest.$ac_objext'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16340 ac_status=$?
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; }; then
16343 eval "$as_ac_Header=yes"
16344else
16345 echo "$as_me: failed program was:" >&5
16346sed 's/^/| /' conftest.$ac_ext >&5
16347
b4e70030 16348eval "$as_ac_Header=no"
065a1afc
JB
16349fi
16350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16351fi
b4e70030
JB
16352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16353echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
065a1afc
JB
16354if test `eval echo '${'$as_ac_Header'}'` = yes; then
16355 cat >>confdefs.h <<_ACEOF
16356#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16357_ACEOF
16358
16359fi
16360
16361done
16362
16363
d542061a
UW
16364# Check for HP/UX 64-bit shared library support
16365
16366for ac_header in elf_hp.h
16367do
16368as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16369if eval "test \"\${$as_ac_Header+set}\" = set"; then
16370 echo "$as_me:$LINENO: checking for $ac_header" >&5
16371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16372if eval "test \"\${$as_ac_Header+set}\" = set"; then
16373 echo $ECHO_N "(cached) $ECHO_C" >&6
16374fi
16375echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16376echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16377else
16378 # Is the header compilable?
16379echo "$as_me:$LINENO: checking $ac_header usability" >&5
16380echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16381cat >conftest.$ac_ext <<_ACEOF
16382/* confdefs.h. */
16383_ACEOF
16384cat confdefs.h >>conftest.$ac_ext
16385cat >>conftest.$ac_ext <<_ACEOF
16386/* end confdefs.h. */
16387$ac_includes_default
16388#include <$ac_header>
16389_ACEOF
16390rm -f conftest.$ac_objext
16391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16392 (eval $ac_compile) 2>conftest.er1
16393 ac_status=$?
16394 grep -v '^ *+' conftest.er1 >conftest.err
16395 rm -f conftest.er1
16396 cat conftest.err >&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } &&
16399 { ac_try='test -z "$ac_c_werror_flag"
16400 || test ! -s conftest.err'
16401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402 (eval $ac_try) 2>&5
16403 ac_status=$?
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; } &&
16406 { ac_try='test -s conftest.$ac_objext'
16407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408 (eval $ac_try) 2>&5
16409 ac_status=$?
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; }; then
16412 ac_header_compiler=yes
16413else
16414 echo "$as_me: failed program was:" >&5
16415sed 's/^/| /' conftest.$ac_ext >&5
16416
16417ac_header_compiler=no
16418fi
16419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16420echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16421echo "${ECHO_T}$ac_header_compiler" >&6
16422
16423# Is the header present?
16424echo "$as_me:$LINENO: checking $ac_header presence" >&5
16425echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16426cat >conftest.$ac_ext <<_ACEOF
16427/* confdefs.h. */
16428_ACEOF
16429cat confdefs.h >>conftest.$ac_ext
16430cat >>conftest.$ac_ext <<_ACEOF
16431/* end confdefs.h. */
16432#include <$ac_header>
16433_ACEOF
16434if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16436 ac_status=$?
16437 grep -v '^ *+' conftest.er1 >conftest.err
16438 rm -f conftest.er1
16439 cat conftest.err >&5
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); } >/dev/null; then
16442 if test -s conftest.err; then
16443 ac_cpp_err=$ac_c_preproc_warn_flag
16444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16445 else
16446 ac_cpp_err=
16447 fi
16448else
16449 ac_cpp_err=yes
16450fi
16451if test -z "$ac_cpp_err"; then
16452 ac_header_preproc=yes
16453else
16454 echo "$as_me: failed program was:" >&5
16455sed 's/^/| /' conftest.$ac_ext >&5
16456
16457 ac_header_preproc=no
16458fi
16459rm -f conftest.err conftest.$ac_ext
16460echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16461echo "${ECHO_T}$ac_header_preproc" >&6
16462
16463# So? What about this header?
16464case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16465 yes:no: )
16466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16467echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16469echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16470 ac_header_preproc=yes
16471 ;;
16472 no:yes:* )
16473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16474echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16476echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16478echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16480echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16482echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16484echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16485 (
16486 cat <<\_ASBOX
16487## ------------------------------------------ ##
16488## Report this to the AC_PACKAGE_NAME lists. ##
16489## ------------------------------------------ ##
16490_ASBOX
16491 ) |
16492 sed "s/^/$as_me: WARNING: /" >&2
16493 ;;
16494esac
16495echo "$as_me:$LINENO: checking for $ac_header" >&5
16496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16497if eval "test \"\${$as_ac_Header+set}\" = set"; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16499else
16500 eval "$as_ac_Header=\$ac_header_preproc"
16501fi
16502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16503echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16504
16505fi
16506if test `eval echo '${'$as_ac_Header'}'` = yes; then
16507 cat >>confdefs.h <<_ACEOF
16508#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16509_ACEOF
16510
16511fi
16512
16513done
16514
16515
5ee754fc
MK
16516# FIXME: kettenis/20030102: In most cases we include these
16517# unconditionally, so what's the point in checking these?
bec39cab
AC
16518
16519
16520for ac_header in ctype.h time.h
c906108c 16521do
bec39cab 16522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
16523if eval "test \"\${$as_ac_Header+set}\" = set"; then
16524 echo "$as_me:$LINENO: checking for $ac_header" >&5
16525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16526if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16528fi
b4e70030
JB
16529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16530echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
16531else
16532 # Is the header compilable?
b4e70030
JB
16533echo "$as_me:$LINENO: checking $ac_header usability" >&5
16534echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
16535cat >conftest.$ac_ext <<_ACEOF
16536/* confdefs.h. */
16537_ACEOF
16538cat confdefs.h >>conftest.$ac_ext
16539cat >>conftest.$ac_ext <<_ACEOF
16540/* end confdefs.h. */
16541$ac_includes_default
16542#include <$ac_header>
16543_ACEOF
16544rm -f conftest.$ac_objext
16545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16546 (eval $ac_compile) 2>conftest.er1
16547 ac_status=$?
16548 grep -v '^ *+' conftest.er1 >conftest.err
16549 rm -f conftest.er1
16550 cat conftest.err >&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } &&
b4e70030
JB
16553 { ac_try='test -z "$ac_c_werror_flag"
16554 || test ! -s conftest.err'
bec39cab
AC
16555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; } &&
16560 { ac_try='test -s conftest.$ac_objext'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16563 ac_status=$?
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16566 ac_header_compiler=yes
16567else
16568 echo "$as_me: failed program was:" >&5
16569sed 's/^/| /' conftest.$ac_ext >&5
16570
b4e70030 16571ac_header_compiler=no
bec39cab
AC
16572fi
16573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
16574echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16575echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
16576
16577# Is the header present?
b4e70030
JB
16578echo "$as_me:$LINENO: checking $ac_header presence" >&5
16579echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
16580cat >conftest.$ac_ext <<_ACEOF
16581/* confdefs.h. */
16582_ACEOF
16583cat confdefs.h >>conftest.$ac_ext
16584cat >>conftest.$ac_ext <<_ACEOF
16585/* end confdefs.h. */
16586#include <$ac_header>
16587_ACEOF
16588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16590 ac_status=$?
16591 grep -v '^ *+' conftest.er1 >conftest.err
16592 rm -f conftest.er1
16593 cat conftest.err >&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } >/dev/null; then
16596 if test -s conftest.err; then
16597 ac_cpp_err=$ac_c_preproc_warn_flag
16598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16599 else
16600 ac_cpp_err=
16601 fi
16602else
16603 ac_cpp_err=yes
c906108c 16604fi
bec39cab
AC
16605if test -z "$ac_cpp_err"; then
16606 ac_header_preproc=yes
16607else
16608 echo "$as_me: failed program was:" >&5
16609sed 's/^/| /' conftest.$ac_ext >&5
16610
16611 ac_header_preproc=no
c906108c 16612fi
bec39cab 16613rm -f conftest.err conftest.$ac_ext
b4e70030
JB
16614echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16615echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
16616
16617# So? What about this header?
16618case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16619 yes:no: )
16620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16621echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16623echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16624 ac_header_preproc=yes
16625 ;;
16626 no:yes:* )
16627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16628echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16630echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16632echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16634echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16636echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16638echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
16639 (
16640 cat <<\_ASBOX
16641## ------------------------------------------ ##
16642## Report this to the AC_PACKAGE_NAME lists. ##
16643## ------------------------------------------ ##
16644_ASBOX
16645 ) |
16646 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
16647 ;;
16648esac
b4e70030
JB
16649echo "$as_me:$LINENO: checking for $ac_header" >&5
16650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16651if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 16652 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 16653else
bec39cab
AC
16654 eval "$as_ac_Header=\$ac_header_preproc"
16655fi
b4e70030
JB
16656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
16658
16659fi
16660if test `eval echo '${'$as_ac_Header'}'` = yes; then
16661 cat >>confdefs.h <<_ACEOF
16662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16663_ACEOF
16664
c906108c 16665fi
bec39cab 16666
c906108c
SS
16667done
16668
5ee754fc 16669
d5af19ba
DJ
16670# ------------------------- #
16671# Checks for declarations. #
16672# ------------------------- #
4e8d927d 16673
d5af19ba
DJ
16674echo "$as_me:$LINENO: checking whether free is declared" >&5
16675echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16676if test "${ac_cv_have_decl_free+set}" = set; then
bec39cab 16677 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 16678else
bec39cab
AC
16679 cat >conftest.$ac_ext <<_ACEOF
16680/* confdefs.h. */
16681_ACEOF
16682cat confdefs.h >>conftest.$ac_ext
16683cat >>conftest.$ac_ext <<_ACEOF
16684/* end confdefs.h. */
d5af19ba 16685$ac_includes_default
bec39cab
AC
16686int
16687main ()
16688{
d5af19ba
DJ
16689#ifndef free
16690 char *p = (char *) free;
16691#endif
16692
4e8d927d 16693 ;
bec39cab
AC
16694 return 0;
16695}
16696_ACEOF
16697rm -f conftest.$ac_objext
16698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16699 (eval $ac_compile) 2>conftest.er1
16700 ac_status=$?
16701 grep -v '^ *+' conftest.er1 >conftest.err
16702 rm -f conftest.er1
16703 cat conftest.err >&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } &&
b4e70030
JB
16706 { ac_try='test -z "$ac_c_werror_flag"
16707 || test ! -s conftest.err'
bec39cab
AC
16708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16709 (eval $ac_try) 2>&5
16710 ac_status=$?
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; } &&
16713 { ac_try='test -s conftest.$ac_objext'
16714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715 (eval $ac_try) 2>&5
16716 ac_status=$?
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; }; then
d5af19ba 16719 ac_cv_have_decl_free=yes
40a7debc 16720else
bec39cab
AC
16721 echo "$as_me: failed program was:" >&5
16722sed 's/^/| /' conftest.$ac_ext >&5
16723
d5af19ba 16724ac_cv_have_decl_free=no
40a7debc 16725fi
bec39cab 16726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 16727fi
d5af19ba
DJ
16728echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16729echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16730if test $ac_cv_have_decl_free = yes; then
16731
16732cat >>confdefs.h <<_ACEOF
16733#define HAVE_DECL_FREE 1
16734_ACEOF
16735
16736
666ec76f 16737else
d5af19ba
DJ
16738 cat >>confdefs.h <<_ACEOF
16739#define HAVE_DECL_FREE 0
16740_ACEOF
16741
4e8d927d 16742
d5af19ba
DJ
16743fi
16744echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16745echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16746if test "${ac_cv_have_decl_malloc+set}" = set; then
bec39cab
AC
16747 echo $ECHO_N "(cached) $ECHO_C" >&6
16748else
16749 cat >conftest.$ac_ext <<_ACEOF
16750/* confdefs.h. */
16751_ACEOF
16752cat confdefs.h >>conftest.$ac_ext
16753cat >>conftest.$ac_ext <<_ACEOF
16754/* end confdefs.h. */
d5af19ba 16755$ac_includes_default
666ec76f
MK
16756int
16757main ()
16758{
d5af19ba
DJ
16759#ifndef malloc
16760 char *p = (char *) malloc;
16761#endif
16762
666ec76f
MK
16763 ;
16764 return 0;
16765}
16766_ACEOF
16767rm -f conftest.$ac_objext
16768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16769 (eval $ac_compile) 2>conftest.er1
16770 ac_status=$?
16771 grep -v '^ *+' conftest.er1 >conftest.err
16772 rm -f conftest.er1
16773 cat conftest.err >&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); } &&
b4e70030
JB
16776 { ac_try='test -z "$ac_c_werror_flag"
16777 || test ! -s conftest.err'
666ec76f
MK
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; } &&
16783 { ac_try='test -s conftest.$ac_objext'
16784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785 (eval $ac_try) 2>&5
16786 ac_status=$?
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; }; then
d5af19ba 16789 ac_cv_have_decl_malloc=yes
666ec76f
MK
16790else
16791 echo "$as_me: failed program was:" >&5
16792sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 16793
d5af19ba 16794ac_cv_have_decl_malloc=no
a3828db0
MK
16795fi
16796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16797fi
d5af19ba
DJ
16798echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16799echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
16800if test $ac_cv_have_decl_malloc = yes; then
16801
16802cat >>confdefs.h <<_ACEOF
16803#define HAVE_DECL_MALLOC 1
16804_ACEOF
16805
16806
a3828db0 16807else
d5af19ba
DJ
16808 cat >>confdefs.h <<_ACEOF
16809#define HAVE_DECL_MALLOC 0
16810_ACEOF
16811
4e8d927d 16812
d5af19ba
DJ
16813fi
16814echo "$as_me:$LINENO: checking whether realloc is declared" >&5
16815echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
16816if test "${ac_cv_have_decl_realloc+set}" = set; then
a3828db0
MK
16817 echo $ECHO_N "(cached) $ECHO_C" >&6
16818else
16819 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
16820/* confdefs.h. */
16821_ACEOF
16822cat confdefs.h >>conftest.$ac_ext
16823cat >>conftest.$ac_ext <<_ACEOF
16824/* end confdefs.h. */
d5af19ba 16825$ac_includes_default
bec39cab
AC
16826int
16827main ()
16828{
d5af19ba
DJ
16829#ifndef realloc
16830 char *p = (char *) realloc;
16831#endif
16832
bec39cab
AC
16833 ;
16834 return 0;
16835}
16836_ACEOF
16837rm -f conftest.$ac_objext
16838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16839 (eval $ac_compile) 2>conftest.er1
16840 ac_status=$?
16841 grep -v '^ *+' conftest.er1 >conftest.err
16842 rm -f conftest.er1
16843 cat conftest.err >&5
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); } &&
b4e70030
JB
16846 { ac_try='test -z "$ac_c_werror_flag"
16847 || test ! -s conftest.err'
bec39cab
AC
16848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849 (eval $ac_try) 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; } &&
16853 { ac_try='test -s conftest.$ac_objext'
16854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16855 (eval $ac_try) 2>&5
16856 ac_status=$?
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; }; then
d5af19ba 16859 ac_cv_have_decl_realloc=yes
b9362cc7 16860else
bec39cab
AC
16861 echo "$as_me: failed program was:" >&5
16862sed 's/^/| /' conftest.$ac_ext >&5
16863
d5af19ba 16864ac_cv_have_decl_realloc=no
4e8d927d 16865fi
4e8d927d
DJ
16866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16867fi
b4e70030
JB
16868echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
16869echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
4e8d927d
DJ
16870if test $ac_cv_have_decl_realloc = yes; then
16871
16872cat >>confdefs.h <<_ACEOF
16873#define HAVE_DECL_REALLOC 1
16874_ACEOF
16875
16876
16877else
16878 cat >>confdefs.h <<_ACEOF
16879#define HAVE_DECL_REALLOC 0
16880_ACEOF
16881
16882
16883fi
16884
16885
b4e70030
JB
16886echo "$as_me:$LINENO: checking whether strerror is declared" >&5
16887echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
4e8d927d
DJ
16888if test "${ac_cv_have_decl_strerror+set}" = set; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16890else
16891 cat >conftest.$ac_ext <<_ACEOF
16892/* confdefs.h. */
16893_ACEOF
16894cat confdefs.h >>conftest.$ac_ext
16895cat >>conftest.$ac_ext <<_ACEOF
16896/* end confdefs.h. */
16897$ac_includes_default
16898int
16899main ()
16900{
16901#ifndef strerror
16902 char *p = (char *) strerror;
4e8d927d
DJ
16903#endif
16904
16905 ;
16906 return 0;
16907}
16908_ACEOF
16909rm -f conftest.$ac_objext
16910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16911 (eval $ac_compile) 2>conftest.er1
16912 ac_status=$?
16913 grep -v '^ *+' conftest.er1 >conftest.err
16914 rm -f conftest.er1
16915 cat conftest.err >&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } &&
b4e70030
JB
16918 { ac_try='test -z "$ac_c_werror_flag"
16919 || test ! -s conftest.err'
4e8d927d
DJ
16920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921 (eval $ac_try) 2>&5
16922 ac_status=$?
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; } &&
16925 { ac_try='test -s conftest.$ac_objext'
16926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927 (eval $ac_try) 2>&5
16928 ac_status=$?
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
16931 ac_cv_have_decl_strerror=yes
16932else
16933 echo "$as_me: failed program was:" >&5
16934sed 's/^/| /' conftest.$ac_ext >&5
16935
b4e70030 16936ac_cv_have_decl_strerror=no
4e8d927d 16937fi
4e8d927d
DJ
16938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16939fi
b4e70030
JB
16940echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
16941echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
4e8d927d
DJ
16942if test $ac_cv_have_decl_strerror = yes; then
16943
16944cat >>confdefs.h <<_ACEOF
16945#define HAVE_DECL_STRERROR 1
16946_ACEOF
16947
16948
16949else
16950 cat >>confdefs.h <<_ACEOF
16951#define HAVE_DECL_STRERROR 0
16952_ACEOF
16953
16954
16955fi
b4e70030
JB
16956echo "$as_me:$LINENO: checking whether strstr is declared" >&5
16957echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
4e8d927d
DJ
16958if test "${ac_cv_have_decl_strstr+set}" = set; then
16959 echo $ECHO_N "(cached) $ECHO_C" >&6
16960else
16961 cat >conftest.$ac_ext <<_ACEOF
16962/* confdefs.h. */
16963_ACEOF
16964cat confdefs.h >>conftest.$ac_ext
16965cat >>conftest.$ac_ext <<_ACEOF
16966/* end confdefs.h. */
16967$ac_includes_default
16968int
16969main ()
16970{
16971#ifndef strstr
16972 char *p = (char *) strstr;
4e8d927d
DJ
16973#endif
16974
16975 ;
16976 return 0;
16977}
16978_ACEOF
16979rm -f conftest.$ac_objext
16980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16981 (eval $ac_compile) 2>conftest.er1
16982 ac_status=$?
16983 grep -v '^ *+' conftest.er1 >conftest.err
16984 rm -f conftest.er1
16985 cat conftest.err >&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } &&
b4e70030
JB
16988 { ac_try='test -z "$ac_c_werror_flag"
16989 || test ! -s conftest.err'
4e8d927d
DJ
16990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16991 (eval $ac_try) 2>&5
16992 ac_status=$?
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; } &&
16995 { ac_try='test -s conftest.$ac_objext'
16996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16997 (eval $ac_try) 2>&5
16998 ac_status=$?
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); }; }; then
17001 ac_cv_have_decl_strstr=yes
17002else
17003 echo "$as_me: failed program was:" >&5
17004sed 's/^/| /' conftest.$ac_ext >&5
17005
b4e70030 17006ac_cv_have_decl_strstr=no
4e8d927d 17007fi
4e8d927d
DJ
17008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17009fi
b4e70030
JB
17010echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
17011echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
4e8d927d
DJ
17012if test $ac_cv_have_decl_strstr = yes; then
17013
17014cat >>confdefs.h <<_ACEOF
17015#define HAVE_DECL_STRSTR 1
17016_ACEOF
17017
17018
17019else
17020 cat >>confdefs.h <<_ACEOF
17021#define HAVE_DECL_STRSTR 0
17022_ACEOF
17023
17024
17025fi
17026
17027
b4e70030
JB
17028echo "$as_me:$LINENO: checking whether getopt is declared" >&5
17029echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
4e8d927d
DJ
17030if test "${ac_cv_have_decl_getopt+set}" = set; then
17031 echo $ECHO_N "(cached) $ECHO_C" >&6
17032else
17033 cat >conftest.$ac_ext <<_ACEOF
17034/* confdefs.h. */
17035_ACEOF
17036cat confdefs.h >>conftest.$ac_ext
17037cat >>conftest.$ac_ext <<_ACEOF
17038/* end confdefs.h. */
17039$ac_includes_default
17040int
17041main ()
17042{
17043#ifndef getopt
17044 char *p = (char *) getopt;
4e8d927d
DJ
17045#endif
17046
17047 ;
17048 return 0;
17049}
17050_ACEOF
17051rm -f conftest.$ac_objext
17052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17053 (eval $ac_compile) 2>conftest.er1
17054 ac_status=$?
17055 grep -v '^ *+' conftest.er1 >conftest.err
17056 rm -f conftest.er1
17057 cat conftest.err >&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); } &&
b4e70030
JB
17060 { ac_try='test -z "$ac_c_werror_flag"
17061 || test ! -s conftest.err'
4e8d927d
DJ
17062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17063 (eval $ac_try) 2>&5
17064 ac_status=$?
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; } &&
17067 { ac_try='test -s conftest.$ac_objext'
17068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069 (eval $ac_try) 2>&5
17070 ac_status=$?
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; }; then
17073 ac_cv_have_decl_getopt=yes
17074else
17075 echo "$as_me: failed program was:" >&5
17076sed 's/^/| /' conftest.$ac_ext >&5
17077
b4e70030 17078ac_cv_have_decl_getopt=no
4e8d927d 17079fi
4e8d927d
DJ
17080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17081fi
b4e70030
JB
17082echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
17083echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
4e8d927d
DJ
17084if test $ac_cv_have_decl_getopt = yes; then
17085
17086cat >>confdefs.h <<_ACEOF
17087#define HAVE_DECL_GETOPT 1
17088_ACEOF
17089
17090
17091else
17092 cat >>confdefs.h <<_ACEOF
17093#define HAVE_DECL_GETOPT 0
17094_ACEOF
17095
17096
17097fi
b4e70030
JB
17098echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17099echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
17100if test "${ac_cv_have_decl_snprintf+set}" = set; then
17101 echo $ECHO_N "(cached) $ECHO_C" >&6
17102else
17103 cat >conftest.$ac_ext <<_ACEOF
17104/* confdefs.h. */
17105_ACEOF
17106cat confdefs.h >>conftest.$ac_ext
17107cat >>conftest.$ac_ext <<_ACEOF
17108/* end confdefs.h. */
17109$ac_includes_default
17110int
17111main ()
17112{
17113#ifndef snprintf
17114 char *p = (char *) snprintf;
4e8d927d
DJ
17115#endif
17116
17117 ;
17118 return 0;
17119}
17120_ACEOF
17121rm -f conftest.$ac_objext
17122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17123 (eval $ac_compile) 2>conftest.er1
17124 ac_status=$?
17125 grep -v '^ *+' conftest.er1 >conftest.err
17126 rm -f conftest.er1
17127 cat conftest.err >&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
b4e70030
JB
17130 { ac_try='test -z "$ac_c_werror_flag"
17131 || test ! -s conftest.err'
4e8d927d
DJ
17132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133 (eval $ac_try) 2>&5
17134 ac_status=$?
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; } &&
17137 { ac_try='test -s conftest.$ac_objext'
17138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17139 (eval $ac_try) 2>&5
17140 ac_status=$?
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); }; }; then
17143 ac_cv_have_decl_snprintf=yes
17144else
17145 echo "$as_me: failed program was:" >&5
17146sed 's/^/| /' conftest.$ac_ext >&5
17147
b4e70030 17148ac_cv_have_decl_snprintf=no
4e8d927d 17149fi
4e8d927d
DJ
17150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17151fi
b4e70030
JB
17152echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17153echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
4e8d927d
DJ
17154if test $ac_cv_have_decl_snprintf = yes; then
17155
17156cat >>confdefs.h <<_ACEOF
17157#define HAVE_DECL_SNPRINTF 1
17158_ACEOF
17159
17160
17161else
17162 cat >>confdefs.h <<_ACEOF
17163#define HAVE_DECL_SNPRINTF 0
17164_ACEOF
17165
17166
17167fi
b4e70030
JB
17168echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17169echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
17170if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17172else
17173 cat >conftest.$ac_ext <<_ACEOF
17174/* confdefs.h. */
17175_ACEOF
17176cat confdefs.h >>conftest.$ac_ext
17177cat >>conftest.$ac_ext <<_ACEOF
17178/* end confdefs.h. */
17179$ac_includes_default
17180int
17181main ()
17182{
17183#ifndef vsnprintf
17184 char *p = (char *) vsnprintf;
4e8d927d
DJ
17185#endif
17186
17187 ;
17188 return 0;
17189}
17190_ACEOF
17191rm -f conftest.$ac_objext
17192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17193 (eval $ac_compile) 2>conftest.er1
17194 ac_status=$?
17195 grep -v '^ *+' conftest.er1 >conftest.err
17196 rm -f conftest.er1
17197 cat conftest.err >&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); } &&
b4e70030
JB
17200 { ac_try='test -z "$ac_c_werror_flag"
17201 || test ! -s conftest.err'
4e8d927d
DJ
17202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17203 (eval $ac_try) 2>&5
17204 ac_status=$?
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); }; } &&
17207 { ac_try='test -s conftest.$ac_objext'
17208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17209 (eval $ac_try) 2>&5
17210 ac_status=$?
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); }; }; then
17213 ac_cv_have_decl_vsnprintf=yes
17214else
17215 echo "$as_me: failed program was:" >&5
17216sed 's/^/| /' conftest.$ac_ext >&5
17217
b4e70030 17218ac_cv_have_decl_vsnprintf=no
4e8d927d 17219fi
4e8d927d
DJ
17220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17221fi
b4e70030
JB
17222echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17223echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
4e8d927d
DJ
17224if test $ac_cv_have_decl_vsnprintf = yes; then
17225
17226cat >>confdefs.h <<_ACEOF
17227#define HAVE_DECL_VSNPRINTF 1
17228_ACEOF
17229
17230
17231else
17232 cat >>confdefs.h <<_ACEOF
17233#define HAVE_DECL_VSNPRINTF 0
17234_ACEOF
17235
17236
17237fi
17238
17239
17240
17241# ----------------------- #
17242# Checks for structures. #
17243# ----------------------- #
17244
b4e70030
JB
17245echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17246echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4e8d927d
DJ
17247if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17248 echo $ECHO_N "(cached) $ECHO_C" >&6
17249else
17250 cat >conftest.$ac_ext <<_ACEOF
17251/* confdefs.h. */
17252_ACEOF
17253cat confdefs.h >>conftest.$ac_ext
17254cat >>conftest.$ac_ext <<_ACEOF
17255/* end confdefs.h. */
17256$ac_includes_default
17257int
17258main ()
17259{
17260static struct stat ac_aggr;
17261if (ac_aggr.st_blocks)
17262return 0;
17263 ;
17264 return 0;
17265}
17266_ACEOF
17267rm -f conftest.$ac_objext
17268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17269 (eval $ac_compile) 2>conftest.er1
17270 ac_status=$?
17271 grep -v '^ *+' conftest.er1 >conftest.err
17272 rm -f conftest.er1
17273 cat conftest.err >&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); } &&
b4e70030
JB
17276 { ac_try='test -z "$ac_c_werror_flag"
17277 || test ! -s conftest.err'
4e8d927d
DJ
17278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279 (eval $ac_try) 2>&5
17280 ac_status=$?
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; } &&
17283 { ac_try='test -s conftest.$ac_objext'
17284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17285 (eval $ac_try) 2>&5
17286 ac_status=$?
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; }; then
17289 ac_cv_member_struct_stat_st_blocks=yes
17290else
17291 echo "$as_me: failed program was:" >&5
17292sed 's/^/| /' conftest.$ac_ext >&5
17293
b4e70030 17294cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
17295/* confdefs.h. */
17296_ACEOF
17297cat confdefs.h >>conftest.$ac_ext
17298cat >>conftest.$ac_ext <<_ACEOF
17299/* end confdefs.h. */
17300$ac_includes_default
17301int
17302main ()
17303{
17304static struct stat ac_aggr;
17305if (sizeof ac_aggr.st_blocks)
17306return 0;
17307 ;
17308 return 0;
17309}
17310_ACEOF
17311rm -f conftest.$ac_objext
17312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17313 (eval $ac_compile) 2>conftest.er1
17314 ac_status=$?
17315 grep -v '^ *+' conftest.er1 >conftest.err
17316 rm -f conftest.er1
17317 cat conftest.err >&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
b4e70030
JB
17320 { ac_try='test -z "$ac_c_werror_flag"
17321 || test ! -s conftest.err'
4e8d927d
DJ
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } &&
17327 { ac_try='test -s conftest.$ac_objext'
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17330 ac_status=$?
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 ac_cv_member_struct_stat_st_blocks=yes
17334else
17335 echo "$as_me: failed program was:" >&5
17336sed 's/^/| /' conftest.$ac_ext >&5
17337
b4e70030 17338ac_cv_member_struct_stat_st_blocks=no
4e8d927d 17339fi
4e8d927d
DJ
17340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17341fi
4e8d927d
DJ
17342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17343fi
b4e70030
JB
17344echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17345echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4e8d927d
DJ
17346if test $ac_cv_member_struct_stat_st_blocks = yes; then
17347
17348cat >>confdefs.h <<_ACEOF
17349#define HAVE_STRUCT_STAT_ST_BLOCKS 1
17350_ACEOF
17351
17352
17353fi
17354
b4e70030
JB
17355echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17356echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4e8d927d
DJ
17357if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17358 echo $ECHO_N "(cached) $ECHO_C" >&6
17359else
17360 cat >conftest.$ac_ext <<_ACEOF
17361/* confdefs.h. */
17362_ACEOF
17363cat confdefs.h >>conftest.$ac_ext
17364cat >>conftest.$ac_ext <<_ACEOF
17365/* end confdefs.h. */
17366$ac_includes_default
17367int
17368main ()
17369{
17370static struct stat ac_aggr;
17371if (ac_aggr.st_blksize)
17372return 0;
17373 ;
17374 return 0;
17375}
17376_ACEOF
17377rm -f conftest.$ac_objext
17378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17379 (eval $ac_compile) 2>conftest.er1
17380 ac_status=$?
17381 grep -v '^ *+' conftest.er1 >conftest.err
17382 rm -f conftest.er1
17383 cat conftest.err >&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } &&
b4e70030
JB
17386 { ac_try='test -z "$ac_c_werror_flag"
17387 || test ! -s conftest.err'
4e8d927d
DJ
17388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389 (eval $ac_try) 2>&5
17390 ac_status=$?
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; } &&
17393 { ac_try='test -s conftest.$ac_objext'
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
17399 ac_cv_member_struct_stat_st_blksize=yes
17400else
17401 echo "$as_me: failed program was:" >&5
17402sed 's/^/| /' conftest.$ac_ext >&5
17403
b4e70030 17404cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
17405/* confdefs.h. */
17406_ACEOF
17407cat confdefs.h >>conftest.$ac_ext
17408cat >>conftest.$ac_ext <<_ACEOF
17409/* end confdefs.h. */
17410$ac_includes_default
17411int
17412main ()
17413{
17414static struct stat ac_aggr;
17415if (sizeof ac_aggr.st_blksize)
17416return 0;
17417 ;
17418 return 0;
17419}
17420_ACEOF
17421rm -f conftest.$ac_objext
17422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17423 (eval $ac_compile) 2>conftest.er1
17424 ac_status=$?
17425 grep -v '^ *+' conftest.er1 >conftest.err
17426 rm -f conftest.er1
17427 cat conftest.err >&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } &&
b4e70030
JB
17430 { ac_try='test -z "$ac_c_werror_flag"
17431 || test ! -s conftest.err'
4e8d927d
DJ
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; } &&
17437 { ac_try='test -s conftest.$ac_objext'
17438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17440 ac_status=$?
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; }; then
17443 ac_cv_member_struct_stat_st_blksize=yes
17444else
17445 echo "$as_me: failed program was:" >&5
17446sed 's/^/| /' conftest.$ac_ext >&5
17447
b4e70030 17448ac_cv_member_struct_stat_st_blksize=no
4e8d927d 17449fi
4e8d927d
DJ
17450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17451fi
4e8d927d
DJ
17452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17453fi
b4e70030
JB
17454echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17455echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4e8d927d
DJ
17456if test $ac_cv_member_struct_stat_st_blksize = yes; then
17457
17458cat >>confdefs.h <<_ACEOF
17459#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17460_ACEOF
17461
17462
17463fi
17464
17465
17466# ------------------ #
17467# Checks for types. #
17468# ------------------ #
17469
b4e70030
JB
17470echo "$as_me:$LINENO: checking return type of signal handlers" >&5
17471echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4e8d927d
DJ
17472if test "${ac_cv_type_signal+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17474else
17475 cat >conftest.$ac_ext <<_ACEOF
17476/* confdefs.h. */
17477_ACEOF
17478cat confdefs.h >>conftest.$ac_ext
17479cat >>conftest.$ac_ext <<_ACEOF
17480/* end confdefs.h. */
17481#include <sys/types.h>
17482#include <signal.h>
b4e70030
JB
17483#ifdef signal
17484# undef signal
17485#endif
17486#ifdef __cplusplus
17487extern "C" void (*signal (int, void (*)(int)))(int);
17488#else
17489void (*signal ()) ();
17490#endif
4e8d927d
DJ
17491
17492int
17493main ()
17494{
b4e70030 17495int i;
4e8d927d
DJ
17496 ;
17497 return 0;
17498}
17499_ACEOF
17500rm -f conftest.$ac_objext
17501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17502 (eval $ac_compile) 2>conftest.er1
17503 ac_status=$?
17504 grep -v '^ *+' conftest.er1 >conftest.err
17505 rm -f conftest.er1
17506 cat conftest.err >&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); } &&
b4e70030
JB
17509 { ac_try='test -z "$ac_c_werror_flag"
17510 || test ! -s conftest.err'
4e8d927d
DJ
17511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17512 (eval $ac_try) 2>&5
17513 ac_status=$?
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; } &&
17516 { ac_try='test -s conftest.$ac_objext'
17517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518 (eval $ac_try) 2>&5
17519 ac_status=$?
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; }; then
b4e70030 17522 ac_cv_type_signal=void
4e8d927d
DJ
17523else
17524 echo "$as_me: failed program was:" >&5
17525sed 's/^/| /' conftest.$ac_ext >&5
17526
b4e70030 17527ac_cv_type_signal=int
4e8d927d 17528fi
4e8d927d
DJ
17529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17530fi
b4e70030
JB
17531echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
17532echo "${ECHO_T}$ac_cv_type_signal" >&6
4e8d927d
DJ
17533
17534cat >>confdefs.h <<_ACEOF
17535#define RETSIGTYPE $ac_cv_type_signal
17536_ACEOF
17537
17538
b4e70030
JB
17539echo "$as_me:$LINENO: checking for socklen_t" >&5
17540echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4e8d927d
DJ
17541if test "${ac_cv_type_socklen_t+set}" = set; then
17542 echo $ECHO_N "(cached) $ECHO_C" >&6
17543else
17544 cat >conftest.$ac_ext <<_ACEOF
17545/* confdefs.h. */
17546_ACEOF
17547cat confdefs.h >>conftest.$ac_ext
17548cat >>conftest.$ac_ext <<_ACEOF
17549/* end confdefs.h. */
17550#include <sys/types.h>
17551#include <sys/socket.h>
17552
17553
4e8d927d
DJ
17554int
17555main ()
17556{
b4e70030 17557if ((socklen_t *) 0)
4e8d927d 17558 return 0;
b4e70030 17559if (sizeof (socklen_t))
4e8d927d
DJ
17560 return 0;
17561 ;
17562 return 0;
17563}
17564_ACEOF
17565rm -f conftest.$ac_objext
17566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17567 (eval $ac_compile) 2>conftest.er1
17568 ac_status=$?
17569 grep -v '^ *+' conftest.er1 >conftest.err
17570 rm -f conftest.er1
17571 cat conftest.err >&5
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); } &&
b4e70030
JB
17574 { ac_try='test -z "$ac_c_werror_flag"
17575 || test ! -s conftest.err'
4e8d927d
DJ
17576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17577 (eval $ac_try) 2>&5
17578 ac_status=$?
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; } &&
17581 { ac_try='test -s conftest.$ac_objext'
17582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17583 (eval $ac_try) 2>&5
17584 ac_status=$?
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; }; then
17587 ac_cv_type_socklen_t=yes
17588else
17589 echo "$as_me: failed program was:" >&5
17590sed 's/^/| /' conftest.$ac_ext >&5
17591
b4e70030 17592ac_cv_type_socklen_t=no
4e8d927d 17593fi
4e8d927d
DJ
17594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17595fi
b4e70030
JB
17596echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
17597echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4e8d927d
DJ
17598if test $ac_cv_type_socklen_t = yes; then
17599
17600cat >>confdefs.h <<_ACEOF
17601#define HAVE_SOCKLEN_T 1
17602_ACEOF
17603
17604
4e8d927d
DJ
17605fi
17606
17607
17608# ------------------------------------- #
17609# Checks for compiler characteristics. #
17610# ------------------------------------- #
17611
b4e70030
JB
17612echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17613echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4e8d927d
DJ
17614if test "${ac_cv_c_const+set}" = set; then
17615 echo $ECHO_N "(cached) $ECHO_C" >&6
17616else
17617 cat >conftest.$ac_ext <<_ACEOF
17618/* confdefs.h. */
17619_ACEOF
17620cat confdefs.h >>conftest.$ac_ext
17621cat >>conftest.$ac_ext <<_ACEOF
17622/* end confdefs.h. */
17623
17624int
17625main ()
17626{
17627/* FIXME: Include the comments suggested by Paul. */
17628#ifndef __cplusplus
17629 /* Ultrix mips cc rejects this. */
17630 typedef int charset[2];
17631 const charset x;
17632 /* SunOS 4.1.1 cc rejects this. */
17633 char const *const *ccp;
17634 char **p;
17635 /* NEC SVR4.0.2 mips cc rejects this. */
17636 struct point {int x, y;};
17637 static struct point const zero = {0,0};
17638 /* AIX XL C 1.02.0.0 rejects this.
17639 It does not let you subtract one const X* pointer from another in
17640 an arm of an if-expression whose if-part is not a constant
17641 expression */
17642 const char *g = "string";
17643 ccp = &g + (g ? g-g : 0);
17644 /* HPUX 7.0 cc rejects these. */
17645 ++ccp;
17646 p = (char**) ccp;
17647 ccp = (char const *const *) p;
17648 { /* SCO 3.2v4 cc rejects this. */
17649 char *t;
17650 char const *s = 0 ? (char *) 0 : (char const *) 0;
17651
17652 *t++ = 0;
4e8d927d
DJ
17653 }
17654 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17655 int x[] = {25, 17};
17656 const int *foo = &x[0];
17657 ++foo;
17658 }
17659 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17660 typedef const int *iptr;
17661 iptr p = 0;
17662 ++p;
17663 }
17664 { /* AIX XL C 1.02.0.0 rejects this saying
17665 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17666 struct s { int j; const int *ap[3]; };
17667 struct s *b; b->j = 5;
17668 }
17669 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17670 const int foo = 10;
4e8d927d 17671 }
4e8d927d
DJ
17672#endif
17673
17674 ;
17675 return 0;
17676}
17677_ACEOF
17678rm -f conftest.$ac_objext
17679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17680 (eval $ac_compile) 2>conftest.er1
17681 ac_status=$?
17682 grep -v '^ *+' conftest.er1 >conftest.err
17683 rm -f conftest.er1
17684 cat conftest.err >&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); } &&
b4e70030
JB
17687 { ac_try='test -z "$ac_c_werror_flag"
17688 || test ! -s conftest.err'
4e8d927d
DJ
17689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17690 (eval $ac_try) 2>&5
17691 ac_status=$?
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); }; } &&
17694 { ac_try='test -s conftest.$ac_objext'
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17697 ac_status=$?
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; }; then
17700 ac_cv_c_const=yes
17701else
17702 echo "$as_me: failed program was:" >&5
17703sed 's/^/| /' conftest.$ac_ext >&5
17704
b4e70030 17705ac_cv_c_const=no
4e8d927d 17706fi
4e8d927d
DJ
17707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17708fi
b4e70030
JB
17709echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17710echo "${ECHO_T}$ac_cv_c_const" >&6
4e8d927d
DJ
17711if test $ac_cv_c_const = no; then
17712
17713cat >>confdefs.h <<\_ACEOF
17714#define const
17715_ACEOF
17716
17717fi
17718
b4e70030
JB
17719echo "$as_me:$LINENO: checking for inline" >&5
17720echo $ECHO_N "checking for inline... $ECHO_C" >&6
4e8d927d
DJ
17721if test "${ac_cv_c_inline+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17723else
17724 ac_cv_c_inline=no
17725for ac_kw in inline __inline__ __inline; do
17726 cat >conftest.$ac_ext <<_ACEOF
17727/* confdefs.h. */
17728_ACEOF
17729cat confdefs.h >>conftest.$ac_ext
17730cat >>conftest.$ac_ext <<_ACEOF
17731/* end confdefs.h. */
17732#ifndef __cplusplus
17733typedef int foo_t;
17734static $ac_kw foo_t static_foo () {return 0; }
17735$ac_kw foo_t foo () {return 0; }
17736#endif
17737
17738_ACEOF
17739rm -f conftest.$ac_objext
17740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17741 (eval $ac_compile) 2>conftest.er1
17742 ac_status=$?
17743 grep -v '^ *+' conftest.er1 >conftest.err
17744 rm -f conftest.er1
17745 cat conftest.err >&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } &&
b4e70030
JB
17748 { ac_try='test -z "$ac_c_werror_flag"
17749 || test ! -s conftest.err'
4e8d927d
DJ
17750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751 (eval $ac_try) 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; } &&
17755 { ac_try='test -s conftest.$ac_objext'
17756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17758 ac_status=$?
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); }; }; then
b4e70030 17761 ac_cv_c_inline=$ac_kw; break
4e8d927d
DJ
17762else
17763 echo "$as_me: failed program was:" >&5
17764sed 's/^/| /' conftest.$ac_ext >&5
17765
4e8d927d 17766fi
4e8d927d 17767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
17768done
17769
17770fi
b4e70030
JB
17771echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17772echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 17773
bec39cab 17774
a3828db0
MK
17775case $ac_cv_c_inline in
17776 inline | yes) ;;
17777 *)
17778 case $ac_cv_c_inline in
17779 no) ac_val=;;
17780 *) ac_val=$ac_cv_c_inline;;
17781 esac
17782 cat >>confdefs.h <<_ACEOF
17783#ifndef __cplusplus
17784#define inline $ac_val
17785#endif
17786_ACEOF
bec39cab
AC
17787 ;;
17788esac
bec39cab 17789
9b913628
TJB
17790echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17791echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17792if test "${ac_cv_c_bigendian+set}" = set; then
17793 echo $ECHO_N "(cached) $ECHO_C" >&6
17794else
17795 # See if sys/param.h defines the BYTE_ORDER macro.
17796cat >conftest.$ac_ext <<_ACEOF
17797/* confdefs.h. */
17798_ACEOF
17799cat confdefs.h >>conftest.$ac_ext
17800cat >>conftest.$ac_ext <<_ACEOF
17801/* end confdefs.h. */
17802#include <sys/types.h>
17803#include <sys/param.h>
17804
17805int
17806main ()
17807{
17808#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17809 bogus endian macros
17810#endif
17811
17812 ;
17813 return 0;
17814}
17815_ACEOF
17816rm -f conftest.$ac_objext
17817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17818 (eval $ac_compile) 2>conftest.er1
17819 ac_status=$?
17820 grep -v '^ *+' conftest.er1 >conftest.err
17821 rm -f conftest.er1
17822 cat conftest.err >&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); } &&
17825 { ac_try='test -z "$ac_c_werror_flag"
17826 || test ! -s conftest.err'
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17829 ac_status=$?
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; } &&
17832 { ac_try='test -s conftest.$ac_objext'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; }; then
17838 # It does; now see whether it defined to BIG_ENDIAN or not.
17839cat >conftest.$ac_ext <<_ACEOF
17840/* confdefs.h. */
17841_ACEOF
17842cat confdefs.h >>conftest.$ac_ext
17843cat >>conftest.$ac_ext <<_ACEOF
17844/* end confdefs.h. */
17845#include <sys/types.h>
17846#include <sys/param.h>
17847
17848int
17849main ()
17850{
17851#if BYTE_ORDER != BIG_ENDIAN
17852 not big endian
17853#endif
17854
17855 ;
17856 return 0;
17857}
17858_ACEOF
17859rm -f conftest.$ac_objext
17860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17861 (eval $ac_compile) 2>conftest.er1
17862 ac_status=$?
17863 grep -v '^ *+' conftest.er1 >conftest.err
17864 rm -f conftest.er1
17865 cat conftest.err >&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); } &&
17868 { ac_try='test -z "$ac_c_werror_flag"
17869 || test ! -s conftest.err'
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17872 ac_status=$?
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; } &&
17875 { ac_try='test -s conftest.$ac_objext'
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17878 ac_status=$?
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; }; then
17881 ac_cv_c_bigendian=yes
17882else
17883 echo "$as_me: failed program was:" >&5
17884sed 's/^/| /' conftest.$ac_ext >&5
17885
17886ac_cv_c_bigendian=no
17887fi
17888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17889else
17890 echo "$as_me: failed program was:" >&5
17891sed 's/^/| /' conftest.$ac_ext >&5
17892
17893# It does not; compile a test program.
17894if test "$cross_compiling" = yes; then
17895 # try to guess the endianness by grepping values into an object file
17896 ac_cv_c_bigendian=unknown
17897 cat >conftest.$ac_ext <<_ACEOF
17898/* confdefs.h. */
17899_ACEOF
17900cat confdefs.h >>conftest.$ac_ext
17901cat >>conftest.$ac_ext <<_ACEOF
17902/* end confdefs.h. */
17903short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17904short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17905void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
17906short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17907short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17908void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
17909int
17910main ()
17911{
17912 _ascii (); _ebcdic ();
17913 ;
17914 return 0;
17915}
17916_ACEOF
17917rm -f conftest.$ac_objext
17918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17919 (eval $ac_compile) 2>conftest.er1
17920 ac_status=$?
17921 grep -v '^ *+' conftest.er1 >conftest.err
17922 rm -f conftest.er1
17923 cat conftest.err >&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } &&
17926 { ac_try='test -z "$ac_c_werror_flag"
17927 || test ! -s conftest.err'
17928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929 (eval $ac_try) 2>&5
17930 ac_status=$?
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); }; } &&
17933 { ac_try='test -s conftest.$ac_objext'
17934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17935 (eval $ac_try) 2>&5
17936 ac_status=$?
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }; }; then
17939 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
17940 ac_cv_c_bigendian=yes
17941fi
17942if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17943 if test "$ac_cv_c_bigendian" = unknown; then
17944 ac_cv_c_bigendian=no
17945 else
17946 # finding both strings is unlikely to happen, but who knows?
17947 ac_cv_c_bigendian=unknown
17948 fi
17949fi
17950else
17951 echo "$as_me: failed program was:" >&5
17952sed 's/^/| /' conftest.$ac_ext >&5
17953
17954fi
17955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17956else
17957 cat >conftest.$ac_ext <<_ACEOF
17958/* confdefs.h. */
17959_ACEOF
17960cat confdefs.h >>conftest.$ac_ext
17961cat >>conftest.$ac_ext <<_ACEOF
17962/* end confdefs.h. */
17963int
17964main ()
17965{
17966 /* Are we little or big endian? From Harbison&Steele. */
17967 union
17968 {
17969 long l;
17970 char c[sizeof (long)];
17971 } u;
17972 u.l = 1;
17973 exit (u.c[sizeof (long) - 1] == 1);
17974}
17975_ACEOF
17976rm -f conftest$ac_exeext
17977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17978 (eval $ac_link) 2>&5
17979 ac_status=$?
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17983 (eval $ac_try) 2>&5
17984 ac_status=$?
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); }; }; then
17987 ac_cv_c_bigendian=no
17988else
17989 echo "$as_me: program exited with status $ac_status" >&5
17990echo "$as_me: failed program was:" >&5
17991sed 's/^/| /' conftest.$ac_ext >&5
17992
17993( exit $ac_status )
17994ac_cv_c_bigendian=yes
17995fi
17996rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17997fi
17998fi
17999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18000fi
18001echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18002echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18003case $ac_cv_c_bigendian in
18004 yes)
18005
18006cat >>confdefs.h <<\_ACEOF
18007#define WORDS_BIGENDIAN 1
18008_ACEOF
18009 ;;
18010 no)
18011 ;;
18012 *)
18013 { { echo "$as_me:$LINENO: error: unknown endianness
18014presetting ac_cv_c_bigendian=no (or yes) will help" >&5
18015echo "$as_me: error: unknown endianness
18016presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
18017 { (exit 1); exit 1; }; } ;;
18018esac
18019
74c1b268 18020
a3828db0
MK
18021# ------------------------------ #
18022# Checks for library functions. #
18023# ------------------------------ #
bec39cab 18024
a3828db0
MK
18025# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18026# for constant arguments. Useless!
b4e70030
JB
18027echo "$as_me:$LINENO: checking for working alloca.h" >&5
18028echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
a3828db0 18029if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
18030 echo $ECHO_N "(cached) $ECHO_C" >&6
18031else
18032 cat >conftest.$ac_ext <<_ACEOF
18033/* confdefs.h. */
18034_ACEOF
18035cat confdefs.h >>conftest.$ac_ext
18036cat >>conftest.$ac_ext <<_ACEOF
18037/* end confdefs.h. */
a3828db0 18038#include <alloca.h>
bec39cab
AC
18039int
18040main ()
18041{
a3828db0 18042char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
18043 ;
18044 return 0;
18045}
18046_ACEOF
18047rm -f conftest.$ac_objext conftest$ac_exeext
18048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18049 (eval $ac_link) 2>conftest.er1
18050 ac_status=$?
18051 grep -v '^ *+' conftest.er1 >conftest.err
18052 rm -f conftest.er1
18053 cat conftest.err >&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } &&
b4e70030
JB
18056 { ac_try='test -z "$ac_c_werror_flag"
18057 || test ! -s conftest.err'
bec39cab
AC
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18060 ac_status=$?
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; } &&
18063 { ac_try='test -s conftest$ac_exeext'
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18066 ac_status=$?
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
a3828db0 18069 ac_cv_working_alloca_h=yes
bec39cab
AC
18070else
18071 echo "$as_me: failed program was:" >&5
18072sed 's/^/| /' conftest.$ac_ext >&5
18073
b4e70030 18074ac_cv_working_alloca_h=no
bec39cab
AC
18075fi
18076rm -f conftest.err conftest.$ac_objext \
18077 conftest$ac_exeext conftest.$ac_ext
18078fi
b4e70030
JB
18079echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
18080echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
a3828db0
MK
18081if test $ac_cv_working_alloca_h = yes; then
18082
18083cat >>confdefs.h <<\_ACEOF
18084#define HAVE_ALLOCA_H 1
bec39cab 18085_ACEOF
74c1b268 18086
74c1b268
AC
18087fi
18088
b4e70030
JB
18089echo "$as_me:$LINENO: checking for alloca" >&5
18090echo $ECHO_N "checking for alloca... $ECHO_C" >&6
a3828db0 18091if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 18092 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 18093else
bec39cab
AC
18094 cat >conftest.$ac_ext <<_ACEOF
18095/* confdefs.h. */
18096_ACEOF
18097cat confdefs.h >>conftest.$ac_ext
18098cat >>conftest.$ac_ext <<_ACEOF
18099/* end confdefs.h. */
a3828db0
MK
18100#ifdef __GNUC__
18101# define alloca __builtin_alloca
18102#else
18103# ifdef _MSC_VER
18104# include <malloc.h>
18105# define alloca _alloca
18106# else
18107# if HAVE_ALLOCA_H
18108# include <alloca.h>
18109# else
18110# ifdef _AIX
18111 #pragma alloca
18112# else
18113# ifndef alloca /* predefined by HP cc +Olibcalls */
18114char *alloca ();
18115# endif
18116# endif
18117# endif
97bf5e38 18118# endif
a3828db0 18119#endif
97bf5e38 18120
bec39cab
AC
18121int
18122main ()
18123{
a3828db0 18124char *p = (char *) alloca (1);
bec39cab
AC
18125 ;
18126 return 0;
18127}
18128_ACEOF
a3828db0
MK
18129rm -f conftest.$ac_objext conftest$ac_exeext
18130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18131 (eval $ac_link) 2>conftest.er1
bec39cab
AC
18132 ac_status=$?
18133 grep -v '^ *+' conftest.er1 >conftest.err
18134 rm -f conftest.er1
18135 cat conftest.err >&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } &&
b4e70030
JB
18138 { ac_try='test -z "$ac_c_werror_flag"
18139 || test ! -s conftest.err'
bec39cab
AC
18140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18142 ac_status=$?
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; } &&
a3828db0 18145 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
18146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18147 (eval $ac_try) 2>&5
18148 ac_status=$?
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); }; }; then
a3828db0 18151 ac_cv_func_alloca_works=yes
0200359f 18152else
bec39cab
AC
18153 echo "$as_me: failed program was:" >&5
18154sed 's/^/| /' conftest.$ac_ext >&5
0200359f 18155
b4e70030 18156ac_cv_func_alloca_works=no
0200359f 18157fi
a3828db0
MK
18158rm -f conftest.err conftest.$ac_objext \
18159 conftest$ac_exeext conftest.$ac_ext
72473524 18160fi
b4e70030
JB
18161echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
18162echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 18163
a3828db0
MK
18164if test $ac_cv_func_alloca_works = yes; then
18165
18166cat >>confdefs.h <<\_ACEOF
18167#define HAVE_ALLOCA 1
bec39cab
AC
18168_ACEOF
18169
a3828db0
MK
18170else
18171 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18172# that cause trouble. Some versions do not even contain alloca or
18173# contain a buggy version. If you still want to use their alloca,
18174# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 18175
b4e70030 18176ALLOCA=alloca.$ac_objext
bec39cab 18177
a3828db0
MK
18178cat >>confdefs.h <<\_ACEOF
18179#define C_ALLOCA 1
18180_ACEOF
bec39cab 18181
a3828db0 18182
b4e70030
JB
18183echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
18184echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
a3828db0 18185if test "${ac_cv_os_cray+set}" = set; then
bec39cab 18186 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 18187else
a3828db0 18188 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18189/* confdefs.h. */
18190_ACEOF
18191cat confdefs.h >>conftest.$ac_ext
18192cat >>conftest.$ac_ext <<_ACEOF
18193/* end confdefs.h. */
b4e70030 18194#if defined(CRAY) && ! defined(CRAY2)
a3828db0
MK
18195webecray
18196#else
18197wenotbecray
18198#endif
18199
18200_ACEOF
18201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18202 $EGREP "webecray" >/dev/null 2>&1; then
18203 ac_cv_os_cray=yes
18204else
18205 ac_cv_os_cray=no
18206fi
18207rm -f conftest*
18208
18209fi
b4e70030
JB
18210echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
18211echo "${ECHO_T}$ac_cv_os_cray" >&6
a3828db0
MK
18212if test $ac_cv_os_cray = yes; then
18213 for ac_func in _getb67 GETB67 getb67; do
18214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18215echo "$as_me:$LINENO: checking for $ac_func" >&5
18216echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18217if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
18218 echo $ECHO_N "(cached) $ECHO_C" >&6
18219else
18220 cat >conftest.$ac_ext <<_ACEOF
18221/* confdefs.h. */
18222_ACEOF
18223cat confdefs.h >>conftest.$ac_ext
18224cat >>conftest.$ac_ext <<_ACEOF
18225/* end confdefs.h. */
18226/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18228#define $ac_func innocuous_$ac_func
18229
18230/* System header to define __stub macros and hopefully few prototypes,
18231 which can conflict with char $ac_func (); below.
18232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18233 <limits.h> exists even on freestanding compilers. */
18234
18235#ifdef __STDC__
18236# include <limits.h>
18237#else
18238# include <assert.h>
18239#endif
18240
18241#undef $ac_func
18242
b4e70030 18243/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
18244#ifdef __cplusplus
18245extern "C"
b4e70030 18246{
a3828db0 18247#endif
b4e70030
JB
18248/* We use char because int might match the return type of a gcc2
18249 builtin and then its argument prototype would still apply. */
a3828db0
MK
18250char $ac_func ();
18251/* The GNU C library defines this for functions which it implements
18252 to always fail with ENOSYS. Some functions are actually named
18253 something starting with __ and the normal name is an alias. */
b4e70030 18254#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 18255choke me
b4e70030
JB
18256#else
18257char (*f) () = $ac_func;
18258#endif
18259#ifdef __cplusplus
18260}
a3828db0
MK
18261#endif
18262
18263int
18264main ()
18265{
b4e70030 18266return f != $ac_func;
a3828db0
MK
18267 ;
18268 return 0;
18269}
18270_ACEOF
18271rm -f conftest.$ac_objext conftest$ac_exeext
18272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18273 (eval $ac_link) 2>conftest.er1
18274 ac_status=$?
18275 grep -v '^ *+' conftest.er1 >conftest.err
18276 rm -f conftest.er1
18277 cat conftest.err >&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } &&
b4e70030
JB
18280 { ac_try='test -z "$ac_c_werror_flag"
18281 || test ! -s conftest.err'
a3828db0
MK
18282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283 (eval $ac_try) 2>&5
18284 ac_status=$?
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; } &&
18287 { ac_try='test -s conftest$ac_exeext'
18288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289 (eval $ac_try) 2>&5
18290 ac_status=$?
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; }; then
18293 eval "$as_ac_var=yes"
18294else
18295 echo "$as_me: failed program was:" >&5
18296sed 's/^/| /' conftest.$ac_ext >&5
18297
b4e70030 18298eval "$as_ac_var=no"
a3828db0
MK
18299fi
18300rm -f conftest.err conftest.$ac_objext \
18301 conftest$ac_exeext conftest.$ac_ext
18302fi
b4e70030
JB
18303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18304echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
18305if test `eval echo '${'$as_ac_var'}'` = yes; then
18306
18307cat >>confdefs.h <<_ACEOF
18308#define CRAY_STACKSEG_END $ac_func
18309_ACEOF
18310
18311 break
18312fi
18313
18314 done
18315fi
18316
b4e70030
JB
18317echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
18318echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
a3828db0
MK
18319if test "${ac_cv_c_stack_direction+set}" = set; then
18320 echo $ECHO_N "(cached) $ECHO_C" >&6
18321else
18322 if test "$cross_compiling" = yes; then
18323 ac_cv_c_stack_direction=0
18324else
18325 cat >conftest.$ac_ext <<_ACEOF
18326/* confdefs.h. */
18327_ACEOF
18328cat confdefs.h >>conftest.$ac_ext
18329cat >>conftest.$ac_ext <<_ACEOF
18330/* end confdefs.h. */
18331int
18332find_stack_direction ()
18333{
18334 static char *addr = 0;
18335 auto char dummy;
18336 if (addr == 0)
18337 {
18338 addr = &dummy;
18339 return find_stack_direction ();
18340 }
18341 else
18342 return (&dummy > addr) ? 1 : -1;
18343}
18344
18345int
18346main ()
18347{
b4e70030 18348 exit (find_stack_direction () < 0);
a3828db0
MK
18349}
18350_ACEOF
18351rm -f conftest$ac_exeext
18352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18353 (eval $ac_link) 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18358 (eval $ac_try) 2>&5
18359 ac_status=$?
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); }; }; then
18362 ac_cv_c_stack_direction=1
18363else
18364 echo "$as_me: program exited with status $ac_status" >&5
18365echo "$as_me: failed program was:" >&5
18366sed 's/^/| /' conftest.$ac_ext >&5
18367
18368( exit $ac_status )
18369ac_cv_c_stack_direction=-1
18370fi
b4e70030 18371rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18372fi
18373fi
b4e70030
JB
18374echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
18375echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
a3828db0
MK
18376
18377cat >>confdefs.h <<_ACEOF
18378#define STACK_DIRECTION $ac_cv_c_stack_direction
18379_ACEOF
18380
18381
18382fi
18383
18384
18385
18386for ac_header in stdlib.h unistd.h
18387do
18388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
18389if eval "test \"\${$as_ac_Header+set}\" = set"; then
18390 echo "$as_me:$LINENO: checking for $ac_header" >&5
18391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18392if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
18393 echo $ECHO_N "(cached) $ECHO_C" >&6
18394fi
b4e70030
JB
18395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18396echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0
MK
18397else
18398 # Is the header compilable?
b4e70030
JB
18399echo "$as_me:$LINENO: checking $ac_header usability" >&5
18400echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0
MK
18401cat >conftest.$ac_ext <<_ACEOF
18402/* confdefs.h. */
18403_ACEOF
18404cat confdefs.h >>conftest.$ac_ext
18405cat >>conftest.$ac_ext <<_ACEOF
18406/* end confdefs.h. */
18407$ac_includes_default
18408#include <$ac_header>
18409_ACEOF
18410rm -f conftest.$ac_objext
18411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18412 (eval $ac_compile) 2>conftest.er1
18413 ac_status=$?
bec39cab
AC
18414 grep -v '^ *+' conftest.er1 >conftest.err
18415 rm -f conftest.er1
18416 cat conftest.err >&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); } &&
b4e70030
JB
18419 { ac_try='test -z "$ac_c_werror_flag"
18420 || test ! -s conftest.err'
bec39cab
AC
18421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18422 (eval $ac_try) 2>&5
18423 ac_status=$?
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); }; } &&
18426 { ac_try='test -s conftest.$ac_objext'
18427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428 (eval $ac_try) 2>&5
18429 ac_status=$?
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; }; then
18432 ac_header_compiler=yes
18433else
18434 echo "$as_me: failed program was:" >&5
18435sed 's/^/| /' conftest.$ac_ext >&5
18436
b4e70030 18437ac_header_compiler=no
bec39cab
AC
18438fi
18439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
18440echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18441echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
18442
18443# Is the header present?
b4e70030
JB
18444echo "$as_me:$LINENO: checking $ac_header presence" >&5
18445echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
18446cat >conftest.$ac_ext <<_ACEOF
18447/* confdefs.h. */
18448_ACEOF
18449cat confdefs.h >>conftest.$ac_ext
18450cat >>conftest.$ac_ext <<_ACEOF
18451/* end confdefs.h. */
18452#include <$ac_header>
18453_ACEOF
18454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18456 ac_status=$?
18457 grep -v '^ *+' conftest.er1 >conftest.err
18458 rm -f conftest.er1
18459 cat conftest.err >&5
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); } >/dev/null; then
18462 if test -s conftest.err; then
18463 ac_cpp_err=$ac_c_preproc_warn_flag
18464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18465 else
18466 ac_cpp_err=
18467 fi
18468else
18469 ac_cpp_err=yes
18470fi
18471if test -z "$ac_cpp_err"; then
18472 ac_header_preproc=yes
97bf5e38 18473else
bec39cab
AC
18474 echo "$as_me: failed program was:" >&5
18475sed 's/^/| /' conftest.$ac_ext >&5
18476
18477 ac_header_preproc=no
72473524 18478fi
bec39cab 18479rm -f conftest.err conftest.$ac_ext
b4e70030
JB
18480echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18481echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 18482
bec39cab
AC
18483# So? What about this header?
18484case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18485 yes:no: )
18486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18487echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18489echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18490 ac_header_preproc=yes
18491 ;;
18492 no:yes:* )
18493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18494echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18496echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18498echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18500echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18502echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18504echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
18505 (
18506 cat <<\_ASBOX
18507## ------------------------------------------ ##
18508## Report this to the AC_PACKAGE_NAME lists. ##
18509## ------------------------------------------ ##
18510_ASBOX
18511 ) |
18512 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
18513 ;;
18514esac
b4e70030
JB
18515echo "$as_me:$LINENO: checking for $ac_header" >&5
18516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18517if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 18518 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18519else
bec39cab
AC
18520 eval "$as_ac_Header=\$ac_header_preproc"
18521fi
b4e70030
JB
18522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18523echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
18524
18525fi
18526if test `eval echo '${'$as_ac_Header'}'` = yes; then
18527 cat >>confdefs.h <<_ACEOF
18528#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18529_ACEOF
18530
18531fi
18532
18533done
18534
18535
a3828db0 18536for ac_func in getpagesize
bec39cab
AC
18537do
18538as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18539echo "$as_me:$LINENO: checking for $ac_func" >&5
18540echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18541if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18542 echo $ECHO_N "(cached) $ECHO_C" >&6
18543else
18544 cat >conftest.$ac_ext <<_ACEOF
18545/* confdefs.h. */
18546_ACEOF
18547cat confdefs.h >>conftest.$ac_ext
18548cat >>conftest.$ac_ext <<_ACEOF
18549/* end confdefs.h. */
18550/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18552#define $ac_func innocuous_$ac_func
18553
97bf5e38 18554/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18555 which can conflict with char $ac_func (); below.
18556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18557 <limits.h> exists even on freestanding compilers. */
2b2d558c 18558
bec39cab
AC
18559#ifdef __STDC__
18560# include <limits.h>
18561#else
18562# include <assert.h>
18563#endif
97bf5e38 18564
bec39cab
AC
18565#undef $ac_func
18566
b4e70030 18567/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
18568#ifdef __cplusplus
18569extern "C"
b4e70030 18570{
bec39cab 18571#endif
b4e70030
JB
18572/* We use char because int might match the return type of a gcc2
18573 builtin and then its argument prototype would still apply. */
bec39cab 18574char $ac_func ();
97bf5e38
MK
18575/* The GNU C library defines this for functions which it implements
18576 to always fail with ENOSYS. Some functions are actually named
18577 something starting with __ and the normal name is an alias. */
b4e70030 18578#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 18579choke me
b4e70030
JB
18580#else
18581char (*f) () = $ac_func;
18582#endif
18583#ifdef __cplusplus
18584}
97bf5e38
MK
18585#endif
18586
bec39cab
AC
18587int
18588main ()
18589{
b4e70030 18590return f != $ac_func;
bec39cab
AC
18591 ;
18592 return 0;
18593}
18594_ACEOF
18595rm -f conftest.$ac_objext conftest$ac_exeext
18596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18597 (eval $ac_link) 2>conftest.er1
18598 ac_status=$?
18599 grep -v '^ *+' conftest.er1 >conftest.err
18600 rm -f conftest.er1
18601 cat conftest.err >&5
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); } &&
b4e70030
JB
18604 { ac_try='test -z "$ac_c_werror_flag"
18605 || test ! -s conftest.err'
bec39cab
AC
18606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18607 (eval $ac_try) 2>&5
18608 ac_status=$?
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); }; } &&
18611 { ac_try='test -s conftest$ac_exeext'
18612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613 (eval $ac_try) 2>&5
18614 ac_status=$?
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; }; then
18617 eval "$as_ac_var=yes"
18618else
18619 echo "$as_me: failed program was:" >&5
18620sed 's/^/| /' conftest.$ac_ext >&5
18621
b4e70030 18622eval "$as_ac_var=no"
bec39cab
AC
18623fi
18624rm -f conftest.err conftest.$ac_objext \
18625 conftest$ac_exeext conftest.$ac_ext
18626fi
b4e70030
JB
18627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18628echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18629if test `eval echo '${'$as_ac_var'}'` = yes; then
18630 cat >>confdefs.h <<_ACEOF
18631#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18632_ACEOF
18633
2b2d558c 18634fi
bec39cab 18635done
2b2d558c 18636
b4e70030
JB
18637echo "$as_me:$LINENO: checking for working mmap" >&5
18638echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
a3828db0 18639if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 18640 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18641else
bec39cab 18642 if test "$cross_compiling" = yes; then
a3828db0 18643 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
18644else
18645 cat >conftest.$ac_ext <<_ACEOF
a3828db0 18646/* confdefs.h. */
bec39cab
AC
18647_ACEOF
18648cat confdefs.h >>conftest.$ac_ext
18649cat >>conftest.$ac_ext <<_ACEOF
18650/* end confdefs.h. */
a3828db0
MK
18651$ac_includes_default
18652/* malloc might have been renamed as rpl_malloc. */
18653#undef malloc
bec39cab 18654
a3828db0
MK
18655/* Thanks to Mike Haertel and Jim Avera for this test.
18656 Here is a matrix of mmap possibilities:
18657 mmap private not fixed
18658 mmap private fixed at somewhere currently unmapped
18659 mmap private fixed at somewhere already mapped
18660 mmap shared not fixed
18661 mmap shared fixed at somewhere currently unmapped
18662 mmap shared fixed at somewhere already mapped
18663 For private mappings, we should verify that changes cannot be read()
18664 back from the file, nor mmap's back from the file at a different
18665 address. (There have been systems where private was not correctly
18666 implemented like the infamous i386 svr4.0, and systems where the
18667 VM page cache was not coherent with the file system buffer cache
18668 like early versions of FreeBSD and possibly contemporary NetBSD.)
18669 For shared mappings, we should conversely verify that changes get
18670 propagated back to all the places they're supposed to be.
7dfa765c 18671
a3828db0
MK
18672 Grep wants private fixed already mapped.
18673 The main things grep needs to know about mmap are:
18674 * does it exist and is it safe to write into the mmap'd area
18675 * how to use it (BSD variants) */
7dfa765c 18676
a3828db0
MK
18677#include <fcntl.h>
18678#include <sys/mman.h>
7dfa765c 18679
a3828db0
MK
18680#if !STDC_HEADERS && !HAVE_STDLIB_H
18681char *malloc ();
18682#endif
7dfa765c 18683
a3828db0
MK
18684/* This mess was copied from the GNU getpagesize.h. */
18685#if !HAVE_GETPAGESIZE
18686/* Assume that all systems that can run configure have sys/param.h. */
18687# if !HAVE_SYS_PARAM_H
18688# define HAVE_SYS_PARAM_H 1
18689# endif
64bb1671 18690
a3828db0
MK
18691# ifdef _SC_PAGESIZE
18692# define getpagesize() sysconf(_SC_PAGESIZE)
18693# else /* no _SC_PAGESIZE */
18694# if HAVE_SYS_PARAM_H
18695# include <sys/param.h>
18696# ifdef EXEC_PAGESIZE
18697# define getpagesize() EXEC_PAGESIZE
18698# else /* no EXEC_PAGESIZE */
18699# ifdef NBPG
18700# define getpagesize() NBPG * CLSIZE
18701# ifndef CLSIZE
18702# define CLSIZE 1
18703# endif /* no CLSIZE */
18704# else /* no NBPG */
18705# ifdef NBPC
18706# define getpagesize() NBPC
18707# else /* no NBPC */
18708# ifdef PAGESIZE
18709# define getpagesize() PAGESIZE
18710# endif /* PAGESIZE */
18711# endif /* no NBPC */
18712# endif /* no NBPG */
18713# endif /* no EXEC_PAGESIZE */
18714# else /* no HAVE_SYS_PARAM_H */
18715# define getpagesize() 8192 /* punt totally */
18716# endif /* no HAVE_SYS_PARAM_H */
18717# endif /* no _SC_PAGESIZE */
64bb1671 18718
a3828db0 18719#endif /* no HAVE_GETPAGESIZE */
64bb1671 18720
a3828db0
MK
18721int
18722main ()
18723{
18724 char *data, *data2, *data3;
18725 int i, pagesize;
18726 int fd;
97bf5e38 18727
a3828db0
MK
18728 pagesize = getpagesize ();
18729
18730 /* First, make a file with some known garbage in it. */
18731 data = (char *) malloc (pagesize);
18732 if (!data)
b4e70030 18733 exit (1);
a3828db0
MK
18734 for (i = 0; i < pagesize; ++i)
18735 *(data + i) = rand ();
18736 umask (0);
18737 fd = creat ("conftest.mmap", 0600);
18738 if (fd < 0)
b4e70030 18739 exit (1);
a3828db0 18740 if (write (fd, data, pagesize) != pagesize)
b4e70030 18741 exit (1);
a3828db0
MK
18742 close (fd);
18743
18744 /* Next, try to mmap the file at a fixed address which already has
18745 something else allocated at it. If we can, also make sure that
18746 we see the same garbage. */
18747 fd = open ("conftest.mmap", O_RDWR);
18748 if (fd < 0)
b4e70030 18749 exit (1);
a3828db0
MK
18750 data2 = (char *) malloc (2 * pagesize);
18751 if (!data2)
b4e70030
JB
18752 exit (1);
18753 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
a3828db0
MK
18754 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18755 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b4e70030 18756 exit (1);
a3828db0
MK
18757 for (i = 0; i < pagesize; ++i)
18758 if (*(data + i) != *(data2 + i))
b4e70030 18759 exit (1);
a3828db0
MK
18760
18761 /* Finally, make sure that changes to the mapped area do not
18762 percolate back to the file as seen by read(). (This is a bug on
18763 some variants of i386 svr4.0.) */
18764 for (i = 0; i < pagesize; ++i)
18765 *(data2 + i) = *(data2 + i) + 1;
18766 data3 = (char *) malloc (pagesize);
18767 if (!data3)
b4e70030 18768 exit (1);
a3828db0 18769 if (read (fd, data3, pagesize) != pagesize)
b4e70030 18770 exit (1);
a3828db0
MK
18771 for (i = 0; i < pagesize; ++i)
18772 if (*(data + i) != *(data3 + i))
b4e70030 18773 exit (1);
a3828db0 18774 close (fd);
b4e70030 18775 exit (0);
97bf5e38 18776}
bec39cab
AC
18777_ACEOF
18778rm -f conftest$ac_exeext
18779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18780 (eval $ac_link) 2>&5
18781 ac_status=$?
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18785 (eval $ac_try) 2>&5
18786 ac_status=$?
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); }; }; then
a3828db0 18789 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 18790else
bec39cab
AC
18791 echo "$as_me: program exited with status $ac_status" >&5
18792echo "$as_me: failed program was:" >&5
18793sed 's/^/| /' conftest.$ac_ext >&5
18794
18795( exit $ac_status )
a3828db0 18796ac_cv_func_mmap_fixed_mapped=no
0afdd437 18797fi
b4e70030 18798rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 18799fi
a3828db0 18800fi
b4e70030
JB
18801echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18802echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
a3828db0 18803if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
18804
18805cat >>confdefs.h <<\_ACEOF
a3828db0 18806#define HAVE_MMAP 1
bec39cab 18807_ACEOF
0afdd437
MK
18808
18809fi
a3828db0 18810rm -f conftest.mmap
0afdd437 18811
b4e70030
JB
18812echo "$as_me:$LINENO: checking for pid_t" >&5
18813echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
a3828db0 18814if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
18815 echo $ECHO_N "(cached) $ECHO_C" >&6
18816else
18817 cat >conftest.$ac_ext <<_ACEOF
18818/* confdefs.h. */
18819_ACEOF
18820cat confdefs.h >>conftest.$ac_ext
18821cat >>conftest.$ac_ext <<_ACEOF
18822/* end confdefs.h. */
a3828db0 18823$ac_includes_default
bec39cab
AC
18824int
18825main ()
18826{
b4e70030 18827if ((pid_t *) 0)
a3828db0 18828 return 0;
b4e70030 18829if (sizeof (pid_t))
a3828db0 18830 return 0;
bec39cab
AC
18831 ;
18832 return 0;
18833}
18834_ACEOF
a3828db0
MK
18835rm -f conftest.$ac_objext
18836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18837 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
18838 ac_status=$?
18839 grep -v '^ *+' conftest.er1 >conftest.err
18840 rm -f conftest.er1
18841 cat conftest.err >&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } &&
b4e70030
JB
18844 { ac_try='test -z "$ac_c_werror_flag"
18845 || test ! -s conftest.err'
bec39cab
AC
18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; } &&
a3828db0 18851 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
18852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18853 (eval $ac_try) 2>&5
18854 ac_status=$?
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; }; then
a3828db0 18857 ac_cv_type_pid_t=yes
bec39cab
AC
18858else
18859 echo "$as_me: failed program was:" >&5
18860sed 's/^/| /' conftest.$ac_ext >&5
18861
b4e70030 18862ac_cv_type_pid_t=no
bec39cab 18863fi
a3828db0 18864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 18865fi
b4e70030
JB
18866echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18867echo "${ECHO_T}$ac_cv_type_pid_t" >&6
a3828db0
MK
18868if test $ac_cv_type_pid_t = yes; then
18869 :
18870else
18871
18872cat >>confdefs.h <<_ACEOF
18873#define pid_t int
bec39cab 18874_ACEOF
7e89e357 18875
7e89e357
JT
18876fi
18877
bec39cab 18878
b4e70030
JB
18879
18880for ac_header in unistd.h vfork.h
7be570e7 18881do
a3828db0 18882as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
18883if eval "test \"\${$as_ac_Header+set}\" = set"; then
18884 echo "$as_me:$LINENO: checking for $ac_header" >&5
18885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18886if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 18887 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0 18888fi
b4e70030
JB
18889echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18890echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 18891else
a3828db0 18892 # Is the header compilable?
b4e70030
JB
18893echo "$as_me:$LINENO: checking $ac_header usability" >&5
18894echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0 18895cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18896/* confdefs.h. */
18897_ACEOF
18898cat confdefs.h >>conftest.$ac_ext
18899cat >>conftest.$ac_ext <<_ACEOF
18900/* end confdefs.h. */
a3828db0
MK
18901$ac_includes_default
18902#include <$ac_header>
bec39cab 18903_ACEOF
a3828db0
MK
18904rm -f conftest.$ac_objext
18905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18906 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
18907 ac_status=$?
18908 grep -v '^ *+' conftest.er1 >conftest.err
18909 rm -f conftest.er1
18910 cat conftest.err >&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); } &&
b4e70030
JB
18913 { ac_try='test -z "$ac_c_werror_flag"
18914 || test ! -s conftest.err'
bec39cab
AC
18915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18916 (eval $ac_try) 2>&5
18917 ac_status=$?
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); }; } &&
a3828db0 18920 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
18921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18922 (eval $ac_try) 2>&5
18923 ac_status=$?
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; }; then
a3828db0 18926 ac_header_compiler=yes
bec39cab
AC
18927else
18928 echo "$as_me: failed program was:" >&5
18929sed 's/^/| /' conftest.$ac_ext >&5
18930
b4e70030 18931ac_header_compiler=no
bec39cab 18932fi
a3828db0 18933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
18934echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18935echo "${ECHO_T}$ac_header_compiler" >&6
a3828db0
MK
18936
18937# Is the header present?
b4e70030
JB
18938echo "$as_me:$LINENO: checking $ac_header presence" >&5
18939echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a3828db0
MK
18940cat >conftest.$ac_ext <<_ACEOF
18941/* confdefs.h. */
18942_ACEOF
18943cat confdefs.h >>conftest.$ac_ext
18944cat >>conftest.$ac_ext <<_ACEOF
18945/* end confdefs.h. */
18946#include <$ac_header>
18947_ACEOF
18948if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18950 ac_status=$?
18951 grep -v '^ *+' conftest.er1 >conftest.err
18952 rm -f conftest.er1
18953 cat conftest.err >&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); } >/dev/null; then
18956 if test -s conftest.err; then
18957 ac_cpp_err=$ac_c_preproc_warn_flag
18958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18959 else
18960 ac_cpp_err=
18961 fi
18962else
18963 ac_cpp_err=yes
18964fi
18965if test -z "$ac_cpp_err"; then
18966 ac_header_preproc=yes
18967else
18968 echo "$as_me: failed program was:" >&5
18969sed 's/^/| /' conftest.$ac_ext >&5
18970
18971 ac_header_preproc=no
18972fi
18973rm -f conftest.err conftest.$ac_ext
b4e70030
JB
18974echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18975echo "${ECHO_T}$ac_header_preproc" >&6
a3828db0
MK
18976
18977# So? What about this header?
18978case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18979 yes:no: )
18980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18981echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18983echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18984 ac_header_preproc=yes
18985 ;;
18986 no:yes:* )
18987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18988echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18990echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18992echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18994echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18996echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18998echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
18999 (
19000 cat <<\_ASBOX
19001## ------------------------------------------ ##
19002## Report this to the AC_PACKAGE_NAME lists. ##
19003## ------------------------------------------ ##
19004_ASBOX
19005 ) |
19006 sed "s/^/$as_me: WARNING: /" >&2
a3828db0
MK
19007 ;;
19008esac
b4e70030
JB
19009echo "$as_me:$LINENO: checking for $ac_header" >&5
19010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19011if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19013else
19014 eval "$as_ac_Header=\$ac_header_preproc"
19015fi
b4e70030
JB
19016echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19017echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0 19018
bec39cab 19019fi
a3828db0 19020if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 19021 cat >>confdefs.h <<_ACEOF
a3828db0 19022#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 19023_ACEOF
14abd0fb 19024
14abd0fb 19025fi
a3828db0 19026
14abd0fb
MK
19027done
19028
bec39cab 19029
a3828db0
MK
19030
19031for ac_func in fork vfork
14abd0fb 19032do
bec39cab 19033as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19034echo "$as_me:$LINENO: checking for $ac_func" >&5
19035echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19036if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19037 echo $ECHO_N "(cached) $ECHO_C" >&6
19038else
19039 cat >conftest.$ac_ext <<_ACEOF
19040/* confdefs.h. */
19041_ACEOF
19042cat confdefs.h >>conftest.$ac_ext
19043cat >>conftest.$ac_ext <<_ACEOF
19044/* end confdefs.h. */
19045/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19047#define $ac_func innocuous_$ac_func
19048
14abd0fb 19049/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19050 which can conflict with char $ac_func (); below.
19051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19052 <limits.h> exists even on freestanding compilers. */
19053
19054#ifdef __STDC__
19055# include <limits.h>
19056#else
19057# include <assert.h>
19058#endif
14abd0fb 19059
bec39cab 19060#undef $ac_func
14abd0fb 19061
b4e70030 19062/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19063#ifdef __cplusplus
19064extern "C"
b4e70030 19065{
bec39cab 19066#endif
b4e70030
JB
19067/* We use char because int might match the return type of a gcc2
19068 builtin and then its argument prototype would still apply. */
bec39cab 19069char $ac_func ();
14abd0fb
MK
19070/* The GNU C library defines this for functions which it implements
19071 to always fail with ENOSYS. Some functions are actually named
19072 something starting with __ and the normal name is an alias. */
b4e70030 19073#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14abd0fb 19074choke me
b4e70030
JB
19075#else
19076char (*f) () = $ac_func;
19077#endif
19078#ifdef __cplusplus
19079}
14abd0fb
MK
19080#endif
19081
bec39cab
AC
19082int
19083main ()
19084{
b4e70030 19085return f != $ac_func;
bec39cab
AC
19086 ;
19087 return 0;
19088}
19089_ACEOF
19090rm -f conftest.$ac_objext conftest$ac_exeext
19091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19092 (eval $ac_link) 2>conftest.er1
19093 ac_status=$?
19094 grep -v '^ *+' conftest.er1 >conftest.err
19095 rm -f conftest.er1
19096 cat conftest.err >&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } &&
b4e70030
JB
19099 { ac_try='test -z "$ac_c_werror_flag"
19100 || test ! -s conftest.err'
bec39cab
AC
19101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; } &&
19106 { ac_try='test -s conftest$ac_exeext'
19107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19108 (eval $ac_try) 2>&5
19109 ac_status=$?
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); }; }; then
19112 eval "$as_ac_var=yes"
19113else
19114 echo "$as_me: failed program was:" >&5
19115sed 's/^/| /' conftest.$ac_ext >&5
19116
b4e70030 19117eval "$as_ac_var=no"
bec39cab
AC
19118fi
19119rm -f conftest.err conftest.$ac_objext \
19120 conftest$ac_exeext conftest.$ac_ext
19121fi
b4e70030
JB
19122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19123echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19124if test `eval echo '${'$as_ac_var'}'` = yes; then
19125 cat >>confdefs.h <<_ACEOF
19126#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19127_ACEOF
7be570e7 19128
7be570e7
JM
19129fi
19130done
19131
a3828db0 19132if test "x$ac_cv_func_fork" = xyes; then
b4e70030
JB
19133 echo "$as_me:$LINENO: checking for working fork" >&5
19134echo $ECHO_N "checking for working fork... $ECHO_C" >&6
a3828db0
MK
19135if test "${ac_cv_func_fork_works+set}" = set; then
19136 echo $ECHO_N "(cached) $ECHO_C" >&6
19137else
19138 if test "$cross_compiling" = yes; then
19139 ac_cv_func_fork_works=cross
19140else
19141 cat >conftest.$ac_ext <<_ACEOF
b4e70030
JB
19142/* By Ruediger Kuhlmann. */
19143 #include <sys/types.h>
19144 #if HAVE_UNISTD_H
19145 # include <unistd.h>
19146 #endif
19147 /* Some systems only have a dummy stub for fork() */
19148 int main ()
19149 {
19150 if (fork() < 0)
19151 exit (1);
19152 exit (0);
19153 }
a3828db0
MK
19154_ACEOF
19155rm -f conftest$ac_exeext
19156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19157 (eval $ac_link) 2>&5
19158 ac_status=$?
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19162 (eval $ac_try) 2>&5
19163 ac_status=$?
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); }; }; then
19166 ac_cv_func_fork_works=yes
19167else
19168 echo "$as_me: program exited with status $ac_status" >&5
19169echo "$as_me: failed program was:" >&5
19170sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 19171
a3828db0
MK
19172( exit $ac_status )
19173ac_cv_func_fork_works=no
19174fi
b4e70030 19175rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
19176fi
19177fi
b4e70030
JB
19178echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
19179echo "${ECHO_T}$ac_cv_func_fork_works" >&6
a3828db0
MK
19180
19181else
19182 ac_cv_func_fork_works=$ac_cv_func_fork
19183fi
19184if test "x$ac_cv_func_fork_works" = xcross; then
19185 case $host in
19186 *-*-amigaos* | *-*-msdosdjgpp*)
19187 # Override, as these systems have only a dummy fork() stub
19188 ac_cv_func_fork_works=no
19189 ;;
19190 *)
19191 ac_cv_func_fork_works=yes
19192 ;;
19193 esac
19194 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19195echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19196fi
19197ac_cv_func_vfork_works=$ac_cv_func_vfork
19198if test "x$ac_cv_func_vfork" = xyes; then
b4e70030
JB
19199 echo "$as_me:$LINENO: checking for working vfork" >&5
19200echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
a3828db0 19201if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 19202 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
19203else
19204 if test "$cross_compiling" = yes; then
19205 ac_cv_func_vfork_works=cross
bec39cab
AC
19206else
19207 cat >conftest.$ac_ext <<_ACEOF
19208/* confdefs.h. */
19209_ACEOF
19210cat confdefs.h >>conftest.$ac_ext
19211cat >>conftest.$ac_ext <<_ACEOF
19212/* end confdefs.h. */
a3828db0 19213/* Thanks to Paul Eggert for this test. */
b4e70030
JB
19214#include <stdio.h>
19215#include <stdlib.h>
19216#include <sys/types.h>
19217#include <sys/stat.h>
a3828db0 19218#include <sys/wait.h>
b4e70030
JB
19219#if HAVE_UNISTD_H
19220# include <unistd.h>
19221#endif
a3828db0
MK
19222#if HAVE_VFORK_H
19223# include <vfork.h>
bec39cab 19224#endif
a3828db0
MK
19225/* On some sparc systems, changes by the child to local and incoming
19226 argument registers are propagated back to the parent. The compiler
19227 is told about this with #include <vfork.h>, but some compilers
19228 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19229 static variable whose address is put into a register that is
19230 clobbered by the vfork. */
19231static void
bec39cab 19232#ifdef __cplusplus
a3828db0
MK
19233sparc_address_test (int arg)
19234# else
19235sparc_address_test (arg) int arg;
c906108c 19236#endif
a3828db0
MK
19237{
19238 static pid_t child;
19239 if (!child) {
19240 child = vfork ();
19241 if (child < 0) {
19242 perror ("vfork");
19243 _exit(2);
19244 }
19245 if (!child) {
19246 arg = getpid();
19247 write(-1, "", 0);
19248 _exit (arg);
19249 }
19250 }
19251}
97bf5e38 19252
bec39cab
AC
19253int
19254main ()
19255{
a3828db0
MK
19256 pid_t parent = getpid ();
19257 pid_t child;
19258
19259 sparc_address_test (0);
19260
19261 child = vfork ();
19262
19263 if (child == 0) {
19264 /* Here is another test for sparc vfork register problems. This
19265 test uses lots of local variables, at least as many local
19266 variables as main has allocated so far including compiler
19267 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19268 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19269 reuse the register of parent for one of the local variables,
19270 since it will think that parent can't possibly be used any more
19271 in this routine. Assigning to the local variable will thus
19272 munge parent in the parent process. */
19273 pid_t
19274 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19275 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19276 /* Convince the compiler that p..p7 are live; otherwise, it might
19277 use the same hardware register for all 8 local variables. */
19278 if (p != p1 || p != p2 || p != p3 || p != p4
19279 || p != p5 || p != p6 || p != p7)
19280 _exit(1);
19281
19282 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19283 from child file descriptors. If the child closes a descriptor
19284 before it execs or exits, this munges the parent's descriptor
19285 as well. Test for this by closing stdout in the child. */
19286 _exit(close(fileno(stdout)) != 0);
19287 } else {
19288 int status;
19289 struct stat st;
19290
19291 while (wait(&status) != child)
19292 ;
b4e70030 19293 exit(
a3828db0
MK
19294 /* Was there some problem with vforking? */
19295 child < 0
19296
19297 /* Did the child fail? (This shouldn't happen.) */
19298 || status
19299
19300 /* Did the vfork/compiler bug occur? */
19301 || parent != getpid()
19302
19303 /* Did the file descriptor bug occur? */
19304 || fstat(fileno(stdout), &st) != 0
19305 );
19306 }
bec39cab
AC
19307}
19308_ACEOF
a3828db0 19309rm -f conftest$ac_exeext
bec39cab 19310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 19311 (eval $ac_link) 2>&5
bec39cab
AC
19312 ac_status=$?
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 19314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
19315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316 (eval $ac_try) 2>&5
19317 ac_status=$?
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; }; then
a3828db0
MK
19320 ac_cv_func_vfork_works=yes
19321else
19322 echo "$as_me: program exited with status $ac_status" >&5
19323echo "$as_me: failed program was:" >&5
19324sed 's/^/| /' conftest.$ac_ext >&5
19325
19326( exit $ac_status )
19327ac_cv_func_vfork_works=no
19328fi
b4e70030 19329rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
19330fi
19331fi
b4e70030
JB
19332echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
19333echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
a3828db0
MK
19334
19335fi;
19336if test "x$ac_cv_func_fork_works" = xcross; then
19337 ac_cv_func_vfork_works=$ac_cv_func_vfork
19338 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19339echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19340fi
19341
19342if test "x$ac_cv_func_vfork_works" = xyes; then
19343
19344cat >>confdefs.h <<\_ACEOF
19345#define HAVE_WORKING_VFORK 1
19346_ACEOF
19347
bec39cab 19348else
bec39cab 19349
a3828db0
MK
19350cat >>confdefs.h <<\_ACEOF
19351#define vfork fork
19352_ACEOF
19353
bec39cab 19354fi
a3828db0
MK
19355if test "x$ac_cv_func_fork_works" = xyes; then
19356
19357cat >>confdefs.h <<\_ACEOF
19358#define HAVE_WORKING_FORK 1
bec39cab 19359_ACEOF
c906108c 19360
c906108c
SS
19361fi
19362
bec39cab
AC
19363
19364
a3828db0 19365for ac_func in canonicalize_file_name realpath
97bf5e38 19366do
bec39cab 19367as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030 19368echo "$as_me:$LINENO: checking for $ac_func" >&5
7eb368b3
NR
19369echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19370if eval "test \"\${$as_ac_var+set}\" = set"; then
19371 echo $ECHO_N "(cached) $ECHO_C" >&6
19372else
19373 cat >conftest.$ac_ext <<_ACEOF
19374/* confdefs.h. */
19375_ACEOF
19376cat confdefs.h >>conftest.$ac_ext
19377cat >>conftest.$ac_ext <<_ACEOF
19378/* end confdefs.h. */
19379/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19381#define $ac_func innocuous_$ac_func
19382
19383/* System header to define __stub macros and hopefully few prototypes,
19384 which can conflict with char $ac_func (); below.
19385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19386 <limits.h> exists even on freestanding compilers. */
19387
19388#ifdef __STDC__
19389# include <limits.h>
19390#else
19391# include <assert.h>
19392#endif
19393
19394#undef $ac_func
19395
19396/* Override any gcc2 internal prototype to avoid an error. */
19397#ifdef __cplusplus
19398extern "C"
19399{
19400#endif
19401/* We use char because int might match the return type of a gcc2
19402 builtin and then its argument prototype would still apply. */
19403char $ac_func ();
19404/* The GNU C library defines this for functions which it implements
19405 to always fail with ENOSYS. Some functions are actually named
19406 something starting with __ and the normal name is an alias. */
19407#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19408choke me
19409#else
19410char (*f) () = $ac_func;
19411#endif
19412#ifdef __cplusplus
19413}
19414#endif
19415
19416int
19417main ()
19418{
19419return f != $ac_func;
19420 ;
19421 return 0;
19422}
19423_ACEOF
19424rm -f conftest.$ac_objext conftest$ac_exeext
19425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19426 (eval $ac_link) 2>conftest.er1
19427 ac_status=$?
19428 grep -v '^ *+' conftest.er1 >conftest.err
19429 rm -f conftest.er1
19430 cat conftest.err >&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); } &&
19433 { ac_try='test -z "$ac_c_werror_flag"
19434 || test ! -s conftest.err'
19435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19436 (eval $ac_try) 2>&5
19437 ac_status=$?
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; } &&
19440 { ac_try='test -s conftest$ac_exeext'
19441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442 (eval $ac_try) 2>&5
19443 ac_status=$?
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; }; then
19446 eval "$as_ac_var=yes"
19447else
19448 echo "$as_me: failed program was:" >&5
19449sed 's/^/| /' conftest.$ac_ext >&5
19450
19451eval "$as_ac_var=no"
19452fi
19453rm -f conftest.err conftest.$ac_objext \
19454 conftest$ac_exeext conftest.$ac_ext
19455fi
19456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19457echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19458if test `eval echo '${'$as_ac_var'}'` = yes; then
19459 cat >>confdefs.h <<_ACEOF
19460#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19461_ACEOF
19462
19463fi
19464done
19465
19466
19467for ac_func in getrusage
19468do
19469as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19470echo "$as_me:$LINENO: checking for $ac_func" >&5
b4e70030
JB
19471echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19472if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19473 echo $ECHO_N "(cached) $ECHO_C" >&6
19474else
19475 cat >conftest.$ac_ext <<_ACEOF
19476/* confdefs.h. */
19477_ACEOF
19478cat confdefs.h >>conftest.$ac_ext
19479cat >>conftest.$ac_ext <<_ACEOF
19480/* end confdefs.h. */
19481/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19483#define $ac_func innocuous_$ac_func
19484
d3ea6809
MM
19485/* System header to define __stub macros and hopefully few prototypes,
19486 which can conflict with char $ac_func (); below.
19487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19488 <limits.h> exists even on freestanding compilers. */
19489
19490#ifdef __STDC__
19491# include <limits.h>
19492#else
19493# include <assert.h>
19494#endif
19495
19496#undef $ac_func
19497
b4e70030 19498/* Override any gcc2 internal prototype to avoid an error. */
d3ea6809
MM
19499#ifdef __cplusplus
19500extern "C"
b4e70030 19501{
d3ea6809 19502#endif
b4e70030
JB
19503/* We use char because int might match the return type of a gcc2
19504 builtin and then its argument prototype would still apply. */
d3ea6809
MM
19505char $ac_func ();
19506/* The GNU C library defines this for functions which it implements
19507 to always fail with ENOSYS. Some functions are actually named
19508 something starting with __ and the normal name is an alias. */
b4e70030 19509#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d3ea6809 19510choke me
b4e70030
JB
19511#else
19512char (*f) () = $ac_func;
19513#endif
19514#ifdef __cplusplus
19515}
d3ea6809
MM
19516#endif
19517
19518int
19519main ()
19520{
b4e70030 19521return f != $ac_func;
d3ea6809
MM
19522 ;
19523 return 0;
19524}
19525_ACEOF
19526rm -f conftest.$ac_objext conftest$ac_exeext
19527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19528 (eval $ac_link) 2>conftest.er1
19529 ac_status=$?
19530 grep -v '^ *+' conftest.er1 >conftest.err
19531 rm -f conftest.er1
19532 cat conftest.err >&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); } &&
b4e70030
JB
19535 { ac_try='test -z "$ac_c_werror_flag"
19536 || test ! -s conftest.err'
d3ea6809
MM
19537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538 (eval $ac_try) 2>&5
19539 ac_status=$?
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); }; } &&
19542 { ac_try='test -s conftest$ac_exeext'
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19545 ac_status=$?
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; }; then
19548 eval "$as_ac_var=yes"
19549else
19550 echo "$as_me: failed program was:" >&5
19551sed 's/^/| /' conftest.$ac_ext >&5
19552
b4e70030 19553eval "$as_ac_var=no"
d3ea6809
MM
19554fi
19555rm -f conftest.err conftest.$ac_objext \
19556 conftest$ac_exeext conftest.$ac_ext
19557fi
b4e70030
JB
19558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19559echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d3ea6809
MM
19560if test `eval echo '${'$as_ac_var'}'` = yes; then
19561 cat >>confdefs.h <<_ACEOF
19562#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19563_ACEOF
19564
19565fi
19566done
19567
19568
19569
19570for ac_func in getuid getgid
19571do
19572as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19573echo "$as_me:$LINENO: checking for $ac_func" >&5
19574echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19575if eval "test \"\${$as_ac_var+set}\" = set"; then
d3ea6809
MM
19576 echo $ECHO_N "(cached) $ECHO_C" >&6
19577else
19578 cat >conftest.$ac_ext <<_ACEOF
19579/* confdefs.h. */
19580_ACEOF
19581cat confdefs.h >>conftest.$ac_ext
19582cat >>conftest.$ac_ext <<_ACEOF
19583/* end confdefs.h. */
19584/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19586#define $ac_func innocuous_$ac_func
19587
97bf5e38 19588/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19589 which can conflict with char $ac_func (); below.
19590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19591 <limits.h> exists even on freestanding compilers. */
c906108c 19592
bec39cab
AC
19593#ifdef __STDC__
19594# include <limits.h>
19595#else
19596# include <assert.h>
19597#endif
97bf5e38 19598
bec39cab
AC
19599#undef $ac_func
19600
b4e70030 19601/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19602#ifdef __cplusplus
19603extern "C"
b4e70030 19604{
bec39cab 19605#endif
b4e70030
JB
19606/* We use char because int might match the return type of a gcc2
19607 builtin and then its argument prototype would still apply. */
bec39cab 19608char $ac_func ();
97bf5e38
MK
19609/* The GNU C library defines this for functions which it implements
19610 to always fail with ENOSYS. Some functions are actually named
19611 something starting with __ and the normal name is an alias. */
b4e70030 19612#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 19613choke me
b4e70030
JB
19614#else
19615char (*f) () = $ac_func;
19616#endif
19617#ifdef __cplusplus
19618}
c906108c 19619#endif
97bf5e38 19620
bec39cab
AC
19621int
19622main ()
19623{
b4e70030 19624return f != $ac_func;
bec39cab
AC
19625 ;
19626 return 0;
19627}
19628_ACEOF
19629rm -f conftest.$ac_objext conftest$ac_exeext
19630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19631 (eval $ac_link) 2>conftest.er1
19632 ac_status=$?
19633 grep -v '^ *+' conftest.er1 >conftest.err
19634 rm -f conftest.er1
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
b4e70030
JB
19638 { ac_try='test -z "$ac_c_werror_flag"
19639 || test ! -s conftest.err'
bec39cab
AC
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19642 ac_status=$?
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; } &&
19645 { ac_try='test -s conftest$ac_exeext'
19646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19648 ac_status=$?
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; }; then
19651 eval "$as_ac_var=yes"
19652else
19653 echo "$as_me: failed program was:" >&5
19654sed 's/^/| /' conftest.$ac_ext >&5
19655
b4e70030 19656eval "$as_ac_var=no"
bec39cab
AC
19657fi
19658rm -f conftest.err conftest.$ac_objext \
19659 conftest$ac_exeext conftest.$ac_ext
19660fi
b4e70030
JB
19661echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19662echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19663if test `eval echo '${'$as_ac_var'}'` = yes; then
19664 cat >>confdefs.h <<_ACEOF
19665#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19666_ACEOF
c906108c 19667
c906108c 19668fi
97bf5e38 19669done
c906108c 19670
bec39cab 19671
a3828db0 19672for ac_func in poll
97bf5e38 19673do
bec39cab 19674as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19675echo "$as_me:$LINENO: checking for $ac_func" >&5
19676echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19677if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19678 echo $ECHO_N "(cached) $ECHO_C" >&6
19679else
19680 cat >conftest.$ac_ext <<_ACEOF
19681/* confdefs.h. */
19682_ACEOF
19683cat confdefs.h >>conftest.$ac_ext
19684cat >>conftest.$ac_ext <<_ACEOF
19685/* end confdefs.h. */
19686/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19688#define $ac_func innocuous_$ac_func
19689
97bf5e38 19690/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19691 which can conflict with char $ac_func (); below.
19692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19693 <limits.h> exists even on freestanding compilers. */
19694
19695#ifdef __STDC__
19696# include <limits.h>
19697#else
19698# include <assert.h>
19699#endif
c906108c 19700
bec39cab 19701#undef $ac_func
97bf5e38 19702
b4e70030 19703/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19704#ifdef __cplusplus
19705extern "C"
b4e70030 19706{
bec39cab 19707#endif
b4e70030
JB
19708/* We use char because int might match the return type of a gcc2
19709 builtin and then its argument prototype would still apply. */
bec39cab 19710char $ac_func ();
97bf5e38
MK
19711/* The GNU C library defines this for functions which it implements
19712 to always fail with ENOSYS. Some functions are actually named
19713 something starting with __ and the normal name is an alias. */
b4e70030 19714#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 19715choke me
b4e70030
JB
19716#else
19717char (*f) () = $ac_func;
19718#endif
19719#ifdef __cplusplus
19720}
c906108c 19721#endif
97bf5e38 19722
bec39cab
AC
19723int
19724main ()
19725{
b4e70030 19726return f != $ac_func;
bec39cab
AC
19727 ;
19728 return 0;
19729}
19730_ACEOF
19731rm -f conftest.$ac_objext conftest$ac_exeext
19732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19733 (eval $ac_link) 2>conftest.er1
19734 ac_status=$?
19735 grep -v '^ *+' conftest.er1 >conftest.err
19736 rm -f conftest.er1
19737 cat conftest.err >&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } &&
b4e70030
JB
19740 { ac_try='test -z "$ac_c_werror_flag"
19741 || test ! -s conftest.err'
bec39cab
AC
19742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19743 (eval $ac_try) 2>&5
19744 ac_status=$?
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; } &&
19747 { ac_try='test -s conftest$ac_exeext'
19748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749 (eval $ac_try) 2>&5
19750 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; }; then
19753 eval "$as_ac_var=yes"
19754else
19755 echo "$as_me: failed program was:" >&5
19756sed 's/^/| /' conftest.$ac_ext >&5
19757
b4e70030 19758eval "$as_ac_var=no"
bec39cab
AC
19759fi
19760rm -f conftest.err conftest.$ac_objext \
19761 conftest$ac_exeext conftest.$ac_ext
19762fi
b4e70030
JB
19763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19764echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19765if test `eval echo '${'$as_ac_var'}'` = yes; then
19766 cat >>confdefs.h <<_ACEOF
19767#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19768_ACEOF
c906108c 19769
c906108c 19770fi
97bf5e38 19771done
c906108c 19772
bec39cab 19773
a3828db0 19774for ac_func in pread64
97bf5e38 19775do
bec39cab 19776as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19777echo "$as_me:$LINENO: checking for $ac_func" >&5
19778echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19779if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19780 echo $ECHO_N "(cached) $ECHO_C" >&6
19781else
19782 cat >conftest.$ac_ext <<_ACEOF
19783/* confdefs.h. */
19784_ACEOF
19785cat confdefs.h >>conftest.$ac_ext
19786cat >>conftest.$ac_ext <<_ACEOF
19787/* end confdefs.h. */
19788/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19790#define $ac_func innocuous_$ac_func
19791
97bf5e38 19792/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19793 which can conflict with char $ac_func (); below.
19794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19795 <limits.h> exists even on freestanding compilers. */
19796
19797#ifdef __STDC__
19798# include <limits.h>
19799#else
19800# include <assert.h>
19801#endif
c906108c 19802
bec39cab 19803#undef $ac_func
97bf5e38 19804
b4e70030 19805/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19806#ifdef __cplusplus
19807extern "C"
b4e70030 19808{
bec39cab 19809#endif
b4e70030
JB
19810/* We use char because int might match the return type of a gcc2
19811 builtin and then its argument prototype would still apply. */
bec39cab 19812char $ac_func ();
97bf5e38
MK
19813/* The GNU C library defines this for functions which it implements
19814 to always fail with ENOSYS. Some functions are actually named
19815 something starting with __ and the normal name is an alias. */
b4e70030 19816#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 19817choke me
b4e70030
JB
19818#else
19819char (*f) () = $ac_func;
19820#endif
19821#ifdef __cplusplus
19822}
c906108c 19823#endif
97bf5e38 19824
bec39cab
AC
19825int
19826main ()
19827{
b4e70030 19828return f != $ac_func;
bec39cab
AC
19829 ;
19830 return 0;
19831}
19832_ACEOF
19833rm -f conftest.$ac_objext conftest$ac_exeext
19834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19835 (eval $ac_link) 2>conftest.er1
19836 ac_status=$?
19837 grep -v '^ *+' conftest.er1 >conftest.err
19838 rm -f conftest.er1
19839 cat conftest.err >&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); } &&
b4e70030
JB
19842 { ac_try='test -z "$ac_c_werror_flag"
19843 || test ! -s conftest.err'
bec39cab
AC
19844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845 (eval $ac_try) 2>&5
19846 ac_status=$?
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; } &&
19849 { ac_try='test -s conftest$ac_exeext'
19850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851 (eval $ac_try) 2>&5
19852 ac_status=$?
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; }; then
19855 eval "$as_ac_var=yes"
19856else
19857 echo "$as_me: failed program was:" >&5
19858sed 's/^/| /' conftest.$ac_ext >&5
19859
b4e70030 19860eval "$as_ac_var=no"
bec39cab
AC
19861fi
19862rm -f conftest.err conftest.$ac_objext \
19863 conftest$ac_exeext conftest.$ac_ext
19864fi
b4e70030
JB
19865echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19866echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19867if test `eval echo '${'$as_ac_var'}'` = yes; then
19868 cat >>confdefs.h <<_ACEOF
19869#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19870_ACEOF
c906108c 19871
c906108c 19872fi
97bf5e38 19873done
c906108c 19874
bec39cab 19875
a3828db0 19876for ac_func in sbrk
b757528f 19877do
bec39cab 19878as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19879echo "$as_me:$LINENO: checking for $ac_func" >&5
19880echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19881if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19882 echo $ECHO_N "(cached) $ECHO_C" >&6
19883else
19884 cat >conftest.$ac_ext <<_ACEOF
19885/* confdefs.h. */
19886_ACEOF
19887cat confdefs.h >>conftest.$ac_ext
19888cat >>conftest.$ac_ext <<_ACEOF
19889/* end confdefs.h. */
19890/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19892#define $ac_func innocuous_$ac_func
19893
b757528f 19894/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19895 which can conflict with char $ac_func (); below.
19896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19897 <limits.h> exists even on freestanding compilers. */
19898
19899#ifdef __STDC__
19900# include <limits.h>
19901#else
19902# include <assert.h>
19903#endif
b757528f 19904
bec39cab 19905#undef $ac_func
b757528f 19906
b4e70030 19907/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19908#ifdef __cplusplus
19909extern "C"
b4e70030 19910{
bec39cab 19911#endif
b4e70030
JB
19912/* We use char because int might match the return type of a gcc2
19913 builtin and then its argument prototype would still apply. */
bec39cab 19914char $ac_func ();
b757528f
JJ
19915/* The GNU C library defines this for functions which it implements
19916 to always fail with ENOSYS. Some functions are actually named
19917 something starting with __ and the normal name is an alias. */
b4e70030 19918#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
b757528f 19919choke me
b4e70030
JB
19920#else
19921char (*f) () = $ac_func;
19922#endif
19923#ifdef __cplusplus
19924}
b757528f
JJ
19925#endif
19926
bec39cab
AC
19927int
19928main ()
19929{
b4e70030 19930return f != $ac_func;
bec39cab
AC
19931 ;
19932 return 0;
19933}
19934_ACEOF
19935rm -f conftest.$ac_objext conftest$ac_exeext
19936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19937 (eval $ac_link) 2>conftest.er1
19938 ac_status=$?
19939 grep -v '^ *+' conftest.er1 >conftest.err
19940 rm -f conftest.er1
19941 cat conftest.err >&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } &&
b4e70030
JB
19944 { ac_try='test -z "$ac_c_werror_flag"
19945 || test ! -s conftest.err'
bec39cab
AC
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19948 ac_status=$?
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; } &&
19951 { ac_try='test -s conftest$ac_exeext'
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19954 ac_status=$?
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; }; then
19957 eval "$as_ac_var=yes"
19958else
19959 echo "$as_me: failed program was:" >&5
19960sed 's/^/| /' conftest.$ac_ext >&5
19961
b4e70030 19962eval "$as_ac_var=no"
bec39cab
AC
19963fi
19964rm -f conftest.err conftest.$ac_objext \
19965 conftest$ac_exeext conftest.$ac_ext
19966fi
b4e70030
JB
19967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19968echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19969if test `eval echo '${'$as_ac_var'}'` = yes; then
19970 cat >>confdefs.h <<_ACEOF
19971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19972_ACEOF
b757528f 19973
b757528f
JJ
19974fi
19975done
19976
bec39cab 19977
a3828db0 19978
83116857
TJB
19979
19980for ac_func in setpgid setpgrp setsid
bcb3dc3d 19981do
bec39cab 19982as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19983echo "$as_me:$LINENO: checking for $ac_func" >&5
19984echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19985if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19986 echo $ECHO_N "(cached) $ECHO_C" >&6
19987else
19988 cat >conftest.$ac_ext <<_ACEOF
19989/* confdefs.h. */
19990_ACEOF
19991cat confdefs.h >>conftest.$ac_ext
19992cat >>conftest.$ac_ext <<_ACEOF
19993/* end confdefs.h. */
19994/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19996#define $ac_func innocuous_$ac_func
19997
bcb3dc3d 19998/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19999 which can conflict with char $ac_func (); below.
20000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20001 <limits.h> exists even on freestanding compilers. */
20002
20003#ifdef __STDC__
20004# include <limits.h>
20005#else
20006# include <assert.h>
20007#endif
bcb3dc3d 20008
bec39cab 20009#undef $ac_func
bcb3dc3d 20010
b4e70030 20011/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
20012#ifdef __cplusplus
20013extern "C"
b4e70030 20014{
bec39cab 20015#endif
b4e70030
JB
20016/* We use char because int might match the return type of a gcc2
20017 builtin and then its argument prototype would still apply. */
bec39cab 20018char $ac_func ();
bcb3dc3d
MK
20019/* The GNU C library defines this for functions which it implements
20020 to always fail with ENOSYS. Some functions are actually named
20021 something starting with __ and the normal name is an alias. */
b4e70030 20022#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bcb3dc3d 20023choke me
b4e70030
JB
20024#else
20025char (*f) () = $ac_func;
20026#endif
20027#ifdef __cplusplus
20028}
bcb3dc3d
MK
20029#endif
20030
bec39cab
AC
20031int
20032main ()
20033{
b4e70030 20034return f != $ac_func;
bec39cab
AC
20035 ;
20036 return 0;
20037}
20038_ACEOF
20039rm -f conftest.$ac_objext conftest$ac_exeext
20040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20041 (eval $ac_link) 2>conftest.er1
20042 ac_status=$?
20043 grep -v '^ *+' conftest.er1 >conftest.err
20044 rm -f conftest.er1
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } &&
b4e70030
JB
20048 { ac_try='test -z "$ac_c_werror_flag"
20049 || test ! -s conftest.err'
bec39cab
AC
20050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20052 ac_status=$?
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; } &&
20055 { ac_try='test -s conftest$ac_exeext'
20056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057 (eval $ac_try) 2>&5
20058 ac_status=$?
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); }; }; then
20061 eval "$as_ac_var=yes"
20062else
20063 echo "$as_me: failed program was:" >&5
20064sed 's/^/| /' conftest.$ac_ext >&5
20065
b4e70030 20066eval "$as_ac_var=no"
bec39cab
AC
20067fi
20068rm -f conftest.err conftest.$ac_objext \
20069 conftest$ac_exeext conftest.$ac_ext
20070fi
b4e70030
JB
20071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20072echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
20073if test `eval echo '${'$as_ac_var'}'` = yes; then
20074 cat >>confdefs.h <<_ACEOF
20075#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20076_ACEOF
bcb3dc3d 20077
bcb3dc3d
MK
20078fi
20079done
20080
bec39cab 20081
a3828db0
MK
20082
20083
20084for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 20085do
bec39cab 20086as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
20087echo "$as_me:$LINENO: checking for $ac_func" >&5
20088echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20089if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
20090 echo $ECHO_N "(cached) $ECHO_C" >&6
20091else
20092 cat >conftest.$ac_ext <<_ACEOF
20093/* confdefs.h. */
20094_ACEOF
20095cat confdefs.h >>conftest.$ac_ext
20096cat >>conftest.$ac_ext <<_ACEOF
20097/* end confdefs.h. */
20098/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20100#define $ac_func innocuous_$ac_func
20101
8b9cf735 20102/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
20103 which can conflict with char $ac_func (); below.
20104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20105 <limits.h> exists even on freestanding compilers. */
20106
20107#ifdef __STDC__
20108# include <limits.h>
20109#else
20110# include <assert.h>
20111#endif
8b9cf735 20112
bec39cab 20113#undef $ac_func
8b9cf735 20114
b4e70030 20115/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
20116#ifdef __cplusplus
20117extern "C"
b4e70030 20118{
a3828db0 20119#endif
b4e70030
JB
20120/* We use char because int might match the return type of a gcc2
20121 builtin and then its argument prototype would still apply. */
a3828db0
MK
20122char $ac_func ();
20123/* The GNU C library defines this for functions which it implements
20124 to always fail with ENOSYS. Some functions are actually named
20125 something starting with __ and the normal name is an alias. */
b4e70030 20126#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 20127choke me
b4e70030
JB
20128#else
20129char (*f) () = $ac_func;
20130#endif
20131#ifdef __cplusplus
20132}
a3828db0
MK
20133#endif
20134
bec39cab
AC
20135int
20136main ()
20137{
b4e70030 20138return f != $ac_func;
bec39cab
AC
20139 ;
20140 return 0;
20141}
20142_ACEOF
a3828db0
MK
20143rm -f conftest.$ac_objext conftest$ac_exeext
20144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20145 (eval $ac_link) 2>conftest.er1
bec39cab
AC
20146 ac_status=$?
20147 grep -v '^ *+' conftest.er1 >conftest.err
20148 rm -f conftest.er1
20149 cat conftest.err >&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); } &&
b4e70030
JB
20152 { ac_try='test -z "$ac_c_werror_flag"
20153 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
a3828db0 20159 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
20160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20161 (eval $ac_try) 2>&5
20162 ac_status=$?
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); }; }; then
a3828db0 20165 eval "$as_ac_var=yes"
086ec9eb 20166else
bec39cab
AC
20167 echo "$as_me: failed program was:" >&5
20168sed 's/^/| /' conftest.$ac_ext >&5
20169
b4e70030 20170eval "$as_ac_var=no"
a3828db0
MK
20171fi
20172rm -f conftest.err conftest.$ac_objext \
20173 conftest$ac_exeext conftest.$ac_ext
20174fi
b4e70030
JB
20175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20176echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
20177if test `eval echo '${'$as_ac_var'}'` = yes; then
20178 cat >>confdefs.h <<_ACEOF
20179#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20180_ACEOF
20181
086ec9eb 20182fi
a3828db0
MK
20183done
20184
20185
20186for ac_func in socketpair
20187do
20188as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
20189echo "$as_me:$LINENO: checking for $ac_func" >&5
20190echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20191if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
20192 echo $ECHO_N "(cached) $ECHO_C" >&6
20193else
20194 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
20195/* confdefs.h. */
20196_ACEOF
20197cat confdefs.h >>conftest.$ac_ext
20198cat >>conftest.$ac_ext <<_ACEOF
20199/* end confdefs.h. */
a3828db0
MK
20200/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20202#define $ac_func innocuous_$ac_func
20203
20204/* System header to define __stub macros and hopefully few prototypes,
20205 which can conflict with char $ac_func (); below.
20206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20207 <limits.h> exists even on freestanding compilers. */
20208
20209#ifdef __STDC__
20210# include <limits.h>
20211#else
20212# include <assert.h>
20213#endif
20214
20215#undef $ac_func
20216
b4e70030 20217/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
20218#ifdef __cplusplus
20219extern "C"
b4e70030 20220{
a3828db0 20221#endif
b4e70030
JB
20222/* We use char because int might match the return type of a gcc2
20223 builtin and then its argument prototype would still apply. */
a3828db0
MK
20224char $ac_func ();
20225/* The GNU C library defines this for functions which it implements
20226 to always fail with ENOSYS. Some functions are actually named
20227 something starting with __ and the normal name is an alias. */
b4e70030 20228#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 20229choke me
b4e70030
JB
20230#else
20231char (*f) () = $ac_func;
20232#endif
20233#ifdef __cplusplus
20234}
a3828db0
MK
20235#endif
20236
bec39cab
AC
20237int
20238main ()
20239{
b4e70030 20240return f != $ac_func;
bec39cab
AC
20241 ;
20242 return 0;
20243}
20244_ACEOF
a3828db0
MK
20245rm -f conftest.$ac_objext conftest$ac_exeext
20246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20247 (eval $ac_link) 2>conftest.er1
bec39cab
AC
20248 ac_status=$?
20249 grep -v '^ *+' conftest.er1 >conftest.err
20250 rm -f conftest.er1
20251 cat conftest.err >&5
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); } &&
b4e70030
JB
20254 { ac_try='test -z "$ac_c_werror_flag"
20255 || test ! -s conftest.err'
bec39cab
AC
20256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20257 (eval $ac_try) 2>&5
20258 ac_status=$?
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); }; } &&
a3828db0 20261 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
20262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20263 (eval $ac_try) 2>&5
20264 ac_status=$?
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); }; }; then
a3828db0 20267 eval "$as_ac_var=yes"
086ec9eb 20268else
bec39cab
AC
20269 echo "$as_me: failed program was:" >&5
20270sed 's/^/| /' conftest.$ac_ext >&5
20271
b4e70030 20272eval "$as_ac_var=no"
086ec9eb 20273fi
a3828db0
MK
20274rm -f conftest.err conftest.$ac_objext \
20275 conftest$ac_exeext conftest.$ac_ext
086ec9eb 20276fi
b4e70030
JB
20277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20278echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
20279if test `eval echo '${'$as_ac_var'}'` = yes; then
20280 cat >>confdefs.h <<_ACEOF
20281#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 20282_ACEOF
086ec9eb
MK
20283
20284fi
a3828db0 20285done
086ec9eb 20286
a3828db0
MK
20287
20288for ac_func in syscall
20289do
20290as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
20291echo "$as_me:$LINENO: checking for $ac_func" >&5
20292echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20293if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 20294 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
20295else
20296 cat >conftest.$ac_ext <<_ACEOF
20297/* confdefs.h. */
20298_ACEOF
20299cat confdefs.h >>conftest.$ac_ext
20300cat >>conftest.$ac_ext <<_ACEOF
20301/* end confdefs.h. */
a3828db0
MK
20302/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20304#define $ac_func innocuous_$ac_func
20305
20306/* System header to define __stub macros and hopefully few prototypes,
20307 which can conflict with char $ac_func (); below.
20308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20309 <limits.h> exists even on freestanding compilers. */
20310
20311#ifdef __STDC__
20312# include <limits.h>
20313#else
20314# include <assert.h>
20315#endif
20316
20317#undef $ac_func
20318
b4e70030 20319/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
20320#ifdef __cplusplus
20321extern "C"
b4e70030 20322{
a3828db0 20323#endif
b4e70030
JB
20324/* We use char because int might match the return type of a gcc2
20325 builtin and then its argument prototype would still apply. */
a3828db0
MK
20326char $ac_func ();
20327/* The GNU C library defines this for functions which it implements
20328 to always fail with ENOSYS. Some functions are actually named
20329 something starting with __ and the normal name is an alias. */
b4e70030 20330#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 20331choke me
b4e70030
JB
20332#else
20333char (*f) () = $ac_func;
20334#endif
20335#ifdef __cplusplus
20336}
c906108c 20337#endif
97bf5e38 20338
bec39cab
AC
20339int
20340main ()
97bf5e38 20341{
b4e70030 20342return f != $ac_func;
bec39cab
AC
20343 ;
20344 return 0;
97bf5e38 20345}
bec39cab 20346_ACEOF
a3828db0 20347rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 20348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 20349 (eval $ac_link) 2>conftest.er1
bec39cab 20350 ac_status=$?
a3828db0
MK
20351 grep -v '^ *+' conftest.er1 >conftest.err
20352 rm -f conftest.er1
20353 cat conftest.err >&5
bec39cab 20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 20355 (exit $ac_status); } &&
b4e70030
JB
20356 { ac_try='test -z "$ac_c_werror_flag"
20357 || test ! -s conftest.err'
a3828db0
MK
20358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359 (eval $ac_try) 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; } &&
20363 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
20364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20365 (eval $ac_try) 2>&5
20366 ac_status=$?
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; }; then
a3828db0 20369 eval "$as_ac_var=yes"
c906108c 20370else
a3828db0 20371 echo "$as_me: failed program was:" >&5
bec39cab
AC
20372sed 's/^/| /' conftest.$ac_ext >&5
20373
b4e70030 20374eval "$as_ac_var=no"
97bf5e38 20375fi
a3828db0
MK
20376rm -f conftest.err conftest.$ac_objext \
20377 conftest$ac_exeext conftest.$ac_ext
20378fi
b4e70030
JB
20379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20380echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
20381if test `eval echo '${'$as_ac_var'}'` = yes; then
20382 cat >>confdefs.h <<_ACEOF
20383#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 20384_ACEOF
c906108c
SS
20385
20386fi
a3828db0 20387done
c906108c 20388
a3828db0
MK
20389
20390for ac_func in ttrace
20391do
20392as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
20393echo "$as_me:$LINENO: checking for $ac_func" >&5
20394echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20395if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 20396 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 20397else
bec39cab
AC
20398 cat >conftest.$ac_ext <<_ACEOF
20399/* confdefs.h. */
20400_ACEOF
20401cat confdefs.h >>conftest.$ac_ext
20402cat >>conftest.$ac_ext <<_ACEOF
20403/* end confdefs.h. */
a3828db0
MK
20404/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20406#define $ac_func innocuous_$ac_func
b83266a0 20407
a3828db0
MK
20408/* System header to define __stub macros and hopefully few prototypes,
20409 which can conflict with char $ac_func (); below.
20410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20411 <limits.h> exists even on freestanding compilers. */
20412
20413#ifdef __STDC__
20414# include <limits.h>
20415#else
20416# include <assert.h>
20417#endif
20418
20419#undef $ac_func
20420
b4e70030 20421/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
20422#ifdef __cplusplus
20423extern "C"
b4e70030 20424{
a3828db0 20425#endif
b4e70030
JB
20426/* We use char because int might match the return type of a gcc2
20427 builtin and then its argument prototype would still apply. */
a3828db0
MK
20428char $ac_func ();
20429/* The GNU C library defines this for functions which it implements
20430 to always fail with ENOSYS. Some functions are actually named
20431 something starting with __ and the normal name is an alias. */
b4e70030 20432#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 20433choke me
b4e70030
JB
20434#else
20435char (*f) () = $ac_func;
20436#endif
20437#ifdef __cplusplus
20438}
a3828db0 20439#endif
97bf5e38 20440
bec39cab
AC
20441int
20442main ()
20443{
b4e70030 20444return f != $ac_func;
bec39cab
AC
20445 ;
20446 return 0;
20447}
20448_ACEOF
a3828db0
MK
20449rm -f conftest.$ac_objext conftest$ac_exeext
20450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20451 (eval $ac_link) 2>conftest.er1
bec39cab
AC
20452 ac_status=$?
20453 grep -v '^ *+' conftest.er1 >conftest.err
20454 rm -f conftest.er1
20455 cat conftest.err >&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } &&
b4e70030
JB
20458 { ac_try='test -z "$ac_c_werror_flag"
20459 || test ! -s conftest.err'
bec39cab
AC
20460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461 (eval $ac_try) 2>&5
20462 ac_status=$?
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; } &&
a3828db0 20465 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
20466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467 (eval $ac_try) 2>&5
20468 ac_status=$?
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; }; then
a3828db0 20471 eval "$as_ac_var=yes"
b83266a0 20472else
bec39cab
AC
20473 echo "$as_me: failed program was:" >&5
20474sed 's/^/| /' conftest.$ac_ext >&5
20475
b4e70030 20476eval "$as_ac_var=no"
b83266a0 20477fi
a3828db0
MK
20478rm -f conftest.err conftest.$ac_objext \
20479 conftest$ac_exeext conftest.$ac_ext
b83266a0 20480fi
b4e70030
JB
20481echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20482echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
20483if test `eval echo '${'$as_ac_var'}'` = yes; then
20484 cat >>confdefs.h <<_ACEOF
20485#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 20486_ACEOF
b83266a0 20487
97bf5e38 20488fi
a3828db0 20489done
b83266a0 20490
a3828db0
MK
20491
20492for ac_func in wborder
20493do
20494as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
20495echo "$as_me:$LINENO: checking for $ac_func" >&5
20496echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20497if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
20498 echo $ECHO_N "(cached) $ECHO_C" >&6
20499else
20500 cat >conftest.$ac_ext <<_ACEOF
20501/* confdefs.h. */
20502_ACEOF
20503cat confdefs.h >>conftest.$ac_ext
20504cat >>conftest.$ac_ext <<_ACEOF
20505/* end confdefs.h. */
a3828db0
MK
20506/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20508#define $ac_func innocuous_$ac_func
a4db0f07 20509
a3828db0
MK
20510/* System header to define __stub macros and hopefully few prototypes,
20511 which can conflict with char $ac_func (); below.
20512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20513 <limits.h> exists even on freestanding compilers. */
20514
20515#ifdef __STDC__
20516# include <limits.h>
20517#else
20518# include <assert.h>
20519#endif
20520
20521#undef $ac_func
20522
b4e70030 20523/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
20524#ifdef __cplusplus
20525extern "C"
b4e70030 20526{
a3828db0 20527#endif
b4e70030
JB
20528/* We use char because int might match the return type of a gcc2
20529 builtin and then its argument prototype would still apply. */
a3828db0
MK
20530char $ac_func ();
20531/* The GNU C library defines this for functions which it implements
20532 to always fail with ENOSYS. Some functions are actually named
20533 something starting with __ and the normal name is an alias. */
b4e70030 20534#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 20535choke me
b4e70030
JB
20536#else
20537char (*f) () = $ac_func;
20538#endif
20539#ifdef __cplusplus
20540}
a3828db0 20541#endif
97bf5e38 20542
bec39cab
AC
20543int
20544main ()
20545{
b4e70030 20546return f != $ac_func;
bec39cab
AC
20547 ;
20548 return 0;
20549}
20550_ACEOF
a3828db0
MK
20551rm -f conftest.$ac_objext conftest$ac_exeext
20552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20553 (eval $ac_link) 2>conftest.er1
bec39cab
AC
20554 ac_status=$?
20555 grep -v '^ *+' conftest.er1 >conftest.err
20556 rm -f conftest.er1
20557 cat conftest.err >&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } &&
b4e70030
JB
20560 { ac_try='test -z "$ac_c_werror_flag"
20561 || test ! -s conftest.err'
bec39cab
AC
20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563 (eval $ac_try) 2>&5
20564 ac_status=$?
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; } &&
a3828db0 20567 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
20568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20569 (eval $ac_try) 2>&5
20570 ac_status=$?
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; }; then
a3828db0 20573 eval "$as_ac_var=yes"
a4db0f07 20574else
bec39cab
AC
20575 echo "$as_me: failed program was:" >&5
20576sed 's/^/| /' conftest.$ac_ext >&5
20577
b4e70030 20578eval "$as_ac_var=no"
a4db0f07 20579fi
a3828db0
MK
20580rm -f conftest.err conftest.$ac_objext \
20581 conftest$ac_exeext conftest.$ac_ext
a4db0f07 20582fi
b4e70030
JB
20583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20584echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
20585if test `eval echo '${'$as_ac_var'}'` = yes; then
20586 cat >>confdefs.h <<_ACEOF
20587#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 20588_ACEOF
a4db0f07
RH
20589
20590fi
a3828db0 20591done
c906108c 20592
06825bd1 20593
a3828db0
MK
20594# Check the return and argument types of ptrace. No canned test for
20595# this, so roll our own.
20596gdb_ptrace_headers='
20597#if HAVE_SYS_TYPES_H
20598# include <sys/types.h>
20599#endif
20600#if HAVE_SYS_PTRACE_H
20601# include <sys/ptrace.h>
20602#endif
20603#if HAVE_UNISTD_H
20604# include <unistd.h>
20605#endif
20606'
20607# There is no point in checking if we don't have a prototype.
b4e70030
JB
20608echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
20609echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
a3828db0 20610if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
20611 echo $ECHO_N "(cached) $ECHO_C" >&6
20612else
20613 cat >conftest.$ac_ext <<_ACEOF
20614/* confdefs.h. */
20615_ACEOF
20616cat confdefs.h >>conftest.$ac_ext
20617cat >>conftest.$ac_ext <<_ACEOF
20618/* end confdefs.h. */
a3828db0
MK
20619$gdb_ptrace_headers
20620
bec39cab
AC
20621int
20622main ()
20623{
a3828db0
MK
20624#ifndef ptrace
20625 char *p = (char *) ptrace;
06825bd1 20626#endif
a3828db0 20627
bec39cab
AC
20628 ;
20629 return 0;
20630}
20631_ACEOF
20632rm -f conftest.$ac_objext
20633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20634 (eval $ac_compile) 2>conftest.er1
20635 ac_status=$?
20636 grep -v '^ *+' conftest.er1 >conftest.err
20637 rm -f conftest.er1
20638 cat conftest.err >&5
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); } &&
b4e70030
JB
20641 { ac_try='test -z "$ac_c_werror_flag"
20642 || test ! -s conftest.err'
bec39cab
AC
20643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20644 (eval $ac_try) 2>&5
20645 ac_status=$?
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; } &&
20648 { ac_try='test -s conftest.$ac_objext'
20649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20650 (eval $ac_try) 2>&5
20651 ac_status=$?
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); }; }; then
a3828db0 20654 ac_cv_have_decl_ptrace=yes
06825bd1 20655else
bec39cab
AC
20656 echo "$as_me: failed program was:" >&5
20657sed 's/^/| /' conftest.$ac_ext >&5
20658
b4e70030 20659ac_cv_have_decl_ptrace=no
06825bd1 20660fi
bec39cab 20661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 20662fi
b4e70030
JB
20663echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
20664echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
a3828db0 20665if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 20666
a3828db0
MK
20667cat >>confdefs.h <<_ACEOF
20668#define HAVE_DECL_PTRACE 1
20669_ACEOF
bec39cab 20670
bec39cab 20671
a3828db0
MK
20672else
20673 cat >>confdefs.h <<_ACEOF
20674#define HAVE_DECL_PTRACE 0
bec39cab 20675_ACEOF
06825bd1 20676
a3828db0
MK
20677
20678 : ${gdb_cv_func_ptrace_ret='int'}
20679 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
20680
06825bd1
MK
20681fi
20682
a3828db0 20683
064ef605
DJ
20684# Check return type. Varargs (used on GNU/Linux) conflict with the
20685# empty argument list, so check for that explicitly.
b4e70030
JB
20686echo "$as_me:$LINENO: checking return type of ptrace" >&5
20687echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
a3828db0 20688if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
20689 echo $ECHO_N "(cached) $ECHO_C" >&6
20690else
20691 cat >conftest.$ac_ext <<_ACEOF
20692/* confdefs.h. */
20693_ACEOF
20694cat confdefs.h >>conftest.$ac_ext
20695cat >>conftest.$ac_ext <<_ACEOF
20696/* end confdefs.h. */
a3828db0 20697$gdb_ptrace_headers
bec39cab
AC
20698int
20699main ()
20700{
064ef605
DJ
20701extern long ptrace (enum __ptrace_request, ...);
20702 ;
20703 return 0;
20704}
20705_ACEOF
20706rm -f conftest.$ac_objext
20707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20708 (eval $ac_compile) 2>conftest.er1
20709 ac_status=$?
20710 grep -v '^ *+' conftest.er1 >conftest.err
20711 rm -f conftest.er1
20712 cat conftest.err >&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); } &&
20715 { ac_try='test -z "$ac_c_werror_flag"
20716 || test ! -s conftest.err'
20717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718 (eval $ac_try) 2>&5
20719 ac_status=$?
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; } &&
20722 { ac_try='test -s conftest.$ac_objext'
20723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724 (eval $ac_try) 2>&5
20725 ac_status=$?
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); }; }; then
20728 gdb_cv_func_ptrace_ret='long'
20729else
20730 echo "$as_me: failed program was:" >&5
20731sed 's/^/| /' conftest.$ac_ext >&5
20732
20733cat >conftest.$ac_ext <<_ACEOF
20734/* confdefs.h. */
20735_ACEOF
20736cat confdefs.h >>conftest.$ac_ext
20737cat >>conftest.$ac_ext <<_ACEOF
20738/* end confdefs.h. */
20739$gdb_ptrace_headers
20740int
20741main ()
20742{
a3828db0 20743extern int ptrace ();
bec39cab
AC
20744 ;
20745 return 0;
20746}
20747_ACEOF
20748rm -f conftest.$ac_objext
20749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20750 (eval $ac_compile) 2>conftest.er1
20751 ac_status=$?
20752 grep -v '^ *+' conftest.er1 >conftest.err
20753 rm -f conftest.er1
20754 cat conftest.err >&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } &&
b4e70030
JB
20757 { ac_try='test -z "$ac_c_werror_flag"
20758 || test ! -s conftest.err'
bec39cab
AC
20759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20760 (eval $ac_try) 2>&5
20761 ac_status=$?
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); }; } &&
20764 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
a3828db0 20770 gdb_cv_func_ptrace_ret='int'
70f9f479 20771else
bec39cab
AC
20772 echo "$as_me: failed program was:" >&5
20773sed 's/^/| /' conftest.$ac_ext >&5
20774
b4e70030 20775gdb_cv_func_ptrace_ret='long'
70f9f479 20776fi
bec39cab 20777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 20778fi
064ef605
DJ
20779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20780fi
b4e70030
JB
20781echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
20782echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 20783
a3828db0
MK
20784cat >>confdefs.h <<_ACEOF
20785#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 20786_ACEOF
70f9f479 20787
a3828db0 20788# Check argument types.
b4e70030
JB
20789echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
20790echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
a3828db0 20791if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
20792 echo $ECHO_N "(cached) $ECHO_C" >&6
20793else
a3828db0 20794
064ef605
DJ
20795 cat >conftest.$ac_ext <<_ACEOF
20796/* confdefs.h. */
20797_ACEOF
20798cat confdefs.h >>conftest.$ac_ext
20799cat >>conftest.$ac_ext <<_ACEOF
20800/* end confdefs.h. */
20801$gdb_ptrace_headers
20802int
20803main ()
20804{
20805extern long ptrace (enum __ptrace_request, ...);
20806 ;
20807 return 0;
20808}
20809_ACEOF
20810rm -f conftest.$ac_objext
20811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20812 (eval $ac_compile) 2>conftest.er1
20813 ac_status=$?
20814 grep -v '^ *+' conftest.er1 >conftest.err
20815 rm -f conftest.er1
20816 cat conftest.err >&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); } &&
20819 { ac_try='test -z "$ac_c_werror_flag"
20820 || test ! -s conftest.err'
20821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822 (eval $ac_try) 2>&5
20823 ac_status=$?
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; } &&
20826 { ac_try='test -s conftest.$ac_objext'
20827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828 (eval $ac_try) 2>&5
20829 ac_status=$?
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; }; then
20832 gdb_cv_func_ptrace_args='int,int,long,long'
20833else
20834 echo "$as_me: failed program was:" >&5
20835sed 's/^/| /' conftest.$ac_ext >&5
20836
20837
a3828db0
MK
20838for gdb_arg1 in 'int' 'long'; do
20839 for gdb_arg2 in 'pid_t' 'int' 'long'; do
5ed10e6e 20840 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
a3828db0
MK
20841 for gdb_arg4 in 'int' 'long'; do
20842 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
20843/* confdefs.h. */
20844_ACEOF
20845cat confdefs.h >>conftest.$ac_ext
20846cat >>conftest.$ac_ext <<_ACEOF
20847/* end confdefs.h. */
a3828db0 20848$gdb_ptrace_headers
bec39cab
AC
20849int
20850main ()
20851{
a3828db0
MK
20852
20853extern $gdb_cv_func_ptrace_ret
20854 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
20855
bec39cab
AC
20856 ;
20857 return 0;
20858}
20859_ACEOF
20860rm -f conftest.$ac_objext
20861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20862 (eval $ac_compile) 2>conftest.er1
20863 ac_status=$?
20864 grep -v '^ *+' conftest.er1 >conftest.err
20865 rm -f conftest.er1
20866 cat conftest.err >&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); } &&
b4e70030
JB
20869 { ac_try='test -z "$ac_c_werror_flag"
20870 || test ! -s conftest.err'
bec39cab
AC
20871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872 (eval $ac_try) 2>&5
20873 ac_status=$?
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); }; } &&
20876 { ac_try='test -s conftest.$ac_objext'
20877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20878 (eval $ac_try) 2>&5
20879 ac_status=$?
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); }; }; then
a3828db0
MK
20882 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
20883 break 4;
5c7f2947 20884else
bec39cab
AC
20885 echo "$as_me: failed program was:" >&5
20886sed 's/^/| /' conftest.$ac_ext >&5
20887
5c7f2947 20888fi
bec39cab 20889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
20890 for gdb_arg5 in 'int *' 'int' 'long'; do
20891 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
20892/* confdefs.h. */
20893_ACEOF
20894cat confdefs.h >>conftest.$ac_ext
20895cat >>conftest.$ac_ext <<_ACEOF
20896/* end confdefs.h. */
a3828db0 20897$gdb_ptrace_headers
bec39cab
AC
20898int
20899main ()
20900{
a3828db0
MK
20901
20902extern $gdb_cv_func_ptrace_ret
20903 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
20904
bec39cab
AC
20905 ;
20906 return 0;
20907}
20908_ACEOF
20909rm -f conftest.$ac_objext
20910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20911 (eval $ac_compile) 2>conftest.er1
20912 ac_status=$?
20913 grep -v '^ *+' conftest.er1 >conftest.err
20914 rm -f conftest.er1
20915 cat conftest.err >&5
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); } &&
b4e70030
JB
20918 { ac_try='test -z "$ac_c_werror_flag"
20919 || test ! -s conftest.err'
bec39cab
AC
20920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921 (eval $ac_try) 2>&5
20922 ac_status=$?
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; } &&
20925 { ac_try='test -s conftest.$ac_objext'
20926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927 (eval $ac_try) 2>&5
20928 ac_status=$?
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); }; }; then
a3828db0
MK
20931
20932gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
20933 break 5;
78434e59 20934else
bec39cab
AC
20935 echo "$as_me: failed program was:" >&5
20936sed 's/^/| /' conftest.$ac_ext >&5
20937
78434e59 20938fi
bec39cab 20939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
20940 done
20941 done
20942 done
20943 done
20944done
20945# Provide a safe default value.
20946: ${gdb_cv_func_ptrace_args='int,int,long,long'}
20947
064ef605
DJ
20948fi
20949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
78434e59 20950fi
b4e70030
JB
20951echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
20952echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
a3828db0
MK
20953ac_save_IFS=$IFS; IFS=','
20954set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
20955IFS=$ac_save_IFS
20956shift
bec39cab 20957
a3828db0
MK
20958cat >>confdefs.h <<_ACEOF
20959#define PTRACE_TYPE_ARG3 $3
20960_ACEOF
20961
20962if test -n "$5"; then
20963
20964cat >>confdefs.h <<_ACEOF
20965#define PTRACE_TYPE_ARG5 $5
bec39cab 20966_ACEOF
78434e59
MK
20967
20968fi
20969
a3828db0 20970if test "$cross_compiling" = no; then
b4e70030
JB
20971 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20972echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 20973if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 20974 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
20975else
20976 if test "$cross_compiling" = yes; then
20977 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20978echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20979 { (exit 1); exit 1; }; }
bec39cab
AC
20980else
20981 cat >conftest.$ac_ext <<_ACEOF
20982/* confdefs.h. */
20983_ACEOF
20984cat confdefs.h >>conftest.$ac_ext
20985cat >>conftest.$ac_ext <<_ACEOF
20986/* end confdefs.h. */
b4e70030
JB
20987#if HAVE_UNISTD_H
20988# include <unistd.h>
20989#endif
20990
bec39cab
AC
20991int
20992main ()
20993{
a3828db0
MK
20994/* If this system has a BSD-style setpgrp which takes arguments,
20995 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20996 exit successfully. */
b4e70030 20997 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
20998 ;
20999 return 0;
21000}
21001_ACEOF
a3828db0
MK
21002rm -f conftest$ac_exeext
21003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21004 (eval $ac_link) 2>&5
bec39cab
AC
21005 ac_status=$?
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 21007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
21008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21009 (eval $ac_try) 2>&5
21010 ac_status=$?
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; }; then
a3828db0 21013 ac_cv_func_setpgrp_void=no
c906108c 21014else
a3828db0
MK
21015 echo "$as_me: program exited with status $ac_status" >&5
21016echo "$as_me: failed program was:" >&5
bec39cab
AC
21017sed 's/^/| /' conftest.$ac_ext >&5
21018
a3828db0
MK
21019( exit $ac_status )
21020ac_cv_func_setpgrp_void=yes
c906108c 21021fi
b4e70030 21022rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 21023fi
a3828db0 21024fi
b4e70030
JB
21025echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
21026echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0
MK
21027if test $ac_cv_func_setpgrp_void = yes; then
21028
21029cat >>confdefs.h <<\_ACEOF
21030#define SETPGRP_VOID 1
bec39cab 21031_ACEOF
97bf5e38
MK
21032
21033fi
a3828db0
MK
21034
21035else
b4e70030
JB
21036 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
21037echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 21038if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 21039 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 21040else
bec39cab
AC
21041 cat >conftest.$ac_ext <<_ACEOF
21042/* confdefs.h. */
21043_ACEOF
21044cat confdefs.h >>conftest.$ac_ext
21045cat >>conftest.$ac_ext <<_ACEOF
21046/* end confdefs.h. */
a3828db0
MK
21047
21048#include <unistd.h>
21049
bec39cab
AC
21050int
21051main ()
21052{
a3828db0
MK
21053
21054 if (setpgrp(1,1) == -1)
21055 exit (0);
21056 else
21057 exit (1);
21058
bec39cab
AC
21059 ;
21060 return 0;
21061}
21062_ACEOF
21063rm -f conftest.$ac_objext
21064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21065 (eval $ac_compile) 2>conftest.er1
21066 ac_status=$?
21067 grep -v '^ *+' conftest.er1 >conftest.err
21068 rm -f conftest.er1
21069 cat conftest.err >&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } &&
b4e70030
JB
21072 { ac_try='test -z "$ac_c_werror_flag"
21073 || test ! -s conftest.err'
bec39cab
AC
21074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21075 (eval $ac_try) 2>&5
21076 ac_status=$?
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); }; } &&
21079 { ac_try='test -s conftest.$ac_objext'
21080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081 (eval $ac_try) 2>&5
21082 ac_status=$?
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; }; then
a3828db0 21085 ac_cv_func_setpgrp_void=no
c906108c 21086else
bec39cab
AC
21087 echo "$as_me: failed program was:" >&5
21088sed 's/^/| /' conftest.$ac_ext >&5
21089
b4e70030 21090ac_cv_func_setpgrp_void=yes
c906108c 21091fi
bec39cab 21092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 21093fi
b4e70030
JB
21094echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
21095echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0 21096if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 21097 cat >>confdefs.h <<\_ACEOF
a3828db0 21098#define SETPGRP_VOID 1
bec39cab 21099_ACEOF
c3f6f71d 21100
a3828db0 21101fi
c906108c
SS
21102fi
21103
a3828db0
MK
21104# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
21105# since sigsetjmp might only be defined as a macro.
b4e70030
JB
21106echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21107echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
a3828db0 21108if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
21109 echo $ECHO_N "(cached) $ECHO_C" >&6
21110else
21111 cat >conftest.$ac_ext <<_ACEOF
21112/* confdefs.h. */
21113_ACEOF
21114cat confdefs.h >>conftest.$ac_ext
21115cat >>conftest.$ac_ext <<_ACEOF
21116/* end confdefs.h. */
a3828db0
MK
21117
21118#include <setjmp.h>
21119
bec39cab
AC
21120int
21121main ()
21122{
a3828db0 21123sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
21124 ;
21125 return 0;
21126}
21127_ACEOF
21128rm -f conftest.$ac_objext
21129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21130 (eval $ac_compile) 2>conftest.er1
21131 ac_status=$?
21132 grep -v '^ *+' conftest.er1 >conftest.err
21133 rm -f conftest.er1
21134 cat conftest.err >&5
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); } &&
b4e70030
JB
21137 { ac_try='test -z "$ac_c_werror_flag"
21138 || test ! -s conftest.err'
bec39cab
AC
21139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21140 (eval $ac_try) 2>&5
21141 ac_status=$?
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); }; } &&
21144 { ac_try='test -s conftest.$ac_objext'
21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146 (eval $ac_try) 2>&5
21147 ac_status=$?
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; }; then
a3828db0 21150 gdb_cv_func_sigsetjmp=yes
c906108c 21151else
bec39cab
AC
21152 echo "$as_me: failed program was:" >&5
21153sed 's/^/| /' conftest.$ac_ext >&5
21154
b4e70030 21155gdb_cv_func_sigsetjmp=no
c906108c 21156fi
bec39cab 21157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 21158fi
b4e70030
JB
21159echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
21160echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
a3828db0 21161if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 21162
a3828db0
MK
21163cat >>confdefs.h <<\_ACEOF
21164#define HAVE_SIGSETJMP 1
bec39cab 21165_ACEOF
c906108c 21166
97bf5e38 21167fi
c906108c 21168
a3828db0
MK
21169# Assume we'll default to using the included libiberty regex.
21170gdb_use_included_regex=yes
21171
21172# However, if the system regex is GNU regex, then default to *not*
21173# using the included regex.
b4e70030
JB
21174echo "$as_me:$LINENO: checking for GNU regex" >&5
21175echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
a3828db0 21176if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
21178else
21179 cat >conftest.$ac_ext <<_ACEOF
21180/* confdefs.h. */
21181_ACEOF
21182cat confdefs.h >>conftest.$ac_ext
21183cat >>conftest.$ac_ext <<_ACEOF
21184/* end confdefs.h. */
a3828db0 21185#include <gnu-versions.h>
bec39cab
AC
21186int
21187main ()
21188{
a3828db0
MK
21189#define REGEX_INTERFACE_VERSION 1
21190#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
21191# error "Version mismatch"
21192#endif
bec39cab
AC
21193 ;
21194 return 0;
21195}
21196_ACEOF
21197rm -f conftest.$ac_objext
21198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21199 (eval $ac_compile) 2>conftest.er1
21200 ac_status=$?
21201 grep -v '^ *+' conftest.er1 >conftest.err
21202 rm -f conftest.er1
21203 cat conftest.err >&5
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); } &&
b4e70030
JB
21206 { ac_try='test -z "$ac_c_werror_flag"
21207 || test ! -s conftest.err'
bec39cab
AC
21208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21209 (eval $ac_try) 2>&5
21210 ac_status=$?
21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); }; } &&
21213 { ac_try='test -s conftest.$ac_objext'
21214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21215 (eval $ac_try) 2>&5
21216 ac_status=$?
21217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); }; }; then
a3828db0 21219 gdb_cv_have_gnu_regex=yes
c906108c 21220else
bec39cab
AC
21221 echo "$as_me: failed program was:" >&5
21222sed 's/^/| /' conftest.$ac_ext >&5
21223
b4e70030 21224gdb_cv_have_gnu_regex=no
c906108c 21225fi
bec39cab 21226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 21227fi
b4e70030
JB
21228echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
21229echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
a3828db0
MK
21230if test $gdb_cv_have_gnu_regex = yes; then
21231 gdb_use_included_regex=no
21232fi
c906108c 21233
a3828db0 21234
b4e70030 21235# Check whether --with-included-regex or --without-included-regex was given.
a3828db0 21236if test "${with_included_regex+set}" = set; then
b4e70030
JB
21237 withval="$with_included_regex"
21238 gdb_with_regex=$withval
a3828db0
MK
21239else
21240 gdb_with_regex=$gdb_use_included_regex
b4e70030 21241fi;
a3828db0
MK
21242if test "$gdb_with_regex" = yes; then
21243
21244cat >>confdefs.h <<\_ACEOF
21245#define USE_INCLUDED_REGEX 1
bec39cab 21246_ACEOF
c906108c 21247
97bf5e38 21248fi
c906108c 21249
5c45e068 21250# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
b4e70030
JB
21251echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
21252echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
5c45e068 21253if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
21254 echo $ECHO_N "(cached) $ECHO_C" >&6
21255else
21256 cat >conftest.$ac_ext <<_ACEOF
21257/* confdefs.h. */
21258_ACEOF
21259cat confdefs.h >>conftest.$ac_ext
21260cat >>conftest.$ac_ext <<_ACEOF
21261/* end confdefs.h. */
a3828db0
MK
21262#include <sys/param.h>
21263#include <sys/proc.h>
5c45e068
MK
21264
21265
bec39cab
AC
21266int
21267main ()
21268{
5c45e068
MK
21269static struct thread ac_aggr;
21270if (ac_aggr.td_pcb)
21271return 0;
bec39cab
AC
21272 ;
21273 return 0;
21274}
21275_ACEOF
21276rm -f conftest.$ac_objext
21277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21278 (eval $ac_compile) 2>conftest.er1
21279 ac_status=$?
21280 grep -v '^ *+' conftest.er1 >conftest.err
21281 rm -f conftest.er1
21282 cat conftest.err >&5
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } &&
b4e70030
JB
21285 { ac_try='test -z "$ac_c_werror_flag"
21286 || test ! -s conftest.err'
bec39cab
AC
21287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288 (eval $ac_try) 2>&5
21289 ac_status=$?
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; } &&
21292 { ac_try='test -s conftest.$ac_objext'
21293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294 (eval $ac_try) 2>&5
21295 ac_status=$?
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); }; }; then
5c45e068 21298 ac_cv_member_struct_thread_td_pcb=yes
c906108c 21299else
bec39cab
AC
21300 echo "$as_me: failed program was:" >&5
21301sed 's/^/| /' conftest.$ac_ext >&5
21302
b4e70030 21303cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
21304/* confdefs.h. */
21305_ACEOF
21306cat confdefs.h >>conftest.$ac_ext
21307cat >>conftest.$ac_ext <<_ACEOF
21308/* end confdefs.h. */
21309#include <sys/param.h>
21310#include <sys/proc.h>
21311
21312
21313int
21314main ()
21315{
21316static struct thread ac_aggr;
21317if (sizeof ac_aggr.td_pcb)
21318return 0;
21319 ;
21320 return 0;
21321}
21322_ACEOF
21323rm -f conftest.$ac_objext
21324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21325 (eval $ac_compile) 2>conftest.er1
21326 ac_status=$?
21327 grep -v '^ *+' conftest.er1 >conftest.err
21328 rm -f conftest.er1
21329 cat conftest.err >&5
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); } &&
b4e70030
JB
21332 { ac_try='test -z "$ac_c_werror_flag"
21333 || test ! -s conftest.err'
5c45e068
MK
21334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21335 (eval $ac_try) 2>&5
21336 ac_status=$?
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); }; } &&
21339 { ac_try='test -s conftest.$ac_objext'
21340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21341 (eval $ac_try) 2>&5
21342 ac_status=$?
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); }; }; then
21345 ac_cv_member_struct_thread_td_pcb=yes
21346else
21347 echo "$as_me: failed program was:" >&5
21348sed 's/^/| /' conftest.$ac_ext >&5
21349
b4e70030 21350ac_cv_member_struct_thread_td_pcb=no
5c45e068
MK
21351fi
21352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 21353fi
bec39cab 21354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 21355fi
b4e70030
JB
21356echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
21357echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
5c45e068 21358if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 21359
5c45e068 21360cat >>confdefs.h <<_ACEOF
a3828db0 21361#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 21362_ACEOF
c906108c 21363
5c45e068 21364
97bf5e38 21365fi
c906108c 21366
5c45e068 21367
a3828db0 21368# See if <sys/lwp.h> defines `struct lwp`.
b4e70030
JB
21369echo "$as_me:$LINENO: checking for struct lwp" >&5
21370echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
a3828db0 21371if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
21372 echo $ECHO_N "(cached) $ECHO_C" >&6
21373else
21374 cat >conftest.$ac_ext <<_ACEOF
21375/* confdefs.h. */
21376_ACEOF
21377cat confdefs.h >>conftest.$ac_ext
21378cat >>conftest.$ac_ext <<_ACEOF
21379/* end confdefs.h. */
a3828db0
MK
21380#include <sys/param.h>
21381#include <sys/lwp.h>
bec39cab
AC
21382int
21383main ()
21384{
a3828db0 21385struct lwp l;
bec39cab
AC
21386 ;
21387 return 0;
21388}
21389_ACEOF
21390rm -f conftest.$ac_objext
21391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21392 (eval $ac_compile) 2>conftest.er1
21393 ac_status=$?
21394 grep -v '^ *+' conftest.er1 >conftest.err
21395 rm -f conftest.er1
21396 cat conftest.err >&5
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); } &&
b4e70030
JB
21399 { ac_try='test -z "$ac_c_werror_flag"
21400 || test ! -s conftest.err'
bec39cab
AC
21401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402 (eval $ac_try) 2>&5
21403 ac_status=$?
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; } &&
21406 { ac_try='test -s conftest.$ac_objext'
21407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21408 (eval $ac_try) 2>&5
21409 ac_status=$?
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); }; }; then
a3828db0 21412 gdb_cv_struct_lwp=yes
c906108c 21413else
bec39cab
AC
21414 echo "$as_me: failed program was:" >&5
21415sed 's/^/| /' conftest.$ac_ext >&5
21416
b4e70030 21417gdb_cv_struct_lwp=no
c906108c 21418fi
bec39cab 21419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 21420fi
b4e70030
JB
21421echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
21422echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
a3828db0 21423if test $gdb_cv_struct_lwp = yes; then
c906108c 21424
a3828db0
MK
21425cat >>confdefs.h <<\_ACEOF
21426#define HAVE_STRUCT_LWP 1
bec39cab 21427_ACEOF
c906108c 21428
97bf5e38 21429fi
c906108c 21430
a3828db0 21431# See if <machine/reg.h> degines `struct reg'.
b4e70030
JB
21432echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
21433echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
a3828db0 21434if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
21435 echo $ECHO_N "(cached) $ECHO_C" >&6
21436else
21437 cat >conftest.$ac_ext <<_ACEOF
21438/* confdefs.h. */
21439_ACEOF
21440cat confdefs.h >>conftest.$ac_ext
21441cat >>conftest.$ac_ext <<_ACEOF
21442/* end confdefs.h. */
a3828db0
MK
21443#include <sys/types.h>
21444#include <machine/reg.h>
bec39cab
AC
21445int
21446main ()
21447{
a3828db0 21448struct reg r;
bec39cab
AC
21449 ;
21450 return 0;
21451}
21452_ACEOF
21453rm -f conftest.$ac_objext
21454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21455 (eval $ac_compile) 2>conftest.er1
21456 ac_status=$?
21457 grep -v '^ *+' conftest.er1 >conftest.err
21458 rm -f conftest.er1
21459 cat conftest.err >&5
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); } &&
b4e70030
JB
21462 { ac_try='test -z "$ac_c_werror_flag"
21463 || test ! -s conftest.err'
bec39cab
AC
21464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465 (eval $ac_try) 2>&5
21466 ac_status=$?
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; } &&
21469 { ac_try='test -s conftest.$ac_objext'
21470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21471 (eval $ac_try) 2>&5
21472 ac_status=$?
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); }; }; then
a3828db0 21475 gdb_cv_struct_reg=yes
27ca5dad 21476else
bec39cab
AC
21477 echo "$as_me: failed program was:" >&5
21478sed 's/^/| /' conftest.$ac_ext >&5
21479
b4e70030 21480gdb_cv_struct_reg=no
27ca5dad 21481fi
bec39cab 21482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 21483fi
b4e70030
JB
21484echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
21485echo "${ECHO_T}$gdb_cv_struct_reg" >&6
a3828db0 21486if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
21487
21488cat >>confdefs.h <<\_ACEOF
a3828db0 21489#define HAVE_STRUCT_REG 1
bec39cab 21490_ACEOF
27ca5dad
MC
21491
21492fi
97bf5e38 21493
a3828db0
MK
21494# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
21495# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
b4e70030
JB
21496echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
21497echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
5c45e068 21498if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 21499 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 21500else
bec39cab
AC
21501 cat >conftest.$ac_ext <<_ACEOF
21502/* confdefs.h. */
21503_ACEOF
21504cat confdefs.h >>conftest.$ac_ext
21505cat >>conftest.$ac_ext <<_ACEOF
21506/* end confdefs.h. */
a3828db0 21507#include <machine/reg.h>
5c45e068
MK
21508
21509int
21510main ()
21511{
21512static struct reg ac_aggr;
21513if (ac_aggr.r_fs)
21514return 0;
21515 ;
21516 return 0;
21517}
21518_ACEOF
21519rm -f conftest.$ac_objext
21520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21521 (eval $ac_compile) 2>conftest.er1
21522 ac_status=$?
21523 grep -v '^ *+' conftest.er1 >conftest.err
21524 rm -f conftest.er1
21525 cat conftest.err >&5
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); } &&
b4e70030
JB
21528 { ac_try='test -z "$ac_c_werror_flag"
21529 || test ! -s conftest.err'
5c45e068
MK
21530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21531 (eval $ac_try) 2>&5
21532 ac_status=$?
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); }; } &&
21535 { ac_try='test -s conftest.$ac_objext'
21536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537 (eval $ac_try) 2>&5
21538 ac_status=$?
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); }; }; then
21541 ac_cv_member_struct_reg_r_fs=yes
21542else
21543 echo "$as_me: failed program was:" >&5
21544sed 's/^/| /' conftest.$ac_ext >&5
21545
b4e70030 21546cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
21547/* confdefs.h. */
21548_ACEOF
21549cat confdefs.h >>conftest.$ac_ext
21550cat >>conftest.$ac_ext <<_ACEOF
21551/* end confdefs.h. */
21552#include <machine/reg.h>
21553
bec39cab
AC
21554int
21555main ()
21556{
5c45e068
MK
21557static struct reg ac_aggr;
21558if (sizeof ac_aggr.r_fs)
21559return 0;
bec39cab
AC
21560 ;
21561 return 0;
21562}
21563_ACEOF
21564rm -f conftest.$ac_objext
21565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21566 (eval $ac_compile) 2>conftest.er1
21567 ac_status=$?
21568 grep -v '^ *+' conftest.er1 >conftest.err
21569 rm -f conftest.er1
21570 cat conftest.err >&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); } &&
b4e70030
JB
21573 { ac_try='test -z "$ac_c_werror_flag"
21574 || test ! -s conftest.err'
bec39cab
AC
21575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576 (eval $ac_try) 2>&5
21577 ac_status=$?
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); }; } &&
21580 { ac_try='test -s conftest.$ac_objext'
21581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21582 (eval $ac_try) 2>&5
21583 ac_status=$?
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); }; }; then
5c45e068 21586 ac_cv_member_struct_reg_r_fs=yes
3862412b 21587else
bec39cab
AC
21588 echo "$as_me: failed program was:" >&5
21589sed 's/^/| /' conftest.$ac_ext >&5
21590
b4e70030 21591ac_cv_member_struct_reg_r_fs=no
3862412b 21592fi
bec39cab 21593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 21594fi
5c45e068
MK
21595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21596fi
b4e70030
JB
21597echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
21598echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
5c45e068
MK
21599if test $ac_cv_member_struct_reg_r_fs = yes; then
21600
21601cat >>confdefs.h <<_ACEOF
a3828db0 21602#define HAVE_STRUCT_REG_R_FS 1
bec39cab 21603_ACEOF
3862412b 21604
5c45e068 21605
97bf5e38 21606fi
b4e70030
JB
21607echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
21608echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
5c45e068 21609if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 21610 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 21611else
bec39cab
AC
21612 cat >conftest.$ac_ext <<_ACEOF
21613/* confdefs.h. */
21614_ACEOF
21615cat confdefs.h >>conftest.$ac_ext
21616cat >>conftest.$ac_ext <<_ACEOF
21617/* end confdefs.h. */
a3828db0 21618#include <machine/reg.h>
5c45e068 21619
bec39cab
AC
21620int
21621main ()
21622{
5c45e068
MK
21623static struct reg ac_aggr;
21624if (ac_aggr.r_gs)
21625return 0;
bec39cab
AC
21626 ;
21627 return 0;
21628}
21629_ACEOF
21630rm -f conftest.$ac_objext
21631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21632 (eval $ac_compile) 2>conftest.er1
21633 ac_status=$?
21634 grep -v '^ *+' conftest.er1 >conftest.err
21635 rm -f conftest.er1
21636 cat conftest.err >&5
21637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638 (exit $ac_status); } &&
b4e70030
JB
21639 { ac_try='test -z "$ac_c_werror_flag"
21640 || test ! -s conftest.err'
bec39cab
AC
21641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21642 (eval $ac_try) 2>&5
21643 ac_status=$?
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); }; } &&
21646 { ac_try='test -s conftest.$ac_objext'
21647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21648 (eval $ac_try) 2>&5
21649 ac_status=$?
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); }; }; then
5c45e068 21652 ac_cv_member_struct_reg_r_gs=yes
3862412b 21653else
bec39cab
AC
21654 echo "$as_me: failed program was:" >&5
21655sed 's/^/| /' conftest.$ac_ext >&5
21656
b4e70030 21657cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
21658/* confdefs.h. */
21659_ACEOF
21660cat confdefs.h >>conftest.$ac_ext
21661cat >>conftest.$ac_ext <<_ACEOF
21662/* end confdefs.h. */
21663#include <machine/reg.h>
21664
21665int
21666main ()
21667{
21668static struct reg ac_aggr;
21669if (sizeof ac_aggr.r_gs)
21670return 0;
21671 ;
21672 return 0;
21673}
21674_ACEOF
21675rm -f conftest.$ac_objext
21676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21677 (eval $ac_compile) 2>conftest.er1
21678 ac_status=$?
21679 grep -v '^ *+' conftest.er1 >conftest.err
21680 rm -f conftest.er1
21681 cat conftest.err >&5
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); } &&
b4e70030
JB
21684 { ac_try='test -z "$ac_c_werror_flag"
21685 || test ! -s conftest.err'
5c45e068
MK
21686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687 (eval $ac_try) 2>&5
21688 ac_status=$?
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; } &&
21691 { ac_try='test -s conftest.$ac_objext'
21692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21693 (eval $ac_try) 2>&5
21694 ac_status=$?
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); }; }; then
21697 ac_cv_member_struct_reg_r_gs=yes
21698else
21699 echo "$as_me: failed program was:" >&5
21700sed 's/^/| /' conftest.$ac_ext >&5
21701
b4e70030 21702ac_cv_member_struct_reg_r_gs=no
3862412b 21703fi
bec39cab 21704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 21705fi
5c45e068
MK
21706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21707fi
b4e70030
JB
21708echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
21709echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
5c45e068
MK
21710if test $ac_cv_member_struct_reg_r_gs = yes; then
21711
21712cat >>confdefs.h <<_ACEOF
a3828db0 21713#define HAVE_STRUCT_REG_R_GS 1
bec39cab 21714_ACEOF
3862412b 21715
5c45e068 21716
97bf5e38 21717fi
3862412b 21718
5c45e068 21719
a3828db0 21720# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
b4e70030
JB
21721echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
21722echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
a3828db0 21723if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 21724 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 21725else
bec39cab
AC
21726 cat >conftest.$ac_ext <<_ACEOF
21727/* confdefs.h. */
21728_ACEOF
21729cat confdefs.h >>conftest.$ac_ext
21730cat >>conftest.$ac_ext <<_ACEOF
21731/* end confdefs.h. */
a3828db0 21732#include <sys/ptrace.h>
bec39cab
AC
21733int
21734main ()
21735{
a3828db0 21736PTRACE_GETREGS;
bec39cab
AC
21737 ;
21738 return 0;
21739}
21740_ACEOF
21741rm -f conftest.$ac_objext
21742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21743 (eval $ac_compile) 2>conftest.er1
21744 ac_status=$?
21745 grep -v '^ *+' conftest.er1 >conftest.err
21746 rm -f conftest.er1
21747 cat conftest.err >&5
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); } &&
b4e70030
JB
21750 { ac_try='test -z "$ac_c_werror_flag"
21751 || test ! -s conftest.err'
bec39cab
AC
21752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21753 (eval $ac_try) 2>&5
21754 ac_status=$?
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); }; } &&
21757 { ac_try='test -s conftest.$ac_objext'
21758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21759 (eval $ac_try) 2>&5
21760 ac_status=$?
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); }; }; then
a3828db0 21763 gdb_cv_have_ptrace_getregs=yes
451928c5 21764else
bec39cab
AC
21765 echo "$as_me: failed program was:" >&5
21766sed 's/^/| /' conftest.$ac_ext >&5
21767
b4e70030 21768gdb_cv_have_ptrace_getregs=no
451928c5 21769fi
bec39cab 21770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
21771fi
21772
b4e70030
JB
21773echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
21774echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
a3828db0 21775if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
21776
21777cat >>confdefs.h <<\_ACEOF
a3828db0 21778#define HAVE_PTRACE_GETREGS 1
bec39cab 21779_ACEOF
451928c5 21780
97bf5e38 21781fi
451928c5 21782
a3828db0 21783# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
b4e70030
JB
21784echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
21785echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
a3828db0 21786if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 21787 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 21788else
bec39cab
AC
21789 cat >conftest.$ac_ext <<_ACEOF
21790/* confdefs.h. */
21791_ACEOF
21792cat confdefs.h >>conftest.$ac_ext
21793cat >>conftest.$ac_ext <<_ACEOF
21794/* end confdefs.h. */
a3828db0 21795#include <sys/ptrace.h>
bec39cab
AC
21796int
21797main ()
21798{
a3828db0 21799PTRACE_GETFPXREGS;
bec39cab
AC
21800 ;
21801 return 0;
21802}
21803_ACEOF
21804rm -f conftest.$ac_objext
21805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21806 (eval $ac_compile) 2>conftest.er1
21807 ac_status=$?
21808 grep -v '^ *+' conftest.er1 >conftest.err
21809 rm -f conftest.er1
21810 cat conftest.err >&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); } &&
b4e70030
JB
21813 { ac_try='test -z "$ac_c_werror_flag"
21814 || test ! -s conftest.err'
bec39cab
AC
21815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21816 (eval $ac_try) 2>&5
21817 ac_status=$?
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; } &&
21820 { ac_try='test -s conftest.$ac_objext'
21821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21822 (eval $ac_try) 2>&5
21823 ac_status=$?
21824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 (exit $ac_status); }; }; then
a3828db0 21826 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 21827else
bec39cab
AC
21828 echo "$as_me: failed program was:" >&5
21829sed 's/^/| /' conftest.$ac_ext >&5
21830
b4e70030 21831gdb_cv_have_ptrace_getfpxregs=no
451928c5 21832fi
bec39cab 21833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
21834fi
21835
b4e70030
JB
21836echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
21837echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
a3828db0 21838if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
21839
21840cat >>confdefs.h <<\_ACEOF
a3828db0 21841#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 21842_ACEOF
451928c5 21843
97bf5e38 21844fi
451928c5 21845
a3828db0 21846# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
b4e70030
JB
21847echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
21848echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
a3828db0 21849if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 21850 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 21851else
bec39cab
AC
21852 cat >conftest.$ac_ext <<_ACEOF
21853/* confdefs.h. */
21854_ACEOF
21855cat confdefs.h >>conftest.$ac_ext
21856cat >>conftest.$ac_ext <<_ACEOF
21857/* end confdefs.h. */
a3828db0
MK
21858#include <sys/types.h>
21859#include <sys/ptrace.h>
bec39cab
AC
21860int
21861main ()
21862{
a3828db0 21863PT_GETDBREGS;
bec39cab
AC
21864 ;
21865 return 0;
21866}
21867_ACEOF
21868rm -f conftest.$ac_objext
21869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21870 (eval $ac_compile) 2>conftest.er1
21871 ac_status=$?
21872 grep -v '^ *+' conftest.er1 >conftest.err
21873 rm -f conftest.er1
21874 cat conftest.err >&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); } &&
b4e70030
JB
21877 { ac_try='test -z "$ac_c_werror_flag"
21878 || test ! -s conftest.err'
bec39cab
AC
21879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21880 (eval $ac_try) 2>&5
21881 ac_status=$?
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); }; } &&
21884 { ac_try='test -s conftest.$ac_objext'
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5
21887 ac_status=$?
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; }; then
a3828db0 21890 gdb_cv_have_pt_getdbregs=yes
3862412b 21891else
bec39cab
AC
21892 echo "$as_me: failed program was:" >&5
21893sed 's/^/| /' conftest.$ac_ext >&5
21894
b4e70030 21895gdb_cv_have_pt_getdbregs=no
3862412b 21896fi
bec39cab 21897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
21898fi
21899
b4e70030
JB
21900echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
21901echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
a3828db0 21902if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
21903
21904cat >>confdefs.h <<\_ACEOF
a3828db0 21905#define HAVE_PT_GETDBREGS 1
bec39cab 21906_ACEOF
3862412b 21907
97bf5e38 21908fi
3862412b 21909
a3828db0 21910# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
b4e70030
JB
21911echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
21912echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
a3828db0 21913if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 21914 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 21915else
bec39cab
AC
21916 cat >conftest.$ac_ext <<_ACEOF
21917/* confdefs.h. */
21918_ACEOF
21919cat confdefs.h >>conftest.$ac_ext
21920cat >>conftest.$ac_ext <<_ACEOF
21921/* end confdefs.h. */
a3828db0
MK
21922#include <sys/types.h>
21923#include <sys/ptrace.h>
bec39cab
AC
21924int
21925main ()
21926{
a3828db0 21927PT_GETXMMREGS;
bec39cab
AC
21928 ;
21929 return 0;
21930}
21931_ACEOF
21932rm -f conftest.$ac_objext
21933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21934 (eval $ac_compile) 2>conftest.er1
21935 ac_status=$?
21936 grep -v '^ *+' conftest.er1 >conftest.err
21937 rm -f conftest.er1
21938 cat conftest.err >&5
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); } &&
b4e70030
JB
21941 { ac_try='test -z "$ac_c_werror_flag"
21942 || test ! -s conftest.err'
bec39cab
AC
21943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21944 (eval $ac_try) 2>&5
21945 ac_status=$?
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); }; } &&
21948 { ac_try='test -s conftest.$ac_objext'
21949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21950 (eval $ac_try) 2>&5
21951 ac_status=$?
21952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953 (exit $ac_status); }; }; then
a3828db0 21954 gdb_cv_have_pt_getxmmregs=yes
3862412b 21955else
bec39cab
AC
21956 echo "$as_me: failed program was:" >&5
21957sed 's/^/| /' conftest.$ac_ext >&5
21958
b4e70030 21959gdb_cv_have_pt_getxmmregs=no
3862412b 21960fi
bec39cab 21961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
21962fi
21963
b4e70030
JB
21964echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
21965echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
a3828db0 21966if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
21967
21968cat >>confdefs.h <<\_ACEOF
a3828db0 21969#define HAVE_PT_GETXMMREGS 1
bec39cab 21970_ACEOF
3862412b 21971
97bf5e38 21972fi
3862412b 21973
eb368090 21974# Detect which type of /proc is in use, such as for Unixware or Solaris.
97bf5e38
MK
21975
21976if test "${target}" = "${host}"; then
21977 case "${host}" in
97bf5e38 21978 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
21979
21980cat >>confdefs.h <<\_ACEOF
97bf5e38 21981#define NEW_PROC_API 1
bec39cab 21982_ACEOF
97bf5e38
MK
21983
21984 ;;
c162e8c9 21985 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
60ca704f
SE
21986
21987cat >>confdefs.h <<\_ACEOF
97bf5e38 21988#define NEW_PROC_API 1
bec39cab 21989_ACEOF
c960c18f
AC
21990
21991 ;;
21992 mips-sgi-irix5*)
21993 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
21994
21995cat >>confdefs.h <<\_ACEOF
c960c18f 21996#define _KMEMUSER 1
bec39cab 21997_ACEOF
97bf5e38
MK
21998
21999 ;;
22000 esac
22001fi
22002
22003if test "$ac_cv_header_sys_procfs_h" = yes; then
b4e70030
JB
22004 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
22005echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22006 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
22007 echo $ECHO_N "(cached) $ECHO_C" >&6
22008else
22009 cat >conftest.$ac_ext <<_ACEOF
22010/* confdefs.h. */
22011_ACEOF
22012cat confdefs.h >>conftest.$ac_ext
22013cat >>conftest.$ac_ext <<_ACEOF
22014/* end confdefs.h. */
596c9d4b
KB
22015
22016#define _SYSCALL32
22017#include <sys/procfs.h>
bec39cab
AC
22018int
22019main ()
22020{
97bf5e38 22021pstatus_t avar
bec39cab
AC
22022 ;
22023 return 0;
22024}
22025_ACEOF
22026rm -f conftest.$ac_objext
22027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22028 (eval $ac_compile) 2>conftest.er1
22029 ac_status=$?
22030 grep -v '^ *+' conftest.er1 >conftest.err
22031 rm -f conftest.er1
22032 cat conftest.err >&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); } &&
b4e70030
JB
22035 { ac_try='test -z "$ac_c_werror_flag"
22036 || test ! -s conftest.err'
bec39cab
AC
22037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22038 (eval $ac_try) 2>&5
22039 ac_status=$?
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; } &&
22042 { ac_try='test -s conftest.$ac_objext'
22043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22044 (eval $ac_try) 2>&5
22045 ac_status=$?
22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); }; }; then
97bf5e38 22048 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 22049else
bec39cab
AC
22050 echo "$as_me: failed program was:" >&5
22051sed 's/^/| /' conftest.$ac_ext >&5
22052
b4e70030 22053bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 22054
596c9d4b 22055fi
bec39cab 22056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
22057fi
22058
97bf5e38 22059 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
22060
22061cat >>confdefs.h <<\_ACEOF
97bf5e38 22062#define HAVE_PSTATUS_T 1
bec39cab 22063_ACEOF
596c9d4b
KB
22064
22065 fi
b4e70030
JB
22066 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
22067echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 22068
b4e70030
JB
22069 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
22070echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22071 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
22072 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 22073else
bec39cab
AC
22074 cat >conftest.$ac_ext <<_ACEOF
22075/* confdefs.h. */
22076_ACEOF
22077cat confdefs.h >>conftest.$ac_ext
22078cat >>conftest.$ac_ext <<_ACEOF
22079/* end confdefs.h. */
596c9d4b
KB
22080
22081#define _SYSCALL32
22082#include <sys/procfs.h>
bec39cab
AC
22083int
22084main ()
22085{
97bf5e38 22086prrun_t avar
bec39cab
AC
22087 ;
22088 return 0;
22089}
22090_ACEOF
22091rm -f conftest.$ac_objext
22092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22093 (eval $ac_compile) 2>conftest.er1
22094 ac_status=$?
22095 grep -v '^ *+' conftest.er1 >conftest.err
22096 rm -f conftest.er1
22097 cat conftest.err >&5
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); } &&
b4e70030
JB
22100 { ac_try='test -z "$ac_c_werror_flag"
22101 || test ! -s conftest.err'
bec39cab
AC
22102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22103 (eval $ac_try) 2>&5
22104 ac_status=$?
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); }; } &&
22107 { ac_try='test -s conftest.$ac_objext'
22108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22109 (eval $ac_try) 2>&5
22110 ac_status=$?
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); }; }; then
97bf5e38 22113 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 22114else
bec39cab
AC
22115 echo "$as_me: failed program was:" >&5
22116sed 's/^/| /' conftest.$ac_ext >&5
22117
b4e70030 22118bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 22119
596c9d4b 22120fi
bec39cab 22121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
22122fi
22123
97bf5e38 22124 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
22125
22126cat >>confdefs.h <<\_ACEOF
97bf5e38 22127#define HAVE_PRRUN_T 1
bec39cab 22128_ACEOF
596c9d4b
KB
22129
22130 fi
b4e70030
JB
22131 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
22132echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 22133
b4e70030
JB
22134 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
22135echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22136 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
22137 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 22138else
bec39cab
AC
22139 cat >conftest.$ac_ext <<_ACEOF
22140/* confdefs.h. */
22141_ACEOF
22142cat confdefs.h >>conftest.$ac_ext
22143cat >>conftest.$ac_ext <<_ACEOF
22144/* end confdefs.h. */
596c9d4b
KB
22145
22146#define _SYSCALL32
22147#include <sys/procfs.h>
bec39cab
AC
22148int
22149main ()
22150{
97bf5e38 22151gregset_t avar
bec39cab
AC
22152 ;
22153 return 0;
22154}
22155_ACEOF
22156rm -f conftest.$ac_objext
22157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22158 (eval $ac_compile) 2>conftest.er1
22159 ac_status=$?
22160 grep -v '^ *+' conftest.er1 >conftest.err
22161 rm -f conftest.er1
22162 cat conftest.err >&5
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); } &&
b4e70030
JB
22165 { ac_try='test -z "$ac_c_werror_flag"
22166 || test ! -s conftest.err'
bec39cab
AC
22167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168 (eval $ac_try) 2>&5
22169 ac_status=$?
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); }; } &&
22172 { ac_try='test -s conftest.$ac_objext'
22173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22174 (eval $ac_try) 2>&5
22175 ac_status=$?
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); }; }; then
97bf5e38 22178 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 22179else
bec39cab
AC
22180 echo "$as_me: failed program was:" >&5
22181sed 's/^/| /' conftest.$ac_ext >&5
22182
b4e70030 22183bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 22184
596c9d4b 22185fi
bec39cab 22186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
22187fi
22188
97bf5e38 22189 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
22190
22191cat >>confdefs.h <<\_ACEOF
97bf5e38 22192#define HAVE_GREGSET_T 1
bec39cab 22193_ACEOF
596c9d4b
KB
22194
22195 fi
b4e70030
JB
22196 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
22197echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 22198
b4e70030
JB
22199 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
22200echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22201 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 22203else
bec39cab
AC
22204 cat >conftest.$ac_ext <<_ACEOF
22205/* confdefs.h. */
22206_ACEOF
22207cat confdefs.h >>conftest.$ac_ext
22208cat >>conftest.$ac_ext <<_ACEOF
22209/* end confdefs.h. */
97bf5e38
MK
22210
22211#define _SYSCALL32
d84dd0c5 22212#include <sys/procfs.h>
bec39cab
AC
22213int
22214main ()
22215{
97bf5e38 22216fpregset_t avar
bec39cab
AC
22217 ;
22218 return 0;
22219}
22220_ACEOF
22221rm -f conftest.$ac_objext
22222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22223 (eval $ac_compile) 2>conftest.er1
22224 ac_status=$?
22225 grep -v '^ *+' conftest.er1 >conftest.err
22226 rm -f conftest.er1
22227 cat conftest.err >&5
22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); } &&
b4e70030
JB
22230 { ac_try='test -z "$ac_c_werror_flag"
22231 || test ! -s conftest.err'
bec39cab
AC
22232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22233 (eval $ac_try) 2>&5
22234 ac_status=$?
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); }; } &&
22237 { ac_try='test -s conftest.$ac_objext'
22238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22239 (eval $ac_try) 2>&5
22240 ac_status=$?
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); }; }; then
97bf5e38 22243 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 22244else
bec39cab
AC
22245 echo "$as_me: failed program was:" >&5
22246sed 's/^/| /' conftest.$ac_ext >&5
22247
b4e70030 22248bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 22249
d84dd0c5 22250fi
bec39cab 22251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
22252fi
22253
97bf5e38 22254 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
22255
22256cat >>confdefs.h <<\_ACEOF
97bf5e38 22257#define HAVE_FPREGSET_T 1
bec39cab 22258_ACEOF
d84dd0c5 22259
97bf5e38 22260 fi
b4e70030
JB
22261 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
22262echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 22263
b4e70030
JB
22264 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
22265echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22266 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
22267 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22268else
bec39cab
AC
22269 cat >conftest.$ac_ext <<_ACEOF
22270/* confdefs.h. */
22271_ACEOF
22272cat confdefs.h >>conftest.$ac_ext
22273cat >>conftest.$ac_ext <<_ACEOF
22274/* end confdefs.h. */
c906108c 22275
97bf5e38
MK
22276#define _SYSCALL32
22277#include <sys/procfs.h>
bec39cab
AC
22278int
22279main ()
22280{
97bf5e38 22281prgregset_t avar
bec39cab
AC
22282 ;
22283 return 0;
22284}
22285_ACEOF
22286rm -f conftest.$ac_objext
22287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22288 (eval $ac_compile) 2>conftest.er1
22289 ac_status=$?
22290 grep -v '^ *+' conftest.er1 >conftest.err
22291 rm -f conftest.er1
22292 cat conftest.err >&5
22293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); } &&
b4e70030
JB
22295 { ac_try='test -z "$ac_c_werror_flag"
22296 || test ! -s conftest.err'
bec39cab
AC
22297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298 (eval $ac_try) 2>&5
22299 ac_status=$?
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); }; } &&
22302 { ac_try='test -s conftest.$ac_objext'
22303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22304 (eval $ac_try) 2>&5
22305 ac_status=$?
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); }; }; then
97bf5e38 22308 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 22309else
bec39cab
AC
22310 echo "$as_me: failed program was:" >&5
22311sed 's/^/| /' conftest.$ac_ext >&5
22312
b4e70030 22313bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 22314
c906108c 22315fi
bec39cab 22316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22317fi
22318
97bf5e38 22319 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
22320
22321cat >>confdefs.h <<\_ACEOF
97bf5e38 22322#define HAVE_PRGREGSET_T 1
bec39cab 22323_ACEOF
c906108c 22324
97bf5e38 22325 fi
b4e70030
JB
22326 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
22327echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 22328
b4e70030
JB
22329 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
22330echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22331 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
22332 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 22333else
bec39cab
AC
22334 cat >conftest.$ac_ext <<_ACEOF
22335/* confdefs.h. */
22336_ACEOF
22337cat confdefs.h >>conftest.$ac_ext
22338cat >>conftest.$ac_ext <<_ACEOF
22339/* end confdefs.h. */
97bf5e38
MK
22340
22341#define _SYSCALL32
22342#include <sys/procfs.h>
bec39cab
AC
22343int
22344main ()
22345{
97bf5e38 22346prfpregset_t avar
bec39cab
AC
22347 ;
22348 return 0;
22349}
22350_ACEOF
22351rm -f conftest.$ac_objext
22352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22353 (eval $ac_compile) 2>conftest.er1
22354 ac_status=$?
22355 grep -v '^ *+' conftest.er1 >conftest.err
22356 rm -f conftest.er1
22357 cat conftest.err >&5
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); } &&
b4e70030
JB
22360 { ac_try='test -z "$ac_c_werror_flag"
22361 || test ! -s conftest.err'
bec39cab
AC
22362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22363 (eval $ac_try) 2>&5
22364 ac_status=$?
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); }; } &&
22367 { ac_try='test -s conftest.$ac_objext'
22368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22369 (eval $ac_try) 2>&5
22370 ac_status=$?
22371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 (exit $ac_status); }; }; then
97bf5e38 22373 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 22374else
bec39cab
AC
22375 echo "$as_me: failed program was:" >&5
22376sed 's/^/| /' conftest.$ac_ext >&5
22377
b4e70030 22378bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 22379
d45fe813 22380fi
bec39cab 22381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
22382fi
22383
97bf5e38 22384 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
22385
22386cat >>confdefs.h <<\_ACEOF
97bf5e38 22387#define HAVE_PRFPREGSET_T 1
bec39cab 22388_ACEOF
d45fe813 22389
97bf5e38 22390 fi
b4e70030
JB
22391 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
22392echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 22393
b4e70030
JB
22394 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
22395echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22396 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
22397 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 22398else
bec39cab
AC
22399 cat >conftest.$ac_ext <<_ACEOF
22400/* confdefs.h. */
22401_ACEOF
22402cat confdefs.h >>conftest.$ac_ext
22403cat >>conftest.$ac_ext <<_ACEOF
22404/* end confdefs.h. */
97bf5e38
MK
22405
22406#define _SYSCALL32
22407#include <sys/procfs.h>
bec39cab
AC
22408int
22409main ()
22410{
97bf5e38 22411prgregset32_t avar
bec39cab
AC
22412 ;
22413 return 0;
22414}
22415_ACEOF
22416rm -f conftest.$ac_objext
22417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22418 (eval $ac_compile) 2>conftest.er1
22419 ac_status=$?
22420 grep -v '^ *+' conftest.er1 >conftest.err
22421 rm -f conftest.er1
22422 cat conftest.err >&5
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); } &&
b4e70030
JB
22425 { ac_try='test -z "$ac_c_werror_flag"
22426 || test ! -s conftest.err'
bec39cab
AC
22427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22428 (eval $ac_try) 2>&5
22429 ac_status=$?
22430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431 (exit $ac_status); }; } &&
22432 { ac_try='test -s conftest.$ac_objext'
22433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22434 (eval $ac_try) 2>&5
22435 ac_status=$?
22436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437 (exit $ac_status); }; }; then
97bf5e38 22438 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 22439else
bec39cab
AC
22440 echo "$as_me: failed program was:" >&5
22441sed 's/^/| /' conftest.$ac_ext >&5
22442
b4e70030 22443bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 22444
d45fe813 22445fi
bec39cab 22446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
22447fi
22448
97bf5e38 22449 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
22450
22451cat >>confdefs.h <<\_ACEOF
97bf5e38 22452#define HAVE_PRGREGSET32_T 1
bec39cab 22453_ACEOF
d45fe813 22454
97bf5e38 22455 fi
b4e70030
JB
22456 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
22457echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 22458
b4e70030
JB
22459 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
22460echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22461 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
22462 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 22463else
bec39cab
AC
22464 cat >conftest.$ac_ext <<_ACEOF
22465/* confdefs.h. */
22466_ACEOF
22467cat confdefs.h >>conftest.$ac_ext
22468cat >>conftest.$ac_ext <<_ACEOF
22469/* end confdefs.h. */
97bf5e38
MK
22470
22471#define _SYSCALL32
22472#include <sys/procfs.h>
bec39cab
AC
22473int
22474main ()
22475{
97bf5e38 22476prfpregset32_t avar
bec39cab
AC
22477 ;
22478 return 0;
22479}
22480_ACEOF
22481rm -f conftest.$ac_objext
22482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22483 (eval $ac_compile) 2>conftest.er1
22484 ac_status=$?
22485 grep -v '^ *+' conftest.er1 >conftest.err
22486 rm -f conftest.er1
22487 cat conftest.err >&5
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); } &&
b4e70030
JB
22490 { ac_try='test -z "$ac_c_werror_flag"
22491 || test ! -s conftest.err'
bec39cab
AC
22492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493 (eval $ac_try) 2>&5
22494 ac_status=$?
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); }; } &&
22497 { ac_try='test -s conftest.$ac_objext'
22498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22499 (eval $ac_try) 2>&5
22500 ac_status=$?
22501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502 (exit $ac_status); }; }; then
97bf5e38 22503 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 22504else
bec39cab
AC
22505 echo "$as_me: failed program was:" >&5
22506sed 's/^/| /' conftest.$ac_ext >&5
22507
b4e70030 22508bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 22509
d45fe813 22510fi
bec39cab 22511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
22512fi
22513
97bf5e38 22514 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
22515
22516cat >>confdefs.h <<\_ACEOF
97bf5e38 22517#define HAVE_PRFPREGSET32_T 1
bec39cab 22518_ACEOF
d45fe813 22519
97bf5e38 22520 fi
b4e70030
JB
22521 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
22522echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 22523
b4e70030
JB
22524 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
22525echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22526 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
22527 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 22528else
bec39cab
AC
22529 cat >conftest.$ac_ext <<_ACEOF
22530/* confdefs.h. */
22531_ACEOF
22532cat confdefs.h >>conftest.$ac_ext
22533cat >>conftest.$ac_ext <<_ACEOF
22534/* end confdefs.h. */
97bf5e38 22535
d45fe813 22536#define _SYSCALL32
97bf5e38 22537#include <sys/procfs.h>
bec39cab
AC
22538int
22539main ()
22540{
97bf5e38 22541lwpid_t avar
bec39cab
AC
22542 ;
22543 return 0;
22544}
22545_ACEOF
22546rm -f conftest.$ac_objext
22547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22548 (eval $ac_compile) 2>conftest.er1
22549 ac_status=$?
22550 grep -v '^ *+' conftest.er1 >conftest.err
22551 rm -f conftest.er1
22552 cat conftest.err >&5
22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554 (exit $ac_status); } &&
b4e70030
JB
22555 { ac_try='test -z "$ac_c_werror_flag"
22556 || test ! -s conftest.err'
bec39cab
AC
22557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22558 (eval $ac_try) 2>&5
22559 ac_status=$?
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); }; } &&
22562 { ac_try='test -s conftest.$ac_objext'
22563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22564 (eval $ac_try) 2>&5
22565 ac_status=$?
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); }; }; then
97bf5e38 22568 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 22569else
bec39cab
AC
22570 echo "$as_me: failed program was:" >&5
22571sed 's/^/| /' conftest.$ac_ext >&5
22572
b4e70030 22573bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 22574
d45fe813 22575fi
bec39cab 22576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
22577fi
22578
97bf5e38 22579 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
22580
22581cat >>confdefs.h <<\_ACEOF
97bf5e38 22582#define HAVE_LWPID_T 1
bec39cab 22583_ACEOF
d45fe813 22584
97bf5e38 22585 fi
b4e70030
JB
22586 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
22587echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 22588
b4e70030
JB
22589 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
22590echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22591 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
22592 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22593else
bec39cab
AC
22594 cat >conftest.$ac_ext <<_ACEOF
22595/* confdefs.h. */
22596_ACEOF
22597cat confdefs.h >>conftest.$ac_ext
22598cat >>conftest.$ac_ext <<_ACEOF
22599/* end confdefs.h. */
c906108c 22600
97bf5e38
MK
22601#define _SYSCALL32
22602#include <sys/procfs.h>
bec39cab
AC
22603int
22604main ()
22605{
97bf5e38 22606psaddr_t avar
bec39cab
AC
22607 ;
22608 return 0;
22609}
22610_ACEOF
22611rm -f conftest.$ac_objext
22612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22613 (eval $ac_compile) 2>conftest.er1
22614 ac_status=$?
22615 grep -v '^ *+' conftest.er1 >conftest.err
22616 rm -f conftest.er1
22617 cat conftest.err >&5
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); } &&
b4e70030
JB
22620 { ac_try='test -z "$ac_c_werror_flag"
22621 || test ! -s conftest.err'
bec39cab
AC
22622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22623 (eval $ac_try) 2>&5
22624 ac_status=$?
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); }; } &&
22627 { ac_try='test -s conftest.$ac_objext'
22628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22629 (eval $ac_try) 2>&5
22630 ac_status=$?
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); }; }; then
97bf5e38 22633 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 22634else
bec39cab
AC
22635 echo "$as_me: failed program was:" >&5
22636sed 's/^/| /' conftest.$ac_ext >&5
22637
b4e70030 22638bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 22639
c906108c 22640fi
bec39cab 22641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22642fi
22643
97bf5e38 22644 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
22645
22646cat >>confdefs.h <<\_ACEOF
97bf5e38 22647#define HAVE_PSADDR_T 1
bec39cab 22648_ACEOF
c906108c 22649
97bf5e38 22650 fi
b4e70030
JB
22651 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
22652echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 22653
b4e70030
JB
22654 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
22655echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22656 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
22657 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22658else
bec39cab
AC
22659 cat >conftest.$ac_ext <<_ACEOF
22660/* confdefs.h. */
22661_ACEOF
22662cat confdefs.h >>conftest.$ac_ext
22663cat >>conftest.$ac_ext <<_ACEOF
22664/* end confdefs.h. */
c906108c 22665
97bf5e38
MK
22666#define _SYSCALL32
22667#include <sys/procfs.h>
bec39cab
AC
22668int
22669main ()
22670{
97bf5e38 22671prsysent_t avar
bec39cab
AC
22672 ;
22673 return 0;
22674}
22675_ACEOF
22676rm -f conftest.$ac_objext
22677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22678 (eval $ac_compile) 2>conftest.er1
22679 ac_status=$?
22680 grep -v '^ *+' conftest.er1 >conftest.err
22681 rm -f conftest.er1
22682 cat conftest.err >&5
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); } &&
b4e70030
JB
22685 { ac_try='test -z "$ac_c_werror_flag"
22686 || test ! -s conftest.err'
bec39cab
AC
22687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22688 (eval $ac_try) 2>&5
22689 ac_status=$?
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); }; } &&
22692 { ac_try='test -s conftest.$ac_objext'
22693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22694 (eval $ac_try) 2>&5
22695 ac_status=$?
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); }; }; then
97bf5e38 22698 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 22699else
bec39cab
AC
22700 echo "$as_me: failed program was:" >&5
22701sed 's/^/| /' conftest.$ac_ext >&5
22702
b4e70030 22703bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 22704
c906108c 22705fi
bec39cab 22706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22707fi
22708
97bf5e38 22709 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
22710
22711cat >>confdefs.h <<\_ACEOF
97bf5e38 22712#define HAVE_PRSYSENT_T 1
bec39cab 22713_ACEOF
c906108c 22714
97bf5e38 22715 fi
b4e70030
JB
22716 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
22717echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 22718
b4e70030
JB
22719 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
22720echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22721 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
22722 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22723else
bec39cab
AC
22724 cat >conftest.$ac_ext <<_ACEOF
22725/* confdefs.h. */
22726_ACEOF
22727cat confdefs.h >>conftest.$ac_ext
22728cat >>conftest.$ac_ext <<_ACEOF
22729/* end confdefs.h. */
c906108c 22730
97bf5e38
MK
22731#define _SYSCALL32
22732#include <sys/procfs.h>
bec39cab
AC
22733int
22734main ()
22735{
97bf5e38 22736pr_sigset_t avar
bec39cab
AC
22737 ;
22738 return 0;
22739}
22740_ACEOF
22741rm -f conftest.$ac_objext
22742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22743 (eval $ac_compile) 2>conftest.er1
22744 ac_status=$?
22745 grep -v '^ *+' conftest.er1 >conftest.err
22746 rm -f conftest.er1
22747 cat conftest.err >&5
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); } &&
b4e70030
JB
22750 { ac_try='test -z "$ac_c_werror_flag"
22751 || test ! -s conftest.err'
bec39cab
AC
22752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22753 (eval $ac_try) 2>&5
22754 ac_status=$?
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); }; } &&
22757 { ac_try='test -s conftest.$ac_objext'
22758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22759 (eval $ac_try) 2>&5
22760 ac_status=$?
22761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); }; }; then
97bf5e38 22763 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 22764else
bec39cab
AC
22765 echo "$as_me: failed program was:" >&5
22766sed 's/^/| /' conftest.$ac_ext >&5
22767
b4e70030 22768bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 22769
c906108c 22770fi
bec39cab 22771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22772fi
22773
97bf5e38 22774 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
22775
22776cat >>confdefs.h <<\_ACEOF
97bf5e38 22777#define HAVE_PR_SIGSET_T 1
bec39cab 22778_ACEOF
c906108c 22779
97bf5e38 22780 fi
b4e70030
JB
22781 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
22782echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 22783
b4e70030
JB
22784 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
22785echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22786 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
22787 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22788else
bec39cab
AC
22789 cat >conftest.$ac_ext <<_ACEOF
22790/* confdefs.h. */
22791_ACEOF
22792cat confdefs.h >>conftest.$ac_ext
22793cat >>conftest.$ac_ext <<_ACEOF
22794/* end confdefs.h. */
c906108c 22795
97bf5e38
MK
22796#define _SYSCALL32
22797#include <sys/procfs.h>
bec39cab
AC
22798int
22799main ()
22800{
97bf5e38 22801pr_sigaction64_t avar
bec39cab
AC
22802 ;
22803 return 0;
22804}
22805_ACEOF
22806rm -f conftest.$ac_objext
22807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22808 (eval $ac_compile) 2>conftest.er1
22809 ac_status=$?
22810 grep -v '^ *+' conftest.er1 >conftest.err
22811 rm -f conftest.er1
22812 cat conftest.err >&5
22813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814 (exit $ac_status); } &&
b4e70030
JB
22815 { ac_try='test -z "$ac_c_werror_flag"
22816 || test ! -s conftest.err'
bec39cab
AC
22817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22818 (eval $ac_try) 2>&5
22819 ac_status=$?
22820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); }; } &&
22822 { ac_try='test -s conftest.$ac_objext'
22823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22824 (eval $ac_try) 2>&5
22825 ac_status=$?
22826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827 (exit $ac_status); }; }; then
97bf5e38 22828 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 22829else
bec39cab
AC
22830 echo "$as_me: failed program was:" >&5
22831sed 's/^/| /' conftest.$ac_ext >&5
22832
b4e70030 22833bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 22834
c906108c 22835fi
bec39cab 22836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22837fi
22838
97bf5e38 22839 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
22840
22841cat >>confdefs.h <<\_ACEOF
97bf5e38 22842#define HAVE_PR_SIGACTION64_T 1
bec39cab 22843_ACEOF
c906108c 22844
97bf5e38 22845 fi
b4e70030
JB
22846 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
22847echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 22848
b4e70030
JB
22849 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
22850echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22851 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
22852 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 22853else
bec39cab
AC
22854 cat >conftest.$ac_ext <<_ACEOF
22855/* confdefs.h. */
22856_ACEOF
22857cat confdefs.h >>conftest.$ac_ext
22858cat >>conftest.$ac_ext <<_ACEOF
22859/* end confdefs.h. */
97bf5e38
MK
22860
22861#define _SYSCALL32
22862#include <sys/procfs.h>
bec39cab
AC
22863int
22864main ()
22865{
97bf5e38 22866pr_siginfo64_t avar
bec39cab
AC
22867 ;
22868 return 0;
22869}
22870_ACEOF
22871rm -f conftest.$ac_objext
22872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22873 (eval $ac_compile) 2>conftest.er1
22874 ac_status=$?
22875 grep -v '^ *+' conftest.er1 >conftest.err
22876 rm -f conftest.er1
22877 cat conftest.err >&5
22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); } &&
b4e70030
JB
22880 { ac_try='test -z "$ac_c_werror_flag"
22881 || test ! -s conftest.err'
bec39cab
AC
22882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883 (eval $ac_try) 2>&5
22884 ac_status=$?
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); }; } &&
22887 { ac_try='test -s conftest.$ac_objext'
22888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22889 (eval $ac_try) 2>&5
22890 ac_status=$?
22891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); }; }; then
97bf5e38
MK
22893 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
22894else
bec39cab
AC
22895 echo "$as_me: failed program was:" >&5
22896sed 's/^/| /' conftest.$ac_ext >&5
22897
b4e70030 22898bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 22899
97bf5e38 22900fi
bec39cab 22901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 22902fi
c906108c 22903
97bf5e38 22904 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
22905
22906cat >>confdefs.h <<\_ACEOF
97bf5e38 22907#define HAVE_PR_SIGINFO64_T 1
bec39cab 22908_ACEOF
c906108c 22909
97bf5e38 22910 fi
b4e70030
JB
22911 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
22912echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
bec39cab
AC
22913
22914
97bf5e38
MK
22915
22916
22917
97bf5e38 22918 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
b4e70030
JB
22919 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
22920echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
bec39cab
AC
22921 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
22922 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
22923else
22924 if test "$cross_compiling" = yes; then
97bf5e38 22925 gdb_cv_prfpregset_t_broken=yes
c906108c 22926else
bec39cab
AC
22927 cat >conftest.$ac_ext <<_ACEOF
22928/* confdefs.h. */
22929_ACEOF
22930cat confdefs.h >>conftest.$ac_ext
22931cat >>conftest.$ac_ext <<_ACEOF
22932/* end confdefs.h. */
97bf5e38
MK
22933#include <sys/procfs.h>
22934 int main ()
22935 {
22936 if (sizeof (prfpregset_t) == sizeof (void *))
22937 return 1;
22938 return 0;
22939 }
bec39cab
AC
22940_ACEOF
22941rm -f conftest$ac_exeext
22942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22943 (eval $ac_link) 2>&5
22944 ac_status=$?
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22948 (eval $ac_try) 2>&5
22949 ac_status=$?
22950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); }; }; then
97bf5e38 22952 gdb_cv_prfpregset_t_broken=no
c906108c 22953else
bec39cab
AC
22954 echo "$as_me: program exited with status $ac_status" >&5
22955echo "$as_me: failed program was:" >&5
22956sed 's/^/| /' conftest.$ac_ext >&5
22957
22958( exit $ac_status )
22959gdb_cv_prfpregset_t_broken=yes
c906108c 22960fi
b4e70030 22961rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 22962fi
c906108c
SS
22963fi
22964
b4e70030
JB
22965 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
22966echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 22967 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
22968
22969cat >>confdefs.h <<\_ACEOF
97bf5e38 22970#define PRFPREGSET_T_BROKEN 1
bec39cab 22971_ACEOF
c906108c 22972
97bf5e38
MK
22973 fi
22974 fi
c906108c 22975
bec39cab 22976
b4e70030
JB
22977 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
22978echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22979 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
22980 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22981else
bec39cab
AC
22982 cat >conftest.$ac_ext <<_ACEOF
22983/* confdefs.h. */
22984_ACEOF
22985cat confdefs.h >>conftest.$ac_ext
22986cat >>conftest.$ac_ext <<_ACEOF
22987/* end confdefs.h. */
97bf5e38
MK
22988#include <unistd.h>
22989#include <sys/types.h>
22990#include <sys/procfs.h>
22991
bec39cab
AC
22992int
22993main ()
22994{
97bf5e38
MK
22995
22996 int dummy;;
22997 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
22998
22999 ;
23000 return 0;
23001}
23002_ACEOF
23003rm -f conftest.$ac_objext
23004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23005 (eval $ac_compile) 2>conftest.er1
23006 ac_status=$?
23007 grep -v '^ *+' conftest.er1 >conftest.err
23008 rm -f conftest.er1
23009 cat conftest.err >&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } &&
b4e70030
JB
23012 { ac_try='test -z "$ac_c_werror_flag"
23013 || test ! -s conftest.err'
bec39cab
AC
23014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23015 (eval $ac_try) 2>&5
23016 ac_status=$?
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); }; } &&
23019 { ac_try='test -s conftest.$ac_objext'
23020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23021 (eval $ac_try) 2>&5
23022 ac_status=$?
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); }; }; then
97bf5e38 23025 gdb_cv_have_procfs_piocset=yes
c906108c 23026else
bec39cab
AC
23027 echo "$as_me: failed program was:" >&5
23028sed 's/^/| /' conftest.$ac_ext >&5
23029
b4e70030 23030gdb_cv_have_procfs_piocset=no
c906108c 23031fi
bec39cab 23032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 23033fi
97bf5e38 23034
b4e70030
JB
23035 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
23036echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 23037 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
23038
23039cat >>confdefs.h <<\_ACEOF
97bf5e38 23040#define HAVE_PROCFS_PIOCSET 1
bec39cab 23041_ACEOF
97bf5e38
MK
23042
23043 fi
c906108c 23044fi
c906108c 23045
97bf5e38 23046if test ${host} = ${target} ; then
bec39cab 23047
b4e70030
JB
23048 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
23049echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
23050 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
23051 echo $ECHO_N "(cached) $ECHO_C" >&6
23052else
23053 cat >conftest.$ac_ext <<_ACEOF
23054/* confdefs.h. */
23055_ACEOF
23056cat confdefs.h >>conftest.$ac_ext
23057cat >>conftest.$ac_ext <<_ACEOF
23058/* end confdefs.h. */
97bf5e38 23059#include <link.h>
bec39cab
AC
23060int
23061main ()
23062{
97bf5e38 23063struct link_map lm; (void) lm.l_addr;
bec39cab
AC
23064 ;
23065 return 0;
23066}
23067_ACEOF
23068rm -f conftest.$ac_objext
23069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23070 (eval $ac_compile) 2>conftest.er1
23071 ac_status=$?
23072 grep -v '^ *+' conftest.er1 >conftest.err
23073 rm -f conftest.er1
23074 cat conftest.err >&5
23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); } &&
b4e70030
JB
23077 { ac_try='test -z "$ac_c_werror_flag"
23078 || test ! -s conftest.err'
bec39cab
AC
23079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23080 (eval $ac_try) 2>&5
23081 ac_status=$?
23082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083 (exit $ac_status); }; } &&
23084 { ac_try='test -s conftest.$ac_objext'
23085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23086 (eval $ac_try) 2>&5
23087 ac_status=$?
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); }; }; then
97bf5e38 23090 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 23091else
bec39cab
AC
23092 echo "$as_me: failed program was:" >&5
23093sed 's/^/| /' conftest.$ac_ext >&5
23094
b4e70030 23095gdb_cv_have_struct_link_map_with_l_members=no
c906108c 23096fi
bec39cab 23097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
23098fi
23099
b4e70030
JB
23100 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
23101echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 23102 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
23103
23104cat >>confdefs.h <<\_ACEOF
97bf5e38 23105#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 23106_ACEOF
97bf5e38
MK
23107
23108 fi
23109
bec39cab 23110
b4e70030
JB
23111 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
23112echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
23113 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
23114 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 23115else
bec39cab
AC
23116 cat >conftest.$ac_ext <<_ACEOF
23117/* confdefs.h. */
23118_ACEOF
23119cat confdefs.h >>conftest.$ac_ext
23120cat >>conftest.$ac_ext <<_ACEOF
23121/* end confdefs.h. */
97bf5e38
MK
23122#include <sys/types.h>
23123#include <link.h>
bec39cab
AC
23124int
23125main ()
23126{
97bf5e38 23127struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
23128 ;
23129 return 0;
23130}
23131_ACEOF
23132rm -f conftest.$ac_objext
23133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23134 (eval $ac_compile) 2>conftest.er1
23135 ac_status=$?
23136 grep -v '^ *+' conftest.er1 >conftest.err
23137 rm -f conftest.er1
23138 cat conftest.err >&5
23139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); } &&
b4e70030
JB
23141 { ac_try='test -z "$ac_c_werror_flag"
23142 || test ! -s conftest.err'
bec39cab
AC
23143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23144 (eval $ac_try) 2>&5
23145 ac_status=$?
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); }; } &&
23148 { ac_try='test -s conftest.$ac_objext'
23149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23150 (eval $ac_try) 2>&5
23151 ac_status=$?
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); }; }; then
97bf5e38
MK
23154 gdb_cv_have_struct_link_map_with_lm_members=yes
23155else
bec39cab
AC
23156 echo "$as_me: failed program was:" >&5
23157sed 's/^/| /' conftest.$ac_ext >&5
23158
b4e70030 23159gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 23160fi
bec39cab 23161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 23162fi
c906108c 23163
b4e70030
JB
23164 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
23165echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 23166 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
23167
23168cat >>confdefs.h <<\_ACEOF
97bf5e38 23169#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 23170_ACEOF
97bf5e38
MK
23171
23172 fi
23173
bec39cab 23174
b4e70030
JB
23175 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
23176echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
bec39cab
AC
23177 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
23178 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 23179else
bec39cab
AC
23180 cat >conftest.$ac_ext <<_ACEOF
23181/* confdefs.h. */
23182_ACEOF
23183cat confdefs.h >>conftest.$ac_ext
23184cat >>conftest.$ac_ext <<_ACEOF
23185/* end confdefs.h. */
97bf5e38
MK
23186#include <sys/types.h>
23187#ifdef HAVE_NLIST_H
23188#include <nlist.h>
23189#endif
23190#include <link.h>
bec39cab
AC
23191int
23192main ()
23193{
97bf5e38 23194struct so_map lm; (void) lm.som_addr;
bec39cab
AC
23195 ;
23196 return 0;
23197}
23198_ACEOF
23199rm -f conftest.$ac_objext
23200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23201 (eval $ac_compile) 2>conftest.er1
23202 ac_status=$?
23203 grep -v '^ *+' conftest.er1 >conftest.err
23204 rm -f conftest.er1
23205 cat conftest.err >&5
23206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); } &&
b4e70030
JB
23208 { ac_try='test -z "$ac_c_werror_flag"
23209 || test ! -s conftest.err'
bec39cab
AC
23210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23211 (eval $ac_try) 2>&5
23212 ac_status=$?
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); }; } &&
23215 { ac_try='test -s conftest.$ac_objext'
23216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23217 (eval $ac_try) 2>&5
23218 ac_status=$?
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); }; }; then
97bf5e38
MK
23221 gdb_cv_have_struct_so_map_with_som_members=yes
23222else
bec39cab
AC
23223 echo "$as_me: failed program was:" >&5
23224sed 's/^/| /' conftest.$ac_ext >&5
23225
b4e70030 23226gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 23227fi
bec39cab 23228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 23229fi
c906108c 23230
b4e70030
JB
23231 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
23232echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 23233 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
23234
23235cat >>confdefs.h <<\_ACEOF
97bf5e38 23236#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 23237_ACEOF
c906108c 23238
97bf5e38 23239 fi
c906108c 23240
bec39cab 23241
b4e70030
JB
23242 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
23243echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
bec39cab
AC
23244 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
23245 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 23246else
bec39cab
AC
23247 cat >conftest.$ac_ext <<_ACEOF
23248/* confdefs.h. */
23249_ACEOF
23250cat confdefs.h >>conftest.$ac_ext
23251cat >>conftest.$ac_ext <<_ACEOF
23252/* end confdefs.h. */
97bf5e38
MK
23253#define _SYSCALL32
23254#include <sys/link.h>
bec39cab
AC
23255int
23256main ()
23257{
97bf5e38 23258struct link_map32 l;
bec39cab
AC
23259 ;
23260 return 0;
23261}
23262_ACEOF
23263rm -f conftest.$ac_objext
23264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23265 (eval $ac_compile) 2>conftest.er1
23266 ac_status=$?
23267 grep -v '^ *+' conftest.er1 >conftest.err
23268 rm -f conftest.er1
23269 cat conftest.err >&5
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); } &&
b4e70030
JB
23272 { ac_try='test -z "$ac_c_werror_flag"
23273 || test ! -s conftest.err'
bec39cab
AC
23274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23275 (eval $ac_try) 2>&5
23276 ac_status=$?
23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); }; } &&
23279 { ac_try='test -s conftest.$ac_objext'
23280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23281 (eval $ac_try) 2>&5
23282 ac_status=$?
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); }; }; then
97bf5e38
MK
23285 gdb_cv_have_struct_link_map32=yes
23286else
bec39cab
AC
23287 echo "$as_me: failed program was:" >&5
23288sed 's/^/| /' conftest.$ac_ext >&5
23289
b4e70030 23290gdb_cv_have_struct_link_map32=no
97bf5e38 23291fi
bec39cab 23292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 23293fi
c906108c 23294
b4e70030
JB
23295 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
23296echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 23297 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
23298
23299cat >>confdefs.h <<\_ACEOF
97bf5e38 23300#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 23301_ACEOF
c906108c 23302
60ca704f
SE
23303
23304cat >>confdefs.h <<\_ACEOF
97bf5e38 23305#define _SYSCALL32 1
bec39cab 23306_ACEOF
c906108c 23307
97bf5e38
MK
23308 fi
23309fi
c906108c 23310
bc8bcb4b 23311# Check if the compiler supports the `long long' type.
c906108c 23312
b4e70030
JB
23313echo "$as_me:$LINENO: checking for long long support in compiler" >&5
23314echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
bec39cab
AC
23315if test "${gdb_cv_c_long_long+set}" = set; then
23316 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 23317else
bec39cab
AC
23318 cat >conftest.$ac_ext <<_ACEOF
23319/* confdefs.h. */
23320_ACEOF
23321cat confdefs.h >>conftest.$ac_ext
23322cat >>conftest.$ac_ext <<_ACEOF
23323/* end confdefs.h. */
bc8bcb4b 23324extern long long foo;
bec39cab
AC
23325int
23326main ()
23327{
bc8bcb4b 23328switch (foo & 2) { case 0: return 1; }
bec39cab
AC
23329 ;
23330 return 0;
23331}
23332_ACEOF
23333rm -f conftest.$ac_objext
23334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23335 (eval $ac_compile) 2>conftest.er1
23336 ac_status=$?
23337 grep -v '^ *+' conftest.er1 >conftest.err
23338 rm -f conftest.er1
23339 cat conftest.err >&5
23340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341 (exit $ac_status); } &&
b4e70030
JB
23342 { ac_try='test -z "$ac_c_werror_flag"
23343 || test ! -s conftest.err'
bec39cab
AC
23344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23345 (eval $ac_try) 2>&5
23346 ac_status=$?
23347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); }; } &&
23349 { ac_try='test -s conftest.$ac_objext'
23350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23351 (eval $ac_try) 2>&5
23352 ac_status=$?
23353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354 (exit $ac_status); }; }; then
97bf5e38
MK
23355 gdb_cv_c_long_long=yes
23356else
bec39cab
AC
23357 echo "$as_me: failed program was:" >&5
23358sed 's/^/| /' conftest.$ac_ext >&5
23359
b4e70030 23360gdb_cv_c_long_long=no
97bf5e38 23361fi
bec39cab 23362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 23363fi
b4e70030
JB
23364echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
23365echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 23366if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
23367
23368cat >>confdefs.h <<\_ACEOF
97bf5e38 23369#define CC_HAS_LONG_LONG 1
bec39cab 23370_ACEOF
97bf5e38
MK
23371
23372fi
23373
bc8bcb4b 23374# Check if the compiler and runtime support printing long longs.
97bf5e38 23375
b4e70030
JB
23376echo "$as_me:$LINENO: checking for long long support in printf" >&5
23377echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
bec39cab
AC
23378if test "${gdb_cv_printf_has_long_long+set}" = set; then
23379 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
23380else
23381 if test "$cross_compiling" = yes; then
23382 gdb_cv_printf_has_long_long=no
23383else
bec39cab
AC
23384 cat >conftest.$ac_ext <<_ACEOF
23385/* confdefs.h. */
23386_ACEOF
23387cat confdefs.h >>conftest.$ac_ext
23388cat >>conftest.$ac_ext <<_ACEOF
23389/* end confdefs.h. */
bc8bcb4b
MK
23390$ac_includes_default
23391int
23392main ()
23393{
23394char buf[32];
97bf5e38
MK
23395 long long l = 0;
23396 l = (l << 16) + 0x0123;
23397 l = (l << 16) + 0x4567;
23398 l = (l << 16) + 0x89ab;
23399 l = (l << 16) + 0xcdef;
23400 sprintf (buf, "0x%016llx", l);
23401 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
23402 ;
23403 return 0;
c906108c 23404}
bec39cab
AC
23405_ACEOF
23406rm -f conftest$ac_exeext
23407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23408 (eval $ac_link) 2>&5
23409 ac_status=$?
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23413 (eval $ac_try) 2>&5
23414 ac_status=$?
23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); }; }; then
97bf5e38
MK
23417 gdb_cv_printf_has_long_long=yes
23418else
bec39cab
AC
23419 echo "$as_me: program exited with status $ac_status" >&5
23420echo "$as_me: failed program was:" >&5
23421sed 's/^/| /' conftest.$ac_ext >&5
23422
23423( exit $ac_status )
23424gdb_cv_printf_has_long_long=no
97bf5e38 23425fi
b4e70030 23426rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 23427fi
97bf5e38 23428fi
b4e70030
JB
23429echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
23430echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 23431if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
23432
23433cat >>confdefs.h <<\_ACEOF
97bf5e38 23434#define PRINTF_HAS_LONG_LONG 1
bec39cab 23435_ACEOF
97bf5e38
MK
23436
23437fi
97bf5e38 23438
1a619819
LM
23439# Check if the compiler and runtime support printing decfloats.
23440
23441echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
23442echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
23443if test "${gdb_cv_printf_has_decfloat+set}" = set; then
23444 echo $ECHO_N "(cached) $ECHO_C" >&6
23445else
23446 if test "$cross_compiling" = yes; then
23447 gdb_cv_printf_has_decfloat=no
23448else
23449 cat >conftest.$ac_ext <<_ACEOF
23450/* confdefs.h. */
23451_ACEOF
23452cat confdefs.h >>conftest.$ac_ext
23453cat >>conftest.$ac_ext <<_ACEOF
23454/* end confdefs.h. */
23455$ac_includes_default
23456int
23457main ()
23458{
23459char buf[64];
23460 _Decimal32 d32 = 1.2345df;
23461 _Decimal64 d64 = 1.2345dd;
23462 _Decimal128 d128 = 1.2345dl;
23463 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
23464 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
23465 ;
23466 return 0;
23467}
23468_ACEOF
23469rm -f conftest$ac_exeext
23470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23471 (eval $ac_link) 2>&5
23472 ac_status=$?
23473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23476 (eval $ac_try) 2>&5
23477 ac_status=$?
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); }; }; then
23480 gdb_cv_printf_has_decfloat=yes
23481else
23482 echo "$as_me: program exited with status $ac_status" >&5
23483echo "$as_me: failed program was:" >&5
23484sed 's/^/| /' conftest.$ac_ext >&5
23485
23486( exit $ac_status )
23487gdb_cv_printf_has_decfloat=no
23488fi
23489rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23490fi
23491fi
23492echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
23493echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
23494if test $gdb_cv_printf_has_decfloat = yes; then
23495
23496cat >>confdefs.h <<\_ACEOF
23497#define PRINTF_HAS_DECFLOAT 1
23498_ACEOF
23499
23500fi
23501
bc8bcb4b
MK
23502# Check if the compiler supports the `long double' type. We can't use
23503# AC_C_LONG_DOUBLE because that one does additional checks on the
23504# constants defined in <float.h> that fail on some systems,
23505# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 23506
b4e70030
JB
23507echo "$as_me:$LINENO: checking for long double support in compiler" >&5
23508echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 23509if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 23510 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 23511else
bec39cab
AC
23512 cat >conftest.$ac_ext <<_ACEOF
23513/* confdefs.h. */
23514_ACEOF
23515cat confdefs.h >>conftest.$ac_ext
23516cat >>conftest.$ac_ext <<_ACEOF
23517/* end confdefs.h. */
97bf5e38 23518long double foo;
bec39cab
AC
23519_ACEOF
23520rm -f conftest.$ac_objext
23521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23522 (eval $ac_compile) 2>conftest.er1
23523 ac_status=$?
23524 grep -v '^ *+' conftest.er1 >conftest.err
23525 rm -f conftest.er1
23526 cat conftest.err >&5
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); } &&
b4e70030
JB
23529 { ac_try='test -z "$ac_c_werror_flag"
23530 || test ! -s conftest.err'
bec39cab
AC
23531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23532 (eval $ac_try) 2>&5
23533 ac_status=$?
23534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535 (exit $ac_status); }; } &&
23536 { ac_try='test -s conftest.$ac_objext'
23537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23538 (eval $ac_try) 2>&5
23539 ac_status=$?
23540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); }; }; then
bc8bcb4b 23542 gdb_cv_c_long_double=yes
97bf5e38 23543else
bec39cab
AC
23544 echo "$as_me: failed program was:" >&5
23545sed 's/^/| /' conftest.$ac_ext >&5
23546
b4e70030 23547gdb_cv_c_long_double=no
97bf5e38 23548fi
bec39cab 23549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 23550fi
b4e70030
JB
23551echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
23552echo "${ECHO_T}$gdb_cv_c_long_double" >&6
bc8bcb4b 23553if test $gdb_cv_c_long_double = yes; then
c906108c 23554
bc8bcb4b 23555cat >>confdefs.h <<\_ACEOF
97bf5e38 23556#define HAVE_LONG_DOUBLE 1
bec39cab 23557_ACEOF
97bf5e38
MK
23558
23559fi
23560
bc8bcb4b 23561# Check if the compiler and runtime support printing long doubles.
97bf5e38 23562
b4e70030
JB
23563echo "$as_me:$LINENO: checking for long double support in printf" >&5
23564echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
bec39cab
AC
23565if test "${gdb_cv_printf_has_long_double+set}" = set; then
23566 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
23567else
23568 if test "$cross_compiling" = yes; then
23569 gdb_cv_printf_has_long_double=no
23570else
bec39cab
AC
23571 cat >conftest.$ac_ext <<_ACEOF
23572/* confdefs.h. */
23573_ACEOF
23574cat confdefs.h >>conftest.$ac_ext
23575cat >>conftest.$ac_ext <<_ACEOF
23576/* end confdefs.h. */
bc8bcb4b
MK
23577$ac_includes_default
23578int
23579main ()
23580{
23581char buf[16];
97bf5e38
MK
23582 long double f = 3.141592653;
23583 sprintf (buf, "%Lg", f);
23584 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
23585 ;
23586 return 0;
97bf5e38 23587}
bec39cab
AC
23588_ACEOF
23589rm -f conftest$ac_exeext
23590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23591 (eval $ac_link) 2>&5
23592 ac_status=$?
23593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23596 (eval $ac_try) 2>&5
23597 ac_status=$?
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); }; }; then
97bf5e38 23600 gdb_cv_printf_has_long_double=yes
c906108c 23601else
bec39cab
AC
23602 echo "$as_me: program exited with status $ac_status" >&5
23603echo "$as_me: failed program was:" >&5
23604sed 's/^/| /' conftest.$ac_ext >&5
23605
23606( exit $ac_status )
23607gdb_cv_printf_has_long_double=no
c906108c 23608fi
b4e70030 23609rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 23610fi
c906108c 23611fi
b4e70030
JB
23612echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
23613echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 23614if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
23615
23616cat >>confdefs.h <<\_ACEOF
97bf5e38 23617#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 23618_ACEOF
97bf5e38
MK
23619
23620fi
97bf5e38 23621
bc8bcb4b 23622# Check if the compiler and runtime support scanning long doubles.
97bf5e38 23623
b4e70030
JB
23624echo "$as_me:$LINENO: checking for long double support in scanf" >&5
23625echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
bec39cab
AC
23626if test "${gdb_cv_scanf_has_long_double+set}" = set; then
23627 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
23628else
23629 if test "$cross_compiling" = yes; then
23630 gdb_cv_scanf_has_long_double=no
23631else
bec39cab
AC
23632 cat >conftest.$ac_ext <<_ACEOF
23633/* confdefs.h. */
23634_ACEOF
23635cat confdefs.h >>conftest.$ac_ext
23636cat >>conftest.$ac_ext <<_ACEOF
23637/* end confdefs.h. */
bc8bcb4b
MK
23638#include <stdio.h>
23639int
23640main ()
23641{
23642char *buf = "3.141592653";
97bf5e38
MK
23643 long double f = 0;
23644 sscanf (buf, "%Lg", &f);
23645 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
23646 ;
23647 return 0;
97bf5e38 23648}
bec39cab
AC
23649_ACEOF
23650rm -f conftest$ac_exeext
23651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23652 (eval $ac_link) 2>&5
23653 ac_status=$?
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23657 (eval $ac_try) 2>&5
23658 ac_status=$?
23659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660 (exit $ac_status); }; }; then
97bf5e38
MK
23661 gdb_cv_scanf_has_long_double=yes
23662else
bec39cab
AC
23663 echo "$as_me: program exited with status $ac_status" >&5
23664echo "$as_me: failed program was:" >&5
23665sed 's/^/| /' conftest.$ac_ext >&5
23666
23667( exit $ac_status )
23668gdb_cv_scanf_has_long_double=no
97bf5e38 23669fi
b4e70030 23670rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 23671fi
c906108c 23672fi
b4e70030
JB
23673echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
23674echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 23675if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
23676
23677cat >>confdefs.h <<\_ACEOF
97bf5e38 23678#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 23679_ACEOF
97bf5e38
MK
23680
23681fi
c906108c 23682
438013df
AO
23683case ${host_os} in
23684aix*)
b4e70030
JB
23685 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
23686echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
bec39cab
AC
23687if test "${gdb_cv_bigtoc+set}" = set; then
23688 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 23689else
bec39cab 23690
438013df
AO
23691 SAVE_LDFLAGS=$LDFLAGS
23692
23693 case $GCC in
23694 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
23695 *) gdb_cv_bigtoc=-bbigtoc ;;
23696 esac
23697
23698 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
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. */
438013df 23705
bec39cab
AC
23706int
23707main ()
23708{
438013df 23709int i;
bec39cab
AC
23710 ;
23711 return 0;
23712}
23713_ACEOF
23714rm -f conftest.$ac_objext conftest$ac_exeext
23715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23716 (eval $ac_link) 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_exeext'
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
438013df
AO
23736 :
23737else
bec39cab
AC
23738 echo "$as_me: failed program was:" >&5
23739sed 's/^/| /' conftest.$ac_ext >&5
23740
b4e70030 23741gdb_cv_bigtoc=
438013df 23742fi
bec39cab
AC
23743rm -f conftest.err conftest.$ac_objext \
23744 conftest$ac_exeext conftest.$ac_ext
ec76baa5 23745 LDFLAGS="${SAVE_LDFLAGS}"
438013df 23746
bec39cab 23747fi
b4e70030
JB
23748echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
23749echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
23750 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
23751 ;;
23752esac
23753
c906108c
SS
23754
23755
23756if test ${build} = ${host} -a ${host} = ${target} ; then
23757 case ${host_os} in
23758 hpux*)
b4e70030
JB
23759 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
23760echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
23761 if test -f /usr/include/dce/cma_config.h ; then
23762 if test "$GCC" = "yes" ; then
b4e70030
JB
23763 echo "$as_me:$LINENO: result: yes" >&5
23764echo "${ECHO_T}yes" >&6
60ca704f
SE
23765
23766cat >>confdefs.h <<\_ACEOF
c906108c 23767#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 23768_ACEOF
c906108c 23769
3483b318 23770 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
23771 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
23772 else
b4e70030
JB
23773 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
23774echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
23775 fi
23776 else
b4e70030
JB
23777 echo "$as_me:$LINENO: result: no" >&5
23778echo "${ECHO_T}no" >&6
c906108c
SS
23779 fi
23780 ;;
23781 solaris*)
d92419e5
JB
23782 # See if thread_db library is around for Solaris thread debugging.
23783 # Note that we must explicitly test for version 1 of the library
23784 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
23785 # the same API.
b4e70030
JB
23786 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
23787echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 23788 if test -f /usr/lib/libthread_db.so.1 ; then
b4e70030
JB
23789 echo "$as_me:$LINENO: result: yes" >&5
23790echo "${ECHO_T}yes" >&6
60ca704f
SE
23791
23792cat >>confdefs.h <<\_ACEOF
c906108c 23793#define HAVE_THREAD_DB_LIB 1
bec39cab 23794_ACEOF
c906108c 23795
3483b318 23796 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 23797 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab 23798
b4e70030
JB
23799echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23800echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
bec39cab
AC
23801if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23802 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 23803else
bec39cab 23804 ac_check_lib_save_LIBS=$LIBS
c906108c 23805LIBS="-ldl $LIBS"
bec39cab
AC
23806cat >conftest.$ac_ext <<_ACEOF
23807/* confdefs.h. */
23808_ACEOF
23809cat confdefs.h >>conftest.$ac_ext
23810cat >>conftest.$ac_ext <<_ACEOF
23811/* end confdefs.h. */
23812
b4e70030 23813/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
23814#ifdef __cplusplus
23815extern "C"
23816#endif
b4e70030
JB
23817/* We use char because int might match the return type of a gcc2
23818 builtin and then its argument prototype would still apply. */
bec39cab
AC
23819char dlopen ();
23820int
23821main ()
23822{
b4e70030 23823dlopen ();
bec39cab
AC
23824 ;
23825 return 0;
23826}
23827_ACEOF
23828rm -f conftest.$ac_objext conftest$ac_exeext
23829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23830 (eval $ac_link) 2>conftest.er1
23831 ac_status=$?
23832 grep -v '^ *+' conftest.er1 >conftest.err
23833 rm -f conftest.er1
23834 cat conftest.err >&5
23835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836 (exit $ac_status); } &&
b4e70030
JB
23837 { ac_try='test -z "$ac_c_werror_flag"
23838 || test ! -s conftest.err'
bec39cab
AC
23839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23840 (eval $ac_try) 2>&5
23841 ac_status=$?
23842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843 (exit $ac_status); }; } &&
23844 { ac_try='test -s conftest$ac_exeext'
23845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23846 (eval $ac_try) 2>&5
23847 ac_status=$?
23848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23849 (exit $ac_status); }; }; then
23850 ac_cv_lib_dl_dlopen=yes
23851else
23852 echo "$as_me: failed program was:" >&5
23853sed 's/^/| /' conftest.$ac_ext >&5
23854
b4e70030 23855ac_cv_lib_dl_dlopen=no
bec39cab
AC
23856fi
23857rm -f conftest.err conftest.$ac_objext \
23858 conftest$ac_exeext conftest.$ac_ext
23859LIBS=$ac_check_lib_save_LIBS
23860fi
b4e70030
JB
23861echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23862echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
bec39cab
AC
23863if test $ac_cv_lib_dl_dlopen = yes; then
23864 cat >>confdefs.h <<_ACEOF
23865#define HAVE_LIBDL 1
23866_ACEOF
c906108c
SS
23867
23868 LIBS="-ldl $LIBS"
23869
c906108c
SS
23870fi
23871
23872 if test "$GCC" = "yes" ; then
23873 # The GNU linker requires the -export-dynamic option to make
23874 # all symbols visible in the dynamic symbol table.
23875 hold_ldflags=$LDFLAGS
b4e70030
JB
23876 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
23877echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 23878 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
23879 cat >conftest.$ac_ext <<_ACEOF
23880/* confdefs.h. */
23881_ACEOF
23882cat confdefs.h >>conftest.$ac_ext
23883cat >>conftest.$ac_ext <<_ACEOF
23884/* end confdefs.h. */
c906108c 23885
bec39cab
AC
23886int
23887main ()
23888{
c906108c 23889int i;
bec39cab
AC
23890 ;
23891 return 0;
23892}
23893_ACEOF
23894rm -f conftest.$ac_objext conftest$ac_exeext
23895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23896 (eval $ac_link) 2>conftest.er1
23897 ac_status=$?
23898 grep -v '^ *+' conftest.er1 >conftest.err
23899 rm -f conftest.er1
23900 cat conftest.err >&5
23901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23902 (exit $ac_status); } &&
b4e70030
JB
23903 { ac_try='test -z "$ac_c_werror_flag"
23904 || test ! -s conftest.err'
bec39cab
AC
23905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23906 (eval $ac_try) 2>&5
23907 ac_status=$?
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); }; } &&
23910 { ac_try='test -s conftest$ac_exeext'
23911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23912 (eval $ac_try) 2>&5
23913 ac_status=$?
23914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915 (exit $ac_status); }; }; then
c906108c
SS
23916 found=yes
23917else
bec39cab
AC
23918 echo "$as_me: failed program was:" >&5
23919sed 's/^/| /' conftest.$ac_ext >&5
23920
b4e70030 23921found=no
c906108c 23922fi
bec39cab
AC
23923rm -f conftest.err conftest.$ac_objext \
23924 conftest$ac_exeext conftest.$ac_ext
c906108c 23925 LDFLAGS=$hold_ldflags
b4e70030
JB
23926 echo "$as_me:$LINENO: result: $found" >&5
23927echo "${ECHO_T}$found" >&6
c906108c
SS
23928 if test $found = yes; then
23929 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
23930 fi
23931 fi
23932 # Sun randomly tweaked the prototypes in <proc_service.h>
23933 # at one point.
b4e70030
JB
23934 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
23935echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
bec39cab
AC
23936 if test "${gdb_cv_proc_service_is_old+set}" = set; then
23937 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 23938else
bec39cab
AC
23939
23940 cat >conftest.$ac_ext <<_ACEOF
23941/* confdefs.h. */
23942_ACEOF
23943cat confdefs.h >>conftest.$ac_ext
23944cat >>conftest.$ac_ext <<_ACEOF
23945/* end confdefs.h. */
c906108c
SS
23946
23947 #include <proc_service.h>
23948 ps_err_e ps_pdwrite
23949 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 23950
bec39cab
AC
23951int
23952main ()
23953{
23954
23955 ;
23956 return 0;
23957}
23958_ACEOF
23959rm -f conftest.$ac_objext
23960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23961 (eval $ac_compile) 2>conftest.er1
23962 ac_status=$?
23963 grep -v '^ *+' conftest.er1 >conftest.err
23964 rm -f conftest.er1
23965 cat conftest.err >&5
23966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967 (exit $ac_status); } &&
b4e70030
JB
23968 { ac_try='test -z "$ac_c_werror_flag"
23969 || test ! -s conftest.err'
bec39cab
AC
23970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23971 (eval $ac_try) 2>&5
23972 ac_status=$?
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); }; } &&
23975 { ac_try='test -s conftest.$ac_objext'
23976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23977 (eval $ac_try) 2>&5
23978 ac_status=$?
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); }; }; then
c906108c
SS
23981 gdb_cv_proc_service_is_old=no
23982else
bec39cab
AC
23983 echo "$as_me: failed program was:" >&5
23984sed 's/^/| /' conftest.$ac_ext >&5
23985
b4e70030 23986gdb_cv_proc_service_is_old=yes
c906108c 23987fi
bec39cab
AC
23988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23989
c906108c
SS
23990fi
23991
b4e70030
JB
23992 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
23993echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 23994 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
23995
23996cat >>confdefs.h <<\_ACEOF
c906108c 23997#define PROC_SERVICE_IS_OLD 1
bec39cab 23998_ACEOF
c906108c
SS
23999
24000 fi
24001 else
b4e70030
JB
24002 echo "$as_me:$LINENO: result: no" >&5
24003echo "${ECHO_T}no" >&6
c906108c
SS
24004 fi
24005 ;;
d92419e5 24006 aix*)
b4e70030
JB
24007 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
24008echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
bec39cab
AC
24009 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
24010 echo $ECHO_N "(cached) $ECHO_C" >&6
24011else
24012 cat >conftest.$ac_ext <<_ACEOF
24013/* confdefs.h. */
24014_ACEOF
24015cat confdefs.h >>conftest.$ac_ext
24016cat >>conftest.$ac_ext <<_ACEOF
24017/* end confdefs.h. */
d92419e5 24018#include <sys/pthdebug.h>
bec39cab
AC
24019int
24020main ()
24021{
d92419e5
JB
24022#ifndef PTHDB_VERSION_3
24023 #error
24024 #endif
bec39cab
AC
24025 ;
24026 return 0;
24027}
24028_ACEOF
24029rm -f conftest.$ac_objext
24030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24031 (eval $ac_compile) 2>conftest.er1
24032 ac_status=$?
24033 grep -v '^ *+' conftest.er1 >conftest.err
24034 rm -f conftest.er1
24035 cat conftest.err >&5
24036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037 (exit $ac_status); } &&
b4e70030
JB
24038 { ac_try='test -z "$ac_c_werror_flag"
24039 || test ! -s conftest.err'
bec39cab
AC
24040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24041 (eval $ac_try) 2>&5
24042 ac_status=$?
24043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044 (exit $ac_status); }; } &&
24045 { ac_try='test -s conftest.$ac_objext'
24046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24047 (eval $ac_try) 2>&5
24048 ac_status=$?
24049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050 (exit $ac_status); }; }; then
d92419e5
JB
24051 gdb_cv_have_aix_thread_debug=yes
24052else
bec39cab
AC
24053 echo "$as_me: failed program was:" >&5
24054sed 's/^/| /' conftest.$ac_ext >&5
24055
b4e70030 24056gdb_cv_have_aix_thread_debug=no
d92419e5 24057fi
bec39cab 24058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
24059fi
24060
b4e70030
JB
24061 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
24062echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
24063 if test $gdb_cv_have_aix_thread_debug = yes; then
24064 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 24065 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
24066 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
24067 fi
24068 ;;
c906108c 24069 esac
bec39cab 24070
c906108c
SS
24071fi
24072
3f47be5c 24073if test "x$ac_cv_header_thread_db_h" = "xyes"; then
b4e70030
JB
24074 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
24075echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
bec39cab
AC
24076if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
24077 echo $ECHO_N "(cached) $ECHO_C" >&6
24078else
24079 cat >conftest.$ac_ext <<_ACEOF
24080/* confdefs.h. */
24081_ACEOF
24082cat confdefs.h >>conftest.$ac_ext
24083cat >>conftest.$ac_ext <<_ACEOF
24084/* end confdefs.h. */
3f47be5c 24085#include <thread_db.h>
bec39cab
AC
24086int
24087main ()
24088{
3f47be5c 24089int i = TD_NOTALLOC;
bec39cab
AC
24090 ;
24091 return 0;
24092}
24093_ACEOF
24094rm -f conftest.$ac_objext
24095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24096 (eval $ac_compile) 2>conftest.er1
24097 ac_status=$?
24098 grep -v '^ *+' conftest.er1 >conftest.err
24099 rm -f conftest.er1
24100 cat conftest.err >&5
24101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); } &&
b4e70030
JB
24103 { ac_try='test -z "$ac_c_werror_flag"
24104 || test ! -s conftest.err'
bec39cab
AC
24105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24106 (eval $ac_try) 2>&5
24107 ac_status=$?
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); }; } &&
24110 { ac_try='test -s conftest.$ac_objext'
24111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24112 (eval $ac_try) 2>&5
24113 ac_status=$?
24114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115 (exit $ac_status); }; }; then
3f47be5c
EZ
24116 gdb_cv_thread_db_h_has_td_notalloc=yes
24117else
bec39cab
AC
24118 echo "$as_me: failed program was:" >&5
24119sed 's/^/| /' conftest.$ac_ext >&5
24120
b4e70030 24121gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 24122
3f47be5c 24123fi
bec39cab 24124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 24125
bec39cab 24126fi
b4e70030
JB
24127echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
24128echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
59f80f10
DJ
24129 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
24130echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
24131if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
24132 echo $ECHO_N "(cached) $ECHO_C" >&6
24133else
24134 cat >conftest.$ac_ext <<_ACEOF
24135/* confdefs.h. */
24136_ACEOF
24137cat confdefs.h >>conftest.$ac_ext
24138cat >>conftest.$ac_ext <<_ACEOF
24139/* end confdefs.h. */
24140#include <thread_db.h>
24141int
24142main ()
24143{
24144int i = TD_VERSION;
24145 ;
24146 return 0;
24147}
24148_ACEOF
24149rm -f conftest.$ac_objext
24150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24151 (eval $ac_compile) 2>conftest.er1
24152 ac_status=$?
24153 grep -v '^ *+' conftest.er1 >conftest.err
24154 rm -f conftest.er1
24155 cat conftest.err >&5
24156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); } &&
24158 { ac_try='test -z "$ac_c_werror_flag"
24159 || test ! -s conftest.err'
24160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24161 (eval $ac_try) 2>&5
24162 ac_status=$?
24163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164 (exit $ac_status); }; } &&
24165 { ac_try='test -s conftest.$ac_objext'
24166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24167 (eval $ac_try) 2>&5
24168 ac_status=$?
24169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170 (exit $ac_status); }; }; then
24171 gdb_cv_thread_db_h_has_td_version=yes
24172else
24173 echo "$as_me: failed program was:" >&5
24174sed 's/^/| /' conftest.$ac_ext >&5
24175
24176gdb_cv_thread_db_h_has_td_version=no
24177
24178fi
24179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24180
24181fi
24182echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
24183echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
24184 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
24185echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
24186if test "${gdb_cv_thread_db_h_has_td_notls+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 <thread_db.h>
24196int
24197main ()
24198{
24199int i = TD_NOTLS;
24200 ;
24201 return 0;
24202}
24203_ACEOF
24204rm -f conftest.$ac_objext
24205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24206 (eval $ac_compile) 2>conftest.er1
24207 ac_status=$?
24208 grep -v '^ *+' conftest.er1 >conftest.err
24209 rm -f conftest.er1
24210 cat conftest.err >&5
24211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212 (exit $ac_status); } &&
24213 { ac_try='test -z "$ac_c_werror_flag"
24214 || test ! -s conftest.err'
24215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24216 (eval $ac_try) 2>&5
24217 ac_status=$?
24218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219 (exit $ac_status); }; } &&
24220 { ac_try='test -s conftest.$ac_objext'
24221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24222 (eval $ac_try) 2>&5
24223 ac_status=$?
24224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225 (exit $ac_status); }; }; then
24226 gdb_cv_thread_db_h_has_td_notls=yes
24227else
24228 echo "$as_me: failed program was:" >&5
24229sed 's/^/| /' conftest.$ac_ext >&5
24230
24231gdb_cv_thread_db_h_has_td_notls=no
24232
24233fi
24234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24235
24236fi
24237echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
24238echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
3f47be5c
EZ
24239fi
24240if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
24241
24242cat >>confdefs.h <<\_ACEOF
3f47be5c 24243#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 24244_ACEOF
3f47be5c 24245
59f80f10
DJ
24246fi
24247if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
24248
24249cat >>confdefs.h <<\_ACEOF
24250#define THREAD_DB_HAS_TD_VERSION 1
24251_ACEOF
24252
24253fi
24254if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
24255
24256cat >>confdefs.h <<\_ACEOF
24257#define THREAD_DB_HAS_TD_NOTLS 1
24258_ACEOF
24259
3f47be5c
EZ
24260fi
24261
b757528f 24262if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
b4e70030
JB
24263 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
24264echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
bec39cab
AC
24265if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
24266 echo $ECHO_N "(cached) $ECHO_C" >&6
24267else
24268 cat >conftest.$ac_ext <<_ACEOF
24269/* confdefs.h. */
24270_ACEOF
24271cat confdefs.h >>conftest.$ac_ext
24272cat >>conftest.$ac_ext <<_ACEOF
24273/* end confdefs.h. */
b757528f 24274#include <sys/syscall.h>
bec39cab
AC
24275int
24276main ()
24277{
b757528f 24278int i = __NR_tkill;
bec39cab
AC
24279 ;
24280 return 0;
24281}
24282_ACEOF
24283rm -f conftest.$ac_objext
24284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24285 (eval $ac_compile) 2>conftest.er1
24286 ac_status=$?
24287 grep -v '^ *+' conftest.er1 >conftest.err
24288 rm -f conftest.er1
24289 cat conftest.err >&5
24290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); } &&
b4e70030
JB
24292 { ac_try='test -z "$ac_c_werror_flag"
24293 || test ! -s conftest.err'
bec39cab
AC
24294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24295 (eval $ac_try) 2>&5
24296 ac_status=$?
24297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); }; } &&
24299 { ac_try='test -s conftest.$ac_objext'
24300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24301 (eval $ac_try) 2>&5
24302 ac_status=$?
24303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); }; }; then
b757528f
JJ
24305 gdb_cv_sys_syscall_h_has_tkill=yes
24306else
bec39cab
AC
24307 echo "$as_me: failed program was:" >&5
24308sed 's/^/| /' conftest.$ac_ext >&5
24309
b4e70030 24310gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 24311
b757528f 24312fi
bec39cab 24313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 24314
bec39cab 24315fi
b4e70030
JB
24316echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
24317echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
24318fi
24319if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
24320
24321cat >>confdefs.h <<\_ACEOF
b757528f 24322#define HAVE_TKILL_SYSCALL 1
bec39cab 24323_ACEOF
b757528f
JJ
24324
24325fi
24326
10568435
JK
24327echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
24328echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
24329if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
24330 echo $ECHO_N "(cached) $ECHO_C" >&6
24331else
24332 cat >conftest.$ac_ext <<_ACEOF
24333/* confdefs.h. */
24334_ACEOF
24335cat confdefs.h >>conftest.$ac_ext
24336cat >>conftest.$ac_ext <<_ACEOF
24337/* end confdefs.h. */
24338#include <sys/personality.h>
24339
24340int
24341main ()
24342{
24343#ifndef ADDR_NO_RANDOMIZE
24344 char *p = (char *) ADDR_NO_RANDOMIZE;
24345#endif
24346
24347 ;
24348 return 0;
24349}
24350_ACEOF
24351rm -f conftest.$ac_objext
24352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24353 (eval $ac_compile) 2>conftest.er1
24354 ac_status=$?
24355 grep -v '^ *+' conftest.er1 >conftest.err
24356 rm -f conftest.er1
24357 cat conftest.err >&5
24358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359 (exit $ac_status); } &&
24360 { ac_try='test -z "$ac_c_werror_flag"
24361 || test ! -s conftest.err'
24362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24363 (eval $ac_try) 2>&5
24364 ac_status=$?
24365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24366 (exit $ac_status); }; } &&
24367 { ac_try='test -s conftest.$ac_objext'
24368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24369 (eval $ac_try) 2>&5
24370 ac_status=$?
24371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372 (exit $ac_status); }; }; then
24373 ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
24374else
24375 echo "$as_me: failed program was:" >&5
24376sed 's/^/| /' conftest.$ac_ext >&5
24377
24378ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
24379fi
24380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24381fi
24382echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
24383echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
24384if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
24385
24386cat >>confdefs.h <<_ACEOF
24387#define HAVE_DECL_ADDR_NO_RANDOMIZE 1
24388_ACEOF
24389
24390
24391else
24392 cat >>confdefs.h <<_ACEOF
24393#define HAVE_DECL_ADDR_NO_RANDOMIZE 0
24394_ACEOF
24395
24396
24397fi
24398
24399
24400
24401if test "$cross_compiling" = yes; then
24402 cat >conftest.$ac_ext <<_ACEOF
24403/* confdefs.h. */
24404_ACEOF
24405cat confdefs.h >>conftest.$ac_ext
24406cat >>conftest.$ac_ext <<_ACEOF
24407/* end confdefs.h. */
24408#include <sys/personality.h>
24409int
24410main ()
24411{
24412
24413# if !HAVE_DECL_ADDR_NO_RANDOMIZE
24414# define ADDR_NO_RANDOMIZE 0x0040000
24415# endif
24416 /* Test the flag could be set and stays set. */
24417 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
24418 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
24419 return 1
24420 ;
24421 return 0;
24422}
24423_ACEOF
24424rm -f conftest.$ac_objext conftest$ac_exeext
24425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24426 (eval $ac_link) 2>conftest.er1
24427 ac_status=$?
24428 grep -v '^ *+' conftest.er1 >conftest.err
24429 rm -f conftest.er1
24430 cat conftest.err >&5
24431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432 (exit $ac_status); } &&
24433 { ac_try='test -z "$ac_c_werror_flag"
24434 || test ! -s conftest.err'
24435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24436 (eval $ac_try) 2>&5
24437 ac_status=$?
24438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439 (exit $ac_status); }; } &&
24440 { ac_try='test -s conftest$ac_exeext'
24441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24442 (eval $ac_try) 2>&5
24443 ac_status=$?
24444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445 (exit $ac_status); }; }; then
24446 have_personality=true
24447else
24448 echo "$as_me: failed program was:" >&5
24449sed 's/^/| /' conftest.$ac_ext >&5
24450
24451have_personality=false
24452fi
24453rm -f conftest.err conftest.$ac_objext \
24454 conftest$ac_exeext conftest.$ac_ext
24455else
24456 cat >conftest.$ac_ext <<_ACEOF
24457/* confdefs.h. */
24458_ACEOF
24459cat confdefs.h >>conftest.$ac_ext
24460cat >>conftest.$ac_ext <<_ACEOF
24461/* end confdefs.h. */
24462#include <sys/personality.h>
24463int
24464main ()
24465{
24466
24467# if !HAVE_DECL_ADDR_NO_RANDOMIZE
24468# define ADDR_NO_RANDOMIZE 0x0040000
24469# endif
24470 /* Test the flag could be set and stays set. */
24471 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
24472 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
24473 return 1
24474 ;
24475 return 0;
24476}
24477_ACEOF
24478rm -f conftest$ac_exeext
24479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24480 (eval $ac_link) 2>&5
24481 ac_status=$?
24482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24485 (eval $ac_try) 2>&5
24486 ac_status=$?
24487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488 (exit $ac_status); }; }; then
24489 have_personality=true
24490else
24491 echo "$as_me: program exited with status $ac_status" >&5
24492echo "$as_me: failed program was:" >&5
24493sed 's/^/| /' conftest.$ac_ext >&5
24494
24495( exit $ac_status )
24496have_personality=false
24497fi
24498rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24499fi
24500if $have_personality
24501then
24502
24503cat >>confdefs.h <<\_ACEOF
24504#define HAVE_PERSONALITY 1
24505_ACEOF
24506
24507fi
24508
fb40c209 24509
bec39cab 24510
b4e70030 24511# Check whether --with-sysroot or --without-sysroot was given.
030292b7 24512if test "${with_sysroot+set}" = set; then
b4e70030
JB
24513 withval="$with_sysroot"
24514
030292b7 24515 case ${with_sysroot} in
715d1656 24516 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
24517 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
24518 esac
24519
24520 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
24521
07abfebf
RS
24522 if test "x$prefix" = xNONE; then
24523 test_prefix=/usr/local
24524 else
24525 test_prefix=$prefix
24526 fi
aa28a74e 24527 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
07abfebf 24528 test_exec_prefix=$test_prefix
030292b7 24529 else
07abfebf 24530 test_exec_prefix=$exec_prefix
030292b7
DJ
24531 fi
24532 case ${TARGET_SYSTEM_ROOT} in
715d1656 24533 "${test_prefix}"|"${test_prefix}/"*|\
07abfebf
RS
24534 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
24535 '${prefix}'|'${prefix}/'*|\
715d1656 24536 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
24537 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
24538 TARGET_SYSTEM_ROOT_DEFINE="$t"
24539 ;;
24540 esac
24541
24542else
bec39cab 24543
030292b7
DJ
24544 TARGET_SYSTEM_ROOT=
24545 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
24546
b4e70030 24547fi;
030292b7
DJ
24548
24549
24550
b4e70030 24551# Check whether --enable-werror or --disable-werror was given.
094a342e 24552if test "${enable_werror+set}" = set; then
b4e70030
JB
24553 enableval="$enable_werror"
24554 case "${enableval}" in
094a342e
MK
24555 yes | y) ERROR_ON_WARNING="yes" ;;
24556 no | n) ERROR_ON_WARNING="no" ;;
24557 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
24558echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
24559 { (exit 1); exit 1; }; } ;;
24560 esac
b4e70030 24561fi;
094a342e
MK
24562
24563# Enable -Werror by default when using gcc
24564if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
24565 ERROR_ON_WARNING=yes
24566fi
24567
24568WERROR_CFLAGS=""
24569if test "${ERROR_ON_WARNING}" = yes ; then
24570 WERROR_CFLAGS="-Werror"
24571fi
24572
aa79a185
DJ
24573# The entries after -Wno-pointer-sign are disabled warnings which may
24574# be enabled in the future, which can not currently be used to build
24575# GDB.
24576# NOTE: If you change this list, remember to update
3b851bce 24577# gdb/doc/gdbint.texinfo.
aa79a185
DJ
24578build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
24579-Wformat-nonliteral -Wno-pointer-sign \
58b38ee2 24580-Wno-unused -Wno-switch -Wno-char-subscripts"
a3b362c4 24581
3526781e
DJ
24582# Enable -Wno-format by default when using gcc on mingw since many
24583# GCC versions complain about %I64.
24584case "${host}" in
24585 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
24586esac
24587
b4e70030 24588# Check whether --enable-build-warnings or --disable-build-warnings was given.
c906108c 24589if test "${enable_build_warnings+set}" = set; then
b4e70030
JB
24590 enableval="$enable_build_warnings"
24591 case "${enableval}" in
c906108c
SS
24592 yes) ;;
24593 no) build_warnings="-w";;
24594 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24595 build_warnings="${build_warnings} ${t}";;
24596 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24597 build_warnings="${t} ${build_warnings}";;
24598 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
24599esac
d4f3574e 24600if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 24601 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 24602fi
b4e70030 24603fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce 24604if test "${enable_gdb_build_warnings+set}" = set; then
b4e70030
JB
24605 enableval="$enable_gdb_build_warnings"
24606 case "${enableval}" in
3b851bce
AC
24607 yes) ;;
24608 no) build_warnings="-w";;
24609 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24610 build_warnings="${build_warnings} ${t}";;
24611 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24612 build_warnings="${t} ${build_warnings}";;
24613 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
24614esac
24615if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
24616 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
24617fi
b4e70030 24618fi; WARN_CFLAGS=""
c906108c
SS
24619if test "x${build_warnings}" != x -a "x$GCC" = xyes
24620then
b4e70030
JB
24621 echo "$as_me:$LINENO: checking compiler warning flags" >&5
24622echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
24623 # Separate out the -Werror flag as some files just cannot be
24624 # compiled with it enabled.
24625 for w in ${build_warnings}; do
24626 case $w in
24627 -Werr*) WERROR_CFLAGS=-Werror ;;
24628 *) # Check that GCC accepts it
4536bbc6
AC
24629 saved_CFLAGS="$CFLAGS"
24630 CFLAGS="$CFLAGS $w"
bec39cab
AC
24631 cat >conftest.$ac_ext <<_ACEOF
24632/* confdefs.h. */
24633_ACEOF
24634cat confdefs.h >>conftest.$ac_ext
24635cat >>conftest.$ac_ext <<_ACEOF
24636/* end confdefs.h. */
4536bbc6 24637
bec39cab
AC
24638int
24639main ()
24640{
4536bbc6 24641
bec39cab
AC
24642 ;
24643 return 0;
24644}
24645_ACEOF
24646rm -f conftest.$ac_objext
24647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24648 (eval $ac_compile) 2>conftest.er1
24649 ac_status=$?
24650 grep -v '^ *+' conftest.er1 >conftest.err
24651 rm -f conftest.er1
24652 cat conftest.err >&5
24653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654 (exit $ac_status); } &&
b4e70030
JB
24655 { ac_try='test -z "$ac_c_werror_flag"
24656 || test ! -s conftest.err'
bec39cab
AC
24657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24658 (eval $ac_try) 2>&5
24659 ac_status=$?
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); }; } &&
24662 { ac_try='test -s conftest.$ac_objext'
24663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24664 (eval $ac_try) 2>&5
24665 ac_status=$?
24666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667 (exit $ac_status); }; }; then
4536bbc6
AC
24668 WARN_CFLAGS="${WARN_CFLAGS} $w"
24669else
bec39cab
AC
24670 echo "$as_me: failed program was:" >&5
24671sed 's/^/| /' conftest.$ac_ext >&5
24672
4536bbc6 24673fi
bec39cab 24674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 24675 CFLAGS="$saved_CFLAGS"
746a987d
AC
24676 esac
24677 done
aa79a185
DJ
24678 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
24679echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
c906108c
SS
24680fi
24681
24682
104c1213 24683
7a292a7a 24684# In the Cygwin environment, we need some additional flags.
b4e70030
JB
24685echo "$as_me:$LINENO: checking for cygwin" >&5
24686echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
bec39cab
AC
24687if test "${gdb_cv_os_cygwin+set}" = set; then
24688 echo $ECHO_N "(cached) $ECHO_C" >&6
24689else
24690 cat >conftest.$ac_ext <<_ACEOF
24691/* confdefs.h. */
24692_ACEOF
24693cat confdefs.h >>conftest.$ac_ext
24694cat >>conftest.$ac_ext <<_ACEOF
24695/* end confdefs.h. */
7a292a7a
SS
24696
24697#if defined (__CYGWIN__) || defined (__CYGWIN32__)
24698lose
24699#endif
bec39cab 24700_ACEOF
7a292a7a 24701if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 24702 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
24703 gdb_cv_os_cygwin=yes
24704else
7a292a7a
SS
24705 gdb_cv_os_cygwin=no
24706fi
24707rm -f conftest*
24708
24709fi
b4e70030
JB
24710echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
24711echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 24712
aff38e61 24713
3eb25fda 24714SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 24715case ${host} in
95cbc983
AC
24716 *go32* ) SER_HARDWIRE=ser-go32.o ;;
24717 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 24718 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
24719esac
24720
24721
cd0fc7c3
SS
24722# libreadline needs libuser32.a in a cygwin environment
24723WIN32LIBS=
24724if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
24725 WIN32LIBS="-luser32"
24726 case "${target}" in
24727 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
24728 ;;
24729 esac
cd0fc7c3 24730fi
c906108c 24731
b4505029
MM
24732# The ser-tcp.c module requires sockets.
24733case ${host} in
24734 *mingw32*)
24735
24736cat >>confdefs.h <<\_ACEOF
24737#define USE_WIN32API 1
24738_ACEOF
24739
24740 WIN32LIBS="$WIN32LIBS -lws2_32"
24741 ;;
24742esac
24743
7a292a7a 24744
31d99776
DJ
24745# Add ELF support to GDB, but only if BFD includes ELF support.
24746OLD_CFLAGS=$CFLAGS
24747OLD_LDFLAGS=$LDFLAGS
24748OLD_LIBS=$LIBS
cab58a69 24749CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
31d99776 24750LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
7b3200f9 24751intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
0f72fb1c 24752LIBS="-lbfd -liberty $intl $LIBS"
31d99776
DJ
24753echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
24754echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
24755if test "${gdb_cv_var_elf+set}" = set; then
24756 echo $ECHO_N "(cached) $ECHO_C" >&6
24757else
24758 cat >conftest.$ac_ext <<_ACEOF
24759/* confdefs.h. */
24760_ACEOF
24761cat confdefs.h >>conftest.$ac_ext
24762cat >>conftest.$ac_ext <<_ACEOF
24763/* end confdefs.h. */
24764#include <stdlib.h>
24765#include "bfd.h"
24766#include "elf-bfd.h"
24767
24768int
24769main ()
24770{
24771bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
24772 ;
24773 return 0;
24774}
24775_ACEOF
24776rm -f conftest.$ac_objext conftest$ac_exeext
24777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24778 (eval $ac_link) 2>conftest.er1
24779 ac_status=$?
24780 grep -v '^ *+' conftest.er1 >conftest.err
24781 rm -f conftest.er1
24782 cat conftest.err >&5
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); } &&
24785 { ac_try='test -z "$ac_c_werror_flag"
24786 || test ! -s conftest.err'
24787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24788 (eval $ac_try) 2>&5
24789 ac_status=$?
24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); }; } &&
24792 { ac_try='test -s conftest$ac_exeext'
24793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24794 (eval $ac_try) 2>&5
24795 ac_status=$?
24796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797 (exit $ac_status); }; }; then
24798 gdb_cv_var_elf=yes
24799else
24800 echo "$as_me: failed program was:" >&5
24801sed 's/^/| /' conftest.$ac_ext >&5
24802
24803gdb_cv_var_elf=no
24804fi
24805rm -f conftest.err conftest.$ac_objext \
24806 conftest$ac_exeext conftest.$ac_ext
24807fi
24808echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
24809echo "${ECHO_T}$gdb_cv_var_elf" >&6
24810if test $gdb_cv_var_elf = yes; then
24811 CONFIG_OBS="$CONFIG_OBS elfread.o"
24812
24813cat >>confdefs.h <<\_ACEOF
24814#define HAVE_ELF 1
24815_ACEOF
24816
24817fi
24818CFLAGS=$OLD_CFLAGS
24819LDFLAGS=$OLD_LDFLAGS
24820LIBS=$OLD_LIBS
24821
121ce6e5
DJ
24822# Add any host-specific objects to GDB.
24823CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
24824
3fc11d3e
JM
24825LIBGUI="../libgui/src/libgui.a"
24826GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
24827
24828
7a292a7a 24829
3fc11d3e
JM
24830WIN32LDAPP=
24831
24832
24833
d91670b9 24834case "${host}" in
686a5eed 24835*-*-cygwin* | *-*-mingw* )
d91670b9
CV
24836 configdir="win"
24837 ;;
24838*)
24839 configdir="unix"
24840 ;;
24841esac
3fc11d3e
JM
24842
24843GDBTKLIBS=
24844if test "${enable_gdbtk}" = "yes"; then
24845
d1c3b63a
KS
24846 # Gdbtk must have an absolute path to srcdir in order to run
24847 # properly when not installed.
24848 here=`pwd`
24849 cd ${srcdir}
24850 GDBTK_SRC_DIR=`pwd`
24851 cd $here
24852
bec39cab 24853
5062cc19
KS
24854 #
24855 # Ok, lets find the tcl configuration
24856 # First, look for one uninstalled.
24857 # the alternative search directory is invoked by --with-tcl
24858 #
3fc11d3e 24859
5062cc19
KS
24860 if test x"${no_tcl}" = x ; then
24861 # we reset no_tcl in case something fails here
24862 no_tcl=true
bec39cab 24863
5062cc19
KS
24864# Check whether --with-tcl or --without-tcl was given.
24865if test "${with_tcl+set}" = set; then
24866 withval="$with_tcl"
b4e70030
JB
24867 with_tclconfig=${withval}
24868fi;
5062cc19 24869 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
b4e70030 24870echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
5062cc19 24871 if test "${ac_cv_c_tclconfig+set}" = set; then
bec39cab 24872 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 24873else
bec39cab 24874
3fc11d3e 24875
5062cc19
KS
24876 # First check to see if --with-tcl was specified.
24877 case "${host}" in
24878 *-*-cygwin*) platDir="win" ;;
24879 *) platDir="unix" ;;
24880 esac
24881 if test x"${with_tclconfig}" != x ; then
24882 if test -f "${with_tclconfig}/tclConfig.sh" ; then
24883 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
24884 else
24885 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
bec39cab
AC
24886echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
24887 { (exit 1); exit 1; }; }
5062cc19
KS
24888 fi
24889 fi
24890
24891 # then check for a private Tcl installation
24892 if test x"${ac_cv_c_tclconfig}" = x ; then
24893 for i in \
24894 ../tcl \
24895 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24896 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
24897 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
24898 ../../tcl \
24899 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24900 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
24901 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
24902 ../../../tcl \
24903 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24904 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
24905 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
24906 if test -f "$i/$platDir/tclConfig.sh" ; then
24907 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
24908 break
24909 fi
24910 done
24911 fi
24912
24913 # on Darwin, check in Framework installation locations
24914 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
24915 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
24916 `ls -d /Library/Frameworks 2>/dev/null` \
24917 `ls -d /Network/Library/Frameworks 2>/dev/null` \
24918 `ls -d /System/Library/Frameworks 2>/dev/null` \
24919 ; do
24920 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
24921 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
24922 break
24923 fi
24924 done
24925 fi
24926
24927 # check in a few common install locations
24928 if test x"${ac_cv_c_tclconfig}" = x ; then
24929 for i in `ls -d ${libdir} 2>/dev/null` \
24930 `ls -d ${exec_prefix}/lib 2>/dev/null` \
24931 `ls -d ${prefix}/lib 2>/dev/null` \
24932 `ls -d /usr/local/lib 2>/dev/null` \
24933 `ls -d /usr/contrib/lib 2>/dev/null` \
24934 `ls -d /usr/lib 2>/dev/null` \
24935 ; do
24936 if test -f "$i/tclConfig.sh" ; then
24937 ac_cv_c_tclconfig=`(cd $i; pwd)`
24938 break
24939 fi
24940 done
24941 fi
3fc11d3e 24942
5062cc19
KS
24943 # check in a few other private locations
24944 if test x"${ac_cv_c_tclconfig}" = x ; then
24945 for i in \
24946 ${srcdir}/../tcl \
24947 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24948 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
24949 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
24950 if test -f "$i/$platDir/tclConfig.sh" ; then
24951 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
24952 break
24953 fi
24954 done
24955 fi
bec39cab 24956
3fc11d3e
JM
24957fi
24958
5062cc19
KS
24959
24960 if test x"${ac_cv_c_tclconfig}" = x ; then
24961 TCL_BIN_DIR="# no Tcl configs found"
24962 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
bec39cab 24963echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
5062cc19
KS
24964 exit 0
24965 else
24966 no_tcl=
24967 TCL_BIN_DIR=${ac_cv_c_tclconfig}
24968 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
24969echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
24970 fi
24971 fi
3fc11d3e
JM
24972
24973 if test -z "${no_tcl}"; then
bec39cab 24974
5062cc19
KS
24975 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
24976echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
bec39cab 24977
5062cc19
KS
24978 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
24979 echo "$as_me:$LINENO: result: loading" >&5
24980echo "${ECHO_T}loading" >&6
24981 . ${TCL_BIN_DIR}/tclConfig.sh
24982 else
24983 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
24984echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
24985 fi
bec39cab 24986
5062cc19
KS
24987 # eval is required to do the TCL_DBGX substitution
24988 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
24989 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
24990
24991 # If the TCL_BIN_DIR is the build directory (not the install directory),
24992 # then set the common variable name to the value of the build variables.
24993 # For example, the variable TCL_LIB_SPEC will be set to the value
24994 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
24995 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
24996 # installed and uninstalled version of Tcl.
24997 if test -f ${TCL_BIN_DIR}/Makefile ; then
24998 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
24999 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
25000 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
25001 elif test "`uname -s`" = "Darwin"; then
25002 # If Tcl was built as a framework, attempt to use the libraries
25003 # from the framework at the given location so that linking works
25004 # against Tcl.framework installed in an arbitary location.
25005 case ${TCL_DEFS} in
25006 *TCL_FRAMEWORK*)
25007 if test -f ${TCL_BIN_DIR}/${TCL_LIB_FILE}; then
25008 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
25009 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
25010 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
25011 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
25012 break
25013 fi
25014 done
25015 fi
25016 if test -f ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}; then
25017 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
25018 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
25019 fi
25020 ;;
25021 esac
25022 fi
bec39cab 25023
5062cc19
KS
25024 # eval is required to do the TCL_DBGX substitution
25025 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
25026 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
25027 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
25028 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
bec39cab
AC
25029
25030
25031
25032
25033
25034
25035
25036
25037
25038
25039
25040
25041
25042
3fc11d3e 25043
5062cc19
KS
25044 # Check for in-tree tcl
25045 here=`pwd`
25046 cd ${srcdir}/..
25047 topdir=`pwd`
25048 cd ${here}
bec39cab 25049
5062cc19
KS
25050 intree="no"
25051 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
25052 intree="yes"
25053 fi
bec39cab 25054
5062cc19
KS
25055 # Find Tcl private headers
25056 if test x"${intree}" = xno; then
3fc11d3e 25057
5062cc19
KS
25058 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
25059echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
25060 private_dir=""
25061 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
25062 if test -f ${dir}/tclInt.h ; then
25063 private_dir=${dir}
3fc11d3e
JM
25064 fi
25065
5062cc19
KS
25066 if test x"${private_dir}" = x; then
25067 { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
25068echo "$as_me: error: could not find private Tcl headers" >&2;}
25069 { (exit 1); exit 1; }; }
3fc11d3e 25070 else
5062cc19
KS
25071 TCL_PRIVATE_INCLUDE="-I${private_dir}"
25072 echo "$as_me:$LINENO: result: ${private_dir}" >&5
25073echo "${ECHO_T}${private_dir}" >&6
3fc11d3e 25074 fi
3fc11d3e 25075
5062cc19
KS
25076 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
25077 TCL_LIBRARY="${TCL_LIB_SPEC}"
25078 TCL_DEPS=""
25079 else
25080 # If building tcl in the same src tree, private headers
25081 # are not needed, but we need to be sure to use the right
25082 # headers library
25083 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
25084 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
25085 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
25086 fi
3fc11d3e 25087
dd2504ab 25088
dd2504ab 25089
dd2504ab 25090
3fc11d3e
JM
25091 # If $no_tk is nonempty, then we can't do Tk, and there is no
25092 # point to doing Tcl.
25093 if test -z "${no_tk}"; then
bec39cab 25094
5062cc19
KS
25095 #
25096 # Ok, lets find the tk configuration
25097 # First, look for one uninstalled.
25098 # the alternative search directory is invoked by --with-tk
25099 #
3fc11d3e 25100
5062cc19
KS
25101 if test x"${no_tk}" = x ; then
25102 # we reset no_tk in case something fails here
25103 no_tk=true
bec39cab 25104
5062cc19
KS
25105# Check whether --with-tk or --without-tk was given.
25106if test "${with_tk+set}" = set; then
25107 withval="$with_tk"
25108 with_tkconfig=${withval}
b4e70030 25109fi;
5062cc19
KS
25110 echo "$as_me:$LINENO: checking for Tk configuration" >&5
25111echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
25112 if test "${ac_cv_c_tkconfig+set}" = set; then
bec39cab
AC
25113 echo $ECHO_N "(cached) $ECHO_C" >&6
25114else
3fc11d3e
JM
25115
25116
5062cc19
KS
25117 # First check to see if --with-tkconfig was specified.
25118 if test x"${with_tkconfig}" != x ; then
25119 if test -f "${with_tkconfig}/tkConfig.sh" ; then
25120 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
25121 else
25122 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
25123echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
bec39cab 25124 { (exit 1); exit 1; }; }
5062cc19
KS
25125 fi
25126 fi
3fc11d3e 25127
5062cc19
KS
25128 # then check for a private Tk library
25129 case "${host}" in
25130 *-*-cygwin*) platDir="win" ;;
25131 *) platDir="unix" ;;
25132 esac
25133 if test x"${ac_cv_c_tkconfig}" = x ; then
25134 for i in \
25135 ../tk \
25136 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
25137 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
25138 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
25139 ../../tk \
25140 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
25141 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
25142 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
25143 ../../../tk \
25144 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
25145 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
25146 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
25147 if test -f "$i/$platDir/tkConfig.sh" ; then
25148 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
25149 break
25150 fi
25151 done
25152 fi
25153
25154 # on Darwin, check in Framework installation locations
25155 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
25156 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
25157 `ls -d /Library/Frameworks 2>/dev/null` \
25158 `ls -d /Network/Library/Frameworks 2>/dev/null` \
25159 `ls -d /System/Library/Frameworks 2>/dev/null` \
25160 ; do
25161 if test -f "$i/Tk.framework/tkConfig.sh" ; then
25162 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
25163 break
25164 fi
25165 done
25166 fi
25167
25168 # check in a few common install locations
25169 if test x"${ac_cv_c_tkconfig}" = x ; then
25170 for i in `ls -d ${libdir} 2>/dev/null` \
25171 `ls -d ${exec_prefix}/lib 2>/dev/null` \
25172 `ls -d ${prefix}/lib 2>/dev/null` \
25173 `ls -d /usr/local/lib 2>/dev/null` \
25174 `ls -d /usr/contrib/lib 2>/dev/null` \
25175 `ls -d /usr/lib 2>/dev/null` \
25176 ; do
25177 if test -f "$i/tkConfig.sh" ; then
25178 ac_cv_c_tkconfig=`(cd $i; pwd)`
25179 break
25180 fi
25181 done
25182 fi
25183 # check in a few other private locations
25184 if test x"${ac_cv_c_tkconfig}" = x ; then
25185 for i in \
25186 ${srcdir}/../tk \
25187 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
25188 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
25189 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
25190 if test -f "$i/$platDir/tkConfig.sh" ; then
25191 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
25192 break
25193 fi
25194 done
25195 fi
3fc11d3e 25196
3fc11d3e
JM
25197fi
25198
25199
5062cc19
KS
25200 if test x"${ac_cv_c_tkconfig}" = x ; then
25201 TK_BIN_DIR="# no Tk configs found"
25202 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
25203echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
25204 exit 0
25205 else
25206 no_tk=
25207 TK_BIN_DIR=${ac_cv_c_tkconfig}
25208 echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
25209echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
25210 fi
3fc11d3e 25211 fi
dd2504ab 25212
dd2504ab 25213
5062cc19
KS
25214 echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
25215echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
dd2504ab 25216
5062cc19
KS
25217 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
25218 echo "$as_me:$LINENO: result: loading" >&5
25219echo "${ECHO_T}loading" >&6
25220 . ${TK_BIN_DIR}/tkConfig.sh
3fc11d3e 25221 else
5062cc19
KS
25222 echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
25223echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
3fc11d3e 25224 fi
bec39cab 25225
5062cc19
KS
25226 # eval is required to do the TK_DBGX substitution
25227 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
25228 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
25229
25230 # If the TK_BIN_DIR is the build directory (not the install directory),
25231 # then set the common variable name to the value of the build variables.
25232 # For example, the variable TK_LIB_SPEC will be set to the value
25233 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
25234 # instead of TK_BUILD_LIB_SPEC since it will work with both an
25235 # installed and uninstalled version of Tcl.
25236 if test -f ${TK_BIN_DIR}/Makefile ; then
25237 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
25238 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
25239 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
25240 elif test "`uname -s`" = "Darwin"; then
25241 # If Tk was built as a framework, attempt to use the libraries
25242 # from the framework at the given location so that linking works
25243 # against Tk.framework installed in an arbitary location.
25244 case ${TK_DEFS} in
25245 *TK_FRAMEWORK*)
25246 if test -f ${TK_BIN_DIR}/${TK_LIB_FILE}; then
25247 for i in "`cd ${TK_BIN_DIR}; pwd`" \
25248 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
25249 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
25250 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
25251 break
25252 fi
25253 done
25254 fi
25255 if test -f ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}; then
25256 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
25257 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
25258 fi
25259 ;;
25260 esac
3fc11d3e
JM
25261 fi
25262
5062cc19
KS
25263 # eval is required to do the TK_DBGX substitution
25264 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
25265 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
25266 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
25267 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
3fc11d3e 25268
3fc11d3e
JM
25269
25270
bec39cab
AC
25271
25272
25273
25274
25275
25276
25277
3fc11d3e 25278
3fc11d3e 25279
bec39cab 25280
bec39cab 25281
5062cc19
KS
25282 # Check for in-tree Tk
25283 intree="no"
25284 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
25285 intree="yes"
25286 fi
3fc11d3e 25287
5062cc19
KS
25288 # Find Tk private headers
25289 if test x"${intree}" = xno; then
3fc11d3e 25290
5062cc19
KS
25291 echo "$as_me:$LINENO: checking for Tk private headers" >&5
25292echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
25293 private_dir=""
25294 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
25295 if test -f ${dir}/tkInt.h; then
25296 private_dir=${dir}
3fc11d3e 25297 fi
bec39cab 25298
5062cc19
KS
25299 if test x"${private_dir}" = x; then
25300 { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
25301echo "$as_me: error: could not find Tk private headers" >&2;}
25302 { (exit 1); exit 1; }; }
3fc11d3e 25303 else
5062cc19
KS
25304 TK_PRIVATE_INCLUDE="-I${private_dir}"
25305 echo "$as_me:$LINENO: result: ${private_dir}" >&5
25306echo "${ECHO_T}${private_dir}" >&6
3fc11d3e 25307 fi
3fc11d3e 25308
5062cc19
KS
25309 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
25310 TK_LIBRARY=${TK_LIB_SPEC}
25311 TK_DEPS=""
25312 else
25313 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
25314 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
25315 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
25316 fi
3fc11d3e
JM
25317
25318
3fc11d3e
JM
25319
25320
3fc11d3e 25321
4226a5a5 25322 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
25323
25324 # Include some libraries that Tcl and Tk want.
5062cc19 25325 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
25326 # Yes, the ordering seems wrong here. But it isn't.
25327 # TK_LIBS is the list of libraries that need to be linked
25328 # after Tcl/Tk. Note that this isn't put into LIBS. If it
25329 # were in LIBS then any link tests after this point would
25330 # try to include things like `$(LIBGUI)', which wouldn't work.
25331 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
25332
25333 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
25334 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
25335 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
25336 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
25337 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
25338 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
25339 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
25340
25341 if test x$gdb_cv_os_cygwin = xyes; then
25342 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
25343 WIN32LDAPP="-Wl,--subsystem,console"
25344 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
25345 fi
25346 fi
25347 fi
ffc6a242 25348
b4e70030
JB
25349
25350
25351subdirs="$subdirs gdbtk"
3ace7edb 25352
3fc11d3e
JM
25353fi
25354
25355
25356
25357
25358
25359
25360
25361
b4e70030
JB
25362echo "$as_me:$LINENO: checking for X" >&5
25363echo $ECHO_N "checking for X... $ECHO_C" >&6
bec39cab 25364
c906108c 25365
b4e70030 25366# Check whether --with-x or --without-x was given.
c906108c 25367if test "${with_x+set}" = set; then
b4e70030 25368 withval="$with_x"
c906108c 25369
b4e70030 25370fi;
c906108c
SS
25371# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25372if test "x$with_x" = xno; then
25373 # The user explicitly disabled X.
25374 have_x=disabled
25375else
25376 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25377 # Both variables are already set.
25378 have_x=yes
25379 else
bec39cab
AC
25380 if test "${ac_cv_have_x+set}" = set; then
25381 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
25382else
25383 # One or both of the vars are not set, and there is no cached value.
bec39cab 25384ac_x_includes=no ac_x_libraries=no
b4e70030 25385rm -fr conftest.dir
bec39cab
AC
25386if mkdir conftest.dir; then
25387 cd conftest.dir
c906108c 25388 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 25389 cat >Imakefile <<'_ACEOF'
c906108c
SS
25390acfindx:
25391 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 25392_ACEOF
b4e70030 25393 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c
SS
25394 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25395 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25396 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25397 for ac_extension in a so sl; do
25398 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
25399 test -f $ac_im_libdir/libX11.$ac_extension; then
25400 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
25401 fi
25402 done
25403 # Screen out bogus values from the imake configuration. They are
25404 # bogus both because they are the default anyway, and because
25405 # using them would break gcc on systems where it needs fixed includes.
bec39cab 25406 case $ac_im_incroot in
b4e70030 25407 /usr/include) ;;
bec39cab 25408 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 25409 esac
bec39cab 25410 case $ac_im_usrlibdir in
c906108c 25411 /usr/lib | /lib) ;;
bec39cab 25412 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
25413 esac
25414 fi
25415 cd ..
b4e70030 25416 rm -fr conftest.dir
c906108c
SS
25417fi
25418
bec39cab
AC
25419# Standard set of common directories for X headers.
25420# Check X11 before X11Rn because it is often a symlink to the current release.
25421ac_x_header_dirs='
25422/usr/X11/include
25423/usr/X11R6/include
25424/usr/X11R5/include
25425/usr/X11R4/include
25426
25427/usr/include/X11
25428/usr/include/X11R6
25429/usr/include/X11R5
25430/usr/include/X11R4
25431
25432/usr/local/X11/include
25433/usr/local/X11R6/include
25434/usr/local/X11R5/include
25435/usr/local/X11R4/include
25436
25437/usr/local/include/X11
25438/usr/local/include/X11R6
25439/usr/local/include/X11R5
25440/usr/local/include/X11R4
25441
25442/usr/X386/include
25443/usr/x386/include
25444/usr/XFree86/include/X11
25445
25446/usr/include
25447/usr/local/include
25448/usr/unsupported/include
25449/usr/athena/include
25450/usr/local/x11r5/include
25451/usr/lpp/Xamples/include
25452
25453/usr/openwin/include
25454/usr/openwin/share/include'
25455
25456if test "$ac_x_includes" = no; then
59f80f10 25457 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 25458 # First, try using that file with no special directory specified.
bec39cab
AC
25459 cat >conftest.$ac_ext <<_ACEOF
25460/* confdefs.h. */
25461_ACEOF
25462cat confdefs.h >>conftest.$ac_ext
25463cat >>conftest.$ac_ext <<_ACEOF
25464/* end confdefs.h. */
59f80f10 25465#include <X11/Intrinsic.h>
bec39cab
AC
25466_ACEOF
25467if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25469 ac_status=$?
25470 grep -v '^ *+' conftest.er1 >conftest.err
25471 rm -f conftest.er1
25472 cat conftest.err >&5
25473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25474 (exit $ac_status); } >/dev/null; then
25475 if test -s conftest.err; then
25476 ac_cpp_err=$ac_c_preproc_warn_flag
25477 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25478 else
25479 ac_cpp_err=
25480 fi
25481else
25482 ac_cpp_err=yes
25483fi
25484if test -z "$ac_cpp_err"; then
c906108c
SS
25485 # We can compile using X headers with no special include directory.
25486ac_x_includes=
25487else
bec39cab
AC
25488 echo "$as_me: failed program was:" >&5
25489sed 's/^/| /' conftest.$ac_ext >&5
25490
25491 for ac_dir in $ac_x_header_dirs; do
59f80f10 25492 if test -r "$ac_dir/X11/Intrinsic.h"; then
bec39cab
AC
25493 ac_x_includes=$ac_dir
25494 break
25495 fi
25496done
c906108c 25497fi
bec39cab
AC
25498rm -f conftest.err conftest.$ac_ext
25499fi # $ac_x_includes = no
c906108c 25500
bec39cab 25501if test "$ac_x_libraries" = no; then
c906108c 25502 # Check for the libraries.
c906108c
SS
25503 # See if we find them without any special options.
25504 # Don't add to $LIBS permanently.
bec39cab 25505 ac_save_LIBS=$LIBS
4e8d927d 25506 LIBS="-lXt $LIBS"
bec39cab
AC
25507 cat >conftest.$ac_ext <<_ACEOF
25508/* confdefs.h. */
25509_ACEOF
25510cat confdefs.h >>conftest.$ac_ext
25511cat >>conftest.$ac_ext <<_ACEOF
25512/* end confdefs.h. */
59f80f10 25513#include <X11/Intrinsic.h>
bec39cab
AC
25514int
25515main ()
25516{
59f80f10 25517XtMalloc (0)
bec39cab
AC
25518 ;
25519 return 0;
25520}
25521_ACEOF
25522rm -f conftest.$ac_objext conftest$ac_exeext
25523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25524 (eval $ac_link) 2>conftest.er1
25525 ac_status=$?
25526 grep -v '^ *+' conftest.er1 >conftest.err
25527 rm -f conftest.er1
25528 cat conftest.err >&5
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); } &&
b4e70030
JB
25531 { ac_try='test -z "$ac_c_werror_flag"
25532 || test ! -s conftest.err'
bec39cab
AC
25533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25534 (eval $ac_try) 2>&5
25535 ac_status=$?
25536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); }; } &&
25538 { ac_try='test -s conftest$ac_exeext'
25539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25540 (eval $ac_try) 2>&5
25541 ac_status=$?
25542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543 (exit $ac_status); }; }; then
25544 LIBS=$ac_save_LIBS
c906108c
SS
25545# We can link X programs with no special library path.
25546ac_x_libraries=
25547else
bec39cab
AC
25548 echo "$as_me: failed program was:" >&5
25549sed 's/^/| /' conftest.$ac_ext >&5
25550
b4e70030 25551LIBS=$ac_save_LIBS
bec39cab 25552for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 25553do
bec39cab 25554 # Don't even attempt the hair of trying to link an X program!
c906108c 25555 for ac_extension in a so sl; do
b4e70030 25556 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
25557 ac_x_libraries=$ac_dir
25558 break 2
25559 fi
25560 done
25561done
25562fi
bec39cab
AC
25563rm -f conftest.err conftest.$ac_objext \
25564 conftest$ac_exeext conftest.$ac_ext
25565fi # $ac_x_libraries = no
c906108c 25566
bec39cab 25567if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
25568 # Didn't find X anywhere. Cache the known absence of X.
25569 ac_cv_have_x="have_x=no"
25570else
25571 # Record where we found X for the cache.
25572 ac_cv_have_x="have_x=yes \
bec39cab 25573 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
25574fi
25575fi
bec39cab 25576
c906108c
SS
25577 fi
25578 eval "$ac_cv_have_x"
25579fi # $with_x != no
25580
25581if test "$have_x" != yes; then
b4e70030
JB
25582 echo "$as_me:$LINENO: result: $have_x" >&5
25583echo "${ECHO_T}$have_x" >&6
c906108c
SS
25584 no_x=yes
25585else
25586 # If each of the values was on the command line, it overrides each guess.
25587 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25588 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25589 # Update the cache value to reflect the command line values.
25590 ac_cv_have_x="have_x=yes \
25591 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
b4e70030
JB
25592 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
25593echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
25594fi
25595
25596
bec39cab 25597# Unlike the sim directory, whether a simulator is linked is controlled by
9b624dbe 25598# presence of a gdb_sim definition in the target configure.tgt entry.
7a292a7a
SS
25599# This code just checks for a few cases where we'd like to ignore those
25600# definitions, even when they're present in the '.mt' file. These cases
25601# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 25602# not part of the source tree.
7a292a7a 25603#
b4e70030 25604# Check whether --enable-sim or --disable-sim was given.
7a292a7a 25605if test "${enable_sim+set}" = set; then
b4e70030
JB
25606 enableval="$enable_sim"
25607 echo "enable_sim = $enable_sim";
7a292a7a
SS
25608 echo "enableval = ${enableval}";
25609 case "${enableval}" in
25610 yes) ignore_sim=false ;;
25611 no) ignore_sim=true ;;
25612 *) ignore_sim=false ;;
25613 esac
25614else
25615 ignore_sim=false
b4e70030 25616fi;
7a292a7a
SS
25617
25618if test ! -d "${srcdir}/../sim"; then
25619 ignore_sim=true
25620fi
25621
9b624dbe
UW
25622SIM=
25623SIM_OBS=
25624if test "${ignore_sim}" = "false"; then
25625 if test x"${gdb_sim}" != x ; then
25626 SIM="${gdb_sim}"
25627 SIM_OBS="remote-sim.o"
60ca704f
SE
25628
25629cat >>confdefs.h <<\_ACEOF
7a292a7a 25630#define WITH_SIM 1
bec39cab 25631_ACEOF
7a292a7a 25632
9b624dbe 25633 fi
7a292a7a
SS
25634fi
25635
25636
25637
c906108c
SS
25638
25639
25640
25641
25642
25643
dfcd3bfb 25644
e56ac5c3
AC
25645
25646
b3a90332
AC
25647
25648
c35f4ffc 25649# List of host floatformats.
bec39cab
AC
25650
25651cat >>confdefs.h <<_ACEOF
c35f4ffc 25652#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 25653_ACEOF
c35f4ffc 25654
bec39cab
AC
25655
25656cat >>confdefs.h <<_ACEOF
c35f4ffc 25657#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
25658_ACEOF
25659
c35f4ffc 25660
bec39cab 25661cat >>confdefs.h <<_ACEOF
c35f4ffc 25662#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 25663_ACEOF
c35f4ffc
AC
25664
25665
c906108c
SS
25666# target_subdir is used by the testsuite to find the target libraries.
25667target_subdir=
25668if test "${host}" != "${target}"; then
25669 target_subdir="${target_alias}/"
25670fi
25671
25672
25673frags=
771b4502 25674if test "${gdb_native}" = "yes"; then
0dad8a66
MK
25675 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
25676 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
25677 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
25678echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
25679 { (exit 1); exit 1; }; }
0dad8a66
MK
25680 fi
25681 frags="$frags $host_makefile_frag"
25682else
25683 host_makefile_frag=/dev/null
c906108c 25684fi
c906108c 25685
c906108c
SS
25686
25687
25688
771b4502 25689if test "${gdb_native}" = "yes"; then
a85f51e7
DJ
25690# We pick this up from the host configuration file (.mh) because we
25691# do not have a native configuration Makefile fragment.
c906108c
SS
25692nativefile=`sed -n '
25693s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
25694' ${host_makefile_frag}`
c906108c
SS
25695fi
25696
25697
b00a8037 25698if test x"${gdb_osabi}" != x ; then
bec39cab
AC
25699
25700cat >>confdefs.h <<_ACEOF
b00a8037 25701#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 25702_ACEOF
b00a8037
DJ
25703
25704fi
25705
8dcde887 25706# Enable multi-ice-gdb-server.
b4e70030 25707# Check whether --enable-multi-ice or --disable-multi-ice was given.
8dcde887 25708if test "${enable_multi_ice+set}" = set; then
b4e70030
JB
25709 enableval="$enable_multi_ice"
25710 case $enableval in
8dcde887
MK
25711 yes | no)
25712 ;;
bec39cab
AC
25713 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
25714echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
25715 { (exit 1); exit 1; }; } ;;
8dcde887 25716 esac
b4e70030 25717fi;
4e8d927d 25718if test "x$enable_multi_ice" = xyes; then
b4e70030
JB
25719
25720
25721subdirs="$subdirs multi-ice"
3ace7edb 25722
a85f51e7
DJ
25723fi
25724
a13e2c95
UW
25725# We only build gdbserver automatically in a native configuration.
25726if test "$gdb_native" = "yes"; then
b4e70030
JB
25727 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
25728echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 25729 if test "x$build_gdbserver" = xyes; then
b4e70030
JB
25730 echo "$as_me:$LINENO: result: yes" >&5
25731echo "${ECHO_T}yes" >&6
25732
25733
25734subdirs="$subdirs gdbserver"
3ace7edb 25735
8dcde887 25736 else
b4e70030
JB
25737 echo "$as_me:$LINENO: result: no" >&5
25738echo "${ECHO_T}no" >&6
8dcde887
MK
25739 fi
25740fi
25741
db985757 25742# If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
2c0fc042 25743# to an empty version.
c906108c
SS
25744
25745files=
25746links=
5a2402b8 25747
c906108c 25748rm -f nm.h
5a2402b8 25749nm_h=""
c906108c 25750if test "${nativefile}" != ""; then
5a2402b8 25751 nm_h=nm.h
0f475e27
AC
25752 case "${nativefile}" in
25753 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
25754 * ) GDB_NM_FILE="${nativefile}"
25755 esac
5a2402b8
AC
25756 files="${files} ${GDB_NM_FILE}"
25757 links="${links} nm.h"
60ca704f
SE
25758
25759cat >>confdefs.h <<_ACEOF
b78960be 25760#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 25761_ACEOF
5a2402b8 25762
c906108c 25763fi
5a2402b8
AC
25764
25765
bec39cab
AC
25766ac_sources="$files"
25767ac_dests="$links"
25768while test -n "$ac_sources"; do
25769 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
25770 set $ac_sources; ac_source=$1; shift; ac_sources=$*
25771 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
25772done
b4e70030 25773 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
25774
25775
c906108c
SS
25776
25777
c906108c 25778
c906108c 25779
bec39cab
AC
25780cat >>confdefs.h <<\_ACEOF
25781#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
25782_ACEOF
c906108c 25783
234b45d4 25784
234b45d4
KB
25785
25786
25787
b4e70030 25788# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4 25789if test "${with_libiconv_prefix+set}" = set; then
b4e70030
JB
25790 withval="$with_libiconv_prefix"
25791
234b45d4
KB
25792 for dir in `echo "$withval" | tr : ' '`; do
25793 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
25794 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
25795 done
234b45d4 25796
b4e70030 25797fi;
234b45d4 25798
b4e70030
JB
25799 echo "$as_me:$LINENO: checking for iconv" >&5
25800echo $ECHO_N "checking for iconv... $ECHO_C" >&6
bec39cab
AC
25801if test "${am_cv_func_iconv+set}" = set; then
25802 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 25803else
bec39cab 25804
234b45d4
KB
25805 am_cv_func_iconv="no, consider installing GNU libiconv"
25806 am_cv_lib_iconv=no
bec39cab
AC
25807 cat >conftest.$ac_ext <<_ACEOF
25808/* confdefs.h. */
25809_ACEOF
25810cat confdefs.h >>conftest.$ac_ext
25811cat >>conftest.$ac_ext <<_ACEOF
25812/* end confdefs.h. */
234b45d4
KB
25813#include <stdlib.h>
25814#include <iconv.h>
bec39cab
AC
25815int
25816main ()
25817{
234b45d4
KB
25818iconv_t cd = iconv_open("","");
25819 iconv(cd,NULL,NULL,NULL,NULL);
25820 iconv_close(cd);
bec39cab
AC
25821 ;
25822 return 0;
25823}
25824_ACEOF
25825rm -f conftest.$ac_objext conftest$ac_exeext
25826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25827 (eval $ac_link) 2>conftest.er1
25828 ac_status=$?
25829 grep -v '^ *+' conftest.er1 >conftest.err
25830 rm -f conftest.er1
25831 cat conftest.err >&5
25832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833 (exit $ac_status); } &&
b4e70030
JB
25834 { ac_try='test -z "$ac_c_werror_flag"
25835 || test ! -s conftest.err'
bec39cab
AC
25836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25837 (eval $ac_try) 2>&5
25838 ac_status=$?
25839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840 (exit $ac_status); }; } &&
25841 { ac_try='test -s conftest$ac_exeext'
25842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25843 (eval $ac_try) 2>&5
25844 ac_status=$?
25845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846 (exit $ac_status); }; }; then
234b45d4
KB
25847 am_cv_func_iconv=yes
25848else
bec39cab
AC
25849 echo "$as_me: failed program was:" >&5
25850sed 's/^/| /' conftest.$ac_ext >&5
25851
234b45d4 25852fi
bec39cab
AC
25853rm -f conftest.err conftest.$ac_objext \
25854 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
25855 if test "$am_cv_func_iconv" != yes; then
25856 am_save_LIBS="$LIBS"
25857 LIBS="$LIBS -liconv"
bec39cab
AC
25858 cat >conftest.$ac_ext <<_ACEOF
25859/* confdefs.h. */
25860_ACEOF
25861cat confdefs.h >>conftest.$ac_ext
25862cat >>conftest.$ac_ext <<_ACEOF
25863/* end confdefs.h. */
234b45d4
KB
25864#include <stdlib.h>
25865#include <iconv.h>
bec39cab
AC
25866int
25867main ()
25868{
234b45d4
KB
25869iconv_t cd = iconv_open("","");
25870 iconv(cd,NULL,NULL,NULL,NULL);
25871 iconv_close(cd);
bec39cab
AC
25872 ;
25873 return 0;
25874}
25875_ACEOF
25876rm -f conftest.$ac_objext conftest$ac_exeext
25877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25878 (eval $ac_link) 2>conftest.er1
25879 ac_status=$?
25880 grep -v '^ *+' conftest.er1 >conftest.err
25881 rm -f conftest.er1
25882 cat conftest.err >&5
25883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25884 (exit $ac_status); } &&
b4e70030
JB
25885 { ac_try='test -z "$ac_c_werror_flag"
25886 || test ! -s conftest.err'
bec39cab
AC
25887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25888 (eval $ac_try) 2>&5
25889 ac_status=$?
25890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891 (exit $ac_status); }; } &&
25892 { ac_try='test -s conftest$ac_exeext'
25893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25894 (eval $ac_try) 2>&5
25895 ac_status=$?
25896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897 (exit $ac_status); }; }; then
234b45d4
KB
25898 am_cv_lib_iconv=yes
25899 am_cv_func_iconv=yes
25900else
bec39cab
AC
25901 echo "$as_me: failed program was:" >&5
25902sed 's/^/| /' conftest.$ac_ext >&5
25903
234b45d4 25904fi
bec39cab
AC
25905rm -f conftest.err conftest.$ac_objext \
25906 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
25907 LIBS="$am_save_LIBS"
25908 fi
bec39cab
AC
25909
25910fi
b4e70030
JB
25911echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25912echo "${ECHO_T}$am_cv_func_iconv" >&6
bec39cab
AC
25913 if test "$am_cv_func_iconv" = yes; then
25914
25915cat >>confdefs.h <<\_ACEOF
25916#define HAVE_ICONV 1
25917_ACEOF
25918
b4e70030
JB
25919 echo "$as_me:$LINENO: checking for iconv declaration" >&5
25920echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
bec39cab
AC
25921 if test "${am_cv_proto_iconv+set}" = set; then
25922 echo $ECHO_N "(cached) $ECHO_C" >&6
25923else
25924
25925 cat >conftest.$ac_ext <<_ACEOF
25926/* confdefs.h. */
25927_ACEOF
25928cat confdefs.h >>conftest.$ac_ext
25929cat >>conftest.$ac_ext <<_ACEOF
25930/* end confdefs.h. */
25931
25932#include <stdlib.h>
25933#include <iconv.h>
25934extern
25935#ifdef __cplusplus
25936"C"
25937#endif
25938#if defined(__STDC__) || defined(__cplusplus)
25939size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25940#else
25941size_t iconv();
25942#endif
25943
25944int
25945main ()
25946{
25947
25948 ;
25949 return 0;
25950}
25951_ACEOF
25952rm -f conftest.$ac_objext
25953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25954 (eval $ac_compile) 2>conftest.er1
25955 ac_status=$?
25956 grep -v '^ *+' conftest.er1 >conftest.err
25957 rm -f conftest.er1
25958 cat conftest.err >&5
25959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960 (exit $ac_status); } &&
b4e70030
JB
25961 { ac_try='test -z "$ac_c_werror_flag"
25962 || test ! -s conftest.err'
bec39cab
AC
25963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25964 (eval $ac_try) 2>&5
25965 ac_status=$?
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); }; } &&
25968 { ac_try='test -s conftest.$ac_objext'
25969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25970 (eval $ac_try) 2>&5
25971 ac_status=$?
25972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973 (exit $ac_status); }; }; then
25974 am_cv_proto_iconv_arg1=""
25975else
25976 echo "$as_me: failed program was:" >&5
25977sed 's/^/| /' conftest.$ac_ext >&5
25978
b4e70030 25979am_cv_proto_iconv_arg1="const"
bec39cab
AC
25980fi
25981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25982 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);"
25983fi
25984
25985 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b4e70030 25986 echo "$as_me:$LINENO: result: ${ac_t:-
bec39cab
AC
25987 }$am_cv_proto_iconv" >&5
25988echo "${ECHO_T}${ac_t:-
b4e70030 25989 }$am_cv_proto_iconv" >&6
bec39cab
AC
25990
25991cat >>confdefs.h <<_ACEOF
25992#define ICONV_CONST $am_cv_proto_iconv_arg1
25993_ACEOF
25994
25995 fi
25996 LIBICONV=
25997 if test "$am_cv_lib_iconv" = yes; then
25998 LIBICONV="-liconv"
25999 fi
26000
26001
26002
e28b3332 26003 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
b4e70030 26004 ac_config_commands="$ac_config_commands default"
bec39cab
AC
26005cat >confcache <<\_ACEOF
26006# This file is a shell script that caches the results of configure
26007# tests run on this system so they can be shared between configure
26008# scripts and configure runs, see configure's option --config-cache.
26009# It is not useful on other systems. If it contains results you don't
26010# want to keep, you may remove or edit it.
26011#
26012# config.status only pays attention to the cache file if you give it
26013# the --recheck option to rerun configure.
26014#
26015# `ac_cv_env_foo' variables (set or unset) will be overridden when
26016# loading this file, other *unset* `ac_cv_foo' will be assigned the
26017# following values.
26018
26019_ACEOF
26020
26021# The following way of writing the cache mishandles newlines in values,
26022# but we know of no workaround that is simple, portable, and efficient.
b4e70030 26023# So, don't put newlines in cache variables' values.
bec39cab
AC
26024# Ultrix sh set writes to stderr and can't be redirected directly,
26025# and sets the high bit in the cache file unless we assign to the vars.
b4e70030 26026{
bec39cab 26027 (set) 2>&1 |
b4e70030
JB
26028 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26029 *ac_space=\ *)
bec39cab
AC
26030 # `set' does not quote correctly, so add quotes (double-quote
26031 # substitution turns \\\\ into \\, and sed turns \\ into \).
26032 sed -n \
26033 "s/'/'\\\\''/g;
26034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b4e70030 26035 ;;
bec39cab
AC
26036 *)
26037 # `set' quotes correctly as required by POSIX, so do not add quotes.
b4e70030
JB
26038 sed -n \
26039 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 26040 ;;
b4e70030
JB
26041 esac;
26042} |
bec39cab
AC
26043 sed '
26044 t clear
b4e70030 26045 : clear
bec39cab
AC
26046 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26047 t end
b4e70030
JB
26048 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26049 : end' >>confcache
bec39cab
AC
26050if diff $cache_file confcache >/dev/null 2>&1; then :; else
26051 if test -w $cache_file; then
b4e70030 26052 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
bec39cab
AC
26053 cat confcache >$cache_file
26054 else
b4e70030 26055 echo "not updating unwritable cache $cache_file"
bec39cab
AC
26056 fi
26057fi
26058rm -f confcache
26059
26060test "x$prefix" = xNONE && prefix=$ac_default_prefix
26061# Let make expand exec_prefix.
26062test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26063
b4e70030
JB
26064# VPATH may cause trouble with some makes, so we remove $(srcdir),
26065# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26066# trailing colons and then remove the whole line if VPATH becomes empty
26067# (actually we leave an empty line to preserve line numbers).
26068if test "x$srcdir" = x.; then
26069 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26070s/:*\$(srcdir):*/:/;
26071s/:*\${srcdir}:*/:/;
26072s/:*@srcdir@:*/:/;
26073s/^\([^=]*=[ ]*\):*/\1/;
26074s/:*$//;
26075s/^[^=]*=[ ]*$//;
26076}'
26077fi
26078
bec39cab
AC
26079DEFS=-DHAVE_CONFIG_H
26080
26081ac_libobjs=
26082ac_ltlibobjs=
26083for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26084 # 1. Remove the extension, and $U if already installed.
b4e70030
JB
26085 ac_i=`echo "$ac_i" |
26086 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26087 # 2. Add them.
26088 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26089 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
bec39cab
AC
26090done
26091LIBOBJS=$ac_libobjs
26092
26093LTLIBOBJS=$ac_ltlibobjs
26094
26095
85981d60
AC
26096if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26097 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26098Usually this means the macro was only invoked conditionally." >&5
26099echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26100Usually this means the macro was only invoked conditionally." >&2;}
26101 { (exit 1); exit 1; }; }
26102fi
a417dc56
RW
26103if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
26104 { { echo "$as_me:$LINENO: error: conditional \"GMAKE\" was never defined.
26105Usually this means the macro was only invoked conditionally." >&5
26106echo "$as_me: error: conditional \"GMAKE\" was never defined.
26107Usually this means the macro was only invoked conditionally." >&2;}
26108 { (exit 1); exit 1; }; }
26109fi
783e057b
DJ
26110if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
26111 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
26112Usually this means the macro was only invoked conditionally." >&5
26113echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
26114Usually this means the macro was only invoked conditionally." >&2;}
26115 { (exit 1); exit 1; }; }
26116fi
26117
26118 gl_libobjs=
26119 gl_ltlibobjs=
26120 if test -n "$gl_LIBOBJS"; then
26121 # Remove the extension.
26122 sed_drop_objext='s/\.o$//;s/\.obj$//'
26123 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
26124 gl_libobjs="$gl_libobjs $i.$ac_objext"
26125 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
26126 done
26127 fi
26128 gl_LIBOBJS=$gl_libobjs
26129
26130 gl_LTLIBOBJS=$gl_ltlibobjs
26131
26132
26133
26134 gltests_libobjs=
26135 gltests_ltlibobjs=
26136 if test -n "$gltests_LIBOBJS"; then
26137 # Remove the extension.
26138 sed_drop_objext='s/\.o$//;s/\.obj$//'
26139 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
26140 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
26141 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
26142 done
26143 fi
26144 gltests_LIBOBJS=$gltests_libobjs
26145
26146 gltests_LTLIBOBJS=$gltests_ltlibobjs
26147
26148
e28b3332
DJ
26149if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26150 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26151Usually this means the macro was only invoked conditionally." >&5
26152echo "$as_me: error: conditional \"AMDEP\" was never defined.
26153Usually this means the macro was only invoked conditionally." >&2;}
26154 { (exit 1); exit 1; }; }
26155fi
26156if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26157 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26158Usually this means the macro was only invoked conditionally." >&5
26159echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26160Usually this means the macro was only invoked conditionally." >&2;}
26161 { (exit 1); exit 1; }; }
26162fi
bec39cab
AC
26163
26164: ${CONFIG_STATUS=./config.status}
26165ac_clean_files_save=$ac_clean_files
26166ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26167{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26168echo "$as_me: creating $CONFIG_STATUS" >&6;}
26169cat >$CONFIG_STATUS <<_ACEOF
26170#! $SHELL
26171# Generated by $as_me.
26172# Run this file to recreate the current configuration.
26173# Compiler output produced by configure, useful for debugging
26174# configure, is in config.log if it exists.
26175
26176debug=false
26177ac_cs_recheck=false
26178ac_cs_silent=false
26179SHELL=\${CONFIG_SHELL-$SHELL}
26180_ACEOF
26181
26182cat >>$CONFIG_STATUS <<\_ACEOF
26183## --------------------- ##
26184## M4sh Initialization. ##
26185## --------------------- ##
26186
26187# Be Bourne compatible
26188if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26189 emulate sh
26190 NULLCMD=:
26191 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26192 # is contrary to our usage. Disable this feature.
26193 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
26194elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26195 set -o posix
bec39cab
AC
26196fi
26197DUALCASE=1; export DUALCASE # for MKS sh
26198
26199# Support unset when possible.
26200if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26201 as_unset=unset
26202else
26203 as_unset=false
26204fi
26205
26206
26207# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 26208$as_unset ENV MAIL MAILPATH
bec39cab
AC
26209PS1='$ '
26210PS2='> '
26211PS4='+ '
26212
26213# NLS nuisances.
26214for as_var in \
26215 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26216 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26217 LC_TELEPHONE LC_TIME
26218do
26219 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26220 eval $as_var=C; export $as_var
26221 else
b4e70030 26222 $as_unset $as_var
bec39cab
AC
26223 fi
26224done
26225
26226# Required to use basename.
b4e70030 26227if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
26228 as_expr=expr
26229else
26230 as_expr=false
26231fi
26232
b4e70030 26233if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
26234 as_basename=basename
26235else
26236 as_basename=false
26237fi
26238
26239
26240# Name of the executable.
b4e70030 26241as_me=`$as_basename "$0" ||
bec39cab
AC
26242$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26243 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
26244 X"$0" : 'X\(/\)$' \| \
26245 . : '\(.\)' 2>/dev/null ||
bec39cab 26246echo X/"$0" |
b4e70030
JB
26247 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26248 /^X\/\(\/\/\)$/{ s//\1/; q; }
26249 /^X\/\(\/\).*/{ s//\1/; q; }
26250 s/.*/./; q'`
bec39cab 26251
b4e70030
JB
26252
26253# PATH needs CR, and LINENO needs CR and PATH.
26254# Avoid depending upon Character Ranges.
26255as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26256as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26257as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26258as_cr_digits='0123456789'
26259as_cr_alnum=$as_cr_Letters$as_cr_digits
26260
26261# The user is always right.
26262if test "${PATH_SEPARATOR+set}" != set; then
26263 echo "#! /bin/sh" >conf$$.sh
26264 echo "exit 0" >>conf$$.sh
26265 chmod +x conf$$.sh
26266 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26267 PATH_SEPARATOR=';'
26268 else
26269 PATH_SEPARATOR=:
26270 fi
26271 rm -f conf$$.sh
26272fi
bec39cab
AC
26273
26274
b4e70030
JB
26275 as_lineno_1=$LINENO
26276 as_lineno_2=$LINENO
26277 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26278 test "x$as_lineno_1" != "x$as_lineno_2" &&
26279 test "x$as_lineno_3" = "x$as_lineno_2" || {
26280 # Find who we are. Look in the path if we contain no path at all
26281 # relative or not.
26282 case $0 in
26283 *[\\/]* ) as_myself=$0 ;;
26284 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26285for as_dir in $PATH
26286do
26287 IFS=$as_save_IFS
26288 test -z "$as_dir" && as_dir=.
26289 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26290done
bec39cab 26291
b4e70030
JB
26292 ;;
26293 esac
26294 # We did not find ourselves, most probably we were run as `sh COMMAND'
26295 # in which case we are not to be found in the path.
26296 if test "x$as_myself" = x; then
26297 as_myself=$0
26298 fi
26299 if test ! -f "$as_myself"; then
26300 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26301echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26302 { (exit 1); exit 1; }; }
26303 fi
26304 case $CONFIG_SHELL in
26305 '')
26306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26307for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26308do
26309 IFS=$as_save_IFS
26310 test -z "$as_dir" && as_dir=.
26311 for as_base in sh bash ksh sh5; do
26312 case $as_dir in
26313 /*)
26314 if ("$as_dir/$as_base" -c '
bec39cab
AC
26315 as_lineno_1=$LINENO
26316 as_lineno_2=$LINENO
b4e70030 26317 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
bec39cab 26318 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
26319 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26320 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26321 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26322 CONFIG_SHELL=$as_dir/$as_base
26323 export CONFIG_SHELL
26324 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26325 fi;;
26326 esac
26327 done
26328done
26329;;
26330 esac
bec39cab
AC
26331
26332 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26333 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
26334 # line-number line before each line; the second 'sed' does the real
26335 # work. The second script uses 'N' to pair each line-number line
26336 # with the numbered line, and appends trailing '-' during
26337 # substitution so that $LINENO is not a special case at line end.
bec39cab 26338 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
26339 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26340 sed '=' <$as_myself |
bec39cab
AC
26341 sed '
26342 N
b4e70030
JB
26343 s,$,-,
26344 : loop
26345 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 26346 t loop
b4e70030
JB
26347 s,-$,,
26348 s,^['$as_cr_digits']*\n,,
bec39cab 26349 ' >$as_me.lineno &&
b4e70030
JB
26350 chmod +x $as_me.lineno ||
26351 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26352echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
bec39cab
AC
26353 { (exit 1); exit 1; }; }
26354
26355 # Don't try to exec as it changes $[0], causing all sort of problems
26356 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
26357 # original and so on. Autoconf is especially sensible to this).
26358 . ./$as_me.lineno
bec39cab
AC
26359 # Exit status is that of the last command.
26360 exit
26361}
26362
26363
b4e70030
JB
26364case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26365 *c*,-n*) ECHO_N= ECHO_C='
26366' ECHO_T=' ' ;;
26367 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26368 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
26369esac
26370
b4e70030 26371if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
26372 as_expr=expr
26373else
26374 as_expr=false
26375fi
26376
26377rm -f conf$$ conf$$.exe conf$$.file
26378echo >conf$$.file
26379if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
26380 # We could just check for DJGPP; but this test a) works b) is more generic
26381 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26382 if test -f conf$$.exe; then
26383 # Don't use ln at all; we don't have any links
bec39cab 26384 as_ln_s='cp -p'
b4e70030
JB
26385 else
26386 as_ln_s='ln -s'
26387 fi
bec39cab
AC
26388elif ln conf$$.file conf$$ 2>/dev/null; then
26389 as_ln_s=ln
26390else
26391 as_ln_s='cp -p'
26392fi
b4e70030 26393rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
26394
26395if mkdir -p . 2>/dev/null; then
26396 as_mkdir_p=:
26397else
26398 test -d ./-p && rmdir ./-p
26399 as_mkdir_p=false
26400fi
26401
b4e70030 26402as_executable_p="test -f"
bec39cab
AC
26403
26404# Sed expression to map a string onto a valid CPP name.
26405as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26406
26407# Sed expression to map a string onto a valid variable name.
26408as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26409
26410
b4e70030
JB
26411# IFS
26412# We need space, tab and new line, in precisely that order.
26413as_nl='
26414'
26415IFS=" $as_nl"
26416
26417# CDPATH.
26418$as_unset CDPATH
26419
bec39cab
AC
26420exec 6>&1
26421
b4e70030 26422# Open the log real soon, to keep \$[0] and so on meaningful, and to
bec39cab 26423# report actual input values of CONFIG_FILES etc. instead of their
b4e70030
JB
26424# values after options handling. Logging --version etc. is OK.
26425exec 5>>config.log
26426{
26427 echo
26428 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26429## Running $as_me. ##
26430_ASBOX
26431} >&5
26432cat >&5 <<_CSEOF
26433
bec39cab 26434This file was extended by $as_me, which was
b4e70030 26435generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
26436
26437 CONFIG_FILES = $CONFIG_FILES
26438 CONFIG_HEADERS = $CONFIG_HEADERS
26439 CONFIG_LINKS = $CONFIG_LINKS
26440 CONFIG_COMMANDS = $CONFIG_COMMANDS
26441 $ $0 $@
26442
b4e70030
JB
26443_CSEOF
26444echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26445echo >&5
bec39cab
AC
26446_ACEOF
26447
26448# Files that config.status was made for.
b4e70030
JB
26449if test -n "$ac_config_files"; then
26450 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26451fi
234b45d4 26452
b4e70030
JB
26453if test -n "$ac_config_headers"; then
26454 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26455fi
26456
26457if test -n "$ac_config_links"; then
26458 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26459fi
26460
26461if test -n "$ac_config_commands"; then
26462 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26463fi
234b45d4 26464
bec39cab 26465cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030 26466
bec39cab
AC
26467ac_cs_usage="\
26468\`$as_me' instantiates files from templates according to the
26469current configuration.
234b45d4 26470
bec39cab 26471Usage: $0 [OPTIONS] [FILE]...
234b45d4 26472
bec39cab
AC
26473 -h, --help print this help, then exit
26474 -V, --version print version number, then exit
26475 -q, --quiet do not print progress messages
26476 -d, --debug don't remove temporary files
26477 --recheck update $as_me by reconfiguring in the same conditions
26478 --file=FILE[:TEMPLATE]
26479 instantiate the configuration file FILE
26480 --header=FILE[:TEMPLATE]
26481 instantiate the configuration header FILE
234b45d4 26482
bec39cab
AC
26483Configuration files:
26484$config_files
234b45d4 26485
bec39cab
AC
26486Configuration headers:
26487$config_headers
234b45d4 26488
bec39cab
AC
26489Configuration links:
26490$config_links
234b45d4 26491
bec39cab
AC
26492Configuration commands:
26493$config_commands
26494
26495Report bugs to <bug-autoconf@gnu.org>."
4e8d927d 26496_ACEOF
b4e70030 26497
bec39cab
AC
26498cat >>$CONFIG_STATUS <<_ACEOF
26499ac_cs_version="\\
26500config.status
b4e70030 26501configured by $0, generated by GNU Autoconf 2.59,
bec39cab
AC
26502 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26503
b4e70030 26504Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
26505This config.status script is free software; the Free Software Foundation
26506gives unlimited permission to copy, distribute and modify it."
b4e70030
JB
26507srcdir=$srcdir
26508INSTALL="$INSTALL"
bec39cab
AC
26509_ACEOF
26510
26511cat >>$CONFIG_STATUS <<\_ACEOF
26512# If no file are specified by the user, then we need to provide default
26513# value. By we need to know if files were specified by the user.
26514ac_need_defaults=:
26515while test $# != 0
26516do
26517 case $1 in
26518 --*=*)
b4e70030
JB
26519 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26520 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
bec39cab 26521 ac_shift=:
c906108c 26522 ;;
b4e70030 26523 -*)
bec39cab
AC
26524 ac_option=$1
26525 ac_optarg=$2
26526 ac_shift=shift
c906108c 26527 ;;
b4e70030
JB
26528 *) # This is not an option, so the user has probably given explicit
26529 # arguments.
26530 ac_option=$1
26531 ac_need_defaults=false;;
bec39cab 26532 esac
c906108c 26533
bec39cab
AC
26534 case $ac_option in
26535 # Handling of the options.
b4e70030
JB
26536_ACEOF
26537cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
26538 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26539 ac_cs_recheck=: ;;
b4e70030
JB
26540 --version | --vers* | -V )
26541 echo "$ac_cs_version"; exit 0 ;;
26542 --he | --h)
26543 # Conflict between --help and --header
26544 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26545Try \`$0 --help' for more information." >&5
26546echo "$as_me: error: ambiguous option: $1
26547Try \`$0 --help' for more information." >&2;}
26548 { (exit 1); exit 1; }; };;
26549 --help | --hel | -h )
26550 echo "$ac_cs_usage"; exit 0 ;;
26551 --debug | --d* | -d )
bec39cab
AC
26552 debug=: ;;
26553 --file | --fil | --fi | --f )
26554 $ac_shift
26555 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26556 ac_need_defaults=false;;
26557 --header | --heade | --head | --hea )
26558 $ac_shift
26559 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26560 ac_need_defaults=false;;
26561 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26562 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26563 ac_cs_silent=: ;;
c906108c 26564
bec39cab 26565 # This is an error.
b4e70030
JB
26566 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26567Try \`$0 --help' for more information." >&5
26568echo "$as_me: error: unrecognized option: $1
26569Try \`$0 --help' for more information." >&2;}
bec39cab 26570 { (exit 1); exit 1; }; } ;;
c906108c 26571
b4e70030 26572 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 26573
bec39cab
AC
26574 esac
26575 shift
26576done
c906108c 26577
bec39cab 26578ac_configure_extra_args=
c906108c 26579
bec39cab
AC
26580if $ac_cs_silent; then
26581 exec 6>/dev/null
26582 ac_configure_extra_args="$ac_configure_extra_args --silent"
26583fi
c906108c 26584
bec39cab
AC
26585_ACEOF
26586cat >>$CONFIG_STATUS <<_ACEOF
26587if \$ac_cs_recheck; then
b4e70030
JB
26588 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26589 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab
AC
26590fi
26591
26592_ACEOF
26593
26594cat >>$CONFIG_STATUS <<_ACEOF
c906108c 26595#
b4e70030 26596# INIT-COMMANDS section.
c906108c 26597#
c906108c 26598
a417dc56 26599ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
e28b3332 26600AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
b4e70030 26601
bec39cab 26602gdb_host_cpu=$gdb_host_cpu
bec39cab
AC
26603nativefile=$nativefile
26604
26605
26606_ACEOF
26607
4e8d927d 26608
b4e70030
JB
26609
26610cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 26611for ac_config_target in $ac_config_targets
c906108c 26612do
b4e70030
JB
26613 case "$ac_config_target" in
26614 # Handling of arguments.
26615 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26616 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
e28b3332 26617 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
b4e70030 26618 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
a417dc56 26619 "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
e28b3332 26620 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
b4e70030
JB
26621 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26622 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
bec39cab
AC
26623 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26624echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26625 { (exit 1); exit 1; }; };;
c906108c
SS
26626 esac
26627done
26628
bec39cab
AC
26629# If the user did not use the arguments to specify the items to instantiate,
26630# then the envvar interface is used. Set only those that are not.
26631# We use the long form for the default assignment because of an extremely
26632# bizarre bug on SunOS 4.1.3.
26633if $ac_need_defaults; then
26634 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26635 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26636 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26637 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26638fi
26639
b4e70030
JB
26640# Have a temporary directory for convenience. Make it in the build tree
26641# simply because there is no reason to put it here, and in addition,
26642# creating and moving files from /tmp can sometimes cause problems.
26643# Create a temporary directory, and hook for its removal unless debugging.
26644$debug ||
26645{
26646 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26647 trap '{ (exit 1); exit 1; }' 1 2 13 15
26648}
4e8d927d 26649
b4e70030 26650# Create a (secure) tmp directory for tmp files.
4e8d927d 26651
b4e70030
JB
26652{
26653 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26654 test -n "$tmp" && test -d "$tmp"
26655} ||
26656{
26657 tmp=./confstat$$-$RANDOM
26658 (umask 077 && mkdir $tmp)
26659} ||
26660{
26661 echo "$me: cannot create a temporary directory in ." >&2
26662 { (exit 1); exit 1; }
26663}
4e8d927d 26664
b4e70030 26665_ACEOF
4e8d927d 26666
b4e70030 26667cat >>$CONFIG_STATUS <<_ACEOF
4e8d927d 26668
b4e70030
JB
26669#
26670# CONFIG_FILES section.
26671#
4e8d927d 26672
b4e70030
JB
26673# No need to generate the scripts if there are no CONFIG_FILES.
26674# This happens for instance when ./config.status config.h
26675if test -n "\$CONFIG_FILES"; then
26676 # Protect against being on the right side of a sed subst in config.status.
26677 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26678 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26679s,@SHELL@,$SHELL,;t t
26680s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26681s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26682s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26683s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26684s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26685s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26686s,@exec_prefix@,$exec_prefix,;t t
26687s,@prefix@,$prefix,;t t
26688s,@program_transform_name@,$program_transform_name,;t t
26689s,@bindir@,$bindir,;t t
26690s,@sbindir@,$sbindir,;t t
26691s,@libexecdir@,$libexecdir,;t t
26692s,@datadir@,$datadir,;t t
26693s,@sysconfdir@,$sysconfdir,;t t
26694s,@sharedstatedir@,$sharedstatedir,;t t
26695s,@localstatedir@,$localstatedir,;t t
26696s,@libdir@,$libdir,;t t
26697s,@includedir@,$includedir,;t t
26698s,@oldincludedir@,$oldincludedir,;t t
26699s,@infodir@,$infodir,;t t
26700s,@mandir@,$mandir,;t t
26701s,@build_alias@,$build_alias,;t t
26702s,@host_alias@,$host_alias,;t t
26703s,@target_alias@,$target_alias,;t t
26704s,@DEFS@,$DEFS,;t t
26705s,@ECHO_C@,$ECHO_C,;t t
26706s,@ECHO_N@,$ECHO_N,;t t
26707s,@ECHO_T@,$ECHO_T,;t t
26708s,@LIBS@,$LIBS,;t t
26709s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26710s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26711s,@MAINT@,$MAINT,;t t
26712s,@CC@,$CC,;t t
26713s,@CFLAGS@,$CFLAGS,;t t
26714s,@LDFLAGS@,$LDFLAGS,;t t
26715s,@CPPFLAGS@,$CPPFLAGS,;t t
26716s,@ac_ct_CC@,$ac_ct_CC,;t t
26717s,@EXEEXT@,$EXEEXT,;t t
26718s,@OBJEXT@,$OBJEXT,;t t
26719s,@CPP@,$CPP,;t t
26720s,@EGREP@,$EGREP,;t t
783e057b
DJ
26721s,@RANLIB@,$RANLIB,;t t
26722s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
b4e70030
JB
26723s,@build@,$build,;t t
26724s,@build_cpu@,$build_cpu,;t t
26725s,@build_vendor@,$build_vendor,;t t
26726s,@build_os@,$build_os,;t t
26727s,@host@,$host,;t t
26728s,@host_cpu@,$host_cpu,;t t
26729s,@host_vendor@,$host_vendor,;t t
26730s,@host_os@,$host_os,;t t
26731s,@target@,$target,;t t
26732s,@target_cpu@,$target_cpu,;t t
26733s,@target_vendor@,$target_vendor,;t t
26734s,@target_os@,$target_os,;t t
a417dc56
RW
26735s,@am__leading_dot@,$am__leading_dot,;t t
26736s,@DEPDIR@,$DEPDIR,;t t
26737s,@CCDEPMODE@,$CCDEPMODE,;t t
26738s,@MAKE@,$MAKE,;t t
26739s,@GMAKE_TRUE@,$GMAKE_TRUE,;t t
26740s,@GMAKE_FALSE@,$GMAKE_FALSE,;t t
26741s,@SET_MAKE@,$SET_MAKE,;t t
b4e70030 26742s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
26743s,@LIBINTL@,$LIBINTL,;t t
26744s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
26745s,@INCINTL@,$INCINTL,;t t
b4e70030 26746s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
26747s,@GMSGFMT@,$GMSGFMT,;t t
26748s,@POSUB@,$POSUB,;t t
b4e70030 26749s,@CATALOGS@,$CATALOGS,;t t
b4e70030 26750s,@DATADIRNAME@,$DATADIRNAME,;t t
b4e70030 26751s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
26752s,@GENCAT@,$GENCAT,;t t
26753s,@CATOBJEXT@,$CATOBJEXT,;t t
b4e70030 26754s,@localedir@,$localedir,;t t
783e057b
DJ
26755s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
26756s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
26757s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
26758s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
26759s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
26760s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
26761s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
26762s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
26763s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
26764s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
26765s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
26766s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
26767s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
26768s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
26769s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
26770s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
26771s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
26772s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
26773s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
26774s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
26775s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
26776s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
26777s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
26778s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
26779s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
26780s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
26781s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
26782s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
26783s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
26784s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
26785s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
26786s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
26787s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
26788s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
26789s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
26790s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
26791s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
26792s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
26793s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
26794s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
26795s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
26796s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
26797s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
26798s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
26799s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
26800s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
26801s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
26802s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
26803s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
26804s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
26805s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
26806s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
26807s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
26808s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
26809s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
26810s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
26811s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
26812s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
26813s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
26814s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
26815s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
26816s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
26817s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
26818s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
26819s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
26820s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
26821s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
26822s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
26823s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
26824s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
26825s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
26826s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
26827s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
26828s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
26829s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
26830s,@STDINT_H@,$STDINT_H,;t t
26831s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
26832s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
26833s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
26834s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
26835s,@WCHAR_H@,$WCHAR_H,;t t
26836s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
26837s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
26838s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
26839s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
d5af19ba 26840s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
b4e70030 26841s,@PACKAGE@,$PACKAGE,;t t
b4e70030
JB
26842s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26843s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26844s,@INSTALL_DATA@,$INSTALL_DATA,;t t
e28b3332 26845s,@CYGPATH_W@,$CYGPATH_W,;t t
d57a3c85 26846s,@PYTHON2_4@,$PYTHON2_4,;t t
e28b3332
DJ
26847s,@ACLOCAL@,$ACLOCAL,;t t
26848s,@AUTOCONF@,$AUTOCONF,;t t
26849s,@AUTOMAKE@,$AUTOMAKE,;t t
26850s,@AUTOHEADER@,$AUTOHEADER,;t t
26851s,@MAKEINFO@,$MAKEINFO,;t t
26852s,@install_sh@,$install_sh,;t t
26853s,@STRIP@,$STRIP,;t t
26854s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26855s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26856s,@mkdir_p@,$mkdir_p,;t t
26857s,@AWK@,$AWK,;t t
e28b3332
DJ
26858s,@AMTAR@,$AMTAR,;t t
26859s,@am__tar@,$am__tar,;t t
26860s,@am__untar@,$am__untar,;t t
e28b3332
DJ
26861s,@am__include@,$am__include,;t t
26862s,@am__quote@,$am__quote,;t t
26863s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26864s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26865s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
e28b3332
DJ
26866s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26867s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26868s,@subdirs@,$subdirs,;t t
26869s,@TARGET_OBS@,$TARGET_OBS,;t t
c16158bc
JM
26870s,@PKGVERSION@,$PKGVERSION,;t t
26871s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
26872s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
b4e70030
JB
26873s,@LN_S@,$LN_S,;t t
26874s,@YACC@,$YACC,;t t
26875s,@AR@,$AR,;t t
26876s,@ac_ct_AR@,$ac_ct_AR,;t t
26877s,@DLLTOOL@,$DLLTOOL,;t t
26878s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
26879s,@WINDRES@,$WINDRES,;t t
26880s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
26881s,@MIG@,$MIG,;t t
26882s,@ac_ct_MIG@,$ac_ct_MIG,;t t
6a30b0a5
AS
26883s,@READLINE@,$READLINE,;t t
26884s,@READLINE_DEPS@,$READLINE_DEPS,;t t
26885s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
3841debe
DJ
26886s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
26887s,@LIBEXPAT@,$LIBEXPAT,;t t
26888s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
d57a3c85 26889s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
20e95c23 26890s,@ALLOCA@,$ALLOCA,;t t
b4e70030
JB
26891s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
26892s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
26893s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
26894s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
26895s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
26896s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
26897s,@WIN32LIBS@,$WIN32LIBS,;t t
26898s,@LIBGUI@,$LIBGUI,;t t
26899s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
26900s,@WIN32LDAPP@,$WIN32LDAPP,;t t
26901s,@TCL_VERSION@,$TCL_VERSION,;t t
5062cc19
KS
26902s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
26903s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
26904s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
26905s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
26906s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
b4e70030 26907s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
5062cc19
KS
26908s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
26909s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
26910s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
26911s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
26912s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
26913s,@TCL_DEPS@,$TCL_DEPS,;t t
b4e70030 26914s,@TK_VERSION@,$TK_VERSION,;t t
5062cc19
KS
26915s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
26916s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
26917s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
26918s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
b4e70030 26919s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
5062cc19
KS
26920s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
26921s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
26922s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
26923s,@TK_INCLUDE@,$TK_INCLUDE,;t t
26924s,@TK_LIBRARY@,$TK_LIBRARY,;t t
26925s,@TK_DEPS@,$TK_DEPS,;t t
26926s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
b4e70030
JB
26927s,@X_CFLAGS@,$X_CFLAGS,;t t
26928s,@X_LDFLAGS@,$X_LDFLAGS,;t t
26929s,@X_LIBS@,$X_LIBS,;t t
b4e70030
JB
26930s,@GDBTKLIBS@,$GDBTKLIBS,;t t
26931s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
26932s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
9b624dbe
UW
26933s,@SIM@,$SIM,;t t
26934s,@SIM_OBS@,$SIM_OBS,;t t
b4e70030
JB
26935s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
26936s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
26937s,@CONFIG_OBS@,$CONFIG_OBS,;t t
26938s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
26939s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
26940s,@CONFIG_ALL@,$CONFIG_ALL,;t t
26941s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
26942s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
26943s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
26944s,@target_subdir@,$target_subdir,;t t
26945s,@frags@,$frags,;t t
b4e70030
JB
26946s,@nm_h@,$nm_h,;t t
26947s,@LIBICONV@,$LIBICONV,;t t
26948s,@LIBOBJS@,$LIBOBJS,;t t
26949s,@LTLIBOBJS@,$LTLIBOBJS,;t t
783e057b
DJ
26950s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
26951s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
26952s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
26953s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
b4e70030
JB
26954/@host_makefile_frag@/r $host_makefile_frag
26955s,@host_makefile_frag@,,;t t
b4e70030
JB
26956CEOF
26957
26958_ACEOF
26959
26960 cat >>$CONFIG_STATUS <<\_ACEOF
26961 # Split the substitutions into bite-sized pieces for seds with
26962 # small command number limits, like on Digital OSF/1 and HP-UX.
26963 ac_max_sed_lines=48
26964 ac_sed_frag=1 # Number of current file.
26965 ac_beg=1 # First line for current file.
26966 ac_end=$ac_max_sed_lines # Line after last line for current file.
26967 ac_more_lines=:
26968 ac_sed_cmds=
26969 while $ac_more_lines; do
26970 if test $ac_beg -gt 1; then
26971 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26972 else
26973 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4e8d927d 26974 fi
b4e70030
JB
26975 if test ! -s $tmp/subs.frag; then
26976 ac_more_lines=false
26977 else
26978 # The purpose of the label and of the branching condition is to
26979 # speed up the sed processing (if there are no `@' at all, there
26980 # is no need to browse any of the substitutions).
26981 # These are the two extra sed commands mentioned above.
26982 (echo ':t
26983 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26984 if test -z "$ac_sed_cmds"; then
26985 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26986 else
26987 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26988 fi
26989 ac_sed_frag=`expr $ac_sed_frag + 1`
26990 ac_beg=$ac_end
26991 ac_end=`expr $ac_end + $ac_max_sed_lines`
26992 fi
26993 done
26994 if test -z "$ac_sed_cmds"; then
26995 ac_sed_cmds=cat
26996 fi
26997fi # test -n "$CONFIG_FILES"
4e8d927d 26998
b4e70030
JB
26999_ACEOF
27000cat >>$CONFIG_STATUS <<\_ACEOF
27001for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27002 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27003 case $ac_file in
27004 - | *:- | *:-:* ) # input from stdin
27005 cat >$tmp/stdin
27006 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27007 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27008 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27009 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27010 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
27011 esac
27012
b4e70030
JB
27013 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27014 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
bec39cab
AC
27015$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27016 X"$ac_file" : 'X\(//\)[^/]' \| \
27017 X"$ac_file" : 'X\(//\)$' \| \
b4e70030
JB
27018 X"$ac_file" : 'X\(/\)' \| \
27019 . : '\(.\)' 2>/dev/null ||
bec39cab 27020echo X"$ac_file" |
b4e70030
JB
27021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27023 /^X\(\/\/\)$/{ s//\1/; q; }
27024 /^X\(\/\).*/{ s//\1/; q; }
27025 s/.*/./; q'`
27026 { if $as_mkdir_p; then
27027 mkdir -p "$ac_dir"
27028 else
27029 as_dir="$ac_dir"
bec39cab 27030 as_dirs=
b4e70030
JB
27031 while test ! -d "$as_dir"; do
27032 as_dirs="$as_dir $as_dirs"
27033 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
27034$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27035 X"$as_dir" : 'X\(//\)[^/]' \| \
27036 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
27037 X"$as_dir" : 'X\(/\)' \| \
27038 . : '\(.\)' 2>/dev/null ||
bec39cab 27039echo X"$as_dir" |
b4e70030
JB
27040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27041 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27042 /^X\(\/\/\)$/{ s//\1/; q; }
27043 /^X\(\/\).*/{ s//\1/; q; }
27044 s/.*/./; q'`
bec39cab 27045 done
b4e70030
JB
27046 test ! -n "$as_dirs" || mkdir $as_dirs
27047 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27048echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 27049 { (exit 1); exit 1; }; }; }
b4e70030 27050
bec39cab
AC
27051 ac_builddir=.
27052
b4e70030 27053if test "$ac_dir" != .; then
bec39cab 27054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
27055 # A "../" for each directory in $ac_dir_suffix.
27056 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27057else
27058 ac_dir_suffix= ac_top_builddir=
27059fi
bec39cab
AC
27060
27061case $srcdir in
b4e70030 27062 .) # No --srcdir option. We are building in place.
bec39cab 27063 ac_srcdir=.
b4e70030
JB
27064 if test -z "$ac_top_builddir"; then
27065 ac_top_srcdir=.
27066 else
27067 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27068 fi ;;
27069 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 27070 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
27071 ac_top_srcdir=$srcdir ;;
27072 *) # Relative path.
27073 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27074 ac_top_srcdir=$ac_top_builddir$srcdir ;;
bec39cab
AC
27075esac
27076
b4e70030
JB
27077# Do not use `cd foo && pwd` to compute absolute paths, because
27078# the directories may not exist.
27079case `pwd` in
27080.) ac_abs_builddir="$ac_dir";;
27081*)
27082 case "$ac_dir" in
27083 .) ac_abs_builddir=`pwd`;;
27084 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27085 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27086 esac;;
27087esac
27088case $ac_abs_builddir in
27089.) ac_abs_top_builddir=${ac_top_builddir}.;;
27090*)
27091 case ${ac_top_builddir}. in
27092 .) ac_abs_top_builddir=$ac_abs_builddir;;
27093 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27094 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27095 esac;;
27096esac
27097case $ac_abs_builddir in
27098.) ac_abs_srcdir=$ac_srcdir;;
27099*)
27100 case $ac_srcdir in
27101 .) ac_abs_srcdir=$ac_abs_builddir;;
27102 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27103 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27104 esac;;
27105esac
27106case $ac_abs_builddir in
27107.) ac_abs_top_srcdir=$ac_top_srcdir;;
27108*)
27109 case $ac_top_srcdir in
27110 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27111 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27112 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27113 esac;;
27114esac
c906108c 27115
c906108c 27116
bec39cab
AC
27117 case $INSTALL in
27118 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
b4e70030 27119 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c 27120 esac
121ce6e5 27121
b4e70030
JB
27122 if test x"$ac_file" != x-; then
27123 { echo "$as_me:$LINENO: creating $ac_file" >&5
27124echo "$as_me: creating $ac_file" >&6;}
27125 rm -f "$ac_file"
27126 fi
27127 # Let's still pretend it is `configure' which instantiates (i.e., don't
27128 # use $as_me), people would be surprised to read:
27129 # /* config.h. Generated by config.status. */
27130 if test x"$ac_file" = x-; then
27131 configure_input=
27132 else
27133 configure_input="$ac_file. "
27134 fi
27135 configure_input=$configure_input"Generated from `echo $ac_file_in |
27136 sed 's,.*/,,'` by configure."
27137
27138 # First look for the input files in the build tree, otherwise in the
27139 # src tree.
27140 ac_file_inputs=`IFS=:
27141 for f in $ac_file_in; do
27142 case $f in
27143 -) echo $tmp/stdin ;;
27144 [\\/$]*)
27145 # Absolute (can't be DOS-style, as IFS=:)
27146 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27147echo "$as_me: error: cannot find input file: $f" >&2;}
27148 { (exit 1); exit 1; }; }
27149 echo "$f";;
27150 *) # Relative
27151 if test -f "$f"; then
27152 # Build tree
27153 echo "$f"
27154 elif test -f "$srcdir/$f"; then
27155 # Source tree
27156 echo "$srcdir/$f"
27157 else
27158 # /dev/null tree
27159 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27160echo "$as_me: error: cannot find input file: $f" >&2;}
27161 { (exit 1); exit 1; }; }
27162 fi;;
27163 esac
27164 done` || { (exit 1); exit 1; }
4e8d927d 27165_ACEOF
bec39cab
AC
27166cat >>$CONFIG_STATUS <<_ACEOF
27167 sed "$ac_vpsub
27168$extrasub
27169_ACEOF
27170cat >>$CONFIG_STATUS <<\_ACEOF
27171:t
27172/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b4e70030
JB
27173s,@configure_input@,$configure_input,;t t
27174s,@srcdir@,$ac_srcdir,;t t
27175s,@abs_srcdir@,$ac_abs_srcdir,;t t
27176s,@top_srcdir@,$ac_top_srcdir,;t t
27177s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27178s,@builddir@,$ac_builddir,;t t
27179s,@abs_builddir@,$ac_abs_builddir,;t t
27180s,@top_builddir@,$ac_top_builddir,;t t
27181s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27182s,@INSTALL@,$ac_INSTALL,;t t
27183" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27184 rm -f $tmp/stdin
27185 if test x"$ac_file" != x-; then
27186 mv $tmp/out $ac_file
27187 else
27188 cat $tmp/out
27189 rm -f $tmp/out
27190 fi
27191
27192done
27193_ACEOF
27194cat >>$CONFIG_STATUS <<\_ACEOF
27195
27196#
27197# CONFIG_HEADER section.
27198#
27199
27200# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27201# NAME is the cpp macro being defined and VALUE is the value it is being given.
27202#
27203# ac_d sets the value in "#define NAME VALUE" lines.
27204ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27205ac_dB='[ ].*$,\1#\2'
27206ac_dC=' '
27207ac_dD=',;t'
27208# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27209ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27210ac_uB='$,\1#\2define\3'
27211ac_uC=' '
27212ac_uD=',;t'
27213
27214for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27215 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab 27216 case $ac_file in
b4e70030
JB
27217 - | *:- | *:-:* ) # input from stdin
27218 cat >$tmp/stdin
27219 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27220 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27221 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27222 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27223 * ) ac_file_in=$ac_file.in ;;
c906108c 27224 esac
b4e70030
JB
27225
27226 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27227echo "$as_me: creating $ac_file" >&6;}
27228
27229 # First look for the input files in the build tree, otherwise in the
27230 # src tree.
27231 ac_file_inputs=`IFS=:
27232 for f in $ac_file_in; do
27233 case $f in
27234 -) echo $tmp/stdin ;;
27235 [\\/$]*)
27236 # Absolute (can't be DOS-style, as IFS=:)
27237 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27238echo "$as_me: error: cannot find input file: $f" >&2;}
27239 { (exit 1); exit 1; }; }
27240 # Do quote $f, to prevent DOS paths from being IFS'd.
27241 echo "$f";;
27242 *) # Relative
27243 if test -f "$f"; then
27244 # Build tree
27245 echo "$f"
27246 elif test -f "$srcdir/$f"; then
27247 # Source tree
27248 echo "$srcdir/$f"
27249 else
27250 # /dev/null tree
27251 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27252echo "$as_me: error: cannot find input file: $f" >&2;}
27253 { (exit 1); exit 1; }; }
27254 fi;;
27255 esac
27256 done` || { (exit 1); exit 1; }
27257 # Remove the trailing spaces.
27258 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27259
27260_ACEOF
27261
27262# Transform confdefs.h into two sed scripts, `conftest.defines' and
27263# `conftest.undefs', that substitutes the proper values into
27264# config.h.in to produce config.h. The first handles `#define'
27265# templates, and the second `#undef' templates.
27266# And first: Protect against being on the right side of a sed subst in
27267# config.status. Protect against being in an unquoted here document
27268# in config.status.
27269rm -f conftest.defines conftest.undefs
27270# Using a here document instead of a string reduces the quoting nightmare.
27271# Putting comments in sed scripts is not portable.
27272#
27273# `end' is used to avoid that the second main sed command (meant for
27274# 0-ary CPP macros) applies to n-ary macro definitions.
27275# See the Autoconf documentation for `clear'.
27276cat >confdef2sed.sed <<\_ACEOF
27277s/[\\&,]/\\&/g
27278s,[\\$`],\\&,g
27279t clear
27280: clear
27281s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27282t end
27283s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27284: end
27285_ACEOF
27286# If some macros were called several times there might be several times
27287# the same #defines, which is useless. Nevertheless, we may not want to
27288# sort them, since we want the *last* AC-DEFINE to be honored.
27289uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27290sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27291rm -f confdef2sed.sed
27292
27293# This sed command replaces #undef with comments. This is necessary, for
c906108c
SS
27294# example, in the case of _POSIX_SOURCE, which is predefined and required
27295# on some systems where configure will not decide to define it.
b4e70030
JB
27296cat >>conftest.undefs <<\_ACEOF
27297s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27298_ACEOF
27299
27300# Break up conftest.defines because some shells have a limit on the size
27301# of here documents, and old seds have small limits too (100 cmds).
27302echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27303echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27304echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27305echo ' :' >>$CONFIG_STATUS
27306rm -f conftest.tail
27307while grep . conftest.defines >/dev/null
bec39cab 27308do
b4e70030
JB
27309 # Write a limited-size here document to $tmp/defines.sed.
27310 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27311 # Speed up: don't consider the non `#define' lines.
27312 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27313 # Work around the forget-to-reset-the-flag bug.
27314 echo 't clr' >>$CONFIG_STATUS
27315 echo ': clr' >>$CONFIG_STATUS
27316 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 27317 echo 'CEOF
b4e70030
JB
27318 sed -f $tmp/defines.sed $tmp/in >$tmp/out
27319 rm -f $tmp/in
27320 mv $tmp/out $tmp/in
27321' >>$CONFIG_STATUS
27322 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
bec39cab
AC
27323 rm -f conftest.defines
27324 mv conftest.tail conftest.defines
27325done
b4e70030
JB
27326rm -f conftest.defines
27327echo ' fi # grep' >>$CONFIG_STATUS
27328echo >>$CONFIG_STATUS
27329
27330# Break up conftest.undefs because some shells have a limit on the size
27331# of here documents, and old seds have small limits too (100 cmds).
27332echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27333rm -f conftest.tail
27334while grep . conftest.undefs >/dev/null
27335do
27336 # Write a limited-size here document to $tmp/undefs.sed.
27337 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27338 # Speed up: don't consider the non `#undef'
27339 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27340 # Work around the forget-to-reset-the-flag bug.
27341 echo 't clr' >>$CONFIG_STATUS
27342 echo ': clr' >>$CONFIG_STATUS
27343 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27344 echo 'CEOF
27345 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27346 rm -f $tmp/in
27347 mv $tmp/out $tmp/in
27348' >>$CONFIG_STATUS
27349 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27350 rm -f conftest.undefs
27351 mv conftest.tail conftest.undefs
27352done
27353rm -f conftest.undefs
bec39cab
AC
27354
27355cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030
JB
27356 # Let's still pretend it is `configure' which instantiates (i.e., don't
27357 # use $as_me), people would be surprised to read:
27358 # /* config.h. Generated by config.status. */
27359 if test x"$ac_file" = x-; then
27360 echo "/* Generated by configure. */" >$tmp/config.h
27361 else
27362 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27363 fi
27364 cat $tmp/in >>$tmp/config.h
27365 rm -f $tmp/in
bec39cab 27366 if test x"$ac_file" != x-; then
b4e70030 27367 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
bec39cab
AC
27368 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27369echo "$as_me: $ac_file is unchanged" >&6;}
27370 else
b4e70030
JB
27371 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27372$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27373 X"$ac_file" : 'X\(//\)[^/]' \| \
27374 X"$ac_file" : 'X\(//\)$' \| \
27375 X"$ac_file" : 'X\(/\)' \| \
27376 . : '\(.\)' 2>/dev/null ||
27377echo X"$ac_file" |
27378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27379 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27380 /^X\(\/\/\)$/{ s//\1/; q; }
27381 /^X\(\/\).*/{ s//\1/; q; }
27382 s/.*/./; q'`
27383 { if $as_mkdir_p; then
27384 mkdir -p "$ac_dir"
27385 else
27386 as_dir="$ac_dir"
27387 as_dirs=
27388 while test ! -d "$as_dir"; do
27389 as_dirs="$as_dir $as_dirs"
27390 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27391$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27392 X"$as_dir" : 'X\(//\)[^/]' \| \
27393 X"$as_dir" : 'X\(//\)$' \| \
27394 X"$as_dir" : 'X\(/\)' \| \
27395 . : '\(.\)' 2>/dev/null ||
27396echo X"$as_dir" |
27397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27398 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27399 /^X\(\/\/\)$/{ s//\1/; q; }
27400 /^X\(\/\).*/{ s//\1/; q; }
27401 s/.*/./; q'`
27402 done
27403 test ! -n "$as_dirs" || mkdir $as_dirs
27404 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27405echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27406 { (exit 1); exit 1; }; }; }
27407
bec39cab 27408 rm -f $ac_file
b4e70030 27409 mv $tmp/config.h $ac_file
bec39cab
AC
27410 fi
27411 else
b4e70030
JB
27412 cat $tmp/config.h
27413 rm -f $tmp/config.h
bec39cab 27414 fi
e28b3332
DJ
27415# Compute $ac_file's index in $config_headers.
27416_am_stamp_count=1
27417for _am_header in $config_headers :; do
27418 case $_am_header in
27419 $ac_file | $ac_file:* )
27420 break ;;
27421 * )
27422 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27423 esac
27424done
27425echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27426$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27427 X$ac_file : 'X\(//\)[^/]' \| \
27428 X$ac_file : 'X\(//\)$' \| \
27429 X$ac_file : 'X\(/\)' \| \
27430 . : '\(.\)' 2>/dev/null ||
27431echo X$ac_file |
27432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27433 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27434 /^X\(\/\/\)$/{ s//\1/; q; }
27435 /^X\(\/\).*/{ s//\1/; q; }
27436 s/.*/./; q'`/stamp-h$_am_stamp_count
b4e70030
JB
27437done
27438_ACEOF
27439cat >>$CONFIG_STATUS <<\_ACEOF
27440
27441#
27442# CONFIG_LINKS section.
27443#
27444
27445for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
27446 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27447 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 27448
b4e70030
JB
27449 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
27450echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
27451
27452 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
27453 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27454echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27455 { (exit 1); exit 1; }; }
c906108c 27456 fi
b4e70030
JB
27457 rm -f $ac_dest
27458
27459 # Make relative symlinks.
27460 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
27461$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27462 X"$ac_dest" : 'X\(//\)[^/]' \| \
27463 X"$ac_dest" : 'X\(//\)$' \| \
27464 X"$ac_dest" : 'X\(/\)' \| \
27465 . : '\(.\)' 2>/dev/null ||
27466echo X"$ac_dest" |
27467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27468 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27469 /^X\(\/\/\)$/{ s//\1/; q; }
27470 /^X\(\/\).*/{ s//\1/; q; }
27471 s/.*/./; q'`
27472 { if $as_mkdir_p; then
27473 mkdir -p "$ac_dest_dir"
27474 else
27475 as_dir="$ac_dest_dir"
27476 as_dirs=
27477 while test ! -d "$as_dir"; do
27478 as_dirs="$as_dir $as_dirs"
27479 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27480$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27481 X"$as_dir" : 'X\(//\)[^/]' \| \
27482 X"$as_dir" : 'X\(//\)$' \| \
27483 X"$as_dir" : 'X\(/\)' \| \
27484 . : '\(.\)' 2>/dev/null ||
27485echo X"$as_dir" |
27486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27488 /^X\(\/\/\)$/{ s//\1/; q; }
27489 /^X\(\/\).*/{ s//\1/; q; }
27490 s/.*/./; q'`
27491 done
27492 test ! -n "$as_dirs" || mkdir $as_dirs
27493 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
27494echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
27495 { (exit 1); exit 1; }; }; }
27496
27497 ac_builddir=.
27498
27499if test "$ac_dest_dir" != .; then
27500 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
27501 # A "../" for each directory in $ac_dir_suffix.
27502 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27503else
27504 ac_dir_suffix= ac_top_builddir=
27505fi
27506
27507case $srcdir in
27508 .) # No --srcdir option. We are building in place.
27509 ac_srcdir=.
27510 if test -z "$ac_top_builddir"; then
27511 ac_top_srcdir=.
27512 else
27513 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27514 fi ;;
27515 [\\/]* | ?:[\\/]* ) # Absolute path.
27516 ac_srcdir=$srcdir$ac_dir_suffix;
27517 ac_top_srcdir=$srcdir ;;
27518 *) # Relative path.
27519 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27520 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27521esac
27522
27523# Do not use `cd foo && pwd` to compute absolute paths, because
27524# the directories may not exist.
27525case `pwd` in
27526.) ac_abs_builddir="$ac_dest_dir";;
27527*)
27528 case "$ac_dest_dir" in
27529 .) ac_abs_builddir=`pwd`;;
27530 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
27531 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
27532 esac;;
27533esac
27534case $ac_abs_builddir in
27535.) ac_abs_top_builddir=${ac_top_builddir}.;;
27536*)
27537 case ${ac_top_builddir}. in
27538 .) ac_abs_top_builddir=$ac_abs_builddir;;
27539 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27540 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27541 esac;;
27542esac
27543case $ac_abs_builddir in
27544.) ac_abs_srcdir=$ac_srcdir;;
27545*)
27546 case $ac_srcdir in
27547 .) ac_abs_srcdir=$ac_abs_builddir;;
27548 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27549 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27550 esac;;
27551esac
27552case $ac_abs_builddir in
27553.) ac_abs_top_srcdir=$ac_top_srcdir;;
27554*)
27555 case $ac_top_srcdir in
27556 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27557 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27558 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27559 esac;;
27560esac
27561
bec39cab
AC
27562
27563 case $srcdir in
27564 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
b4e70030 27565 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c 27566 esac
b4e70030
JB
27567
27568 # Try a symlink, then a hard link, then a copy.
27569 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
27570 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
27571 cp -p $srcdir/$ac_source $ac_dest ||
27572 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
27573echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
bec39cab 27574 { (exit 1); exit 1; }; }
b4e70030
JB
27575done
27576_ACEOF
27577cat >>$CONFIG_STATUS <<\_ACEOF
27578
27579#
27580# CONFIG_COMMANDS section.
27581#
27582for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27583 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27584 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27585 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27586$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27587 X"$ac_dest" : 'X\(//\)[^/]' \| \
27588 X"$ac_dest" : 'X\(//\)$' \| \
27589 X"$ac_dest" : 'X\(/\)' \| \
27590 . : '\(.\)' 2>/dev/null ||
27591echo X"$ac_dest" |
27592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27593 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27594 /^X\(\/\/\)$/{ s//\1/; q; }
27595 /^X\(\/\).*/{ s//\1/; q; }
27596 s/.*/./; q'`
27597 { if $as_mkdir_p; then
27598 mkdir -p "$ac_dir"
27599 else
27600 as_dir="$ac_dir"
27601 as_dirs=
27602 while test ! -d "$as_dir"; do
27603 as_dirs="$as_dir $as_dirs"
27604 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27605$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27606 X"$as_dir" : 'X\(//\)[^/]' \| \
27607 X"$as_dir" : 'X\(//\)$' \| \
27608 X"$as_dir" : 'X\(/\)' \| \
27609 . : '\(.\)' 2>/dev/null ||
27610echo X"$as_dir" |
27611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27613 /^X\(\/\/\)$/{ s//\1/; q; }
27614 /^X\(\/\).*/{ s//\1/; q; }
27615 s/.*/./; q'`
27616 done
27617 test ! -n "$as_dirs" || mkdir $as_dirs
27618 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27619echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27620 { (exit 1); exit 1; }; }; }
27621
27622 ac_builddir=.
27623
27624if test "$ac_dir" != .; then
27625 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27626 # A "../" for each directory in $ac_dir_suffix.
27627 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27628else
27629 ac_dir_suffix= ac_top_builddir=
27630fi
27631
27632case $srcdir in
27633 .) # No --srcdir option. We are building in place.
27634 ac_srcdir=.
27635 if test -z "$ac_top_builddir"; then
27636 ac_top_srcdir=.
27637 else
27638 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27639 fi ;;
27640 [\\/]* | ?:[\\/]* ) # Absolute path.
27641 ac_srcdir=$srcdir$ac_dir_suffix;
27642 ac_top_srcdir=$srcdir ;;
27643 *) # Relative path.
27644 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27645 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27646esac
27647
27648# Do not use `cd foo && pwd` to compute absolute paths, because
27649# the directories may not exist.
27650case `pwd` in
27651.) ac_abs_builddir="$ac_dir";;
27652*)
27653 case "$ac_dir" in
27654 .) ac_abs_builddir=`pwd`;;
27655 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27656 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27657 esac;;
27658esac
27659case $ac_abs_builddir in
27660.) ac_abs_top_builddir=${ac_top_builddir}.;;
27661*)
27662 case ${ac_top_builddir}. in
27663 .) ac_abs_top_builddir=$ac_abs_builddir;;
27664 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27665 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27666 esac;;
27667esac
27668case $ac_abs_builddir in
27669.) ac_abs_srcdir=$ac_srcdir;;
27670*)
27671 case $ac_srcdir in
27672 .) ac_abs_srcdir=$ac_abs_builddir;;
27673 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27674 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27675 esac;;
27676esac
27677case $ac_abs_builddir in
27678.) ac_abs_top_srcdir=$ac_top_srcdir;;
27679*)
27680 case $ac_top_srcdir in
27681 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27682 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27683 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27684 esac;;
27685esac
bec39cab 27686
bec39cab 27687
b4e70030
JB
27688 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27689echo "$as_me: executing $ac_dest commands" >&6;}
27690 case $ac_dest in
a417dc56 27691 depdir ) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
e28b3332
DJ
27692 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27693 # Strip MF so we end up with the name of the file.
27694 mf=`echo "$mf" | sed -e 's/:.*$//'`
27695 # Check whether this is an Automake generated Makefile or not.
27696 # We used to match only the files named `Makefile.in', but
27697 # some people rename them; so instead we look at the file content.
27698 # Grep'ing the first line is not enough: some people post-process
27699 # each Makefile.in and add a new line on top of each file to say so.
27700 # So let's grep whole file.
27701 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27702 dirpart=`(dirname "$mf") 2>/dev/null ||
27703$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27704 X"$mf" : 'X\(//\)[^/]' \| \
27705 X"$mf" : 'X\(//\)$' \| \
27706 X"$mf" : 'X\(/\)' \| \
27707 . : '\(.\)' 2>/dev/null ||
27708echo X"$mf" |
27709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27710 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27711 /^X\(\/\/\)$/{ s//\1/; q; }
27712 /^X\(\/\).*/{ s//\1/; q; }
27713 s/.*/./; q'`
27714 else
27715 continue
27716 fi
27717 # Extract the definition of DEPDIR, am__include, and am__quote
27718 # from the Makefile without running `make'.
27719 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27720 test -z "$DEPDIR" && continue
27721 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27722 test -z "am__include" && continue
27723 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27724 # When using ansi2knr, U may be empty or an underscore; expand it
27725 U=`sed -n 's/^U = //p' < "$mf"`
27726 # Find all dependency output files, they are included files with
27727 # $(DEPDIR) in their names. We invoke sed twice because it is the
27728 # simplest approach to changing $(DEPDIR) to its actual value in the
27729 # expansion.
27730 for file in `sed -n "
27731 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27732 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27733 # Make sure the directory exists.
27734 test -f "$dirpart/$file" && continue
27735 fdir=`(dirname "$file") 2>/dev/null ||
27736$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27737 X"$file" : 'X\(//\)[^/]' \| \
27738 X"$file" : 'X\(//\)$' \| \
27739 X"$file" : 'X\(/\)' \| \
27740 . : '\(.\)' 2>/dev/null ||
27741echo X"$file" |
27742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27743 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27744 /^X\(\/\/\)$/{ s//\1/; q; }
27745 /^X\(\/\).*/{ s//\1/; q; }
27746 s/.*/./; q'`
27747 { if $as_mkdir_p; then
27748 mkdir -p $dirpart/$fdir
27749 else
27750 as_dir=$dirpart/$fdir
27751 as_dirs=
27752 while test ! -d "$as_dir"; do
27753 as_dirs="$as_dir $as_dirs"
27754 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27755$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27756 X"$as_dir" : 'X\(//\)[^/]' \| \
27757 X"$as_dir" : 'X\(//\)$' \| \
27758 X"$as_dir" : 'X\(/\)' \| \
27759 . : '\(.\)' 2>/dev/null ||
27760echo X"$as_dir" |
27761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27762 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27763 /^X\(\/\/\)$/{ s//\1/; q; }
27764 /^X\(\/\).*/{ s//\1/; q; }
27765 s/.*/./; q'`
27766 done
27767 test ! -n "$as_dirs" || mkdir $as_dirs
27768 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27769echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27770 { (exit 1); exit 1; }; }; }
27771
27772 # echo "creating $dirpart/$file"
27773 echo '# dummy' > "$dirpart/$file"
27774 done
27775done
4e8d927d 27776 ;;
b4e70030 27777 default )
c906108c 27778
db985757 27779sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
c906108c
SS
27780mv -f Makefile.tmp Makefile
27781
2acceee2 27782
c906108c
SS
27783case x$CONFIG_HEADERS in
27784xconfig.h:config.in)
27785echo > stamp-h ;;
27786esac
bec39cab
AC
27787 ;;
27788 esac
b4e70030
JB
27789done
27790_ACEOF
c906108c 27791
b4e70030 27792cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
27793
27794{ (exit 0); exit 0; }
27795_ACEOF
c906108c 27796chmod +x $CONFIG_STATUS
bec39cab
AC
27797ac_clean_files=$ac_clean_files_save
27798
27799
27800# configure is writing to config.log, and then calls config.status.
27801# config.status does its own redirection, appending to config.log.
27802# Unfortunately, on DOS this fails, as config.log is still kept open
27803# by configure, so config.status won't be able to write to it; its
27804# output is simply discarded. So we exec the FD to /dev/null,
27805# effectively closing config.log, so it can be properly (re)opened and
27806# appended to by config.status. When coming back to configure, we
27807# need to make the FD available again.
27808if test "$no_create" != yes; then
27809 ac_cs_success=:
27810 ac_config_status_args=
27811 test "$silent" = yes &&
27812 ac_config_status_args="$ac_config_status_args --quiet"
27813 exec 5>/dev/null
27814 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27815 exec 5>>config.log
27816 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27817 # would make configure fail if this is the last instruction.
27818 $ac_cs_success || { (exit 1); exit 1; }
27819fi
c906108c 27820
bec39cab 27821#
fdc59709 27822# CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
bec39cab 27823#
c906108c
SS
27824if test "$no_recursion" != yes; then
27825
27826 # Remove --cache-file and --srcdir arguments so they do not pile up.
27827 ac_sub_configure_args=
27828 ac_prev=
fdc59709
PB
27829 eval "set x $ac_configure_args"
27830 shift
27831 for ac_arg
27832 do
c906108c
SS
27833 if test -n "$ac_prev"; then
27834 ac_prev=
27835 continue
27836 fi
bec39cab 27837 case $ac_arg in
c906108c
SS
27838 -cache-file | --cache-file | --cache-fil | --cache-fi \
27839 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27840 ac_prev=cache_file ;;
27841 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
27842 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27843 | --c=*)
27844 ;;
27845 --config-cache | -C)
c906108c
SS
27846 ;;
27847 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27848 ac_prev=srcdir ;;
27849 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27850 ;;
bec39cab
AC
27851 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27852 ac_prev=prefix ;;
27853 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27854 ;;
fdc59709
PB
27855 *)
27856 case $ac_arg in
27857 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27858 esac
27859 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
c906108c
SS
27860 esac
27861 done
27862
bec39cab
AC
27863 # Always prepend --prefix to ensure using the same prefix
27864 # in subdir configurations.
fdc59709
PB
27865 ac_arg="--prefix=$prefix"
27866 case $ac_arg in
27867 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27868 esac
27869 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
bec39cab 27870
b4e70030 27871 ac_popdir=`pwd`
bec39cab 27872 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
27873
27874 # Do not complain, so a configure script can configure whichever
27875 # parts of a large source tree are present.
fdc59709 27876 test -d "$srcdir/$ac_dir" || continue
c906108c 27877
b4e70030
JB
27878 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
27879echo "$as_me: configuring in $ac_dir" >&6;}
27880 { if $as_mkdir_p; then
27881 mkdir -p "$ac_dir"
27882 else
27883 as_dir="$ac_dir"
bec39cab 27884 as_dirs=
b4e70030
JB
27885 while test ! -d "$as_dir"; do
27886 as_dirs="$as_dir $as_dirs"
27887 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
27888$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27889 X"$as_dir" : 'X\(//\)[^/]' \| \
27890 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
27891 X"$as_dir" : 'X\(/\)' \| \
27892 . : '\(.\)' 2>/dev/null ||
bec39cab 27893echo X"$as_dir" |
b4e70030
JB
27894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27895 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27896 /^X\(\/\/\)$/{ s//\1/; q; }
27897 /^X\(\/\).*/{ s//\1/; q; }
27898 s/.*/./; q'`
bec39cab 27899 done
b4e70030
JB
27900 test ! -n "$as_dirs" || mkdir $as_dirs
27901 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27902echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 27903 { (exit 1); exit 1; }; }; }
b4e70030 27904
bec39cab
AC
27905 ac_builddir=.
27906
b4e70030 27907if test "$ac_dir" != .; then
bec39cab 27908 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
27909 # A "../" for each directory in $ac_dir_suffix.
27910 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27911else
27912 ac_dir_suffix= ac_top_builddir=
27913fi
bec39cab
AC
27914
27915case $srcdir in
b4e70030 27916 .) # No --srcdir option. We are building in place.
bec39cab 27917 ac_srcdir=.
b4e70030
JB
27918 if test -z "$ac_top_builddir"; then
27919 ac_top_srcdir=.
27920 else
27921 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27922 fi ;;
27923 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 27924 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
27925 ac_top_srcdir=$srcdir ;;
27926 *) # Relative path.
27927 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27928 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27929esac
27930
27931# Do not use `cd foo && pwd` to compute absolute paths, because
27932# the directories may not exist.
27933case `pwd` in
27934.) ac_abs_builddir="$ac_dir";;
27935*)
27936 case "$ac_dir" in
27937 .) ac_abs_builddir=`pwd`;;
27938 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27939 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27940 esac;;
27941esac
27942case $ac_abs_builddir in
27943.) ac_abs_top_builddir=${ac_top_builddir}.;;
27944*)
27945 case ${ac_top_builddir}. in
27946 .) ac_abs_top_builddir=$ac_abs_builddir;;
27947 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27948 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27949 esac;;
27950esac
27951case $ac_abs_builddir in
27952.) ac_abs_srcdir=$ac_srcdir;;
27953*)
27954 case $ac_srcdir in
27955 .) ac_abs_srcdir=$ac_abs_builddir;;
27956 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27957 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27958 esac;;
27959esac
27960case $ac_abs_builddir in
27961.) ac_abs_top_srcdir=$ac_top_srcdir;;
27962*)
27963 case $ac_top_srcdir in
27964 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27965 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27966 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27967 esac;;
bec39cab 27968esac
c906108c 27969
c906108c 27970
fdc59709 27971 cd "$ac_dir"
c906108c
SS
27972
27973 # Check for guested configure; otherwise get Cygnus style configure.
fdc59709
PB
27974 if test -f "$ac_srcdir/configure.gnu"; then
27975 ac_sub_configure=$ac_srcdir/configure.gnu
27976 elif test -f "$ac_srcdir/configure"; then
27977 ac_sub_configure=$ac_srcdir/configure
27978 elif test -f "$ac_srcdir/configure.in"; then
27979 # This should be Cygnus configure.
27980 ac_sub_configure=$ac_aux_dir/configure
c906108c 27981 else
bec39cab
AC
27982 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27983echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
27984 ac_sub_configure=
27985 fi
27986
27987 # The recursion is here.
27988 if test -n "$ac_sub_configure"; then
c906108c 27989 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
27990 case $cache_file in
27991 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
b4e70030
JB
27992 *) # Relative path.
27993 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 27994 esac
c906108c 27995
fdc59709
PB
27996 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27997echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 27998 # The eval makes quoting arguments work.
fdc59709
PB
27999 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28000 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
bec39cab
AC
28001 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
28002echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
28003 { (exit 1); exit 1; }; }
c906108c
SS
28004 fi
28005
fdc59709 28006 cd "$ac_popdir"
c906108c
SS
28007 done
28008fi
28009
28010
28011exit 0
This page took 2.389596 seconds and 4 git commands to generate.