* score-tdep.c (score_print_insn): Get the current endianess from
[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"
783e057b 317ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir GL_COND_LIBTOOL_TRUE GL_COND_LIBTOOL_FALSE GNULIB_MEMMEM GNULIB_MEMPCPY GNULIB_MEMRCHR GNULIB_STPCPY GNULIB_STPNCPY GNULIB_STRCHRNUL GNULIB_STRDUP GNULIB_STRNDUP GNULIB_STRNLEN GNULIB_STRPBRK GNULIB_STRSEP GNULIB_STRSTR GNULIB_STRCASESTR GNULIB_STRTOK_R GNULIB_MBSLEN GNULIB_MBSNLEN GNULIB_MBSCHR GNULIB_MBSRCHR GNULIB_MBSSTR GNULIB_MBSCASECMP GNULIB_MBSNCASECMP GNULIB_MBSPCASECMP GNULIB_MBSCASESTR GNULIB_MBSCSPN GNULIB_MBSPBRK GNULIB_MBSSPN GNULIB_MBSSEP GNULIB_MBSTOK_R GNULIB_STRERROR GNULIB_STRSIGNAL HAVE_DECL_MEMMEM HAVE_MEMPCPY HAVE_DECL_MEMRCHR HAVE_STPCPY HAVE_STPNCPY HAVE_STRCHRNUL HAVE_DECL_STRDUP HAVE_STRNDUP HAVE_DECL_STRNDUP HAVE_DECL_STRNLEN HAVE_STRPBRK HAVE_STRSEP HAVE_STRCASESTR HAVE_DECL_STRTOK_R HAVE_DECL_STRERROR HAVE_DECL_STRSIGNAL REPLACE_STRERROR REPLACE_STRSIGNAL REPLACE_MEMMEM REPLACE_STRCASESTR REPLACE_STRSTR HAVE_LONG_LONG_INT HAVE_UNSIGNED_LONG_LONG_INT HAVE_INTTYPES_H HAVE_SYS_TYPES_H INCLUDE_NEXT NEXT_STDINT_H HAVE_STDINT_H HAVE_SYS_INTTYPES_H HAVE_SYS_BITYPES_H BITSIZEOF_PTRDIFF_T BITSIZEOF_SIG_ATOMIC_T BITSIZEOF_SIZE_T BITSIZEOF_WCHAR_T BITSIZEOF_WINT_T HAVE_SIGNED_SIG_ATOMIC_T HAVE_SIGNED_WCHAR_T HAVE_SIGNED_WINT_T PTRDIFF_T_SUFFIX SIG_ATOMIC_T_SUFFIX SIZE_T_SUFFIX WCHAR_T_SUFFIX WINT_T_SUFFIX STDINT_H NEXT_STRING_H GNULIB_WCWIDTH HAVE_DECL_WCWIDTH REPLACE_WCWIDTH WCHAR_H HAVE_WCHAR_H NEXT_WCHAR_H LIBGNU_LIBDEPS LIBGNU_LTLIBDEPS PACKAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE subdirs TARGET_OBS LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h LIBICONV LIBOBJS LTLIBOBJS gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS'
a4ce5b0d 318ac_subst_files='host_makefile_frag'
c906108c
SS
319
320# Initialize some variables set by options.
bec39cab
AC
321ac_init_help=
322ac_init_version=false
c906108c
SS
323# The variables have the same names as the options, with
324# dashes changed to underlines.
bec39cab 325cache_file=/dev/null
c906108c 326exec_prefix=NONE
c906108c 327no_create=
c906108c
SS
328no_recursion=
329prefix=NONE
330program_prefix=NONE
331program_suffix=NONE
332program_transform_name=s,x,x,
333silent=
334site=
335srcdir=
c906108c
SS
336verbose=
337x_includes=NONE
338x_libraries=NONE
bec39cab
AC
339
340# Installation directory options.
341# These are left unexpanded so users can "make install exec_prefix=/foo"
342# and all the variables that are supposed to be based on exec_prefix
343# by default will actually change.
344# Use braces instead of parens because sh, perl, etc. also accept them.
c906108c
SS
345bindir='${exec_prefix}/bin'
346sbindir='${exec_prefix}/sbin'
347libexecdir='${exec_prefix}/libexec'
b4e70030 348datadir='${prefix}/share'
c906108c
SS
349sysconfdir='${prefix}/etc'
350sharedstatedir='${prefix}/com'
351localstatedir='${prefix}/var'
b4e70030 352libdir='${exec_prefix}/lib'
c906108c
SS
353includedir='${prefix}/include'
354oldincludedir='/usr/include'
b4e70030
JB
355infodir='${prefix}/info'
356mandir='${prefix}/man'
c906108c 357
c906108c
SS
358ac_prev=
359for ac_option
360do
c906108c
SS
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
b4e70030 363 eval "$ac_prev=\$ac_option"
c906108c
SS
364 ac_prev=
365 continue
366 fi
367
b4e70030 368 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
369
370 # Accept the important Cygnus configure options, so we can diagnose typos.
371
b4e70030 372 case $ac_option in
c906108c
SS
373
374 -bindir | --bindir | --bindi | --bind | --bin | --bi)
375 ac_prev=bindir ;;
376 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 377 bindir=$ac_optarg ;;
c906108c
SS
378
379 -build | --build | --buil | --bui | --bu)
bec39cab 380 ac_prev=build_alias ;;
c906108c 381 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 382 build_alias=$ac_optarg ;;
c906108c
SS
383
384 -cache-file | --cache-file | --cache-fil | --cache-fi \
385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386 ac_prev=cache_file ;;
387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
389 cache_file=$ac_optarg ;;
390
391 --config-cache | -C)
392 cache_file=config.cache ;;
c906108c 393
b4e70030 394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
c906108c 395 ac_prev=datadir ;;
b4e70030
JB
396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397 | --da=*)
bec39cab 398 datadir=$ac_optarg ;;
c906108c
SS
399
400 -disable-* | --disable-*)
bec39cab 401 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 402 # Reject names that are not valid shell variable names.
bec39cab
AC
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
b4e70030 407 eval "enable_$ac_feature=no" ;;
c906108c
SS
408
409 -enable-* | --enable-*)
bec39cab 410 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 411 # Reject names that are not valid shell variable names.
bec39cab
AC
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
b4e70030
JB
416 case $ac_option in
417 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 *) ac_optarg=yes ;;
419 esac
420 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
421
422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424 | --exec | --exe | --ex)
425 ac_prev=exec_prefix ;;
426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428 | --exec=* | --exe=* | --ex=*)
bec39cab 429 exec_prefix=$ac_optarg ;;
c906108c
SS
430
431 -gas | --gas | --ga | --g)
432 # Obsolete; use --with-gas.
433 with_gas=yes ;;
434
bec39cab
AC
435 -help | --help | --hel | --he | -h)
436 ac_init_help=long ;;
437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438 ac_init_help=recursive ;;
439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440 ac_init_help=short ;;
c906108c
SS
441
442 -host | --host | --hos | --ho)
bec39cab 443 ac_prev=host_alias ;;
c906108c 444 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 445 host_alias=$ac_optarg ;;
c906108c
SS
446
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 452 includedir=$ac_optarg ;;
c906108c
SS
453
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
455 ac_prev=infodir ;;
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 457 infodir=$ac_optarg ;;
c906108c
SS
458
459 -libdir | --libdir | --libdi | --libd)
460 ac_prev=libdir ;;
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 462 libdir=$ac_optarg ;;
c906108c
SS
463
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
bec39cab 469 libexecdir=$ac_optarg ;;
c906108c
SS
470
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
b4e70030
JB
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
c906108c
SS
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
b4e70030
JB
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
bec39cab 478 localstatedir=$ac_optarg ;;
c906108c
SS
479
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481 ac_prev=mandir ;;
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 483 mandir=$ac_optarg ;;
c906108c
SS
484
485 -nfp | --nfp | --nf)
486 # Obsolete; use --without-fp.
487 with_fp=no ;;
488
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 490 | --no-cr | --no-c | -n)
c906108c
SS
491 no_create=yes ;;
492
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 no_recursion=yes ;;
496
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 504 oldincludedir=$ac_optarg ;;
c906108c
SS
505
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507 ac_prev=prefix ;;
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 509 prefix=$ac_optarg ;;
c906108c
SS
510
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 516 program_prefix=$ac_optarg ;;
c906108c
SS
517
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 523 program_suffix=$ac_optarg ;;
c906108c
SS
524
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 540 program_transform_name=$ac_optarg ;;
c906108c
SS
541
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
544 silent=yes ;;
545
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547 ac_prev=sbindir ;;
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549 | --sbi=* | --sb=*)
bec39cab 550 sbindir=$ac_optarg ;;
c906108c
SS
551
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
555 | --sha | --sh)
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560 | --sha=* | --sh=*)
bec39cab 561 sharedstatedir=$ac_optarg ;;
c906108c
SS
562
563 -site | --site | --sit)
564 ac_prev=site ;;
565 -site=* | --site=* | --sit=*)
bec39cab 566 site=$ac_optarg ;;
3ace7edb 567
c906108c
SS
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569 ac_prev=srcdir ;;
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 571 srcdir=$ac_optarg ;;
c906108c
SS
572
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 578 sysconfdir=$ac_optarg ;;
c906108c
SS
579
580 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 581 ac_prev=target_alias ;;
c906108c 582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 583 target_alias=$ac_optarg ;;
c906108c
SS
584
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 verbose=yes ;;
587
bec39cab
AC
588 -version | --version | --versio | --versi | --vers | -V)
589 ac_init_version=: ;;
c906108c
SS
590
591 -with-* | --with-*)
bec39cab 592 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 593 # Reject names that are not valid shell variable names.
bec39cab
AC
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
c906108c 597 ac_package=`echo $ac_package| sed 's/-/_/g'`
b4e70030
JB
598 case $ac_option in
599 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 *) ac_optarg=yes ;;
601 esac
602 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
603
604 -without-* | --without-*)
bec39cab 605 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 606 # Reject names that are not valid shell variable names.
bec39cab
AC
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package | sed 's/-/_/g'`
b4e70030 611 eval "with_$ac_package=no" ;;
c906108c
SS
612
613 --x)
614 # Obsolete; use --with-x.
615 with_x=yes ;;
616
617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618 | --x-incl | --x-inc | --x-in | --x-i)
619 ac_prev=x_includes ;;
620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 622 x_includes=$ac_optarg ;;
c906108c
SS
623
624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626 ac_prev=x_libraries ;;
627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 629 x_libraries=$ac_optarg ;;
c906108c 630
bec39cab
AC
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
c906108c
SS
634 ;;
635
bec39cab
AC
636 *=*)
637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
b4e70030
JB
642 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
bec39cab
AC
644 export $ac_envvar ;;
645
c906108c 646 *)
bec39cab
AC
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
652 ;;
653
654 esac
655done
656
657if test -n "$ac_prev"; then
bec39cab
AC
658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
c906108c 661fi
c906108c 662
b4e70030
JB
663# Be sure to have absolute paths.
664for ac_var in exec_prefix prefix
c906108c 665do
b4e70030 666 eval ac_val=$`echo $ac_var`
bec39cab 667 case $ac_val in
b4e70030
JB
668 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
671 esac
672done
673
674# Be sure to have absolute paths.
675for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
677do
678 eval ac_val=$`echo $ac_var`
679 case $ac_val in
680 [\\/$]* | ?:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
c906108c
SS
683 esac
684done
685
bec39cab
AC
686# There might be people who depend on the old broken behavior: `$host'
687# used to hold the argument of --host etc.
688# FIXME: To remove some day.
689build=$build_alias
690host=$host_alias
691target=$target_alias
692
693# FIXME: To remove some day.
694if test "x$host_alias" != x; then
695 if test "x$build_alias" = x; then
696 cross_compiling=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
700 cross_compiling=yes
701 fi
702fi
c906108c 703
bec39cab
AC
704ac_tool_prefix=
705test -n "$host_alias" && ac_tool_prefix=$host_alias-
706
707test "$silent" = yes && exec 6>/dev/null
c906108c 708
c906108c
SS
709
710# Find the source files, if location was not specified.
711if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
b4e70030
JB
713 # Try the directory containing this script, then its parent.
714 ac_confdir=`(dirname "$0") 2>/dev/null ||
bec39cab
AC
715$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
bec39cab 720echo X"$0" |
b4e70030
JB
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
725 s/.*/./; q'`
c906108c 726 srcdir=$ac_confdir
b4e70030 727 if test ! -r $srcdir/$ac_unique_file; then
c906108c
SS
728 srcdir=..
729 fi
730else
731 ac_srcdir_defaulted=no
732fi
b4e70030
JB
733if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
737 else
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
bec39cab 739 { (exit 1); exit 1; }; }
b4e70030 740 fi
c906108c 741fi
b4e70030
JB
742(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
bec39cab 744 { (exit 1); exit 1; }; }
b4e70030
JB
745srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746ac_env_build_alias_set=${build_alias+set}
747ac_env_build_alias_value=$build_alias
748ac_cv_env_build_alias_set=${build_alias+set}
749ac_cv_env_build_alias_value=$build_alias
750ac_env_host_alias_set=${host_alias+set}
751ac_env_host_alias_value=$host_alias
752ac_cv_env_host_alias_set=${host_alias+set}
753ac_cv_env_host_alias_value=$host_alias
754ac_env_target_alias_set=${target_alias+set}
755ac_env_target_alias_value=$target_alias
756ac_cv_env_target_alias_set=${target_alias+set}
757ac_cv_env_target_alias_value=$target_alias
758ac_env_CC_set=${CC+set}
759ac_env_CC_value=$CC
760ac_cv_env_CC_set=${CC+set}
761ac_cv_env_CC_value=$CC
762ac_env_CFLAGS_set=${CFLAGS+set}
763ac_env_CFLAGS_value=$CFLAGS
764ac_cv_env_CFLAGS_set=${CFLAGS+set}
765ac_cv_env_CFLAGS_value=$CFLAGS
766ac_env_LDFLAGS_set=${LDFLAGS+set}
767ac_env_LDFLAGS_value=$LDFLAGS
768ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769ac_cv_env_LDFLAGS_value=$LDFLAGS
770ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_env_CPPFLAGS_value=$CPPFLAGS
772ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774ac_env_CPP_set=${CPP+set}
775ac_env_CPP_value=$CPP
776ac_cv_env_CPP_set=${CPP+set}
777ac_cv_env_CPP_value=$CPP
c906108c 778
bec39cab
AC
779#
780# Report the --help message.
781#
782if test "$ac_init_help" = "long"; then
783 # Omit some internal or obsolete options to make the list less imposing.
784 # This message is too long to be a string in the A/UX 3.1 sh.
785 cat <<_ACEOF
786\`configure' configures this package to adapt to many kinds of systems.
787
788Usage: $0 [OPTION]... [VAR=VALUE]...
789
790To assign environment variables (e.g., CC, CFLAGS...), specify them as
791VAR=VALUE. See below for descriptions of some of the useful variables.
792
793Defaults for the options are specified in brackets.
794
795Configuration:
796 -h, --help display this help and exit
797 --help=short display options specific to this package
798 --help=recursive display the short help of all the included packages
799 -V, --version display version information and exit
800 -q, --quiet, --silent do not print \`checking...' messages
801 --cache-file=FILE cache test results in FILE [disabled]
802 -C, --config-cache alias for \`--cache-file=config.cache'
803 -n, --no-create do not create output files
804 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805
b4e70030
JB
806_ACEOF
807
808 cat <<_ACEOF
bec39cab
AC
809Installation directories:
810 --prefix=PREFIX install architecture-independent files in PREFIX
811 [$ac_default_prefix]
812 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 [PREFIX]
814
815By default, \`make install' will install all the files in
816\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
817an installation prefix other than \`$ac_default_prefix' using \`--prefix',
818for instance \`--prefix=\$HOME'.
819
820For better control, use the options below.
821
822Fine tuning of the installation directories:
823 --bindir=DIR user executables [EPREFIX/bin]
824 --sbindir=DIR system admin executables [EPREFIX/sbin]
825 --libexecdir=DIR program executables [EPREFIX/libexec]
b4e70030 826 --datadir=DIR read-only architecture-independent data [PREFIX/share]
bec39cab
AC
827 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
828 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
829 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
830 --libdir=DIR object code libraries [EPREFIX/lib]
831 --includedir=DIR C header files [PREFIX/include]
832 --oldincludedir=DIR C header files for non-gcc [/usr/include]
b4e70030
JB
833 --infodir=DIR info documentation [PREFIX/info]
834 --mandir=DIR man documentation [PREFIX/man]
bec39cab
AC
835_ACEOF
836
837 cat <<\_ACEOF
838
839Program names:
840 --program-prefix=PREFIX prepend PREFIX to installed program names
841 --program-suffix=SUFFIX append SUFFIX to installed program names
842 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
843
844X features:
845 --x-includes=DIR X include files are in DIR
846 --x-libraries=DIR X library files are in DIR
847
848System types:
849 --build=BUILD configure for building on BUILD [guessed]
850 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 --target=TARGET configure for building compilers for TARGET [HOST]
852_ACEOF
853fi
854
855if test -n "$ac_init_help"; then
856
857 cat <<\_ACEOF
858
859Optional Features:
860 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
861 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85981d60
AC
862 --enable-maintainer-mode enable make rules and dependencies not useful
863 (and sometimes confusing) to the casual installer
e28b3332
DJ
864 --disable-dependency-tracking speeds up one-time build
865 --enable-dependency-tracking do not reject slow dependency extractors
d0c678e6 866 --enable-targets alternative target configurations
c0993dbe 867 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
bec39cab
AC
868 --disable-gdbcli disable command-line interface (CLI)
869 --disable-gdbmi disable machine-interface (MI)
870 --enable-tui enable full-screen terminal user interface (TUI)
871 --enable-gdbtk enable gdbtk graphical user interface (GUI)
872 --enable-profiling enable profiling of GDB
3841debe 873 --disable-rpath do not hardcode runtime library paths
094a342e 874 --enable-werror treat compile warnings as errors
bec39cab
AC
875 --enable-build-warnings Enable build-time compiler warnings if gcc is used
876 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
877 --enable-sim Link gdb with simulator
878 --enable-multi-ice build the multi-ice-gdb-server
879
880Optional Packages:
881 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
882 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
bec39cab
AC
883 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
884 --with-libunwind Use libunwind frame unwinding support
6a30b0a5 885 --with-system-readline use installed readline library
5c39566f 886 --with-expat include expat support (auto/yes/no)
3841debe
DJ
887 --with-gnu-ld assume the C compiler uses GNU ld default=no
888 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
889 --without-libexpat-prefix don't search for libexpat in includedir and libdir
bec39cab
AC
890 --without-included-regex don't use included regex; this is the default
891 on systems with version 2 of the GNU C library
892 (use with caution on other system)
893 --with-sysroot=DIR Search for usr/lib et al within DIR.
894 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
895 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
896 --with-tclinclude=DIR Directory where tcl private headers are
897 --with-tkinclude=DIR Directory where tk private headers are
898 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
899 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
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
1328 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1329echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1330 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1331echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1332 { (exit 1); exit 1; }; }
c906108c
SS
1333fi
1334
b4e70030
JB
1335ac_ext=c
1336ac_cpp='$CPP $CPPFLAGS'
1337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1339ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1340
1341
783e057b
DJ
1342gl_header_list="$gl_header_list stdint.h"
1343gl_header_list="$gl_header_list wchar.h"
1344gl_header_list="$gl_header_list string.h"
bec39cab
AC
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
bec39cab 1361
b4e70030
JB
1362 ac_config_headers="$ac_config_headers config.h:config.in"
1363
1364echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1365echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1366 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
413ccac7 1367if test "${enable_maintainer_mode+set}" = set; then
b4e70030
JB
1368 enableval="$enable_maintainer_mode"
1369 USE_MAINTAINER_MODE=$enableval
413ccac7
AC
1370else
1371 USE_MAINTAINER_MODE=no
b4e70030
JB
1372fi;
1373 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1374echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1375
413ccac7
AC
1376
1377if test $USE_MAINTAINER_MODE = yes; then
1378 MAINTAINER_MODE_TRUE=
1379 MAINTAINER_MODE_FALSE='#'
1380else
1381 MAINTAINER_MODE_TRUE='#'
1382 MAINTAINER_MODE_FALSE=
1383fi
85981d60 1384
413ccac7 1385 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1386
c906108c 1387
bec39cab
AC
1388
1389ac_ext=c
1390ac_cpp='$CPP $CPPFLAGS'
1391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1393ac_compiler_gnu=$ac_cv_c_compiler_gnu
1394if test -n "$ac_tool_prefix"; then
1395 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1396set dummy ${ac_tool_prefix}gcc; ac_word=$2
b4e70030
JB
1397echo "$as_me:$LINENO: checking for $ac_word" >&5
1398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1399if test "${ac_cv_prog_CC+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1401else
1402 if test -n "$CC"; then
1403 ac_cv_prog_CC="$CC" # Let the user override the test.
1404else
1405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406for as_dir in $PATH
1407do
1408 IFS=$as_save_IFS
1409 test -z "$as_dir" && as_dir=.
1410 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1412 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1414 break 2
1415 fi
1416done
1417done
1418
1419fi
1420fi
1421CC=$ac_cv_prog_CC
1422if test -n "$CC"; then
b4e70030
JB
1423 echo "$as_me:$LINENO: result: $CC" >&5
1424echo "${ECHO_T}$CC" >&6
bec39cab 1425else
b4e70030
JB
1426 echo "$as_me:$LINENO: result: no" >&5
1427echo "${ECHO_T}no" >&6
bec39cab
AC
1428fi
1429
1430fi
1431if test -z "$ac_cv_prog_CC"; then
1432 ac_ct_CC=$CC
1433 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1434set dummy gcc; ac_word=$2
b4e70030
JB
1435echo "$as_me:$LINENO: checking for $ac_word" >&5
1436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1437if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1439else
1440 if test -n "$ac_ct_CC"; then
1441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1442else
1443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1444for as_dir in $PATH
1445do
1446 IFS=$as_save_IFS
1447 test -z "$as_dir" && as_dir=.
1448 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1450 ac_cv_prog_ac_ct_CC="gcc"
1451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1452 break 2
1453 fi
1454done
1455done
1456
1457fi
1458fi
1459ac_ct_CC=$ac_cv_prog_ac_ct_CC
1460if test -n "$ac_ct_CC"; then
b4e70030
JB
1461 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1462echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1463else
b4e70030
JB
1464 echo "$as_me:$LINENO: result: no" >&5
1465echo "${ECHO_T}no" >&6
bec39cab
AC
1466fi
1467
b4e70030 1468 CC=$ac_ct_CC
bec39cab
AC
1469else
1470 CC="$ac_cv_prog_CC"
1471fi
1472
1473if test -z "$CC"; then
b4e70030
JB
1474 if test -n "$ac_tool_prefix"; then
1475 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 1476set dummy ${ac_tool_prefix}cc; ac_word=$2
b4e70030
JB
1477echo "$as_me:$LINENO: checking for $ac_word" >&5
1478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1479if test "${ac_cv_prog_CC+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1481else
1482 if test -n "$CC"; then
1483 ac_cv_prog_CC="$CC" # Let the user override the test.
1484else
bec39cab
AC
1485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486for as_dir in $PATH
1487do
1488 IFS=$as_save_IFS
1489 test -z "$as_dir" && as_dir=.
1490 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1492 ac_cv_prog_CC="${ac_tool_prefix}cc"
1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1494 break 2
1495 fi
1496done
1497done
1498
c906108c
SS
1499fi
1500fi
bec39cab 1501CC=$ac_cv_prog_CC
c906108c 1502if test -n "$CC"; then
b4e70030
JB
1503 echo "$as_me:$LINENO: result: $CC" >&5
1504echo "${ECHO_T}$CC" >&6
c906108c 1505else
b4e70030
JB
1506 echo "$as_me:$LINENO: result: no" >&5
1507echo "${ECHO_T}no" >&6
c906108c
SS
1508fi
1509
b4e70030
JB
1510fi
1511if test -z "$ac_cv_prog_CC"; then
1512 ac_ct_CC=$CC
1513 # Extract the first word of "cc", so it can be a program name with args.
1514set dummy cc; ac_word=$2
1515echo "$as_me:$LINENO: checking for $ac_word" >&5
1516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1518 echo $ECHO_N "(cached) $ECHO_C" >&6
1519else
1520 if test -n "$ac_ct_CC"; then
1521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1522else
1523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524for as_dir in $PATH
1525do
1526 IFS=$as_save_IFS
1527 test -z "$as_dir" && as_dir=.
1528 for ac_exec_ext in '' $ac_executable_extensions; do
1529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1530 ac_cv_prog_ac_ct_CC="cc"
1531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1532 break 2
4e8d927d 1533 fi
b4e70030
JB
1534done
1535done
1536
1537fi
1538fi
1539ac_ct_CC=$ac_cv_prog_ac_ct_CC
1540if test -n "$ac_ct_CC"; then
1541 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1542echo "${ECHO_T}$ac_ct_CC" >&6
1543else
1544 echo "$as_me:$LINENO: result: no" >&5
1545echo "${ECHO_T}no" >&6
1546fi
1547
1548 CC=$ac_ct_CC
1549else
1550 CC="$ac_cv_prog_CC"
1551fi
1552
bec39cab 1553fi
c906108c
SS
1554if test -z "$CC"; then
1555 # Extract the first word of "cc", so it can be a program name with args.
1556set dummy cc; ac_word=$2
b4e70030
JB
1557echo "$as_me:$LINENO: checking for $ac_word" >&5
1558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1559if test "${ac_cv_prog_CC+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1561else
1562 if test -n "$CC"; then
1563 ac_cv_prog_CC="$CC" # Let the user override the test.
1564else
c906108c 1565 ac_prog_rejected=no
bec39cab
AC
1566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567for as_dir in $PATH
1568do
1569 IFS=$as_save_IFS
1570 test -z "$as_dir" && as_dir=.
1571 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1573 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1574 ac_prog_rejected=yes
1575 continue
1576 fi
1577 ac_cv_prog_CC="cc"
1578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579 break 2
1580 fi
1581done
1582done
1583
c906108c
SS
1584if test $ac_prog_rejected = yes; then
1585 # We found a bogon in the path, so make sure we never use it.
1586 set dummy $ac_cv_prog_CC
1587 shift
bec39cab 1588 if test $# != 0; then
c906108c
SS
1589 # We chose a different compiler from the bogus one.
1590 # However, it has the same basename, so the bogon will be chosen
1591 # first if we set CC to just the basename; use the full file name.
1592 shift
bec39cab 1593 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1594 fi
1595fi
1596fi
1597fi
bec39cab 1598CC=$ac_cv_prog_CC
c906108c 1599if test -n "$CC"; then
b4e70030
JB
1600 echo "$as_me:$LINENO: result: $CC" >&5
1601echo "${ECHO_T}$CC" >&6
c906108c 1602else
b4e70030
JB
1603 echo "$as_me:$LINENO: result: no" >&5
1604echo "${ECHO_T}no" >&6
c906108c
SS
1605fi
1606
bec39cab
AC
1607fi
1608if test -z "$CC"; then
1609 if test -n "$ac_tool_prefix"; then
b4e70030 1610 for ac_prog in cl
bec39cab
AC
1611 do
1612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1613set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b4e70030
JB
1614echo "$as_me:$LINENO: checking for $ac_word" >&5
1615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1616if test "${ac_cv_prog_CC+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1618else
1619 if test -n "$CC"; then
1620 ac_cv_prog_CC="$CC" # Let the user override the test.
1621else
bec39cab
AC
1622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623for as_dir in $PATH
1624do
1625 IFS=$as_save_IFS
1626 test -z "$as_dir" && as_dir=.
1627 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1629 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1631 break 2
1632 fi
1633done
1634done
1635
c906108c
SS
1636fi
1637fi
bec39cab 1638CC=$ac_cv_prog_CC
c906108c 1639if test -n "$CC"; then
b4e70030
JB
1640 echo "$as_me:$LINENO: result: $CC" >&5
1641echo "${ECHO_T}$CC" >&6
c906108c 1642else
b4e70030
JB
1643 echo "$as_me:$LINENO: result: no" >&5
1644echo "${ECHO_T}no" >&6
c906108c 1645fi
bec39cab
AC
1646
1647 test -n "$CC" && break
1648 done
1649fi
1650if test -z "$CC"; then
1651 ac_ct_CC=$CC
b4e70030 1652 for ac_prog in cl
bec39cab
AC
1653do
1654 # Extract the first word of "$ac_prog", so it can be a program name with args.
1655set dummy $ac_prog; ac_word=$2
b4e70030
JB
1656echo "$as_me:$LINENO: checking for $ac_word" >&5
1657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1658if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1660else
1661 if test -n "$ac_ct_CC"; then
1662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1663else
1664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665for as_dir in $PATH
1666do
1667 IFS=$as_save_IFS
1668 test -z "$as_dir" && as_dir=.
1669 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1671 ac_cv_prog_ac_ct_CC="$ac_prog"
1672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673 break 2
c906108c 1674 fi
bec39cab
AC
1675done
1676done
1677
1678fi
1679fi
1680ac_ct_CC=$ac_cv_prog_ac_ct_CC
1681if test -n "$ac_ct_CC"; then
b4e70030
JB
1682 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1683echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1684else
b4e70030
JB
1685 echo "$as_me:$LINENO: result: no" >&5
1686echo "${ECHO_T}no" >&6
c906108c
SS
1687fi
1688
bec39cab
AC
1689 test -n "$ac_ct_CC" && break
1690done
c906108c 1691
b4e70030 1692 CC=$ac_ct_CC
bec39cab
AC
1693fi
1694
1695fi
1696
1697
1698test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1699See \`config.log' for more details." >&5
1700echo "$as_me: error: no acceptable C compiler found in \$PATH
1701See \`config.log' for more details." >&2;}
1702 { (exit 1); exit 1; }; }
1703
1704# Provide some information about the compiler.
b4e70030
JB
1705echo "$as_me:$LINENO:" \
1706 "checking for C compiler version" >&5
bec39cab 1707ac_compiler=`set X $ac_compile; echo $2`
b4e70030
JB
1708{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1709 (eval $ac_compiler --version </dev/null >&5) 2>&5
bec39cab
AC
1710 ac_status=$?
1711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1712 (exit $ac_status); }
b4e70030
JB
1713{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1714 (eval $ac_compiler -v </dev/null >&5) 2>&5
bec39cab
AC
1715 ac_status=$?
1716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1717 (exit $ac_status); }
b4e70030
JB
1718{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1719 (eval $ac_compiler -V </dev/null >&5) 2>&5
bec39cab
AC
1720 ac_status=$?
1721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1722 (exit $ac_status); }
1723
1724cat >conftest.$ac_ext <<_ACEOF
1725/* confdefs.h. */
1726_ACEOF
1727cat confdefs.h >>conftest.$ac_ext
1728cat >>conftest.$ac_ext <<_ACEOF
1729/* end confdefs.h. */
1730
1731int
1732main ()
1733{
1734
1735 ;
1736 return 0;
1737}
1738_ACEOF
1739ac_clean_files_save=$ac_clean_files
b4e70030 1740ac_clean_files="$ac_clean_files a.out a.exe b.out"
bec39cab
AC
1741# Try to create an executable without -o first, disregard a.out.
1742# It will help us diagnose broken compilers, and finding out an intuition
1743# of exeext.
b4e70030
JB
1744echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1745echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
bec39cab
AC
1746ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1747if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1748 (eval $ac_link_default) 2>&5
1749 ac_status=$?
1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751 (exit $ac_status); }; then
b4e70030
JB
1752 # Find the output, starting from the most likely. This scheme is
1753# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1754# resort.
1755
1756# Be careful to initialize this variable, since it used to be cached.
1757# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1758ac_cv_exeext=
1759# b.out is created by i960 compilers.
1760for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
bec39cab
AC
1761do
1762 test -f "$ac_file" || continue
1763 case $ac_file in
b4e70030
JB
1764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1765 ;;
1766 conftest.$ac_ext )
1767 # This is the source file.
1768 ;;
1769 [ab].out )
1770 # We found the default executable, but exeext='' is most
1771 # certainly right.
1772 break;;
1773 *.* )
1774 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1775 # FIXME: I believe we export ac_cv_exeext for Libtool,
1776 # but it would be cool to find out if it's true. Does anybody
1777 # maintain Libtool? --akim.
1778 export ac_cv_exeext
1779 break;;
1780 * )
1781 break;;
bec39cab
AC
1782 esac
1783done
1784else
1785 echo "$as_me: failed program was:" >&5
1786sed 's/^/| /' conftest.$ac_ext >&5
1787
1788{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1789See \`config.log' for more details." >&5
1790echo "$as_me: error: C compiler cannot create executables
1791See \`config.log' for more details." >&2;}
1792 { (exit 77); exit 77; }; }
1793fi
1794
b4e70030
JB
1795ac_exeext=$ac_cv_exeext
1796echo "$as_me:$LINENO: result: $ac_file" >&5
1797echo "${ECHO_T}$ac_file" >&6
1798
1799# Check the compiler produces executables we can run. If not, either
bec39cab 1800# the compiler is broken, or we cross compile.
b4e70030
JB
1801echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1802echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
bec39cab
AC
1803# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1804# If not cross compiling, check that we can run a simple program.
1805if test "$cross_compiling" != yes; then
1806 if { ac_try='./$ac_file'
1807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1808 (eval $ac_try) 2>&5
1809 ac_status=$?
1810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1811 (exit $ac_status); }; }; then
1812 cross_compiling=no
c906108c 1813 else
bec39cab
AC
1814 if test "$cross_compiling" = maybe; then
1815 cross_compiling=yes
1816 else
1817 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1818If you meant to cross compile, use \`--host'.
1819See \`config.log' for more details." >&5
1820echo "$as_me: error: cannot run C compiled programs.
1821If you meant to cross compile, use \`--host'.
1822See \`config.log' for more details." >&2;}
1823 { (exit 1); exit 1; }; }
1824 fi
c906108c 1825 fi
bec39cab 1826fi
b4e70030
JB
1827echo "$as_me:$LINENO: result: yes" >&5
1828echo "${ECHO_T}yes" >&6
bec39cab 1829
b4e70030
JB
1830rm -f a.out a.exe conftest$ac_cv_exeext b.out
1831ac_clean_files=$ac_clean_files_save
1832# Check the compiler produces executables we can run. If not, either
1833# the compiler is broken, or we cross compile.
1834echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1835echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1836echo "$as_me:$LINENO: result: $cross_compiling" >&5
1837echo "${ECHO_T}$cross_compiling" >&6
4e8d927d 1838
b4e70030
JB
1839echo "$as_me:$LINENO: checking for suffix of executables" >&5
1840echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
bec39cab
AC
1842 (eval $ac_link) 2>&5
1843 ac_status=$?
1844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845 (exit $ac_status); }; then
b4e70030
JB
1846 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1847# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1848# work properly (i.e., refer to `conftest.exe'), while it won't with
1849# `rm'.
1850for ac_file in conftest.exe conftest conftest.*; do
1851 test -f "$ac_file" || continue
1852 case $ac_file in
1853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1854 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1855 export ac_cv_exeext
1856 break;;
1857 * ) break;;
1858 esac
1859done
c906108c 1860else
bec39cab
AC
1861 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1862See \`config.log' for more details." >&5
1863echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1864See \`config.log' for more details." >&2;}
1865 { (exit 1); exit 1; }; }
c906108c 1866fi
c906108c 1867
b4e70030
JB
1868rm -f conftest$ac_cv_exeext
1869echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1870echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1871
b4e70030 1872rm -f conftest.$ac_ext
bec39cab
AC
1873EXEEXT=$ac_cv_exeext
1874ac_exeext=$EXEEXT
b4e70030
JB
1875echo "$as_me:$LINENO: checking for suffix of object files" >&5
1876echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
bec39cab
AC
1877if test "${ac_cv_objext+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1879else
b4e70030
JB
1880 cat >conftest.$ac_ext <<_ACEOF
1881/* confdefs.h. */
1882_ACEOF
1883cat confdefs.h >>conftest.$ac_ext
1884cat >>conftest.$ac_ext <<_ACEOF
1885/* end confdefs.h. */
1886
1887int
1888main ()
1889{
1890
1891 ;
1892 return 0;
1893}
1894_ACEOF
1895rm -f conftest.o conftest.obj
bec39cab
AC
1896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1897 (eval $ac_compile) 2>&5
1898 ac_status=$?
1899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1900 (exit $ac_status); }; then
b4e70030 1901 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
bec39cab 1902 case $ac_file in
b4e70030 1903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
bec39cab
AC
1904 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1905 break;;
1906 esac
1907done
c906108c 1908else
bec39cab
AC
1909 echo "$as_me: failed program was:" >&5
1910sed 's/^/| /' conftest.$ac_ext >&5
1911
1912{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1913See \`config.log' for more details." >&5
1914echo "$as_me: error: cannot compute suffix of object files: cannot compile
1915See \`config.log' for more details." >&2;}
1916 { (exit 1); exit 1; }; }
c906108c
SS
1917fi
1918
b4e70030 1919rm -f conftest.$ac_cv_objext conftest.$ac_ext
bec39cab 1920fi
b4e70030
JB
1921echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1922echo "${ECHO_T}$ac_cv_objext" >&6
bec39cab
AC
1923OBJEXT=$ac_cv_objext
1924ac_objext=$OBJEXT
b4e70030
JB
1925echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1926echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
bec39cab
AC
1927if test "${ac_cv_c_compiler_gnu+set}" = set; then
1928 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1929else
bec39cab
AC
1930 cat >conftest.$ac_ext <<_ACEOF
1931/* confdefs.h. */
1932_ACEOF
1933cat confdefs.h >>conftest.$ac_ext
1934cat >>conftest.$ac_ext <<_ACEOF
1935/* end confdefs.h. */
1936
1937int
1938main ()
1939{
1940#ifndef __GNUC__
1941 choke me
1942#endif
1943
1944 ;
1945 return 0;
1946}
1947_ACEOF
1948rm -f conftest.$ac_objext
1949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1950 (eval $ac_compile) 2>conftest.er1
1951 ac_status=$?
1952 grep -v '^ *+' conftest.er1 >conftest.err
1953 rm -f conftest.er1
1954 cat conftest.err >&5
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); } &&
b4e70030
JB
1957 { ac_try='test -z "$ac_c_werror_flag"
1958 || test ! -s conftest.err'
bec39cab
AC
1959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1960 (eval $ac_try) 2>&5
1961 ac_status=$?
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); }; } &&
1964 { ac_try='test -s conftest.$ac_objext'
1965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1966 (eval $ac_try) 2>&5
1967 ac_status=$?
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }; }; then
1970 ac_compiler_gnu=yes
1971else
1972 echo "$as_me: failed program was:" >&5
1973sed 's/^/| /' conftest.$ac_ext >&5
1974
b4e70030 1975ac_compiler_gnu=no
bec39cab
AC
1976fi
1977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1978ac_cv_c_compiler_gnu=$ac_compiler_gnu
1979
1980fi
b4e70030
JB
1981echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1982echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
bec39cab
AC
1983GCC=`test $ac_compiler_gnu = yes && echo yes`
1984ac_test_CFLAGS=${CFLAGS+set}
1985ac_save_CFLAGS=$CFLAGS
b4e70030
JB
1986CFLAGS="-g"
1987echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1988echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
bec39cab
AC
1989if test "${ac_cv_prog_cc_g+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991else
b4e70030 1992 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
1993/* confdefs.h. */
1994_ACEOF
1995cat confdefs.h >>conftest.$ac_ext
1996cat >>conftest.$ac_ext <<_ACEOF
1997/* end confdefs.h. */
1998
1999int
2000main ()
2001{
2002
2003 ;
2004 return 0;
2005}
2006_ACEOF
2007rm -f conftest.$ac_objext
2008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2009 (eval $ac_compile) 2>conftest.er1
2010 ac_status=$?
2011 grep -v '^ *+' conftest.er1 >conftest.err
2012 rm -f conftest.er1
2013 cat conftest.err >&5
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); } &&
b4e70030
JB
2016 { ac_try='test -z "$ac_c_werror_flag"
2017 || test ! -s conftest.err'
bec39cab
AC
2018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2019 (eval $ac_try) 2>&5
2020 ac_status=$?
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }; } &&
2023 { ac_try='test -s conftest.$ac_objext'
2024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2025 (eval $ac_try) 2>&5
2026 ac_status=$?
2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028 (exit $ac_status); }; }; then
c906108c
SS
2029 ac_cv_prog_cc_g=yes
2030else
bec39cab
AC
2031 echo "$as_me: failed program was:" >&5
2032sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2033
b4e70030 2034ac_cv_prog_cc_g=no
4e8d927d 2035fi
bec39cab
AC
2036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2037fi
b4e70030
JB
2038echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2039echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2040if test "$ac_test_CFLAGS" = set; then
bec39cab 2041 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2042elif test $ac_cv_prog_cc_g = yes; then
2043 if test "$GCC" = yes; then
2044 CFLAGS="-g -O2"
2045 else
2046 CFLAGS="-g"
2047 fi
2048else
2049 if test "$GCC" = yes; then
2050 CFLAGS="-O2"
2051 else
2052 CFLAGS=
2053 fi
2054fi
b4e70030
JB
2055echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2056echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2057if test "${ac_cv_prog_cc_stdc+set}" = set; then
bec39cab
AC
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2059else
b4e70030 2060 ac_cv_prog_cc_stdc=no
bec39cab
AC
2061ac_save_CC=$CC
2062cat >conftest.$ac_ext <<_ACEOF
2063/* confdefs.h. */
2064_ACEOF
2065cat confdefs.h >>conftest.$ac_ext
2066cat >>conftest.$ac_ext <<_ACEOF
2067/* end confdefs.h. */
c906108c
SS
2068#include <stdarg.h>
2069#include <stdio.h>
2070#include <sys/types.h>
2071#include <sys/stat.h>
2072/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2073struct buf { int x; };
2074FILE * (*rcsopen) (struct buf *, struct stat *, int);
2075static char *e (p, i)
2076 char **p;
2077 int i;
2078{
2079 return p[i];
2080}
2081static char *f (char * (*g) (char **, int), char **p, ...)
2082{
2083 char *s;
2084 va_list v;
2085 va_start (v,p);
2086 s = g (p, va_arg (v,int));
2087 va_end (v);
2088 return s;
2089}
bec39cab
AC
2090
2091/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2092 function prototypes and stuff, but not '\xHH' hex character constants.
2093 These don't provoke an error unfortunately, instead are silently treated
b4e70030 2094 as 'x'. The following induces an error, until -std1 is added to get
bec39cab
AC
2095 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2096 array size at least. It's necessary to write '\x00'==0 to get something
b4e70030 2097 that's true only with -std1. */
bec39cab
AC
2098int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2099
c906108c
SS
2100int test (int i, double x);
2101struct s1 {int (*f) (int a);};
2102struct s2 {int (*f) (double a);};
2103int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2104int argc;
2105char **argv;
bec39cab
AC
2106int
2107main ()
2108{
c906108c 2109return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2110 ;
2111 return 0;
2112}
2113_ACEOF
b4e70030
JB
2114# Don't try gcc -ansi; that turns off useful extensions and
2115# breaks some systems' header files.
2116# AIX -qlanglvl=ansi
2117# Ultrix and OSF/1 -std1
2118# HP-UX 10.20 and later -Ae
2119# HP-UX older versions -Aa -D_HPUX_SOURCE
2120# SVR4 -Xc -D__EXTENSIONS__
2121for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
2122do
2123 CC="$ac_save_CC $ac_arg"
2124 rm -f conftest.$ac_objext
2125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2126 (eval $ac_compile) 2>conftest.er1
2127 ac_status=$?
2128 grep -v '^ *+' conftest.er1 >conftest.err
2129 rm -f conftest.er1
2130 cat conftest.err >&5
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); } &&
b4e70030
JB
2133 { ac_try='test -z "$ac_c_werror_flag"
2134 || test ! -s conftest.err'
bec39cab
AC
2135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2136 (eval $ac_try) 2>&5
2137 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }; } &&
2140 { ac_try='test -s conftest.$ac_objext'
2141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2142 (eval $ac_try) 2>&5
2143 ac_status=$?
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; }; then
b4e70030
JB
2146 ac_cv_prog_cc_stdc=$ac_arg
2147break
c906108c 2148else
bec39cab
AC
2149 echo "$as_me: failed program was:" >&5
2150sed 's/^/| /' conftest.$ac_ext >&5
2151
c906108c 2152fi
bec39cab 2153rm -f conftest.err conftest.$ac_objext
c906108c 2154done
b4e70030 2155rm -f conftest.$ac_ext conftest.$ac_objext
bec39cab 2156CC=$ac_save_CC
c906108c
SS
2157
2158fi
b4e70030
JB
2159
2160case "x$ac_cv_prog_cc_stdc" in
2161 x|xno)
2162 echo "$as_me:$LINENO: result: none needed" >&5
2163echo "${ECHO_T}none needed" >&6 ;;
bec39cab 2164 *)
b4e70030
JB
2165 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2166echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2167 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2168esac
2169
b4e70030
JB
2170# Some people use a C++ compiler to compile C. Since we use `exit',
2171# in C++ we need to declare it. In case someone uses the same compiler
2172# for both compiling C and C++ we need to have the C++ compiler decide
2173# the declaration of exit, since it's the most demanding environment.
2174cat >conftest.$ac_ext <<_ACEOF
2175#ifndef __cplusplus
2176 choke me
2177#endif
2178_ACEOF
2179rm -f conftest.$ac_objext
2180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2181 (eval $ac_compile) 2>conftest.er1
2182 ac_status=$?
2183 grep -v '^ *+' conftest.er1 >conftest.err
2184 rm -f conftest.er1
2185 cat conftest.err >&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); } &&
2188 { ac_try='test -z "$ac_c_werror_flag"
2189 || test ! -s conftest.err'
2190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2191 (eval $ac_try) 2>&5
2192 ac_status=$?
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; } &&
2195 { ac_try='test -s conftest.$ac_objext'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197 (eval $ac_try) 2>&5
2198 ac_status=$?
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; }; then
2201 for ac_declaration in \
2202 '' \
2203 'extern "C" void std::exit (int) throw (); using std::exit;' \
2204 'extern "C" void std::exit (int); using std::exit;' \
2205 'extern "C" void exit (int) throw ();' \
2206 'extern "C" void exit (int);' \
2207 'void exit (int);'
2208do
2209 cat >conftest.$ac_ext <<_ACEOF
2210/* confdefs.h. */
2211_ACEOF
2212cat confdefs.h >>conftest.$ac_ext
2213cat >>conftest.$ac_ext <<_ACEOF
2214/* end confdefs.h. */
2215$ac_declaration
2216#include <stdlib.h>
2217int
2218main ()
2219{
2220exit (42);
2221 ;
2222 return 0;
2223}
2224_ACEOF
2225rm -f conftest.$ac_objext
2226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2227 (eval $ac_compile) 2>conftest.er1
2228 ac_status=$?
2229 grep -v '^ *+' conftest.er1 >conftest.err
2230 rm -f conftest.er1
2231 cat conftest.err >&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); } &&
2234 { ac_try='test -z "$ac_c_werror_flag"
2235 || test ! -s conftest.err'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; } &&
2241 { ac_try='test -s conftest.$ac_objext'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 (eval $ac_try) 2>&5
2244 ac_status=$?
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2247 :
2248else
2249 echo "$as_me: failed program was:" >&5
2250sed 's/^/| /' conftest.$ac_ext >&5
2251
2252continue
2253fi
2254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2255 cat >conftest.$ac_ext <<_ACEOF
2256/* confdefs.h. */
2257_ACEOF
2258cat confdefs.h >>conftest.$ac_ext
2259cat >>conftest.$ac_ext <<_ACEOF
2260/* end confdefs.h. */
2261$ac_declaration
2262int
2263main ()
2264{
2265exit (42);
2266 ;
2267 return 0;
2268}
2269_ACEOF
2270rm -f conftest.$ac_objext
2271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2272 (eval $ac_compile) 2>conftest.er1
2273 ac_status=$?
2274 grep -v '^ *+' conftest.er1 >conftest.err
2275 rm -f conftest.er1
2276 cat conftest.err >&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); } &&
2279 { ac_try='test -z "$ac_c_werror_flag"
2280 || test ! -s conftest.err'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 (eval $ac_try) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; } &&
2286 { ac_try='test -s conftest.$ac_objext'
2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 (eval $ac_try) 2>&5
2289 ac_status=$?
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; }; then
2292 break
2293else
2294 echo "$as_me: failed program was:" >&5
2295sed 's/^/| /' conftest.$ac_ext >&5
2296
2297fi
2298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2299done
2300rm -f conftest*
2301if test -n "$ac_declaration"; then
2302 echo '#ifdef __cplusplus' >>confdefs.h
2303 echo $ac_declaration >>confdefs.h
2304 echo '#endif' >>confdefs.h
2305fi
2306
2307else
2308 echo "$as_me: failed program was:" >&5
2309sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2310
b4e70030
JB
2311fi
2312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
2313ac_ext=c
2314ac_cpp='$CPP $CPPFLAGS'
2315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2317ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2318
60ca704f 2319
bec39cab
AC
2320cat >>confdefs.h <<\_ACEOF
2321#define _GNU_SOURCE 1
2322_ACEOF
c906108c
SS
2323
2324
8bb2c122 2325
bec39cab
AC
2326ac_ext=c
2327ac_cpp='$CPP $CPPFLAGS'
2328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2330ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4e70030
JB
2331echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2332echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
bec39cab
AC
2333# On Suns, sometimes $CPP names a directory.
2334if test -n "$CPP" && test -d "$CPP"; then
2335 CPP=
8bb2c122 2336fi
bec39cab
AC
2337if test -z "$CPP"; then
2338 if test "${ac_cv_prog_CPP+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2340else
2341 # Double quotes because CPP needs to be expanded
2342 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2343 do
2344 ac_preproc_ok=false
2345for ac_c_preproc_warn_flag in '' yes
2346do
2347 # Use a header file that comes with gcc, so configuring glibc
2348 # with a fresh cross-compiler works.
2349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2350 # <limits.h> exists even on freestanding compilers.
2351 # On the NeXT, cc -E runs the code through the compiler's parser,
2352 # not just through cpp. "Syntax error" is here to catch this case.
2353 cat >conftest.$ac_ext <<_ACEOF
2354/* confdefs.h. */
2355_ACEOF
2356cat confdefs.h >>conftest.$ac_ext
2357cat >>conftest.$ac_ext <<_ACEOF
2358/* end confdefs.h. */
2359#ifdef __STDC__
2360# include <limits.h>
2361#else
2362# include <assert.h>
2363#endif
2364 Syntax error
2365_ACEOF
2366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2368 ac_status=$?
2369 grep -v '^ *+' conftest.er1 >conftest.err
2370 rm -f conftest.er1
2371 cat conftest.err >&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); } >/dev/null; then
2374 if test -s conftest.err; then
2375 ac_cpp_err=$ac_c_preproc_warn_flag
2376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2377 else
2378 ac_cpp_err=
2379 fi
8bb2c122 2380else
bec39cab 2381 ac_cpp_err=yes
8bb2c122 2382fi
bec39cab
AC
2383if test -z "$ac_cpp_err"; then
2384 :
8bb2c122 2385else
bec39cab
AC
2386 echo "$as_me: failed program was:" >&5
2387sed 's/^/| /' conftest.$ac_ext >&5
2388
2389 # Broken: fails on valid input.
2390continue
2391fi
2392rm -f conftest.err conftest.$ac_ext
2393
b4e70030 2394 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2395 # can be detected and how.
2396 cat >conftest.$ac_ext <<_ACEOF
2397/* confdefs.h. */
2398_ACEOF
2399cat confdefs.h >>conftest.$ac_ext
2400cat >>conftest.$ac_ext <<_ACEOF
2401/* end confdefs.h. */
2402#include <ac_nonexistent.h>
2403_ACEOF
2404if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2406 ac_status=$?
2407 grep -v '^ *+' conftest.er1 >conftest.err
2408 rm -f conftest.er1
2409 cat conftest.err >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); } >/dev/null; then
2412 if test -s conftest.err; then
2413 ac_cpp_err=$ac_c_preproc_warn_flag
2414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2415 else
2416 ac_cpp_err=
2417 fi
8bb2c122 2418else
bec39cab 2419 ac_cpp_err=yes
8bb2c122 2420fi
bec39cab
AC
2421if test -z "$ac_cpp_err"; then
2422 # Broken: success on invalid input.
2423continue
8bb2c122 2424else
bec39cab
AC
2425 echo "$as_me: failed program was:" >&5
2426sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2427
bec39cab
AC
2428 # Passes both tests.
2429ac_preproc_ok=:
2430break
8bb2c122 2431fi
bec39cab 2432rm -f conftest.err conftest.$ac_ext
8bb2c122 2433
bec39cab
AC
2434done
2435# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2436rm -f conftest.err conftest.$ac_ext
2437if $ac_preproc_ok; then
2438 break
2439fi
8bb2c122 2440
bec39cab
AC
2441 done
2442 ac_cv_prog_CPP=$CPP
ddc9cd0f 2443
c906108c 2444fi
bec39cab
AC
2445 CPP=$ac_cv_prog_CPP
2446else
2447 ac_cv_prog_CPP=$CPP
c906108c 2448fi
b4e70030
JB
2449echo "$as_me:$LINENO: result: $CPP" >&5
2450echo "${ECHO_T}$CPP" >&6
bec39cab
AC
2451ac_preproc_ok=false
2452for ac_c_preproc_warn_flag in '' yes
2453do
2454 # Use a header file that comes with gcc, so configuring glibc
2455 # with a fresh cross-compiler works.
2456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2457 # <limits.h> exists even on freestanding compilers.
2458 # On the NeXT, cc -E runs the code through the compiler's parser,
2459 # not just through cpp. "Syntax error" is here to catch this case.
2460 cat >conftest.$ac_ext <<_ACEOF
2461/* confdefs.h. */
2462_ACEOF
2463cat confdefs.h >>conftest.$ac_ext
2464cat >>conftest.$ac_ext <<_ACEOF
2465/* end confdefs.h. */
2466#ifdef __STDC__
2467# include <limits.h>
2468#else
2469# include <assert.h>
2470#endif
2471 Syntax error
2472_ACEOF
2473if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2475 ac_status=$?
2476 grep -v '^ *+' conftest.er1 >conftest.err
2477 rm -f conftest.er1
2478 cat conftest.err >&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); } >/dev/null; then
2481 if test -s conftest.err; then
2482 ac_cpp_err=$ac_c_preproc_warn_flag
2483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2484 else
2485 ac_cpp_err=
2486 fi
c906108c 2487else
bec39cab 2488 ac_cpp_err=yes
c906108c 2489fi
bec39cab
AC
2490if test -z "$ac_cpp_err"; then
2491 :
c906108c 2492else
bec39cab
AC
2493 echo "$as_me: failed program was:" >&5
2494sed 's/^/| /' conftest.$ac_ext >&5
2495
2496 # Broken: fails on valid input.
2497continue
2498fi
2499rm -f conftest.err conftest.$ac_ext
2500
b4e70030 2501 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2502 # can be detected and how.
2503 cat >conftest.$ac_ext <<_ACEOF
2504/* confdefs.h. */
2505_ACEOF
2506cat confdefs.h >>conftest.$ac_ext
2507cat >>conftest.$ac_ext <<_ACEOF
2508/* end confdefs.h. */
2509#include <ac_nonexistent.h>
2510_ACEOF
2511if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2513 ac_status=$?
2514 grep -v '^ *+' conftest.er1 >conftest.err
2515 rm -f conftest.er1
2516 cat conftest.err >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); } >/dev/null; then
2519 if test -s conftest.err; then
2520 ac_cpp_err=$ac_c_preproc_warn_flag
2521 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2522 else
2523 ac_cpp_err=
2524 fi
c906108c 2525else
bec39cab 2526 ac_cpp_err=yes
c906108c 2527fi
bec39cab
AC
2528if test -z "$ac_cpp_err"; then
2529 # Broken: success on invalid input.
2530continue
c906108c 2531else
bec39cab
AC
2532 echo "$as_me: failed program was:" >&5
2533sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2534
bec39cab
AC
2535 # Passes both tests.
2536ac_preproc_ok=:
2537break
c906108c 2538fi
bec39cab 2539rm -f conftest.err conftest.$ac_ext
c906108c 2540
bec39cab
AC
2541done
2542# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2543rm -f conftest.err conftest.$ac_ext
2544if $ac_preproc_ok; then
c906108c
SS
2545 :
2546else
bec39cab
AC
2547 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2548See \`config.log' for more details." >&5
2549echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2550See \`config.log' for more details." >&2;}
2551 { (exit 1); exit 1; }; }
c906108c 2552fi
c906108c 2553
bec39cab
AC
2554ac_ext=c
2555ac_cpp='$CPP $CPPFLAGS'
2556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2558ac_compiler_gnu=$ac_cv_c_compiler_gnu
2559
2560
b4e70030
JB
2561echo "$as_me:$LINENO: checking for egrep" >&5
2562echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2563if test "${ac_cv_prog_egrep+set}" = set; then
4e8d927d
DJ
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2565else
b4e70030
JB
2566 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2567 then ac_cv_prog_egrep='grep -E'
2568 else ac_cv_prog_egrep='egrep'
bec39cab 2569 fi
4e8d927d 2570fi
b4e70030
JB
2571echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2572echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2573 EGREP=$ac_cv_prog_egrep
c906108c 2574
bec39cab
AC
2575
2576
b4e70030
JB
2577echo "$as_me:$LINENO: checking for AIX" >&5
2578echo $ECHO_N "checking for AIX... $ECHO_C" >&6
bec39cab
AC
2579cat >conftest.$ac_ext <<_ACEOF
2580/* confdefs.h. */
2581_ACEOF
2582cat confdefs.h >>conftest.$ac_ext
2583cat >>conftest.$ac_ext <<_ACEOF
2584/* end confdefs.h. */
2585#ifdef _AIX
2586 yes
2587#endif
2588
2589_ACEOF
c906108c 2590if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 2591 $EGREP "yes" >/dev/null 2>&1; then
b4e70030
JB
2592 echo "$as_me:$LINENO: result: yes" >&5
2593echo "${ECHO_T}yes" >&6
bec39cab
AC
2594cat >>confdefs.h <<\_ACEOF
2595#define _ALL_SOURCE 1
2596_ACEOF
2597
c906108c 2598else
b4e70030
JB
2599 echo "$as_me:$LINENO: result: no" >&5
2600echo "${ECHO_T}no" >&6
c906108c
SS
2601fi
2602rm -f conftest*
2603
c906108c 2604
b4e70030
JB
2605echo "$as_me:$LINENO: checking for library containing strerror" >&5
2606echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
bec39cab
AC
2607if test "${ac_cv_search_strerror+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2609else
bec39cab 2610 ac_func_search_save_LIBS=$LIBS
b4e70030 2611ac_cv_search_strerror=no
bec39cab
AC
2612cat >conftest.$ac_ext <<_ACEOF
2613/* confdefs.h. */
2614_ACEOF
2615cat confdefs.h >>conftest.$ac_ext
2616cat >>conftest.$ac_ext <<_ACEOF
2617/* end confdefs.h. */
c906108c 2618
b4e70030 2619/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
2620#ifdef __cplusplus
2621extern "C"
2622#endif
b4e70030
JB
2623/* We use char because int might match the return type of a gcc2
2624 builtin and then its argument prototype would still apply. */
bec39cab
AC
2625char strerror ();
2626int
2627main ()
2628{
b4e70030 2629strerror ();
bec39cab
AC
2630 ;
2631 return 0;
2632}
2633_ACEOF
b4e70030 2634rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
2635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2636 (eval $ac_link) 2>conftest.er1
2637 ac_status=$?
2638 grep -v '^ *+' conftest.er1 >conftest.err
2639 rm -f conftest.er1
2640 cat conftest.err >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
b4e70030
JB
2643 { ac_try='test -z "$ac_c_werror_flag"
2644 || test ! -s conftest.err'
bec39cab
AC
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 (eval $ac_try) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; } &&
2650 { ac_try='test -s conftest$ac_exeext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
b4e70030 2656 ac_cv_search_strerror="none required"
c906108c 2657else
bec39cab
AC
2658 echo "$as_me: failed program was:" >&5
2659sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2660
2661fi
bec39cab 2662rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
2663 conftest$ac_exeext conftest.$ac_ext
2664if test "$ac_cv_search_strerror" = no; then
2665 for ac_lib in cposix; do
2666 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2667 cat >conftest.$ac_ext <<_ACEOF
2668/* confdefs.h. */
2669_ACEOF
2670cat confdefs.h >>conftest.$ac_ext
2671cat >>conftest.$ac_ext <<_ACEOF
2672/* end confdefs.h. */
2673
2674/* Override any gcc2 internal prototype to avoid an error. */
2675#ifdef __cplusplus
2676extern "C"
2677#endif
2678/* We use char because int might match the return type of a gcc2
2679 builtin and then its argument prototype would still apply. */
2680char strerror ();
2681int
2682main ()
2683{
2684strerror ();
2685 ;
2686 return 0;
2687}
2688_ACEOF
2689rm -f conftest.$ac_objext conftest$ac_exeext
2690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2691 (eval $ac_link) 2>conftest.er1
2692 ac_status=$?
2693 grep -v '^ *+' conftest.er1 >conftest.err
2694 rm -f conftest.er1
2695 cat conftest.err >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); } &&
2698 { ac_try='test -z "$ac_c_werror_flag"
2699 || test ! -s conftest.err'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 (eval $ac_try) 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; } &&
2705 { ac_try='test -s conftest$ac_exeext'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 (eval $ac_try) 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; }; then
2711 ac_cv_search_strerror="-l$ac_lib"
2712break
4e8d927d 2713else
b4e70030
JB
2714 echo "$as_me: failed program was:" >&5
2715sed 's/^/| /' conftest.$ac_ext >&5
2716
2717fi
2718rm -f conftest.err conftest.$ac_objext \
2719 conftest$ac_exeext conftest.$ac_ext
2720 done
c906108c 2721fi
bec39cab 2722LIBS=$ac_func_search_save_LIBS
c906108c 2723fi
b4e70030
JB
2724echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2725echo "${ECHO_T}$ac_cv_search_strerror" >&6
2726if test "$ac_cv_search_strerror" != no; then
2727 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
bec39cab 2728
c906108c
SS
2729fi
2730
783e057b
DJ
2731if test -n "$ac_tool_prefix"; then
2732 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2733set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2734echo "$as_me:$LINENO: checking for $ac_word" >&5
2735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2736if test "${ac_cv_prog_RANLIB+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2738else
2739 if test -n "$RANLIB"; then
2740 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2741else
2742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743for as_dir in $PATH
2744do
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2752 fi
2753done
2754done
c906108c 2755
783e057b
DJ
2756fi
2757fi
2758RANLIB=$ac_cv_prog_RANLIB
2759if test -n "$RANLIB"; then
2760 echo "$as_me:$LINENO: result: $RANLIB" >&5
2761echo "${ECHO_T}$RANLIB" >&6
2762else
2763 echo "$as_me:$LINENO: result: no" >&5
2764echo "${ECHO_T}no" >&6
2765fi
bec39cab 2766
783e057b
DJ
2767fi
2768if test -z "$ac_cv_prog_RANLIB"; then
2769 ac_ct_RANLIB=$RANLIB
2770 # Extract the first word of "ranlib", so it can be a program name with args.
2771set dummy ranlib; ac_word=$2
2772echo "$as_me:$LINENO: checking for $ac_word" >&5
2773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2774if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
bec39cab 2775 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2776else
783e057b
DJ
2777 if test -n "$ac_ct_RANLIB"; then
2778 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2779else
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
bec39cab 2782do
783e057b
DJ
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787 ac_cv_prog_ac_ct_RANLIB="ranlib"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791done
2792done
2793
2794 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2795fi
2796fi
2797ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2798if test -n "$ac_ct_RANLIB"; then
2799 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2800echo "${ECHO_T}$ac_ct_RANLIB" >&6
2801else
2802 echo "$as_me:$LINENO: result: no" >&5
2803echo "${ECHO_T}no" >&6
2804fi
2805
2806 RANLIB=$ac_ct_RANLIB
2807else
2808 RANLIB="$ac_cv_prog_RANLIB"
2809fi
2810
2811echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2812echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2813if test "${ac_cv_header_stdc+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815else
bec39cab
AC
2816 cat >conftest.$ac_ext <<_ACEOF
2817/* confdefs.h. */
2818_ACEOF
2819cat confdefs.h >>conftest.$ac_ext
2820cat >>conftest.$ac_ext <<_ACEOF
2821/* end confdefs.h. */
783e057b 2822#include <stdlib.h>
bec39cab 2823#include <stdarg.h>
783e057b
DJ
2824#include <string.h>
2825#include <float.h>
c906108c 2826
bec39cab
AC
2827int
2828main ()
2829{
c906108c 2830
bec39cab
AC
2831 ;
2832 return 0;
2833}
2834_ACEOF
2835rm -f conftest.$ac_objext
2836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837 (eval $ac_compile) 2>conftest.er1
2838 ac_status=$?
2839 grep -v '^ *+' conftest.er1 >conftest.err
2840 rm -f conftest.er1
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
b4e70030
JB
2844 { ac_try='test -z "$ac_c_werror_flag"
2845 || test ! -s conftest.err'
bec39cab
AC
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 (eval $ac_try) 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; } &&
2851 { ac_try='test -s conftest.$ac_objext'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 (eval $ac_try) 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
783e057b 2857 ac_cv_header_stdc=yes
c906108c 2858else
bec39cab
AC
2859 echo "$as_me: failed program was:" >&5
2860sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2861
783e057b 2862ac_cv_header_stdc=no
c906108c 2863fi
bec39cab 2864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2865
783e057b
DJ
2866if test $ac_cv_header_stdc = yes; then
2867 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2868 cat >conftest.$ac_ext <<_ACEOF
2869/* confdefs.h. */
2870_ACEOF
2871cat confdefs.h >>conftest.$ac_ext
2872cat >>conftest.$ac_ext <<_ACEOF
2873/* end confdefs.h. */
2874#include <string.h>
c906108c 2875
783e057b
DJ
2876_ACEOF
2877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2878 $EGREP "memchr" >/dev/null 2>&1; then
2879 :
c906108c 2880else
783e057b 2881 ac_cv_header_stdc=no
c906108c 2882fi
783e057b 2883rm -f conftest*
c906108c
SS
2884
2885fi
2886
783e057b
DJ
2887if test $ac_cv_header_stdc = yes; then
2888 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2889 cat >conftest.$ac_ext <<_ACEOF
2890/* confdefs.h. */
2891_ACEOF
2892cat confdefs.h >>conftest.$ac_ext
2893cat >>conftest.$ac_ext <<_ACEOF
2894/* end confdefs.h. */
2895#include <stdlib.h>
bec39cab 2896
783e057b
DJ
2897_ACEOF
2898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2899 $EGREP "free" >/dev/null 2>&1; then
2900 :
bec39cab 2901else
783e057b 2902 ac_cv_header_stdc=no
bec39cab 2903fi
783e057b 2904rm -f conftest*
bec39cab
AC
2905
2906fi
bec39cab 2907
783e057b
DJ
2908if test $ac_cv_header_stdc = yes; then
2909 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2910 if test "$cross_compiling" = yes; then
2911 :
bec39cab 2912else
783e057b
DJ
2913 cat >conftest.$ac_ext <<_ACEOF
2914/* confdefs.h. */
2915_ACEOF
2916cat confdefs.h >>conftest.$ac_ext
2917cat >>conftest.$ac_ext <<_ACEOF
2918/* end confdefs.h. */
2919#include <ctype.h>
2920#if ((' ' & 0x0FF) == 0x020)
2921# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2922# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2923#else
2924# define ISLOWER(c) \
2925 (('a' <= (c) && (c) <= 'i') \
2926 || ('j' <= (c) && (c) <= 'r') \
2927 || ('s' <= (c) && (c) <= 'z'))
2928# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2929#endif
2930
2931#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2932int
2933main ()
2934{
2935 int i;
2936 for (i = 0; i < 256; i++)
2937 if (XOR (islower (i), ISLOWER (i))
2938 || toupper (i) != TOUPPER (i))
2939 exit(2);
2940 exit (0);
2941}
2942_ACEOF
2943rm -f conftest$ac_exeext
2944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2945 (eval $ac_link) 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950 (eval $ac_try) 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2954 :
2955else
2956 echo "$as_me: program exited with status $ac_status" >&5
2957echo "$as_me: failed program was:" >&5
2958sed 's/^/| /' conftest.$ac_ext >&5
2959
2960( exit $ac_status )
2961ac_cv_header_stdc=no
2962fi
2963rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2964fi
2965fi
2966fi
2967echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2968echo "${ECHO_T}$ac_cv_header_stdc" >&6
2969if test $ac_cv_header_stdc = yes; then
2970
2971cat >>confdefs.h <<\_ACEOF
2972#define STDC_HEADERS 1
2973_ACEOF
2974
2975fi
2976
2977# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2988 inttypes.h stdint.h unistd.h
2989do
2990as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2991echo "$as_me:$LINENO: checking for $ac_header" >&5
2992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2993if eval "test \"\${$as_ac_Header+set}\" = set"; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2995else
2996 cat >conftest.$ac_ext <<_ACEOF
2997/* confdefs.h. */
2998_ACEOF
2999cat confdefs.h >>conftest.$ac_ext
3000cat >>conftest.$ac_ext <<_ACEOF
3001/* end confdefs.h. */
3002$ac_includes_default
3003
3004#include <$ac_header>
3005_ACEOF
3006rm -f conftest.$ac_objext
3007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3008 (eval $ac_compile) 2>conftest.er1
3009 ac_status=$?
3010 grep -v '^ *+' conftest.er1 >conftest.err
3011 rm -f conftest.er1
3012 cat conftest.err >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } &&
3015 { ac_try='test -z "$ac_c_werror_flag"
3016 || test ! -s conftest.err'
3017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018 (eval $ac_try) 2>&5
3019 ac_status=$?
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }; } &&
3022 { ac_try='test -s conftest.$ac_objext'
3023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024 (eval $ac_try) 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; }; then
3028 eval "$as_ac_Header=yes"
3029else
3030 echo "$as_me: failed program was:" >&5
3031sed 's/^/| /' conftest.$ac_ext >&5
3032
3033eval "$as_ac_Header=no"
3034fi
3035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3036fi
3037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3038echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3039if test `eval echo '${'$as_ac_Header'}'` = yes; then
3040 cat >>confdefs.h <<_ACEOF
3041#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3042_ACEOF
3043
3044fi
3045
3046done
3047
3048
3049
3050 if test "${ac_cv_header_minix_config_h+set}" = set; then
3051 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3052echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3053if test "${ac_cv_header_minix_config_h+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3055fi
3056echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3057echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3058else
3059 # Is the header compilable?
3060echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3061echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3062cat >conftest.$ac_ext <<_ACEOF
3063/* confdefs.h. */
3064_ACEOF
3065cat confdefs.h >>conftest.$ac_ext
3066cat >>conftest.$ac_ext <<_ACEOF
3067/* end confdefs.h. */
3068$ac_includes_default
3069#include <minix/config.h>
3070_ACEOF
3071rm -f conftest.$ac_objext
3072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3073 (eval $ac_compile) 2>conftest.er1
3074 ac_status=$?
3075 grep -v '^ *+' conftest.er1 >conftest.err
3076 rm -f conftest.er1
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } &&
3080 { ac_try='test -z "$ac_c_werror_flag"
3081 || test ! -s conftest.err'
3082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083 (eval $ac_try) 2>&5
3084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; } &&
3087 { ac_try='test -s conftest.$ac_objext'
3088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3089 (eval $ac_try) 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; }; then
3093 ac_header_compiler=yes
3094else
3095 echo "$as_me: failed program was:" >&5
3096sed 's/^/| /' conftest.$ac_ext >&5
3097
3098ac_header_compiler=no
3099fi
3100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3101echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3102echo "${ECHO_T}$ac_header_compiler" >&6
3103
3104# Is the header present?
3105echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3106echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3107cat >conftest.$ac_ext <<_ACEOF
3108/* confdefs.h. */
3109_ACEOF
3110cat confdefs.h >>conftest.$ac_ext
3111cat >>conftest.$ac_ext <<_ACEOF
3112/* end confdefs.h. */
3113#include <minix/config.h>
3114_ACEOF
3115if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3117 ac_status=$?
3118 grep -v '^ *+' conftest.er1 >conftest.err
3119 rm -f conftest.er1
3120 cat conftest.err >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } >/dev/null; then
3123 if test -s conftest.err; then
3124 ac_cpp_err=$ac_c_preproc_warn_flag
3125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3126 else
3127 ac_cpp_err=
3128 fi
3129else
3130 ac_cpp_err=yes
3131fi
3132if test -z "$ac_cpp_err"; then
3133 ac_header_preproc=yes
3134else
3135 echo "$as_me: failed program was:" >&5
3136sed 's/^/| /' conftest.$ac_ext >&5
3137
3138 ac_header_preproc=no
3139fi
3140rm -f conftest.err conftest.$ac_ext
3141echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3142echo "${ECHO_T}$ac_header_preproc" >&6
3143
3144# So? What about this header?
3145case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3146 yes:no: )
3147 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3148echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3149 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3150echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3151 ac_header_preproc=yes
3152 ;;
3153 no:yes:* )
3154 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3155echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3156 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3157echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3158 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3159echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3160 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3161echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3162 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3163echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3164 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3165echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3166 (
3167 cat <<\_ASBOX
3168## ------------------------------------------ ##
3169## Report this to the AC_PACKAGE_NAME lists. ##
3170## ------------------------------------------ ##
3171_ASBOX
3172 ) |
3173 sed "s/^/$as_me: WARNING: /" >&2
3174 ;;
3175esac
3176echo "$as_me:$LINENO: checking for minix/config.h" >&5
3177echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3178if test "${ac_cv_header_minix_config_h+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3180else
3181 ac_cv_header_minix_config_h=$ac_header_preproc
3182fi
3183echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3184echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3185
3186fi
3187if test $ac_cv_header_minix_config_h = yes; then
3188 MINIX=yes
3189else
3190 MINIX=
3191fi
3192
3193
3194 if test "$MINIX" = yes; then
3195
3196cat >>confdefs.h <<\_ACEOF
3197#define _POSIX_SOURCE 1
3198_ACEOF
3199
3200
3201cat >>confdefs.h <<\_ACEOF
3202#define _POSIX_1_SOURCE 2
3203_ACEOF
3204
3205
3206cat >>confdefs.h <<\_ACEOF
3207#define _MINIX 1
3208_ACEOF
3209
3210 fi
3211
3212
3213
3214 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3215echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3216if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218else
3219 cat >conftest.$ac_ext <<_ACEOF
3220/* confdefs.h. */
3221_ACEOF
3222cat confdefs.h >>conftest.$ac_ext
3223cat >>conftest.$ac_ext <<_ACEOF
3224/* end confdefs.h. */
3225
3226# define __EXTENSIONS__ 1
3227 $ac_includes_default
3228int
3229main ()
3230{
3231
3232 ;
3233 return 0;
3234}
3235_ACEOF
3236rm -f conftest.$ac_objext
3237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3238 (eval $ac_compile) 2>conftest.er1
3239 ac_status=$?
3240 grep -v '^ *+' conftest.er1 >conftest.err
3241 rm -f conftest.er1
3242 cat conftest.err >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } &&
3245 { ac_try='test -z "$ac_c_werror_flag"
3246 || test ! -s conftest.err'
3247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 (eval $ac_try) 2>&5
3249 ac_status=$?
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; } &&
3252 { ac_try='test -s conftest.$ac_objext'
3253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254 (eval $ac_try) 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3258 ac_cv_safe_to_define___extensions__=yes
3259else
3260 echo "$as_me: failed program was:" >&5
3261sed 's/^/| /' conftest.$ac_ext >&5
3262
3263ac_cv_safe_to_define___extensions__=no
3264fi
3265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3266fi
3267echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3268echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3269 test $ac_cv_safe_to_define___extensions__ = yes &&
3270 cat >>confdefs.h <<\_ACEOF
3271#define __EXTENSIONS__ 1
3272_ACEOF
3273
3274 cat >>confdefs.h <<\_ACEOF
3275#define _ALL_SOURCE 1
3276_ACEOF
3277
3278 cat >>confdefs.h <<\_ACEOF
3279#define _GNU_SOURCE 1
3280_ACEOF
3281
3282 cat >>confdefs.h <<\_ACEOF
3283#define _POSIX_PTHREAD_SEMANTICS 1
3284_ACEOF
3285
3286 cat >>confdefs.h <<\_ACEOF
3287#define _TANDEM_SOURCE 1
3288_ACEOF
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3300echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3301if test "${am_cv_prog_cc_stdc+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3303else
3304 am_cv_prog_cc_stdc=no
3305ac_save_CC="$CC"
3306# Don't try gcc -ansi; that turns off useful extensions and
3307# breaks some systems' header files.
3308# AIX -qlanglvl=ansi
3309# Ultrix and OSF/1 -std1
3310# HP-UX 10.20 and later -Ae
3311# HP-UX older versions -Aa -D_HPUX_SOURCE
3312# SVR4 -Xc -D__EXTENSIONS__
3313for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3314do
3315 CC="$ac_save_CC $ac_arg"
3316 cat >conftest.$ac_ext <<_ACEOF
3317/* confdefs.h. */
3318_ACEOF
3319cat confdefs.h >>conftest.$ac_ext
3320cat >>conftest.$ac_ext <<_ACEOF
3321/* end confdefs.h. */
3322#include <stdarg.h>
3323#include <stdio.h>
3324#include <sys/types.h>
3325#include <sys/stat.h>
3326/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3327struct buf { int x; };
3328FILE * (*rcsopen) (struct buf *, struct stat *, int);
3329static char *e (p, i)
3330 char **p;
3331 int i;
3332{
3333 return p[i];
3334}
3335static char *f (char * (*g) (char **, int), char **p, ...)
3336{
3337 char *s;
3338 va_list v;
3339 va_start (v,p);
3340 s = g (p, va_arg (v,int));
3341 va_end (v);
3342 return s;
3343}
3344int test (int i, double x);
3345struct s1 {int (*f) (int a);};
3346struct s2 {int (*f) (double a);};
3347int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3348int argc;
3349char **argv;
3350
3351int
3352main ()
3353{
3354
3355return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3356
3357 ;
3358 return 0;
3359}
3360_ACEOF
3361rm -f conftest.$ac_objext
3362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3363 (eval $ac_compile) 2>conftest.er1
3364 ac_status=$?
3365 grep -v '^ *+' conftest.er1 >conftest.err
3366 rm -f conftest.er1
3367 cat conftest.err >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } &&
3370 { ac_try='test -z "$ac_c_werror_flag"
3371 || test ! -s conftest.err'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373 (eval $ac_try) 2>&5
3374 ac_status=$?
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; } &&
3377 { ac_try='test -s conftest.$ac_objext'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 (eval $ac_try) 2>&5
3380 ac_status=$?
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; }; then
3383 am_cv_prog_cc_stdc="$ac_arg"; break
3384else
3385 echo "$as_me: failed program was:" >&5
3386sed 's/^/| /' conftest.$ac_ext >&5
3387
3388fi
3389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3390done
3391CC="$ac_save_CC"
3392
3393fi
3394
3395if test -z "$am_cv_prog_cc_stdc"; then
3396 echo "$as_me:$LINENO: result: none needed" >&5
3397echo "${ECHO_T}none needed" >&6
3398else
3399 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3400echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3401fi
3402case "x$am_cv_prog_cc_stdc" in
3403 x|xno) ;;
3404 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3405esac
3406
3407
3408ac_aux_dir=
3409for ac_dir in .. $srcdir/..; do
3410 if test -f $ac_dir/install-sh; then
3411 ac_aux_dir=$ac_dir
3412 ac_install_sh="$ac_aux_dir/install-sh -c"
3413 break
3414 elif test -f $ac_dir/install.sh; then
3415 ac_aux_dir=$ac_dir
3416 ac_install_sh="$ac_aux_dir/install.sh -c"
3417 break
3418 elif test -f $ac_dir/shtool; then
3419 ac_aux_dir=$ac_dir
3420 ac_install_sh="$ac_aux_dir/shtool install -c"
3421 break
3422 fi
3423done
3424if test -z "$ac_aux_dir"; then
3425 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3426echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3427 { (exit 1); exit 1; }; }
3428fi
3429ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3430ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3431ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3432
3433# Make sure we can run config.sub.
3434$ac_config_sub sun4 >/dev/null 2>&1 ||
3435 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3436echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3437 { (exit 1); exit 1; }; }
3438
3439echo "$as_me:$LINENO: checking build system type" >&5
3440echo $ECHO_N "checking build system type... $ECHO_C" >&6
3441if test "${ac_cv_build+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443else
3444 ac_cv_build_alias=$build_alias
3445test -z "$ac_cv_build_alias" &&
3446 ac_cv_build_alias=`$ac_config_guess`
3447test -z "$ac_cv_build_alias" &&
3448 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3449echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3450 { (exit 1); exit 1; }; }
3451ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3452 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3453echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3454 { (exit 1); exit 1; }; }
3455
3456fi
3457echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3458echo "${ECHO_T}$ac_cv_build" >&6
3459build=$ac_cv_build
3460build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3461build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3462build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3463
3464
3465echo "$as_me:$LINENO: checking host system type" >&5
3466echo $ECHO_N "checking host system type... $ECHO_C" >&6
3467if test "${ac_cv_host+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469else
3470 ac_cv_host_alias=$host_alias
3471test -z "$ac_cv_host_alias" &&
3472 ac_cv_host_alias=$ac_cv_build_alias
3473ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3474 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3475echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3476 { (exit 1); exit 1; }; }
3477
3478fi
3479echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3480echo "${ECHO_T}$ac_cv_host" >&6
3481host=$ac_cv_host
3482host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3483host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3484host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3485
3486
3487echo "$as_me:$LINENO: checking target system type" >&5
3488echo $ECHO_N "checking target system type... $ECHO_C" >&6
3489if test "${ac_cv_target+set}" = set; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3491else
3492 ac_cv_target_alias=$target_alias
3493test "x$ac_cv_target_alias" = "x" &&
b4e70030
JB
3494 ac_cv_target_alias=$ac_cv_host_alias
3495ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3496 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3497echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
bec39cab
AC
3498 { (exit 1); exit 1; }; }
3499
3500fi
783e057b
DJ
3501echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3502echo "${ECHO_T}$ac_cv_target" >&6
3503target=$ac_cv_target
3504target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3505target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3506target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3507
3508
3509# The aliases save the names the user supplied, while $host etc.
3510# will get canonicalized.
3511test -n "$target_alias" &&
3512 test "$program_prefix$program_suffix$program_transform_name" = \
3513 NONENONEs,x,x, &&
3514 program_prefix=${target_alias}-
3515
3516
3517CONFIG_OBS=
3518CONFIG_DEPS=
3519CONFIG_SRCS=
3520ENABLE_CFLAGS=
3521
3522CONFIG_ALL=
3523CONFIG_CLEAN=
3524CONFIG_INSTALL=
3525CONFIG_UNINSTALL=
3526
3527# If we haven't got the data from the intl directory,
3528# assume NLS is disabled.
3529USE_NLS=no
3530LIBINTL=
3531LIBINTL_DEP=
3532INCINTL=
3533XGETTEXT=
3534GMSGFMT=
3535POSUB=
3536
3537if test -f ../intl/config.intl; then
3538 . ../intl/config.intl
3539fi
3540echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3541echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3542if test x"$USE_NLS" != xyes; then
3543 echo "$as_me:$LINENO: result: no" >&5
3544echo "${ECHO_T}no" >&6
3545else
3546 echo "$as_me:$LINENO: result: yes" >&5
3547echo "${ECHO_T}yes" >&6
3548
3549cat >>confdefs.h <<\_ACEOF
3550#define ENABLE_NLS 1
3551_ACEOF
3552
3553
3554 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3555echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3556 # Look for .po and .gmo files in the source directory.
3557 CATALOGS=
3558 XLINGUAS=
3559 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3560 # If there aren't any .gmo files the shell will give us the
3561 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3562 # weeded out.
3563 case "$cat" in *\**)
3564 continue;;
3565 esac
3566 # The quadruple backslash is collapsed to a double backslash
3567 # by the backticks, then collapsed again by the double quotes,
3568 # leaving us with one backslash in the sed expression (right
3569 # before the dot that mustn't act as a wildcard).
3570 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3571 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3572 # The user is allowed to set LINGUAS to a list of languages to
3573 # install catalogs for. If it's empty that means "all of them."
3574 if test "x$LINGUAS" = x; then
3575 CATALOGS="$CATALOGS $cat"
3576 XLINGUAS="$XLINGUAS $lang"
3577 else
3578 case "$LINGUAS" in *$lang*)
3579 CATALOGS="$CATALOGS $cat"
3580 XLINGUAS="$XLINGUAS $lang"
3581 ;;
3582 esac
3583 fi
3584 done
3585 LINGUAS="$XLINGUAS"
3586 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3587echo "${ECHO_T}$LINGUAS" >&6
3588
3589
3590 DATADIRNAME=share
3591
3592 INSTOBJEXT=.mo
3593
3594 GENCAT=gencat
3595
3596 CATOBJEXT=.gmo
3597
3598fi
3599
3600localedir='${datadir}/locale'
3601
3602
3603if test x"$USE_NLS" = xyes; then
3604 CONFIG_ALL="$CONFIG_ALL all-po"
3605 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3606 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3607 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3608fi
3609
3610
3611 GNULIB_MEMMEM=0;
3612 GNULIB_MEMPCPY=0;
3613 GNULIB_MEMRCHR=0;
3614 GNULIB_STPCPY=0;
3615 GNULIB_STPNCPY=0;
3616 GNULIB_STRCHRNUL=0;
3617 GNULIB_STRDUP=0;
3618 GNULIB_STRNDUP=0;
3619 GNULIB_STRNLEN=0;
3620 GNULIB_STRPBRK=0;
3621 GNULIB_STRSEP=0;
3622 GNULIB_STRSTR=0;
3623 GNULIB_STRCASESTR=0;
3624 GNULIB_STRTOK_R=0;
3625 GNULIB_MBSLEN=0;
3626 GNULIB_MBSNLEN=0;
3627 GNULIB_MBSCHR=0;
3628 GNULIB_MBSRCHR=0;
3629 GNULIB_MBSSTR=0;
3630 GNULIB_MBSCASECMP=0;
3631 GNULIB_MBSNCASECMP=0;
3632 GNULIB_MBSPCASECMP=0;
3633 GNULIB_MBSCASESTR=0;
3634 GNULIB_MBSCSPN=0;
3635 GNULIB_MBSPBRK=0;
3636 GNULIB_MBSSPN=0;
3637 GNULIB_MBSSEP=0;
3638 GNULIB_MBSTOK_R=0;
3639 GNULIB_STRERROR=0;
3640 GNULIB_STRSIGNAL=0;
3641 HAVE_DECL_MEMMEM=1;
3642 HAVE_MEMPCPY=1;
3643 HAVE_DECL_MEMRCHR=1;
3644 HAVE_STPCPY=1;
3645 HAVE_STPNCPY=1;
3646 HAVE_STRCHRNUL=1;
3647 HAVE_DECL_STRDUP=1;
3648 HAVE_STRNDUP=1;
3649 HAVE_DECL_STRNDUP=1;
3650 HAVE_DECL_STRNLEN=1;
3651 HAVE_STRPBRK=1;
3652 HAVE_STRSEP=1;
3653 HAVE_STRCASESTR=1;
3654 HAVE_DECL_STRTOK_R=1;
3655 HAVE_DECL_STRERROR=1;
3656 HAVE_DECL_STRSIGNAL=1;
3657 REPLACE_STRERROR=0;
3658 REPLACE_STRSIGNAL=0;
3659 REPLACE_MEMMEM=0;
3660 REPLACE_STRCASESTR=0;
3661 REPLACE_STRSTR=0;
3662
3663
3664 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3665echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3666if test "${ac_cv_have_decl_memmem+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668else
3669 cat >conftest.$ac_ext <<_ACEOF
3670/* confdefs.h. */
3671_ACEOF
3672cat confdefs.h >>conftest.$ac_ext
3673cat >>conftest.$ac_ext <<_ACEOF
3674/* end confdefs.h. */
3675$ac_includes_default
3676int
3677main ()
3678{
3679#ifndef memmem
3680 char *p = (char *) memmem;
3681#endif
3682
3683 ;
3684 return 0;
3685}
3686_ACEOF
3687rm -f conftest.$ac_objext
3688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3689 (eval $ac_compile) 2>conftest.er1
3690 ac_status=$?
3691 grep -v '^ *+' conftest.er1 >conftest.err
3692 rm -f conftest.er1
3693 cat conftest.err >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } &&
3696 { ac_try='test -z "$ac_c_werror_flag"
3697 || test ! -s conftest.err'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; } &&
3703 { ac_try='test -s conftest.$ac_objext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 (eval $ac_try) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3709 ac_cv_have_decl_memmem=yes
3710else
3711 echo "$as_me: failed program was:" >&5
3712sed 's/^/| /' conftest.$ac_ext >&5
3713
3714ac_cv_have_decl_memmem=no
3715fi
3716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3717fi
3718echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3719echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3720if test $ac_cv_have_decl_memmem = yes; then
3721
3722cat >>confdefs.h <<_ACEOF
3723#define HAVE_DECL_MEMMEM 1
3724_ACEOF
3725
3726
3727else
3728 cat >>confdefs.h <<_ACEOF
3729#define HAVE_DECL_MEMMEM 0
3730_ACEOF
3731
3732
3733fi
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749for ac_func in memmem
3750do
3751as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3752echo "$as_me:$LINENO: checking for $ac_func" >&5
3753echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3754if eval "test \"\${$as_ac_var+set}\" = set"; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3756else
3757 cat >conftest.$ac_ext <<_ACEOF
3758/* confdefs.h. */
3759_ACEOF
3760cat confdefs.h >>conftest.$ac_ext
3761cat >>conftest.$ac_ext <<_ACEOF
3762/* end confdefs.h. */
3763/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3765#define $ac_func innocuous_$ac_func
3766
3767/* System header to define __stub macros and hopefully few prototypes,
3768 which can conflict with char $ac_func (); below.
3769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3770 <limits.h> exists even on freestanding compilers. */
3771
3772#ifdef __STDC__
3773# include <limits.h>
3774#else
3775# include <assert.h>
3776#endif
3777
3778#undef $ac_func
3779
3780/* Override any gcc2 internal prototype to avoid an error. */
3781#ifdef __cplusplus
3782extern "C"
3783{
3784#endif
3785/* We use char because int might match the return type of a gcc2
3786 builtin and then its argument prototype would still apply. */
3787char $ac_func ();
3788/* The GNU C library defines this for functions which it implements
3789 to always fail with ENOSYS. Some functions are actually named
3790 something starting with __ and the normal name is an alias. */
3791#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3792choke me
3793#else
3794char (*f) () = $ac_func;
3795#endif
3796#ifdef __cplusplus
3797}
3798#endif
3799
3800int
3801main ()
3802{
3803return f != $ac_func;
3804 ;
3805 return 0;
3806}
3807_ACEOF
3808rm -f conftest.$ac_objext conftest$ac_exeext
3809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3810 (eval $ac_link) 2>conftest.er1
3811 ac_status=$?
3812 grep -v '^ *+' conftest.er1 >conftest.err
3813 rm -f conftest.er1
3814 cat conftest.err >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } &&
3817 { ac_try='test -z "$ac_c_werror_flag"
3818 || test ! -s conftest.err'
3819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 (eval $ac_try) 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; } &&
3824 { ac_try='test -s conftest$ac_exeext'
3825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826 (eval $ac_try) 2>&5
3827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; }; then
3830 eval "$as_ac_var=yes"
3831else
3832 echo "$as_me: failed program was:" >&5
3833sed 's/^/| /' conftest.$ac_ext >&5
3834
3835eval "$as_ac_var=no"
3836fi
3837rm -f conftest.err conftest.$ac_objext \
3838 conftest$ac_exeext conftest.$ac_ext
3839fi
3840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3841echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3842if test `eval echo '${'$as_ac_var'}'` = yes; then
3843 cat >>confdefs.h <<_ACEOF
3844#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3845_ACEOF
3846
3847else
3848
3849 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
3850
3851fi
3852done
3853
3854
3855
3856 :
3857
3858
3859
3860
3861
3862 if test $ac_cv_have_decl_memmem = no; then
3863 HAVE_DECL_MEMMEM=0
3864 fi
3865 :
3866
3867
3868 echo "$as_me:$LINENO: checking for long long int" >&5
3869echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3870if test "${ac_cv_type_long_long_int+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3872else
3873 cat >conftest.$ac_ext <<_ACEOF
3874
3875 /* confdefs.h. */
3876_ACEOF
3877cat confdefs.h >>conftest.$ac_ext
3878cat >>conftest.$ac_ext <<_ACEOF
3879/* end confdefs.h. */
3880/* For now, do not test the preprocessor; as of 2007 there are too many
3881 implementations with broken preprocessors. Perhaps this can
3882 be revisited in 2012. In the meantime, code should not expect
3883 #if to work with literals wider than 32 bits. */
3884 /* Test literals. */
3885 long long int ll = 9223372036854775807ll;
3886 long long int nll = -9223372036854775807LL;
3887 unsigned long long int ull = 18446744073709551615ULL;
3888 /* Test constant expressions. */
3889 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
3890 ? 1 : -1)];
3891 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
3892 ? 1 : -1)];
3893 int i = 63;
3894int
3895main ()
3896{
3897/* Test availability of runtime routines for shift and division. */
3898 long long int llmax = 9223372036854775807ll;
3899 unsigned long long int ullmax = 18446744073709551615ull;
3900 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
3901 | (llmax / ll) | (llmax % ll)
3902 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
3903 | (ullmax / ull) | (ullmax % ull));
3904 ;
3905 return 0;
3906}
3907
3908_ACEOF
3909rm -f conftest.$ac_objext conftest$ac_exeext
3910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3911 (eval $ac_link) 2>conftest.er1
3912 ac_status=$?
3913 grep -v '^ *+' conftest.er1 >conftest.err
3914 rm -f conftest.er1
3915 cat conftest.err >&5
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); } &&
3918 { ac_try='test -z "$ac_c_werror_flag"
3919 || test ! -s conftest.err'
3920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921 (eval $ac_try) 2>&5
3922 ac_status=$?
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; } &&
3925 { ac_try='test -s conftest$ac_exeext'
3926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3927 (eval $ac_try) 2>&5
3928 ac_status=$?
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); }; }; then
3931 if test "$cross_compiling" = yes; then
3932 ac_cv_type_long_long_int=yes
3933else
3934 cat >conftest.$ac_ext <<_ACEOF
3935/* confdefs.h. */
3936_ACEOF
3937cat confdefs.h >>conftest.$ac_ext
3938cat >>conftest.$ac_ext <<_ACEOF
3939/* end confdefs.h. */
3940#include <limits.h>
3941 #ifndef LLONG_MAX
3942 # define HALF \
3943 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
3944 # define LLONG_MAX (HALF - 1 + HALF)
3945 #endif
3946int
3947main ()
3948{
3949long long int n = 1;
3950 int i;
3951 for (i = 0; ; i++)
3952 {
3953 long long int m = n << i;
3954 if (m >> i != n)
3955 return 1;
3956 if (LLONG_MAX / 2 < m)
3957 break;
3958 }
3959 return 0;
3960 ;
3961 return 0;
3962}
3963_ACEOF
3964rm -f conftest$ac_exeext
3965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3966 (eval $ac_link) 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3971 (eval $ac_try) 2>&5
3972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; }; then
3975 ac_cv_type_long_long_int=yes
3976else
3977 echo "$as_me: program exited with status $ac_status" >&5
3978echo "$as_me: failed program was:" >&5
3979sed 's/^/| /' conftest.$ac_ext >&5
3980
3981( exit $ac_status )
3982ac_cv_type_long_long_int=no
3983fi
3984rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3985fi
3986else
3987 echo "$as_me: failed program was:" >&5
3988sed 's/^/| /' conftest.$ac_ext >&5
3989
3990ac_cv_type_long_long_int=no
3991fi
3992rm -f conftest.err conftest.$ac_objext \
3993 conftest$ac_exeext conftest.$ac_ext
3994fi
3995echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
3996echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
3997 if test $ac_cv_type_long_long_int = yes; then
3998
3999cat >>confdefs.h <<\_ACEOF
4000#define HAVE_LONG_LONG_INT 1
4001_ACEOF
4002
4003 fi
4004
4005
4006 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4007echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4008if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010else
4011 cat >conftest.$ac_ext <<_ACEOF
4012
4013 /* confdefs.h. */
4014_ACEOF
4015cat confdefs.h >>conftest.$ac_ext
4016cat >>conftest.$ac_ext <<_ACEOF
4017/* end confdefs.h. */
4018/* For now, do not test the preprocessor; as of 2007 there are too many
4019 implementations with broken preprocessors. Perhaps this can
4020 be revisited in 2012. In the meantime, code should not expect
4021 #if to work with literals wider than 32 bits. */
4022 /* Test literals. */
4023 long long int ll = 9223372036854775807ll;
4024 long long int nll = -9223372036854775807LL;
4025 unsigned long long int ull = 18446744073709551615ULL;
4026 /* Test constant expressions. */
4027 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4028 ? 1 : -1)];
4029 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4030 ? 1 : -1)];
4031 int i = 63;
4032int
4033main ()
4034{
4035/* Test availability of runtime routines for shift and division. */
4036 long long int llmax = 9223372036854775807ll;
4037 unsigned long long int ullmax = 18446744073709551615ull;
4038 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4039 | (llmax / ll) | (llmax % ll)
4040 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4041 | (ullmax / ull) | (ullmax % ull));
4042 ;
4043 return 0;
4044}
4045
4046_ACEOF
4047rm -f conftest.$ac_objext conftest$ac_exeext
4048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4049 (eval $ac_link) 2>conftest.er1
4050 ac_status=$?
4051 grep -v '^ *+' conftest.er1 >conftest.err
4052 rm -f conftest.er1
4053 cat conftest.err >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); } &&
4056 { ac_try='test -z "$ac_c_werror_flag"
4057 || test ! -s conftest.err'
4058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4059 (eval $ac_try) 2>&5
4060 ac_status=$?
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; } &&
4063 { ac_try='test -s conftest$ac_exeext'
4064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065 (eval $ac_try) 2>&5
4066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; }; then
4069 ac_cv_type_unsigned_long_long_int=yes
4070else
4071 echo "$as_me: failed program was:" >&5
4072sed 's/^/| /' conftest.$ac_ext >&5
4073
4074ac_cv_type_unsigned_long_long_int=no
4075fi
4076rm -f conftest.err conftest.$ac_objext \
4077 conftest$ac_exeext conftest.$ac_ext
4078fi
4079echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4080echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4081 if test $ac_cv_type_unsigned_long_long_int = yes; then
4082
4083cat >>confdefs.h <<\_ACEOF
4084#define HAVE_UNSIGNED_LONG_LONG_INT 1
4085_ACEOF
4086
4087 fi
4088
4089
4090
4091 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4092echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4093if test "${gl_cv_have_include_next+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4095else
4096 rm -rf conftestd1 conftestd2
4097 mkdir conftestd1 conftestd2
4098 cat <<EOF > conftestd1/conftest.h
4099#define DEFINED_IN_CONFTESTD1
4100#include_next <conftest.h>
4101#ifdef DEFINED_IN_CONFTESTD2
4102int foo;
4103#else
4104#error "include_next doesn't work"
4105#endif
4106EOF
4107 cat <<EOF > conftestd2/conftest.h
4108#ifndef DEFINED_IN_CONFTESTD1
4109#error "include_next test doesn't work"
4110#endif
4111#define DEFINED_IN_CONFTESTD2
4112EOF
4113 save_CPPFLAGS="$CPPFLAGS"
4114 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4115 cat >conftest.$ac_ext <<_ACEOF
4116#include <conftest.h>
4117_ACEOF
4118rm -f conftest.$ac_objext
4119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4120 (eval $ac_compile) 2>conftest.er1
4121 ac_status=$?
4122 grep -v '^ *+' conftest.er1 >conftest.err
4123 rm -f conftest.er1
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } &&
4127 { ac_try='test -z "$ac_c_werror_flag"
4128 || test ! -s conftest.err'
4129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130 (eval $ac_try) 2>&5
4131 ac_status=$?
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; } &&
4134 { ac_try='test -s conftest.$ac_objext'
4135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136 (eval $ac_try) 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; }; then
4140 gl_cv_have_include_next=yes
4141else
4142 echo "$as_me: failed program was:" >&5
4143sed 's/^/| /' conftest.$ac_ext >&5
4144
4145gl_cv_have_include_next=no
4146fi
4147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4148 CPPFLAGS="$save_CPPFLAGS"
4149 rm -rf conftestd1 conftestd2
4150
4151fi
4152echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4153echo "${ECHO_T}$gl_cv_have_include_next" >&6
4154 if test $gl_cv_have_include_next = yes; then
4155
4156
4157cat >>confdefs.h <<\_ACEOF
4158#define HAVE_INCLUDE_NEXT 1
4159_ACEOF
4160
4161
4162 INCLUDE_NEXT=include_next
4163 else
4164 INCLUDE_NEXT=include
4165 fi
4166
4167
4168
4169
4170
4171
4172
4173for ac_header in $gl_header_list
4174do
4175as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4176if eval "test \"\${$as_ac_Header+set}\" = set"; then
4177 echo "$as_me:$LINENO: checking for $ac_header" >&5
4178echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4179if eval "test \"\${$as_ac_Header+set}\" = set"; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4181fi
4182echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4183echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4184else
4185 # Is the header compilable?
4186echo "$as_me:$LINENO: checking $ac_header usability" >&5
4187echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4188cat >conftest.$ac_ext <<_ACEOF
4189/* confdefs.h. */
4190_ACEOF
4191cat confdefs.h >>conftest.$ac_ext
4192cat >>conftest.$ac_ext <<_ACEOF
4193/* end confdefs.h. */
4194$ac_includes_default
4195#include <$ac_header>
4196_ACEOF
4197rm -f conftest.$ac_objext
4198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4199 (eval $ac_compile) 2>conftest.er1
4200 ac_status=$?
4201 grep -v '^ *+' conftest.er1 >conftest.err
4202 rm -f conftest.er1
4203 cat conftest.err >&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); } &&
4206 { ac_try='test -z "$ac_c_werror_flag"
4207 || test ! -s conftest.err'
4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 (eval $ac_try) 2>&5
4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; } &&
4213 { ac_try='test -s conftest.$ac_objext'
4214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215 (eval $ac_try) 2>&5
4216 ac_status=$?
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }; }; then
4219 ac_header_compiler=yes
4220else
4221 echo "$as_me: failed program was:" >&5
4222sed 's/^/| /' conftest.$ac_ext >&5
4223
4224ac_header_compiler=no
4225fi
4226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4227echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4228echo "${ECHO_T}$ac_header_compiler" >&6
4229
4230# Is the header present?
4231echo "$as_me:$LINENO: checking $ac_header presence" >&5
4232echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4233cat >conftest.$ac_ext <<_ACEOF
4234/* confdefs.h. */
4235_ACEOF
4236cat confdefs.h >>conftest.$ac_ext
4237cat >>conftest.$ac_ext <<_ACEOF
4238/* end confdefs.h. */
4239#include <$ac_header>
4240_ACEOF
4241if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4243 ac_status=$?
4244 grep -v '^ *+' conftest.er1 >conftest.err
4245 rm -f conftest.er1
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } >/dev/null; then
4249 if test -s conftest.err; then
4250 ac_cpp_err=$ac_c_preproc_warn_flag
4251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4252 else
4253 ac_cpp_err=
4254 fi
4255else
4256 ac_cpp_err=yes
4257fi
4258if test -z "$ac_cpp_err"; then
4259 ac_header_preproc=yes
4260else
4261 echo "$as_me: failed program was:" >&5
4262sed 's/^/| /' conftest.$ac_ext >&5
4263
4264 ac_header_preproc=no
4265fi
4266rm -f conftest.err conftest.$ac_ext
4267echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4268echo "${ECHO_T}$ac_header_preproc" >&6
4269
4270# So? What about this header?
4271case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4272 yes:no: )
4273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4274echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4276echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4277 ac_header_preproc=yes
4278 ;;
4279 no:yes:* )
4280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4281echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4283echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4285echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4287echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4289echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4291echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4292 (
4293 cat <<\_ASBOX
4294## ------------------------------------------ ##
4295## Report this to the AC_PACKAGE_NAME lists. ##
4296## ------------------------------------------ ##
4297_ASBOX
4298 ) |
4299 sed "s/^/$as_me: WARNING: /" >&2
4300 ;;
4301esac
4302echo "$as_me:$LINENO: checking for $ac_header" >&5
4303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4304if eval "test \"\${$as_ac_Header+set}\" = set"; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4306else
4307 eval "$as_ac_Header=\$ac_header_preproc"
4308fi
4309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4310echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4311
4312fi
4313if test `eval echo '${'$as_ac_Header'}'` = yes; then
4314 cat >>confdefs.h <<_ACEOF
4315#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4316_ACEOF
4317
4318fi
4319
4320done
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4334echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4335if test "${ac_cv_c_restrict+set}" = set; then
4336 echo $ECHO_N "(cached) $ECHO_C" >&6
4337else
4338 ac_cv_c_restrict=no
4339 # The order here caters to the fact that C++ does not require restrict.
4340 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4341 cat >conftest.$ac_ext <<_ACEOF
4342/* confdefs.h. */
4343_ACEOF
4344cat confdefs.h >>conftest.$ac_ext
4345cat >>conftest.$ac_ext <<_ACEOF
4346/* end confdefs.h. */
4347typedef int * int_ptr;
4348 int foo (int_ptr $ac_kw ip) {
4349 return ip[0];
4350 }
4351int
4352main ()
4353{
4354int s[1];
4355 int * $ac_kw t = s;
4356 t[0] = 0;
4357 return foo(t)
4358 ;
4359 return 0;
4360}
4361_ACEOF
4362rm -f conftest.$ac_objext
4363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4364 (eval $ac_compile) 2>conftest.er1
4365 ac_status=$?
4366 grep -v '^ *+' conftest.er1 >conftest.err
4367 rm -f conftest.er1
4368 cat conftest.err >&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); } &&
4371 { ac_try='test -z "$ac_c_werror_flag"
4372 || test ! -s conftest.err'
4373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 (eval $ac_try) 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; } &&
4378 { ac_try='test -s conftest.$ac_objext'
4379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 (eval $ac_try) 2>&5
4381 ac_status=$?
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }; }; then
4384 ac_cv_c_restrict=$ac_kw
4385else
4386 echo "$as_me: failed program was:" >&5
4387sed 's/^/| /' conftest.$ac_ext >&5
4388
4389fi
4390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4391 test "$ac_cv_c_restrict" != no && break
4392 done
4393
4394fi
4395echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4396echo "${ECHO_T}$ac_cv_c_restrict" >&6
4397
4398
4399 case $ac_cv_c_restrict in
4400 restrict) ;;
4401 no) cat >>confdefs.h <<\_ACEOF
4402#define restrict
4403_ACEOF
4404 ;;
4405 *) cat >>confdefs.h <<_ACEOF
4406#define restrict $ac_cv_c_restrict
4407_ACEOF
4408 ;;
4409 esac
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423 :
4424
4425
4426
4427
4428
4429
4430
4431 if test $gl_cv_have_include_next = yes; then
4432 gl_cv_next_string_h='<'string.h'>'
4433 else
4434 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4435echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4436if test "${gl_cv_next_string_h+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438else
4439
4440 if test $ac_cv_header_string_h = yes; then
4441 cat >conftest.$ac_ext <<_ACEOF
4442/* confdefs.h. */
4443_ACEOF
4444cat confdefs.h >>conftest.$ac_ext
4445cat >>conftest.$ac_ext <<_ACEOF
4446/* end confdefs.h. */
4447#include <string.h>
4448
4449_ACEOF
4450 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4451 sed -n '\#/string.h#{
4452 s#.*"\(.*/string.h\)".*#\1#
4453 s#^/[^/]#//&#
4454 p
4455 q
4456 }'`'"'
4457 else
4458 gl_cv_next_string_h='<'string.h'>'
4459 fi
4460
4461fi
4462echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4463echo "${ECHO_T}$gl_cv_next_string_h" >&6
4464 fi
4465 NEXT_STRING_H=$gl_cv_next_string_h
4466
4467
4468
4469
4470
4471 GNULIB_WCWIDTH=0;
4472 HAVE_DECL_WCWIDTH=1;
4473 REPLACE_WCWIDTH=0;
4474 WCHAR_H=
4475
4476
4477
4478
4479
4480if false; then
4481 GL_COND_LIBTOOL_TRUE=
4482 GL_COND_LIBTOOL_FALSE='#'
4483else
4484 GL_COND_LIBTOOL_TRUE='#'
4485 GL_COND_LIBTOOL_FALSE=
4486fi
4487
4488 gl_cond_libtool=false
4489 gl_libdeps=
4490 gl_ltlibdeps=
4491
4492
4493
4494 gl_source_base='gnulib'
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504for ac_func in memchr
4505do
4506as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4507echo "$as_me:$LINENO: checking for $ac_func" >&5
4508echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4509if eval "test \"\${$as_ac_var+set}\" = set"; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511else
4512 cat >conftest.$ac_ext <<_ACEOF
4513/* confdefs.h. */
4514_ACEOF
4515cat confdefs.h >>conftest.$ac_ext
4516cat >>conftest.$ac_ext <<_ACEOF
4517/* end confdefs.h. */
4518/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4520#define $ac_func innocuous_$ac_func
4521
4522/* System header to define __stub macros and hopefully few prototypes,
4523 which can conflict with char $ac_func (); below.
4524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4525 <limits.h> exists even on freestanding compilers. */
4526
4527#ifdef __STDC__
4528# include <limits.h>
4529#else
4530# include <assert.h>
4531#endif
4532
4533#undef $ac_func
4534
4535/* Override any gcc2 internal prototype to avoid an error. */
4536#ifdef __cplusplus
4537extern "C"
4538{
4539#endif
4540/* We use char because int might match the return type of a gcc2
4541 builtin and then its argument prototype would still apply. */
4542char $ac_func ();
4543/* The GNU C library defines this for functions which it implements
4544 to always fail with ENOSYS. Some functions are actually named
4545 something starting with __ and the normal name is an alias. */
4546#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4547choke me
4548#else
4549char (*f) () = $ac_func;
4550#endif
4551#ifdef __cplusplus
4552}
4553#endif
4554
4555int
4556main ()
4557{
4558return f != $ac_func;
4559 ;
4560 return 0;
4561}
4562_ACEOF
4563rm -f conftest.$ac_objext conftest$ac_exeext
4564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4565 (eval $ac_link) 2>conftest.er1
4566 ac_status=$?
4567 grep -v '^ *+' conftest.er1 >conftest.err
4568 rm -f conftest.er1
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -z "$ac_c_werror_flag"
4573 || test ! -s conftest.err'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 (eval $ac_try) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; } &&
4579 { ac_try='test -s conftest$ac_exeext'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 (eval $ac_try) 2>&5
4582 ac_status=$?
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 eval "$as_ac_var=yes"
4586else
4587 echo "$as_me: failed program was:" >&5
4588sed 's/^/| /' conftest.$ac_ext >&5
4589
4590eval "$as_ac_var=no"
4591fi
4592rm -f conftest.err conftest.$ac_objext \
4593 conftest$ac_exeext conftest.$ac_ext
4594fi
4595echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4596echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4597if test `eval echo '${'$as_ac_var'}'` = yes; then
4598 cat >>confdefs.h <<_ACEOF
4599#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4600_ACEOF
4601
4602else
4603
4604 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4605
4606fi
4607done
4608
4609
4610 if test $ac_cv_func_memchr = no; then
4611
4612
4613for ac_header in bp-sym.h
4614do
4615as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4616if eval "test \"\${$as_ac_Header+set}\" = set"; then
4617 echo "$as_me:$LINENO: checking for $ac_header" >&5
4618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4619if eval "test \"\${$as_ac_Header+set}\" = set"; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4621fi
4622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4623echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4624else
4625 # Is the header compilable?
4626echo "$as_me:$LINENO: checking $ac_header usability" >&5
4627echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4628cat >conftest.$ac_ext <<_ACEOF
4629/* confdefs.h. */
4630_ACEOF
4631cat confdefs.h >>conftest.$ac_ext
4632cat >>conftest.$ac_ext <<_ACEOF
4633/* end confdefs.h. */
4634$ac_includes_default
4635#include <$ac_header>
4636_ACEOF
4637rm -f conftest.$ac_objext
4638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4639 (eval $ac_compile) 2>conftest.er1
4640 ac_status=$?
4641 grep -v '^ *+' conftest.er1 >conftest.err
4642 rm -f conftest.er1
4643 cat conftest.err >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } &&
4646 { ac_try='test -z "$ac_c_werror_flag"
4647 || test ! -s conftest.err'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 (eval $ac_try) 2>&5
4650 ac_status=$?
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; } &&
4653 { ac_try='test -s conftest.$ac_objext'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 (eval $ac_try) 2>&5
4656 ac_status=$?
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; }; then
4659 ac_header_compiler=yes
4660else
4661 echo "$as_me: failed program was:" >&5
4662sed 's/^/| /' conftest.$ac_ext >&5
4663
4664ac_header_compiler=no
4665fi
4666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4667echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4668echo "${ECHO_T}$ac_header_compiler" >&6
4669
4670# Is the header present?
4671echo "$as_me:$LINENO: checking $ac_header presence" >&5
4672echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4673cat >conftest.$ac_ext <<_ACEOF
4674/* confdefs.h. */
4675_ACEOF
4676cat confdefs.h >>conftest.$ac_ext
4677cat >>conftest.$ac_ext <<_ACEOF
4678/* end confdefs.h. */
4679#include <$ac_header>
4680_ACEOF
4681if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4683 ac_status=$?
4684 grep -v '^ *+' conftest.er1 >conftest.err
4685 rm -f conftest.er1
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } >/dev/null; then
4689 if test -s conftest.err; then
4690 ac_cpp_err=$ac_c_preproc_warn_flag
4691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4692 else
4693 ac_cpp_err=
4694 fi
4695else
4696 ac_cpp_err=yes
4697fi
4698if test -z "$ac_cpp_err"; then
4699 ac_header_preproc=yes
4700else
4701 echo "$as_me: failed program was:" >&5
4702sed 's/^/| /' conftest.$ac_ext >&5
4703
4704 ac_header_preproc=no
4705fi
4706rm -f conftest.err conftest.$ac_ext
4707echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4708echo "${ECHO_T}$ac_header_preproc" >&6
4709
4710# So? What about this header?
4711case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4712 yes:no: )
4713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4714echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4716echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4717 ac_header_preproc=yes
4718 ;;
4719 no:yes:* )
4720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4721echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4723echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4725echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4727echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4729echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4731echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4732 (
4733 cat <<\_ASBOX
4734## ------------------------------------------ ##
4735## Report this to the AC_PACKAGE_NAME lists. ##
4736## ------------------------------------------ ##
4737_ASBOX
4738 ) |
4739 sed "s/^/$as_me: WARNING: /" >&2
4740 ;;
4741esac
4742echo "$as_me:$LINENO: checking for $ac_header" >&5
4743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4744if eval "test \"\${$as_ac_Header+set}\" = set"; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4746else
4747 eval "$as_ac_Header=\$ac_header_preproc"
4748fi
4749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4750echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4751
4752fi
4753if test `eval echo '${'$as_ac_Header'}'` = yes; then
4754 cat >>confdefs.h <<_ACEOF
4755#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4756_ACEOF
4757
4758fi
4759
4760done
4761
4762
4763 fi
4764
4765
4766 echo "$as_me:$LINENO: checking for working memcmp" >&5
4767echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4768if test "${ac_cv_func_memcmp_working+set}" = set; then
4769 echo $ECHO_N "(cached) $ECHO_C" >&6
4770else
4771 if test "$cross_compiling" = yes; then
4772 ac_cv_func_memcmp_working=no
4773else
4774 cat >conftest.$ac_ext <<_ACEOF
4775/* confdefs.h. */
4776_ACEOF
4777cat confdefs.h >>conftest.$ac_ext
4778cat >>conftest.$ac_ext <<_ACEOF
4779/* end confdefs.h. */
4780$ac_includes_default
4781int
4782main ()
4783{
4784
4785 /* Some versions of memcmp are not 8-bit clean. */
4786 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4787 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4788 exit (1);
4789
4790 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4791 or more and with at least one buffer not starting on a 4-byte boundary.
4792 William Lewis provided this test program. */
4793 {
4794 char foo[21];
4795 char bar[21];
4796 int i;
4797 for (i = 0; i < 4; i++)
4798 {
4799 char *a = foo + i;
4800 char *b = bar + i;
4801 strcpy (a, "--------01111111");
4802 strcpy (b, "--------10000000");
4803 if (memcmp (a, b, 16) >= 0)
4804 exit (1);
4805 }
4806 exit (0);
4807 }
4808
4809 ;
4810 return 0;
4811}
4812_ACEOF
4813rm -f conftest$ac_exeext
4814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4815 (eval $ac_link) 2>&5
4816 ac_status=$?
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 (eval $ac_try) 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 ac_cv_func_memcmp_working=yes
4825else
4826 echo "$as_me: program exited with status $ac_status" >&5
4827echo "$as_me: failed program was:" >&5
4828sed 's/^/| /' conftest.$ac_ext >&5
4829
4830( exit $ac_status )
4831ac_cv_func_memcmp_working=no
4832fi
4833rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4834fi
4835fi
4836echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4837echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4838test $ac_cv_func_memcmp_working = no &&
4839
4840
4841
4842
4843
4844
4845 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
4846
4847
4848 if test $ac_cv_func_memcmp_working = no; then
4849
4850cat >>confdefs.h <<\_ACEOF
4851#define memcmp rpl_memcmp
4852_ACEOF
4853
4854 :
4855 fi
4856
4857
4858
4859 if test $ac_cv_have_decl_memmem = yes; then
4860 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
4861echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
4862if test "${gl_cv_func_memmem_works+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864else
4865 if test "$cross_compiling" = yes; then
4866 gl_cv_func_memmem_works="guessing no"
4867else
4868 cat >conftest.$ac_ext <<_ACEOF
4869/* confdefs.h. */
4870_ACEOF
4871cat confdefs.h >>conftest.$ac_ext
4872cat >>conftest.$ac_ext <<_ACEOF
4873/* end confdefs.h. */
4874
4875#include <string.h> /* for memmem */
4876#include <stdlib.h> /* for malloc */
4877#include <unistd.h> /* for alarm */
4878
4879int
4880main ()
4881{
4882size_t m = 1000000;
4883 char *haystack = (char *) malloc (2 * m + 1);
4884 char *needle = (char *) malloc (m + 1);
4885 void *result = 0;
4886 /* Failure to compile this test due to missing alarm is okay,
4887 since all such platforms (mingw) also lack memmem. */
4888 alarm (5);
4889 /* Check for quadratic performance. */
4890 if (haystack && needle)
4891 {
4892 memset (haystack, 'A', 2 * m);
4893 haystack[2 * m] = 'B';
4894 memset (needle, 'A', m);
4895 needle[m] = 'B';
4896 result = memmem (haystack, 2 * m + 1, needle, m + 1);
4897 }
4898 /* Check for empty needle behavior. */
4899 return !result || !memmem ("a", 1, 0, 0);
4900 ;
4901 return 0;
4902}
4903_ACEOF
4904rm -f conftest$ac_exeext
4905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4906 (eval $ac_link) 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911 (eval $ac_try) 2>&5
4912 ac_status=$?
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; }; then
4915 gl_cv_func_memmem_works=yes
4916else
4917 echo "$as_me: program exited with status $ac_status" >&5
4918echo "$as_me: failed program was:" >&5
4919sed 's/^/| /' conftest.$ac_ext >&5
4920
4921( exit $ac_status )
4922gl_cv_func_memmem_works=no
4923fi
4924rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4925fi
4926fi
4927echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
4928echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
4929 if test "$gl_cv_func_memmem_works" != yes; then
4930 REPLACE_MEMMEM=1
4931
4932
4933
4934
4935
4936
4937
4938 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
4939
4940 fi
4941 fi
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955for ac_func in memmem
4956do
4957as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4958echo "$as_me:$LINENO: checking for $ac_func" >&5
4959echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4960if eval "test \"\${$as_ac_var+set}\" = set"; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4962else
4963 cat >conftest.$ac_ext <<_ACEOF
4964/* confdefs.h. */
4965_ACEOF
4966cat confdefs.h >>conftest.$ac_ext
4967cat >>conftest.$ac_ext <<_ACEOF
4968/* end confdefs.h. */
4969/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4971#define $ac_func innocuous_$ac_func
4972
4973/* System header to define __stub macros and hopefully few prototypes,
4974 which can conflict with char $ac_func (); below.
4975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4976 <limits.h> exists even on freestanding compilers. */
4977
4978#ifdef __STDC__
4979# include <limits.h>
4980#else
4981# include <assert.h>
4982#endif
4983
4984#undef $ac_func
4985
4986/* Override any gcc2 internal prototype to avoid an error. */
4987#ifdef __cplusplus
4988extern "C"
4989{
4990#endif
4991/* We use char because int might match the return type of a gcc2
4992 builtin and then its argument prototype would still apply. */
4993char $ac_func ();
4994/* The GNU C library defines this for functions which it implements
4995 to always fail with ENOSYS. Some functions are actually named
4996 something starting with __ and the normal name is an alias. */
4997#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4998choke me
4999#else
5000char (*f) () = $ac_func;
5001#endif
5002#ifdef __cplusplus
5003}
5004#endif
5005
5006int
5007main ()
5008{
5009return f != $ac_func;
5010 ;
5011 return 0;
5012}
5013_ACEOF
5014rm -f conftest.$ac_objext conftest$ac_exeext
5015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5016 (eval $ac_link) 2>conftest.er1
5017 ac_status=$?
5018 grep -v '^ *+' conftest.er1 >conftest.err
5019 rm -f conftest.er1
5020 cat conftest.err >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } &&
5023 { ac_try='test -z "$ac_c_werror_flag"
5024 || test ! -s conftest.err'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 (eval $ac_try) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; } &&
5030 { ac_try='test -s conftest$ac_exeext'
5031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032 (eval $ac_try) 2>&5
5033 ac_status=$?
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; }; then
5036 eval "$as_ac_var=yes"
5037else
5038 echo "$as_me: failed program was:" >&5
5039sed 's/^/| /' conftest.$ac_ext >&5
5040
5041eval "$as_ac_var=no"
5042fi
5043rm -f conftest.err conftest.$ac_objext \
5044 conftest$ac_exeext conftest.$ac_ext
5045fi
5046echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5047echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5048if test `eval echo '${'$as_ac_var'}'` = yes; then
5049 cat >>confdefs.h <<_ACEOF
5050#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5051_ACEOF
5052
5053else
5054
5055 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5056
5057fi
5058done
5059
5060
5061
5062 :
5063
5064
5065
5066
5067
5068 if test $ac_cv_have_decl_memmem = no; then
5069 HAVE_DECL_MEMMEM=0
5070 fi
5071 :
5072
5073
5074
5075 GNULIB_MEMMEM=1
5076
5077
5078
5079
5080 if test $ac_cv_type_long_long_int = yes; then
5081 HAVE_LONG_LONG_INT=1
5082 else
5083 HAVE_LONG_LONG_INT=0
5084 fi
5085
5086
5087 if test $ac_cv_type_unsigned_long_long_int = yes; then
5088 HAVE_UNSIGNED_LONG_LONG_INT=1
5089 else
5090 HAVE_UNSIGNED_LONG_LONG_INT=0
5091 fi
5092
5093
5094 if test $ac_cv_header_inttypes_h = yes; then
5095 HAVE_INTTYPES_H=1
5096 else
5097 HAVE_INTTYPES_H=0
5098 fi
5099
5100
5101 if test $ac_cv_header_sys_types_h = yes; then
5102 HAVE_SYS_TYPES_H=1
5103 else
5104 HAVE_SYS_TYPES_H=0
5105 fi
5106
5107
5108
5109
5110
5111 :
5112
5113
5114
5115
5116
5117
5118
5119 if test $gl_cv_have_include_next = yes; then
5120 gl_cv_next_stdint_h='<'stdint.h'>'
5121 else
5122 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5123echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5124if test "${gl_cv_next_stdint_h+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5126else
5127
5128 if test $ac_cv_header_stdint_h = yes; then
5129 cat >conftest.$ac_ext <<_ACEOF
5130/* confdefs.h. */
5131_ACEOF
5132cat confdefs.h >>conftest.$ac_ext
5133cat >>conftest.$ac_ext <<_ACEOF
5134/* end confdefs.h. */
5135#include <stdint.h>
5136
5137_ACEOF
5138 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5139 sed -n '\#/stdint.h#{
5140 s#.*"\(.*/stdint.h\)".*#\1#
5141 s#^/[^/]#//&#
5142 p
5143 q
5144 }'`'"'
5145 else
5146 gl_cv_next_stdint_h='<'stdint.h'>'
5147 fi
5148
5149fi
5150echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5151echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5152 fi
5153 NEXT_STDINT_H=$gl_cv_next_stdint_h
5154
5155
5156
5157 if test $ac_cv_header_stdint_h = yes; then
5158 HAVE_STDINT_H=1
5159 else
5160 HAVE_STDINT_H=0
5161 fi
5162
5163
5164 if test $ac_cv_header_stdint_h = yes; then
5165 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5166echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5167if test "${gl_cv_header_working_stdint_h+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5169else
5170 gl_cv_header_working_stdint_h=no
5171 cat >conftest.$ac_ext <<_ACEOF
5172
5173 /* confdefs.h. */
5174_ACEOF
5175cat confdefs.h >>conftest.$ac_ext
5176cat >>conftest.$ac_ext <<_ACEOF
5177/* end confdefs.h. */
5178
5179#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5180#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5181#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5182#include <stdint.h>
5183/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5184#if !(defined WCHAR_MIN && defined WCHAR_MAX)
5185#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5186#endif
5187
5188
5189 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5190 included before <wchar.h>. */
5191 #include <stddef.h>
5192 #include <signal.h>
5193 #if HAVE_WCHAR_H
5194 # include <stdio.h>
5195 # include <time.h>
5196 # include <wchar.h>
5197 #endif
5198
5199
5200#ifdef INT8_MAX
5201int8_t a1 = INT8_MAX;
5202int8_t a1min = INT8_MIN;
5203#endif
5204#ifdef INT16_MAX
5205int16_t a2 = INT16_MAX;
5206int16_t a2min = INT16_MIN;
5207#endif
5208#ifdef INT32_MAX
5209int32_t a3 = INT32_MAX;
5210int32_t a3min = INT32_MIN;
5211#endif
5212#ifdef INT64_MAX
5213int64_t a4 = INT64_MAX;
5214int64_t a4min = INT64_MIN;
5215#endif
5216#ifdef UINT8_MAX
5217uint8_t b1 = UINT8_MAX;
5218#else
5219typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5220#endif
5221#ifdef UINT16_MAX
5222uint16_t b2 = UINT16_MAX;
5223#endif
5224#ifdef UINT32_MAX
5225uint32_t b3 = UINT32_MAX;
5226#endif
5227#ifdef UINT64_MAX
5228uint64_t b4 = UINT64_MAX;
5229#endif
5230int_least8_t c1 = INT8_C (0x7f);
5231int_least8_t c1max = INT_LEAST8_MAX;
5232int_least8_t c1min = INT_LEAST8_MIN;
5233int_least16_t c2 = INT16_C (0x7fff);
5234int_least16_t c2max = INT_LEAST16_MAX;
5235int_least16_t c2min = INT_LEAST16_MIN;
5236int_least32_t c3 = INT32_C (0x7fffffff);
5237int_least32_t c3max = INT_LEAST32_MAX;
5238int_least32_t c3min = INT_LEAST32_MIN;
5239int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5240int_least64_t c4max = INT_LEAST64_MAX;
5241int_least64_t c4min = INT_LEAST64_MIN;
5242uint_least8_t d1 = UINT8_C (0xff);
5243uint_least8_t d1max = UINT_LEAST8_MAX;
5244uint_least16_t d2 = UINT16_C (0xffff);
5245uint_least16_t d2max = UINT_LEAST16_MAX;
5246uint_least32_t d3 = UINT32_C (0xffffffff);
5247uint_least32_t d3max = UINT_LEAST32_MAX;
5248uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5249uint_least64_t d4max = UINT_LEAST64_MAX;
5250int_fast8_t e1 = INT_FAST8_MAX;
5251int_fast8_t e1min = INT_FAST8_MIN;
5252int_fast16_t e2 = INT_FAST16_MAX;
5253int_fast16_t e2min = INT_FAST16_MIN;
5254int_fast32_t e3 = INT_FAST32_MAX;
5255int_fast32_t e3min = INT_FAST32_MIN;
5256int_fast64_t e4 = INT_FAST64_MAX;
5257int_fast64_t e4min = INT_FAST64_MIN;
5258uint_fast8_t f1 = UINT_FAST8_MAX;
5259uint_fast16_t f2 = UINT_FAST16_MAX;
5260uint_fast32_t f3 = UINT_FAST32_MAX;
5261uint_fast64_t f4 = UINT_FAST64_MAX;
5262#ifdef INTPTR_MAX
5263intptr_t g = INTPTR_MAX;
5264intptr_t gmin = INTPTR_MIN;
5265#endif
5266#ifdef UINTPTR_MAX
5267uintptr_t h = UINTPTR_MAX;
5268#endif
5269intmax_t i = INTMAX_MAX;
5270uintmax_t j = UINTMAX_MAX;
5271
5272#include <limits.h> /* for CHAR_BIT */
5273#define TYPE_MINIMUM(t) \
5274 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5275#define TYPE_MAXIMUM(t) \
5276 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5277struct s {
5278 int check_PTRDIFF:
5279 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5280 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5281 ? 1 : -1;
5282 /* Detect bug in FreeBSD 6.0 / ia64. */
5283 int check_SIG_ATOMIC:
5284 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5285 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5286 ? 1 : -1;
5287 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5288 int check_WCHAR:
5289 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5290 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5291 ? 1 : -1;
5292 /* Detect bug in mingw. */
5293 int check_WINT:
5294 WINT_MIN == TYPE_MINIMUM (wint_t)
5295 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5296 ? 1 : -1;
5297
5298 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5299 int check_UINT8_C:
5300 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5301 int check_UINT16_C:
5302 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5303
5304 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5305#ifdef UINT8_MAX
5306 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5307#endif
5308#ifdef UINT16_MAX
5309 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5310#endif
5311#ifdef UINT32_MAX
5312 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5313#endif
5314#ifdef UINT64_MAX
5315 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5316#endif
5317 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5318 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5319 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5320 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5321 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5322 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5323 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5324 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5325 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5326 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5327 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5328};
5329
5330int
5331main ()
5332{
5333
5334 ;
5335 return 0;
5336}
5337_ACEOF
5338rm -f conftest.$ac_objext
5339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5340 (eval $ac_compile) 2>conftest.er1
5341 ac_status=$?
5342 grep -v '^ *+' conftest.er1 >conftest.err
5343 rm -f conftest.er1
5344 cat conftest.err >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } &&
5347 { ac_try='test -z "$ac_c_werror_flag"
5348 || test ! -s conftest.err'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 (eval $ac_try) 2>&5
5351 ac_status=$?
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; } &&
5354 { ac_try='test -s conftest.$ac_objext'
5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356 (eval $ac_try) 2>&5
5357 ac_status=$?
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; }; then
5360 gl_cv_header_working_stdint_h=yes
5361else
5362 echo "$as_me: failed program was:" >&5
5363sed 's/^/| /' conftest.$ac_ext >&5
5364
5365fi
5366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5367fi
5368echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5369echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5370 fi
5371 if test "$gl_cv_header_working_stdint_h" = yes; then
5372 STDINT_H=
5373 else
5374
5375
5376for ac_header in sys/inttypes.h sys/bitypes.h
5377do
5378as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5379if eval "test \"\${$as_ac_Header+set}\" = set"; then
5380 echo "$as_me:$LINENO: checking for $ac_header" >&5
5381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5382if eval "test \"\${$as_ac_Header+set}\" = set"; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5384fi
5385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5387else
5388 # Is the header compilable?
5389echo "$as_me:$LINENO: checking $ac_header usability" >&5
5390echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5391cat >conftest.$ac_ext <<_ACEOF
5392/* confdefs.h. */
5393_ACEOF
5394cat confdefs.h >>conftest.$ac_ext
5395cat >>conftest.$ac_ext <<_ACEOF
5396/* end confdefs.h. */
5397$ac_includes_default
5398#include <$ac_header>
5399_ACEOF
5400rm -f conftest.$ac_objext
5401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5402 (eval $ac_compile) 2>conftest.er1
5403 ac_status=$?
5404 grep -v '^ *+' conftest.er1 >conftest.err
5405 rm -f conftest.er1
5406 cat conftest.err >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } &&
5409 { ac_try='test -z "$ac_c_werror_flag"
5410 || test ! -s conftest.err'
5411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412 (eval $ac_try) 2>&5
5413 ac_status=$?
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); }; } &&
5416 { ac_try='test -s conftest.$ac_objext'
5417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418 (eval $ac_try) 2>&5
5419 ac_status=$?
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; }; then
5422 ac_header_compiler=yes
5423else
5424 echo "$as_me: failed program was:" >&5
5425sed 's/^/| /' conftest.$ac_ext >&5
5426
5427ac_header_compiler=no
5428fi
5429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5431echo "${ECHO_T}$ac_header_compiler" >&6
5432
5433# Is the header present?
5434echo "$as_me:$LINENO: checking $ac_header presence" >&5
5435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5436cat >conftest.$ac_ext <<_ACEOF
5437/* confdefs.h. */
5438_ACEOF
5439cat confdefs.h >>conftest.$ac_ext
5440cat >>conftest.$ac_ext <<_ACEOF
5441/* end confdefs.h. */
5442#include <$ac_header>
5443_ACEOF
5444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5446 ac_status=$?
5447 grep -v '^ *+' conftest.er1 >conftest.err
5448 rm -f conftest.er1
5449 cat conftest.err >&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); } >/dev/null; then
5452 if test -s conftest.err; then
5453 ac_cpp_err=$ac_c_preproc_warn_flag
5454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5455 else
5456 ac_cpp_err=
5457 fi
5458else
5459 ac_cpp_err=yes
5460fi
5461if test -z "$ac_cpp_err"; then
5462 ac_header_preproc=yes
5463else
5464 echo "$as_me: failed program was:" >&5
5465sed 's/^/| /' conftest.$ac_ext >&5
5466
5467 ac_header_preproc=no
5468fi
5469rm -f conftest.err conftest.$ac_ext
5470echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5471echo "${ECHO_T}$ac_header_preproc" >&6
5472
5473# So? What about this header?
5474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5475 yes:no: )
5476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5479echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5480 ac_header_preproc=yes
5481 ;;
5482 no:yes:* )
5483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5484echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5486echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5488echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5490echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5492echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5494echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5495 (
5496 cat <<\_ASBOX
5497## ------------------------------------------ ##
5498## Report this to the AC_PACKAGE_NAME lists. ##
5499## ------------------------------------------ ##
5500_ASBOX
5501 ) |
5502 sed "s/^/$as_me: WARNING: /" >&2
5503 ;;
5504esac
5505echo "$as_me:$LINENO: checking for $ac_header" >&5
5506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5507if eval "test \"\${$as_ac_Header+set}\" = set"; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509else
5510 eval "$as_ac_Header=\$ac_header_preproc"
5511fi
5512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5513echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5514
5515fi
5516if test `eval echo '${'$as_ac_Header'}'` = yes; then
5517 cat >>confdefs.h <<_ACEOF
5518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5519_ACEOF
5520
5521fi
5522
5523done
5524
5525 if test $ac_cv_header_sys_inttypes_h = yes; then
5526 HAVE_SYS_INTTYPES_H=1
5527 else
5528 HAVE_SYS_INTTYPES_H=0
5529 fi
5530
5531 if test $ac_cv_header_sys_bitypes_h = yes; then
5532 HAVE_SYS_BITYPES_H=1
5533 else
5534 HAVE_SYS_BITYPES_H=0
5535 fi
5536
5537
5538
5539 :
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5555 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5556echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5557if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5559else
5560 if test "$cross_compiling" = yes; then
5561 # Depending upon the size, compute the lo and hi bounds.
5562cat >conftest.$ac_ext <<_ACEOF
5563/* confdefs.h. */
5564_ACEOF
5565cat confdefs.h >>conftest.$ac_ext
5566cat >>conftest.$ac_ext <<_ACEOF
5567/* end confdefs.h. */
5568
5569 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5570 included before <wchar.h>. */
5571 #include <stddef.h>
5572 #include <signal.h>
5573 #if HAVE_WCHAR_H
5574 # include <stdio.h>
5575 # include <time.h>
5576 # include <wchar.h>
5577 #endif
5578
5579#include <limits.h>
5580int
5581main ()
5582{
5583static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5584test_array [0] = 0
5585
5586 ;
5587 return 0;
5588}
5589_ACEOF
5590rm -f conftest.$ac_objext
5591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5592 (eval $ac_compile) 2>conftest.er1
5593 ac_status=$?
5594 grep -v '^ *+' conftest.er1 >conftest.err
5595 rm -f conftest.er1
5596 cat conftest.err >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
5599 { ac_try='test -z "$ac_c_werror_flag"
5600 || test ! -s conftest.err'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 (eval $ac_try) 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; } &&
5606 { ac_try='test -s conftest.$ac_objext'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 (eval $ac_try) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 ac_lo=0 ac_mid=0
5613 while :; do
5614 cat >conftest.$ac_ext <<_ACEOF
5615/* confdefs.h. */
5616_ACEOF
5617cat confdefs.h >>conftest.$ac_ext
5618cat >>conftest.$ac_ext <<_ACEOF
5619/* end confdefs.h. */
5620
5621 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5622 included before <wchar.h>. */
5623 #include <stddef.h>
5624 #include <signal.h>
5625 #if HAVE_WCHAR_H
5626 # include <stdio.h>
5627 # include <time.h>
5628 # include <wchar.h>
5629 #endif
5630
5631#include <limits.h>
5632int
5633main ()
5634{
5635static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5636test_array [0] = 0
5637
5638 ;
5639 return 0;
5640}
5641_ACEOF
5642rm -f conftest.$ac_objext
5643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5644 (eval $ac_compile) 2>conftest.er1
5645 ac_status=$?
5646 grep -v '^ *+' conftest.er1 >conftest.err
5647 rm -f conftest.er1
5648 cat conftest.err >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } &&
5651 { ac_try='test -z "$ac_c_werror_flag"
5652 || test ! -s conftest.err'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5654 (eval $ac_try) 2>&5
5655 ac_status=$?
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; } &&
5658 { ac_try='test -s conftest.$ac_objext'
5659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660 (eval $ac_try) 2>&5
5661 ac_status=$?
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; }; then
5664 ac_hi=$ac_mid; break
5665else
5666 echo "$as_me: failed program was:" >&5
5667sed 's/^/| /' conftest.$ac_ext >&5
5668
5669ac_lo=`expr $ac_mid + 1`
5670 if test $ac_lo -le $ac_mid; then
5671 ac_lo= ac_hi=
5672 break
5673 fi
5674 ac_mid=`expr 2 '*' $ac_mid + 1`
5675fi
5676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5677 done
5678else
5679 echo "$as_me: failed program was:" >&5
5680sed 's/^/| /' conftest.$ac_ext >&5
5681
5682cat >conftest.$ac_ext <<_ACEOF
5683/* confdefs.h. */
5684_ACEOF
5685cat confdefs.h >>conftest.$ac_ext
5686cat >>conftest.$ac_ext <<_ACEOF
5687/* end confdefs.h. */
5688
5689 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5690 included before <wchar.h>. */
5691 #include <stddef.h>
5692 #include <signal.h>
5693 #if HAVE_WCHAR_H
5694 # include <stdio.h>
5695 # include <time.h>
5696 # include <wchar.h>
5697 #endif
5698
5699#include <limits.h>
5700int
5701main ()
5702{
5703static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5704test_array [0] = 0
5705
5706 ;
5707 return 0;
5708}
5709_ACEOF
5710rm -f conftest.$ac_objext
5711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5712 (eval $ac_compile) 2>conftest.er1
5713 ac_status=$?
5714 grep -v '^ *+' conftest.er1 >conftest.err
5715 rm -f conftest.er1
5716 cat conftest.err >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } &&
5719 { ac_try='test -z "$ac_c_werror_flag"
5720 || test ! -s conftest.err'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 (eval $ac_try) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; } &&
5726 { ac_try='test -s conftest.$ac_objext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 (eval $ac_try) 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5732 ac_hi=-1 ac_mid=-1
5733 while :; do
5734 cat >conftest.$ac_ext <<_ACEOF
5735/* confdefs.h. */
5736_ACEOF
5737cat confdefs.h >>conftest.$ac_ext
5738cat >>conftest.$ac_ext <<_ACEOF
5739/* end confdefs.h. */
5740
5741 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5742 included before <wchar.h>. */
5743 #include <stddef.h>
5744 #include <signal.h>
5745 #if HAVE_WCHAR_H
5746 # include <stdio.h>
5747 # include <time.h>
5748 # include <wchar.h>
5749 #endif
5750
5751#include <limits.h>
5752int
5753main ()
5754{
5755static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5756test_array [0] = 0
5757
5758 ;
5759 return 0;
5760}
5761_ACEOF
5762rm -f conftest.$ac_objext
5763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5764 (eval $ac_compile) 2>conftest.er1
5765 ac_status=$?
5766 grep -v '^ *+' conftest.er1 >conftest.err
5767 rm -f conftest.er1
5768 cat conftest.err >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } &&
5771 { ac_try='test -z "$ac_c_werror_flag"
5772 || test ! -s conftest.err'
5773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774 (eval $ac_try) 2>&5
5775 ac_status=$?
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }; } &&
5778 { ac_try='test -s conftest.$ac_objext'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 (eval $ac_try) 2>&5
5781 ac_status=$?
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5784 ac_lo=$ac_mid; break
5785else
5786 echo "$as_me: failed program was:" >&5
5787sed 's/^/| /' conftest.$ac_ext >&5
5788
5789ac_hi=`expr '(' $ac_mid ')' - 1`
5790 if test $ac_mid -le $ac_hi; then
5791 ac_lo= ac_hi=
5792 break
5793 fi
5794 ac_mid=`expr 2 '*' $ac_mid`
5795fi
5796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5797 done
5798else
5799 echo "$as_me: failed program was:" >&5
5800sed 's/^/| /' conftest.$ac_ext >&5
5801
5802ac_lo= ac_hi=
5803fi
5804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5805fi
5806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5807# Binary search between lo and hi bounds.
5808while test "x$ac_lo" != "x$ac_hi"; do
5809 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5810 cat >conftest.$ac_ext <<_ACEOF
5811/* confdefs.h. */
5812_ACEOF
5813cat confdefs.h >>conftest.$ac_ext
5814cat >>conftest.$ac_ext <<_ACEOF
5815/* end confdefs.h. */
5816
5817 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5818 included before <wchar.h>. */
5819 #include <stddef.h>
5820 #include <signal.h>
5821 #if HAVE_WCHAR_H
5822 # include <stdio.h>
5823 # include <time.h>
5824 # include <wchar.h>
5825 #endif
5826
5827#include <limits.h>
5828int
5829main ()
5830{
5831static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5832test_array [0] = 0
5833
5834 ;
5835 return 0;
5836}
5837_ACEOF
5838rm -f conftest.$ac_objext
5839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5840 (eval $ac_compile) 2>conftest.er1
5841 ac_status=$?
5842 grep -v '^ *+' conftest.er1 >conftest.err
5843 rm -f conftest.er1
5844 cat conftest.err >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } &&
5847 { ac_try='test -z "$ac_c_werror_flag"
5848 || test ! -s conftest.err'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 (eval $ac_try) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; } &&
5854 { ac_try='test -s conftest.$ac_objext'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 (eval $ac_try) 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; }; then
5860 ac_hi=$ac_mid
5861else
5862 echo "$as_me: failed program was:" >&5
5863sed 's/^/| /' conftest.$ac_ext >&5
5864
5865ac_lo=`expr '(' $ac_mid ')' + 1`
5866fi
5867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5868done
5869case $ac_lo in
5870?*) result=$ac_lo;;
5871'') result=unknown ;;
5872esac
5873else
5874 if test "$cross_compiling" = yes; then
5875 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5876See \`config.log' for more details." >&5
5877echo "$as_me: error: cannot run test program while cross compiling
5878See \`config.log' for more details." >&2;}
5879 { (exit 1); exit 1; }; }
5880else
5881 cat >conftest.$ac_ext <<_ACEOF
5882/* confdefs.h. */
5883_ACEOF
5884cat confdefs.h >>conftest.$ac_ext
5885cat >>conftest.$ac_ext <<_ACEOF
5886/* end confdefs.h. */
5887
5888 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5889 included before <wchar.h>. */
5890 #include <stddef.h>
5891 #include <signal.h>
5892 #if HAVE_WCHAR_H
5893 # include <stdio.h>
5894 # include <time.h>
5895 # include <wchar.h>
5896 #endif
5897
5898#include <limits.h>
5899long longval () { return sizeof ($gltype) * CHAR_BIT; }
5900unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
5901#include <stdio.h>
5902#include <stdlib.h>
5903int
5904main ()
5905{
5906
5907 FILE *f = fopen ("conftest.val", "w");
5908 if (! f)
5909 exit (1);
5910 if ((sizeof ($gltype) * CHAR_BIT) < 0)
5911 {
5912 long i = longval ();
5913 if (i != (sizeof ($gltype) * CHAR_BIT))
5914 exit (1);
5915 fprintf (f, "%ld\n", i);
5916 }
5917 else
5918 {
5919 unsigned long i = ulongval ();
5920 if (i != (sizeof ($gltype) * CHAR_BIT))
5921 exit (1);
5922 fprintf (f, "%lu\n", i);
5923 }
5924 exit (ferror (f) || fclose (f) != 0);
5925
5926 ;
5927 return 0;
5928}
5929_ACEOF
5930rm -f conftest$ac_exeext
5931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5932 (eval $ac_link) 2>&5
5933 ac_status=$?
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 (eval $ac_try) 2>&5
5938 ac_status=$?
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; }; then
5941 result=`cat conftest.val`
5942else
5943 echo "$as_me: program exited with status $ac_status" >&5
5944echo "$as_me: failed program was:" >&5
5945sed 's/^/| /' conftest.$ac_ext >&5
5946
5947( exit $ac_status )
5948result=unknown
5949fi
5950rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5951fi
5952fi
5953rm -f conftest.val
5954 eval gl_cv_bitsizeof_${gltype}=\$result
c906108c 5955
783e057b
DJ
5956fi
5957echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
5958echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
5959 eval result=\$gl_cv_bitsizeof_${gltype}
5960 if test $result = unknown; then
5961 result=0
5962 fi
5963 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5964 cat >>confdefs.h <<_ACEOF
5965#define BITSIZEOF_${GLTYPE} $result
5966_ACEOF
c906108c 5967
783e057b
DJ
5968 eval BITSIZEOF_${GLTYPE}=\$result
5969 done
c906108c 5970
c906108c 5971
c906108c 5972
bec39cab 5973
3841debe 5974
783e057b
DJ
5975
5976
5977 for gltype in sig_atomic_t wchar_t wint_t ; do
5978 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
5979echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
5980if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5982else
5983 cat >conftest.$ac_ext <<_ACEOF
5984/* confdefs.h. */
5985_ACEOF
5986cat confdefs.h >>conftest.$ac_ext
5987cat >>conftest.$ac_ext <<_ACEOF
5988/* end confdefs.h. */
5989
5990 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5991 included before <wchar.h>. */
5992 #include <stddef.h>
5993 #include <signal.h>
5994 #if HAVE_WCHAR_H
5995 # include <stdio.h>
5996 # include <time.h>
5997 # include <wchar.h>
5998 #endif
5999
6000 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6001int
6002main ()
6003{
6004
6005 ;
6006 return 0;
6007}
6008_ACEOF
6009rm -f conftest.$ac_objext
6010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6011 (eval $ac_compile) 2>conftest.er1
6012 ac_status=$?
6013 grep -v '^ *+' conftest.er1 >conftest.err
6014 rm -f conftest.er1
6015 cat conftest.err >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } &&
6018 { ac_try='test -z "$ac_c_werror_flag"
6019 || test ! -s conftest.err'
6020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 (eval $ac_try) 2>&5
6022 ac_status=$?
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; } &&
6025 { ac_try='test -s conftest.$ac_objext'
6026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 (eval $ac_try) 2>&5
6028 ac_status=$?
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }; }; then
6031 result=yes
6032else
6033 echo "$as_me: failed program was:" >&5
6034sed 's/^/| /' conftest.$ac_ext >&5
6035
6036result=no
20e95c23 6037fi
783e057b
DJ
6038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6039 eval gl_cv_type_${gltype}_signed=\$result
6040
6041fi
6042echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6043echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6044 eval result=\$gl_cv_type_${gltype}_signed
6045 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6046 if test "$result" = yes; then
6047 cat >>confdefs.h <<_ACEOF
6048#define HAVE_SIGNED_${GLTYPE} 1
6049_ACEOF
6050
6051 eval HAVE_SIGNED_${GLTYPE}=1
6052 else
6053 eval HAVE_SIGNED_${GLTYPE}=0
6054 fi
6055 done
6056
6057
6058 gl_cv_type_ptrdiff_t_signed=yes
6059 gl_cv_type_size_t_signed=no
6060
6061
6062
6063
6064
6065
6066
6067 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6068 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6069echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6070if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6072else
783e057b
DJ
6073 eval gl_cv_type_${gltype}_suffix=no
6074 eval result=\$gl_cv_type_${gltype}_signed
6075 if test "$result" = yes; then
6076 glsufu=
6077 else
6078 glsufu=u
6079 fi
6080 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6081 case $glsuf in
6082 '') gltype1='int';;
6083 l) gltype1='long int';;
6084 ll) gltype1='long long int';;
6085 i64) gltype1='__int64';;
6086 u) gltype1='unsigned int';;
6087 ul) gltype1='unsigned long int';;
6088 ull) gltype1='unsigned long long int';;
6089 ui64)gltype1='unsigned __int64';;
6090 esac
6091 cat >conftest.$ac_ext <<_ACEOF
6092/* confdefs.h. */
6093_ACEOF
6094cat confdefs.h >>conftest.$ac_ext
6095cat >>conftest.$ac_ext <<_ACEOF
6096/* end confdefs.h. */
6097
6098 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6099 included before <wchar.h>. */
6100 #include <stddef.h>
6101 #include <signal.h>
6102 #if HAVE_WCHAR_H
6103 # include <stdio.h>
6104 # include <time.h>
6105 # include <wchar.h>
6106 #endif
6107
6108 extern $gltype foo;
6109 extern $gltype1 foo;
6110int
6111main ()
6112{
6113
6114 ;
6115 return 0;
6116}
6117_ACEOF
6118rm -f conftest.$ac_objext
6119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6120 (eval $ac_compile) 2>conftest.er1
6121 ac_status=$?
6122 grep -v '^ *+' conftest.er1 >conftest.err
6123 rm -f conftest.er1
6124 cat conftest.err >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try='test -z "$ac_c_werror_flag"
6128 || test ! -s conftest.err'
6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130 (eval $ac_try) 2>&5
6131 ac_status=$?
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; } &&
6134 { ac_try='test -s conftest.$ac_objext'
6135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 (eval $ac_try) 2>&5
6137 ac_status=$?
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }; }; then
6140 eval gl_cv_type_${gltype}_suffix=\$glsuf
6141else
6142 echo "$as_me: failed program was:" >&5
6143sed 's/^/| /' conftest.$ac_ext >&5
6144
6145fi
6146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6147 eval result=\$gl_cv_type_${gltype}_suffix
6148 test "$result" != no && break
6149 done
6150fi
6151echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6152echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6153 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6154 eval result=\$gl_cv_type_${gltype}_suffix
6155 test "$result" = no && result=
6156 eval ${GLTYPE}_SUFFIX=\$result
6157 cat >>confdefs.h <<_ACEOF
6158#define ${GLTYPE}_SUFFIX $result
6159_ACEOF
6160
6161 done
6162
6163
6164
6165 STDINT_H=stdint.h
6166 fi
6167
6168
6169
6170
6171
6172
6173
6174 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6175echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6176if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6178else
6179 cat >conftest.$ac_ext <<_ACEOF
6180#include <wchar.h>
6181wchar_t w;
6182_ACEOF
6183rm -f conftest.$ac_objext
6184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6185 (eval $ac_compile) 2>conftest.er1
6186 ac_status=$?
6187 grep -v '^ *+' conftest.er1 >conftest.err
6188 rm -f conftest.er1
6189 cat conftest.err >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } &&
6192 { ac_try='test -z "$ac_c_werror_flag"
6193 || test ! -s conftest.err'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 (eval $ac_try) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; } &&
6199 { ac_try='test -s conftest.$ac_objext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 (eval $ac_try) 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6205 gl_cv_header_wchar_h_standalone=yes
6206else
6207 echo "$as_me: failed program was:" >&5
6208sed 's/^/| /' conftest.$ac_ext >&5
6209
6210gl_cv_header_wchar_h_standalone=no
6211fi
6212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6213fi
6214echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6215echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6216 if test $gl_cv_header_wchar_h_standalone != yes; then
6217 WCHAR_H=wchar.h
6218 fi
6219
6220
6221 :
6222
6223
6224
6225
6226
6227 if test $ac_cv_header_wchar_h = yes; then
6228 HAVE_WCHAR_H=1
6229 else
6230 HAVE_WCHAR_H=0
6231 fi
6232
6233
6234
6235
6236 :
6237
6238
6239
6240
6241
6242
6243
6244 if test $gl_cv_have_include_next = yes; then
6245 gl_cv_next_wchar_h='<'wchar.h'>'
6246 else
6247 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6248echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6249if test "${gl_cv_next_wchar_h+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6251else
6252
6253 if test $ac_cv_header_wchar_h = yes; then
6254 cat >conftest.$ac_ext <<_ACEOF
6255/* confdefs.h. */
6256_ACEOF
6257cat confdefs.h >>conftest.$ac_ext
6258cat >>conftest.$ac_ext <<_ACEOF
6259/* end confdefs.h. */
6260#include <wchar.h>
6261
6262_ACEOF
6263 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6264 sed -n '\#/wchar.h#{
6265 s#.*"\(.*/wchar.h\)".*#\1#
6266 s#^/[^/]#//&#
6267 p
6268 q
6269 }'`'"'
6270 else
6271 gl_cv_next_wchar_h='<'wchar.h'>'
6272 fi
6273
6274fi
6275echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6276echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6277 fi
6278 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6279
c906108c 6280
c906108c 6281
c906108c 6282
c906108c 6283
c906108c 6284
c906108c 6285
c906108c 6286
783e057b
DJ
6287 gltests_libdeps=
6288 gltests_ltlibdeps=
20e95c23 6289
20e95c23 6290
20e95c23 6291
783e057b 6292 gl_source_base='tests'
c906108c 6293
bec39cab 6294
bec39cab 6295
783e057b
DJ
6296
6297 LIBGNU_LIBDEPS="$gl_libdeps"
6298
6299 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6300
6301
e28b3332 6302
bec39cab
AC
6303PACKAGE=gdb
6304
6305cat >>confdefs.h <<_ACEOF
6306#define PACKAGE "$PACKAGE"
6307_ACEOF
6308
6309
6310
e28b3332
DJ
6311# GDB does not use automake, but gnulib does. This line lets us
6312# generate its Makefile.in.
6313am__api_version="1.9"
6314# Find a good install program. We prefer a C program (faster),
6315# so one script is as good as another. But avoid the broken or
6316# incompatible versions:
6317# SysV /etc/install, /usr/sbin/install
6318# SunOS /usr/etc/install
6319# IRIX /sbin/install
6320# AIX /bin/install
6321# AmigaOS /C/install, which installs bootblocks on floppy discs
6322# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6323# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6324# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6325# OS/2's system install, which has a completely different semantic
6326# ./install, which can be erroneously created by make from ./install.sh.
6327echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6328echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6329if test -z "$INSTALL"; then
6330if test "${ac_cv_path_install+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6332else
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334for as_dir in $PATH
6335do
6336 IFS=$as_save_IFS
6337 test -z "$as_dir" && as_dir=.
6338 # Account for people who put trailing slashes in PATH elements.
6339case $as_dir/ in
6340 ./ | .// | /cC/* | \
6341 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6342 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6343 /usr/ucb/* ) ;;
6344 *)
6345 # OSF1 and SCO ODT 3.0 have their own names for install.
6346 # Don't use installbsd from OSF since it installs stuff as root
6347 # by default.
6348 for ac_prog in ginstall scoinst install; do
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6351 if test $ac_prog = install &&
6352 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6353 # AIX install. It has an incompatible calling convention.
6354 :
6355 elif test $ac_prog = install &&
6356 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6357 # program-specific install script used by HP pwplus--don't use.
6358 :
6359 else
6360 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6361 break 3
6362 fi
6363 fi
6364 done
6365 done
6366 ;;
6367esac
6368done
6369
6370
6371fi
6372 if test "${ac_cv_path_install+set}" = set; then
6373 INSTALL=$ac_cv_path_install
6374 else
6375 # As a last resort, use the slow shell script. We don't cache a
6376 # path for INSTALL within a source directory, because that will
6377 # break other packages using the cache if that directory is
6378 # removed, or if the path is relative.
6379 INSTALL=$ac_install_sh
6380 fi
6381fi
6382echo "$as_me:$LINENO: result: $INSTALL" >&5
6383echo "${ECHO_T}$INSTALL" >&6
6384
6385# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6386# It thinks the first close brace ends the variable substitution.
6387test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6388
6389test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6390
6391test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6392
6393echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6394echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6395# Just in case
6396sleep 1
6397echo timestamp > conftest.file
6398# Do `set' in a subshell so we don't clobber the current shell's
6399# arguments. Must try -L first in case configure is actually a
6400# symlink; some systems play weird games with the mod time of symlinks
6401# (eg FreeBSD returns the mod time of the symlink's containing
6402# directory).
6403if (
6404 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6405 if test "$*" = "X"; then
6406 # -L didn't work.
6407 set X `ls -t $srcdir/configure conftest.file`
6408 fi
6409 rm -f conftest.file
6410 if test "$*" != "X $srcdir/configure conftest.file" \
6411 && test "$*" != "X conftest.file $srcdir/configure"; then
6412
6413 # If neither matched, then we have a broken ls. This can happen
6414 # if, for instance, CONFIG_SHELL is bash and it inherits a
6415 # broken ls alias from the environment. This has actually
6416 # happened. Such a system could not be considered "sane".
6417 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6418alias in your environment" >&5
6419echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6420alias in your environment" >&2;}
6421 { (exit 1); exit 1; }; }
6422 fi
6423
6424 test "$2" = conftest.file
6425 )
6426then
6427 # Ok.
6428 :
6429else
6430 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6431Check your system clock" >&5
6432echo "$as_me: error: newly created file is older than distributed files!
6433Check your system clock" >&2;}
6434 { (exit 1); exit 1; }; }
6435fi
6436echo "$as_me:$LINENO: result: yes" >&5
6437echo "${ECHO_T}yes" >&6
6438test "$program_prefix" != NONE &&
6439 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6440# Use a double $ so make ignores it.
6441test "$program_suffix" != NONE &&
6442 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6443# Double any \ or $. echo might interpret backslashes.
6444# By default was `s,x,x', remove it if useless.
6445cat <<\_ACEOF >conftest.sed
6446s/[\\$]/&&/g;s/;s,x,x,$//
6447_ACEOF
6448program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6449rm conftest.sed
6450
6451# expand $ac_aux_dir to an absolute path
6452am_aux_dir=`cd $ac_aux_dir && pwd`
6453
6454test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6455# Use eval to expand $SHELL
6456if eval "$MISSING --run true"; then
6457 am_missing_run="$MISSING --run "
6458else
6459 am_missing_run=
6460 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6461echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6462fi
6463
6464if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6465 # We used to keeping the `.' as first argument, in order to
6466 # allow $(mkdir_p) to be used without argument. As in
6467 # $(mkdir_p) $(somedir)
6468 # where $(somedir) is conditionally defined. However this is wrong
6469 # for two reasons:
6470 # 1. if the package is installed by a user who cannot write `.'
6471 # make install will fail,
6472 # 2. the above comment should most certainly read
6473 # $(mkdir_p) $(DESTDIR)$(somedir)
6474 # so it does not work when $(somedir) is undefined and
6475 # $(DESTDIR) is not.
6476 # To support the latter case, we have to write
6477 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6478 # so the `.' trick is pointless.
6479 mkdir_p='mkdir -p --'
6480else
6481 # On NextStep and OpenStep, the `mkdir' command does not
6482 # recognize any option. It will interpret all options as
6483 # directories to create, and then abort because `.' already
6484 # exists.
6485 for d in ./-p ./--version;
6486 do
6487 test -d $d && rmdir $d
6488 done
6489 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6490 if test -f "$ac_aux_dir/mkinstalldirs"; then
6491 mkdir_p='$(mkinstalldirs)'
6492 else
6493 mkdir_p='$(install_sh) -d'
6494 fi
6495fi
6496
6497for ac_prog in gawk mawk nawk awk
6498do
6499 # Extract the first word of "$ac_prog", so it can be a program name with args.
6500set dummy $ac_prog; ac_word=$2
6501echo "$as_me:$LINENO: checking for $ac_word" >&5
6502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6503if test "${ac_cv_prog_AWK+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505else
6506 if test -n "$AWK"; then
6507 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6508else
6509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510for as_dir in $PATH
6511do
6512 IFS=$as_save_IFS
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6516 ac_cv_prog_AWK="$ac_prog"
6517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 break 2
6519 fi
6520done
6521done
6522
6523fi
6524fi
6525AWK=$ac_cv_prog_AWK
6526if test -n "$AWK"; then
6527 echo "$as_me:$LINENO: result: $AWK" >&5
6528echo "${ECHO_T}$AWK" >&6
6529else
6530 echo "$as_me:$LINENO: result: no" >&5
6531echo "${ECHO_T}no" >&6
6532fi
6533
6534 test -n "$AWK" && break
6535done
6536
6537echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6538echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6539set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6540if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6542else
6543 cat >conftest.make <<\_ACEOF
6544all:
6545 @echo 'ac_maketemp="$(MAKE)"'
6546_ACEOF
6547# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6548eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6549if test -n "$ac_maketemp"; then
6550 eval ac_cv_prog_make_${ac_make}_set=yes
6551else
6552 eval ac_cv_prog_make_${ac_make}_set=no
6553fi
6554rm -f conftest.make
6555fi
6556if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6557 echo "$as_me:$LINENO: result: yes" >&5
6558echo "${ECHO_T}yes" >&6
6559 SET_MAKE=
6560else
6561 echo "$as_me:$LINENO: result: no" >&5
6562echo "${ECHO_T}no" >&6
6563 SET_MAKE="MAKE=${MAKE-make}"
6564fi
6565
6566rm -rf .tst 2>/dev/null
6567mkdir .tst 2>/dev/null
6568if test -d .tst; then
6569 am__leading_dot=.
6570else
6571 am__leading_dot=_
6572fi
6573rmdir .tst 2>/dev/null
6574
6575DEPDIR="${am__leading_dot}deps"
6576
6577 ac_config_commands="$ac_config_commands depfiles"
6578
6579
6580am_make=${MAKE-make}
6581cat > confinc << 'END'
6582am__doit:
6583 @echo done
6584.PHONY: am__doit
6585END
6586# If we don't find an include directive, just comment out the code.
6587echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6588echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6589am__include="#"
6590am__quote=
6591_am_result=none
6592# First try GNU make style include.
6593echo "include confinc" > confmf
6594# We grep out `Entering directory' and `Leaving directory'
6595# messages which can occur if `w' ends up in MAKEFLAGS.
6596# In particular we don't look at `^make:' because GNU make might
6597# be invoked under some other name (usually "gmake"), in which
6598# case it prints its new name instead of `make'.
6599if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6600 am__include=include
6601 am__quote=
6602 _am_result=GNU
6603fi
6604# Now try BSD make style include.
6605if test "$am__include" = "#"; then
6606 echo '.include "confinc"' > confmf
6607 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6608 am__include=.include
6609 am__quote="\""
6610 _am_result=BSD
6611 fi
6612fi
6613
6614
6615echo "$as_me:$LINENO: result: $_am_result" >&5
6616echo "${ECHO_T}$_am_result" >&6
6617rm -f confinc confmf
6618
6619# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6620if test "${enable_dependency_tracking+set}" = set; then
6621 enableval="$enable_dependency_tracking"
6622
6623fi;
6624if test "x$enable_dependency_tracking" != xno; then
6625 am_depcomp="$ac_aux_dir/depcomp"
6626 AMDEPBACKSLASH='\'
6627fi
6628
6629
6630if test "x$enable_dependency_tracking" != xno; then
6631 AMDEP_TRUE=
6632 AMDEP_FALSE='#'
6633else
6634 AMDEP_TRUE='#'
6635 AMDEP_FALSE=
6636fi
6637
6638
6639
6640# test to see if srcdir already configured
6641if test "`cd $srcdir && pwd`" != "`pwd`" &&
6642 test -f $srcdir/config.status; then
6643 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6644echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6645 { (exit 1); exit 1; }; }
6646fi
6647
6648# test whether we have cygpath
6649if test -z "$CYGPATH_W"; then
6650 if (cygpath --version) >/dev/null 2>/dev/null; then
6651 CYGPATH_W='cygpath -w'
6652 else
6653 CYGPATH_W=echo
6654 fi
6655fi
6656
6657
6658# Define the identity of the package.
6659 PACKAGE=gdb
6660 VERSION=UNUSED-VERSION
6661
6662
6663# Some tools Automake needs.
6664
6665ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6666
6667
6668AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6669
6670
6671AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6672
6673
6674AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6675
6676
6677MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6678
6679install_sh=${install_sh-"$am_aux_dir/install-sh"}
6680
6681# Installed binaries are usually stripped using `strip' when the user
6682# run `make install-strip'. However `strip' might not be the right
6683# tool to use in cross-compilation environments, therefore Automake
6684# will honor the `STRIP' environment variable to overrule this program.
6685if test "$cross_compiling" != no; then
6686 if test -n "$ac_tool_prefix"; then
6687 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6688set dummy ${ac_tool_prefix}strip; ac_word=$2
6689echo "$as_me:$LINENO: checking for $ac_word" >&5
6690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6691if test "${ac_cv_prog_STRIP+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6693else
6694 if test -n "$STRIP"; then
6695 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6696else
6697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698for as_dir in $PATH
6699do
6700 IFS=$as_save_IFS
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6704 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 break 2
6707 fi
6708done
6709done
6710
6711fi
6712fi
6713STRIP=$ac_cv_prog_STRIP
6714if test -n "$STRIP"; then
6715 echo "$as_me:$LINENO: result: $STRIP" >&5
6716echo "${ECHO_T}$STRIP" >&6
6717else
6718 echo "$as_me:$LINENO: result: no" >&5
6719echo "${ECHO_T}no" >&6
6720fi
6721
6722fi
6723if test -z "$ac_cv_prog_STRIP"; then
6724 ac_ct_STRIP=$STRIP
6725 # Extract the first word of "strip", so it can be a program name with args.
6726set dummy strip; ac_word=$2
6727echo "$as_me:$LINENO: checking for $ac_word" >&5
6728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6729if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6731else
6732 if test -n "$ac_ct_STRIP"; then
6733 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6734else
6735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736for as_dir in $PATH
6737do
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6742 ac_cv_prog_ac_ct_STRIP="strip"
6743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 break 2
6745 fi
6746done
6747done
6748
6749 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6750fi
6751fi
6752ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6753if test -n "$ac_ct_STRIP"; then
6754 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6755echo "${ECHO_T}$ac_ct_STRIP" >&6
6756else
6757 echo "$as_me:$LINENO: result: no" >&5
6758echo "${ECHO_T}no" >&6
6759fi
6760
6761 STRIP=$ac_ct_STRIP
6762else
6763 STRIP="$ac_cv_prog_STRIP"
6764fi
6765
6766fi
6767INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6768
6769# We need awk for the "check" target. The system "awk" is bad on
6770# some platforms.
6771# Always define AMTAR for backward compatibility.
6772
6773AMTAR=${AMTAR-"${am_missing_run}tar"}
6774
6775am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6776
6777
6778
6779
6780depcc="$CC" am_compiler_list=
6781
6782echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6783echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6784if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6786else
6787 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6788 # We make a subdir and do the tests there. Otherwise we can end up
6789 # making bogus files that we don't know about and never remove. For
6790 # instance it was reported that on HP-UX the gcc test will end up
6791 # making a dummy file named `D' -- because `-MD' means `put the output
6792 # in D'.
6793 mkdir conftest.dir
6794 # Copy depcomp to subdir because otherwise we won't find it if we're
6795 # using a relative directory.
6796 cp "$am_depcomp" conftest.dir
6797 cd conftest.dir
6798 # We will build objects and dependencies in a subdirectory because
6799 # it helps to detect inapplicable dependency modes. For instance
6800 # both Tru64's cc and ICC support -MD to output dependencies as a
6801 # side effect of compilation, but ICC will put the dependencies in
6802 # the current directory while Tru64 will put them in the object
6803 # directory.
6804 mkdir sub
6805
6806 am_cv_CC_dependencies_compiler_type=none
6807 if test "$am_compiler_list" = ""; then
6808 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6809 fi
6810 for depmode in $am_compiler_list; do
6811 # Setup a source with many dependencies, because some compilers
6812 # like to wrap large dependency lists on column 80 (with \), and
6813 # we should not choose a depcomp mode which is confused by this.
6814 #
6815 # We need to recreate these files for each test, as the compiler may
6816 # overwrite some of them when testing with obscure command lines.
6817 # This happens at least with the AIX C compiler.
6818 : > sub/conftest.c
6819 for i in 1 2 3 4 5 6; do
6820 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6821 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6822 # Solaris 8's {/usr,}/bin/sh.
6823 touch sub/conftst$i.h
6824 done
6825 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6826
6827 case $depmode in
6828 nosideeffect)
6829 # after this tag, mechanisms are not by side-effect, so they'll
6830 # only be used when explicitly requested
6831 if test "x$enable_dependency_tracking" = xyes; then
6832 continue
6833 else
6834 break
6835 fi
6836 ;;
6837 none) break ;;
6838 esac
6839 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6840 # mode. It turns out that the SunPro C++ compiler does not properly
6841 # handle `-M -o', and we need to detect this.
6842 if depmode=$depmode \
6843 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6844 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6845 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6846 >/dev/null 2>conftest.err &&
6847 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6848 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6849 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6850 # icc doesn't choke on unknown options, it will just issue warnings
6851 # or remarks (even with -Werror). So we grep stderr for any message
6852 # that says an option was ignored or not supported.
6853 # When given -MP, icc 7.0 and 7.1 complain thusly:
6854 # icc: Command line warning: ignoring option '-M'; no argument required
6855 # The diagnosis changed in icc 8.0:
6856 # icc: Command line remark: option '-MP' not supported
6857 if (grep 'ignoring option' conftest.err ||
6858 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6859 am_cv_CC_dependencies_compiler_type=$depmode
6860 break
6861 fi
6862 fi
6863 done
6864
6865 cd ..
6866 rm -rf conftest.dir
6867else
6868 am_cv_CC_dependencies_compiler_type=none
6869fi
6870
6871fi
6872echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6873echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6874CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6875
6876
6877
6878if
6879 test "x$enable_dependency_tracking" != xno \
6880 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6881 am__fastdepCC_TRUE=
6882 am__fastdepCC_FALSE='#'
6883else
6884 am__fastdepCC_TRUE='#'
6885 am__fastdepCC_FALSE=
6886fi
6887
6888
6889
6890
bec39cab
AC
6891debugdir=${libdir}/debug
6892
6893
b4e70030 6894# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
bec39cab 6895if test "${with_separate_debug_dir+set}" = set; then
783e057b
DJ
6896 withval="$with_separate_debug_dir"
6897 debugdir="${withval}"
6898fi;
20e95c23 6899
20e95c23 6900
783e057b
DJ
6901 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6902 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6903 ac_define_dir=`eval echo $debugdir`
6904 ac_define_dir=`eval echo $ac_define_dir`
20e95c23 6905
783e057b
DJ
6906cat >>confdefs.h <<_ACEOF
6907#define DEBUGDIR "$ac_define_dir"
20e95c23 6908_ACEOF
20e95c23 6909
20e95c23 6910
783e057b 6911#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
20e95c23 6912
783e057b
DJ
6913if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6914 if test "x$prefix" = xNONE; then
6915 test_prefix=/usr/local
6916 else
6917 test_prefix=$prefix
6918 fi
20e95c23 6919else
783e057b 6920 test_prefix=$exec_prefix
20e95c23 6921fi
783e057b
DJ
6922case ${debugdir} in
6923"${test_prefix}"|"${test_prefix}/"*|\
6924'${exec_prefix}'|'${exec_prefix}/'*)
20e95c23
DJ
6925
6926cat >>confdefs.h <<\_ACEOF
783e057b 6927#define DEBUGDIR_RELOCATABLE 1
20e95c23
DJ
6928_ACEOF
6929
783e057b
DJ
6930 ;;
6931esac
6932
20e95c23 6933
20e95c23 6934
783e057b 6935subdirs="$subdirs doc testsuite"
20e95c23
DJ
6936
6937
783e057b
DJ
6938# Check whether to support alternative target configurations
6939# Check whether --enable-targets or --disable-targets was given.
6940if test "${enable_targets+set}" = set; then
6941 enableval="$enable_targets"
6942 case "${enableval}" in
6943 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
6944echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
6945 { (exit 1); exit 1; }; }
6946 ;;
6947 no) enable_targets= ;;
6948 *) enable_targets=$enableval ;;
6949esac
6950fi;
20e95c23 6951
783e057b
DJ
6952# Check whether to enable 64-bit support on 32-bit hosts
6953# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
6954if test "${enable_64_bit_bfd+set}" = set; then
6955 enableval="$enable_64_bit_bfd"
6956 case "${enableval}" in
6957 yes) want64=true ;;
6958 no) want64=false ;;
6959 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
6960echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
6961 { (exit 1); exit 1; }; } ;;
6962esac
6963else
6964 want64=false
6965fi;
6966# Provide defaults for some variables set by the per-host and per-target
6967# configuration.
6968gdb_host_obs=posix-hdep.o
20e95c23 6969
783e057b
DJ
6970if test "${target}" = "${host}"; then
6971 gdb_native=yes
6972else
6973 gdb_native=no
6974fi
20e95c23 6975
783e057b 6976. $srcdir/configure.host
20e95c23 6977
783e057b 6978# Accumulate some settings from configure.tgt over all enabled targets
20e95c23 6979
783e057b
DJ
6980TARGET_OBS=
6981all_targets=
20e95c23 6982
783e057b 6983for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
20e95c23 6984do
783e057b
DJ
6985 if test "$targ_alias" = "all"; then
6986 all_targets=true
6987 else
6988 # Canonicalize the secondary target names.
6989 result=`$ac_config_sub $targ_alias 2>/dev/null`
6990 if test -n "$result"; then
6991 targ=$result
6992 else
6993 targ=$targ_alias
6994 fi
20e95c23 6995
783e057b 6996 . ${srcdir}/configure.tgt
20e95c23 6997
783e057b
DJ
6998 # Target-specific object files
6999 for i in ${gdb_target_obs}; do
7000 case " $TARGET_OBS " in
7001 *" ${i} "*) ;;
7002 *)
7003 TARGET_OBS="$TARGET_OBS ${i}"
7004 ;;
7005 esac
7006 done
20e95c23 7007
783e057b
DJ
7008 # Check whether this target needs 64-bit CORE_ADDR
7009 if test x${want64} = xfalse; then
7010 . ${srcdir}/../bfd/config.bfd
7011 fi
7012 fi
20e95c23
DJ
7013done
7014
783e057b
DJ
7015if test x${all_targets} = xtrue; then
7016
7017 # We want all 64-bit targets if we either:
7018 # - run on a 64-bit host or
7019 # - already require 64-bit support for some other target or
7020 # - the --enable-64-bit-bfd option was supplied
7021 # Otherwise we only support all 32-bit targets.
7022 #
7023 # NOTE: This test must be in sync with the corresponding
7024 # tests in BFD!
20e95c23 7025
783e057b
DJ
7026 if test x${want64} = xfalse; then
7027 echo "$as_me:$LINENO: checking for long" >&5
c0993dbe
UW
7028echo $ECHO_N "checking for long... $ECHO_C" >&6
7029if test "${ac_cv_type_long+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7031else
7032 cat >conftest.$ac_ext <<_ACEOF
7033/* confdefs.h. */
7034_ACEOF
7035cat confdefs.h >>conftest.$ac_ext
7036cat >>conftest.$ac_ext <<_ACEOF
7037/* end confdefs.h. */
7038$ac_includes_default
7039int
7040main ()
7041{
7042if ((long *) 0)
7043 return 0;
7044if (sizeof (long))
7045 return 0;
7046 ;
7047 return 0;
7048}
7049_ACEOF
7050rm -f conftest.$ac_objext
7051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7052 (eval $ac_compile) 2>conftest.er1
7053 ac_status=$?
7054 grep -v '^ *+' conftest.er1 >conftest.err
7055 rm -f conftest.er1
7056 cat conftest.err >&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } &&
7059 { ac_try='test -z "$ac_c_werror_flag"
7060 || test ! -s conftest.err'
7061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 (eval $ac_try) 2>&5
7063 ac_status=$?
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; } &&
7066 { ac_try='test -s conftest.$ac_objext'
7067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068 (eval $ac_try) 2>&5
7069 ac_status=$?
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); }; }; then
7072 ac_cv_type_long=yes
7073else
7074 echo "$as_me: failed program was:" >&5
7075sed 's/^/| /' conftest.$ac_ext >&5
7076
7077ac_cv_type_long=no
7078fi
7079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7080fi
7081echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7082echo "${ECHO_T}$ac_cv_type_long" >&6
7083
7084echo "$as_me:$LINENO: checking size of long" >&5
7085echo $ECHO_N "checking size of long... $ECHO_C" >&6
7086if test "${ac_cv_sizeof_long+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7088else
7089 if test "$ac_cv_type_long" = yes; then
7090 # The cast to unsigned long works around a bug in the HP C Compiler
7091 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7092 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7093 # This bug is HP SR number 8606223364.
7094 if test "$cross_compiling" = yes; then
7095 # Depending upon the size, compute the lo and hi bounds.
7096cat >conftest.$ac_ext <<_ACEOF
7097/* confdefs.h. */
7098_ACEOF
7099cat confdefs.h >>conftest.$ac_ext
7100cat >>conftest.$ac_ext <<_ACEOF
7101/* end confdefs.h. */
7102$ac_includes_default
7103int
7104main ()
7105{
7106static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7107test_array [0] = 0
7108
7109 ;
7110 return 0;
7111}
7112_ACEOF
7113rm -f conftest.$ac_objext
7114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7115 (eval $ac_compile) 2>conftest.er1
7116 ac_status=$?
7117 grep -v '^ *+' conftest.er1 >conftest.err
7118 rm -f conftest.er1
7119 cat conftest.err >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } &&
7122 { ac_try='test -z "$ac_c_werror_flag"
7123 || test ! -s conftest.err'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 (eval $ac_try) 2>&5
7126 ac_status=$?
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; } &&
7129 { ac_try='test -s conftest.$ac_objext'
7130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131 (eval $ac_try) 2>&5
7132 ac_status=$?
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); }; }; then
7135 ac_lo=0 ac_mid=0
7136 while :; do
7137 cat >conftest.$ac_ext <<_ACEOF
7138/* confdefs.h. */
7139_ACEOF
7140cat confdefs.h >>conftest.$ac_ext
7141cat >>conftest.$ac_ext <<_ACEOF
7142/* end confdefs.h. */
7143$ac_includes_default
7144int
7145main ()
7146{
7147static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7148test_array [0] = 0
7149
7150 ;
7151 return 0;
7152}
7153_ACEOF
7154rm -f conftest.$ac_objext
7155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7156 (eval $ac_compile) 2>conftest.er1
7157 ac_status=$?
7158 grep -v '^ *+' conftest.er1 >conftest.err
7159 rm -f conftest.er1
7160 cat conftest.err >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } &&
7163 { ac_try='test -z "$ac_c_werror_flag"
7164 || test ! -s conftest.err'
7165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166 (eval $ac_try) 2>&5
7167 ac_status=$?
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); }; } &&
7170 { ac_try='test -s conftest.$ac_objext'
7171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172 (eval $ac_try) 2>&5
7173 ac_status=$?
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); }; }; then
7176 ac_hi=$ac_mid; break
7177else
7178 echo "$as_me: failed program was:" >&5
7179sed 's/^/| /' conftest.$ac_ext >&5
7180
7181ac_lo=`expr $ac_mid + 1`
7182 if test $ac_lo -le $ac_mid; then
7183 ac_lo= ac_hi=
7184 break
7185 fi
7186 ac_mid=`expr 2 '*' $ac_mid + 1`
7187fi
7188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7189 done
7190else
7191 echo "$as_me: failed program was:" >&5
7192sed 's/^/| /' conftest.$ac_ext >&5
7193
7194cat >conftest.$ac_ext <<_ACEOF
7195/* confdefs.h. */
7196_ACEOF
7197cat confdefs.h >>conftest.$ac_ext
7198cat >>conftest.$ac_ext <<_ACEOF
7199/* end confdefs.h. */
7200$ac_includes_default
7201int
7202main ()
7203{
7204static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7205test_array [0] = 0
7206
7207 ;
7208 return 0;
7209}
7210_ACEOF
7211rm -f conftest.$ac_objext
7212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7213 (eval $ac_compile) 2>conftest.er1
7214 ac_status=$?
7215 grep -v '^ *+' conftest.er1 >conftest.err
7216 rm -f conftest.er1
7217 cat conftest.err >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } &&
7220 { ac_try='test -z "$ac_c_werror_flag"
7221 || test ! -s conftest.err'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223 (eval $ac_try) 2>&5
7224 ac_status=$?
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; } &&
7227 { ac_try='test -s conftest.$ac_objext'
7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229 (eval $ac_try) 2>&5
7230 ac_status=$?
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7233 ac_hi=-1 ac_mid=-1
7234 while :; do
7235 cat >conftest.$ac_ext <<_ACEOF
7236/* confdefs.h. */
7237_ACEOF
7238cat confdefs.h >>conftest.$ac_ext
7239cat >>conftest.$ac_ext <<_ACEOF
7240/* end confdefs.h. */
7241$ac_includes_default
7242int
7243main ()
7244{
7245static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7246test_array [0] = 0
7247
7248 ;
7249 return 0;
7250}
7251_ACEOF
7252rm -f conftest.$ac_objext
7253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7254 (eval $ac_compile) 2>conftest.er1
7255 ac_status=$?
7256 grep -v '^ *+' conftest.er1 >conftest.err
7257 rm -f conftest.er1
7258 cat conftest.err >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } &&
7261 { ac_try='test -z "$ac_c_werror_flag"
7262 || test ! -s conftest.err'
7263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 (eval $ac_try) 2>&5
7265 ac_status=$?
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; } &&
7268 { ac_try='test -s conftest.$ac_objext'
7269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270 (eval $ac_try) 2>&5
7271 ac_status=$?
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); }; }; then
7274 ac_lo=$ac_mid; break
7275else
7276 echo "$as_me: failed program was:" >&5
7277sed 's/^/| /' conftest.$ac_ext >&5
7278
7279ac_hi=`expr '(' $ac_mid ')' - 1`
7280 if test $ac_mid -le $ac_hi; then
7281 ac_lo= ac_hi=
7282 break
7283 fi
7284 ac_mid=`expr 2 '*' $ac_mid`
7285fi
7286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7287 done
7288else
7289 echo "$as_me: failed program was:" >&5
7290sed 's/^/| /' conftest.$ac_ext >&5
7291
7292ac_lo= ac_hi=
7293fi
7294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7295fi
7296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7297# Binary search between lo and hi bounds.
7298while test "x$ac_lo" != "x$ac_hi"; do
7299 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7300 cat >conftest.$ac_ext <<_ACEOF
7301/* confdefs.h. */
7302_ACEOF
7303cat confdefs.h >>conftest.$ac_ext
7304cat >>conftest.$ac_ext <<_ACEOF
7305/* end confdefs.h. */
7306$ac_includes_default
7307int
7308main ()
7309{
7310static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7311test_array [0] = 0
7312
7313 ;
7314 return 0;
7315}
7316_ACEOF
7317rm -f conftest.$ac_objext
7318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7319 (eval $ac_compile) 2>conftest.er1
7320 ac_status=$?
7321 grep -v '^ *+' conftest.er1 >conftest.err
7322 rm -f conftest.er1
7323 cat conftest.err >&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); } &&
7326 { ac_try='test -z "$ac_c_werror_flag"
7327 || test ! -s conftest.err'
7328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329 (eval $ac_try) 2>&5
7330 ac_status=$?
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); }; } &&
7333 { ac_try='test -s conftest.$ac_objext'
7334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335 (eval $ac_try) 2>&5
7336 ac_status=$?
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); }; }; then
7339 ac_hi=$ac_mid
7340else
7341 echo "$as_me: failed program was:" >&5
7342sed 's/^/| /' conftest.$ac_ext >&5
7343
7344ac_lo=`expr '(' $ac_mid ')' + 1`
7345fi
7346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7347done
7348case $ac_lo in
7349?*) ac_cv_sizeof_long=$ac_lo;;
7350'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7351See \`config.log' for more details." >&5
7352echo "$as_me: error: cannot compute sizeof (long), 77
7353See \`config.log' for more details." >&2;}
7354 { (exit 1); exit 1; }; } ;;
7355esac
7356else
7357 if test "$cross_compiling" = yes; then
7358 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7359See \`config.log' for more details." >&5
7360echo "$as_me: error: cannot run test program while cross compiling
7361See \`config.log' for more details." >&2;}
7362 { (exit 1); exit 1; }; }
7363else
7364 cat >conftest.$ac_ext <<_ACEOF
7365/* confdefs.h. */
7366_ACEOF
7367cat confdefs.h >>conftest.$ac_ext
7368cat >>conftest.$ac_ext <<_ACEOF
7369/* end confdefs.h. */
7370$ac_includes_default
7371long longval () { return (long) (sizeof (long)); }
7372unsigned long ulongval () { return (long) (sizeof (long)); }
7373#include <stdio.h>
7374#include <stdlib.h>
7375int
7376main ()
7377{
7378
7379 FILE *f = fopen ("conftest.val", "w");
7380 if (! f)
7381 exit (1);
7382 if (((long) (sizeof (long))) < 0)
7383 {
7384 long i = longval ();
7385 if (i != ((long) (sizeof (long))))
7386 exit (1);
7387 fprintf (f, "%ld\n", i);
7388 }
7389 else
7390 {
7391 unsigned long i = ulongval ();
7392 if (i != ((long) (sizeof (long))))
7393 exit (1);
7394 fprintf (f, "%lu\n", i);
7395 }
7396 exit (ferror (f) || fclose (f) != 0);
7397
7398 ;
7399 return 0;
7400}
7401_ACEOF
7402rm -f conftest$ac_exeext
7403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7404 (eval $ac_link) 2>&5
7405 ac_status=$?
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409 (eval $ac_try) 2>&5
7410 ac_status=$?
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); }; }; then
7413 ac_cv_sizeof_long=`cat conftest.val`
7414else
7415 echo "$as_me: program exited with status $ac_status" >&5
7416echo "$as_me: failed program was:" >&5
7417sed 's/^/| /' conftest.$ac_ext >&5
7418
7419( exit $ac_status )
7420{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7421See \`config.log' for more details." >&5
7422echo "$as_me: error: cannot compute sizeof (long), 77
7423See \`config.log' for more details." >&2;}
7424 { (exit 1); exit 1; }; }
7425fi
7426rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7427fi
7428fi
7429rm -f conftest.val
7430else
7431 ac_cv_sizeof_long=0
7432fi
7433fi
7434echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7435echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7436cat >>confdefs.h <<_ACEOF
7437#define SIZEOF_LONG $ac_cv_sizeof_long
7438_ACEOF
7439
7440
7441 if test "x${ac_cv_sizeof_long}" = "x8"; then
7442 want64=true
7443 fi
7444 fi
7445 if test x${want64} = xtrue; then
7446 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7447 else
7448 TARGET_OBS='$(ALL_TARGET_OBS)'
7449 fi
7450fi
7451
7452
7453
7454# For other settings, only the main target counts.
7455gdb_sim=
7456gdb_osabi=
7457build_gdbserver=
7458targ=$target; . ${srcdir}/configure.tgt
7459
7460# Fetch the default architecture and default target vector from BFD.
7461targ=$target; . $srcdir/../bfd/config.bfd
7462
7463# We only want the first architecture, so strip off the others if
7464# there is more than one.
7465targ_archs=`echo $targ_archs | sed 's/ .*//'`
7466
7467if test "x$targ_archs" != x; then
7468
7469cat >>confdefs.h <<_ACEOF
7470#define DEFAULT_BFD_ARCH $targ_archs
7471_ACEOF
7472
7473fi
7474if test "x$targ_defvec" != x; then
7475
7476cat >>confdefs.h <<_ACEOF
7477#define DEFAULT_BFD_VEC $targ_defvec
7478_ACEOF
7479
7480fi
7481
c0993dbe
UW
7482# The CLI cannot be disabled yet, but may be in the future.
7483
7484# Enable CLI.
7485# Check whether --enable-gdbcli or --disable-gdbcli was given.
7486if test "${enable_gdbcli+set}" = set; then
7487 enableval="$enable_gdbcli"
7488 case $enableval in
7489 yes)
7490 ;;
7491 no)
7492 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7493echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7494 { (exit 1); exit 1; }; } ;;
7495 *)
7496 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7497echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7498 { (exit 1); exit 1; }; } ;;
7499 esac
7500else
7501 enable_gdbcli=yes
7502fi;
7503if test x"$enable_gdbcli" = xyes; then
7504 if test -d $srcdir/cli; then
7505 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7506 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7507 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7508 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7509 fi
7510fi
7511
7512# Enable MI.
7513# Check whether --enable-gdbmi or --disable-gdbmi was given.
7514if test "${enable_gdbmi+set}" = set; then
7515 enableval="$enable_gdbmi"
7516 case $enableval in
7517 yes | no)
7518 ;;
7519 *)
7520 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7521echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7522 { (exit 1); exit 1; }; } ;;
7523 esac
7524else
7525 enable_gdbmi=yes
7526fi;
7527if test x"$enable_gdbmi" = xyes; then
7528 if test -d $srcdir/mi; then
7529 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7530 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7531 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7532 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7533 fi
7534fi
7535
7536# Enable TUI.
7537# Check whether --enable-tui or --disable-tui was given.
7538if test "${enable_tui+set}" = set; then
7539 enableval="$enable_tui"
7540 case $enableval in
7541 yes | no)
7542 ;;
7543 *)
7544 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7545echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7546 { (exit 1); exit 1; }; } ;;
7547 esac
7548else
7549 enable_tui=yes
7550fi;
7551
7552# Enable gdbtk.
7553# Check whether --enable-gdbtk or --disable-gdbtk was given.
7554if test "${enable_gdbtk+set}" = set; then
7555 enableval="$enable_gdbtk"
7556 case $enableval in
7557 yes | no)
7558 ;;
7559 *)
7560 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7561echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7562 { (exit 1); exit 1; }; } ;;
7563 esac
7564else
7565 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
7566 enable_gdbtk=yes
7567 else
7568 enable_gdbtk=no
7569 fi
7570fi;
7571# We unconditionally disable gdbtk tests on selected platforms.
7572case $host_os in
7573 go32* | windows*)
7574 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7575echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7576 enable_gdbtk=no ;;
7577esac
7578
7579# Libunwind support.
bec39cab 7580
b4e70030 7581# Check whether --with-libunwind or --without-libunwind was given.
bec39cab 7582if test "${with_libunwind+set}" = set; then
b4e70030
JB
7583 withval="$with_libunwind"
7584 case "${withval}" in
bec39cab
AC
7585 yes) enable_libunwind=yes ;;
7586 no) enable_libunwind=no ;;
7587 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7588echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7589 { (exit 1); exit 1; }; } ;;
7590esac
7591else
7592
7593
7594for ac_header in libunwind.h
7595do
7596as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7597if eval "test \"\${$as_ac_Header+set}\" = set"; then
7598 echo "$as_me:$LINENO: checking for $ac_header" >&5
7599echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7600if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7602fi
b4e70030
JB
7603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7604echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7605else
7606 # Is the header compilable?
b4e70030
JB
7607echo "$as_me:$LINENO: checking $ac_header usability" >&5
7608echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7609cat >conftest.$ac_ext <<_ACEOF
7610/* confdefs.h. */
7611_ACEOF
7612cat confdefs.h >>conftest.$ac_ext
7613cat >>conftest.$ac_ext <<_ACEOF
7614/* end confdefs.h. */
7615$ac_includes_default
7616#include <$ac_header>
7617_ACEOF
7618rm -f conftest.$ac_objext
7619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7620 (eval $ac_compile) 2>conftest.er1
7621 ac_status=$?
7622 grep -v '^ *+' conftest.er1 >conftest.err
7623 rm -f conftest.er1
7624 cat conftest.err >&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); } &&
b4e70030
JB
7627 { ac_try='test -z "$ac_c_werror_flag"
7628 || test ! -s conftest.err'
bec39cab
AC
7629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630 (eval $ac_try) 2>&5
7631 ac_status=$?
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); }; } &&
7634 { ac_try='test -s conftest.$ac_objext'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 (eval $ac_try) 2>&5
7637 ac_status=$?
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; }; then
7640 ac_header_compiler=yes
7641else
7642 echo "$as_me: failed program was:" >&5
7643sed 's/^/| /' conftest.$ac_ext >&5
7644
b4e70030 7645ac_header_compiler=no
bec39cab
AC
7646fi
7647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7648echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7649echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7650
7651# Is the header present?
b4e70030
JB
7652echo "$as_me:$LINENO: checking $ac_header presence" >&5
7653echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7654cat >conftest.$ac_ext <<_ACEOF
7655/* confdefs.h. */
7656_ACEOF
7657cat confdefs.h >>conftest.$ac_ext
7658cat >>conftest.$ac_ext <<_ACEOF
7659/* end confdefs.h. */
7660#include <$ac_header>
7661_ACEOF
7662if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7664 ac_status=$?
7665 grep -v '^ *+' conftest.er1 >conftest.err
7666 rm -f conftest.er1
7667 cat conftest.err >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } >/dev/null; then
7670 if test -s conftest.err; then
7671 ac_cpp_err=$ac_c_preproc_warn_flag
7672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7673 else
7674 ac_cpp_err=
7675 fi
7676else
7677 ac_cpp_err=yes
7678fi
7679if test -z "$ac_cpp_err"; then
7680 ac_header_preproc=yes
7681else
7682 echo "$as_me: failed program was:" >&5
7683sed 's/^/| /' conftest.$ac_ext >&5
7684
7685 ac_header_preproc=no
7686fi
7687rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7688echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7689echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7690
7691# So? What about this header?
7692case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7693 yes:no: )
7694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7695echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7697echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7698 ac_header_preproc=yes
7699 ;;
7700 no:yes:* )
7701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7702echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7704echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7706echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7708echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7710echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7712echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7713 (
7714 cat <<\_ASBOX
7715## ------------------------------------------ ##
7716## Report this to the AC_PACKAGE_NAME lists. ##
7717## ------------------------------------------ ##
7718_ASBOX
7719 ) |
7720 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7721 ;;
7722esac
b4e70030
JB
7723echo "$as_me:$LINENO: checking for $ac_header" >&5
7724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7725if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7727else
7728 eval "$as_ac_Header=\$ac_header_preproc"
7729fi
b4e70030
JB
7730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7732
7733fi
7734if test `eval echo '${'$as_ac_Header'}'` = yes; then
7735 cat >>confdefs.h <<_ACEOF
7736#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7737_ACEOF
7738
7739fi
7740
7741done
7742
7743
7744for ac_header in libunwind-ia64.h
7745do
7746as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7747if eval "test \"\${$as_ac_Header+set}\" = set"; then
7748 echo "$as_me:$LINENO: checking for $ac_header" >&5
7749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7750if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7752fi
b4e70030
JB
7753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7755else
7756 # Is the header compilable?
b4e70030
JB
7757echo "$as_me:$LINENO: checking $ac_header usability" >&5
7758echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7759cat >conftest.$ac_ext <<_ACEOF
7760/* confdefs.h. */
7761_ACEOF
7762cat confdefs.h >>conftest.$ac_ext
7763cat >>conftest.$ac_ext <<_ACEOF
7764/* end confdefs.h. */
7765$ac_includes_default
7766#include <$ac_header>
7767_ACEOF
7768rm -f conftest.$ac_objext
7769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7770 (eval $ac_compile) 2>conftest.er1
7771 ac_status=$?
7772 grep -v '^ *+' conftest.er1 >conftest.err
7773 rm -f conftest.er1
7774 cat conftest.err >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } &&
b4e70030
JB
7777 { ac_try='test -z "$ac_c_werror_flag"
7778 || test ! -s conftest.err'
bec39cab
AC
7779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780 (eval $ac_try) 2>&5
7781 ac_status=$?
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; } &&
7784 { ac_try='test -s conftest.$ac_objext'
7785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786 (eval $ac_try) 2>&5
7787 ac_status=$?
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; }; then
7790 ac_header_compiler=yes
7791else
7792 echo "$as_me: failed program was:" >&5
7793sed 's/^/| /' conftest.$ac_ext >&5
7794
b4e70030 7795ac_header_compiler=no
bec39cab
AC
7796fi
7797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7798echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7799echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7800
7801# Is the header present?
b4e70030
JB
7802echo "$as_me:$LINENO: checking $ac_header presence" >&5
7803echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7804cat >conftest.$ac_ext <<_ACEOF
7805/* confdefs.h. */
7806_ACEOF
7807cat confdefs.h >>conftest.$ac_ext
7808cat >>conftest.$ac_ext <<_ACEOF
7809/* end confdefs.h. */
7810#include <$ac_header>
7811_ACEOF
7812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7813 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
7820 if test -s conftest.err; then
7821 ac_cpp_err=$ac_c_preproc_warn_flag
7822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7823 else
7824 ac_cpp_err=
7825 fi
7826else
7827 ac_cpp_err=yes
7828fi
7829if test -z "$ac_cpp_err"; then
7830 ac_header_preproc=yes
7831else
7832 echo "$as_me: failed program was:" >&5
7833sed 's/^/| /' conftest.$ac_ext >&5
7834
7835 ac_header_preproc=no
7836fi
7837rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7838echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7839echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7840
7841# So? What about this header?
7842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7843 yes:no: )
7844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7845echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7847echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7848 ac_header_preproc=yes
7849 ;;
7850 no:yes:* )
7851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7852echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7854echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7856echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7858echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7862echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7863 (
7864 cat <<\_ASBOX
7865## ------------------------------------------ ##
7866## Report this to the AC_PACKAGE_NAME lists. ##
7867## ------------------------------------------ ##
7868_ASBOX
7869 ) |
7870 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7871 ;;
7872esac
b4e70030
JB
7873echo "$as_me:$LINENO: checking for $ac_header" >&5
7874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7875if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7877else
7878 eval "$as_ac_Header=\$ac_header_preproc"
7879fi
b4e70030
JB
7880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7882
7883fi
7884if test `eval echo '${'$as_ac_Header'}'` = yes; then
7885 cat >>confdefs.h <<_ACEOF
7886#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7887_ACEOF
7888
7889fi
7890
7891done
7892
7893 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7894 enable_libunwind=yes;
7895 fi
7896
b4e70030 7897fi;
bec39cab
AC
7898
7899if test x"$enable_libunwind" = xyes; then
7900
7901for ac_header in libunwind.h
7902do
7903as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7904if eval "test \"\${$as_ac_Header+set}\" = set"; then
7905 echo "$as_me:$LINENO: checking for $ac_header" >&5
7906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7907if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7909fi
b4e70030
JB
7910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7911echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7912else
7913 # Is the header compilable?
b4e70030
JB
7914echo "$as_me:$LINENO: checking $ac_header usability" >&5
7915echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7916cat >conftest.$ac_ext <<_ACEOF
7917/* confdefs.h. */
7918_ACEOF
7919cat confdefs.h >>conftest.$ac_ext
7920cat >>conftest.$ac_ext <<_ACEOF
7921/* end confdefs.h. */
7922$ac_includes_default
7923#include <$ac_header>
7924_ACEOF
7925rm -f conftest.$ac_objext
7926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7927 (eval $ac_compile) 2>conftest.er1
7928 ac_status=$?
7929 grep -v '^ *+' conftest.er1 >conftest.err
7930 rm -f conftest.er1
7931 cat conftest.err >&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } &&
b4e70030
JB
7934 { ac_try='test -z "$ac_c_werror_flag"
7935 || test ! -s conftest.err'
bec39cab
AC
7936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937 (eval $ac_try) 2>&5
7938 ac_status=$?
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }; } &&
7941 { ac_try='test -s conftest.$ac_objext'
7942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7943 (eval $ac_try) 2>&5
7944 ac_status=$?
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); }; }; then
7947 ac_header_compiler=yes
7948else
7949 echo "$as_me: failed program was:" >&5
7950sed 's/^/| /' conftest.$ac_ext >&5
7951
b4e70030 7952ac_header_compiler=no
bec39cab
AC
7953fi
7954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7955echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7956echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7957
7958# Is the header present?
b4e70030
JB
7959echo "$as_me:$LINENO: checking $ac_header presence" >&5
7960echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7961cat >conftest.$ac_ext <<_ACEOF
7962/* confdefs.h. */
7963_ACEOF
7964cat confdefs.h >>conftest.$ac_ext
7965cat >>conftest.$ac_ext <<_ACEOF
7966/* end confdefs.h. */
7967#include <$ac_header>
7968_ACEOF
7969if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7971 ac_status=$?
7972 grep -v '^ *+' conftest.er1 >conftest.err
7973 rm -f conftest.er1
7974 cat conftest.err >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); } >/dev/null; then
7977 if test -s conftest.err; then
7978 ac_cpp_err=$ac_c_preproc_warn_flag
7979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7980 else
7981 ac_cpp_err=
7982 fi
7983else
7984 ac_cpp_err=yes
7985fi
7986if test -z "$ac_cpp_err"; then
7987 ac_header_preproc=yes
7988else
7989 echo "$as_me: failed program was:" >&5
7990sed 's/^/| /' conftest.$ac_ext >&5
7991
7992 ac_header_preproc=no
7993fi
7994rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7995echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7996echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7997
7998# So? What about this header?
7999case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8000 yes:no: )
8001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8002echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8004echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8005 ac_header_preproc=yes
8006 ;;
8007 no:yes:* )
8008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8009echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8011echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8013echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8015echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8017echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8019echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8020 (
8021 cat <<\_ASBOX
8022## ------------------------------------------ ##
8023## Report this to the AC_PACKAGE_NAME lists. ##
8024## ------------------------------------------ ##
8025_ASBOX
8026 ) |
8027 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8028 ;;
8029esac
b4e70030
JB
8030echo "$as_me:$LINENO: checking for $ac_header" >&5
8031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8032if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8033 echo $ECHO_N "(cached) $ECHO_C" >&6
8034else
8035 eval "$as_ac_Header=\$ac_header_preproc"
8036fi
b4e70030
JB
8037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8038echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8039
8040fi
8041if test `eval echo '${'$as_ac_Header'}'` = yes; then
8042 cat >>confdefs.h <<_ACEOF
8043#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8044_ACEOF
8045
8046fi
8047
8048done
8049
8050
8051for ac_header in libunwind-ia64.h
8052do
8053as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8054if eval "test \"\${$as_ac_Header+set}\" = set"; then
8055 echo "$as_me:$LINENO: checking for $ac_header" >&5
8056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8057if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8059fi
b4e70030
JB
8060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8061echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8062else
8063 # Is the header compilable?
b4e70030
JB
8064echo "$as_me:$LINENO: checking $ac_header usability" >&5
8065echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8066cat >conftest.$ac_ext <<_ACEOF
8067/* confdefs.h. */
8068_ACEOF
8069cat confdefs.h >>conftest.$ac_ext
8070cat >>conftest.$ac_ext <<_ACEOF
8071/* end confdefs.h. */
8072$ac_includes_default
8073#include <$ac_header>
8074_ACEOF
8075rm -f conftest.$ac_objext
8076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8077 (eval $ac_compile) 2>conftest.er1
8078 ac_status=$?
8079 grep -v '^ *+' conftest.er1 >conftest.err
8080 rm -f conftest.er1
8081 cat conftest.err >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); } &&
b4e70030
JB
8084 { ac_try='test -z "$ac_c_werror_flag"
8085 || test ! -s conftest.err'
bec39cab
AC
8086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087 (eval $ac_try) 2>&5
8088 ac_status=$?
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); }; } &&
8091 { ac_try='test -s conftest.$ac_objext'
8092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093 (eval $ac_try) 2>&5
8094 ac_status=$?
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; }; then
8097 ac_header_compiler=yes
8098else
8099 echo "$as_me: failed program was:" >&5
8100sed 's/^/| /' conftest.$ac_ext >&5
8101
b4e70030 8102ac_header_compiler=no
bec39cab
AC
8103fi
8104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8105echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8106echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8107
8108# Is the header present?
b4e70030
JB
8109echo "$as_me:$LINENO: checking $ac_header presence" >&5
8110echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8111cat >conftest.$ac_ext <<_ACEOF
8112/* confdefs.h. */
8113_ACEOF
8114cat confdefs.h >>conftest.$ac_ext
8115cat >>conftest.$ac_ext <<_ACEOF
8116/* end confdefs.h. */
8117#include <$ac_header>
8118_ACEOF
8119if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8120 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
8127 if test -s conftest.err; then
8128 ac_cpp_err=$ac_c_preproc_warn_flag
8129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8130 else
8131 ac_cpp_err=
8132 fi
8133else
8134 ac_cpp_err=yes
8135fi
8136if test -z "$ac_cpp_err"; then
8137 ac_header_preproc=yes
8138else
8139 echo "$as_me: failed program was:" >&5
8140sed 's/^/| /' conftest.$ac_ext >&5
8141
8142 ac_header_preproc=no
8143fi
8144rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8145echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8146echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8147
8148# So? What about this header?
8149case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8150 yes:no: )
8151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8152echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8154echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8155 ac_header_preproc=yes
8156 ;;
8157 no:yes:* )
8158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8159echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8161echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8163echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8165echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8167echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8169echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8170 (
8171 cat <<\_ASBOX
8172## ------------------------------------------ ##
8173## Report this to the AC_PACKAGE_NAME lists. ##
8174## ------------------------------------------ ##
8175_ASBOX
8176 ) |
8177 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8178 ;;
8179esac
b4e70030
JB
8180echo "$as_me:$LINENO: checking for $ac_header" >&5
8181echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8182if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8184else
8185 eval "$as_ac_Header=\$ac_header_preproc"
8186fi
b4e70030
JB
8187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8188echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8189
8190fi
8191if test `eval echo '${'$as_ac_Header'}'` = yes; then
8192 cat >>confdefs.h <<_ACEOF
8193#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8194_ACEOF
8195
8196fi
8197
8198done
8199
60ca704f
SE
8200
8201cat >>confdefs.h <<\_ACEOF
bec39cab
AC
8202#define HAVE_LIBUNWIND 1
8203_ACEOF
8204
8205 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8206 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8207 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8208fi
8209
8210# Profiling support.
b4e70030 8211# Check whether --enable-profiling or --disable-profiling was given.
bec39cab 8212if test "${enable_profiling+set}" = set; then
b4e70030
JB
8213 enableval="$enable_profiling"
8214 case $enableval in
bec39cab
AC
8215 yes | no)
8216 ;;
8217 *)
8218 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8219echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8220 { (exit 1); exit 1; }; } ;;
8221 esac
8222else
8223 enable_profiling=no
b4e70030 8224fi;
bec39cab
AC
8225
8226
8227
8228for ac_func in monstartup _mcleanup
8229do
8230as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
8231echo "$as_me:$LINENO: checking for $ac_func" >&5
8232echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8233if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8235else
8236 cat >conftest.$ac_ext <<_ACEOF
8237/* confdefs.h. */
8238_ACEOF
8239cat confdefs.h >>conftest.$ac_ext
8240cat >>conftest.$ac_ext <<_ACEOF
8241/* end confdefs.h. */
8242/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8244#define $ac_func innocuous_$ac_func
8245
8246/* System header to define __stub macros and hopefully few prototypes,
8247 which can conflict with char $ac_func (); below.
8248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8249 <limits.h> exists even on freestanding compilers. */
8250
8251#ifdef __STDC__
8252# include <limits.h>
8253#else
8254# include <assert.h>
8255#endif
8256
8257#undef $ac_func
8258
b4e70030 8259/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
8260#ifdef __cplusplus
8261extern "C"
b4e70030 8262{
bec39cab 8263#endif
b4e70030
JB
8264/* We use char because int might match the return type of a gcc2
8265 builtin and then its argument prototype would still apply. */
bec39cab
AC
8266char $ac_func ();
8267/* The GNU C library defines this for functions which it implements
8268 to always fail with ENOSYS. Some functions are actually named
8269 something starting with __ and the normal name is an alias. */
b4e70030 8270#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 8271choke me
b4e70030
JB
8272#else
8273char (*f) () = $ac_func;
8274#endif
8275#ifdef __cplusplus
8276}
bec39cab
AC
8277#endif
8278
8279int
8280main ()
8281{
b4e70030 8282return f != $ac_func;
bec39cab
AC
8283 ;
8284 return 0;
8285}
8286_ACEOF
8287rm -f conftest.$ac_objext conftest$ac_exeext
8288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8289 (eval $ac_link) 2>conftest.er1
8290 ac_status=$?
8291 grep -v '^ *+' conftest.er1 >conftest.err
8292 rm -f conftest.er1
8293 cat conftest.err >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } &&
b4e70030
JB
8296 { ac_try='test -z "$ac_c_werror_flag"
8297 || test ! -s conftest.err'
bec39cab
AC
8298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299 (eval $ac_try) 2>&5
8300 ac_status=$?
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; } &&
8303 { ac_try='test -s conftest$ac_exeext'
8304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305 (eval $ac_try) 2>&5
8306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; }; then
8309 eval "$as_ac_var=yes"
8310else
8311 echo "$as_me: failed program was:" >&5
8312sed 's/^/| /' conftest.$ac_ext >&5
8313
b4e70030 8314eval "$as_ac_var=no"
bec39cab
AC
8315fi
8316rm -f conftest.err conftest.$ac_objext \
8317 conftest$ac_exeext conftest.$ac_ext
8318fi
b4e70030
JB
8319echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8320echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
8321if test `eval echo '${'$as_ac_var'}'` = yes; then
8322 cat >>confdefs.h <<_ACEOF
8323#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8324_ACEOF
8325
8326fi
8327done
8328
b4e70030
JB
8329echo "$as_me:$LINENO: checking for _etext" >&5
8330echo $ECHO_N "checking for _etext... $ECHO_C" >&6
bec39cab
AC
8331if test "${ac_cv_var__etext+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8333else
8334 cat >conftest.$ac_ext <<_ACEOF
8335/* confdefs.h. */
8336_ACEOF
8337cat confdefs.h >>conftest.$ac_ext
8338cat >>conftest.$ac_ext <<_ACEOF
8339/* end confdefs.h. */
8340#include <stdlib.h>
8341extern char _etext;
8342
8343int
8344main ()
8345{
8346free (&_etext);
8347 ;
8348 return 0;
8349}
8350_ACEOF
8351rm -f conftest.$ac_objext conftest$ac_exeext
8352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8353 (eval $ac_link) 2>conftest.er1
8354 ac_status=$?
8355 grep -v '^ *+' conftest.er1 >conftest.err
8356 rm -f conftest.er1
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); } &&
b4e70030
JB
8360 { ac_try='test -z "$ac_c_werror_flag"
8361 || test ! -s conftest.err'
bec39cab
AC
8362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363 (eval $ac_try) 2>&5
8364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; } &&
8367 { ac_try='test -s conftest$ac_exeext'
8368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369 (eval $ac_try) 2>&5
8370 ac_status=$?
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; }; then
8373 ac_cv_var__etext=yes
8374else
8375 echo "$as_me: failed program was:" >&5
8376sed 's/^/| /' conftest.$ac_ext >&5
8377
b4e70030 8378ac_cv_var__etext=no
bec39cab
AC
8379fi
8380rm -f conftest.err conftest.$ac_objext \
8381 conftest$ac_exeext conftest.$ac_ext
8382fi
b4e70030
JB
8383echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8384echo "${ECHO_T}$ac_cv_var__etext" >&6
bec39cab
AC
8385if test $ac_cv_var__etext = yes; then
8386
8387cat >>confdefs.h <<\_ACEOF
8388#define HAVE__ETEXT 1
8389_ACEOF
8390
01fe12f6
JB
8391fi
8392echo "$as_me:$LINENO: checking for etext" >&5
8393echo $ECHO_N "checking for etext... $ECHO_C" >&6
8394if test "${ac_cv_var_etext+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8396else
8397 cat >conftest.$ac_ext <<_ACEOF
8398/* confdefs.h. */
8399_ACEOF
8400cat confdefs.h >>conftest.$ac_ext
8401cat >>conftest.$ac_ext <<_ACEOF
8402/* end confdefs.h. */
8403#include <stdlib.h>
8404extern char etext;
8405
8406int
8407main ()
8408{
8409free (&etext);
8410 ;
8411 return 0;
8412}
8413_ACEOF
8414rm -f conftest.$ac_objext conftest$ac_exeext
8415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8416 (eval $ac_link) 2>conftest.er1
8417 ac_status=$?
8418 grep -v '^ *+' conftest.er1 >conftest.err
8419 rm -f conftest.er1
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try='test -z "$ac_c_werror_flag"
8424 || test ! -s conftest.err'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 (eval $ac_try) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; } &&
8430 { ac_try='test -s conftest$ac_exeext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 (eval $ac_try) 2>&5
8433 ac_status=$?
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436 ac_cv_var_etext=yes
8437else
8438 echo "$as_me: failed program was:" >&5
8439sed 's/^/| /' conftest.$ac_ext >&5
8440
8441ac_cv_var_etext=no
8442fi
8443rm -f conftest.err conftest.$ac_objext \
8444 conftest$ac_exeext conftest.$ac_ext
8445fi
8446echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8447echo "${ECHO_T}$ac_cv_var_etext" >&6
8448if test $ac_cv_var_etext = yes; then
8449
8450cat >>confdefs.h <<\_ACEOF
8451#define HAVE_ETEXT 1
8452_ACEOF
8453
bec39cab
AC
8454fi
8455if test "$enable_profiling" = yes ; then
8456 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8457 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8458echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8459 { (exit 1); exit 1; }; }
8460 fi
8461 PROFILE_CFLAGS=-pg
8462 OLD_CFLAGS="$CFLAGS"
8463 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8464
b4e70030
JB
8465 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8466echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
bec39cab
AC
8467if test "${ac_cv_cc_supports_pg+set}" = set; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 8469else
bec39cab
AC
8470 cat >conftest.$ac_ext <<_ACEOF
8471/* confdefs.h. */
8472_ACEOF
8473cat confdefs.h >>conftest.$ac_ext
8474cat >>conftest.$ac_ext <<_ACEOF
8475/* end confdefs.h. */
8476
8477int
8478main ()
8479{
8480int x;
8481 ;
8482 return 0;
8483}
8484_ACEOF
8485rm -f conftest.$ac_objext
8486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8487 (eval $ac_compile) 2>conftest.er1
8488 ac_status=$?
8489 grep -v '^ *+' conftest.er1 >conftest.err
8490 rm -f conftest.er1
8491 cat conftest.err >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } &&
b4e70030
JB
8494 { ac_try='test -z "$ac_c_werror_flag"
8495 || test ! -s conftest.err'
bec39cab
AC
8496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497 (eval $ac_try) 2>&5
8498 ac_status=$?
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; } &&
8501 { ac_try='test -s conftest.$ac_objext'
8502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503 (eval $ac_try) 2>&5
8504 ac_status=$?
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; }; then
8507 ac_cv_cc_supports_pg=yes
8508else
8509 echo "$as_me: failed program was:" >&5
8510sed 's/^/| /' conftest.$ac_ext >&5
8511
b4e70030 8512ac_cv_cc_supports_pg=no
bec39cab
AC
8513fi
8514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8515fi
b4e70030
JB
8516echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8517echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
bec39cab
AC
8518
8519 if test $ac_cv_cc_supports_pg = no; then
8520 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8521echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8522 { (exit 1); exit 1; }; }
8523 fi
8524
8525 CFLAGS="$OLD_CFLAGS"
8526fi
8527
8528# --------------------- #
8529# Checks for programs. #
8530# --------------------- #
8531
8532for ac_prog in gawk mawk nawk awk
8533do
8534 # Extract the first word of "$ac_prog", so it can be a program name with args.
8535set dummy $ac_prog; ac_word=$2
b4e70030
JB
8536echo "$as_me:$LINENO: checking for $ac_word" >&5
8537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8538if test "${ac_cv_prog_AWK+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8540else
8541 if test -n "$AWK"; then
8542 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8543else
8544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545for as_dir in $PATH
8546do
8547 IFS=$as_save_IFS
8548 test -z "$as_dir" && as_dir=.
8549 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8551 ac_cv_prog_AWK="$ac_prog"
8552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8553 break 2
8554 fi
8555done
8556done
8557
8558fi
8559fi
8560AWK=$ac_cv_prog_AWK
8561if test -n "$AWK"; then
b4e70030
JB
8562 echo "$as_me:$LINENO: result: $AWK" >&5
8563echo "${ECHO_T}$AWK" >&6
bec39cab 8564else
b4e70030
JB
8565 echo "$as_me:$LINENO: result: no" >&5
8566echo "${ECHO_T}no" >&6
bec39cab
AC
8567fi
8568
8569 test -n "$AWK" && break
8570done
8571
8572# Find a good install program. We prefer a C program (faster),
8573# so one script is as good as another. But avoid the broken or
8574# incompatible versions:
8575# SysV /etc/install, /usr/sbin/install
8576# SunOS /usr/etc/install
8577# IRIX /sbin/install
8578# AIX /bin/install
8579# AmigaOS /C/install, which installs bootblocks on floppy discs
8580# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8581# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8582# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8583# OS/2's system install, which has a completely different semantic
8584# ./install, which can be erroneously created by make from ./install.sh.
b4e70030
JB
8585echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8586echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
bec39cab
AC
8587if test -z "$INSTALL"; then
8588if test "${ac_cv_path_install+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8590else
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592for as_dir in $PATH
8593do
8594 IFS=$as_save_IFS
8595 test -z "$as_dir" && as_dir=.
8596 # Account for people who put trailing slashes in PATH elements.
8597case $as_dir/ in
8598 ./ | .// | /cC/* | \
8599 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8600 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8601 /usr/ucb/* ) ;;
c906108c 8602 *)
bec39cab
AC
8603 # OSF1 and SCO ODT 3.0 have their own names for install.
8604 # Don't use installbsd from OSF since it installs stuff as root
8605 # by default.
8606 for ac_prog in ginstall scoinst install; do
8607 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8608 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bec39cab
AC
8609 if test $ac_prog = install &&
8610 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8611 # AIX install. It has an incompatible calling convention.
8612 :
8613 elif test $ac_prog = install &&
8614 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8615 # program-specific install script used by HP pwplus--don't use.
8616 :
8617 else
8618 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8619 break 3
8620 fi
8621 fi
8622 done
8623 done
8624 ;;
c906108c 8625esac
bec39cab
AC
8626done
8627
8628
8629fi
8630 if test "${ac_cv_path_install+set}" = set; then
8631 INSTALL=$ac_cv_path_install
8632 else
b4e70030
JB
8633 # As a last resort, use the slow shell script. We don't cache a
8634 # path for INSTALL within a source directory, because that will
bec39cab 8635 # break other packages using the cache if that directory is
b4e70030 8636 # removed, or if the path is relative.
bec39cab
AC
8637 INSTALL=$ac_install_sh
8638 fi
8639fi
b4e70030
JB
8640echo "$as_me:$LINENO: result: $INSTALL" >&5
8641echo "${ECHO_T}$INSTALL" >&6
bec39cab
AC
8642
8643# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8644# It thinks the first close brace ends the variable substitution.
8645test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8646
8647test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8648
8649test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8650
b4e70030
JB
8651echo "$as_me:$LINENO: checking whether ln -s works" >&5
8652echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
bec39cab
AC
8653LN_S=$as_ln_s
8654if test "$LN_S" = "ln -s"; then
b4e70030
JB
8655 echo "$as_me:$LINENO: result: yes" >&5
8656echo "${ECHO_T}yes" >&6
bec39cab 8657else
b4e70030
JB
8658 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8659echo "${ECHO_T}no, using $LN_S" >&6
bec39cab
AC
8660fi
8661
8662if test -n "$ac_tool_prefix"; then
8663 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8664set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b4e70030
JB
8665echo "$as_me:$LINENO: checking for $ac_word" >&5
8666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8667if test "${ac_cv_prog_RANLIB+set}" = set; then
8668 echo $ECHO_N "(cached) $ECHO_C" >&6
8669else
8670 if test -n "$RANLIB"; then
8671 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8672else
8673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674for as_dir in $PATH
8675do
8676 IFS=$as_save_IFS
8677 test -z "$as_dir" && as_dir=.
8678 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8680 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8682 break 2
8683 fi
8684done
8685done
8686
8687fi
8688fi
8689RANLIB=$ac_cv_prog_RANLIB
8690if test -n "$RANLIB"; then
b4e70030
JB
8691 echo "$as_me:$LINENO: result: $RANLIB" >&5
8692echo "${ECHO_T}$RANLIB" >&6
bec39cab 8693else
b4e70030
JB
8694 echo "$as_me:$LINENO: result: no" >&5
8695echo "${ECHO_T}no" >&6
bec39cab
AC
8696fi
8697
8698fi
8699if test -z "$ac_cv_prog_RANLIB"; then
8700 ac_ct_RANLIB=$RANLIB
8701 # Extract the first word of "ranlib", so it can be a program name with args.
8702set dummy ranlib; ac_word=$2
b4e70030
JB
8703echo "$as_me:$LINENO: checking for $ac_word" >&5
8704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8705if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8707else
8708 if test -n "$ac_ct_RANLIB"; then
8709 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8710else
8711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8712for as_dir in $PATH
8713do
8714 IFS=$as_save_IFS
8715 test -z "$as_dir" && as_dir=.
8716 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8718 ac_cv_prog_ac_ct_RANLIB="ranlib"
8719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8720 break 2
8721 fi
8722done
8723done
8724
b4e70030 8725 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bec39cab
AC
8726fi
8727fi
8728ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8729if test -n "$ac_ct_RANLIB"; then
b4e70030
JB
8730 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8731echo "${ECHO_T}$ac_ct_RANLIB" >&6
bec39cab 8732else
b4e70030
JB
8733 echo "$as_me:$LINENO: result: no" >&5
8734echo "${ECHO_T}no" >&6
bec39cab
AC
8735fi
8736
b4e70030 8737 RANLIB=$ac_ct_RANLIB
bec39cab
AC
8738else
8739 RANLIB="$ac_cv_prog_RANLIB"
8740fi
8741
8742for ac_prog in 'bison -y' byacc
8743do
8744 # Extract the first word of "$ac_prog", so it can be a program name with args.
8745set dummy $ac_prog; ac_word=$2
b4e70030
JB
8746echo "$as_me:$LINENO: checking for $ac_word" >&5
8747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8748if test "${ac_cv_prog_YACC+set}" = set; then
8749 echo $ECHO_N "(cached) $ECHO_C" >&6
8750else
8751 if test -n "$YACC"; then
8752 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8753else
8754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755for as_dir in $PATH
8756do
8757 IFS=$as_save_IFS
8758 test -z "$as_dir" && as_dir=.
8759 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8761 ac_cv_prog_YACC="$ac_prog"
8762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8763 break 2
8764 fi
8765done
8766done
8767
8768fi
8769fi
8770YACC=$ac_cv_prog_YACC
8771if test -n "$YACC"; then
b4e70030
JB
8772 echo "$as_me:$LINENO: result: $YACC" >&5
8773echo "${ECHO_T}$YACC" >&6
bec39cab 8774else
b4e70030
JB
8775 echo "$as_me:$LINENO: result: no" >&5
8776echo "${ECHO_T}no" >&6
bec39cab
AC
8777fi
8778
8779 test -n "$YACC" && break
8780done
8781test -n "$YACC" || YACC="yacc"
8782
8783
8784if test -n "$ac_tool_prefix"; then
8785 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8786set dummy ${ac_tool_prefix}ar; ac_word=$2
b4e70030
JB
8787echo "$as_me:$LINENO: checking for $ac_word" >&5
8788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8789if test "${ac_cv_prog_AR+set}" = set; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8791else
8792 if test -n "$AR"; then
8793 ac_cv_prog_AR="$AR" # Let the user override the test.
8794else
8795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8796for as_dir in $PATH
8797do
8798 IFS=$as_save_IFS
8799 test -z "$as_dir" && as_dir=.
8800 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8802 ac_cv_prog_AR="${ac_tool_prefix}ar"
8803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8804 break 2
8805 fi
8806done
8807done
8808
8809fi
8810fi
8811AR=$ac_cv_prog_AR
8812if test -n "$AR"; then
b4e70030
JB
8813 echo "$as_me:$LINENO: result: $AR" >&5
8814echo "${ECHO_T}$AR" >&6
bec39cab 8815else
b4e70030
JB
8816 echo "$as_me:$LINENO: result: no" >&5
8817echo "${ECHO_T}no" >&6
bec39cab
AC
8818fi
8819
8820fi
8821if test -z "$ac_cv_prog_AR"; then
8822 ac_ct_AR=$AR
8823 # Extract the first word of "ar", so it can be a program name with args.
8824set dummy ar; ac_word=$2
b4e70030
JB
8825echo "$as_me:$LINENO: checking for $ac_word" >&5
8826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8827if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8828 echo $ECHO_N "(cached) $ECHO_C" >&6
8829else
8830 if test -n "$ac_ct_AR"; then
8831 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8832else
8833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834for as_dir in $PATH
8835do
8836 IFS=$as_save_IFS
8837 test -z "$as_dir" && as_dir=.
8838 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8840 ac_cv_prog_ac_ct_AR="ar"
8841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8842 break 2
8843 fi
8844done
8845done
8846
8847fi
8848fi
8849ac_ct_AR=$ac_cv_prog_ac_ct_AR
8850if test -n "$ac_ct_AR"; then
b4e70030
JB
8851 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8852echo "${ECHO_T}$ac_ct_AR" >&6
bec39cab 8853else
b4e70030
JB
8854 echo "$as_me:$LINENO: result: no" >&5
8855echo "${ECHO_T}no" >&6
bec39cab
AC
8856fi
8857
b4e70030 8858 AR=$ac_ct_AR
bec39cab
AC
8859else
8860 AR="$ac_cv_prog_AR"
8861fi
8862
8863if test -n "$ac_tool_prefix"; then
8864 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8865set dummy ${ac_tool_prefix}dlltool; ac_word=$2
b4e70030
JB
8866echo "$as_me:$LINENO: checking for $ac_word" >&5
8867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8868if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8869 echo $ECHO_N "(cached) $ECHO_C" >&6
8870else
8871 if test -n "$DLLTOOL"; then
8872 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8873else
8874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8875for as_dir in $PATH
8876do
8877 IFS=$as_save_IFS
8878 test -z "$as_dir" && as_dir=.
8879 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8881 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8883 break 2
8884 fi
8885done
8886done
8887
8888fi
8889fi
8890DLLTOOL=$ac_cv_prog_DLLTOOL
8891if test -n "$DLLTOOL"; then
b4e70030
JB
8892 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8893echo "${ECHO_T}$DLLTOOL" >&6
bec39cab 8894else
b4e70030
JB
8895 echo "$as_me:$LINENO: result: no" >&5
8896echo "${ECHO_T}no" >&6
bec39cab
AC
8897fi
8898
8899fi
8900if test -z "$ac_cv_prog_DLLTOOL"; then
8901 ac_ct_DLLTOOL=$DLLTOOL
8902 # Extract the first word of "dlltool", so it can be a program name with args.
8903set dummy dlltool; ac_word=$2
b4e70030
JB
8904echo "$as_me:$LINENO: checking for $ac_word" >&5
8905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8906if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8907 echo $ECHO_N "(cached) $ECHO_C" >&6
8908else
8909 if test -n "$ac_ct_DLLTOOL"; then
8910 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8911else
8912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8913for as_dir in $PATH
8914do
8915 IFS=$as_save_IFS
8916 test -z "$as_dir" && as_dir=.
8917 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8919 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8921 break 2
8922 fi
8923done
8924done
8925
8926fi
8927fi
8928ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8929if test -n "$ac_ct_DLLTOOL"; then
b4e70030
JB
8930 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8931echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
bec39cab 8932else
b4e70030
JB
8933 echo "$as_me:$LINENO: result: no" >&5
8934echo "${ECHO_T}no" >&6
bec39cab
AC
8935fi
8936
b4e70030 8937 DLLTOOL=$ac_ct_DLLTOOL
bec39cab
AC
8938else
8939 DLLTOOL="$ac_cv_prog_DLLTOOL"
8940fi
8941
8942if test -n "$ac_tool_prefix"; then
8943 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8944set dummy ${ac_tool_prefix}windres; ac_word=$2
b4e70030
JB
8945echo "$as_me:$LINENO: checking for $ac_word" >&5
8946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8947if test "${ac_cv_prog_WINDRES+set}" = set; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
8949else
8950 if test -n "$WINDRES"; then
8951 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8952else
8953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8954for as_dir in $PATH
8955do
8956 IFS=$as_save_IFS
8957 test -z "$as_dir" && as_dir=.
8958 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8960 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8962 break 2
8963 fi
8964done
8965done
8966
8967fi
8968fi
8969WINDRES=$ac_cv_prog_WINDRES
8970if test -n "$WINDRES"; then
b4e70030
JB
8971 echo "$as_me:$LINENO: result: $WINDRES" >&5
8972echo "${ECHO_T}$WINDRES" >&6
bec39cab 8973else
b4e70030
JB
8974 echo "$as_me:$LINENO: result: no" >&5
8975echo "${ECHO_T}no" >&6
bec39cab
AC
8976fi
8977
8978fi
8979if test -z "$ac_cv_prog_WINDRES"; then
8980 ac_ct_WINDRES=$WINDRES
8981 # Extract the first word of "windres", so it can be a program name with args.
8982set dummy windres; ac_word=$2
b4e70030
JB
8983echo "$as_me:$LINENO: checking for $ac_word" >&5
8984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8985if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8986 echo $ECHO_N "(cached) $ECHO_C" >&6
8987else
8988 if test -n "$ac_ct_WINDRES"; then
8989 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8990else
8991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8992for as_dir in $PATH
8993do
8994 IFS=$as_save_IFS
8995 test -z "$as_dir" && as_dir=.
8996 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8998 ac_cv_prog_ac_ct_WINDRES="windres"
8999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9000 break 2
9001 fi
9002done
9003done
9004
9005fi
9006fi
9007ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9008if test -n "$ac_ct_WINDRES"; then
b4e70030
JB
9009 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9010echo "${ECHO_T}$ac_ct_WINDRES" >&6
bec39cab 9011else
b4e70030
JB
9012 echo "$as_me:$LINENO: result: no" >&5
9013echo "${ECHO_T}no" >&6
c906108c 9014fi
bec39cab 9015
b4e70030 9016 WINDRES=$ac_ct_WINDRES
c906108c 9017else
bec39cab 9018 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
9019fi
9020
bec39cab
AC
9021
9022# Needed for GNU/Hurd.
9023if test -n "$ac_tool_prefix"; then
9024 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9025set dummy ${ac_tool_prefix}mig; ac_word=$2
b4e70030
JB
9026echo "$as_me:$LINENO: checking for $ac_word" >&5
9027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9028if test "${ac_cv_prog_MIG+set}" = set; then
9029 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 9030else
bec39cab
AC
9031 if test -n "$MIG"; then
9032 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9033else
9034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9035for as_dir in $PATH
9036do
9037 IFS=$as_save_IFS
9038 test -z "$as_dir" && as_dir=.
9039 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9041 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9043 break 2
9044 fi
9045done
9046done
9047
c906108c 9048fi
bec39cab
AC
9049fi
9050MIG=$ac_cv_prog_MIG
9051if test -n "$MIG"; then
b4e70030
JB
9052 echo "$as_me:$LINENO: result: $MIG" >&5
9053echo "${ECHO_T}$MIG" >&6
c906108c 9054else
b4e70030
JB
9055 echo "$as_me:$LINENO: result: no" >&5
9056echo "${ECHO_T}no" >&6
c906108c
SS
9057fi
9058
bec39cab
AC
9059fi
9060if test -z "$ac_cv_prog_MIG"; then
9061 ac_ct_MIG=$MIG
9062 # Extract the first word of "mig", so it can be a program name with args.
9063set dummy mig; ac_word=$2
b4e70030
JB
9064echo "$as_me:$LINENO: checking for $ac_word" >&5
9065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9066if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9068else
9069 if test -n "$ac_ct_MIG"; then
9070 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9071else
9072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073for as_dir in $PATH
9074do
9075 IFS=$as_save_IFS
9076 test -z "$as_dir" && as_dir=.
9077 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9079 ac_cv_prog_ac_ct_MIG="mig"
9080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9081 break 2
9082 fi
9083done
9084done
c906108c 9085
bec39cab
AC
9086fi
9087fi
9088ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9089if test -n "$ac_ct_MIG"; then
b4e70030
JB
9090 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9091echo "${ECHO_T}$ac_ct_MIG" >&6
bec39cab 9092else
b4e70030
JB
9093 echo "$as_me:$LINENO: result: no" >&5
9094echo "${ECHO_T}no" >&6
bec39cab 9095fi
c906108c 9096
b4e70030 9097 MIG=$ac_ct_MIG
bec39cab
AC
9098else
9099 MIG="$ac_cv_prog_MIG"
9100fi
c906108c 9101
c906108c 9102
bec39cab
AC
9103# ---------------------- #
9104# Checks for libraries. #
9105# ---------------------- #
c906108c 9106
bec39cab 9107# We might need to link with -lm; most simulators need it.
c906108c 9108
b4e70030
JB
9109echo "$as_me:$LINENO: checking for main in -lm" >&5
9110echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
bec39cab
AC
9111if test "${ac_cv_lib_m_main+set}" = set; then
9112 echo $ECHO_N "(cached) $ECHO_C" >&6
9113else
9114 ac_check_lib_save_LIBS=$LIBS
9115LIBS="-lm $LIBS"
9116cat >conftest.$ac_ext <<_ACEOF
9117/* confdefs.h. */
9118_ACEOF
9119cat confdefs.h >>conftest.$ac_ext
9120cat >>conftest.$ac_ext <<_ACEOF
9121/* end confdefs.h. */
c906108c 9122
c906108c 9123
bec39cab
AC
9124int
9125main ()
9126{
b4e70030 9127main ();
bec39cab
AC
9128 ;
9129 return 0;
9130}
9131_ACEOF
9132rm -f conftest.$ac_objext conftest$ac_exeext
9133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9134 (eval $ac_link) 2>conftest.er1
9135 ac_status=$?
9136 grep -v '^ *+' conftest.er1 >conftest.err
9137 rm -f conftest.er1
9138 cat conftest.err >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); } &&
b4e70030
JB
9141 { ac_try='test -z "$ac_c_werror_flag"
9142 || test ! -s conftest.err'
bec39cab
AC
9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144 (eval $ac_try) 2>&5
9145 ac_status=$?
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; } &&
9148 { ac_try='test -s conftest$ac_exeext'
9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150 (eval $ac_try) 2>&5
9151 ac_status=$?
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; }; then
9154 ac_cv_lib_m_main=yes
9155else
9156 echo "$as_me: failed program was:" >&5
9157sed 's/^/| /' conftest.$ac_ext >&5
9158
b4e70030 9159ac_cv_lib_m_main=no
bec39cab
AC
9160fi
9161rm -f conftest.err conftest.$ac_objext \
9162 conftest$ac_exeext conftest.$ac_ext
9163LIBS=$ac_check_lib_save_LIBS
9164fi
b4e70030
JB
9165echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9166echo "${ECHO_T}$ac_cv_lib_m_main" >&6
bec39cab
AC
9167if test $ac_cv_lib_m_main = yes; then
9168 cat >>confdefs.h <<_ACEOF
9169#define HAVE_LIBM 1
9170_ACEOF
9171
9172 LIBS="-lm $LIBS"
c906108c 9173
c906108c 9174fi
bec39cab
AC
9175
9176
9177# We need to link with -lw to get `wctype' on Solaris before Solaris
9178# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9179# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9180# is known to have this problem). Therefore we avoid libw if we can.
b4e70030
JB
9181echo "$as_me:$LINENO: checking for wctype" >&5
9182echo $ECHO_N "checking for wctype... $ECHO_C" >&6
bec39cab
AC
9183if test "${ac_cv_func_wctype+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9185else
9186 cat >conftest.$ac_ext <<_ACEOF
9187/* confdefs.h. */
9188_ACEOF
9189cat confdefs.h >>conftest.$ac_ext
9190cat >>conftest.$ac_ext <<_ACEOF
9191/* end confdefs.h. */
9192/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9194#define wctype innocuous_wctype
9195
9196/* System header to define __stub macros and hopefully few prototypes,
9197 which can conflict with char wctype (); below.
9198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9199 <limits.h> exists even on freestanding compilers. */
9200
9201#ifdef __STDC__
9202# include <limits.h>
9203#else
9204# include <assert.h>
9205#endif
9206
9207#undef wctype
9208
b4e70030 9209/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9210#ifdef __cplusplus
9211extern "C"
b4e70030 9212{
bec39cab 9213#endif
b4e70030
JB
9214/* We use char because int might match the return type of a gcc2
9215 builtin and then its argument prototype would still apply. */
bec39cab
AC
9216char wctype ();
9217/* The GNU C library defines this for functions which it implements
9218 to always fail with ENOSYS. Some functions are actually named
9219 something starting with __ and the normal name is an alias. */
b4e70030 9220#if defined (__stub_wctype) || defined (__stub___wctype)
bec39cab 9221choke me
b4e70030
JB
9222#else
9223char (*f) () = wctype;
9224#endif
9225#ifdef __cplusplus
9226}
bec39cab
AC
9227#endif
9228
9229int
9230main ()
9231{
b4e70030 9232return f != wctype;
bec39cab
AC
9233 ;
9234 return 0;
9235}
9236_ACEOF
9237rm -f conftest.$ac_objext conftest$ac_exeext
9238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9239 (eval $ac_link) 2>conftest.er1
9240 ac_status=$?
9241 grep -v '^ *+' conftest.er1 >conftest.err
9242 rm -f conftest.er1
9243 cat conftest.err >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); } &&
b4e70030
JB
9246 { ac_try='test -z "$ac_c_werror_flag"
9247 || test ! -s conftest.err'
bec39cab
AC
9248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9249 (eval $ac_try) 2>&5
9250 ac_status=$?
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); }; } &&
9253 { ac_try='test -s conftest$ac_exeext'
9254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255 (eval $ac_try) 2>&5
9256 ac_status=$?
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); }; }; then
9259 ac_cv_func_wctype=yes
9260else
9261 echo "$as_me: failed program was:" >&5
9262sed 's/^/| /' conftest.$ac_ext >&5
9263
b4e70030 9264ac_cv_func_wctype=no
bec39cab
AC
9265fi
9266rm -f conftest.err conftest.$ac_objext \
9267 conftest$ac_exeext conftest.$ac_ext
9268fi
b4e70030
JB
9269echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9270echo "${ECHO_T}$ac_cv_func_wctype" >&6
bec39cab
AC
9271if test $ac_cv_func_wctype = yes; then
9272 :
c906108c 9273else
c906108c 9274
b4e70030
JB
9275echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9276echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
bec39cab
AC
9277if test "${ac_cv_lib_w_wctype+set}" = set; then
9278 echo $ECHO_N "(cached) $ECHO_C" >&6
9279else
9280 ac_check_lib_save_LIBS=$LIBS
9281LIBS="-lw $LIBS"
9282cat >conftest.$ac_ext <<_ACEOF
9283/* confdefs.h. */
9284_ACEOF
9285cat confdefs.h >>conftest.$ac_ext
9286cat >>conftest.$ac_ext <<_ACEOF
9287/* end confdefs.h. */
c906108c 9288
b4e70030 9289/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9290#ifdef __cplusplus
9291extern "C"
9292#endif
b4e70030
JB
9293/* We use char because int might match the return type of a gcc2
9294 builtin and then its argument prototype would still apply. */
bec39cab
AC
9295char wctype ();
9296int
9297main ()
9298{
b4e70030 9299wctype ();
bec39cab
AC
9300 ;
9301 return 0;
9302}
9303_ACEOF
9304rm -f conftest.$ac_objext conftest$ac_exeext
9305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9306 (eval $ac_link) 2>conftest.er1
9307 ac_status=$?
9308 grep -v '^ *+' conftest.er1 >conftest.err
9309 rm -f conftest.er1
9310 cat conftest.err >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); } &&
b4e70030
JB
9313 { ac_try='test -z "$ac_c_werror_flag"
9314 || test ! -s conftest.err'
bec39cab
AC
9315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316 (eval $ac_try) 2>&5
9317 ac_status=$?
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); }; } &&
9320 { ac_try='test -s conftest$ac_exeext'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 (eval $ac_try) 2>&5
9323 ac_status=$?
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; }; then
9326 ac_cv_lib_w_wctype=yes
9327else
9328 echo "$as_me: failed program was:" >&5
9329sed 's/^/| /' conftest.$ac_ext >&5
9330
b4e70030 9331ac_cv_lib_w_wctype=no
bec39cab
AC
9332fi
9333rm -f conftest.err conftest.$ac_objext \
9334 conftest$ac_exeext conftest.$ac_ext
9335LIBS=$ac_check_lib_save_LIBS
9336fi
b4e70030
JB
9337echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9338echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
bec39cab
AC
9339if test $ac_cv_lib_w_wctype = yes; then
9340 cat >>confdefs.h <<_ACEOF
9341#define HAVE_LIBW 1
9342_ACEOF
c906108c 9343
bec39cab 9344 LIBS="-lw $LIBS"
c906108c 9345
bec39cab 9346fi
c906108c 9347
bec39cab 9348fi
c906108c 9349
ddc9cd0f 9350
bec39cab 9351# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
b4e70030
JB
9352echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9353echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
bec39cab
AC
9354if test "${ac_cv_search_gethostbyname+set}" = set; then
9355 echo $ECHO_N "(cached) $ECHO_C" >&6
9356else
9357 ac_func_search_save_LIBS=$LIBS
b4e70030 9358ac_cv_search_gethostbyname=no
bec39cab
AC
9359cat >conftest.$ac_ext <<_ACEOF
9360/* confdefs.h. */
9361_ACEOF
9362cat confdefs.h >>conftest.$ac_ext
9363cat >>conftest.$ac_ext <<_ACEOF
9364/* end confdefs.h. */
ddc9cd0f 9365
b4e70030 9366/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9367#ifdef __cplusplus
9368extern "C"
9369#endif
b4e70030
JB
9370/* We use char because int might match the return type of a gcc2
9371 builtin and then its argument prototype would still apply. */
bec39cab
AC
9372char gethostbyname ();
9373int
9374main ()
9375{
b4e70030 9376gethostbyname ();
bec39cab
AC
9377 ;
9378 return 0;
9379}
9380_ACEOF
b4e70030 9381rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
9382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9383 (eval $ac_link) 2>conftest.er1
9384 ac_status=$?
9385 grep -v '^ *+' conftest.er1 >conftest.err
9386 rm -f conftest.er1
9387 cat conftest.err >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } &&
b4e70030
JB
9390 { ac_try='test -z "$ac_c_werror_flag"
9391 || test ! -s conftest.err'
bec39cab
AC
9392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393 (eval $ac_try) 2>&5
9394 ac_status=$?
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); }; } &&
9397 { ac_try='test -s conftest$ac_exeext'
9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 (eval $ac_try) 2>&5
9400 ac_status=$?
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
b4e70030 9403 ac_cv_search_gethostbyname="none required"
bec39cab
AC
9404else
9405 echo "$as_me: failed program was:" >&5
9406sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 9407
bec39cab
AC
9408fi
9409rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
9410 conftest$ac_exeext conftest.$ac_ext
9411if test "$ac_cv_search_gethostbyname" = no; then
9412 for ac_lib in nsl; do
9413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9414 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9415/* confdefs.h. */
9416_ACEOF
9417cat confdefs.h >>conftest.$ac_ext
9418cat >>conftest.$ac_ext <<_ACEOF
9419/* end confdefs.h. */
ddc9cd0f 9420
b4e70030 9421/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9422#ifdef __cplusplus
9423extern "C"
9424#endif
b4e70030
JB
9425/* We use char because int might match the return type of a gcc2
9426 builtin and then its argument prototype would still apply. */
9427char gethostbyname ();
bec39cab
AC
9428int
9429main ()
9430{
b4e70030 9431gethostbyname ();
bec39cab
AC
9432 ;
9433 return 0;
9434}
9435_ACEOF
b4e70030 9436rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
9437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9438 (eval $ac_link) 2>conftest.er1
9439 ac_status=$?
9440 grep -v '^ *+' conftest.er1 >conftest.err
9441 rm -f conftest.er1
9442 cat conftest.err >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } &&
b4e70030
JB
9445 { ac_try='test -z "$ac_c_werror_flag"
9446 || test ! -s conftest.err'
bec39cab
AC
9447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448 (eval $ac_try) 2>&5
9449 ac_status=$?
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); }; } &&
9452 { ac_try='test -s conftest$ac_exeext'
9453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454 (eval $ac_try) 2>&5
9455 ac_status=$?
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); }; }; then
b4e70030
JB
9458 ac_cv_search_gethostbyname="-l$ac_lib"
9459break
bec39cab
AC
9460else
9461 echo "$as_me: failed program was:" >&5
9462sed 's/^/| /' conftest.$ac_ext >&5
9463
9464fi
9465rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
9466 conftest$ac_exeext conftest.$ac_ext
9467 done
bec39cab
AC
9468fi
9469LIBS=$ac_func_search_save_LIBS
9470fi
b4e70030
JB
9471echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9472echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9473if test "$ac_cv_search_gethostbyname" != no; then
9474 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
96baa820 9475
bec39cab 9476fi
96baa820 9477
c906108c 9478
b4e70030
JB
9479# Some systems (e.g. Solaris) have `socketpair' in libsocket.
9480echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9481echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9482if test "${ac_cv_search_socketpair+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9484else
9485 ac_func_search_save_LIBS=$LIBS
9486ac_cv_search_socketpair=no
9487cat >conftest.$ac_ext <<_ACEOF
9488/* confdefs.h. */
9489_ACEOF
9490cat confdefs.h >>conftest.$ac_ext
9491cat >>conftest.$ac_ext <<_ACEOF
9492/* end confdefs.h. */
9493
9494/* Override any gcc2 internal prototype to avoid an error. */
9495#ifdef __cplusplus
9496extern "C"
9497#endif
9498/* We use char because int might match the return type of a gcc2
9499 builtin and then its argument prototype would still apply. */
9500char socketpair ();
9501int
9502main ()
9503{
9504socketpair ();
9505 ;
9506 return 0;
9507}
9508_ACEOF
9509rm -f conftest.$ac_objext conftest$ac_exeext
9510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9511 (eval $ac_link) 2>conftest.er1
9512 ac_status=$?
9513 grep -v '^ *+' conftest.er1 >conftest.err
9514 rm -f conftest.er1
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } &&
9518 { ac_try='test -z "$ac_c_werror_flag"
9519 || test ! -s conftest.err'
9520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521 (eval $ac_try) 2>&5
9522 ac_status=$?
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); }; } &&
9525 { ac_try='test -s conftest$ac_exeext'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527 (eval $ac_try) 2>&5
9528 ac_status=$?
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; }; then
9531 ac_cv_search_socketpair="none required"
9532else
9533 echo "$as_me: failed program was:" >&5
9534sed 's/^/| /' conftest.$ac_ext >&5
9535
9536fi
9537rm -f conftest.err conftest.$ac_objext \
9538 conftest$ac_exeext conftest.$ac_ext
9539if test "$ac_cv_search_socketpair" = no; then
9540 for ac_lib in socket; do
9541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9542 cat >conftest.$ac_ext <<_ACEOF
9543/* confdefs.h. */
9544_ACEOF
9545cat confdefs.h >>conftest.$ac_ext
9546cat >>conftest.$ac_ext <<_ACEOF
9547/* end confdefs.h. */
9548
9549/* Override any gcc2 internal prototype to avoid an error. */
9550#ifdef __cplusplus
9551extern "C"
9552#endif
9553/* We use char because int might match the return type of a gcc2
9554 builtin and then its argument prototype would still apply. */
9555char socketpair ();
9556int
9557main ()
9558{
9559socketpair ();
9560 ;
9561 return 0;
9562}
9563_ACEOF
9564rm -f conftest.$ac_objext conftest$ac_exeext
9565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9566 (eval $ac_link) 2>conftest.er1
9567 ac_status=$?
9568 grep -v '^ *+' conftest.er1 >conftest.err
9569 rm -f conftest.er1
9570 cat conftest.err >&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } &&
9573 { ac_try='test -z "$ac_c_werror_flag"
9574 || test ! -s conftest.err'
9575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 (eval $ac_try) 2>&5
9577 ac_status=$?
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; } &&
9580 { ac_try='test -s conftest$ac_exeext'
9581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9582 (eval $ac_try) 2>&5
9583 ac_status=$?
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; }; then
9586 ac_cv_search_socketpair="-l$ac_lib"
9587break
9588else
9589 echo "$as_me: failed program was:" >&5
9590sed 's/^/| /' conftest.$ac_ext >&5
9591
9592fi
9593rm -f conftest.err conftest.$ac_objext \
9594 conftest$ac_exeext conftest.$ac_ext
9595 done
9596fi
9597LIBS=$ac_func_search_save_LIBS
9598fi
9599echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9600echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9601if test "$ac_cv_search_socketpair" != no; then
9602 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9603
9604fi
9605
9606
233a11ab
CS
9607# Link in zlib if we can. This allows us to read compressed debug sections.
9608echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9609echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9610if test "${ac_cv_search_zlibVersion+set}" = set; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9612else
9613 ac_func_search_save_LIBS=$LIBS
9614ac_cv_search_zlibVersion=no
9615cat >conftest.$ac_ext <<_ACEOF
9616/* confdefs.h. */
9617_ACEOF
9618cat confdefs.h >>conftest.$ac_ext
9619cat >>conftest.$ac_ext <<_ACEOF
9620/* end confdefs.h. */
9621
9622/* Override any gcc2 internal prototype to avoid an error. */
9623#ifdef __cplusplus
9624extern "C"
9625#endif
9626/* We use char because int might match the return type of a gcc2
9627 builtin and then its argument prototype would still apply. */
9628char zlibVersion ();
9629int
9630main ()
9631{
9632zlibVersion ();
9633 ;
9634 return 0;
9635}
9636_ACEOF
9637rm -f conftest.$ac_objext conftest$ac_exeext
9638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9639 (eval $ac_link) 2>conftest.er1
9640 ac_status=$?
9641 grep -v '^ *+' conftest.er1 >conftest.err
9642 rm -f conftest.er1
9643 cat conftest.err >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } &&
9646 { ac_try='test -z "$ac_c_werror_flag"
9647 || test ! -s conftest.err'
9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649 (eval $ac_try) 2>&5
9650 ac_status=$?
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; } &&
9653 { ac_try='test -s conftest$ac_exeext'
9654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655 (eval $ac_try) 2>&5
9656 ac_status=$?
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; }; then
9659 ac_cv_search_zlibVersion="none required"
9660else
9661 echo "$as_me: failed program was:" >&5
9662sed 's/^/| /' conftest.$ac_ext >&5
9663
9664fi
9665rm -f conftest.err conftest.$ac_objext \
9666 conftest$ac_exeext conftest.$ac_ext
9667if test "$ac_cv_search_zlibVersion" = no; then
9668 for ac_lib in z; do
9669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9670 cat >conftest.$ac_ext <<_ACEOF
9671/* confdefs.h. */
9672_ACEOF
9673cat confdefs.h >>conftest.$ac_ext
9674cat >>conftest.$ac_ext <<_ACEOF
9675/* end confdefs.h. */
9676
9677/* Override any gcc2 internal prototype to avoid an error. */
9678#ifdef __cplusplus
9679extern "C"
9680#endif
9681/* We use char because int might match the return type of a gcc2
9682 builtin and then its argument prototype would still apply. */
9683char zlibVersion ();
9684int
9685main ()
9686{
9687zlibVersion ();
9688 ;
9689 return 0;
9690}
9691_ACEOF
9692rm -f conftest.$ac_objext conftest$ac_exeext
9693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9694 (eval $ac_link) 2>conftest.er1
9695 ac_status=$?
9696 grep -v '^ *+' conftest.er1 >conftest.err
9697 rm -f conftest.er1
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } &&
9701 { ac_try='test -z "$ac_c_werror_flag"
9702 || test ! -s conftest.err'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 (eval $ac_try) 2>&5
9705 ac_status=$?
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; } &&
9708 { ac_try='test -s conftest$ac_exeext'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 (eval $ac_try) 2>&5
9711 ac_status=$?
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9714 ac_cv_search_zlibVersion="-l$ac_lib"
9715break
9716else
9717 echo "$as_me: failed program was:" >&5
9718sed 's/^/| /' conftest.$ac_ext >&5
9719
9720fi
9721rm -f conftest.err conftest.$ac_objext \
9722 conftest$ac_exeext conftest.$ac_ext
9723 done
9724fi
9725LIBS=$ac_func_search_save_LIBS
9726fi
9727echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9728echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9729if test "$ac_cv_search_zlibVersion" != no; then
9730 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9731
9732for ac_header in zlib.h
9733do
9734as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9735if eval "test \"\${$as_ac_Header+set}\" = set"; then
9736 echo "$as_me:$LINENO: checking for $ac_header" >&5
9737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9738if eval "test \"\${$as_ac_Header+set}\" = set"; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9740fi
9741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9742echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9743else
9744 # Is the header compilable?
9745echo "$as_me:$LINENO: checking $ac_header usability" >&5
9746echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9747cat >conftest.$ac_ext <<_ACEOF
9748/* confdefs.h. */
9749_ACEOF
9750cat confdefs.h >>conftest.$ac_ext
9751cat >>conftest.$ac_ext <<_ACEOF
9752/* end confdefs.h. */
9753$ac_includes_default
9754#include <$ac_header>
9755_ACEOF
9756rm -f conftest.$ac_objext
9757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9758 (eval $ac_compile) 2>conftest.er1
9759 ac_status=$?
9760 grep -v '^ *+' conftest.er1 >conftest.err
9761 rm -f conftest.er1
9762 cat conftest.err >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } &&
9765 { ac_try='test -z "$ac_c_werror_flag"
9766 || test ! -s conftest.err'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768 (eval $ac_try) 2>&5
9769 ac_status=$?
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; } &&
9772 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9778 ac_header_compiler=yes
9779else
9780 echo "$as_me: failed program was:" >&5
9781sed 's/^/| /' conftest.$ac_ext >&5
9782
9783ac_header_compiler=no
9784fi
9785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9786echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9787echo "${ECHO_T}$ac_header_compiler" >&6
9788
9789# Is the header present?
9790echo "$as_me:$LINENO: checking $ac_header presence" >&5
9791echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9792cat >conftest.$ac_ext <<_ACEOF
9793/* confdefs.h. */
9794_ACEOF
9795cat confdefs.h >>conftest.$ac_ext
9796cat >>conftest.$ac_ext <<_ACEOF
9797/* end confdefs.h. */
9798#include <$ac_header>
9799_ACEOF
9800if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9802 ac_status=$?
9803 grep -v '^ *+' conftest.er1 >conftest.err
9804 rm -f conftest.er1
9805 cat conftest.err >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } >/dev/null; then
9808 if test -s conftest.err; then
9809 ac_cpp_err=$ac_c_preproc_warn_flag
9810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9811 else
9812 ac_cpp_err=
9813 fi
9814else
9815 ac_cpp_err=yes
9816fi
9817if test -z "$ac_cpp_err"; then
9818 ac_header_preproc=yes
9819else
9820 echo "$as_me: failed program was:" >&5
9821sed 's/^/| /' conftest.$ac_ext >&5
9822
9823 ac_header_preproc=no
9824fi
9825rm -f conftest.err conftest.$ac_ext
9826echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9827echo "${ECHO_T}$ac_header_preproc" >&6
9828
9829# So? What about this header?
9830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9831 yes:no: )
9832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9833echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9835echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9836 ac_header_preproc=yes
9837 ;;
9838 no:yes:* )
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9840echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9842echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9844echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9846echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9848echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9850echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9851 (
9852 cat <<\_ASBOX
9853## ------------------------------------------ ##
9854## Report this to the AC_PACKAGE_NAME lists. ##
9855## ------------------------------------------ ##
9856_ASBOX
9857 ) |
9858 sed "s/^/$as_me: WARNING: /" >&2
9859 ;;
9860esac
9861echo "$as_me:$LINENO: checking for $ac_header" >&5
9862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9863if eval "test \"\${$as_ac_Header+set}\" = set"; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9865else
9866 eval "$as_ac_Header=\$ac_header_preproc"
9867fi
9868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9869echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9870
9871fi
9872if test `eval echo '${'$as_ac_Header'}'` = yes; then
9873 cat >>confdefs.h <<_ACEOF
9874#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9875_ACEOF
9876
9877fi
9878
9879done
9880
9881fi
9882
9883
b4e70030 9884# For the TUI, we need enhanced curses functionality.
bec39cab
AC
9885#
9886# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9887# curses library because the latter might not provide all the
9888# functionality we need. However, this leads to problems on systems
9889# where the linker searches /usr/local/lib, but the compiler doesn't
9890# search /usr/local/include, if ncurses is installed in /usr/local. A
9891# default installation of ncurses on alpha*-dec-osf* will lead to such
9892# a situation.
b4e70030
JB
9893echo "$as_me:$LINENO: checking for library containing waddstr" >&5
9894echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
bec39cab
AC
9895if test "${ac_cv_search_waddstr+set}" = set; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9897else
9898 ac_func_search_save_LIBS=$LIBS
b4e70030 9899ac_cv_search_waddstr=no
bec39cab
AC
9900cat >conftest.$ac_ext <<_ACEOF
9901/* confdefs.h. */
9902_ACEOF
9903cat confdefs.h >>conftest.$ac_ext
9904cat >>conftest.$ac_ext <<_ACEOF
9905/* end confdefs.h. */
c906108c 9906
b4e70030 9907/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9908#ifdef __cplusplus
9909extern "C"
9910#endif
b4e70030
JB
9911/* We use char because int might match the return type of a gcc2
9912 builtin and then its argument prototype would still apply. */
bec39cab
AC
9913char waddstr ();
9914int
9915main ()
9916{
b4e70030 9917waddstr ();
bec39cab
AC
9918 ;
9919 return 0;
9920}
9921_ACEOF
b4e70030 9922rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
9923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9924 (eval $ac_link) 2>conftest.er1
9925 ac_status=$?
9926 grep -v '^ *+' conftest.er1 >conftest.err
9927 rm -f conftest.er1
9928 cat conftest.err >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); } &&
b4e70030
JB
9931 { ac_try='test -z "$ac_c_werror_flag"
9932 || test ! -s conftest.err'
bec39cab
AC
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934 (eval $ac_try) 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; } &&
9938 { ac_try='test -s conftest$ac_exeext'
9939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 (eval $ac_try) 2>&5
9941 ac_status=$?
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; }; then
b4e70030 9944 ac_cv_search_waddstr="none required"
bec39cab
AC
9945else
9946 echo "$as_me: failed program was:" >&5
9947sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
9948
9949fi
bec39cab 9950rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
9951 conftest$ac_exeext conftest.$ac_ext
9952if test "$ac_cv_search_waddstr" = no; then
9953 for ac_lib in ncurses cursesX curses; do
9954 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9955 cat >conftest.$ac_ext <<_ACEOF
9956/* confdefs.h. */
9957_ACEOF
9958cat confdefs.h >>conftest.$ac_ext
9959cat >>conftest.$ac_ext <<_ACEOF
9960/* end confdefs.h. */
9961
9962/* Override any gcc2 internal prototype to avoid an error. */
9963#ifdef __cplusplus
9964extern "C"
9965#endif
9966/* We use char because int might match the return type of a gcc2
9967 builtin and then its argument prototype would still apply. */
9968char waddstr ();
9969int
9970main ()
9971{
9972waddstr ();
9973 ;
9974 return 0;
9975}
9976_ACEOF
9977rm -f conftest.$ac_objext conftest$ac_exeext
9978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9979 (eval $ac_link) 2>conftest.er1
9980 ac_status=$?
9981 grep -v '^ *+' conftest.er1 >conftest.err
9982 rm -f conftest.er1
9983 cat conftest.err >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); } &&
9986 { ac_try='test -z "$ac_c_werror_flag"
9987 || test ! -s conftest.err'
9988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9989 (eval $ac_try) 2>&5
9990 ac_status=$?
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; } &&
9993 { ac_try='test -s conftest$ac_exeext'
9994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 (eval $ac_try) 2>&5
9996 ac_status=$?
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; }; then
9999 ac_cv_search_waddstr="-l$ac_lib"
10000break
4e8d927d 10001else
b4e70030
JB
10002 echo "$as_me: failed program was:" >&5
10003sed 's/^/| /' conftest.$ac_ext >&5
10004
10005fi
10006rm -f conftest.err conftest.$ac_objext \
10007 conftest$ac_exeext conftest.$ac_ext
10008 done
1ba607ad 10009fi
bec39cab
AC
10010LIBS=$ac_func_search_save_LIBS
10011fi
b4e70030
JB
10012echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10013echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10014if test "$ac_cv_search_waddstr" != no; then
10015 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 10016
8bb2c122 10017fi
8bb2c122 10018
8bb2c122 10019
d542061a
UW
10020# On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
10021echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
10022echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
10023if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10025else
10026 ac_func_search_save_LIBS=$LIBS
10027ac_cv_search_dlgetmodinfo=no
10028cat >conftest.$ac_ext <<_ACEOF
10029/* confdefs.h. */
10030_ACEOF
10031cat confdefs.h >>conftest.$ac_ext
10032cat >>conftest.$ac_ext <<_ACEOF
10033/* end confdefs.h. */
10034
10035/* Override any gcc2 internal prototype to avoid an error. */
10036#ifdef __cplusplus
10037extern "C"
10038#endif
10039/* We use char because int might match the return type of a gcc2
10040 builtin and then its argument prototype would still apply. */
10041char dlgetmodinfo ();
10042int
10043main ()
10044{
10045dlgetmodinfo ();
10046 ;
10047 return 0;
10048}
10049_ACEOF
10050rm -f conftest.$ac_objext conftest$ac_exeext
10051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10052 (eval $ac_link) 2>conftest.er1
10053 ac_status=$?
10054 grep -v '^ *+' conftest.er1 >conftest.err
10055 rm -f conftest.er1
10056 cat conftest.err >&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } &&
10059 { ac_try='test -z "$ac_c_werror_flag"
10060 || test ! -s conftest.err'
10061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062 (eval $ac_try) 2>&5
10063 ac_status=$?
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; } &&
10066 { ac_try='test -s conftest$ac_exeext'
10067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068 (eval $ac_try) 2>&5
10069 ac_status=$?
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; }; then
10072 ac_cv_search_dlgetmodinfo="none required"
10073else
10074 echo "$as_me: failed program was:" >&5
10075sed 's/^/| /' conftest.$ac_ext >&5
10076
10077fi
10078rm -f conftest.err conftest.$ac_objext \
10079 conftest$ac_exeext conftest.$ac_ext
10080if test "$ac_cv_search_dlgetmodinfo" = no; then
10081 for ac_lib in dl xpdl; do
10082 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10083 cat >conftest.$ac_ext <<_ACEOF
10084/* confdefs.h. */
10085_ACEOF
10086cat confdefs.h >>conftest.$ac_ext
10087cat >>conftest.$ac_ext <<_ACEOF
10088/* end confdefs.h. */
10089
10090/* Override any gcc2 internal prototype to avoid an error. */
10091#ifdef __cplusplus
10092extern "C"
10093#endif
10094/* We use char because int might match the return type of a gcc2
10095 builtin and then its argument prototype would still apply. */
10096char dlgetmodinfo ();
10097int
10098main ()
10099{
10100dlgetmodinfo ();
10101 ;
10102 return 0;
10103}
10104_ACEOF
10105rm -f conftest.$ac_objext conftest$ac_exeext
10106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10107 (eval $ac_link) 2>conftest.er1
10108 ac_status=$?
10109 grep -v '^ *+' conftest.er1 >conftest.err
10110 rm -f conftest.er1
10111 cat conftest.err >&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } &&
10114 { ac_try='test -z "$ac_c_werror_flag"
10115 || test ! -s conftest.err'
10116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117 (eval $ac_try) 2>&5
10118 ac_status=$?
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); }; } &&
10121 { ac_try='test -s conftest$ac_exeext'
10122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123 (eval $ac_try) 2>&5
10124 ac_status=$?
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); }; }; then
10127 ac_cv_search_dlgetmodinfo="-l$ac_lib"
10128break
10129else
10130 echo "$as_me: failed program was:" >&5
10131sed 's/^/| /' conftest.$ac_ext >&5
10132
10133fi
10134rm -f conftest.err conftest.$ac_objext \
10135 conftest$ac_exeext conftest.$ac_ext
10136 done
10137fi
10138LIBS=$ac_func_search_save_LIBS
10139fi
10140echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10141echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10142if test "$ac_cv_search_dlgetmodinfo" != no; then
10143 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
10144
10145fi
10146
10147
bec39cab
AC
10148# Since GDB uses Readline, we need termcap functionality. In many
10149# cases this will be provided by the curses library, but some systems
10150# have a seperate termcap library, or no curses library at all.
8bb2c122 10151
bec39cab
AC
10152case $host_os in
10153 cygwin*)
10154 if test -d $srcdir/libtermcap; then
10155 LIBS="../libtermcap/libtermcap.a $LIBS"
10156 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10157 fi ;;
10158 go32* | *djgpp*)
10159 ac_cv_search_tgetent="none required"
10160 ;;
7ef34f2c
MM
10161 *mingw32*)
10162 ac_cv_search_tgetent="none required"
10163 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
10164 ;;
bec39cab 10165esac
627af7ea 10166
bec39cab 10167# These are the libraries checked by Readline.
b4e70030
JB
10168echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10169echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
bec39cab
AC
10170if test "${ac_cv_search_tgetent+set}" = set; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10172else
10173 ac_func_search_save_LIBS=$LIBS
b4e70030 10174ac_cv_search_tgetent=no
bec39cab
AC
10175cat >conftest.$ac_ext <<_ACEOF
10176/* confdefs.h. */
10177_ACEOF
10178cat confdefs.h >>conftest.$ac_ext
10179cat >>conftest.$ac_ext <<_ACEOF
10180/* end confdefs.h. */
10181
b4e70030 10182/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
10183#ifdef __cplusplus
10184extern "C"
10185#endif
b4e70030
JB
10186/* We use char because int might match the return type of a gcc2
10187 builtin and then its argument prototype would still apply. */
bec39cab
AC
10188char tgetent ();
10189int
10190main ()
10191{
b4e70030 10192tgetent ();
bec39cab
AC
10193 ;
10194 return 0;
10195}
10196_ACEOF
b4e70030 10197rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
10198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10199 (eval $ac_link) 2>conftest.er1
10200 ac_status=$?
10201 grep -v '^ *+' conftest.er1 >conftest.err
10202 rm -f conftest.er1
10203 cat conftest.err >&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); } &&
b4e70030
JB
10206 { ac_try='test -z "$ac_c_werror_flag"
10207 || test ! -s conftest.err'
bec39cab
AC
10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209 (eval $ac_try) 2>&5
10210 ac_status=$?
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; } &&
10213 { ac_try='test -s conftest$ac_exeext'
10214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215 (eval $ac_try) 2>&5
10216 ac_status=$?
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); }; }; then
b4e70030 10219 ac_cv_search_tgetent="none required"
627af7ea 10220else
bec39cab
AC
10221 echo "$as_me: failed program was:" >&5
10222sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 10223
627af7ea 10224fi
bec39cab 10225rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
10226 conftest$ac_exeext conftest.$ac_ext
10227if test "$ac_cv_search_tgetent" = no; then
10228 for ac_lib in termcap tinfo curses ncurses; do
10229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10230 cat >conftest.$ac_ext <<_ACEOF
10231/* confdefs.h. */
10232_ACEOF
10233cat confdefs.h >>conftest.$ac_ext
10234cat >>conftest.$ac_ext <<_ACEOF
10235/* end confdefs.h. */
10236
10237/* Override any gcc2 internal prototype to avoid an error. */
10238#ifdef __cplusplus
10239extern "C"
10240#endif
10241/* We use char because int might match the return type of a gcc2
10242 builtin and then its argument prototype would still apply. */
10243char tgetent ();
10244int
10245main ()
10246{
10247tgetent ();
10248 ;
10249 return 0;
10250}
10251_ACEOF
10252rm -f conftest.$ac_objext conftest$ac_exeext
10253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10254 (eval $ac_link) 2>conftest.er1
10255 ac_status=$?
10256 grep -v '^ *+' conftest.er1 >conftest.err
10257 rm -f conftest.er1
10258 cat conftest.err >&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } &&
10261 { ac_try='test -z "$ac_c_werror_flag"
10262 || test ! -s conftest.err'
10263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264 (eval $ac_try) 2>&5
10265 ac_status=$?
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); }; } &&
10268 { ac_try='test -s conftest$ac_exeext'
10269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10270 (eval $ac_try) 2>&5
10271 ac_status=$?
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; }; then
10274 ac_cv_search_tgetent="-l$ac_lib"
10275break
4e8d927d 10276else
b4e70030
JB
10277 echo "$as_me: failed program was:" >&5
10278sed 's/^/| /' conftest.$ac_ext >&5
10279
10280fi
10281rm -f conftest.err conftest.$ac_objext \
10282 conftest$ac_exeext conftest.$ac_ext
10283 done
bec39cab
AC
10284fi
10285LIBS=$ac_func_search_save_LIBS
10286fi
b4e70030
JB
10287echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10288echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10289if test "$ac_cv_search_tgetent" != no; then
10290 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 10291
06825bd1
MK
10292fi
10293
06825bd1 10294
bec39cab
AC
10295if test "$ac_cv_search_tgetent" = no; then
10296 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10297echo "$as_me: error: no termcap library found" >&2;}
10298 { (exit 1); exit 1; }; }
8ee53726
MK
10299fi
10300
3841debe 10301
6a30b0a5
AS
10302# Check whether --with-system-readline or --without-system-readline was given.
10303if test "${with_system_readline+set}" = set; then
10304 withval="$with_system_readline"
10305
10306fi;
10307
10308if test "$with_system_readline" = yes; then
10309 READLINE=-lreadline
10310 READLINE_DEPS=
10311 READLINE_CFLAGS=
10312else
10313 READLINE='$(READLINE_DIR)/libreadline.a'
10314 READLINE_DEPS='$(READLINE)'
10315 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10316fi
10317
10318
10319
10320
10321
5c39566f
DJ
10322# Check whether --with-expat or --without-expat was given.
10323if test "${with_expat+set}" = set; then
10324 withval="$with_expat"
10325
10326else
10327 with_expat=auto
10328fi;
10329echo "$as_me:$LINENO: checking whether to use expat" >&5
10330echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10331echo "$as_me:$LINENO: result: $with_expat" >&5
10332echo "${ECHO_T}$with_expat" >&6
10333
10334if test "${with_expat}" = no; then
10335 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10336echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10337 HAVE_LIBEXPAT=no
10338else
10339
3841debe
DJ
10340 if test "X$prefix" = "XNONE"; then
10341 acl_final_prefix="$ac_default_prefix"
10342 else
10343 acl_final_prefix="$prefix"
10344 fi
10345 if test "X$exec_prefix" = "XNONE"; then
10346 acl_final_exec_prefix='${prefix}'
10347 else
10348 acl_final_exec_prefix="$exec_prefix"
10349 fi
10350 acl_save_prefix="$prefix"
10351 prefix="$acl_final_prefix"
10352 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10353 prefix="$acl_save_prefix"
10354
10355
10356# Check whether --with-gnu-ld or --without-gnu-ld was given.
10357if test "${with_gnu_ld+set}" = set; then
10358 withval="$with_gnu_ld"
10359 test "$withval" = no || with_gnu_ld=yes
10360else
10361 with_gnu_ld=no
10362fi;
10363# Prepare PATH_SEPARATOR.
10364# The user is always right.
10365if test "${PATH_SEPARATOR+set}" != set; then
10366 echo "#! /bin/sh" >conf$$.sh
10367 echo "exit 0" >>conf$$.sh
10368 chmod +x conf$$.sh
10369 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10370 PATH_SEPARATOR=';'
10371 else
10372 PATH_SEPARATOR=:
10373 fi
10374 rm -f conf$$.sh
10375fi
10376ac_prog=ld
10377if test "$GCC" = yes; then
10378 # Check if gcc -print-prog-name=ld gives a path.
10379 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10380echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10381 case $host in
10382 *-*-mingw*)
10383 # gcc leaves a trailing carriage return which upsets mingw
10384 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10385 *)
10386 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10387 esac
10388 case $ac_prog in
10389 # Accept absolute paths.
10390 [\\/]* | [A-Za-z]:[\\/]*)
10391 re_direlt='/[^/][^/]*/\.\./'
10392 # Canonicalize the path of ld
10393 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10394 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10395 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10396 done
10397 test -z "$LD" && LD="$ac_prog"
10398 ;;
10399 "")
10400 # If it fails, then pretend we aren't using GCC.
10401 ac_prog=ld
10402 ;;
10403 *)
10404 # If it is relative, then search for the first ld in PATH.
10405 with_gnu_ld=unknown
10406 ;;
10407 esac
10408elif test "$with_gnu_ld" = yes; then
10409 echo "$as_me:$LINENO: checking for GNU ld" >&5
10410echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10411else
10412 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10413echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10414fi
10415if test "${acl_cv_path_LD+set}" = set; then
10416 echo $ECHO_N "(cached) $ECHO_C" >&6
10417else
10418 if test -z "$LD"; then
10419 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10420 for ac_dir in $PATH; do
10421 test -z "$ac_dir" && ac_dir=.
10422 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10423 acl_cv_path_LD="$ac_dir/$ac_prog"
10424 # Check to see if the program is GNU ld. I'd rather use --version,
10425 # but apparently some GNU ld's only accept -v.
10426 # Break only if it was the GNU/non-GNU ld that we prefer.
10427 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10428 test "$with_gnu_ld" != no && break
10429 else
10430 test "$with_gnu_ld" != yes && break
10431 fi
10432 fi
10433 done
10434 IFS="$ac_save_ifs"
10435else
10436 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10437fi
10438fi
10439
10440LD="$acl_cv_path_LD"
10441if test -n "$LD"; then
10442 echo "$as_me:$LINENO: result: $LD" >&5
10443echo "${ECHO_T}$LD" >&6
10444else
10445 echo "$as_me:$LINENO: result: no" >&5
10446echo "${ECHO_T}no" >&6
10447fi
10448test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10449echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10450 { (exit 1); exit 1; }; }
10451echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10452echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10453if test "${acl_cv_prog_gnu_ld+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10455else
10456 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10457if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10458 acl_cv_prog_gnu_ld=yes
10459else
10460 acl_cv_prog_gnu_ld=no
10461fi
10462fi
10463echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10464echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10465with_gnu_ld=$acl_cv_prog_gnu_ld
10466
10467
10468
10469 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10470echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10471if test "${acl_cv_rpath+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10473else
10474
10475 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10476 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10477 . ./conftest.sh
10478 rm -f ./conftest.sh
10479 acl_cv_rpath=done
10480
10481fi
10482echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10483echo "${ECHO_T}$acl_cv_rpath" >&6
10484 wl="$acl_cv_wl"
10485 libext="$acl_cv_libext"
10486 shlibext="$acl_cv_shlibext"
10487 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10488 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10489 hardcode_direct="$acl_cv_hardcode_direct"
10490 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10491 # Check whether --enable-rpath or --disable-rpath was given.
10492if test "${enable_rpath+set}" = set; then
10493 enableval="$enable_rpath"
10494 :
10495else
10496 enable_rpath=yes
10497fi;
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507 use_additional=yes
10508
10509 acl_save_prefix="$prefix"
10510 prefix="$acl_final_prefix"
10511 acl_save_exec_prefix="$exec_prefix"
10512 exec_prefix="$acl_final_exec_prefix"
10513
10514 eval additional_includedir=\"$includedir\"
10515 eval additional_libdir=\"$libdir\"
10516
10517 exec_prefix="$acl_save_exec_prefix"
10518 prefix="$acl_save_prefix"
10519
10520
10521# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10522if test "${with_libexpat_prefix+set}" = set; then
10523 withval="$with_libexpat_prefix"
10524
10525 if test "X$withval" = "Xno"; then
10526 use_additional=no
10527 else
10528 if test "X$withval" = "X"; then
10529
10530 acl_save_prefix="$prefix"
10531 prefix="$acl_final_prefix"
10532 acl_save_exec_prefix="$exec_prefix"
10533 exec_prefix="$acl_final_exec_prefix"
10534
10535 eval additional_includedir=\"$includedir\"
10536 eval additional_libdir=\"$libdir\"
10537
10538 exec_prefix="$acl_save_exec_prefix"
10539 prefix="$acl_save_prefix"
10540
10541 else
10542 additional_includedir="$withval/include"
10543 additional_libdir="$withval/lib"
10544 fi
10545 fi
10546
10547fi;
10548 LIBEXPAT=
10549 LTLIBEXPAT=
10550 INCEXPAT=
10551 rpathdirs=
10552 ltrpathdirs=
10553 names_already_handled=
10554 names_next_round='expat '
10555 while test -n "$names_next_round"; do
10556 names_this_round="$names_next_round"
10557 names_next_round=
10558 for name in $names_this_round; do
10559 already_handled=
10560 for n in $names_already_handled; do
10561 if test "$n" = "$name"; then
10562 already_handled=yes
10563 break
10564 fi
10565 done
10566 if test -z "$already_handled"; then
10567 names_already_handled="$names_already_handled $name"
10568 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10569 eval value=\"\$HAVE_LIB$uppername\"
10570 if test -n "$value"; then
10571 if test "$value" = yes; then
10572 eval value=\"\$LIB$uppername\"
10573 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10574 eval value=\"\$LTLIB$uppername\"
10575 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10576 else
10577 :
10578 fi
10579 else
10580 found_dir=
10581 found_la=
10582 found_so=
10583 found_a=
10584 if test $use_additional = yes; then
10585 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10586 found_dir="$additional_libdir"
10587 found_so="$additional_libdir/lib$name.$shlibext"
10588 if test -f "$additional_libdir/lib$name.la"; then
10589 found_la="$additional_libdir/lib$name.la"
10590 fi
10591 else
10592 if test -f "$additional_libdir/lib$name.$libext"; then
10593 found_dir="$additional_libdir"
10594 found_a="$additional_libdir/lib$name.$libext"
10595 if test -f "$additional_libdir/lib$name.la"; then
10596 found_la="$additional_libdir/lib$name.la"
10597 fi
10598 fi
10599 fi
10600 fi
10601 if test "X$found_dir" = "X"; then
10602 for x in $LDFLAGS $LTLIBEXPAT; do
10603
10604 acl_save_prefix="$prefix"
10605 prefix="$acl_final_prefix"
10606 acl_save_exec_prefix="$exec_prefix"
10607 exec_prefix="$acl_final_exec_prefix"
10608 eval x=\"$x\"
10609 exec_prefix="$acl_save_exec_prefix"
10610 prefix="$acl_save_prefix"
10611
10612 case "$x" in
10613 -L*)
10614 dir=`echo "X$x" | sed -e 's/^X-L//'`
10615 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10616 found_dir="$dir"
10617 found_so="$dir/lib$name.$shlibext"
10618 if test -f "$dir/lib$name.la"; then
10619 found_la="$dir/lib$name.la"
10620 fi
10621 else
10622 if test -f "$dir/lib$name.$libext"; then
10623 found_dir="$dir"
10624 found_a="$dir/lib$name.$libext"
10625 if test -f "$dir/lib$name.la"; then
10626 found_la="$dir/lib$name.la"
10627 fi
10628 fi
10629 fi
10630 ;;
10631 esac
10632 if test "X$found_dir" != "X"; then
10633 break
10634 fi
10635 done
10636 fi
10637 if test "X$found_dir" != "X"; then
10638 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10639 if test "X$found_so" != "X"; then
10640 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10641 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10642 else
10643 haveit=
10644 for x in $ltrpathdirs; do
10645 if test "X$x" = "X$found_dir"; then
10646 haveit=yes
10647 break
10648 fi
10649 done
10650 if test -z "$haveit"; then
10651 ltrpathdirs="$ltrpathdirs $found_dir"
10652 fi
10653 if test "$hardcode_direct" = yes; then
10654 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10655 else
10656 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10657 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10658 haveit=
10659 for x in $rpathdirs; do
10660 if test "X$x" = "X$found_dir"; then
10661 haveit=yes
10662 break
10663 fi
10664 done
10665 if test -z "$haveit"; then
10666 rpathdirs="$rpathdirs $found_dir"
10667 fi
10668 else
10669 haveit=
10670 for x in $LDFLAGS $LIBEXPAT; do
10671
10672 acl_save_prefix="$prefix"
10673 prefix="$acl_final_prefix"
10674 acl_save_exec_prefix="$exec_prefix"
10675 exec_prefix="$acl_final_exec_prefix"
10676 eval x=\"$x\"
10677 exec_prefix="$acl_save_exec_prefix"
10678 prefix="$acl_save_prefix"
10679
10680 if test "X$x" = "X-L$found_dir"; then
10681 haveit=yes
10682 break
10683 fi
10684 done
10685 if test -z "$haveit"; then
10686 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10687 fi
10688 if test "$hardcode_minus_L" != no; then
10689 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10690 else
10691 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10692 fi
10693 fi
10694 fi
10695 fi
10696 else
10697 if test "X$found_a" != "X"; then
10698 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10699 else
10700 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10701 fi
10702 fi
10703 additional_includedir=
10704 case "$found_dir" in
10705 */lib | */lib/)
10706 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10707 additional_includedir="$basedir/include"
10708 ;;
10709 esac
10710 if test "X$additional_includedir" != "X"; then
10711 if test "X$additional_includedir" != "X/usr/include"; then
10712 haveit=
10713 if test "X$additional_includedir" = "X/usr/local/include"; then
10714 if test -n "$GCC"; then
10715 case $host_os in
10716 linux*) haveit=yes;;
10717 esac
10718 fi
10719 fi
10720 if test -z "$haveit"; then
10721 for x in $CPPFLAGS $INCEXPAT; do
10722
10723 acl_save_prefix="$prefix"
10724 prefix="$acl_final_prefix"
10725 acl_save_exec_prefix="$exec_prefix"
10726 exec_prefix="$acl_final_exec_prefix"
10727 eval x=\"$x\"
10728 exec_prefix="$acl_save_exec_prefix"
10729 prefix="$acl_save_prefix"
10730
10731 if test "X$x" = "X-I$additional_includedir"; then
10732 haveit=yes
10733 break
10734 fi
10735 done
10736 if test -z "$haveit"; then
10737 if test -d "$additional_includedir"; then
10738 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10739 fi
10740 fi
10741 fi
10742 fi
10743 fi
10744 if test -n "$found_la"; then
10745 save_libdir="$libdir"
10746 case "$found_la" in
10747 */* | *\\*) . "$found_la" ;;
10748 *) . "./$found_la" ;;
10749 esac
10750 libdir="$save_libdir"
10751 for dep in $dependency_libs; do
10752 case "$dep" in
10753 -L*)
10754 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10755 if test "X$additional_libdir" != "X/usr/lib"; then
10756 haveit=
10757 if test "X$additional_libdir" = "X/usr/local/lib"; then
10758 if test -n "$GCC"; then
10759 case $host_os in
10760 linux*) haveit=yes;;
10761 esac
10762 fi
10763 fi
10764 if test -z "$haveit"; then
10765 haveit=
10766 for x in $LDFLAGS $LIBEXPAT; do
10767
10768 acl_save_prefix="$prefix"
10769 prefix="$acl_final_prefix"
10770 acl_save_exec_prefix="$exec_prefix"
10771 exec_prefix="$acl_final_exec_prefix"
10772 eval x=\"$x\"
10773 exec_prefix="$acl_save_exec_prefix"
10774 prefix="$acl_save_prefix"
10775
10776 if test "X$x" = "X-L$additional_libdir"; then
10777 haveit=yes
10778 break
10779 fi
10780 done
10781 if test -z "$haveit"; then
10782 if test -d "$additional_libdir"; then
10783 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10784 fi
10785 fi
10786 haveit=
10787 for x in $LDFLAGS $LTLIBEXPAT; do
10788
10789 acl_save_prefix="$prefix"
10790 prefix="$acl_final_prefix"
10791 acl_save_exec_prefix="$exec_prefix"
10792 exec_prefix="$acl_final_exec_prefix"
10793 eval x=\"$x\"
10794 exec_prefix="$acl_save_exec_prefix"
10795 prefix="$acl_save_prefix"
10796
10797 if test "X$x" = "X-L$additional_libdir"; then
10798 haveit=yes
10799 break
10800 fi
10801 done
10802 if test -z "$haveit"; then
10803 if test -d "$additional_libdir"; then
10804 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10805 fi
10806 fi
10807 fi
10808 fi
10809 ;;
10810 -R*)
10811 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10812 if test "$enable_rpath" != no; then
10813 haveit=
10814 for x in $rpathdirs; do
10815 if test "X$x" = "X$dir"; then
10816 haveit=yes
10817 break
10818 fi
10819 done
10820 if test -z "$haveit"; then
10821 rpathdirs="$rpathdirs $dir"
10822 fi
10823 haveit=
10824 for x in $ltrpathdirs; do
10825 if test "X$x" = "X$dir"; then
10826 haveit=yes
10827 break
10828 fi
10829 done
10830 if test -z "$haveit"; then
10831 ltrpathdirs="$ltrpathdirs $dir"
10832 fi
10833 fi
10834 ;;
10835 -l*)
10836 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10837 ;;
10838 *.la)
10839 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10840 ;;
10841 *)
10842 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10843 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10844 ;;
10845 esac
10846 done
10847 fi
10848 else
10849 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10850 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10851 fi
10852 fi
10853 fi
10854 done
10855 done
10856 if test "X$rpathdirs" != "X"; then
10857 if test -n "$hardcode_libdir_separator"; then
10858 alldirs=
10859 for found_dir in $rpathdirs; do
10860 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10861 done
10862 acl_save_libdir="$libdir"
10863 libdir="$alldirs"
10864 eval flag=\"$hardcode_libdir_flag_spec\"
10865 libdir="$acl_save_libdir"
10866 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10867 else
10868 for found_dir in $rpathdirs; do
10869 acl_save_libdir="$libdir"
10870 libdir="$found_dir"
10871 eval flag=\"$hardcode_libdir_flag_spec\"
10872 libdir="$acl_save_libdir"
10873 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10874 done
10875 fi
10876 fi
10877 if test "X$ltrpathdirs" != "X"; then
10878 for found_dir in $ltrpathdirs; do
10879 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10880 done
10881 fi
10882
10883
10884 ac_save_CPPFLAGS="$CPPFLAGS"
10885
10886 for element in $INCEXPAT; do
10887 haveit=
10888 for x in $CPPFLAGS; do
10889
10890 acl_save_prefix="$prefix"
10891 prefix="$acl_final_prefix"
10892 acl_save_exec_prefix="$exec_prefix"
10893 exec_prefix="$acl_final_exec_prefix"
10894 eval x=\"$x\"
10895 exec_prefix="$acl_save_exec_prefix"
10896 prefix="$acl_save_prefix"
10897
10898 if test "X$x" = "X$element"; then
10899 haveit=yes
10900 break
10901 fi
10902 done
10903 if test -z "$haveit"; then
10904 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10905 fi
10906 done
10907
10908
10909 echo "$as_me:$LINENO: checking for libexpat" >&5
10910echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
10911if test "${ac_cv_libexpat+set}" = set; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10913else
10914
10915 ac_save_LIBS="$LIBS"
10916 LIBS="$LIBS $LIBEXPAT"
10917 cat >conftest.$ac_ext <<_ACEOF
10918/* confdefs.h. */
10919_ACEOF
10920cat confdefs.h >>conftest.$ac_ext
10921cat >>conftest.$ac_ext <<_ACEOF
10922/* end confdefs.h. */
10923#include "expat.h"
10924int
10925main ()
10926{
10927XML_Parser p = XML_ParserCreate (0);
10928 ;
10929 return 0;
10930}
10931_ACEOF
10932rm -f conftest.$ac_objext conftest$ac_exeext
10933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10934 (eval $ac_link) 2>conftest.er1
10935 ac_status=$?
10936 grep -v '^ *+' conftest.er1 >conftest.err
10937 rm -f conftest.er1
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } &&
10941 { ac_try='test -z "$ac_c_werror_flag"
10942 || test ! -s conftest.err'
10943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944 (eval $ac_try) 2>&5
10945 ac_status=$?
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }; } &&
10948 { ac_try='test -s conftest$ac_exeext'
10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950 (eval $ac_try) 2>&5
10951 ac_status=$?
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; }; then
10954 ac_cv_libexpat=yes
10955else
10956 echo "$as_me: failed program was:" >&5
10957sed 's/^/| /' conftest.$ac_ext >&5
10958
10959ac_cv_libexpat=no
10960fi
10961rm -f conftest.err conftest.$ac_objext \
10962 conftest$ac_exeext conftest.$ac_ext
10963 LIBS="$ac_save_LIBS"
10964
10965fi
10966echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
10967echo "${ECHO_T}$ac_cv_libexpat" >&6
10968 if test "$ac_cv_libexpat" = yes; then
10969 HAVE_LIBEXPAT=yes
10970
10971cat >>confdefs.h <<\_ACEOF
10972#define HAVE_LIBEXPAT 1
10973_ACEOF
10974
10975 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
10976echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
10977 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
10978echo "${ECHO_T}$LIBEXPAT" >&6
10979 else
10980 HAVE_LIBEXPAT=no
10981 CPPFLAGS="$ac_save_CPPFLAGS"
10982 LIBEXPAT=
10983 LTLIBEXPAT=
10984 fi
10985
10986
10987
10988
10989
10990
5c39566f
DJ
10991 if test "$HAVE_LIBEXPAT" != yes; then
10992 if test "$with_expat" = yes; then
10993 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
10994echo "$as_me: error: expat is missing or unusable" >&2;}
10995 { (exit 1); exit 1; }; }
10996 else
10997 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10998echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10999 fi
11000 else
11001 save_LIBS=$LIBS
11002 LIBS="$LIBS $LIBEXPAT"
ca4ca11e
DJ
11003
11004for ac_func in XML_StopParser
11005do
11006as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11007echo "$as_me:$LINENO: checking for $ac_func" >&5
11008echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11009if eval "test \"\${$as_ac_var+set}\" = set"; then
11010 echo $ECHO_N "(cached) $ECHO_C" >&6
11011else
11012 cat >conftest.$ac_ext <<_ACEOF
11013/* confdefs.h. */
11014_ACEOF
11015cat confdefs.h >>conftest.$ac_ext
11016cat >>conftest.$ac_ext <<_ACEOF
11017/* end confdefs.h. */
11018/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11020#define $ac_func innocuous_$ac_func
11021
11022/* System header to define __stub macros and hopefully few prototypes,
11023 which can conflict with char $ac_func (); below.
11024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11025 <limits.h> exists even on freestanding compilers. */
11026
11027#ifdef __STDC__
11028# include <limits.h>
11029#else
11030# include <assert.h>
11031#endif
11032
11033#undef $ac_func
11034
11035/* Override any gcc2 internal prototype to avoid an error. */
11036#ifdef __cplusplus
11037extern "C"
11038{
11039#endif
11040/* We use char because int might match the return type of a gcc2
11041 builtin and then its argument prototype would still apply. */
11042char $ac_func ();
11043/* The GNU C library defines this for functions which it implements
11044 to always fail with ENOSYS. Some functions are actually named
11045 something starting with __ and the normal name is an alias. */
11046#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11047choke me
11048#else
11049char (*f) () = $ac_func;
11050#endif
11051#ifdef __cplusplus
11052}
11053#endif
11054
11055int
11056main ()
11057{
11058return f != $ac_func;
11059 ;
11060 return 0;
11061}
11062_ACEOF
11063rm -f conftest.$ac_objext conftest$ac_exeext
11064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11065 (eval $ac_link) 2>conftest.er1
11066 ac_status=$?
11067 grep -v '^ *+' conftest.er1 >conftest.err
11068 rm -f conftest.er1
11069 cat conftest.err >&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } &&
11072 { ac_try='test -z "$ac_c_werror_flag"
11073 || test ! -s conftest.err'
11074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11075 (eval $ac_try) 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; } &&
11079 { ac_try='test -s conftest$ac_exeext'
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11082 ac_status=$?
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; }; then
11085 eval "$as_ac_var=yes"
11086else
11087 echo "$as_me: failed program was:" >&5
11088sed 's/^/| /' conftest.$ac_ext >&5
11089
11090eval "$as_ac_var=no"
11091fi
11092rm -f conftest.err conftest.$ac_objext \
11093 conftest$ac_exeext conftest.$ac_ext
11094fi
11095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11096echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11097if test `eval echo '${'$as_ac_var'}'` = yes; then
11098 cat >>confdefs.h <<_ACEOF
11099#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11100_ACEOF
11101
11102fi
11103done
11104
5c39566f
DJ
11105 LIBS=$save_LIBS
11106 fi
3841debe
DJ
11107fi
11108
bec39cab
AC
11109# ------------------------- #
11110# Checks for header files. #
11111# ------------------------- #
8ee53726 11112
0e5d83e3 11113
bec39cab
AC
11114
11115
11116
11117
11118ac_header_dirent=no
11119for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11120 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
b4e70030
JB
11121echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11122echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11123if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11125else
11126 cat >conftest.$ac_ext <<_ACEOF
11127/* confdefs.h. */
11128_ACEOF
11129cat confdefs.h >>conftest.$ac_ext
11130cat >>conftest.$ac_ext <<_ACEOF
11131/* end confdefs.h. */
11132#include <sys/types.h>
0e5d83e3 11133#include <$ac_hdr>
bec39cab
AC
11134
11135int
11136main ()
11137{
11138if ((DIR *) 0)
11139return 0;
11140 ;
11141 return 0;
11142}
11143_ACEOF
11144rm -f conftest.$ac_objext
11145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11146 (eval $ac_compile) 2>conftest.er1
11147 ac_status=$?
11148 grep -v '^ *+' conftest.er1 >conftest.err
11149 rm -f conftest.er1
11150 cat conftest.err >&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } &&
b4e70030
JB
11153 { ac_try='test -z "$ac_c_werror_flag"
11154 || test ! -s conftest.err'
bec39cab
AC
11155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156 (eval $ac_try) 2>&5
11157 ac_status=$?
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; } &&
11160 { ac_try='test -s conftest.$ac_objext'
11161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11162 (eval $ac_try) 2>&5
11163 ac_status=$?
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); }; }; then
11166 eval "$as_ac_Header=yes"
11167else
11168 echo "$as_me: failed program was:" >&5
11169sed 's/^/| /' conftest.$ac_ext >&5
11170
b4e70030 11171eval "$as_ac_Header=no"
bec39cab
AC
11172fi
11173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11174fi
b4e70030
JB
11175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11176echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11177if test `eval echo '${'$as_ac_Header'}'` = yes; then
11178 cat >>confdefs.h <<_ACEOF
11179#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11180_ACEOF
11181
11182ac_header_dirent=$ac_hdr; break
0e5d83e3 11183fi
0e5d83e3 11184
bec39cab
AC
11185done
11186# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11187if test $ac_header_dirent = dirent.h; then
b4e70030
JB
11188 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11189echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
11190if test "${ac_cv_search_opendir+set}" = set; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11192else
11193 ac_func_search_save_LIBS=$LIBS
b4e70030 11194ac_cv_search_opendir=no
bec39cab
AC
11195cat >conftest.$ac_ext <<_ACEOF
11196/* confdefs.h. */
11197_ACEOF
11198cat confdefs.h >>conftest.$ac_ext
11199cat >>conftest.$ac_ext <<_ACEOF
11200/* end confdefs.h. */
0e5d83e3 11201
b4e70030 11202/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
11203#ifdef __cplusplus
11204extern "C"
11205#endif
b4e70030
JB
11206/* We use char because int might match the return type of a gcc2
11207 builtin and then its argument prototype would still apply. */
bec39cab
AC
11208char opendir ();
11209int
11210main ()
11211{
b4e70030 11212opendir ();
bec39cab
AC
11213 ;
11214 return 0;
11215}
11216_ACEOF
b4e70030 11217rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
11218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11219 (eval $ac_link) 2>conftest.er1
11220 ac_status=$?
11221 grep -v '^ *+' conftest.er1 >conftest.err
11222 rm -f conftest.er1
11223 cat conftest.err >&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } &&
b4e70030
JB
11226 { ac_try='test -z "$ac_c_werror_flag"
11227 || test ! -s conftest.err'
bec39cab
AC
11228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229 (eval $ac_try) 2>&5
11230 ac_status=$?
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; } &&
11233 { ac_try='test -s conftest$ac_exeext'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }; then
b4e70030 11239 ac_cv_search_opendir="none required"
bec39cab
AC
11240else
11241 echo "$as_me: failed program was:" >&5
11242sed 's/^/| /' conftest.$ac_ext >&5
11243
11244fi
bec39cab 11245rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
11246 conftest$ac_exeext conftest.$ac_ext
11247if test "$ac_cv_search_opendir" = no; then
11248 for ac_lib in dir; do
11249 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11250 cat >conftest.$ac_ext <<_ACEOF
11251/* confdefs.h. */
11252_ACEOF
11253cat confdefs.h >>conftest.$ac_ext
11254cat >>conftest.$ac_ext <<_ACEOF
11255/* end confdefs.h. */
11256
11257/* Override any gcc2 internal prototype to avoid an error. */
11258#ifdef __cplusplus
11259extern "C"
11260#endif
11261/* We use char because int might match the return type of a gcc2
11262 builtin and then its argument prototype would still apply. */
11263char opendir ();
11264int
11265main ()
11266{
11267opendir ();
11268 ;
11269 return 0;
11270}
11271_ACEOF
11272rm -f conftest.$ac_objext conftest$ac_exeext
11273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11274 (eval $ac_link) 2>conftest.er1
11275 ac_status=$?
11276 grep -v '^ *+' conftest.er1 >conftest.err
11277 rm -f conftest.er1
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try='test -z "$ac_c_werror_flag"
11282 || test ! -s conftest.err'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11285 ac_status=$?
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; } &&
11288 { ac_try='test -s conftest$ac_exeext'
11289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290 (eval $ac_try) 2>&5
11291 ac_status=$?
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11294 ac_cv_search_opendir="-l$ac_lib"
11295break
4e8d927d 11296else
b4e70030
JB
11297 echo "$as_me: failed program was:" >&5
11298sed 's/^/| /' conftest.$ac_ext >&5
11299
11300fi
11301rm -f conftest.err conftest.$ac_objext \
11302 conftest$ac_exeext conftest.$ac_ext
11303 done
0e5d83e3 11304fi
bec39cab 11305LIBS=$ac_func_search_save_LIBS
0e5d83e3 11306fi
b4e70030
JB
11307echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11308echo "${ECHO_T}$ac_cv_search_opendir" >&6
11309if test "$ac_cv_search_opendir" != no; then
11310 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 11311
0e5d83e3
JJ
11312fi
11313
d28f9cdf 11314else
b4e70030
JB
11315 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11316echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
11317if test "${ac_cv_search_opendir+set}" = set; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11319else
11320 ac_func_search_save_LIBS=$LIBS
b4e70030 11321ac_cv_search_opendir=no
bec39cab
AC
11322cat >conftest.$ac_ext <<_ACEOF
11323/* confdefs.h. */
11324_ACEOF
11325cat confdefs.h >>conftest.$ac_ext
11326cat >>conftest.$ac_ext <<_ACEOF
11327/* end confdefs.h. */
d28f9cdf 11328
b4e70030 11329/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
11330#ifdef __cplusplus
11331extern "C"
d28f9cdf 11332#endif
b4e70030
JB
11333/* We use char because int might match the return type of a gcc2
11334 builtin and then its argument prototype would still apply. */
bec39cab
AC
11335char opendir ();
11336int
11337main ()
11338{
b4e70030 11339opendir ();
bec39cab
AC
11340 ;
11341 return 0;
11342}
11343_ACEOF
b4e70030 11344rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
11345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11346 (eval $ac_link) 2>conftest.er1
11347 ac_status=$?
11348 grep -v '^ *+' conftest.er1 >conftest.err
11349 rm -f conftest.er1
11350 cat conftest.err >&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } &&
b4e70030
JB
11353 { ac_try='test -z "$ac_c_werror_flag"
11354 || test ! -s conftest.err'
bec39cab
AC
11355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11356 (eval $ac_try) 2>&5
11357 ac_status=$?
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; } &&
11360 { ac_try='test -s conftest$ac_exeext'
11361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362 (eval $ac_try) 2>&5
11363 ac_status=$?
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; }; then
b4e70030 11366 ac_cv_search_opendir="none required"
d28f9cdf 11367else
bec39cab
AC
11368 echo "$as_me: failed program was:" >&5
11369sed 's/^/| /' conftest.$ac_ext >&5
11370
d28f9cdf 11371fi
bec39cab 11372rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
11373 conftest$ac_exeext conftest.$ac_ext
11374if test "$ac_cv_search_opendir" = no; then
11375 for ac_lib in x; do
11376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11377 cat >conftest.$ac_ext <<_ACEOF
11378/* confdefs.h. */
11379_ACEOF
11380cat confdefs.h >>conftest.$ac_ext
11381cat >>conftest.$ac_ext <<_ACEOF
11382/* end confdefs.h. */
11383
11384/* Override any gcc2 internal prototype to avoid an error. */
11385#ifdef __cplusplus
11386extern "C"
11387#endif
11388/* We use char because int might match the return type of a gcc2
11389 builtin and then its argument prototype would still apply. */
11390char opendir ();
11391int
11392main ()
11393{
11394opendir ();
11395 ;
11396 return 0;
11397}
11398_ACEOF
11399rm -f conftest.$ac_objext conftest$ac_exeext
11400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11401 (eval $ac_link) 2>conftest.er1
11402 ac_status=$?
11403 grep -v '^ *+' conftest.er1 >conftest.err
11404 rm -f conftest.er1
11405 cat conftest.err >&5
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); } &&
11408 { ac_try='test -z "$ac_c_werror_flag"
11409 || test ! -s conftest.err'
11410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11411 (eval $ac_try) 2>&5
11412 ac_status=$?
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; } &&
11415 { ac_try='test -s conftest$ac_exeext'
11416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417 (eval $ac_try) 2>&5
11418 ac_status=$?
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; }; then
11421 ac_cv_search_opendir="-l$ac_lib"
11422break
4e8d927d 11423else
b4e70030
JB
11424 echo "$as_me: failed program was:" >&5
11425sed 's/^/| /' conftest.$ac_ext >&5
11426
11427fi
11428rm -f conftest.err conftest.$ac_objext \
11429 conftest$ac_exeext conftest.$ac_ext
11430 done
bec39cab
AC
11431fi
11432LIBS=$ac_func_search_save_LIBS
d28f9cdf 11433fi
b4e70030
JB
11434echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11435echo "${ECHO_T}$ac_cv_search_opendir" >&6
11436if test "$ac_cv_search_opendir" != no; then
11437 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 11438
d28f9cdf
DJ
11439fi
11440
bec39cab 11441fi
b0b1c2c0 11442
b4e70030
JB
11443echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11444echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
bec39cab
AC
11445if test "${ac_cv_header_stat_broken+set}" = set; then
11446 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 11447else
bec39cab
AC
11448 cat >conftest.$ac_ext <<_ACEOF
11449/* confdefs.h. */
11450_ACEOF
11451cat confdefs.h >>conftest.$ac_ext
11452cat >>conftest.$ac_ext <<_ACEOF
11453/* end confdefs.h. */
11454#include <sys/types.h>
11455#include <sys/stat.h>
b0b1c2c0 11456
b4e70030 11457#if defined(S_ISBLK) && defined(S_IFDIR)
bec39cab
AC
11458# if S_ISBLK (S_IFDIR)
11459You lose.
11460# endif
11461#endif
b0b1c2c0 11462
b4e70030 11463#if defined(S_ISBLK) && defined(S_IFCHR)
bec39cab
AC
11464# if S_ISBLK (S_IFCHR)
11465You lose.
11466# endif
11467#endif
d28f9cdf 11468
b4e70030 11469#if defined(S_ISLNK) && defined(S_IFREG)
bec39cab
AC
11470# if S_ISLNK (S_IFREG)
11471You lose.
11472# endif
11473#endif
d28f9cdf 11474
b4e70030 11475#if defined(S_ISSOCK) && defined(S_IFREG)
bec39cab
AC
11476# if S_ISSOCK (S_IFREG)
11477You lose.
11478# endif
11479#endif
11480
11481_ACEOF
11482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11483 $EGREP "You lose" >/dev/null 2>&1; then
11484 ac_cv_header_stat_broken=yes
d28f9cdf 11485else
bec39cab 11486 ac_cv_header_stat_broken=no
d28f9cdf
DJ
11487fi
11488rm -f conftest*
d28f9cdf 11489
d28f9cdf 11490fi
b4e70030
JB
11491echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11492echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
bec39cab 11493if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 11494
bec39cab
AC
11495cat >>confdefs.h <<\_ACEOF
11496#define STAT_MACROS_BROKEN 1
11497_ACEOF
8bb2c122 11498
7a292a7a 11499fi
bec39cab 11500
b4e70030
JB
11501echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11502echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
bec39cab
AC
11503if test "${ac_cv_header_stdc+set}" = set; then
11504 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 11505else
bec39cab
AC
11506 cat >conftest.$ac_ext <<_ACEOF
11507/* confdefs.h. */
11508_ACEOF
11509cat confdefs.h >>conftest.$ac_ext
11510cat >>conftest.$ac_ext <<_ACEOF
11511/* end confdefs.h. */
11512#include <stdlib.h>
11513#include <stdarg.h>
11514#include <string.h>
11515#include <float.h>
7a292a7a 11516
bec39cab
AC
11517int
11518main ()
11519{
7a292a7a 11520
bec39cab
AC
11521 ;
11522 return 0;
11523}
11524_ACEOF
11525rm -f conftest.$ac_objext
11526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11527 (eval $ac_compile) 2>conftest.er1
11528 ac_status=$?
11529 grep -v '^ *+' conftest.er1 >conftest.err
11530 rm -f conftest.er1
11531 cat conftest.err >&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } &&
b4e70030
JB
11534 { ac_try='test -z "$ac_c_werror_flag"
11535 || test ! -s conftest.err'
bec39cab
AC
11536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537 (eval $ac_try) 2>&5
11538 ac_status=$?
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; } &&
11541 { ac_try='test -s conftest.$ac_objext'
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11544 ac_status=$?
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; }; then
11547 ac_cv_header_stdc=yes
c906108c 11548else
bec39cab
AC
11549 echo "$as_me: failed program was:" >&5
11550sed 's/^/| /' conftest.$ac_ext >&5
c906108c 11551
b4e70030 11552ac_cv_header_stdc=no
c906108c 11553fi
bec39cab 11554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11555
bec39cab
AC
11556if test $ac_cv_header_stdc = yes; then
11557 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11558 cat >conftest.$ac_ext <<_ACEOF
11559/* confdefs.h. */
11560_ACEOF
11561cat confdefs.h >>conftest.$ac_ext
11562cat >>conftest.$ac_ext <<_ACEOF
11563/* end confdefs.h. */
11564#include <string.h>
c906108c 11565
bec39cab
AC
11566_ACEOF
11567if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11568 $EGREP "memchr" >/dev/null 2>&1; then
11569 :
8bb2c122 11570else
bec39cab 11571 ac_cv_header_stdc=no
8bb2c122 11572fi
bec39cab
AC
11573rm -f conftest*
11574
c906108c
SS
11575fi
11576
bec39cab
AC
11577if test $ac_cv_header_stdc = yes; then
11578 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11579 cat >conftest.$ac_ext <<_ACEOF
11580/* confdefs.h. */
11581_ACEOF
11582cat confdefs.h >>conftest.$ac_ext
11583cat >>conftest.$ac_ext <<_ACEOF
11584/* end confdefs.h. */
11585#include <stdlib.h>
11586
11587_ACEOF
11588if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11589 $EGREP "free" >/dev/null 2>&1; then
11590 :
c906108c 11591else
bec39cab 11592 ac_cv_header_stdc=no
c906108c 11593fi
bec39cab
AC
11594rm -f conftest*
11595
c906108c
SS
11596fi
11597
bec39cab
AC
11598if test $ac_cv_header_stdc = yes; then
11599 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11600 if test "$cross_compiling" = yes; then
11601 :
c906108c 11602else
bec39cab
AC
11603 cat >conftest.$ac_ext <<_ACEOF
11604/* confdefs.h. */
11605_ACEOF
11606cat confdefs.h >>conftest.$ac_ext
11607cat >>conftest.$ac_ext <<_ACEOF
11608/* end confdefs.h. */
11609#include <ctype.h>
11610#if ((' ' & 0x0FF) == 0x020)
11611# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11612# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11613#else
11614# define ISLOWER(c) \
11615 (('a' <= (c) && (c) <= 'i') \
11616 || ('j' <= (c) && (c) <= 'r') \
11617 || ('s' <= (c) && (c) <= 'z'))
11618# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11619#endif
11620
11621#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11622int
11623main ()
11624{
11625 int i;
11626 for (i = 0; i < 256; i++)
11627 if (XOR (islower (i), ISLOWER (i))
11628 || toupper (i) != TOUPPER (i))
b4e70030
JB
11629 exit(2);
11630 exit (0);
bec39cab
AC
11631}
11632_ACEOF
11633rm -f conftest$ac_exeext
11634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11635 (eval $ac_link) 2>&5
11636 ac_status=$?
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11641 ac_status=$?
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; }; then
11644 :
11645else
11646 echo "$as_me: program exited with status $ac_status" >&5
11647echo "$as_me: failed program was:" >&5
11648sed 's/^/| /' conftest.$ac_ext >&5
11649
11650( exit $ac_status )
11651ac_cv_header_stdc=no
c906108c 11652fi
b4e70030 11653rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 11654fi
c906108c 11655fi
bec39cab 11656fi
b4e70030
JB
11657echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11658echo "${ECHO_T}$ac_cv_header_stdc" >&6
bec39cab 11659if test $ac_cv_header_stdc = yes; then
c906108c 11660
bec39cab
AC
11661cat >>confdefs.h <<\_ACEOF
11662#define STDC_HEADERS 1
11663_ACEOF
c906108c 11664
bec39cab 11665fi
8bb2c122 11666
bec39cab 11667
7cb9022a 11668for ac_header in nlist.h
bec39cab
AC
11669do
11670as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11671if eval "test \"\${$as_ac_Header+set}\" = set"; then
11672 echo "$as_me:$LINENO: checking for $ac_header" >&5
11673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11674if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11676fi
b4e70030
JB
11677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11678echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11679else
11680 # Is the header compilable?
b4e70030
JB
11681echo "$as_me:$LINENO: checking $ac_header usability" >&5
11682echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11683cat >conftest.$ac_ext <<_ACEOF
11684/* confdefs.h. */
11685_ACEOF
11686cat confdefs.h >>conftest.$ac_ext
11687cat >>conftest.$ac_ext <<_ACEOF
11688/* end confdefs.h. */
11689$ac_includes_default
11690#include <$ac_header>
11691_ACEOF
11692rm -f conftest.$ac_objext
11693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11694 (eval $ac_compile) 2>conftest.er1
11695 ac_status=$?
11696 grep -v '^ *+' conftest.er1 >conftest.err
11697 rm -f conftest.er1
11698 cat conftest.err >&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } &&
b4e70030
JB
11701 { ac_try='test -z "$ac_c_werror_flag"
11702 || test ! -s conftest.err'
bec39cab
AC
11703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11704 (eval $ac_try) 2>&5
11705 ac_status=$?
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); }; } &&
11708 { ac_try='test -s conftest.$ac_objext'
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11711 ac_status=$?
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; }; then
11714 ac_header_compiler=yes
11715else
11716 echo "$as_me: failed program was:" >&5
11717sed 's/^/| /' conftest.$ac_ext >&5
11718
b4e70030 11719ac_header_compiler=no
bec39cab
AC
11720fi
11721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11722echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11723echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11724
11725# Is the header present?
b4e70030
JB
11726echo "$as_me:$LINENO: checking $ac_header presence" >&5
11727echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11728cat >conftest.$ac_ext <<_ACEOF
11729/* confdefs.h. */
11730_ACEOF
11731cat confdefs.h >>conftest.$ac_ext
11732cat >>conftest.$ac_ext <<_ACEOF
11733/* end confdefs.h. */
11734#include <$ac_header>
11735_ACEOF
11736if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11738 ac_status=$?
11739 grep -v '^ *+' conftest.er1 >conftest.err
11740 rm -f conftest.er1
11741 cat conftest.err >&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } >/dev/null; then
11744 if test -s conftest.err; then
11745 ac_cpp_err=$ac_c_preproc_warn_flag
11746 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11747 else
11748 ac_cpp_err=
11749 fi
c906108c 11750else
bec39cab 11751 ac_cpp_err=yes
c906108c 11752fi
bec39cab
AC
11753if test -z "$ac_cpp_err"; then
11754 ac_header_preproc=yes
c906108c 11755else
bec39cab
AC
11756 echo "$as_me: failed program was:" >&5
11757sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 11758
bec39cab
AC
11759 ac_header_preproc=no
11760fi
11761rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11762echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11763echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 11764
bec39cab
AC
11765# So? What about this header?
11766case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11767 yes:no: )
11768 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11769echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11771echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11772 ac_header_preproc=yes
11773 ;;
11774 no:yes:* )
11775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11776echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11778echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11779 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11780echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11781 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11782echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11784echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11785 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11786echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11787 (
11788 cat <<\_ASBOX
11789## ------------------------------------------ ##
11790## Report this to the AC_PACKAGE_NAME lists. ##
11791## ------------------------------------------ ##
11792_ASBOX
11793 ) |
11794 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11795 ;;
11796esac
b4e70030
JB
11797echo "$as_me:$LINENO: checking for $ac_header" >&5
11798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11799if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11800 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 11801else
bec39cab 11802 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 11803fi
b4e70030
JB
11804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11805echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11806
95ca63c4 11807fi
bec39cab
AC
11808if test `eval echo '${'$as_ac_Header'}'` = yes; then
11809 cat >>confdefs.h <<_ACEOF
11810#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11811_ACEOF
11812
95ca63c4
CF
11813fi
11814
bec39cab 11815done
95ca63c4
CF
11816
11817
7cb9022a 11818for ac_header in link.h
bec39cab
AC
11819do
11820as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11821echo "$as_me:$LINENO: checking for $ac_header" >&5
11822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11823if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11824 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 11825else
7cb9022a 11826 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11827/* confdefs.h. */
11828_ACEOF
11829cat confdefs.h >>conftest.$ac_ext
11830cat >>conftest.$ac_ext <<_ACEOF
11831/* end confdefs.h. */
7cb9022a
MK
11832#if HAVE_SYS_TYPES_H
11833# include <sys/types.h>
11834#endif
11835#if HAVE_NLIST_H
11836# include <nlist.h>
11837#endif
11838
11839
bec39cab
AC
11840#include <$ac_header>
11841_ACEOF
11842rm -f conftest.$ac_objext
11843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11844 (eval $ac_compile) 2>conftest.er1
11845 ac_status=$?
11846 grep -v '^ *+' conftest.er1 >conftest.err
11847 rm -f conftest.er1
11848 cat conftest.err >&5
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); } &&
b4e70030
JB
11851 { ac_try='test -z "$ac_c_werror_flag"
11852 || test ! -s conftest.err'
bec39cab
AC
11853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854 (eval $ac_try) 2>&5
11855 ac_status=$?
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; } &&
11858 { ac_try='test -s conftest.$ac_objext'
11859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860 (eval $ac_try) 2>&5
11861 ac_status=$?
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); }; }; then
7cb9022a 11864 eval "$as_ac_Header=yes"
bec39cab
AC
11865else
11866 echo "$as_me: failed program was:" >&5
11867sed 's/^/| /' conftest.$ac_ext >&5
11868
b4e70030 11869eval "$as_ac_Header=no"
bec39cab
AC
11870fi
11871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 11872fi
b4e70030
JB
11873echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11874echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11875if test `eval echo '${'$as_ac_Header'}'` = yes; then
11876 cat >>confdefs.h <<_ACEOF
11877#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11878_ACEOF
95ca63c4 11879
bec39cab 11880fi
95ca63c4 11881
bec39cab 11882done
95ca63c4 11883
c906108c 11884
7cb9022a 11885for ac_header in machine/reg.h
bec39cab
AC
11886do
11887as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11888if eval "test \"\${$as_ac_Header+set}\" = set"; then
11889 echo "$as_me:$LINENO: checking for $ac_header" >&5
11890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11891if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11893fi
b4e70030
JB
11894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11895echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11896else
11897 # Is the header compilable?
b4e70030
JB
11898echo "$as_me:$LINENO: checking $ac_header usability" >&5
11899echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11900cat >conftest.$ac_ext <<_ACEOF
11901/* confdefs.h. */
11902_ACEOF
11903cat confdefs.h >>conftest.$ac_ext
11904cat >>conftest.$ac_ext <<_ACEOF
11905/* end confdefs.h. */
11906$ac_includes_default
11907#include <$ac_header>
11908_ACEOF
11909rm -f conftest.$ac_objext
11910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11911 (eval $ac_compile) 2>conftest.er1
11912 ac_status=$?
11913 grep -v '^ *+' conftest.er1 >conftest.err
11914 rm -f conftest.er1
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
b4e70030
JB
11918 { ac_try='test -z "$ac_c_werror_flag"
11919 || test ! -s conftest.err'
bec39cab
AC
11920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921 (eval $ac_try) 2>&5
11922 ac_status=$?
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; } &&
11925 { ac_try='test -s conftest.$ac_objext'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11928 ac_status=$?
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; }; then
11931 ac_header_compiler=yes
11932else
11933 echo "$as_me: failed program was:" >&5
11934sed 's/^/| /' conftest.$ac_ext >&5
11935
b4e70030 11936ac_header_compiler=no
bec39cab
AC
11937fi
11938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11939echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11940echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11941
11942# Is the header present?
b4e70030
JB
11943echo "$as_me:$LINENO: checking $ac_header presence" >&5
11944echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11945cat >conftest.$ac_ext <<_ACEOF
11946/* confdefs.h. */
11947_ACEOF
11948cat confdefs.h >>conftest.$ac_ext
11949cat >>conftest.$ac_ext <<_ACEOF
11950/* end confdefs.h. */
11951#include <$ac_header>
11952_ACEOF
11953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11955 ac_status=$?
11956 grep -v '^ *+' conftest.er1 >conftest.err
11957 rm -f conftest.er1
11958 cat conftest.err >&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } >/dev/null; then
11961 if test -s conftest.err; then
11962 ac_cpp_err=$ac_c_preproc_warn_flag
11963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11964 else
11965 ac_cpp_err=
11966 fi
75c6e08a 11967else
bec39cab 11968 ac_cpp_err=yes
75c6e08a 11969fi
bec39cab
AC
11970if test -z "$ac_cpp_err"; then
11971 ac_header_preproc=yes
11972else
11973 echo "$as_me: failed program was:" >&5
11974sed 's/^/| /' conftest.$ac_ext >&5
11975
11976 ac_header_preproc=no
75c6e08a 11977fi
bec39cab 11978rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11979echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11980echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
11981
11982# So? What about this header?
11983case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11984 yes:no: )
11985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11986echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11988echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11989 ac_header_preproc=yes
11990 ;;
11991 no:yes:* )
11992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11993echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11995echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11997echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11999echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12001echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12003echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12004 (
12005 cat <<\_ASBOX
12006## ------------------------------------------ ##
12007## Report this to the AC_PACKAGE_NAME lists. ##
12008## ------------------------------------------ ##
12009_ASBOX
12010 ) |
12011 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12012 ;;
12013esac
b4e70030
JB
12014echo "$as_me:$LINENO: checking for $ac_header" >&5
12015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12016if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12017 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 12018else
bec39cab
AC
12019 eval "$as_ac_Header=\$ac_header_preproc"
12020fi
b4e70030
JB
12021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12022echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12023
75c6e08a 12024fi
bec39cab
AC
12025if test `eval echo '${'$as_ac_Header'}'` = yes; then
12026 cat >>confdefs.h <<_ACEOF
12027#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12028_ACEOF
75c6e08a 12029
bec39cab 12030fi
75c6e08a 12031
bec39cab 12032done
75c6e08a
MK
12033
12034
9a156167 12035
bec39cab
AC
12036for ac_header in poll.h sys/poll.h
12037do
12038as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12039if eval "test \"\${$as_ac_Header+set}\" = set"; then
12040 echo "$as_me:$LINENO: checking for $ac_header" >&5
12041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12042if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12044fi
b4e70030
JB
12045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12046echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12047else
12048 # Is the header compilable?
b4e70030
JB
12049echo "$as_me:$LINENO: checking $ac_header usability" >&5
12050echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12051cat >conftest.$ac_ext <<_ACEOF
12052/* confdefs.h. */
12053_ACEOF
12054cat confdefs.h >>conftest.$ac_ext
12055cat >>conftest.$ac_ext <<_ACEOF
12056/* end confdefs.h. */
12057$ac_includes_default
12058#include <$ac_header>
12059_ACEOF
12060rm -f conftest.$ac_objext
12061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12062 (eval $ac_compile) 2>conftest.er1
12063 ac_status=$?
12064 grep -v '^ *+' conftest.er1 >conftest.err
12065 rm -f conftest.er1
12066 cat conftest.err >&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } &&
b4e70030
JB
12069 { ac_try='test -z "$ac_c_werror_flag"
12070 || test ! -s conftest.err'
bec39cab
AC
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; } &&
12076 { ac_try='test -s conftest.$ac_objext'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 ac_header_compiler=yes
12083else
12084 echo "$as_me: failed program was:" >&5
12085sed 's/^/| /' conftest.$ac_ext >&5
12086
b4e70030 12087ac_header_compiler=no
bec39cab
AC
12088fi
12089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12090echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12091echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12092
12093# Is the header present?
b4e70030
JB
12094echo "$as_me:$LINENO: checking $ac_header presence" >&5
12095echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12096cat >conftest.$ac_ext <<_ACEOF
12097/* confdefs.h. */
12098_ACEOF
12099cat confdefs.h >>conftest.$ac_ext
12100cat >>conftest.$ac_ext <<_ACEOF
12101/* end confdefs.h. */
12102#include <$ac_header>
12103_ACEOF
12104if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12106 ac_status=$?
12107 grep -v '^ *+' conftest.er1 >conftest.err
12108 rm -f conftest.er1
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } >/dev/null; then
12112 if test -s conftest.err; then
12113 ac_cpp_err=$ac_c_preproc_warn_flag
12114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12115 else
12116 ac_cpp_err=
12117 fi
9a156167 12118else
bec39cab 12119 ac_cpp_err=yes
9a156167 12120fi
bec39cab
AC
12121if test -z "$ac_cpp_err"; then
12122 ac_header_preproc=yes
12123else
12124 echo "$as_me: failed program was:" >&5
12125sed 's/^/| /' conftest.$ac_ext >&5
9a156167 12126
bec39cab 12127 ac_header_preproc=no
9a156167 12128fi
bec39cab 12129rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12130echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12131echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 12132
bec39cab
AC
12133# So? What about this header?
12134case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12135 yes:no: )
12136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12137echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12139echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12140 ac_header_preproc=yes
12141 ;;
12142 no:yes:* )
12143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12144echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12146echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12147 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12148echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12149 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12150echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12152echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12153 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12154echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12155 (
12156 cat <<\_ASBOX
12157## ------------------------------------------ ##
12158## Report this to the AC_PACKAGE_NAME lists. ##
12159## ------------------------------------------ ##
12160_ASBOX
12161 ) |
12162 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12163 ;;
12164esac
b4e70030
JB
12165echo "$as_me:$LINENO: checking for $ac_header" >&5
12166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12167if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12168 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 12169else
bec39cab 12170 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 12171fi
b4e70030
JB
12172echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12173echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 12174
bec39cab
AC
12175fi
12176if test `eval echo '${'$as_ac_Header'}'` = yes; then
12177 cat >>confdefs.h <<_ACEOF
12178#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12179_ACEOF
9a156167 12180
bec39cab 12181fi
9a156167 12182
bec39cab 12183done
9a156167 12184
9a156167 12185
9a156167 12186
bec39cab
AC
12187
12188for ac_header in proc_service.h thread_db.h gnu/libc-version.h
12189do
12190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12191if eval "test \"\${$as_ac_Header+set}\" = set"; then
12192 echo "$as_me:$LINENO: checking for $ac_header" >&5
12193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12194if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12196fi
b4e70030
JB
12197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12199else
12200 # Is the header compilable?
b4e70030
JB
12201echo "$as_me:$LINENO: checking $ac_header usability" >&5
12202echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12203cat >conftest.$ac_ext <<_ACEOF
12204/* confdefs.h. */
12205_ACEOF
12206cat confdefs.h >>conftest.$ac_ext
12207cat >>conftest.$ac_ext <<_ACEOF
436868fb
DP
12208/* end confdefs.h. */
12209$ac_includes_default
12210#include <$ac_header>
12211_ACEOF
12212rm -f conftest.$ac_objext
12213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12214 (eval $ac_compile) 2>conftest.er1
12215 ac_status=$?
12216 grep -v '^ *+' conftest.er1 >conftest.err
12217 rm -f conftest.er1
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } &&
12221 { ac_try='test -z "$ac_c_werror_flag"
12222 || test ! -s conftest.err'
12223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224 (eval $ac_try) 2>&5
12225 ac_status=$?
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; } &&
12228 { ac_try='test -s conftest.$ac_objext'
12229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230 (eval $ac_try) 2>&5
12231 ac_status=$?
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
12234 ac_header_compiler=yes
12235else
12236 echo "$as_me: failed program was:" >&5
12237sed 's/^/| /' conftest.$ac_ext >&5
12238
12239ac_header_compiler=no
12240fi
12241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12242echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12243echo "${ECHO_T}$ac_header_compiler" >&6
12244
12245# Is the header present?
12246echo "$as_me:$LINENO: checking $ac_header presence" >&5
12247echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12248cat >conftest.$ac_ext <<_ACEOF
12249/* confdefs.h. */
12250_ACEOF
12251cat confdefs.h >>conftest.$ac_ext
12252cat >>conftest.$ac_ext <<_ACEOF
12253/* end confdefs.h. */
12254#include <$ac_header>
12255_ACEOF
12256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12258 ac_status=$?
12259 grep -v '^ *+' conftest.er1 >conftest.err
12260 rm -f conftest.er1
12261 cat conftest.err >&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } >/dev/null; then
12264 if test -s conftest.err; then
12265 ac_cpp_err=$ac_c_preproc_warn_flag
12266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12267 else
12268 ac_cpp_err=
12269 fi
12270else
12271 ac_cpp_err=yes
12272fi
12273if test -z "$ac_cpp_err"; then
12274 ac_header_preproc=yes
12275else
12276 echo "$as_me: failed program was:" >&5
12277sed 's/^/| /' conftest.$ac_ext >&5
12278
12279 ac_header_preproc=no
12280fi
12281rm -f conftest.err conftest.$ac_ext
12282echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12283echo "${ECHO_T}$ac_header_preproc" >&6
12284
12285# So? What about this header?
12286case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12287 yes:no: )
12288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12289echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12291echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12292 ac_header_preproc=yes
12293 ;;
12294 no:yes:* )
12295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12296echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12298echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12300echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12302echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12304echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12306echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12307 (
12308 cat <<\_ASBOX
12309## ------------------------------------------ ##
12310## Report this to the AC_PACKAGE_NAME lists. ##
12311## ------------------------------------------ ##
12312_ASBOX
12313 ) |
12314 sed "s/^/$as_me: WARNING: /" >&2
12315 ;;
12316esac
12317echo "$as_me:$LINENO: checking for $ac_header" >&5
12318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12319if eval "test \"\${$as_ac_Header+set}\" = set"; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
12321else
12322 eval "$as_ac_Header=\$ac_header_preproc"
12323fi
12324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12325echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12326
12327fi
12328if test `eval echo '${'$as_ac_Header'}'` = yes; then
12329 cat >>confdefs.h <<_ACEOF
12330#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12331_ACEOF
12332
12333fi
12334
12335done
12336
12337
12338for ac_header in signal.h
12339do
12340as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12341if eval "test \"\${$as_ac_Header+set}\" = set"; then
12342 echo "$as_me:$LINENO: checking for $ac_header" >&5
12343echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12344if eval "test \"\${$as_ac_Header+set}\" = set"; then
12345 echo $ECHO_N "(cached) $ECHO_C" >&6
12346fi
12347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12348echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12349else
12350 # Is the header compilable?
12351echo "$as_me:$LINENO: checking $ac_header usability" >&5
12352echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12353cat >conftest.$ac_ext <<_ACEOF
12354/* confdefs.h. */
12355_ACEOF
12356cat confdefs.h >>conftest.$ac_ext
12357cat >>conftest.$ac_ext <<_ACEOF
bec39cab
AC
12358/* end confdefs.h. */
12359$ac_includes_default
12360#include <$ac_header>
12361_ACEOF
12362rm -f conftest.$ac_objext
12363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12364 (eval $ac_compile) 2>conftest.er1
12365 ac_status=$?
12366 grep -v '^ *+' conftest.er1 >conftest.err
12367 rm -f conftest.er1
12368 cat conftest.err >&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } &&
b4e70030
JB
12371 { ac_try='test -z "$ac_c_werror_flag"
12372 || test ! -s conftest.err'
bec39cab
AC
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12375 ac_status=$?
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; } &&
12378 { ac_try='test -s conftest.$ac_objext'
12379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380 (eval $ac_try) 2>&5
12381 ac_status=$?
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; }; then
12384 ac_header_compiler=yes
12385else
12386 echo "$as_me: failed program was:" >&5
12387sed 's/^/| /' conftest.$ac_ext >&5
12388
b4e70030 12389ac_header_compiler=no
bec39cab
AC
12390fi
12391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12392echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12393echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12394
12395# Is the header present?
b4e70030
JB
12396echo "$as_me:$LINENO: checking $ac_header presence" >&5
12397echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12398cat >conftest.$ac_ext <<_ACEOF
12399/* confdefs.h. */
12400_ACEOF
12401cat confdefs.h >>conftest.$ac_ext
12402cat >>conftest.$ac_ext <<_ACEOF
12403/* end confdefs.h. */
12404#include <$ac_header>
12405_ACEOF
12406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12408 ac_status=$?
12409 grep -v '^ *+' conftest.er1 >conftest.err
12410 rm -f conftest.er1
12411 cat conftest.err >&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); } >/dev/null; then
12414 if test -s conftest.err; then
12415 ac_cpp_err=$ac_c_preproc_warn_flag
12416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12417 else
12418 ac_cpp_err=
12419 fi
9a156167 12420else
bec39cab 12421 ac_cpp_err=yes
9a156167 12422fi
bec39cab
AC
12423if test -z "$ac_cpp_err"; then
12424 ac_header_preproc=yes
12425else
12426 echo "$as_me: failed program was:" >&5
12427sed 's/^/| /' conftest.$ac_ext >&5
9a156167 12428
bec39cab 12429 ac_header_preproc=no
9a156167 12430fi
bec39cab 12431rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12432echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12433echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 12434
bec39cab
AC
12435# So? What about this header?
12436case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12437 yes:no: )
12438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12439echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12441echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12442 ac_header_preproc=yes
12443 ;;
12444 no:yes:* )
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12446echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12448echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12450echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12452echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12454echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12456echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12457 (
12458 cat <<\_ASBOX
12459## ------------------------------------------ ##
12460## Report this to the AC_PACKAGE_NAME lists. ##
12461## ------------------------------------------ ##
12462_ASBOX
12463 ) |
12464 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12465 ;;
12466esac
b4e70030
JB
12467echo "$as_me:$LINENO: checking for $ac_header" >&5
12468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12469if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12470 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 12471else
bec39cab 12472 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 12473fi
b4e70030
JB
12474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12475echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
12476
12477fi
bec39cab
AC
12478if test `eval echo '${'$as_ac_Header'}'` = yes; then
12479 cat >>confdefs.h <<_ACEOF
12480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12481_ACEOF
9a156167 12482
bec39cab
AC
12483fi
12484
12485done
9a156167 12486
c890192f 12487
bec39cab
AC
12488for ac_header in stddef.h
12489do
12490as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12491if eval "test \"\${$as_ac_Header+set}\" = set"; then
12492 echo "$as_me:$LINENO: checking for $ac_header" >&5
12493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12494if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
12496fi
b4e70030
JB
12497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12498echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12499else
12500 # Is the header compilable?
b4e70030
JB
12501echo "$as_me:$LINENO: checking $ac_header usability" >&5
12502echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12503cat >conftest.$ac_ext <<_ACEOF
12504/* confdefs.h. */
12505_ACEOF
12506cat confdefs.h >>conftest.$ac_ext
12507cat >>conftest.$ac_ext <<_ACEOF
12508/* end confdefs.h. */
12509$ac_includes_default
12510#include <$ac_header>
12511_ACEOF
12512rm -f conftest.$ac_objext
12513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12514 (eval $ac_compile) 2>conftest.er1
12515 ac_status=$?
12516 grep -v '^ *+' conftest.er1 >conftest.err
12517 rm -f conftest.er1
12518 cat conftest.err >&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } &&
b4e70030
JB
12521 { ac_try='test -z "$ac_c_werror_flag"
12522 || test ! -s conftest.err'
bec39cab
AC
12523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12525 ac_status=$?
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; } &&
12528 { ac_try='test -s conftest.$ac_objext'
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12531 ac_status=$?
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; }; then
12534 ac_header_compiler=yes
12535else
12536 echo "$as_me: failed program was:" >&5
12537sed 's/^/| /' conftest.$ac_ext >&5
12538
b4e70030 12539ac_header_compiler=no
bec39cab
AC
12540fi
12541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12542echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12543echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12544
12545# Is the header present?
b4e70030
JB
12546echo "$as_me:$LINENO: checking $ac_header presence" >&5
12547echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12548cat >conftest.$ac_ext <<_ACEOF
12549/* confdefs.h. */
12550_ACEOF
12551cat confdefs.h >>conftest.$ac_ext
12552cat >>conftest.$ac_ext <<_ACEOF
12553/* end confdefs.h. */
12554#include <$ac_header>
12555_ACEOF
12556if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12558 ac_status=$?
12559 grep -v '^ *+' conftest.er1 >conftest.err
12560 rm -f conftest.er1
12561 cat conftest.err >&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); } >/dev/null; then
12564 if test -s conftest.err; then
12565 ac_cpp_err=$ac_c_preproc_warn_flag
12566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12567 else
12568 ac_cpp_err=
12569 fi
c890192f 12570else
bec39cab
AC
12571 ac_cpp_err=yes
12572fi
12573if test -z "$ac_cpp_err"; then
12574 ac_header_preproc=yes
c890192f 12575else
bec39cab
AC
12576 echo "$as_me: failed program was:" >&5
12577sed 's/^/| /' conftest.$ac_ext >&5
12578
12579 ac_header_preproc=no
c890192f 12580fi
bec39cab 12581rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12582echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12583echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12584
12585# So? What about this header?
12586case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12587 yes:no: )
12588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12589echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12591echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12592 ac_header_preproc=yes
12593 ;;
12594 no:yes:* )
12595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12596echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12598echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12600echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12602echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12604echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12606echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12607 (
12608 cat <<\_ASBOX
12609## ------------------------------------------ ##
12610## Report this to the AC_PACKAGE_NAME lists. ##
12611## ------------------------------------------ ##
12612_ASBOX
12613 ) |
12614 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12615 ;;
12616esac
b4e70030
JB
12617echo "$as_me:$LINENO: checking for $ac_header" >&5
12618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12619if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12620 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 12621else
bec39cab 12622 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 12623fi
b4e70030
JB
12624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12625echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12626
c890192f 12627fi
bec39cab
AC
12628if test `eval echo '${'$as_ac_Header'}'` = yes; then
12629 cat >>confdefs.h <<_ACEOF
12630#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12631_ACEOF
c890192f 12632
c890192f
MK
12633fi
12634
bec39cab 12635done
9a156167 12636
bec39cab
AC
12637
12638for ac_header in stdlib.h
12639do
12640as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12641if eval "test \"\${$as_ac_Header+set}\" = set"; then
12642 echo "$as_me:$LINENO: checking for $ac_header" >&5
12643echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12644if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12646fi
b4e70030
JB
12647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12648echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12649else
12650 # Is the header compilable?
b4e70030
JB
12651echo "$as_me:$LINENO: checking $ac_header usability" >&5
12652echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12653cat >conftest.$ac_ext <<_ACEOF
12654/* confdefs.h. */
12655_ACEOF
12656cat confdefs.h >>conftest.$ac_ext
12657cat >>conftest.$ac_ext <<_ACEOF
12658/* end confdefs.h. */
12659$ac_includes_default
12660#include <$ac_header>
12661_ACEOF
12662rm -f conftest.$ac_objext
12663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12664 (eval $ac_compile) 2>conftest.er1
12665 ac_status=$?
12666 grep -v '^ *+' conftest.er1 >conftest.err
12667 rm -f conftest.er1
12668 cat conftest.err >&5
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); } &&
b4e70030
JB
12671 { ac_try='test -z "$ac_c_werror_flag"
12672 || test ! -s conftest.err'
bec39cab
AC
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; } &&
12678 { ac_try='test -s conftest.$ac_objext'
12679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12680 (eval $ac_try) 2>&5
12681 ac_status=$?
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; }; then
12684 ac_header_compiler=yes
12685else
12686 echo "$as_me: failed program was:" >&5
12687sed 's/^/| /' conftest.$ac_ext >&5
12688
b4e70030 12689ac_header_compiler=no
bec39cab
AC
12690fi
12691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12692echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12693echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12694
12695# Is the header present?
b4e70030
JB
12696echo "$as_me:$LINENO: checking $ac_header presence" >&5
12697echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12698cat >conftest.$ac_ext <<_ACEOF
12699/* confdefs.h. */
12700_ACEOF
12701cat confdefs.h >>conftest.$ac_ext
12702cat >>conftest.$ac_ext <<_ACEOF
12703/* end confdefs.h. */
12704#include <$ac_header>
12705_ACEOF
12706if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12708 ac_status=$?
12709 grep -v '^ *+' conftest.er1 >conftest.err
12710 rm -f conftest.er1
12711 cat conftest.err >&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); } >/dev/null; then
12714 if test -s conftest.err; then
12715 ac_cpp_err=$ac_c_preproc_warn_flag
12716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12717 else
12718 ac_cpp_err=
12719 fi
9a156167 12720else
bec39cab
AC
12721 ac_cpp_err=yes
12722fi
12723if test -z "$ac_cpp_err"; then
12724 ac_header_preproc=yes
9a156167 12725else
bec39cab
AC
12726 echo "$as_me: failed program was:" >&5
12727sed 's/^/| /' conftest.$ac_ext >&5
12728
12729 ac_header_preproc=no
9a156167 12730fi
bec39cab 12731rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12732echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12733echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12734
12735# So? What about this header?
12736case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12737 yes:no: )
12738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12739echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12741echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12742 ac_header_preproc=yes
12743 ;;
12744 no:yes:* )
12745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12746echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12748echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12750echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12752echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12754echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12756echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12757 (
12758 cat <<\_ASBOX
12759## ------------------------------------------ ##
12760## Report this to the AC_PACKAGE_NAME lists. ##
12761## ------------------------------------------ ##
12762_ASBOX
12763 ) |
12764 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12765 ;;
12766esac
b4e70030
JB
12767echo "$as_me:$LINENO: checking for $ac_header" >&5
12768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12769if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12770 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 12771else
bec39cab 12772 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 12773fi
b4e70030
JB
12774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12775echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12776
9a156167 12777fi
bec39cab
AC
12778if test `eval echo '${'$as_ac_Header'}'` = yes; then
12779 cat >>confdefs.h <<_ACEOF
12780#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12781_ACEOF
9a156167 12782
9a156167
MK
12783fi
12784
bec39cab
AC
12785done
12786
06825bd1 12787
bec39cab
AC
12788for ac_header in stdint.h
12789do
12790as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12791if eval "test \"\${$as_ac_Header+set}\" = set"; then
12792 echo "$as_me:$LINENO: checking for $ac_header" >&5
12793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12794if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12796fi
b4e70030
JB
12797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12798echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12799else
12800 # Is the header compilable?
b4e70030
JB
12801echo "$as_me:$LINENO: checking $ac_header usability" >&5
12802echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12803cat >conftest.$ac_ext <<_ACEOF
12804/* confdefs.h. */
12805_ACEOF
12806cat confdefs.h >>conftest.$ac_ext
12807cat >>conftest.$ac_ext <<_ACEOF
12808/* end confdefs.h. */
12809$ac_includes_default
12810#include <$ac_header>
12811_ACEOF
12812rm -f conftest.$ac_objext
12813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12814 (eval $ac_compile) 2>conftest.er1
12815 ac_status=$?
12816 grep -v '^ *+' conftest.er1 >conftest.err
12817 rm -f conftest.er1
12818 cat conftest.err >&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); } &&
b4e70030
JB
12821 { ac_try='test -z "$ac_c_werror_flag"
12822 || test ! -s conftest.err'
bec39cab
AC
12823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824 (eval $ac_try) 2>&5
12825 ac_status=$?
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); }; } &&
12828 { ac_try='test -s conftest.$ac_objext'
12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830 (eval $ac_try) 2>&5
12831 ac_status=$?
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); }; }; then
12834 ac_header_compiler=yes
12835else
12836 echo "$as_me: failed program was:" >&5
12837sed 's/^/| /' conftest.$ac_ext >&5
12838
b4e70030 12839ac_header_compiler=no
bec39cab
AC
12840fi
12841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12842echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12843echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12844
12845# Is the header present?
b4e70030
JB
12846echo "$as_me:$LINENO: checking $ac_header presence" >&5
12847echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12848cat >conftest.$ac_ext <<_ACEOF
12849/* confdefs.h. */
12850_ACEOF
12851cat confdefs.h >>conftest.$ac_ext
12852cat >>conftest.$ac_ext <<_ACEOF
12853/* end confdefs.h. */
12854#include <$ac_header>
12855_ACEOF
12856if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12858 ac_status=$?
12859 grep -v '^ *+' conftest.er1 >conftest.err
12860 rm -f conftest.er1
12861 cat conftest.err >&5
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); } >/dev/null; then
12864 if test -s conftest.err; then
12865 ac_cpp_err=$ac_c_preproc_warn_flag
12866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12867 else
12868 ac_cpp_err=
12869 fi
06825bd1 12870else
bec39cab
AC
12871 ac_cpp_err=yes
12872fi
12873if test -z "$ac_cpp_err"; then
12874 ac_header_preproc=yes
06825bd1 12875else
bec39cab
AC
12876 echo "$as_me: failed program was:" >&5
12877sed 's/^/| /' conftest.$ac_ext >&5
12878
12879 ac_header_preproc=no
06825bd1 12880fi
bec39cab 12881rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12882echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12883echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12884
12885# So? What about this header?
12886case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12887 yes:no: )
12888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12889echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12891echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12892 ac_header_preproc=yes
12893 ;;
12894 no:yes:* )
12895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12896echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12898echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12899 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12900echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12901 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12902echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12904echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12905 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12906echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12907 (
12908 cat <<\_ASBOX
12909## ------------------------------------------ ##
12910## Report this to the AC_PACKAGE_NAME lists. ##
12911## ------------------------------------------ ##
12912_ASBOX
12913 ) |
12914 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12915 ;;
12916esac
b4e70030
JB
12917echo "$as_me:$LINENO: checking for $ac_header" >&5
12918echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12919if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12920 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 12921else
bec39cab 12922 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 12923fi
b4e70030
JB
12924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12925echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12926
06825bd1 12927fi
bec39cab
AC
12928if test `eval echo '${'$as_ac_Header'}'` = yes; then
12929 cat >>confdefs.h <<_ACEOF
12930#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12931_ACEOF
06825bd1 12932
06825bd1 12933fi
4f0be353 12934
bec39cab 12935done
4f0be353 12936
06825bd1 12937
06825bd1 12938
bec39cab
AC
12939
12940for ac_header in string.h memory.h strings.h
12941do
12942as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12943if eval "test \"\${$as_ac_Header+set}\" = set"; then
12944 echo "$as_me:$LINENO: checking for $ac_header" >&5
12945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12946if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12947 echo $ECHO_N "(cached) $ECHO_C" >&6
12948fi
b4e70030
JB
12949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12950echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12951else
12952 # Is the header compilable?
b4e70030
JB
12953echo "$as_me:$LINENO: checking $ac_header usability" >&5
12954echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12955cat >conftest.$ac_ext <<_ACEOF
12956/* confdefs.h. */
12957_ACEOF
12958cat confdefs.h >>conftest.$ac_ext
12959cat >>conftest.$ac_ext <<_ACEOF
12960/* end confdefs.h. */
12961$ac_includes_default
12962#include <$ac_header>
12963_ACEOF
12964rm -f conftest.$ac_objext
12965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12966 (eval $ac_compile) 2>conftest.er1
12967 ac_status=$?
12968 grep -v '^ *+' conftest.er1 >conftest.err
12969 rm -f conftest.er1
12970 cat conftest.err >&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); } &&
b4e70030
JB
12973 { ac_try='test -z "$ac_c_werror_flag"
12974 || test ! -s conftest.err'
bec39cab
AC
12975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12976 (eval $ac_try) 2>&5
12977 ac_status=$?
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); }; } &&
12980 { ac_try='test -s conftest.$ac_objext'
12981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982 (eval $ac_try) 2>&5
12983 ac_status=$?
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; }; then
12986 ac_header_compiler=yes
12987else
12988 echo "$as_me: failed program was:" >&5
12989sed 's/^/| /' conftest.$ac_ext >&5
12990
b4e70030 12991ac_header_compiler=no
bec39cab
AC
12992fi
12993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12994echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12995echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12996
12997# Is the header present?
b4e70030
JB
12998echo "$as_me:$LINENO: checking $ac_header presence" >&5
12999echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13000cat >conftest.$ac_ext <<_ACEOF
13001/* confdefs.h. */
13002_ACEOF
13003cat confdefs.h >>conftest.$ac_ext
13004cat >>conftest.$ac_ext <<_ACEOF
13005/* end confdefs.h. */
13006#include <$ac_header>
13007_ACEOF
13008if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13010 ac_status=$?
13011 grep -v '^ *+' conftest.er1 >conftest.err
13012 rm -f conftest.er1
13013 cat conftest.err >&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); } >/dev/null; then
13016 if test -s conftest.err; then
13017 ac_cpp_err=$ac_c_preproc_warn_flag
13018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13019 else
13020 ac_cpp_err=
13021 fi
06825bd1 13022else
bec39cab
AC
13023 ac_cpp_err=yes
13024fi
13025if test -z "$ac_cpp_err"; then
13026 ac_header_preproc=yes
06825bd1 13027else
bec39cab
AC
13028 echo "$as_me: failed program was:" >&5
13029sed 's/^/| /' conftest.$ac_ext >&5
13030
13031 ac_header_preproc=no
06825bd1 13032fi
bec39cab 13033rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13034echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13035echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
13036
13037# So? What about this header?
13038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13039 yes:no: )
13040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13041echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13043echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13044 ac_header_preproc=yes
13045 ;;
13046 no:yes:* )
13047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13048echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13050echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13052echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13054echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13056echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13058echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13059 (
13060 cat <<\_ASBOX
13061## ------------------------------------------ ##
13062## Report this to the AC_PACKAGE_NAME lists. ##
13063## ------------------------------------------ ##
13064_ASBOX
13065 ) |
13066 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13067 ;;
13068esac
b4e70030
JB
13069echo "$as_me:$LINENO: checking for $ac_header" >&5
13070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13071if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13072 echo $ECHO_N "(cached) $ECHO_C" >&6
13073else
13074 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 13075fi
b4e70030
JB
13076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13077echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 13078
06825bd1 13079fi
bec39cab
AC
13080if test `eval echo '${'$as_ac_Header'}'` = yes; then
13081 cat >>confdefs.h <<_ACEOF
13082#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13083_ACEOF
06825bd1 13084
06825bd1
MK
13085fi
13086
bec39cab 13087done
5ee754fc 13088
bec39cab
AC
13089
13090for ac_header in sys/fault.h
5ee754fc 13091do
bec39cab 13092as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13093if eval "test \"\${$as_ac_Header+set}\" = set"; then
13094 echo "$as_me:$LINENO: checking for $ac_header" >&5
13095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13096if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13098fi
b4e70030
JB
13099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13100echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13101else
13102 # Is the header compilable?
b4e70030
JB
13103echo "$as_me:$LINENO: checking $ac_header usability" >&5
13104echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13105cat >conftest.$ac_ext <<_ACEOF
13106/* confdefs.h. */
13107_ACEOF
13108cat confdefs.h >>conftest.$ac_ext
13109cat >>conftest.$ac_ext <<_ACEOF
13110/* end confdefs.h. */
13111$ac_includes_default
13112#include <$ac_header>
13113_ACEOF
13114rm -f conftest.$ac_objext
13115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13116 (eval $ac_compile) 2>conftest.er1
13117 ac_status=$?
13118 grep -v '^ *+' conftest.er1 >conftest.err
13119 rm -f conftest.er1
13120 cat conftest.err >&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } &&
b4e70030
JB
13123 { ac_try='test -z "$ac_c_werror_flag"
13124 || test ! -s conftest.err'
bec39cab
AC
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; } &&
13130 { ac_try='test -s conftest.$ac_objext'
13131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13133 ac_status=$?
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13136 ac_header_compiler=yes
13137else
13138 echo "$as_me: failed program was:" >&5
13139sed 's/^/| /' conftest.$ac_ext >&5
13140
b4e70030 13141ac_header_compiler=no
bec39cab
AC
13142fi
13143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13144echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13145echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13146
13147# Is the header present?
b4e70030
JB
13148echo "$as_me:$LINENO: checking $ac_header presence" >&5
13149echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13150cat >conftest.$ac_ext <<_ACEOF
13151/* confdefs.h. */
13152_ACEOF
13153cat confdefs.h >>conftest.$ac_ext
13154cat >>conftest.$ac_ext <<_ACEOF
13155/* end confdefs.h. */
13156#include <$ac_header>
13157_ACEOF
13158if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13160 ac_status=$?
13161 grep -v '^ *+' conftest.er1 >conftest.err
13162 rm -f conftest.er1
13163 cat conftest.err >&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); } >/dev/null; then
13166 if test -s conftest.err; then
13167 ac_cpp_err=$ac_c_preproc_warn_flag
13168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13169 else
13170 ac_cpp_err=
13171 fi
5ee754fc 13172else
bec39cab 13173 ac_cpp_err=yes
5ee754fc 13174fi
bec39cab
AC
13175if test -z "$ac_cpp_err"; then
13176 ac_header_preproc=yes
13177else
13178 echo "$as_me: failed program was:" >&5
13179sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13180
bec39cab 13181 ac_header_preproc=no
5ee754fc 13182fi
bec39cab 13183rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13184echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13185echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
13186
13187# So? What about this header?
13188case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13189 yes:no: )
13190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13191echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13193echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13194 ac_header_preproc=yes
13195 ;;
13196 no:yes:* )
13197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13198echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13200echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13202echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13204echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13206echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13208echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13209 (
13210 cat <<\_ASBOX
13211## ------------------------------------------ ##
13212## Report this to the AC_PACKAGE_NAME lists. ##
13213## ------------------------------------------ ##
13214_ASBOX
13215 ) |
13216 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13217 ;;
13218esac
b4e70030
JB
13219echo "$as_me:$LINENO: checking for $ac_header" >&5
13220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13221if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13222 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 13223else
bec39cab 13224 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 13225fi
b4e70030
JB
13226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 13228
5ee754fc 13229fi
bec39cab
AC
13230if test `eval echo '${'$as_ac_Header'}'` = yes; then
13231 cat >>confdefs.h <<_ACEOF
13232#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13233_ACEOF
c906108c 13234
5ee754fc 13235fi
bec39cab
AC
13236
13237done
13238
13239
13240for ac_header in sys/file.h
13241do
13242as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13243if eval "test \"\${$as_ac_Header+set}\" = set"; then
13244 echo "$as_me:$LINENO: checking for $ac_header" >&5
13245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13246if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13247 echo $ECHO_N "(cached) $ECHO_C" >&6
13248fi
b4e70030
JB
13249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13251else
13252 # Is the header compilable?
b4e70030
JB
13253echo "$as_me:$LINENO: checking $ac_header usability" >&5
13254echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13255cat >conftest.$ac_ext <<_ACEOF
13256/* confdefs.h. */
13257_ACEOF
13258cat confdefs.h >>conftest.$ac_ext
13259cat >>conftest.$ac_ext <<_ACEOF
13260/* end confdefs.h. */
13261$ac_includes_default
13262#include <$ac_header>
13263_ACEOF
13264rm -f conftest.$ac_objext
13265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13266 (eval $ac_compile) 2>conftest.er1
13267 ac_status=$?
13268 grep -v '^ *+' conftest.er1 >conftest.err
13269 rm -f conftest.er1
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } &&
b4e70030
JB
13273 { ac_try='test -z "$ac_c_werror_flag"
13274 || test ! -s conftest.err'
bec39cab
AC
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; } &&
13280 { ac_try='test -s conftest.$ac_objext'
13281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282 (eval $ac_try) 2>&5
13283 ac_status=$?
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; }; then
13286 ac_header_compiler=yes
13287else
13288 echo "$as_me: failed program was:" >&5
13289sed 's/^/| /' conftest.$ac_ext >&5
13290
b4e70030 13291ac_header_compiler=no
bec39cab
AC
13292fi
13293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13294echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13295echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13296
13297# Is the header present?
b4e70030
JB
13298echo "$as_me:$LINENO: checking $ac_header presence" >&5
13299echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13300cat >conftest.$ac_ext <<_ACEOF
13301/* confdefs.h. */
13302_ACEOF
13303cat confdefs.h >>conftest.$ac_ext
13304cat >>conftest.$ac_ext <<_ACEOF
13305/* end confdefs.h. */
13306#include <$ac_header>
13307_ACEOF
13308if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13310 ac_status=$?
13311 grep -v '^ *+' conftest.er1 >conftest.err
13312 rm -f conftest.er1
13313 cat conftest.err >&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); } >/dev/null; then
13316 if test -s conftest.err; then
13317 ac_cpp_err=$ac_c_preproc_warn_flag
13318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13319 else
13320 ac_cpp_err=
13321 fi
5ee754fc 13322else
bec39cab 13323 ac_cpp_err=yes
5ee754fc 13324fi
bec39cab
AC
13325if test -z "$ac_cpp_err"; then
13326 ac_header_preproc=yes
13327else
13328 echo "$as_me: failed program was:" >&5
13329sed 's/^/| /' conftest.$ac_ext >&5
c906108c 13330
bec39cab 13331 ac_header_preproc=no
5ee754fc 13332fi
bec39cab 13333rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13334echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13335echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 13336
bec39cab
AC
13337# So? What about this header?
13338case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13339 yes:no: )
13340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13341echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13343echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13344 ac_header_preproc=yes
13345 ;;
13346 no:yes:* )
13347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13348echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13350echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13352echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13354echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13356echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13358echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13359 (
13360 cat <<\_ASBOX
13361## ------------------------------------------ ##
13362## Report this to the AC_PACKAGE_NAME lists. ##
13363## ------------------------------------------ ##
13364_ASBOX
13365 ) |
13366 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13367 ;;
13368esac
b4e70030
JB
13369echo "$as_me:$LINENO: checking for $ac_header" >&5
13370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13371if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13372 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 13373else
bec39cab
AC
13374 eval "$as_ac_Header=\$ac_header_preproc"
13375fi
b4e70030
JB
13376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 13378
bec39cab
AC
13379fi
13380if test `eval echo '${'$as_ac_Header'}'` = yes; then
13381 cat >>confdefs.h <<_ACEOF
13382#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13383_ACEOF
5ee754fc 13384
bec39cab 13385fi
5ee754fc 13386
bec39cab 13387done
5ee754fc 13388
5ee754fc 13389
bec39cab
AC
13390for ac_header in sys/filio.h
13391do
13392as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13393if eval "test \"\${$as_ac_Header+set}\" = set"; then
13394 echo "$as_me:$LINENO: checking for $ac_header" >&5
13395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13396if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13398fi
b4e70030
JB
13399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13400echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13401else
13402 # Is the header compilable?
b4e70030
JB
13403echo "$as_me:$LINENO: checking $ac_header usability" >&5
13404echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13405cat >conftest.$ac_ext <<_ACEOF
13406/* confdefs.h. */
13407_ACEOF
13408cat confdefs.h >>conftest.$ac_ext
13409cat >>conftest.$ac_ext <<_ACEOF
13410/* end confdefs.h. */
13411$ac_includes_default
13412#include <$ac_header>
13413_ACEOF
13414rm -f conftest.$ac_objext
13415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13416 (eval $ac_compile) 2>conftest.er1
13417 ac_status=$?
13418 grep -v '^ *+' conftest.er1 >conftest.err
13419 rm -f conftest.er1
13420 cat conftest.err >&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } &&
b4e70030
JB
13423 { ac_try='test -z "$ac_c_werror_flag"
13424 || test ! -s conftest.err'
bec39cab
AC
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; } &&
13430 { ac_try='test -s conftest.$ac_objext'
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 ac_header_compiler=yes
13437else
13438 echo "$as_me: failed program was:" >&5
13439sed 's/^/| /' conftest.$ac_ext >&5
13440
b4e70030 13441ac_header_compiler=no
bec39cab
AC
13442fi
13443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13444echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13445echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13446
13447# Is the header present?
b4e70030
JB
13448echo "$as_me:$LINENO: checking $ac_header presence" >&5
13449echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13450cat >conftest.$ac_ext <<_ACEOF
13451/* confdefs.h. */
13452_ACEOF
13453cat confdefs.h >>conftest.$ac_ext
13454cat >>conftest.$ac_ext <<_ACEOF
13455/* end confdefs.h. */
13456#include <$ac_header>
13457_ACEOF
13458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13460 ac_status=$?
13461 grep -v '^ *+' conftest.er1 >conftest.err
13462 rm -f conftest.er1
13463 cat conftest.err >&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } >/dev/null; then
13466 if test -s conftest.err; then
13467 ac_cpp_err=$ac_c_preproc_warn_flag
13468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13469 else
13470 ac_cpp_err=
13471 fi
5ee754fc 13472else
bec39cab 13473 ac_cpp_err=yes
5ee754fc 13474fi
bec39cab
AC
13475if test -z "$ac_cpp_err"; then
13476 ac_header_preproc=yes
13477else
13478 echo "$as_me: failed program was:" >&5
13479sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13480
bec39cab 13481 ac_header_preproc=no
5ee754fc 13482fi
bec39cab 13483rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13484echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13485echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 13486
bec39cab
AC
13487# So? What about this header?
13488case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13489 yes:no: )
13490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13491echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13493echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13494 ac_header_preproc=yes
13495 ;;
13496 no:yes:* )
13497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13498echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13500echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13502echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13504echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13506echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13508echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13509 (
13510 cat <<\_ASBOX
13511## ------------------------------------------ ##
13512## Report this to the AC_PACKAGE_NAME lists. ##
13513## ------------------------------------------ ##
13514_ASBOX
13515 ) |
13516 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13517 ;;
13518esac
b4e70030
JB
13519echo "$as_me:$LINENO: checking for $ac_header" >&5
13520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13521if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13522 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 13523else
bec39cab 13524 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 13525fi
b4e70030
JB
13526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 13528
5ee754fc 13529fi
bec39cab
AC
13530if test `eval echo '${'$as_ac_Header'}'` = yes; then
13531 cat >>confdefs.h <<_ACEOF
13532#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13533_ACEOF
5ee754fc
MK
13534
13535fi
13536
bec39cab
AC
13537done
13538
13539
13540for ac_header in sys/ioctl.h
13541do
13542as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13543if eval "test \"\${$as_ac_Header+set}\" = set"; then
13544 echo "$as_me:$LINENO: checking for $ac_header" >&5
13545echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13546if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13547 echo $ECHO_N "(cached) $ECHO_C" >&6
13548fi
b4e70030
JB
13549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13550echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13551else
13552 # Is the header compilable?
b4e70030
JB
13553echo "$as_me:$LINENO: checking $ac_header usability" >&5
13554echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13555cat >conftest.$ac_ext <<_ACEOF
13556/* confdefs.h. */
13557_ACEOF
13558cat confdefs.h >>conftest.$ac_ext
13559cat >>conftest.$ac_ext <<_ACEOF
13560/* end confdefs.h. */
13561$ac_includes_default
13562#include <$ac_header>
13563_ACEOF
13564rm -f conftest.$ac_objext
13565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13566 (eval $ac_compile) 2>conftest.er1
13567 ac_status=$?
13568 grep -v '^ *+' conftest.er1 >conftest.err
13569 rm -f conftest.er1
13570 cat conftest.err >&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } &&
b4e70030
JB
13573 { ac_try='test -z "$ac_c_werror_flag"
13574 || test ! -s conftest.err'
bec39cab
AC
13575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576 (eval $ac_try) 2>&5
13577 ac_status=$?
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; } &&
13580 { ac_try='test -s conftest.$ac_objext'
13581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13582 (eval $ac_try) 2>&5
13583 ac_status=$?
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); }; }; then
13586 ac_header_compiler=yes
13587else
13588 echo "$as_me: failed program was:" >&5
13589sed 's/^/| /' conftest.$ac_ext >&5
13590
b4e70030 13591ac_header_compiler=no
bec39cab
AC
13592fi
13593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13594echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13595echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13596
13597# Is the header present?
b4e70030
JB
13598echo "$as_me:$LINENO: checking $ac_header presence" >&5
13599echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13600cat >conftest.$ac_ext <<_ACEOF
13601/* confdefs.h. */
13602_ACEOF
13603cat confdefs.h >>conftest.$ac_ext
13604cat >>conftest.$ac_ext <<_ACEOF
13605/* end confdefs.h. */
13606#include <$ac_header>
13607_ACEOF
13608if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13610 ac_status=$?
13611 grep -v '^ *+' conftest.er1 >conftest.err
13612 rm -f conftest.er1
13613 cat conftest.err >&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); } >/dev/null; then
13616 if test -s conftest.err; then
13617 ac_cpp_err=$ac_c_preproc_warn_flag
13618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13619 else
13620 ac_cpp_err=
13621 fi
5ee754fc 13622else
bec39cab 13623 ac_cpp_err=yes
5ee754fc 13624fi
bec39cab
AC
13625if test -z "$ac_cpp_err"; then
13626 ac_header_preproc=yes
13627else
13628 echo "$as_me: failed program was:" >&5
13629sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13630
bec39cab 13631 ac_header_preproc=no
5ee754fc 13632fi
bec39cab 13633rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13634echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13635echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 13636
bec39cab
AC
13637# So? What about this header?
13638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13639 yes:no: )
13640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13641echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13643echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13644 ac_header_preproc=yes
13645 ;;
13646 no:yes:* )
13647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13648echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13650echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13652echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13654echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13656echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13658echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13659 (
13660 cat <<\_ASBOX
13661## ------------------------------------------ ##
13662## Report this to the AC_PACKAGE_NAME lists. ##
13663## ------------------------------------------ ##
13664_ASBOX
13665 ) |
13666 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13667 ;;
13668esac
b4e70030
JB
13669echo "$as_me:$LINENO: checking for $ac_header" >&5
13670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13671if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13672 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 13673else
bec39cab 13674 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 13675fi
b4e70030
JB
13676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13677echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
13678
13679fi
bec39cab
AC
13680if test `eval echo '${'$as_ac_Header'}'` = yes; then
13681 cat >>confdefs.h <<_ACEOF
13682#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13683_ACEOF
13684
5ee754fc
MK
13685fi
13686
bec39cab 13687done
5ee754fc 13688
5ee754fc 13689
bec39cab 13690for ac_header in sys/param.h
5ee754fc 13691do
bec39cab 13692as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13693if eval "test \"\${$as_ac_Header+set}\" = set"; then
13694 echo "$as_me:$LINENO: checking for $ac_header" >&5
13695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13696if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
13698fi
b4e70030
JB
13699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13700echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13701else
13702 # Is the header compilable?
b4e70030
JB
13703echo "$as_me:$LINENO: checking $ac_header usability" >&5
13704echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13705cat >conftest.$ac_ext <<_ACEOF
13706/* confdefs.h. */
13707_ACEOF
13708cat confdefs.h >>conftest.$ac_ext
13709cat >>conftest.$ac_ext <<_ACEOF
13710/* end confdefs.h. */
13711$ac_includes_default
13712#include <$ac_header>
13713_ACEOF
13714rm -f conftest.$ac_objext
13715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13716 (eval $ac_compile) 2>conftest.er1
13717 ac_status=$?
13718 grep -v '^ *+' conftest.er1 >conftest.err
13719 rm -f conftest.er1
13720 cat conftest.err >&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); } &&
b4e70030
JB
13723 { ac_try='test -z "$ac_c_werror_flag"
13724 || test ! -s conftest.err'
bec39cab
AC
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13727 ac_status=$?
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; } &&
13730 { ac_try='test -s conftest.$ac_objext'
13731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13733 ac_status=$?
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; }; then
13736 ac_header_compiler=yes
13737else
13738 echo "$as_me: failed program was:" >&5
13739sed 's/^/| /' conftest.$ac_ext >&5
13740
b4e70030 13741ac_header_compiler=no
bec39cab
AC
13742fi
13743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13744echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13745echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13746
13747# Is the header present?
b4e70030
JB
13748echo "$as_me:$LINENO: checking $ac_header presence" >&5
13749echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13750cat >conftest.$ac_ext <<_ACEOF
13751/* confdefs.h. */
13752_ACEOF
13753cat confdefs.h >>conftest.$ac_ext
13754cat >>conftest.$ac_ext <<_ACEOF
13755/* end confdefs.h. */
13756#include <$ac_header>
13757_ACEOF
13758if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13760 ac_status=$?
13761 grep -v '^ *+' conftest.er1 >conftest.err
13762 rm -f conftest.er1
13763 cat conftest.err >&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); } >/dev/null; then
13766 if test -s conftest.err; then
13767 ac_cpp_err=$ac_c_preproc_warn_flag
13768 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13769 else
13770 ac_cpp_err=
13771 fi
5ee754fc 13772else
bec39cab 13773 ac_cpp_err=yes
5ee754fc 13774fi
bec39cab
AC
13775if test -z "$ac_cpp_err"; then
13776 ac_header_preproc=yes
13777else
13778 echo "$as_me: failed program was:" >&5
13779sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13780
bec39cab 13781 ac_header_preproc=no
5ee754fc 13782fi
bec39cab 13783rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13784echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13785echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
13786
13787# So? What about this header?
13788case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13789 yes:no: )
13790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13791echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13793echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13794 ac_header_preproc=yes
13795 ;;
13796 no:yes:* )
13797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13798echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13800echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13802echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13804echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13806echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13808echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13809 (
13810 cat <<\_ASBOX
13811## ------------------------------------------ ##
13812## Report this to the AC_PACKAGE_NAME lists. ##
13813## ------------------------------------------ ##
13814_ASBOX
13815 ) |
13816 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13817 ;;
13818esac
b4e70030
JB
13819echo "$as_me:$LINENO: checking for $ac_header" >&5
13820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13821if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13822 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 13823else
bec39cab 13824 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 13825fi
b4e70030
JB
13826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13827echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 13828
5ee754fc 13829fi
bec39cab
AC
13830if test `eval echo '${'$as_ac_Header'}'` = yes; then
13831 cat >>confdefs.h <<_ACEOF
13832#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13833_ACEOF
13834
5ee754fc 13835fi
bec39cab 13836
5ee754fc
MK
13837done
13838
bec39cab 13839
7eb368b3
NR
13840for ac_header in sys/resource.h
13841do
13842as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13843if eval "test \"\${$as_ac_Header+set}\" = set"; then
13844 echo "$as_me:$LINENO: checking for $ac_header" >&5
13845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13846if eval "test \"\${$as_ac_Header+set}\" = set"; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13848fi
13849echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13850echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13851else
13852 # Is the header compilable?
13853echo "$as_me:$LINENO: checking $ac_header usability" >&5
13854echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13855cat >conftest.$ac_ext <<_ACEOF
13856/* confdefs.h. */
13857_ACEOF
13858cat confdefs.h >>conftest.$ac_ext
13859cat >>conftest.$ac_ext <<_ACEOF
13860/* end confdefs.h. */
13861$ac_includes_default
13862#include <$ac_header>
13863_ACEOF
13864rm -f conftest.$ac_objext
13865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13866 (eval $ac_compile) 2>conftest.er1
13867 ac_status=$?
13868 grep -v '^ *+' conftest.er1 >conftest.err
13869 rm -f conftest.er1
13870 cat conftest.err >&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); } &&
13873 { ac_try='test -z "$ac_c_werror_flag"
13874 || test ! -s conftest.err'
13875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13877 ac_status=$?
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; } &&
13880 { ac_try='test -s conftest.$ac_objext'
13881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13883 ac_status=$?
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; }; then
13886 ac_header_compiler=yes
13887else
13888 echo "$as_me: failed program was:" >&5
13889sed 's/^/| /' conftest.$ac_ext >&5
13890
13891ac_header_compiler=no
13892fi
13893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13894echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13895echo "${ECHO_T}$ac_header_compiler" >&6
13896
13897# Is the header present?
13898echo "$as_me:$LINENO: checking $ac_header presence" >&5
13899echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13900cat >conftest.$ac_ext <<_ACEOF
13901/* confdefs.h. */
13902_ACEOF
13903cat confdefs.h >>conftest.$ac_ext
13904cat >>conftest.$ac_ext <<_ACEOF
13905/* end confdefs.h. */
13906#include <$ac_header>
13907_ACEOF
13908if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13910 ac_status=$?
13911 grep -v '^ *+' conftest.er1 >conftest.err
13912 rm -f conftest.er1
13913 cat conftest.err >&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } >/dev/null; then
13916 if test -s conftest.err; then
13917 ac_cpp_err=$ac_c_preproc_warn_flag
13918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13919 else
13920 ac_cpp_err=
13921 fi
13922else
13923 ac_cpp_err=yes
13924fi
13925if test -z "$ac_cpp_err"; then
13926 ac_header_preproc=yes
13927else
13928 echo "$as_me: failed program was:" >&5
13929sed 's/^/| /' conftest.$ac_ext >&5
13930
13931 ac_header_preproc=no
13932fi
13933rm -f conftest.err conftest.$ac_ext
13934echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13935echo "${ECHO_T}$ac_header_preproc" >&6
13936
13937# So? What about this header?
13938case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13939 yes:no: )
13940 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13941echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13943echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13944 ac_header_preproc=yes
13945 ;;
13946 no:yes:* )
13947 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13948echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13949 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13950echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13951 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13952echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13953 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13954echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13956echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13957 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13958echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13959 (
13960 cat <<\_ASBOX
13961## ------------------------------------------ ##
13962## Report this to the AC_PACKAGE_NAME lists. ##
13963## ------------------------------------------ ##
13964_ASBOX
13965 ) |
13966 sed "s/^/$as_me: WARNING: /" >&2
13967 ;;
13968esac
13969echo "$as_me:$LINENO: checking for $ac_header" >&5
13970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13971if eval "test \"\${$as_ac_Header+set}\" = set"; then
13972 echo $ECHO_N "(cached) $ECHO_C" >&6
13973else
13974 eval "$as_ac_Header=\$ac_header_preproc"
13975fi
13976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13977echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13978
13979fi
13980if test `eval echo '${'$as_ac_Header'}'` = yes; then
13981 cat >>confdefs.h <<_ACEOF
13982#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13983_ACEOF
13984
13985fi
13986
13987done
13988
13989
bec39cab 13990for ac_header in sys/proc.h
5ee754fc 13991do
bec39cab 13992as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13993echo "$as_me:$LINENO: checking for $ac_header" >&5
13994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13995if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13996 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 13997else
7cb9022a 13998 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
13999/* confdefs.h. */
14000_ACEOF
14001cat confdefs.h >>conftest.$ac_ext
14002cat >>conftest.$ac_ext <<_ACEOF
14003/* end confdefs.h. */
7cb9022a
MK
14004#if HAVE_SYS_PARAM_H
14005# include <sys/param.h>
14006#endif
14007
14008
bec39cab
AC
14009#include <$ac_header>
14010_ACEOF
14011rm -f conftest.$ac_objext
14012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14013 (eval $ac_compile) 2>conftest.er1
14014 ac_status=$?
14015 grep -v '^ *+' conftest.er1 >conftest.err
14016 rm -f conftest.er1
14017 cat conftest.err >&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
b4e70030
JB
14020 { ac_try='test -z "$ac_c_werror_flag"
14021 || test ! -s conftest.err'
bec39cab
AC
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; } &&
14027 { ac_try='test -s conftest.$ac_objext'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
7cb9022a 14033 eval "$as_ac_Header=yes"
bec39cab
AC
14034else
14035 echo "$as_me: failed program was:" >&5
14036sed 's/^/| /' conftest.$ac_ext >&5
14037
b4e70030 14038eval "$as_ac_Header=no"
bec39cab
AC
14039fi
14040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 14041fi
b4e70030
JB
14042echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14043echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14044if test `eval echo '${'$as_ac_Header'}'` = yes; then
14045 cat >>confdefs.h <<_ACEOF
14046#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14047_ACEOF
14048
5ee754fc 14049fi
bec39cab 14050
5ee754fc
MK
14051done
14052
bec39cab
AC
14053
14054for ac_header in sys/procfs.h
5ee754fc 14055do
bec39cab 14056as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14057if eval "test \"\${$as_ac_Header+set}\" = set"; then
14058 echo "$as_me:$LINENO: checking for $ac_header" >&5
14059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14060if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14062fi
b4e70030
JB
14063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14064echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14065else
14066 # Is the header compilable?
b4e70030
JB
14067echo "$as_me:$LINENO: checking $ac_header usability" >&5
14068echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14069cat >conftest.$ac_ext <<_ACEOF
14070/* confdefs.h. */
14071_ACEOF
14072cat confdefs.h >>conftest.$ac_ext
14073cat >>conftest.$ac_ext <<_ACEOF
14074/* end confdefs.h. */
14075$ac_includes_default
14076#include <$ac_header>
14077_ACEOF
14078rm -f conftest.$ac_objext
14079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14080 (eval $ac_compile) 2>conftest.er1
14081 ac_status=$?
14082 grep -v '^ *+' conftest.er1 >conftest.err
14083 rm -f conftest.er1
14084 cat conftest.err >&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } &&
b4e70030
JB
14087 { ac_try='test -z "$ac_c_werror_flag"
14088 || test ! -s conftest.err'
bec39cab
AC
14089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090 (eval $ac_try) 2>&5
14091 ac_status=$?
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); }; } &&
14094 { ac_try='test -s conftest.$ac_objext'
14095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096 (eval $ac_try) 2>&5
14097 ac_status=$?
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; }; then
14100 ac_header_compiler=yes
14101else
14102 echo "$as_me: failed program was:" >&5
14103sed 's/^/| /' conftest.$ac_ext >&5
14104
b4e70030 14105ac_header_compiler=no
bec39cab
AC
14106fi
14107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14108echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14109echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14110
14111# Is the header present?
b4e70030
JB
14112echo "$as_me:$LINENO: checking $ac_header presence" >&5
14113echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14114cat >conftest.$ac_ext <<_ACEOF
14115/* confdefs.h. */
14116_ACEOF
14117cat confdefs.h >>conftest.$ac_ext
14118cat >>conftest.$ac_ext <<_ACEOF
14119/* end confdefs.h. */
14120#include <$ac_header>
14121_ACEOF
14122if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14124 ac_status=$?
14125 grep -v '^ *+' conftest.er1 >conftest.err
14126 rm -f conftest.er1
14127 cat conftest.err >&5
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); } >/dev/null; then
14130 if test -s conftest.err; then
14131 ac_cpp_err=$ac_c_preproc_warn_flag
14132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14133 else
14134 ac_cpp_err=
14135 fi
14136else
14137 ac_cpp_err=yes
5ee754fc 14138fi
bec39cab
AC
14139if test -z "$ac_cpp_err"; then
14140 ac_header_preproc=yes
5ee754fc 14141else
bec39cab
AC
14142 echo "$as_me: failed program was:" >&5
14143sed 's/^/| /' conftest.$ac_ext >&5
14144
14145 ac_header_preproc=no
5ee754fc 14146fi
bec39cab 14147rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14148echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14149echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14150
bec39cab
AC
14151# So? What about this header?
14152case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14153 yes:no: )
14154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14155echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14157echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14158 ac_header_preproc=yes
14159 ;;
14160 no:yes:* )
14161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14162echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14164echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14166echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14168echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14170echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14172echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14173 (
14174 cat <<\_ASBOX
14175## ------------------------------------------ ##
14176## Report this to the AC_PACKAGE_NAME lists. ##
14177## ------------------------------------------ ##
14178_ASBOX
14179 ) |
14180 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14181 ;;
14182esac
b4e70030
JB
14183echo "$as_me:$LINENO: checking for $ac_header" >&5
14184echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14185if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14186 echo $ECHO_N "(cached) $ECHO_C" >&6
14187else
14188 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14189fi
b4e70030
JB
14190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14191echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14192
5ee754fc 14193fi
bec39cab
AC
14194if test `eval echo '${'$as_ac_Header'}'` = yes; then
14195 cat >>confdefs.h <<_ACEOF
14196#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14197_ACEOF
14198
5ee754fc 14199fi
bec39cab 14200
5ee754fc
MK
14201done
14202
bec39cab
AC
14203
14204
14205for ac_header in sys/ptrace.h ptrace.h
5ee754fc 14206do
bec39cab 14207as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14208if eval "test \"\${$as_ac_Header+set}\" = set"; then
14209 echo "$as_me:$LINENO: checking for $ac_header" >&5
14210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14211if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14212 echo $ECHO_N "(cached) $ECHO_C" >&6
14213fi
b4e70030
JB
14214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14215echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14216else
14217 # Is the header compilable?
b4e70030
JB
14218echo "$as_me:$LINENO: checking $ac_header usability" >&5
14219echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14220cat >conftest.$ac_ext <<_ACEOF
14221/* confdefs.h. */
14222_ACEOF
14223cat confdefs.h >>conftest.$ac_ext
14224cat >>conftest.$ac_ext <<_ACEOF
14225/* end confdefs.h. */
14226$ac_includes_default
14227#include <$ac_header>
14228_ACEOF
14229rm -f conftest.$ac_objext
14230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14231 (eval $ac_compile) 2>conftest.er1
14232 ac_status=$?
14233 grep -v '^ *+' conftest.er1 >conftest.err
14234 rm -f conftest.er1
14235 cat conftest.err >&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); } &&
b4e70030
JB
14238 { ac_try='test -z "$ac_c_werror_flag"
14239 || test ! -s conftest.err'
bec39cab
AC
14240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241 (eval $ac_try) 2>&5
14242 ac_status=$?
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; } &&
14245 { ac_try='test -s conftest.$ac_objext'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14248 ac_status=$?
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; }; then
14251 ac_header_compiler=yes
14252else
14253 echo "$as_me: failed program was:" >&5
14254sed 's/^/| /' conftest.$ac_ext >&5
14255
b4e70030 14256ac_header_compiler=no
bec39cab
AC
14257fi
14258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14259echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14260echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14261
14262# Is the header present?
b4e70030
JB
14263echo "$as_me:$LINENO: checking $ac_header presence" >&5
14264echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14265cat >conftest.$ac_ext <<_ACEOF
14266/* confdefs.h. */
14267_ACEOF
14268cat confdefs.h >>conftest.$ac_ext
14269cat >>conftest.$ac_ext <<_ACEOF
14270/* end confdefs.h. */
14271#include <$ac_header>
14272_ACEOF
14273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14275 ac_status=$?
14276 grep -v '^ *+' conftest.er1 >conftest.err
14277 rm -f conftest.er1
14278 cat conftest.err >&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } >/dev/null; then
14281 if test -s conftest.err; then
14282 ac_cpp_err=$ac_c_preproc_warn_flag
14283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14284 else
14285 ac_cpp_err=
14286 fi
14287else
14288 ac_cpp_err=yes
5ee754fc 14289fi
bec39cab
AC
14290if test -z "$ac_cpp_err"; then
14291 ac_header_preproc=yes
5ee754fc 14292else
bec39cab
AC
14293 echo "$as_me: failed program was:" >&5
14294sed 's/^/| /' conftest.$ac_ext >&5
14295
14296 ac_header_preproc=no
5ee754fc 14297fi
bec39cab 14298rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14299echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14300echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14301
bec39cab
AC
14302# So? What about this header?
14303case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14304 yes:no: )
14305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14306echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14308echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14309 ac_header_preproc=yes
14310 ;;
14311 no:yes:* )
14312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14313echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14315echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14317echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14319echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14321echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14323echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14324 (
14325 cat <<\_ASBOX
14326## ------------------------------------------ ##
14327## Report this to the AC_PACKAGE_NAME lists. ##
14328## ------------------------------------------ ##
14329_ASBOX
14330 ) |
14331 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14332 ;;
14333esac
b4e70030
JB
14334echo "$as_me:$LINENO: checking for $ac_header" >&5
14335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14336if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14338else
14339 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14340fi
b4e70030
JB
14341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14342echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14343
5ee754fc 14344fi
bec39cab
AC
14345if test `eval echo '${'$as_ac_Header'}'` = yes; then
14346 cat >>confdefs.h <<_ACEOF
14347#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14348_ACEOF
14349
5ee754fc 14350fi
bec39cab 14351
5ee754fc
MK
14352done
14353
bec39cab
AC
14354
14355
14356for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 14357do
bec39cab 14358as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14359if eval "test \"\${$as_ac_Header+set}\" = set"; then
14360 echo "$as_me:$LINENO: checking for $ac_header" >&5
14361echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14362if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14363 echo $ECHO_N "(cached) $ECHO_C" >&6
14364fi
b4e70030
JB
14365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14366echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14367else
14368 # Is the header compilable?
b4e70030
JB
14369echo "$as_me:$LINENO: checking $ac_header usability" >&5
14370echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14371cat >conftest.$ac_ext <<_ACEOF
14372/* confdefs.h. */
14373_ACEOF
14374cat confdefs.h >>conftest.$ac_ext
14375cat >>conftest.$ac_ext <<_ACEOF
14376/* end confdefs.h. */
14377$ac_includes_default
14378#include <$ac_header>
14379_ACEOF
14380rm -f conftest.$ac_objext
14381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14382 (eval $ac_compile) 2>conftest.er1
14383 ac_status=$?
14384 grep -v '^ *+' conftest.er1 >conftest.err
14385 rm -f conftest.er1
14386 cat conftest.err >&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); } &&
b4e70030
JB
14389 { ac_try='test -z "$ac_c_werror_flag"
14390 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
14396 { ac_try='test -s conftest.$ac_objext'
14397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14399 ac_status=$?
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }; then
14402 ac_header_compiler=yes
14403else
14404 echo "$as_me: failed program was:" >&5
14405sed 's/^/| /' conftest.$ac_ext >&5
14406
b4e70030 14407ac_header_compiler=no
bec39cab
AC
14408fi
14409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14410echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14411echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14412
14413# Is the header present?
b4e70030
JB
14414echo "$as_me:$LINENO: checking $ac_header presence" >&5
14415echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14416cat >conftest.$ac_ext <<_ACEOF
14417/* confdefs.h. */
14418_ACEOF
14419cat confdefs.h >>conftest.$ac_ext
14420cat >>conftest.$ac_ext <<_ACEOF
14421/* end confdefs.h. */
14422#include <$ac_header>
14423_ACEOF
14424if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14426 ac_status=$?
14427 grep -v '^ *+' conftest.er1 >conftest.err
14428 rm -f conftest.er1
14429 cat conftest.err >&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); } >/dev/null; then
14432 if test -s conftest.err; then
14433 ac_cpp_err=$ac_c_preproc_warn_flag
14434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14435 else
14436 ac_cpp_err=
14437 fi
14438else
14439 ac_cpp_err=yes
5ee754fc 14440fi
bec39cab
AC
14441if test -z "$ac_cpp_err"; then
14442 ac_header_preproc=yes
5ee754fc 14443else
bec39cab
AC
14444 echo "$as_me: failed program was:" >&5
14445sed 's/^/| /' conftest.$ac_ext >&5
14446
14447 ac_header_preproc=no
5ee754fc 14448fi
bec39cab 14449rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14450echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14451echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14452
bec39cab
AC
14453# So? What about this header?
14454case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14455 yes:no: )
14456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14457echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14459echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14460 ac_header_preproc=yes
14461 ;;
14462 no:yes:* )
14463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14464echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14466echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14468echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14470echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14472echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14474echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14475 (
14476 cat <<\_ASBOX
14477## ------------------------------------------ ##
14478## Report this to the AC_PACKAGE_NAME lists. ##
14479## ------------------------------------------ ##
14480_ASBOX
14481 ) |
14482 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14483 ;;
14484esac
b4e70030
JB
14485echo "$as_me:$LINENO: checking for $ac_header" >&5
14486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14487if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14489else
14490 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14491fi
b4e70030
JB
14492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14494
5ee754fc 14495fi
bec39cab
AC
14496if test `eval echo '${'$as_ac_Header'}'` = yes; then
14497 cat >>confdefs.h <<_ACEOF
14498#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14499_ACEOF
14500
5ee754fc 14501fi
bec39cab 14502
5ee754fc
MK
14503done
14504
bec39cab
AC
14505
14506for ac_header in sys/select.h
5ee754fc 14507do
bec39cab 14508as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14509if eval "test \"\${$as_ac_Header+set}\" = set"; then
14510 echo "$as_me:$LINENO: checking for $ac_header" >&5
14511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14512if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14513 echo $ECHO_N "(cached) $ECHO_C" >&6
14514fi
b4e70030
JB
14515echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14516echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14517else
14518 # Is the header compilable?
b4e70030
JB
14519echo "$as_me:$LINENO: checking $ac_header usability" >&5
14520echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14521cat >conftest.$ac_ext <<_ACEOF
14522/* confdefs.h. */
14523_ACEOF
14524cat confdefs.h >>conftest.$ac_ext
14525cat >>conftest.$ac_ext <<_ACEOF
14526/* end confdefs.h. */
14527$ac_includes_default
14528#include <$ac_header>
14529_ACEOF
14530rm -f conftest.$ac_objext
14531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14532 (eval $ac_compile) 2>conftest.er1
14533 ac_status=$?
14534 grep -v '^ *+' conftest.er1 >conftest.err
14535 rm -f conftest.er1
14536 cat conftest.err >&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } &&
b4e70030
JB
14539 { ac_try='test -z "$ac_c_werror_flag"
14540 || test ! -s conftest.err'
bec39cab
AC
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14543 ac_status=$?
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; } &&
14546 { ac_try='test -s conftest.$ac_objext'
14547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14548 (eval $ac_try) 2>&5
14549 ac_status=$?
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); }; }; then
14552 ac_header_compiler=yes
14553else
14554 echo "$as_me: failed program was:" >&5
14555sed 's/^/| /' conftest.$ac_ext >&5
14556
b4e70030 14557ac_header_compiler=no
bec39cab
AC
14558fi
14559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14560echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14561echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14562
14563# Is the header present?
b4e70030
JB
14564echo "$as_me:$LINENO: checking $ac_header presence" >&5
14565echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14566cat >conftest.$ac_ext <<_ACEOF
14567/* confdefs.h. */
14568_ACEOF
14569cat confdefs.h >>conftest.$ac_ext
14570cat >>conftest.$ac_ext <<_ACEOF
14571/* end confdefs.h. */
14572#include <$ac_header>
14573_ACEOF
14574if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14576 ac_status=$?
14577 grep -v '^ *+' conftest.er1 >conftest.err
14578 rm -f conftest.er1
14579 cat conftest.err >&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); } >/dev/null; then
14582 if test -s conftest.err; then
14583 ac_cpp_err=$ac_c_preproc_warn_flag
14584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14585 else
14586 ac_cpp_err=
14587 fi
14588else
14589 ac_cpp_err=yes
5ee754fc 14590fi
bec39cab
AC
14591if test -z "$ac_cpp_err"; then
14592 ac_header_preproc=yes
5ee754fc 14593else
bec39cab
AC
14594 echo "$as_me: failed program was:" >&5
14595sed 's/^/| /' conftest.$ac_ext >&5
14596
14597 ac_header_preproc=no
5ee754fc 14598fi
bec39cab 14599rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14600echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14601echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14602
bec39cab
AC
14603# So? What about this header?
14604case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14605 yes:no: )
14606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14607echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14609echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14610 ac_header_preproc=yes
14611 ;;
14612 no:yes:* )
14613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14614echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14616echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14618echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14620echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14622echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14624echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14625 (
14626 cat <<\_ASBOX
14627## ------------------------------------------ ##
14628## Report this to the AC_PACKAGE_NAME lists. ##
14629## ------------------------------------------ ##
14630_ASBOX
14631 ) |
14632 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14633 ;;
14634esac
b4e70030
JB
14635echo "$as_me:$LINENO: checking for $ac_header" >&5
14636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14637if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14639else
14640 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14641fi
b4e70030
JB
14642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14644
5ee754fc 14645fi
bec39cab
AC
14646if test `eval echo '${'$as_ac_Header'}'` = yes; then
14647 cat >>confdefs.h <<_ACEOF
14648#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14649_ACEOF
14650
5ee754fc 14651fi
bec39cab 14652
5ee754fc
MK
14653done
14654
bec39cab
AC
14655
14656for ac_header in sys/syscall.h
5ee754fc 14657do
bec39cab 14658as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14659if eval "test \"\${$as_ac_Header+set}\" = set"; then
14660 echo "$as_me:$LINENO: checking for $ac_header" >&5
14661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14662if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14664fi
b4e70030
JB
14665echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14666echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14667else
14668 # Is the header compilable?
b4e70030
JB
14669echo "$as_me:$LINENO: checking $ac_header usability" >&5
14670echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14671cat >conftest.$ac_ext <<_ACEOF
14672/* confdefs.h. */
14673_ACEOF
14674cat confdefs.h >>conftest.$ac_ext
14675cat >>conftest.$ac_ext <<_ACEOF
14676/* end confdefs.h. */
14677$ac_includes_default
14678#include <$ac_header>
14679_ACEOF
14680rm -f conftest.$ac_objext
14681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14682 (eval $ac_compile) 2>conftest.er1
14683 ac_status=$?
14684 grep -v '^ *+' conftest.er1 >conftest.err
14685 rm -f conftest.er1
14686 cat conftest.err >&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); } &&
b4e70030
JB
14689 { ac_try='test -z "$ac_c_werror_flag"
14690 || test ! -s conftest.err'
bec39cab
AC
14691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692 (eval $ac_try) 2>&5
14693 ac_status=$?
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); }; } &&
14696 { ac_try='test -s conftest.$ac_objext'
14697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14698 (eval $ac_try) 2>&5
14699 ac_status=$?
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; }; then
14702 ac_header_compiler=yes
14703else
14704 echo "$as_me: failed program was:" >&5
14705sed 's/^/| /' conftest.$ac_ext >&5
14706
b4e70030 14707ac_header_compiler=no
bec39cab
AC
14708fi
14709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14710echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14711echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14712
14713# Is the header present?
b4e70030
JB
14714echo "$as_me:$LINENO: checking $ac_header presence" >&5
14715echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14716cat >conftest.$ac_ext <<_ACEOF
14717/* confdefs.h. */
14718_ACEOF
14719cat confdefs.h >>conftest.$ac_ext
14720cat >>conftest.$ac_ext <<_ACEOF
14721/* end confdefs.h. */
14722#include <$ac_header>
14723_ACEOF
14724if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14726 ac_status=$?
14727 grep -v '^ *+' conftest.er1 >conftest.err
14728 rm -f conftest.er1
14729 cat conftest.err >&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } >/dev/null; then
14732 if test -s conftest.err; then
14733 ac_cpp_err=$ac_c_preproc_warn_flag
14734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14735 else
14736 ac_cpp_err=
14737 fi
14738else
14739 ac_cpp_err=yes
5ee754fc 14740fi
bec39cab
AC
14741if test -z "$ac_cpp_err"; then
14742 ac_header_preproc=yes
5ee754fc 14743else
bec39cab
AC
14744 echo "$as_me: failed program was:" >&5
14745sed 's/^/| /' conftest.$ac_ext >&5
14746
14747 ac_header_preproc=no
5ee754fc 14748fi
bec39cab 14749rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14750echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14751echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14752
bec39cab
AC
14753# So? What about this header?
14754case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14755 yes:no: )
14756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14757echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14759echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14760 ac_header_preproc=yes
14761 ;;
14762 no:yes:* )
14763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14764echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14766echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14768echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14770echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14772echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14774echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14775 (
14776 cat <<\_ASBOX
14777## ------------------------------------------ ##
14778## Report this to the AC_PACKAGE_NAME lists. ##
14779## ------------------------------------------ ##
14780_ASBOX
14781 ) |
14782 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14783 ;;
14784esac
b4e70030
JB
14785echo "$as_me:$LINENO: checking for $ac_header" >&5
14786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14787if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14788 echo $ECHO_N "(cached) $ECHO_C" >&6
14789else
14790 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14791fi
b4e70030
JB
14792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14793echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14794
5ee754fc 14795fi
bec39cab
AC
14796if test `eval echo '${'$as_ac_Header'}'` = yes; then
14797 cat >>confdefs.h <<_ACEOF
14798#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14799_ACEOF
14800
5ee754fc 14801fi
bec39cab 14802
5ee754fc
MK
14803done
14804
bec39cab
AC
14805
14806for ac_header in sys/types.h
5ee754fc 14807do
bec39cab 14808as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14809if eval "test \"\${$as_ac_Header+set}\" = set"; then
14810 echo "$as_me:$LINENO: checking for $ac_header" >&5
14811echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14812if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14813 echo $ECHO_N "(cached) $ECHO_C" >&6
14814fi
b4e70030
JB
14815echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14816echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14817else
14818 # Is the header compilable?
b4e70030
JB
14819echo "$as_me:$LINENO: checking $ac_header usability" >&5
14820echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14821cat >conftest.$ac_ext <<_ACEOF
14822/* confdefs.h. */
14823_ACEOF
14824cat confdefs.h >>conftest.$ac_ext
14825cat >>conftest.$ac_ext <<_ACEOF
14826/* end confdefs.h. */
14827$ac_includes_default
14828#include <$ac_header>
14829_ACEOF
14830rm -f conftest.$ac_objext
14831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14832 (eval $ac_compile) 2>conftest.er1
14833 ac_status=$?
14834 grep -v '^ *+' conftest.er1 >conftest.err
14835 rm -f conftest.er1
14836 cat conftest.err >&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } &&
b4e70030
JB
14839 { ac_try='test -z "$ac_c_werror_flag"
14840 || test ! -s conftest.err'
bec39cab
AC
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14843 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; } &&
14846 { ac_try='test -s conftest.$ac_objext'
14847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848 (eval $ac_try) 2>&5
14849 ac_status=$?
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; }; then
14852 ac_header_compiler=yes
14853else
14854 echo "$as_me: failed program was:" >&5
14855sed 's/^/| /' conftest.$ac_ext >&5
14856
b4e70030 14857ac_header_compiler=no
bec39cab
AC
14858fi
14859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14860echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14861echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14862
14863# Is the header present?
b4e70030
JB
14864echo "$as_me:$LINENO: checking $ac_header presence" >&5
14865echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14866cat >conftest.$ac_ext <<_ACEOF
14867/* confdefs.h. */
14868_ACEOF
14869cat confdefs.h >>conftest.$ac_ext
14870cat >>conftest.$ac_ext <<_ACEOF
14871/* end confdefs.h. */
14872#include <$ac_header>
14873_ACEOF
14874if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14876 ac_status=$?
14877 grep -v '^ *+' conftest.er1 >conftest.err
14878 rm -f conftest.er1
14879 cat conftest.err >&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } >/dev/null; then
14882 if test -s conftest.err; then
14883 ac_cpp_err=$ac_c_preproc_warn_flag
14884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14885 else
14886 ac_cpp_err=
14887 fi
14888else
14889 ac_cpp_err=yes
5ee754fc 14890fi
bec39cab
AC
14891if test -z "$ac_cpp_err"; then
14892 ac_header_preproc=yes
5ee754fc 14893else
bec39cab
AC
14894 echo "$as_me: failed program was:" >&5
14895sed 's/^/| /' conftest.$ac_ext >&5
14896
14897 ac_header_preproc=no
5ee754fc 14898fi
bec39cab 14899rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14900echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14901echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14902
bec39cab
AC
14903# So? What about this header?
14904case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14905 yes:no: )
14906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14907echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14909echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14910 ac_header_preproc=yes
14911 ;;
14912 no:yes:* )
14913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14914echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14916echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14918echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14920echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14922echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14924echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14925 (
14926 cat <<\_ASBOX
14927## ------------------------------------------ ##
14928## Report this to the AC_PACKAGE_NAME lists. ##
14929## ------------------------------------------ ##
14930_ASBOX
14931 ) |
14932 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14933 ;;
14934esac
b4e70030
JB
14935echo "$as_me:$LINENO: checking for $ac_header" >&5
14936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14937if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14938 echo $ECHO_N "(cached) $ECHO_C" >&6
14939else
14940 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14941fi
b4e70030
JB
14942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14944
5ee754fc 14945fi
bec39cab
AC
14946if test `eval echo '${'$as_ac_Header'}'` = yes; then
14947 cat >>confdefs.h <<_ACEOF
14948#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14949_ACEOF
14950
5ee754fc 14951fi
bec39cab 14952
5ee754fc
MK
14953done
14954
bec39cab
AC
14955
14956for ac_header in sys/user.h
5ee754fc 14957do
bec39cab 14958as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14959echo "$as_me:$LINENO: checking for $ac_header" >&5
14960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14961if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 14962 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 14963else
7cb9022a 14964 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14965/* confdefs.h. */
14966_ACEOF
14967cat confdefs.h >>conftest.$ac_ext
14968cat >>conftest.$ac_ext <<_ACEOF
14969/* end confdefs.h. */
7cb9022a
MK
14970#if HAVE_SYS_PARAM_H
14971# include <sys/param.h>
14972#endif
14973
14974
bec39cab
AC
14975#include <$ac_header>
14976_ACEOF
14977rm -f conftest.$ac_objext
14978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14979 (eval $ac_compile) 2>conftest.er1
14980 ac_status=$?
14981 grep -v '^ *+' conftest.er1 >conftest.err
14982 rm -f conftest.er1
14983 cat conftest.err >&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } &&
b4e70030
JB
14986 { ac_try='test -z "$ac_c_werror_flag"
14987 || test ! -s conftest.err'
bec39cab
AC
14988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989 (eval $ac_try) 2>&5
14990 ac_status=$?
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); }; } &&
14993 { ac_try='test -s conftest.$ac_objext'
14994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14995 (eval $ac_try) 2>&5
14996 ac_status=$?
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); }; }; then
7cb9022a 14999 eval "$as_ac_Header=yes"
bec39cab
AC
15000else
15001 echo "$as_me: failed program was:" >&5
15002sed 's/^/| /' conftest.$ac_ext >&5
15003
b4e70030 15004eval "$as_ac_Header=no"
bec39cab
AC
15005fi
15006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 15007fi
b4e70030
JB
15008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15009echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15010if test `eval echo '${'$as_ac_Header'}'` = yes; then
15011 cat >>confdefs.h <<_ACEOF
15012#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15013_ACEOF
15014
5ee754fc 15015fi
bec39cab 15016
5ee754fc
MK
15017done
15018
bec39cab
AC
15019
15020
15021for ac_header in sys/wait.h wait.h
5ee754fc 15022do
bec39cab 15023as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15024if eval "test \"\${$as_ac_Header+set}\" = set"; then
15025 echo "$as_me:$LINENO: checking for $ac_header" >&5
15026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15027if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15028 echo $ECHO_N "(cached) $ECHO_C" >&6
15029fi
b4e70030
JB
15030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15031echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15032else
15033 # Is the header compilable?
b4e70030
JB
15034echo "$as_me:$LINENO: checking $ac_header usability" >&5
15035echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15036cat >conftest.$ac_ext <<_ACEOF
15037/* confdefs.h. */
15038_ACEOF
15039cat confdefs.h >>conftest.$ac_ext
15040cat >>conftest.$ac_ext <<_ACEOF
15041/* end confdefs.h. */
15042$ac_includes_default
15043#include <$ac_header>
15044_ACEOF
15045rm -f conftest.$ac_objext
15046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15047 (eval $ac_compile) 2>conftest.er1
15048 ac_status=$?
15049 grep -v '^ *+' conftest.er1 >conftest.err
15050 rm -f conftest.er1
15051 cat conftest.err >&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } &&
b4e70030
JB
15054 { ac_try='test -z "$ac_c_werror_flag"
15055 || test ! -s conftest.err'
bec39cab
AC
15056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057 (eval $ac_try) 2>&5
15058 ac_status=$?
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; } &&
15061 { ac_try='test -s conftest.$ac_objext'
15062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063 (eval $ac_try) 2>&5
15064 ac_status=$?
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; }; then
15067 ac_header_compiler=yes
15068else
15069 echo "$as_me: failed program was:" >&5
15070sed 's/^/| /' conftest.$ac_ext >&5
15071
b4e70030 15072ac_header_compiler=no
bec39cab
AC
15073fi
15074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15075echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15076echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15077
15078# Is the header present?
b4e70030
JB
15079echo "$as_me:$LINENO: checking $ac_header presence" >&5
15080echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15081cat >conftest.$ac_ext <<_ACEOF
15082/* confdefs.h. */
15083_ACEOF
15084cat confdefs.h >>conftest.$ac_ext
15085cat >>conftest.$ac_ext <<_ACEOF
15086/* end confdefs.h. */
15087#include <$ac_header>
15088_ACEOF
15089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15091 ac_status=$?
15092 grep -v '^ *+' conftest.er1 >conftest.err
15093 rm -f conftest.er1
15094 cat conftest.err >&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } >/dev/null; then
15097 if test -s conftest.err; then
15098 ac_cpp_err=$ac_c_preproc_warn_flag
15099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15100 else
15101 ac_cpp_err=
15102 fi
15103else
15104 ac_cpp_err=yes
5ee754fc 15105fi
bec39cab
AC
15106if test -z "$ac_cpp_err"; then
15107 ac_header_preproc=yes
5ee754fc 15108else
bec39cab
AC
15109 echo "$as_me: failed program was:" >&5
15110sed 's/^/| /' conftest.$ac_ext >&5
15111
15112 ac_header_preproc=no
5ee754fc 15113fi
bec39cab 15114rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15115echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15116echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 15117
bec39cab
AC
15118# So? What about this header?
15119case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15120 yes:no: )
15121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15122echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15124echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15125 ac_header_preproc=yes
15126 ;;
15127 no:yes:* )
15128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15129echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15131echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15133echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15135echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15137echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15139echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15140 (
15141 cat <<\_ASBOX
15142## ------------------------------------------ ##
15143## Report this to the AC_PACKAGE_NAME lists. ##
15144## ------------------------------------------ ##
15145_ASBOX
15146 ) |
15147 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15148 ;;
15149esac
b4e70030
JB
15150echo "$as_me:$LINENO: checking for $ac_header" >&5
15151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15152if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15154else
15155 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 15156fi
b4e70030
JB
15157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15158echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15159
9608ab8b 15160fi
bec39cab
AC
15161if test `eval echo '${'$as_ac_Header'}'` = yes; then
15162 cat >>confdefs.h <<_ACEOF
15163#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15164_ACEOF
15165
9608ab8b 15166fi
bec39cab 15167
9608ab8b 15168done
5ee754fc 15169
bec39cab
AC
15170
15171
15172
15173for ac_header in termios.h termio.h sgtty.h
5ee754fc 15174do
bec39cab 15175as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15176if eval "test \"\${$as_ac_Header+set}\" = set"; then
15177 echo "$as_me:$LINENO: checking for $ac_header" >&5
15178echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15179if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15180 echo $ECHO_N "(cached) $ECHO_C" >&6
15181fi
b4e70030
JB
15182echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15183echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15184else
15185 # Is the header compilable?
b4e70030
JB
15186echo "$as_me:$LINENO: checking $ac_header usability" >&5
15187echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15188cat >conftest.$ac_ext <<_ACEOF
15189/* confdefs.h. */
15190_ACEOF
15191cat confdefs.h >>conftest.$ac_ext
15192cat >>conftest.$ac_ext <<_ACEOF
15193/* end confdefs.h. */
15194$ac_includes_default
15195#include <$ac_header>
15196_ACEOF
15197rm -f conftest.$ac_objext
15198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15199 (eval $ac_compile) 2>conftest.er1
15200 ac_status=$?
15201 grep -v '^ *+' conftest.er1 >conftest.err
15202 rm -f conftest.er1
15203 cat conftest.err >&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } &&
b4e70030
JB
15206 { ac_try='test -z "$ac_c_werror_flag"
15207 || test ! -s conftest.err'
bec39cab
AC
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15210 ac_status=$?
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; } &&
15213 { ac_try='test -s conftest.$ac_objext'
15214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15219 ac_header_compiler=yes
15220else
15221 echo "$as_me: failed program was:" >&5
15222sed 's/^/| /' conftest.$ac_ext >&5
15223
b4e70030 15224ac_header_compiler=no
bec39cab
AC
15225fi
15226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15227echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15228echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15229
15230# Is the header present?
b4e70030
JB
15231echo "$as_me:$LINENO: checking $ac_header presence" >&5
15232echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15233cat >conftest.$ac_ext <<_ACEOF
15234/* confdefs.h. */
15235_ACEOF
15236cat confdefs.h >>conftest.$ac_ext
15237cat >>conftest.$ac_ext <<_ACEOF
15238/* end confdefs.h. */
15239#include <$ac_header>
15240_ACEOF
15241if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15243 ac_status=$?
15244 grep -v '^ *+' conftest.er1 >conftest.err
15245 rm -f conftest.er1
15246 cat conftest.err >&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); } >/dev/null; then
15249 if test -s conftest.err; then
15250 ac_cpp_err=$ac_c_preproc_warn_flag
15251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15252 else
15253 ac_cpp_err=
15254 fi
15255else
15256 ac_cpp_err=yes
9608ab8b 15257fi
bec39cab
AC
15258if test -z "$ac_cpp_err"; then
15259 ac_header_preproc=yes
9608ab8b 15260else
bec39cab
AC
15261 echo "$as_me: failed program was:" >&5
15262sed 's/^/| /' conftest.$ac_ext >&5
15263
15264 ac_header_preproc=no
9608ab8b 15265fi
bec39cab 15266rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15267echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15268echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 15269
bec39cab
AC
15270# So? What about this header?
15271case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15272 yes:no: )
15273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15274echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15276echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15277 ac_header_preproc=yes
15278 ;;
15279 no:yes:* )
15280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15281echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15283echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15285echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15287echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15289echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15291echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15292 (
15293 cat <<\_ASBOX
15294## ------------------------------------------ ##
15295## Report this to the AC_PACKAGE_NAME lists. ##
15296## ------------------------------------------ ##
15297_ASBOX
15298 ) |
15299 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15300 ;;
15301esac
b4e70030
JB
15302echo "$as_me:$LINENO: checking for $ac_header" >&5
15303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15304if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15305 echo $ECHO_N "(cached) $ECHO_C" >&6
15306else
15307 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 15308fi
b4e70030
JB
15309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15310echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15311
9608ab8b 15312fi
bec39cab
AC
15313if test `eval echo '${'$as_ac_Header'}'` = yes; then
15314 cat >>confdefs.h <<_ACEOF
15315#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15316_ACEOF
15317
9608ab8b 15318fi
bec39cab 15319
5ee754fc 15320done
9608ab8b 15321
bec39cab
AC
15322
15323for ac_header in unistd.h
78434e59 15324do
bec39cab 15325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15326if eval "test \"\${$as_ac_Header+set}\" = set"; then
15327 echo "$as_me:$LINENO: checking for $ac_header" >&5
15328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15329if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15330 echo $ECHO_N "(cached) $ECHO_C" >&6
15331fi
b4e70030
JB
15332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15333echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15334else
15335 # Is the header compilable?
b4e70030
JB
15336echo "$as_me:$LINENO: checking $ac_header usability" >&5
15337echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15338cat >conftest.$ac_ext <<_ACEOF
15339/* confdefs.h. */
15340_ACEOF
15341cat confdefs.h >>conftest.$ac_ext
15342cat >>conftest.$ac_ext <<_ACEOF
15343/* end confdefs.h. */
15344$ac_includes_default
15345#include <$ac_header>
15346_ACEOF
15347rm -f conftest.$ac_objext
15348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15349 (eval $ac_compile) 2>conftest.er1
15350 ac_status=$?
15351 grep -v '^ *+' conftest.er1 >conftest.err
15352 rm -f conftest.er1
15353 cat conftest.err >&5
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); } &&
b4e70030
JB
15356 { ac_try='test -z "$ac_c_werror_flag"
15357 || test ! -s conftest.err'
bec39cab
AC
15358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15359 (eval $ac_try) 2>&5
15360 ac_status=$?
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); }; } &&
15363 { ac_try='test -s conftest.$ac_objext'
15364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15365 (eval $ac_try) 2>&5
15366 ac_status=$?
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; }; then
15369 ac_header_compiler=yes
15370else
15371 echo "$as_me: failed program was:" >&5
15372sed 's/^/| /' conftest.$ac_ext >&5
15373
b4e70030 15374ac_header_compiler=no
bec39cab
AC
15375fi
15376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15377echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15378echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15379
15380# Is the header present?
b4e70030
JB
15381echo "$as_me:$LINENO: checking $ac_header presence" >&5
15382echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15383cat >conftest.$ac_ext <<_ACEOF
15384/* confdefs.h. */
15385_ACEOF
15386cat confdefs.h >>conftest.$ac_ext
15387cat >>conftest.$ac_ext <<_ACEOF
15388/* end confdefs.h. */
15389#include <$ac_header>
15390_ACEOF
15391if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15393 ac_status=$?
15394 grep -v '^ *+' conftest.er1 >conftest.err
15395 rm -f conftest.er1
15396 cat conftest.err >&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); } >/dev/null; then
15399 if test -s conftest.err; then
15400 ac_cpp_err=$ac_c_preproc_warn_flag
15401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15402 else
15403 ac_cpp_err=
15404 fi
15405else
15406 ac_cpp_err=yes
78434e59 15407fi
bec39cab
AC
15408if test -z "$ac_cpp_err"; then
15409 ac_header_preproc=yes
78434e59 15410else
bec39cab
AC
15411 echo "$as_me: failed program was:" >&5
15412sed 's/^/| /' conftest.$ac_ext >&5
15413
15414 ac_header_preproc=no
78434e59 15415fi
bec39cab 15416rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15417echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15418echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 15419
bec39cab
AC
15420# So? What about this header?
15421case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15422 yes:no: )
15423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15424echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15426echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15427 ac_header_preproc=yes
15428 ;;
15429 no:yes:* )
15430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15431echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15433echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15435echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15437echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15439echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15441echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15442 (
15443 cat <<\_ASBOX
15444## ------------------------------------------ ##
15445## Report this to the AC_PACKAGE_NAME lists. ##
15446## ------------------------------------------ ##
15447_ASBOX
15448 ) |
15449 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15450 ;;
15451esac
b4e70030
JB
15452echo "$as_me:$LINENO: checking for $ac_header" >&5
15453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15454if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15455 echo $ECHO_N "(cached) $ECHO_C" >&6
15456else
15457 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 15458fi
b4e70030
JB
15459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15460echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15461
086ec9eb 15462fi
bec39cab
AC
15463if test `eval echo '${'$as_ac_Header'}'` = yes; then
15464 cat >>confdefs.h <<_ACEOF
15465#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15466_ACEOF
15467
086ec9eb 15468fi
bec39cab 15469
086ec9eb
MK
15470done
15471
9608ab8b 15472
b1d19a62 15473# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
15474# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
15475# think that we don't have <curses.h> if we're using GCC.
15476case $host_os in
b1d19a62 15477 solaris2.[789])
5ee754fc 15478 if test "$GCC" = yes; then
bec39cab
AC
15479
15480cat >>confdefs.h <<\_ACEOF
5ee754fc 15481#define _MSE_INT_H 1
bec39cab 15482_ACEOF
5ee754fc
MK
15483
15484 fi ;;
15485esac
bec39cab
AC
15486
15487
15488
15489
15490for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 15491do
bec39cab 15492as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15493if eval "test \"\${$as_ac_Header+set}\" = set"; then
15494 echo "$as_me:$LINENO: checking for $ac_header" >&5
15495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15496if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15497 echo $ECHO_N "(cached) $ECHO_C" >&6
15498fi
b4e70030
JB
15499echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15500echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15501else
15502 # Is the header compilable?
b4e70030
JB
15503echo "$as_me:$LINENO: checking $ac_header usability" >&5
15504echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15505cat >conftest.$ac_ext <<_ACEOF
15506/* confdefs.h. */
15507_ACEOF
15508cat confdefs.h >>conftest.$ac_ext
15509cat >>conftest.$ac_ext <<_ACEOF
15510/* end confdefs.h. */
15511$ac_includes_default
15512#include <$ac_header>
15513_ACEOF
15514rm -f conftest.$ac_objext
15515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15516 (eval $ac_compile) 2>conftest.er1
15517 ac_status=$?
15518 grep -v '^ *+' conftest.er1 >conftest.err
15519 rm -f conftest.er1
15520 cat conftest.err >&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); } &&
b4e70030
JB
15523 { ac_try='test -z "$ac_c_werror_flag"
15524 || test ! -s conftest.err'
bec39cab
AC
15525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15526 (eval $ac_try) 2>&5
15527 ac_status=$?
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); }; } &&
15530 { ac_try='test -s conftest.$ac_objext'
15531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15532 (eval $ac_try) 2>&5
15533 ac_status=$?
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); }; }; then
15536 ac_header_compiler=yes
15537else
15538 echo "$as_me: failed program was:" >&5
15539sed 's/^/| /' conftest.$ac_ext >&5
15540
b4e70030 15541ac_header_compiler=no
bec39cab
AC
15542fi
15543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15544echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15545echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15546
15547# Is the header present?
b4e70030
JB
15548echo "$as_me:$LINENO: checking $ac_header presence" >&5
15549echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15550cat >conftest.$ac_ext <<_ACEOF
15551/* confdefs.h. */
15552_ACEOF
15553cat confdefs.h >>conftest.$ac_ext
15554cat >>conftest.$ac_ext <<_ACEOF
15555/* end confdefs.h. */
15556#include <$ac_header>
15557_ACEOF
15558if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15560 ac_status=$?
15561 grep -v '^ *+' conftest.er1 >conftest.err
15562 rm -f conftest.er1
15563 cat conftest.err >&5
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); } >/dev/null; then
15566 if test -s conftest.err; then
15567 ac_cpp_err=$ac_c_preproc_warn_flag
15568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15569 else
15570 ac_cpp_err=
15571 fi
15572else
15573 ac_cpp_err=yes
c906108c 15574fi
bec39cab
AC
15575if test -z "$ac_cpp_err"; then
15576 ac_header_preproc=yes
15577else
15578 echo "$as_me: failed program was:" >&5
15579sed 's/^/| /' conftest.$ac_ext >&5
15580
15581 ac_header_preproc=no
c906108c 15582fi
bec39cab 15583rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15584echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15585echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
15586
15587# So? What about this header?
15588case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15589 yes:no: )
15590 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15591echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15593echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15594 ac_header_preproc=yes
15595 ;;
15596 no:yes:* )
15597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15598echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15600echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15601 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15602echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15603 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15604echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15606echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15607 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15608echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15609 (
15610 cat <<\_ASBOX
15611## ------------------------------------------ ##
15612## Report this to the AC_PACKAGE_NAME lists. ##
15613## ------------------------------------------ ##
15614_ASBOX
15615 ) |
15616 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15617 ;;
15618esac
b4e70030
JB
15619echo "$as_me:$LINENO: checking for $ac_header" >&5
15620echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15621if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15622 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 15623else
bec39cab 15624 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 15625fi
b4e70030
JB
15626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15627echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15628
15629fi
15630if test `eval echo '${'$as_ac_Header'}'` = yes; then
15631 cat >>confdefs.h <<_ACEOF
15632#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15633_ACEOF
15634
15635fi
15636
5ee754fc 15637done
c906108c 15638
bec39cab 15639
065a1afc 15640for ac_header in ncurses/term.h
3b78cdbb 15641do
bec39cab 15642as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15643if eval "test \"\${$as_ac_Header+set}\" = set"; then
15644 echo "$as_me:$LINENO: checking for $ac_header" >&5
15645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15646if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15647 echo $ECHO_N "(cached) $ECHO_C" >&6
15648fi
b4e70030
JB
15649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15650echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15651else
15652 # Is the header compilable?
b4e70030
JB
15653echo "$as_me:$LINENO: checking $ac_header usability" >&5
15654echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15655cat >conftest.$ac_ext <<_ACEOF
15656/* confdefs.h. */
15657_ACEOF
15658cat confdefs.h >>conftest.$ac_ext
15659cat >>conftest.$ac_ext <<_ACEOF
15660/* end confdefs.h. */
15661$ac_includes_default
15662#include <$ac_header>
15663_ACEOF
15664rm -f conftest.$ac_objext
15665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15666 (eval $ac_compile) 2>conftest.er1
15667 ac_status=$?
15668 grep -v '^ *+' conftest.er1 >conftest.err
15669 rm -f conftest.er1
15670 cat conftest.err >&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } &&
b4e70030
JB
15673 { ac_try='test -z "$ac_c_werror_flag"
15674 || test ! -s conftest.err'
bec39cab
AC
15675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676 (eval $ac_try) 2>&5
15677 ac_status=$?
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; } &&
15680 { ac_try='test -s conftest.$ac_objext'
15681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682 (eval $ac_try) 2>&5
15683 ac_status=$?
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; }; then
15686 ac_header_compiler=yes
15687else
15688 echo "$as_me: failed program was:" >&5
15689sed 's/^/| /' conftest.$ac_ext >&5
15690
b4e70030 15691ac_header_compiler=no
bec39cab
AC
15692fi
15693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15694echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15695echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15696
15697# Is the header present?
b4e70030
JB
15698echo "$as_me:$LINENO: checking $ac_header presence" >&5
15699echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15700cat >conftest.$ac_ext <<_ACEOF
15701/* confdefs.h. */
15702_ACEOF
15703cat confdefs.h >>conftest.$ac_ext
15704cat >>conftest.$ac_ext <<_ACEOF
15705/* end confdefs.h. */
15706#include <$ac_header>
15707_ACEOF
15708if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15709 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
15716 if test -s conftest.err; then
15717 ac_cpp_err=$ac_c_preproc_warn_flag
15718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15719 else
15720 ac_cpp_err=
15721 fi
15722else
15723 ac_cpp_err=yes
3b78cdbb 15724fi
bec39cab
AC
15725if test -z "$ac_cpp_err"; then
15726 ac_header_preproc=yes
15727else
15728 echo "$as_me: failed program was:" >&5
15729sed 's/^/| /' conftest.$ac_ext >&5
15730
15731 ac_header_preproc=no
3b78cdbb 15732fi
bec39cab 15733rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15734echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15735echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
15736
15737# So? What about this header?
15738case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15739 yes:no: )
15740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15741echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15743echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15744 ac_header_preproc=yes
15745 ;;
15746 no:yes:* )
15747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15748echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15750echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15752echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15754echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15756echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15758echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15759 (
15760 cat <<\_ASBOX
15761## ------------------------------------------ ##
15762## Report this to the AC_PACKAGE_NAME lists. ##
15763## ------------------------------------------ ##
15764_ASBOX
15765 ) |
15766 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15767 ;;
15768esac
b4e70030
JB
15769echo "$as_me:$LINENO: checking for $ac_header" >&5
15770echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15771if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15772 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 15773else
bec39cab
AC
15774 eval "$as_ac_Header=\$ac_header_preproc"
15775fi
b4e70030
JB
15776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15777echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15778
3b78cdbb 15779fi
bec39cab
AC
15780if test `eval echo '${'$as_ac_Header'}'` = yes; then
15781 cat >>confdefs.h <<_ACEOF
15782#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15783_ACEOF
15784
15785fi
15786
3b78cdbb
DA
15787done
15788
c906108c 15789
065a1afc
JB
15790for ac_header in term.h
15791do
15792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15793echo "$as_me:$LINENO: checking for $ac_header" >&5
15794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15795if eval "test \"\${$as_ac_Header+set}\" = set"; then
065a1afc
JB
15796 echo $ECHO_N "(cached) $ECHO_C" >&6
15797else
15798 cat >conftest.$ac_ext <<_ACEOF
15799/* confdefs.h. */
15800_ACEOF
15801cat confdefs.h >>conftest.$ac_ext
15802cat >>conftest.$ac_ext <<_ACEOF
15803/* end confdefs.h. */
15804#if HAVE_CURSES_H
15805# include <curses.h>
15806#endif
15807
15808
15809#include <$ac_header>
15810_ACEOF
15811rm -f conftest.$ac_objext
15812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15813 (eval $ac_compile) 2>conftest.er1
15814 ac_status=$?
15815 grep -v '^ *+' conftest.er1 >conftest.err
15816 rm -f conftest.er1
15817 cat conftest.err >&5
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); } &&
b4e70030
JB
15820 { ac_try='test -z "$ac_c_werror_flag"
15821 || test ! -s conftest.err'
065a1afc
JB
15822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15823 (eval $ac_try) 2>&5
15824 ac_status=$?
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); }; } &&
15827 { ac_try='test -s conftest.$ac_objext'
15828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15829 (eval $ac_try) 2>&5
15830 ac_status=$?
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); }; }; then
15833 eval "$as_ac_Header=yes"
15834else
15835 echo "$as_me: failed program was:" >&5
15836sed 's/^/| /' conftest.$ac_ext >&5
15837
b4e70030 15838eval "$as_ac_Header=no"
065a1afc
JB
15839fi
15840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15841fi
b4e70030
JB
15842echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15843echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
065a1afc
JB
15844if test `eval echo '${'$as_ac_Header'}'` = yes; then
15845 cat >>confdefs.h <<_ACEOF
15846#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15847_ACEOF
15848
15849fi
15850
15851done
15852
15853
d542061a
UW
15854# Check for HP/UX 64-bit shared library support
15855
15856for ac_header in elf_hp.h
15857do
15858as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15859if eval "test \"\${$as_ac_Header+set}\" = set"; then
15860 echo "$as_me:$LINENO: checking for $ac_header" >&5
15861echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15862if eval "test \"\${$as_ac_Header+set}\" = set"; then
15863 echo $ECHO_N "(cached) $ECHO_C" >&6
15864fi
15865echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15866echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15867else
15868 # Is the header compilable?
15869echo "$as_me:$LINENO: checking $ac_header usability" >&5
15870echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15871cat >conftest.$ac_ext <<_ACEOF
15872/* confdefs.h. */
15873_ACEOF
15874cat confdefs.h >>conftest.$ac_ext
15875cat >>conftest.$ac_ext <<_ACEOF
15876/* end confdefs.h. */
15877$ac_includes_default
15878#include <$ac_header>
15879_ACEOF
15880rm -f conftest.$ac_objext
15881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15882 (eval $ac_compile) 2>conftest.er1
15883 ac_status=$?
15884 grep -v '^ *+' conftest.er1 >conftest.err
15885 rm -f conftest.er1
15886 cat conftest.err >&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } &&
15889 { ac_try='test -z "$ac_c_werror_flag"
15890 || test ! -s conftest.err'
15891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892 (eval $ac_try) 2>&5
15893 ac_status=$?
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; } &&
15896 { ac_try='test -s conftest.$ac_objext'
15897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898 (eval $ac_try) 2>&5
15899 ac_status=$?
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); }; }; then
15902 ac_header_compiler=yes
15903else
15904 echo "$as_me: failed program was:" >&5
15905sed 's/^/| /' conftest.$ac_ext >&5
15906
15907ac_header_compiler=no
15908fi
15909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15910echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15911echo "${ECHO_T}$ac_header_compiler" >&6
15912
15913# Is the header present?
15914echo "$as_me:$LINENO: checking $ac_header presence" >&5
15915echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15916cat >conftest.$ac_ext <<_ACEOF
15917/* confdefs.h. */
15918_ACEOF
15919cat confdefs.h >>conftest.$ac_ext
15920cat >>conftest.$ac_ext <<_ACEOF
15921/* end confdefs.h. */
15922#include <$ac_header>
15923_ACEOF
15924if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15926 ac_status=$?
15927 grep -v '^ *+' conftest.er1 >conftest.err
15928 rm -f conftest.er1
15929 cat conftest.err >&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); } >/dev/null; then
15932 if test -s conftest.err; then
15933 ac_cpp_err=$ac_c_preproc_warn_flag
15934 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15935 else
15936 ac_cpp_err=
15937 fi
15938else
15939 ac_cpp_err=yes
15940fi
15941if test -z "$ac_cpp_err"; then
15942 ac_header_preproc=yes
15943else
15944 echo "$as_me: failed program was:" >&5
15945sed 's/^/| /' conftest.$ac_ext >&5
15946
15947 ac_header_preproc=no
15948fi
15949rm -f conftest.err conftest.$ac_ext
15950echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15951echo "${ECHO_T}$ac_header_preproc" >&6
15952
15953# So? What about this header?
15954case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15955 yes:no: )
15956 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15957echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15959echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15960 ac_header_preproc=yes
15961 ;;
15962 no:yes:* )
15963 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15964echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15965 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15966echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15967 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15968echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15970echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15972echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15974echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15975 (
15976 cat <<\_ASBOX
15977## ------------------------------------------ ##
15978## Report this to the AC_PACKAGE_NAME lists. ##
15979## ------------------------------------------ ##
15980_ASBOX
15981 ) |
15982 sed "s/^/$as_me: WARNING: /" >&2
15983 ;;
15984esac
15985echo "$as_me:$LINENO: checking for $ac_header" >&5
15986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15987if eval "test \"\${$as_ac_Header+set}\" = set"; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15989else
15990 eval "$as_ac_Header=\$ac_header_preproc"
15991fi
15992echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15993echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15994
15995fi
15996if test `eval echo '${'$as_ac_Header'}'` = yes; then
15997 cat >>confdefs.h <<_ACEOF
15998#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15999_ACEOF
16000
16001fi
16002
16003done
16004
16005
5ee754fc
MK
16006# FIXME: kettenis/20030102: In most cases we include these
16007# unconditionally, so what's the point in checking these?
bec39cab
AC
16008
16009
16010for ac_header in ctype.h time.h
c906108c 16011do
bec39cab 16012as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
16013if eval "test \"\${$as_ac_Header+set}\" = set"; then
16014 echo "$as_me:$LINENO: checking for $ac_header" >&5
16015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16016if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
16017 echo $ECHO_N "(cached) $ECHO_C" >&6
16018fi
b4e70030
JB
16019echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16020echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
16021else
16022 # Is the header compilable?
b4e70030
JB
16023echo "$as_me:$LINENO: checking $ac_header usability" >&5
16024echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
16025cat >conftest.$ac_ext <<_ACEOF
16026/* confdefs.h. */
16027_ACEOF
16028cat confdefs.h >>conftest.$ac_ext
16029cat >>conftest.$ac_ext <<_ACEOF
16030/* end confdefs.h. */
16031$ac_includes_default
16032#include <$ac_header>
16033_ACEOF
16034rm -f conftest.$ac_objext
16035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16036 (eval $ac_compile) 2>conftest.er1
16037 ac_status=$?
16038 grep -v '^ *+' conftest.er1 >conftest.err
16039 rm -f conftest.er1
16040 cat conftest.err >&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } &&
b4e70030
JB
16043 { ac_try='test -z "$ac_c_werror_flag"
16044 || test ! -s conftest.err'
bec39cab
AC
16045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16046 (eval $ac_try) 2>&5
16047 ac_status=$?
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); }; } &&
16050 { ac_try='test -s conftest.$ac_objext'
16051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16053 ac_status=$?
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; }; then
16056 ac_header_compiler=yes
16057else
16058 echo "$as_me: failed program was:" >&5
16059sed 's/^/| /' conftest.$ac_ext >&5
16060
b4e70030 16061ac_header_compiler=no
bec39cab
AC
16062fi
16063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
16064echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16065echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
16066
16067# Is the header present?
b4e70030
JB
16068echo "$as_me:$LINENO: checking $ac_header presence" >&5
16069echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
16070cat >conftest.$ac_ext <<_ACEOF
16071/* confdefs.h. */
16072_ACEOF
16073cat confdefs.h >>conftest.$ac_ext
16074cat >>conftest.$ac_ext <<_ACEOF
16075/* end confdefs.h. */
16076#include <$ac_header>
16077_ACEOF
16078if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16080 ac_status=$?
16081 grep -v '^ *+' conftest.er1 >conftest.err
16082 rm -f conftest.er1
16083 cat conftest.err >&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); } >/dev/null; then
16086 if test -s conftest.err; then
16087 ac_cpp_err=$ac_c_preproc_warn_flag
16088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16089 else
16090 ac_cpp_err=
16091 fi
16092else
16093 ac_cpp_err=yes
c906108c 16094fi
bec39cab
AC
16095if test -z "$ac_cpp_err"; then
16096 ac_header_preproc=yes
16097else
16098 echo "$as_me: failed program was:" >&5
16099sed 's/^/| /' conftest.$ac_ext >&5
16100
16101 ac_header_preproc=no
c906108c 16102fi
bec39cab 16103rm -f conftest.err conftest.$ac_ext
b4e70030
JB
16104echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16105echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
16106
16107# So? What about this header?
16108case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16109 yes:no: )
16110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16111echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16113echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16114 ac_header_preproc=yes
16115 ;;
16116 no:yes:* )
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16118echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16120echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16122echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16124echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16126echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16128echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
16129 (
16130 cat <<\_ASBOX
16131## ------------------------------------------ ##
16132## Report this to the AC_PACKAGE_NAME lists. ##
16133## ------------------------------------------ ##
16134_ASBOX
16135 ) |
16136 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
16137 ;;
16138esac
b4e70030
JB
16139echo "$as_me:$LINENO: checking for $ac_header" >&5
16140echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16141if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 16142 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 16143else
bec39cab
AC
16144 eval "$as_ac_Header=\$ac_header_preproc"
16145fi
b4e70030
JB
16146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16147echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
16148
16149fi
16150if test `eval echo '${'$as_ac_Header'}'` = yes; then
16151 cat >>confdefs.h <<_ACEOF
16152#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16153_ACEOF
16154
c906108c 16155fi
bec39cab 16156
c906108c
SS
16157done
16158
5ee754fc 16159
4e8d927d 16160# Create a header we can use portably to get the standard integer types.
666ec76f 16161
4e8d927d
DJ
16162
16163inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16164
16165acx_cv_header_stdint=stddef.h
16166acx_cv_header_stdint_kind="(already complete)"
16167for i in stdint.h $inttype_headers; do
16168 unset ac_cv_type_uintptr_t
16169 unset ac_cv_type_uintmax_t
16170 unset ac_cv_type_int_least32_t
16171 unset ac_cv_type_int_fast32_t
16172 unset ac_cv_type_uint64_t
16173 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
16174 echo "$as_me:$LINENO: checking for uintmax_t" >&5
16175echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
4e8d927d 16176if test "${ac_cv_type_uintmax_t+set}" = set; then
bec39cab 16177 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 16178else
bec39cab
AC
16179 cat >conftest.$ac_ext <<_ACEOF
16180/* confdefs.h. */
16181_ACEOF
16182cat confdefs.h >>conftest.$ac_ext
16183cat >>conftest.$ac_ext <<_ACEOF
16184/* end confdefs.h. */
4e8d927d
DJ
16185#include <sys/types.h>
16186#include <$i>
16187
bec39cab
AC
16188int
16189main ()
16190{
b4e70030 16191if ((uintmax_t *) 0)
4e8d927d 16192 return 0;
b4e70030 16193if (sizeof (uintmax_t))
4e8d927d
DJ
16194 return 0;
16195 ;
bec39cab
AC
16196 return 0;
16197}
16198_ACEOF
16199rm -f conftest.$ac_objext
16200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16201 (eval $ac_compile) 2>conftest.er1
16202 ac_status=$?
16203 grep -v '^ *+' conftest.er1 >conftest.err
16204 rm -f conftest.er1
16205 cat conftest.err >&5
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); } &&
b4e70030
JB
16208 { ac_try='test -z "$ac_c_werror_flag"
16209 || test ! -s conftest.err'
bec39cab
AC
16210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211 (eval $ac_try) 2>&5
16212 ac_status=$?
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }; } &&
16215 { ac_try='test -s conftest.$ac_objext'
16216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16217 (eval $ac_try) 2>&5
16218 ac_status=$?
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); }; }; then
4e8d927d 16221 ac_cv_type_uintmax_t=yes
40a7debc 16222else
bec39cab
AC
16223 echo "$as_me: failed program was:" >&5
16224sed 's/^/| /' conftest.$ac_ext >&5
16225
b4e70030 16226ac_cv_type_uintmax_t=no
40a7debc 16227fi
bec39cab 16228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 16229fi
b4e70030
JB
16230echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
16231echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
4e8d927d
DJ
16232if test $ac_cv_type_uintmax_t = yes; then
16233 acx_cv_header_stdint=$i
666ec76f 16234else
4e8d927d 16235 continue
666ec76f 16236fi
4e8d927d 16237
b4e70030
JB
16238 echo "$as_me:$LINENO: checking for uintptr_t" >&5
16239echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d 16240if test "${ac_cv_type_uintptr_t+set}" = set; then
bec39cab
AC
16241 echo $ECHO_N "(cached) $ECHO_C" >&6
16242else
16243 cat >conftest.$ac_ext <<_ACEOF
16244/* confdefs.h. */
16245_ACEOF
16246cat confdefs.h >>conftest.$ac_ext
16247cat >>conftest.$ac_ext <<_ACEOF
16248/* end confdefs.h. */
4e8d927d
DJ
16249#include <sys/types.h>
16250#include <$i>
16251
666ec76f
MK
16252int
16253main ()
16254{
b4e70030 16255if ((uintptr_t *) 0)
4e8d927d 16256 return 0;
b4e70030 16257if (sizeof (uintptr_t))
4e8d927d 16258 return 0;
666ec76f
MK
16259 ;
16260 return 0;
16261}
16262_ACEOF
16263rm -f conftest.$ac_objext
16264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16265 (eval $ac_compile) 2>conftest.er1
16266 ac_status=$?
16267 grep -v '^ *+' conftest.er1 >conftest.err
16268 rm -f conftest.er1
16269 cat conftest.err >&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); } &&
b4e70030
JB
16272 { ac_try='test -z "$ac_c_werror_flag"
16273 || test ! -s conftest.err'
666ec76f
MK
16274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16275 (eval $ac_try) 2>&5
16276 ac_status=$?
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); }; } &&
16279 { ac_try='test -s conftest.$ac_objext'
16280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281 (eval $ac_try) 2>&5
16282 ac_status=$?
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; }; then
4e8d927d 16285 ac_cv_type_uintptr_t=yes
666ec76f
MK
16286else
16287 echo "$as_me: failed program was:" >&5
16288sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 16289
b4e70030 16290ac_cv_type_uintptr_t=no
a3828db0
MK
16291fi
16292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16293fi
b4e70030
JB
16294echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16295echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
16296if test $ac_cv_type_uintptr_t = yes; then
16297 :
a3828db0 16298else
4e8d927d 16299 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 16300fi
4e8d927d 16301
b4e70030
JB
16302 echo "$as_me:$LINENO: checking for int_least32_t" >&5
16303echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
4e8d927d 16304if test "${ac_cv_type_int_least32_t+set}" = set; then
a3828db0
MK
16305 echo $ECHO_N "(cached) $ECHO_C" >&6
16306else
16307 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
16308/* confdefs.h. */
16309_ACEOF
16310cat confdefs.h >>conftest.$ac_ext
16311cat >>conftest.$ac_ext <<_ACEOF
16312/* end confdefs.h. */
4e8d927d
DJ
16313#include <sys/types.h>
16314#include <$i>
16315
bec39cab
AC
16316int
16317main ()
16318{
b4e70030 16319if ((int_least32_t *) 0)
4e8d927d 16320 return 0;
b4e70030 16321if (sizeof (int_least32_t))
4e8d927d 16322 return 0;
bec39cab
AC
16323 ;
16324 return 0;
16325}
16326_ACEOF
16327rm -f conftest.$ac_objext
16328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16329 (eval $ac_compile) 2>conftest.er1
16330 ac_status=$?
16331 grep -v '^ *+' conftest.er1 >conftest.err
16332 rm -f conftest.er1
16333 cat conftest.err >&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); } &&
b4e70030
JB
16336 { ac_try='test -z "$ac_c_werror_flag"
16337 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
16343 { ac_try='test -s conftest.$ac_objext'
16344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345 (eval $ac_try) 2>&5
16346 ac_status=$?
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; }; then
4e8d927d 16349 ac_cv_type_int_least32_t=yes
b9362cc7 16350else
bec39cab
AC
16351 echo "$as_me: failed program was:" >&5
16352sed 's/^/| /' conftest.$ac_ext >&5
16353
b4e70030 16354ac_cv_type_int_least32_t=no
b9362cc7 16355fi
bec39cab 16356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 16357fi
b4e70030
JB
16358echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
16359echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
4e8d927d
DJ
16360if test $ac_cv_type_int_least32_t = yes; then
16361 :
a3828db0 16362else
4e8d927d 16363 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 16364fi
5ee754fc 16365
b4e70030
JB
16366 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
16367echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
4e8d927d 16368if test "${ac_cv_type_int_fast32_t+set}" = set; then
bec39cab
AC
16369 echo $ECHO_N "(cached) $ECHO_C" >&6
16370else
16371 cat >conftest.$ac_ext <<_ACEOF
16372/* confdefs.h. */
16373_ACEOF
16374cat confdefs.h >>conftest.$ac_ext
16375cat >>conftest.$ac_ext <<_ACEOF
16376/* end confdefs.h. */
4e8d927d
DJ
16377#include <sys/types.h>
16378#include <$i>
16379
bec39cab
AC
16380int
16381main ()
16382{
b4e70030 16383if ((int_fast32_t *) 0)
4e8d927d 16384 return 0;
b4e70030 16385if (sizeof (int_fast32_t))
4e8d927d 16386 return 0;
bec39cab
AC
16387 ;
16388 return 0;
16389}
16390_ACEOF
16391rm -f conftest.$ac_objext
16392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16393 (eval $ac_compile) 2>conftest.er1
16394 ac_status=$?
16395 grep -v '^ *+' conftest.er1 >conftest.err
16396 rm -f conftest.er1
16397 cat conftest.err >&5
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); } &&
b4e70030
JB
16400 { ac_try='test -z "$ac_c_werror_flag"
16401 || test ! -s conftest.err'
bec39cab
AC
16402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403 (eval $ac_try) 2>&5
16404 ac_status=$?
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; } &&
16407 { ac_try='test -s conftest.$ac_objext'
16408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409 (eval $ac_try) 2>&5
16410 ac_status=$?
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; }; then
4e8d927d 16413 ac_cv_type_int_fast32_t=yes
c906108c 16414else
bec39cab
AC
16415 echo "$as_me: failed program was:" >&5
16416sed 's/^/| /' conftest.$ac_ext >&5
16417
b4e70030 16418ac_cv_type_int_fast32_t=no
c906108c 16419fi
bec39cab 16420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 16421fi
b4e70030
JB
16422echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
16423echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
4e8d927d
DJ
16424if test $ac_cv_type_int_fast32_t = yes; then
16425 :
a3828db0 16426else
4e8d927d 16427 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 16428fi
4e8d927d 16429
b4e70030
JB
16430 echo "$as_me:$LINENO: checking for uint64_t" >&5
16431echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 16432if test "${ac_cv_type_uint64_t+set}" = set; then
bec39cab
AC
16433 echo $ECHO_N "(cached) $ECHO_C" >&6
16434else
16435 cat >conftest.$ac_ext <<_ACEOF
16436/* confdefs.h. */
16437_ACEOF
16438cat confdefs.h >>conftest.$ac_ext
16439cat >>conftest.$ac_ext <<_ACEOF
16440/* end confdefs.h. */
4e8d927d
DJ
16441#include <sys/types.h>
16442#include <$i>
16443
bec39cab
AC
16444int
16445main ()
16446{
b4e70030 16447if ((uint64_t *) 0)
4e8d927d 16448 return 0;
b4e70030 16449if (sizeof (uint64_t))
4e8d927d 16450 return 0;
bec39cab
AC
16451 ;
16452 return 0;
16453}
16454_ACEOF
16455rm -f conftest.$ac_objext
16456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16457 (eval $ac_compile) 2>conftest.er1
16458 ac_status=$?
16459 grep -v '^ *+' conftest.er1 >conftest.err
16460 rm -f conftest.er1
16461 cat conftest.err >&5
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); } &&
b4e70030
JB
16464 { ac_try='test -z "$ac_c_werror_flag"
16465 || test ! -s conftest.err'
bec39cab
AC
16466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16467 (eval $ac_try) 2>&5
16468 ac_status=$?
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); }; } &&
16471 { ac_try='test -s conftest.$ac_objext'
16472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16473 (eval $ac_try) 2>&5
16474 ac_status=$?
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); }; }; then
4e8d927d 16477 ac_cv_type_uint64_t=yes
c906108c 16478else
bec39cab
AC
16479 echo "$as_me: failed program was:" >&5
16480sed 's/^/| /' conftest.$ac_ext >&5
16481
b4e70030 16482ac_cv_type_uint64_t=no
c906108c 16483fi
bec39cab 16484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 16485fi
b4e70030
JB
16486echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16487echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4e8d927d
DJ
16488if test $ac_cv_type_uint64_t = yes; then
16489 :
a3828db0 16490else
4e8d927d 16491 acx_cv_header_stdint_kind="(lacks uint64_t)"
c906108c
SS
16492fi
16493
4e8d927d
DJ
16494 break
16495done
16496if test "$acx_cv_header_stdint" = stddef.h; then
3841debe 16497 acx_cv_header_stdint_kind="(lacks uintmax_t)"
4e8d927d 16498 for i in stdint.h $inttype_headers; do
3841debe 16499 unset ac_cv_type_uintptr_t
4e8d927d
DJ
16500 unset ac_cv_type_uint32_t
16501 unset ac_cv_type_uint64_t
16502 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
16503 echo "$as_me:$LINENO: checking for uint32_t" >&5
16504echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4e8d927d 16505if test "${ac_cv_type_uint32_t+set}" = set; then
bec39cab 16506 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 16507else
bec39cab
AC
16508 cat >conftest.$ac_ext <<_ACEOF
16509/* confdefs.h. */
16510_ACEOF
16511cat confdefs.h >>conftest.$ac_ext
16512cat >>conftest.$ac_ext <<_ACEOF
16513/* end confdefs.h. */
4e8d927d
DJ
16514#include <sys/types.h>
16515#include <$i>
16516
a3828db0
MK
16517int
16518main ()
16519{
b4e70030 16520if ((uint32_t *) 0)
4e8d927d 16521 return 0;
b4e70030 16522if (sizeof (uint32_t))
4e8d927d 16523 return 0;
a3828db0
MK
16524 ;
16525 return 0;
16526}
bec39cab
AC
16527_ACEOF
16528rm -f conftest.$ac_objext
16529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16530 (eval $ac_compile) 2>conftest.er1
16531 ac_status=$?
16532 grep -v '^ *+' conftest.er1 >conftest.err
16533 rm -f conftest.er1
16534 cat conftest.err >&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); } &&
b4e70030
JB
16537 { ac_try='test -z "$ac_c_werror_flag"
16538 || test ! -s conftest.err'
bec39cab
AC
16539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540 (eval $ac_try) 2>&5
16541 ac_status=$?
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; } &&
16544 { ac_try='test -s conftest.$ac_objext'
16545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16546 (eval $ac_try) 2>&5
16547 ac_status=$?
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); }; }; then
4e8d927d 16550 ac_cv_type_uint32_t=yes
bce58c09 16551else
bec39cab
AC
16552 echo "$as_me: failed program was:" >&5
16553sed 's/^/| /' conftest.$ac_ext >&5
16554
b4e70030 16555ac_cv_type_uint32_t=no
bce58c09 16556fi
bec39cab 16557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 16558fi
b4e70030
JB
16559echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
16560echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4e8d927d
DJ
16561if test $ac_cv_type_uint32_t = yes; then
16562 acx_cv_header_stdint=$i
a3828db0 16563else
4e8d927d 16564 continue
e5a7de23 16565fi
4e8d927d 16566
b4e70030
JB
16567 echo "$as_me:$LINENO: checking for uint64_t" >&5
16568echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 16569if test "${ac_cv_type_uint64_t+set}" = set; then
e5a7de23
EZ
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16571else
16572 cat >conftest.$ac_ext <<_ACEOF
16573/* confdefs.h. */
16574_ACEOF
16575cat confdefs.h >>conftest.$ac_ext
16576cat >>conftest.$ac_ext <<_ACEOF
16577/* end confdefs.h. */
4e8d927d
DJ
16578#include <sys/types.h>
16579#include <$i>
16580
e5a7de23
EZ
16581int
16582main ()
16583{
b4e70030 16584if ((uint64_t *) 0)
4e8d927d 16585 return 0;
b4e70030 16586if (sizeof (uint64_t))
4e8d927d 16587 return 0;
e5a7de23
EZ
16588 ;
16589 return 0;
16590}
16591_ACEOF
16592rm -f conftest.$ac_objext
16593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16594 (eval $ac_compile) 2>conftest.er1
16595 ac_status=$?
16596 grep -v '^ *+' conftest.er1 >conftest.err
16597 rm -f conftest.er1
16598 cat conftest.err >&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); } &&
b4e70030
JB
16601 { ac_try='test -z "$ac_c_werror_flag"
16602 || test ! -s conftest.err'
e5a7de23
EZ
16603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604 (eval $ac_try) 2>&5
16605 ac_status=$?
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; } &&
16608 { ac_try='test -s conftest.$ac_objext'
16609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610 (eval $ac_try) 2>&5
16611 ac_status=$?
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; }; then
4e8d927d 16614 ac_cv_type_uint64_t=yes
e5a7de23
EZ
16615else
16616 echo "$as_me: failed program was:" >&5
16617sed 's/^/| /' conftest.$ac_ext >&5
16618
b4e70030 16619ac_cv_type_uint64_t=no
e5a7de23
EZ
16620fi
16621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16622fi
b4e70030
JB
16623echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16624echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3841debe
DJ
16625
16626 echo "$as_me:$LINENO: checking for uintptr_t" >&5
16627echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
16628if test "${ac_cv_type_uintptr_t+set}" = set; then
16629 echo $ECHO_N "(cached) $ECHO_C" >&6
16630else
16631 cat >conftest.$ac_ext <<_ACEOF
16632/* confdefs.h. */
16633_ACEOF
16634cat confdefs.h >>conftest.$ac_ext
16635cat >>conftest.$ac_ext <<_ACEOF
16636/* end confdefs.h. */
16637#include <sys/types.h>
16638#include <$i>
16639
16640int
16641main ()
16642{
16643if ((uintptr_t *) 0)
16644 return 0;
16645if (sizeof (uintptr_t))
16646 return 0;
16647 ;
16648 return 0;
16649}
16650_ACEOF
16651rm -f conftest.$ac_objext
16652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16653 (eval $ac_compile) 2>conftest.er1
16654 ac_status=$?
16655 grep -v '^ *+' conftest.er1 >conftest.err
16656 rm -f conftest.er1
16657 cat conftest.err >&5
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); } &&
16660 { ac_try='test -z "$ac_c_werror_flag"
16661 || test ! -s conftest.err'
16662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16663 (eval $ac_try) 2>&5
16664 ac_status=$?
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; } &&
16667 { ac_try='test -s conftest.$ac_objext'
16668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669 (eval $ac_try) 2>&5
16670 ac_status=$?
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; }; then
16673 ac_cv_type_uintptr_t=yes
e5a7de23 16674else
3841debe
DJ
16675 echo "$as_me: failed program was:" >&5
16676sed 's/^/| /' conftest.$ac_ext >&5
16677
16678ac_cv_type_uintptr_t=no
4e8d927d 16679fi
3841debe
DJ
16680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16681fi
16682echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16683echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
e5a7de23 16684
4e8d927d
DJ
16685 break
16686 done
e5a7de23 16687fi
4e8d927d
DJ
16688if test "$acx_cv_header_stdint" = stddef.h; then
16689 acx_cv_header_stdint_kind="(u_intXX_t style)"
16690 for i in sys/types.h $inttype_headers; do
16691 unset ac_cv_type_u_int32_t
16692 unset ac_cv_type_u_int64_t
16693 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
b4e70030
JB
16694 echo "$as_me:$LINENO: checking for u_int32_t" >&5
16695echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4e8d927d 16696if test "${ac_cv_type_u_int32_t+set}" = set; then
e5a7de23
EZ
16697 echo $ECHO_N "(cached) $ECHO_C" >&6
16698else
16699 cat >conftest.$ac_ext <<_ACEOF
16700/* confdefs.h. */
16701_ACEOF
16702cat confdefs.h >>conftest.$ac_ext
16703cat >>conftest.$ac_ext <<_ACEOF
16704/* end confdefs.h. */
4e8d927d
DJ
16705#include <sys/types.h>
16706#include <$i>
16707
e5a7de23
EZ
16708int
16709main ()
16710{
b4e70030 16711if ((u_int32_t *) 0)
4e8d927d 16712 return 0;
b4e70030 16713if (sizeof (u_int32_t))
4e8d927d 16714 return 0;
e5a7de23
EZ
16715 ;
16716 return 0;
16717}
16718_ACEOF
16719rm -f conftest.$ac_objext
16720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16721 (eval $ac_compile) 2>conftest.er1
16722 ac_status=$?
16723 grep -v '^ *+' conftest.er1 >conftest.err
16724 rm -f conftest.er1
16725 cat conftest.err >&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); } &&
b4e70030
JB
16728 { ac_try='test -z "$ac_c_werror_flag"
16729 || test ! -s conftest.err'
e5a7de23
EZ
16730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731 (eval $ac_try) 2>&5
16732 ac_status=$?
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; } &&
16735 { ac_try='test -s conftest.$ac_objext'
16736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737 (eval $ac_try) 2>&5
16738 ac_status=$?
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; }; then
4e8d927d 16741 ac_cv_type_u_int32_t=yes
e5a7de23
EZ
16742else
16743 echo "$as_me: failed program was:" >&5
16744sed 's/^/| /' conftest.$ac_ext >&5
16745
b4e70030 16746ac_cv_type_u_int32_t=no
e5a7de23
EZ
16747fi
16748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16749fi
b4e70030
JB
16750echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
16751echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4e8d927d
DJ
16752if test $ac_cv_type_u_int32_t = yes; then
16753 acx_cv_header_stdint=$i
e5a7de23 16754else
4e8d927d 16755 continue
a3828db0 16756fi
5ee754fc 16757
b4e70030
JB
16758 echo "$as_me:$LINENO: checking for u_int64_t" >&5
16759echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
4e8d927d 16760if test "${ac_cv_type_u_int64_t+set}" = set; then
bec39cab
AC
16761 echo $ECHO_N "(cached) $ECHO_C" >&6
16762else
16763 cat >conftest.$ac_ext <<_ACEOF
16764/* confdefs.h. */
16765_ACEOF
16766cat confdefs.h >>conftest.$ac_ext
16767cat >>conftest.$ac_ext <<_ACEOF
16768/* end confdefs.h. */
4e8d927d
DJ
16769#include <sys/types.h>
16770#include <$i>
16771
bec39cab
AC
16772int
16773main ()
16774{
b4e70030 16775if ((u_int64_t *) 0)
4e8d927d 16776 return 0;
b4e70030 16777if (sizeof (u_int64_t))
4e8d927d 16778 return 0;
bec39cab
AC
16779 ;
16780 return 0;
16781}
16782_ACEOF
a3828db0
MK
16783rm -f conftest.$ac_objext
16784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16785 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
16786 ac_status=$?
16787 grep -v '^ *+' conftest.er1 >conftest.err
16788 rm -f conftest.er1
16789 cat conftest.err >&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } &&
b4e70030
JB
16792 { ac_try='test -z "$ac_c_werror_flag"
16793 || test ! -s conftest.err'
bec39cab
AC
16794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795 (eval $ac_try) 2>&5
16796 ac_status=$?
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; } &&
a3828db0 16799 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
16800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16801 (eval $ac_try) 2>&5
16802 ac_status=$?
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; }; then
4e8d927d 16805 ac_cv_type_u_int64_t=yes
bec39cab
AC
16806else
16807 echo "$as_me: failed program was:" >&5
16808sed 's/^/| /' conftest.$ac_ext >&5
16809
b4e70030 16810ac_cv_type_u_int64_t=no
4e8d927d 16811fi
4e8d927d
DJ
16812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16813fi
b4e70030
JB
16814echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16815echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
4e8d927d
DJ
16816
16817 break
16818 done
16819fi
16820if test "$acx_cv_header_stdint" = stddef.h; then
16821 acx_cv_header_stdint_kind="(using manual detection)"
16822fi
16823
16824test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16825test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16826test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16827test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16828test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16829
16830# ----------------- Summarize what we found so far
16831
b4e70030
JB
16832echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
16833echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
4e8d927d 16834
b4e70030 16835case `$as_basename gdb_stdint.h ||
4e8d927d
DJ
16836$as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
16837 Xgdb_stdint.h : 'X\(//\)$' \| \
b4e70030
JB
16838 Xgdb_stdint.h : 'X\(/\)$' \| \
16839 . : '\(.\)' 2>/dev/null ||
4e8d927d 16840echo X/gdb_stdint.h |
b4e70030
JB
16841 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16842 /^X\/\(\/\/\)$/{ s//\1/; q; }
16843 /^X\/\(\/\).*/{ s//\1/; q; }
16844 s/.*/./; q'` in
4e8d927d
DJ
16845 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
16846echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16847 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
16848echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16849 *) ;;
16850esac
16851
b4e70030
JB
16852echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16853echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
4e8d927d
DJ
16854
16855# ----------------- done included file, check C basic types --------
16856
16857# Lacking an uintptr_t? Test size of void *
16858case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
b4e70030
JB
16859 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
16860echo $ECHO_N "checking for void *... $ECHO_C" >&6
4e8d927d
DJ
16861if test "${ac_cv_type_void_p+set}" = set; then
16862 echo $ECHO_N "(cached) $ECHO_C" >&6
16863else
16864 cat >conftest.$ac_ext <<_ACEOF
a3828db0 16865/* confdefs.h. */
bec39cab
AC
16866_ACEOF
16867cat confdefs.h >>conftest.$ac_ext
16868cat >>conftest.$ac_ext <<_ACEOF
16869/* end confdefs.h. */
a3828db0 16870$ac_includes_default
bec39cab
AC
16871int
16872main ()
16873{
b4e70030 16874if ((void * *) 0)
4e8d927d 16875 return 0;
b4e70030 16876if (sizeof (void *))
4e8d927d 16877 return 0;
bec39cab
AC
16878 ;
16879 return 0;
16880}
16881_ACEOF
a3828db0
MK
16882rm -f conftest.$ac_objext
16883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16884 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
16885 ac_status=$?
16886 grep -v '^ *+' conftest.er1 >conftest.err
16887 rm -f conftest.er1
16888 cat conftest.err >&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); } &&
b4e70030
JB
16891 { ac_try='test -z "$ac_c_werror_flag"
16892 || test ! -s conftest.err'
bec39cab
AC
16893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16894 (eval $ac_try) 2>&5
16895 ac_status=$?
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); }; } &&
a3828db0 16898 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
16899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16900 (eval $ac_try) 2>&5
16901 ac_status=$?
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); }; }; then
4e8d927d 16904 ac_cv_type_void_p=yes
46711df8 16905else
bec39cab
AC
16906 echo "$as_me: failed program was:" >&5
16907sed 's/^/| /' conftest.$ac_ext >&5
16908
b4e70030 16909ac_cv_type_void_p=no
a3828db0 16910fi
4e8d927d 16911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d3ea6809 16912fi
b4e70030
JB
16913echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16914echo "${ECHO_T}$ac_cv_type_void_p" >&6
d3ea6809 16915
b4e70030
JB
16916echo "$as_me:$LINENO: checking size of void *" >&5
16917echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4e8d927d 16918if test "${ac_cv_sizeof_void_p+set}" = set; then
d3ea6809
MM
16919 echo $ECHO_N "(cached) $ECHO_C" >&6
16920else
4e8d927d 16921 if test "$ac_cv_type_void_p" = yes; then
b4e70030 16922 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
16923 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16924 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16925 # This bug is HP SR number 8606223364.
16926 if test "$cross_compiling" = yes; then
16927 # Depending upon the size, compute the lo and hi bounds.
16928cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
16929/* confdefs.h. */
16930_ACEOF
16931cat confdefs.h >>conftest.$ac_ext
16932cat >>conftest.$ac_ext <<_ACEOF
16933/* end confdefs.h. */
16934$ac_includes_default
16935int
16936main ()
16937{
b4e70030 16938static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4e8d927d
DJ
16939test_array [0] = 0
16940
d3ea6809
MM
16941 ;
16942 return 0;
16943}
16944_ACEOF
16945rm -f conftest.$ac_objext
16946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16947 (eval $ac_compile) 2>conftest.er1
16948 ac_status=$?
16949 grep -v '^ *+' conftest.er1 >conftest.err
16950 rm -f conftest.er1
16951 cat conftest.err >&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } &&
b4e70030
JB
16954 { ac_try='test -z "$ac_c_werror_flag"
16955 || test ! -s conftest.err'
d3ea6809
MM
16956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957 (eval $ac_try) 2>&5
16958 ac_status=$?
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; } &&
16961 { ac_try='test -s conftest.$ac_objext'
16962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963 (eval $ac_try) 2>&5
16964 ac_status=$?
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); }; }; then
4e8d927d
DJ
16967 ac_lo=0 ac_mid=0
16968 while :; do
16969 cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
16970/* confdefs.h. */
16971_ACEOF
16972cat confdefs.h >>conftest.$ac_ext
16973cat >>conftest.$ac_ext <<_ACEOF
16974/* end confdefs.h. */
16975$ac_includes_default
16976int
16977main ()
16978{
b4e70030 16979static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
16980test_array [0] = 0
16981
d3ea6809
MM
16982 ;
16983 return 0;
16984}
16985_ACEOF
16986rm -f conftest.$ac_objext
16987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16988 (eval $ac_compile) 2>conftest.er1
16989 ac_status=$?
16990 grep -v '^ *+' conftest.er1 >conftest.err
16991 rm -f conftest.er1
16992 cat conftest.err >&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } &&
b4e70030
JB
16995 { ac_try='test -z "$ac_c_werror_flag"
16996 || test ! -s conftest.err'
d3ea6809
MM
16997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16998 (eval $ac_try) 2>&5
16999 ac_status=$?
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); }; } &&
17002 { ac_try='test -s conftest.$ac_objext'
17003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17004 (eval $ac_try) 2>&5
17005 ac_status=$?
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); }; }; then
4e8d927d 17008 ac_hi=$ac_mid; break
d3ea6809
MM
17009else
17010 echo "$as_me: failed program was:" >&5
17011sed 's/^/| /' conftest.$ac_ext >&5
17012
b4e70030
JB
17013ac_lo=`expr $ac_mid + 1`
17014 if test $ac_lo -le $ac_mid; then
17015 ac_lo= ac_hi=
17016 break
17017 fi
17018 ac_mid=`expr 2 '*' $ac_mid + 1`
a3828db0 17019fi
4e8d927d
DJ
17020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17021 done
bec39cab 17022else
4e8d927d
DJ
17023 echo "$as_me: failed program was:" >&5
17024sed 's/^/| /' conftest.$ac_ext >&5
17025
b4e70030 17026cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17027/* confdefs.h. */
17028_ACEOF
17029cat confdefs.h >>conftest.$ac_ext
17030cat >>conftest.$ac_ext <<_ACEOF
17031/* end confdefs.h. */
4e8d927d 17032$ac_includes_default
bec39cab
AC
17033int
17034main ()
17035{
b4e70030 17036static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4e8d927d
DJ
17037test_array [0] = 0
17038
bec39cab
AC
17039 ;
17040 return 0;
17041}
17042_ACEOF
a3828db0
MK
17043rm -f conftest.$ac_objext
17044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17045 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
17046 ac_status=$?
17047 grep -v '^ *+' conftest.er1 >conftest.err
17048 rm -f conftest.er1
17049 cat conftest.err >&5
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); } &&
b4e70030
JB
17052 { ac_try='test -z "$ac_c_werror_flag"
17053 || test ! -s conftest.err'
bec39cab
AC
17054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17055 (eval $ac_try) 2>&5
17056 ac_status=$?
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); }; } &&
a3828db0 17059 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
17060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17061 (eval $ac_try) 2>&5
17062 ac_status=$?
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; }; then
4e8d927d
DJ
17065 ac_hi=-1 ac_mid=-1
17066 while :; do
17067 cat >conftest.$ac_ext <<_ACEOF
f9f87d2c
MK
17068/* confdefs.h. */
17069_ACEOF
17070cat confdefs.h >>conftest.$ac_ext
17071cat >>conftest.$ac_ext <<_ACEOF
17072/* end confdefs.h. */
4e8d927d 17073$ac_includes_default
f9f87d2c
MK
17074int
17075main ()
17076{
b4e70030 17077static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4e8d927d
DJ
17078test_array [0] = 0
17079
f9f87d2c
MK
17080 ;
17081 return 0;
17082}
17083_ACEOF
17084rm -f conftest.$ac_objext
17085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17086 (eval $ac_compile) 2>conftest.er1
17087 ac_status=$?
17088 grep -v '^ *+' conftest.er1 >conftest.err
17089 rm -f conftest.er1
17090 cat conftest.err >&5
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); } &&
b4e70030
JB
17093 { ac_try='test -z "$ac_c_werror_flag"
17094 || test ! -s conftest.err'
f9f87d2c
MK
17095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17096 (eval $ac_try) 2>&5
17097 ac_status=$?
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); }; } &&
17100 { ac_try='test -s conftest.$ac_objext'
17101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17102 (eval $ac_try) 2>&5
17103 ac_status=$?
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); }; }; then
4e8d927d 17106 ac_lo=$ac_mid; break
f9f87d2c
MK
17107else
17108 echo "$as_me: failed program was:" >&5
17109sed 's/^/| /' conftest.$ac_ext >&5
17110
b4e70030
JB
17111ac_hi=`expr '(' $ac_mid ')' - 1`
17112 if test $ac_mid -le $ac_hi; then
17113 ac_lo= ac_hi=
17114 break
17115 fi
17116 ac_mid=`expr 2 '*' $ac_mid`
f9f87d2c 17117fi
4e8d927d
DJ
17118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17119 done
17120else
17121 echo "$as_me: failed program was:" >&5
17122sed 's/^/| /' conftest.$ac_ext >&5
f9f87d2c 17123
b4e70030 17124ac_lo= ac_hi=
4e8d927d 17125fi
4e8d927d 17126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3be60c3d 17127fi
4e8d927d
DJ
17128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17129# Binary search between lo and hi bounds.
17130while test "x$ac_lo" != "x$ac_hi"; do
17131 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3be60c3d
MK
17132 cat >conftest.$ac_ext <<_ACEOF
17133/* confdefs.h. */
17134_ACEOF
17135cat confdefs.h >>conftest.$ac_ext
17136cat >>conftest.$ac_ext <<_ACEOF
17137/* end confdefs.h. */
4e8d927d 17138$ac_includes_default
3be60c3d
MK
17139int
17140main ()
17141{
b4e70030 17142static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
17143test_array [0] = 0
17144
3be60c3d
MK
17145 ;
17146 return 0;
17147}
17148_ACEOF
17149rm -f conftest.$ac_objext
17150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17151 (eval $ac_compile) 2>conftest.er1
17152 ac_status=$?
17153 grep -v '^ *+' conftest.er1 >conftest.err
17154 rm -f conftest.er1
17155 cat conftest.err >&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } &&
b4e70030
JB
17158 { ac_try='test -z "$ac_c_werror_flag"
17159 || test ! -s conftest.err'
3be60c3d
MK
17160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161 (eval $ac_try) 2>&5
17162 ac_status=$?
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; } &&
17165 { ac_try='test -s conftest.$ac_objext'
17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167 (eval $ac_try) 2>&5
17168 ac_status=$?
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; }; then
4e8d927d 17171 ac_hi=$ac_mid
3be60c3d
MK
17172else
17173 echo "$as_me: failed program was:" >&5
17174sed 's/^/| /' conftest.$ac_ext >&5
17175
b4e70030 17176ac_lo=`expr '(' $ac_mid ')' + 1`
3be60c3d 17177fi
4e8d927d
DJ
17178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17179done
17180case $ac_lo in
17181?*) ac_cv_sizeof_void_p=$ac_lo;;
b4e70030 17182'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 17183See \`config.log' for more details." >&5
b4e70030 17184echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 17185See \`config.log' for more details." >&2;}
b4e70030 17186 { (exit 1); exit 1; }; } ;;
4e8d927d 17187esac
b4e70030
JB
17188else
17189 if test "$cross_compiling" = yes; then
17190 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17191See \`config.log' for more details." >&5
17192echo "$as_me: error: cannot run test program while cross compiling
17193See \`config.log' for more details." >&2;}
17194 { (exit 1); exit 1; }; }
4e8d927d
DJ
17195else
17196 cat >conftest.$ac_ext <<_ACEOF
17197/* confdefs.h. */
3be60c3d 17198_ACEOF
4e8d927d
DJ
17199cat confdefs.h >>conftest.$ac_ext
17200cat >>conftest.$ac_ext <<_ACEOF
17201/* end confdefs.h. */
17202$ac_includes_default
b4e70030
JB
17203long longval () { return (long) (sizeof (void *)); }
17204unsigned long ulongval () { return (long) (sizeof (void *)); }
4e8d927d
DJ
17205#include <stdio.h>
17206#include <stdlib.h>
17207int
17208main ()
17209{
17210
17211 FILE *f = fopen ("conftest.val", "w");
17212 if (! f)
b4e70030
JB
17213 exit (1);
17214 if (((long) (sizeof (void *))) < 0)
4e8d927d 17215 {
b4e70030
JB
17216 long i = longval ();
17217 if (i != ((long) (sizeof (void *))))
17218 exit (1);
4e8d927d
DJ
17219 fprintf (f, "%ld\n", i);
17220 }
17221 else
17222 {
b4e70030
JB
17223 unsigned long i = ulongval ();
17224 if (i != ((long) (sizeof (void *))))
17225 exit (1);
4e8d927d
DJ
17226 fprintf (f, "%lu\n", i);
17227 }
b4e70030 17228 exit (ferror (f) || fclose (f) != 0);
3be60c3d 17229
4e8d927d
DJ
17230 ;
17231 return 0;
17232}
17233_ACEOF
17234rm -f conftest$ac_exeext
17235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17236 (eval $ac_link) 2>&5
17237 ac_status=$?
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17241 (eval $ac_try) 2>&5
17242 ac_status=$?
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; }; then
17245 ac_cv_sizeof_void_p=`cat conftest.val`
17246else
17247 echo "$as_me: program exited with status $ac_status" >&5
17248echo "$as_me: failed program was:" >&5
17249sed 's/^/| /' conftest.$ac_ext >&5
3be60c3d 17250
4e8d927d 17251( exit $ac_status )
b4e70030 17252{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 17253See \`config.log' for more details." >&5
b4e70030 17254echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 17255See \`config.log' for more details." >&2;}
b4e70030
JB
17256 { (exit 1); exit 1; }; }
17257fi
17258rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f9f87d2c 17259fi
4e8d927d
DJ
17260fi
17261rm -f conftest.val
17262else
17263 ac_cv_sizeof_void_p=0
17264fi
17265fi
b4e70030
JB
17266echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
17267echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4e8d927d
DJ
17268cat >>confdefs.h <<_ACEOF
17269#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17270_ACEOF
f9f87d2c 17271
4e8d927d
DJ
17272 ;;
17273esac
46711df8 17274
4e8d927d
DJ
17275# Lacking an uint64_t? Test size of long
17276case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
b4e70030
JB
17277 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
17278echo $ECHO_N "checking for long... $ECHO_C" >&6
4e8d927d 17279if test "${ac_cv_type_long+set}" = set; then
bec39cab 17280 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 17281else
bec39cab
AC
17282 cat >conftest.$ac_ext <<_ACEOF
17283/* confdefs.h. */
17284_ACEOF
17285cat confdefs.h >>conftest.$ac_ext
17286cat >>conftest.$ac_ext <<_ACEOF
17287/* end confdefs.h. */
4e8d927d 17288$ac_includes_default
bec39cab 17289int
46711df8
MK
17290main ()
17291{
b4e70030 17292if ((long *) 0)
4e8d927d 17293 return 0;
b4e70030 17294if (sizeof (long))
4e8d927d 17295 return 0;
a3828db0
MK
17296 ;
17297 return 0;
46711df8 17298}
bec39cab 17299_ACEOF
a3828db0
MK
17300rm -f conftest.$ac_objext
17301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17302 (eval $ac_compile) 2>conftest.er1
17303 ac_status=$?
17304 grep -v '^ *+' conftest.er1 >conftest.err
17305 rm -f conftest.er1
17306 cat conftest.err >&5
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); } &&
b4e70030
JB
17309 { ac_try='test -z "$ac_c_werror_flag"
17310 || test ! -s conftest.err'
a3828db0
MK
17311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312 (eval $ac_try) 2>&5
bec39cab
AC
17313 ac_status=$?
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
17315 (exit $ac_status); }; } &&
17316 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
17317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318 (eval $ac_try) 2>&5
17319 ac_status=$?
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; }; then
4e8d927d 17322 ac_cv_type_long=yes
46711df8 17323else
a3828db0 17324 echo "$as_me: failed program was:" >&5
bec39cab
AC
17325sed 's/^/| /' conftest.$ac_ext >&5
17326
b4e70030 17327ac_cv_type_long=no
46711df8 17328fi
4e8d927d 17329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 17330fi
b4e70030
JB
17331echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17332echo "${ECHO_T}$ac_cv_type_long" >&6
46711df8 17333
b4e70030
JB
17334echo "$as_me:$LINENO: checking size of long" >&5
17335echo $ECHO_N "checking size of long... $ECHO_C" >&6
4e8d927d 17336if test "${ac_cv_sizeof_long+set}" = set; then
bec39cab 17337 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 17338else
4e8d927d 17339 if test "$ac_cv_type_long" = yes; then
b4e70030 17340 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
17341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17343 # This bug is HP SR number 8606223364.
17344 if test "$cross_compiling" = yes; then
17345 # Depending upon the size, compute the lo and hi bounds.
17346cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17347/* confdefs.h. */
17348_ACEOF
17349cat confdefs.h >>conftest.$ac_ext
17350cat >>conftest.$ac_ext <<_ACEOF
17351/* end confdefs.h. */
4e8d927d 17352$ac_includes_default
4e8d927d
DJ
17353int
17354main ()
17355{
b4e70030 17356static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4e8d927d 17357test_array [0] = 0
a3828db0 17358
4e8d927d
DJ
17359 ;
17360 return 0;
17361}
bec39cab
AC
17362_ACEOF
17363rm -f conftest.$ac_objext
17364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17365 (eval $ac_compile) 2>conftest.er1
17366 ac_status=$?
17367 grep -v '^ *+' conftest.er1 >conftest.err
17368 rm -f conftest.er1
17369 cat conftest.err >&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } &&
b4e70030
JB
17372 { ac_try='test -z "$ac_c_werror_flag"
17373 || test ! -s conftest.err'
bec39cab
AC
17374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375 (eval $ac_try) 2>&5
17376 ac_status=$?
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); }; } &&
17379 { ac_try='test -s conftest.$ac_objext'
17380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381 (eval $ac_try) 2>&5
17382 ac_status=$?
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; }; then
4e8d927d
DJ
17385 ac_lo=0 ac_mid=0
17386 while :; do
17387 cat >conftest.$ac_ext <<_ACEOF
17388/* confdefs.h. */
17389_ACEOF
17390cat confdefs.h >>conftest.$ac_ext
17391cat >>conftest.$ac_ext <<_ACEOF
17392/* end confdefs.h. */
17393$ac_includes_default
4e8d927d
DJ
17394int
17395main ()
17396{
b4e70030 17397static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
17398test_array [0] = 0
17399
17400 ;
17401 return 0;
17402}
17403_ACEOF
17404rm -f conftest.$ac_objext
17405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17406 (eval $ac_compile) 2>conftest.er1
17407 ac_status=$?
17408 grep -v '^ *+' conftest.er1 >conftest.err
17409 rm -f conftest.er1
17410 cat conftest.err >&5
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); } &&
b4e70030
JB
17413 { ac_try='test -z "$ac_c_werror_flag"
17414 || test ! -s conftest.err'
4e8d927d
DJ
17415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17416 (eval $ac_try) 2>&5
17417 ac_status=$?
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; } &&
17420 { ac_try='test -s conftest.$ac_objext'
17421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17422 (eval $ac_try) 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; }; then
17426 ac_hi=$ac_mid; break
17427else
17428 echo "$as_me: failed program was:" >&5
17429sed 's/^/| /' conftest.$ac_ext >&5
17430
b4e70030
JB
17431ac_lo=`expr $ac_mid + 1`
17432 if test $ac_lo -le $ac_mid; then
17433 ac_lo= ac_hi=
17434 break
17435 fi
17436 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 17437fi
4e8d927d
DJ
17438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17439 done
17440else
17441 echo "$as_me: failed program was:" >&5
17442sed 's/^/| /' conftest.$ac_ext >&5
17443
b4e70030 17444cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
17445/* confdefs.h. */
17446_ACEOF
17447cat confdefs.h >>conftest.$ac_ext
17448cat >>conftest.$ac_ext <<_ACEOF
17449/* end confdefs.h. */
17450$ac_includes_default
4e8d927d
DJ
17451int
17452main ()
17453{
b4e70030 17454static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4e8d927d
DJ
17455test_array [0] = 0
17456
17457 ;
17458 return 0;
17459}
17460_ACEOF
17461rm -f conftest.$ac_objext
17462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17463 (eval $ac_compile) 2>conftest.er1
17464 ac_status=$?
17465 grep -v '^ *+' conftest.er1 >conftest.err
17466 rm -f conftest.er1
17467 cat conftest.err >&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } &&
b4e70030
JB
17470 { ac_try='test -z "$ac_c_werror_flag"
17471 || test ! -s conftest.err'
4e8d927d
DJ
17472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473 (eval $ac_try) 2>&5
17474 ac_status=$?
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; } &&
17477 { ac_try='test -s conftest.$ac_objext'
17478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479 (eval $ac_try) 2>&5
17480 ac_status=$?
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; }; then
17483 ac_hi=-1 ac_mid=-1
17484 while :; do
17485 cat >conftest.$ac_ext <<_ACEOF
17486/* confdefs.h. */
17487_ACEOF
17488cat confdefs.h >>conftest.$ac_ext
17489cat >>conftest.$ac_ext <<_ACEOF
17490/* end confdefs.h. */
17491$ac_includes_default
4e8d927d
DJ
17492int
17493main ()
17494{
b4e70030 17495static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4e8d927d
DJ
17496test_array [0] = 0
17497
17498 ;
17499 return 0;
17500}
17501_ACEOF
17502rm -f conftest.$ac_objext
17503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17504 (eval $ac_compile) 2>conftest.er1
17505 ac_status=$?
17506 grep -v '^ *+' conftest.er1 >conftest.err
17507 rm -f conftest.er1
17508 cat conftest.err >&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); } &&
b4e70030
JB
17511 { ac_try='test -z "$ac_c_werror_flag"
17512 || test ! -s conftest.err'
4e8d927d
DJ
17513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514 (eval $ac_try) 2>&5
17515 ac_status=$?
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); }; } &&
17518 { ac_try='test -s conftest.$ac_objext'
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; }; then
17524 ac_lo=$ac_mid; break
17525else
17526 echo "$as_me: failed program was:" >&5
17527sed 's/^/| /' conftest.$ac_ext >&5
17528
b4e70030
JB
17529ac_hi=`expr '(' $ac_mid ')' - 1`
17530 if test $ac_mid -le $ac_hi; then
17531 ac_lo= ac_hi=
17532 break
17533 fi
17534 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 17535fi
4e8d927d
DJ
17536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17537 done
17538else
17539 echo "$as_me: failed program was:" >&5
17540sed 's/^/| /' conftest.$ac_ext >&5
17541
b4e70030 17542ac_lo= ac_hi=
4e8d927d 17543fi
4e8d927d
DJ
17544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17545fi
4e8d927d
DJ
17546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17547# Binary search between lo and hi bounds.
17548while test "x$ac_lo" != "x$ac_hi"; do
17549 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17550 cat >conftest.$ac_ext <<_ACEOF
17551/* confdefs.h. */
17552_ACEOF
17553cat confdefs.h >>conftest.$ac_ext
17554cat >>conftest.$ac_ext <<_ACEOF
17555/* end confdefs.h. */
17556$ac_includes_default
4e8d927d
DJ
17557int
17558main ()
17559{
b4e70030 17560static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
17561test_array [0] = 0
17562
17563 ;
17564 return 0;
17565}
17566_ACEOF
17567rm -f conftest.$ac_objext
17568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17569 (eval $ac_compile) 2>conftest.er1
17570 ac_status=$?
17571 grep -v '^ *+' conftest.er1 >conftest.err
17572 rm -f conftest.er1
17573 cat conftest.err >&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); } &&
b4e70030
JB
17576 { ac_try='test -z "$ac_c_werror_flag"
17577 || test ! -s conftest.err'
4e8d927d
DJ
17578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579 (eval $ac_try) 2>&5
17580 ac_status=$?
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; } &&
17583 { ac_try='test -s conftest.$ac_objext'
17584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585 (eval $ac_try) 2>&5
17586 ac_status=$?
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; }; then
17589 ac_hi=$ac_mid
17590else
17591 echo "$as_me: failed program was:" >&5
17592sed 's/^/| /' conftest.$ac_ext >&5
17593
b4e70030 17594ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 17595fi
4e8d927d
DJ
17596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17597done
17598case $ac_lo in
17599?*) ac_cv_sizeof_long=$ac_lo;;
b4e70030 17600'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 17601See \`config.log' for more details." >&5
b4e70030 17602echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 17603See \`config.log' for more details." >&2;}
b4e70030 17604 { (exit 1); exit 1; }; } ;;
4e8d927d 17605esac
b4e70030
JB
17606else
17607 if test "$cross_compiling" = yes; then
17608 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17609See \`config.log' for more details." >&5
17610echo "$as_me: error: cannot run test program while cross compiling
17611See \`config.log' for more details." >&2;}
17612 { (exit 1); exit 1; }; }
4e8d927d
DJ
17613else
17614 cat >conftest.$ac_ext <<_ACEOF
17615/* confdefs.h. */
17616_ACEOF
17617cat confdefs.h >>conftest.$ac_ext
17618cat >>conftest.$ac_ext <<_ACEOF
17619/* end confdefs.h. */
17620$ac_includes_default
b4e70030
JB
17621long longval () { return (long) (sizeof (long)); }
17622unsigned long ulongval () { return (long) (sizeof (long)); }
4e8d927d
DJ
17623#include <stdio.h>
17624#include <stdlib.h>
17625int
17626main ()
17627{
17628
17629 FILE *f = fopen ("conftest.val", "w");
17630 if (! f)
b4e70030
JB
17631 exit (1);
17632 if (((long) (sizeof (long))) < 0)
4e8d927d 17633 {
b4e70030
JB
17634 long i = longval ();
17635 if (i != ((long) (sizeof (long))))
17636 exit (1);
4e8d927d
DJ
17637 fprintf (f, "%ld\n", i);
17638 }
17639 else
17640 {
b4e70030
JB
17641 unsigned long i = ulongval ();
17642 if (i != ((long) (sizeof (long))))
17643 exit (1);
4e8d927d
DJ
17644 fprintf (f, "%lu\n", i);
17645 }
b4e70030 17646 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
17647
17648 ;
17649 return 0;
17650}
17651_ACEOF
17652rm -f conftest$ac_exeext
17653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17654 (eval $ac_link) 2>&5
17655 ac_status=$?
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17660 ac_status=$?
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; }; then
17663 ac_cv_sizeof_long=`cat conftest.val`
17664else
17665 echo "$as_me: program exited with status $ac_status" >&5
17666echo "$as_me: failed program was:" >&5
17667sed 's/^/| /' conftest.$ac_ext >&5
17668
17669( exit $ac_status )
b4e70030 17670{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 17671See \`config.log' for more details." >&5
b4e70030 17672echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 17673See \`config.log' for more details." >&2;}
b4e70030
JB
17674 { (exit 1); exit 1; }; }
17675fi
17676rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 17677fi
4e8d927d
DJ
17678fi
17679rm -f conftest.val
17680else
17681 ac_cv_sizeof_long=0
17682fi
17683fi
b4e70030
JB
17684echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17685echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4e8d927d
DJ
17686cat >>confdefs.h <<_ACEOF
17687#define SIZEOF_LONG $ac_cv_sizeof_long
17688_ACEOF
17689
17690 ;;
17691esac
17692
17693if test $acx_cv_header_stdint = stddef.h; then
17694 # Lacking a good header? Test size of everything and deduce all types.
b4e70030
JB
17695 echo "$as_me:$LINENO: checking for int" >&5
17696echo $ECHO_N "checking for int... $ECHO_C" >&6
4e8d927d
DJ
17697if test "${ac_cv_type_int+set}" = set; then
17698 echo $ECHO_N "(cached) $ECHO_C" >&6
17699else
17700 cat >conftest.$ac_ext <<_ACEOF
17701/* confdefs.h. */
17702_ACEOF
17703cat confdefs.h >>conftest.$ac_ext
17704cat >>conftest.$ac_ext <<_ACEOF
17705/* end confdefs.h. */
17706$ac_includes_default
4e8d927d
DJ
17707int
17708main ()
17709{
b4e70030 17710if ((int *) 0)
4e8d927d 17711 return 0;
b4e70030 17712if (sizeof (int))
4e8d927d
DJ
17713 return 0;
17714 ;
17715 return 0;
17716}
17717_ACEOF
17718rm -f conftest.$ac_objext
17719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17720 (eval $ac_compile) 2>conftest.er1
17721 ac_status=$?
17722 grep -v '^ *+' conftest.er1 >conftest.err
17723 rm -f conftest.er1
17724 cat conftest.err >&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } &&
b4e70030
JB
17727 { ac_try='test -z "$ac_c_werror_flag"
17728 || test ! -s conftest.err'
4e8d927d
DJ
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17731 ac_status=$?
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; } &&
17734 { ac_try='test -s conftest.$ac_objext'
17735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17737 ac_status=$?
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; }; then
17740 ac_cv_type_int=yes
17741else
17742 echo "$as_me: failed program was:" >&5
17743sed 's/^/| /' conftest.$ac_ext >&5
17744
b4e70030 17745ac_cv_type_int=no
4e8d927d 17746fi
4e8d927d
DJ
17747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17748fi
b4e70030
JB
17749echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17750echo "${ECHO_T}$ac_cv_type_int" >&6
4e8d927d 17751
b4e70030
JB
17752echo "$as_me:$LINENO: checking size of int" >&5
17753echo $ECHO_N "checking size of int... $ECHO_C" >&6
4e8d927d
DJ
17754if test "${ac_cv_sizeof_int+set}" = set; then
17755 echo $ECHO_N "(cached) $ECHO_C" >&6
17756else
17757 if test "$ac_cv_type_int" = yes; then
b4e70030 17758 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
17759 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17760 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17761 # This bug is HP SR number 8606223364.
17762 if test "$cross_compiling" = yes; then
17763 # Depending upon the size, compute the lo and hi bounds.
17764cat >conftest.$ac_ext <<_ACEOF
17765/* confdefs.h. */
17766_ACEOF
17767cat confdefs.h >>conftest.$ac_ext
17768cat >>conftest.$ac_ext <<_ACEOF
17769/* end confdefs.h. */
17770$ac_includes_default
4e8d927d
DJ
17771int
17772main ()
17773{
b4e70030 17774static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4e8d927d
DJ
17775test_array [0] = 0
17776
17777 ;
17778 return 0;
17779}
17780_ACEOF
17781rm -f conftest.$ac_objext
17782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17783 (eval $ac_compile) 2>conftest.er1
17784 ac_status=$?
17785 grep -v '^ *+' conftest.er1 >conftest.err
17786 rm -f conftest.er1
17787 cat conftest.err >&5
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); } &&
b4e70030
JB
17790 { ac_try='test -z "$ac_c_werror_flag"
17791 || test ! -s conftest.err'
4e8d927d
DJ
17792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17793 (eval $ac_try) 2>&5
17794 ac_status=$?
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); }; } &&
17797 { ac_try='test -s conftest.$ac_objext'
17798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17799 (eval $ac_try) 2>&5
17800 ac_status=$?
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); }; }; then
17803 ac_lo=0 ac_mid=0
17804 while :; do
17805 cat >conftest.$ac_ext <<_ACEOF
17806/* confdefs.h. */
17807_ACEOF
17808cat confdefs.h >>conftest.$ac_ext
17809cat >>conftest.$ac_ext <<_ACEOF
17810/* end confdefs.h. */
17811$ac_includes_default
4e8d927d
DJ
17812int
17813main ()
17814{
b4e70030 17815static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
17816test_array [0] = 0
17817
17818 ;
17819 return 0;
17820}
17821_ACEOF
17822rm -f conftest.$ac_objext
17823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17824 (eval $ac_compile) 2>conftest.er1
17825 ac_status=$?
17826 grep -v '^ *+' conftest.er1 >conftest.err
17827 rm -f conftest.er1
17828 cat conftest.err >&5
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); } &&
b4e70030
JB
17831 { ac_try='test -z "$ac_c_werror_flag"
17832 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
17838 { ac_try='test -s conftest.$ac_objext'
17839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17841 ac_status=$?
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; }; then
17844 ac_hi=$ac_mid; break
17845else
17846 echo "$as_me: failed program was:" >&5
17847sed 's/^/| /' conftest.$ac_ext >&5
17848
b4e70030
JB
17849ac_lo=`expr $ac_mid + 1`
17850 if test $ac_lo -le $ac_mid; then
17851 ac_lo= ac_hi=
17852 break
17853 fi
17854 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 17855fi
4e8d927d
DJ
17856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17857 done
17858else
17859 echo "$as_me: failed program was:" >&5
17860sed 's/^/| /' conftest.$ac_ext >&5
17861
b4e70030 17862cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
17863/* confdefs.h. */
17864_ACEOF
17865cat confdefs.h >>conftest.$ac_ext
17866cat >>conftest.$ac_ext <<_ACEOF
17867/* end confdefs.h. */
17868$ac_includes_default
4e8d927d
DJ
17869int
17870main ()
17871{
b4e70030 17872static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4e8d927d
DJ
17873test_array [0] = 0
17874
17875 ;
17876 return 0;
17877}
17878_ACEOF
17879rm -f conftest.$ac_objext
17880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17881 (eval $ac_compile) 2>conftest.er1
17882 ac_status=$?
17883 grep -v '^ *+' conftest.er1 >conftest.err
17884 rm -f conftest.er1
17885 cat conftest.err >&5
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); } &&
b4e70030
JB
17888 { ac_try='test -z "$ac_c_werror_flag"
17889 || test ! -s conftest.err'
4e8d927d
DJ
17890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17891 (eval $ac_try) 2>&5
17892 ac_status=$?
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); }; } &&
17895 { ac_try='test -s conftest.$ac_objext'
17896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17897 (eval $ac_try) 2>&5
17898 ac_status=$?
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); }; }; then
17901 ac_hi=-1 ac_mid=-1
17902 while :; do
17903 cat >conftest.$ac_ext <<_ACEOF
17904/* confdefs.h. */
17905_ACEOF
17906cat confdefs.h >>conftest.$ac_ext
17907cat >>conftest.$ac_ext <<_ACEOF
17908/* end confdefs.h. */
17909$ac_includes_default
4e8d927d
DJ
17910int
17911main ()
17912{
b4e70030 17913static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4e8d927d
DJ
17914test_array [0] = 0
17915
17916 ;
17917 return 0;
17918}
17919_ACEOF
17920rm -f conftest.$ac_objext
17921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17922 (eval $ac_compile) 2>conftest.er1
17923 ac_status=$?
17924 grep -v '^ *+' conftest.er1 >conftest.err
17925 rm -f conftest.er1
17926 cat conftest.err >&5
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); } &&
b4e70030
JB
17929 { ac_try='test -z "$ac_c_werror_flag"
17930 || test ! -s conftest.err'
4e8d927d
DJ
17931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17932 (eval $ac_try) 2>&5
17933 ac_status=$?
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; } &&
17936 { ac_try='test -s conftest.$ac_objext'
17937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938 (eval $ac_try) 2>&5
17939 ac_status=$?
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; }; then
17942 ac_lo=$ac_mid; break
17943else
17944 echo "$as_me: failed program was:" >&5
17945sed 's/^/| /' conftest.$ac_ext >&5
17946
b4e70030
JB
17947ac_hi=`expr '(' $ac_mid ')' - 1`
17948 if test $ac_mid -le $ac_hi; then
17949 ac_lo= ac_hi=
17950 break
17951 fi
17952 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 17953fi
4e8d927d
DJ
17954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17955 done
17956else
17957 echo "$as_me: failed program was:" >&5
17958sed 's/^/| /' conftest.$ac_ext >&5
17959
b4e70030 17960ac_lo= ac_hi=
4e8d927d 17961fi
4e8d927d
DJ
17962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17963fi
4e8d927d
DJ
17964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17965# Binary search between lo and hi bounds.
17966while test "x$ac_lo" != "x$ac_hi"; do
17967 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17968 cat >conftest.$ac_ext <<_ACEOF
17969/* confdefs.h. */
17970_ACEOF
17971cat confdefs.h >>conftest.$ac_ext
17972cat >>conftest.$ac_ext <<_ACEOF
17973/* end confdefs.h. */
17974$ac_includes_default
4e8d927d
DJ
17975int
17976main ()
17977{
b4e70030 17978static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
17979test_array [0] = 0
17980
17981 ;
17982 return 0;
17983}
17984_ACEOF
17985rm -f conftest.$ac_objext
17986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17987 (eval $ac_compile) 2>conftest.er1
17988 ac_status=$?
17989 grep -v '^ *+' conftest.er1 >conftest.err
17990 rm -f conftest.er1
17991 cat conftest.err >&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); } &&
b4e70030
JB
17994 { ac_try='test -z "$ac_c_werror_flag"
17995 || test ! -s conftest.err'
4e8d927d
DJ
17996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997 (eval $ac_try) 2>&5
17998 ac_status=$?
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; } &&
18001 { ac_try='test -s conftest.$ac_objext'
18002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003 (eval $ac_try) 2>&5
18004 ac_status=$?
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; }; then
18007 ac_hi=$ac_mid
18008else
18009 echo "$as_me: failed program was:" >&5
18010sed 's/^/| /' conftest.$ac_ext >&5
18011
b4e70030 18012ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 18013fi
4e8d927d
DJ
18014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18015done
18016case $ac_lo in
18017?*) ac_cv_sizeof_int=$ac_lo;;
b4e70030 18018'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 18019See \`config.log' for more details." >&5
b4e70030 18020echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 18021See \`config.log' for more details." >&2;}
b4e70030 18022 { (exit 1); exit 1; }; } ;;
4e8d927d 18023esac
b4e70030
JB
18024else
18025 if test "$cross_compiling" = yes; then
18026 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18027See \`config.log' for more details." >&5
18028echo "$as_me: error: cannot run test program while cross compiling
18029See \`config.log' for more details." >&2;}
18030 { (exit 1); exit 1; }; }
4e8d927d
DJ
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. */
18038$ac_includes_default
b4e70030
JB
18039long longval () { return (long) (sizeof (int)); }
18040unsigned long ulongval () { return (long) (sizeof (int)); }
4e8d927d
DJ
18041#include <stdio.h>
18042#include <stdlib.h>
18043int
18044main ()
18045{
18046
18047 FILE *f = fopen ("conftest.val", "w");
18048 if (! f)
b4e70030
JB
18049 exit (1);
18050 if (((long) (sizeof (int))) < 0)
4e8d927d 18051 {
b4e70030
JB
18052 long i = longval ();
18053 if (i != ((long) (sizeof (int))))
18054 exit (1);
4e8d927d
DJ
18055 fprintf (f, "%ld\n", i);
18056 }
18057 else
18058 {
b4e70030
JB
18059 unsigned long i = ulongval ();
18060 if (i != ((long) (sizeof (int))))
18061 exit (1);
4e8d927d
DJ
18062 fprintf (f, "%lu\n", i);
18063 }
b4e70030 18064 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
18065
18066 ;
18067 return 0;
18068}
18069_ACEOF
18070rm -f conftest$ac_exeext
18071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18072 (eval $ac_link) 2>&5
18073 ac_status=$?
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18077 (eval $ac_try) 2>&5
18078 ac_status=$?
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); }; }; then
18081 ac_cv_sizeof_int=`cat conftest.val`
18082else
18083 echo "$as_me: program exited with status $ac_status" >&5
18084echo "$as_me: failed program was:" >&5
18085sed 's/^/| /' conftest.$ac_ext >&5
18086
18087( exit $ac_status )
b4e70030 18088{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 18089See \`config.log' for more details." >&5
b4e70030 18090echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 18091See \`config.log' for more details." >&2;}
b4e70030
JB
18092 { (exit 1); exit 1; }; }
18093fi
18094rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 18095fi
4e8d927d
DJ
18096fi
18097rm -f conftest.val
18098else
18099 ac_cv_sizeof_int=0
18100fi
18101fi
b4e70030
JB
18102echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18103echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4e8d927d
DJ
18104cat >>confdefs.h <<_ACEOF
18105#define SIZEOF_INT $ac_cv_sizeof_int
18106_ACEOF
18107
18108
b4e70030
JB
18109 echo "$as_me:$LINENO: checking for short" >&5
18110echo $ECHO_N "checking for short... $ECHO_C" >&6
4e8d927d
DJ
18111if test "${ac_cv_type_short+set}" = set; then
18112 echo $ECHO_N "(cached) $ECHO_C" >&6
18113else
18114 cat >conftest.$ac_ext <<_ACEOF
18115/* confdefs.h. */
18116_ACEOF
18117cat confdefs.h >>conftest.$ac_ext
18118cat >>conftest.$ac_ext <<_ACEOF
18119/* end confdefs.h. */
18120$ac_includes_default
4e8d927d
DJ
18121int
18122main ()
18123{
b4e70030 18124if ((short *) 0)
4e8d927d 18125 return 0;
b4e70030 18126if (sizeof (short))
4e8d927d
DJ
18127 return 0;
18128 ;
18129 return 0;
18130}
18131_ACEOF
18132rm -f conftest.$ac_objext
18133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18134 (eval $ac_compile) 2>conftest.er1
18135 ac_status=$?
18136 grep -v '^ *+' conftest.er1 >conftest.err
18137 rm -f conftest.er1
18138 cat conftest.err >&5
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); } &&
b4e70030
JB
18141 { ac_try='test -z "$ac_c_werror_flag"
18142 || test ! -s conftest.err'
4e8d927d
DJ
18143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18144 (eval $ac_try) 2>&5
18145 ac_status=$?
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); }; } &&
18148 { ac_try='test -s conftest.$ac_objext'
18149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18150 (eval $ac_try) 2>&5
18151 ac_status=$?
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); }; }; then
18154 ac_cv_type_short=yes
18155else
18156 echo "$as_me: failed program was:" >&5
18157sed 's/^/| /' conftest.$ac_ext >&5
18158
b4e70030 18159ac_cv_type_short=no
4e8d927d 18160fi
4e8d927d
DJ
18161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18162fi
b4e70030
JB
18163echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18164echo "${ECHO_T}$ac_cv_type_short" >&6
4e8d927d 18165
b4e70030
JB
18166echo "$as_me:$LINENO: checking size of short" >&5
18167echo $ECHO_N "checking size of short... $ECHO_C" >&6
4e8d927d
DJ
18168if test "${ac_cv_sizeof_short+set}" = set; then
18169 echo $ECHO_N "(cached) $ECHO_C" >&6
18170else
18171 if test "$ac_cv_type_short" = yes; then
b4e70030 18172 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
18173 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18174 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18175 # This bug is HP SR number 8606223364.
18176 if test "$cross_compiling" = yes; then
18177 # Depending upon the size, compute the lo and hi bounds.
18178cat >conftest.$ac_ext <<_ACEOF
18179/* confdefs.h. */
18180_ACEOF
18181cat confdefs.h >>conftest.$ac_ext
18182cat >>conftest.$ac_ext <<_ACEOF
18183/* end confdefs.h. */
18184$ac_includes_default
4e8d927d
DJ
18185int
18186main ()
18187{
b4e70030 18188static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4e8d927d
DJ
18189test_array [0] = 0
18190
18191 ;
18192 return 0;
18193}
18194_ACEOF
18195rm -f conftest.$ac_objext
18196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18197 (eval $ac_compile) 2>conftest.er1
18198 ac_status=$?
18199 grep -v '^ *+' conftest.er1 >conftest.err
18200 rm -f conftest.er1
18201 cat conftest.err >&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } &&
b4e70030
JB
18204 { ac_try='test -z "$ac_c_werror_flag"
18205 || test ! -s conftest.err'
4e8d927d
DJ
18206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207 (eval $ac_try) 2>&5
18208 ac_status=$?
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; } &&
18211 { ac_try='test -s conftest.$ac_objext'
18212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213 (eval $ac_try) 2>&5
18214 ac_status=$?
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; }; then
18217 ac_lo=0 ac_mid=0
18218 while :; do
18219 cat >conftest.$ac_ext <<_ACEOF
18220/* confdefs.h. */
18221_ACEOF
18222cat confdefs.h >>conftest.$ac_ext
18223cat >>conftest.$ac_ext <<_ACEOF
18224/* end confdefs.h. */
18225$ac_includes_default
4e8d927d
DJ
18226int
18227main ()
18228{
b4e70030 18229static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
18230test_array [0] = 0
18231
18232 ;
18233 return 0;
18234}
18235_ACEOF
18236rm -f conftest.$ac_objext
18237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18238 (eval $ac_compile) 2>conftest.er1
18239 ac_status=$?
18240 grep -v '^ *+' conftest.er1 >conftest.err
18241 rm -f conftest.er1
18242 cat conftest.err >&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); } &&
b4e70030
JB
18245 { ac_try='test -z "$ac_c_werror_flag"
18246 || test ! -s conftest.err'
4e8d927d
DJ
18247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18248 (eval $ac_try) 2>&5
18249 ac_status=$?
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); }; } &&
18252 { ac_try='test -s conftest.$ac_objext'
18253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18254 (eval $ac_try) 2>&5
18255 ac_status=$?
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); }; }; then
18258 ac_hi=$ac_mid; break
18259else
18260 echo "$as_me: failed program was:" >&5
18261sed 's/^/| /' conftest.$ac_ext >&5
18262
b4e70030
JB
18263ac_lo=`expr $ac_mid + 1`
18264 if test $ac_lo -le $ac_mid; then
18265 ac_lo= ac_hi=
18266 break
18267 fi
18268 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 18269fi
4e8d927d
DJ
18270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18271 done
18272else
18273 echo "$as_me: failed program was:" >&5
18274sed 's/^/| /' conftest.$ac_ext >&5
18275
b4e70030 18276cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
18277/* confdefs.h. */
18278_ACEOF
18279cat confdefs.h >>conftest.$ac_ext
18280cat >>conftest.$ac_ext <<_ACEOF
18281/* end confdefs.h. */
18282$ac_includes_default
4e8d927d
DJ
18283int
18284main ()
18285{
b4e70030 18286static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4e8d927d
DJ
18287test_array [0] = 0
18288
18289 ;
18290 return 0;
18291}
18292_ACEOF
18293rm -f conftest.$ac_objext
18294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18295 (eval $ac_compile) 2>conftest.er1
18296 ac_status=$?
18297 grep -v '^ *+' conftest.er1 >conftest.err
18298 rm -f conftest.er1
18299 cat conftest.err >&5
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); } &&
b4e70030
JB
18302 { ac_try='test -z "$ac_c_werror_flag"
18303 || test ! -s conftest.err'
4e8d927d
DJ
18304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18305 (eval $ac_try) 2>&5
18306 ac_status=$?
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; } &&
18309 { ac_try='test -s conftest.$ac_objext'
18310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311 (eval $ac_try) 2>&5
18312 ac_status=$?
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; }; then
18315 ac_hi=-1 ac_mid=-1
18316 while :; do
18317 cat >conftest.$ac_ext <<_ACEOF
18318/* confdefs.h. */
18319_ACEOF
18320cat confdefs.h >>conftest.$ac_ext
18321cat >>conftest.$ac_ext <<_ACEOF
18322/* end confdefs.h. */
18323$ac_includes_default
4e8d927d
DJ
18324int
18325main ()
18326{
b4e70030 18327static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4e8d927d
DJ
18328test_array [0] = 0
18329
18330 ;
18331 return 0;
18332}
18333_ACEOF
18334rm -f conftest.$ac_objext
18335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18336 (eval $ac_compile) 2>conftest.er1
18337 ac_status=$?
18338 grep -v '^ *+' conftest.er1 >conftest.err
18339 rm -f conftest.er1
18340 cat conftest.err >&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); } &&
b4e70030
JB
18343 { ac_try='test -z "$ac_c_werror_flag"
18344 || test ! -s conftest.err'
4e8d927d
DJ
18345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18346 (eval $ac_try) 2>&5
18347 ac_status=$?
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); }; } &&
18350 { ac_try='test -s conftest.$ac_objext'
18351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18352 (eval $ac_try) 2>&5
18353 ac_status=$?
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); }; }; then
18356 ac_lo=$ac_mid; break
18357else
18358 echo "$as_me: failed program was:" >&5
18359sed 's/^/| /' conftest.$ac_ext >&5
18360
b4e70030
JB
18361ac_hi=`expr '(' $ac_mid ')' - 1`
18362 if test $ac_mid -le $ac_hi; then
18363 ac_lo= ac_hi=
18364 break
18365 fi
18366 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 18367fi
4e8d927d
DJ
18368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18369 done
18370else
18371 echo "$as_me: failed program was:" >&5
18372sed 's/^/| /' conftest.$ac_ext >&5
18373
b4e70030 18374ac_lo= ac_hi=
4e8d927d 18375fi
4e8d927d
DJ
18376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18377fi
4e8d927d
DJ
18378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18379# Binary search between lo and hi bounds.
18380while test "x$ac_lo" != "x$ac_hi"; do
18381 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18382 cat >conftest.$ac_ext <<_ACEOF
18383/* confdefs.h. */
18384_ACEOF
18385cat confdefs.h >>conftest.$ac_ext
18386cat >>conftest.$ac_ext <<_ACEOF
18387/* end confdefs.h. */
18388$ac_includes_default
4e8d927d
DJ
18389int
18390main ()
18391{
b4e70030 18392static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
18393test_array [0] = 0
18394
18395 ;
18396 return 0;
18397}
18398_ACEOF
18399rm -f conftest.$ac_objext
18400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18401 (eval $ac_compile) 2>conftest.er1
18402 ac_status=$?
18403 grep -v '^ *+' conftest.er1 >conftest.err
18404 rm -f conftest.er1
18405 cat conftest.err >&5
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); } &&
b4e70030
JB
18408 { ac_try='test -z "$ac_c_werror_flag"
18409 || test ! -s conftest.err'
4e8d927d
DJ
18410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18411 (eval $ac_try) 2>&5
18412 ac_status=$?
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); }; } &&
18415 { ac_try='test -s conftest.$ac_objext'
18416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18417 (eval $ac_try) 2>&5
18418 ac_status=$?
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); }; }; then
18421 ac_hi=$ac_mid
18422else
18423 echo "$as_me: failed program was:" >&5
18424sed 's/^/| /' conftest.$ac_ext >&5
18425
b4e70030 18426ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 18427fi
4e8d927d
DJ
18428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18429done
18430case $ac_lo in
18431?*) ac_cv_sizeof_short=$ac_lo;;
b4e70030 18432'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 18433See \`config.log' for more details." >&5
b4e70030 18434echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 18435See \`config.log' for more details." >&2;}
b4e70030 18436 { (exit 1); exit 1; }; } ;;
4e8d927d 18437esac
b4e70030
JB
18438else
18439 if test "$cross_compiling" = yes; then
18440 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18441See \`config.log' for more details." >&5
18442echo "$as_me: error: cannot run test program while cross compiling
18443See \`config.log' for more details." >&2;}
18444 { (exit 1); exit 1; }; }
4e8d927d
DJ
18445else
18446 cat >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$ac_includes_default
b4e70030
JB
18453long longval () { return (long) (sizeof (short)); }
18454unsigned long ulongval () { return (long) (sizeof (short)); }
4e8d927d
DJ
18455#include <stdio.h>
18456#include <stdlib.h>
18457int
18458main ()
18459{
18460
18461 FILE *f = fopen ("conftest.val", "w");
18462 if (! f)
b4e70030
JB
18463 exit (1);
18464 if (((long) (sizeof (short))) < 0)
4e8d927d 18465 {
b4e70030
JB
18466 long i = longval ();
18467 if (i != ((long) (sizeof (short))))
18468 exit (1);
4e8d927d
DJ
18469 fprintf (f, "%ld\n", i);
18470 }
18471 else
18472 {
b4e70030
JB
18473 unsigned long i = ulongval ();
18474 if (i != ((long) (sizeof (short))))
18475 exit (1);
4e8d927d
DJ
18476 fprintf (f, "%lu\n", i);
18477 }
b4e70030 18478 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
18479
18480 ;
18481 return 0;
18482}
18483_ACEOF
18484rm -f conftest$ac_exeext
18485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18486 (eval $ac_link) 2>&5
18487 ac_status=$?
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18491 (eval $ac_try) 2>&5
18492 ac_status=$?
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); }; }; then
18495 ac_cv_sizeof_short=`cat conftest.val`
18496else
18497 echo "$as_me: program exited with status $ac_status" >&5
18498echo "$as_me: failed program was:" >&5
18499sed 's/^/| /' conftest.$ac_ext >&5
18500
18501( exit $ac_status )
b4e70030 18502{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 18503See \`config.log' for more details." >&5
b4e70030 18504echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 18505See \`config.log' for more details." >&2;}
b4e70030
JB
18506 { (exit 1); exit 1; }; }
18507fi
18508rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 18509fi
4e8d927d
DJ
18510fi
18511rm -f conftest.val
18512else
18513 ac_cv_sizeof_short=0
18514fi
18515fi
b4e70030
JB
18516echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18517echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4e8d927d
DJ
18518cat >>confdefs.h <<_ACEOF
18519#define SIZEOF_SHORT $ac_cv_sizeof_short
18520_ACEOF
18521
18522
b4e70030
JB
18523 echo "$as_me:$LINENO: checking for char" >&5
18524echo $ECHO_N "checking for char... $ECHO_C" >&6
4e8d927d
DJ
18525if test "${ac_cv_type_char+set}" = set; then
18526 echo $ECHO_N "(cached) $ECHO_C" >&6
18527else
18528 cat >conftest.$ac_ext <<_ACEOF
18529/* confdefs.h. */
18530_ACEOF
18531cat confdefs.h >>conftest.$ac_ext
18532cat >>conftest.$ac_ext <<_ACEOF
18533/* end confdefs.h. */
18534$ac_includes_default
4e8d927d
DJ
18535int
18536main ()
18537{
b4e70030 18538if ((char *) 0)
4e8d927d 18539 return 0;
b4e70030 18540if (sizeof (char))
4e8d927d
DJ
18541 return 0;
18542 ;
18543 return 0;
18544}
18545_ACEOF
18546rm -f conftest.$ac_objext
18547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18548 (eval $ac_compile) 2>conftest.er1
18549 ac_status=$?
18550 grep -v '^ *+' conftest.er1 >conftest.err
18551 rm -f conftest.er1
18552 cat conftest.err >&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); } &&
b4e70030
JB
18555 { ac_try='test -z "$ac_c_werror_flag"
18556 || test ! -s conftest.err'
4e8d927d
DJ
18557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18558 (eval $ac_try) 2>&5
18559 ac_status=$?
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); }; } &&
18562 { ac_try='test -s conftest.$ac_objext'
18563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18564 (eval $ac_try) 2>&5
18565 ac_status=$?
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); }; }; then
18568 ac_cv_type_char=yes
18569else
18570 echo "$as_me: failed program was:" >&5
18571sed 's/^/| /' conftest.$ac_ext >&5
18572
b4e70030 18573ac_cv_type_char=no
4e8d927d 18574fi
4e8d927d
DJ
18575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18576fi
b4e70030
JB
18577echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18578echo "${ECHO_T}$ac_cv_type_char" >&6
4e8d927d 18579
b4e70030
JB
18580echo "$as_me:$LINENO: checking size of char" >&5
18581echo $ECHO_N "checking size of char... $ECHO_C" >&6
4e8d927d
DJ
18582if test "${ac_cv_sizeof_char+set}" = set; then
18583 echo $ECHO_N "(cached) $ECHO_C" >&6
18584else
18585 if test "$ac_cv_type_char" = yes; then
b4e70030 18586 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
18587 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18588 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18589 # This bug is HP SR number 8606223364.
18590 if test "$cross_compiling" = yes; then
18591 # Depending upon the size, compute the lo and hi bounds.
18592cat >conftest.$ac_ext <<_ACEOF
18593/* confdefs.h. */
18594_ACEOF
18595cat confdefs.h >>conftest.$ac_ext
18596cat >>conftest.$ac_ext <<_ACEOF
18597/* end confdefs.h. */
18598$ac_includes_default
4e8d927d
DJ
18599int
18600main ()
18601{
b4e70030 18602static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4e8d927d
DJ
18603test_array [0] = 0
18604
18605 ;
18606 return 0;
18607}
18608_ACEOF
18609rm -f conftest.$ac_objext
18610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18611 (eval $ac_compile) 2>conftest.er1
18612 ac_status=$?
18613 grep -v '^ *+' conftest.er1 >conftest.err
18614 rm -f conftest.er1
18615 cat conftest.err >&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); } &&
b4e70030
JB
18618 { ac_try='test -z "$ac_c_werror_flag"
18619 || test ! -s conftest.err'
4e8d927d
DJ
18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18622 ac_status=$?
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; } &&
18625 { ac_try='test -s conftest.$ac_objext'
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
18631 ac_lo=0 ac_mid=0
18632 while :; do
18633 cat >conftest.$ac_ext <<_ACEOF
18634/* confdefs.h. */
18635_ACEOF
18636cat confdefs.h >>conftest.$ac_ext
18637cat >>conftest.$ac_ext <<_ACEOF
18638/* end confdefs.h. */
18639$ac_includes_default
4e8d927d
DJ
18640int
18641main ()
18642{
b4e70030 18643static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
18644test_array [0] = 0
18645
18646 ;
18647 return 0;
18648}
18649_ACEOF
18650rm -f conftest.$ac_objext
18651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18652 (eval $ac_compile) 2>conftest.er1
18653 ac_status=$?
18654 grep -v '^ *+' conftest.er1 >conftest.err
18655 rm -f conftest.er1
18656 cat conftest.err >&5
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); } &&
b4e70030
JB
18659 { ac_try='test -z "$ac_c_werror_flag"
18660 || test ! -s conftest.err'
4e8d927d
DJ
18661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18662 (eval $ac_try) 2>&5
18663 ac_status=$?
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); }; } &&
18666 { ac_try='test -s conftest.$ac_objext'
18667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18668 (eval $ac_try) 2>&5
18669 ac_status=$?
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); }; }; then
18672 ac_hi=$ac_mid; break
18673else
18674 echo "$as_me: failed program was:" >&5
18675sed 's/^/| /' conftest.$ac_ext >&5
18676
b4e70030
JB
18677ac_lo=`expr $ac_mid + 1`
18678 if test $ac_lo -le $ac_mid; then
18679 ac_lo= ac_hi=
18680 break
18681 fi
18682 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 18683fi
4e8d927d
DJ
18684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18685 done
18686else
18687 echo "$as_me: failed program was:" >&5
18688sed 's/^/| /' conftest.$ac_ext >&5
18689
b4e70030 18690cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
18691/* confdefs.h. */
18692_ACEOF
18693cat confdefs.h >>conftest.$ac_ext
18694cat >>conftest.$ac_ext <<_ACEOF
18695/* end confdefs.h. */
18696$ac_includes_default
4e8d927d
DJ
18697int
18698main ()
18699{
b4e70030 18700static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4e8d927d
DJ
18701test_array [0] = 0
18702
18703 ;
18704 return 0;
18705}
18706_ACEOF
18707rm -f conftest.$ac_objext
18708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18709 (eval $ac_compile) 2>conftest.er1
18710 ac_status=$?
18711 grep -v '^ *+' conftest.er1 >conftest.err
18712 rm -f conftest.er1
18713 cat conftest.err >&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } &&
b4e70030
JB
18716 { ac_try='test -z "$ac_c_werror_flag"
18717 || test ! -s conftest.err'
4e8d927d
DJ
18718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18719 (eval $ac_try) 2>&5
18720 ac_status=$?
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); }; } &&
18723 { ac_try='test -s conftest.$ac_objext'
18724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725 (eval $ac_try) 2>&5
18726 ac_status=$?
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; }; then
18729 ac_hi=-1 ac_mid=-1
18730 while :; do
18731 cat >conftest.$ac_ext <<_ACEOF
18732/* confdefs.h. */
18733_ACEOF
18734cat confdefs.h >>conftest.$ac_ext
18735cat >>conftest.$ac_ext <<_ACEOF
18736/* end confdefs.h. */
18737$ac_includes_default
4e8d927d
DJ
18738int
18739main ()
18740{
b4e70030 18741static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4e8d927d
DJ
18742test_array [0] = 0
18743
18744 ;
18745 return 0;
18746}
18747_ACEOF
18748rm -f conftest.$ac_objext
18749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18750 (eval $ac_compile) 2>conftest.er1
18751 ac_status=$?
18752 grep -v '^ *+' conftest.er1 >conftest.err
18753 rm -f conftest.er1
18754 cat conftest.err >&5
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); } &&
b4e70030
JB
18757 { ac_try='test -z "$ac_c_werror_flag"
18758 || test ! -s conftest.err'
4e8d927d
DJ
18759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18760 (eval $ac_try) 2>&5
18761 ac_status=$?
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; } &&
18764 { ac_try='test -s conftest.$ac_objext'
18765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766 (eval $ac_try) 2>&5
18767 ac_status=$?
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; }; then
18770 ac_lo=$ac_mid; break
18771else
18772 echo "$as_me: failed program was:" >&5
18773sed 's/^/| /' conftest.$ac_ext >&5
18774
b4e70030
JB
18775ac_hi=`expr '(' $ac_mid ')' - 1`
18776 if test $ac_mid -le $ac_hi; then
18777 ac_lo= ac_hi=
18778 break
18779 fi
18780 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 18781fi
4e8d927d
DJ
18782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18783 done
18784else
18785 echo "$as_me: failed program was:" >&5
18786sed 's/^/| /' conftest.$ac_ext >&5
18787
b4e70030 18788ac_lo= ac_hi=
4e8d927d 18789fi
4e8d927d
DJ
18790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18791fi
4e8d927d
DJ
18792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18793# Binary search between lo and hi bounds.
18794while test "x$ac_lo" != "x$ac_hi"; do
18795 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18796 cat >conftest.$ac_ext <<_ACEOF
18797/* confdefs.h. */
18798_ACEOF
18799cat confdefs.h >>conftest.$ac_ext
18800cat >>conftest.$ac_ext <<_ACEOF
18801/* end confdefs.h. */
18802$ac_includes_default
4e8d927d
DJ
18803int
18804main ()
18805{
b4e70030 18806static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
18807test_array [0] = 0
18808
18809 ;
18810 return 0;
18811}
18812_ACEOF
18813rm -f conftest.$ac_objext
18814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18815 (eval $ac_compile) 2>conftest.er1
18816 ac_status=$?
18817 grep -v '^ *+' conftest.er1 >conftest.err
18818 rm -f conftest.er1
18819 cat conftest.err >&5
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); } &&
b4e70030
JB
18822 { ac_try='test -z "$ac_c_werror_flag"
18823 || test ! -s conftest.err'
4e8d927d
DJ
18824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18825 (eval $ac_try) 2>&5
18826 ac_status=$?
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); }; } &&
18829 { ac_try='test -s conftest.$ac_objext'
18830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18831 (eval $ac_try) 2>&5
18832 ac_status=$?
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; }; then
18835 ac_hi=$ac_mid
18836else
18837 echo "$as_me: failed program was:" >&5
18838sed 's/^/| /' conftest.$ac_ext >&5
18839
b4e70030 18840ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 18841fi
4e8d927d
DJ
18842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18843done
18844case $ac_lo in
18845?*) ac_cv_sizeof_char=$ac_lo;;
b4e70030 18846'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 18847See \`config.log' for more details." >&5
b4e70030 18848echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 18849See \`config.log' for more details." >&2;}
b4e70030 18850 { (exit 1); exit 1; }; } ;;
4e8d927d 18851esac
b4e70030
JB
18852else
18853 if test "$cross_compiling" = yes; then
18854 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18855See \`config.log' for more details." >&5
18856echo "$as_me: error: cannot run test program while cross compiling
18857See \`config.log' for more details." >&2;}
18858 { (exit 1); exit 1; }; }
4e8d927d
DJ
18859else
18860 cat >conftest.$ac_ext <<_ACEOF
18861/* confdefs.h. */
18862_ACEOF
18863cat confdefs.h >>conftest.$ac_ext
18864cat >>conftest.$ac_ext <<_ACEOF
18865/* end confdefs.h. */
18866$ac_includes_default
b4e70030
JB
18867long longval () { return (long) (sizeof (char)); }
18868unsigned long ulongval () { return (long) (sizeof (char)); }
4e8d927d
DJ
18869#include <stdio.h>
18870#include <stdlib.h>
18871int
18872main ()
18873{
18874
18875 FILE *f = fopen ("conftest.val", "w");
18876 if (! f)
b4e70030
JB
18877 exit (1);
18878 if (((long) (sizeof (char))) < 0)
4e8d927d 18879 {
b4e70030
JB
18880 long i = longval ();
18881 if (i != ((long) (sizeof (char))))
18882 exit (1);
4e8d927d
DJ
18883 fprintf (f, "%ld\n", i);
18884 }
18885 else
18886 {
b4e70030
JB
18887 unsigned long i = ulongval ();
18888 if (i != ((long) (sizeof (char))))
18889 exit (1);
4e8d927d
DJ
18890 fprintf (f, "%lu\n", i);
18891 }
b4e70030 18892 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
18893
18894 ;
18895 return 0;
18896}
18897_ACEOF
18898rm -f conftest$ac_exeext
18899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18900 (eval $ac_link) 2>&5
18901 ac_status=$?
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18905 (eval $ac_try) 2>&5
18906 ac_status=$?
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; }; then
18909 ac_cv_sizeof_char=`cat conftest.val`
18910else
18911 echo "$as_me: program exited with status $ac_status" >&5
18912echo "$as_me: failed program was:" >&5
18913sed 's/^/| /' conftest.$ac_ext >&5
18914
18915( exit $ac_status )
b4e70030 18916{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 18917See \`config.log' for more details." >&5
b4e70030 18918echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 18919See \`config.log' for more details." >&2;}
b4e70030
JB
18920 { (exit 1); exit 1; }; }
18921fi
18922rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 18923fi
4e8d927d
DJ
18924fi
18925rm -f conftest.val
18926else
18927 ac_cv_sizeof_char=0
18928fi
18929fi
b4e70030
JB
18930echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18931echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4e8d927d
DJ
18932cat >>confdefs.h <<_ACEOF
18933#define SIZEOF_CHAR $ac_cv_sizeof_char
18934_ACEOF
18935
18936
18937
b4e70030
JB
18938 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
18939echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
4e8d927d
DJ
18940 case "$ac_cv_sizeof_char" in
18941 1) acx_cv_type_int8_t=char ;;
18942 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
18943echo "$as_me: error: no 8-bit type" >&2;}
18944 { (exit please report a bug); exit please report a bug; }; }
18945 esac
b4e70030
JB
18946 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
18947echo "${ECHO_T}$acx_cv_type_int8_t" >&6
4e8d927d 18948
b4e70030
JB
18949 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
18950echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
4e8d927d
DJ
18951 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
18952 2:*) acx_cv_type_int16_t=int ;;
18953 *:2) acx_cv_type_int16_t=short ;;
18954 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
18955echo "$as_me: error: no 16-bit type" >&2;}
18956 { (exit please report a bug); exit please report a bug; }; }
18957 esac
b4e70030
JB
18958 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
18959echo "${ECHO_T}$acx_cv_type_int16_t" >&6
4e8d927d 18960
b4e70030
JB
18961 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
18962echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
4e8d927d
DJ
18963 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
18964 4:*) acx_cv_type_int32_t=int ;;
18965 *:4) acx_cv_type_int32_t=long ;;
18966 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
18967echo "$as_me: error: no 32-bit type" >&2;}
18968 { (exit please report a bug); exit please report a bug; }; }
18969 esac
b4e70030
JB
18970 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
18971echo "${ECHO_T}$acx_cv_type_int32_t" >&6
4e8d927d
DJ
18972fi
18973
18974# These tests are here to make the output prettier
18975
18976if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
18977 case "$ac_cv_sizeof_long" in
18978 8) acx_cv_type_int64_t=long ;;
18979 esac
b4e70030
JB
18980 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
18981echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
18982 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
18983echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
4e8d927d
DJ
18984fi
18985
18986# Now we can use the above types
18987
18988if test "$ac_cv_type_uintptr_t" != yes; then
b4e70030
JB
18989 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
18990echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
4e8d927d
DJ
18991 case $ac_cv_sizeof_void_p in
18992 2) acx_cv_type_intptr_t=int16_t ;;
18993 4) acx_cv_type_intptr_t=int32_t ;;
18994 8) acx_cv_type_intptr_t=int64_t ;;
18995 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
18996echo "$as_me: error: no equivalent for intptr_t" >&2;}
18997 { (exit please report a bug); exit please report a bug; }; }
18998 esac
b4e70030
JB
18999 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
19000echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
4e8d927d
DJ
19001fi
19002
19003# ----------------- done all checks, emit header -------------
b4e70030 19004 ac_config_commands="$ac_config_commands gdb_stdint.h"
4e8d927d
DJ
19005
19006
19007
19008
19009# ------------------------- #
19010# Checks for declarations. #
19011# ------------------------- #
19012
b4e70030
JB
19013echo "$as_me:$LINENO: checking whether free is declared" >&5
19014echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
4e8d927d
DJ
19015if test "${ac_cv_have_decl_free+set}" = set; then
19016 echo $ECHO_N "(cached) $ECHO_C" >&6
19017else
19018 cat >conftest.$ac_ext <<_ACEOF
19019/* confdefs.h. */
19020_ACEOF
19021cat confdefs.h >>conftest.$ac_ext
19022cat >>conftest.$ac_ext <<_ACEOF
19023/* end confdefs.h. */
19024$ac_includes_default
19025int
19026main ()
19027{
19028#ifndef free
19029 char *p = (char *) free;
4e8d927d
DJ
19030#endif
19031
19032 ;
19033 return 0;
19034}
19035_ACEOF
19036rm -f conftest.$ac_objext
19037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19038 (eval $ac_compile) 2>conftest.er1
19039 ac_status=$?
19040 grep -v '^ *+' conftest.er1 >conftest.err
19041 rm -f conftest.er1
19042 cat conftest.err >&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } &&
b4e70030
JB
19045 { ac_try='test -z "$ac_c_werror_flag"
19046 || test ! -s conftest.err'
4e8d927d
DJ
19047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19048 (eval $ac_try) 2>&5
19049 ac_status=$?
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; } &&
19052 { ac_try='test -s conftest.$ac_objext'
19053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19054 (eval $ac_try) 2>&5
19055 ac_status=$?
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); }; }; then
19058 ac_cv_have_decl_free=yes
19059else
19060 echo "$as_me: failed program was:" >&5
19061sed 's/^/| /' conftest.$ac_ext >&5
19062
b4e70030 19063ac_cv_have_decl_free=no
4e8d927d 19064fi
4e8d927d
DJ
19065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19066fi
b4e70030
JB
19067echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
19068echo "${ECHO_T}$ac_cv_have_decl_free" >&6
4e8d927d
DJ
19069if test $ac_cv_have_decl_free = yes; then
19070
19071cat >>confdefs.h <<_ACEOF
19072#define HAVE_DECL_FREE 1
19073_ACEOF
19074
19075
19076else
19077 cat >>confdefs.h <<_ACEOF
19078#define HAVE_DECL_FREE 0
19079_ACEOF
19080
19081
19082fi
b4e70030
JB
19083echo "$as_me:$LINENO: checking whether malloc is declared" >&5
19084echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
4e8d927d
DJ
19085if test "${ac_cv_have_decl_malloc+set}" = set; then
19086 echo $ECHO_N "(cached) $ECHO_C" >&6
19087else
19088 cat >conftest.$ac_ext <<_ACEOF
19089/* confdefs.h. */
19090_ACEOF
19091cat confdefs.h >>conftest.$ac_ext
19092cat >>conftest.$ac_ext <<_ACEOF
19093/* end confdefs.h. */
19094$ac_includes_default
19095int
19096main ()
19097{
19098#ifndef malloc
19099 char *p = (char *) malloc;
4e8d927d
DJ
19100#endif
19101
19102 ;
19103 return 0;
19104}
19105_ACEOF
19106rm -f conftest.$ac_objext
19107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19108 (eval $ac_compile) 2>conftest.er1
19109 ac_status=$?
19110 grep -v '^ *+' conftest.er1 >conftest.err
19111 rm -f conftest.er1
19112 cat conftest.err >&5
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); } &&
b4e70030
JB
19115 { ac_try='test -z "$ac_c_werror_flag"
19116 || test ! -s conftest.err'
4e8d927d
DJ
19117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118 (eval $ac_try) 2>&5
19119 ac_status=$?
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); }; } &&
19122 { ac_try='test -s conftest.$ac_objext'
19123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19124 (eval $ac_try) 2>&5
19125 ac_status=$?
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; }; then
19128 ac_cv_have_decl_malloc=yes
19129else
19130 echo "$as_me: failed program was:" >&5
19131sed 's/^/| /' conftest.$ac_ext >&5
19132
b4e70030 19133ac_cv_have_decl_malloc=no
4e8d927d 19134fi
4e8d927d
DJ
19135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19136fi
b4e70030
JB
19137echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
19138echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
4e8d927d
DJ
19139if test $ac_cv_have_decl_malloc = yes; then
19140
19141cat >>confdefs.h <<_ACEOF
19142#define HAVE_DECL_MALLOC 1
19143_ACEOF
19144
19145
19146else
19147 cat >>confdefs.h <<_ACEOF
19148#define HAVE_DECL_MALLOC 0
19149_ACEOF
19150
19151
19152fi
b4e70030
JB
19153echo "$as_me:$LINENO: checking whether realloc is declared" >&5
19154echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
4e8d927d
DJ
19155if test "${ac_cv_have_decl_realloc+set}" = set; then
19156 echo $ECHO_N "(cached) $ECHO_C" >&6
19157else
19158 cat >conftest.$ac_ext <<_ACEOF
19159/* confdefs.h. */
19160_ACEOF
19161cat confdefs.h >>conftest.$ac_ext
19162cat >>conftest.$ac_ext <<_ACEOF
19163/* end confdefs.h. */
19164$ac_includes_default
19165int
19166main ()
19167{
19168#ifndef realloc
19169 char *p = (char *) realloc;
4e8d927d
DJ
19170#endif
19171
19172 ;
19173 return 0;
19174}
19175_ACEOF
19176rm -f conftest.$ac_objext
19177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19178 (eval $ac_compile) 2>conftest.er1
19179 ac_status=$?
19180 grep -v '^ *+' conftest.er1 >conftest.err
19181 rm -f conftest.er1
19182 cat conftest.err >&5
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); } &&
b4e70030
JB
19185 { ac_try='test -z "$ac_c_werror_flag"
19186 || test ! -s conftest.err'
4e8d927d
DJ
19187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19188 (eval $ac_try) 2>&5
19189 ac_status=$?
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; } &&
19192 { ac_try='test -s conftest.$ac_objext'
19193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19194 (eval $ac_try) 2>&5
19195 ac_status=$?
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; }; then
19198 ac_cv_have_decl_realloc=yes
19199else
19200 echo "$as_me: failed program was:" >&5
19201sed 's/^/| /' conftest.$ac_ext >&5
19202
b4e70030 19203ac_cv_have_decl_realloc=no
4e8d927d 19204fi
4e8d927d
DJ
19205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19206fi
b4e70030
JB
19207echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
19208echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
4e8d927d
DJ
19209if test $ac_cv_have_decl_realloc = yes; then
19210
19211cat >>confdefs.h <<_ACEOF
19212#define HAVE_DECL_REALLOC 1
19213_ACEOF
19214
19215
19216else
19217 cat >>confdefs.h <<_ACEOF
19218#define HAVE_DECL_REALLOC 0
19219_ACEOF
19220
19221
19222fi
19223
19224
b4e70030
JB
19225echo "$as_me:$LINENO: checking whether strerror is declared" >&5
19226echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
4e8d927d
DJ
19227if test "${ac_cv_have_decl_strerror+set}" = set; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
19229else
19230 cat >conftest.$ac_ext <<_ACEOF
19231/* confdefs.h. */
19232_ACEOF
19233cat confdefs.h >>conftest.$ac_ext
19234cat >>conftest.$ac_ext <<_ACEOF
19235/* end confdefs.h. */
19236$ac_includes_default
19237int
19238main ()
19239{
19240#ifndef strerror
19241 char *p = (char *) strerror;
4e8d927d
DJ
19242#endif
19243
19244 ;
19245 return 0;
19246}
19247_ACEOF
19248rm -f conftest.$ac_objext
19249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19250 (eval $ac_compile) 2>conftest.er1
19251 ac_status=$?
19252 grep -v '^ *+' conftest.er1 >conftest.err
19253 rm -f conftest.er1
19254 cat conftest.err >&5
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); } &&
b4e70030
JB
19257 { ac_try='test -z "$ac_c_werror_flag"
19258 || test ! -s conftest.err'
4e8d927d
DJ
19259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19260 (eval $ac_try) 2>&5
19261 ac_status=$?
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); }; } &&
19264 { ac_try='test -s conftest.$ac_objext'
19265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19266 (eval $ac_try) 2>&5
19267 ac_status=$?
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; }; then
19270 ac_cv_have_decl_strerror=yes
19271else
19272 echo "$as_me: failed program was:" >&5
19273sed 's/^/| /' conftest.$ac_ext >&5
19274
b4e70030 19275ac_cv_have_decl_strerror=no
4e8d927d 19276fi
4e8d927d
DJ
19277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19278fi
b4e70030
JB
19279echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
19280echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
4e8d927d
DJ
19281if test $ac_cv_have_decl_strerror = yes; then
19282
19283cat >>confdefs.h <<_ACEOF
19284#define HAVE_DECL_STRERROR 1
19285_ACEOF
19286
19287
19288else
19289 cat >>confdefs.h <<_ACEOF
19290#define HAVE_DECL_STRERROR 0
19291_ACEOF
19292
19293
19294fi
b4e70030
JB
19295echo "$as_me:$LINENO: checking whether strstr is declared" >&5
19296echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
4e8d927d
DJ
19297if test "${ac_cv_have_decl_strstr+set}" = set; then
19298 echo $ECHO_N "(cached) $ECHO_C" >&6
19299else
19300 cat >conftest.$ac_ext <<_ACEOF
19301/* confdefs.h. */
19302_ACEOF
19303cat confdefs.h >>conftest.$ac_ext
19304cat >>conftest.$ac_ext <<_ACEOF
19305/* end confdefs.h. */
19306$ac_includes_default
19307int
19308main ()
19309{
19310#ifndef strstr
19311 char *p = (char *) strstr;
4e8d927d
DJ
19312#endif
19313
19314 ;
19315 return 0;
19316}
19317_ACEOF
19318rm -f conftest.$ac_objext
19319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19320 (eval $ac_compile) 2>conftest.er1
19321 ac_status=$?
19322 grep -v '^ *+' conftest.er1 >conftest.err
19323 rm -f conftest.er1
19324 cat conftest.err >&5
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); } &&
b4e70030
JB
19327 { ac_try='test -z "$ac_c_werror_flag"
19328 || test ! -s conftest.err'
4e8d927d
DJ
19329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19330 (eval $ac_try) 2>&5
19331 ac_status=$?
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; } &&
19334 { ac_try='test -s conftest.$ac_objext'
19335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336 (eval $ac_try) 2>&5
19337 ac_status=$?
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; }; then
19340 ac_cv_have_decl_strstr=yes
19341else
19342 echo "$as_me: failed program was:" >&5
19343sed 's/^/| /' conftest.$ac_ext >&5
19344
b4e70030 19345ac_cv_have_decl_strstr=no
4e8d927d 19346fi
4e8d927d
DJ
19347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19348fi
b4e70030
JB
19349echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
19350echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
4e8d927d
DJ
19351if test $ac_cv_have_decl_strstr = yes; then
19352
19353cat >>confdefs.h <<_ACEOF
19354#define HAVE_DECL_STRSTR 1
19355_ACEOF
19356
19357
19358else
19359 cat >>confdefs.h <<_ACEOF
19360#define HAVE_DECL_STRSTR 0
19361_ACEOF
19362
19363
19364fi
19365
19366
b4e70030
JB
19367echo "$as_me:$LINENO: checking whether getopt is declared" >&5
19368echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
4e8d927d
DJ
19369if test "${ac_cv_have_decl_getopt+set}" = set; then
19370 echo $ECHO_N "(cached) $ECHO_C" >&6
19371else
19372 cat >conftest.$ac_ext <<_ACEOF
19373/* confdefs.h. */
19374_ACEOF
19375cat confdefs.h >>conftest.$ac_ext
19376cat >>conftest.$ac_ext <<_ACEOF
19377/* end confdefs.h. */
19378$ac_includes_default
19379int
19380main ()
19381{
19382#ifndef getopt
19383 char *p = (char *) getopt;
4e8d927d
DJ
19384#endif
19385
19386 ;
19387 return 0;
19388}
19389_ACEOF
19390rm -f conftest.$ac_objext
19391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19392 (eval $ac_compile) 2>conftest.er1
19393 ac_status=$?
19394 grep -v '^ *+' conftest.er1 >conftest.err
19395 rm -f conftest.er1
19396 cat conftest.err >&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); } &&
b4e70030
JB
19399 { ac_try='test -z "$ac_c_werror_flag"
19400 || test ! -s conftest.err'
4e8d927d
DJ
19401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402 (eval $ac_try) 2>&5
19403 ac_status=$?
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; } &&
19406 { ac_try='test -s conftest.$ac_objext'
19407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408 (eval $ac_try) 2>&5
19409 ac_status=$?
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; }; then
19412 ac_cv_have_decl_getopt=yes
19413else
19414 echo "$as_me: failed program was:" >&5
19415sed 's/^/| /' conftest.$ac_ext >&5
19416
b4e70030 19417ac_cv_have_decl_getopt=no
4e8d927d 19418fi
4e8d927d
DJ
19419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19420fi
b4e70030
JB
19421echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
19422echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
4e8d927d
DJ
19423if test $ac_cv_have_decl_getopt = yes; then
19424
19425cat >>confdefs.h <<_ACEOF
19426#define HAVE_DECL_GETOPT 1
19427_ACEOF
19428
19429
19430else
19431 cat >>confdefs.h <<_ACEOF
19432#define HAVE_DECL_GETOPT 0
19433_ACEOF
19434
19435
19436fi
b4e70030
JB
19437echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
19438echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
19439if test "${ac_cv_have_decl_snprintf+set}" = set; then
19440 echo $ECHO_N "(cached) $ECHO_C" >&6
19441else
19442 cat >conftest.$ac_ext <<_ACEOF
19443/* confdefs.h. */
19444_ACEOF
19445cat confdefs.h >>conftest.$ac_ext
19446cat >>conftest.$ac_ext <<_ACEOF
19447/* end confdefs.h. */
19448$ac_includes_default
19449int
19450main ()
19451{
19452#ifndef snprintf
19453 char *p = (char *) snprintf;
4e8d927d
DJ
19454#endif
19455
19456 ;
19457 return 0;
19458}
19459_ACEOF
19460rm -f conftest.$ac_objext
19461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19462 (eval $ac_compile) 2>conftest.er1
19463 ac_status=$?
19464 grep -v '^ *+' conftest.er1 >conftest.err
19465 rm -f conftest.er1
19466 cat conftest.err >&5
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); } &&
b4e70030
JB
19469 { ac_try='test -z "$ac_c_werror_flag"
19470 || test ! -s conftest.err'
4e8d927d
DJ
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try='test -s conftest.$ac_objext'
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482 ac_cv_have_decl_snprintf=yes
19483else
19484 echo "$as_me: failed program was:" >&5
19485sed 's/^/| /' conftest.$ac_ext >&5
19486
b4e70030 19487ac_cv_have_decl_snprintf=no
4e8d927d 19488fi
4e8d927d
DJ
19489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19490fi
b4e70030
JB
19491echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
19492echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
4e8d927d
DJ
19493if test $ac_cv_have_decl_snprintf = yes; then
19494
19495cat >>confdefs.h <<_ACEOF
19496#define HAVE_DECL_SNPRINTF 1
19497_ACEOF
19498
19499
19500else
19501 cat >>confdefs.h <<_ACEOF
19502#define HAVE_DECL_SNPRINTF 0
19503_ACEOF
19504
19505
19506fi
b4e70030
JB
19507echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
19508echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
19509if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
19510 echo $ECHO_N "(cached) $ECHO_C" >&6
19511else
19512 cat >conftest.$ac_ext <<_ACEOF
19513/* confdefs.h. */
19514_ACEOF
19515cat confdefs.h >>conftest.$ac_ext
19516cat >>conftest.$ac_ext <<_ACEOF
19517/* end confdefs.h. */
19518$ac_includes_default
19519int
19520main ()
19521{
19522#ifndef vsnprintf
19523 char *p = (char *) vsnprintf;
4e8d927d
DJ
19524#endif
19525
19526 ;
19527 return 0;
19528}
19529_ACEOF
19530rm -f conftest.$ac_objext
19531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19532 (eval $ac_compile) 2>conftest.er1
19533 ac_status=$?
19534 grep -v '^ *+' conftest.er1 >conftest.err
19535 rm -f conftest.er1
19536 cat conftest.err >&5
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); } &&
b4e70030
JB
19539 { ac_try='test -z "$ac_c_werror_flag"
19540 || test ! -s conftest.err'
4e8d927d
DJ
19541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19542 (eval $ac_try) 2>&5
19543 ac_status=$?
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); }; } &&
19546 { ac_try='test -s conftest.$ac_objext'
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19549 ac_status=$?
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; }; then
19552 ac_cv_have_decl_vsnprintf=yes
19553else
19554 echo "$as_me: failed program was:" >&5
19555sed 's/^/| /' conftest.$ac_ext >&5
19556
b4e70030 19557ac_cv_have_decl_vsnprintf=no
4e8d927d 19558fi
4e8d927d
DJ
19559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19560fi
b4e70030
JB
19561echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
19562echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
4e8d927d
DJ
19563if test $ac_cv_have_decl_vsnprintf = yes; then
19564
19565cat >>confdefs.h <<_ACEOF
19566#define HAVE_DECL_VSNPRINTF 1
19567_ACEOF
19568
19569
19570else
19571 cat >>confdefs.h <<_ACEOF
19572#define HAVE_DECL_VSNPRINTF 0
19573_ACEOF
19574
19575
19576fi
19577
19578
19579
19580# ----------------------- #
19581# Checks for structures. #
19582# ----------------------- #
19583
b4e70030
JB
19584echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19585echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4e8d927d
DJ
19586if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19587 echo $ECHO_N "(cached) $ECHO_C" >&6
19588else
19589 cat >conftest.$ac_ext <<_ACEOF
19590/* confdefs.h. */
19591_ACEOF
19592cat confdefs.h >>conftest.$ac_ext
19593cat >>conftest.$ac_ext <<_ACEOF
19594/* end confdefs.h. */
19595$ac_includes_default
19596int
19597main ()
19598{
19599static struct stat ac_aggr;
19600if (ac_aggr.st_blocks)
19601return 0;
19602 ;
19603 return 0;
19604}
19605_ACEOF
19606rm -f conftest.$ac_objext
19607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19608 (eval $ac_compile) 2>conftest.er1
19609 ac_status=$?
19610 grep -v '^ *+' conftest.er1 >conftest.err
19611 rm -f conftest.er1
19612 cat conftest.err >&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); } &&
b4e70030
JB
19615 { ac_try='test -z "$ac_c_werror_flag"
19616 || test ! -s conftest.err'
4e8d927d
DJ
19617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19618 (eval $ac_try) 2>&5
19619 ac_status=$?
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); }; } &&
19622 { ac_try='test -s conftest.$ac_objext'
19623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624 (eval $ac_try) 2>&5
19625 ac_status=$?
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); }; }; then
19628 ac_cv_member_struct_stat_st_blocks=yes
19629else
19630 echo "$as_me: failed program was:" >&5
19631sed 's/^/| /' conftest.$ac_ext >&5
19632
b4e70030 19633cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
19634/* confdefs.h. */
19635_ACEOF
19636cat confdefs.h >>conftest.$ac_ext
19637cat >>conftest.$ac_ext <<_ACEOF
19638/* end confdefs.h. */
19639$ac_includes_default
19640int
19641main ()
19642{
19643static struct stat ac_aggr;
19644if (sizeof ac_aggr.st_blocks)
19645return 0;
19646 ;
19647 return 0;
19648}
19649_ACEOF
19650rm -f conftest.$ac_objext
19651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19652 (eval $ac_compile) 2>conftest.er1
19653 ac_status=$?
19654 grep -v '^ *+' conftest.er1 >conftest.err
19655 rm -f conftest.er1
19656 cat conftest.err >&5
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); } &&
b4e70030
JB
19659 { ac_try='test -z "$ac_c_werror_flag"
19660 || test ! -s conftest.err'
4e8d927d
DJ
19661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662 (eval $ac_try) 2>&5
19663 ac_status=$?
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; } &&
19666 { ac_try='test -s conftest.$ac_objext'
19667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668 (eval $ac_try) 2>&5
19669 ac_status=$?
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); }; }; then
19672 ac_cv_member_struct_stat_st_blocks=yes
19673else
19674 echo "$as_me: failed program was:" >&5
19675sed 's/^/| /' conftest.$ac_ext >&5
19676
b4e70030 19677ac_cv_member_struct_stat_st_blocks=no
4e8d927d 19678fi
4e8d927d
DJ
19679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19680fi
4e8d927d
DJ
19681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19682fi
b4e70030
JB
19683echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19684echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4e8d927d
DJ
19685if test $ac_cv_member_struct_stat_st_blocks = yes; then
19686
19687cat >>confdefs.h <<_ACEOF
19688#define HAVE_STRUCT_STAT_ST_BLOCKS 1
19689_ACEOF
19690
19691
19692fi
19693
b4e70030
JB
19694echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19695echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4e8d927d
DJ
19696if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19697 echo $ECHO_N "(cached) $ECHO_C" >&6
19698else
19699 cat >conftest.$ac_ext <<_ACEOF
19700/* confdefs.h. */
19701_ACEOF
19702cat confdefs.h >>conftest.$ac_ext
19703cat >>conftest.$ac_ext <<_ACEOF
19704/* end confdefs.h. */
19705$ac_includes_default
19706int
19707main ()
19708{
19709static struct stat ac_aggr;
19710if (ac_aggr.st_blksize)
19711return 0;
19712 ;
19713 return 0;
19714}
19715_ACEOF
19716rm -f conftest.$ac_objext
19717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19718 (eval $ac_compile) 2>conftest.er1
19719 ac_status=$?
19720 grep -v '^ *+' conftest.er1 >conftest.err
19721 rm -f conftest.er1
19722 cat conftest.err >&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); } &&
b4e70030
JB
19725 { ac_try='test -z "$ac_c_werror_flag"
19726 || test ! -s conftest.err'
4e8d927d
DJ
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19729 ac_status=$?
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; } &&
19732 { ac_try='test -s conftest.$ac_objext'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19735 ac_status=$?
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; }; then
19738 ac_cv_member_struct_stat_st_blksize=yes
19739else
19740 echo "$as_me: failed program was:" >&5
19741sed 's/^/| /' conftest.$ac_ext >&5
19742
b4e70030 19743cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
19744/* confdefs.h. */
19745_ACEOF
19746cat confdefs.h >>conftest.$ac_ext
19747cat >>conftest.$ac_ext <<_ACEOF
19748/* end confdefs.h. */
19749$ac_includes_default
19750int
19751main ()
19752{
19753static struct stat ac_aggr;
19754if (sizeof ac_aggr.st_blksize)
19755return 0;
19756 ;
19757 return 0;
19758}
19759_ACEOF
19760rm -f conftest.$ac_objext
19761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19762 (eval $ac_compile) 2>conftest.er1
19763 ac_status=$?
19764 grep -v '^ *+' conftest.er1 >conftest.err
19765 rm -f conftest.er1
19766 cat conftest.err >&5
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); } &&
b4e70030
JB
19769 { ac_try='test -z "$ac_c_werror_flag"
19770 || test ! -s conftest.err'
4e8d927d
DJ
19771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19772 (eval $ac_try) 2>&5
19773 ac_status=$?
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); }; } &&
19776 { ac_try='test -s conftest.$ac_objext'
19777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778 (eval $ac_try) 2>&5
19779 ac_status=$?
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; }; then
19782 ac_cv_member_struct_stat_st_blksize=yes
19783else
19784 echo "$as_me: failed program was:" >&5
19785sed 's/^/| /' conftest.$ac_ext >&5
19786
b4e70030 19787ac_cv_member_struct_stat_st_blksize=no
4e8d927d 19788fi
4e8d927d
DJ
19789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19790fi
4e8d927d
DJ
19791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19792fi
b4e70030
JB
19793echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19794echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4e8d927d
DJ
19795if test $ac_cv_member_struct_stat_st_blksize = yes; then
19796
19797cat >>confdefs.h <<_ACEOF
19798#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19799_ACEOF
19800
19801
19802fi
19803
19804
19805# ------------------ #
19806# Checks for types. #
19807# ------------------ #
19808
b4e70030
JB
19809echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19810echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4e8d927d
DJ
19811if test "${ac_cv_type_signal+set}" = set; then
19812 echo $ECHO_N "(cached) $ECHO_C" >&6
19813else
19814 cat >conftest.$ac_ext <<_ACEOF
19815/* confdefs.h. */
19816_ACEOF
19817cat confdefs.h >>conftest.$ac_ext
19818cat >>conftest.$ac_ext <<_ACEOF
19819/* end confdefs.h. */
19820#include <sys/types.h>
19821#include <signal.h>
b4e70030
JB
19822#ifdef signal
19823# undef signal
19824#endif
19825#ifdef __cplusplus
19826extern "C" void (*signal (int, void (*)(int)))(int);
19827#else
19828void (*signal ()) ();
19829#endif
4e8d927d
DJ
19830
19831int
19832main ()
19833{
b4e70030 19834int i;
4e8d927d
DJ
19835 ;
19836 return 0;
19837}
19838_ACEOF
19839rm -f conftest.$ac_objext
19840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19841 (eval $ac_compile) 2>conftest.er1
19842 ac_status=$?
19843 grep -v '^ *+' conftest.er1 >conftest.err
19844 rm -f conftest.er1
19845 cat conftest.err >&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } &&
b4e70030
JB
19848 { ac_try='test -z "$ac_c_werror_flag"
19849 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
19855 { ac_try='test -s conftest.$ac_objext'
19856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19857 (eval $ac_try) 2>&5
19858 ac_status=$?
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); }; }; then
b4e70030 19861 ac_cv_type_signal=void
4e8d927d
DJ
19862else
19863 echo "$as_me: failed program was:" >&5
19864sed 's/^/| /' conftest.$ac_ext >&5
19865
b4e70030 19866ac_cv_type_signal=int
4e8d927d 19867fi
4e8d927d
DJ
19868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19869fi
b4e70030
JB
19870echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19871echo "${ECHO_T}$ac_cv_type_signal" >&6
4e8d927d
DJ
19872
19873cat >>confdefs.h <<_ACEOF
19874#define RETSIGTYPE $ac_cv_type_signal
19875_ACEOF
19876
19877
b4e70030
JB
19878echo "$as_me:$LINENO: checking for socklen_t" >&5
19879echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4e8d927d
DJ
19880if test "${ac_cv_type_socklen_t+set}" = set; then
19881 echo $ECHO_N "(cached) $ECHO_C" >&6
19882else
19883 cat >conftest.$ac_ext <<_ACEOF
19884/* confdefs.h. */
19885_ACEOF
19886cat confdefs.h >>conftest.$ac_ext
19887cat >>conftest.$ac_ext <<_ACEOF
19888/* end confdefs.h. */
19889#include <sys/types.h>
19890#include <sys/socket.h>
19891
19892
4e8d927d
DJ
19893int
19894main ()
19895{
b4e70030 19896if ((socklen_t *) 0)
4e8d927d 19897 return 0;
b4e70030 19898if (sizeof (socklen_t))
4e8d927d
DJ
19899 return 0;
19900 ;
19901 return 0;
19902}
19903_ACEOF
19904rm -f conftest.$ac_objext
19905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19906 (eval $ac_compile) 2>conftest.er1
19907 ac_status=$?
19908 grep -v '^ *+' conftest.er1 >conftest.err
19909 rm -f conftest.er1
19910 cat conftest.err >&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); } &&
b4e70030
JB
19913 { ac_try='test -z "$ac_c_werror_flag"
19914 || test ! -s conftest.err'
4e8d927d
DJ
19915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916 (eval $ac_try) 2>&5
19917 ac_status=$?
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; } &&
19920 { ac_try='test -s conftest.$ac_objext'
19921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19922 (eval $ac_try) 2>&5
19923 ac_status=$?
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); }; }; then
19926 ac_cv_type_socklen_t=yes
19927else
19928 echo "$as_me: failed program was:" >&5
19929sed 's/^/| /' conftest.$ac_ext >&5
19930
b4e70030 19931ac_cv_type_socklen_t=no
4e8d927d 19932fi
4e8d927d
DJ
19933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19934fi
b4e70030
JB
19935echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
19936echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4e8d927d
DJ
19937if test $ac_cv_type_socklen_t = yes; then
19938
19939cat >>confdefs.h <<_ACEOF
19940#define HAVE_SOCKLEN_T 1
19941_ACEOF
19942
19943
19944fi
19945
b4e70030
JB
19946echo "$as_me:$LINENO: checking for uintptr_t" >&5
19947echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d
DJ
19948if test "${ac_cv_type_uintptr_t+set}" = set; then
19949 echo $ECHO_N "(cached) $ECHO_C" >&6
19950else
19951 cat >conftest.$ac_ext <<_ACEOF
19952/* confdefs.h. */
19953_ACEOF
19954cat confdefs.h >>conftest.$ac_ext
19955cat >>conftest.$ac_ext <<_ACEOF
19956/* end confdefs.h. */
19957#include <stdint.h>
19958
4e8d927d
DJ
19959int
19960main ()
19961{
b4e70030 19962if ((uintptr_t *) 0)
4e8d927d 19963 return 0;
b4e70030 19964if (sizeof (uintptr_t))
4e8d927d
DJ
19965 return 0;
19966 ;
19967 return 0;
19968}
19969_ACEOF
19970rm -f conftest.$ac_objext
19971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19972 (eval $ac_compile) 2>conftest.er1
19973 ac_status=$?
19974 grep -v '^ *+' conftest.er1 >conftest.err
19975 rm -f conftest.er1
19976 cat conftest.err >&5
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); } &&
b4e70030
JB
19979 { ac_try='test -z "$ac_c_werror_flag"
19980 || test ! -s conftest.err'
4e8d927d
DJ
19981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19982 (eval $ac_try) 2>&5
19983 ac_status=$?
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); }; } &&
19986 { ac_try='test -s conftest.$ac_objext'
19987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19988 (eval $ac_try) 2>&5
19989 ac_status=$?
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); }; }; then
19992 ac_cv_type_uintptr_t=yes
19993else
19994 echo "$as_me: failed program was:" >&5
19995sed 's/^/| /' conftest.$ac_ext >&5
19996
b4e70030 19997ac_cv_type_uintptr_t=no
4e8d927d 19998fi
4e8d927d
DJ
19999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20000fi
b4e70030
JB
20001echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
20002echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
20003if test $ac_cv_type_uintptr_t = yes; then
20004
20005cat >>confdefs.h <<_ACEOF
20006#define HAVE_UINTPTR_T 1
20007_ACEOF
20008
20009
20010fi
20011
20012
20013# ------------------------------------- #
20014# Checks for compiler characteristics. #
20015# ------------------------------------- #
20016
b4e70030
JB
20017echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20018echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4e8d927d
DJ
20019if test "${ac_cv_c_const+set}" = set; then
20020 echo $ECHO_N "(cached) $ECHO_C" >&6
20021else
20022 cat >conftest.$ac_ext <<_ACEOF
20023/* confdefs.h. */
20024_ACEOF
20025cat confdefs.h >>conftest.$ac_ext
20026cat >>conftest.$ac_ext <<_ACEOF
20027/* end confdefs.h. */
20028
20029int
20030main ()
20031{
20032/* FIXME: Include the comments suggested by Paul. */
20033#ifndef __cplusplus
20034 /* Ultrix mips cc rejects this. */
20035 typedef int charset[2];
20036 const charset x;
20037 /* SunOS 4.1.1 cc rejects this. */
20038 char const *const *ccp;
20039 char **p;
20040 /* NEC SVR4.0.2 mips cc rejects this. */
20041 struct point {int x, y;};
20042 static struct point const zero = {0,0};
20043 /* AIX XL C 1.02.0.0 rejects this.
20044 It does not let you subtract one const X* pointer from another in
20045 an arm of an if-expression whose if-part is not a constant
20046 expression */
20047 const char *g = "string";
20048 ccp = &g + (g ? g-g : 0);
20049 /* HPUX 7.0 cc rejects these. */
20050 ++ccp;
20051 p = (char**) ccp;
20052 ccp = (char const *const *) p;
20053 { /* SCO 3.2v4 cc rejects this. */
20054 char *t;
20055 char const *s = 0 ? (char *) 0 : (char const *) 0;
20056
20057 *t++ = 0;
4e8d927d
DJ
20058 }
20059 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20060 int x[] = {25, 17};
20061 const int *foo = &x[0];
20062 ++foo;
20063 }
20064 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20065 typedef const int *iptr;
20066 iptr p = 0;
20067 ++p;
20068 }
20069 { /* AIX XL C 1.02.0.0 rejects this saying
20070 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20071 struct s { int j; const int *ap[3]; };
20072 struct s *b; b->j = 5;
20073 }
20074 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20075 const int foo = 10;
4e8d927d 20076 }
4e8d927d
DJ
20077#endif
20078
20079 ;
20080 return 0;
20081}
20082_ACEOF
20083rm -f conftest.$ac_objext
20084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20085 (eval $ac_compile) 2>conftest.er1
20086 ac_status=$?
20087 grep -v '^ *+' conftest.er1 >conftest.err
20088 rm -f conftest.er1
20089 cat conftest.err >&5
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); } &&
b4e70030
JB
20092 { ac_try='test -z "$ac_c_werror_flag"
20093 || test ! -s conftest.err'
4e8d927d
DJ
20094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095 (eval $ac_try) 2>&5
20096 ac_status=$?
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); }; } &&
20099 { ac_try='test -s conftest.$ac_objext'
20100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20101 (eval $ac_try) 2>&5
20102 ac_status=$?
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); }; }; then
20105 ac_cv_c_const=yes
20106else
20107 echo "$as_me: failed program was:" >&5
20108sed 's/^/| /' conftest.$ac_ext >&5
20109
b4e70030 20110ac_cv_c_const=no
4e8d927d 20111fi
4e8d927d
DJ
20112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20113fi
b4e70030
JB
20114echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20115echo "${ECHO_T}$ac_cv_c_const" >&6
4e8d927d
DJ
20116if test $ac_cv_c_const = no; then
20117
20118cat >>confdefs.h <<\_ACEOF
20119#define const
20120_ACEOF
20121
20122fi
20123
b4e70030
JB
20124echo "$as_me:$LINENO: checking for inline" >&5
20125echo $ECHO_N "checking for inline... $ECHO_C" >&6
4e8d927d
DJ
20126if test "${ac_cv_c_inline+set}" = set; then
20127 echo $ECHO_N "(cached) $ECHO_C" >&6
20128else
20129 ac_cv_c_inline=no
20130for ac_kw in inline __inline__ __inline; do
20131 cat >conftest.$ac_ext <<_ACEOF
20132/* confdefs.h. */
20133_ACEOF
20134cat confdefs.h >>conftest.$ac_ext
20135cat >>conftest.$ac_ext <<_ACEOF
20136/* end confdefs.h. */
20137#ifndef __cplusplus
20138typedef int foo_t;
20139static $ac_kw foo_t static_foo () {return 0; }
20140$ac_kw foo_t foo () {return 0; }
20141#endif
20142
20143_ACEOF
20144rm -f conftest.$ac_objext
20145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20146 (eval $ac_compile) 2>conftest.er1
20147 ac_status=$?
20148 grep -v '^ *+' conftest.er1 >conftest.err
20149 rm -f conftest.er1
20150 cat conftest.err >&5
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); } &&
b4e70030
JB
20153 { ac_try='test -z "$ac_c_werror_flag"
20154 || test ! -s conftest.err'
4e8d927d
DJ
20155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20156 (eval $ac_try) 2>&5
20157 ac_status=$?
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); }; } &&
20160 { ac_try='test -s conftest.$ac_objext'
20161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162 (eval $ac_try) 2>&5
20163 ac_status=$?
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; }; then
b4e70030 20166 ac_cv_c_inline=$ac_kw; break
4e8d927d
DJ
20167else
20168 echo "$as_me: failed program was:" >&5
20169sed 's/^/| /' conftest.$ac_ext >&5
20170
4e8d927d 20171fi
4e8d927d 20172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
20173done
20174
20175fi
b4e70030
JB
20176echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20177echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 20178
bec39cab 20179
a3828db0
MK
20180case $ac_cv_c_inline in
20181 inline | yes) ;;
20182 *)
20183 case $ac_cv_c_inline in
20184 no) ac_val=;;
20185 *) ac_val=$ac_cv_c_inline;;
20186 esac
20187 cat >>confdefs.h <<_ACEOF
20188#ifndef __cplusplus
20189#define inline $ac_val
20190#endif
20191_ACEOF
bec39cab
AC
20192 ;;
20193esac
bec39cab 20194
9b913628
TJB
20195echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20196echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20197if test "${ac_cv_c_bigendian+set}" = set; then
20198 echo $ECHO_N "(cached) $ECHO_C" >&6
20199else
20200 # See if sys/param.h defines the BYTE_ORDER macro.
20201cat >conftest.$ac_ext <<_ACEOF
20202/* confdefs.h. */
20203_ACEOF
20204cat confdefs.h >>conftest.$ac_ext
20205cat >>conftest.$ac_ext <<_ACEOF
20206/* end confdefs.h. */
20207#include <sys/types.h>
20208#include <sys/param.h>
20209
20210int
20211main ()
20212{
20213#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20214 bogus endian macros
20215#endif
20216
20217 ;
20218 return 0;
20219}
20220_ACEOF
20221rm -f conftest.$ac_objext
20222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20223 (eval $ac_compile) 2>conftest.er1
20224 ac_status=$?
20225 grep -v '^ *+' conftest.er1 >conftest.err
20226 rm -f conftest.er1
20227 cat conftest.err >&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); } &&
20230 { ac_try='test -z "$ac_c_werror_flag"
20231 || test ! -s conftest.err'
20232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233 (eval $ac_try) 2>&5
20234 ac_status=$?
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); }; } &&
20237 { ac_try='test -s conftest.$ac_objext'
20238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239 (eval $ac_try) 2>&5
20240 ac_status=$?
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; }; then
20243 # It does; now see whether it defined to BIG_ENDIAN or not.
20244cat >conftest.$ac_ext <<_ACEOF
20245/* confdefs.h. */
20246_ACEOF
20247cat confdefs.h >>conftest.$ac_ext
20248cat >>conftest.$ac_ext <<_ACEOF
20249/* end confdefs.h. */
20250#include <sys/types.h>
20251#include <sys/param.h>
20252
20253int
20254main ()
20255{
20256#if BYTE_ORDER != BIG_ENDIAN
20257 not big endian
20258#endif
20259
20260 ;
20261 return 0;
20262}
20263_ACEOF
20264rm -f conftest.$ac_objext
20265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20266 (eval $ac_compile) 2>conftest.er1
20267 ac_status=$?
20268 grep -v '^ *+' conftest.er1 >conftest.err
20269 rm -f conftest.er1
20270 cat conftest.err >&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); } &&
20273 { ac_try='test -z "$ac_c_werror_flag"
20274 || test ! -s conftest.err'
20275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20276 (eval $ac_try) 2>&5
20277 ac_status=$?
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); }; } &&
20280 { ac_try='test -s conftest.$ac_objext'
20281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20282 (eval $ac_try) 2>&5
20283 ac_status=$?
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); }; }; then
20286 ac_cv_c_bigendian=yes
20287else
20288 echo "$as_me: failed program was:" >&5
20289sed 's/^/| /' conftest.$ac_ext >&5
20290
20291ac_cv_c_bigendian=no
20292fi
20293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20294else
20295 echo "$as_me: failed program was:" >&5
20296sed 's/^/| /' conftest.$ac_ext >&5
20297
20298# It does not; compile a test program.
20299if test "$cross_compiling" = yes; then
20300 # try to guess the endianness by grepping values into an object file
20301 ac_cv_c_bigendian=unknown
20302 cat >conftest.$ac_ext <<_ACEOF
20303/* confdefs.h. */
20304_ACEOF
20305cat confdefs.h >>conftest.$ac_ext
20306cat >>conftest.$ac_ext <<_ACEOF
20307/* end confdefs.h. */
20308short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20309short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20310void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20311short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20312short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20313void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20314int
20315main ()
20316{
20317 _ascii (); _ebcdic ();
20318 ;
20319 return 0;
20320}
20321_ACEOF
20322rm -f conftest.$ac_objext
20323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20324 (eval $ac_compile) 2>conftest.er1
20325 ac_status=$?
20326 grep -v '^ *+' conftest.er1 >conftest.err
20327 rm -f conftest.er1
20328 cat conftest.err >&5
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); } &&
20331 { ac_try='test -z "$ac_c_werror_flag"
20332 || test ! -s conftest.err'
20333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20334 (eval $ac_try) 2>&5
20335 ac_status=$?
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); }; } &&
20338 { ac_try='test -s conftest.$ac_objext'
20339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340 (eval $ac_try) 2>&5
20341 ac_status=$?
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; }; then
20344 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20345 ac_cv_c_bigendian=yes
20346fi
20347if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20348 if test "$ac_cv_c_bigendian" = unknown; then
20349 ac_cv_c_bigendian=no
20350 else
20351 # finding both strings is unlikely to happen, but who knows?
20352 ac_cv_c_bigendian=unknown
20353 fi
20354fi
20355else
20356 echo "$as_me: failed program was:" >&5
20357sed 's/^/| /' conftest.$ac_ext >&5
20358
20359fi
20360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20361else
20362 cat >conftest.$ac_ext <<_ACEOF
20363/* confdefs.h. */
20364_ACEOF
20365cat confdefs.h >>conftest.$ac_ext
20366cat >>conftest.$ac_ext <<_ACEOF
20367/* end confdefs.h. */
20368int
20369main ()
20370{
20371 /* Are we little or big endian? From Harbison&Steele. */
20372 union
20373 {
20374 long l;
20375 char c[sizeof (long)];
20376 } u;
20377 u.l = 1;
20378 exit (u.c[sizeof (long) - 1] == 1);
20379}
20380_ACEOF
20381rm -f conftest$ac_exeext
20382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20383 (eval $ac_link) 2>&5
20384 ac_status=$?
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388 (eval $ac_try) 2>&5
20389 ac_status=$?
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; }; then
20392 ac_cv_c_bigendian=no
20393else
20394 echo "$as_me: program exited with status $ac_status" >&5
20395echo "$as_me: failed program was:" >&5
20396sed 's/^/| /' conftest.$ac_ext >&5
20397
20398( exit $ac_status )
20399ac_cv_c_bigendian=yes
20400fi
20401rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20402fi
20403fi
20404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20405fi
20406echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20407echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20408case $ac_cv_c_bigendian in
20409 yes)
20410
20411cat >>confdefs.h <<\_ACEOF
20412#define WORDS_BIGENDIAN 1
20413_ACEOF
20414 ;;
20415 no)
20416 ;;
20417 *)
20418 { { echo "$as_me:$LINENO: error: unknown endianness
20419presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20420echo "$as_me: error: unknown endianness
20421presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20422 { (exit 1); exit 1; }; } ;;
20423esac
20424
74c1b268 20425
a3828db0
MK
20426# ------------------------------ #
20427# Checks for library functions. #
20428# ------------------------------ #
bec39cab 20429
a3828db0
MK
20430# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20431# for constant arguments. Useless!
b4e70030
JB
20432echo "$as_me:$LINENO: checking for working alloca.h" >&5
20433echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
a3828db0 20434if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
20435 echo $ECHO_N "(cached) $ECHO_C" >&6
20436else
20437 cat >conftest.$ac_ext <<_ACEOF
20438/* confdefs.h. */
20439_ACEOF
20440cat confdefs.h >>conftest.$ac_ext
20441cat >>conftest.$ac_ext <<_ACEOF
20442/* end confdefs.h. */
a3828db0 20443#include <alloca.h>
bec39cab
AC
20444int
20445main ()
20446{
a3828db0 20447char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
20448 ;
20449 return 0;
20450}
20451_ACEOF
20452rm -f conftest.$ac_objext conftest$ac_exeext
20453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20454 (eval $ac_link) 2>conftest.er1
20455 ac_status=$?
20456 grep -v '^ *+' conftest.er1 >conftest.err
20457 rm -f conftest.er1
20458 cat conftest.err >&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); } &&
b4e70030
JB
20461 { ac_try='test -z "$ac_c_werror_flag"
20462 || test ! -s conftest.err'
bec39cab
AC
20463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464 (eval $ac_try) 2>&5
20465 ac_status=$?
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); }; } &&
20468 { ac_try='test -s conftest$ac_exeext'
20469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470 (eval $ac_try) 2>&5
20471 ac_status=$?
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; }; then
a3828db0 20474 ac_cv_working_alloca_h=yes
bec39cab
AC
20475else
20476 echo "$as_me: failed program was:" >&5
20477sed 's/^/| /' conftest.$ac_ext >&5
20478
b4e70030 20479ac_cv_working_alloca_h=no
bec39cab
AC
20480fi
20481rm -f conftest.err conftest.$ac_objext \
20482 conftest$ac_exeext conftest.$ac_ext
20483fi
b4e70030
JB
20484echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20485echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
a3828db0
MK
20486if test $ac_cv_working_alloca_h = yes; then
20487
20488cat >>confdefs.h <<\_ACEOF
20489#define HAVE_ALLOCA_H 1
bec39cab 20490_ACEOF
74c1b268 20491
74c1b268
AC
20492fi
20493
b4e70030
JB
20494echo "$as_me:$LINENO: checking for alloca" >&5
20495echo $ECHO_N "checking for alloca... $ECHO_C" >&6
a3828db0 20496if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 20497 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 20498else
bec39cab
AC
20499 cat >conftest.$ac_ext <<_ACEOF
20500/* confdefs.h. */
20501_ACEOF
20502cat confdefs.h >>conftest.$ac_ext
20503cat >>conftest.$ac_ext <<_ACEOF
20504/* end confdefs.h. */
a3828db0
MK
20505#ifdef __GNUC__
20506# define alloca __builtin_alloca
20507#else
20508# ifdef _MSC_VER
20509# include <malloc.h>
20510# define alloca _alloca
20511# else
20512# if HAVE_ALLOCA_H
20513# include <alloca.h>
20514# else
20515# ifdef _AIX
20516 #pragma alloca
20517# else
20518# ifndef alloca /* predefined by HP cc +Olibcalls */
20519char *alloca ();
20520# endif
20521# endif
20522# endif
97bf5e38 20523# endif
a3828db0 20524#endif
97bf5e38 20525
bec39cab
AC
20526int
20527main ()
20528{
a3828db0 20529char *p = (char *) alloca (1);
bec39cab
AC
20530 ;
20531 return 0;
20532}
20533_ACEOF
a3828db0
MK
20534rm -f conftest.$ac_objext conftest$ac_exeext
20535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20536 (eval $ac_link) 2>conftest.er1
bec39cab
AC
20537 ac_status=$?
20538 grep -v '^ *+' conftest.er1 >conftest.err
20539 rm -f conftest.er1
20540 cat conftest.err >&5
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); } &&
b4e70030
JB
20543 { ac_try='test -z "$ac_c_werror_flag"
20544 || test ! -s conftest.err'
bec39cab
AC
20545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546 (eval $ac_try) 2>&5
20547 ac_status=$?
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); }; } &&
a3828db0 20550 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
20551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20552 (eval $ac_try) 2>&5
20553 ac_status=$?
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }; }; then
a3828db0 20556 ac_cv_func_alloca_works=yes
0200359f 20557else
bec39cab
AC
20558 echo "$as_me: failed program was:" >&5
20559sed 's/^/| /' conftest.$ac_ext >&5
0200359f 20560
b4e70030 20561ac_cv_func_alloca_works=no
0200359f 20562fi
a3828db0
MK
20563rm -f conftest.err conftest.$ac_objext \
20564 conftest$ac_exeext conftest.$ac_ext
72473524 20565fi
b4e70030
JB
20566echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20567echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 20568
a3828db0
MK
20569if test $ac_cv_func_alloca_works = yes; then
20570
20571cat >>confdefs.h <<\_ACEOF
20572#define HAVE_ALLOCA 1
bec39cab
AC
20573_ACEOF
20574
a3828db0
MK
20575else
20576 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20577# that cause trouble. Some versions do not even contain alloca or
20578# contain a buggy version. If you still want to use their alloca,
20579# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 20580
b4e70030 20581ALLOCA=alloca.$ac_objext
bec39cab 20582
a3828db0
MK
20583cat >>confdefs.h <<\_ACEOF
20584#define C_ALLOCA 1
20585_ACEOF
bec39cab 20586
a3828db0 20587
b4e70030
JB
20588echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20589echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
a3828db0 20590if test "${ac_cv_os_cray+set}" = set; then
bec39cab 20591 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 20592else
a3828db0 20593 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
20594/* confdefs.h. */
20595_ACEOF
20596cat confdefs.h >>conftest.$ac_ext
20597cat >>conftest.$ac_ext <<_ACEOF
20598/* end confdefs.h. */
b4e70030 20599#if defined(CRAY) && ! defined(CRAY2)
a3828db0
MK
20600webecray
20601#else
20602wenotbecray
20603#endif
20604
20605_ACEOF
20606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20607 $EGREP "webecray" >/dev/null 2>&1; then
20608 ac_cv_os_cray=yes
20609else
20610 ac_cv_os_cray=no
20611fi
20612rm -f conftest*
20613
20614fi
b4e70030
JB
20615echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20616echo "${ECHO_T}$ac_cv_os_cray" >&6
a3828db0
MK
20617if test $ac_cv_os_cray = yes; then
20618 for ac_func in _getb67 GETB67 getb67; do
20619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
20620echo "$as_me:$LINENO: checking for $ac_func" >&5
20621echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20622if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
20623 echo $ECHO_N "(cached) $ECHO_C" >&6
20624else
20625 cat >conftest.$ac_ext <<_ACEOF
20626/* confdefs.h. */
20627_ACEOF
20628cat confdefs.h >>conftest.$ac_ext
20629cat >>conftest.$ac_ext <<_ACEOF
20630/* end confdefs.h. */
20631/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20633#define $ac_func innocuous_$ac_func
20634
20635/* System header to define __stub macros and hopefully few prototypes,
20636 which can conflict with char $ac_func (); below.
20637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20638 <limits.h> exists even on freestanding compilers. */
20639
20640#ifdef __STDC__
20641# include <limits.h>
20642#else
20643# include <assert.h>
20644#endif
20645
20646#undef $ac_func
20647
b4e70030 20648/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
20649#ifdef __cplusplus
20650extern "C"
b4e70030 20651{
a3828db0 20652#endif
b4e70030
JB
20653/* We use char because int might match the return type of a gcc2
20654 builtin and then its argument prototype would still apply. */
a3828db0
MK
20655char $ac_func ();
20656/* The GNU C library defines this for functions which it implements
20657 to always fail with ENOSYS. Some functions are actually named
20658 something starting with __ and the normal name is an alias. */
b4e70030 20659#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 20660choke me
b4e70030
JB
20661#else
20662char (*f) () = $ac_func;
20663#endif
20664#ifdef __cplusplus
20665}
a3828db0
MK
20666#endif
20667
20668int
20669main ()
20670{
b4e70030 20671return f != $ac_func;
a3828db0
MK
20672 ;
20673 return 0;
20674}
20675_ACEOF
20676rm -f conftest.$ac_objext conftest$ac_exeext
20677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20678 (eval $ac_link) 2>conftest.er1
20679 ac_status=$?
20680 grep -v '^ *+' conftest.er1 >conftest.err
20681 rm -f conftest.er1
20682 cat conftest.err >&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); } &&
b4e70030
JB
20685 { ac_try='test -z "$ac_c_werror_flag"
20686 || test ! -s conftest.err'
a3828db0
MK
20687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20688 (eval $ac_try) 2>&5
20689 ac_status=$?
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); }; } &&
20692 { ac_try='test -s conftest$ac_exeext'
20693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20694 (eval $ac_try) 2>&5
20695 ac_status=$?
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); }; }; then
20698 eval "$as_ac_var=yes"
20699else
20700 echo "$as_me: failed program was:" >&5
20701sed 's/^/| /' conftest.$ac_ext >&5
20702
b4e70030 20703eval "$as_ac_var=no"
a3828db0
MK
20704fi
20705rm -f conftest.err conftest.$ac_objext \
20706 conftest$ac_exeext conftest.$ac_ext
20707fi
b4e70030
JB
20708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20709echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
20710if test `eval echo '${'$as_ac_var'}'` = yes; then
20711
20712cat >>confdefs.h <<_ACEOF
20713#define CRAY_STACKSEG_END $ac_func
20714_ACEOF
20715
20716 break
20717fi
20718
20719 done
20720fi
20721
b4e70030
JB
20722echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20723echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
a3828db0
MK
20724if test "${ac_cv_c_stack_direction+set}" = set; then
20725 echo $ECHO_N "(cached) $ECHO_C" >&6
20726else
20727 if test "$cross_compiling" = yes; then
20728 ac_cv_c_stack_direction=0
20729else
20730 cat >conftest.$ac_ext <<_ACEOF
20731/* confdefs.h. */
20732_ACEOF
20733cat confdefs.h >>conftest.$ac_ext
20734cat >>conftest.$ac_ext <<_ACEOF
20735/* end confdefs.h. */
20736int
20737find_stack_direction ()
20738{
20739 static char *addr = 0;
20740 auto char dummy;
20741 if (addr == 0)
20742 {
20743 addr = &dummy;
20744 return find_stack_direction ();
20745 }
20746 else
20747 return (&dummy > addr) ? 1 : -1;
20748}
20749
20750int
20751main ()
20752{
b4e70030 20753 exit (find_stack_direction () < 0);
a3828db0
MK
20754}
20755_ACEOF
20756rm -f conftest$ac_exeext
20757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20758 (eval $ac_link) 2>&5
20759 ac_status=$?
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20763 (eval $ac_try) 2>&5
20764 ac_status=$?
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); }; }; then
20767 ac_cv_c_stack_direction=1
20768else
20769 echo "$as_me: program exited with status $ac_status" >&5
20770echo "$as_me: failed program was:" >&5
20771sed 's/^/| /' conftest.$ac_ext >&5
20772
20773( exit $ac_status )
20774ac_cv_c_stack_direction=-1
20775fi
b4e70030 20776rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
20777fi
20778fi
b4e70030
JB
20779echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20780echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
a3828db0
MK
20781
20782cat >>confdefs.h <<_ACEOF
20783#define STACK_DIRECTION $ac_cv_c_stack_direction
20784_ACEOF
20785
20786
20787fi
20788
20789
20790
20791for ac_header in stdlib.h unistd.h
20792do
20793as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
20794if eval "test \"\${$as_ac_Header+set}\" = set"; then
20795 echo "$as_me:$LINENO: checking for $ac_header" >&5
20796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20797if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
20798 echo $ECHO_N "(cached) $ECHO_C" >&6
20799fi
b4e70030
JB
20800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20801echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0
MK
20802else
20803 # Is the header compilable?
b4e70030
JB
20804echo "$as_me:$LINENO: checking $ac_header usability" >&5
20805echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0
MK
20806cat >conftest.$ac_ext <<_ACEOF
20807/* confdefs.h. */
20808_ACEOF
20809cat confdefs.h >>conftest.$ac_ext
20810cat >>conftest.$ac_ext <<_ACEOF
20811/* end confdefs.h. */
20812$ac_includes_default
20813#include <$ac_header>
20814_ACEOF
20815rm -f conftest.$ac_objext
20816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20817 (eval $ac_compile) 2>conftest.er1
20818 ac_status=$?
bec39cab
AC
20819 grep -v '^ *+' conftest.er1 >conftest.err
20820 rm -f conftest.er1
20821 cat conftest.err >&5
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); } &&
b4e70030
JB
20824 { ac_try='test -z "$ac_c_werror_flag"
20825 || test ! -s conftest.err'
bec39cab
AC
20826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20827 (eval $ac_try) 2>&5
20828 ac_status=$?
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); }; } &&
20831 { ac_try='test -s conftest.$ac_objext'
20832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20833 (eval $ac_try) 2>&5
20834 ac_status=$?
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; }; then
20837 ac_header_compiler=yes
20838else
20839 echo "$as_me: failed program was:" >&5
20840sed 's/^/| /' conftest.$ac_ext >&5
20841
b4e70030 20842ac_header_compiler=no
bec39cab
AC
20843fi
20844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
20845echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20846echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
20847
20848# Is the header present?
b4e70030
JB
20849echo "$as_me:$LINENO: checking $ac_header presence" >&5
20850echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
20851cat >conftest.$ac_ext <<_ACEOF
20852/* confdefs.h. */
20853_ACEOF
20854cat confdefs.h >>conftest.$ac_ext
20855cat >>conftest.$ac_ext <<_ACEOF
20856/* end confdefs.h. */
20857#include <$ac_header>
20858_ACEOF
20859if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20861 ac_status=$?
20862 grep -v '^ *+' conftest.er1 >conftest.err
20863 rm -f conftest.er1
20864 cat conftest.err >&5
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); } >/dev/null; then
20867 if test -s conftest.err; then
20868 ac_cpp_err=$ac_c_preproc_warn_flag
20869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20870 else
20871 ac_cpp_err=
20872 fi
20873else
20874 ac_cpp_err=yes
20875fi
20876if test -z "$ac_cpp_err"; then
20877 ac_header_preproc=yes
97bf5e38 20878else
bec39cab
AC
20879 echo "$as_me: failed program was:" >&5
20880sed 's/^/| /' conftest.$ac_ext >&5
20881
20882 ac_header_preproc=no
72473524 20883fi
bec39cab 20884rm -f conftest.err conftest.$ac_ext
b4e70030
JB
20885echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20886echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 20887
bec39cab
AC
20888# So? What about this header?
20889case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20890 yes:no: )
20891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20892echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20894echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20895 ac_header_preproc=yes
20896 ;;
20897 no:yes:* )
20898 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20899echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20900 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20901echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20902 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20903echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20904 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20905echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20907echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20908 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20909echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
20910 (
20911 cat <<\_ASBOX
20912## ------------------------------------------ ##
20913## Report this to the AC_PACKAGE_NAME lists. ##
20914## ------------------------------------------ ##
20915_ASBOX
20916 ) |
20917 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
20918 ;;
20919esac
b4e70030
JB
20920echo "$as_me:$LINENO: checking for $ac_header" >&5
20921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20922if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 20923 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20924else
bec39cab
AC
20925 eval "$as_ac_Header=\$ac_header_preproc"
20926fi
b4e70030
JB
20927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20928echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
20929
20930fi
20931if test `eval echo '${'$as_ac_Header'}'` = yes; then
20932 cat >>confdefs.h <<_ACEOF
20933#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20934_ACEOF
20935
20936fi
20937
20938done
20939
20940
a3828db0 20941for ac_func in getpagesize
bec39cab
AC
20942do
20943as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
20944echo "$as_me:$LINENO: checking for $ac_func" >&5
20945echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20946if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
20947 echo $ECHO_N "(cached) $ECHO_C" >&6
20948else
20949 cat >conftest.$ac_ext <<_ACEOF
20950/* confdefs.h. */
20951_ACEOF
20952cat confdefs.h >>conftest.$ac_ext
20953cat >>conftest.$ac_ext <<_ACEOF
20954/* end confdefs.h. */
20955/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20957#define $ac_func innocuous_$ac_func
20958
97bf5e38 20959/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
20960 which can conflict with char $ac_func (); below.
20961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20962 <limits.h> exists even on freestanding compilers. */
2b2d558c 20963
bec39cab
AC
20964#ifdef __STDC__
20965# include <limits.h>
20966#else
20967# include <assert.h>
20968#endif
97bf5e38 20969
bec39cab
AC
20970#undef $ac_func
20971
b4e70030 20972/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
20973#ifdef __cplusplus
20974extern "C"
b4e70030 20975{
bec39cab 20976#endif
b4e70030
JB
20977/* We use char because int might match the return type of a gcc2
20978 builtin and then its argument prototype would still apply. */
bec39cab 20979char $ac_func ();
97bf5e38
MK
20980/* The GNU C library defines this for functions which it implements
20981 to always fail with ENOSYS. Some functions are actually named
20982 something starting with __ and the normal name is an alias. */
b4e70030 20983#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 20984choke me
b4e70030
JB
20985#else
20986char (*f) () = $ac_func;
20987#endif
20988#ifdef __cplusplus
20989}
97bf5e38
MK
20990#endif
20991
bec39cab
AC
20992int
20993main ()
20994{
b4e70030 20995return f != $ac_func;
bec39cab
AC
20996 ;
20997 return 0;
20998}
20999_ACEOF
21000rm -f conftest.$ac_objext conftest$ac_exeext
21001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21002 (eval $ac_link) 2>conftest.er1
21003 ac_status=$?
21004 grep -v '^ *+' conftest.er1 >conftest.err
21005 rm -f conftest.er1
21006 cat conftest.err >&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); } &&
b4e70030
JB
21009 { ac_try='test -z "$ac_c_werror_flag"
21010 || test ! -s conftest.err'
bec39cab
AC
21011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21012 (eval $ac_try) 2>&5
21013 ac_status=$?
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); }; } &&
21016 { ac_try='test -s conftest$ac_exeext'
21017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018 (eval $ac_try) 2>&5
21019 ac_status=$?
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); }; }; then
21022 eval "$as_ac_var=yes"
21023else
21024 echo "$as_me: failed program was:" >&5
21025sed 's/^/| /' conftest.$ac_ext >&5
21026
b4e70030 21027eval "$as_ac_var=no"
bec39cab
AC
21028fi
21029rm -f conftest.err conftest.$ac_objext \
21030 conftest$ac_exeext conftest.$ac_ext
21031fi
b4e70030
JB
21032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21033echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
21034if test `eval echo '${'$as_ac_var'}'` = yes; then
21035 cat >>confdefs.h <<_ACEOF
21036#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21037_ACEOF
21038
2b2d558c 21039fi
bec39cab 21040done
2b2d558c 21041
b4e70030
JB
21042echo "$as_me:$LINENO: checking for working mmap" >&5
21043echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
a3828db0 21044if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 21045 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 21046else
bec39cab 21047 if test "$cross_compiling" = yes; then
a3828db0 21048 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
21049else
21050 cat >conftest.$ac_ext <<_ACEOF
a3828db0 21051/* confdefs.h. */
bec39cab
AC
21052_ACEOF
21053cat confdefs.h >>conftest.$ac_ext
21054cat >>conftest.$ac_ext <<_ACEOF
21055/* end confdefs.h. */
a3828db0
MK
21056$ac_includes_default
21057/* malloc might have been renamed as rpl_malloc. */
21058#undef malloc
bec39cab 21059
a3828db0
MK
21060/* Thanks to Mike Haertel and Jim Avera for this test.
21061 Here is a matrix of mmap possibilities:
21062 mmap private not fixed
21063 mmap private fixed at somewhere currently unmapped
21064 mmap private fixed at somewhere already mapped
21065 mmap shared not fixed
21066 mmap shared fixed at somewhere currently unmapped
21067 mmap shared fixed at somewhere already mapped
21068 For private mappings, we should verify that changes cannot be read()
21069 back from the file, nor mmap's back from the file at a different
21070 address. (There have been systems where private was not correctly
21071 implemented like the infamous i386 svr4.0, and systems where the
21072 VM page cache was not coherent with the file system buffer cache
21073 like early versions of FreeBSD and possibly contemporary NetBSD.)
21074 For shared mappings, we should conversely verify that changes get
21075 propagated back to all the places they're supposed to be.
7dfa765c 21076
a3828db0
MK
21077 Grep wants private fixed already mapped.
21078 The main things grep needs to know about mmap are:
21079 * does it exist and is it safe to write into the mmap'd area
21080 * how to use it (BSD variants) */
7dfa765c 21081
a3828db0
MK
21082#include <fcntl.h>
21083#include <sys/mman.h>
7dfa765c 21084
a3828db0
MK
21085#if !STDC_HEADERS && !HAVE_STDLIB_H
21086char *malloc ();
21087#endif
7dfa765c 21088
a3828db0
MK
21089/* This mess was copied from the GNU getpagesize.h. */
21090#if !HAVE_GETPAGESIZE
21091/* Assume that all systems that can run configure have sys/param.h. */
21092# if !HAVE_SYS_PARAM_H
21093# define HAVE_SYS_PARAM_H 1
21094# endif
64bb1671 21095
a3828db0
MK
21096# ifdef _SC_PAGESIZE
21097# define getpagesize() sysconf(_SC_PAGESIZE)
21098# else /* no _SC_PAGESIZE */
21099# if HAVE_SYS_PARAM_H
21100# include <sys/param.h>
21101# ifdef EXEC_PAGESIZE
21102# define getpagesize() EXEC_PAGESIZE
21103# else /* no EXEC_PAGESIZE */
21104# ifdef NBPG
21105# define getpagesize() NBPG * CLSIZE
21106# ifndef CLSIZE
21107# define CLSIZE 1
21108# endif /* no CLSIZE */
21109# else /* no NBPG */
21110# ifdef NBPC
21111# define getpagesize() NBPC
21112# else /* no NBPC */
21113# ifdef PAGESIZE
21114# define getpagesize() PAGESIZE
21115# endif /* PAGESIZE */
21116# endif /* no NBPC */
21117# endif /* no NBPG */
21118# endif /* no EXEC_PAGESIZE */
21119# else /* no HAVE_SYS_PARAM_H */
21120# define getpagesize() 8192 /* punt totally */
21121# endif /* no HAVE_SYS_PARAM_H */
21122# endif /* no _SC_PAGESIZE */
64bb1671 21123
a3828db0 21124#endif /* no HAVE_GETPAGESIZE */
64bb1671 21125
a3828db0
MK
21126int
21127main ()
21128{
21129 char *data, *data2, *data3;
21130 int i, pagesize;
21131 int fd;
97bf5e38 21132
a3828db0
MK
21133 pagesize = getpagesize ();
21134
21135 /* First, make a file with some known garbage in it. */
21136 data = (char *) malloc (pagesize);
21137 if (!data)
b4e70030 21138 exit (1);
a3828db0
MK
21139 for (i = 0; i < pagesize; ++i)
21140 *(data + i) = rand ();
21141 umask (0);
21142 fd = creat ("conftest.mmap", 0600);
21143 if (fd < 0)
b4e70030 21144 exit (1);
a3828db0 21145 if (write (fd, data, pagesize) != pagesize)
b4e70030 21146 exit (1);
a3828db0
MK
21147 close (fd);
21148
21149 /* Next, try to mmap the file at a fixed address which already has
21150 something else allocated at it. If we can, also make sure that
21151 we see the same garbage. */
21152 fd = open ("conftest.mmap", O_RDWR);
21153 if (fd < 0)
b4e70030 21154 exit (1);
a3828db0
MK
21155 data2 = (char *) malloc (2 * pagesize);
21156 if (!data2)
b4e70030
JB
21157 exit (1);
21158 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
a3828db0
MK
21159 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21160 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b4e70030 21161 exit (1);
a3828db0
MK
21162 for (i = 0; i < pagesize; ++i)
21163 if (*(data + i) != *(data2 + i))
b4e70030 21164 exit (1);
a3828db0
MK
21165
21166 /* Finally, make sure that changes to the mapped area do not
21167 percolate back to the file as seen by read(). (This is a bug on
21168 some variants of i386 svr4.0.) */
21169 for (i = 0; i < pagesize; ++i)
21170 *(data2 + i) = *(data2 + i) + 1;
21171 data3 = (char *) malloc (pagesize);
21172 if (!data3)
b4e70030 21173 exit (1);
a3828db0 21174 if (read (fd, data3, pagesize) != pagesize)
b4e70030 21175 exit (1);
a3828db0
MK
21176 for (i = 0; i < pagesize; ++i)
21177 if (*(data + i) != *(data3 + i))
b4e70030 21178 exit (1);
a3828db0 21179 close (fd);
b4e70030 21180 exit (0);
97bf5e38 21181}
bec39cab
AC
21182_ACEOF
21183rm -f conftest$ac_exeext
21184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21185 (eval $ac_link) 2>&5
21186 ac_status=$?
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21190 (eval $ac_try) 2>&5
21191 ac_status=$?
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); }; }; then
a3828db0 21194 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 21195else
bec39cab
AC
21196 echo "$as_me: program exited with status $ac_status" >&5
21197echo "$as_me: failed program was:" >&5
21198sed 's/^/| /' conftest.$ac_ext >&5
21199
21200( exit $ac_status )
a3828db0 21201ac_cv_func_mmap_fixed_mapped=no
0afdd437 21202fi
b4e70030 21203rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 21204fi
a3828db0 21205fi
b4e70030
JB
21206echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21207echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
a3828db0 21208if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
21209
21210cat >>confdefs.h <<\_ACEOF
a3828db0 21211#define HAVE_MMAP 1
bec39cab 21212_ACEOF
0afdd437
MK
21213
21214fi
a3828db0 21215rm -f conftest.mmap
0afdd437 21216
b4e70030
JB
21217echo "$as_me:$LINENO: checking for pid_t" >&5
21218echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
a3828db0 21219if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
21220 echo $ECHO_N "(cached) $ECHO_C" >&6
21221else
21222 cat >conftest.$ac_ext <<_ACEOF
21223/* confdefs.h. */
21224_ACEOF
21225cat confdefs.h >>conftest.$ac_ext
21226cat >>conftest.$ac_ext <<_ACEOF
21227/* end confdefs.h. */
a3828db0 21228$ac_includes_default
bec39cab
AC
21229int
21230main ()
21231{
b4e70030 21232if ((pid_t *) 0)
a3828db0 21233 return 0;
b4e70030 21234if (sizeof (pid_t))
a3828db0 21235 return 0;
bec39cab
AC
21236 ;
21237 return 0;
21238}
21239_ACEOF
a3828db0
MK
21240rm -f conftest.$ac_objext
21241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21242 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
21243 ac_status=$?
21244 grep -v '^ *+' conftest.er1 >conftest.err
21245 rm -f conftest.er1
21246 cat conftest.err >&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } &&
b4e70030
JB
21249 { ac_try='test -z "$ac_c_werror_flag"
21250 || test ! -s conftest.err'
bec39cab
AC
21251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21252 (eval $ac_try) 2>&5
21253 ac_status=$?
21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); }; } &&
a3828db0 21256 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
21257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21258 (eval $ac_try) 2>&5
21259 ac_status=$?
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); }; }; then
a3828db0 21262 ac_cv_type_pid_t=yes
bec39cab
AC
21263else
21264 echo "$as_me: failed program was:" >&5
21265sed 's/^/| /' conftest.$ac_ext >&5
21266
b4e70030 21267ac_cv_type_pid_t=no
bec39cab 21268fi
a3828db0 21269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 21270fi
b4e70030
JB
21271echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21272echo "${ECHO_T}$ac_cv_type_pid_t" >&6
a3828db0
MK
21273if test $ac_cv_type_pid_t = yes; then
21274 :
21275else
21276
21277cat >>confdefs.h <<_ACEOF
21278#define pid_t int
bec39cab 21279_ACEOF
7e89e357 21280
7e89e357
JT
21281fi
21282
bec39cab 21283
b4e70030
JB
21284
21285for ac_header in unistd.h vfork.h
7be570e7 21286do
a3828db0 21287as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
21288if eval "test \"\${$as_ac_Header+set}\" = set"; then
21289 echo "$as_me:$LINENO: checking for $ac_header" >&5
21290echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21291if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 21292 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0 21293fi
b4e70030
JB
21294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21295echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 21296else
a3828db0 21297 # Is the header compilable?
b4e70030
JB
21298echo "$as_me:$LINENO: checking $ac_header usability" >&5
21299echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0 21300cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
21301/* confdefs.h. */
21302_ACEOF
21303cat confdefs.h >>conftest.$ac_ext
21304cat >>conftest.$ac_ext <<_ACEOF
21305/* end confdefs.h. */
a3828db0
MK
21306$ac_includes_default
21307#include <$ac_header>
bec39cab 21308_ACEOF
a3828db0
MK
21309rm -f conftest.$ac_objext
21310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21311 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
21312 ac_status=$?
21313 grep -v '^ *+' conftest.er1 >conftest.err
21314 rm -f conftest.er1
21315 cat conftest.err >&5
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); } &&
b4e70030
JB
21318 { ac_try='test -z "$ac_c_werror_flag"
21319 || test ! -s conftest.err'
bec39cab
AC
21320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21321 (eval $ac_try) 2>&5
21322 ac_status=$?
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); }; } &&
a3828db0 21325 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
21326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21327 (eval $ac_try) 2>&5
21328 ac_status=$?
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); }; }; then
a3828db0 21331 ac_header_compiler=yes
bec39cab
AC
21332else
21333 echo "$as_me: failed program was:" >&5
21334sed 's/^/| /' conftest.$ac_ext >&5
21335
b4e70030 21336ac_header_compiler=no
bec39cab 21337fi
a3828db0 21338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
21339echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21340echo "${ECHO_T}$ac_header_compiler" >&6
a3828db0
MK
21341
21342# Is the header present?
b4e70030
JB
21343echo "$as_me:$LINENO: checking $ac_header presence" >&5
21344echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a3828db0
MK
21345cat >conftest.$ac_ext <<_ACEOF
21346/* confdefs.h. */
21347_ACEOF
21348cat confdefs.h >>conftest.$ac_ext
21349cat >>conftest.$ac_ext <<_ACEOF
21350/* end confdefs.h. */
21351#include <$ac_header>
21352_ACEOF
21353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21355 ac_status=$?
21356 grep -v '^ *+' conftest.er1 >conftest.err
21357 rm -f conftest.er1
21358 cat conftest.err >&5
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); } >/dev/null; then
21361 if test -s conftest.err; then
21362 ac_cpp_err=$ac_c_preproc_warn_flag
21363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21364 else
21365 ac_cpp_err=
21366 fi
21367else
21368 ac_cpp_err=yes
21369fi
21370if test -z "$ac_cpp_err"; then
21371 ac_header_preproc=yes
21372else
21373 echo "$as_me: failed program was:" >&5
21374sed 's/^/| /' conftest.$ac_ext >&5
21375
21376 ac_header_preproc=no
21377fi
21378rm -f conftest.err conftest.$ac_ext
b4e70030
JB
21379echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21380echo "${ECHO_T}$ac_header_preproc" >&6
a3828db0
MK
21381
21382# So? What about this header?
21383case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21384 yes:no: )
21385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21386echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21388echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21389 ac_header_preproc=yes
21390 ;;
21391 no:yes:* )
21392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21393echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21395echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21397echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21399echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21401echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21403echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
21404 (
21405 cat <<\_ASBOX
21406## ------------------------------------------ ##
21407## Report this to the AC_PACKAGE_NAME lists. ##
21408## ------------------------------------------ ##
21409_ASBOX
21410 ) |
21411 sed "s/^/$as_me: WARNING: /" >&2
a3828db0
MK
21412 ;;
21413esac
b4e70030
JB
21414echo "$as_me:$LINENO: checking for $ac_header" >&5
21415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21416if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
21417 echo $ECHO_N "(cached) $ECHO_C" >&6
21418else
21419 eval "$as_ac_Header=\$ac_header_preproc"
21420fi
b4e70030
JB
21421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21422echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0 21423
bec39cab 21424fi
a3828db0 21425if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 21426 cat >>confdefs.h <<_ACEOF
a3828db0 21427#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 21428_ACEOF
14abd0fb 21429
14abd0fb 21430fi
a3828db0 21431
14abd0fb
MK
21432done
21433
bec39cab 21434
a3828db0
MK
21435
21436for ac_func in fork vfork
14abd0fb 21437do
bec39cab 21438as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
21439echo "$as_me:$LINENO: checking for $ac_func" >&5
21440echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21441if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
21442 echo $ECHO_N "(cached) $ECHO_C" >&6
21443else
21444 cat >conftest.$ac_ext <<_ACEOF
21445/* confdefs.h. */
21446_ACEOF
21447cat confdefs.h >>conftest.$ac_ext
21448cat >>conftest.$ac_ext <<_ACEOF
21449/* end confdefs.h. */
21450/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21452#define $ac_func innocuous_$ac_func
21453
14abd0fb 21454/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
21455 which can conflict with char $ac_func (); below.
21456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21457 <limits.h> exists even on freestanding compilers. */
21458
21459#ifdef __STDC__
21460# include <limits.h>
21461#else
21462# include <assert.h>
21463#endif
14abd0fb 21464
bec39cab 21465#undef $ac_func
14abd0fb 21466
b4e70030 21467/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
21468#ifdef __cplusplus
21469extern "C"
b4e70030 21470{
bec39cab 21471#endif
b4e70030
JB
21472/* We use char because int might match the return type of a gcc2
21473 builtin and then its argument prototype would still apply. */
bec39cab 21474char $ac_func ();
14abd0fb
MK
21475/* The GNU C library defines this for functions which it implements
21476 to always fail with ENOSYS. Some functions are actually named
21477 something starting with __ and the normal name is an alias. */
b4e70030 21478#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14abd0fb 21479choke me
b4e70030
JB
21480#else
21481char (*f) () = $ac_func;
21482#endif
21483#ifdef __cplusplus
21484}
14abd0fb
MK
21485#endif
21486
bec39cab
AC
21487int
21488main ()
21489{
b4e70030 21490return f != $ac_func;
bec39cab
AC
21491 ;
21492 return 0;
21493}
21494_ACEOF
21495rm -f conftest.$ac_objext conftest$ac_exeext
21496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21497 (eval $ac_link) 2>conftest.er1
21498 ac_status=$?
21499 grep -v '^ *+' conftest.er1 >conftest.err
21500 rm -f conftest.er1
21501 cat conftest.err >&5
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); } &&
b4e70030
JB
21504 { ac_try='test -z "$ac_c_werror_flag"
21505 || test ! -s conftest.err'
bec39cab
AC
21506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507 (eval $ac_try) 2>&5
21508 ac_status=$?
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); }; } &&
21511 { ac_try='test -s conftest$ac_exeext'
21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513 (eval $ac_try) 2>&5
21514 ac_status=$?
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; }; then
21517 eval "$as_ac_var=yes"
21518else
21519 echo "$as_me: failed program was:" >&5
21520sed 's/^/| /' conftest.$ac_ext >&5
21521
b4e70030 21522eval "$as_ac_var=no"
bec39cab
AC
21523fi
21524rm -f conftest.err conftest.$ac_objext \
21525 conftest$ac_exeext conftest.$ac_ext
21526fi
b4e70030
JB
21527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21528echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
21529if test `eval echo '${'$as_ac_var'}'` = yes; then
21530 cat >>confdefs.h <<_ACEOF
21531#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21532_ACEOF
7be570e7 21533
7be570e7
JM
21534fi
21535done
21536
a3828db0 21537if test "x$ac_cv_func_fork" = xyes; then
b4e70030
JB
21538 echo "$as_me:$LINENO: checking for working fork" >&5
21539echo $ECHO_N "checking for working fork... $ECHO_C" >&6
a3828db0
MK
21540if test "${ac_cv_func_fork_works+set}" = set; then
21541 echo $ECHO_N "(cached) $ECHO_C" >&6
21542else
21543 if test "$cross_compiling" = yes; then
21544 ac_cv_func_fork_works=cross
21545else
21546 cat >conftest.$ac_ext <<_ACEOF
b4e70030
JB
21547/* By Ruediger Kuhlmann. */
21548 #include <sys/types.h>
21549 #if HAVE_UNISTD_H
21550 # include <unistd.h>
21551 #endif
21552 /* Some systems only have a dummy stub for fork() */
21553 int main ()
21554 {
21555 if (fork() < 0)
21556 exit (1);
21557 exit (0);
21558 }
a3828db0
MK
21559_ACEOF
21560rm -f conftest$ac_exeext
21561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21562 (eval $ac_link) 2>&5
21563 ac_status=$?
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567 (eval $ac_try) 2>&5
21568 ac_status=$?
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; }; then
21571 ac_cv_func_fork_works=yes
21572else
21573 echo "$as_me: program exited with status $ac_status" >&5
21574echo "$as_me: failed program was:" >&5
21575sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 21576
a3828db0
MK
21577( exit $ac_status )
21578ac_cv_func_fork_works=no
21579fi
b4e70030 21580rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
21581fi
21582fi
b4e70030
JB
21583echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21584echo "${ECHO_T}$ac_cv_func_fork_works" >&6
a3828db0
MK
21585
21586else
21587 ac_cv_func_fork_works=$ac_cv_func_fork
21588fi
21589if test "x$ac_cv_func_fork_works" = xcross; then
21590 case $host in
21591 *-*-amigaos* | *-*-msdosdjgpp*)
21592 # Override, as these systems have only a dummy fork() stub
21593 ac_cv_func_fork_works=no
21594 ;;
21595 *)
21596 ac_cv_func_fork_works=yes
21597 ;;
21598 esac
21599 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21600echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21601fi
21602ac_cv_func_vfork_works=$ac_cv_func_vfork
21603if test "x$ac_cv_func_vfork" = xyes; then
b4e70030
JB
21604 echo "$as_me:$LINENO: checking for working vfork" >&5
21605echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
a3828db0 21606if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 21607 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
21608else
21609 if test "$cross_compiling" = yes; then
21610 ac_cv_func_vfork_works=cross
bec39cab
AC
21611else
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/* Thanks to Paul Eggert for this test. */
b4e70030
JB
21619#include <stdio.h>
21620#include <stdlib.h>
21621#include <sys/types.h>
21622#include <sys/stat.h>
a3828db0 21623#include <sys/wait.h>
b4e70030
JB
21624#if HAVE_UNISTD_H
21625# include <unistd.h>
21626#endif
a3828db0
MK
21627#if HAVE_VFORK_H
21628# include <vfork.h>
bec39cab 21629#endif
a3828db0
MK
21630/* On some sparc systems, changes by the child to local and incoming
21631 argument registers are propagated back to the parent. The compiler
21632 is told about this with #include <vfork.h>, but some compilers
21633 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21634 static variable whose address is put into a register that is
21635 clobbered by the vfork. */
21636static void
bec39cab 21637#ifdef __cplusplus
a3828db0
MK
21638sparc_address_test (int arg)
21639# else
21640sparc_address_test (arg) int arg;
c906108c 21641#endif
a3828db0
MK
21642{
21643 static pid_t child;
21644 if (!child) {
21645 child = vfork ();
21646 if (child < 0) {
21647 perror ("vfork");
21648 _exit(2);
21649 }
21650 if (!child) {
21651 arg = getpid();
21652 write(-1, "", 0);
21653 _exit (arg);
21654 }
21655 }
21656}
97bf5e38 21657
bec39cab
AC
21658int
21659main ()
21660{
a3828db0
MK
21661 pid_t parent = getpid ();
21662 pid_t child;
21663
21664 sparc_address_test (0);
21665
21666 child = vfork ();
21667
21668 if (child == 0) {
21669 /* Here is another test for sparc vfork register problems. This
21670 test uses lots of local variables, at least as many local
21671 variables as main has allocated so far including compiler
21672 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21673 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21674 reuse the register of parent for one of the local variables,
21675 since it will think that parent can't possibly be used any more
21676 in this routine. Assigning to the local variable will thus
21677 munge parent in the parent process. */
21678 pid_t
21679 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21680 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21681 /* Convince the compiler that p..p7 are live; otherwise, it might
21682 use the same hardware register for all 8 local variables. */
21683 if (p != p1 || p != p2 || p != p3 || p != p4
21684 || p != p5 || p != p6 || p != p7)
21685 _exit(1);
21686
21687 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21688 from child file descriptors. If the child closes a descriptor
21689 before it execs or exits, this munges the parent's descriptor
21690 as well. Test for this by closing stdout in the child. */
21691 _exit(close(fileno(stdout)) != 0);
21692 } else {
21693 int status;
21694 struct stat st;
21695
21696 while (wait(&status) != child)
21697 ;
b4e70030 21698 exit(
a3828db0
MK
21699 /* Was there some problem with vforking? */
21700 child < 0
21701
21702 /* Did the child fail? (This shouldn't happen.) */
21703 || status
21704
21705 /* Did the vfork/compiler bug occur? */
21706 || parent != getpid()
21707
21708 /* Did the file descriptor bug occur? */
21709 || fstat(fileno(stdout), &st) != 0
21710 );
21711 }
bec39cab
AC
21712}
21713_ACEOF
a3828db0 21714rm -f conftest$ac_exeext
bec39cab 21715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 21716 (eval $ac_link) 2>&5
bec39cab
AC
21717 ac_status=$?
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 21719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
21720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21721 (eval $ac_try) 2>&5
21722 ac_status=$?
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); }; }; then
a3828db0
MK
21725 ac_cv_func_vfork_works=yes
21726else
21727 echo "$as_me: program exited with status $ac_status" >&5
21728echo "$as_me: failed program was:" >&5
21729sed 's/^/| /' conftest.$ac_ext >&5
21730
21731( exit $ac_status )
21732ac_cv_func_vfork_works=no
21733fi
b4e70030 21734rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
21735fi
21736fi
b4e70030
JB
21737echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21738echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
a3828db0
MK
21739
21740fi;
21741if test "x$ac_cv_func_fork_works" = xcross; then
21742 ac_cv_func_vfork_works=$ac_cv_func_vfork
21743 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21744echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21745fi
21746
21747if test "x$ac_cv_func_vfork_works" = xyes; then
21748
21749cat >>confdefs.h <<\_ACEOF
21750#define HAVE_WORKING_VFORK 1
21751_ACEOF
21752
bec39cab 21753else
bec39cab 21754
a3828db0
MK
21755cat >>confdefs.h <<\_ACEOF
21756#define vfork fork
21757_ACEOF
21758
bec39cab 21759fi
a3828db0
MK
21760if test "x$ac_cv_func_fork_works" = xyes; then
21761
21762cat >>confdefs.h <<\_ACEOF
21763#define HAVE_WORKING_FORK 1
bec39cab 21764_ACEOF
c906108c 21765
c906108c
SS
21766fi
21767
bec39cab
AC
21768
21769
a3828db0 21770for ac_func in canonicalize_file_name realpath
97bf5e38 21771do
bec39cab 21772as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030 21773echo "$as_me:$LINENO: checking for $ac_func" >&5
7eb368b3
NR
21774echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21775if eval "test \"\${$as_ac_var+set}\" = set"; then
21776 echo $ECHO_N "(cached) $ECHO_C" >&6
21777else
21778 cat >conftest.$ac_ext <<_ACEOF
21779/* confdefs.h. */
21780_ACEOF
21781cat confdefs.h >>conftest.$ac_ext
21782cat >>conftest.$ac_ext <<_ACEOF
21783/* end confdefs.h. */
21784/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21786#define $ac_func innocuous_$ac_func
21787
21788/* System header to define __stub macros and hopefully few prototypes,
21789 which can conflict with char $ac_func (); below.
21790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21791 <limits.h> exists even on freestanding compilers. */
21792
21793#ifdef __STDC__
21794# include <limits.h>
21795#else
21796# include <assert.h>
21797#endif
21798
21799#undef $ac_func
21800
21801/* Override any gcc2 internal prototype to avoid an error. */
21802#ifdef __cplusplus
21803extern "C"
21804{
21805#endif
21806/* We use char because int might match the return type of a gcc2
21807 builtin and then its argument prototype would still apply. */
21808char $ac_func ();
21809/* The GNU C library defines this for functions which it implements
21810 to always fail with ENOSYS. Some functions are actually named
21811 something starting with __ and the normal name is an alias. */
21812#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21813choke me
21814#else
21815char (*f) () = $ac_func;
21816#endif
21817#ifdef __cplusplus
21818}
21819#endif
21820
21821int
21822main ()
21823{
21824return f != $ac_func;
21825 ;
21826 return 0;
21827}
21828_ACEOF
21829rm -f conftest.$ac_objext conftest$ac_exeext
21830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21831 (eval $ac_link) 2>conftest.er1
21832 ac_status=$?
21833 grep -v '^ *+' conftest.er1 >conftest.err
21834 rm -f conftest.er1
21835 cat conftest.err >&5
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); } &&
21838 { ac_try='test -z "$ac_c_werror_flag"
21839 || test ! -s conftest.err'
21840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841 (eval $ac_try) 2>&5
21842 ac_status=$?
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); }; } &&
21845 { ac_try='test -s conftest$ac_exeext'
21846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847 (eval $ac_try) 2>&5
21848 ac_status=$?
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; }; then
21851 eval "$as_ac_var=yes"
21852else
21853 echo "$as_me: failed program was:" >&5
21854sed 's/^/| /' conftest.$ac_ext >&5
21855
21856eval "$as_ac_var=no"
21857fi
21858rm -f conftest.err conftest.$ac_objext \
21859 conftest$ac_exeext conftest.$ac_ext
21860fi
21861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21862echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21863if test `eval echo '${'$as_ac_var'}'` = yes; then
21864 cat >>confdefs.h <<_ACEOF
21865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21866_ACEOF
21867
21868fi
21869done
21870
21871
21872for ac_func in getrusage
21873do
21874as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21875echo "$as_me:$LINENO: checking for $ac_func" >&5
b4e70030
JB
21876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21877if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
21878 echo $ECHO_N "(cached) $ECHO_C" >&6
21879else
21880 cat >conftest.$ac_ext <<_ACEOF
21881/* confdefs.h. */
21882_ACEOF
21883cat confdefs.h >>conftest.$ac_ext
21884cat >>conftest.$ac_ext <<_ACEOF
21885/* end confdefs.h. */
21886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21888#define $ac_func innocuous_$ac_func
21889
d3ea6809
MM
21890/* System header to define __stub macros and hopefully few prototypes,
21891 which can conflict with char $ac_func (); below.
21892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21893 <limits.h> exists even on freestanding compilers. */
21894
21895#ifdef __STDC__
21896# include <limits.h>
21897#else
21898# include <assert.h>
21899#endif
21900
21901#undef $ac_func
21902
b4e70030 21903/* Override any gcc2 internal prototype to avoid an error. */
d3ea6809
MM
21904#ifdef __cplusplus
21905extern "C"
b4e70030 21906{
d3ea6809 21907#endif
b4e70030
JB
21908/* We use char because int might match the return type of a gcc2
21909 builtin and then its argument prototype would still apply. */
d3ea6809
MM
21910char $ac_func ();
21911/* The GNU C library defines this for functions which it implements
21912 to always fail with ENOSYS. Some functions are actually named
21913 something starting with __ and the normal name is an alias. */
b4e70030 21914#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d3ea6809 21915choke me
b4e70030
JB
21916#else
21917char (*f) () = $ac_func;
21918#endif
21919#ifdef __cplusplus
21920}
d3ea6809
MM
21921#endif
21922
21923int
21924main ()
21925{
b4e70030 21926return f != $ac_func;
d3ea6809
MM
21927 ;
21928 return 0;
21929}
21930_ACEOF
21931rm -f conftest.$ac_objext conftest$ac_exeext
21932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21933 (eval $ac_link) 2>conftest.er1
21934 ac_status=$?
21935 grep -v '^ *+' conftest.er1 >conftest.err
21936 rm -f conftest.er1
21937 cat conftest.err >&5
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); } &&
b4e70030
JB
21940 { ac_try='test -z "$ac_c_werror_flag"
21941 || test ! -s conftest.err'
d3ea6809
MM
21942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943 (eval $ac_try) 2>&5
21944 ac_status=$?
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); }; } &&
21947 { ac_try='test -s conftest$ac_exeext'
21948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21949 (eval $ac_try) 2>&5
21950 ac_status=$?
21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952 (exit $ac_status); }; }; then
21953 eval "$as_ac_var=yes"
21954else
21955 echo "$as_me: failed program was:" >&5
21956sed 's/^/| /' conftest.$ac_ext >&5
21957
b4e70030 21958eval "$as_ac_var=no"
d3ea6809
MM
21959fi
21960rm -f conftest.err conftest.$ac_objext \
21961 conftest$ac_exeext conftest.$ac_ext
21962fi
b4e70030
JB
21963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21964echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d3ea6809
MM
21965if test `eval echo '${'$as_ac_var'}'` = yes; then
21966 cat >>confdefs.h <<_ACEOF
21967#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21968_ACEOF
21969
21970fi
21971done
21972
21973
21974
21975for ac_func in getuid getgid
21976do
21977as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
21978echo "$as_me:$LINENO: checking for $ac_func" >&5
21979echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21980if eval "test \"\${$as_ac_var+set}\" = set"; then
d3ea6809
MM
21981 echo $ECHO_N "(cached) $ECHO_C" >&6
21982else
21983 cat >conftest.$ac_ext <<_ACEOF
21984/* confdefs.h. */
21985_ACEOF
21986cat confdefs.h >>conftest.$ac_ext
21987cat >>conftest.$ac_ext <<_ACEOF
21988/* end confdefs.h. */
21989/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21991#define $ac_func innocuous_$ac_func
21992
97bf5e38 21993/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
21994 which can conflict with char $ac_func (); below.
21995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21996 <limits.h> exists even on freestanding compilers. */
c906108c 21997
bec39cab
AC
21998#ifdef __STDC__
21999# include <limits.h>
22000#else
22001# include <assert.h>
22002#endif
97bf5e38 22003
bec39cab
AC
22004#undef $ac_func
22005
b4e70030 22006/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
22007#ifdef __cplusplus
22008extern "C"
b4e70030 22009{
bec39cab 22010#endif
b4e70030
JB
22011/* We use char because int might match the return type of a gcc2
22012 builtin and then its argument prototype would still apply. */
bec39cab 22013char $ac_func ();
97bf5e38
MK
22014/* The GNU C library defines this for functions which it implements
22015 to always fail with ENOSYS. Some functions are actually named
22016 something starting with __ and the normal name is an alias. */
b4e70030 22017#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 22018choke me
b4e70030
JB
22019#else
22020char (*f) () = $ac_func;
22021#endif
22022#ifdef __cplusplus
22023}
c906108c 22024#endif
97bf5e38 22025
bec39cab
AC
22026int
22027main ()
22028{
b4e70030 22029return f != $ac_func;
bec39cab
AC
22030 ;
22031 return 0;
22032}
22033_ACEOF
22034rm -f conftest.$ac_objext conftest$ac_exeext
22035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22036 (eval $ac_link) 2>conftest.er1
22037 ac_status=$?
22038 grep -v '^ *+' conftest.er1 >conftest.err
22039 rm -f conftest.er1
22040 cat conftest.err >&5
22041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042 (exit $ac_status); } &&
b4e70030
JB
22043 { ac_try='test -z "$ac_c_werror_flag"
22044 || test ! -s conftest.err'
bec39cab
AC
22045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22046 (eval $ac_try) 2>&5
22047 ac_status=$?
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); }; } &&
22050 { ac_try='test -s conftest$ac_exeext'
22051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22052 (eval $ac_try) 2>&5
22053 ac_status=$?
22054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055 (exit $ac_status); }; }; then
22056 eval "$as_ac_var=yes"
22057else
22058 echo "$as_me: failed program was:" >&5
22059sed 's/^/| /' conftest.$ac_ext >&5
22060
b4e70030 22061eval "$as_ac_var=no"
bec39cab
AC
22062fi
22063rm -f conftest.err conftest.$ac_objext \
22064 conftest$ac_exeext conftest.$ac_ext
22065fi
b4e70030
JB
22066echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22067echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
22068if test `eval echo '${'$as_ac_var'}'` = yes; then
22069 cat >>confdefs.h <<_ACEOF
22070#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22071_ACEOF
c906108c 22072
c906108c 22073fi
97bf5e38 22074done
c906108c 22075
bec39cab 22076
a3828db0 22077for ac_func in poll
97bf5e38 22078do
bec39cab 22079as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22080echo "$as_me:$LINENO: checking for $ac_func" >&5
22081echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22082if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
22083 echo $ECHO_N "(cached) $ECHO_C" >&6
22084else
22085 cat >conftest.$ac_ext <<_ACEOF
22086/* confdefs.h. */
22087_ACEOF
22088cat confdefs.h >>conftest.$ac_ext
22089cat >>conftest.$ac_ext <<_ACEOF
22090/* end confdefs.h. */
22091/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22093#define $ac_func innocuous_$ac_func
22094
97bf5e38 22095/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
22096 which can conflict with char $ac_func (); below.
22097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22098 <limits.h> exists even on freestanding compilers. */
22099
22100#ifdef __STDC__
22101# include <limits.h>
22102#else
22103# include <assert.h>
22104#endif
c906108c 22105
bec39cab 22106#undef $ac_func
97bf5e38 22107
b4e70030 22108/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
22109#ifdef __cplusplus
22110extern "C"
b4e70030 22111{
bec39cab 22112#endif
b4e70030
JB
22113/* We use char because int might match the return type of a gcc2
22114 builtin and then its argument prototype would still apply. */
bec39cab 22115char $ac_func ();
97bf5e38
MK
22116/* The GNU C library defines this for functions which it implements
22117 to always fail with ENOSYS. Some functions are actually named
22118 something starting with __ and the normal name is an alias. */
b4e70030 22119#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 22120choke me
b4e70030
JB
22121#else
22122char (*f) () = $ac_func;
22123#endif
22124#ifdef __cplusplus
22125}
c906108c 22126#endif
97bf5e38 22127
bec39cab
AC
22128int
22129main ()
22130{
b4e70030 22131return f != $ac_func;
bec39cab
AC
22132 ;
22133 return 0;
22134}
22135_ACEOF
22136rm -f conftest.$ac_objext conftest$ac_exeext
22137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22138 (eval $ac_link) 2>conftest.er1
22139 ac_status=$?
22140 grep -v '^ *+' conftest.er1 >conftest.err
22141 rm -f conftest.er1
22142 cat conftest.err >&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); } &&
b4e70030
JB
22145 { ac_try='test -z "$ac_c_werror_flag"
22146 || test ! -s conftest.err'
bec39cab
AC
22147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22148 (eval $ac_try) 2>&5
22149 ac_status=$?
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); }; } &&
22152 { ac_try='test -s conftest$ac_exeext'
22153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22154 (eval $ac_try) 2>&5
22155 ac_status=$?
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); }; }; then
22158 eval "$as_ac_var=yes"
22159else
22160 echo "$as_me: failed program was:" >&5
22161sed 's/^/| /' conftest.$ac_ext >&5
22162
b4e70030 22163eval "$as_ac_var=no"
bec39cab
AC
22164fi
22165rm -f conftest.err conftest.$ac_objext \
22166 conftest$ac_exeext conftest.$ac_ext
22167fi
b4e70030
JB
22168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22169echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
22170if test `eval echo '${'$as_ac_var'}'` = yes; then
22171 cat >>confdefs.h <<_ACEOF
22172#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22173_ACEOF
c906108c 22174
c906108c 22175fi
97bf5e38 22176done
c906108c 22177
bec39cab 22178
a3828db0 22179for ac_func in pread64
97bf5e38 22180do
bec39cab 22181as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22182echo "$as_me:$LINENO: checking for $ac_func" >&5
22183echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22184if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
22185 echo $ECHO_N "(cached) $ECHO_C" >&6
22186else
22187 cat >conftest.$ac_ext <<_ACEOF
22188/* confdefs.h. */
22189_ACEOF
22190cat confdefs.h >>conftest.$ac_ext
22191cat >>conftest.$ac_ext <<_ACEOF
22192/* end confdefs.h. */
22193/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22195#define $ac_func innocuous_$ac_func
22196
97bf5e38 22197/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
22198 which can conflict with char $ac_func (); below.
22199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22200 <limits.h> exists even on freestanding compilers. */
22201
22202#ifdef __STDC__
22203# include <limits.h>
22204#else
22205# include <assert.h>
22206#endif
c906108c 22207
bec39cab 22208#undef $ac_func
97bf5e38 22209
b4e70030 22210/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
22211#ifdef __cplusplus
22212extern "C"
b4e70030 22213{
bec39cab 22214#endif
b4e70030
JB
22215/* We use char because int might match the return type of a gcc2
22216 builtin and then its argument prototype would still apply. */
bec39cab 22217char $ac_func ();
97bf5e38
MK
22218/* The GNU C library defines this for functions which it implements
22219 to always fail with ENOSYS. Some functions are actually named
22220 something starting with __ and the normal name is an alias. */
b4e70030 22221#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 22222choke me
b4e70030
JB
22223#else
22224char (*f) () = $ac_func;
22225#endif
22226#ifdef __cplusplus
22227}
c906108c 22228#endif
97bf5e38 22229
bec39cab
AC
22230int
22231main ()
22232{
b4e70030 22233return f != $ac_func;
bec39cab
AC
22234 ;
22235 return 0;
22236}
22237_ACEOF
22238rm -f conftest.$ac_objext conftest$ac_exeext
22239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22240 (eval $ac_link) 2>conftest.er1
22241 ac_status=$?
22242 grep -v '^ *+' conftest.er1 >conftest.err
22243 rm -f conftest.er1
22244 cat conftest.err >&5
22245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); } &&
b4e70030
JB
22247 { ac_try='test -z "$ac_c_werror_flag"
22248 || test ! -s conftest.err'
bec39cab
AC
22249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22250 (eval $ac_try) 2>&5
22251 ac_status=$?
22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253 (exit $ac_status); }; } &&
22254 { ac_try='test -s conftest$ac_exeext'
22255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22256 (eval $ac_try) 2>&5
22257 ac_status=$?
22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); }; }; then
22260 eval "$as_ac_var=yes"
22261else
22262 echo "$as_me: failed program was:" >&5
22263sed 's/^/| /' conftest.$ac_ext >&5
22264
b4e70030 22265eval "$as_ac_var=no"
bec39cab
AC
22266fi
22267rm -f conftest.err conftest.$ac_objext \
22268 conftest$ac_exeext conftest.$ac_ext
22269fi
b4e70030
JB
22270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22271echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
22272if test `eval echo '${'$as_ac_var'}'` = yes; then
22273 cat >>confdefs.h <<_ACEOF
22274#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22275_ACEOF
c906108c 22276
c906108c 22277fi
97bf5e38 22278done
c906108c 22279
bec39cab 22280
a3828db0 22281for ac_func in sbrk
b757528f 22282do
bec39cab 22283as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22284echo "$as_me:$LINENO: checking for $ac_func" >&5
22285echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22286if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
22287 echo $ECHO_N "(cached) $ECHO_C" >&6
22288else
22289 cat >conftest.$ac_ext <<_ACEOF
22290/* confdefs.h. */
22291_ACEOF
22292cat confdefs.h >>conftest.$ac_ext
22293cat >>conftest.$ac_ext <<_ACEOF
22294/* end confdefs.h. */
22295/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22297#define $ac_func innocuous_$ac_func
22298
b757528f 22299/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
22300 which can conflict with char $ac_func (); below.
22301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22302 <limits.h> exists even on freestanding compilers. */
22303
22304#ifdef __STDC__
22305# include <limits.h>
22306#else
22307# include <assert.h>
22308#endif
b757528f 22309
bec39cab 22310#undef $ac_func
b757528f 22311
b4e70030 22312/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
22313#ifdef __cplusplus
22314extern "C"
b4e70030 22315{
bec39cab 22316#endif
b4e70030
JB
22317/* We use char because int might match the return type of a gcc2
22318 builtin and then its argument prototype would still apply. */
bec39cab 22319char $ac_func ();
b757528f
JJ
22320/* The GNU C library defines this for functions which it implements
22321 to always fail with ENOSYS. Some functions are actually named
22322 something starting with __ and the normal name is an alias. */
b4e70030 22323#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
b757528f 22324choke me
b4e70030
JB
22325#else
22326char (*f) () = $ac_func;
22327#endif
22328#ifdef __cplusplus
22329}
b757528f
JJ
22330#endif
22331
bec39cab
AC
22332int
22333main ()
22334{
b4e70030 22335return f != $ac_func;
bec39cab
AC
22336 ;
22337 return 0;
22338}
22339_ACEOF
22340rm -f conftest.$ac_objext conftest$ac_exeext
22341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22342 (eval $ac_link) 2>conftest.er1
22343 ac_status=$?
22344 grep -v '^ *+' conftest.er1 >conftest.err
22345 rm -f conftest.er1
22346 cat conftest.err >&5
22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); } &&
b4e70030
JB
22349 { ac_try='test -z "$ac_c_werror_flag"
22350 || test ! -s conftest.err'
bec39cab
AC
22351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22352 (eval $ac_try) 2>&5
22353 ac_status=$?
22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); }; } &&
22356 { ac_try='test -s conftest$ac_exeext'
22357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22358 (eval $ac_try) 2>&5
22359 ac_status=$?
22360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); }; }; then
22362 eval "$as_ac_var=yes"
22363else
22364 echo "$as_me: failed program was:" >&5
22365sed 's/^/| /' conftest.$ac_ext >&5
22366
b4e70030 22367eval "$as_ac_var=no"
bec39cab
AC
22368fi
22369rm -f conftest.err conftest.$ac_objext \
22370 conftest$ac_exeext conftest.$ac_ext
22371fi
b4e70030
JB
22372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22373echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
22374if test `eval echo '${'$as_ac_var'}'` = yes; then
22375 cat >>confdefs.h <<_ACEOF
22376#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22377_ACEOF
b757528f 22378
b757528f
JJ
22379fi
22380done
22381
bec39cab 22382
a3828db0 22383
83116857
TJB
22384
22385for ac_func in setpgid setpgrp setsid
bcb3dc3d 22386do
bec39cab 22387as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22388echo "$as_me:$LINENO: checking for $ac_func" >&5
22389echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22390if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
22391 echo $ECHO_N "(cached) $ECHO_C" >&6
22392else
22393 cat >conftest.$ac_ext <<_ACEOF
22394/* confdefs.h. */
22395_ACEOF
22396cat confdefs.h >>conftest.$ac_ext
22397cat >>conftest.$ac_ext <<_ACEOF
22398/* end confdefs.h. */
22399/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22401#define $ac_func innocuous_$ac_func
22402
bcb3dc3d 22403/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
22404 which can conflict with char $ac_func (); below.
22405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22406 <limits.h> exists even on freestanding compilers. */
22407
22408#ifdef __STDC__
22409# include <limits.h>
22410#else
22411# include <assert.h>
22412#endif
bcb3dc3d 22413
bec39cab 22414#undef $ac_func
bcb3dc3d 22415
b4e70030 22416/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
22417#ifdef __cplusplus
22418extern "C"
b4e70030 22419{
bec39cab 22420#endif
b4e70030
JB
22421/* We use char because int might match the return type of a gcc2
22422 builtin and then its argument prototype would still apply. */
bec39cab 22423char $ac_func ();
bcb3dc3d
MK
22424/* The GNU C library defines this for functions which it implements
22425 to always fail with ENOSYS. Some functions are actually named
22426 something starting with __ and the normal name is an alias. */
b4e70030 22427#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bcb3dc3d 22428choke me
b4e70030
JB
22429#else
22430char (*f) () = $ac_func;
22431#endif
22432#ifdef __cplusplus
22433}
bcb3dc3d
MK
22434#endif
22435
bec39cab
AC
22436int
22437main ()
22438{
b4e70030 22439return f != $ac_func;
bec39cab
AC
22440 ;
22441 return 0;
22442}
22443_ACEOF
22444rm -f conftest.$ac_objext conftest$ac_exeext
22445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22446 (eval $ac_link) 2>conftest.er1
22447 ac_status=$?
22448 grep -v '^ *+' conftest.er1 >conftest.err
22449 rm -f conftest.er1
22450 cat conftest.err >&5
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); } &&
b4e70030
JB
22453 { ac_try='test -z "$ac_c_werror_flag"
22454 || test ! -s conftest.err'
bec39cab
AC
22455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22456 (eval $ac_try) 2>&5
22457 ac_status=$?
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); }; } &&
22460 { ac_try='test -s conftest$ac_exeext'
22461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22462 (eval $ac_try) 2>&5
22463 ac_status=$?
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); }; }; then
22466 eval "$as_ac_var=yes"
22467else
22468 echo "$as_me: failed program was:" >&5
22469sed 's/^/| /' conftest.$ac_ext >&5
22470
b4e70030 22471eval "$as_ac_var=no"
bec39cab
AC
22472fi
22473rm -f conftest.err conftest.$ac_objext \
22474 conftest$ac_exeext conftest.$ac_ext
22475fi
b4e70030
JB
22476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22477echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
22478if test `eval echo '${'$as_ac_var'}'` = yes; then
22479 cat >>confdefs.h <<_ACEOF
22480#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22481_ACEOF
bcb3dc3d 22482
bcb3dc3d
MK
22483fi
22484done
22485
bec39cab 22486
a3828db0
MK
22487
22488
22489for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 22490do
bec39cab 22491as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22492echo "$as_me:$LINENO: checking for $ac_func" >&5
22493echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22494if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
22495 echo $ECHO_N "(cached) $ECHO_C" >&6
22496else
22497 cat >conftest.$ac_ext <<_ACEOF
22498/* confdefs.h. */
22499_ACEOF
22500cat confdefs.h >>conftest.$ac_ext
22501cat >>conftest.$ac_ext <<_ACEOF
22502/* end confdefs.h. */
22503/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22505#define $ac_func innocuous_$ac_func
22506
8b9cf735 22507/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
22508 which can conflict with char $ac_func (); below.
22509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22510 <limits.h> exists even on freestanding compilers. */
22511
22512#ifdef __STDC__
22513# include <limits.h>
22514#else
22515# include <assert.h>
22516#endif
8b9cf735 22517
bec39cab 22518#undef $ac_func
8b9cf735 22519
b4e70030 22520/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
22521#ifdef __cplusplus
22522extern "C"
b4e70030 22523{
a3828db0 22524#endif
b4e70030
JB
22525/* We use char because int might match the return type of a gcc2
22526 builtin and then its argument prototype would still apply. */
a3828db0
MK
22527char $ac_func ();
22528/* The GNU C library defines this for functions which it implements
22529 to always fail with ENOSYS. Some functions are actually named
22530 something starting with __ and the normal name is an alias. */
b4e70030 22531#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 22532choke me
b4e70030
JB
22533#else
22534char (*f) () = $ac_func;
22535#endif
22536#ifdef __cplusplus
22537}
a3828db0
MK
22538#endif
22539
bec39cab
AC
22540int
22541main ()
22542{
b4e70030 22543return f != $ac_func;
bec39cab
AC
22544 ;
22545 return 0;
22546}
22547_ACEOF
a3828db0
MK
22548rm -f conftest.$ac_objext conftest$ac_exeext
22549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22550 (eval $ac_link) 2>conftest.er1
bec39cab
AC
22551 ac_status=$?
22552 grep -v '^ *+' conftest.er1 >conftest.err
22553 rm -f conftest.er1
22554 cat conftest.err >&5
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); } &&
b4e70030
JB
22557 { ac_try='test -z "$ac_c_werror_flag"
22558 || test ! -s conftest.err'
bec39cab
AC
22559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560 (eval $ac_try) 2>&5
22561 ac_status=$?
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); }; } &&
a3828db0 22564 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
22565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22566 (eval $ac_try) 2>&5
22567 ac_status=$?
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); }; }; then
a3828db0 22570 eval "$as_ac_var=yes"
086ec9eb 22571else
bec39cab
AC
22572 echo "$as_me: failed program was:" >&5
22573sed 's/^/| /' conftest.$ac_ext >&5
22574
b4e70030 22575eval "$as_ac_var=no"
a3828db0
MK
22576fi
22577rm -f conftest.err conftest.$ac_objext \
22578 conftest$ac_exeext conftest.$ac_ext
22579fi
b4e70030
JB
22580echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22581echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
22582if test `eval echo '${'$as_ac_var'}'` = yes; then
22583 cat >>confdefs.h <<_ACEOF
22584#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22585_ACEOF
22586
086ec9eb 22587fi
a3828db0
MK
22588done
22589
22590
22591for ac_func in socketpair
22592do
22593as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22594echo "$as_me:$LINENO: checking for $ac_func" >&5
22595echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22596if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
22597 echo $ECHO_N "(cached) $ECHO_C" >&6
22598else
22599 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
22600/* confdefs.h. */
22601_ACEOF
22602cat confdefs.h >>conftest.$ac_ext
22603cat >>conftest.$ac_ext <<_ACEOF
22604/* end confdefs.h. */
a3828db0
MK
22605/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22607#define $ac_func innocuous_$ac_func
22608
22609/* System header to define __stub macros and hopefully few prototypes,
22610 which can conflict with char $ac_func (); below.
22611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22612 <limits.h> exists even on freestanding compilers. */
22613
22614#ifdef __STDC__
22615# include <limits.h>
22616#else
22617# include <assert.h>
22618#endif
22619
22620#undef $ac_func
22621
b4e70030 22622/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
22623#ifdef __cplusplus
22624extern "C"
b4e70030 22625{
a3828db0 22626#endif
b4e70030
JB
22627/* We use char because int might match the return type of a gcc2
22628 builtin and then its argument prototype would still apply. */
a3828db0
MK
22629char $ac_func ();
22630/* The GNU C library defines this for functions which it implements
22631 to always fail with ENOSYS. Some functions are actually named
22632 something starting with __ and the normal name is an alias. */
b4e70030 22633#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 22634choke me
b4e70030
JB
22635#else
22636char (*f) () = $ac_func;
22637#endif
22638#ifdef __cplusplus
22639}
a3828db0
MK
22640#endif
22641
bec39cab
AC
22642int
22643main ()
22644{
b4e70030 22645return f != $ac_func;
bec39cab
AC
22646 ;
22647 return 0;
22648}
22649_ACEOF
a3828db0
MK
22650rm -f conftest.$ac_objext conftest$ac_exeext
22651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22652 (eval $ac_link) 2>conftest.er1
bec39cab
AC
22653 ac_status=$?
22654 grep -v '^ *+' conftest.er1 >conftest.err
22655 rm -f conftest.er1
22656 cat conftest.err >&5
22657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658 (exit $ac_status); } &&
b4e70030
JB
22659 { ac_try='test -z "$ac_c_werror_flag"
22660 || test ! -s conftest.err'
bec39cab
AC
22661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22662 (eval $ac_try) 2>&5
22663 ac_status=$?
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); }; } &&
a3828db0 22666 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
22667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22668 (eval $ac_try) 2>&5
22669 ac_status=$?
22670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671 (exit $ac_status); }; }; then
a3828db0 22672 eval "$as_ac_var=yes"
086ec9eb 22673else
bec39cab
AC
22674 echo "$as_me: failed program was:" >&5
22675sed 's/^/| /' conftest.$ac_ext >&5
22676
b4e70030 22677eval "$as_ac_var=no"
086ec9eb 22678fi
a3828db0
MK
22679rm -f conftest.err conftest.$ac_objext \
22680 conftest$ac_exeext conftest.$ac_ext
086ec9eb 22681fi
b4e70030
JB
22682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22683echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
22684if test `eval echo '${'$as_ac_var'}'` = yes; then
22685 cat >>confdefs.h <<_ACEOF
22686#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 22687_ACEOF
086ec9eb
MK
22688
22689fi
a3828db0 22690done
086ec9eb 22691
a3828db0
MK
22692
22693for ac_func in syscall
22694do
22695as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22696echo "$as_me:$LINENO: checking for $ac_func" >&5
22697echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22698if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 22699 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
22700else
22701 cat >conftest.$ac_ext <<_ACEOF
22702/* confdefs.h. */
22703_ACEOF
22704cat confdefs.h >>conftest.$ac_ext
22705cat >>conftest.$ac_ext <<_ACEOF
22706/* end confdefs.h. */
a3828db0
MK
22707/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22709#define $ac_func innocuous_$ac_func
22710
22711/* System header to define __stub macros and hopefully few prototypes,
22712 which can conflict with char $ac_func (); below.
22713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22714 <limits.h> exists even on freestanding compilers. */
22715
22716#ifdef __STDC__
22717# include <limits.h>
22718#else
22719# include <assert.h>
22720#endif
22721
22722#undef $ac_func
22723
b4e70030 22724/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
22725#ifdef __cplusplus
22726extern "C"
b4e70030 22727{
a3828db0 22728#endif
b4e70030
JB
22729/* We use char because int might match the return type of a gcc2
22730 builtin and then its argument prototype would still apply. */
a3828db0
MK
22731char $ac_func ();
22732/* The GNU C library defines this for functions which it implements
22733 to always fail with ENOSYS. Some functions are actually named
22734 something starting with __ and the normal name is an alias. */
b4e70030 22735#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 22736choke me
b4e70030
JB
22737#else
22738char (*f) () = $ac_func;
22739#endif
22740#ifdef __cplusplus
22741}
c906108c 22742#endif
97bf5e38 22743
bec39cab
AC
22744int
22745main ()
97bf5e38 22746{
b4e70030 22747return f != $ac_func;
bec39cab
AC
22748 ;
22749 return 0;
97bf5e38 22750}
bec39cab 22751_ACEOF
a3828db0 22752rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 22753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 22754 (eval $ac_link) 2>conftest.er1
bec39cab 22755 ac_status=$?
a3828db0
MK
22756 grep -v '^ *+' conftest.er1 >conftest.err
22757 rm -f conftest.er1
22758 cat conftest.err >&5
bec39cab 22759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 22760 (exit $ac_status); } &&
b4e70030
JB
22761 { ac_try='test -z "$ac_c_werror_flag"
22762 || test ! -s conftest.err'
a3828db0
MK
22763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22764 (eval $ac_try) 2>&5
22765 ac_status=$?
22766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767 (exit $ac_status); }; } &&
22768 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
22769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22770 (eval $ac_try) 2>&5
22771 ac_status=$?
22772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773 (exit $ac_status); }; }; then
a3828db0 22774 eval "$as_ac_var=yes"
c906108c 22775else
a3828db0 22776 echo "$as_me: failed program was:" >&5
bec39cab
AC
22777sed 's/^/| /' conftest.$ac_ext >&5
22778
b4e70030 22779eval "$as_ac_var=no"
97bf5e38 22780fi
a3828db0
MK
22781rm -f conftest.err conftest.$ac_objext \
22782 conftest$ac_exeext conftest.$ac_ext
22783fi
b4e70030
JB
22784echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22785echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
22786if test `eval echo '${'$as_ac_var'}'` = yes; then
22787 cat >>confdefs.h <<_ACEOF
22788#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 22789_ACEOF
c906108c
SS
22790
22791fi
a3828db0 22792done
c906108c 22793
a3828db0
MK
22794
22795for ac_func in ttrace
22796do
22797as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22798echo "$as_me:$LINENO: checking for $ac_func" >&5
22799echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22800if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 22801 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 22802else
bec39cab
AC
22803 cat >conftest.$ac_ext <<_ACEOF
22804/* confdefs.h. */
22805_ACEOF
22806cat confdefs.h >>conftest.$ac_ext
22807cat >>conftest.$ac_ext <<_ACEOF
22808/* end confdefs.h. */
a3828db0
MK
22809/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22811#define $ac_func innocuous_$ac_func
b83266a0 22812
a3828db0
MK
22813/* System header to define __stub macros and hopefully few prototypes,
22814 which can conflict with char $ac_func (); below.
22815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22816 <limits.h> exists even on freestanding compilers. */
22817
22818#ifdef __STDC__
22819# include <limits.h>
22820#else
22821# include <assert.h>
22822#endif
22823
22824#undef $ac_func
22825
b4e70030 22826/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
22827#ifdef __cplusplus
22828extern "C"
b4e70030 22829{
a3828db0 22830#endif
b4e70030
JB
22831/* We use char because int might match the return type of a gcc2
22832 builtin and then its argument prototype would still apply. */
a3828db0
MK
22833char $ac_func ();
22834/* The GNU C library defines this for functions which it implements
22835 to always fail with ENOSYS. Some functions are actually named
22836 something starting with __ and the normal name is an alias. */
b4e70030 22837#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 22838choke me
b4e70030
JB
22839#else
22840char (*f) () = $ac_func;
22841#endif
22842#ifdef __cplusplus
22843}
a3828db0 22844#endif
97bf5e38 22845
bec39cab
AC
22846int
22847main ()
22848{
b4e70030 22849return f != $ac_func;
bec39cab
AC
22850 ;
22851 return 0;
22852}
22853_ACEOF
a3828db0
MK
22854rm -f conftest.$ac_objext conftest$ac_exeext
22855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22856 (eval $ac_link) 2>conftest.er1
bec39cab
AC
22857 ac_status=$?
22858 grep -v '^ *+' conftest.er1 >conftest.err
22859 rm -f conftest.er1
22860 cat conftest.err >&5
22861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862 (exit $ac_status); } &&
b4e70030
JB
22863 { ac_try='test -z "$ac_c_werror_flag"
22864 || test ! -s conftest.err'
bec39cab
AC
22865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22866 (eval $ac_try) 2>&5
22867 ac_status=$?
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); }; } &&
a3828db0 22870 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
22871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22872 (eval $ac_try) 2>&5
22873 ac_status=$?
22874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); }; }; then
a3828db0 22876 eval "$as_ac_var=yes"
b83266a0 22877else
bec39cab
AC
22878 echo "$as_me: failed program was:" >&5
22879sed 's/^/| /' conftest.$ac_ext >&5
22880
b4e70030 22881eval "$as_ac_var=no"
b83266a0 22882fi
a3828db0
MK
22883rm -f conftest.err conftest.$ac_objext \
22884 conftest$ac_exeext conftest.$ac_ext
b83266a0 22885fi
b4e70030
JB
22886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22887echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
22888if test `eval echo '${'$as_ac_var'}'` = yes; then
22889 cat >>confdefs.h <<_ACEOF
22890#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 22891_ACEOF
b83266a0 22892
97bf5e38 22893fi
a3828db0 22894done
b83266a0 22895
a3828db0
MK
22896
22897for ac_func in wborder
22898do
22899as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22900echo "$as_me:$LINENO: checking for $ac_func" >&5
22901echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22902if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
22903 echo $ECHO_N "(cached) $ECHO_C" >&6
22904else
22905 cat >conftest.$ac_ext <<_ACEOF
22906/* confdefs.h. */
22907_ACEOF
22908cat confdefs.h >>conftest.$ac_ext
22909cat >>conftest.$ac_ext <<_ACEOF
22910/* end confdefs.h. */
a3828db0
MK
22911/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22913#define $ac_func innocuous_$ac_func
a4db0f07 22914
a3828db0
MK
22915/* System header to define __stub macros and hopefully few prototypes,
22916 which can conflict with char $ac_func (); below.
22917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22918 <limits.h> exists even on freestanding compilers. */
22919
22920#ifdef __STDC__
22921# include <limits.h>
22922#else
22923# include <assert.h>
22924#endif
22925
22926#undef $ac_func
22927
b4e70030 22928/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
22929#ifdef __cplusplus
22930extern "C"
b4e70030 22931{
a3828db0 22932#endif
b4e70030
JB
22933/* We use char because int might match the return type of a gcc2
22934 builtin and then its argument prototype would still apply. */
a3828db0
MK
22935char $ac_func ();
22936/* The GNU C library defines this for functions which it implements
22937 to always fail with ENOSYS. Some functions are actually named
22938 something starting with __ and the normal name is an alias. */
b4e70030 22939#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 22940choke me
b4e70030
JB
22941#else
22942char (*f) () = $ac_func;
22943#endif
22944#ifdef __cplusplus
22945}
a3828db0 22946#endif
97bf5e38 22947
bec39cab
AC
22948int
22949main ()
22950{
b4e70030 22951return f != $ac_func;
bec39cab
AC
22952 ;
22953 return 0;
22954}
22955_ACEOF
a3828db0
MK
22956rm -f conftest.$ac_objext conftest$ac_exeext
22957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22958 (eval $ac_link) 2>conftest.er1
bec39cab
AC
22959 ac_status=$?
22960 grep -v '^ *+' conftest.er1 >conftest.err
22961 rm -f conftest.er1
22962 cat conftest.err >&5
22963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964 (exit $ac_status); } &&
b4e70030
JB
22965 { ac_try='test -z "$ac_c_werror_flag"
22966 || test ! -s conftest.err'
bec39cab
AC
22967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22968 (eval $ac_try) 2>&5
22969 ac_status=$?
22970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971 (exit $ac_status); }; } &&
a3828db0 22972 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
22973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22974 (eval $ac_try) 2>&5
22975 ac_status=$?
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); }; }; then
a3828db0 22978 eval "$as_ac_var=yes"
a4db0f07 22979else
bec39cab
AC
22980 echo "$as_me: failed program was:" >&5
22981sed 's/^/| /' conftest.$ac_ext >&5
22982
b4e70030 22983eval "$as_ac_var=no"
a4db0f07 22984fi
a3828db0
MK
22985rm -f conftest.err conftest.$ac_objext \
22986 conftest$ac_exeext conftest.$ac_ext
a4db0f07 22987fi
b4e70030
JB
22988echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22989echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
22990if test `eval echo '${'$as_ac_var'}'` = yes; then
22991 cat >>confdefs.h <<_ACEOF
22992#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 22993_ACEOF
a4db0f07
RH
22994
22995fi
a3828db0 22996done
c906108c 22997
06825bd1 22998
a3828db0
MK
22999# Check the return and argument types of ptrace. No canned test for
23000# this, so roll our own.
23001gdb_ptrace_headers='
23002#if HAVE_SYS_TYPES_H
23003# include <sys/types.h>
23004#endif
23005#if HAVE_SYS_PTRACE_H
23006# include <sys/ptrace.h>
23007#endif
23008#if HAVE_UNISTD_H
23009# include <unistd.h>
23010#endif
23011'
23012# There is no point in checking if we don't have a prototype.
b4e70030
JB
23013echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
23014echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
a3828db0 23015if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
23016 echo $ECHO_N "(cached) $ECHO_C" >&6
23017else
23018 cat >conftest.$ac_ext <<_ACEOF
23019/* confdefs.h. */
23020_ACEOF
23021cat confdefs.h >>conftest.$ac_ext
23022cat >>conftest.$ac_ext <<_ACEOF
23023/* end confdefs.h. */
a3828db0
MK
23024$gdb_ptrace_headers
23025
bec39cab
AC
23026int
23027main ()
23028{
a3828db0
MK
23029#ifndef ptrace
23030 char *p = (char *) ptrace;
06825bd1 23031#endif
a3828db0 23032
bec39cab
AC
23033 ;
23034 return 0;
23035}
23036_ACEOF
23037rm -f conftest.$ac_objext
23038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23039 (eval $ac_compile) 2>conftest.er1
23040 ac_status=$?
23041 grep -v '^ *+' conftest.er1 >conftest.err
23042 rm -f conftest.er1
23043 cat conftest.err >&5
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); } &&
b4e70030
JB
23046 { ac_try='test -z "$ac_c_werror_flag"
23047 || test ! -s conftest.err'
bec39cab
AC
23048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23049 (eval $ac_try) 2>&5
23050 ac_status=$?
23051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052 (exit $ac_status); }; } &&
23053 { ac_try='test -s conftest.$ac_objext'
23054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23055 (eval $ac_try) 2>&5
23056 ac_status=$?
23057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058 (exit $ac_status); }; }; then
a3828db0 23059 ac_cv_have_decl_ptrace=yes
06825bd1 23060else
bec39cab
AC
23061 echo "$as_me: failed program was:" >&5
23062sed 's/^/| /' conftest.$ac_ext >&5
23063
b4e70030 23064ac_cv_have_decl_ptrace=no
06825bd1 23065fi
bec39cab 23066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 23067fi
b4e70030
JB
23068echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
23069echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
a3828db0 23070if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 23071
a3828db0
MK
23072cat >>confdefs.h <<_ACEOF
23073#define HAVE_DECL_PTRACE 1
23074_ACEOF
bec39cab 23075
bec39cab 23076
a3828db0
MK
23077else
23078 cat >>confdefs.h <<_ACEOF
23079#define HAVE_DECL_PTRACE 0
bec39cab 23080_ACEOF
06825bd1 23081
a3828db0
MK
23082
23083 : ${gdb_cv_func_ptrace_ret='int'}
23084 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
23085
06825bd1
MK
23086fi
23087
a3828db0
MK
23088
23089# Check return type.
b4e70030
JB
23090echo "$as_me:$LINENO: checking return type of ptrace" >&5
23091echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
a3828db0 23092if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
23093 echo $ECHO_N "(cached) $ECHO_C" >&6
23094else
23095 cat >conftest.$ac_ext <<_ACEOF
23096/* confdefs.h. */
23097_ACEOF
23098cat confdefs.h >>conftest.$ac_ext
23099cat >>conftest.$ac_ext <<_ACEOF
23100/* end confdefs.h. */
a3828db0 23101$gdb_ptrace_headers
bec39cab
AC
23102int
23103main ()
23104{
a3828db0 23105extern int ptrace ();
bec39cab
AC
23106 ;
23107 return 0;
23108}
23109_ACEOF
23110rm -f conftest.$ac_objext
23111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23112 (eval $ac_compile) 2>conftest.er1
23113 ac_status=$?
23114 grep -v '^ *+' conftest.er1 >conftest.err
23115 rm -f conftest.er1
23116 cat conftest.err >&5
23117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); } &&
b4e70030
JB
23119 { ac_try='test -z "$ac_c_werror_flag"
23120 || test ! -s conftest.err'
bec39cab
AC
23121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23122 (eval $ac_try) 2>&5
23123 ac_status=$?
23124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125 (exit $ac_status); }; } &&
23126 { ac_try='test -s conftest.$ac_objext'
23127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23128 (eval $ac_try) 2>&5
23129 ac_status=$?
23130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); }; }; then
a3828db0 23132 gdb_cv_func_ptrace_ret='int'
70f9f479 23133else
bec39cab
AC
23134 echo "$as_me: failed program was:" >&5
23135sed 's/^/| /' conftest.$ac_ext >&5
23136
b4e70030 23137gdb_cv_func_ptrace_ret='long'
70f9f479 23138fi
bec39cab 23139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 23140fi
b4e70030
JB
23141echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
23142echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 23143
a3828db0
MK
23144cat >>confdefs.h <<_ACEOF
23145#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 23146_ACEOF
70f9f479 23147
a3828db0 23148# Check argument types.
b4e70030
JB
23149echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
23150echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
a3828db0 23151if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
23152 echo $ECHO_N "(cached) $ECHO_C" >&6
23153else
a3828db0
MK
23154
23155for gdb_arg1 in 'int' 'long'; do
23156 for gdb_arg2 in 'pid_t' 'int' 'long'; do
5ed10e6e 23157 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
a3828db0
MK
23158 for gdb_arg4 in 'int' 'long'; do
23159 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
23160/* confdefs.h. */
23161_ACEOF
23162cat confdefs.h >>conftest.$ac_ext
23163cat >>conftest.$ac_ext <<_ACEOF
23164/* end confdefs.h. */
a3828db0 23165$gdb_ptrace_headers
bec39cab
AC
23166int
23167main ()
23168{
a3828db0
MK
23169
23170extern $gdb_cv_func_ptrace_ret
23171 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
23172
bec39cab
AC
23173 ;
23174 return 0;
23175}
23176_ACEOF
23177rm -f conftest.$ac_objext
23178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23179 (eval $ac_compile) 2>conftest.er1
23180 ac_status=$?
23181 grep -v '^ *+' conftest.er1 >conftest.err
23182 rm -f conftest.er1
23183 cat conftest.err >&5
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); } &&
b4e70030
JB
23186 { ac_try='test -z "$ac_c_werror_flag"
23187 || test ! -s conftest.err'
bec39cab
AC
23188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189 (eval $ac_try) 2>&5
23190 ac_status=$?
23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); }; } &&
23193 { ac_try='test -s conftest.$ac_objext'
23194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23195 (eval $ac_try) 2>&5
23196 ac_status=$?
23197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); }; }; then
a3828db0
MK
23199 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
23200 break 4;
5c7f2947 23201else
bec39cab
AC
23202 echo "$as_me: failed program was:" >&5
23203sed 's/^/| /' conftest.$ac_ext >&5
23204
5c7f2947 23205fi
bec39cab 23206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
23207 for gdb_arg5 in 'int *' 'int' 'long'; do
23208 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
23209/* confdefs.h. */
23210_ACEOF
23211cat confdefs.h >>conftest.$ac_ext
23212cat >>conftest.$ac_ext <<_ACEOF
23213/* end confdefs.h. */
a3828db0 23214$gdb_ptrace_headers
bec39cab
AC
23215int
23216main ()
23217{
a3828db0
MK
23218
23219extern $gdb_cv_func_ptrace_ret
23220 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
23221
bec39cab
AC
23222 ;
23223 return 0;
23224}
23225_ACEOF
23226rm -f conftest.$ac_objext
23227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23228 (eval $ac_compile) 2>conftest.er1
23229 ac_status=$?
23230 grep -v '^ *+' conftest.er1 >conftest.err
23231 rm -f conftest.er1
23232 cat conftest.err >&5
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); } &&
b4e70030
JB
23235 { ac_try='test -z "$ac_c_werror_flag"
23236 || test ! -s conftest.err'
bec39cab
AC
23237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23238 (eval $ac_try) 2>&5
23239 ac_status=$?
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); }; } &&
23242 { ac_try='test -s conftest.$ac_objext'
23243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23244 (eval $ac_try) 2>&5
23245 ac_status=$?
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); }; }; then
a3828db0
MK
23248
23249gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
23250 break 5;
78434e59 23251else
bec39cab
AC
23252 echo "$as_me: failed program was:" >&5
23253sed 's/^/| /' conftest.$ac_ext >&5
23254
78434e59 23255fi
bec39cab 23256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
23257 done
23258 done
23259 done
23260 done
23261done
23262# Provide a safe default value.
23263: ${gdb_cv_func_ptrace_args='int,int,long,long'}
23264
78434e59 23265fi
b4e70030
JB
23266echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
23267echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
a3828db0
MK
23268ac_save_IFS=$IFS; IFS=','
23269set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
23270IFS=$ac_save_IFS
23271shift
bec39cab 23272
a3828db0
MK
23273cat >>confdefs.h <<_ACEOF
23274#define PTRACE_TYPE_ARG3 $3
23275_ACEOF
23276
23277if test -n "$5"; then
23278
23279cat >>confdefs.h <<_ACEOF
23280#define PTRACE_TYPE_ARG5 $5
bec39cab 23281_ACEOF
78434e59
MK
23282
23283fi
23284
a3828db0 23285if test "$cross_compiling" = no; then
b4e70030
JB
23286 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
23287echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 23288if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 23289 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
23290else
23291 if test "$cross_compiling" = yes; then
23292 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
23293echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
23294 { (exit 1); exit 1; }; }
bec39cab
AC
23295else
23296 cat >conftest.$ac_ext <<_ACEOF
23297/* confdefs.h. */
23298_ACEOF
23299cat confdefs.h >>conftest.$ac_ext
23300cat >>conftest.$ac_ext <<_ACEOF
23301/* end confdefs.h. */
b4e70030
JB
23302#if HAVE_UNISTD_H
23303# include <unistd.h>
23304#endif
23305
bec39cab
AC
23306int
23307main ()
23308{
a3828db0
MK
23309/* If this system has a BSD-style setpgrp which takes arguments,
23310 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
23311 exit successfully. */
b4e70030 23312 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
23313 ;
23314 return 0;
23315}
23316_ACEOF
a3828db0
MK
23317rm -f conftest$ac_exeext
23318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23319 (eval $ac_link) 2>&5
bec39cab
AC
23320 ac_status=$?
23321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 23322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
23323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23324 (eval $ac_try) 2>&5
23325 ac_status=$?
23326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 (exit $ac_status); }; }; then
a3828db0 23328 ac_cv_func_setpgrp_void=no
c906108c 23329else
a3828db0
MK
23330 echo "$as_me: program exited with status $ac_status" >&5
23331echo "$as_me: failed program was:" >&5
bec39cab
AC
23332sed 's/^/| /' conftest.$ac_ext >&5
23333
a3828db0
MK
23334( exit $ac_status )
23335ac_cv_func_setpgrp_void=yes
c906108c 23336fi
b4e70030 23337rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 23338fi
a3828db0 23339fi
b4e70030
JB
23340echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
23341echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0
MK
23342if test $ac_cv_func_setpgrp_void = yes; then
23343
23344cat >>confdefs.h <<\_ACEOF
23345#define SETPGRP_VOID 1
bec39cab 23346_ACEOF
97bf5e38
MK
23347
23348fi
a3828db0
MK
23349
23350else
b4e70030
JB
23351 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
23352echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 23353if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 23354 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 23355else
bec39cab
AC
23356 cat >conftest.$ac_ext <<_ACEOF
23357/* confdefs.h. */
23358_ACEOF
23359cat confdefs.h >>conftest.$ac_ext
23360cat >>conftest.$ac_ext <<_ACEOF
23361/* end confdefs.h. */
a3828db0
MK
23362
23363#include <unistd.h>
23364
bec39cab
AC
23365int
23366main ()
23367{
a3828db0
MK
23368
23369 if (setpgrp(1,1) == -1)
23370 exit (0);
23371 else
23372 exit (1);
23373
bec39cab
AC
23374 ;
23375 return 0;
23376}
23377_ACEOF
23378rm -f conftest.$ac_objext
23379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23380 (eval $ac_compile) 2>conftest.er1
23381 ac_status=$?
23382 grep -v '^ *+' conftest.er1 >conftest.err
23383 rm -f conftest.er1
23384 cat conftest.err >&5
23385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386 (exit $ac_status); } &&
b4e70030
JB
23387 { ac_try='test -z "$ac_c_werror_flag"
23388 || test ! -s conftest.err'
bec39cab
AC
23389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390 (eval $ac_try) 2>&5
23391 ac_status=$?
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); }; } &&
23394 { ac_try='test -s conftest.$ac_objext'
23395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23396 (eval $ac_try) 2>&5
23397 ac_status=$?
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); }; }; then
a3828db0 23400 ac_cv_func_setpgrp_void=no
c906108c 23401else
bec39cab
AC
23402 echo "$as_me: failed program was:" >&5
23403sed 's/^/| /' conftest.$ac_ext >&5
23404
b4e70030 23405ac_cv_func_setpgrp_void=yes
c906108c 23406fi
bec39cab 23407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 23408fi
b4e70030
JB
23409echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
23410echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0 23411if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 23412 cat >>confdefs.h <<\_ACEOF
a3828db0 23413#define SETPGRP_VOID 1
bec39cab 23414_ACEOF
c3f6f71d 23415
a3828db0 23416fi
c906108c
SS
23417fi
23418
a3828db0
MK
23419# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
23420# since sigsetjmp might only be defined as a macro.
b4e70030
JB
23421echo "$as_me:$LINENO: checking for sigsetjmp" >&5
23422echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
a3828db0 23423if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
23424 echo $ECHO_N "(cached) $ECHO_C" >&6
23425else
23426 cat >conftest.$ac_ext <<_ACEOF
23427/* confdefs.h. */
23428_ACEOF
23429cat confdefs.h >>conftest.$ac_ext
23430cat >>conftest.$ac_ext <<_ACEOF
23431/* end confdefs.h. */
a3828db0
MK
23432
23433#include <setjmp.h>
23434
bec39cab
AC
23435int
23436main ()
23437{
a3828db0 23438sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
23439 ;
23440 return 0;
23441}
23442_ACEOF
23443rm -f conftest.$ac_objext
23444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23445 (eval $ac_compile) 2>conftest.er1
23446 ac_status=$?
23447 grep -v '^ *+' conftest.er1 >conftest.err
23448 rm -f conftest.er1
23449 cat conftest.err >&5
23450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451 (exit $ac_status); } &&
b4e70030
JB
23452 { ac_try='test -z "$ac_c_werror_flag"
23453 || test ! -s conftest.err'
bec39cab
AC
23454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23455 (eval $ac_try) 2>&5
23456 ac_status=$?
23457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458 (exit $ac_status); }; } &&
23459 { ac_try='test -s conftest.$ac_objext'
23460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23461 (eval $ac_try) 2>&5
23462 ac_status=$?
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); }; }; then
a3828db0 23465 gdb_cv_func_sigsetjmp=yes
c906108c 23466else
bec39cab
AC
23467 echo "$as_me: failed program was:" >&5
23468sed 's/^/| /' conftest.$ac_ext >&5
23469
b4e70030 23470gdb_cv_func_sigsetjmp=no
c906108c 23471fi
bec39cab 23472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 23473fi
b4e70030
JB
23474echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
23475echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
a3828db0 23476if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 23477
a3828db0
MK
23478cat >>confdefs.h <<\_ACEOF
23479#define HAVE_SIGSETJMP 1
bec39cab 23480_ACEOF
c906108c 23481
97bf5e38 23482fi
c906108c 23483
a3828db0
MK
23484# Assume we'll default to using the included libiberty regex.
23485gdb_use_included_regex=yes
23486
23487# However, if the system regex is GNU regex, then default to *not*
23488# using the included regex.
b4e70030
JB
23489echo "$as_me:$LINENO: checking for GNU regex" >&5
23490echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
a3828db0 23491if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
23492 echo $ECHO_N "(cached) $ECHO_C" >&6
23493else
23494 cat >conftest.$ac_ext <<_ACEOF
23495/* confdefs.h. */
23496_ACEOF
23497cat confdefs.h >>conftest.$ac_ext
23498cat >>conftest.$ac_ext <<_ACEOF
23499/* end confdefs.h. */
a3828db0 23500#include <gnu-versions.h>
bec39cab
AC
23501int
23502main ()
23503{
a3828db0
MK
23504#define REGEX_INTERFACE_VERSION 1
23505#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
23506# error "Version mismatch"
23507#endif
bec39cab
AC
23508 ;
23509 return 0;
23510}
23511_ACEOF
23512rm -f conftest.$ac_objext
23513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23514 (eval $ac_compile) 2>conftest.er1
23515 ac_status=$?
23516 grep -v '^ *+' conftest.er1 >conftest.err
23517 rm -f conftest.er1
23518 cat conftest.err >&5
23519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520 (exit $ac_status); } &&
b4e70030
JB
23521 { ac_try='test -z "$ac_c_werror_flag"
23522 || test ! -s conftest.err'
bec39cab
AC
23523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23524 (eval $ac_try) 2>&5
23525 ac_status=$?
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); }; } &&
23528 { ac_try='test -s conftest.$ac_objext'
23529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23530 (eval $ac_try) 2>&5
23531 ac_status=$?
23532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533 (exit $ac_status); }; }; then
a3828db0 23534 gdb_cv_have_gnu_regex=yes
c906108c 23535else
bec39cab
AC
23536 echo "$as_me: failed program was:" >&5
23537sed 's/^/| /' conftest.$ac_ext >&5
23538
b4e70030 23539gdb_cv_have_gnu_regex=no
c906108c 23540fi
bec39cab 23541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 23542fi
b4e70030
JB
23543echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
23544echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
a3828db0
MK
23545if test $gdb_cv_have_gnu_regex = yes; then
23546 gdb_use_included_regex=no
23547fi
c906108c 23548
a3828db0 23549
b4e70030 23550# Check whether --with-included-regex or --without-included-regex was given.
a3828db0 23551if test "${with_included_regex+set}" = set; then
b4e70030
JB
23552 withval="$with_included_regex"
23553 gdb_with_regex=$withval
a3828db0
MK
23554else
23555 gdb_with_regex=$gdb_use_included_regex
b4e70030 23556fi;
a3828db0
MK
23557if test "$gdb_with_regex" = yes; then
23558
23559cat >>confdefs.h <<\_ACEOF
23560#define USE_INCLUDED_REGEX 1
bec39cab 23561_ACEOF
c906108c 23562
97bf5e38 23563fi
c906108c 23564
5c45e068 23565# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
b4e70030
JB
23566echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
23567echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
5c45e068 23568if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
23569 echo $ECHO_N "(cached) $ECHO_C" >&6
23570else
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. */
a3828db0
MK
23577#include <sys/param.h>
23578#include <sys/proc.h>
5c45e068
MK
23579
23580
bec39cab
AC
23581int
23582main ()
23583{
5c45e068
MK
23584static struct thread ac_aggr;
23585if (ac_aggr.td_pcb)
23586return 0;
bec39cab
AC
23587 ;
23588 return 0;
23589}
23590_ACEOF
23591rm -f conftest.$ac_objext
23592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23593 (eval $ac_compile) 2>conftest.er1
23594 ac_status=$?
23595 grep -v '^ *+' conftest.er1 >conftest.err
23596 rm -f conftest.er1
23597 cat conftest.err >&5
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); } &&
b4e70030
JB
23600 { ac_try='test -z "$ac_c_werror_flag"
23601 || test ! -s conftest.err'
bec39cab
AC
23602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23603 (eval $ac_try) 2>&5
23604 ac_status=$?
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); }; } &&
23607 { ac_try='test -s conftest.$ac_objext'
23608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23609 (eval $ac_try) 2>&5
23610 ac_status=$?
23611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); }; }; then
5c45e068 23613 ac_cv_member_struct_thread_td_pcb=yes
c906108c 23614else
bec39cab
AC
23615 echo "$as_me: failed program was:" >&5
23616sed 's/^/| /' conftest.$ac_ext >&5
23617
b4e70030 23618cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
23619/* confdefs.h. */
23620_ACEOF
23621cat confdefs.h >>conftest.$ac_ext
23622cat >>conftest.$ac_ext <<_ACEOF
23623/* end confdefs.h. */
23624#include <sys/param.h>
23625#include <sys/proc.h>
23626
23627
23628int
23629main ()
23630{
23631static struct thread ac_aggr;
23632if (sizeof ac_aggr.td_pcb)
23633return 0;
23634 ;
23635 return 0;
23636}
23637_ACEOF
23638rm -f conftest.$ac_objext
23639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23640 (eval $ac_compile) 2>conftest.er1
23641 ac_status=$?
23642 grep -v '^ *+' conftest.er1 >conftest.err
23643 rm -f conftest.er1
23644 cat conftest.err >&5
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); } &&
b4e70030
JB
23647 { ac_try='test -z "$ac_c_werror_flag"
23648 || test ! -s conftest.err'
5c45e068
MK
23649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23650 (eval $ac_try) 2>&5
23651 ac_status=$?
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); }; } &&
23654 { ac_try='test -s conftest.$ac_objext'
23655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23656 (eval $ac_try) 2>&5
23657 ac_status=$?
23658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); }; }; then
23660 ac_cv_member_struct_thread_td_pcb=yes
23661else
23662 echo "$as_me: failed program was:" >&5
23663sed 's/^/| /' conftest.$ac_ext >&5
23664
b4e70030 23665ac_cv_member_struct_thread_td_pcb=no
5c45e068
MK
23666fi
23667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 23668fi
bec39cab 23669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 23670fi
b4e70030
JB
23671echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
23672echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
5c45e068 23673if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 23674
5c45e068 23675cat >>confdefs.h <<_ACEOF
a3828db0 23676#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 23677_ACEOF
c906108c 23678
5c45e068 23679
97bf5e38 23680fi
c906108c 23681
5c45e068 23682
a3828db0 23683# See if <sys/lwp.h> defines `struct lwp`.
b4e70030
JB
23684echo "$as_me:$LINENO: checking for struct lwp" >&5
23685echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
a3828db0 23686if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
23687 echo $ECHO_N "(cached) $ECHO_C" >&6
23688else
23689 cat >conftest.$ac_ext <<_ACEOF
23690/* confdefs.h. */
23691_ACEOF
23692cat confdefs.h >>conftest.$ac_ext
23693cat >>conftest.$ac_ext <<_ACEOF
23694/* end confdefs.h. */
a3828db0
MK
23695#include <sys/param.h>
23696#include <sys/lwp.h>
bec39cab
AC
23697int
23698main ()
23699{
a3828db0 23700struct lwp l;
bec39cab
AC
23701 ;
23702 return 0;
23703}
23704_ACEOF
23705rm -f conftest.$ac_objext
23706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23707 (eval $ac_compile) 2>conftest.er1
23708 ac_status=$?
23709 grep -v '^ *+' conftest.er1 >conftest.err
23710 rm -f conftest.er1
23711 cat conftest.err >&5
23712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713 (exit $ac_status); } &&
b4e70030
JB
23714 { ac_try='test -z "$ac_c_werror_flag"
23715 || test ! -s conftest.err'
bec39cab
AC
23716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23717 (eval $ac_try) 2>&5
23718 ac_status=$?
23719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720 (exit $ac_status); }; } &&
23721 { ac_try='test -s conftest.$ac_objext'
23722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23723 (eval $ac_try) 2>&5
23724 ac_status=$?
23725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); }; }; then
a3828db0 23727 gdb_cv_struct_lwp=yes
c906108c 23728else
bec39cab
AC
23729 echo "$as_me: failed program was:" >&5
23730sed 's/^/| /' conftest.$ac_ext >&5
23731
b4e70030 23732gdb_cv_struct_lwp=no
c906108c 23733fi
bec39cab 23734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 23735fi
b4e70030
JB
23736echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
23737echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
a3828db0 23738if test $gdb_cv_struct_lwp = yes; then
c906108c 23739
a3828db0
MK
23740cat >>confdefs.h <<\_ACEOF
23741#define HAVE_STRUCT_LWP 1
bec39cab 23742_ACEOF
c906108c 23743
97bf5e38 23744fi
c906108c 23745
a3828db0 23746# See if <machine/reg.h> degines `struct reg'.
b4e70030
JB
23747echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
23748echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
a3828db0 23749if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
23750 echo $ECHO_N "(cached) $ECHO_C" >&6
23751else
23752 cat >conftest.$ac_ext <<_ACEOF
23753/* confdefs.h. */
23754_ACEOF
23755cat confdefs.h >>conftest.$ac_ext
23756cat >>conftest.$ac_ext <<_ACEOF
23757/* end confdefs.h. */
a3828db0
MK
23758#include <sys/types.h>
23759#include <machine/reg.h>
bec39cab
AC
23760int
23761main ()
23762{
a3828db0 23763struct reg r;
bec39cab
AC
23764 ;
23765 return 0;
23766}
23767_ACEOF
23768rm -f conftest.$ac_objext
23769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23770 (eval $ac_compile) 2>conftest.er1
23771 ac_status=$?
23772 grep -v '^ *+' conftest.er1 >conftest.err
23773 rm -f conftest.er1
23774 cat conftest.err >&5
23775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776 (exit $ac_status); } &&
b4e70030
JB
23777 { ac_try='test -z "$ac_c_werror_flag"
23778 || test ! -s conftest.err'
bec39cab
AC
23779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23780 (eval $ac_try) 2>&5
23781 ac_status=$?
23782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783 (exit $ac_status); }; } &&
23784 { ac_try='test -s conftest.$ac_objext'
23785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23786 (eval $ac_try) 2>&5
23787 ac_status=$?
23788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); }; }; then
a3828db0 23790 gdb_cv_struct_reg=yes
27ca5dad 23791else
bec39cab
AC
23792 echo "$as_me: failed program was:" >&5
23793sed 's/^/| /' conftest.$ac_ext >&5
23794
b4e70030 23795gdb_cv_struct_reg=no
27ca5dad 23796fi
bec39cab 23797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 23798fi
b4e70030
JB
23799echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
23800echo "${ECHO_T}$gdb_cv_struct_reg" >&6
a3828db0 23801if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
23802
23803cat >>confdefs.h <<\_ACEOF
a3828db0 23804#define HAVE_STRUCT_REG 1
bec39cab 23805_ACEOF
27ca5dad
MC
23806
23807fi
97bf5e38 23808
a3828db0
MK
23809# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
23810# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
b4e70030
JB
23811echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
23812echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
5c45e068 23813if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 23814 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 23815else
bec39cab
AC
23816 cat >conftest.$ac_ext <<_ACEOF
23817/* confdefs.h. */
23818_ACEOF
23819cat confdefs.h >>conftest.$ac_ext
23820cat >>conftest.$ac_ext <<_ACEOF
23821/* end confdefs.h. */
a3828db0 23822#include <machine/reg.h>
5c45e068
MK
23823
23824int
23825main ()
23826{
23827static struct reg ac_aggr;
23828if (ac_aggr.r_fs)
23829return 0;
23830 ;
23831 return 0;
23832}
23833_ACEOF
23834rm -f conftest.$ac_objext
23835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23836 (eval $ac_compile) 2>conftest.er1
23837 ac_status=$?
23838 grep -v '^ *+' conftest.er1 >conftest.err
23839 rm -f conftest.er1
23840 cat conftest.err >&5
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); } &&
b4e70030
JB
23843 { ac_try='test -z "$ac_c_werror_flag"
23844 || test ! -s conftest.err'
5c45e068
MK
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); }; } &&
23850 { ac_try='test -s conftest.$ac_objext'
23851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23852 (eval $ac_try) 2>&5
23853 ac_status=$?
23854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855 (exit $ac_status); }; }; then
23856 ac_cv_member_struct_reg_r_fs=yes
23857else
23858 echo "$as_me: failed program was:" >&5
23859sed 's/^/| /' conftest.$ac_ext >&5
23860
b4e70030 23861cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
23862/* confdefs.h. */
23863_ACEOF
23864cat confdefs.h >>conftest.$ac_ext
23865cat >>conftest.$ac_ext <<_ACEOF
23866/* end confdefs.h. */
23867#include <machine/reg.h>
23868
bec39cab
AC
23869int
23870main ()
23871{
5c45e068
MK
23872static struct reg ac_aggr;
23873if (sizeof ac_aggr.r_fs)
23874return 0;
bec39cab
AC
23875 ;
23876 return 0;
23877}
23878_ACEOF
23879rm -f conftest.$ac_objext
23880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23881 (eval $ac_compile) 2>conftest.er1
23882 ac_status=$?
23883 grep -v '^ *+' conftest.er1 >conftest.err
23884 rm -f conftest.er1
23885 cat conftest.err >&5
23886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23887 (exit $ac_status); } &&
b4e70030
JB
23888 { ac_try='test -z "$ac_c_werror_flag"
23889 || test ! -s conftest.err'
bec39cab
AC
23890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23891 (eval $ac_try) 2>&5
23892 ac_status=$?
23893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894 (exit $ac_status); }; } &&
23895 { ac_try='test -s conftest.$ac_objext'
23896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23897 (eval $ac_try) 2>&5
23898 ac_status=$?
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); }; }; then
5c45e068 23901 ac_cv_member_struct_reg_r_fs=yes
3862412b 23902else
bec39cab
AC
23903 echo "$as_me: failed program was:" >&5
23904sed 's/^/| /' conftest.$ac_ext >&5
23905
b4e70030 23906ac_cv_member_struct_reg_r_fs=no
3862412b 23907fi
bec39cab 23908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 23909fi
5c45e068
MK
23910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23911fi
b4e70030
JB
23912echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
23913echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
5c45e068
MK
23914if test $ac_cv_member_struct_reg_r_fs = yes; then
23915
23916cat >>confdefs.h <<_ACEOF
a3828db0 23917#define HAVE_STRUCT_REG_R_FS 1
bec39cab 23918_ACEOF
3862412b 23919
5c45e068 23920
97bf5e38 23921fi
b4e70030
JB
23922echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
23923echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
5c45e068 23924if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 23925 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 23926else
bec39cab
AC
23927 cat >conftest.$ac_ext <<_ACEOF
23928/* confdefs.h. */
23929_ACEOF
23930cat confdefs.h >>conftest.$ac_ext
23931cat >>conftest.$ac_ext <<_ACEOF
23932/* end confdefs.h. */
a3828db0 23933#include <machine/reg.h>
5c45e068 23934
bec39cab
AC
23935int
23936main ()
23937{
5c45e068
MK
23938static struct reg ac_aggr;
23939if (ac_aggr.r_gs)
23940return 0;
bec39cab
AC
23941 ;
23942 return 0;
23943}
23944_ACEOF
23945rm -f conftest.$ac_objext
23946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23947 (eval $ac_compile) 2>conftest.er1
23948 ac_status=$?
23949 grep -v '^ *+' conftest.er1 >conftest.err
23950 rm -f conftest.er1
23951 cat conftest.err >&5
23952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953 (exit $ac_status); } &&
b4e70030
JB
23954 { ac_try='test -z "$ac_c_werror_flag"
23955 || test ! -s conftest.err'
bec39cab
AC
23956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23957 (eval $ac_try) 2>&5
23958 ac_status=$?
23959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960 (exit $ac_status); }; } &&
23961 { ac_try='test -s conftest.$ac_objext'
23962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23963 (eval $ac_try) 2>&5
23964 ac_status=$?
23965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23966 (exit $ac_status); }; }; then
5c45e068 23967 ac_cv_member_struct_reg_r_gs=yes
3862412b 23968else
bec39cab
AC
23969 echo "$as_me: failed program was:" >&5
23970sed 's/^/| /' conftest.$ac_ext >&5
23971
b4e70030 23972cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
23973/* confdefs.h. */
23974_ACEOF
23975cat confdefs.h >>conftest.$ac_ext
23976cat >>conftest.$ac_ext <<_ACEOF
23977/* end confdefs.h. */
23978#include <machine/reg.h>
23979
23980int
23981main ()
23982{
23983static struct reg ac_aggr;
23984if (sizeof ac_aggr.r_gs)
23985return 0;
23986 ;
23987 return 0;
23988}
23989_ACEOF
23990rm -f conftest.$ac_objext
23991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23992 (eval $ac_compile) 2>conftest.er1
23993 ac_status=$?
23994 grep -v '^ *+' conftest.er1 >conftest.err
23995 rm -f conftest.er1
23996 cat conftest.err >&5
23997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998 (exit $ac_status); } &&
b4e70030
JB
23999 { ac_try='test -z "$ac_c_werror_flag"
24000 || test ! -s conftest.err'
5c45e068
MK
24001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24002 (eval $ac_try) 2>&5
24003 ac_status=$?
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); }; } &&
24006 { ac_try='test -s conftest.$ac_objext'
24007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008 (eval $ac_try) 2>&5
24009 ac_status=$?
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; }; then
24012 ac_cv_member_struct_reg_r_gs=yes
24013else
24014 echo "$as_me: failed program was:" >&5
24015sed 's/^/| /' conftest.$ac_ext >&5
24016
b4e70030 24017ac_cv_member_struct_reg_r_gs=no
3862412b 24018fi
bec39cab 24019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 24020fi
5c45e068
MK
24021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24022fi
b4e70030
JB
24023echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
24024echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
5c45e068
MK
24025if test $ac_cv_member_struct_reg_r_gs = yes; then
24026
24027cat >>confdefs.h <<_ACEOF
a3828db0 24028#define HAVE_STRUCT_REG_R_GS 1
bec39cab 24029_ACEOF
3862412b 24030
5c45e068 24031
97bf5e38 24032fi
3862412b 24033
5c45e068 24034
a3828db0 24035# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
b4e70030
JB
24036echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
24037echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
a3828db0 24038if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 24039 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 24040else
bec39cab
AC
24041 cat >conftest.$ac_ext <<_ACEOF
24042/* confdefs.h. */
24043_ACEOF
24044cat confdefs.h >>conftest.$ac_ext
24045cat >>conftest.$ac_ext <<_ACEOF
24046/* end confdefs.h. */
a3828db0 24047#include <sys/ptrace.h>
bec39cab
AC
24048int
24049main ()
24050{
a3828db0 24051PTRACE_GETREGS;
bec39cab
AC
24052 ;
24053 return 0;
24054}
24055_ACEOF
24056rm -f conftest.$ac_objext
24057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24058 (eval $ac_compile) 2>conftest.er1
24059 ac_status=$?
24060 grep -v '^ *+' conftest.er1 >conftest.err
24061 rm -f conftest.er1
24062 cat conftest.err >&5
24063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064 (exit $ac_status); } &&
b4e70030
JB
24065 { ac_try='test -z "$ac_c_werror_flag"
24066 || test ! -s conftest.err'
bec39cab
AC
24067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24068 (eval $ac_try) 2>&5
24069 ac_status=$?
24070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071 (exit $ac_status); }; } &&
24072 { ac_try='test -s conftest.$ac_objext'
24073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24074 (eval $ac_try) 2>&5
24075 ac_status=$?
24076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077 (exit $ac_status); }; }; then
a3828db0 24078 gdb_cv_have_ptrace_getregs=yes
451928c5 24079else
bec39cab
AC
24080 echo "$as_me: failed program was:" >&5
24081sed 's/^/| /' conftest.$ac_ext >&5
24082
b4e70030 24083gdb_cv_have_ptrace_getregs=no
451928c5 24084fi
bec39cab 24085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
24086fi
24087
b4e70030
JB
24088echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
24089echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
a3828db0 24090if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
24091
24092cat >>confdefs.h <<\_ACEOF
a3828db0 24093#define HAVE_PTRACE_GETREGS 1
bec39cab 24094_ACEOF
451928c5 24095
97bf5e38 24096fi
451928c5 24097
a3828db0 24098# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
b4e70030
JB
24099echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
24100echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
a3828db0 24101if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 24102 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 24103else
bec39cab
AC
24104 cat >conftest.$ac_ext <<_ACEOF
24105/* confdefs.h. */
24106_ACEOF
24107cat confdefs.h >>conftest.$ac_ext
24108cat >>conftest.$ac_ext <<_ACEOF
24109/* end confdefs.h. */
a3828db0 24110#include <sys/ptrace.h>
bec39cab
AC
24111int
24112main ()
24113{
a3828db0 24114PTRACE_GETFPXREGS;
bec39cab
AC
24115 ;
24116 return 0;
24117}
24118_ACEOF
24119rm -f conftest.$ac_objext
24120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24121 (eval $ac_compile) 2>conftest.er1
24122 ac_status=$?
24123 grep -v '^ *+' conftest.er1 >conftest.err
24124 rm -f conftest.er1
24125 cat conftest.err >&5
24126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); } &&
b4e70030
JB
24128 { ac_try='test -z "$ac_c_werror_flag"
24129 || test ! -s conftest.err'
bec39cab
AC
24130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24131 (eval $ac_try) 2>&5
24132 ac_status=$?
24133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24134 (exit $ac_status); }; } &&
24135 { ac_try='test -s conftest.$ac_objext'
24136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24137 (eval $ac_try) 2>&5
24138 ac_status=$?
24139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140 (exit $ac_status); }; }; then
a3828db0 24141 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 24142else
bec39cab
AC
24143 echo "$as_me: failed program was:" >&5
24144sed 's/^/| /' conftest.$ac_ext >&5
24145
b4e70030 24146gdb_cv_have_ptrace_getfpxregs=no
451928c5 24147fi
bec39cab 24148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
24149fi
24150
b4e70030
JB
24151echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
24152echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
a3828db0 24153if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
24154
24155cat >>confdefs.h <<\_ACEOF
a3828db0 24156#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 24157_ACEOF
451928c5 24158
97bf5e38 24159fi
451928c5 24160
a3828db0 24161# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
b4e70030
JB
24162echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
24163echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
a3828db0 24164if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 24165 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 24166else
bec39cab
AC
24167 cat >conftest.$ac_ext <<_ACEOF
24168/* confdefs.h. */
24169_ACEOF
24170cat confdefs.h >>conftest.$ac_ext
24171cat >>conftest.$ac_ext <<_ACEOF
24172/* end confdefs.h. */
a3828db0
MK
24173#include <sys/types.h>
24174#include <sys/ptrace.h>
bec39cab
AC
24175int
24176main ()
24177{
a3828db0 24178PT_GETDBREGS;
bec39cab
AC
24179 ;
24180 return 0;
24181}
24182_ACEOF
24183rm -f conftest.$ac_objext
24184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24185 (eval $ac_compile) 2>conftest.er1
24186 ac_status=$?
24187 grep -v '^ *+' conftest.er1 >conftest.err
24188 rm -f conftest.er1
24189 cat conftest.err >&5
24190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191 (exit $ac_status); } &&
b4e70030
JB
24192 { ac_try='test -z "$ac_c_werror_flag"
24193 || test ! -s conftest.err'
bec39cab
AC
24194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24195 (eval $ac_try) 2>&5
24196 ac_status=$?
24197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24198 (exit $ac_status); }; } &&
24199 { ac_try='test -s conftest.$ac_objext'
24200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24201 (eval $ac_try) 2>&5
24202 ac_status=$?
24203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24204 (exit $ac_status); }; }; then
a3828db0 24205 gdb_cv_have_pt_getdbregs=yes
3862412b 24206else
bec39cab
AC
24207 echo "$as_me: failed program was:" >&5
24208sed 's/^/| /' conftest.$ac_ext >&5
24209
b4e70030 24210gdb_cv_have_pt_getdbregs=no
3862412b 24211fi
bec39cab 24212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
24213fi
24214
b4e70030
JB
24215echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
24216echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
a3828db0 24217if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
24218
24219cat >>confdefs.h <<\_ACEOF
a3828db0 24220#define HAVE_PT_GETDBREGS 1
bec39cab 24221_ACEOF
3862412b 24222
97bf5e38 24223fi
3862412b 24224
a3828db0 24225# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
b4e70030
JB
24226echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
24227echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
a3828db0 24228if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 24229 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 24230else
bec39cab
AC
24231 cat >conftest.$ac_ext <<_ACEOF
24232/* confdefs.h. */
24233_ACEOF
24234cat confdefs.h >>conftest.$ac_ext
24235cat >>conftest.$ac_ext <<_ACEOF
24236/* end confdefs.h. */
a3828db0
MK
24237#include <sys/types.h>
24238#include <sys/ptrace.h>
bec39cab
AC
24239int
24240main ()
24241{
a3828db0 24242PT_GETXMMREGS;
bec39cab
AC
24243 ;
24244 return 0;
24245}
24246_ACEOF
24247rm -f conftest.$ac_objext
24248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24249 (eval $ac_compile) 2>conftest.er1
24250 ac_status=$?
24251 grep -v '^ *+' conftest.er1 >conftest.err
24252 rm -f conftest.er1
24253 cat conftest.err >&5
24254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); } &&
b4e70030
JB
24256 { ac_try='test -z "$ac_c_werror_flag"
24257 || test ! -s conftest.err'
bec39cab
AC
24258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24259 (eval $ac_try) 2>&5
24260 ac_status=$?
24261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262 (exit $ac_status); }; } &&
24263 { ac_try='test -s conftest.$ac_objext'
24264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24265 (eval $ac_try) 2>&5
24266 ac_status=$?
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); }; }; then
a3828db0 24269 gdb_cv_have_pt_getxmmregs=yes
3862412b 24270else
bec39cab
AC
24271 echo "$as_me: failed program was:" >&5
24272sed 's/^/| /' conftest.$ac_ext >&5
24273
b4e70030 24274gdb_cv_have_pt_getxmmregs=no
3862412b 24275fi
bec39cab 24276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
24277fi
24278
b4e70030
JB
24279echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
24280echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
a3828db0 24281if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
24282
24283cat >>confdefs.h <<\_ACEOF
a3828db0 24284#define HAVE_PT_GETXMMREGS 1
bec39cab 24285_ACEOF
3862412b 24286
97bf5e38 24287fi
3862412b 24288
eb368090 24289# Detect which type of /proc is in use, such as for Unixware or Solaris.
97bf5e38
MK
24290
24291if test "${target}" = "${host}"; then
24292 case "${host}" in
97bf5e38 24293 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
24294
24295cat >>confdefs.h <<\_ACEOF
97bf5e38 24296#define NEW_PROC_API 1
bec39cab 24297_ACEOF
97bf5e38
MK
24298
24299 ;;
c162e8c9 24300 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
60ca704f
SE
24301
24302cat >>confdefs.h <<\_ACEOF
97bf5e38 24303#define NEW_PROC_API 1
bec39cab 24304_ACEOF
c960c18f
AC
24305
24306 ;;
24307 mips-sgi-irix5*)
24308 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
24309
24310cat >>confdefs.h <<\_ACEOF
c960c18f 24311#define _KMEMUSER 1
bec39cab 24312_ACEOF
97bf5e38
MK
24313
24314 ;;
24315 esac
24316fi
24317
24318if test "$ac_cv_header_sys_procfs_h" = yes; then
b4e70030
JB
24319 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
24320echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24321 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
24322 echo $ECHO_N "(cached) $ECHO_C" >&6
24323else
24324 cat >conftest.$ac_ext <<_ACEOF
24325/* confdefs.h. */
24326_ACEOF
24327cat confdefs.h >>conftest.$ac_ext
24328cat >>conftest.$ac_ext <<_ACEOF
24329/* end confdefs.h. */
596c9d4b
KB
24330
24331#define _SYSCALL32
24332#include <sys/procfs.h>
bec39cab
AC
24333int
24334main ()
24335{
97bf5e38 24336pstatus_t avar
bec39cab
AC
24337 ;
24338 return 0;
24339}
24340_ACEOF
24341rm -f conftest.$ac_objext
24342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24343 (eval $ac_compile) 2>conftest.er1
24344 ac_status=$?
24345 grep -v '^ *+' conftest.er1 >conftest.err
24346 rm -f conftest.er1
24347 cat conftest.err >&5
24348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349 (exit $ac_status); } &&
b4e70030
JB
24350 { ac_try='test -z "$ac_c_werror_flag"
24351 || test ! -s conftest.err'
bec39cab
AC
24352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24353 (eval $ac_try) 2>&5
24354 ac_status=$?
24355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356 (exit $ac_status); }; } &&
24357 { ac_try='test -s conftest.$ac_objext'
24358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24359 (eval $ac_try) 2>&5
24360 ac_status=$?
24361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362 (exit $ac_status); }; }; then
97bf5e38 24363 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 24364else
bec39cab
AC
24365 echo "$as_me: failed program was:" >&5
24366sed 's/^/| /' conftest.$ac_ext >&5
24367
b4e70030 24368bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 24369
596c9d4b 24370fi
bec39cab 24371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
24372fi
24373
97bf5e38 24374 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
24375
24376cat >>confdefs.h <<\_ACEOF
97bf5e38 24377#define HAVE_PSTATUS_T 1
bec39cab 24378_ACEOF
596c9d4b
KB
24379
24380 fi
b4e70030
JB
24381 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
24382echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 24383
b4e70030
JB
24384 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
24385echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24386 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
24387 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 24388else
bec39cab
AC
24389 cat >conftest.$ac_ext <<_ACEOF
24390/* confdefs.h. */
24391_ACEOF
24392cat confdefs.h >>conftest.$ac_ext
24393cat >>conftest.$ac_ext <<_ACEOF
24394/* end confdefs.h. */
596c9d4b
KB
24395
24396#define _SYSCALL32
24397#include <sys/procfs.h>
bec39cab
AC
24398int
24399main ()
24400{
97bf5e38 24401prrun_t avar
bec39cab
AC
24402 ;
24403 return 0;
24404}
24405_ACEOF
24406rm -f conftest.$ac_objext
24407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24408 (eval $ac_compile) 2>conftest.er1
24409 ac_status=$?
24410 grep -v '^ *+' conftest.er1 >conftest.err
24411 rm -f conftest.er1
24412 cat conftest.err >&5
24413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24414 (exit $ac_status); } &&
b4e70030
JB
24415 { ac_try='test -z "$ac_c_werror_flag"
24416 || test ! -s conftest.err'
bec39cab
AC
24417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24418 (eval $ac_try) 2>&5
24419 ac_status=$?
24420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421 (exit $ac_status); }; } &&
24422 { ac_try='test -s conftest.$ac_objext'
24423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24424 (eval $ac_try) 2>&5
24425 ac_status=$?
24426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427 (exit $ac_status); }; }; then
97bf5e38 24428 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 24429else
bec39cab
AC
24430 echo "$as_me: failed program was:" >&5
24431sed 's/^/| /' conftest.$ac_ext >&5
24432
b4e70030 24433bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 24434
596c9d4b 24435fi
bec39cab 24436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
24437fi
24438
97bf5e38 24439 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
24440
24441cat >>confdefs.h <<\_ACEOF
97bf5e38 24442#define HAVE_PRRUN_T 1
bec39cab 24443_ACEOF
596c9d4b
KB
24444
24445 fi
b4e70030
JB
24446 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
24447echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 24448
b4e70030
JB
24449 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
24450echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24451 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
24452 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 24453else
bec39cab
AC
24454 cat >conftest.$ac_ext <<_ACEOF
24455/* confdefs.h. */
24456_ACEOF
24457cat confdefs.h >>conftest.$ac_ext
24458cat >>conftest.$ac_ext <<_ACEOF
24459/* end confdefs.h. */
596c9d4b
KB
24460
24461#define _SYSCALL32
24462#include <sys/procfs.h>
bec39cab
AC
24463int
24464main ()
24465{
97bf5e38 24466gregset_t avar
bec39cab
AC
24467 ;
24468 return 0;
24469}
24470_ACEOF
24471rm -f conftest.$ac_objext
24472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24473 (eval $ac_compile) 2>conftest.er1
24474 ac_status=$?
24475 grep -v '^ *+' conftest.er1 >conftest.err
24476 rm -f conftest.er1
24477 cat conftest.err >&5
24478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479 (exit $ac_status); } &&
b4e70030
JB
24480 { ac_try='test -z "$ac_c_werror_flag"
24481 || test ! -s conftest.err'
bec39cab
AC
24482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24483 (eval $ac_try) 2>&5
24484 ac_status=$?
24485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486 (exit $ac_status); }; } &&
24487 { ac_try='test -s conftest.$ac_objext'
24488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24489 (eval $ac_try) 2>&5
24490 ac_status=$?
24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); }; }; then
97bf5e38 24493 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 24494else
bec39cab
AC
24495 echo "$as_me: failed program was:" >&5
24496sed 's/^/| /' conftest.$ac_ext >&5
24497
b4e70030 24498bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 24499
596c9d4b 24500fi
bec39cab 24501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
24502fi
24503
97bf5e38 24504 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
24505
24506cat >>confdefs.h <<\_ACEOF
97bf5e38 24507#define HAVE_GREGSET_T 1
bec39cab 24508_ACEOF
596c9d4b
KB
24509
24510 fi
b4e70030
JB
24511 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
24512echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 24513
b4e70030
JB
24514 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
24515echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24516 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
24517 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 24518else
bec39cab
AC
24519 cat >conftest.$ac_ext <<_ACEOF
24520/* confdefs.h. */
24521_ACEOF
24522cat confdefs.h >>conftest.$ac_ext
24523cat >>conftest.$ac_ext <<_ACEOF
24524/* end confdefs.h. */
97bf5e38
MK
24525
24526#define _SYSCALL32
d84dd0c5 24527#include <sys/procfs.h>
bec39cab
AC
24528int
24529main ()
24530{
97bf5e38 24531fpregset_t avar
bec39cab
AC
24532 ;
24533 return 0;
24534}
24535_ACEOF
24536rm -f conftest.$ac_objext
24537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24538 (eval $ac_compile) 2>conftest.er1
24539 ac_status=$?
24540 grep -v '^ *+' conftest.er1 >conftest.err
24541 rm -f conftest.er1
24542 cat conftest.err >&5
24543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); } &&
b4e70030
JB
24545 { ac_try='test -z "$ac_c_werror_flag"
24546 || test ! -s conftest.err'
bec39cab
AC
24547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24548 (eval $ac_try) 2>&5
24549 ac_status=$?
24550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551 (exit $ac_status); }; } &&
24552 { ac_try='test -s conftest.$ac_objext'
24553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24554 (eval $ac_try) 2>&5
24555 ac_status=$?
24556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); }; }; then
97bf5e38 24558 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 24559else
bec39cab
AC
24560 echo "$as_me: failed program was:" >&5
24561sed 's/^/| /' conftest.$ac_ext >&5
24562
b4e70030 24563bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 24564
d84dd0c5 24565fi
bec39cab 24566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
24567fi
24568
97bf5e38 24569 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
24570
24571cat >>confdefs.h <<\_ACEOF
97bf5e38 24572#define HAVE_FPREGSET_T 1
bec39cab 24573_ACEOF
d84dd0c5 24574
97bf5e38 24575 fi
b4e70030
JB
24576 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
24577echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 24578
b4e70030
JB
24579 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
24580echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24581 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
24582 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 24583else
bec39cab
AC
24584 cat >conftest.$ac_ext <<_ACEOF
24585/* confdefs.h. */
24586_ACEOF
24587cat confdefs.h >>conftest.$ac_ext
24588cat >>conftest.$ac_ext <<_ACEOF
24589/* end confdefs.h. */
c906108c 24590
97bf5e38
MK
24591#define _SYSCALL32
24592#include <sys/procfs.h>
bec39cab
AC
24593int
24594main ()
24595{
97bf5e38 24596prgregset_t avar
bec39cab
AC
24597 ;
24598 return 0;
24599}
24600_ACEOF
24601rm -f conftest.$ac_objext
24602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24603 (eval $ac_compile) 2>conftest.er1
24604 ac_status=$?
24605 grep -v '^ *+' conftest.er1 >conftest.err
24606 rm -f conftest.er1
24607 cat conftest.err >&5
24608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609 (exit $ac_status); } &&
b4e70030
JB
24610 { ac_try='test -z "$ac_c_werror_flag"
24611 || test ! -s conftest.err'
bec39cab
AC
24612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24613 (eval $ac_try) 2>&5
24614 ac_status=$?
24615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616 (exit $ac_status); }; } &&
24617 { ac_try='test -s conftest.$ac_objext'
24618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24619 (eval $ac_try) 2>&5
24620 ac_status=$?
24621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622 (exit $ac_status); }; }; then
97bf5e38 24623 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 24624else
bec39cab
AC
24625 echo "$as_me: failed program was:" >&5
24626sed 's/^/| /' conftest.$ac_ext >&5
24627
b4e70030 24628bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 24629
c906108c 24630fi
bec39cab 24631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
24632fi
24633
97bf5e38 24634 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
24635
24636cat >>confdefs.h <<\_ACEOF
97bf5e38 24637#define HAVE_PRGREGSET_T 1
bec39cab 24638_ACEOF
c906108c 24639
97bf5e38 24640 fi
b4e70030
JB
24641 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
24642echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 24643
b4e70030
JB
24644 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
24645echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24646 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
24647 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 24648else
bec39cab
AC
24649 cat >conftest.$ac_ext <<_ACEOF
24650/* confdefs.h. */
24651_ACEOF
24652cat confdefs.h >>conftest.$ac_ext
24653cat >>conftest.$ac_ext <<_ACEOF
24654/* end confdefs.h. */
97bf5e38
MK
24655
24656#define _SYSCALL32
24657#include <sys/procfs.h>
bec39cab
AC
24658int
24659main ()
24660{
97bf5e38 24661prfpregset_t avar
bec39cab
AC
24662 ;
24663 return 0;
24664}
24665_ACEOF
24666rm -f conftest.$ac_objext
24667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24668 (eval $ac_compile) 2>conftest.er1
24669 ac_status=$?
24670 grep -v '^ *+' conftest.er1 >conftest.err
24671 rm -f conftest.er1
24672 cat conftest.err >&5
24673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674 (exit $ac_status); } &&
b4e70030
JB
24675 { ac_try='test -z "$ac_c_werror_flag"
24676 || test ! -s conftest.err'
bec39cab
AC
24677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24678 (eval $ac_try) 2>&5
24679 ac_status=$?
24680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681 (exit $ac_status); }; } &&
24682 { ac_try='test -s conftest.$ac_objext'
24683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24684 (eval $ac_try) 2>&5
24685 ac_status=$?
24686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687 (exit $ac_status); }; }; then
97bf5e38 24688 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 24689else
bec39cab
AC
24690 echo "$as_me: failed program was:" >&5
24691sed 's/^/| /' conftest.$ac_ext >&5
24692
b4e70030 24693bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 24694
d45fe813 24695fi
bec39cab 24696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
24697fi
24698
97bf5e38 24699 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
24700
24701cat >>confdefs.h <<\_ACEOF
97bf5e38 24702#define HAVE_PRFPREGSET_T 1
bec39cab 24703_ACEOF
d45fe813 24704
97bf5e38 24705 fi
b4e70030
JB
24706 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
24707echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 24708
b4e70030
JB
24709 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
24710echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24711 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
24712 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 24713else
bec39cab
AC
24714 cat >conftest.$ac_ext <<_ACEOF
24715/* confdefs.h. */
24716_ACEOF
24717cat confdefs.h >>conftest.$ac_ext
24718cat >>conftest.$ac_ext <<_ACEOF
24719/* end confdefs.h. */
97bf5e38
MK
24720
24721#define _SYSCALL32
24722#include <sys/procfs.h>
bec39cab
AC
24723int
24724main ()
24725{
97bf5e38 24726prgregset32_t avar
bec39cab
AC
24727 ;
24728 return 0;
24729}
24730_ACEOF
24731rm -f conftest.$ac_objext
24732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24733 (eval $ac_compile) 2>conftest.er1
24734 ac_status=$?
24735 grep -v '^ *+' conftest.er1 >conftest.err
24736 rm -f conftest.er1
24737 cat conftest.err >&5
24738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739 (exit $ac_status); } &&
b4e70030
JB
24740 { ac_try='test -z "$ac_c_werror_flag"
24741 || test ! -s conftest.err'
bec39cab
AC
24742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24743 (eval $ac_try) 2>&5
24744 ac_status=$?
24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); }; } &&
24747 { ac_try='test -s conftest.$ac_objext'
24748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24749 (eval $ac_try) 2>&5
24750 ac_status=$?
24751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24752 (exit $ac_status); }; }; then
97bf5e38 24753 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 24754else
bec39cab
AC
24755 echo "$as_me: failed program was:" >&5
24756sed 's/^/| /' conftest.$ac_ext >&5
24757
b4e70030 24758bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 24759
d45fe813 24760fi
bec39cab 24761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
24762fi
24763
97bf5e38 24764 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
24765
24766cat >>confdefs.h <<\_ACEOF
97bf5e38 24767#define HAVE_PRGREGSET32_T 1
bec39cab 24768_ACEOF
d45fe813 24769
97bf5e38 24770 fi
b4e70030
JB
24771 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
24772echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 24773
b4e70030
JB
24774 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
24775echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24776 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
24777 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 24778else
bec39cab
AC
24779 cat >conftest.$ac_ext <<_ACEOF
24780/* confdefs.h. */
24781_ACEOF
24782cat confdefs.h >>conftest.$ac_ext
24783cat >>conftest.$ac_ext <<_ACEOF
24784/* end confdefs.h. */
97bf5e38
MK
24785
24786#define _SYSCALL32
24787#include <sys/procfs.h>
bec39cab
AC
24788int
24789main ()
24790{
97bf5e38 24791prfpregset32_t avar
bec39cab
AC
24792 ;
24793 return 0;
24794}
24795_ACEOF
24796rm -f conftest.$ac_objext
24797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24798 (eval $ac_compile) 2>conftest.er1
24799 ac_status=$?
24800 grep -v '^ *+' conftest.er1 >conftest.err
24801 rm -f conftest.er1
24802 cat conftest.err >&5
24803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804 (exit $ac_status); } &&
b4e70030
JB
24805 { ac_try='test -z "$ac_c_werror_flag"
24806 || test ! -s conftest.err'
bec39cab
AC
24807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24808 (eval $ac_try) 2>&5
24809 ac_status=$?
24810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811 (exit $ac_status); }; } &&
24812 { ac_try='test -s conftest.$ac_objext'
24813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24814 (eval $ac_try) 2>&5
24815 ac_status=$?
24816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817 (exit $ac_status); }; }; then
97bf5e38 24818 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 24819else
bec39cab
AC
24820 echo "$as_me: failed program was:" >&5
24821sed 's/^/| /' conftest.$ac_ext >&5
24822
b4e70030 24823bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 24824
d45fe813 24825fi
bec39cab 24826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
24827fi
24828
97bf5e38 24829 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
24830
24831cat >>confdefs.h <<\_ACEOF
97bf5e38 24832#define HAVE_PRFPREGSET32_T 1
bec39cab 24833_ACEOF
d45fe813 24834
97bf5e38 24835 fi
b4e70030
JB
24836 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
24837echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 24838
b4e70030
JB
24839 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
24840echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24841 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
24842 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 24843else
bec39cab
AC
24844 cat >conftest.$ac_ext <<_ACEOF
24845/* confdefs.h. */
24846_ACEOF
24847cat confdefs.h >>conftest.$ac_ext
24848cat >>conftest.$ac_ext <<_ACEOF
24849/* end confdefs.h. */
97bf5e38 24850
d45fe813 24851#define _SYSCALL32
97bf5e38 24852#include <sys/procfs.h>
bec39cab
AC
24853int
24854main ()
24855{
97bf5e38 24856lwpid_t avar
bec39cab
AC
24857 ;
24858 return 0;
24859}
24860_ACEOF
24861rm -f conftest.$ac_objext
24862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24863 (eval $ac_compile) 2>conftest.er1
24864 ac_status=$?
24865 grep -v '^ *+' conftest.er1 >conftest.err
24866 rm -f conftest.er1
24867 cat conftest.err >&5
24868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869 (exit $ac_status); } &&
b4e70030
JB
24870 { ac_try='test -z "$ac_c_werror_flag"
24871 || test ! -s conftest.err'
bec39cab
AC
24872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24873 (eval $ac_try) 2>&5
24874 ac_status=$?
24875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876 (exit $ac_status); }; } &&
24877 { ac_try='test -s conftest.$ac_objext'
24878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24879 (eval $ac_try) 2>&5
24880 ac_status=$?
24881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882 (exit $ac_status); }; }; then
97bf5e38 24883 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 24884else
bec39cab
AC
24885 echo "$as_me: failed program was:" >&5
24886sed 's/^/| /' conftest.$ac_ext >&5
24887
b4e70030 24888bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 24889
d45fe813 24890fi
bec39cab 24891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
24892fi
24893
97bf5e38 24894 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
24895
24896cat >>confdefs.h <<\_ACEOF
97bf5e38 24897#define HAVE_LWPID_T 1
bec39cab 24898_ACEOF
d45fe813 24899
97bf5e38 24900 fi
b4e70030
JB
24901 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
24902echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 24903
b4e70030
JB
24904 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
24905echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24906 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
24907 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 24908else
bec39cab
AC
24909 cat >conftest.$ac_ext <<_ACEOF
24910/* confdefs.h. */
24911_ACEOF
24912cat confdefs.h >>conftest.$ac_ext
24913cat >>conftest.$ac_ext <<_ACEOF
24914/* end confdefs.h. */
c906108c 24915
97bf5e38
MK
24916#define _SYSCALL32
24917#include <sys/procfs.h>
bec39cab
AC
24918int
24919main ()
24920{
97bf5e38 24921psaddr_t avar
bec39cab
AC
24922 ;
24923 return 0;
24924}
24925_ACEOF
24926rm -f conftest.$ac_objext
24927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24928 (eval $ac_compile) 2>conftest.er1
24929 ac_status=$?
24930 grep -v '^ *+' conftest.er1 >conftest.err
24931 rm -f conftest.er1
24932 cat conftest.err >&5
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); } &&
b4e70030
JB
24935 { ac_try='test -z "$ac_c_werror_flag"
24936 || test ! -s conftest.err'
bec39cab
AC
24937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24938 (eval $ac_try) 2>&5
24939 ac_status=$?
24940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941 (exit $ac_status); }; } &&
24942 { ac_try='test -s conftest.$ac_objext'
24943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24944 (eval $ac_try) 2>&5
24945 ac_status=$?
24946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); }; }; then
97bf5e38 24948 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 24949else
bec39cab
AC
24950 echo "$as_me: failed program was:" >&5
24951sed 's/^/| /' conftest.$ac_ext >&5
24952
b4e70030 24953bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 24954
c906108c 24955fi
bec39cab 24956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
24957fi
24958
97bf5e38 24959 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
24960
24961cat >>confdefs.h <<\_ACEOF
97bf5e38 24962#define HAVE_PSADDR_T 1
bec39cab 24963_ACEOF
c906108c 24964
97bf5e38 24965 fi
b4e70030
JB
24966 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
24967echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 24968
b4e70030
JB
24969 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
24970echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24971 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
24972 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 24973else
bec39cab
AC
24974 cat >conftest.$ac_ext <<_ACEOF
24975/* confdefs.h. */
24976_ACEOF
24977cat confdefs.h >>conftest.$ac_ext
24978cat >>conftest.$ac_ext <<_ACEOF
24979/* end confdefs.h. */
c906108c 24980
97bf5e38
MK
24981#define _SYSCALL32
24982#include <sys/procfs.h>
bec39cab
AC
24983int
24984main ()
24985{
97bf5e38 24986prsysent_t avar
bec39cab
AC
24987 ;
24988 return 0;
24989}
24990_ACEOF
24991rm -f conftest.$ac_objext
24992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24993 (eval $ac_compile) 2>conftest.er1
24994 ac_status=$?
24995 grep -v '^ *+' conftest.er1 >conftest.err
24996 rm -f conftest.er1
24997 cat conftest.err >&5
24998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999 (exit $ac_status); } &&
b4e70030
JB
25000 { ac_try='test -z "$ac_c_werror_flag"
25001 || test ! -s conftest.err'
bec39cab
AC
25002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25003 (eval $ac_try) 2>&5
25004 ac_status=$?
25005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006 (exit $ac_status); }; } &&
25007 { ac_try='test -s conftest.$ac_objext'
25008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25009 (eval $ac_try) 2>&5
25010 ac_status=$?
25011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012 (exit $ac_status); }; }; then
97bf5e38 25013 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 25014else
bec39cab
AC
25015 echo "$as_me: failed program was:" >&5
25016sed 's/^/| /' conftest.$ac_ext >&5
25017
b4e70030 25018bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 25019
c906108c 25020fi
bec39cab 25021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
25022fi
25023
97bf5e38 25024 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
25025
25026cat >>confdefs.h <<\_ACEOF
97bf5e38 25027#define HAVE_PRSYSENT_T 1
bec39cab 25028_ACEOF
c906108c 25029
97bf5e38 25030 fi
b4e70030
JB
25031 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
25032echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 25033
b4e70030
JB
25034 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
25035echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
25036 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
25037 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 25038else
bec39cab
AC
25039 cat >conftest.$ac_ext <<_ACEOF
25040/* confdefs.h. */
25041_ACEOF
25042cat confdefs.h >>conftest.$ac_ext
25043cat >>conftest.$ac_ext <<_ACEOF
25044/* end confdefs.h. */
c906108c 25045
97bf5e38
MK
25046#define _SYSCALL32
25047#include <sys/procfs.h>
bec39cab
AC
25048int
25049main ()
25050{
97bf5e38 25051pr_sigset_t avar
bec39cab
AC
25052 ;
25053 return 0;
25054}
25055_ACEOF
25056rm -f conftest.$ac_objext
25057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25058 (eval $ac_compile) 2>conftest.er1
25059 ac_status=$?
25060 grep -v '^ *+' conftest.er1 >conftest.err
25061 rm -f conftest.er1
25062 cat conftest.err >&5
25063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064 (exit $ac_status); } &&
b4e70030
JB
25065 { ac_try='test -z "$ac_c_werror_flag"
25066 || test ! -s conftest.err'
bec39cab
AC
25067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25068 (eval $ac_try) 2>&5
25069 ac_status=$?
25070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071 (exit $ac_status); }; } &&
25072 { ac_try='test -s conftest.$ac_objext'
25073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25074 (eval $ac_try) 2>&5
25075 ac_status=$?
25076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25077 (exit $ac_status); }; }; then
97bf5e38 25078 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 25079else
bec39cab
AC
25080 echo "$as_me: failed program was:" >&5
25081sed 's/^/| /' conftest.$ac_ext >&5
25082
b4e70030 25083bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 25084
c906108c 25085fi
bec39cab 25086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
25087fi
25088
97bf5e38 25089 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
25090
25091cat >>confdefs.h <<\_ACEOF
97bf5e38 25092#define HAVE_PR_SIGSET_T 1
bec39cab 25093_ACEOF
c906108c 25094
97bf5e38 25095 fi
b4e70030
JB
25096 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
25097echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 25098
b4e70030
JB
25099 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
25100echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
25101 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
25102 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 25103else
bec39cab
AC
25104 cat >conftest.$ac_ext <<_ACEOF
25105/* confdefs.h. */
25106_ACEOF
25107cat confdefs.h >>conftest.$ac_ext
25108cat >>conftest.$ac_ext <<_ACEOF
25109/* end confdefs.h. */
c906108c 25110
97bf5e38
MK
25111#define _SYSCALL32
25112#include <sys/procfs.h>
bec39cab
AC
25113int
25114main ()
25115{
97bf5e38 25116pr_sigaction64_t avar
bec39cab
AC
25117 ;
25118 return 0;
25119}
25120_ACEOF
25121rm -f conftest.$ac_objext
25122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25123 (eval $ac_compile) 2>conftest.er1
25124 ac_status=$?
25125 grep -v '^ *+' conftest.er1 >conftest.err
25126 rm -f conftest.er1
25127 cat conftest.err >&5
25128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); } &&
b4e70030
JB
25130 { ac_try='test -z "$ac_c_werror_flag"
25131 || test ! -s conftest.err'
bec39cab
AC
25132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25133 (eval $ac_try) 2>&5
25134 ac_status=$?
25135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136 (exit $ac_status); }; } &&
25137 { ac_try='test -s conftest.$ac_objext'
25138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25139 (eval $ac_try) 2>&5
25140 ac_status=$?
25141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142 (exit $ac_status); }; }; then
97bf5e38 25143 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 25144else
bec39cab
AC
25145 echo "$as_me: failed program was:" >&5
25146sed 's/^/| /' conftest.$ac_ext >&5
25147
b4e70030 25148bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 25149
c906108c 25150fi
bec39cab 25151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
25152fi
25153
97bf5e38 25154 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
25155
25156cat >>confdefs.h <<\_ACEOF
97bf5e38 25157#define HAVE_PR_SIGACTION64_T 1
bec39cab 25158_ACEOF
c906108c 25159
97bf5e38 25160 fi
b4e70030
JB
25161 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
25162echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 25163
b4e70030
JB
25164 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
25165echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
25166 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
25167 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 25168else
bec39cab
AC
25169 cat >conftest.$ac_ext <<_ACEOF
25170/* confdefs.h. */
25171_ACEOF
25172cat confdefs.h >>conftest.$ac_ext
25173cat >>conftest.$ac_ext <<_ACEOF
25174/* end confdefs.h. */
97bf5e38
MK
25175
25176#define _SYSCALL32
25177#include <sys/procfs.h>
bec39cab
AC
25178int
25179main ()
25180{
97bf5e38 25181pr_siginfo64_t avar
bec39cab
AC
25182 ;
25183 return 0;
25184}
25185_ACEOF
25186rm -f conftest.$ac_objext
25187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25188 (eval $ac_compile) 2>conftest.er1
25189 ac_status=$?
25190 grep -v '^ *+' conftest.er1 >conftest.err
25191 rm -f conftest.er1
25192 cat conftest.err >&5
25193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194 (exit $ac_status); } &&
b4e70030
JB
25195 { ac_try='test -z "$ac_c_werror_flag"
25196 || test ! -s conftest.err'
bec39cab
AC
25197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25198 (eval $ac_try) 2>&5
25199 ac_status=$?
25200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201 (exit $ac_status); }; } &&
25202 { ac_try='test -s conftest.$ac_objext'
25203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25204 (eval $ac_try) 2>&5
25205 ac_status=$?
25206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207 (exit $ac_status); }; }; then
97bf5e38
MK
25208 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
25209else
bec39cab
AC
25210 echo "$as_me: failed program was:" >&5
25211sed 's/^/| /' conftest.$ac_ext >&5
25212
b4e70030 25213bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 25214
97bf5e38 25215fi
bec39cab 25216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 25217fi
c906108c 25218
97bf5e38 25219 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
25220
25221cat >>confdefs.h <<\_ACEOF
97bf5e38 25222#define HAVE_PR_SIGINFO64_T 1
bec39cab 25223_ACEOF
c906108c 25224
97bf5e38 25225 fi
b4e70030
JB
25226 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
25227echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
bec39cab
AC
25228
25229
97bf5e38
MK
25230
25231
25232
97bf5e38 25233 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
b4e70030
JB
25234 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
25235echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
bec39cab
AC
25236 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
25237 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
25238else
25239 if test "$cross_compiling" = yes; then
97bf5e38 25240 gdb_cv_prfpregset_t_broken=yes
c906108c 25241else
bec39cab
AC
25242 cat >conftest.$ac_ext <<_ACEOF
25243/* confdefs.h. */
25244_ACEOF
25245cat confdefs.h >>conftest.$ac_ext
25246cat >>conftest.$ac_ext <<_ACEOF
25247/* end confdefs.h. */
97bf5e38
MK
25248#include <sys/procfs.h>
25249 int main ()
25250 {
25251 if (sizeof (prfpregset_t) == sizeof (void *))
25252 return 1;
25253 return 0;
25254 }
bec39cab
AC
25255_ACEOF
25256rm -f conftest$ac_exeext
25257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25258 (eval $ac_link) 2>&5
25259 ac_status=$?
25260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25263 (eval $ac_try) 2>&5
25264 ac_status=$?
25265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266 (exit $ac_status); }; }; then
97bf5e38 25267 gdb_cv_prfpregset_t_broken=no
c906108c 25268else
bec39cab
AC
25269 echo "$as_me: program exited with status $ac_status" >&5
25270echo "$as_me: failed program was:" >&5
25271sed 's/^/| /' conftest.$ac_ext >&5
25272
25273( exit $ac_status )
25274gdb_cv_prfpregset_t_broken=yes
c906108c 25275fi
b4e70030 25276rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 25277fi
c906108c
SS
25278fi
25279
b4e70030
JB
25280 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
25281echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 25282 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
25283
25284cat >>confdefs.h <<\_ACEOF
97bf5e38 25285#define PRFPREGSET_T_BROKEN 1
bec39cab 25286_ACEOF
c906108c 25287
97bf5e38
MK
25288 fi
25289 fi
c906108c 25290
bec39cab 25291
b4e70030
JB
25292 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
25293echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
25294 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
25295 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 25296else
bec39cab
AC
25297 cat >conftest.$ac_ext <<_ACEOF
25298/* confdefs.h. */
25299_ACEOF
25300cat confdefs.h >>conftest.$ac_ext
25301cat >>conftest.$ac_ext <<_ACEOF
25302/* end confdefs.h. */
97bf5e38
MK
25303#include <unistd.h>
25304#include <sys/types.h>
25305#include <sys/procfs.h>
25306
bec39cab
AC
25307int
25308main ()
25309{
97bf5e38
MK
25310
25311 int dummy;;
25312 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
25313
25314 ;
25315 return 0;
25316}
25317_ACEOF
25318rm -f conftest.$ac_objext
25319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25320 (eval $ac_compile) 2>conftest.er1
25321 ac_status=$?
25322 grep -v '^ *+' conftest.er1 >conftest.err
25323 rm -f conftest.er1
25324 cat conftest.err >&5
25325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326 (exit $ac_status); } &&
b4e70030
JB
25327 { ac_try='test -z "$ac_c_werror_flag"
25328 || test ! -s conftest.err'
bec39cab
AC
25329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25330 (eval $ac_try) 2>&5
25331 ac_status=$?
25332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); }; } &&
25334 { ac_try='test -s conftest.$ac_objext'
25335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25336 (eval $ac_try) 2>&5
25337 ac_status=$?
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); }; }; then
97bf5e38 25340 gdb_cv_have_procfs_piocset=yes
c906108c 25341else
bec39cab
AC
25342 echo "$as_me: failed program was:" >&5
25343sed 's/^/| /' conftest.$ac_ext >&5
25344
b4e70030 25345gdb_cv_have_procfs_piocset=no
c906108c 25346fi
bec39cab 25347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 25348fi
97bf5e38 25349
b4e70030
JB
25350 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
25351echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 25352 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
25353
25354cat >>confdefs.h <<\_ACEOF
97bf5e38 25355#define HAVE_PROCFS_PIOCSET 1
bec39cab 25356_ACEOF
97bf5e38
MK
25357
25358 fi
c906108c 25359fi
c906108c 25360
97bf5e38 25361if test ${host} = ${target} ; then
bec39cab 25362
b4e70030
JB
25363 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
25364echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
25365 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
25366 echo $ECHO_N "(cached) $ECHO_C" >&6
25367else
25368 cat >conftest.$ac_ext <<_ACEOF
25369/* confdefs.h. */
25370_ACEOF
25371cat confdefs.h >>conftest.$ac_ext
25372cat >>conftest.$ac_ext <<_ACEOF
25373/* end confdefs.h. */
97bf5e38 25374#include <link.h>
bec39cab
AC
25375int
25376main ()
25377{
97bf5e38 25378struct link_map lm; (void) lm.l_addr;
bec39cab
AC
25379 ;
25380 return 0;
25381}
25382_ACEOF
25383rm -f conftest.$ac_objext
25384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25385 (eval $ac_compile) 2>conftest.er1
25386 ac_status=$?
25387 grep -v '^ *+' conftest.er1 >conftest.err
25388 rm -f conftest.er1
25389 cat conftest.err >&5
25390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391 (exit $ac_status); } &&
b4e70030
JB
25392 { ac_try='test -z "$ac_c_werror_flag"
25393 || test ! -s conftest.err'
bec39cab
AC
25394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25395 (eval $ac_try) 2>&5
25396 ac_status=$?
25397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398 (exit $ac_status); }; } &&
25399 { ac_try='test -s conftest.$ac_objext'
25400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25401 (eval $ac_try) 2>&5
25402 ac_status=$?
25403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404 (exit $ac_status); }; }; then
97bf5e38 25405 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 25406else
bec39cab
AC
25407 echo "$as_me: failed program was:" >&5
25408sed 's/^/| /' conftest.$ac_ext >&5
25409
b4e70030 25410gdb_cv_have_struct_link_map_with_l_members=no
c906108c 25411fi
bec39cab 25412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
25413fi
25414
b4e70030
JB
25415 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
25416echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 25417 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
25418
25419cat >>confdefs.h <<\_ACEOF
97bf5e38 25420#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 25421_ACEOF
97bf5e38
MK
25422
25423 fi
25424
bec39cab 25425
b4e70030
JB
25426 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
25427echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
25428 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
25429 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 25430else
bec39cab
AC
25431 cat >conftest.$ac_ext <<_ACEOF
25432/* confdefs.h. */
25433_ACEOF
25434cat confdefs.h >>conftest.$ac_ext
25435cat >>conftest.$ac_ext <<_ACEOF
25436/* end confdefs.h. */
97bf5e38
MK
25437#include <sys/types.h>
25438#include <link.h>
bec39cab
AC
25439int
25440main ()
25441{
97bf5e38 25442struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
25443 ;
25444 return 0;
25445}
25446_ACEOF
25447rm -f conftest.$ac_objext
25448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25449 (eval $ac_compile) 2>conftest.er1
25450 ac_status=$?
25451 grep -v '^ *+' conftest.er1 >conftest.err
25452 rm -f conftest.er1
25453 cat conftest.err >&5
25454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); } &&
b4e70030
JB
25456 { ac_try='test -z "$ac_c_werror_flag"
25457 || test ! -s conftest.err'
bec39cab
AC
25458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25459 (eval $ac_try) 2>&5
25460 ac_status=$?
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); }; } &&
25463 { ac_try='test -s conftest.$ac_objext'
25464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25465 (eval $ac_try) 2>&5
25466 ac_status=$?
25467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25468 (exit $ac_status); }; }; then
97bf5e38
MK
25469 gdb_cv_have_struct_link_map_with_lm_members=yes
25470else
bec39cab
AC
25471 echo "$as_me: failed program was:" >&5
25472sed 's/^/| /' conftest.$ac_ext >&5
25473
b4e70030 25474gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 25475fi
bec39cab 25476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 25477fi
c906108c 25478
b4e70030
JB
25479 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
25480echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 25481 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
25482
25483cat >>confdefs.h <<\_ACEOF
97bf5e38 25484#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 25485_ACEOF
97bf5e38
MK
25486
25487 fi
25488
bec39cab 25489
b4e70030
JB
25490 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
25491echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
bec39cab
AC
25492 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
25493 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 25494else
bec39cab
AC
25495 cat >conftest.$ac_ext <<_ACEOF
25496/* confdefs.h. */
25497_ACEOF
25498cat confdefs.h >>conftest.$ac_ext
25499cat >>conftest.$ac_ext <<_ACEOF
25500/* end confdefs.h. */
97bf5e38
MK
25501#include <sys/types.h>
25502#ifdef HAVE_NLIST_H
25503#include <nlist.h>
25504#endif
25505#include <link.h>
bec39cab
AC
25506int
25507main ()
25508{
97bf5e38 25509struct so_map lm; (void) lm.som_addr;
bec39cab
AC
25510 ;
25511 return 0;
25512}
25513_ACEOF
25514rm -f conftest.$ac_objext
25515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25516 (eval $ac_compile) 2>conftest.er1
25517 ac_status=$?
25518 grep -v '^ *+' conftest.er1 >conftest.err
25519 rm -f conftest.er1
25520 cat conftest.err >&5
25521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522 (exit $ac_status); } &&
b4e70030
JB
25523 { ac_try='test -z "$ac_c_werror_flag"
25524 || test ! -s conftest.err'
bec39cab
AC
25525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25526 (eval $ac_try) 2>&5
25527 ac_status=$?
25528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529 (exit $ac_status); }; } &&
25530 { ac_try='test -s conftest.$ac_objext'
25531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25532 (eval $ac_try) 2>&5
25533 ac_status=$?
25534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); }; }; then
97bf5e38
MK
25536 gdb_cv_have_struct_so_map_with_som_members=yes
25537else
bec39cab
AC
25538 echo "$as_me: failed program was:" >&5
25539sed 's/^/| /' conftest.$ac_ext >&5
25540
b4e70030 25541gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 25542fi
bec39cab 25543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 25544fi
c906108c 25545
b4e70030
JB
25546 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
25547echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 25548 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
25549
25550cat >>confdefs.h <<\_ACEOF
97bf5e38 25551#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 25552_ACEOF
c906108c 25553
97bf5e38 25554 fi
c906108c 25555
bec39cab 25556
b4e70030
JB
25557 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
25558echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
bec39cab
AC
25559 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
25560 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 25561else
bec39cab
AC
25562 cat >conftest.$ac_ext <<_ACEOF
25563/* confdefs.h. */
25564_ACEOF
25565cat confdefs.h >>conftest.$ac_ext
25566cat >>conftest.$ac_ext <<_ACEOF
25567/* end confdefs.h. */
97bf5e38
MK
25568#define _SYSCALL32
25569#include <sys/link.h>
bec39cab
AC
25570int
25571main ()
25572{
97bf5e38 25573struct link_map32 l;
bec39cab
AC
25574 ;
25575 return 0;
25576}
25577_ACEOF
25578rm -f conftest.$ac_objext
25579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25580 (eval $ac_compile) 2>conftest.er1
25581 ac_status=$?
25582 grep -v '^ *+' conftest.er1 >conftest.err
25583 rm -f conftest.er1
25584 cat conftest.err >&5
25585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586 (exit $ac_status); } &&
b4e70030
JB
25587 { ac_try='test -z "$ac_c_werror_flag"
25588 || test ! -s conftest.err'
bec39cab
AC
25589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25590 (eval $ac_try) 2>&5
25591 ac_status=$?
25592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); }; } &&
25594 { ac_try='test -s conftest.$ac_objext'
25595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25596 (eval $ac_try) 2>&5
25597 ac_status=$?
25598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599 (exit $ac_status); }; }; then
97bf5e38
MK
25600 gdb_cv_have_struct_link_map32=yes
25601else
bec39cab
AC
25602 echo "$as_me: failed program was:" >&5
25603sed 's/^/| /' conftest.$ac_ext >&5
25604
b4e70030 25605gdb_cv_have_struct_link_map32=no
97bf5e38 25606fi
bec39cab 25607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 25608fi
c906108c 25609
b4e70030
JB
25610 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
25611echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 25612 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
25613
25614cat >>confdefs.h <<\_ACEOF
97bf5e38 25615#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 25616_ACEOF
c906108c 25617
60ca704f
SE
25618
25619cat >>confdefs.h <<\_ACEOF
97bf5e38 25620#define _SYSCALL32 1
bec39cab 25621_ACEOF
c906108c 25622
97bf5e38
MK
25623 fi
25624fi
c906108c 25625
bc8bcb4b 25626# Check if the compiler supports the `long long' type.
c906108c 25627
b4e70030
JB
25628echo "$as_me:$LINENO: checking for long long support in compiler" >&5
25629echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
bec39cab
AC
25630if test "${gdb_cv_c_long_long+set}" = set; then
25631 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 25632else
bec39cab
AC
25633 cat >conftest.$ac_ext <<_ACEOF
25634/* confdefs.h. */
25635_ACEOF
25636cat confdefs.h >>conftest.$ac_ext
25637cat >>conftest.$ac_ext <<_ACEOF
25638/* end confdefs.h. */
bc8bcb4b 25639extern long long foo;
bec39cab
AC
25640int
25641main ()
25642{
bc8bcb4b 25643switch (foo & 2) { case 0: return 1; }
bec39cab
AC
25644 ;
25645 return 0;
25646}
25647_ACEOF
25648rm -f conftest.$ac_objext
25649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25650 (eval $ac_compile) 2>conftest.er1
25651 ac_status=$?
25652 grep -v '^ *+' conftest.er1 >conftest.err
25653 rm -f conftest.er1
25654 cat conftest.err >&5
25655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656 (exit $ac_status); } &&
b4e70030
JB
25657 { ac_try='test -z "$ac_c_werror_flag"
25658 || test ! -s conftest.err'
bec39cab
AC
25659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25660 (eval $ac_try) 2>&5
25661 ac_status=$?
25662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25663 (exit $ac_status); }; } &&
25664 { ac_try='test -s conftest.$ac_objext'
25665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25666 (eval $ac_try) 2>&5
25667 ac_status=$?
25668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); }; }; then
97bf5e38
MK
25670 gdb_cv_c_long_long=yes
25671else
bec39cab
AC
25672 echo "$as_me: failed program was:" >&5
25673sed 's/^/| /' conftest.$ac_ext >&5
25674
b4e70030 25675gdb_cv_c_long_long=no
97bf5e38 25676fi
bec39cab 25677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 25678fi
b4e70030
JB
25679echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
25680echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 25681if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
25682
25683cat >>confdefs.h <<\_ACEOF
97bf5e38 25684#define CC_HAS_LONG_LONG 1
bec39cab 25685_ACEOF
97bf5e38
MK
25686
25687fi
25688
bc8bcb4b 25689# Check if the compiler and runtime support printing long longs.
97bf5e38 25690
b4e70030
JB
25691echo "$as_me:$LINENO: checking for long long support in printf" >&5
25692echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
bec39cab
AC
25693if test "${gdb_cv_printf_has_long_long+set}" = set; then
25694 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
25695else
25696 if test "$cross_compiling" = yes; then
25697 gdb_cv_printf_has_long_long=no
25698else
bec39cab
AC
25699 cat >conftest.$ac_ext <<_ACEOF
25700/* confdefs.h. */
25701_ACEOF
25702cat confdefs.h >>conftest.$ac_ext
25703cat >>conftest.$ac_ext <<_ACEOF
25704/* end confdefs.h. */
bc8bcb4b
MK
25705$ac_includes_default
25706int
25707main ()
25708{
25709char buf[32];
97bf5e38
MK
25710 long long l = 0;
25711 l = (l << 16) + 0x0123;
25712 l = (l << 16) + 0x4567;
25713 l = (l << 16) + 0x89ab;
25714 l = (l << 16) + 0xcdef;
25715 sprintf (buf, "0x%016llx", l);
25716 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
25717 ;
25718 return 0;
c906108c 25719}
bec39cab
AC
25720_ACEOF
25721rm -f conftest$ac_exeext
25722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25723 (eval $ac_link) 2>&5
25724 ac_status=$?
25725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25728 (eval $ac_try) 2>&5
25729 ac_status=$?
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); }; }; then
97bf5e38
MK
25732 gdb_cv_printf_has_long_long=yes
25733else
bec39cab
AC
25734 echo "$as_me: program exited with status $ac_status" >&5
25735echo "$as_me: failed program was:" >&5
25736sed 's/^/| /' conftest.$ac_ext >&5
25737
25738( exit $ac_status )
25739gdb_cv_printf_has_long_long=no
97bf5e38 25740fi
b4e70030 25741rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 25742fi
97bf5e38 25743fi
b4e70030
JB
25744echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
25745echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 25746if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
25747
25748cat >>confdefs.h <<\_ACEOF
97bf5e38 25749#define PRINTF_HAS_LONG_LONG 1
bec39cab 25750_ACEOF
97bf5e38
MK
25751
25752fi
97bf5e38 25753
1a619819
LM
25754# Check if the compiler and runtime support printing decfloats.
25755
25756echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
25757echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
25758if test "${gdb_cv_printf_has_decfloat+set}" = set; then
25759 echo $ECHO_N "(cached) $ECHO_C" >&6
25760else
25761 if test "$cross_compiling" = yes; then
25762 gdb_cv_printf_has_decfloat=no
25763else
25764 cat >conftest.$ac_ext <<_ACEOF
25765/* confdefs.h. */
25766_ACEOF
25767cat confdefs.h >>conftest.$ac_ext
25768cat >>conftest.$ac_ext <<_ACEOF
25769/* end confdefs.h. */
25770$ac_includes_default
25771int
25772main ()
25773{
25774char buf[64];
25775 _Decimal32 d32 = 1.2345df;
25776 _Decimal64 d64 = 1.2345dd;
25777 _Decimal128 d128 = 1.2345dl;
25778 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
25779 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
25780 ;
25781 return 0;
25782}
25783_ACEOF
25784rm -f conftest$ac_exeext
25785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25786 (eval $ac_link) 2>&5
25787 ac_status=$?
25788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25791 (eval $ac_try) 2>&5
25792 ac_status=$?
25793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794 (exit $ac_status); }; }; then
25795 gdb_cv_printf_has_decfloat=yes
25796else
25797 echo "$as_me: program exited with status $ac_status" >&5
25798echo "$as_me: failed program was:" >&5
25799sed 's/^/| /' conftest.$ac_ext >&5
25800
25801( exit $ac_status )
25802gdb_cv_printf_has_decfloat=no
25803fi
25804rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25805fi
25806fi
25807echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
25808echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
25809if test $gdb_cv_printf_has_decfloat = yes; then
25810
25811cat >>confdefs.h <<\_ACEOF
25812#define PRINTF_HAS_DECFLOAT 1
25813_ACEOF
25814
25815fi
25816
bc8bcb4b
MK
25817# Check if the compiler supports the `long double' type. We can't use
25818# AC_C_LONG_DOUBLE because that one does additional checks on the
25819# constants defined in <float.h> that fail on some systems,
25820# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 25821
b4e70030
JB
25822echo "$as_me:$LINENO: checking for long double support in compiler" >&5
25823echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 25824if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 25825 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 25826else
bec39cab
AC
25827 cat >conftest.$ac_ext <<_ACEOF
25828/* confdefs.h. */
25829_ACEOF
25830cat confdefs.h >>conftest.$ac_ext
25831cat >>conftest.$ac_ext <<_ACEOF
25832/* end confdefs.h. */
97bf5e38 25833long double foo;
bec39cab
AC
25834_ACEOF
25835rm -f conftest.$ac_objext
25836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25837 (eval $ac_compile) 2>conftest.er1
25838 ac_status=$?
25839 grep -v '^ *+' conftest.er1 >conftest.err
25840 rm -f conftest.er1
25841 cat conftest.err >&5
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); } &&
b4e70030
JB
25844 { ac_try='test -z "$ac_c_werror_flag"
25845 || test ! -s conftest.err'
bec39cab
AC
25846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25847 (eval $ac_try) 2>&5
25848 ac_status=$?
25849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850 (exit $ac_status); }; } &&
25851 { ac_try='test -s conftest.$ac_objext'
25852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25853 (eval $ac_try) 2>&5
25854 ac_status=$?
25855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856 (exit $ac_status); }; }; then
bc8bcb4b 25857 gdb_cv_c_long_double=yes
97bf5e38 25858else
bec39cab
AC
25859 echo "$as_me: failed program was:" >&5
25860sed 's/^/| /' conftest.$ac_ext >&5
25861
b4e70030 25862gdb_cv_c_long_double=no
97bf5e38 25863fi
bec39cab 25864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 25865fi
b4e70030
JB
25866echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
25867echo "${ECHO_T}$gdb_cv_c_long_double" >&6
bc8bcb4b 25868if test $gdb_cv_c_long_double = yes; then
c906108c 25869
bc8bcb4b 25870cat >>confdefs.h <<\_ACEOF
97bf5e38 25871#define HAVE_LONG_DOUBLE 1
bec39cab 25872_ACEOF
97bf5e38
MK
25873
25874fi
25875
bc8bcb4b 25876# Check if the compiler and runtime support printing long doubles.
97bf5e38 25877
b4e70030
JB
25878echo "$as_me:$LINENO: checking for long double support in printf" >&5
25879echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
bec39cab
AC
25880if test "${gdb_cv_printf_has_long_double+set}" = set; then
25881 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
25882else
25883 if test "$cross_compiling" = yes; then
25884 gdb_cv_printf_has_long_double=no
25885else
bec39cab
AC
25886 cat >conftest.$ac_ext <<_ACEOF
25887/* confdefs.h. */
25888_ACEOF
25889cat confdefs.h >>conftest.$ac_ext
25890cat >>conftest.$ac_ext <<_ACEOF
25891/* end confdefs.h. */
bc8bcb4b
MK
25892$ac_includes_default
25893int
25894main ()
25895{
25896char buf[16];
97bf5e38
MK
25897 long double f = 3.141592653;
25898 sprintf (buf, "%Lg", f);
25899 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
25900 ;
25901 return 0;
97bf5e38 25902}
bec39cab
AC
25903_ACEOF
25904rm -f conftest$ac_exeext
25905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25906 (eval $ac_link) 2>&5
25907 ac_status=$?
25908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25911 (eval $ac_try) 2>&5
25912 ac_status=$?
25913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25914 (exit $ac_status); }; }; then
97bf5e38 25915 gdb_cv_printf_has_long_double=yes
c906108c 25916else
bec39cab
AC
25917 echo "$as_me: program exited with status $ac_status" >&5
25918echo "$as_me: failed program was:" >&5
25919sed 's/^/| /' conftest.$ac_ext >&5
25920
25921( exit $ac_status )
25922gdb_cv_printf_has_long_double=no
c906108c 25923fi
b4e70030 25924rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 25925fi
c906108c 25926fi
b4e70030
JB
25927echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
25928echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 25929if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
25930
25931cat >>confdefs.h <<\_ACEOF
97bf5e38 25932#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 25933_ACEOF
97bf5e38
MK
25934
25935fi
97bf5e38 25936
bc8bcb4b 25937# Check if the compiler and runtime support scanning long doubles.
97bf5e38 25938
b4e70030
JB
25939echo "$as_me:$LINENO: checking for long double support in scanf" >&5
25940echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
bec39cab
AC
25941if test "${gdb_cv_scanf_has_long_double+set}" = set; then
25942 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
25943else
25944 if test "$cross_compiling" = yes; then
25945 gdb_cv_scanf_has_long_double=no
25946else
bec39cab
AC
25947 cat >conftest.$ac_ext <<_ACEOF
25948/* confdefs.h. */
25949_ACEOF
25950cat confdefs.h >>conftest.$ac_ext
25951cat >>conftest.$ac_ext <<_ACEOF
25952/* end confdefs.h. */
bc8bcb4b
MK
25953#include <stdio.h>
25954int
25955main ()
25956{
25957char *buf = "3.141592653";
97bf5e38
MK
25958 long double f = 0;
25959 sscanf (buf, "%Lg", &f);
25960 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
25961 ;
25962 return 0;
97bf5e38 25963}
bec39cab
AC
25964_ACEOF
25965rm -f conftest$ac_exeext
25966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25967 (eval $ac_link) 2>&5
25968 ac_status=$?
25969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25972 (eval $ac_try) 2>&5
25973 ac_status=$?
25974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975 (exit $ac_status); }; }; then
97bf5e38
MK
25976 gdb_cv_scanf_has_long_double=yes
25977else
bec39cab
AC
25978 echo "$as_me: program exited with status $ac_status" >&5
25979echo "$as_me: failed program was:" >&5
25980sed 's/^/| /' conftest.$ac_ext >&5
25981
25982( exit $ac_status )
25983gdb_cv_scanf_has_long_double=no
97bf5e38 25984fi
b4e70030 25985rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 25986fi
c906108c 25987fi
b4e70030
JB
25988echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
25989echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 25990if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
25991
25992cat >>confdefs.h <<\_ACEOF
97bf5e38 25993#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 25994_ACEOF
97bf5e38
MK
25995
25996fi
c906108c 25997
438013df
AO
25998case ${host_os} in
25999aix*)
b4e70030
JB
26000 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
26001echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
bec39cab
AC
26002if test "${gdb_cv_bigtoc+set}" = set; then
26003 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 26004else
bec39cab 26005
438013df
AO
26006 SAVE_LDFLAGS=$LDFLAGS
26007
26008 case $GCC in
26009 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
26010 *) gdb_cv_bigtoc=-bbigtoc ;;
26011 esac
26012
26013 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
26014 cat >conftest.$ac_ext <<_ACEOF
26015/* confdefs.h. */
26016_ACEOF
26017cat confdefs.h >>conftest.$ac_ext
26018cat >>conftest.$ac_ext <<_ACEOF
26019/* end confdefs.h. */
438013df 26020
bec39cab
AC
26021int
26022main ()
26023{
438013df 26024int i;
bec39cab
AC
26025 ;
26026 return 0;
26027}
26028_ACEOF
26029rm -f conftest.$ac_objext conftest$ac_exeext
26030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26031 (eval $ac_link) 2>conftest.er1
26032 ac_status=$?
26033 grep -v '^ *+' conftest.er1 >conftest.err
26034 rm -f conftest.er1
26035 cat conftest.err >&5
26036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037 (exit $ac_status); } &&
b4e70030
JB
26038 { ac_try='test -z "$ac_c_werror_flag"
26039 || test ! -s conftest.err'
bec39cab
AC
26040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26041 (eval $ac_try) 2>&5
26042 ac_status=$?
26043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044 (exit $ac_status); }; } &&
26045 { ac_try='test -s conftest$ac_exeext'
26046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26047 (eval $ac_try) 2>&5
26048 ac_status=$?
26049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050 (exit $ac_status); }; }; then
438013df
AO
26051 :
26052else
bec39cab
AC
26053 echo "$as_me: failed program was:" >&5
26054sed 's/^/| /' conftest.$ac_ext >&5
26055
b4e70030 26056gdb_cv_bigtoc=
438013df 26057fi
bec39cab
AC
26058rm -f conftest.err conftest.$ac_objext \
26059 conftest$ac_exeext conftest.$ac_ext
ec76baa5 26060 LDFLAGS="${SAVE_LDFLAGS}"
438013df 26061
bec39cab 26062fi
b4e70030
JB
26063echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
26064echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
26065 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
26066 ;;
26067esac
26068
c906108c
SS
26069
26070
26071if test ${build} = ${host} -a ${host} = ${target} ; then
26072 case ${host_os} in
26073 hpux*)
b4e70030
JB
26074 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
26075echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
26076 if test -f /usr/include/dce/cma_config.h ; then
26077 if test "$GCC" = "yes" ; then
b4e70030
JB
26078 echo "$as_me:$LINENO: result: yes" >&5
26079echo "${ECHO_T}yes" >&6
60ca704f
SE
26080
26081cat >>confdefs.h <<\_ACEOF
c906108c 26082#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 26083_ACEOF
c906108c 26084
3483b318 26085 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
26086 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
26087 else
b4e70030
JB
26088 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
26089echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
26090 fi
26091 else
b4e70030
JB
26092 echo "$as_me:$LINENO: result: no" >&5
26093echo "${ECHO_T}no" >&6
c906108c
SS
26094 fi
26095 ;;
26096 solaris*)
d92419e5
JB
26097 # See if thread_db library is around for Solaris thread debugging.
26098 # Note that we must explicitly test for version 1 of the library
26099 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
26100 # the same API.
b4e70030
JB
26101 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
26102echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 26103 if test -f /usr/lib/libthread_db.so.1 ; then
b4e70030
JB
26104 echo "$as_me:$LINENO: result: yes" >&5
26105echo "${ECHO_T}yes" >&6
60ca704f
SE
26106
26107cat >>confdefs.h <<\_ACEOF
c906108c 26108#define HAVE_THREAD_DB_LIB 1
bec39cab 26109_ACEOF
c906108c 26110
3483b318 26111 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 26112 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab 26113
b4e70030
JB
26114echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
26115echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
bec39cab
AC
26116if test "${ac_cv_lib_dl_dlopen+set}" = set; then
26117 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 26118else
bec39cab 26119 ac_check_lib_save_LIBS=$LIBS
c906108c 26120LIBS="-ldl $LIBS"
bec39cab
AC
26121cat >conftest.$ac_ext <<_ACEOF
26122/* confdefs.h. */
26123_ACEOF
26124cat confdefs.h >>conftest.$ac_ext
26125cat >>conftest.$ac_ext <<_ACEOF
26126/* end confdefs.h. */
26127
b4e70030 26128/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
26129#ifdef __cplusplus
26130extern "C"
26131#endif
b4e70030
JB
26132/* We use char because int might match the return type of a gcc2
26133 builtin and then its argument prototype would still apply. */
bec39cab
AC
26134char dlopen ();
26135int
26136main ()
26137{
b4e70030 26138dlopen ();
bec39cab
AC
26139 ;
26140 return 0;
26141}
26142_ACEOF
26143rm -f conftest.$ac_objext conftest$ac_exeext
26144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26145 (eval $ac_link) 2>conftest.er1
26146 ac_status=$?
26147 grep -v '^ *+' conftest.er1 >conftest.err
26148 rm -f conftest.er1
26149 cat conftest.err >&5
26150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151 (exit $ac_status); } &&
b4e70030
JB
26152 { ac_try='test -z "$ac_c_werror_flag"
26153 || test ! -s conftest.err'
bec39cab
AC
26154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26155 (eval $ac_try) 2>&5
26156 ac_status=$?
26157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158 (exit $ac_status); }; } &&
26159 { ac_try='test -s conftest$ac_exeext'
26160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26161 (eval $ac_try) 2>&5
26162 ac_status=$?
26163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26164 (exit $ac_status); }; }; then
26165 ac_cv_lib_dl_dlopen=yes
26166else
26167 echo "$as_me: failed program was:" >&5
26168sed 's/^/| /' conftest.$ac_ext >&5
26169
b4e70030 26170ac_cv_lib_dl_dlopen=no
bec39cab
AC
26171fi
26172rm -f conftest.err conftest.$ac_objext \
26173 conftest$ac_exeext conftest.$ac_ext
26174LIBS=$ac_check_lib_save_LIBS
26175fi
b4e70030
JB
26176echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
26177echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
bec39cab
AC
26178if test $ac_cv_lib_dl_dlopen = yes; then
26179 cat >>confdefs.h <<_ACEOF
26180#define HAVE_LIBDL 1
26181_ACEOF
c906108c
SS
26182
26183 LIBS="-ldl $LIBS"
26184
c906108c
SS
26185fi
26186
26187 if test "$GCC" = "yes" ; then
26188 # The GNU linker requires the -export-dynamic option to make
26189 # all symbols visible in the dynamic symbol table.
26190 hold_ldflags=$LDFLAGS
b4e70030
JB
26191 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
26192echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 26193 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
26194 cat >conftest.$ac_ext <<_ACEOF
26195/* confdefs.h. */
26196_ACEOF
26197cat confdefs.h >>conftest.$ac_ext
26198cat >>conftest.$ac_ext <<_ACEOF
26199/* end confdefs.h. */
c906108c 26200
bec39cab
AC
26201int
26202main ()
26203{
c906108c 26204int i;
bec39cab
AC
26205 ;
26206 return 0;
26207}
26208_ACEOF
26209rm -f conftest.$ac_objext conftest$ac_exeext
26210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26211 (eval $ac_link) 2>conftest.er1
26212 ac_status=$?
26213 grep -v '^ *+' conftest.er1 >conftest.err
26214 rm -f conftest.er1
26215 cat conftest.err >&5
26216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217 (exit $ac_status); } &&
b4e70030
JB
26218 { ac_try='test -z "$ac_c_werror_flag"
26219 || test ! -s conftest.err'
bec39cab
AC
26220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26221 (eval $ac_try) 2>&5
26222 ac_status=$?
26223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224 (exit $ac_status); }; } &&
26225 { ac_try='test -s conftest$ac_exeext'
26226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26227 (eval $ac_try) 2>&5
26228 ac_status=$?
26229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26230 (exit $ac_status); }; }; then
c906108c
SS
26231 found=yes
26232else
bec39cab
AC
26233 echo "$as_me: failed program was:" >&5
26234sed 's/^/| /' conftest.$ac_ext >&5
26235
b4e70030 26236found=no
c906108c 26237fi
bec39cab
AC
26238rm -f conftest.err conftest.$ac_objext \
26239 conftest$ac_exeext conftest.$ac_ext
c906108c 26240 LDFLAGS=$hold_ldflags
b4e70030
JB
26241 echo "$as_me:$LINENO: result: $found" >&5
26242echo "${ECHO_T}$found" >&6
c906108c
SS
26243 if test $found = yes; then
26244 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
26245 fi
26246 fi
26247 # Sun randomly tweaked the prototypes in <proc_service.h>
26248 # at one point.
b4e70030
JB
26249 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
26250echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
bec39cab
AC
26251 if test "${gdb_cv_proc_service_is_old+set}" = set; then
26252 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 26253else
bec39cab
AC
26254
26255 cat >conftest.$ac_ext <<_ACEOF
26256/* confdefs.h. */
26257_ACEOF
26258cat confdefs.h >>conftest.$ac_ext
26259cat >>conftest.$ac_ext <<_ACEOF
26260/* end confdefs.h. */
c906108c
SS
26261
26262 #include <proc_service.h>
26263 ps_err_e ps_pdwrite
26264 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 26265
bec39cab
AC
26266int
26267main ()
26268{
26269
26270 ;
26271 return 0;
26272}
26273_ACEOF
26274rm -f conftest.$ac_objext
26275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26276 (eval $ac_compile) 2>conftest.er1
26277 ac_status=$?
26278 grep -v '^ *+' conftest.er1 >conftest.err
26279 rm -f conftest.er1
26280 cat conftest.err >&5
26281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26282 (exit $ac_status); } &&
b4e70030
JB
26283 { ac_try='test -z "$ac_c_werror_flag"
26284 || test ! -s conftest.err'
bec39cab
AC
26285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26286 (eval $ac_try) 2>&5
26287 ac_status=$?
26288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289 (exit $ac_status); }; } &&
26290 { ac_try='test -s conftest.$ac_objext'
26291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26292 (eval $ac_try) 2>&5
26293 ac_status=$?
26294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26295 (exit $ac_status); }; }; then
c906108c
SS
26296 gdb_cv_proc_service_is_old=no
26297else
bec39cab
AC
26298 echo "$as_me: failed program was:" >&5
26299sed 's/^/| /' conftest.$ac_ext >&5
26300
b4e70030 26301gdb_cv_proc_service_is_old=yes
c906108c 26302fi
bec39cab
AC
26303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26304
c906108c
SS
26305fi
26306
b4e70030
JB
26307 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
26308echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 26309 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
26310
26311cat >>confdefs.h <<\_ACEOF
c906108c 26312#define PROC_SERVICE_IS_OLD 1
bec39cab 26313_ACEOF
c906108c
SS
26314
26315 fi
26316 else
b4e70030
JB
26317 echo "$as_me:$LINENO: result: no" >&5
26318echo "${ECHO_T}no" >&6
c906108c
SS
26319 fi
26320 ;;
d92419e5 26321 aix*)
b4e70030
JB
26322 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
26323echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
bec39cab
AC
26324 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
26325 echo $ECHO_N "(cached) $ECHO_C" >&6
26326else
26327 cat >conftest.$ac_ext <<_ACEOF
26328/* confdefs.h. */
26329_ACEOF
26330cat confdefs.h >>conftest.$ac_ext
26331cat >>conftest.$ac_ext <<_ACEOF
26332/* end confdefs.h. */
d92419e5 26333#include <sys/pthdebug.h>
bec39cab
AC
26334int
26335main ()
26336{
d92419e5
JB
26337#ifndef PTHDB_VERSION_3
26338 #error
26339 #endif
bec39cab
AC
26340 ;
26341 return 0;
26342}
26343_ACEOF
26344rm -f conftest.$ac_objext
26345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26346 (eval $ac_compile) 2>conftest.er1
26347 ac_status=$?
26348 grep -v '^ *+' conftest.er1 >conftest.err
26349 rm -f conftest.er1
26350 cat conftest.err >&5
26351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352 (exit $ac_status); } &&
b4e70030
JB
26353 { ac_try='test -z "$ac_c_werror_flag"
26354 || test ! -s conftest.err'
bec39cab
AC
26355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26356 (eval $ac_try) 2>&5
26357 ac_status=$?
26358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359 (exit $ac_status); }; } &&
26360 { ac_try='test -s conftest.$ac_objext'
26361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26362 (eval $ac_try) 2>&5
26363 ac_status=$?
26364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26365 (exit $ac_status); }; }; then
d92419e5
JB
26366 gdb_cv_have_aix_thread_debug=yes
26367else
bec39cab
AC
26368 echo "$as_me: failed program was:" >&5
26369sed 's/^/| /' conftest.$ac_ext >&5
26370
b4e70030 26371gdb_cv_have_aix_thread_debug=no
d92419e5 26372fi
bec39cab 26373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
26374fi
26375
b4e70030
JB
26376 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
26377echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
26378 if test $gdb_cv_have_aix_thread_debug = yes; then
26379 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 26380 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
26381 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
26382 fi
26383 ;;
c906108c 26384 esac
bec39cab 26385
c906108c
SS
26386fi
26387
3f47be5c 26388if test "x$ac_cv_header_thread_db_h" = "xyes"; then
b4e70030
JB
26389 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
26390echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
bec39cab
AC
26391if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
26392 echo $ECHO_N "(cached) $ECHO_C" >&6
26393else
26394 cat >conftest.$ac_ext <<_ACEOF
26395/* confdefs.h. */
26396_ACEOF
26397cat confdefs.h >>conftest.$ac_ext
26398cat >>conftest.$ac_ext <<_ACEOF
26399/* end confdefs.h. */
3f47be5c 26400#include <thread_db.h>
bec39cab
AC
26401int
26402main ()
26403{
3f47be5c 26404int i = TD_NOTALLOC;
bec39cab
AC
26405 ;
26406 return 0;
26407}
26408_ACEOF
26409rm -f conftest.$ac_objext
26410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26411 (eval $ac_compile) 2>conftest.er1
26412 ac_status=$?
26413 grep -v '^ *+' conftest.er1 >conftest.err
26414 rm -f conftest.er1
26415 cat conftest.err >&5
26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); } &&
b4e70030
JB
26418 { ac_try='test -z "$ac_c_werror_flag"
26419 || test ! -s conftest.err'
bec39cab
AC
26420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26421 (eval $ac_try) 2>&5
26422 ac_status=$?
26423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26424 (exit $ac_status); }; } &&
26425 { ac_try='test -s conftest.$ac_objext'
26426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26427 (eval $ac_try) 2>&5
26428 ac_status=$?
26429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430 (exit $ac_status); }; }; then
3f47be5c
EZ
26431 gdb_cv_thread_db_h_has_td_notalloc=yes
26432else
bec39cab
AC
26433 echo "$as_me: failed program was:" >&5
26434sed 's/^/| /' conftest.$ac_ext >&5
26435
b4e70030 26436gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 26437
3f47be5c 26438fi
bec39cab 26439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 26440
bec39cab 26441fi
b4e70030
JB
26442echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
26443echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
59f80f10
DJ
26444 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
26445echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
26446if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
26447 echo $ECHO_N "(cached) $ECHO_C" >&6
26448else
26449 cat >conftest.$ac_ext <<_ACEOF
26450/* confdefs.h. */
26451_ACEOF
26452cat confdefs.h >>conftest.$ac_ext
26453cat >>conftest.$ac_ext <<_ACEOF
26454/* end confdefs.h. */
26455#include <thread_db.h>
26456int
26457main ()
26458{
26459int i = TD_VERSION;
26460 ;
26461 return 0;
26462}
26463_ACEOF
26464rm -f conftest.$ac_objext
26465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26466 (eval $ac_compile) 2>conftest.er1
26467 ac_status=$?
26468 grep -v '^ *+' conftest.er1 >conftest.err
26469 rm -f conftest.er1
26470 cat conftest.err >&5
26471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472 (exit $ac_status); } &&
26473 { ac_try='test -z "$ac_c_werror_flag"
26474 || test ! -s conftest.err'
26475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26476 (eval $ac_try) 2>&5
26477 ac_status=$?
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); }; } &&
26480 { ac_try='test -s conftest.$ac_objext'
26481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26482 (eval $ac_try) 2>&5
26483 ac_status=$?
26484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485 (exit $ac_status); }; }; then
26486 gdb_cv_thread_db_h_has_td_version=yes
26487else
26488 echo "$as_me: failed program was:" >&5
26489sed 's/^/| /' conftest.$ac_ext >&5
26490
26491gdb_cv_thread_db_h_has_td_version=no
26492
26493fi
26494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26495
26496fi
26497echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
26498echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
26499 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
26500echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
26501if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
26502 echo $ECHO_N "(cached) $ECHO_C" >&6
26503else
26504 cat >conftest.$ac_ext <<_ACEOF
26505/* confdefs.h. */
26506_ACEOF
26507cat confdefs.h >>conftest.$ac_ext
26508cat >>conftest.$ac_ext <<_ACEOF
26509/* end confdefs.h. */
26510#include <thread_db.h>
26511int
26512main ()
26513{
26514int i = TD_NOTLS;
26515 ;
26516 return 0;
26517}
26518_ACEOF
26519rm -f conftest.$ac_objext
26520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26521 (eval $ac_compile) 2>conftest.er1
26522 ac_status=$?
26523 grep -v '^ *+' conftest.er1 >conftest.err
26524 rm -f conftest.er1
26525 cat conftest.err >&5
26526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527 (exit $ac_status); } &&
26528 { ac_try='test -z "$ac_c_werror_flag"
26529 || test ! -s conftest.err'
26530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26531 (eval $ac_try) 2>&5
26532 ac_status=$?
26533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26534 (exit $ac_status); }; } &&
26535 { ac_try='test -s conftest.$ac_objext'
26536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26537 (eval $ac_try) 2>&5
26538 ac_status=$?
26539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26540 (exit $ac_status); }; }; then
26541 gdb_cv_thread_db_h_has_td_notls=yes
26542else
26543 echo "$as_me: failed program was:" >&5
26544sed 's/^/| /' conftest.$ac_ext >&5
26545
26546gdb_cv_thread_db_h_has_td_notls=no
26547
26548fi
26549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26550
26551fi
26552echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
26553echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
3f47be5c
EZ
26554fi
26555if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
26556
26557cat >>confdefs.h <<\_ACEOF
3f47be5c 26558#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 26559_ACEOF
3f47be5c 26560
59f80f10
DJ
26561fi
26562if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
26563
26564cat >>confdefs.h <<\_ACEOF
26565#define THREAD_DB_HAS_TD_VERSION 1
26566_ACEOF
26567
26568fi
26569if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
26570
26571cat >>confdefs.h <<\_ACEOF
26572#define THREAD_DB_HAS_TD_NOTLS 1
26573_ACEOF
26574
3f47be5c
EZ
26575fi
26576
b757528f 26577if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
b4e70030
JB
26578 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
26579echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
bec39cab
AC
26580if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
26581 echo $ECHO_N "(cached) $ECHO_C" >&6
26582else
26583 cat >conftest.$ac_ext <<_ACEOF
26584/* confdefs.h. */
26585_ACEOF
26586cat confdefs.h >>conftest.$ac_ext
26587cat >>conftest.$ac_ext <<_ACEOF
26588/* end confdefs.h. */
b757528f 26589#include <sys/syscall.h>
bec39cab
AC
26590int
26591main ()
26592{
b757528f 26593int i = __NR_tkill;
bec39cab
AC
26594 ;
26595 return 0;
26596}
26597_ACEOF
26598rm -f conftest.$ac_objext
26599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26600 (eval $ac_compile) 2>conftest.er1
26601 ac_status=$?
26602 grep -v '^ *+' conftest.er1 >conftest.err
26603 rm -f conftest.er1
26604 cat conftest.err >&5
26605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606 (exit $ac_status); } &&
b4e70030
JB
26607 { ac_try='test -z "$ac_c_werror_flag"
26608 || test ! -s conftest.err'
bec39cab
AC
26609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26610 (eval $ac_try) 2>&5
26611 ac_status=$?
26612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613 (exit $ac_status); }; } &&
26614 { ac_try='test -s conftest.$ac_objext'
26615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26616 (eval $ac_try) 2>&5
26617 ac_status=$?
26618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619 (exit $ac_status); }; }; then
b757528f
JJ
26620 gdb_cv_sys_syscall_h_has_tkill=yes
26621else
bec39cab
AC
26622 echo "$as_me: failed program was:" >&5
26623sed 's/^/| /' conftest.$ac_ext >&5
26624
b4e70030 26625gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 26626
b757528f 26627fi
bec39cab 26628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 26629
bec39cab 26630fi
b4e70030
JB
26631echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
26632echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
26633fi
26634if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
26635
26636cat >>confdefs.h <<\_ACEOF
b757528f 26637#define HAVE_TKILL_SYSCALL 1
bec39cab 26638_ACEOF
b757528f
JJ
26639
26640fi
26641
fb40c209 26642
bec39cab 26643
b4e70030 26644# Check whether --with-sysroot or --without-sysroot was given.
030292b7 26645if test "${with_sysroot+set}" = set; then
b4e70030
JB
26646 withval="$with_sysroot"
26647
030292b7 26648 case ${with_sysroot} in
715d1656 26649 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
26650 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
26651 esac
26652
26653 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
26654
07abfebf
RS
26655 if test "x$prefix" = xNONE; then
26656 test_prefix=/usr/local
26657 else
26658 test_prefix=$prefix
26659 fi
aa28a74e 26660 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
07abfebf 26661 test_exec_prefix=$test_prefix
030292b7 26662 else
07abfebf 26663 test_exec_prefix=$exec_prefix
030292b7
DJ
26664 fi
26665 case ${TARGET_SYSTEM_ROOT} in
715d1656 26666 "${test_prefix}"|"${test_prefix}/"*|\
07abfebf
RS
26667 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
26668 '${prefix}'|'${prefix}/'*|\
715d1656 26669 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
26670 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
26671 TARGET_SYSTEM_ROOT_DEFINE="$t"
26672 ;;
26673 esac
26674
26675else
bec39cab 26676
030292b7
DJ
26677 TARGET_SYSTEM_ROOT=
26678 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
26679
b4e70030 26680fi;
030292b7
DJ
26681
26682
26683
b4e70030 26684# Check whether --enable-werror or --disable-werror was given.
094a342e 26685if test "${enable_werror+set}" = set; then
b4e70030
JB
26686 enableval="$enable_werror"
26687 case "${enableval}" in
094a342e
MK
26688 yes | y) ERROR_ON_WARNING="yes" ;;
26689 no | n) ERROR_ON_WARNING="no" ;;
26690 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
26691echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
26692 { (exit 1); exit 1; }; } ;;
26693 esac
b4e70030 26694fi;
094a342e
MK
26695
26696# Enable -Werror by default when using gcc
26697if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
26698 ERROR_ON_WARNING=yes
26699fi
26700
26701WERROR_CFLAGS=""
26702if test "${ERROR_ON_WARNING}" = yes ; then
26703 WERROR_CFLAGS="-Werror"
26704fi
26705
aa79a185
DJ
26706# The entries after -Wno-pointer-sign are disabled warnings which may
26707# be enabled in the future, which can not currently be used to build
26708# GDB.
26709# NOTE: If you change this list, remember to update
3b851bce 26710# gdb/doc/gdbint.texinfo.
aa79a185
DJ
26711build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
26712-Wformat-nonliteral -Wno-pointer-sign \
58b38ee2 26713-Wno-unused -Wno-switch -Wno-char-subscripts"
a3b362c4 26714
b4e70030 26715# Check whether --enable-build-warnings or --disable-build-warnings was given.
c906108c 26716if test "${enable_build_warnings+set}" = set; then
b4e70030
JB
26717 enableval="$enable_build_warnings"
26718 case "${enableval}" in
c906108c
SS
26719 yes) ;;
26720 no) build_warnings="-w";;
26721 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26722 build_warnings="${build_warnings} ${t}";;
26723 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26724 build_warnings="${t} ${build_warnings}";;
26725 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
26726esac
d4f3574e 26727if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 26728 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 26729fi
b4e70030 26730fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce 26731if test "${enable_gdb_build_warnings+set}" = set; then
b4e70030
JB
26732 enableval="$enable_gdb_build_warnings"
26733 case "${enableval}" in
3b851bce
AC
26734 yes) ;;
26735 no) build_warnings="-w";;
26736 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26737 build_warnings="${build_warnings} ${t}";;
26738 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26739 build_warnings="${t} ${build_warnings}";;
26740 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
26741esac
26742if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
26743 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
26744fi
b4e70030 26745fi; WARN_CFLAGS=""
c906108c
SS
26746if test "x${build_warnings}" != x -a "x$GCC" = xyes
26747then
b4e70030
JB
26748 echo "$as_me:$LINENO: checking compiler warning flags" >&5
26749echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
26750 # Separate out the -Werror flag as some files just cannot be
26751 # compiled with it enabled.
26752 for w in ${build_warnings}; do
26753 case $w in
26754 -Werr*) WERROR_CFLAGS=-Werror ;;
26755 *) # Check that GCC accepts it
4536bbc6
AC
26756 saved_CFLAGS="$CFLAGS"
26757 CFLAGS="$CFLAGS $w"
bec39cab
AC
26758 cat >conftest.$ac_ext <<_ACEOF
26759/* confdefs.h. */
26760_ACEOF
26761cat confdefs.h >>conftest.$ac_ext
26762cat >>conftest.$ac_ext <<_ACEOF
26763/* end confdefs.h. */
4536bbc6 26764
bec39cab
AC
26765int
26766main ()
26767{
4536bbc6 26768
bec39cab
AC
26769 ;
26770 return 0;
26771}
26772_ACEOF
26773rm -f conftest.$ac_objext
26774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26775 (eval $ac_compile) 2>conftest.er1
26776 ac_status=$?
26777 grep -v '^ *+' conftest.er1 >conftest.err
26778 rm -f conftest.er1
26779 cat conftest.err >&5
26780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); } &&
b4e70030
JB
26782 { ac_try='test -z "$ac_c_werror_flag"
26783 || test ! -s conftest.err'
bec39cab
AC
26784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26785 (eval $ac_try) 2>&5
26786 ac_status=$?
26787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788 (exit $ac_status); }; } &&
26789 { ac_try='test -s conftest.$ac_objext'
26790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26791 (eval $ac_try) 2>&5
26792 ac_status=$?
26793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794 (exit $ac_status); }; }; then
4536bbc6
AC
26795 WARN_CFLAGS="${WARN_CFLAGS} $w"
26796else
bec39cab
AC
26797 echo "$as_me: failed program was:" >&5
26798sed 's/^/| /' conftest.$ac_ext >&5
26799
4536bbc6 26800fi
bec39cab 26801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 26802 CFLAGS="$saved_CFLAGS"
746a987d
AC
26803 esac
26804 done
aa79a185
DJ
26805 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
26806echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
c906108c
SS
26807fi
26808
26809
104c1213 26810
7a292a7a 26811# In the Cygwin environment, we need some additional flags.
b4e70030
JB
26812echo "$as_me:$LINENO: checking for cygwin" >&5
26813echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
bec39cab
AC
26814if test "${gdb_cv_os_cygwin+set}" = set; then
26815 echo $ECHO_N "(cached) $ECHO_C" >&6
26816else
26817 cat >conftest.$ac_ext <<_ACEOF
26818/* confdefs.h. */
26819_ACEOF
26820cat confdefs.h >>conftest.$ac_ext
26821cat >>conftest.$ac_ext <<_ACEOF
26822/* end confdefs.h. */
7a292a7a
SS
26823
26824#if defined (__CYGWIN__) || defined (__CYGWIN32__)
26825lose
26826#endif
bec39cab 26827_ACEOF
7a292a7a 26828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 26829 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
26830 gdb_cv_os_cygwin=yes
26831else
7a292a7a
SS
26832 gdb_cv_os_cygwin=no
26833fi
26834rm -f conftest*
26835
26836fi
b4e70030
JB
26837echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
26838echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 26839
aff38e61 26840
3eb25fda 26841SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 26842case ${host} in
95cbc983
AC
26843 *go32* ) SER_HARDWIRE=ser-go32.o ;;
26844 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 26845 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
26846esac
26847
26848
cd0fc7c3
SS
26849# libreadline needs libuser32.a in a cygwin environment
26850WIN32LIBS=
26851if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
26852 WIN32LIBS="-luser32"
26853 case "${target}" in
26854 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
26855 ;;
26856 esac
cd0fc7c3 26857fi
c906108c 26858
b4505029
MM
26859# The ser-tcp.c module requires sockets.
26860case ${host} in
26861 *mingw32*)
26862
26863cat >>confdefs.h <<\_ACEOF
26864#define USE_WIN32API 1
26865_ACEOF
26866
26867 WIN32LIBS="$WIN32LIBS -lws2_32"
26868 ;;
26869esac
26870
7a292a7a 26871
31d99776
DJ
26872# Add ELF support to GDB, but only if BFD includes ELF support.
26873OLD_CFLAGS=$CFLAGS
26874OLD_LDFLAGS=$LDFLAGS
26875OLD_LIBS=$LIBS
cab58a69 26876CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
31d99776 26877LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
7b3200f9
DJ
26878intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
26879LIBS="$LIBS -lbfd -liberty $intl"
31d99776
DJ
26880echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
26881echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
26882if test "${gdb_cv_var_elf+set}" = set; then
26883 echo $ECHO_N "(cached) $ECHO_C" >&6
26884else
26885 cat >conftest.$ac_ext <<_ACEOF
26886/* confdefs.h. */
26887_ACEOF
26888cat confdefs.h >>conftest.$ac_ext
26889cat >>conftest.$ac_ext <<_ACEOF
26890/* end confdefs.h. */
26891#include <stdlib.h>
26892#include "bfd.h"
26893#include "elf-bfd.h"
26894
26895int
26896main ()
26897{
26898bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
26899 ;
26900 return 0;
26901}
26902_ACEOF
26903rm -f conftest.$ac_objext conftest$ac_exeext
26904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26905 (eval $ac_link) 2>conftest.er1
26906 ac_status=$?
26907 grep -v '^ *+' conftest.er1 >conftest.err
26908 rm -f conftest.er1
26909 cat conftest.err >&5
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); } &&
26912 { ac_try='test -z "$ac_c_werror_flag"
26913 || test ! -s conftest.err'
26914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26915 (eval $ac_try) 2>&5
26916 ac_status=$?
26917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918 (exit $ac_status); }; } &&
26919 { ac_try='test -s conftest$ac_exeext'
26920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26921 (eval $ac_try) 2>&5
26922 ac_status=$?
26923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 (exit $ac_status); }; }; then
26925 gdb_cv_var_elf=yes
26926else
26927 echo "$as_me: failed program was:" >&5
26928sed 's/^/| /' conftest.$ac_ext >&5
26929
26930gdb_cv_var_elf=no
26931fi
26932rm -f conftest.err conftest.$ac_objext \
26933 conftest$ac_exeext conftest.$ac_ext
26934fi
26935echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
26936echo "${ECHO_T}$gdb_cv_var_elf" >&6
26937if test $gdb_cv_var_elf = yes; then
26938 CONFIG_OBS="$CONFIG_OBS elfread.o"
26939
26940cat >>confdefs.h <<\_ACEOF
26941#define HAVE_ELF 1
26942_ACEOF
26943
26944fi
26945CFLAGS=$OLD_CFLAGS
26946LDFLAGS=$OLD_LDFLAGS
26947LIBS=$OLD_LIBS
26948
121ce6e5
DJ
26949# Add any host-specific objects to GDB.
26950CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
26951
3fc11d3e
JM
26952LIBGUI="../libgui/src/libgui.a"
26953GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
26954
26955
7a292a7a 26956
3fc11d3e
JM
26957WIN32LDAPP=
26958
26959
26960
d91670b9 26961case "${host}" in
686a5eed 26962*-*-cygwin* | *-*-mingw* )
d91670b9
CV
26963 configdir="win"
26964 ;;
26965*)
26966 configdir="unix"
26967 ;;
26968esac
3fc11d3e
JM
26969
26970GDBTKLIBS=
26971if test "${enable_gdbtk}" = "yes"; then
26972
d1c3b63a
KS
26973 # Gdbtk must have an absolute path to srcdir in order to run
26974 # properly when not installed.
26975 here=`pwd`
26976 cd ${srcdir}
26977 GDBTK_SRC_DIR=`pwd`
26978 cd $here
26979
bec39cab 26980
3fc11d3e
JM
26981#
26982# Ok, lets find the tcl configuration
bec39cab 26983# First, look for one uninstalled.
3fc11d3e
JM
26984# the alternative search directory is invoked by --with-tclconfig
26985#
26986
26987if test x"${no_tcl}" = x ; then
26988 # we reset no_tcl in case something fails here
26989 no_tcl=true
bec39cab 26990
b4e70030 26991# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e 26992if test "${with_tclconfig+set}" = set; then
b4e70030
JB
26993 withval="$with_tclconfig"
26994 with_tclconfig=${withval}
26995fi;
26996 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
26997echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
bec39cab
AC
26998 if test "${ac_cv_c_tclconfig+set}" = set; then
26999 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 27000else
bec39cab 27001
3fc11d3e
JM
27002
27003 # First check to see if --with-tclconfig was specified.
27004 if test x"${with_tclconfig}" != x ; then
27005 if test -f "${with_tclconfig}/tclConfig.sh" ; then
27006 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
27007 else
bec39cab
AC
27008 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
27009echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
27010 { (exit 1); exit 1; }; }
3fc11d3e
JM
27011 fi
27012 fi
27013
27014 # then check for a private Tcl installation
27015 if test x"${ac_cv_c_tclconfig}" = x ; then
27016 for i in \
27017 ../tcl \
27018 `ls -dr ../tcl[7-9]* 2>/dev/null` \
27019 ../../tcl \
27020 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
27021 ../../../tcl \
27022 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
27023 if test -f "$i/${configdir}/tclConfig.sh" ; then
27024 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
27025 break
27026 fi
27027 done
27028 fi
27029 # check in a few common install locations
27030 if test x"${ac_cv_c_tclconfig}" = x ; then
27031 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
27032 if test -f "$i/tclConfig.sh" ; then
27033 ac_cv_c_tclconfig=`(cd $i; pwd)`
27034 break
27035 fi
27036 done
27037 fi
27038 # check in a few other private locations
27039 if test x"${ac_cv_c_tclconfig}" = x ; then
27040 for i in \
27041 ${srcdir}/../tcl \
27042 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
27043 if test -f "$i/${configdir}/tclConfig.sh" ; then
27044 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
27045 break
27046 fi
27047 done
27048 fi
bec39cab 27049
3fc11d3e
JM
27050fi
27051
27052 if test x"${ac_cv_c_tclconfig}" = x ; then
27053 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
27054 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
27055echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
27056 else
27057 no_tcl=
27058 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
b4e70030
JB
27059 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
27060echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
27061 fi
27062fi
27063
27064 if test -z "${no_tcl}"; then
bec39cab 27065
3fc11d3e
JM
27066 . $TCLCONFIG
27067
3fc11d3e
JM
27068
27069
27070
27071
3fc11d3e
JM
27072
27073
27074
bec39cab
AC
27075
27076
27077
27078
27079
27080
27081
27082
27083
27084
27085
27086
27087
27088
27089
27090
27091
27092
27093
3fc11d3e
JM
27094#
27095# Ok, lets find the tk configuration
bec39cab 27096# First, look for one uninstalled.
3fc11d3e
JM
27097# the alternative search directory is invoked by --with-tkconfig
27098#
27099
27100if test x"${no_tk}" = x ; then
27101 # we reset no_tk in case something fails here
27102 no_tk=true
bec39cab 27103
b4e70030 27104# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e 27105if test "${with_tkconfig+set}" = set; then
b4e70030
JB
27106 withval="$with_tkconfig"
27107 with_tkconfig=${withval}
27108fi;
27109 echo "$as_me:$LINENO: checking for Tk configuration" >&5
27110echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
bec39cab
AC
27111 if test "${ac_cv_c_tkconfig+set}" = set; then
27112 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 27113else
bec39cab 27114
3fc11d3e
JM
27115
27116 # First check to see if --with-tkconfig was specified.
27117 if test x"${with_tkconfig}" != x ; then
27118 if test -f "${with_tkconfig}/tkConfig.sh" ; then
27119 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
27120 else
bec39cab
AC
27121 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
27122echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
27123 { (exit 1); exit 1; }; }
3fc11d3e
JM
27124 fi
27125 fi
27126
27127 # then check for a private Tk library
27128 if test x"${ac_cv_c_tkconfig}" = x ; then
27129 for i in \
27130 ../tk \
27131 `ls -dr ../tk[4-9]* 2>/dev/null` \
27132 ../../tk \
27133 `ls -dr ../../tk[4-9]* 2>/dev/null` \
27134 ../../../tk \
27135 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
27136 if test -f "$i/${configdir}/tkConfig.sh" ; then
27137 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
27138 break
27139 fi
27140 done
27141 fi
27142 # check in a few common install locations
27143 if test x"${ac_cv_c_tkconfig}" = x ; then
27144 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
27145 if test -f "$i/tkConfig.sh" ; then
27146 ac_cv_c_tkconfig=`(cd $i; pwd)`
27147 break
27148 fi
27149 done
27150 fi
27151 # check in a few other private locations
27152 if test x"${ac_cv_c_tkconfig}" = x ; then
27153 for i in \
27154 ${srcdir}/../tk \
27155 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
27156 if test -f "$i/${configdir}/tkConfig.sh" ; then
27157 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
27158 break
27159 fi
27160 done
27161 fi
bec39cab 27162
3fc11d3e
JM
27163fi
27164
27165 if test x"${ac_cv_c_tkconfig}" = x ; then
27166 TKCONFIG="# no Tk configs found"
bec39cab
AC
27167 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
27168echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
27169 else
27170 no_tk=
27171 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
b4e70030
JB
27172 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
27173echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
27174 fi
27175fi
27176
27177
27178
dd2504ab
JM
27179 # now look for Tcl library stuff
27180
d91670b9 27181 tcldir="../tcl/${configdir}/"
dd2504ab
JM
27182
27183 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
27184
3fc11d3e
JM
27185 # If $no_tk is nonempty, then we can't do Tk, and there is no
27186 # point to doing Tcl.
27187 if test -z "${no_tk}"; then
bec39cab 27188
3fc11d3e
JM
27189 if test -f "$TKCONFIG" ; then
27190 . $TKCONFIG
27191 fi
27192
3fc11d3e 27193
3fc11d3e
JM
27194
27195
3fc11d3e 27196
bec39cab
AC
27197
27198
27199
27200
27201
27202
27203
27204
27205
3fc11d3e
JM
27206#
27207# Ok, lets find the tcl source trees so we can use the headers
27208# Warning: transition of version 9 to 10 will break this algorithm
27209# because 10 sorts before 9. We also look for just tcl. We have to
27210# be careful that we don't match stuff like tclX by accident.
27211# the alternative search directory is involked by --with-tclinclude
27212#
27213
27214no_tcl=true
b4e70030
JB
27215echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
27216echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
bec39cab 27217
b4e70030 27218# Check whether --with-tclinclude or --without-tclinclude was given.
3fc11d3e 27219if test "${with_tclinclude+set}" = set; then
b4e70030
JB
27220 withval="$with_tclinclude"
27221 with_tclinclude=${withval}
27222fi;
bec39cab
AC
27223if test "${ac_cv_c_tclh+set}" = set; then
27224 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 27225else
bec39cab 27226
3fc11d3e
JM
27227# first check to see if --with-tclinclude was specified
27228if test x"${with_tclinclude}" != x ; then
27229 if test -f ${with_tclinclude}/tclInt.h ; then
27230 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
27231 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
27232 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
27233 else
bec39cab
AC
27234 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
27235echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
27236 { (exit 1); exit 1; }; }
3fc11d3e
JM
27237 fi
27238fi
27239
27240# next check if it came with Tcl configuration file
27241if test x"${ac_cv_c_tclconfig}" = x ; then
27242 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
27243 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
27244 fi
27245fi
27246
27247# next check in private source directory
27248#
27249# since ls returns lowest version numbers first, reverse its output
27250if test x"${ac_cv_c_tclh}" = x ; then
27251 for i in \
27252 ${srcdir}/../tcl \
27253 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
27254 ${srcdir}/../../tcl \
27255 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
27256 ${srcdir}/../../../tcl \
27257 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
27258 if test -f $i/generic/tclInt.h ; then
27259 ac_cv_c_tclh=`(cd $i/generic; pwd)`
27260 break
27261 fi
27262 done
27263fi
27264# finally check in a few common install locations
27265#
27266# since ls returns lowest version numbers first, reverse its output
27267if test x"${ac_cv_c_tclh}" = x ; then
27268 for i in \
27269 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
27270 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
27271 /usr/local/src/tcl \
27272 /usr/local/lib/tcl \
27273 ${prefix}/include ; do
27274 if test -f $i/generic/tclInt.h ; then
27275 ac_cv_c_tclh=`(cd $i/generic; pwd)`
27276 break
27277 fi
27278 done
27279fi
27280# see if one is installed
27281if test x"${ac_cv_c_tclh}" = x ; then
bec39cab 27282 if test "${ac_cv_header_tclInt_h+set}" = set; then
b4e70030
JB
27283 echo "$as_me:$LINENO: checking for tclInt.h" >&5
27284echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
27285if test "${ac_cv_header_tclInt_h+set}" = set; then
27286 echo $ECHO_N "(cached) $ECHO_C" >&6
27287fi
b4e70030
JB
27288echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
27289echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
27290else
27291 # Is the header compilable?
b4e70030
JB
27292echo "$as_me:$LINENO: checking tclInt.h usability" >&5
27293echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
bec39cab
AC
27294cat >conftest.$ac_ext <<_ACEOF
27295/* confdefs.h. */
27296_ACEOF
27297cat confdefs.h >>conftest.$ac_ext
27298cat >>conftest.$ac_ext <<_ACEOF
27299/* end confdefs.h. */
27300$ac_includes_default
27301#include <tclInt.h>
27302_ACEOF
27303rm -f conftest.$ac_objext
27304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27305 (eval $ac_compile) 2>conftest.er1
27306 ac_status=$?
27307 grep -v '^ *+' conftest.er1 >conftest.err
27308 rm -f conftest.er1
27309 cat conftest.err >&5
27310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311 (exit $ac_status); } &&
b4e70030
JB
27312 { ac_try='test -z "$ac_c_werror_flag"
27313 || test ! -s conftest.err'
bec39cab
AC
27314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27315 (eval $ac_try) 2>&5
27316 ac_status=$?
27317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318 (exit $ac_status); }; } &&
27319 { ac_try='test -s conftest.$ac_objext'
27320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27321 (eval $ac_try) 2>&5
27322 ac_status=$?
27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324 (exit $ac_status); }; }; then
27325 ac_header_compiler=yes
27326else
27327 echo "$as_me: failed program was:" >&5
27328sed 's/^/| /' conftest.$ac_ext >&5
27329
b4e70030 27330ac_header_compiler=no
bec39cab
AC
27331fi
27332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
27333echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27334echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
27335
27336# Is the header present?
b4e70030
JB
27337echo "$as_me:$LINENO: checking tclInt.h presence" >&5
27338echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
bec39cab
AC
27339cat >conftest.$ac_ext <<_ACEOF
27340/* confdefs.h. */
27341_ACEOF
27342cat confdefs.h >>conftest.$ac_ext
27343cat >>conftest.$ac_ext <<_ACEOF
27344/* end confdefs.h. */
3fc11d3e 27345#include <tclInt.h>
bec39cab
AC
27346_ACEOF
27347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27349 ac_status=$?
27350 grep -v '^ *+' conftest.er1 >conftest.err
27351 rm -f conftest.er1
27352 cat conftest.err >&5
27353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354 (exit $ac_status); } >/dev/null; then
27355 if test -s conftest.err; then
27356 ac_cpp_err=$ac_c_preproc_warn_flag
27357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27358 else
27359 ac_cpp_err=
27360 fi
27361else
27362 ac_cpp_err=yes
3fc11d3e 27363fi
bec39cab
AC
27364if test -z "$ac_cpp_err"; then
27365 ac_header_preproc=yes
27366else
27367 echo "$as_me: failed program was:" >&5
27368sed 's/^/| /' conftest.$ac_ext >&5
27369
27370 ac_header_preproc=no
3fc11d3e 27371fi
bec39cab 27372rm -f conftest.err conftest.$ac_ext
b4e70030
JB
27373echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27374echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
27375
27376# So? What about this header?
27377case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27378 yes:no: )
27379 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
27380echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27381 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
27382echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
27383 ac_header_preproc=yes
27384 ;;
27385 no:yes:* )
27386 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
27387echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
27388 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
27389echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
27390 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
27391echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
27392 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
27393echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
27394 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
27395echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
27396 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
27397echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
27398 (
27399 cat <<\_ASBOX
27400## ------------------------------------------ ##
27401## Report this to the AC_PACKAGE_NAME lists. ##
27402## ------------------------------------------ ##
27403_ASBOX
27404 ) |
27405 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
27406 ;;
27407esac
b4e70030
JB
27408echo "$as_me:$LINENO: checking for tclInt.h" >&5
27409echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
27410if test "${ac_cv_header_tclInt_h+set}" = set; then
27411 echo $ECHO_N "(cached) $ECHO_C" >&6
27412else
27413 ac_cv_header_tclInt_h=$ac_header_preproc
27414fi
b4e70030
JB
27415echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
27416echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
27417
27418fi
27419if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
27420 ac_cv_c_tclh=installed
27421else
bec39cab 27422 ac_cv_c_tclh=""
3fc11d3e
JM
27423fi
27424
bec39cab 27425
3fc11d3e
JM
27426fi
27427
27428fi
27429
27430if test x"${ac_cv_c_tclh}" = x ; then
27431 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
27432 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
27433echo "$as_me: error: Can't find Tcl private headers" >&2;}
27434 { (exit 1); exit 1; }; }
3fc11d3e
JM
27435fi
27436if test x"${ac_cv_c_tclh}" != x ; then
27437 no_tcl=""
27438 if test x"${ac_cv_c_tclh}" = x"installed" ; then
b4e70030
JB
27439 echo "$as_me:$LINENO: result: is installed" >&5
27440echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
27441 TCLHDIR=""
27442 else
b4e70030
JB
27443 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
27444echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
27445 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
27446 TCLHDIR="-I${ac_cv_c_tclh}"
27447 fi
27448fi
27449
27450
27451
bec39cab 27452
3fc11d3e
JM
27453#
27454# Ok, lets find the tk source trees so we can use the headers
27455# If the directory (presumably symlink) named "tk" exists, use that one
27456# in preference to any others. Same logic is used when choosing library
27457# and again with Tcl. The search order is the best place to look first, then in
27458# decreasing significance. The loop breaks if the trigger file is found.
27459# Note the gross little conversion here of srcdir by cd'ing to the found
27460# directory. This converts the path from a relative to an absolute, so
27461# recursive cache variables for the path will work right. We check all
27462# the possible paths in one loop rather than many seperate loops to speed
27463# things up.
27464# the alternative search directory is involked by --with-tkinclude
27465#
27466no_tk=true
b4e70030
JB
27467echo "$as_me:$LINENO: checking for Tk private headers" >&5
27468echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
bec39cab 27469
b4e70030 27470# Check whether --with-tkinclude or --without-tkinclude was given.
3fc11d3e 27471if test "${with_tkinclude+set}" = set; then
b4e70030
JB
27472 withval="$with_tkinclude"
27473 with_tkinclude=${withval}
27474fi;
bec39cab
AC
27475if test "${ac_cv_c_tkh+set}" = set; then
27476 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 27477else
bec39cab 27478
3fc11d3e
JM
27479# first check to see if --with-tkinclude was specified
27480if test x"${with_tkinclude}" != x ; then
27481 if test -f ${with_tkinclude}/tk.h ; then
27482 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
27483 elif test -f ${with_tkinclude}/generic/tk.h ; then
27484 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
27485 else
bec39cab
AC
27486 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
27487echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
27488 { (exit 1); exit 1; }; }
3fc11d3e
JM
27489 fi
27490fi
27491
27492# next check if it came with Tk configuration file
27493if test x"${ac_cv_c_tkconfig}" = x ; then
27494 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
27495 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
27496 fi
27497fi
27498
27499# next check in private source directory
27500#
27501# since ls returns lowest version numbers first, reverse its output
27502if test x"${ac_cv_c_tkh}" = x ; then
27503 for i in \
27504 ${srcdir}/../tk \
27505 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
27506 ${srcdir}/../../tk \
27507 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
27508 ${srcdir}/../../../tk \
27509 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
27510 if test -f $i/generic/tk.h ; then
27511 ac_cv_c_tkh=`(cd $i/generic; pwd)`
27512 break
27513 fi
27514 done
27515fi
27516# finally check in a few common install locations
27517#
27518# since ls returns lowest version numbers first, reverse its output
27519if test x"${ac_cv_c_tkh}" = x ; then
27520 for i in \
27521 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
27522 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
27523 /usr/local/src/tk \
27524 /usr/local/lib/tk \
27525 ${prefix}/include ; do
27526 if test -f $i/generic/tk.h ; then
27527 ac_cv_c_tkh=`(cd $i/generic; pwd)`
27528 break
27529 fi
27530 done
27531fi
27532# see if one is installed
27533if test x"${ac_cv_c_tkh}" = x ; then
bec39cab 27534 if test "${ac_cv_header_tk_h+set}" = set; then
b4e70030
JB
27535 echo "$as_me:$LINENO: checking for tk.h" >&5
27536echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
27537if test "${ac_cv_header_tk_h+set}" = set; then
27538 echo $ECHO_N "(cached) $ECHO_C" >&6
27539fi
b4e70030
JB
27540echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
27541echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab
AC
27542else
27543 # Is the header compilable?
b4e70030
JB
27544echo "$as_me:$LINENO: checking tk.h usability" >&5
27545echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
bec39cab
AC
27546cat >conftest.$ac_ext <<_ACEOF
27547/* confdefs.h. */
27548_ACEOF
27549cat confdefs.h >>conftest.$ac_ext
27550cat >>conftest.$ac_ext <<_ACEOF
27551/* end confdefs.h. */
27552$ac_includes_default
3fc11d3e 27553#include <tk.h>
bec39cab
AC
27554_ACEOF
27555rm -f conftest.$ac_objext
27556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27557 (eval $ac_compile) 2>conftest.er1
27558 ac_status=$?
27559 grep -v '^ *+' conftest.er1 >conftest.err
27560 rm -f conftest.er1
27561 cat conftest.err >&5
27562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27563 (exit $ac_status); } &&
b4e70030
JB
27564 { ac_try='test -z "$ac_c_werror_flag"
27565 || test ! -s conftest.err'
bec39cab
AC
27566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27567 (eval $ac_try) 2>&5
27568 ac_status=$?
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); }; } &&
27571 { ac_try='test -s conftest.$ac_objext'
27572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27573 (eval $ac_try) 2>&5
27574 ac_status=$?
27575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576 (exit $ac_status); }; }; then
27577 ac_header_compiler=yes
27578else
27579 echo "$as_me: failed program was:" >&5
27580sed 's/^/| /' conftest.$ac_ext >&5
27581
b4e70030 27582ac_header_compiler=no
bec39cab
AC
27583fi
27584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
27585echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27586echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
27587
27588# Is the header present?
b4e70030
JB
27589echo "$as_me:$LINENO: checking tk.h presence" >&5
27590echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
bec39cab
AC
27591cat >conftest.$ac_ext <<_ACEOF
27592/* confdefs.h. */
27593_ACEOF
27594cat confdefs.h >>conftest.$ac_ext
27595cat >>conftest.$ac_ext <<_ACEOF
27596/* end confdefs.h. */
27597#include <tk.h>
27598_ACEOF
27599if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27601 ac_status=$?
27602 grep -v '^ *+' conftest.er1 >conftest.err
27603 rm -f conftest.er1
27604 cat conftest.err >&5
27605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27606 (exit $ac_status); } >/dev/null; then
27607 if test -s conftest.err; then
27608 ac_cpp_err=$ac_c_preproc_warn_flag
27609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27610 else
27611 ac_cpp_err=
27612 fi
27613else
27614 ac_cpp_err=yes
3fc11d3e 27615fi
bec39cab
AC
27616if test -z "$ac_cpp_err"; then
27617 ac_header_preproc=yes
27618else
27619 echo "$as_me: failed program was:" >&5
27620sed 's/^/| /' conftest.$ac_ext >&5
27621
27622 ac_header_preproc=no
27623fi
27624rm -f conftest.err conftest.$ac_ext
b4e70030
JB
27625echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27626echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
27627
27628# So? What about this header?
27629case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27630 yes:no: )
27631 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
27632echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27633 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
27634echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
27635 ac_header_preproc=yes
27636 ;;
27637 no:yes:* )
27638 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
27639echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
27640 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
27641echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
27642 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
27643echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
27644 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
27645echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
27646 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
27647echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
27648 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
27649echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
27650 (
27651 cat <<\_ASBOX
27652## ------------------------------------------ ##
27653## Report this to the AC_PACKAGE_NAME lists. ##
27654## ------------------------------------------ ##
27655_ASBOX
27656 ) |
27657 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
27658 ;;
27659esac
b4e70030
JB
27660echo "$as_me:$LINENO: checking for tk.h" >&5
27661echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
27662if test "${ac_cv_header_tk_h+set}" = set; then
27663 echo $ECHO_N "(cached) $ECHO_C" >&6
27664else
27665 ac_cv_header_tk_h=$ac_header_preproc
27666fi
b4e70030
JB
27667echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
27668echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab 27669
3fc11d3e 27670fi
bec39cab 27671if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
27672 ac_cv_c_tkh=installed
27673else
bec39cab 27674 ac_cv_c_tkh=""
3fc11d3e
JM
27675fi
27676
bec39cab 27677
3fc11d3e
JM
27678fi
27679
27680fi
27681
27682if test x"${ac_cv_c_tkh}" != x ; then
27683 no_tk=""
27684 if test x"${ac_cv_c_tkh}" = x"installed" ; then
b4e70030
JB
27685 echo "$as_me:$LINENO: result: is installed" >&5
27686echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
27687 TKHDIR=""
27688 else
b4e70030
JB
27689 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
27690echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
27691 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
27692 TKHDIR="-I${ac_cv_c_tkh}"
27693 fi
27694else
27695 TKHDIR="# no Tk directory found"
bec39cab
AC
27696 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
27697echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
27698 no_tk=true
27699fi
27700
27701
27702
bec39cab 27703
b4e70030
JB
27704echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
27705echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
27706if test x"${ac_cv_c_itclh}" = x ; then
27707 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
27708 if test -f $i/generic/itcl.h ; then
27709 ac_cv_c_itclh=`(cd $i/generic; pwd)`
27710 break
27711 fi
27712 done
27713fi
27714if test x"${ac_cv_c_itclh}" = x ; then
27715 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
27716 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
27717echo "$as_me: error: Can't find Itcl private headers" >&2;}
27718 { (exit 1); exit 1; }; }
3fc11d3e
JM
27719fi
27720if test x"${ac_cv_c_itclh}" != x ; then
27721 ITCLHDIR="-I${ac_cv_c_itclh}"
27722fi
27723# should always be here
27724# ITCLLIB="../itcl/itcl/unix/libitcl.a"
27725
27726#AC_SUBST(ITCLLIB)
27727
bec39cab 27728
b4e70030
JB
27729echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
27730echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
27731if test x"${ac_cv_c_itkh}" = x ; then
27732 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
27733 if test -f $i/generic/itk.h ; then
27734 ac_cv_c_itkh=`(cd $i/generic; pwd)`
27735 break
27736 fi
27737 done
27738fi
27739if test x"${ac_cv_c_itkh}" = x ; then
27740 ITKHDIR="# no Itk private headers found"
bec39cab
AC
27741 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
27742echo "$as_me: error: Can't find Itk private headers" >&2;}
27743 { (exit 1); exit 1; }; }
3fc11d3e
JM
27744fi
27745if test x"${ac_cv_c_itkh}" != x ; then
27746 ITKHDIR="-I${ac_cv_c_itkh}"
27747fi
27748# should always be here
27749# ITKLIB="../itcl/itk/unix/libitk.a"
27750
27751#AC_SUBST(ITKLIB)
27752
3fc11d3e 27753
dd2504ab
JM
27754
27755 # now look for Tk library stuff
27756
d91670b9 27757 tkdir="../tk/${configdir}/"
dd2504ab
JM
27758
27759 TK_DEPS="${tkdir}${TK_LIB_FILE}"
27760
3fc11d3e
JM
27761 # now look for Itcl library stuff
27762
bec39cab 27763
3fc11d3e
JM
27764#
27765# Ok, lets find the itcl configuration
bec39cab 27766# First, look for one uninstalled.
3fc11d3e
JM
27767# the alternative search directory is invoked by --with-itclconfig
27768#
27769
27770if test x"${no_itcl}" = x ; then
27771 # we reset no_itcl in case something fails here
27772 no_itcl=true
bec39cab 27773
b4e70030 27774# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e 27775if test "${with_itclconfig+set}" = set; then
b4e70030
JB
27776 withval="$with_itclconfig"
27777 with_itclconfig=${withval}
27778fi;
27779 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
27780echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
bec39cab
AC
27781 if test "${ac_cv_c_itclconfig+set}" = set; then
27782 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 27783else
bec39cab 27784
3fc11d3e
JM
27785
27786 # First check to see if --with-itclconfig was specified.
27787 if test x"${with_itclconfig}" != x ; then
27788 if test -f "${with_itclconfig}/itclConfig.sh" ; then
27789 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
27790 else
bec39cab
AC
27791 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
27792echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
27793 { (exit 1); exit 1; }; }
3fc11d3e
JM
27794 fi
27795 fi
27796
27797 # then check for a private Itcl library
27798 if test x"${ac_cv_c_itclconfig}" = x ; then
27799 for i in \
27800 ../itcl/itcl \
27801 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
27802 ../../itcl \
27803 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
27804 ../../../itcl \
27805 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
27806 if test -f "$i/itclConfig.sh" ; then
27807 ac_cv_c_itclconfig=`(cd $i; pwd)`
27808 break
27809 fi
27810 done
27811 fi
27812 # check in a few common install locations
27813 if test x"${ac_cv_c_itclconfig}" = x ; then
27814 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
27815 if test -f "$i/itclConfig.sh" ; then
27816 ac_cv_c_itclconfig=`(cd $i; pwd)`
27817 break
27818 fi
27819 done
27820 fi
27821 # check in a few other private locations
27822 if test x"${ac_cv_c_itclconfig}" = x ; then
27823 for i in \
27824 ${srcdir}/../itcl/itcl \
27825 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
27826 if test -f "$i/itclConfig.sh" ; then
27827 ac_cv_c_itclconfig=`(cd $i; pwd)`
27828 break
27829 fi
27830 done
27831 fi
bec39cab 27832
3fc11d3e
JM
27833fi
27834
27835 if test x"${ac_cv_c_itclconfig}" = x ; then
27836 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
27837 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
27838echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
27839 else
27840 no_itcl=
27841 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
b4e70030
JB
27842 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
27843echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
27844 fi
27845fi
27846
27847 if test -z "${no_itcl}"; then
bec39cab 27848
3fc11d3e
JM
27849 if test -f "$ITCLCONFIG" ; then
27850 . $ITCLCONFIG
27851 fi
27852
3fc11d3e 27853
3fc11d3e
JM
27854
27855
bec39cab
AC
27856
27857
27858
27859
27860
27861
27862
3fc11d3e
JM
27863
27864 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 27865 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
27866 fi
27867
bec39cab 27868
3fc11d3e 27869 # now look for Itk library stuff
bec39cab 27870
3fc11d3e
JM
27871#
27872# Ok, lets find the itk configuration
bec39cab 27873# First, look for one uninstalled.
3fc11d3e
JM
27874# the alternative search directory is invoked by --with-itkconfig
27875#
27876
27877if test x"${no_itk}" = x ; then
27878 # we reset no_itk in case something fails here
27879 no_itk=true
bec39cab 27880
b4e70030 27881# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e 27882if test "${with_itkconfig+set}" = set; then
b4e70030
JB
27883 withval="$with_itkconfig"
27884 with_itkconfig=${withval}
27885fi;
27886 echo "$as_me:$LINENO: checking for Itk configuration" >&5
27887echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
bec39cab
AC
27888 if test "${ac_cv_c_itkconfig+set}" = set; then
27889 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 27890else
bec39cab 27891
3fc11d3e
JM
27892
27893 # First check to see if --with-itkconfig was specified.
27894 if test x"${with_itkconfig}" != x ; then
27895 if test -f "${with_itkconfig}/itkConfig.sh" ; then
27896 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
27897 else
bec39cab
AC
27898 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
27899echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
27900 { (exit 1); exit 1; }; }
3fc11d3e
JM
27901 fi
27902 fi
27903
27904 # then check for a private Itk library
27905 if test x"${ac_cv_c_itkconfig}" = x ; then
27906 for i in \
27907 ../itcl/itk \
27908 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
27909 ../../itk \
27910 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
27911 ../../../itk \
27912 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
27913 if test -f "$i/itkConfig.sh" ; then
27914 ac_cv_c_itkconfig=`(cd $i; pwd)`
27915 break
27916 fi
27917 done
27918 fi
27919 # check in a few common install locations
27920 if test x"${ac_cv_c_itkconfig}" = x ; then
27921 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
27922 if test -f "$i/itkConfig.sh" ; then
27923 ac_cv_c_itkconfig=`(cd $i; pwd)`
27924 break
27925 fi
27926 done
27927 fi
27928 # check in a few other private locations
27929 if test x"${ac_cv_c_itkconfig}" = x ; then
27930 for i in \
27931 ${srcdir}/../itcl/itk \
27932 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
27933 if test -f "$i/itkConfig.sh" ; then
27934 ac_cv_c_itkconfig=`(cd $i; pwd)`
27935 break
27936 fi
27937 done
27938 fi
bec39cab 27939
3fc11d3e
JM
27940fi
27941
27942 if test x"${ac_cv_c_itkconfig}" = x ; then
27943 ITKCONFIG="# no Itk configs found"
bec39cab
AC
27944 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
27945echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
27946 else
27947 no_itk=
27948 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
b4e70030
JB
27949 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
27950echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
27951 fi
27952fi
27953
27954
bec39cab
AC
27955 if test -z "${no_itcl}"; then
27956
27957 if test -f "$ITKCONFIG" ; then
27958 . $ITKCONFIG
27959 fi
27960
27961
27962
27963
27964
27965
3fc11d3e 27966
3fc11d3e 27967
3fc11d3e
JM
27968
27969
3fc11d3e
JM
27970
27971
3fc11d3e 27972 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 27973 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
27974 fi
27975
4226a5a5 27976 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
27977
27978 # Include some libraries that Tcl and Tk want.
b2a1bd4f 27979 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
27980 # Yes, the ordering seems wrong here. But it isn't.
27981 # TK_LIBS is the list of libraries that need to be linked
27982 # after Tcl/Tk. Note that this isn't put into LIBS. If it
27983 # were in LIBS then any link tests after this point would
27984 # try to include things like `$(LIBGUI)', which wouldn't work.
27985 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
27986
27987 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
27988 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
27989 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
27990 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
27991 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
27992 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
27993 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
27994
27995 if test x$gdb_cv_os_cygwin = xyes; then
27996 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
27997 WIN32LDAPP="-Wl,--subsystem,console"
27998 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
27999 fi
28000 fi
28001 fi
ffc6a242 28002
b4e70030
JB
28003
28004
28005subdirs="$subdirs gdbtk"
3ace7edb 28006
3fc11d3e
JM
28007fi
28008
28009
28010
28011
28012
28013
28014
28015
28016
28017
28018
28019
28020
dd2504ab 28021
b4e70030
JB
28022echo "$as_me:$LINENO: checking for X" >&5
28023echo $ECHO_N "checking for X... $ECHO_C" >&6
bec39cab 28024
c906108c 28025
b4e70030 28026# Check whether --with-x or --without-x was given.
c906108c 28027if test "${with_x+set}" = set; then
b4e70030 28028 withval="$with_x"
c906108c 28029
b4e70030 28030fi;
c906108c
SS
28031# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28032if test "x$with_x" = xno; then
28033 # The user explicitly disabled X.
28034 have_x=disabled
28035else
28036 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
28037 # Both variables are already set.
28038 have_x=yes
28039 else
bec39cab
AC
28040 if test "${ac_cv_have_x+set}" = set; then
28041 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
28042else
28043 # One or both of the vars are not set, and there is no cached value.
bec39cab 28044ac_x_includes=no ac_x_libraries=no
b4e70030 28045rm -fr conftest.dir
bec39cab
AC
28046if mkdir conftest.dir; then
28047 cd conftest.dir
c906108c 28048 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 28049 cat >Imakefile <<'_ACEOF'
c906108c
SS
28050acfindx:
28051 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 28052_ACEOF
b4e70030 28053 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c
SS
28054 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28055 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28056 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28057 for ac_extension in a so sl; do
28058 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
28059 test -f $ac_im_libdir/libX11.$ac_extension; then
28060 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
28061 fi
28062 done
28063 # Screen out bogus values from the imake configuration. They are
28064 # bogus both because they are the default anyway, and because
28065 # using them would break gcc on systems where it needs fixed includes.
bec39cab 28066 case $ac_im_incroot in
b4e70030 28067 /usr/include) ;;
bec39cab 28068 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 28069 esac
bec39cab 28070 case $ac_im_usrlibdir in
c906108c 28071 /usr/lib | /lib) ;;
bec39cab 28072 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
28073 esac
28074 fi
28075 cd ..
b4e70030 28076 rm -fr conftest.dir
c906108c
SS
28077fi
28078
bec39cab
AC
28079# Standard set of common directories for X headers.
28080# Check X11 before X11Rn because it is often a symlink to the current release.
28081ac_x_header_dirs='
28082/usr/X11/include
28083/usr/X11R6/include
28084/usr/X11R5/include
28085/usr/X11R4/include
28086
28087/usr/include/X11
28088/usr/include/X11R6
28089/usr/include/X11R5
28090/usr/include/X11R4
28091
28092/usr/local/X11/include
28093/usr/local/X11R6/include
28094/usr/local/X11R5/include
28095/usr/local/X11R4/include
28096
28097/usr/local/include/X11
28098/usr/local/include/X11R6
28099/usr/local/include/X11R5
28100/usr/local/include/X11R4
28101
28102/usr/X386/include
28103/usr/x386/include
28104/usr/XFree86/include/X11
28105
28106/usr/include
28107/usr/local/include
28108/usr/unsupported/include
28109/usr/athena/include
28110/usr/local/x11r5/include
28111/usr/lpp/Xamples/include
28112
28113/usr/openwin/include
28114/usr/openwin/share/include'
28115
28116if test "$ac_x_includes" = no; then
59f80f10 28117 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 28118 # First, try using that file with no special directory specified.
bec39cab
AC
28119 cat >conftest.$ac_ext <<_ACEOF
28120/* confdefs.h. */
28121_ACEOF
28122cat confdefs.h >>conftest.$ac_ext
28123cat >>conftest.$ac_ext <<_ACEOF
28124/* end confdefs.h. */
59f80f10 28125#include <X11/Intrinsic.h>
bec39cab
AC
28126_ACEOF
28127if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28129 ac_status=$?
28130 grep -v '^ *+' conftest.er1 >conftest.err
28131 rm -f conftest.er1
28132 cat conftest.err >&5
28133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134 (exit $ac_status); } >/dev/null; then
28135 if test -s conftest.err; then
28136 ac_cpp_err=$ac_c_preproc_warn_flag
28137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28138 else
28139 ac_cpp_err=
28140 fi
28141else
28142 ac_cpp_err=yes
28143fi
28144if test -z "$ac_cpp_err"; then
c906108c
SS
28145 # We can compile using X headers with no special include directory.
28146ac_x_includes=
28147else
bec39cab
AC
28148 echo "$as_me: failed program was:" >&5
28149sed 's/^/| /' conftest.$ac_ext >&5
28150
28151 for ac_dir in $ac_x_header_dirs; do
59f80f10 28152 if test -r "$ac_dir/X11/Intrinsic.h"; then
bec39cab
AC
28153 ac_x_includes=$ac_dir
28154 break
28155 fi
28156done
c906108c 28157fi
bec39cab
AC
28158rm -f conftest.err conftest.$ac_ext
28159fi # $ac_x_includes = no
c906108c 28160
bec39cab 28161if test "$ac_x_libraries" = no; then
c906108c 28162 # Check for the libraries.
c906108c
SS
28163 # See if we find them without any special options.
28164 # Don't add to $LIBS permanently.
bec39cab 28165 ac_save_LIBS=$LIBS
4e8d927d 28166 LIBS="-lXt $LIBS"
bec39cab
AC
28167 cat >conftest.$ac_ext <<_ACEOF
28168/* confdefs.h. */
28169_ACEOF
28170cat confdefs.h >>conftest.$ac_ext
28171cat >>conftest.$ac_ext <<_ACEOF
28172/* end confdefs.h. */
59f80f10 28173#include <X11/Intrinsic.h>
bec39cab
AC
28174int
28175main ()
28176{
59f80f10 28177XtMalloc (0)
bec39cab
AC
28178 ;
28179 return 0;
28180}
28181_ACEOF
28182rm -f conftest.$ac_objext conftest$ac_exeext
28183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28184 (eval $ac_link) 2>conftest.er1
28185 ac_status=$?
28186 grep -v '^ *+' conftest.er1 >conftest.err
28187 rm -f conftest.er1
28188 cat conftest.err >&5
28189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190 (exit $ac_status); } &&
b4e70030
JB
28191 { ac_try='test -z "$ac_c_werror_flag"
28192 || test ! -s conftest.err'
bec39cab
AC
28193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28194 (eval $ac_try) 2>&5
28195 ac_status=$?
28196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197 (exit $ac_status); }; } &&
28198 { ac_try='test -s conftest$ac_exeext'
28199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28200 (eval $ac_try) 2>&5
28201 ac_status=$?
28202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203 (exit $ac_status); }; }; then
28204 LIBS=$ac_save_LIBS
c906108c
SS
28205# We can link X programs with no special library path.
28206ac_x_libraries=
28207else
bec39cab
AC
28208 echo "$as_me: failed program was:" >&5
28209sed 's/^/| /' conftest.$ac_ext >&5
28210
b4e70030 28211LIBS=$ac_save_LIBS
bec39cab 28212for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 28213do
bec39cab 28214 # Don't even attempt the hair of trying to link an X program!
c906108c 28215 for ac_extension in a so sl; do
b4e70030 28216 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
28217 ac_x_libraries=$ac_dir
28218 break 2
28219 fi
28220 done
28221done
28222fi
bec39cab
AC
28223rm -f conftest.err conftest.$ac_objext \
28224 conftest$ac_exeext conftest.$ac_ext
28225fi # $ac_x_libraries = no
c906108c 28226
bec39cab 28227if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
28228 # Didn't find X anywhere. Cache the known absence of X.
28229 ac_cv_have_x="have_x=no"
28230else
28231 # Record where we found X for the cache.
28232 ac_cv_have_x="have_x=yes \
bec39cab 28233 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
28234fi
28235fi
bec39cab 28236
c906108c
SS
28237 fi
28238 eval "$ac_cv_have_x"
28239fi # $with_x != no
28240
28241if test "$have_x" != yes; then
b4e70030
JB
28242 echo "$as_me:$LINENO: result: $have_x" >&5
28243echo "${ECHO_T}$have_x" >&6
c906108c
SS
28244 no_x=yes
28245else
28246 # If each of the values was on the command line, it overrides each guess.
28247 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28248 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28249 # Update the cache value to reflect the command line values.
28250 ac_cv_have_x="have_x=yes \
28251 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
b4e70030
JB
28252 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
28253echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
28254fi
28255
28256
9cc52bde
MK
28257# Check whether we should enable the TUI, but only do so if we really
28258# can.
28259if test x"$enable_tui" = xyes; then
28260 if test -d $srcdir/tui; then
28261 if test "$ac_cv_search_waddstr" != no; then
28262 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
28263 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
28264 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
28265 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
28266 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
28267 CONFIG_ALL="${CONFIG_ALL} all-tui"
28268 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
28269 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
28270 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
28271 else
bec39cab
AC
28272 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
28273echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
28274 fi
28275 fi
28276fi
28277
bec39cab 28278# Unlike the sim directory, whether a simulator is linked is controlled by
9b624dbe 28279# presence of a gdb_sim definition in the target configure.tgt entry.
7a292a7a
SS
28280# This code just checks for a few cases where we'd like to ignore those
28281# definitions, even when they're present in the '.mt' file. These cases
28282# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 28283# not part of the source tree.
7a292a7a 28284#
b4e70030 28285# Check whether --enable-sim or --disable-sim was given.
7a292a7a 28286if test "${enable_sim+set}" = set; then
b4e70030
JB
28287 enableval="$enable_sim"
28288 echo "enable_sim = $enable_sim";
7a292a7a
SS
28289 echo "enableval = ${enableval}";
28290 case "${enableval}" in
28291 yes) ignore_sim=false ;;
28292 no) ignore_sim=true ;;
28293 *) ignore_sim=false ;;
28294 esac
28295else
28296 ignore_sim=false
b4e70030 28297fi;
7a292a7a
SS
28298
28299if test ! -d "${srcdir}/../sim"; then
28300 ignore_sim=true
28301fi
28302
9b624dbe
UW
28303SIM=
28304SIM_OBS=
28305if test "${ignore_sim}" = "false"; then
28306 if test x"${gdb_sim}" != x ; then
28307 SIM="${gdb_sim}"
28308 SIM_OBS="remote-sim.o"
60ca704f
SE
28309
28310cat >>confdefs.h <<\_ACEOF
7a292a7a 28311#define WITH_SIM 1
bec39cab 28312_ACEOF
7a292a7a 28313
9b624dbe 28314 fi
7a292a7a
SS
28315fi
28316
28317
28318
c906108c
SS
28319
28320
28321
28322
28323
28324
dfcd3bfb 28325
e56ac5c3
AC
28326
28327
b3a90332
AC
28328
28329
c35f4ffc 28330# List of host floatformats.
bec39cab
AC
28331
28332cat >>confdefs.h <<_ACEOF
c35f4ffc 28333#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 28334_ACEOF
c35f4ffc 28335
bec39cab
AC
28336
28337cat >>confdefs.h <<_ACEOF
c35f4ffc 28338#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
28339_ACEOF
28340
c35f4ffc 28341
bec39cab 28342cat >>confdefs.h <<_ACEOF
c35f4ffc 28343#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 28344_ACEOF
c35f4ffc
AC
28345
28346
c906108c
SS
28347# target_subdir is used by the testsuite to find the target libraries.
28348target_subdir=
28349if test "${host}" != "${target}"; then
28350 target_subdir="${target_alias}/"
28351fi
28352
28353
28354frags=
771b4502 28355if test "${gdb_native}" = "yes"; then
0dad8a66
MK
28356 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
28357 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
28358 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
28359echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
28360 { (exit 1); exit 1; }; }
0dad8a66
MK
28361 fi
28362 frags="$frags $host_makefile_frag"
28363else
28364 host_makefile_frag=/dev/null
c906108c 28365fi
c906108c 28366
c906108c
SS
28367
28368
28369
771b4502 28370if test "${gdb_native}" = "yes"; then
a85f51e7
DJ
28371# We pick this up from the host configuration file (.mh) because we
28372# do not have a native configuration Makefile fragment.
c906108c
SS
28373nativefile=`sed -n '
28374s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
28375' ${host_makefile_frag}`
c906108c
SS
28376fi
28377
28378
b00a8037 28379if test x"${gdb_osabi}" != x ; then
bec39cab
AC
28380
28381cat >>confdefs.h <<_ACEOF
b00a8037 28382#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 28383_ACEOF
b00a8037
DJ
28384
28385fi
28386
8dcde887 28387# Enable multi-ice-gdb-server.
b4e70030 28388# Check whether --enable-multi-ice or --disable-multi-ice was given.
8dcde887 28389if test "${enable_multi_ice+set}" = set; then
b4e70030
JB
28390 enableval="$enable_multi_ice"
28391 case $enableval in
8dcde887
MK
28392 yes | no)
28393 ;;
bec39cab
AC
28394 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
28395echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
28396 { (exit 1); exit 1; }; } ;;
8dcde887 28397 esac
b4e70030 28398fi;
4e8d927d 28399if test "x$enable_multi_ice" = xyes; then
b4e70030
JB
28400
28401
28402subdirs="$subdirs multi-ice"
3ace7edb 28403
a85f51e7
DJ
28404fi
28405
a13e2c95
UW
28406# We only build gdbserver automatically in a native configuration.
28407if test "$gdb_native" = "yes"; then
b4e70030
JB
28408 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
28409echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 28410 if test "x$build_gdbserver" = xyes; then
b4e70030
JB
28411 echo "$as_me:$LINENO: result: yes" >&5
28412echo "${ECHO_T}yes" >&6
28413
28414
28415subdirs="$subdirs gdbserver"
3ace7edb 28416
8dcde887 28417 else
b4e70030
JB
28418 echo "$as_me:$LINENO: result: no" >&5
28419echo "${ECHO_T}no" >&6
8dcde887
MK
28420 fi
28421fi
28422
db985757 28423# If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
2c0fc042 28424# to an empty version.
c906108c
SS
28425
28426files=
28427links=
5a2402b8 28428
c906108c 28429rm -f nm.h
5a2402b8 28430nm_h=""
c906108c 28431if test "${nativefile}" != ""; then
5a2402b8 28432 nm_h=nm.h
0f475e27
AC
28433 case "${nativefile}" in
28434 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
28435 * ) GDB_NM_FILE="${nativefile}"
28436 esac
5a2402b8
AC
28437 files="${files} ${GDB_NM_FILE}"
28438 links="${links} nm.h"
60ca704f
SE
28439
28440cat >>confdefs.h <<_ACEOF
b78960be 28441#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 28442_ACEOF
5a2402b8 28443
c906108c 28444fi
5a2402b8
AC
28445
28446
bec39cab
AC
28447ac_sources="$files"
28448ac_dests="$links"
28449while test -n "$ac_sources"; do
28450 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
28451 set $ac_sources; ac_source=$1; shift; ac_sources=$*
28452 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
28453done
b4e70030 28454 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
28455
28456
c906108c
SS
28457
28458
c906108c 28459
c906108c 28460
bec39cab
AC
28461cat >>confdefs.h <<\_ACEOF
28462#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
28463_ACEOF
c906108c 28464
234b45d4 28465
234b45d4
KB
28466
28467
28468
b4e70030 28469# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4 28470if test "${with_libiconv_prefix+set}" = set; then
b4e70030
JB
28471 withval="$with_libiconv_prefix"
28472
234b45d4
KB
28473 for dir in `echo "$withval" | tr : ' '`; do
28474 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
28475 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
28476 done
234b45d4 28477
b4e70030 28478fi;
234b45d4 28479
b4e70030
JB
28480 echo "$as_me:$LINENO: checking for iconv" >&5
28481echo $ECHO_N "checking for iconv... $ECHO_C" >&6
bec39cab
AC
28482if test "${am_cv_func_iconv+set}" = set; then
28483 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 28484else
bec39cab 28485
234b45d4
KB
28486 am_cv_func_iconv="no, consider installing GNU libiconv"
28487 am_cv_lib_iconv=no
bec39cab
AC
28488 cat >conftest.$ac_ext <<_ACEOF
28489/* confdefs.h. */
28490_ACEOF
28491cat confdefs.h >>conftest.$ac_ext
28492cat >>conftest.$ac_ext <<_ACEOF
28493/* end confdefs.h. */
234b45d4
KB
28494#include <stdlib.h>
28495#include <iconv.h>
bec39cab
AC
28496int
28497main ()
28498{
234b45d4
KB
28499iconv_t cd = iconv_open("","");
28500 iconv(cd,NULL,NULL,NULL,NULL);
28501 iconv_close(cd);
bec39cab
AC
28502 ;
28503 return 0;
28504}
28505_ACEOF
28506rm -f conftest.$ac_objext conftest$ac_exeext
28507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28508 (eval $ac_link) 2>conftest.er1
28509 ac_status=$?
28510 grep -v '^ *+' conftest.er1 >conftest.err
28511 rm -f conftest.er1
28512 cat conftest.err >&5
28513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514 (exit $ac_status); } &&
b4e70030
JB
28515 { ac_try='test -z "$ac_c_werror_flag"
28516 || test ! -s conftest.err'
bec39cab
AC
28517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28518 (eval $ac_try) 2>&5
28519 ac_status=$?
28520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521 (exit $ac_status); }; } &&
28522 { ac_try='test -s conftest$ac_exeext'
28523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28524 (eval $ac_try) 2>&5
28525 ac_status=$?
28526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527 (exit $ac_status); }; }; then
234b45d4
KB
28528 am_cv_func_iconv=yes
28529else
bec39cab
AC
28530 echo "$as_me: failed program was:" >&5
28531sed 's/^/| /' conftest.$ac_ext >&5
28532
234b45d4 28533fi
bec39cab
AC
28534rm -f conftest.err conftest.$ac_objext \
28535 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
28536 if test "$am_cv_func_iconv" != yes; then
28537 am_save_LIBS="$LIBS"
28538 LIBS="$LIBS -liconv"
bec39cab
AC
28539 cat >conftest.$ac_ext <<_ACEOF
28540/* confdefs.h. */
28541_ACEOF
28542cat confdefs.h >>conftest.$ac_ext
28543cat >>conftest.$ac_ext <<_ACEOF
28544/* end confdefs.h. */
234b45d4
KB
28545#include <stdlib.h>
28546#include <iconv.h>
bec39cab
AC
28547int
28548main ()
28549{
234b45d4
KB
28550iconv_t cd = iconv_open("","");
28551 iconv(cd,NULL,NULL,NULL,NULL);
28552 iconv_close(cd);
bec39cab
AC
28553 ;
28554 return 0;
28555}
28556_ACEOF
28557rm -f conftest.$ac_objext conftest$ac_exeext
28558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28559 (eval $ac_link) 2>conftest.er1
28560 ac_status=$?
28561 grep -v '^ *+' conftest.er1 >conftest.err
28562 rm -f conftest.er1
28563 cat conftest.err >&5
28564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565 (exit $ac_status); } &&
b4e70030
JB
28566 { ac_try='test -z "$ac_c_werror_flag"
28567 || test ! -s conftest.err'
bec39cab
AC
28568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28569 (eval $ac_try) 2>&5
28570 ac_status=$?
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); }; } &&
28573 { ac_try='test -s conftest$ac_exeext'
28574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28575 (eval $ac_try) 2>&5
28576 ac_status=$?
28577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578 (exit $ac_status); }; }; then
234b45d4
KB
28579 am_cv_lib_iconv=yes
28580 am_cv_func_iconv=yes
28581else
bec39cab
AC
28582 echo "$as_me: failed program was:" >&5
28583sed 's/^/| /' conftest.$ac_ext >&5
28584
234b45d4 28585fi
bec39cab
AC
28586rm -f conftest.err conftest.$ac_objext \
28587 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
28588 LIBS="$am_save_LIBS"
28589 fi
bec39cab
AC
28590
28591fi
b4e70030
JB
28592echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
28593echo "${ECHO_T}$am_cv_func_iconv" >&6
bec39cab
AC
28594 if test "$am_cv_func_iconv" = yes; then
28595
28596cat >>confdefs.h <<\_ACEOF
28597#define HAVE_ICONV 1
28598_ACEOF
28599
b4e70030
JB
28600 echo "$as_me:$LINENO: checking for iconv declaration" >&5
28601echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
bec39cab
AC
28602 if test "${am_cv_proto_iconv+set}" = set; then
28603 echo $ECHO_N "(cached) $ECHO_C" >&6
28604else
28605
28606 cat >conftest.$ac_ext <<_ACEOF
28607/* confdefs.h. */
28608_ACEOF
28609cat confdefs.h >>conftest.$ac_ext
28610cat >>conftest.$ac_ext <<_ACEOF
28611/* end confdefs.h. */
28612
28613#include <stdlib.h>
28614#include <iconv.h>
28615extern
28616#ifdef __cplusplus
28617"C"
28618#endif
28619#if defined(__STDC__) || defined(__cplusplus)
28620size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
28621#else
28622size_t iconv();
28623#endif
28624
28625int
28626main ()
28627{
28628
28629 ;
28630 return 0;
28631}
28632_ACEOF
28633rm -f conftest.$ac_objext
28634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28635 (eval $ac_compile) 2>conftest.er1
28636 ac_status=$?
28637 grep -v '^ *+' conftest.er1 >conftest.err
28638 rm -f conftest.er1
28639 cat conftest.err >&5
28640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641 (exit $ac_status); } &&
b4e70030
JB
28642 { ac_try='test -z "$ac_c_werror_flag"
28643 || test ! -s conftest.err'
bec39cab
AC
28644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28645 (eval $ac_try) 2>&5
28646 ac_status=$?
28647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28648 (exit $ac_status); }; } &&
28649 { ac_try='test -s conftest.$ac_objext'
28650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28651 (eval $ac_try) 2>&5
28652 ac_status=$?
28653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654 (exit $ac_status); }; }; then
28655 am_cv_proto_iconv_arg1=""
28656else
28657 echo "$as_me: failed program was:" >&5
28658sed 's/^/| /' conftest.$ac_ext >&5
28659
b4e70030 28660am_cv_proto_iconv_arg1="const"
bec39cab
AC
28661fi
28662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28663 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);"
28664fi
28665
28666 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b4e70030 28667 echo "$as_me:$LINENO: result: ${ac_t:-
bec39cab
AC
28668 }$am_cv_proto_iconv" >&5
28669echo "${ECHO_T}${ac_t:-
b4e70030 28670 }$am_cv_proto_iconv" >&6
bec39cab
AC
28671
28672cat >>confdefs.h <<_ACEOF
28673#define ICONV_CONST $am_cv_proto_iconv_arg1
28674_ACEOF
28675
28676 fi
28677 LIBICONV=
28678 if test "$am_cv_lib_iconv" = yes; then
28679 LIBICONV="-liconv"
28680 fi
28681
28682
28683
e28b3332 28684 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
b4e70030 28685 ac_config_commands="$ac_config_commands default"
bec39cab
AC
28686cat >confcache <<\_ACEOF
28687# This file is a shell script that caches the results of configure
28688# tests run on this system so they can be shared between configure
28689# scripts and configure runs, see configure's option --config-cache.
28690# It is not useful on other systems. If it contains results you don't
28691# want to keep, you may remove or edit it.
28692#
28693# config.status only pays attention to the cache file if you give it
28694# the --recheck option to rerun configure.
28695#
28696# `ac_cv_env_foo' variables (set or unset) will be overridden when
28697# loading this file, other *unset* `ac_cv_foo' will be assigned the
28698# following values.
28699
28700_ACEOF
28701
28702# The following way of writing the cache mishandles newlines in values,
28703# but we know of no workaround that is simple, portable, and efficient.
b4e70030 28704# So, don't put newlines in cache variables' values.
bec39cab
AC
28705# Ultrix sh set writes to stderr and can't be redirected directly,
28706# and sets the high bit in the cache file unless we assign to the vars.
b4e70030 28707{
bec39cab 28708 (set) 2>&1 |
b4e70030
JB
28709 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28710 *ac_space=\ *)
bec39cab
AC
28711 # `set' does not quote correctly, so add quotes (double-quote
28712 # substitution turns \\\\ into \\, and sed turns \\ into \).
28713 sed -n \
28714 "s/'/'\\\\''/g;
28715 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b4e70030 28716 ;;
bec39cab
AC
28717 *)
28718 # `set' quotes correctly as required by POSIX, so do not add quotes.
b4e70030
JB
28719 sed -n \
28720 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 28721 ;;
b4e70030
JB
28722 esac;
28723} |
bec39cab
AC
28724 sed '
28725 t clear
b4e70030 28726 : clear
bec39cab
AC
28727 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28728 t end
b4e70030
JB
28729 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28730 : end' >>confcache
bec39cab
AC
28731if diff $cache_file confcache >/dev/null 2>&1; then :; else
28732 if test -w $cache_file; then
b4e70030 28733 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
bec39cab
AC
28734 cat confcache >$cache_file
28735 else
b4e70030 28736 echo "not updating unwritable cache $cache_file"
bec39cab
AC
28737 fi
28738fi
28739rm -f confcache
28740
28741test "x$prefix" = xNONE && prefix=$ac_default_prefix
28742# Let make expand exec_prefix.
28743test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28744
b4e70030
JB
28745# VPATH may cause trouble with some makes, so we remove $(srcdir),
28746# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28747# trailing colons and then remove the whole line if VPATH becomes empty
28748# (actually we leave an empty line to preserve line numbers).
28749if test "x$srcdir" = x.; then
28750 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28751s/:*\$(srcdir):*/:/;
28752s/:*\${srcdir}:*/:/;
28753s/:*@srcdir@:*/:/;
28754s/^\([^=]*=[ ]*\):*/\1/;
28755s/:*$//;
28756s/^[^=]*=[ ]*$//;
28757}'
28758fi
28759
bec39cab
AC
28760DEFS=-DHAVE_CONFIG_H
28761
28762ac_libobjs=
28763ac_ltlibobjs=
28764for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28765 # 1. Remove the extension, and $U if already installed.
b4e70030
JB
28766 ac_i=`echo "$ac_i" |
28767 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28768 # 2. Add them.
28769 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28770 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
bec39cab
AC
28771done
28772LIBOBJS=$ac_libobjs
28773
28774LTLIBOBJS=$ac_ltlibobjs
28775
28776
85981d60
AC
28777if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28778 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28779Usually this means the macro was only invoked conditionally." >&5
28780echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28781Usually this means the macro was only invoked conditionally." >&2;}
28782 { (exit 1); exit 1; }; }
28783fi
783e057b
DJ
28784if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28785 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
28786Usually this means the macro was only invoked conditionally." >&5
28787echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
28788Usually this means the macro was only invoked conditionally." >&2;}
28789 { (exit 1); exit 1; }; }
28790fi
28791
28792 gl_libobjs=
28793 gl_ltlibobjs=
28794 if test -n "$gl_LIBOBJS"; then
28795 # Remove the extension.
28796 sed_drop_objext='s/\.o$//;s/\.obj$//'
28797 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
28798 gl_libobjs="$gl_libobjs $i.$ac_objext"
28799 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
28800 done
28801 fi
28802 gl_LIBOBJS=$gl_libobjs
28803
28804 gl_LTLIBOBJS=$gl_ltlibobjs
28805
28806
28807
28808 gltests_libobjs=
28809 gltests_ltlibobjs=
28810 if test -n "$gltests_LIBOBJS"; then
28811 # Remove the extension.
28812 sed_drop_objext='s/\.o$//;s/\.obj$//'
28813 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
28814 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
28815 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
28816 done
28817 fi
28818 gltests_LIBOBJS=$gltests_libobjs
28819
28820 gltests_LTLIBOBJS=$gltests_ltlibobjs
28821
28822
e28b3332
DJ
28823if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28824 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28825Usually this means the macro was only invoked conditionally." >&5
28826echo "$as_me: error: conditional \"AMDEP\" was never defined.
28827Usually this means the macro was only invoked conditionally." >&2;}
28828 { (exit 1); exit 1; }; }
28829fi
28830if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28831 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28832Usually this means the macro was only invoked conditionally." >&5
28833echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28834Usually this means the macro was only invoked conditionally." >&2;}
28835 { (exit 1); exit 1; }; }
28836fi
bec39cab
AC
28837
28838: ${CONFIG_STATUS=./config.status}
28839ac_clean_files_save=$ac_clean_files
28840ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28841{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28842echo "$as_me: creating $CONFIG_STATUS" >&6;}
28843cat >$CONFIG_STATUS <<_ACEOF
28844#! $SHELL
28845# Generated by $as_me.
28846# Run this file to recreate the current configuration.
28847# Compiler output produced by configure, useful for debugging
28848# configure, is in config.log if it exists.
28849
28850debug=false
28851ac_cs_recheck=false
28852ac_cs_silent=false
28853SHELL=\${CONFIG_SHELL-$SHELL}
28854_ACEOF
28855
28856cat >>$CONFIG_STATUS <<\_ACEOF
28857## --------------------- ##
28858## M4sh Initialization. ##
28859## --------------------- ##
28860
28861# Be Bourne compatible
28862if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28863 emulate sh
28864 NULLCMD=:
28865 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28866 # is contrary to our usage. Disable this feature.
28867 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
28868elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28869 set -o posix
bec39cab
AC
28870fi
28871DUALCASE=1; export DUALCASE # for MKS sh
28872
28873# Support unset when possible.
28874if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28875 as_unset=unset
28876else
28877 as_unset=false
28878fi
28879
28880
28881# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 28882$as_unset ENV MAIL MAILPATH
bec39cab
AC
28883PS1='$ '
28884PS2='> '
28885PS4='+ '
28886
28887# NLS nuisances.
28888for as_var in \
28889 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28890 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28891 LC_TELEPHONE LC_TIME
28892do
28893 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28894 eval $as_var=C; export $as_var
28895 else
b4e70030 28896 $as_unset $as_var
bec39cab
AC
28897 fi
28898done
28899
28900# Required to use basename.
b4e70030 28901if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
28902 as_expr=expr
28903else
28904 as_expr=false
28905fi
28906
b4e70030 28907if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
28908 as_basename=basename
28909else
28910 as_basename=false
28911fi
28912
28913
28914# Name of the executable.
b4e70030 28915as_me=`$as_basename "$0" ||
bec39cab
AC
28916$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28917 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
28918 X"$0" : 'X\(/\)$' \| \
28919 . : '\(.\)' 2>/dev/null ||
bec39cab 28920echo X/"$0" |
b4e70030
JB
28921 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28922 /^X\/\(\/\/\)$/{ s//\1/; q; }
28923 /^X\/\(\/\).*/{ s//\1/; q; }
28924 s/.*/./; q'`
bec39cab 28925
b4e70030
JB
28926
28927# PATH needs CR, and LINENO needs CR and PATH.
28928# Avoid depending upon Character Ranges.
28929as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28930as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28931as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28932as_cr_digits='0123456789'
28933as_cr_alnum=$as_cr_Letters$as_cr_digits
28934
28935# The user is always right.
28936if test "${PATH_SEPARATOR+set}" != set; then
28937 echo "#! /bin/sh" >conf$$.sh
28938 echo "exit 0" >>conf$$.sh
28939 chmod +x conf$$.sh
28940 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28941 PATH_SEPARATOR=';'
28942 else
28943 PATH_SEPARATOR=:
28944 fi
28945 rm -f conf$$.sh
28946fi
bec39cab
AC
28947
28948
b4e70030
JB
28949 as_lineno_1=$LINENO
28950 as_lineno_2=$LINENO
28951 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28952 test "x$as_lineno_1" != "x$as_lineno_2" &&
28953 test "x$as_lineno_3" = "x$as_lineno_2" || {
28954 # Find who we are. Look in the path if we contain no path at all
28955 # relative or not.
28956 case $0 in
28957 *[\\/]* ) as_myself=$0 ;;
28958 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28959for as_dir in $PATH
28960do
28961 IFS=$as_save_IFS
28962 test -z "$as_dir" && as_dir=.
28963 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28964done
bec39cab 28965
b4e70030
JB
28966 ;;
28967 esac
28968 # We did not find ourselves, most probably we were run as `sh COMMAND'
28969 # in which case we are not to be found in the path.
28970 if test "x$as_myself" = x; then
28971 as_myself=$0
28972 fi
28973 if test ! -f "$as_myself"; then
28974 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28975echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28976 { (exit 1); exit 1; }; }
28977 fi
28978 case $CONFIG_SHELL in
28979 '')
28980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28981for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28982do
28983 IFS=$as_save_IFS
28984 test -z "$as_dir" && as_dir=.
28985 for as_base in sh bash ksh sh5; do
28986 case $as_dir in
28987 /*)
28988 if ("$as_dir/$as_base" -c '
bec39cab
AC
28989 as_lineno_1=$LINENO
28990 as_lineno_2=$LINENO
b4e70030 28991 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
bec39cab 28992 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
28993 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
28994 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28995 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28996 CONFIG_SHELL=$as_dir/$as_base
28997 export CONFIG_SHELL
28998 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28999 fi;;
29000 esac
29001 done
29002done
29003;;
29004 esac
bec39cab
AC
29005
29006 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29007 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
29008 # line-number line before each line; the second 'sed' does the real
29009 # work. The second script uses 'N' to pair each line-number line
29010 # with the numbered line, and appends trailing '-' during
29011 # substitution so that $LINENO is not a special case at line end.
bec39cab 29012 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
29013 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29014 sed '=' <$as_myself |
bec39cab
AC
29015 sed '
29016 N
b4e70030
JB
29017 s,$,-,
29018 : loop
29019 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 29020 t loop
b4e70030
JB
29021 s,-$,,
29022 s,^['$as_cr_digits']*\n,,
bec39cab 29023 ' >$as_me.lineno &&
b4e70030
JB
29024 chmod +x $as_me.lineno ||
29025 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29026echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
bec39cab
AC
29027 { (exit 1); exit 1; }; }
29028
29029 # Don't try to exec as it changes $[0], causing all sort of problems
29030 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
29031 # original and so on. Autoconf is especially sensible to this).
29032 . ./$as_me.lineno
bec39cab
AC
29033 # Exit status is that of the last command.
29034 exit
29035}
29036
29037
b4e70030
JB
29038case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29039 *c*,-n*) ECHO_N= ECHO_C='
29040' ECHO_T=' ' ;;
29041 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29042 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
29043esac
29044
b4e70030 29045if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
29046 as_expr=expr
29047else
29048 as_expr=false
29049fi
29050
29051rm -f conf$$ conf$$.exe conf$$.file
29052echo >conf$$.file
29053if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
29054 # We could just check for DJGPP; but this test a) works b) is more generic
29055 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29056 if test -f conf$$.exe; then
29057 # Don't use ln at all; we don't have any links
bec39cab 29058 as_ln_s='cp -p'
b4e70030
JB
29059 else
29060 as_ln_s='ln -s'
29061 fi
bec39cab
AC
29062elif ln conf$$.file conf$$ 2>/dev/null; then
29063 as_ln_s=ln
29064else
29065 as_ln_s='cp -p'
29066fi
b4e70030 29067rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
29068
29069if mkdir -p . 2>/dev/null; then
29070 as_mkdir_p=:
29071else
29072 test -d ./-p && rmdir ./-p
29073 as_mkdir_p=false
29074fi
29075
b4e70030 29076as_executable_p="test -f"
bec39cab
AC
29077
29078# Sed expression to map a string onto a valid CPP name.
29079as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29080
29081# Sed expression to map a string onto a valid variable name.
29082as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29083
29084
b4e70030
JB
29085# IFS
29086# We need space, tab and new line, in precisely that order.
29087as_nl='
29088'
29089IFS=" $as_nl"
29090
29091# CDPATH.
29092$as_unset CDPATH
29093
bec39cab
AC
29094exec 6>&1
29095
b4e70030 29096# Open the log real soon, to keep \$[0] and so on meaningful, and to
bec39cab 29097# report actual input values of CONFIG_FILES etc. instead of their
b4e70030
JB
29098# values after options handling. Logging --version etc. is OK.
29099exec 5>>config.log
29100{
29101 echo
29102 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29103## Running $as_me. ##
29104_ASBOX
29105} >&5
29106cat >&5 <<_CSEOF
29107
bec39cab 29108This file was extended by $as_me, which was
b4e70030 29109generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
29110
29111 CONFIG_FILES = $CONFIG_FILES
29112 CONFIG_HEADERS = $CONFIG_HEADERS
29113 CONFIG_LINKS = $CONFIG_LINKS
29114 CONFIG_COMMANDS = $CONFIG_COMMANDS
29115 $ $0 $@
29116
b4e70030
JB
29117_CSEOF
29118echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29119echo >&5
bec39cab
AC
29120_ACEOF
29121
29122# Files that config.status was made for.
b4e70030
JB
29123if test -n "$ac_config_files"; then
29124 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29125fi
234b45d4 29126
b4e70030
JB
29127if test -n "$ac_config_headers"; then
29128 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29129fi
29130
29131if test -n "$ac_config_links"; then
29132 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29133fi
29134
29135if test -n "$ac_config_commands"; then
29136 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29137fi
234b45d4 29138
bec39cab 29139cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030 29140
bec39cab
AC
29141ac_cs_usage="\
29142\`$as_me' instantiates files from templates according to the
29143current configuration.
234b45d4 29144
bec39cab 29145Usage: $0 [OPTIONS] [FILE]...
234b45d4 29146
bec39cab
AC
29147 -h, --help print this help, then exit
29148 -V, --version print version number, then exit
29149 -q, --quiet do not print progress messages
29150 -d, --debug don't remove temporary files
29151 --recheck update $as_me by reconfiguring in the same conditions
29152 --file=FILE[:TEMPLATE]
29153 instantiate the configuration file FILE
29154 --header=FILE[:TEMPLATE]
29155 instantiate the configuration header FILE
234b45d4 29156
bec39cab
AC
29157Configuration files:
29158$config_files
234b45d4 29159
bec39cab
AC
29160Configuration headers:
29161$config_headers
234b45d4 29162
bec39cab
AC
29163Configuration links:
29164$config_links
234b45d4 29165
bec39cab
AC
29166Configuration commands:
29167$config_commands
29168
29169Report bugs to <bug-autoconf@gnu.org>."
4e8d927d 29170_ACEOF
b4e70030 29171
bec39cab
AC
29172cat >>$CONFIG_STATUS <<_ACEOF
29173ac_cs_version="\\
29174config.status
b4e70030 29175configured by $0, generated by GNU Autoconf 2.59,
bec39cab
AC
29176 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29177
b4e70030 29178Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
29179This config.status script is free software; the Free Software Foundation
29180gives unlimited permission to copy, distribute and modify it."
b4e70030
JB
29181srcdir=$srcdir
29182INSTALL="$INSTALL"
bec39cab
AC
29183_ACEOF
29184
29185cat >>$CONFIG_STATUS <<\_ACEOF
29186# If no file are specified by the user, then we need to provide default
29187# value. By we need to know if files were specified by the user.
29188ac_need_defaults=:
29189while test $# != 0
29190do
29191 case $1 in
29192 --*=*)
b4e70030
JB
29193 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29194 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
bec39cab 29195 ac_shift=:
c906108c 29196 ;;
b4e70030 29197 -*)
bec39cab
AC
29198 ac_option=$1
29199 ac_optarg=$2
29200 ac_shift=shift
c906108c 29201 ;;
b4e70030
JB
29202 *) # This is not an option, so the user has probably given explicit
29203 # arguments.
29204 ac_option=$1
29205 ac_need_defaults=false;;
bec39cab 29206 esac
c906108c 29207
bec39cab
AC
29208 case $ac_option in
29209 # Handling of the options.
b4e70030
JB
29210_ACEOF
29211cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
29212 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29213 ac_cs_recheck=: ;;
b4e70030
JB
29214 --version | --vers* | -V )
29215 echo "$ac_cs_version"; exit 0 ;;
29216 --he | --h)
29217 # Conflict between --help and --header
29218 { { echo "$as_me:$LINENO: error: ambiguous option: $1
29219Try \`$0 --help' for more information." >&5
29220echo "$as_me: error: ambiguous option: $1
29221Try \`$0 --help' for more information." >&2;}
29222 { (exit 1); exit 1; }; };;
29223 --help | --hel | -h )
29224 echo "$ac_cs_usage"; exit 0 ;;
29225 --debug | --d* | -d )
bec39cab
AC
29226 debug=: ;;
29227 --file | --fil | --fi | --f )
29228 $ac_shift
29229 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29230 ac_need_defaults=false;;
29231 --header | --heade | --head | --hea )
29232 $ac_shift
29233 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29234 ac_need_defaults=false;;
29235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29236 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29237 ac_cs_silent=: ;;
c906108c 29238
bec39cab 29239 # This is an error.
b4e70030
JB
29240 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29241Try \`$0 --help' for more information." >&5
29242echo "$as_me: error: unrecognized option: $1
29243Try \`$0 --help' for more information." >&2;}
bec39cab 29244 { (exit 1); exit 1; }; } ;;
c906108c 29245
b4e70030 29246 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 29247
bec39cab
AC
29248 esac
29249 shift
29250done
c906108c 29251
bec39cab 29252ac_configure_extra_args=
c906108c 29253
bec39cab
AC
29254if $ac_cs_silent; then
29255 exec 6>/dev/null
29256 ac_configure_extra_args="$ac_configure_extra_args --silent"
29257fi
c906108c 29258
bec39cab
AC
29259_ACEOF
29260cat >>$CONFIG_STATUS <<_ACEOF
29261if \$ac_cs_recheck; then
b4e70030
JB
29262 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29263 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab
AC
29264fi
29265
29266_ACEOF
29267
29268cat >>$CONFIG_STATUS <<_ACEOF
c906108c 29269#
b4e70030 29270# INIT-COMMANDS section.
c906108c 29271#
c906108c 29272
e28b3332 29273AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
b4e70030 29274
4e8d927d
DJ
29275GCC="$GCC"
29276CC="$CC"
29277acx_cv_header_stdint="$acx_cv_header_stdint"
29278acx_cv_type_int8_t="$acx_cv_type_int8_t"
29279acx_cv_type_int16_t="$acx_cv_type_int16_t"
29280acx_cv_type_int32_t="$acx_cv_type_int32_t"
29281acx_cv_type_int64_t="$acx_cv_type_int64_t"
29282acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
29283ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
29284ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
29285ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
29286ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
29287ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
29288ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
29289ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
29290ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
29291
bec39cab
AC
29292
29293gdb_host_cpu=$gdb_host_cpu
bec39cab
AC
29294nativefile=$nativefile
29295
29296
29297_ACEOF
29298
4e8d927d 29299
b4e70030
JB
29300
29301cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 29302for ac_config_target in $ac_config_targets
c906108c 29303do
b4e70030
JB
29304 case "$ac_config_target" in
29305 # Handling of arguments.
29306 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29307 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
e28b3332 29308 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
b4e70030 29309 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
e28b3332 29310 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
b4e70030
JB
29311 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
29312 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29313 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
bec39cab
AC
29314 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29315echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29316 { (exit 1); exit 1; }; };;
c906108c
SS
29317 esac
29318done
29319
bec39cab
AC
29320# If the user did not use the arguments to specify the items to instantiate,
29321# then the envvar interface is used. Set only those that are not.
29322# We use the long form for the default assignment because of an extremely
29323# bizarre bug on SunOS 4.1.3.
29324if $ac_need_defaults; then
29325 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29326 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29327 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29328 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29329fi
29330
b4e70030
JB
29331# Have a temporary directory for convenience. Make it in the build tree
29332# simply because there is no reason to put it here, and in addition,
29333# creating and moving files from /tmp can sometimes cause problems.
29334# Create a temporary directory, and hook for its removal unless debugging.
29335$debug ||
29336{
29337 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29338 trap '{ (exit 1); exit 1; }' 1 2 13 15
29339}
4e8d927d 29340
b4e70030 29341# Create a (secure) tmp directory for tmp files.
4e8d927d 29342
b4e70030
JB
29343{
29344 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29345 test -n "$tmp" && test -d "$tmp"
29346} ||
29347{
29348 tmp=./confstat$$-$RANDOM
29349 (umask 077 && mkdir $tmp)
29350} ||
29351{
29352 echo "$me: cannot create a temporary directory in ." >&2
29353 { (exit 1); exit 1; }
29354}
4e8d927d 29355
b4e70030 29356_ACEOF
4e8d927d 29357
b4e70030 29358cat >>$CONFIG_STATUS <<_ACEOF
4e8d927d 29359
b4e70030
JB
29360#
29361# CONFIG_FILES section.
29362#
4e8d927d 29363
b4e70030
JB
29364# No need to generate the scripts if there are no CONFIG_FILES.
29365# This happens for instance when ./config.status config.h
29366if test -n "\$CONFIG_FILES"; then
29367 # Protect against being on the right side of a sed subst in config.status.
29368 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29369 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29370s,@SHELL@,$SHELL,;t t
29371s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29372s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29373s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29374s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29375s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29376s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29377s,@exec_prefix@,$exec_prefix,;t t
29378s,@prefix@,$prefix,;t t
29379s,@program_transform_name@,$program_transform_name,;t t
29380s,@bindir@,$bindir,;t t
29381s,@sbindir@,$sbindir,;t t
29382s,@libexecdir@,$libexecdir,;t t
29383s,@datadir@,$datadir,;t t
29384s,@sysconfdir@,$sysconfdir,;t t
29385s,@sharedstatedir@,$sharedstatedir,;t t
29386s,@localstatedir@,$localstatedir,;t t
29387s,@libdir@,$libdir,;t t
29388s,@includedir@,$includedir,;t t
29389s,@oldincludedir@,$oldincludedir,;t t
29390s,@infodir@,$infodir,;t t
29391s,@mandir@,$mandir,;t t
29392s,@build_alias@,$build_alias,;t t
29393s,@host_alias@,$host_alias,;t t
29394s,@target_alias@,$target_alias,;t t
29395s,@DEFS@,$DEFS,;t t
29396s,@ECHO_C@,$ECHO_C,;t t
29397s,@ECHO_N@,$ECHO_N,;t t
29398s,@ECHO_T@,$ECHO_T,;t t
29399s,@LIBS@,$LIBS,;t t
29400s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29401s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29402s,@MAINT@,$MAINT,;t t
29403s,@CC@,$CC,;t t
29404s,@CFLAGS@,$CFLAGS,;t t
29405s,@LDFLAGS@,$LDFLAGS,;t t
29406s,@CPPFLAGS@,$CPPFLAGS,;t t
29407s,@ac_ct_CC@,$ac_ct_CC,;t t
29408s,@EXEEXT@,$EXEEXT,;t t
29409s,@OBJEXT@,$OBJEXT,;t t
29410s,@CPP@,$CPP,;t t
29411s,@EGREP@,$EGREP,;t t
783e057b
DJ
29412s,@RANLIB@,$RANLIB,;t t
29413s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
b4e70030
JB
29414s,@build@,$build,;t t
29415s,@build_cpu@,$build_cpu,;t t
29416s,@build_vendor@,$build_vendor,;t t
29417s,@build_os@,$build_os,;t t
29418s,@host@,$host,;t t
29419s,@host_cpu@,$host_cpu,;t t
29420s,@host_vendor@,$host_vendor,;t t
29421s,@host_os@,$host_os,;t t
29422s,@target@,$target,;t t
29423s,@target_cpu@,$target_cpu,;t t
29424s,@target_vendor@,$target_vendor,;t t
29425s,@target_os@,$target_os,;t t
b4e70030 29426s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
29427s,@LIBINTL@,$LIBINTL,;t t
29428s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
29429s,@INCINTL@,$INCINTL,;t t
b4e70030 29430s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
29431s,@GMSGFMT@,$GMSGFMT,;t t
29432s,@POSUB@,$POSUB,;t t
b4e70030 29433s,@CATALOGS@,$CATALOGS,;t t
b4e70030 29434s,@DATADIRNAME@,$DATADIRNAME,;t t
b4e70030 29435s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
29436s,@GENCAT@,$GENCAT,;t t
29437s,@CATOBJEXT@,$CATOBJEXT,;t t
b4e70030 29438s,@localedir@,$localedir,;t t
783e057b
DJ
29439s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
29440s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
29441s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
29442s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
29443s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
29444s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
29445s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
29446s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
29447s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
29448s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
29449s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
29450s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
29451s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
29452s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
29453s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
29454s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
29455s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
29456s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
29457s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
29458s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
29459s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
29460s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
29461s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
29462s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
29463s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
29464s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
29465s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
29466s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
29467s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
29468s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
29469s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
29470s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
29471s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
29472s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
29473s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
29474s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
29475s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
29476s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
29477s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
29478s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
29479s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
29480s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
29481s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
29482s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
29483s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
29484s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
29485s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
29486s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
29487s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
29488s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
29489s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
29490s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
29491s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
29492s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
29493s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
29494s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
29495s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
29496s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
29497s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
29498s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
29499s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
29500s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
29501s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
29502s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
29503s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
29504s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
29505s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
29506s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
29507s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
29508s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
29509s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
29510s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
29511s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
29512s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
29513s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
29514s,@STDINT_H@,$STDINT_H,;t t
29515s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
29516s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
29517s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
29518s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
29519s,@WCHAR_H@,$WCHAR_H,;t t
29520s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
29521s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
29522s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
29523s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
b4e70030 29524s,@PACKAGE@,$PACKAGE,;t t
b4e70030
JB
29525s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29526s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29527s,@INSTALL_DATA@,$INSTALL_DATA,;t t
e28b3332
DJ
29528s,@CYGPATH_W@,$CYGPATH_W,;t t
29529s,@VERSION@,$VERSION,;t t
29530s,@ACLOCAL@,$ACLOCAL,;t t
29531s,@AUTOCONF@,$AUTOCONF,;t t
29532s,@AUTOMAKE@,$AUTOMAKE,;t t
29533s,@AUTOHEADER@,$AUTOHEADER,;t t
29534s,@MAKEINFO@,$MAKEINFO,;t t
29535s,@install_sh@,$install_sh,;t t
29536s,@STRIP@,$STRIP,;t t
29537s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29538s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29539s,@mkdir_p@,$mkdir_p,;t t
29540s,@AWK@,$AWK,;t t
29541s,@SET_MAKE@,$SET_MAKE,;t t
29542s,@am__leading_dot@,$am__leading_dot,;t t
29543s,@AMTAR@,$AMTAR,;t t
29544s,@am__tar@,$am__tar,;t t
29545s,@am__untar@,$am__untar,;t t
29546s,@DEPDIR@,$DEPDIR,;t t
29547s,@am__include@,$am__include,;t t
29548s,@am__quote@,$am__quote,;t t
29549s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29550s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29551s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29552s,@CCDEPMODE@,$CCDEPMODE,;t t
29553s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29554s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29555s,@subdirs@,$subdirs,;t t
29556s,@TARGET_OBS@,$TARGET_OBS,;t t
b4e70030
JB
29557s,@LN_S@,$LN_S,;t t
29558s,@YACC@,$YACC,;t t
29559s,@AR@,$AR,;t t
29560s,@ac_ct_AR@,$ac_ct_AR,;t t
29561s,@DLLTOOL@,$DLLTOOL,;t t
29562s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
29563s,@WINDRES@,$WINDRES,;t t
29564s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
29565s,@MIG@,$MIG,;t t
29566s,@ac_ct_MIG@,$ac_ct_MIG,;t t
6a30b0a5
AS
29567s,@READLINE@,$READLINE,;t t
29568s,@READLINE_DEPS@,$READLINE_DEPS,;t t
29569s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
3841debe
DJ
29570s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
29571s,@LIBEXPAT@,$LIBEXPAT,;t t
29572s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
20e95c23 29573s,@ALLOCA@,$ALLOCA,;t t
b4e70030
JB
29574s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
29575s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
29576s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
29577s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
29578s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
29579s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
29580s,@WIN32LIBS@,$WIN32LIBS,;t t
29581s,@LIBGUI@,$LIBGUI,;t t
29582s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
29583s,@WIN32LDAPP@,$WIN32LDAPP,;t t
29584s,@TCL_VERSION@,$TCL_VERSION,;t t
29585s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
29586s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
29587s,@TCL_CC@,$TCL_CC,;t t
29588s,@TCL_DEFS@,$TCL_DEFS,;t t
29589s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
29590s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
29591s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
29592s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
29593s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
29594s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
29595s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
29596s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
29597s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
29598s,@TCL_RANLIB@,$TCL_RANLIB,;t t
29599s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
29600s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
29601s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
29602s,@TK_VERSION@,$TK_VERSION,;t t
29603s,@TK_DEFS@,$TK_DEFS,;t t
29604s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
29605s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
29606s,@TK_XLIBSW@,$TK_XLIBSW,;t t
29607s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
29608s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
29609s,@TCLHDIR@,$TCLHDIR,;t t
29610s,@TKHDIR@,$TKHDIR,;t t
29611s,@ITCLHDIR@,$ITCLHDIR,;t t
29612s,@ITKHDIR@,$ITKHDIR,;t t
29613s,@ITCL_VERSION@,$ITCL_VERSION,;t t
29614s,@ITCL_DEFS@,$ITCL_DEFS,;t t
29615s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
29616s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
29617s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
29618s,@ITK_VERSION@,$ITK_VERSION,;t t
29619s,@ITK_DEFS@,$ITK_DEFS,;t t
29620s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
29621s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
29622s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
29623s,@X_CFLAGS@,$X_CFLAGS,;t t
29624s,@X_LDFLAGS@,$X_LDFLAGS,;t t
29625s,@X_LIBS@,$X_LIBS,;t t
29626s,@TCL_DEPS@,$TCL_DEPS,;t t
29627s,@TK_DEPS@,$TK_DEPS,;t t
29628s,@ITCLLIB@,$ITCLLIB,;t t
29629s,@ITCL_DEPS@,$ITCL_DEPS,;t t
29630s,@ITKLIB@,$ITKLIB,;t t
29631s,@ITK_DEPS@,$ITK_DEPS,;t t
29632s,@GDBTKLIBS@,$GDBTKLIBS,;t t
29633s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
29634s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
9b624dbe
UW
29635s,@SIM@,$SIM,;t t
29636s,@SIM_OBS@,$SIM_OBS,;t t
b4e70030
JB
29637s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
29638s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
29639s,@CONFIG_OBS@,$CONFIG_OBS,;t t
29640s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
29641s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
29642s,@CONFIG_ALL@,$CONFIG_ALL,;t t
29643s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
29644s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
29645s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
29646s,@target_subdir@,$target_subdir,;t t
29647s,@frags@,$frags,;t t
b4e70030
JB
29648s,@nm_h@,$nm_h,;t t
29649s,@LIBICONV@,$LIBICONV,;t t
29650s,@LIBOBJS@,$LIBOBJS,;t t
29651s,@LTLIBOBJS@,$LTLIBOBJS,;t t
783e057b
DJ
29652s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
29653s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
29654s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
29655s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
b4e70030
JB
29656/@host_makefile_frag@/r $host_makefile_frag
29657s,@host_makefile_frag@,,;t t
b4e70030
JB
29658CEOF
29659
29660_ACEOF
29661
29662 cat >>$CONFIG_STATUS <<\_ACEOF
29663 # Split the substitutions into bite-sized pieces for seds with
29664 # small command number limits, like on Digital OSF/1 and HP-UX.
29665 ac_max_sed_lines=48
29666 ac_sed_frag=1 # Number of current file.
29667 ac_beg=1 # First line for current file.
29668 ac_end=$ac_max_sed_lines # Line after last line for current file.
29669 ac_more_lines=:
29670 ac_sed_cmds=
29671 while $ac_more_lines; do
29672 if test $ac_beg -gt 1; then
29673 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29674 else
29675 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4e8d927d 29676 fi
b4e70030
JB
29677 if test ! -s $tmp/subs.frag; then
29678 ac_more_lines=false
29679 else
29680 # The purpose of the label and of the branching condition is to
29681 # speed up the sed processing (if there are no `@' at all, there
29682 # is no need to browse any of the substitutions).
29683 # These are the two extra sed commands mentioned above.
29684 (echo ':t
29685 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29686 if test -z "$ac_sed_cmds"; then
29687 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29688 else
29689 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29690 fi
29691 ac_sed_frag=`expr $ac_sed_frag + 1`
29692 ac_beg=$ac_end
29693 ac_end=`expr $ac_end + $ac_max_sed_lines`
29694 fi
29695 done
29696 if test -z "$ac_sed_cmds"; then
29697 ac_sed_cmds=cat
29698 fi
29699fi # test -n "$CONFIG_FILES"
4e8d927d 29700
b4e70030
JB
29701_ACEOF
29702cat >>$CONFIG_STATUS <<\_ACEOF
29703for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29704 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29705 case $ac_file in
29706 - | *:- | *:-:* ) # input from stdin
29707 cat >$tmp/stdin
29708 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29709 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29710 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29711 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29712 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
29713 esac
29714
b4e70030
JB
29715 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29716 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
bec39cab
AC
29717$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29718 X"$ac_file" : 'X\(//\)[^/]' \| \
29719 X"$ac_file" : 'X\(//\)$' \| \
b4e70030
JB
29720 X"$ac_file" : 'X\(/\)' \| \
29721 . : '\(.\)' 2>/dev/null ||
bec39cab 29722echo X"$ac_file" |
b4e70030
JB
29723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29724 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29725 /^X\(\/\/\)$/{ s//\1/; q; }
29726 /^X\(\/\).*/{ s//\1/; q; }
29727 s/.*/./; q'`
29728 { if $as_mkdir_p; then
29729 mkdir -p "$ac_dir"
29730 else
29731 as_dir="$ac_dir"
bec39cab 29732 as_dirs=
b4e70030
JB
29733 while test ! -d "$as_dir"; do
29734 as_dirs="$as_dir $as_dirs"
29735 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
29736$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29737 X"$as_dir" : 'X\(//\)[^/]' \| \
29738 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
29739 X"$as_dir" : 'X\(/\)' \| \
29740 . : '\(.\)' 2>/dev/null ||
bec39cab 29741echo X"$as_dir" |
b4e70030
JB
29742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29743 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29744 /^X\(\/\/\)$/{ s//\1/; q; }
29745 /^X\(\/\).*/{ s//\1/; q; }
29746 s/.*/./; q'`
bec39cab 29747 done
b4e70030
JB
29748 test ! -n "$as_dirs" || mkdir $as_dirs
29749 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29750echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 29751 { (exit 1); exit 1; }; }; }
b4e70030 29752
bec39cab
AC
29753 ac_builddir=.
29754
b4e70030 29755if test "$ac_dir" != .; then
bec39cab 29756 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
29757 # A "../" for each directory in $ac_dir_suffix.
29758 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29759else
29760 ac_dir_suffix= ac_top_builddir=
29761fi
bec39cab
AC
29762
29763case $srcdir in
b4e70030 29764 .) # No --srcdir option. We are building in place.
bec39cab 29765 ac_srcdir=.
b4e70030
JB
29766 if test -z "$ac_top_builddir"; then
29767 ac_top_srcdir=.
29768 else
29769 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29770 fi ;;
29771 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 29772 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
29773 ac_top_srcdir=$srcdir ;;
29774 *) # Relative path.
29775 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29776 ac_top_srcdir=$ac_top_builddir$srcdir ;;
bec39cab
AC
29777esac
29778
b4e70030
JB
29779# Do not use `cd foo && pwd` to compute absolute paths, because
29780# the directories may not exist.
29781case `pwd` in
29782.) ac_abs_builddir="$ac_dir";;
29783*)
29784 case "$ac_dir" in
29785 .) ac_abs_builddir=`pwd`;;
29786 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29787 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29788 esac;;
29789esac
29790case $ac_abs_builddir in
29791.) ac_abs_top_builddir=${ac_top_builddir}.;;
29792*)
29793 case ${ac_top_builddir}. in
29794 .) ac_abs_top_builddir=$ac_abs_builddir;;
29795 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29796 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29797 esac;;
29798esac
29799case $ac_abs_builddir in
29800.) ac_abs_srcdir=$ac_srcdir;;
29801*)
29802 case $ac_srcdir in
29803 .) ac_abs_srcdir=$ac_abs_builddir;;
29804 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29805 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29806 esac;;
29807esac
29808case $ac_abs_builddir in
29809.) ac_abs_top_srcdir=$ac_top_srcdir;;
29810*)
29811 case $ac_top_srcdir in
29812 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29813 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29814 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29815 esac;;
29816esac
c906108c 29817
c906108c 29818
bec39cab
AC
29819 case $INSTALL in
29820 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
b4e70030 29821 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c 29822 esac
121ce6e5 29823
b4e70030
JB
29824 if test x"$ac_file" != x-; then
29825 { echo "$as_me:$LINENO: creating $ac_file" >&5
29826echo "$as_me: creating $ac_file" >&6;}
29827 rm -f "$ac_file"
29828 fi
29829 # Let's still pretend it is `configure' which instantiates (i.e., don't
29830 # use $as_me), people would be surprised to read:
29831 # /* config.h. Generated by config.status. */
29832 if test x"$ac_file" = x-; then
29833 configure_input=
29834 else
29835 configure_input="$ac_file. "
29836 fi
29837 configure_input=$configure_input"Generated from `echo $ac_file_in |
29838 sed 's,.*/,,'` by configure."
29839
29840 # First look for the input files in the build tree, otherwise in the
29841 # src tree.
29842 ac_file_inputs=`IFS=:
29843 for f in $ac_file_in; do
29844 case $f in
29845 -) echo $tmp/stdin ;;
29846 [\\/$]*)
29847 # Absolute (can't be DOS-style, as IFS=:)
29848 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29849echo "$as_me: error: cannot find input file: $f" >&2;}
29850 { (exit 1); exit 1; }; }
29851 echo "$f";;
29852 *) # Relative
29853 if test -f "$f"; then
29854 # Build tree
29855 echo "$f"
29856 elif test -f "$srcdir/$f"; then
29857 # Source tree
29858 echo "$srcdir/$f"
29859 else
29860 # /dev/null tree
29861 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29862echo "$as_me: error: cannot find input file: $f" >&2;}
29863 { (exit 1); exit 1; }; }
29864 fi;;
29865 esac
29866 done` || { (exit 1); exit 1; }
4e8d927d 29867_ACEOF
bec39cab
AC
29868cat >>$CONFIG_STATUS <<_ACEOF
29869 sed "$ac_vpsub
29870$extrasub
29871_ACEOF
29872cat >>$CONFIG_STATUS <<\_ACEOF
29873:t
29874/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b4e70030
JB
29875s,@configure_input@,$configure_input,;t t
29876s,@srcdir@,$ac_srcdir,;t t
29877s,@abs_srcdir@,$ac_abs_srcdir,;t t
29878s,@top_srcdir@,$ac_top_srcdir,;t t
29879s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29880s,@builddir@,$ac_builddir,;t t
29881s,@abs_builddir@,$ac_abs_builddir,;t t
29882s,@top_builddir@,$ac_top_builddir,;t t
29883s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29884s,@INSTALL@,$ac_INSTALL,;t t
29885" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29886 rm -f $tmp/stdin
29887 if test x"$ac_file" != x-; then
29888 mv $tmp/out $ac_file
29889 else
29890 cat $tmp/out
29891 rm -f $tmp/out
29892 fi
29893
29894done
29895_ACEOF
29896cat >>$CONFIG_STATUS <<\_ACEOF
29897
29898#
29899# CONFIG_HEADER section.
29900#
29901
29902# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29903# NAME is the cpp macro being defined and VALUE is the value it is being given.
29904#
29905# ac_d sets the value in "#define NAME VALUE" lines.
29906ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
29907ac_dB='[ ].*$,\1#\2'
29908ac_dC=' '
29909ac_dD=',;t'
29910# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29911ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29912ac_uB='$,\1#\2define\3'
29913ac_uC=' '
29914ac_uD=',;t'
29915
29916for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29917 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab 29918 case $ac_file in
b4e70030
JB
29919 - | *:- | *:-:* ) # input from stdin
29920 cat >$tmp/stdin
29921 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29922 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29923 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29924 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29925 * ) ac_file_in=$ac_file.in ;;
c906108c 29926 esac
b4e70030
JB
29927
29928 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29929echo "$as_me: creating $ac_file" >&6;}
29930
29931 # First look for the input files in the build tree, otherwise in the
29932 # src tree.
29933 ac_file_inputs=`IFS=:
29934 for f in $ac_file_in; do
29935 case $f in
29936 -) echo $tmp/stdin ;;
29937 [\\/$]*)
29938 # Absolute (can't be DOS-style, as IFS=:)
29939 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29940echo "$as_me: error: cannot find input file: $f" >&2;}
29941 { (exit 1); exit 1; }; }
29942 # Do quote $f, to prevent DOS paths from being IFS'd.
29943 echo "$f";;
29944 *) # Relative
29945 if test -f "$f"; then
29946 # Build tree
29947 echo "$f"
29948 elif test -f "$srcdir/$f"; then
29949 # Source tree
29950 echo "$srcdir/$f"
29951 else
29952 # /dev/null tree
29953 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29954echo "$as_me: error: cannot find input file: $f" >&2;}
29955 { (exit 1); exit 1; }; }
29956 fi;;
29957 esac
29958 done` || { (exit 1); exit 1; }
29959 # Remove the trailing spaces.
29960 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
29961
29962_ACEOF
29963
29964# Transform confdefs.h into two sed scripts, `conftest.defines' and
29965# `conftest.undefs', that substitutes the proper values into
29966# config.h.in to produce config.h. The first handles `#define'
29967# templates, and the second `#undef' templates.
29968# And first: Protect against being on the right side of a sed subst in
29969# config.status. Protect against being in an unquoted here document
29970# in config.status.
29971rm -f conftest.defines conftest.undefs
29972# Using a here document instead of a string reduces the quoting nightmare.
29973# Putting comments in sed scripts is not portable.
29974#
29975# `end' is used to avoid that the second main sed command (meant for
29976# 0-ary CPP macros) applies to n-ary macro definitions.
29977# See the Autoconf documentation for `clear'.
29978cat >confdef2sed.sed <<\_ACEOF
29979s/[\\&,]/\\&/g
29980s,[\\$`],\\&,g
29981t clear
29982: clear
29983s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29984t end
29985s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29986: end
29987_ACEOF
29988# If some macros were called several times there might be several times
29989# the same #defines, which is useless. Nevertheless, we may not want to
29990# sort them, since we want the *last* AC-DEFINE to be honored.
29991uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
29992sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
29993rm -f confdef2sed.sed
29994
29995# This sed command replaces #undef with comments. This is necessary, for
c906108c
SS
29996# example, in the case of _POSIX_SOURCE, which is predefined and required
29997# on some systems where configure will not decide to define it.
b4e70030
JB
29998cat >>conftest.undefs <<\_ACEOF
29999s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30000_ACEOF
30001
30002# Break up conftest.defines because some shells have a limit on the size
30003# of here documents, and old seds have small limits too (100 cmds).
30004echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30005echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30006echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30007echo ' :' >>$CONFIG_STATUS
30008rm -f conftest.tail
30009while grep . conftest.defines >/dev/null
bec39cab 30010do
b4e70030
JB
30011 # Write a limited-size here document to $tmp/defines.sed.
30012 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30013 # Speed up: don't consider the non `#define' lines.
30014 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30015 # Work around the forget-to-reset-the-flag bug.
30016 echo 't clr' >>$CONFIG_STATUS
30017 echo ': clr' >>$CONFIG_STATUS
30018 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 30019 echo 'CEOF
b4e70030
JB
30020 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30021 rm -f $tmp/in
30022 mv $tmp/out $tmp/in
30023' >>$CONFIG_STATUS
30024 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
bec39cab
AC
30025 rm -f conftest.defines
30026 mv conftest.tail conftest.defines
30027done
b4e70030
JB
30028rm -f conftest.defines
30029echo ' fi # grep' >>$CONFIG_STATUS
30030echo >>$CONFIG_STATUS
30031
30032# Break up conftest.undefs because some shells have a limit on the size
30033# of here documents, and old seds have small limits too (100 cmds).
30034echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30035rm -f conftest.tail
30036while grep . conftest.undefs >/dev/null
30037do
30038 # Write a limited-size here document to $tmp/undefs.sed.
30039 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30040 # Speed up: don't consider the non `#undef'
30041 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30042 # Work around the forget-to-reset-the-flag bug.
30043 echo 't clr' >>$CONFIG_STATUS
30044 echo ': clr' >>$CONFIG_STATUS
30045 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30046 echo 'CEOF
30047 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30048 rm -f $tmp/in
30049 mv $tmp/out $tmp/in
30050' >>$CONFIG_STATUS
30051 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30052 rm -f conftest.undefs
30053 mv conftest.tail conftest.undefs
30054done
30055rm -f conftest.undefs
bec39cab
AC
30056
30057cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030
JB
30058 # Let's still pretend it is `configure' which instantiates (i.e., don't
30059 # use $as_me), people would be surprised to read:
30060 # /* config.h. Generated by config.status. */
30061 if test x"$ac_file" = x-; then
30062 echo "/* Generated by configure. */" >$tmp/config.h
30063 else
30064 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30065 fi
30066 cat $tmp/in >>$tmp/config.h
30067 rm -f $tmp/in
bec39cab 30068 if test x"$ac_file" != x-; then
b4e70030 30069 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
bec39cab
AC
30070 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30071echo "$as_me: $ac_file is unchanged" >&6;}
30072 else
b4e70030
JB
30073 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30074$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30075 X"$ac_file" : 'X\(//\)[^/]' \| \
30076 X"$ac_file" : 'X\(//\)$' \| \
30077 X"$ac_file" : 'X\(/\)' \| \
30078 . : '\(.\)' 2>/dev/null ||
30079echo X"$ac_file" |
30080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30081 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30082 /^X\(\/\/\)$/{ s//\1/; q; }
30083 /^X\(\/\).*/{ s//\1/; q; }
30084 s/.*/./; q'`
30085 { if $as_mkdir_p; then
30086 mkdir -p "$ac_dir"
30087 else
30088 as_dir="$ac_dir"
30089 as_dirs=
30090 while test ! -d "$as_dir"; do
30091 as_dirs="$as_dir $as_dirs"
30092 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30093$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30094 X"$as_dir" : 'X\(//\)[^/]' \| \
30095 X"$as_dir" : 'X\(//\)$' \| \
30096 X"$as_dir" : 'X\(/\)' \| \
30097 . : '\(.\)' 2>/dev/null ||
30098echo X"$as_dir" |
30099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30100 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30101 /^X\(\/\/\)$/{ s//\1/; q; }
30102 /^X\(\/\).*/{ s//\1/; q; }
30103 s/.*/./; q'`
30104 done
30105 test ! -n "$as_dirs" || mkdir $as_dirs
30106 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30107echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30108 { (exit 1); exit 1; }; }; }
30109
bec39cab 30110 rm -f $ac_file
b4e70030 30111 mv $tmp/config.h $ac_file
bec39cab
AC
30112 fi
30113 else
b4e70030
JB
30114 cat $tmp/config.h
30115 rm -f $tmp/config.h
bec39cab 30116 fi
e28b3332
DJ
30117# Compute $ac_file's index in $config_headers.
30118_am_stamp_count=1
30119for _am_header in $config_headers :; do
30120 case $_am_header in
30121 $ac_file | $ac_file:* )
30122 break ;;
30123 * )
30124 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30125 esac
30126done
30127echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
30128$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30129 X$ac_file : 'X\(//\)[^/]' \| \
30130 X$ac_file : 'X\(//\)$' \| \
30131 X$ac_file : 'X\(/\)' \| \
30132 . : '\(.\)' 2>/dev/null ||
30133echo X$ac_file |
30134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30135 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30136 /^X\(\/\/\)$/{ s//\1/; q; }
30137 /^X\(\/\).*/{ s//\1/; q; }
30138 s/.*/./; q'`/stamp-h$_am_stamp_count
b4e70030
JB
30139done
30140_ACEOF
30141cat >>$CONFIG_STATUS <<\_ACEOF
30142
30143#
30144# CONFIG_LINKS section.
30145#
30146
30147for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30148 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30149 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 30150
b4e70030
JB
30151 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30152echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
30153
30154 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
30155 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30156echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30157 { (exit 1); exit 1; }; }
c906108c 30158 fi
b4e70030
JB
30159 rm -f $ac_dest
30160
30161 # Make relative symlinks.
30162 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30163$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30164 X"$ac_dest" : 'X\(//\)[^/]' \| \
30165 X"$ac_dest" : 'X\(//\)$' \| \
30166 X"$ac_dest" : 'X\(/\)' \| \
30167 . : '\(.\)' 2>/dev/null ||
30168echo X"$ac_dest" |
30169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30170 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30171 /^X\(\/\/\)$/{ s//\1/; q; }
30172 /^X\(\/\).*/{ s//\1/; q; }
30173 s/.*/./; q'`
30174 { if $as_mkdir_p; then
30175 mkdir -p "$ac_dest_dir"
30176 else
30177 as_dir="$ac_dest_dir"
30178 as_dirs=
30179 while test ! -d "$as_dir"; do
30180 as_dirs="$as_dir $as_dirs"
30181 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30182$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30183 X"$as_dir" : 'X\(//\)[^/]' \| \
30184 X"$as_dir" : 'X\(//\)$' \| \
30185 X"$as_dir" : 'X\(/\)' \| \
30186 . : '\(.\)' 2>/dev/null ||
30187echo X"$as_dir" |
30188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30189 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30190 /^X\(\/\/\)$/{ s//\1/; q; }
30191 /^X\(\/\).*/{ s//\1/; q; }
30192 s/.*/./; q'`
30193 done
30194 test ! -n "$as_dirs" || mkdir $as_dirs
30195 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30196echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30197 { (exit 1); exit 1; }; }; }
30198
30199 ac_builddir=.
30200
30201if test "$ac_dest_dir" != .; then
30202 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30203 # A "../" for each directory in $ac_dir_suffix.
30204 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30205else
30206 ac_dir_suffix= ac_top_builddir=
30207fi
30208
30209case $srcdir in
30210 .) # No --srcdir option. We are building in place.
30211 ac_srcdir=.
30212 if test -z "$ac_top_builddir"; then
30213 ac_top_srcdir=.
30214 else
30215 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30216 fi ;;
30217 [\\/]* | ?:[\\/]* ) # Absolute path.
30218 ac_srcdir=$srcdir$ac_dir_suffix;
30219 ac_top_srcdir=$srcdir ;;
30220 *) # Relative path.
30221 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30222 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30223esac
30224
30225# Do not use `cd foo && pwd` to compute absolute paths, because
30226# the directories may not exist.
30227case `pwd` in
30228.) ac_abs_builddir="$ac_dest_dir";;
30229*)
30230 case "$ac_dest_dir" in
30231 .) ac_abs_builddir=`pwd`;;
30232 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30233 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30234 esac;;
30235esac
30236case $ac_abs_builddir in
30237.) ac_abs_top_builddir=${ac_top_builddir}.;;
30238*)
30239 case ${ac_top_builddir}. in
30240 .) ac_abs_top_builddir=$ac_abs_builddir;;
30241 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30242 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30243 esac;;
30244esac
30245case $ac_abs_builddir in
30246.) ac_abs_srcdir=$ac_srcdir;;
30247*)
30248 case $ac_srcdir in
30249 .) ac_abs_srcdir=$ac_abs_builddir;;
30250 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30251 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30252 esac;;
30253esac
30254case $ac_abs_builddir in
30255.) ac_abs_top_srcdir=$ac_top_srcdir;;
30256*)
30257 case $ac_top_srcdir in
30258 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30259 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30260 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30261 esac;;
30262esac
30263
bec39cab
AC
30264
30265 case $srcdir in
30266 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
b4e70030 30267 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c 30268 esac
b4e70030
JB
30269
30270 # Try a symlink, then a hard link, then a copy.
30271 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30272 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30273 cp -p $srcdir/$ac_source $ac_dest ||
30274 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30275echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
bec39cab 30276 { (exit 1); exit 1; }; }
b4e70030
JB
30277done
30278_ACEOF
30279cat >>$CONFIG_STATUS <<\_ACEOF
30280
30281#
30282# CONFIG_COMMANDS section.
30283#
30284for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30285 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30286 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30287 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30288$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30289 X"$ac_dest" : 'X\(//\)[^/]' \| \
30290 X"$ac_dest" : 'X\(//\)$' \| \
30291 X"$ac_dest" : 'X\(/\)' \| \
30292 . : '\(.\)' 2>/dev/null ||
30293echo X"$ac_dest" |
30294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30295 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30296 /^X\(\/\/\)$/{ s//\1/; q; }
30297 /^X\(\/\).*/{ s//\1/; q; }
30298 s/.*/./; q'`
30299 { if $as_mkdir_p; then
30300 mkdir -p "$ac_dir"
30301 else
30302 as_dir="$ac_dir"
30303 as_dirs=
30304 while test ! -d "$as_dir"; do
30305 as_dirs="$as_dir $as_dirs"
30306 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30307$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30308 X"$as_dir" : 'X\(//\)[^/]' \| \
30309 X"$as_dir" : 'X\(//\)$' \| \
30310 X"$as_dir" : 'X\(/\)' \| \
30311 . : '\(.\)' 2>/dev/null ||
30312echo X"$as_dir" |
30313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30315 /^X\(\/\/\)$/{ s//\1/; q; }
30316 /^X\(\/\).*/{ s//\1/; q; }
30317 s/.*/./; q'`
30318 done
30319 test ! -n "$as_dirs" || mkdir $as_dirs
30320 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30321echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30322 { (exit 1); exit 1; }; }; }
30323
30324 ac_builddir=.
30325
30326if test "$ac_dir" != .; then
30327 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30328 # A "../" for each directory in $ac_dir_suffix.
30329 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30330else
30331 ac_dir_suffix= ac_top_builddir=
30332fi
30333
30334case $srcdir in
30335 .) # No --srcdir option. We are building in place.
30336 ac_srcdir=.
30337 if test -z "$ac_top_builddir"; then
30338 ac_top_srcdir=.
30339 else
30340 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30341 fi ;;
30342 [\\/]* | ?:[\\/]* ) # Absolute path.
30343 ac_srcdir=$srcdir$ac_dir_suffix;
30344 ac_top_srcdir=$srcdir ;;
30345 *) # Relative path.
30346 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30347 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30348esac
30349
30350# Do not use `cd foo && pwd` to compute absolute paths, because
30351# the directories may not exist.
30352case `pwd` in
30353.) ac_abs_builddir="$ac_dir";;
30354*)
30355 case "$ac_dir" in
30356 .) ac_abs_builddir=`pwd`;;
30357 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30358 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30359 esac;;
30360esac
30361case $ac_abs_builddir in
30362.) ac_abs_top_builddir=${ac_top_builddir}.;;
30363*)
30364 case ${ac_top_builddir}. in
30365 .) ac_abs_top_builddir=$ac_abs_builddir;;
30366 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30367 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30368 esac;;
30369esac
30370case $ac_abs_builddir in
30371.) ac_abs_srcdir=$ac_srcdir;;
30372*)
30373 case $ac_srcdir in
30374 .) ac_abs_srcdir=$ac_abs_builddir;;
30375 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30376 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30377 esac;;
30378esac
30379case $ac_abs_builddir in
30380.) ac_abs_top_srcdir=$ac_top_srcdir;;
30381*)
30382 case $ac_top_srcdir in
30383 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30384 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30385 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30386 esac;;
30387esac
bec39cab 30388
bec39cab 30389
b4e70030
JB
30390 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30391echo "$as_me: executing $ac_dest commands" >&6;}
30392 case $ac_dest in
e28b3332
DJ
30393 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30394 # Strip MF so we end up with the name of the file.
30395 mf=`echo "$mf" | sed -e 's/:.*$//'`
30396 # Check whether this is an Automake generated Makefile or not.
30397 # We used to match only the files named `Makefile.in', but
30398 # some people rename them; so instead we look at the file content.
30399 # Grep'ing the first line is not enough: some people post-process
30400 # each Makefile.in and add a new line on top of each file to say so.
30401 # So let's grep whole file.
30402 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30403 dirpart=`(dirname "$mf") 2>/dev/null ||
30404$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30405 X"$mf" : 'X\(//\)[^/]' \| \
30406 X"$mf" : 'X\(//\)$' \| \
30407 X"$mf" : 'X\(/\)' \| \
30408 . : '\(.\)' 2>/dev/null ||
30409echo X"$mf" |
30410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30411 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30412 /^X\(\/\/\)$/{ s//\1/; q; }
30413 /^X\(\/\).*/{ s//\1/; q; }
30414 s/.*/./; q'`
30415 else
30416 continue
30417 fi
30418 # Extract the definition of DEPDIR, am__include, and am__quote
30419 # from the Makefile without running `make'.
30420 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30421 test -z "$DEPDIR" && continue
30422 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30423 test -z "am__include" && continue
30424 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30425 # When using ansi2knr, U may be empty or an underscore; expand it
30426 U=`sed -n 's/^U = //p' < "$mf"`
30427 # Find all dependency output files, they are included files with
30428 # $(DEPDIR) in their names. We invoke sed twice because it is the
30429 # simplest approach to changing $(DEPDIR) to its actual value in the
30430 # expansion.
30431 for file in `sed -n "
30432 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30433 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30434 # Make sure the directory exists.
30435 test -f "$dirpart/$file" && continue
30436 fdir=`(dirname "$file") 2>/dev/null ||
30437$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30438 X"$file" : 'X\(//\)[^/]' \| \
30439 X"$file" : 'X\(//\)$' \| \
30440 X"$file" : 'X\(/\)' \| \
30441 . : '\(.\)' 2>/dev/null ||
30442echo X"$file" |
30443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30444 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30445 /^X\(\/\/\)$/{ s//\1/; q; }
30446 /^X\(\/\).*/{ s//\1/; q; }
30447 s/.*/./; q'`
30448 { if $as_mkdir_p; then
30449 mkdir -p $dirpart/$fdir
30450 else
30451 as_dir=$dirpart/$fdir
30452 as_dirs=
30453 while test ! -d "$as_dir"; do
30454 as_dirs="$as_dir $as_dirs"
30455 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30456$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30457 X"$as_dir" : 'X\(//\)[^/]' \| \
30458 X"$as_dir" : 'X\(//\)$' \| \
30459 X"$as_dir" : 'X\(/\)' \| \
30460 . : '\(.\)' 2>/dev/null ||
30461echo X"$as_dir" |
30462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30463 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30464 /^X\(\/\/\)$/{ s//\1/; q; }
30465 /^X\(\/\).*/{ s//\1/; q; }
30466 s/.*/./; q'`
30467 done
30468 test ! -n "$as_dirs" || mkdir $as_dirs
30469 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30470echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30471 { (exit 1); exit 1; }; }; }
30472
30473 # echo "creating $dirpart/$file"
30474 echo '# dummy' > "$dirpart/$file"
30475 done
30476done
30477 ;;
b4e70030 30478 gdb_stdint.h )
4e8d927d
DJ
30479if test "$GCC" = yes; then
30480 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
30481else
30482 echo "/* generated for $CC */" > tmp-stdint.h
30483fi
30484
30485sed 's/^ *//' >> tmp-stdint.h <<EOF
30486
30487 #ifndef GCC_GENERATED_STDINT_H
30488 #define GCC_GENERATED_STDINT_H 1
30489
30490 #include <sys/types.h>
30491EOF
30492
30493if test "$acx_cv_header_stdint" != stdint.h; then
30494 echo "#include <stddef.h>" >> tmp-stdint.h
30495fi
30496if test "$acx_cv_header_stdint" != stddef.h; then
30497 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
30498fi
30499
30500sed 's/^ *//' >> tmp-stdint.h <<EOF
30501 /* glibc uses these symbols as guards to prevent redefinitions. */
30502 #ifdef __int8_t_defined
30503 #define _INT8_T
30504 #define _INT16_T
30505 #define _INT32_T
30506 #endif
30507 #ifdef __uint32_t_defined
30508 #define _UINT32_T
30509 #endif
30510
30511EOF
30512
30513# ----------------- done header, emit basic int types -------------
30514if test "$acx_cv_header_stdint" = stddef.h; then
30515 sed 's/^ *//' >> tmp-stdint.h <<EOF
30516
30517 #ifndef _UINT8_T
30518 #define _UINT8_T
07abfebf
RS
30519 #ifndef __uint8_t_defined
30520 #define __uint8_t_defined
4e8d927d
DJ
30521 typedef unsigned $acx_cv_type_int8_t uint8_t;
30522 #endif
07abfebf 30523 #endif
4e8d927d
DJ
30524
30525 #ifndef _UINT16_T
30526 #define _UINT16_T
07abfebf
RS
30527 #ifndef __uint16_t_defined
30528 #define __uint16_t_defined
4e8d927d
DJ
30529 typedef unsigned $acx_cv_type_int16_t uint16_t;
30530 #endif
07abfebf 30531 #endif
4e8d927d
DJ
30532
30533 #ifndef _UINT32_T
30534 #define _UINT32_T
07abfebf
RS
30535 #ifndef __uint32_t_defined
30536 #define __uint32_t_defined
4e8d927d
DJ
30537 typedef unsigned $acx_cv_type_int32_t uint32_t;
30538 #endif
07abfebf 30539 #endif
4e8d927d
DJ
30540
30541 #ifndef _INT8_T
30542 #define _INT8_T
07abfebf
RS
30543 #ifndef __int8_t_defined
30544 #define __int8_t_defined
4e8d927d
DJ
30545 typedef $acx_cv_type_int8_t int8_t;
30546 #endif
07abfebf 30547 #endif
4e8d927d
DJ
30548
30549 #ifndef _INT16_T
30550 #define _INT16_T
07abfebf
RS
30551 #ifndef __int16_t_defined
30552 #define __int16_t_defined
4e8d927d
DJ
30553 typedef $acx_cv_type_int16_t int16_t;
30554 #endif
07abfebf 30555 #endif
4e8d927d
DJ
30556
30557 #ifndef _INT32_T
30558 #define _INT32_T
07abfebf
RS
30559 #ifndef __int32_t_defined
30560 #define __int32_t_defined
4e8d927d
DJ
30561 typedef $acx_cv_type_int32_t int32_t;
30562 #endif
07abfebf 30563 #endif
4e8d927d
DJ
30564EOF
30565elif test "$ac_cv_type_u_int32_t" = yes; then
30566 sed 's/^ *//' >> tmp-stdint.h <<EOF
30567
30568 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
30569 #ifndef _INT8_T
30570 #define _INT8_T
30571 #endif
30572 #ifndef _INT16_T
30573 #define _INT16_T
30574 #endif
30575 #ifndef _INT32_T
30576 #define _INT32_T
30577 #endif
30578
30579 #ifndef _UINT8_T
30580 #define _UINT8_T
07abfebf
RS
30581 #ifndef __uint8_t_defined
30582 #define __uint8_t_defined
4e8d927d
DJ
30583 typedef u_int8_t uint8_t;
30584 #endif
07abfebf 30585 #endif
4e8d927d
DJ
30586
30587 #ifndef _UINT16_T
30588 #define _UINT16_T
07abfebf
RS
30589 #ifndef __uint16_t_defined
30590 #define __uint16_t_defined
4e8d927d
DJ
30591 typedef u_int16_t uint16_t;
30592 #endif
07abfebf 30593 #endif
4e8d927d
DJ
30594
30595 #ifndef _UINT32_T
30596 #define _UINT32_T
07abfebf
RS
30597 #ifndef __uint32_t_defined
30598 #define __uint32_t_defined
4e8d927d
DJ
30599 typedef u_int32_t uint32_t;
30600 #endif
07abfebf 30601 #endif
4e8d927d
DJ
30602EOF
30603else
30604 sed 's/^ *//' >> tmp-stdint.h <<EOF
30605
30606 /* Some systems have guard macros to prevent redefinitions, define them. */
30607 #ifndef _INT8_T
30608 #define _INT8_T
30609 #endif
30610 #ifndef _INT16_T
30611 #define _INT16_T
30612 #endif
30613 #ifndef _INT32_T
30614 #define _INT32_T
30615 #endif
30616 #ifndef _UINT8_T
30617 #define _UINT8_T
30618 #endif
30619 #ifndef _UINT16_T
30620 #define _UINT16_T
30621 #endif
30622 #ifndef _UINT32_T
30623 #define _UINT32_T
30624 #endif
30625EOF
30626fi
30627
30628# ------------- done basic int types, emit int64_t types ------------
30629if test "$ac_cv_type_uint64_t" = yes; then
30630 sed 's/^ *//' >> tmp-stdint.h <<EOF
30631
30632 /* system headers have good uint64_t and int64_t */
30633 #ifndef _INT64_T
30634 #define _INT64_T
30635 #endif
30636 #ifndef _UINT64_T
30637 #define _UINT64_T
30638 #endif
30639EOF
30640elif test "$ac_cv_type_u_int64_t" = yes; then
30641 sed 's/^ *//' >> tmp-stdint.h <<EOF
30642
30643 /* system headers have an u_int64_t (and int64_t) */
30644 #ifndef _INT64_T
30645 #define _INT64_T
30646 #endif
30647 #ifndef _UINT64_T
30648 #define _UINT64_T
07abfebf
RS
30649 #ifndef __uint64_t_defined
30650 #define __uint64_t_defined
4e8d927d
DJ
30651 typedef u_int64_t uint64_t;
30652 #endif
07abfebf 30653 #endif
4e8d927d
DJ
30654EOF
30655elif test -n "$acx_cv_type_int64_t"; then
30656 sed 's/^ *//' >> tmp-stdint.h <<EOF
30657
30658 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
30659 #ifndef _INT64_T
30660 #define _INT64_T
30661 typedef $acx_cv_type_int64_t int64_t;
30662 #endif
30663 #ifndef _UINT64_T
30664 #define _UINT64_T
07abfebf
RS
30665 #ifndef __uint64_t_defined
30666 #define __uint64_t_defined
4e8d927d
DJ
30667 typedef unsigned $acx_cv_type_int64_t uint64_t;
30668 #endif
07abfebf 30669 #endif
4e8d927d
DJ
30670EOF
30671else
30672 sed 's/^ *//' >> tmp-stdint.h <<EOF
30673
30674 /* some common heuristics for int64_t, using compiler-specific tests */
30675 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
30676 #ifndef _INT64_T
30677 #define _INT64_T
07abfebf 30678 #ifndef __int64_t_defined
4e8d927d
DJ
30679 typedef long long int64_t;
30680 #endif
07abfebf 30681 #endif
4e8d927d
DJ
30682 #ifndef _UINT64_T
30683 #define _UINT64_T
30684 typedef unsigned long long uint64_t;
30685 #endif
30686
30687 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
30688 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
30689 does not implement __extension__. But that compiler doesn't define
30690 __GNUC_MINOR__. */
30691 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
30692 # define __extension__
30693 # endif
30694
30695 # ifndef _INT64_T
30696 # define _INT64_T
30697 __extension__ typedef long long int64_t;
30698 # endif
30699 # ifndef _UINT64_T
30700 # define _UINT64_T
30701 __extension__ typedef unsigned long long uint64_t;
30702 # endif
30703
30704 #elif !defined __STRICT_ANSI__
30705 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
30706
30707 # ifndef _INT64_T
30708 # define _INT64_T
30709 typedef __int64 int64_t;
30710 # endif
30711 # ifndef _UINT64_T
30712 # define _UINT64_T
30713 typedef unsigned __int64 uint64_t;
30714 # endif
30715 # endif /* compiler */
30716
30717 #endif /* ANSI version */
30718EOF
30719fi
30720
30721# ------------- done int64_t types, emit intptr types ------------
30722if test "$ac_cv_type_uintptr_t" != yes; then
30723 sed 's/^ *//' >> tmp-stdint.h <<EOF
30724
30725 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
07abfebf 30726 #ifndef __uintptr_t_defined
4e8d927d 30727 typedef u$acx_cv_type_intptr_t uintptr_t;
07abfebf
RS
30728 #endif
30729 #ifndef __intptr_t_defined
4e8d927d 30730 typedef $acx_cv_type_intptr_t intptr_t;
07abfebf 30731 #endif
4e8d927d
DJ
30732EOF
30733fi
30734
30735# ------------- done intptr types, emit int_least types ------------
30736if test "$ac_cv_type_int_least32_t" != yes; then
30737 sed 's/^ *//' >> tmp-stdint.h <<EOF
30738
30739 /* Define int_least types */
30740 typedef int8_t int_least8_t;
30741 typedef int16_t int_least16_t;
30742 typedef int32_t int_least32_t;
30743 #ifdef _INT64_T
30744 typedef int64_t int_least64_t;
30745 #endif
30746
30747 typedef uint8_t uint_least8_t;
30748 typedef uint16_t uint_least16_t;
30749 typedef uint32_t uint_least32_t;
30750 #ifdef _UINT64_T
30751 typedef uint64_t uint_least64_t;
30752 #endif
30753EOF
30754fi
30755
30756# ------------- done intptr types, emit int_fast types ------------
30757if test "$ac_cv_type_int_fast32_t" != yes; then
30758 sed 's/^ *//' >> tmp-stdint.h <<EOF
30759
30760 /* Define int_fast types. short is often slow */
30761 typedef int8_t int_fast8_t;
30762 typedef int int_fast16_t;
30763 typedef int32_t int_fast32_t;
30764 #ifdef _INT64_T
30765 typedef int64_t int_fast64_t;
30766 #endif
30767
30768 typedef uint8_t uint_fast8_t;
30769 typedef unsigned int uint_fast16_t;
30770 typedef uint32_t uint_fast32_t;
30771 #ifdef _UINT64_T
30772 typedef uint64_t uint_fast64_t;
30773 #endif
30774EOF
30775fi
30776
30777if test "$ac_cv_type_uintmax_t" != yes; then
30778 sed 's/^ *//' >> tmp-stdint.h <<EOF
30779
30780 /* Define intmax based on what we found */
30781 #ifdef _INT64_T
30782 typedef int64_t intmax_t;
30783 #else
30784 typedef long intmax_t;
30785 #endif
30786 #ifdef _UINT64_T
30787 typedef uint64_t uintmax_t;
30788 #else
30789 typedef unsigned long uintmax_t;
30790 #endif
30791EOF
30792fi
30793
30794sed 's/^ *//' >> tmp-stdint.h <<EOF
30795
30796 #endif /* GCC_GENERATED_STDINT_H */
30797EOF
30798
30799if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
30800 rm -f tmp-stdint.h
30801else
30802 mv -f tmp-stdint.h gdb_stdint.h
bec39cab
AC
30803fi
30804
4e8d927d 30805 ;;
b4e70030 30806 default )
c906108c 30807
db985757 30808sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
c906108c
SS
30809mv -f Makefile.tmp Makefile
30810
2acceee2 30811
c906108c
SS
30812case x$CONFIG_HEADERS in
30813xconfig.h:config.in)
30814echo > stamp-h ;;
30815esac
bec39cab
AC
30816 ;;
30817 esac
b4e70030
JB
30818done
30819_ACEOF
c906108c 30820
b4e70030 30821cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
30822
30823{ (exit 0); exit 0; }
30824_ACEOF
c906108c 30825chmod +x $CONFIG_STATUS
bec39cab
AC
30826ac_clean_files=$ac_clean_files_save
30827
30828
30829# configure is writing to config.log, and then calls config.status.
30830# config.status does its own redirection, appending to config.log.
30831# Unfortunately, on DOS this fails, as config.log is still kept open
30832# by configure, so config.status won't be able to write to it; its
30833# output is simply discarded. So we exec the FD to /dev/null,
30834# effectively closing config.log, so it can be properly (re)opened and
30835# appended to by config.status. When coming back to configure, we
30836# need to make the FD available again.
30837if test "$no_create" != yes; then
30838 ac_cs_success=:
30839 ac_config_status_args=
30840 test "$silent" = yes &&
30841 ac_config_status_args="$ac_config_status_args --quiet"
30842 exec 5>/dev/null
30843 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30844 exec 5>>config.log
30845 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30846 # would make configure fail if this is the last instruction.
30847 $ac_cs_success || { (exit 1); exit 1; }
30848fi
c906108c 30849
bec39cab 30850#
fdc59709 30851# CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
bec39cab 30852#
c906108c
SS
30853if test "$no_recursion" != yes; then
30854
30855 # Remove --cache-file and --srcdir arguments so they do not pile up.
30856 ac_sub_configure_args=
30857 ac_prev=
fdc59709
PB
30858 eval "set x $ac_configure_args"
30859 shift
30860 for ac_arg
30861 do
c906108c
SS
30862 if test -n "$ac_prev"; then
30863 ac_prev=
30864 continue
30865 fi
bec39cab 30866 case $ac_arg in
c906108c
SS
30867 -cache-file | --cache-file | --cache-fil | --cache-fi \
30868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
30869 ac_prev=cache_file ;;
30870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
30871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
30872 | --c=*)
30873 ;;
30874 --config-cache | -C)
c906108c
SS
30875 ;;
30876 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
30877 ac_prev=srcdir ;;
30878 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
30879 ;;
bec39cab
AC
30880 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
30881 ac_prev=prefix ;;
30882 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
30883 ;;
fdc59709
PB
30884 *)
30885 case $ac_arg in
30886 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
30887 esac
30888 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
c906108c
SS
30889 esac
30890 done
30891
bec39cab
AC
30892 # Always prepend --prefix to ensure using the same prefix
30893 # in subdir configurations.
fdc59709
PB
30894 ac_arg="--prefix=$prefix"
30895 case $ac_arg in
30896 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
30897 esac
30898 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
bec39cab 30899
b4e70030 30900 ac_popdir=`pwd`
bec39cab 30901 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
30902
30903 # Do not complain, so a configure script can configure whichever
30904 # parts of a large source tree are present.
fdc59709 30905 test -d "$srcdir/$ac_dir" || continue
c906108c 30906
b4e70030
JB
30907 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
30908echo "$as_me: configuring in $ac_dir" >&6;}
30909 { if $as_mkdir_p; then
30910 mkdir -p "$ac_dir"
30911 else
30912 as_dir="$ac_dir"
bec39cab 30913 as_dirs=
b4e70030
JB
30914 while test ! -d "$as_dir"; do
30915 as_dirs="$as_dir $as_dirs"
30916 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
30917$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30918 X"$as_dir" : 'X\(//\)[^/]' \| \
30919 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
30920 X"$as_dir" : 'X\(/\)' \| \
30921 . : '\(.\)' 2>/dev/null ||
bec39cab 30922echo X"$as_dir" |
b4e70030
JB
30923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30924 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30925 /^X\(\/\/\)$/{ s//\1/; q; }
30926 /^X\(\/\).*/{ s//\1/; q; }
30927 s/.*/./; q'`
bec39cab 30928 done
b4e70030
JB
30929 test ! -n "$as_dirs" || mkdir $as_dirs
30930 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30931echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 30932 { (exit 1); exit 1; }; }; }
b4e70030 30933
bec39cab
AC
30934 ac_builddir=.
30935
b4e70030 30936if test "$ac_dir" != .; then
bec39cab 30937 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
30938 # A "../" for each directory in $ac_dir_suffix.
30939 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30940else
30941 ac_dir_suffix= ac_top_builddir=
30942fi
bec39cab
AC
30943
30944case $srcdir in
b4e70030 30945 .) # No --srcdir option. We are building in place.
bec39cab 30946 ac_srcdir=.
b4e70030
JB
30947 if test -z "$ac_top_builddir"; then
30948 ac_top_srcdir=.
30949 else
30950 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30951 fi ;;
30952 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 30953 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
30954 ac_top_srcdir=$srcdir ;;
30955 *) # Relative path.
30956 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30957 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30958esac
30959
30960# Do not use `cd foo && pwd` to compute absolute paths, because
30961# the directories may not exist.
30962case `pwd` in
30963.) ac_abs_builddir="$ac_dir";;
30964*)
30965 case "$ac_dir" in
30966 .) ac_abs_builddir=`pwd`;;
30967 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30968 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30969 esac;;
30970esac
30971case $ac_abs_builddir in
30972.) ac_abs_top_builddir=${ac_top_builddir}.;;
30973*)
30974 case ${ac_top_builddir}. in
30975 .) ac_abs_top_builddir=$ac_abs_builddir;;
30976 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30977 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30978 esac;;
30979esac
30980case $ac_abs_builddir in
30981.) ac_abs_srcdir=$ac_srcdir;;
30982*)
30983 case $ac_srcdir in
30984 .) ac_abs_srcdir=$ac_abs_builddir;;
30985 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30986 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30987 esac;;
30988esac
30989case $ac_abs_builddir in
30990.) ac_abs_top_srcdir=$ac_top_srcdir;;
30991*)
30992 case $ac_top_srcdir in
30993 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30994 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30995 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30996 esac;;
bec39cab 30997esac
c906108c 30998
c906108c 30999
fdc59709 31000 cd "$ac_dir"
c906108c
SS
31001
31002 # Check for guested configure; otherwise get Cygnus style configure.
fdc59709
PB
31003 if test -f "$ac_srcdir/configure.gnu"; then
31004 ac_sub_configure=$ac_srcdir/configure.gnu
31005 elif test -f "$ac_srcdir/configure"; then
31006 ac_sub_configure=$ac_srcdir/configure
31007 elif test -f "$ac_srcdir/configure.in"; then
31008 # This should be Cygnus configure.
31009 ac_sub_configure=$ac_aux_dir/configure
c906108c 31010 else
bec39cab
AC
31011 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31012echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
31013 ac_sub_configure=
31014 fi
31015
31016 # The recursion is here.
31017 if test -n "$ac_sub_configure"; then
c906108c 31018 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
31019 case $cache_file in
31020 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
b4e70030
JB
31021 *) # Relative path.
31022 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 31023 esac
c906108c 31024
fdc59709
PB
31025 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31026echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 31027 # The eval makes quoting arguments work.
fdc59709
PB
31028 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
31029 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
bec39cab
AC
31030 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31031echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31032 { (exit 1); exit 1; }; }
c906108c
SS
31033 fi
31034
fdc59709 31035 cd "$ac_popdir"
c906108c
SS
31036 done
31037fi
31038
31039
31040exit 0
This page took 2.329319 seconds and 4 git commands to generate.